diff --git a/examples/test_vpc_v1_examples.py b/examples/test_vpc_v1_examples.py index a5054e4..3d39c1c 100644 --- a/examples/test_vpc_v1_examples.py +++ b/examples/test_vpc_v1_examples.py @@ -21,7 +21,7 @@ import pytest from ibm_vpc.vpc_v1 import * -data={} +data = {} data['zone'] = 'us-east-1' data['region'] = 'us-east' @@ -49,7 +49,7 @@ # Start of Examples for Service: VpcV1 ############################################################################## # region -class TestVpcV1Examples(): +class TestVpcV1Examples: """ Example Test Class for VpcV1 """ @@ -74,8 +74,8 @@ def setup_class(cls): print('Setup complete.') needscredentials = pytest.mark.skipif( - not os.path.exists(config_file), - reason="External configuration not available, skipping...") + not os.path.exists(config_file), reason="External configuration not available, skipping..." + ) @needscredentials def test_list_vpcs_example(self): @@ -122,7 +122,7 @@ def test_create_vpc_example(self): # end-create_vpc assert vpc["id"] is not None - data["vpcID"]=vpc["id"] + data["vpcID"] = vpc["id"] except ApiException as e: pytest.fail(str(e)) @@ -160,7 +160,7 @@ def test_create_hub_vpc_example(self): # end-create_vpc assert vpc["id"] is not None - data["vpcHubID"]=vpc["id"] + data["vpcHubID"] = vpc["id"] except ApiException as e: pytest.fail(str(e)) @@ -192,10 +192,9 @@ def test_update_vpc_example(self): # begin-update_vpc vpc_patch_model = {} - vpc_patch_model['name']='my-vpc-modified' + vpc_patch_model['name'] = 'my-vpc-modified' - vpc = vpc_service.update_vpc( - id=data["vpcID"], vpc_patch=vpc_patch_model).get_result() + vpc = vpc_service.update_vpc(id=data["vpcID"], vpc_patch=vpc_patch_model).get_result() # end-update_vpc assert vpc is not None @@ -212,8 +211,7 @@ def test_get_vpc_default_network_acl_example(self): print('\nget_vpc_default_network_acl() result:') # begin-get_vpc_default_network_acl - default_network_acl = vpc_service.get_vpc_default_network_acl( - id=data["vpcID"]).get_result() + default_network_acl = vpc_service.get_vpc_default_network_acl(id=data["vpcID"]).get_result() # end-get_vpc_default_network_acl assert default_network_acl is not None @@ -230,8 +228,7 @@ def test_get_vpc_default_routing_table_example(self): print('\nget_vpc_default_routing_table() result:') # begin-get_vpc_default_routing_table - default_routing_table = vpc_service.get_vpc_default_routing_table( - id=data["vpcID"]).get_result() + default_routing_table = vpc_service.get_vpc_default_routing_table(id=data["vpcID"]).get_result() # end-get_vpc_default_routing_table assert default_routing_table is not None @@ -248,8 +245,7 @@ def test_get_vpc_default_security_group_example(self): print('\nget_vpc_default_security_group() result:') # begin-get_vpc_default_security_group - default_security_group = vpc_service.get_vpc_default_security_group( - id=data["vpcID"]).get_result() + default_security_group = vpc_service.get_vpc_default_security_group(id=data["vpcID"]).get_result() # end-get_vpc_default_security_group assert default_security_group is not None @@ -295,16 +291,14 @@ def test_create_vpc_address_prefix_example(self): # begin-create_vpc_address_prefix zone_identity_model = {} - zone_identity_model['name']= data['zone'] + zone_identity_model['name'] = data['zone'] address_prefix = vpc_service.create_vpc_address_prefix( - vpc_id=data['vpcID'], - cidr='10.0.0.0/24', - zone=zone_identity_model, - name='my-address-prefix').get_result() + vpc_id=data['vpcID'], cidr='10.0.0.0/24', zone=zone_identity_model, name='my-address-prefix' + ).get_result() # end-create_vpc_address_prefix assert address_prefix['id'] is not None - data['vpcAddressPrefixId']=address_prefix['id'] + data['vpcAddressPrefixId'] = address_prefix['id'] except ApiException as e: pytest.fail(str(e)) @@ -319,7 +313,8 @@ def test_get_vpc_address_prefix_example(self): # begin-get_vpc_address_prefix address_prefix = vpc_service.get_vpc_address_prefix( - vpc_id=data['vpcID'], id=data['vpcAddressPrefixId']).get_result() + vpc_id=data['vpcID'], id=data['vpcAddressPrefixId'] + ).get_result() # end-get_vpc_address_prefix assert address_prefix is not None @@ -337,12 +332,11 @@ def test_update_vpc_address_prefix_example(self): # begin-update_vpc_address_prefix address_prefix_patch_model = {} - address_prefix_patch_model['name']='my-address-prefix-updated' + address_prefix_patch_model['name'] = 'my-address-prefix-updated' address_prefix = vpc_service.update_vpc_address_prefix( - vpc_id=data['vpcID'], - id=data['vpcAddressPrefixId'], - address_prefix_patch=address_prefix_patch_model).get_result() + vpc_id=data['vpcID'], id=data['vpcAddressPrefixId'], address_prefix_patch=address_prefix_patch_model + ).get_result() # end-update_vpc_address_prefix assert address_prefix is not None @@ -427,9 +421,8 @@ def test_update_vpc_dns_resolution_binding_example(self): print('\nupdate_vpc_dns_resolution_binding() result:') # begin-update_vpc_dns_resolution_binding - vpcdns_resolution_binding_patch_model = { - } - vpcdns_resolution_binding_patch_model['name']='my-vpc-dns-resolution-binding-updated' + vpcdns_resolution_binding_patch_model = {} + vpcdns_resolution_binding_patch_model['name'] = 'my-vpc-dns-resolution-binding-updated' response = vpc_service.update_vpc_dns_resolution_binding( vpc_id=data['vpcID'], @@ -481,10 +474,10 @@ def test_create_vpc_routing_table_example(self): # begin-create_vpc_routing_table route_next_hop_prototype_model = {} - route_next_hop_prototype_model['address']= '192.168.3.4' + route_next_hop_prototype_model['address'] = '192.168.3.4' zone_identity_model = {} - zone_identity_model['name']= data['zone'] + zone_identity_model['name'] = data['zone'] route_prototype_model = {} route_prototype_model['action'] = 'delegate' @@ -496,11 +489,12 @@ def test_create_vpc_routing_table_example(self): routing_table = vpc_service.create_vpc_routing_table( vpc_id=data['vpcID'], name='my-routing-table', - routes=[route_prototype_model],).get_result() + routes=[route_prototype_model], + ).get_result() # end-create_vpc_routing_table assert routing_table['id'] is not None - data['vpcRoutingTableId']=routing_table['id'] + data['vpcRoutingTableId'] = routing_table['id'] except ApiException as e: pytest.fail(str(e)) @@ -515,7 +509,8 @@ def test_get_vpc_routing_table_example(self): # begin-get_vpc_routing_table routing_table = vpc_service.get_vpc_routing_table( - vpc_id=data['vpcID'], id=data['vpcRoutingTableId']).get_result() + vpc_id=data['vpcID'], id=data['vpcRoutingTableId'] + ).get_result() # end-get_vpc_routing_table assert routing_table is not None @@ -536,9 +531,8 @@ def test_update_vpc_routing_table_example(self): routing_table_patch_model['name'] = 'my-routing-table-modified' routing_table = vpc_service.update_vpc_routing_table( - vpc_id=data['vpcID'], - id=data['vpcRoutingTableId'], - routing_table_patch=routing_table_patch_model).get_result() + vpc_id=data['vpcID'], id=data['vpcRoutingTableId'], routing_table_patch=routing_table_patch_model + ).get_result() # end-update_vpc_routing_table assert routing_table is not None @@ -598,11 +592,12 @@ def test_create_vpc_routing_table_route_example(self): next_hop=route_next_hop_prototype_model, action='delegate', priority=1, - name='my-routing-table-route').get_result() + name='my-routing-table-route', + ).get_result() # end-create_vpc_routing_table_route assert route['id'] is not None - data['vpcRoutingTableRouteId']=route['id'] + data['vpcRoutingTableRouteId'] = route['id'] except ApiException as e: pytest.fail(str(e)) @@ -617,9 +612,8 @@ def test_get_vpc_routing_table_route_example(self): # begin-get_vpc_routing_table_route route = vpc_service.get_vpc_routing_table_route( - vpc_id=data['vpcID'], - routing_table_id=data['vpcRoutingTableId'], - id=data['vpcRoutingTableRouteId']).get_result() + vpc_id=data['vpcID'], routing_table_id=data['vpcRoutingTableId'], id=data['vpcRoutingTableRouteId'] + ).get_result() # end-get_vpc_routing_table_route assert route is not None @@ -642,7 +636,8 @@ def test_update_vpc_routing_table_route_example(self): vpc_id=data['vpcID'], routing_table_id=data['vpcRoutingTableId'], id=data['vpcRoutingTableRouteId'], - route_patch=route_patch_model).get_result() + route_patch=route_patch_model, + ).get_result() # end-update_vpc_routing_table_route assert route is not None @@ -698,12 +693,11 @@ def test_create_subnet_example(self): subnet_prototype_model['ipv4_cidr_block'] = '10.0.1.0/24' subnet_prototype_model['zone'] = zone_identity_model - subnet = vpc_service.create_subnet( - subnet_prototype=subnet_prototype_model).get_result() + subnet = vpc_service.create_subnet(subnet_prototype=subnet_prototype_model).get_result() # end-create_subnet assert subnet['id'] is not None - data['subnetId']=subnet['id'] + data['subnetId'] = subnet['id'] except ApiException as e: pytest.fail(str(e)) @@ -735,10 +729,9 @@ def test_update_subnet_example(self): # begin-update_subnet subnet_patch_model = {} - subnet_patch_model['name'] ='my-subnet-updated' + subnet_patch_model['name'] = 'my-subnet-updated' - subnet = vpc_service.update_subnet( - id=data['subnetId'], subnet_patch=subnet_patch_model).get_result() + subnet = vpc_service.update_subnet(id=data['subnetId'], subnet_patch=subnet_patch_model).get_result() # end-update_subnet assert subnet is not None @@ -755,8 +748,7 @@ def test_get_subnet_network_acl_example(self): print('\nget_subnet_network_acl() result:') # begin-get_subnet_network_acl - network_acl = vpc_service.get_subnet_network_acl( - id=data['subnetId']).get_result() + network_acl = vpc_service.get_subnet_network_acl(id=data['subnetId']).get_result() # end-get_subnet_network_acl assert network_acl is not None @@ -779,16 +771,15 @@ def test_replace_subnet_network_acl_example(self): network_acl_prototype_model['name'] = 'my-subnet-network-acl' network_acl_prototype_model['vpc'] = vpc_model - network_acl = vpc_service.create_network_acl( - network_acl_prototype=network_acl_prototype_model).get_result() + network_acl = vpc_service.create_network_acl(network_acl_prototype=network_acl_prototype_model).get_result() # begin-replace_subnet_network_acl network_acl_identity_model = {} network_acl_identity_model['id'] = network_acl['id'] network_replace_acl = vpc_service.replace_subnet_network_acl( - id=data['subnetId'], - network_acl_identity=network_acl_identity_model).get_result() + id=data['subnetId'], network_acl_identity=network_acl_identity_model + ).get_result() # end-replace_subnet_network_acl assert network_replace_acl is not None @@ -805,22 +796,22 @@ def test_set_subnet_public_gateway_example(self): print('\nset_subnet_public_gateway() result:') vpc_identity_model = {} - vpc_identity_model['id']= data['vpcID'] + vpc_identity_model['id'] = data['vpcID'] zone_identity_model = {} - zone_identity_model['name']= data['zone'] + zone_identity_model['name'] = data['zone'] public_gateway = vpc_service.create_public_gateway( - vpc=vpc_identity_model, zone=zone_identity_model).get_result() + vpc=vpc_identity_model, zone=zone_identity_model + ).get_result() # begin-set_subnet_public_gateway public_gateway_identity_model = {} - public_gateway_identity_model['id']= public_gateway['id'] + public_gateway_identity_model['id'] = public_gateway['id'] public_gateway_subnet = vpc_service.set_subnet_public_gateway( - id=data['subnetId'], - public_gateway_identity=public_gateway_identity_model + id=data['subnetId'], public_gateway_identity=public_gateway_identity_model ).get_result() # end-set_subnet_public_gateway @@ -838,8 +829,7 @@ def test_get_subnet_public_gateway_example(self): print('\nget_subnet_public_gateway() result:') # begin-get_subnet_public_gateway - public_gateway = vpc_service.get_subnet_public_gateway( - id=data['subnetId']).get_result() + public_gateway = vpc_service.get_subnet_public_gateway(id=data['subnetId']).get_result() # end-get_subnet_public_gateway assert public_gateway is not None @@ -859,8 +849,7 @@ def test_unset_subnet_public_gateway_example(self): # end-unset_subnet_public_gateway assert response is not None - print('\nunset_subnet_public_gateway() response status code: ', - response.get_status_code()) + print('\nunset_subnet_public_gateway() response status code: ', response.get_status_code()) except ApiException as e: pytest.fail(str(e)) @@ -874,8 +863,7 @@ def test_get_subnet_routing_table_example(self): print('\nget_subnet_routing_table() result:') # begin-get_subnet_routing_table - routing_table = vpc_service.get_subnet_routing_table( - id=data['subnetId']).get_result() + routing_table = vpc_service.get_subnet_routing_table(id=data['subnetId']).get_result() # end-get_subnet_routing_table assert routing_table is not None @@ -893,12 +881,11 @@ def test_replace_subnet_routing_table_example(self): # begin-replace_subnet_routing_table routing_table_identity_model = {} - routing_table_identity_model['id']= data['vpcRoutingTableId'] + routing_table_identity_model['id'] = data['vpcRoutingTableId'] routing_table = vpc_service.replace_subnet_routing_table( - id=data['subnetId'], - routing_table_identity=routing_table_identity_model).get_result( - ) + id=data['subnetId'], routing_table_identity=routing_table_identity_model + ).get_result() # end-replace_subnet_routing_table assert routing_table is not None @@ -945,11 +932,12 @@ def test_create_subnet_reserved_ip_example(self): # begin-create_subnet_reserved_ip reserved_ip = vpc_service.create_subnet_reserved_ip( - subnet_id=data['subnetId'],name='my-subnet-reserved-ip', auto_delete=False).get_result() + subnet_id=data['subnetId'], name='my-subnet-reserved-ip', auto_delete=False + ).get_result() # end-create_subnet_reserved_ip assert reserved_ip['id'] is not None - data['subnetReservedIp']=reserved_ip['id'] + data['subnetReservedIp'] = reserved_ip['id'] except ApiException as e: pytest.fail(str(e)) @@ -964,7 +952,8 @@ def test_get_subnet_reserved_ip_example(self): # begin-get_subnet_reserved_ip reserved_ip = vpc_service.get_subnet_reserved_ip( - subnet_id=data['subnetId'], id=data['subnetReservedIp']).get_result() + subnet_id=data['subnetId'], id=data['subnetReservedIp'] + ).get_result() # end-get_subnet_reserved_ip assert reserved_ip is not None @@ -982,12 +971,11 @@ def test_update_subnet_reserved_ip_example(self): # begin-update_subnet_reserved_ip reserved_ip_patch_model = {} - reserved_ip_patch_model['name']= 'my-reserved-ip-updated' + reserved_ip_patch_model['name'] = 'my-reserved-ip-updated' reserved_ip = vpc_service.update_subnet_reserved_ip( - subnet_id=data['subnetId'], - id=data['subnetReservedIp'], - reserved_ip_patch=reserved_ip_patch_model).get_result() + subnet_id=data['subnetId'], id=data['subnetReservedIp'], reserved_ip_patch=reserved_ip_patch_model + ).get_result() # end-update_subnet_reserved_ip assert reserved_ip is not None @@ -1034,7 +1022,7 @@ def test_create_image_example(self): # begin-create_image image_file_prototype_model = {} - image_file_prototype_model['href']= 'cos://us-south/my-bucket/my-image.qcow2' + image_file_prototype_model['href'] = 'cos://us-south/my-bucket/my-image.qcow2' operating_system_identity_model = {} operating_system_identity_model['name'] = 'debian-9-amd64' @@ -1044,12 +1032,11 @@ def test_create_image_example(self): image_prototype_model['operating_system'] = operating_system_identity_model image_prototype_model['name'] = 'my-image' - image = vpc_service.create_image( - image_prototype=image_prototype_model).get_result() + image = vpc_service.create_image(image_prototype=image_prototype_model).get_result() # end-create_image assert image['id'] is not None - data['imageId']=image['id'] + data['imageId'] = image['id'] except ApiException as e: pytest.fail(str(e)) @@ -1083,8 +1070,7 @@ def test_update_image_example(self): image_patch_model = {} image_patch_model['name'] = 'my-image-updated' - image = vpc_service.update_image( - id=data['imageId'], image_patch=image_patch_model).get_result() + image = vpc_service.update_image(id=data['imageId'], image_patch=image_patch_model).get_result() # end-update_image assert image is not None @@ -1101,9 +1087,7 @@ def test_list_image_export_jobs_example(self): print('\nlist_image_export_jobs() result:') # begin-list_image_export_jobs - response = vpc_service.list_image_export_jobs( - image_id=data['imageId'] - ) + response = vpc_service.list_image_export_jobs(image_id=data['imageId']) image_export_job_unpaginated_collection = response.get_result() # end-list_image_export_jobs @@ -1127,12 +1111,12 @@ def test_create_image_export_job_example(self): image_export_job = vpc_service.create_image_export_job( image_id=data['imageId'], name='my-image-export-job', - storage_bucket=cloud_object_storage_bucket_identity_model + storage_bucket=cloud_object_storage_bucket_identity_model, ).get_result() # end-create_image_export_job assert image_export_job is not None - data['imageExportJobId']=image_export_job['id'] + data['imageExportJobId'] = image_export_job['id'] except ApiException as e: pytest.fail(str(e)) @@ -1146,8 +1130,7 @@ def test_get_image_export_job_example(self): # begin-get_image_export_job image_export_job = vpc_service.get_image_export_job( - image_id=data['imageId'], - id=data['imageExportJobId'] + image_id=data['imageId'], id=data['imageExportJobId'] ).get_result() # end-get_image_export_job @@ -1164,14 +1147,12 @@ def test_update_image_export_job_example(self): print('\nupdate_image_export_job() result:') # begin-update_image_export_job - image_export_job_patch_model = { - 'name' : 'my-image-export-job-updated' - } + image_export_job_patch_model = {'name': 'my-image-export-job-updated'} image_export_job = vpc_service.update_image_export_job( image_id=data['imageId'], id=data['imageExportJobId'], - image_export_job_patch=image_export_job_patch_model + image_export_job_patch=image_export_job_patch_model, ).get_result() # end-update_image_export_job @@ -1187,10 +1168,7 @@ def test_delete_image_export_job_example(self): try: # begin-delete_image_export_job - response = vpc_service.delete_image_export_job( - image_id=data['imageId'], - id=data['imageExportJobId'] - ) + response = vpc_service.delete_image_export_job(image_id=data['imageId'], id=data['imageExportJobId']) # end-delete_image_export_job print('\ndelete_image_export_job() response status code: ', response.get_status_code()) @@ -1221,7 +1199,7 @@ def test_list_operating_systems_example(self): print(json.dumps(all_results, indent=2)) assert all_results is not None - data['operatingSystemName']=all_results[0]['name'] + data['operatingSystemName'] = all_results[0]['name'] except ApiException as e: pytest.fail(str(e)) @@ -1235,8 +1213,7 @@ def test_get_operating_system_example(self): print('\nget_operating_system() result:') # begin-get_operating_system - operating_system = vpc_service.get_operating_system( - name=data['operatingSystemName']).get_result() + operating_system = vpc_service.get_operating_system(name=data['operatingSystemName']).get_result() # end-get_operating_system assert operating_system is not None @@ -1281,14 +1258,13 @@ def test_create_key_example(self): # begin-create_key key = vpc_service.create_key( - public_key= - 'AAAAB3NzaC1yc2EAAAADAQABAAABAQDDGe50Bxa5T5NDddrrtbx2Y4/VGbiCgXqnBsYToIUKoFSHTQl5IX3PasGnneKanhcLwWz5M5MoCRvhxTp66NKzIfAz7r+FX9rxgR+ZgcM253YAqOVeIpOU408simDZKriTlN8kYsXL7P34tsWuAJf4MgZtJAQxous/2byetpdCv8ddnT4X3ltOg9w+LqSCPYfNivqH00Eh7S1Ldz7I8aw5WOp5a+sQFP/RbwfpwHp+ny7DfeIOokcuI42tJkoBn7UsLTVpCSmXr2EDRlSWe/1M/iHNRBzaT3CK0+SwZWd2AEjePxSnWKNGIEUJDlUYp7hKhiQcgT5ZAnWU121oc5En', - name='my-ssh-key' + public_key='AAAAB3NzaC1yc2EAAAADAQABAAABAQDDGe50Bxa5T5NDddrrtbx2Y4/VGbiCgXqnBsYToIUKoFSHTQl5IX3PasGnneKanhcLwWz5M5MoCRvhxTp66NKzIfAz7r+FX9rxgR+ZgcM253YAqOVeIpOU408simDZKriTlN8kYsXL7P34tsWuAJf4MgZtJAQxous/2byetpdCv8ddnT4X3ltOg9w+LqSCPYfNivqH00Eh7S1Ldz7I8aw5WOp5a+sQFP/RbwfpwHp+ny7DfeIOokcuI42tJkoBn7UsLTVpCSmXr2EDRlSWe/1M/iHNRBzaT3CK0+SwZWd2AEjePxSnWKNGIEUJDlUYp7hKhiQcgT5ZAnWU121oc5En', + name='my-ssh-key', ).get_result() # end-create_key assert key['id'] is not None - data['keyId']=key['id'] + data['keyId'] = key['id'] except ApiException as e: pytest.fail(str(e)) @@ -1322,8 +1298,7 @@ def test_update_key_example(self): key_patch_model = {} key_patch_model['name'] = 'my-ssh-key-updated' - key = vpc_service.update_key( - id=data['keyId'], key_patch=key_patch_model).get_result() + key = vpc_service.update_key(id=data['keyId'], key_patch=key_patch_model).get_result() # end-update_key assert key is not None @@ -1375,12 +1350,11 @@ def test_create_floating_ip_example(self): floating_ip_prototype_model['zone'] = zone_identity_model floating_ip_prototype_model['name'] = 'my-floating-ip' - floating_ip = vpc_service.create_floating_ip( - floating_ip_prototype=floating_ip_prototype_model).get_result() + floating_ip = vpc_service.create_floating_ip(floating_ip_prototype=floating_ip_prototype_model).get_result() # end-create_floating_ip assert floating_ip['id'] is not None - data['floatingIpId']=floating_ip['id'] + data['floatingIpId'] = floating_ip['id'] except ApiException as e: pytest.fail(str(e)) @@ -1394,8 +1368,7 @@ def test_get_floating_ip_example(self): print('\nget_floating_ip() result:') # begin-get_floating_ip - floating_ip = vpc_service.get_floating_ip( - id=data['floatingIpId']).get_result() + floating_ip = vpc_service.get_floating_ip(id=data['floatingIpId']).get_result() # end-get_floating_ip assert floating_ip['id'] is not None @@ -1416,8 +1389,8 @@ def test_update_floating_ip_example(self): floating_ip_patch_model['name'] = 'my-floating-ip-updated' floating_ip = vpc_service.update_floating_ip( - id=data['floatingIpId'], - floating_ip_patch=floating_ip_patch_model).get_result() + id=data['floatingIpId'], floating_ip_patch=floating_ip_patch_model + ).get_result() # end-update_floating_ip assert floating_ip is not None @@ -1461,8 +1434,7 @@ def test_get_volume_profile_example(self): print('\nget_volume_profile() result:') # begin-get_volume_profile - volume_profile = vpc_service.get_volume_profile( - name='10iops-tier').get_result() + volume_profile = vpc_service.get_volume_profile(name='10iops-tier').get_result() # end-get_volume_profile @@ -1524,12 +1496,11 @@ def test_create_volume_example(self): volume_prototype_model['zone'] = zone_identity_model volume_prototype_model['capacity'] = 100 volume_prototype_model['user_tags'] = ['my-daily-backup-policy'] - volume = vpc_service.create_volume( - volume_prototype=volume_prototype_model).get_result() + volume = vpc_service.create_volume(volume_prototype=volume_prototype_model).get_result() # end-create_volume assert volume['id'] is not None - data['volumeId']=volume['id'] + data['volumeId'] = volume['id'] except ApiException as e: pytest.fail(str(e)) @@ -1563,8 +1534,7 @@ def test_update_volume_example(self): volume_patch_model = {} volume_patch_model['name'] = 'my-volume-updated' - volume = vpc_service.update_volume( - id=data['volumeId'], volume_patch=volume_patch_model).get_result() + volume = vpc_service.update_volume(id=data['volumeId'], volume_patch=volume_patch_model).get_result() # end-update_volume assert volume is not None @@ -1581,12 +1551,11 @@ def test_list_instance_profiles_example(self): print('\nlist_instance_profiles() result:') # begin-list_instance_profiles - instance_profile_collection = vpc_service.list_instance_profiles( - ).get_result() + instance_profile_collection = vpc_service.list_instance_profiles().get_result() # end-list_instance_profiles assert instance_profile_collection is not None - data['instanceProfileName']=instance_profile_collection['profiles'][0]['name'] + data['instanceProfileName'] = instance_profile_collection['profiles'][0]['name'] except ApiException as e: pytest.fail(str(e)) @@ -1600,8 +1569,7 @@ def test_get_instance_profile_example(self): print('\nget_instance_profile() result:') # begin-get_instance_profile - instance_profile = vpc_service.get_instance_profile( - name=data['instanceProfileName']).get_result() + instance_profile = vpc_service.get_instance_profile(name=data['instanceProfileName']).get_result() # end-get_instance_profile assert instance_profile is not None @@ -1618,8 +1586,7 @@ def test_list_instance_templates_example(self): print('\nlist_instance_templates() result:') # begin-list_instance_templates - instance_template_collection = vpc_service.list_instance_templates( - ).get_result() + instance_template_collection = vpc_service.list_instance_templates().get_result() # end-list_instance_templates @@ -1638,7 +1605,7 @@ def test_create_instance_template_example(self): # begin-create_instance_template key_identity_model = {} - key_identity_model['id'] = data['keyId'] + key_identity_model['id'] = data['keyId'] subnet_identity_model = {} subnet_identity_model['id'] = data['subnetId'] @@ -1679,7 +1646,7 @@ def test_create_instance_template_example(self): # end-create_instance_template assert instance_template is not None - data['instanceTemplateId']=instance_template['id'] + data['instanceTemplateId'] = instance_template['id'] except ApiException as e: pytest.fail(str(e)) @@ -1693,8 +1660,7 @@ def test_get_instance_template_example(self): print('\nget_instance_template() result:') # begin-get_instance_template - instance_template = vpc_service.get_instance_template( - id=data['instanceTemplateId']).get_result() + instance_template = vpc_service.get_instance_template(id=data['instanceTemplateId']).get_result() # end-get_instance_template assert instance_template is not None @@ -1715,8 +1681,7 @@ def test_update_instance_template_example(self): instance_template_patch_model['name'] = 'my-instance-template-updated' instance_template = vpc_service.update_instance_template( - id=data['instanceTemplateId'], - instance_template_patch=instance_template_patch_model + id=data['instanceTemplateId'], instance_template_patch=instance_template_patch_model ).get_result() # end-update_instance_template @@ -1790,13 +1755,12 @@ def test_create_instance_example(self): instance_prototype_model['zone'] = zone_identity_model instance_prototype_model['image'] = image_identity_model - instance = vpc_service.create_instance( - instance_prototype=instance_prototype_model).get_result() + instance = vpc_service.create_instance(instance_prototype=instance_prototype_model).get_result() # end-create_instance assert instance is not None - data['instanceId']=instance['id'] + data['instanceId'] = instance['id'] except ApiException as e: pytest.fail(str(e)) @@ -1828,11 +1792,11 @@ def test_update_instance_example(self): # begin-update_instance instance_patch_model = {} - instance_patch_model['name']='my-instance-updated' + instance_patch_model['name'] = 'my-instance-updated' instance = vpc_service.update_instance( - id=data['instanceId'], - instance_patch=instance_patch_model).get_result() + id=data['instanceId'], instance_patch=instance_patch_model + ).get_result() # end-update_instance assert instance is not None @@ -1849,8 +1813,7 @@ def test_get_instance_initialization_example(self): print('\nget_instance_initialization() result:') # begin-get_instance_initialization - instance_initialization = vpc_service.get_instance_initialization( - id=data['instanceId']).get_result() + instance_initialization = vpc_service.get_instance_initialization(id=data['instanceId']).get_result() # end-get_instance_initialization assert instance_initialization is not None @@ -1868,7 +1831,8 @@ def test_create_instance_action_example(self): # begin-create_instance_action instance_action = vpc_service.create_instance_action( - instance_id=data['instanceId'], type='reboot').get_result() + instance_id=data['instanceId'], type='reboot' + ).get_result() # end-create_instance_action assert instance_action is not None @@ -1876,7 +1840,6 @@ def test_create_instance_action_example(self): except ApiException as e: pytest.fail(str(e)) - @needscredentials def test_list_instance_cluster_network_attachments_example(self): """ @@ -1929,7 +1892,7 @@ def test_create_cluster_network_attachment_example(self): # end-create_cluster_network_attachment assert instance_cluster_network_attachment is not None - data['instanceClusterNetworkAttachmentId']=instance_cluster_network_attachment['id'] + data['instanceClusterNetworkAttachmentId'] = instance_cluster_network_attachment['id'] except ApiException as e: pytest.fail(str(e)) @@ -1984,7 +1947,6 @@ def test_update_instance_cluster_network_attachment_example(self): except ApiException as e: pytest.fail(str(e)) - @needscredentials @pytest.mark.skip(reason="mock") def test_create_instance_console_access_token_example(self): @@ -1996,7 +1958,8 @@ def test_create_instance_console_access_token_example(self): # begin-create_instance_console_access_token instance_console_access_token = vpc_service.create_instance_console_access_token( - instance_id=data['instanceId'], console_type='serial').get_result() + instance_id=data['instanceId'], console_type='serial' + ).get_result() assert instance_console_access_token is not None @@ -2018,7 +1981,7 @@ def test_list_instance_disks_example(self): instance_disk_collection = vpc_service.list_instance_disks(instance_id=data['instanceId']).get_result() assert instance_disk_collection is not None - data['instanceDiskId']=instance_disk_collection['disks'][0]['id'] + data['instanceDiskId'] = instance_disk_collection['disks'][0]['id'] # end-list_instance_disks @@ -2036,7 +1999,8 @@ def test_get_instance_disk_example(self): # begin-get_instance_disk instance_disk = vpc_service.get_instance_disk( - instance_id=data['instanceId'], id=data['instanceDiskId']).get_result() + instance_id=data['instanceId'], id=data['instanceDiskId'] + ).get_result() assert instance_disk is not None @@ -2055,14 +2019,11 @@ def test_update_instance_disk_example(self): print('\nupdate_instance_disk() result:') # begin-update_instance_disk - instance_disk_patch_model = { - 'name': 'my-instance-disk-updated' - } + instance_disk_patch_model = {'name': 'my-instance-disk-updated'} instance_disk = vpc_service.update_instance_disk( - instance_id=data['instanceId'], - id=data['instanceDiskId'], - instance_disk_patch=instance_disk_patch_model).get_result() + instance_id=data['instanceId'], id=data['instanceDiskId'], instance_disk_patch=instance_disk_patch_model + ).get_result() assert instance_disk is not None @@ -2081,7 +2042,8 @@ def test_list_instance_network_interfaces_example(self): # begin-list_instance_network_interfaces network_interface_unpaginated_collection = vpc_service.list_instance_network_interfaces( - instance_id=data['instanceId']).get_result() + instance_id=data['instanceId'] + ).get_result() # end-list_instance_network_interfaces assert network_interface_unpaginated_collection is not None @@ -2102,14 +2064,13 @@ def test_create_instance_network_interface_example(self): subnet_identity_model['id'] = data['subnetId'] network_interface = vpc_service.create_instance_network_interface( - name='my-network-interface', - instance_id=data['instanceId'], - subnet=subnet_identity_model).get_result() + name='my-network-interface', instance_id=data['instanceId'], subnet=subnet_identity_model + ).get_result() # end-create_instance_network_interface assert network_interface is not None - data['eth2Id']=network_interface['id'] + data['eth2Id'] = network_interface['id'] except ApiException as e: pytest.fail(str(e)) @@ -2124,7 +2085,8 @@ def test_get_instance_network_interface_example(self): # begin-get_instance_network_interface network_interface = vpc_service.get_instance_network_interface( - instance_id=data['instanceId'], id=data['eth2Id']).get_result() + instance_id=data['instanceId'], id=data['eth2Id'] + ).get_result() # end-get_instance_network_interface @@ -2147,9 +2109,7 @@ def test_update_instance_network_interface_example(self): network_interface_patch_model['allow_ip_spoofing'] = True network_interface = vpc_service.update_instance_network_interface( - instance_id=data['instanceId'], - id=data['eth2Id'], - network_interface_patch=network_interface_patch_model + instance_id=data['instanceId'], id=data['eth2Id'], network_interface_patch=network_interface_patch_model ).get_result() # end-update_instance_network_interface @@ -2169,9 +2129,8 @@ def test_add_instance_network_interface_floating_ip_example(self): # begin-add_instance_network_interface_floating_ip floating_ip = vpc_service.add_instance_network_interface_floating_ip( - instance_id=data['instanceId'], - network_interface_id=data['eth2Id'], - id=data['floatingIpId']).get_result() + instance_id=data['instanceId'], network_interface_id=data['eth2Id'], id=data['floatingIpId'] + ).get_result() # end-add_instance_network_interface_floating_ip @@ -2190,8 +2149,8 @@ def test_list_instance_network_interface_floating_ips_example(self): # begin-list_instance_network_interface_floating_ips floating_ip_unpaginated_collection = vpc_service.list_instance_network_interface_floating_ips( - instance_id=data['instanceId'], - network_interface_id=data['eth2Id']).get_result() + instance_id=data['instanceId'], network_interface_id=data['eth2Id'] + ).get_result() # end-list_instance_network_interface_floating_ips @@ -2210,9 +2169,8 @@ def test_get_instance_network_interface_floating_ip_example(self): # begin-get_instance_network_interface_floating_ip floating_ip = vpc_service.get_instance_network_interface_floating_ip( - instance_id=data['instanceId'], - network_interface_id=data['eth2Id'], - id=data['floatingIpId']).get_result() + instance_id=data['instanceId'], network_interface_id=data['eth2Id'], id=data['floatingIpId'] + ).get_result() # end-get_instance_network_interface_floating_ip @@ -2259,16 +2217,14 @@ def test_get_instance_network_interface_ip_example(self): # begin-get_instance_network_interface_ip reserved_ip = vpc_service.get_instance_network_interface_ip( - instance_id=data['instanceId'], - network_interface_id=data['eth2Id'], - id=data['subnetReservedIp'] + instance_id=data['instanceId'], network_interface_id=data['eth2Id'], id=data['subnetReservedIp'] ).get_result() - # end-get_instance_network_interface_ip assert reserved_ip is not None except ApiException as e: pytest.fail(str(e)) + @needscredentials def test_list_instance_volume_attachments_example(self): """ @@ -2279,7 +2235,8 @@ def test_list_instance_volume_attachments_example(self): # begin-list_instance_volume_attachments volume_attachment_collection = vpc_service.list_instance_volume_attachments( - instance_id=data['instanceId']).get_result() + instance_id=data['instanceId'] + ).get_result() # end-list_instance_volume_attachments @@ -2303,13 +2260,14 @@ def test_create_instance_volume_attachment_example(self): volume_attachment = vpc_service.create_instance_volume_attachment( instance_id=data['instanceId'], volume=volume_attachment_prototype_volume_model, - name='my-instance-volume-attachment', - delete_volume_on_instance_delete=True).get_result() + name='my-instance-volume-attachment', + delete_volume_on_instance_delete=True, + ).get_result() # end-create_instance_volume_attachment assert volume_attachment is not None - data['volumeAttachmentId']=volume_attachment['id'] + data['volumeAttachmentId'] = volume_attachment['id'] except ApiException as e: pytest.fail(str(e)) @@ -2324,7 +2282,8 @@ def test_get_instance_volume_attachment_example(self): # begin-get_instance_volume_attachment volume_attachment = vpc_service.get_instance_volume_attachment( - instance_id=data['instanceId'], id=data['volumeAttachmentId']).get_result() + instance_id=data['instanceId'], id=data['volumeAttachmentId'] + ).get_result() # end-get_instance_volume_attachment @@ -2348,7 +2307,7 @@ def test_update_instance_volume_attachment_example(self): volume_attachment = vpc_service.update_instance_volume_attachment( instance_id=data['instanceId'], id=data['volumeAttachmentId'], - volume_attachment_patch=volume_attachment_patch_model + volume_attachment_patch=volume_attachment_patch_model, ).get_result() # end-update_instance_volume_attachment @@ -2397,15 +2356,16 @@ def test_create_reservation_example(self): zone_identity_model['name'] = data['zone'] reservation = vpc_service.create_reservation( - capacity=capacity_model, - committed_use=committed_use_model, - profile=profile_model, - zone=zone_identity_model, - name='my-reservation').get_result() + capacity=capacity_model, + committed_use=committed_use_model, + profile=profile_model, + zone=zone_identity_model, + name='my-reservation', + ).get_result() # end-create_reservation assert reservation['id'] is not None - data['reservationId']=reservation['id'] + data['reservationId'] = reservation['id'] except ApiException as e: pytest.fail(str(e)) @@ -2420,10 +2380,11 @@ def test_update_reservation_example(self): # begin-update_reservation reservation_patch_model = {} - reservation_patch_model['name'] ='my-reservation-updated' + reservation_patch_model['name'] = 'my-reservation-updated' reservation = vpc_service.update_reservation( - id=data['reservationId'], reservation_patch=reservation_patch_model).get_result() + id=data['reservationId'], reservation_patch=reservation_patch_model + ).get_result() # end-update_reservation assert reservation is not None @@ -2440,8 +2401,7 @@ def test_activate_reservation_example(self): print('\nactivate_reservation() result:') # begin-activate_reservation - response = vpc_service.activate_reservation( - id=data['reservationId']).get_result() + response = vpc_service.activate_reservation(id=data['reservationId']).get_result() # end-activate_reservation except ApiException as e: @@ -2456,8 +2416,7 @@ def test_get_reservation_example(self): print('\nget_reservation() result:') # begin-activate_reservation - reservation = vpc_service.get_reservation( - id=data['reservationId']).get_result() + reservation = vpc_service.get_reservation(id=data['reservationId']).get_result() # end-get_reservation assert reservation is not None @@ -2490,7 +2449,7 @@ def test_create_instance_with_reservation_example(self): zone_identity_model['name'] = data['zone'] reservation_identity_model = {} - reservation_identity_model['id'] = data['reservationId'] + reservation_identity_model['id'] = data['reservationId'] reservation_affinity_model = {} reservation_affinity_model['policy'] = 'manual' @@ -2508,13 +2467,12 @@ def test_create_instance_with_reservation_example(self): instance_prototype_model['image'] = image_identity_model instance_prototype_model['reservation_affinity'] = reservation_affinity_model - instance = vpc_service.create_instance( - instance_prototype=instance_prototype_model).get_result() + instance = vpc_service.create_instance(instance_prototype=instance_prototype_model).get_result() # end-create_instance assert instance is not None - data['instanceIdWithRes']=instance['id'] + data['instanceIdWithRes'] = instance['id'] except ApiException as e: pytest.fail(str(e)) @@ -2529,19 +2487,19 @@ def test_update_instance_with_reservation_example(self): # begin-update_instance reservation_identity_model = {} - reservation_identity_model['id'] = data['reservationId'] + reservation_identity_model['id'] = data['reservationId'] reservation_affinity_model = {} reservation_affinity_model['policy'] = 'manual' reservation_affinity_model['pool'] = [reservation_identity_model] instance_patch_model = {} - instance_patch_model['name']='my-instance-updated' + instance_patch_model['name'] = 'my-instance-updated' instance_patch_model['reservation_affinity'] = reservation_affinity_model instance = vpc_service.update_instance( - id=data['instanceId'], - instance_patch=instance_patch_model).get_result() + id=data['instanceId'], instance_patch=instance_patch_model + ).get_result() # end-update_instance assert instance is not None @@ -2549,7 +2507,6 @@ def test_update_instance_with_reservation_example(self): except ApiException as e: pytest.fail(str(e)) - @needscredentials @pytest.mark.skip(reason="mock") def test_delete_reservation_example(self): @@ -2559,14 +2516,12 @@ def test_delete_reservation_example(self): try: # begin-delete_reservation - response = vpc_service.delete_reservation( - id=data['reservationId']) + response = vpc_service.delete_reservation(id=data['reservationId']) assert response is not None # end-delete_reservation - print('\ndelete_reservation() response status code: ', - response.get_status_code()) + print('\ndelete_reservation() response status code: ', response.get_status_code()) except ApiException as e: pytest.fail(str(e)) @@ -2616,12 +2571,13 @@ def test_create_instance_group_example(self): instance_group = vpc_service.create_instance_group( instance_template=instance_template_identity_model, subnets=[subnet_identity_model], - name='my-instance-group').get_result() + name='my-instance-group', + ).get_result() # end-create_instance_group assert instance_group is not None - data['instanceGroupId']=instance_group['id'] + data['instanceGroupId'] = instance_group['id'] except ApiException as e: pytest.fail(str(e)) @@ -2635,8 +2591,7 @@ def test_get_instance_group_example(self): print('\nget_instance_group() result:') # begin-get_instance_group - instance_group = vpc_service.get_instance_group( - id=data['instanceGroupId']).get_result() + instance_group = vpc_service.get_instance_group(id=data['instanceGroupId']).get_result() # end-get_instance_group @@ -2658,8 +2613,8 @@ def test_update_instance_group_example(self): instance_group_patch_model['name'] = 'my-instance-group-updated' instance_group = vpc_service.update_instance_group( - id=data['instanceGroupId'], - instance_group_patch=instance_group_patch_model).get_result() + id=data['instanceGroupId'], instance_group_patch=instance_group_patch_model + ).get_result() # end-update_instance_group @@ -2709,17 +2664,17 @@ def test_create_instance_group_manager_example(self): instance_group_manager_prototype_model['name'] = 'my-instance-group-manager' instance_group_manager_prototype_model['manager_type'] = 'autoscale' instance_group_manager_prototype_model['max_membership_count'] = 5 - instance_group_manager_prototype_model['manager_type' ] = 'autoscale' + instance_group_manager_prototype_model['manager_type'] = 'autoscale' instance_group_manager = vpc_service.create_instance_group_manager( instance_group_id=data['instanceGroupId'], - instance_group_manager_prototype= - instance_group_manager_prototype_model).get_result() + instance_group_manager_prototype=instance_group_manager_prototype_model, + ).get_result() # end-create_instance_group_manager assert instance_group_manager is not None - data['instanceGroupManagerId']=instance_group_manager['id'] + data['instanceGroupManagerId'] = instance_group_manager['id'] except ApiException as e: pytest.fail(str(e)) @@ -2734,7 +2689,8 @@ def test_get_instance_group_manager_example(self): # begin-get_instance_group_manager instance_group_manager = vpc_service.get_instance_group_manager( - instance_group_id=data['instanceGroupId'], id=data['instanceGroupManagerId']).get_result() + instance_group_id=data['instanceGroupId'], id=data['instanceGroupManagerId'] + ).get_result() # end-get_instance_group_manager @@ -2758,7 +2714,7 @@ def test_update_instance_group_manager_example(self): instance_group_manager = vpc_service.update_instance_group_manager( instance_group_id=data['instanceGroupId'], id=data['instanceGroupManagerId'], - instance_group_manager_patch=instance_group_manager_patch_model + instance_group_manager_patch=instance_group_manager_patch_model, ).get_result() # end-update_instance_group_manager @@ -2811,19 +2767,20 @@ def test_create_instance_group_manager_action_example(self): instance_group_manager_action_prototype_model = {} instance_group_manager_action_prototype_model['name'] = 'my-instance-group-manager-action' - instance_group_manager_action_prototype_model['group'] = instance_group_manager_scheduled_action_group_prototype_model - + instance_group_manager_action_prototype_model['group'] = ( + instance_group_manager_scheduled_action_group_prototype_model + ) instance_group_manager_action = vpc_service.create_instance_group_manager_action( instance_group_id=data['instanceGroupId'], instance_group_manager_id=data['instanceGroupManagerId'], - instance_group_manager_action_prototype= - instance_group_manager_action_prototype_model).get_result() + instance_group_manager_action_prototype=instance_group_manager_action_prototype_model, + ).get_result() # end-create_instance_group_manager_action assert instance_group_manager_action is not None - data['instanceGroupManagerActionId']=instance_group_manager_action['id'] + data['instanceGroupManagerActionId'] = instance_group_manager_action['id'] except ApiException as e: pytest.fail(str(e)) @@ -2840,7 +2797,8 @@ def test_get_instance_group_manager_action_example(self): instance_group_manager_action = vpc_service.get_instance_group_manager_action( instance_group_id=data['instanceGroupId'], instance_group_manager_id=data['instanceGroupManagerId'], - id=data['instanceGroupManagerActionId']).get_result() + id=data['instanceGroupManagerActionId'], + ).get_result() # end-get_instance_group_manager_action @@ -2865,8 +2823,8 @@ def test_update_instance_group_manager_action_example(self): instance_group_id=data['instanceGroupId'], instance_group_manager_id=data['instanceGroupManagerId'], id=data['instanceGroupManagerActionId'], - instance_group_manager_action_patch= - instance_group_manager_action_patch_model).get_result() + instance_group_manager_action_patch=instance_group_manager_action_patch_model, + ).get_result() # end-update_instance_group_manager_action @@ -2896,7 +2854,6 @@ def test_list_instance_group_manager_policies_example(self): assert next_page is not None all_results.extend(next_page) - # end-list_instance_group_manager_policies print(json.dumps(all_results, indent=2)) @@ -2924,13 +2881,13 @@ def test_create_instance_group_manager_policy_example(self): instance_group_manager_policy = vpc_service.create_instance_group_manager_policy( instance_group_id=data['instanceGroupId'], instance_group_manager_id=data['instanceGroupManagerId'], - instance_group_manager_policy_prototype= - instance_group_manager_policy_prototype_model).get_result() + instance_group_manager_policy_prototype=instance_group_manager_policy_prototype_model, + ).get_result() # end-create_instance_group_manager_policy assert instance_group_manager_policy is not None - data['instanceGroupManagerPolicyId']=instance_group_manager_policy['id'] + data['instanceGroupManagerPolicyId'] = instance_group_manager_policy['id'] except ApiException as e: pytest.fail(str(e)) @@ -2947,7 +2904,8 @@ def test_get_instance_group_manager_policy_example(self): instance_group_manager_policy = vpc_service.get_instance_group_manager_policy( instance_group_id=data['instanceGroupId'], instance_group_manager_id=data['instanceGroupManagerId'], - id=data['instanceGroupManagerPolicyId']).get_result() + id=data['instanceGroupManagerPolicyId'], + ).get_result() # end-get_instance_group_manager_policy @@ -2974,8 +2932,8 @@ def test_update_instance_group_manager_policy_example(self): instance_group_id=data['instanceGroupId'], instance_group_manager_id=data['instanceGroupManagerId'], id=data['instanceGroupManagerPolicyId'], - instance_group_manager_policy_patch= - instance_group_manager_policy_patch_model).get_result() + instance_group_manager_policy_patch=instance_group_manager_policy_patch_model, + ).get_result() # end-update_instance_group_manager_policy @@ -3008,7 +2966,7 @@ def test_list_instance_group_memberships_example(self): print(json.dumps(all_results, indent=2)) assert all_results is not None - data['instanceGroupMembershipId']=all_results[0]['id'] + data['instanceGroupMembershipId'] = all_results[0]['id'] except ApiException as e: pytest.fail(str(e)) @@ -3023,7 +2981,8 @@ def test_get_instance_group_membership_example(self): # begin-get_instance_group_membership instance_group_membership = vpc_service.get_instance_group_membership( - instance_group_id=data['instanceGroupId'], id=data['instanceGroupMembershipId']).get_result() + instance_group_id=data['instanceGroupId'], id=data['instanceGroupMembershipId'] + ).get_result() # end-get_instance_group_membership @@ -3047,8 +3006,8 @@ def test_update_instance_group_membership_example(self): instance_group_membership = vpc_service.update_instance_group_membership( instance_group_id=data['instanceGroupId'], id=data['instanceGroupMembershipId'], - instance_group_membership_patch= - instance_group_membership_patch_model).get_result() + instance_group_membership_patch=instance_group_membership_patch_model, + ).get_result() # end-update_instance_group_membership @@ -3099,12 +3058,13 @@ def test_create_dedicated_host_group_example(self): zone_identity_model['name'] = data['zone'] dedicated_host_group = vpc_service.create_dedicated_host_group( - class_='mx2', family='balanced', zone=zone_identity_model,name='my-dedicated-host-group').get_result() + class_='mx2', family='balanced', zone=zone_identity_model, name='my-dedicated-host-group' + ).get_result() # end-create_dedicated_host_group assert dedicated_host_group is not None - data['dedicatedHostGroupId']=dedicated_host_group['id'] + data['dedicatedHostGroupId'] = dedicated_host_group['id'] except ApiException as e: pytest.fail(str(e)) @@ -3118,8 +3078,7 @@ def test_get_dedicated_host_group_example(self): print('\nget_dedicated_host_group() result:') # begin-get_dedicated_host_group - dedicated_host_group = vpc_service.get_dedicated_host_group( - id=data['dedicatedHostGroupId']).get_result() + dedicated_host_group = vpc_service.get_dedicated_host_group(id=data['dedicatedHostGroupId']).get_result() # end-get_dedicated_host_group @@ -3141,8 +3100,7 @@ def test_update_dedicated_host_group_example(self): dedicated_host_group_patch_model['name'] = 'my-host-group-updated' dedicated_host_group = vpc_service.update_dedicated_host_group( - id=data['dedicatedHostGroupId'], - dedicated_host_group_patch=dedicated_host_group_patch_model + id=data['dedicatedHostGroupId'], dedicated_host_group_patch=dedicated_host_group_patch_model ).get_result() # end-update_dedicated_host_group @@ -3175,7 +3133,7 @@ def test_list_dedicated_host_profiles_example(self): print(json.dumps(all_results, indent=2)) assert all_results is not None - data['dhProfile']="mx2d-host-152x1216" + data['dhProfile'] = "mx2d-host-152x1216" except ApiException as e: pytest.fail(str(e)) @@ -3189,8 +3147,7 @@ def test_get_dedicated_host_profile_example(self): print('\nget_dedicated_host_profile() result:') # begin-get_dedicated_host_profile - dedicated_host_profile = vpc_service.get_dedicated_host_profile( - name=data['dhProfile']).get_result() + dedicated_host_profile = vpc_service.get_dedicated_host_profile(name=data['dhProfile']).get_result() print(json.dumps(dedicated_host_profile, indent=2)) # end-get_dedicated_host_profile @@ -3256,7 +3213,7 @@ def test_create_dedicated_host_example(self): # end-create_dedicated_host assert dedicated_host is not None - data['dedicatedHostId']=dedicated_host['id'] + data['dedicatedHostId'] = dedicated_host['id'] except ApiException as e: pytest.fail(str(e)) @@ -3270,8 +3227,7 @@ def test_get_dedicated_host_example(self): print('\nget_dedicated_host() result:') # begin-get_dedicated_host - dedicated_host = vpc_service.get_dedicated_host( - id=data['dedicatedHostId']).get_result() + dedicated_host = vpc_service.get_dedicated_host(id=data['dedicatedHostId']).get_result() # end-get_dedicated_host @@ -3288,26 +3244,25 @@ def test_list_dedicated_host_disks_example(self): try: print('\nlist_dedicated_host_disks() result:') - dedicated_host_collection = vpc_service.list_dedicated_hosts( - ).get_result() + dedicated_host_collection = vpc_service.list_dedicated_hosts().get_result() assert dedicated_host_collection is not None for dh in dedicated_host_collection['dedicated_hosts']: - if len(dh['disks'])>0: - data['dhId']=dh['id'] + if len(dh['disks']) > 0: + data['dhId'] = dh['id'] break # begin-list_dedicated_host_disks - dedicated_host_disk_collection = vpc_service.list_dedicated_host_disks( - dedicated_host_id=data['dedicatedHostId']).get_result() + dedicated_host_id=data['dedicatedHostId'] + ).get_result() # end-list_dedicated_host_disks assert dedicated_host_disk_collection is not None - data['diskId']=dedicated_host_disk_collection['disks'][0]['id'] + data['diskId'] = dedicated_host_disk_collection['disks'][0]['id'] except ApiException as e: pytest.fail(str(e)) @@ -3322,7 +3277,8 @@ def test_get_dedicated_host_disk_example(self): # begin-get_dedicated_host_disk dedicated_host_disk = vpc_service.get_dedicated_host_disk( - dedicated_host_id=data['dedicatedHostId'], id=data['diskId']).get_result() + dedicated_host_id=data['dedicatedHostId'], id=data['diskId'] + ).get_result() # end-get_dedicated_host_disk @@ -3346,7 +3302,7 @@ def test_update_dedicated_host_disk_example(self): dedicated_host_disk = vpc_service.update_dedicated_host_disk( dedicated_host_id=data['dedicatedHostId'], id=data['diskId'], - dedicated_host_disk_patch=dedicated_host_disk_patch_model + dedicated_host_disk_patch=dedicated_host_disk_patch_model, ).get_result() # end-update_dedicated_host_disk @@ -3356,7 +3312,6 @@ def test_update_dedicated_host_disk_example(self): except ApiException as e: pytest.fail(str(e)) - @needscredentials def test_update_dedicated_host_example(self): """ @@ -3371,8 +3326,8 @@ def test_update_dedicated_host_example(self): dedicated_host_patch_model['instance_placement_enabled'] = False dedicated_host = vpc_service.update_dedicated_host( - id=data['dedicatedHostId'], - dedicated_host_patch=dedicated_host_patch_model).get_result() + id=data['dedicatedHostId'], dedicated_host_patch=dedicated_host_patch_model + ).get_result() # end-update_dedicated_host @@ -3381,7 +3336,6 @@ def test_update_dedicated_host_example(self): except ApiException as e: pytest.fail(str(e)) - @needscredentials def test_list_snapshots_example(self): """ @@ -3429,40 +3383,33 @@ def test_create_snapshot_example(self): snapshot_clone_prototype_model = { 'zone': zone_identity_model, } - + snapshot_prototype_model = { 'clones': [snapshot_clone_prototype_model], 'source_volume': volume_identity_model, - 'name': 'my-snapshot-1' + 'name': 'my-snapshot-1', } - snapshot = vpc_service.create_snapshot( - snapshot_prototype=snapshot_prototype_model).get_result() + snapshot = vpc_service.create_snapshot(snapshot_prototype=snapshot_prototype_model).get_result() # end-create_snapshot assert snapshot is not None - data['snapshotId']=snapshot['id'] - data['snapshotCRN']=snapshot['crn'] + data['snapshotId'] = snapshot['id'] + data['snapshotCRN'] = snapshot['crn'] volume_identity_model = {} volume_identity_model['id'] = data['volumeId'] - - snapshot_prototype_model = { - 'source_volume': volume_identity_model, - 'name': 'my-snapshot-2' - } - snapshot = vpc_service.create_snapshot( - snapshot_prototype=snapshot_prototype_model) - + snapshot_prototype_model = {'source_volume': volume_identity_model, 'name': 'my-snapshot-2'} + snapshot = vpc_service.create_snapshot(snapshot_prototype=snapshot_prototype_model) + # copy snapshot snapshot_identity_by_crn_model = {} # SnapshotIdentityByCRN snapshot_identity_by_crn_model['crn'] = data['snapshotCRN'] source_snapshot_prototype_model = { - 'source_snapshot' : snapshot_identity_by_crn_model, - 'name': 'source-snapshot-copy' + 'source_snapshot': snapshot_identity_by_crn_model, + 'name': 'source-snapshot-copy', } - snapshotCRC = vpc_service.create_snapshot( - snapshot_prototype=source_snapshot_prototype_model) + snapshotCRC = vpc_service.create_snapshot(snapshot_prototype=source_snapshot_prototype_model) assert snapshotCRC is not None print(snapshotCRC) except ApiException as e: @@ -3499,8 +3446,8 @@ def test_update_snapshot_example(self): snapshot_patch_model['name'] = 'my-snapshot-updated' snapshot = vpc_service.update_snapshot( - id=data['snapshotId'], - snapshot_patch=snapshot_patch_model).get_result() + id=data['snapshotId'], snapshot_patch=snapshot_patch_model + ).get_result() # end-update_snapshot @@ -3527,7 +3474,7 @@ def test_list_snapshot_clones_example(self): print(json.dumps(snapshot_clone_collection, indent=2)) # end-list_snapshot_clones - + except ApiException as e: pytest.fail(str(e)) @@ -3599,7 +3546,6 @@ def test_list_share_profiles_example(self): assert next_page is not None all_results.extend(next_page) - # end-list_share_profiles print(json.dumps(all_results, indent=2)) data['shareProfileName'] = all_results[0]['name'] @@ -3622,7 +3568,6 @@ def test_get_share_profile_example(self): ) share_profile = response.get_result() - # end-get_share_profile print(json.dumps(share_profile, indent=2)) assert share_profile is not None @@ -3650,7 +3595,6 @@ def test_list_shares_example(self): assert next_page is not None all_results.extend(next_page) - # end-list_shares print(json.dumps(all_results, indent=2)) assert all_results is not None @@ -3687,7 +3631,7 @@ def test_create_share_example(self): ) share = response.get_result() - #replica share + # replica share source_share_prototype_model = { 'id': share['id'], } @@ -3705,13 +3649,12 @@ def test_create_share_example(self): share_replica = response_replica.get_result() # end-create_share print(json.dumps(share, indent=2)) - data['shareId']=share['id'] - data['shareCRN']=share['crn'] - data['shareReplicaId']=share_replica['id'] - data['shareReplicaETag']=response_replica.get_headers()['ETag'] + data['shareId'] = share['id'] + data['shareCRN'] = share['crn'] + data['shareReplicaId'] = share_replica['id'] + data['shareReplicaETag'] = response_replica.get_headers()['ETag'] assert share is not None assert share_replica is not None - except ApiException as e: pytest.fail(str(e)) @@ -3725,9 +3668,7 @@ def test_create_accessor_share_example(self): print('\ncreate_share() result:') # begin-create_share - share_identity = { - 'crn': data["shareCRN"] - } + share_identity = {'crn': data["shareCRN"]} share_prototype_model = { 'origin_share': share_identity, 'name': 'my-accessor-share', @@ -3739,9 +3680,8 @@ def test_create_accessor_share_example(self): share = response.get_result() # end-create_share - data['shareAccessorId']=share['id'] + data['shareAccessorId'] = share['id'] assert share is not None - except ApiException as e: pytest.fail(str(e)) @@ -3760,7 +3700,6 @@ def test_get_share_example(self): ) share = response.get_result() - # end-get_share print(json.dumps(share, indent=2)) data['shareETag'] = response.get_headers()['ETag'] @@ -3778,8 +3717,7 @@ def test_update_share_example(self): print('\nupdate_share() result:') # begin-update_share - share_patch_model = { - } + share_patch_model = {} share_patch_model['name'] = 'my-share-updated' response = vpc_service.update_share( @@ -3789,7 +3727,6 @@ def test_update_share_example(self): ) share = response.get_result() - # end-update_share print(json.dumps(share, indent=2)) data['shareETag'] = response.get_headers()['ETag'] @@ -3861,11 +3798,11 @@ def test_delete_share_accessor_binding_example(self): ) # end-delete_share_accessor_binding - print('\ndelete_share_accessor_binding() response status code: ', - response.get_status_code()) + print('\ndelete_share_accessor_binding() response status code: ', response.get_status_code()) except ApiException as e: pytest.fail(str(e)) + @needscredentials def test_failover_share_example(self): """ @@ -3905,7 +3842,6 @@ def test_list_share_mount_targets_example(self): assert next_page is not None all_results.extend(next_page) - # end-list_share_mount_targets print(json.dumps(all_results, indent=2)) assert all_results is not None @@ -3940,7 +3876,6 @@ def test_create_share_mount_target_example(self): ) share_mount_target = response.get_result() - # end-create_share_mount_target print(json.dumps(share_mount_target, indent=2)) data['shareMountTargetId'] = share_mount_target['id'] @@ -3964,7 +3899,6 @@ def test_get_share_mount_target_example(self): ) share_mount_target = response.get_result() - # end-get_share_mount_target print(json.dumps(share_mount_target, indent=2)) assert share_mount_target is not None @@ -3981,8 +3915,7 @@ def test_update_share_mount_target_example(self): print('\nupdate_share_mount_target() result:') # begin-update_share_mount_target - share_mount_target_patch_model = { - } + share_mount_target_patch_model = {} share_mount_target_patch_model['name'] = 'my-share-mount-target-updated' response = vpc_service.update_share_mount_target( @@ -3992,7 +3925,6 @@ def test_update_share_mount_target_example(self): ) share_mount_target = response.get_result() - # end-update_share_mount_target print(json.dumps(share_mount_target, indent=2)) assert share_mount_target is not None @@ -4015,7 +3947,6 @@ def test_get_share_source_example(self): ) share = response.get_result() - # end-get_share_source print(json.dumps(share, indent=2)) assert share is not None @@ -4023,7 +3954,6 @@ def test_get_share_source_example(self): except ApiException as e: pytest.fail(str(e)) - @needscredentials def test_list_regions_example(self): """ @@ -4069,8 +3999,7 @@ def test_list_region_zones_example(self): print('\nlist_region_zones() result:') # begin-list_region_zones - zone_collection = vpc_service.list_region_zones( - region_name='us-east').get_result() + zone_collection = vpc_service.list_region_zones(region_name='us-east').get_result() # end-list_region_zones @@ -4088,8 +4017,7 @@ def test_get_region_zone_example(self): print('\nget_region_zone() result:') # begin-get_region_zone - zone = vpc_service.get_region_zone(region_name='us-east', - name='us-east-1').get_result() + zone = vpc_service.get_region_zone(region_name='us-east', name='us-east-1').get_result() # end-get_region_zone @@ -4098,7 +4026,6 @@ def test_get_region_zone_example(self): except ApiException as e: pytest.fail(str(e)) - @needscredentials def test_list_cluster_network_profiles_example(self): """ @@ -4123,7 +4050,7 @@ def test_list_cluster_network_profiles_example(self): # end-list_cluster_network_profiles assert all_results is not None - data['clusterNetworkProfile']=all_results[0]['name'] + data['clusterNetworkProfile'] = all_results[0]['name'] except ApiException as e: pytest.fail(str(e)) @@ -4210,7 +4137,7 @@ def test_create_cluster_network_example(self): # end-create_cluster_network assert cluster_network is not None - data['clusterNetworkId']=cluster_network['id'] + data['clusterNetworkId'] = cluster_network['id'] except ApiException as e: pytest.fail(str(e)) @@ -4262,7 +4189,7 @@ def test_create_cluster_network_interface_example(self): # end-create_cluster_network_interface assert cluster_network_interface is not None - data['clusterNetworkInterfaceId']=cluster_network_interface['id'] + data['clusterNetworkInterfaceId'] = cluster_network_interface['id'] except ApiException as e: pytest.fail(str(e)) @@ -4370,7 +4297,7 @@ def test_create_cluster_network_subnet_example(self): # end-create_cluster_network_subnet assert cluster_network_subnet is not None - data['clusterNetworkSubnetId']=cluster_network_subnet['id'] + data['clusterNetworkSubnetId'] = cluster_network_subnet['id'] except ApiException as e: pytest.fail(str(e)) @@ -4424,7 +4351,7 @@ def test_create_cluster_network_subnet_reserved_ip_example(self): # end-create_cluster_network_subnet_reserved_ip assert cluster_network_subnet_reserved_ip is not None - data['clusterNetworkSubnetReservedIpId']=cluster_network_subnet_reserved_ip['id'] + data['clusterNetworkSubnetReservedIpId'] = cluster_network_subnet_reserved_ip['id'] except ApiException as e: pytest.fail(str(e)) @@ -4463,7 +4390,7 @@ def test_update_cluster_network_subnet_reserved_ip_example(self): # begin-update_cluster_network_subnet_reserved_ip cluster_network_subnet_reserved_ip_patch_model = { - 'name':'my-cluster-network-subnet-reserved-ip-updated', + 'name': 'my-cluster-network-subnet-reserved-ip-updated', } response = vpc_service.update_cluster_network_subnet_reserved_ip( @@ -4584,7 +4511,6 @@ def test_update_cluster_network_example(self): except ApiException as e: pytest.fail(str(e)) - @needscredentials def test_list_public_gateways_example(self): """ @@ -4628,14 +4554,13 @@ def test_create_public_gateway_example(self): zone_identity_model['name'] = data['zone'] public_gateway = vpc_service.create_public_gateway( - vpc=vpc_identity_model, - zone=zone_identity_model, - name='my-public-gateway').get_result() + vpc=vpc_identity_model, zone=zone_identity_model, name='my-public-gateway' + ).get_result() # end-create_public_gateway assert public_gateway is not None - data['publicGatewayId']=public_gateway['id'] + data['publicGatewayId'] = public_gateway['id'] except ApiException as e: pytest.fail(str(e)) @@ -4649,8 +4574,7 @@ def test_get_public_gateway_example(self): print('\nget_public_gateway() result:') # begin-get_public_gateway - public_gateway = vpc_service.get_public_gateway( - id=data['publicGatewayId']).get_result() + public_gateway = vpc_service.get_public_gateway(id=data['publicGatewayId']).get_result() # end-get_public_gateway @@ -4672,8 +4596,8 @@ def test_update_public_gateway_example(self): public_gateway_patch_model['name'] = 'my-public-gateway-updated' public_gateway = vpc_service.update_public_gateway( - id=data['publicGatewayId'], - public_gateway_patch=public_gateway_patch_model).get_result() + id=data['publicGatewayId'], public_gateway_patch=public_gateway_patch_model + ).get_result() # end-update_public_gateway @@ -4682,7 +4606,6 @@ def test_update_public_gateway_example(self): except ApiException as e: pytest.fail(str(e)) - @needscredentials def test_list_network_acls_example(self): """ @@ -4731,17 +4654,16 @@ def test_create_network_acl_example(self): network_acl_prototype_model_rules['protocol'] = ['tcp'] network_acl_prototype_model = {} - network_acl_prototype_model['name'] = 'my-network-acl-rule', - network_acl_prototype_model['vpc'] = vpc_identity_model, + network_acl_prototype_model['name'] = ('my-network-acl-rule',) + network_acl_prototype_model['vpc'] = (vpc_identity_model,) network_acl_prototype_model['rules'] = [network_acl_prototype_model_rules] - network_acl = vpc_service.create_network_acl( - network_acl_prototype=network_acl_prototype_model).get_result() + network_acl = vpc_service.create_network_acl(network_acl_prototype=network_acl_prototype_model).get_result() # end-create_network_acl assert network_acl is not None - data['networkACLId']=network_acl['id'] + data['networkACLId'] = network_acl['id'] except ApiException as e: pytest.fail(str(e)) @@ -4755,8 +4677,7 @@ def test_get_network_acl_example(self): print('\nget_network_acl() result:') # begin-get_network_acl - network_acl = vpc_service.get_network_acl( - id=data['networkACLId']).get_result() + network_acl = vpc_service.get_network_acl(id=data['networkACLId']).get_result() # end-get_network_acl @@ -4778,8 +4699,8 @@ def test_update_network_acl_example(self): network_acl_patch_model['name'] = 'my-network-acl-updated' network_acl = vpc_service.update_network_acl( - id=data['networkACLId'], - network_acl_patch=network_acl_patch_model).get_result() + id=data['networkACLId'], network_acl_patch=network_acl_patch_model + ).get_result() # end-update_network_acl @@ -4837,14 +4758,13 @@ def test_create_network_acl_rule_example(self): network_acl_rule_prototype_model['type'] = 8 network_acl_rule = vpc_service.create_network_acl_rule( - network_acl_id=data['networkACLId'], - network_acl_rule_prototype=network_acl_rule_prototype_model + network_acl_id=data['networkACLId'], network_acl_rule_prototype=network_acl_rule_prototype_model ).get_result() # end-create_network_acl_rule assert network_acl_rule is not None - data['networkACLRuleId']=network_acl_rule['id'] + data['networkACLRuleId'] = network_acl_rule['id'] except ApiException as e: pytest.fail(str(e)) @@ -4859,7 +4779,8 @@ def test_get_network_acl_rule_example(self): # begin-get_network_acl_rule network_acl_rule = vpc_service.get_network_acl_rule( - network_acl_id=data['networkACLId'], id=data['networkACLRuleId']).get_result() + network_acl_id=data['networkACLId'], id=data['networkACLRuleId'] + ).get_result() # end-get_network_acl_rule @@ -4883,8 +4804,8 @@ def test_update_network_acl_rule_example(self): network_acl_rule = vpc_service.update_network_acl_rule( network_acl_id=data['networkACLId'], id=data['networkACLRuleId'], - network_acl_rule_patch=network_acl_rule_patch_model).get_result( - ) + network_acl_rule_patch=network_acl_rule_patch_model, + ).get_result() # end-update_network_acl_rule @@ -4934,12 +4855,14 @@ def test_create_security_group_example(self): vpc_identity_model = {} vpc_identity_model['id'] = data['vpcID'] - security_group = vpc_service.create_security_group(vpc=vpc_identity_model,name='my-security-group').get_result() + security_group = vpc_service.create_security_group( + vpc=vpc_identity_model, name='my-security-group' + ).get_result() # end-create_security_group assert security_group is not None - data['securityGroupId']=security_group['id'] + data['securityGroupId'] = security_group['id'] except ApiException as e: pytest.fail(str(e)) @@ -4953,8 +4876,7 @@ def test_get_security_group_example(self): print('\nget_security_group() result:') # begin-get_security_group - security_group = vpc_service.get_security_group( - id=data['securityGroupId']).get_result() + security_group = vpc_service.get_security_group(id=data['securityGroupId']).get_result() # end-get_security_group @@ -4976,8 +4898,8 @@ def test_update_security_group_example(self): security_group_patch_model['name'] = 'my-security-group-updated' security_group = vpc_service.update_security_group( - id=data['securityGroupId'], - security_group_patch=security_group_patch_model).get_result() + id=data['securityGroupId'], security_group_patch=security_group_patch_model + ).get_result() # end-update_security_group @@ -4996,7 +4918,8 @@ def test_list_security_group_rules_example(self): # begin-list_security_group_rules security_group_rule_collection = vpc_service.list_security_group_rules( - security_group_id=data['securityGroupId']).get_result() + security_group_id=data['securityGroupId'] + ).get_result() # end-list_security_group_rules @@ -5027,13 +4950,13 @@ def test_create_security_group_rule_example(self): security_group_rule = vpc_service.create_security_group_rule( security_group_id=data['securityGroupId'], - security_group_rule_prototype=security_group_rule_prototype_model + security_group_rule_prototype=security_group_rule_prototype_model, ).get_result() # end-create_security_group_rule assert security_group_rule is not None - data['securityGroupRuleId']=security_group_rule['id'] + data['securityGroupRuleId'] = security_group_rule['id'] except ApiException as e: pytest.fail(str(e)) @@ -5048,7 +4971,8 @@ def test_get_security_group_rule_example(self): # begin-get_security_group_rule security_group_rule = vpc_service.get_security_group_rule( - security_group_id=data['securityGroupId'], id=data['securityGroupRuleId']).get_result() + security_group_id=data['securityGroupId'], id=data['securityGroupRuleId'] + ).get_result() # end-get_security_group_rule @@ -5072,7 +4996,7 @@ def test_update_security_group_rule_example(self): security_group_rule = vpc_service.update_security_group_rule( security_group_id=data['securityGroupId'], id=data['securityGroupRuleId'], - security_group_rule_patch=security_group_rule_patch_model + security_group_rule_patch=security_group_rule_patch_model, ).get_result() # end-update_security_group_rule @@ -5102,7 +5026,6 @@ def test_list_security_group_targets_example(self): assert next_page is not None all_results.extend(next_page) - # end-list_security_group_targets print(json.dumps(all_results, indent=2)) @@ -5122,12 +5045,13 @@ def test_create_security_group_target_binding_example(self): # begin-create_security_group_target_binding security_group_target_reference = vpc_service.create_security_group_target_binding( - security_group_id=data['securityGroupId'], id=data['eth2Id']).get_result() + security_group_id=data['securityGroupId'], id=data['eth2Id'] + ).get_result() # end-create_security_group_target_binding assert security_group_target_reference is not None - data['targetId']=security_group_target_reference['id'] + data['targetId'] = security_group_target_reference['id'] except ApiException as e: pytest.fail(str(e)) @@ -5142,7 +5066,8 @@ def test_get_security_group_target_example(self): # begin-get_security_group_target security_group_target_reference = vpc_service.get_security_group_target( - security_group_id=data['securityGroupId'], id=data['targetId']).get_result() + security_group_id=data['securityGroupId'], id=data['targetId'] + ).get_result() # end-get_security_group_target @@ -5170,7 +5095,6 @@ def test_list_ike_policies_example(self): assert next_page is not None all_results.extend(next_page) - # end-list_ike_policies print(json.dumps(all_results, indent=2)) @@ -5194,12 +5118,13 @@ def test_create_ike_policy_example(self): dh_group=14, encryption_algorithm='aes128', ike_version=1, - name='my-ike-policy').get_result() + name='my-ike-policy', + ).get_result() # end-create_ike_policy assert ike_policy is not None - data['ikePolicyId']=ike_policy['id'] + data['ikePolicyId'] = ike_policy['id'] except ApiException as e: pytest.fail(str(e)) @@ -5213,8 +5138,7 @@ def test_get_ike_policy_example(self): print('\nget_ike_policy() result:') # begin-get_ike_policy - ike_policy = vpc_service.get_ike_policy( - id=data['ikePolicyId']).get_result() + ike_policy = vpc_service.get_ike_policy(id=data['ikePolicyId']).get_result() # end-get_ike_policy @@ -5237,8 +5161,8 @@ def test_update_ike_policy_example(self): ike_policy_patch_model['dh_group'] = 15 ike_policy = vpc_service.update_ike_policy( - id=data['ikePolicyId'], - ike_policy_patch=ike_policy_patch_model).get_result() + id=data['ikePolicyId'], ike_policy_patch=ike_policy_patch_model + ).get_result() # end-update_ike_policy @@ -5257,7 +5181,8 @@ def test_list_ike_policy_connections_example(self): # begin-list_ike_policy_connections vpn_gateway_connection_collection = vpc_service.list_ike_policy_connections( - id=data['ikePolicyId']).get_result() + id=data['ikePolicyId'] + ).get_result() # end-list_ike_policy_connections @@ -5285,7 +5210,6 @@ def test_list_ipsec_policies_example(self): assert next_page is not None all_results.extend(next_page) - # end-list_ipsec_policies print(json.dumps(all_results, indent=2)) @@ -5307,13 +5231,15 @@ def test_create_ipsec_policy_example(self): i_psec_policy = vpc_service.create_ipsec_policy( authentication_algorithm='sha256', encryption_algorithm='aes128', - pfs='disabled',key_lifetime=3600, - name='my-ipsec-policy').get_result() + pfs='disabled', + key_lifetime=3600, + name='my-ipsec-policy', + ).get_result() # end-create_ipsec_policy assert i_psec_policy is not None - data['ipsecPolicyId']=i_psec_policy['id'] + data['ipsecPolicyId'] = i_psec_policy['id'] except ApiException as e: pytest.fail(str(e)) @@ -5327,8 +5253,7 @@ def test_get_ipsec_policy_example(self): print('\nget_ipsec_policy() result:') # begin-get_ipsec_policy - i_psec_policy = vpc_service.get_ipsec_policy( - id=data['ipsecPolicyId']).get_result() + i_psec_policy = vpc_service.get_ipsec_policy(id=data['ipsecPolicyId']).get_result() # end-get_ipsec_policy @@ -5351,8 +5276,8 @@ def test_update_ipsec_policy_example(self): i_psec_policy_patch_model['authentication_algorithm'] = 'sha256' i_psec_policy = vpc_service.update_ipsec_policy( - id=data['ipsecPolicyId'], - i_psec_policy_patch=i_psec_policy_patch_model).get_result() + id=data['ipsecPolicyId'], i_psec_policy_patch=i_psec_policy_patch_model + ).get_result() # end-update_ipsec_policy @@ -5371,7 +5296,8 @@ def test_list_ipsec_policy_connections_example(self): # begin-list_ipsec_policy_connections vpn_gateway_connection_collection = vpc_service.list_ipsec_policy_connections( - id=data['ipsecPolicyId']).get_result() + id=data['ipsecPolicyId'] + ).get_result() # end-list_ipsec_policy_connections @@ -5427,14 +5353,13 @@ def test_create_vpn_gateway_example(self): vpn_gateway_prototype_model['name'] = 'my-vpn-gateway' vpn_gateway_prototype_model['mode'] = 'route' - vpn_gateway = vpc_service.create_vpn_gateway( - vpn_gateway_prototype=vpn_gateway_prototype_model).get_result() + vpn_gateway = vpc_service.create_vpn_gateway(vpn_gateway_prototype=vpn_gateway_prototype_model).get_result() # end-create_vpn_gateway assert vpn_gateway is not None - data['vpnGateway']=vpn_gateway - data['vpnGatewayId']=vpn_gateway['id'] + data['vpnGateway'] = vpn_gateway + data['vpnGatewayId'] = vpn_gateway['id'] except ApiException as e: pytest.fail(str(e)) @@ -5448,8 +5373,7 @@ def test_get_vpn_gateway_example(self): print('\nget_vpn_gateway() result:') # begin-get_vpn_gateway - vpn_gateway = vpc_service.get_vpn_gateway( - id=data['vpnGatewayId']).get_result() + vpn_gateway = vpc_service.get_vpn_gateway(id=data['vpnGatewayId']).get_result() # end-get_vpn_gateway @@ -5471,8 +5395,8 @@ def test_update_vpn_gateway_example(self): vpn_gateway_patch_model['name'] = 'my-vpn-gateway-updated' vpn_gateway = vpc_service.update_vpn_gateway( - id=data['vpnGatewayId'], - vpn_gateway_patch=vpn_gateway_patch_model).get_result() + id=data['vpnGatewayId'], vpn_gateway_patch=vpn_gateway_patch_model + ).get_result() # end-update_vpn_gateway @@ -5491,7 +5415,8 @@ def test_list_vpn_gateway_connections_example(self): # begin-list_vpn_gateway_connections vpn_gateway_connection_collection = vpc_service.list_vpn_gateway_connections( - vpn_gateway_id=data['vpnGatewayId']).get_result() + vpn_gateway_id=data['vpnGatewayId'] + ).get_result() # end-list_vpn_gateway_connections @@ -5559,7 +5484,7 @@ def test_create_vpn_gateway_connection_example(self): # end-create_vpn_gateway_connection assert vpn_gateway_connection is not None - data['vpnGatewayConnectionId']=vpn_gateway_connection['id'] + data['vpnGatewayConnectionId'] = vpn_gateway_connection['id'] except ApiException as e: pytest.fail(str(e)) @@ -5574,8 +5499,8 @@ def test_get_vpn_gateway_connection_example(self): # begin-get_vpn_gateway_connection vpn_gateway_connection = vpc_service.get_vpn_gateway_connection( - vpn_gateway_id=data['vpnGatewayId'], - id=data['vpnGatewayConnectionId']).get_result() + vpn_gateway_id=data['vpnGatewayId'], id=data['vpnGatewayConnectionId'] + ).get_result() # end-get_vpn_gateway_connection @@ -5601,7 +5526,7 @@ def test_update_vpn_gateway_connection_example(self): vpn_gateway_connection = vpc_service.update_vpn_gateway_connection( vpn_gateway_id=data['vpnGatewayId'], id=data['vpnGatewayConnectionId'], - vpn_gateway_connection_patch=vpn_gateway_connection_patch_model + vpn_gateway_connection_patch=vpn_gateway_connection_patch_model, ).get_result() # end-update_vpn_gateway_connection @@ -5620,9 +5545,8 @@ def test_add_vpn_gateway_connection_local_cidr_example(self): # begin-add_vpn_gateway_connection_local_cidr response = vpc_service.add_vpn_gateway_connections_local_cidr( - vpn_gateway_id=data['vpnGatewayId'], - id=data['vpnGatewayConnectionId'], - cidr='192.144.0.0/28') + vpn_gateway_id=data['vpnGatewayId'], id=data['vpnGatewayConnectionId'], cidr='192.144.0.0/28' + ) # end-add_vpn_gateway_connection_local_cidr assert response is not None @@ -5640,7 +5564,8 @@ def test_list_vpn_gateway_connection_local_cidrs_example(self): # begin-list_vpn_gateway_connection_local_cidrs vpn_gateway_connection_local_cid_rs = vpc_service.list_vpn_gateway_connections_local_cidrs( - vpn_gateway_id=data['vpnGatewayId'], id=data['vpnGatewayConnectionId']).get_result() + vpn_gateway_id=data['vpnGatewayId'], id=data['vpnGatewayConnectionId'] + ).get_result() # end-list_vpn_gateway_connection_local_cidrs @@ -5658,9 +5583,8 @@ def test_add_vpn_gateway_connection_peer_cidr_example(self): # begin-add_vpn_gateway_connection_peer_cidr response = vpc_service.add_vpn_gateway_connections_peer_cidr( - vpn_gateway_id=data['vpnGatewayId'], - id=data['vpnGatewayConnectionId'], - cidr='192.144.0.0/28') + vpn_gateway_id=data['vpnGatewayId'], id=data['vpnGatewayConnectionId'], cidr='192.144.0.0/28' + ) # end-add_vpn_gateway_connection_peer_cidr assert response is not None @@ -5677,9 +5601,8 @@ def test_check_vpn_gateway_connection_local_cidr_example(self): # begin-check_vpn_gateway_connection_local_cidr response = vpc_service.check_vpn_gateway_connections_local_cidr( - vpn_gateway_id=data['vpnGatewayId'], - id=data['vpnGatewayConnectionId'], - cidr='192.144.0.0/28') + vpn_gateway_id=data['vpnGatewayId'], id=data['vpnGatewayConnectionId'], cidr='192.144.0.0/28' + ) # end-check_vpn_gateway_connection_local_cidr assert response is not None @@ -5697,7 +5620,8 @@ def test_list_vpn_gateway_connection_peer_cidrs_example(self): # begin-list_vpn_gateway_connection_peer_cidrs vpn_gateway_connection_peer_cid_rs = vpc_service.list_vpn_gateway_connections_peer_cidrs( - vpn_gateway_id=data['vpnGatewayId'], id=data['vpnGatewayConnectionId']).get_result() + vpn_gateway_id=data['vpnGatewayId'], id=data['vpnGatewayConnectionId'] + ).get_result() # end-list_vpn_gateway_connection_peer_cidrs @@ -5715,9 +5639,8 @@ def test_check_vpn_gateway_connection_peer_cidr_example(self): # begin-check_vpn_gateway_connection_peer_cidr response = vpc_service.check_vpn_gateway_connections_peer_cidr( - vpn_gateway_id=data['vpnGatewayId'], - id=data['vpnGatewayConnectionId'], - cidr='192.144.0.0/28') + vpn_gateway_id=data['vpnGatewayId'], id=data['vpnGatewayConnectionId'], cidr='192.144.0.0/28' + ) # end-check_vpn_gateway_connection_peer_cidr assert response is not None @@ -5783,14 +5706,14 @@ def test_create_vpn_server_example(self): client_authentication=[vpn_server_authentication_prototype_model], client_ip_pool='172.16.0.0/16', subnets=[subnet_identity_model], - name='my-example-vpn-server' + name='my-example-vpn-server', ).get_result() print(json.dumps(vpn_server, indent=2)) # end-create_vpn_server - data['vpnserverId']=vpn_server['id'] + data['vpnserverId'] = vpn_server['id'] except ApiException as e: pytest.fail(str(e)) @@ -5803,9 +5726,7 @@ def test_get_vpn_server_example(self): print('\nget_vpn_server() result:') # begin-get_vpn_server - vpn_server_response = vpc_service.get_vpn_server( - id=data['vpnserverId'] - ) + vpn_server_response = vpc_service.get_vpn_server(id=data['vpnserverId']) data['created_vpn_server_etag'] = vpn_server_response.get_headers()['ETag'] vpn_server = vpn_server_response.get_result() @@ -5825,12 +5746,12 @@ def test_update_vpn_server_example(self): # begin-update_vpn_server vpn_server_patch_model = {} - vpn_server_patch_model['name']='my-vpn-server-updated' + vpn_server_patch_model['name'] = 'my-vpn-server-updated' vpn_server = vpc_service.update_vpn_server( id=data['vpnserverId'], vpn_server_patch=vpn_server_patch_model, - if_match=data['created_vpn_server_etag'] + if_match=data['created_vpn_server_etag'], ).get_result() print(json.dumps(vpn_server, indent=2)) @@ -5884,7 +5805,7 @@ def test_list_vpn_server_clients_example(self): # end-list_vpn_server_clients print(json.dumps(all_results, indent=2)) - data['vpnserverclientId']=all_results[0]['id'] + data['vpnserverclientId'] = all_results[0]['id'] except ApiException as e: pytest.fail(str(e)) @@ -5898,8 +5819,7 @@ def test_get_vpn_server_client_example(self): # begin-get_vpn_server_client vpn_server_client = vpc_service.get_vpn_server_client( - vpn_server_id=data['vpnserverId'], - id=data['vpnserverclientId'] + vpn_server_id=data['vpnserverId'], id=data['vpnserverclientId'] ).get_result() print(json.dumps(vpn_server_client, indent=2)) @@ -5918,8 +5838,7 @@ def test_disconnect_vpn_client_example(self): # begin-disconnect_vpn_client response = vpc_service.disconnect_vpn_client( - vpn_server_id=data['vpnserverId'], - id=data['vpnserverclientId'] + vpn_server_id=data['vpnserverId'], id=data['vpnserverclientId'] ) # end-disconnect_vpn_client @@ -5928,7 +5847,6 @@ def test_disconnect_vpn_client_example(self): except ApiException as e: pytest.fail(str(e)) - @needscredentials def test_create_vpn_server_route_example(self): """ @@ -5939,17 +5857,16 @@ def test_create_vpn_server_route_example(self): # begin-create_vpn_server_route vpn_server_route = vpc_service.create_vpn_server_route( - vpn_server_id=data['vpnserverId'], - destination='172.16.0.0/16', - name='my-vpn-server-route' + vpn_server_id=data['vpnserverId'], destination='172.16.0.0/16', name='my-vpn-server-route' ).get_result() print(json.dumps(vpn_server_route, indent=2)) # end-create_vpn_server_route - data['vpnserverrouteId']=vpn_server_route['id'] + data['vpnserverrouteId'] = vpn_server_route['id'] except ApiException as e: pytest.fail(str(e)) + @needscredentials @pytest.mark.skip(reason="mock") def test_list_vpn_server_routes_example(self): @@ -5989,8 +5906,7 @@ def test_get_vpn_server_route_example(self): # begin-get_vpn_server_route vpn_server_route = vpc_service.get_vpn_server_route( - vpn_server_id=data['vpnserverId'], - id=data['vpnserverrouteId'] + vpn_server_id=data['vpnserverId'], id=data['vpnserverrouteId'] ).get_result() print(json.dumps(vpn_server_route, indent=2)) @@ -6015,7 +5931,7 @@ def test_update_vpn_server_route_example(self): vpn_server_route = vpc_service.update_vpn_server_route( vpn_server_id=data['vpnserverId'], id=data['vpnserverrouteId'], - vpn_server_route_patch=vpn_server_route_patch_model + vpn_server_route_patch=vpn_server_route_patch_model, ).get_result() print(json.dumps(vpn_server_route, indent=2)) @@ -6034,8 +5950,7 @@ def test_delete_vpn_server_route_example(self): # begin-delete_vpn_server_route response = vpc_service.delete_vpn_server_route( - vpn_server_id=data['vpnserverId'], - id=data['vpnserverrouteId'] + vpn_server_id=data['vpnserverId'], id=data['vpnserverrouteId'] ) # end-delete_vpn_server_route @@ -6053,8 +5968,7 @@ def test_delete_vpn_server_client_example(self): # begin-delete_vpn_server_client response = vpc_service.delete_vpn_server_client( - vpn_server_id=data['vpnserverId'], - id=data['vpnserverclientId'] + vpn_server_id=data['vpnserverId'], id=data['vpnserverclientId'] ) # end-delete_vpn_server_client @@ -6071,10 +5985,7 @@ def test_delete_vpn_server_example(self): try: # begin-delete_vpn_server - response = vpc_service.delete_vpn_server( - id=data['vpnserverId'], - if_match=data['created_vpn_server_etag'] - ) + response = vpc_service.delete_vpn_server(id=data['vpnserverId'], if_match=data['created_vpn_server_etag']) # end-delete_vpn_server print('\ndelete_vpn_server() response status code: ', response.get_status_code()) @@ -6119,8 +6030,7 @@ def test_get_load_balancer_profile_example(self): print('\nget_load_balancer_profile() result:') # begin-get_load_balancer_profile - load_balancer_profile = vpc_service.get_load_balancer_profile( - name='network-fixed').get_result() + load_balancer_profile = vpc_service.get_load_balancer_profile(name='network-fixed').get_result() # end-get_load_balancer_profile @@ -6148,7 +6058,6 @@ def test_list_load_balancers_example(self): assert next_page is not None all_results.extend(next_page) - # end-list_load_balancers print(json.dumps(all_results, indent=2)) @@ -6183,13 +6092,15 @@ def test_create_load_balancer_example(self): load_balancer = vpc_service.create_load_balancer( dns=load_balancer_dns_prototype_model, - is_public=False, subnets=[subnet_identity_model], - name='my-load-balancer').get_result() + is_public=False, + subnets=[subnet_identity_model], + name='my-load-balancer', + ).get_result() # end-create_load_balancer assert load_balancer is not None - data['loadBalancerId']=load_balancer['id'] + data['loadBalancerId'] = load_balancer['id'] except ApiException as e: pytest.fail(str(e)) @@ -6203,8 +6114,7 @@ def test_get_load_balancer_example(self): print('\nget_load_balancer() result:') # begin-get_load_balancer - load_balancer_response = vpc_service.get_load_balancer( - id=data['loadBalancerId']) + load_balancer_response = vpc_service.get_load_balancer(id=data['loadBalancerId']) load_balancer = load_balancer_response.get_result() data['created_load_balancer_etag'] = load_balancer_response.get_headers()['ETag'] # end-get_load_balancer @@ -6240,7 +6150,8 @@ def test_update_load_balancer_example(self): load_balancer = vpc_service.update_load_balancer( id=data['loadBalancerId'], load_balancer_patch=load_balancer_patch_model, - if_match=data['created_load_balancer_etag']).get_result() + if_match=data['created_load_balancer_etag'], + ).get_result() # end-update_load_balancer @@ -6258,8 +6169,7 @@ def test_get_load_balancer_statistics_example(self): print('\nget_load_balancer_statistics() result:') # begin-get_load_balancer_statistics - load_balancer_statistics = vpc_service.get_load_balancer_statistics( - id=data['loadBalancerId']).get_result() + load_balancer_statistics = vpc_service.get_load_balancer_statistics(id=data['loadBalancerId']).get_result() # end-get_load_balancer_statistics @@ -6278,7 +6188,8 @@ def test_list_load_balancer_listeners_example(self): # begin-list_load_balancer_listeners load_balancer_listener_collection = vpc_service.list_load_balancer_listeners( - load_balancer_id=data['loadBalancerId']).get_result() + load_balancer_id=data['loadBalancerId'] + ).get_result() # end-list_load_balancer_listeners @@ -6297,14 +6208,13 @@ def test_create_load_balancer_listener_example(self): # begin-create_load_balancer_listener load_balancer_listener = vpc_service.create_load_balancer_listener( - load_balancer_id=data['loadBalancerId'], port=5656, - idle_connection_timeout=100, - protocol='http').get_result() + load_balancer_id=data['loadBalancerId'], port=5656, idle_connection_timeout=100, protocol='http' + ).get_result() # end-create_load_balancer_listener assert load_balancer_listener is not None - data['listenerId']=load_balancer_listener['id'] + data['listenerId'] = load_balancer_listener['id'] except ApiException as e: pytest.fail(str(e)) @@ -6319,7 +6229,8 @@ def test_get_load_balancer_listener_example(self): # begin-get_load_balancer_listener load_balancer_listener = vpc_service.get_load_balancer_listener( - load_balancer_id=data['loadBalancerId'], id=data['listenerId']).get_result() + load_balancer_id=data['loadBalancerId'], id=data['listenerId'] + ).get_result() # end-get_load_balancer_listener @@ -6352,7 +6263,7 @@ def test_update_load_balancer_listener_example(self): load_balancer_listener = vpc_service.update_load_balancer_listener( load_balancer_id=data['loadBalancerId'], id=data['listenerId'], - load_balancer_listener_patch=load_balancer_listener_patch_model + load_balancer_listener_patch=load_balancer_listener_patch_model, ).get_result() # end-update_load_balancer_listener @@ -6372,8 +6283,8 @@ def test_list_load_balancer_listener_policies_example(self): # begin-list_load_balancer_listener_policies load_balancer_listener_policy_collection = vpc_service.list_load_balancer_listener_policies( - load_balancer_id=data['loadBalancerId'], - listener_id=data['listenerId']).get_result() + load_balancer_id=data['loadBalancerId'], listener_id=data['listenerId'] + ).get_result() # end-list_load_balancer_listener_policies @@ -6396,12 +6307,13 @@ def test_create_load_balancer_listener_policy_example(self): listener_id=data['listenerId'], action='reject', priority=2, - name= 'my-load-balancer-listener-policy').get_result() + name='my-load-balancer-listener-policy', + ).get_result() # end-create_load_balancer_listener_policy assert load_balancer_listener_policy is not None - data['policyId']=load_balancer_listener_policy['id'] + data['policyId'] = load_balancer_listener_policy['id'] except ApiException as e: pytest.fail(str(e)) @@ -6416,9 +6328,8 @@ def test_get_load_balancer_listener_policy_example(self): # begin-get_load_balancer_listener_policy load_balancer_listener_policy = vpc_service.get_load_balancer_listener_policy( - load_balancer_id=data['loadBalancerId'], - listener_id=data['listenerId'], - id=data['policyId']).get_result() + load_balancer_id=data['loadBalancerId'], listener_id=data['listenerId'], id=data['policyId'] + ).get_result() # end-get_load_balancer_listener_policy @@ -6444,8 +6355,8 @@ def test_update_load_balancer_listener_policy_example(self): load_balancer_id=data['loadBalancerId'], listener_id=data['listenerId'], id=data['policyId'], - load_balancer_listener_policy_patch= - load_balancer_listener_policy_patch_model).get_result() + load_balancer_listener_policy_patch=load_balancer_listener_policy_patch_model, + ).get_result() # end-update_load_balancer_listener_policy @@ -6464,9 +6375,8 @@ def test_list_load_balancer_listener_policy_rules_example(self): # begin-list_load_balancer_listener_policy_rules load_balancer_listener_policy_rule_collection = vpc_service.list_load_balancer_listener_policy_rules( - load_balancer_id=data['loadBalancerId'], - listener_id=data['listenerId'], - policy_id=data['policyId']).get_result() + load_balancer_id=data['loadBalancerId'], listener_id=data['listenerId'], policy_id=data['policyId'] + ).get_result() # end-list_load_balancer_listener_policy_rules @@ -6490,12 +6400,13 @@ def test_create_load_balancer_listener_policy_rule_example(self): policy_id=data['policyId'], condition='contains', type='hostname', - value='one').get_result() + value='one', + ).get_result() # end-create_load_balancer_listener_policy_rule assert load_balancer_listener_policy_rule is not None - data['policyRuleId']=load_balancer_listener_policy_rule['id'] + data['policyRuleId'] = load_balancer_listener_policy_rule['id'] except ApiException as e: pytest.fail(str(e)) @@ -6513,7 +6424,8 @@ def test_get_load_balancer_listener_policy_rule_example(self): load_balancer_id=data['loadBalancerId'], listener_id=data['listenerId'], policy_id=data['policyId'], - id=data['policyRuleId']).get_result() + id=data['policyRuleId'], + ).get_result() # end-get_load_balancer_listener_policy_rule @@ -6542,8 +6454,8 @@ def test_update_load_balancer_listener_policy_rule_example(self): listener_id=data['listenerId'], policy_id=data['policyId'], id=data['policyRuleId'], - load_balancer_listener_policy_rule_patch= - load_balancer_listener_policy_rule_patch_model).get_result() + load_balancer_listener_policy_rule_patch=load_balancer_listener_policy_rule_patch_model, + ).get_result() # end-update_load_balancer_listener_policy_rule @@ -6562,7 +6474,8 @@ def test_list_load_balancer_pools_example(self): # begin-list_load_balancer_pools load_balancer_pool_collection = vpc_service.list_load_balancer_pools( - load_balancer_id=data['loadBalancerId']).get_result() + load_balancer_id=data['loadBalancerId'] + ).get_result() # end-list_load_balancer_pools @@ -6583,7 +6496,7 @@ def test_create_load_balancer_pool_example(self): load_balancer_pool_health_monitor_prototype_model = {} load_balancer_pool_health_monitor_prototype_model['delay'] = 30 load_balancer_pool_health_monitor_prototype_model['max_retries'] = 3 - load_balancer_pool_health_monitor_prototype_model['timeout'] = 30 + load_balancer_pool_health_monitor_prototype_model['timeout'] = 30 load_balancer_pool_health_monitor_prototype_model['type'] = 'http' load_balancer_pool = vpc_service.create_load_balancer_pool( @@ -6591,12 +6504,13 @@ def test_create_load_balancer_pool_example(self): algorithm='round_robin', health_monitor=load_balancer_pool_health_monitor_prototype_model, protocol='http', - name='my-load-balancer-pool').get_result() + name='my-load-balancer-pool', + ).get_result() # end-create_load_balancer_pool assert load_balancer_pool is not None - data['poolId']=load_balancer_pool['id'] + data['poolId'] = load_balancer_pool['id'] except ApiException as e: pytest.fail(str(e)) @@ -6611,7 +6525,8 @@ def test_get_load_balancer_pool_example(self): # begin-get_load_balancer_pool load_balancer_pool = vpc_service.get_load_balancer_pool( - load_balancer_id=data['loadBalancerId'], id=data['poolId']).get_result() + load_balancer_id=data['loadBalancerId'], id=data['poolId'] + ).get_result() # end-get_load_balancer_pool @@ -6636,7 +6551,7 @@ def test_update_load_balancer_pool_example(self): load_balancer_pool = vpc_service.update_load_balancer_pool( load_balancer_id=data['loadBalancerId'], id=data['poolId'], - load_balancer_pool_patch=load_balancer_pool_patch_model + load_balancer_pool_patch=load_balancer_pool_patch_model, ).get_result() # end-update_load_balancer_pool @@ -6656,8 +6571,8 @@ def test_list_load_balancer_pool_members_example(self): # begin-list_load_balancer_pool_members load_balancer_pool_member_collection = vpc_service.list_load_balancer_pool_members( - load_balancer_id=data['loadBalancerId'], - pool_id=data['poolId']).get_result() + load_balancer_id=data['loadBalancerId'], pool_id=data['poolId'] + ).get_result() # end-list_load_balancer_pool_members @@ -6676,23 +6591,25 @@ def test_create_load_balancer_pool_member_example(self): # begin-create_load_balancer_pool_member load_balancer_pool_member_target_prototype_model_identity = {} - load_balancer_pool_member_target_prototype_model_identity['address']='192.168.3.4' + load_balancer_pool_member_target_prototype_model_identity['address'] = '192.168.3.4' load_balancer_pool_member_target_prototype_model = {} - load_balancer_pool_member_target_prototype_model['id'] = load_balancer_pool_member_target_prototype_model_identity + load_balancer_pool_member_target_prototype_model['id'] = ( + load_balancer_pool_member_target_prototype_model_identity + ) load_balancer_pool_member = vpc_service.create_load_balancer_pool_member( load_balancer_id=data['loadBalancerId'], pool_id=data['poolId'], port=80, target=load_balancer_pool_member_target_prototype_model, - weight=50 + weight=50, ).get_result() # end-create_load_balancer_pool_member assert load_balancer_pool_member is not None - data['poolMemberId']=load_balancer_pool_member['id'] + data['poolMemberId'] = load_balancer_pool_member['id'] except ApiException as e: pytest.fail(str(e)) @@ -6707,9 +6624,8 @@ def test_get_load_balancer_pool_member_example(self): # begin-get_load_balancer_pool_member load_balancer_pool_member = vpc_service.get_load_balancer_pool_member( - load_balancer_id=data['loadBalancerId'], - pool_id=data['poolId'], - id=data['poolMemberId']).get_result() + load_balancer_id=data['loadBalancerId'], pool_id=data['poolId'], id=data['poolMemberId'] + ).get_result() # end-get_load_balancer_pool_member @@ -6727,8 +6643,7 @@ def test_update_load_balancer_pool_member_example(self): print('\nupdate_load_balancer_pool_member() result:') # begin-update_load_balancer_pool_member load_balancer_pool_member_target_prototype_model = {} - load_balancer_pool_member_target_prototype_model[ - 'address'] = '192.168.3.4' + load_balancer_pool_member_target_prototype_model['address'] = '192.168.3.4' load_balancer_pool_member_patch_model = {} load_balancer_pool_member_patch_model['port'] = 1235 @@ -6738,8 +6653,8 @@ def test_update_load_balancer_pool_member_example(self): load_balancer_id=data['loadBalancerId'], pool_id=data['poolId'], id=data['poolMemberId'], - load_balancer_pool_member_patch= - load_balancer_pool_member_patch_model).get_result() + load_balancer_pool_member_patch=load_balancer_pool_member_patch_model, + ).get_result() # end-update_load_balancer_pool_member @@ -6767,13 +6682,13 @@ def test_replace_load_balancer_pool_members_example(self): load_balancer_pool_member_collection = vpc_service.replace_load_balancer_pool_members( load_balancer_id=data['loadBalancerId'], pool_id=data['poolId'], - members=[load_balancer_pool_member_prototype_model - ]).get_result() + members=[load_balancer_pool_member_prototype_model], + ).get_result() # end-replace_load_balancer_pool_members assert load_balancer_pool_member_collection is not None - data['poolMemberId']=load_balancer_pool_member_collection['members'][0]['id'] + data['poolMemberId'] = load_balancer_pool_member_collection['members'][0]['id'] except ApiException as e: pytest.fail(str(e)) @@ -6787,9 +6702,8 @@ def test_delete_load_balancer_pool_member_example(self): # begin-delete_load_balancer_pool_member response = vpc_service.delete_load_balancer_pool_member( - load_balancer_id=data['loadBalancerId'], - pool_id=data['poolId'], - id=data['poolMemberId']) + load_balancer_id=data['loadBalancerId'], pool_id=data['poolId'], id=data['poolMemberId'] + ) # end-delete_load_balancer_pool_member assert response is not None @@ -6805,8 +6719,7 @@ def test_delete_load_balancer_pool_example(self): try: # begin-delete_load_balancer_pool - response = vpc_service.delete_load_balancer_pool( - load_balancer_id=data['loadBalancerId'], id=data['poolId']) + response = vpc_service.delete_load_balancer_pool(load_balancer_id=data['loadBalancerId'], id=data['poolId']) # end-delete_load_balancer_pool assert response is not None @@ -6826,7 +6739,8 @@ def test_delete_load_balancer_listener_policy_rule_example(self): load_balancer_id=data['loadBalancerId'], listener_id=data['listenerId'], policy_id=data['policyId'], - id=data['policyRuleId']) + id=data['policyRuleId'], + ) # end-delete_load_balancer_listener_policy_rule assert response is not None @@ -6843,9 +6757,8 @@ def test_delete_load_balancer_listener_policy_example(self): # begin-delete_load_balancer_listener_policy response = vpc_service.delete_load_balancer_listener_policy( - load_balancer_id=data['loadBalancerId'], - listener_id=data['listenerId'], - id=data['policyId']) + load_balancer_id=data['loadBalancerId'], listener_id=data['listenerId'], id=data['policyId'] + ) # end-delete_load_balancer_listener_policy assert response is not None @@ -6862,7 +6775,8 @@ def test_delete_load_balancer_listener_example(self): # begin-delete_load_balancer_listener response = vpc_service.delete_load_balancer_listener( - load_balancer_id=data['loadBalancerId'], id=data['listenerId']) + load_balancer_id=data['loadBalancerId'], id=data['listenerId'] + ) # end-delete_load_balancer_listener assert response is not None @@ -6878,8 +6792,9 @@ def test_delete_load_balancer_example(self): try: # begin-delete_load_balancer - response = vpc_service.delete_load_balancer(id=data['loadBalancerId'], - if_match=data['created_load_balancer_etag']) + response = vpc_service.delete_load_balancer( + id=data['loadBalancerId'], if_match=data['created_load_balancer_etag'] + ) # end-delete_load_balancer assert response is not None @@ -6906,7 +6821,6 @@ def test_list_endpoint_gateways_example(self): assert next_page is not None all_results.extend(next_page) - # end-list_endpoint_gateways print(json.dumps(all_results, indent=2)) @@ -6928,19 +6842,18 @@ def test_create_endpoint_gateway_example(self): vpc_identity_model = {} vpc_identity_model['id'] = data['vpcID'] - endpoint_target={} + endpoint_target = {} endpoint_target['name'] = 'ibm-ntp-server' endpoint_target['resource_type'] = 'provider_infrastructure_service' endpoint_gateway = vpc_service.create_endpoint_gateway( - target=endpoint_target, - vpc=vpc_identity_model, - name='my-endpoint-gateway').get_result() + target=endpoint_target, vpc=vpc_identity_model, name='my-endpoint-gateway' + ).get_result() # end-create_endpoint_gateway assert endpoint_gateway is not None - data['endpointGatewayId']=endpoint_gateway['id'] + data['endpointGatewayId'] = endpoint_gateway['id'] except ApiException as e: pytest.fail(str(e)) @@ -6966,7 +6879,6 @@ def test_list_endpoint_gateway_ips_example(self): assert next_page is not None all_results.extend(next_page) - # end-list_endpoint_gateway_ips print(json.dumps(all_results, indent=2)) @@ -6986,12 +6898,13 @@ def test_add_endpoint_gateway_ip_example(self): # begin-add_endpoint_gateway_ip reserved_ip = vpc_service.add_endpoint_gateway_ip( - endpoint_gateway_id=data['endpointGatewayId'], id=data['subnetReservedIp']).get_result() + endpoint_gateway_id=data['endpointGatewayId'], id=data['subnetReservedIp'] + ).get_result() # end-add_endpoint_gateway_ip assert reserved_ip is not None - data['endpointGatewayTargetId']=reserved_ip['id'] + data['endpointGatewayTargetId'] = reserved_ip['id'] except ApiException as e: pytest.fail(str(e)) @@ -7006,7 +6919,8 @@ def test_get_endpoint_gateway_ip_example(self): # begin-get_endpoint_gateway_ip reserved_ip = vpc_service.get_endpoint_gateway_ip( - endpoint_gateway_id=data['endpointGatewayId'], id=data['endpointGatewayTargetId']).get_result() + endpoint_gateway_id=data['endpointGatewayId'], id=data['endpointGatewayTargetId'] + ).get_result() # end-get_endpoint_gateway_ip assert reserved_ip is not None @@ -7023,8 +6937,7 @@ def test_get_endpoint_gateway_example(self): print('\nget_endpoint_gateway() result:') # begin-get_endpoint_gateway - endpoint_gateway = vpc_service.get_endpoint_gateway( - id=data['endpointGatewayId']).get_result() + endpoint_gateway = vpc_service.get_endpoint_gateway(id=data['endpointGatewayId']).get_result() # end-get_endpoint_gateway @@ -7046,9 +6959,8 @@ def test_update_endpoint_gateway_example(self): endpoint_gateway_patch_model['name'] = 'my-endpoint-gateway-modified' endpoint_gateway = vpc_service.update_endpoint_gateway( - id=data['endpointGatewayId'], - endpoint_gateway_patch=endpoint_gateway_patch_model).get_result( - ) + id=data['endpointGatewayId'], endpoint_gateway_patch=endpoint_gateway_patch_model + ).get_result() # end-update_endpoint_gateway @@ -7066,7 +6978,8 @@ def test_remove_endpoint_gateway_ip_example(self): # begin-remove_endpoint_gateway_ip response = vpc_service.remove_endpoint_gateway_ip( - endpoint_gateway_id=data['endpointGatewayId'], id=data['endpointGatewayTargetId']) + endpoint_gateway_id=data['endpointGatewayId'], id=data['endpointGatewayTargetId'] + ) # end-remove_endpoint_gateway_ip assert response is not None @@ -7082,14 +6995,12 @@ def test_delete_subnet_reserved_ip_example(self): try: # begin-delete_subnet_reserved_ip - response = vpc_service.delete_subnet_reserved_ip( - subnet_id=data['subnetId'], id=data['subnetReservedIp']) + response = vpc_service.delete_subnet_reserved_ip(subnet_id=data['subnetId'], id=data['subnetReservedIp']) assert response is not None # end-delete_subnet_reserved_ip - print('\ndelete_subnet_reserved_ip() response status code: ', - response.get_status_code()) + print('\ndelete_subnet_reserved_ip() response status code: ', response.get_status_code()) except ApiException as e: pytest.fail(str(e)) @@ -7129,7 +7040,6 @@ def test_list_bare_metal_server_profiles_example(self): assert next_page is not None all_results.extend(next_page) - # end-list_bare_metal_server_profiles print(json.dumps(all_results, indent=2)) @@ -7146,8 +7056,7 @@ def test_get_bare_metal_server_profile_example(self): print('\nget_bare_metal_server_profile() result:') # begin-get_bare_metal_server_profile - bare_metal_server_profile = vpc_service.get_bare_metal_server_profile( - name='bmhbx2-24x384').get_result() + bare_metal_server_profile = vpc_service.get_bare_metal_server_profile(name='bmhbx2-24x384').get_result() # end-get_bare_metal_server_profile assert bare_metal_server_profile is not None @@ -7174,7 +7083,6 @@ def test_list_bare_metal_servers_example(self): assert next_page is not None all_results.extend(next_page) - # end-list_bare_metal_servers print(json.dumps(all_results, indent=2)) @@ -7219,15 +7127,14 @@ def test_create_bare_metal_server_example(self): bare_metal_server_prototype_model = { 'bandwidth': 10000, 'initialization': bare_metal_server_initialization_prototype_model, - 'primary_network_interface': - bare_metal_server_primary_network_interface_prototype_model, + 'primary_network_interface': bare_metal_server_primary_network_interface_prototype_model, 'profile': bare_metal_server_profile_identity_model, - 'name':'my-baremetal-server', - 'zone':zone_identity_model + 'name': 'my-baremetal-server', + 'zone': zone_identity_model, } bare_metal_server = vpc_service.create_bare_metal_server( bare_metal_server_prototype=bare_metal_server_prototype_model, - ).get_result() + ).get_result() # end-create_bare_metal_server assert bare_metal_server is not None @@ -7247,8 +7154,8 @@ def test_create_bare_metal_server_console_access_token_example(self): # begin-create_bare_metal_server_console_access_token bare_metal_server_console_access_token = vpc_service.create_bare_metal_server_console_access_token( - bare_metal_server_id=data['baremetalId'], - console_type='serial').get_result() + bare_metal_server_id=data['baremetalId'], console_type='serial' + ).get_result() # end-create_bare_metal_server_console_access_token assert bare_metal_server_console_access_token is not None @@ -7266,10 +7173,11 @@ def test_list_bare_metal_server_disks_example(self): # begin-list_bare_metal_server_disks bare_metal_server_disk_collection = vpc_service.list_bare_metal_server_disks( - bare_metal_server_id=data['baremetalId']).get_result() + bare_metal_server_id=data['baremetalId'] + ).get_result() # end-list_bare_metal_server_disks assert bare_metal_server_disk_collection is not None - data['baremetalDiskId']=bare_metal_server_disk_collection['disks'][0]['id'] + data['baremetalDiskId'] = bare_metal_server_disk_collection['disks'][0]['id'] except ApiException as e: pytest.fail(str(e)) @@ -7283,8 +7191,8 @@ def test_get_bare_metal_server_disk_example(self): # begin-get_bare_metal_server_disk bare_metal_server_disk = vpc_service.get_bare_metal_server_disk( - bare_metal_server_id=data['baremetalId'], - id=data['baremetalDiskId']).get_result() + bare_metal_server_id=data['baremetalId'], id=data['baremetalDiskId'] + ).get_result() # end-get_bare_metal_server_disk assert bare_metal_server_disk is not None @@ -7306,7 +7214,7 @@ def test_update_bare_metal_server_disk_example(self): bare_metal_server_disk = vpc_service.update_bare_metal_server_disk( bare_metal_server_id=data['baremetalId'], id=data['baremetalDiskId'], - bare_metal_server_disk_patch=bare_metal_server_disk_patch_model + bare_metal_server_disk_patch=bare_metal_server_disk_patch_model, ).get_result() # end-update_bare_metal_server_disk @@ -7335,7 +7243,6 @@ def test_list_bare_metal_server_network_interfaces_example(self): assert next_page is not None all_results.extend(next_page) - # end-list_bare_metal_server_network_interfaces print(json.dumps(all_results, indent=2)) @@ -7355,21 +7262,18 @@ def test_create_bare_metal_server_network_interface_example(self): bare_metal_server_network_interface_prototype_model = { 'interface_type': 'vlan', - 'subnet': { - 'id': data['subnetId'] - }, + 'subnet': {'id': data['subnetId']}, 'vlan': 4, } bare_metal_server_network_interface = vpc_service.create_bare_metal_server_network_interface( bare_metal_server_id=data['baremetalId'], - bare_metal_server_network_interface_prototype= - bare_metal_server_network_interface_prototype_model).get_result( - ) + bare_metal_server_network_interface_prototype=bare_metal_server_network_interface_prototype_model, + ).get_result() # end-create_bare_metal_server_network_interface assert bare_metal_server_network_interface is not None - data['bm_nic_id']=bare_metal_server_network_interface['id'] + data['bm_nic_id'] = bare_metal_server_network_interface['id'] except ApiException as e: pytest.fail(str(e)) @@ -7384,8 +7288,8 @@ def test_get_bare_metal_server_network_interface_example(self): # begin-get_bare_metal_server_network_interface bare_metal_server_network_interface = vpc_service.get_bare_metal_server_network_interface( - bare_metal_server_id=data['baremetalId'], - id=data['bm_nic_id']).get_result() + bare_metal_server_id=data['baremetalId'], id=data['bm_nic_id'] + ).get_result() # end-get_bare_metal_server_network_interface assert bare_metal_server_network_interface is not None @@ -7402,15 +7306,13 @@ def test_update_bare_metal_server_network_interface_example(self): print('\nupdate_bare_metal_server_network_interface() result:') # begin-update_bare_metal_server_network_interface - bare_metal_server_network_interface_patch_model = { - 'name': 'my-network-interface' - } + bare_metal_server_network_interface_patch_model = {'name': 'my-network-interface'} bare_metal_server_network_interface = vpc_service.update_bare_metal_server_network_interface( bare_metal_server_id=data['baremetalId'], id=data['bm_nic_id'], - bare_metal_server_network_interface_patch= - bare_metal_server_network_interface_patch_model).get_result() + bare_metal_server_network_interface_patch=bare_metal_server_network_interface_patch_model, + ).get_result() # end-update_bare_metal_server_network_interface assert bare_metal_server_network_interface is not None @@ -7424,15 +7326,14 @@ def test_add_bare_metal_server_network_interface_floating_ip_example(self): add_bare_metal_server_network_interface_floating_ip request example """ try: - print( - '\nadd_bare_metal_server_network_interface_floating_ip() result:' - ) + print('\nadd_bare_metal_server_network_interface_floating_ip() result:') # begin-add_bare_metal_server_network_interface_floating_ip floating_ip = vpc_service.add_bare_metal_server_network_interface_floating_ip( bare_metal_server_id=data['baremetalId'], network_interface_id=data['bm_nic_id'], - id=data['floatingIpId']).get_result() + id=data['floatingIpId'], + ).get_result() # end-add_bare_metal_server_network_interface_floating_ip assert floating_ip is not None @@ -7441,20 +7342,17 @@ def test_add_bare_metal_server_network_interface_floating_ip_example(self): pytest.fail(str(e)) @needscredentials - def test_list_bare_metal_server_network_interface_floating_ips_example( - self): + def test_list_bare_metal_server_network_interface_floating_ips_example(self): """ list_bare_metal_server_network_interface_floating_ips request example """ try: - print( - '\nlist_bare_metal_server_network_interface_floating_ips() result:' - ) + print('\nlist_bare_metal_server_network_interface_floating_ips() result:') # begin-list_bare_metal_server_network_interface_floating_ips floating_ip_unpaginated_collection = vpc_service.list_bare_metal_server_network_interface_floating_ips( - bare_metal_server_id=data['baremetalId'], - network_interface_id=data['bm_nic_id']).get_result() + bare_metal_server_id=data['baremetalId'], network_interface_id=data['bm_nic_id'] + ).get_result() # end-list_bare_metal_server_network_interface_floating_ips assert floating_ip_unpaginated_collection is not None @@ -7468,15 +7366,14 @@ def test_get_bare_metal_server_network_interface_floating_ip_example(self): get_bare_metal_server_network_interface_floating_ip request example """ try: - print( - '\nget_bare_metal_server_network_interface_floating_ip() result:' - ) + print('\nget_bare_metal_server_network_interface_floating_ip() result:') # begin-get_bare_metal_server_network_interface_floating_ip floating_ip = vpc_service.get_bare_metal_server_network_interface_floating_ip( bare_metal_server_id=data['baremetalId'], network_interface_id=data['bm_nic_id'], - id=data['bm_nic_fip_id']).get_result() + id=data['bm_nic_fip_id'], + ).get_result() # end-get_bare_metal_server_network_interface_floating_ip assert floating_ip is not None @@ -7495,8 +7392,7 @@ def test_list_bare_metal_server_network_interface_ips_example(self): # begin-list_bare_metal_server_network_interface_ips reserved_ips = vpc_service.list_bare_metal_server_network_interface_ips( - bare_metal_server_id=data['baremetalId'], - network_interface_id=data['bm_nic_id'] + bare_metal_server_id=data['baremetalId'], network_interface_id=data['bm_nic_id'] ).get_result() # end-list_bare_metal_server_network_interface_ips @@ -7517,7 +7413,7 @@ def test_get_bare_metal_server_network_interface_ip_example(self): reserved_ip = vpc_service.get_bare_metal_server_network_interface_ip( bare_metal_server_id=data['baremetalId'], network_interface_id=data['bm_nic_id'], - id=data['subnetReservedIp'] + id=data['subnetReservedIp'], ).get_result() # end-get_bare_metal_server_network_interface_ip @@ -7534,8 +7430,7 @@ def test_get_bare_metal_server_example(self): print('\nget_bare_metal_server() result:') # begin-get_bare_metal_server - bare_metal_server = vpc_service.get_bare_metal_server( - id=data['baremetalId']).get_result() + bare_metal_server = vpc_service.get_bare_metal_server(id=data['baremetalId']).get_result() # end-get_bare_metal_server assert bare_metal_server is not None @@ -7552,13 +7447,10 @@ def test_update_bare_metal_server_example(self): print('\nupdate_bare_metal_server() result:') # begin-update_bare_metal_server - bare_metal_server_patch_model = { - 'name': 'my-baremetal-server-updated' - } + bare_metal_server_patch_model = {'name': 'my-baremetal-server-updated'} bare_metal_server = vpc_service.update_bare_metal_server( - id=data['baremetalId'], - bare_metal_server_patch=bare_metal_server_patch_model + id=data['baremetalId'], bare_metal_server_patch=bare_metal_server_patch_model ).get_result() # end-update_bare_metal_server @@ -7577,7 +7469,8 @@ def test_get_bare_metal_server_initialization_example(self): # begin-get_bare_metal_server_initialization bare_metal_server_initialization = vpc_service.get_bare_metal_server_initialization( - id=data['baremetalId']).get_result() + id=data['baremetalId'] + ).get_result() # end-get_bare_metal_server_initialization assert bare_metal_server_initialization is not None @@ -7593,13 +7486,11 @@ def test_restart_bare_metal_server_example(self): try: # begin-restart_bare_metal_server - response = vpc_service.restart_bare_metal_server( - id=data['baremetalId']) + response = vpc_service.restart_bare_metal_server(id=data['baremetalId']) # end-restart_bare_metal_server assert response is not None - print('\nrestart_bare_metal_server() response status code: ', - response.get_status_code()) + print('\nrestart_bare_metal_server() response status code: ', response.get_status_code()) except ApiException as e: pytest.fail(str(e)) @@ -7612,13 +7503,11 @@ def test_start_bare_metal_server_example(self): try: # begin-start_bare_metal_server - response = vpc_service.start_bare_metal_server( - id=data['baremetalId']) + response = vpc_service.start_bare_metal_server(id=data['baremetalId']) # end-start_bare_metal_server assert response is not None - print('\nstart_bare_metal_server() response status code: ', - response.get_status_code()) + print('\nstart_bare_metal_server() response status code: ', response.get_status_code()) except ApiException as e: pytest.fail(str(e)) @@ -7631,21 +7520,17 @@ def test_stop_bare_metal_server_example(self): try: # begin-stop_bare_metal_server - response = vpc_service.stop_bare_metal_server( - id=data['baremetalId'], type='soft') + response = vpc_service.stop_bare_metal_server(id=data['baremetalId'], type='soft') # end-stop_bare_metal_server assert response is not None - print('\nstop_bare_metal_server() response status code: ', - response.get_status_code()) + print('\nstop_bare_metal_server() response status code: ', response.get_status_code()) except ApiException as e: pytest.fail(str(e)) - @needscredentials - def test_remove_bare_metal_server_network_interface_floating_ip_example( - self): + def test_remove_bare_metal_server_network_interface_floating_ip_example(self): """ remove_bare_metal_server_network_interface_floating_ip request example """ @@ -7655,13 +7540,15 @@ def test_remove_bare_metal_server_network_interface_floating_ip_example( response = vpc_service.remove_bare_metal_server_network_interface_floating_ip( bare_metal_server_id=data['baremetalId'], network_interface_id=data['bm_nic_id'], - id=data['bm_nic_fip_id']) + id=data['bm_nic_fip_id'], + ) # end-remove_bare_metal_server_network_interface_floating_ip assert response is not None print( '\nremove_bare_metal_server_network_interface_floating_ip() response status code: ', - response.get_status_code()) + response.get_status_code(), + ) except ApiException as e: pytest.fail(str(e)) @@ -7675,13 +7562,12 @@ def test_delete_bare_metal_server_network_interface_example(self): # begin-delete_bare_metal_server_network_interface response = vpc_service.delete_bare_metal_server_network_interface( - bare_metal_server_id=data['baremetalId'], id=data['bm_nic_id']) + bare_metal_server_id=data['baremetalId'], id=data['bm_nic_id'] + ) # end-delete_bare_metal_server_network_interface assert response is not None - print( - '\ndelete_bare_metal_server_network_interface() response status code: ', - response.get_status_code()) + print('\ndelete_bare_metal_server_network_interface() response status code: ', response.get_status_code()) except ApiException as e: pytest.fail(str(e)) @@ -7698,8 +7584,7 @@ def test_delete_bare_metal_server_example(self): # end-delete_bare_metal_server assert response is not None - print('\ndelete_bare_metal_server() response status code: ', - response.get_status_code()) + print('\ndelete_bare_metal_server() response status code: ', response.get_status_code()) except ApiException as e: pytest.fail(str(e)) @@ -7723,7 +7608,6 @@ def test_list_backup_policies_example(self): assert next_page is not None all_results.extend(next_page) - # end-list_backup_policies print(json.dumps(all_results, indent=2)) @@ -7754,13 +7638,11 @@ def test_create_backup_policy_example(self): } backup_policy_prototype = { 'match_user_tags': ['my-daily-backup-policy'], - 'match_resource_type':['volume'], - 'name':'my-backup-policy', - 'plans':[backup_policy_plan_prototype_model], + 'match_resource_type': ['volume'], + 'name': 'my-backup-policy', + 'plans': [backup_policy_plan_prototype_model], } - backup_policy_response = vpc_service.create_backup_policy( - backup_policy_prototype = backup_policy_prototype - ) + backup_policy_response = vpc_service.create_backup_policy(backup_policy_prototype=backup_policy_prototype) backup_policy = backup_policy_response.get_result() data['backupPolicyETag'] = backup_policy_response.get_headers()['ETag'] # end-create_backup_policy @@ -7826,7 +7708,7 @@ def test_create_backup_policy_plan_example(self): remote_region_policies=backup_policy_plan_remote_region_policies_protoype_model, clone_policy=backup_policy_plan_clone_policy_prototype_model, deletion_trigger=backup_policy_plan_deletion_trigger_prototype_model, - name='my-backup-policy-plan' + name='my-backup-policy-plan', ) backup_policy_plan = backup_policy_plan_response.get_result() data['backupPolicyPlanETag'] = backup_policy_plan_response.get_headers()['ETag'] @@ -7846,8 +7728,7 @@ def test_get_backup_policy_plan_example(self): # begin-get_backup_policy_plan backup_policy_plan = vpc_service.get_backup_policy_plan( - backup_policy_id=data['backupPolicyID'], - id=data['backupPolicyPlanID'] + backup_policy_id=data['backupPolicyID'], id=data['backupPolicyPlanID'] ).get_result() print(json.dumps(backup_policy_plan, indent=2)) @@ -7887,7 +7768,7 @@ def test_update_backup_policy_plan_example(self): backup_policy_id=data['backupPolicyID'], id=data['backupPolicyPlanID'], backup_policy_plan_patch=backup_policy_plan_patch_model, - if_match=data['backupPolicyPlanETag'] + if_match=data['backupPolicyPlanETag'], ).get_result() print(json.dumps(backup_policy_plan, indent=2)) @@ -7934,8 +7815,7 @@ def test_get_backup_policy_job_example(self): # begin-get_backup_policy_job response = vpc_service.get_backup_policy_job( - backup_policy_id=data['backupPolicyID'], - id=data['backupPolicyJobID'] + backup_policy_id=data['backupPolicyID'], id=data['backupPolicyJobID'] ) backup_policy_job = response.get_result() @@ -7953,9 +7833,7 @@ def test_get_backup_policy_example(self): print('\nget_backup_policy() result:') # begin-get_backup_policy - backup_policy = vpc_service.get_backup_policy( - id=data['backupPolicyID'] - ).get_result() + backup_policy = vpc_service.get_backup_policy(id=data['backupPolicyID']).get_result() print(json.dumps(backup_policy, indent=2)) @@ -7979,7 +7857,7 @@ def test_update_backup_policy_example(self): backup_policy = vpc_service.update_backup_policy( id=data['backupPolicyID'], backup_policy_patch=backup_policy_patch_model, - if_match=data['backupPolicyETag'] + if_match=data['backupPolicyETag'], ).get_result() print(json.dumps(backup_policy, indent=2)) @@ -7988,7 +7866,6 @@ def test_update_backup_policy_example(self): except ApiException as e: pytest.fail(str(e)) - @needscredentials def test_delete_backup_policy_plan_example(self): @@ -8002,7 +7879,7 @@ def test_delete_backup_policy_plan_example(self): backup_policy_plan = vpc_service.delete_backup_policy_plan( backup_policy_id=data['backupPolicyID'], id=data['backupPolicyPlanID'], - if_match=data['backupPolicyPlanETag'] + if_match=data['backupPolicyPlanETag'], ).get_result() print(json.dumps(backup_policy_plan, indent=2)) @@ -8022,8 +7899,7 @@ def test_delete_backup_policy_example(self): # begin-delete_backup_policy backup_policy = vpc_service.delete_backup_policy( - id=data['backupPolicyID'], - if_match=data['backupPolicyETag'] + id=data['backupPolicyID'], if_match=data['backupPolicyETag'] ).get_result() print(json.dumps(backup_policy, indent=2)) @@ -8032,6 +7908,7 @@ def test_delete_backup_policy_example(self): except ApiException as e: pytest.fail(str(e)) + @needscredentials def test_list_flow_log_collectors_example(self): """ @@ -8077,12 +7954,13 @@ def test_create_flow_log_collector_example(self): flow_log_collector = vpc_service.create_flow_log_collector( storage_bucket=cloud_object_storage_bucket_identity_model, target=flow_log_collector_target_prototype_model, - name='my-flow-log-collector').get_result() + name='my-flow-log-collector', + ).get_result() # end-create_flow_log_collector assert flow_log_collector is not None - data['flowLogId']=flow_log_collector['id'] + data['flowLogId'] = flow_log_collector['id'] except ApiException as e: pytest.fail(str(e)) @@ -8096,8 +7974,7 @@ def test_get_flow_log_collector_example(self): print('\nget_flow_log_collector() result:') # begin-get_flow_log_collector - flow_log_collector = vpc_service.get_flow_log_collector( - id=data['flowLogId']).get_result() + flow_log_collector = vpc_service.get_flow_log_collector(id=data['flowLogId']).get_result() # end-get_flow_log_collector @@ -8120,8 +7997,7 @@ def test_update_flow_log_collector_example(self): flow_log_collector_patch_model['active'] = True flow_log_collector = vpc_service.update_flow_log_collector( - id=data['flowLogId'], - flow_log_collector_patch=flow_log_collector_patch_model + id=data['flowLogId'], flow_log_collector_patch=flow_log_collector_patch_model ).get_result() # end-update_flow_log_collector @@ -8156,9 +8032,8 @@ def test_remove_vpn_gateway_connection_peer_cidr_example(self): # begin-remove_vpn_gateway_connection_peer_cidr response = vpc_service.remove_vpn_gateway_connections_peer_cidr( - vpn_gateway_id=data['vpnGatewayId'], - id=data['vpnGatewayConnectionId'], - cidr='192.144.0.0/28') + vpn_gateway_id=data['vpnGatewayId'], id=data['vpnGatewayConnectionId'], cidr='192.144.0.0/28' + ) # end-remove_vpn_gateway_connection_peer_cidr assert response is not None @@ -8175,9 +8050,8 @@ def test_remove_vpn_gateway_connection_local_cidr_example(self): # begin-remove_vpn_gateway_connection_local_cidr response = vpc_service.remove_vpn_gateway_connections_local_cidr( - vpn_gateway_id=data['vpnGatewayId'], - id=data['vpnGatewayConnectionId'], - cidr='192.144.0.0/28') + vpn_gateway_id=data['vpnGatewayId'], id=data['vpnGatewayConnectionId'], cidr='192.144.0.0/28' + ) # end-remove_vpn_gateway_connection_local_cidr assert response is not None @@ -8194,9 +8068,8 @@ def test_remove_instance_network_interface_floating_ip_example(self): # begin-remove_instance_network_interface_floating_ip response = vpc_service.remove_instance_network_interface_floating_ip( - instance_id=data['instanceId'], - network_interface_id=data['eth2Id'], - id=data['floatingIpId']) + instance_id=data['instanceId'], network_interface_id=data['eth2Id'], id=data['floatingIpId'] + ) # end-remove_instance_network_interface_floating_ip assert response is not None @@ -8213,7 +8086,8 @@ def test_delete_security_group_target_binding_example(self): # begin-delete_security_group_target_binding response = vpc_service.delete_security_group_target_binding( - security_group_id=data['securityGroupId'], id=data['targetId']) + security_group_id=data['securityGroupId'], id=data['targetId'] + ) # end-delete_security_group_target_binding assert response is not None @@ -8229,8 +8103,7 @@ def test_delete_instance_network_interface_example(self): try: # begin-delete_instance_network_interface - response = vpc_service.delete_instance_network_interface( - instance_id=data['instanceId'], id=data['eth2Id']) + response = vpc_service.delete_instance_network_interface(instance_id=data['instanceId'], id=data['eth2Id']) # end-delete_instance_network_interface assert response is not None @@ -8247,7 +8120,8 @@ def test_delete_instance_volume_attachment_example(self): # begin-delete_instance_volume_attachment response = vpc_service.delete_instance_volume_attachment( - instance_id=data['instanceId'], id=data['volumeAttachmentId']) + instance_id=data['instanceId'], id=data['volumeAttachmentId'] + ) # end-delete_instance_volume_attachment assert response is not None @@ -8255,8 +8129,6 @@ def test_delete_instance_volume_attachment_example(self): except ApiException as e: pytest.fail(str(e)) - - @needscredentials def test_delete_floating_ip_example(self): """ @@ -8273,8 +8145,6 @@ def test_delete_floating_ip_example(self): except ApiException as e: pytest.fail(str(e)) - - @needscredentials def test_delete_instance_cluster_network_attachment_example(self): """ @@ -8298,7 +8168,6 @@ def test_delete_instance_cluster_network_attachment_example(self): except ApiException as e: pytest.fail(str(e)) - @needscredentials def test_delete_instance_example(self): """ @@ -8407,7 +8276,6 @@ def test_delete_share_source_example(self): except ApiException as e: pytest.fail(str(e)) - @needscredentials def test_delete_share_example(self): """ @@ -8452,15 +8320,13 @@ def test_delete_snapshot_example(self): @needscredentials @pytest.mark.skip(reason="mock error") def test_delete_snapshots_example(self): - """ delete_snapshots request example """ try: # begin-delete_snapshots - response = vpc_service.delete_snapshots( - source_volume_id=data['volumeId']) + response = vpc_service.delete_snapshots(source_volume_id=data['volumeId']) # end-delete_snapshots assert response is not None @@ -8493,7 +8359,8 @@ def test_delete_security_group_rule_example(self): # begin-delete_security_group_rule response = vpc_service.delete_security_group_rule( - security_group_id=data['securityGroupId'], id=data['securityGroupRuleId']) + security_group_id=data['securityGroupId'], id=data['securityGroupRuleId'] + ) # end-delete_security_group_rule assert response is not None @@ -8517,7 +8384,6 @@ def test_delete_security_group_example(self): except ApiException as e: pytest.fail(str(e)) - @needscredentials def test_delete_cluster_network_interface_example(self): """ @@ -8614,7 +8480,6 @@ def test_delete_cluster_network_example(self): except ApiException as e: pytest.fail(str(e)) - @needscredentials def test_delete_public_gateway_example(self): """ @@ -8640,7 +8505,8 @@ def test_delete_network_acl_rule_example(self): # begin-delete_network_acl_rule response = vpc_service.delete_network_acl_rule( - network_acl_id=data['networkACLId'], id=data['networkACLRuleId']) + network_acl_id=data['networkACLId'], id=data['networkACLRuleId'] + ) # end-delete_network_acl_rule assert response is not None @@ -8673,7 +8539,8 @@ def test_delete_instance_group_membership_example(self): # begin-delete_instance_group_membership response = vpc_service.delete_instance_group_membership( - instance_group_id=data['instanceGroupId'], id=data['instanceGroupMembershipId']) + instance_group_id=data['instanceGroupId'], id=data['instanceGroupMembershipId'] + ) # end-delete_instance_group_membership assert response is not None @@ -8689,8 +8556,7 @@ def test_delete_instance_group_memberships_example(self): try: # begin-delete_instance_group_memberships - response = vpc_service.delete_instance_group_memberships( - instance_group_id=data['instanceGroupId']) + response = vpc_service.delete_instance_group_memberships(instance_group_id=data['instanceGroupId']) # end-delete_instance_group_memberships assert response is not None @@ -8709,7 +8575,8 @@ def test_delete_instance_group_manager_policy_example(self): response = vpc_service.delete_instance_group_manager_policy( instance_group_id=data['instanceGroupId'], instance_group_manager_id=data['instanceGroupManagerId'], - id=data['instanceGroupManagerPolicyId']) + id=data['instanceGroupManagerPolicyId'], + ) # end-delete_instance_group_manager_policy assert response is not None @@ -8728,7 +8595,8 @@ def test_delete_instance_group_manager_action_example(self): response = vpc_service.delete_instance_group_manager_action( instance_group_id=data['instanceGroupId'], instance_group_manager_id=data['instanceGroupManagerId'], - id=data['instanceGroupManagerActionId']) + id=data['instanceGroupManagerActionId'], + ) # end-delete_instance_group_manager_action assert response is not None @@ -8745,7 +8613,8 @@ def test_delete_instance_group_manager_example(self): # begin-delete_instance_group_manager response = vpc_service.delete_instance_group_manager( - instance_group_id=data['instanceGroupId'], id=data['instanceGroupManagerId']) + instance_group_id=data['instanceGroupId'], id=data['instanceGroupManagerId'] + ) # end-delete_instance_group_manager assert response is not None @@ -8762,8 +8631,7 @@ def test_delete_instance_group_load_balancer_example(self): try: # begin-delete_instance_group_load_balancer - response = vpc_service.delete_instance_group_load_balancer( - instance_group_id=data['instanceGroupId']) + response = vpc_service.delete_instance_group_load_balancer(instance_group_id=data['instanceGroupId']) # end-delete_instance_group_load_balancer assert response is not None @@ -8892,7 +8760,8 @@ def test_delete_vpn_gateway_connection_example(self): # begin-delete_vpn_gateway_connection response = vpc_service.delete_vpn_gateway_connection( - vpn_gateway_id=data['vpnGatewayId'], id=data['vpnGatewayConnectionId']) + vpn_gateway_id=data['vpnGatewayId'], id=data['vpnGatewayConnectionId'] + ) # end-delete_vpn_gateway_connection assert response is not None @@ -8925,9 +8794,8 @@ def test_delete_vpc_routing_table_route_example(self): # begin-delete_vpc_routing_table_route response = vpc_service.delete_vpc_routing_table_route( - vpc_id=data['vpcID'], - routing_table_id=data['vpcRoutingTableId'], - id=data['vpcRoutingTableRouteId']) + vpc_id=data['vpcID'], routing_table_id=data['vpcRoutingTableId'], id=data['vpcRoutingTableRouteId'] + ) # end-delete_vpc_routing_table_route assert response is not None @@ -8943,8 +8811,7 @@ def test_delete_vpc_routing_table_example(self): try: # begin-delete_vpc_routing_table - response = vpc_service.delete_vpc_routing_table(vpc_id=data['vpcID'], - id=data['vpcRoutingTableId']) + response = vpc_service.delete_vpc_routing_table(vpc_id=data['vpcID'], id=data['vpcRoutingTableId']) # end-delete_vpc_routing_table assert response is not None @@ -8960,8 +8827,7 @@ def test_delete_vpc_address_prefix_example(self): try: # begin-delete_vpc_address_prefix - response = vpc_service.delete_vpc_address_prefix( - vpc_id=data['vpcID'], id=data['vpcAddressPrefixId']) + response = vpc_service.delete_vpc_address_prefix(vpc_id=data['vpcID'], id=data['vpcAddressPrefixId']) # end-delete_vpc_address_prefix assert response is not None @@ -9003,6 +8869,7 @@ def test_delete_vpc_example(self): except ApiException as e: pytest.fail(str(e)) + # endregion ############################################################################## # End of Examples for Service: VpcV1 diff --git a/ibm_vpc/common.py b/ibm_vpc/common.py index 21a8224..1de98dc 100644 --- a/ibm_vpc/common.py +++ b/ibm_vpc/common.py @@ -26,14 +26,15 @@ HEADER_NAME_USER_AGENT = 'User-Agent' SDK_NAME = 'vpc-python-sdk' + def get_system_info(): """ Get information about the system to be inserted into the User-Agent header. """ - return 'lang={0}; arch={1}; os={2}; python.version={3}'.format('python', - platform.machine(), # Architecture - platform.system(), # OS - platform.python_version()) # Python version + return 'lang={0}; arch={1}; os={2}; python.version={3}'.format( + 'python', platform.machine(), platform.system(), platform.python_version() # Architecture # OS + ) # Python version + def get_x_request_id(): """ @@ -41,6 +42,7 @@ def get_x_request_id(): """ return str(uuid.uuid4()) + def get_user_agent(): """ Get the value to be sent in the User-Agent header. diff --git a/ibm_vpc/version.py b/ibm_vpc/version.py index 191a665..b9c8304 100644 --- a/ibm_vpc/version.py +++ b/ibm_vpc/version.py @@ -1,4 +1,5 @@ """ Version of vpc """ + __version__ = '0.25.0' diff --git a/ibm_vpc/vpc_v1.py b/ibm_vpc/vpc_v1.py index 482ef26..9aaaeef 100644 --- a/ibm_vpc/vpc_v1.py +++ b/ibm_vpc/vpc_v1.py @@ -73,7 +73,7 @@ def new_instance( version, authenticator, generation, - ) + ) service.configure_service(service_name) return service @@ -6808,7 +6808,9 @@ def list_instance_network_interface_floating_ips( path_param_keys = ['instance_id', 'network_interface_id'] path_param_values = self.encode_path_vars(instance_id, network_interface_id) path_param_dict = dict(zip(path_param_keys, path_param_values)) - url = '/instances/{instance_id}/network_interfaces/{network_interface_id}/floating_ips'.format(**path_param_dict) + url = '/instances/{instance_id}/network_interfaces/{network_interface_id}/floating_ips'.format( + **path_param_dict + ) request = self.prepare_request( method='GET', url=url, @@ -6866,7 +6868,9 @@ def remove_instance_network_interface_floating_ip( path_param_keys = ['instance_id', 'network_interface_id', 'id'] path_param_values = self.encode_path_vars(instance_id, network_interface_id, id) path_param_dict = dict(zip(path_param_keys, path_param_values)) - url = '/instances/{instance_id}/network_interfaces/{network_interface_id}/floating_ips/{id}'.format(**path_param_dict) + url = '/instances/{instance_id}/network_interfaces/{network_interface_id}/floating_ips/{id}'.format( + **path_param_dict + ) request = self.prepare_request( method='DELETE', url=url, @@ -6925,7 +6929,9 @@ def get_instance_network_interface_floating_ip( path_param_keys = ['instance_id', 'network_interface_id', 'id'] path_param_values = self.encode_path_vars(instance_id, network_interface_id, id) path_param_dict = dict(zip(path_param_keys, path_param_values)) - url = '/instances/{instance_id}/network_interfaces/{network_interface_id}/floating_ips/{id}'.format(**path_param_dict) + url = '/instances/{instance_id}/network_interfaces/{network_interface_id}/floating_ips/{id}'.format( + **path_param_dict + ) request = self.prepare_request( method='GET', url=url, @@ -6988,7 +6994,9 @@ def add_instance_network_interface_floating_ip( path_param_keys = ['instance_id', 'network_interface_id', 'id'] path_param_values = self.encode_path_vars(instance_id, network_interface_id, id) path_param_dict = dict(zip(path_param_keys, path_param_values)) - url = '/instances/{instance_id}/network_interfaces/{network_interface_id}/floating_ips/{id}'.format(**path_param_dict) + url = '/instances/{instance_id}/network_interfaces/{network_interface_id}/floating_ips/{id}'.format( + **path_param_dict + ) request = self.prepare_request( method='PUT', url=url, @@ -8164,7 +8172,9 @@ def list_instance_group_manager_actions( path_param_keys = ['instance_group_id', 'instance_group_manager_id'] path_param_values = self.encode_path_vars(instance_group_id, instance_group_manager_id) path_param_dict = dict(zip(path_param_keys, path_param_values)) - url = '/instance_groups/{instance_group_id}/managers/{instance_group_manager_id}/actions'.format(**path_param_dict) + url = '/instance_groups/{instance_group_id}/managers/{instance_group_manager_id}/actions'.format( + **path_param_dict + ) request = self.prepare_request( method='GET', url=url, @@ -8230,7 +8240,9 @@ def create_instance_group_manager_action( path_param_keys = ['instance_group_id', 'instance_group_manager_id'] path_param_values = self.encode_path_vars(instance_group_id, instance_group_manager_id) path_param_dict = dict(zip(path_param_keys, path_param_values)) - url = '/instance_groups/{instance_group_id}/managers/{instance_group_manager_id}/actions'.format(**path_param_dict) + url = '/instance_groups/{instance_group_id}/managers/{instance_group_manager_id}/actions'.format( + **path_param_dict + ) request = self.prepare_request( method='POST', url=url, @@ -8290,7 +8302,9 @@ def delete_instance_group_manager_action( path_param_keys = ['instance_group_id', 'instance_group_manager_id', 'id'] path_param_values = self.encode_path_vars(instance_group_id, instance_group_manager_id, id) path_param_dict = dict(zip(path_param_keys, path_param_values)) - url = '/instance_groups/{instance_group_id}/managers/{instance_group_manager_id}/actions/{id}'.format(**path_param_dict) + url = '/instance_groups/{instance_group_id}/managers/{instance_group_manager_id}/actions/{id}'.format( + **path_param_dict + ) request = self.prepare_request( method='DELETE', url=url, @@ -8350,7 +8364,9 @@ def get_instance_group_manager_action( path_param_keys = ['instance_group_id', 'instance_group_manager_id', 'id'] path_param_values = self.encode_path_vars(instance_group_id, instance_group_manager_id, id) path_param_dict = dict(zip(path_param_keys, path_param_values)) - url = '/instance_groups/{instance_group_id}/managers/{instance_group_manager_id}/actions/{id}'.format(**path_param_dict) + url = '/instance_groups/{instance_group_id}/managers/{instance_group_manager_id}/actions/{id}'.format( + **path_param_dict + ) request = self.prepare_request( method='GET', url=url, @@ -8419,7 +8435,9 @@ def update_instance_group_manager_action( path_param_keys = ['instance_group_id', 'instance_group_manager_id', 'id'] path_param_values = self.encode_path_vars(instance_group_id, instance_group_manager_id, id) path_param_dict = dict(zip(path_param_keys, path_param_values)) - url = '/instance_groups/{instance_group_id}/managers/{instance_group_manager_id}/actions/{id}'.format(**path_param_dict) + url = '/instance_groups/{instance_group_id}/managers/{instance_group_manager_id}/actions/{id}'.format( + **path_param_dict + ) request = self.prepare_request( method='PATCH', url=url, @@ -8483,7 +8501,9 @@ def list_instance_group_manager_policies( path_param_keys = ['instance_group_id', 'instance_group_manager_id'] path_param_values = self.encode_path_vars(instance_group_id, instance_group_manager_id) path_param_dict = dict(zip(path_param_keys, path_param_values)) - url = '/instance_groups/{instance_group_id}/managers/{instance_group_manager_id}/policies'.format(**path_param_dict) + url = '/instance_groups/{instance_group_id}/managers/{instance_group_manager_id}/policies'.format( + **path_param_dict + ) request = self.prepare_request( method='GET', url=url, @@ -8549,7 +8569,9 @@ def create_instance_group_manager_policy( path_param_keys = ['instance_group_id', 'instance_group_manager_id'] path_param_values = self.encode_path_vars(instance_group_id, instance_group_manager_id) path_param_dict = dict(zip(path_param_keys, path_param_values)) - url = '/instance_groups/{instance_group_id}/managers/{instance_group_manager_id}/policies'.format(**path_param_dict) + url = '/instance_groups/{instance_group_id}/managers/{instance_group_manager_id}/policies'.format( + **path_param_dict + ) request = self.prepare_request( method='POST', url=url, @@ -8609,7 +8631,9 @@ def delete_instance_group_manager_policy( path_param_keys = ['instance_group_id', 'instance_group_manager_id', 'id'] path_param_values = self.encode_path_vars(instance_group_id, instance_group_manager_id, id) path_param_dict = dict(zip(path_param_keys, path_param_values)) - url = '/instance_groups/{instance_group_id}/managers/{instance_group_manager_id}/policies/{id}'.format(**path_param_dict) + url = '/instance_groups/{instance_group_id}/managers/{instance_group_manager_id}/policies/{id}'.format( + **path_param_dict + ) request = self.prepare_request( method='DELETE', url=url, @@ -8669,7 +8693,9 @@ def get_instance_group_manager_policy( path_param_keys = ['instance_group_id', 'instance_group_manager_id', 'id'] path_param_values = self.encode_path_vars(instance_group_id, instance_group_manager_id, id) path_param_dict = dict(zip(path_param_keys, path_param_values)) - url = '/instance_groups/{instance_group_id}/managers/{instance_group_manager_id}/policies/{id}'.format(**path_param_dict) + url = '/instance_groups/{instance_group_id}/managers/{instance_group_manager_id}/policies/{id}'.format( + **path_param_dict + ) request = self.prepare_request( method='GET', url=url, @@ -8738,7 +8764,9 @@ def update_instance_group_manager_policy( path_param_keys = ['instance_group_id', 'instance_group_manager_id', 'id'] path_param_values = self.encode_path_vars(instance_group_id, instance_group_manager_id, id) path_param_dict = dict(zip(path_param_keys, path_param_values)) - url = '/instance_groups/{instance_group_id}/managers/{instance_group_manager_id}/policies/{id}'.format(**path_param_dict) + url = '/instance_groups/{instance_group_id}/managers/{instance_group_manager_id}/policies/{id}'.format( + **path_param_dict + ) request = self.prepare_request( method='PATCH', url=url, @@ -11173,7 +11201,9 @@ def create_bare_metal_server_network_attachment( if bare_metal_server_network_attachment_prototype is None: raise ValueError('bare_metal_server_network_attachment_prototype must be provided') if isinstance(bare_metal_server_network_attachment_prototype, BareMetalServerNetworkAttachmentPrototype): - bare_metal_server_network_attachment_prototype = convert_model(bare_metal_server_network_attachment_prototype) + bare_metal_server_network_attachment_prototype = convert_model( + bare_metal_server_network_attachment_prototype + ) headers = {} sdk_headers = get_sdk_headers( service_name=self.DEFAULT_SERVICE_NAME, @@ -11772,7 +11802,11 @@ def list_bare_metal_server_network_interface_floating_ips( path_param_keys = ['bare_metal_server_id', 'network_interface_id'] path_param_values = self.encode_path_vars(bare_metal_server_id, network_interface_id) path_param_dict = dict(zip(path_param_keys, path_param_values)) - url = '/bare_metal_servers/{bare_metal_server_id}/network_interfaces/{network_interface_id}/floating_ips'.format(**path_param_dict) + url = ( + '/bare_metal_servers/{bare_metal_server_id}/network_interfaces/{network_interface_id}/floating_ips'.format( + **path_param_dict + ) + ) request = self.prepare_request( method='GET', url=url, @@ -11831,7 +11865,9 @@ def remove_bare_metal_server_network_interface_floating_ip( path_param_keys = ['bare_metal_server_id', 'network_interface_id', 'id'] path_param_values = self.encode_path_vars(bare_metal_server_id, network_interface_id, id) path_param_dict = dict(zip(path_param_keys, path_param_values)) - url = '/bare_metal_servers/{bare_metal_server_id}/network_interfaces/{network_interface_id}/floating_ips/{id}'.format(**path_param_dict) + url = '/bare_metal_servers/{bare_metal_server_id}/network_interfaces/{network_interface_id}/floating_ips/{id}'.format( + **path_param_dict + ) request = self.prepare_request( method='DELETE', url=url, @@ -11891,7 +11927,9 @@ def get_bare_metal_server_network_interface_floating_ip( path_param_keys = ['bare_metal_server_id', 'network_interface_id', 'id'] path_param_values = self.encode_path_vars(bare_metal_server_id, network_interface_id, id) path_param_dict = dict(zip(path_param_keys, path_param_values)) - url = '/bare_metal_servers/{bare_metal_server_id}/network_interfaces/{network_interface_id}/floating_ips/{id}'.format(**path_param_dict) + url = '/bare_metal_servers/{bare_metal_server_id}/network_interfaces/{network_interface_id}/floating_ips/{id}'.format( + **path_param_dict + ) request = self.prepare_request( method='GET', url=url, @@ -11957,7 +11995,9 @@ def add_bare_metal_server_network_interface_floating_ip( path_param_keys = ['bare_metal_server_id', 'network_interface_id', 'id'] path_param_values = self.encode_path_vars(bare_metal_server_id, network_interface_id, id) path_param_dict = dict(zip(path_param_keys, path_param_values)) - url = '/bare_metal_servers/{bare_metal_server_id}/network_interfaces/{network_interface_id}/floating_ips/{id}'.format(**path_param_dict) + url = '/bare_metal_servers/{bare_metal_server_id}/network_interfaces/{network_interface_id}/floating_ips/{id}'.format( + **path_param_dict + ) request = self.prepare_request( method='PUT', url=url, @@ -12017,7 +12057,9 @@ def list_bare_metal_server_network_interface_ips( path_param_keys = ['bare_metal_server_id', 'network_interface_id'] path_param_values = self.encode_path_vars(bare_metal_server_id, network_interface_id) path_param_dict = dict(zip(path_param_keys, path_param_values)) - url = '/bare_metal_servers/{bare_metal_server_id}/network_interfaces/{network_interface_id}/ips'.format(**path_param_dict) + url = '/bare_metal_servers/{bare_metal_server_id}/network_interfaces/{network_interface_id}/ips'.format( + **path_param_dict + ) request = self.prepare_request( method='GET', url=url, @@ -12081,7 +12123,9 @@ def get_bare_metal_server_network_interface_ip( path_param_keys = ['bare_metal_server_id', 'network_interface_id', 'id'] path_param_values = self.encode_path_vars(bare_metal_server_id, network_interface_id, id) path_param_dict = dict(zip(path_param_keys, path_param_values)) - url = '/bare_metal_servers/{bare_metal_server_id}/network_interfaces/{network_interface_id}/ips/{id}'.format(**path_param_dict) + url = '/bare_metal_servers/{bare_metal_server_id}/network_interfaces/{network_interface_id}/ips/{id}'.format( + **path_param_dict + ) request = self.prepare_request( method='GET', url=url, @@ -17829,7 +17873,9 @@ def list_cluster_network_subnet_reserved_ips( path_param_keys = ['cluster_network_id', 'cluster_network_subnet_id'] path_param_values = self.encode_path_vars(cluster_network_id, cluster_network_subnet_id) path_param_dict = dict(zip(path_param_keys, path_param_values)) - url = '/cluster_networks/{cluster_network_id}/subnets/{cluster_network_subnet_id}/reserved_ips'.format(**path_param_dict) + url = '/cluster_networks/{cluster_network_id}/subnets/{cluster_network_subnet_id}/reserved_ips'.format( + **path_param_dict + ) request = self.prepare_request( method='GET', url=url, @@ -17907,7 +17953,9 @@ def create_cluster_network_subnet_reserved_ip( path_param_keys = ['cluster_network_id', 'cluster_network_subnet_id'] path_param_values = self.encode_path_vars(cluster_network_id, cluster_network_subnet_id) path_param_dict = dict(zip(path_param_keys, path_param_values)) - url = '/cluster_networks/{cluster_network_id}/subnets/{cluster_network_subnet_id}/reserved_ips'.format(**path_param_dict) + url = '/cluster_networks/{cluster_network_id}/subnets/{cluster_network_subnet_id}/reserved_ips'.format( + **path_param_dict + ) request = self.prepare_request( method='POST', url=url, @@ -17976,7 +18024,9 @@ def delete_cluster_network_subnet_reserved_ip( path_param_keys = ['cluster_network_id', 'cluster_network_subnet_id', 'id'] path_param_values = self.encode_path_vars(cluster_network_id, cluster_network_subnet_id, id) path_param_dict = dict(zip(path_param_keys, path_param_values)) - url = '/cluster_networks/{cluster_network_id}/subnets/{cluster_network_subnet_id}/reserved_ips/{id}'.format(**path_param_dict) + url = '/cluster_networks/{cluster_network_id}/subnets/{cluster_network_subnet_id}/reserved_ips/{id}'.format( + **path_param_dict + ) request = self.prepare_request( method='DELETE', url=url, @@ -18036,7 +18086,9 @@ def get_cluster_network_subnet_reserved_ip( path_param_keys = ['cluster_network_id', 'cluster_network_subnet_id', 'id'] path_param_values = self.encode_path_vars(cluster_network_id, cluster_network_subnet_id, id) path_param_dict = dict(zip(path_param_keys, path_param_values)) - url = '/cluster_networks/{cluster_network_id}/subnets/{cluster_network_subnet_id}/reserved_ips/{id}'.format(**path_param_dict) + url = '/cluster_networks/{cluster_network_id}/subnets/{cluster_network_subnet_id}/reserved_ips/{id}'.format( + **path_param_dict + ) request = self.prepare_request( method='GET', url=url, @@ -18116,7 +18168,9 @@ def update_cluster_network_subnet_reserved_ip( path_param_keys = ['cluster_network_id', 'cluster_network_subnet_id', 'id'] path_param_values = self.encode_path_vars(cluster_network_id, cluster_network_subnet_id, id) path_param_dict = dict(zip(path_param_keys, path_param_values)) - url = '/cluster_networks/{cluster_network_id}/subnets/{cluster_network_subnet_id}/reserved_ips/{id}'.format(**path_param_dict) + url = '/cluster_networks/{cluster_network_id}/subnets/{cluster_network_subnet_id}/reserved_ips/{id}'.format( + **path_param_dict + ) request = self.prepare_request( method='PATCH', url=url, @@ -24631,7 +24685,9 @@ def list_load_balancer_listener_policy_rules( path_param_keys = ['load_balancer_id', 'listener_id', 'policy_id'] path_param_values = self.encode_path_vars(load_balancer_id, listener_id, policy_id) path_param_dict = dict(zip(path_param_keys, path_param_values)) - url = '/load_balancers/{load_balancer_id}/listeners/{listener_id}/policies/{policy_id}/rules'.format(**path_param_dict) + url = '/load_balancers/{load_balancer_id}/listeners/{listener_id}/policies/{policy_id}/rules'.format( + **path_param_dict + ) request = self.prepare_request( method='GET', url=url, @@ -24723,7 +24779,9 @@ def create_load_balancer_listener_policy_rule( path_param_keys = ['load_balancer_id', 'listener_id', 'policy_id'] path_param_values = self.encode_path_vars(load_balancer_id, listener_id, policy_id) path_param_dict = dict(zip(path_param_keys, path_param_values)) - url = '/load_balancers/{load_balancer_id}/listeners/{listener_id}/policies/{policy_id}/rules'.format(**path_param_dict) + url = '/load_balancers/{load_balancer_id}/listeners/{listener_id}/policies/{policy_id}/rules'.format( + **path_param_dict + ) request = self.prepare_request( method='POST', url=url, @@ -24786,7 +24844,9 @@ def delete_load_balancer_listener_policy_rule( path_param_keys = ['load_balancer_id', 'listener_id', 'policy_id', 'id'] path_param_values = self.encode_path_vars(load_balancer_id, listener_id, policy_id, id) path_param_dict = dict(zip(path_param_keys, path_param_values)) - url = '/load_balancers/{load_balancer_id}/listeners/{listener_id}/policies/{policy_id}/rules/{id}'.format(**path_param_dict) + url = '/load_balancers/{load_balancer_id}/listeners/{listener_id}/policies/{policy_id}/rules/{id}'.format( + **path_param_dict + ) request = self.prepare_request( method='DELETE', url=url, @@ -24848,7 +24908,9 @@ def get_load_balancer_listener_policy_rule( path_param_keys = ['load_balancer_id', 'listener_id', 'policy_id', 'id'] path_param_values = self.encode_path_vars(load_balancer_id, listener_id, policy_id, id) path_param_dict = dict(zip(path_param_keys, path_param_values)) - url = '/load_balancers/{load_balancer_id}/listeners/{listener_id}/policies/{policy_id}/rules/{id}'.format(**path_param_dict) + url = '/load_balancers/{load_balancer_id}/listeners/{listener_id}/policies/{policy_id}/rules/{id}'.format( + **path_param_dict + ) request = self.prepare_request( method='GET', url=url, @@ -24920,7 +24982,9 @@ def update_load_balancer_listener_policy_rule( path_param_keys = ['load_balancer_id', 'listener_id', 'policy_id', 'id'] path_param_values = self.encode_path_vars(load_balancer_id, listener_id, policy_id, id) path_param_dict = dict(zip(path_param_keys, path_param_values)) - url = '/load_balancers/{load_balancer_id}/listeners/{listener_id}/policies/{policy_id}/rules/{id}'.format(**path_param_dict) + url = '/load_balancers/{load_balancer_id}/listeners/{listener_id}/policies/{policy_id}/rules/{id}'.format( + **path_param_dict + ) request = self.prepare_request( method='PATCH', url=url, @@ -27001,7 +27065,9 @@ def list_private_path_service_gateway_account_policies( path_param_keys = ['private_path_service_gateway_id'] path_param_values = self.encode_path_vars(private_path_service_gateway_id) path_param_dict = dict(zip(path_param_keys, path_param_values)) - url = '/private_path_service_gateways/{private_path_service_gateway_id}/account_policies'.format(**path_param_dict) + url = '/private_path_service_gateways/{private_path_service_gateway_id}/account_policies'.format( + **path_param_dict + ) request = self.prepare_request( method='GET', url=url, @@ -27086,7 +27152,9 @@ def create_private_path_service_gateway_account_policy( path_param_keys = ['private_path_service_gateway_id'] path_param_values = self.encode_path_vars(private_path_service_gateway_id) path_param_dict = dict(zip(path_param_keys, path_param_values)) - url = '/private_path_service_gateways/{private_path_service_gateway_id}/account_policies'.format(**path_param_dict) + url = '/private_path_service_gateways/{private_path_service_gateway_id}/account_policies'.format( + **path_param_dict + ) request = self.prepare_request( method='POST', url=url, @@ -27142,7 +27210,9 @@ def delete_private_path_service_gateway_account_policy( path_param_keys = ['private_path_service_gateway_id', 'id'] path_param_values = self.encode_path_vars(private_path_service_gateway_id, id) path_param_dict = dict(zip(path_param_keys, path_param_values)) - url = '/private_path_service_gateways/{private_path_service_gateway_id}/account_policies/{id}'.format(**path_param_dict) + url = '/private_path_service_gateways/{private_path_service_gateway_id}/account_policies/{id}'.format( + **path_param_dict + ) request = self.prepare_request( method='DELETE', url=url, @@ -27198,7 +27268,9 @@ def get_private_path_service_gateway_account_policy( path_param_keys = ['private_path_service_gateway_id', 'id'] path_param_values = self.encode_path_vars(private_path_service_gateway_id, id) path_param_dict = dict(zip(path_param_keys, path_param_values)) - url = '/private_path_service_gateways/{private_path_service_gateway_id}/account_policies/{id}'.format(**path_param_dict) + url = '/private_path_service_gateways/{private_path_service_gateway_id}/account_policies/{id}'.format( + **path_param_dict + ) request = self.prepare_request( method='GET', url=url, @@ -27241,7 +27313,9 @@ def update_private_path_service_gateway_account_policy( if private_path_service_gateway_account_policy_patch is None: raise ValueError('private_path_service_gateway_account_policy_patch must be provided') if isinstance(private_path_service_gateway_account_policy_patch, PrivatePathServiceGatewayAccountPolicyPatch): - private_path_service_gateway_account_policy_patch = convert_model(private_path_service_gateway_account_policy_patch) + private_path_service_gateway_account_policy_patch = convert_model( + private_path_service_gateway_account_policy_patch + ) headers = {} sdk_headers = get_sdk_headers( service_name=self.DEFAULT_SERVICE_NAME, @@ -27266,7 +27340,9 @@ def update_private_path_service_gateway_account_policy( path_param_keys = ['private_path_service_gateway_id', 'id'] path_param_values = self.encode_path_vars(private_path_service_gateway_id, id) path_param_dict = dict(zip(path_param_keys, path_param_values)) - url = '/private_path_service_gateways/{private_path_service_gateway_id}/account_policies/{id}'.format(**path_param_dict) + url = '/private_path_service_gateways/{private_path_service_gateway_id}/account_policies/{id}'.format( + **path_param_dict + ) request = self.prepare_request( method='PATCH', url=url, @@ -27343,7 +27419,9 @@ def list_private_path_service_gateway_endpoint_gateway_bindings( path_param_keys = ['private_path_service_gateway_id'] path_param_values = self.encode_path_vars(private_path_service_gateway_id) path_param_dict = dict(zip(path_param_keys, path_param_values)) - url = '/private_path_service_gateways/{private_path_service_gateway_id}/endpoint_gateway_bindings'.format(**path_param_dict) + url = '/private_path_service_gateways/{private_path_service_gateway_id}/endpoint_gateway_bindings'.format( + **path_param_dict + ) request = self.prepare_request( method='GET', url=url, @@ -27399,7 +27477,9 @@ def get_private_path_service_gateway_endpoint_gateway_binding( path_param_keys = ['private_path_service_gateway_id', 'id'] path_param_values = self.encode_path_vars(private_path_service_gateway_id, id) path_param_dict = dict(zip(path_param_keys, path_param_values)) - url = '/private_path_service_gateways/{private_path_service_gateway_id}/endpoint_gateway_bindings/{id}'.format(**path_param_dict) + url = '/private_path_service_gateways/{private_path_service_gateway_id}/endpoint_gateway_bindings/{id}'.format( + **path_param_dict + ) request = self.prepare_request( method='GET', url=url, @@ -27475,7 +27555,9 @@ def deny_private_path_service_gateway_endpoint_gateway_binding( path_param_keys = ['private_path_service_gateway_id', 'id'] path_param_values = self.encode_path_vars(private_path_service_gateway_id, id) path_param_dict = dict(zip(path_param_keys, path_param_values)) - url = '/private_path_service_gateways/{private_path_service_gateway_id}/endpoint_gateway_bindings/{id}/deny'.format(**path_param_dict) + url = '/private_path_service_gateways/{private_path_service_gateway_id}/endpoint_gateway_bindings/{id}/deny'.format( + **path_param_dict + ) request = self.prepare_request( method='POST', url=url, @@ -27554,7 +27636,9 @@ def permit_private_path_service_gateway_endpoint_gateway_binding( path_param_keys = ['private_path_service_gateway_id', 'id'] path_param_values = self.encode_path_vars(private_path_service_gateway_id, id) path_param_dict = dict(zip(path_param_keys, path_param_values)) - url = '/private_path_service_gateways/{private_path_service_gateway_id}/endpoint_gateway_bindings/{id}/permit'.format(**path_param_dict) + url = '/private_path_service_gateways/{private_path_service_gateway_id}/endpoint_gateway_bindings/{id}/permit'.format( + **path_param_dict + ) request = self.prepare_request( method='POST', url=url, @@ -27673,7 +27757,9 @@ def revoke_account_for_private_path_service_gateway( path_param_keys = ['private_path_service_gateway_id'] path_param_values = self.encode_path_vars(private_path_service_gateway_id) path_param_dict = dict(zip(path_param_keys, path_param_values)) - url = '/private_path_service_gateways/{private_path_service_gateway_id}/revoke_account'.format(**path_param_dict) + url = '/private_path_service_gateways/{private_path_service_gateway_id}/revoke_account'.format( + **path_param_dict + ) request = self.prepare_request( method='POST', url=url, @@ -27794,6 +27880,7 @@ class Status(str, Enum): OBSOLETE = 'obsolete' PENDING = 'pending' UNUSABLE = 'unusable' + class Visibility(str, Enum): """ Filters the collection to images with a `visibility` property matching the @@ -27802,6 +27889,7 @@ class Visibility(str, Enum): PRIVATE = 'private' PUBLIC = 'public' + class UserDataFormat(str, Enum): """ Filters the collection to images with a `user_data_format` property matching one @@ -27827,6 +27915,7 @@ class AttachmentState(str, Enum): ATTACHED = 'attached' UNATTACHED = 'unattached' UNUSABLE = 'unusable' + class Encryption(str, Enum): """ Filters the collection to resources with an `encryption` property matching the @@ -27907,6 +27996,7 @@ class Sort(str, Enum): CREATED_AT = 'created_at' NAME = 'name' + class ReplicationRole(str, Enum): """ Filters the collection to file shares with a `replication_role` property matching @@ -27932,6 +28022,7 @@ class Status(str, Enum): FAILED = 'failed' RUNNING = 'running' SUCCEEDED = 'succeeded' + class Sort(str, Enum): """ Sorts the returned collection by the specified property name in ascending order. A @@ -28103,6 +28194,7 @@ class Sort(str, Enum): CREATED_AT = 'created_at' NAME = 'name' + class Mode(str, Enum): """ Filters the collection to VPN gateways with a `mode` property matching the @@ -28337,7 +28429,6 @@ class ResourceTypeEnum(str, Enum): ACCOUNT = 'account' - class AddressPrefix: """ AddressPrefix. @@ -28803,7 +28894,6 @@ class HealthStateEnum(str, Enum): INAPPLICABLE = 'inapplicable' OK = 'ok' - class LifecycleStateEnum(str, Enum): """ The lifecycle state of the backup policy. @@ -28817,7 +28907,6 @@ class LifecycleStateEnum(str, Enum): UPDATING = 'updating' WAITING = 'waiting' - class MatchResourceTypeEnum(str, Enum): """ The resource type this backup policy applies to. Resources that have both a @@ -28830,7 +28919,6 @@ class MatchResourceTypeEnum(str, Enum): INSTANCE = 'instance' VOLUME = 'volume' - class ResourceTypeEnum(str, Enum): """ The resource type. @@ -28839,7 +28927,6 @@ class ResourceTypeEnum(str, Enum): BACKUP_POLICY = 'backup_policy' - class BackupPolicyCollection: """ BackupPolicyCollection. @@ -29043,7 +29130,6 @@ class CodeEnum(str, Enum): MISSING_SERVICE_AUTHORIZATION_POLICIES = 'missing_service_authorization_policies' - class BackupPolicyJob: """ BackupPolicyJob. @@ -29290,7 +29376,6 @@ class JobTypeEnum(str, Enum): CREATION = 'creation' DELETION = 'deletion' - class ResourceTypeEnum(str, Enum): """ The resource type. @@ -29298,7 +29383,6 @@ class ResourceTypeEnum(str, Enum): BACKUP_POLICY_JOB = 'backup_policy_job' - class StatusEnum(str, Enum): """ The status of the backup policy job. @@ -29312,7 +29396,6 @@ class StatusEnum(str, Enum): SUCCEEDED = 'succeeded' - class BackupPolicyJobCollection: """ BackupPolicyJobCollection. @@ -29587,7 +29670,6 @@ class CodeEnum(str, Enum): SOURCE_VOLUME_UNAVAILABLE = 'source_volume_unavailable' - class BackupPolicyPatch: """ BackupPolicyPatch. @@ -29683,7 +29765,6 @@ class IncludedContentEnum(str, Enum): DATA_VOLUMES = 'data_volumes' - class BackupPolicyPlan: """ BackupPolicyPlan. @@ -29819,7 +29900,9 @@ def from_dict(cls, _dict: Dict) -> 'BackupPolicyPlan': else: raise ValueError('Required property \'name\' not present in BackupPolicyPlan JSON') if (remote_region_policies := _dict.get('remote_region_policies')) is not None: - args['remote_region_policies'] = [BackupPolicyPlanRemoteRegionPolicy.from_dict(v) for v in remote_region_policies] + args['remote_region_policies'] = [ + BackupPolicyPlanRemoteRegionPolicy.from_dict(v) for v in remote_region_policies + ] else: raise ValueError('Required property \'remote_region_policies\' not present in BackupPolicyPlan JSON') if (resource_type := _dict.get('resource_type')) is not None: @@ -29907,7 +29990,6 @@ class LifecycleStateEnum(str, Enum): UPDATING = 'updating' WAITING = 'waiting' - class ResourceTypeEnum(str, Enum): """ The resource type. @@ -29916,7 +29998,6 @@ class ResourceTypeEnum(str, Enum): BACKUP_POLICY_PLAN = 'backup_policy_plan' - class BackupPolicyPlanClonePolicy: """ BackupPolicyPlanClonePolicy. @@ -30569,7 +30650,9 @@ def from_dict(cls, _dict: Dict) -> 'BackupPolicyPlanPatch': if (name := _dict.get('name')) is not None: args['name'] = name if (remote_region_policies := _dict.get('remote_region_policies')) is not None: - args['remote_region_policies'] = [BackupPolicyPlanRemoteRegionPolicyPrototype.from_dict(v) for v in remote_region_policies] + args['remote_region_policies'] = [ + BackupPolicyPlanRemoteRegionPolicyPrototype.from_dict(v) for v in remote_region_policies + ] return cls(**args) @classmethod @@ -30720,7 +30803,9 @@ def from_dict(cls, _dict: Dict) -> 'BackupPolicyPlanPrototype': if (name := _dict.get('name')) is not None: args['name'] = name if (remote_region_policies := _dict.get('remote_region_policies')) is not None: - args['remote_region_policies'] = [BackupPolicyPlanRemoteRegionPolicyPrototype.from_dict(v) for v in remote_region_policies] + args['remote_region_policies'] = [ + BackupPolicyPlanRemoteRegionPolicyPrototype.from_dict(v) for v in remote_region_policies + ] return cls(**args) @classmethod @@ -30909,7 +30994,6 @@ class ResourceTypeEnum(str, Enum): BACKUP_POLICY_PLAN = 'backup_policy_plan' - class BackupPolicyPlanRemote: """ If present, this property indicates that the resource associated with this reference @@ -31015,11 +31099,15 @@ def from_dict(cls, _dict: Dict) -> 'BackupPolicyPlanRemoteRegionPolicy': if (delete_over_count := _dict.get('delete_over_count')) is not None: args['delete_over_count'] = delete_over_count else: - raise ValueError('Required property \'delete_over_count\' not present in BackupPolicyPlanRemoteRegionPolicy JSON') + raise ValueError( + 'Required property \'delete_over_count\' not present in BackupPolicyPlanRemoteRegionPolicy JSON' + ) if (encryption_key := _dict.get('encryption_key')) is not None: args['encryption_key'] = EncryptionKeyReference.from_dict(encryption_key) else: - raise ValueError('Required property \'encryption_key\' not present in BackupPolicyPlanRemoteRegionPolicy JSON') + raise ValueError( + 'Required property \'encryption_key\' not present in BackupPolicyPlanRemoteRegionPolicy JSON' + ) if (region := _dict.get('region')) is not None: args['region'] = RegionReference.from_dict(region) else: @@ -31115,7 +31203,9 @@ def from_dict(cls, _dict: Dict) -> 'BackupPolicyPlanRemoteRegionPolicyPrototype' if (region := _dict.get('region')) is not None: args['region'] = region else: - raise ValueError('Required property \'region\' not present in BackupPolicyPlanRemoteRegionPolicyPrototype JSON') + raise ValueError( + 'Required property \'region\' not present in BackupPolicyPlanRemoteRegionPolicyPrototype JSON' + ) return cls(**args) @classmethod @@ -31216,7 +31306,12 @@ def __init__( If unspecified, the policy will be scoped to the account. """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['BackupPolicyPrototypeBackupPolicyMatchResourceTypeVolumePrototype', 'BackupPolicyPrototypeBackupPolicyMatchResourceTypeInstancePrototype']) + ", ".join( + [ + 'BackupPolicyPrototypeBackupPolicyMatchResourceTypeVolumePrototype', + 'BackupPolicyPrototypeBackupPolicyMatchResourceTypeInstancePrototype', + ] + ) ) raise Exception(msg) @@ -31230,7 +31325,6 @@ class MatchResourceTypeEnum(str, Enum): VOLUME = 'volume' - class BackupPolicyScope: """ The scope for this backup policy. @@ -31546,15 +31640,23 @@ def from_dict(cls, _dict: Dict) -> 'BareMetalServer': else: raise ValueError('Required property \'name\' not present in BareMetalServer JSON') if (network_attachments := _dict.get('network_attachments')) is not None: - args['network_attachments'] = [BareMetalServerNetworkAttachmentReference.from_dict(v) for v in network_attachments] + args['network_attachments'] = [ + BareMetalServerNetworkAttachmentReference.from_dict(v) for v in network_attachments + ] if (network_interfaces := _dict.get('network_interfaces')) is not None: - args['network_interfaces'] = [NetworkInterfaceBareMetalServerContextReference.from_dict(v) for v in network_interfaces] + args['network_interfaces'] = [ + NetworkInterfaceBareMetalServerContextReference.from_dict(v) for v in network_interfaces + ] else: raise ValueError('Required property \'network_interfaces\' not present in BareMetalServer JSON') if (primary_network_attachment := _dict.get('primary_network_attachment')) is not None: - args['primary_network_attachment'] = BareMetalServerNetworkAttachmentReference.from_dict(primary_network_attachment) + args['primary_network_attachment'] = BareMetalServerNetworkAttachmentReference.from_dict( + primary_network_attachment + ) if (primary_network_interface := _dict.get('primary_network_interface')) is not None: - args['primary_network_interface'] = NetworkInterfaceBareMetalServerContextReference.from_dict(primary_network_interface) + args['primary_network_interface'] = NetworkInterfaceBareMetalServerContextReference.from_dict( + primary_network_interface + ) else: raise ValueError('Required property \'primary_network_interface\' not present in BareMetalServer JSON') if (profile := _dict.get('profile')) is not None: @@ -31744,7 +31846,6 @@ class LifecycleStateEnum(str, Enum): UPDATING = 'updating' WAITING = 'waiting' - class ResourceTypeEnum(str, Enum): """ The resource type. @@ -31752,7 +31853,6 @@ class ResourceTypeEnum(str, Enum): BARE_METAL_SERVER = 'bare_metal_server' - class StatusEnum(str, Enum): """ The status of this bare metal server: @@ -31781,7 +31881,6 @@ class StatusEnum(str, Enum): STOPPED = 'stopped' - class BareMetalServerBootTarget: """ The resource from which this bare metal server is booted. @@ -32136,7 +32235,6 @@ class ConsoleTypeEnum(str, Enum): VNC = 'vnc' - class BareMetalServerDisk: """ BareMetalServerDisk. @@ -32284,7 +32382,6 @@ class InterfaceTypeEnum(str, Enum): NVME = 'nvme' SATA = 'sata' - class ResourceTypeEnum(str, Enum): """ The resource type. @@ -32293,7 +32390,6 @@ class ResourceTypeEnum(str, Enum): BARE_METAL_SERVER_DISK = 'bare_metal_server_disk' - class BareMetalServerDiskCollection: """ BareMetalServerDiskCollection. @@ -32497,7 +32593,6 @@ class UpdateEnum(str, Enum): REQUIRED = 'required' - class BareMetalServerInitialization: """ BareMetalServerInitialization. @@ -32831,7 +32926,6 @@ class CodeEnum(str, Enum): RESOURCE_SUSPENDED_BY_PROVIDER = 'resource_suspended_by_provider' - class BareMetalServerNetworkAttachment: """ BareMetalServerNetworkAttachment. @@ -32964,7 +33058,6 @@ class InterfaceTypeEnum(str, Enum): PCI = 'pci' VLAN = 'vlan' - class LifecycleStateEnum(str, Enum): """ The lifecycle state of the bare metal server network attachment. @@ -32978,7 +33071,6 @@ class LifecycleStateEnum(str, Enum): UPDATING = 'updating' WAITING = 'waiting' - class ResourceTypeEnum(str, Enum): """ The resource type. @@ -32986,7 +33078,6 @@ class ResourceTypeEnum(str, Enum): BARE_METAL_SERVER_NETWORK_ATTACHMENT = 'bare_metal_server_network_attachment' - class TypeEnum(str, Enum): """ The bare metal server network attachment type. @@ -32999,7 +33090,6 @@ class TypeEnum(str, Enum): SECONDARY = 'secondary' - class BareMetalServerNetworkAttachmentCollection: """ BareMetalServerNetworkAttachmentCollection. @@ -33050,21 +33140,29 @@ def from_dict(cls, _dict: Dict) -> 'BareMetalServerNetworkAttachmentCollection': if (first := _dict.get('first')) is not None: args['first'] = PageLink.from_dict(first) else: - raise ValueError('Required property \'first\' not present in BareMetalServerNetworkAttachmentCollection JSON') + raise ValueError( + 'Required property \'first\' not present in BareMetalServerNetworkAttachmentCollection JSON' + ) if (limit := _dict.get('limit')) is not None: args['limit'] = limit else: - raise ValueError('Required property \'limit\' not present in BareMetalServerNetworkAttachmentCollection JSON') + raise ValueError( + 'Required property \'limit\' not present in BareMetalServerNetworkAttachmentCollection JSON' + ) if (network_attachments := _dict.get('network_attachments')) is not None: args['network_attachments'] = network_attachments else: - raise ValueError('Required property \'network_attachments\' not present in BareMetalServerNetworkAttachmentCollection JSON') + raise ValueError( + 'Required property \'network_attachments\' not present in BareMetalServerNetworkAttachmentCollection JSON' + ) if (next := _dict.get('next')) is not None: args['next'] = PageLink.from_dict(next) if (total_count := _dict.get('total_count')) is not None: args['total_count'] = total_count else: - raise ValueError('Required property \'total_count\' not present in BareMetalServerNetworkAttachmentCollection JSON') + raise ValueError( + 'Required property \'total_count\' not present in BareMetalServerNetworkAttachmentCollection JSON' + ) return cls(**args) @classmethod @@ -33266,7 +33364,12 @@ def __init__( of randomly-selected words. """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['BareMetalServerNetworkAttachmentPrototypeBareMetalServerNetworkAttachmentByPCIPrototype', 'BareMetalServerNetworkAttachmentPrototypeBareMetalServerNetworkAttachmentByVLANPrototype']) + ", ".join( + [ + 'BareMetalServerNetworkAttachmentPrototypeBareMetalServerNetworkAttachmentByPCIPrototype', + 'BareMetalServerNetworkAttachmentPrototypeBareMetalServerNetworkAttachmentByVLANPrototype', + ] + ) ) raise Exception(msg) @@ -33291,7 +33394,6 @@ class InterfaceTypeEnum(str, Enum): VLAN = 'vlan' - class BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterface: """ A virtual network interface for the bare metal server network attachment. This can be @@ -33310,7 +33412,12 @@ def __init__( """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeBareMetalServerNetworkAttachmentContext', 'BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentity']) + ", ".join( + [ + 'BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeBareMetalServerNetworkAttachmentContext', + 'BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentity', + ] + ) ) raise Exception(msg) @@ -33404,19 +33511,29 @@ def from_dict(cls, _dict: Dict) -> 'BareMetalServerNetworkAttachmentReference': if (primary_ip := _dict.get('primary_ip')) is not None: args['primary_ip'] = ReservedIPReference.from_dict(primary_ip) else: - raise ValueError('Required property \'primary_ip\' not present in BareMetalServerNetworkAttachmentReference JSON') + raise ValueError( + 'Required property \'primary_ip\' not present in BareMetalServerNetworkAttachmentReference JSON' + ) if (resource_type := _dict.get('resource_type')) is not None: args['resource_type'] = resource_type else: - raise ValueError('Required property \'resource_type\' not present in BareMetalServerNetworkAttachmentReference JSON') + raise ValueError( + 'Required property \'resource_type\' not present in BareMetalServerNetworkAttachmentReference JSON' + ) if (subnet := _dict.get('subnet')) is not None: args['subnet'] = SubnetReference.from_dict(subnet) else: - raise ValueError('Required property \'subnet\' not present in BareMetalServerNetworkAttachmentReference JSON') + raise ValueError( + 'Required property \'subnet\' not present in BareMetalServerNetworkAttachmentReference JSON' + ) if (virtual_network_interface := _dict.get('virtual_network_interface')) is not None: - args['virtual_network_interface'] = VirtualNetworkInterfaceReferenceAttachmentContext.from_dict(virtual_network_interface) + args['virtual_network_interface'] = VirtualNetworkInterfaceReferenceAttachmentContext.from_dict( + virtual_network_interface + ) else: - raise ValueError('Required property \'virtual_network_interface\' not present in BareMetalServerNetworkAttachmentReference JSON') + raise ValueError( + 'Required property \'virtual_network_interface\' not present in BareMetalServerNetworkAttachmentReference JSON' + ) return cls(**args) @classmethod @@ -33483,7 +33600,6 @@ class ResourceTypeEnum(str, Enum): BARE_METAL_SERVER_NETWORK_ATTACHMENT = 'bare_metal_server_network_attachment' - class BareMetalServerNetworkInterface: """ BareMetalServerNetworkInterface. @@ -33765,7 +33881,13 @@ def __init__( interface, and the type is that of its corresponding network attachment. """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['BareMetalServerNetworkInterfaceByHiperSocket', 'BareMetalServerNetworkInterfaceByPCI', 'BareMetalServerNetworkInterfaceByVLAN']) + ", ".join( + [ + 'BareMetalServerNetworkInterfaceByHiperSocket', + 'BareMetalServerNetworkInterfaceByPCI', + 'BareMetalServerNetworkInterfaceByVLAN', + ] + ) ) raise Exception(msg) @@ -33776,7 +33898,13 @@ def from_dict(cls, _dict: Dict) -> 'BareMetalServerNetworkInterface': if disc_class != cls: return disc_class.from_dict(_dict) msg = "Cannot convert dictionary into an instance of base class 'BareMetalServerNetworkInterface'. The discriminator value should map to a valid subclass: {1}".format( - ", ".join(['BareMetalServerNetworkInterfaceByHiperSocket', 'BareMetalServerNetworkInterfaceByPCI', 'BareMetalServerNetworkInterfaceByVLAN']) + ", ".join( + [ + 'BareMetalServerNetworkInterfaceByHiperSocket', + 'BareMetalServerNetworkInterfaceByPCI', + 'BareMetalServerNetworkInterfaceByVLAN', + ] + ) ) raise Exception(msg) @@ -33793,7 +33921,9 @@ def _get_class_by_discriminator(cls, _dict: Dict) -> object: mapping['vlan'] = 'BareMetalServerNetworkInterfaceByVLAN' disc_value = _dict.get('interface_type') if disc_value is None: - raise ValueError('Discriminator property \'interface_type\' not found in BareMetalServerNetworkInterface JSON') + raise ValueError( + 'Discriminator property \'interface_type\' not found in BareMetalServerNetworkInterface JSON' + ) class_name = mapping.get(disc_value, disc_value) try: disc_class = getattr(sys.modules[__name__], class_name) @@ -33835,7 +33965,6 @@ class InterfaceTypeEnum(str, Enum): PCI = 'pci' VLAN = 'vlan' - class ResourceTypeEnum(str, Enum): """ The resource type. @@ -33843,7 +33972,6 @@ class ResourceTypeEnum(str, Enum): NETWORK_INTERFACE = 'network_interface' - class StatusEnum(str, Enum): """ The status of the bare metal server network interface. @@ -33858,7 +33986,6 @@ class StatusEnum(str, Enum): FAILED = 'failed' PENDING = 'pending' - class TypeEnum(str, Enum): """ The bare metal server network interface type. @@ -33873,7 +34000,6 @@ class TypeEnum(str, Enum): SECONDARY = 'secondary' - class BareMetalServerNetworkInterfaceCollection: """ BareMetalServerNetworkInterfaceCollection. @@ -33924,21 +34050,29 @@ def from_dict(cls, _dict: Dict) -> 'BareMetalServerNetworkInterfaceCollection': if (first := _dict.get('first')) is not None: args['first'] = PageLink.from_dict(first) else: - raise ValueError('Required property \'first\' not present in BareMetalServerNetworkInterfaceCollection JSON') + raise ValueError( + 'Required property \'first\' not present in BareMetalServerNetworkInterfaceCollection JSON' + ) if (limit := _dict.get('limit')) is not None: args['limit'] = limit else: - raise ValueError('Required property \'limit\' not present in BareMetalServerNetworkInterfaceCollection JSON') + raise ValueError( + 'Required property \'limit\' not present in BareMetalServerNetworkInterfaceCollection JSON' + ) if (network_interfaces := _dict.get('network_interfaces')) is not None: args['network_interfaces'] = [BareMetalServerNetworkInterface.from_dict(v) for v in network_interfaces] else: - raise ValueError('Required property \'network_interfaces\' not present in BareMetalServerNetworkInterfaceCollection JSON') + raise ValueError( + 'Required property \'network_interfaces\' not present in BareMetalServerNetworkInterfaceCollection JSON' + ) if (next := _dict.get('next')) is not None: args['next'] = PageLink.from_dict(next) if (total_count := _dict.get('total_count')) is not None: args['total_count'] = total_count else: - raise ValueError('Required property \'total_count\' not present in BareMetalServerNetworkInterfaceCollection JSON') + raise ValueError( + 'Required property \'total_count\' not present in BareMetalServerNetworkInterfaceCollection JSON' + ) return cls(**args) @classmethod @@ -34274,7 +34408,13 @@ def __init__( the VPC's default security group is used. """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByHiperSocketPrototype', 'BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByPCIPrototype', 'BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByVLANPrototype']) + ", ".join( + [ + 'BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByHiperSocketPrototype', + 'BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByPCIPrototype', + 'BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByVLANPrototype', + ] + ) ) raise Exception(msg) @@ -34285,7 +34425,13 @@ def from_dict(cls, _dict: Dict) -> 'BareMetalServerNetworkInterfacePrototype': if disc_class != cls: return disc_class.from_dict(_dict) msg = "Cannot convert dictionary into an instance of base class 'BareMetalServerNetworkInterfacePrototype'. The discriminator value should map to a valid subclass: {1}".format( - ", ".join(['BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByHiperSocketPrototype', 'BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByPCIPrototype', 'BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByVLANPrototype']) + ", ".join( + [ + 'BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByHiperSocketPrototype', + 'BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByPCIPrototype', + 'BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByVLANPrototype', + ] + ) ) raise Exception(msg) @@ -34297,12 +34443,16 @@ def _from_dict(cls, _dict: Dict): @classmethod def _get_class_by_discriminator(cls, _dict: Dict) -> object: mapping = {} - mapping['hipersocket'] = 'BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByHiperSocketPrototype' + mapping['hipersocket'] = ( + 'BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByHiperSocketPrototype' + ) mapping['pci'] = 'BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByPCIPrototype' mapping['vlan'] = 'BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByVLANPrototype' disc_value = _dict.get('interface_type') if disc_value is None: - raise ValueError('Discriminator property \'interface_type\' not found in BareMetalServerNetworkInterfacePrototype JSON') + raise ValueError( + 'Discriminator property \'interface_type\' not found in BareMetalServerNetworkInterfacePrototype JSON' + ) class_name = mapping.get(disc_value, disc_value) try: disc_class = getattr(sys.modules[__name__], class_name) @@ -34340,7 +34490,6 @@ class InterfaceTypeEnum(str, Enum): VLAN = 'vlan' - class BareMetalServerPatch: """ BareMetalServerPatch. @@ -34403,7 +34552,9 @@ def from_dict(cls, _dict: Dict) -> 'BareMetalServerPatch': if (name := _dict.get('name')) is not None: args['name'] = name if (trusted_platform_module := _dict.get('trusted_platform_module')) is not None: - args['trusted_platform_module'] = BareMetalServerTrustedPlatformModulePatch.from_dict(trusted_platform_module) + args['trusted_platform_module'] = BareMetalServerTrustedPlatformModulePatch.from_dict( + trusted_platform_module + ) return cls(**args) @classmethod @@ -34510,7 +34661,11 @@ def __init__( of randomly-selected words. """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['BareMetalServerPrimaryNetworkAttachmentPrototypeBareMetalServerPrimaryNetworkAttachmentByPCIPrototype']) + ", ".join( + [ + 'BareMetalServerPrimaryNetworkAttachmentPrototypeBareMetalServerPrimaryNetworkAttachmentByPCIPrototype' + ] + ) ) raise Exception(msg) @@ -34530,7 +34685,6 @@ class InterfaceTypeEnum(str, Enum): PCI = 'pci' - class BareMetalServerPrimaryNetworkInterfacePrototype: """ BareMetalServerPrimaryNetworkInterfacePrototype. @@ -34708,7 +34862,9 @@ def from_dict(cls, _dict: Dict) -> 'BareMetalServerPrimaryNetworkInterfaceProtot if (subnet := _dict.get('subnet')) is not None: args['subnet'] = subnet else: - raise ValueError('Required property \'subnet\' not present in BareMetalServerPrimaryNetworkInterfacePrototype JSON') + raise ValueError( + 'Required property \'subnet\' not present in BareMetalServerPrimaryNetworkInterfacePrototype JSON' + ) return cls(**args) @classmethod @@ -34787,7 +34943,6 @@ class InterfaceTypeEnum(str, Enum): PCI = 'pci' - class BareMetalServerProfile: """ BareMetalServerProfile. @@ -34927,7 +35082,9 @@ def from_dict(cls, _dict: Dict) -> 'BareMetalServerProfile': if (network_attachment_count := _dict.get('network_attachment_count')) is not None: args['network_attachment_count'] = network_attachment_count else: - raise ValueError('Required property \'network_attachment_count\' not present in BareMetalServerProfile JSON') + raise ValueError( + 'Required property \'network_attachment_count\' not present in BareMetalServerProfile JSON' + ) if (network_interface_count := _dict.get('network_interface_count')) is not None: args['network_interface_count'] = network_interface_count else: @@ -34940,14 +35097,26 @@ def from_dict(cls, _dict: Dict) -> 'BareMetalServerProfile': args['resource_type'] = resource_type else: raise ValueError('Required property \'resource_type\' not present in BareMetalServerProfile JSON') - if (supported_trusted_platform_module_modes := _dict.get('supported_trusted_platform_module_modes')) is not None: - args['supported_trusted_platform_module_modes'] = BareMetalServerProfileSupportedTrustedPlatformModuleModes.from_dict(supported_trusted_platform_module_modes) + if ( + supported_trusted_platform_module_modes := _dict.get('supported_trusted_platform_module_modes') + ) is not None: + args['supported_trusted_platform_module_modes'] = ( + BareMetalServerProfileSupportedTrustedPlatformModuleModes.from_dict( + supported_trusted_platform_module_modes + ) + ) else: - raise ValueError('Required property \'supported_trusted_platform_module_modes\' not present in BareMetalServerProfile JSON') + raise ValueError( + 'Required property \'supported_trusted_platform_module_modes\' not present in BareMetalServerProfile JSON' + ) if (virtual_network_interfaces_supported := _dict.get('virtual_network_interfaces_supported')) is not None: - args['virtual_network_interfaces_supported'] = BareMetalServerProfileVirtualNetworkInterfacesSupported.from_dict(virtual_network_interfaces_supported) + args['virtual_network_interfaces_supported'] = ( + BareMetalServerProfileVirtualNetworkInterfacesSupported.from_dict(virtual_network_interfaces_supported) + ) else: - raise ValueError('Required property \'virtual_network_interfaces_supported\' not present in BareMetalServerProfile JSON') + raise ValueError( + 'Required property \'virtual_network_interfaces_supported\' not present in BareMetalServerProfile JSON' + ) return cls(**args) @classmethod @@ -35019,12 +35188,20 @@ def to_dict(self) -> Dict: _dict['os_architecture'] = self.os_architecture.to_dict() if hasattr(self, 'resource_type') and self.resource_type is not None: _dict['resource_type'] = self.resource_type - if hasattr(self, 'supported_trusted_platform_module_modes') and self.supported_trusted_platform_module_modes is not None: + if ( + hasattr(self, 'supported_trusted_platform_module_modes') + and self.supported_trusted_platform_module_modes is not None + ): if isinstance(self.supported_trusted_platform_module_modes, dict): _dict['supported_trusted_platform_module_modes'] = self.supported_trusted_platform_module_modes else: - _dict['supported_trusted_platform_module_modes'] = self.supported_trusted_platform_module_modes.to_dict() - if hasattr(self, 'virtual_network_interfaces_supported') and self.virtual_network_interfaces_supported is not None: + _dict['supported_trusted_platform_module_modes'] = ( + self.supported_trusted_platform_module_modes.to_dict() + ) + if ( + hasattr(self, 'virtual_network_interfaces_supported') + and self.virtual_network_interfaces_supported is not None + ): if isinstance(self.virtual_network_interfaces_supported, dict): _dict['virtual_network_interfaces_supported'] = self.virtual_network_interfaces_supported else: @@ -35057,7 +35234,6 @@ class ResourceTypeEnum(str, Enum): BARE_METAL_SERVER_PROFILE = 'bare_metal_server_profile' - class BareMetalServerProfileBandwidth: """ BareMetalServerProfileBandwidth. @@ -35072,7 +35248,14 @@ def __init__( """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['BareMetalServerProfileBandwidthFixed', 'BareMetalServerProfileBandwidthRange', 'BareMetalServerProfileBandwidthEnum', 'BareMetalServerProfileBandwidthDependent']) + ", ".join( + [ + 'BareMetalServerProfileBandwidthFixed', + 'BareMetalServerProfileBandwidthRange', + 'BareMetalServerProfileBandwidthEnum', + 'BareMetalServerProfileBandwidthDependent', + ] + ) ) raise Exception(msg) @@ -35166,7 +35349,6 @@ class TypeEnum(str, Enum): FIXED = 'fixed' - class BareMetalServerProfileCPUCoreCount: """ BareMetalServerProfileCPUCoreCount. @@ -35181,7 +35363,14 @@ def __init__( """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['BareMetalServerProfileCPUCoreCountFixed', 'BareMetalServerProfileCPUCoreCountRange', 'BareMetalServerProfileCPUCoreCountEnum', 'BareMetalServerProfileCPUCoreCountDependent']) + ", ".join( + [ + 'BareMetalServerProfileCPUCoreCountFixed', + 'BareMetalServerProfileCPUCoreCountRange', + 'BareMetalServerProfileCPUCoreCountEnum', + 'BareMetalServerProfileCPUCoreCountDependent', + ] + ) ) raise Exception(msg) @@ -35200,7 +35389,14 @@ def __init__( """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['BareMetalServerProfileCPUSocketCountFixed', 'BareMetalServerProfileCPUSocketCountRange', 'BareMetalServerProfileCPUSocketCountEnum', 'BareMetalServerProfileCPUSocketCountDependent']) + ", ".join( + [ + 'BareMetalServerProfileCPUSocketCountFixed', + 'BareMetalServerProfileCPUSocketCountRange', + 'BareMetalServerProfileCPUSocketCountEnum', + 'BareMetalServerProfileCPUSocketCountDependent', + ] + ) ) raise Exception(msg) @@ -35400,7 +35596,6 @@ class TypeEnum(str, Enum): ENUM = 'enum' - class ValuesEnum(str, Enum): """ A console type. @@ -35410,7 +35605,6 @@ class ValuesEnum(str, Enum): VNC = 'vnc' - class BareMetalServerProfileDisk: """ Disks provided by this profile. @@ -35451,9 +35645,13 @@ def from_dict(cls, _dict: Dict) -> 'BareMetalServerProfileDisk': else: raise ValueError('Required property \'size\' not present in BareMetalServerProfileDisk JSON') if (supported_interface_types := _dict.get('supported_interface_types')) is not None: - args['supported_interface_types'] = BareMetalServerProfileDiskSupportedInterfaces.from_dict(supported_interface_types) + args['supported_interface_types'] = BareMetalServerProfileDiskSupportedInterfaces.from_dict( + supported_interface_types + ) else: - raise ValueError('Required property \'supported_interface_types\' not present in BareMetalServerProfileDisk JSON') + raise ValueError( + 'Required property \'supported_interface_types\' not present in BareMetalServerProfileDisk JSON' + ) return cls(**args) @classmethod @@ -35514,7 +35712,14 @@ def __init__( """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['BareMetalServerProfileDiskQuantityFixed', 'BareMetalServerProfileDiskQuantityRange', 'BareMetalServerProfileDiskQuantityEnum', 'BareMetalServerProfileDiskQuantityDependent']) + ", ".join( + [ + 'BareMetalServerProfileDiskQuantityFixed', + 'BareMetalServerProfileDiskQuantityRange', + 'BareMetalServerProfileDiskQuantityEnum', + 'BareMetalServerProfileDiskQuantityDependent', + ] + ) ) raise Exception(msg) @@ -35533,7 +35738,14 @@ def __init__( """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['BareMetalServerProfileDiskSizeFixed', 'BareMetalServerProfileDiskSizeRange', 'BareMetalServerProfileDiskSizeEnum', 'BareMetalServerProfileDiskSizeDependent']) + ", ".join( + [ + 'BareMetalServerProfileDiskSizeFixed', + 'BareMetalServerProfileDiskSizeRange', + 'BareMetalServerProfileDiskSizeEnum', + 'BareMetalServerProfileDiskSizeDependent', + ] + ) ) raise Exception(msg) @@ -35573,15 +35785,21 @@ def from_dict(cls, _dict: Dict) -> 'BareMetalServerProfileDiskSupportedInterface if (default := _dict.get('default')) is not None: args['default'] = default else: - raise ValueError('Required property \'default\' not present in BareMetalServerProfileDiskSupportedInterfaces JSON') + raise ValueError( + 'Required property \'default\' not present in BareMetalServerProfileDiskSupportedInterfaces JSON' + ) if (type := _dict.get('type')) is not None: args['type'] = type else: - raise ValueError('Required property \'type\' not present in BareMetalServerProfileDiskSupportedInterfaces JSON') + raise ValueError( + 'Required property \'type\' not present in BareMetalServerProfileDiskSupportedInterfaces JSON' + ) if (values := _dict.get('values')) is not None: args['values'] = values else: - raise ValueError('Required property \'values\' not present in BareMetalServerProfileDiskSupportedInterfaces JSON') + raise ValueError( + 'Required property \'values\' not present in BareMetalServerProfileDiskSupportedInterfaces JSON' + ) return cls(**args) @classmethod @@ -35627,7 +35845,6 @@ class DefaultEnum(str, Enum): NVME = 'nvme' SATA = 'sata' - class TypeEnum(str, Enum): """ The type for this profile field. @@ -35635,7 +35852,6 @@ class TypeEnum(str, Enum): ENUM = 'enum' - class ValuesEnum(str, Enum): """ The disk attachment interface used: @@ -35652,7 +35868,6 @@ class ValuesEnum(str, Enum): SATA = 'sata' - class BareMetalServerProfileIdentity: """ Identifies a bare metal server profile by a unique property. @@ -35686,7 +35901,14 @@ def __init__( """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['BareMetalServerProfileMemoryFixed', 'BareMetalServerProfileMemoryRange', 'BareMetalServerProfileMemoryEnum', 'BareMetalServerProfileMemoryDependent']) + ", ".join( + [ + 'BareMetalServerProfileMemoryFixed', + 'BareMetalServerProfileMemoryRange', + 'BareMetalServerProfileMemoryEnum', + 'BareMetalServerProfileMemoryDependent', + ] + ) ) raise Exception(msg) @@ -35705,7 +35927,12 @@ def __init__( """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['BareMetalServerProfileNetworkAttachmentCountRange', 'BareMetalServerProfileNetworkAttachmentCountDependent']) + ", ".join( + [ + 'BareMetalServerProfileNetworkAttachmentCountRange', + 'BareMetalServerProfileNetworkAttachmentCountDependent', + ] + ) ) raise Exception(msg) @@ -35724,7 +35951,12 @@ def __init__( """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['BareMetalServerProfileNetworkInterfaceCountRange', 'BareMetalServerProfileNetworkInterfaceCountDependent']) + ", ".join( + [ + 'BareMetalServerProfileNetworkInterfaceCountRange', + 'BareMetalServerProfileNetworkInterfaceCountDependent', + ] + ) ) raise Exception(msg) @@ -35819,7 +36051,6 @@ class TypeEnum(str, Enum): ENUM = 'enum' - class BareMetalServerProfileReference: """ BareMetalServerProfileReference. @@ -35906,7 +36137,6 @@ class ResourceTypeEnum(str, Enum): BARE_METAL_SERVER_PROFILE = 'bare_metal_server_profile' - class BareMetalServerProfileSupportedTrustedPlatformModuleModes: """ The supported trusted platform module modes for this bare metal server profile. @@ -35945,11 +36175,15 @@ def from_dict(cls, _dict: Dict) -> 'BareMetalServerProfileSupportedTrustedPlatfo if (type := _dict.get('type')) is not None: args['type'] = type else: - raise ValueError('Required property \'type\' not present in BareMetalServerProfileSupportedTrustedPlatformModuleModes JSON') + raise ValueError( + 'Required property \'type\' not present in BareMetalServerProfileSupportedTrustedPlatformModuleModes JSON' + ) if (values := _dict.get('values')) is not None: args['values'] = values else: - raise ValueError('Required property \'values\' not present in BareMetalServerProfileSupportedTrustedPlatformModuleModes JSON') + raise ValueError( + 'Required property \'values\' not present in BareMetalServerProfileSupportedTrustedPlatformModuleModes JSON' + ) return cls(**args) @classmethod @@ -35994,7 +36228,6 @@ class DefaultEnum(str, Enum): DISABLED = 'disabled' TPM_2 = 'tpm_2' - class TypeEnum(str, Enum): """ The type for this profile field. @@ -36002,7 +36235,6 @@ class TypeEnum(str, Enum): ENUM = 'enum' - class ValuesEnum(str, Enum): """ The trusted platform module (TPM) mode: @@ -36017,7 +36249,6 @@ class ValuesEnum(str, Enum): TPM_2 = 'tpm_2' - class BareMetalServerProfileVirtualNetworkInterfacesSupported: """ Indicates whether this profile supports virtual network interfaces. @@ -36047,11 +36278,15 @@ def from_dict(cls, _dict: Dict) -> 'BareMetalServerProfileVirtualNetworkInterfac if (type := _dict.get('type')) is not None: args['type'] = type else: - raise ValueError('Required property \'type\' not present in BareMetalServerProfileVirtualNetworkInterfacesSupported JSON') + raise ValueError( + 'Required property \'type\' not present in BareMetalServerProfileVirtualNetworkInterfacesSupported JSON' + ) if (value := _dict.get('value')) is not None: args['value'] = value else: - raise ValueError('Required property \'value\' not present in BareMetalServerProfileVirtualNetworkInterfacesSupported JSON') + raise ValueError( + 'Required property \'value\' not present in BareMetalServerProfileVirtualNetworkInterfacesSupported JSON' + ) return cls(**args) @classmethod @@ -36094,7 +36329,6 @@ class TypeEnum(str, Enum): FIXED = 'fixed' - class BareMetalServerPrototype: """ BareMetalServerPrototype. @@ -36174,7 +36408,12 @@ def __init__( network interfaces of the bare metal server are attached to. """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['BareMetalServerPrototypeBareMetalServerByNetworkAttachment', 'BareMetalServerPrototypeBareMetalServerByNetworkInterface']) + ", ".join( + [ + 'BareMetalServerPrototypeBareMetalServerByNetworkAttachment', + 'BareMetalServerPrototypeBareMetalServerByNetworkInterface', + ] + ) ) raise Exception(msg) @@ -36304,7 +36543,6 @@ class CodeEnum(str, Enum): CANNOT_UPDATE_FIRMWARE = 'cannot_update_firmware' - class BareMetalServerTrustedPlatformModule: """ BareMetalServerTrustedPlatformModule. @@ -36358,7 +36596,9 @@ def from_dict(cls, _dict: Dict) -> 'BareMetalServerTrustedPlatformModule': if (supported_modes := _dict.get('supported_modes')) is not None: args['supported_modes'] = supported_modes else: - raise ValueError('Required property \'supported_modes\' not present in BareMetalServerTrustedPlatformModule JSON') + raise ValueError( + 'Required property \'supported_modes\' not present in BareMetalServerTrustedPlatformModule JSON' + ) return cls(**args) @classmethod @@ -36408,7 +36648,6 @@ class ModeEnum(str, Enum): DISABLED = 'disabled' TPM_2 = 'tpm_2' - class SupportedModesEnum(str, Enum): """ The trusted platform module (TPM) mode: @@ -36423,7 +36662,6 @@ class SupportedModesEnum(str, Enum): TPM_2 = 'tpm_2' - class BareMetalServerTrustedPlatformModulePatch: """ BareMetalServerTrustedPlatformModulePatch. @@ -36500,7 +36738,6 @@ class ModeEnum(str, Enum): TPM_2 = 'tpm_2' - class BareMetalServerTrustedPlatformModulePrototype: """ BareMetalServerTrustedPlatformModulePrototype. @@ -36578,7 +36815,6 @@ class ModeEnum(str, Enum): TPM_2 = 'tpm_2' - class CatalogOfferingIdentity: """ Identifies a @@ -36874,7 +37110,12 @@ def __init__( """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['CloudObjectStorageBucketIdentityCloudObjectStorageBucketIdentityByName', 'CloudObjectStorageBucketIdentityByCRN']) + ", ".join( + [ + 'CloudObjectStorageBucketIdentityCloudObjectStorageBucketIdentityByName', + 'CloudObjectStorageBucketIdentityByCRN', + ] + ) ) raise Exception(msg) @@ -37237,7 +37478,6 @@ class LifecycleStateEnum(str, Enum): UPDATING = 'updating' WAITING = 'waiting' - class ResourceTypeEnum(str, Enum): """ The resource type. @@ -37246,7 +37486,6 @@ class ResourceTypeEnum(str, Enum): CLUSTER_NETWORK = 'cluster_network' - class ClusterNetworkCollection: """ ClusterNetworkCollection. @@ -37504,7 +37743,9 @@ def from_dict(cls, _dict: Dict) -> 'ClusterNetworkInterface': if (enable_infrastructure_nat := _dict.get('enable_infrastructure_nat')) is not None: args['enable_infrastructure_nat'] = enable_infrastructure_nat else: - raise ValueError('Required property \'enable_infrastructure_nat\' not present in ClusterNetworkInterface JSON') + raise ValueError( + 'Required property \'enable_infrastructure_nat\' not present in ClusterNetworkInterface JSON' + ) if (href := _dict.get('href')) is not None: args['href'] = href else: @@ -37643,7 +37884,6 @@ class LifecycleStateEnum(str, Enum): UPDATING = 'updating' WAITING = 'waiting' - class ResourceTypeEnum(str, Enum): """ The resource type. @@ -37652,7 +37892,6 @@ class ResourceTypeEnum(str, Enum): CLUSTER_NETWORK_INTERFACE = 'cluster_network_interface' - class ClusterNetworkInterfaceCollection: """ ClusterNetworkInterfaceCollection. @@ -37878,7 +38117,6 @@ class CodeEnum(str, Enum): RESOURCE_SUSPENDED_BY_PROVIDER = 'resource_suspended_by_provider' - class ClusterNetworkInterfacePatch: """ ClusterNetworkInterfacePatch. @@ -37969,7 +38207,12 @@ def __init__( """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPIdentityClusterNetworkInterfacePrimaryIPContext', 'ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPPrototypeClusterNetworkInterfacePrimaryIPContext']) + ", ".join( + [ + 'ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPIdentityClusterNetworkInterfacePrimaryIPContext', + 'ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPPrototypeClusterNetworkInterfacePrimaryIPContext', + ] + ) ) raise Exception(msg) @@ -38116,7 +38359,6 @@ class ResourceTypeEnum(str, Enum): CLUSTER_NETWORK_INTERFACE = 'cluster_network_interface' - class ClusterNetworkInterfaceTarget: """ The target of this cluster network interface. @@ -38134,7 +38376,9 @@ def __init__( """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['ClusterNetworkInterfaceTargetInstanceClusterNetworkAttachmentReferenceClusterNetworkInterfaceContext']) + ", ".join( + ['ClusterNetworkInterfaceTargetInstanceClusterNetworkAttachmentReferenceClusterNetworkInterfaceContext'] + ) ) raise Exception(msg) @@ -38246,7 +38490,6 @@ class CodeEnum(str, Enum): RESOURCE_SUSPENDED_BY_PROVIDER = 'resource_suspended_by_provider' - class ClusterNetworkPatch: """ ClusterNetworkPatch. @@ -38379,9 +38622,13 @@ def from_dict(cls, _dict: Dict) -> 'ClusterNetworkProfile': else: raise ValueError('Required property \'resource_type\' not present in ClusterNetworkProfile JSON') if (supported_instance_profiles := _dict.get('supported_instance_profiles')) is not None: - args['supported_instance_profiles'] = [InstanceProfileReference.from_dict(v) for v in supported_instance_profiles] + args['supported_instance_profiles'] = [ + InstanceProfileReference.from_dict(v) for v in supported_instance_profiles + ] else: - raise ValueError('Required property \'supported_instance_profiles\' not present in ClusterNetworkProfile JSON') + raise ValueError( + 'Required property \'supported_instance_profiles\' not present in ClusterNetworkProfile JSON' + ) if (zones := _dict.get('zones')) is not None: args['zones'] = [ZoneReference.from_dict(v) for v in zones] else: @@ -38450,7 +38697,6 @@ class FamilyEnum(str, Enum): VELA = 'vela' - class ResourceTypeEnum(str, Enum): """ The resource type. @@ -38459,7 +38705,6 @@ class ResourceTypeEnum(str, Enum): CLUSTER_NETWORK_PROFILE = 'cluster_network_profile' - class ClusterNetworkProfileCollection: """ ClusterNetworkProfileCollection. @@ -38682,7 +38927,6 @@ class ResourceTypeEnum(str, Enum): CLUSTER_NETWORK_PROFILE = 'cluster_network_profile' - class ClusterNetworkReference: """ ClusterNetworkReference. @@ -38807,7 +39051,6 @@ class ResourceTypeEnum(str, Enum): CLUSTER_NETWORK = 'cluster_network' - class ClusterNetworkSubnet: """ ClusterNetworkSubnet. @@ -38900,7 +39143,9 @@ def from_dict(cls, _dict: Dict) -> 'ClusterNetworkSubnet': if (available_ipv4_address_count := _dict.get('available_ipv4_address_count')) is not None: args['available_ipv4_address_count'] = available_ipv4_address_count else: - raise ValueError('Required property \'available_ipv4_address_count\' not present in ClusterNetworkSubnet JSON') + raise ValueError( + 'Required property \'available_ipv4_address_count\' not present in ClusterNetworkSubnet JSON' + ) if (created_at := _dict.get('created_at')) is not None: args['created_at'] = string_to_datetime(created_at) else: @@ -39009,7 +39254,6 @@ class IpVersionEnum(str, Enum): IPV4 = 'ipv4' - class LifecycleStateEnum(str, Enum): """ The lifecycle state of the cluster network subnet. @@ -39023,7 +39267,6 @@ class LifecycleStateEnum(str, Enum): UPDATING = 'updating' WAITING = 'waiting' - class ResourceTypeEnum(str, Enum): """ The resource type. @@ -39032,7 +39275,6 @@ class ResourceTypeEnum(str, Enum): CLUSTER_NETWORK_SUBNET = 'cluster_network_subnet' - class ClusterNetworkSubnetCollection: """ ClusterNetworkSubnetCollection. @@ -39277,7 +39519,6 @@ class CodeEnum(str, Enum): RESOURCE_SUSPENDED_BY_PROVIDER = 'resource_suspended_by_provider' - class ClusterNetworkSubnetPatch: """ ClusterNetworkSubnetPatch. @@ -39424,7 +39665,6 @@ class AllocationPolicyEnum(str, Enum): AUTO = 'auto' - class ClusterNetworkSubnetPrefixPrototype: """ ClusterNetworkSubnetPrefixPrototype. @@ -39526,7 +39766,12 @@ def __init__( hyphenated list of randomly-selected words. """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['ClusterNetworkSubnetPrototypeClusterNetworkSubnetByTotalCountPrototype', 'ClusterNetworkSubnetPrototypeClusterNetworkSubnetByIPv4CIDRBlockPrototype']) + ", ".join( + [ + 'ClusterNetworkSubnetPrototypeClusterNetworkSubnetByTotalCountPrototype', + 'ClusterNetworkSubnetPrototypeClusterNetworkSubnetByIPv4CIDRBlockPrototype', + ] + ) ) raise Exception(msg) @@ -39538,7 +39783,6 @@ class IpVersionEnum(str, Enum): IPV4 = 'ipv4' - class ClusterNetworkSubnetReference: """ ClusterNetworkSubnetReference. @@ -39653,7 +39897,6 @@ class ResourceTypeEnum(str, Enum): CLUSTER_NETWORK_SUBNET = 'cluster_network_subnet' - class ClusterNetworkSubnetReservedIP: """ ClusterNetworkSubnetReservedIP. @@ -39771,9 +40014,13 @@ def from_dict(cls, _dict: Dict) -> 'ClusterNetworkSubnetReservedIP': else: raise ValueError('Required property \'id\' not present in ClusterNetworkSubnetReservedIP JSON') if (lifecycle_reasons := _dict.get('lifecycle_reasons')) is not None: - args['lifecycle_reasons'] = [ClusterNetworkSubnetReservedIPLifecycleReason.from_dict(v) for v in lifecycle_reasons] + args['lifecycle_reasons'] = [ + ClusterNetworkSubnetReservedIPLifecycleReason.from_dict(v) for v in lifecycle_reasons + ] else: - raise ValueError('Required property \'lifecycle_reasons\' not present in ClusterNetworkSubnetReservedIP JSON') + raise ValueError( + 'Required property \'lifecycle_reasons\' not present in ClusterNetworkSubnetReservedIP JSON' + ) if (lifecycle_state := _dict.get('lifecycle_state')) is not None: args['lifecycle_state'] = lifecycle_state else: @@ -39866,7 +40113,6 @@ class LifecycleStateEnum(str, Enum): UPDATING = 'updating' WAITING = 'waiting' - class OwnerEnum(str, Enum): """ The owner of the cluster network subnet reserved IP @@ -39878,7 +40124,6 @@ class OwnerEnum(str, Enum): PROVIDER = 'provider' USER = 'user' - class ResourceTypeEnum(str, Enum): """ The resource type. @@ -39887,7 +40132,6 @@ class ResourceTypeEnum(str, Enum): CLUSTER_NETWORK_SUBNET_RESERVED_IP = 'cluster_network_subnet_reserved_ip' - class ClusterNetworkSubnetReservedIPCollection: """ ClusterNetworkSubnetReservedIPCollection. @@ -39948,11 +40192,15 @@ def from_dict(cls, _dict: Dict) -> 'ClusterNetworkSubnetReservedIPCollection': if (reserved_ips := _dict.get('reserved_ips')) is not None: args['reserved_ips'] = [ClusterNetworkSubnetReservedIP.from_dict(v) for v in reserved_ips] else: - raise ValueError('Required property \'reserved_ips\' not present in ClusterNetworkSubnetReservedIPCollection JSON') + raise ValueError( + 'Required property \'reserved_ips\' not present in ClusterNetworkSubnetReservedIPCollection JSON' + ) if (total_count := _dict.get('total_count')) is not None: args['total_count'] = total_count else: - raise ValueError('Required property \'total_count\' not present in ClusterNetworkSubnetReservedIPCollection JSON') + raise ValueError( + 'Required property \'total_count\' not present in ClusterNetworkSubnetReservedIPCollection JSON' + ) return cls(**args) @classmethod @@ -40055,11 +40303,15 @@ def from_dict(cls, _dict: Dict) -> 'ClusterNetworkSubnetReservedIPLifecycleReaso if (code := _dict.get('code')) is not None: args['code'] = code else: - raise ValueError('Required property \'code\' not present in ClusterNetworkSubnetReservedIPLifecycleReason JSON') + raise ValueError( + 'Required property \'code\' not present in ClusterNetworkSubnetReservedIPLifecycleReason JSON' + ) if (message := _dict.get('message')) is not None: args['message'] = message else: - raise ValueError('Required property \'message\' not present in ClusterNetworkSubnetReservedIPLifecycleReason JSON') + raise ValueError( + 'Required property \'message\' not present in ClusterNetworkSubnetReservedIPLifecycleReason JSON' + ) if (more_info := _dict.get('more_info')) is not None: args['more_info'] = more_info return cls(**args) @@ -40113,7 +40365,6 @@ class CodeEnum(str, Enum): RESOURCE_SUSPENDED_BY_PROVIDER = 'resource_suspended_by_provider' - class ClusterNetworkSubnetReservedIPPatch: """ ClusterNetworkSubnetReservedIPPatch. @@ -40254,7 +40505,9 @@ def from_dict(cls, _dict: Dict) -> 'ClusterNetworkSubnetReservedIPReference': if (address := _dict.get('address')) is not None: args['address'] = address else: - raise ValueError('Required property \'address\' not present in ClusterNetworkSubnetReservedIPReference JSON') + raise ValueError( + 'Required property \'address\' not present in ClusterNetworkSubnetReservedIPReference JSON' + ) if (deleted := _dict.get('deleted')) is not None: args['deleted'] = Deleted.from_dict(deleted) if (href := _dict.get('href')) is not None: @@ -40272,7 +40525,9 @@ def from_dict(cls, _dict: Dict) -> 'ClusterNetworkSubnetReservedIPReference': if (resource_type := _dict.get('resource_type')) is not None: args['resource_type'] = resource_type else: - raise ValueError('Required property \'resource_type\' not present in ClusterNetworkSubnetReservedIPReference JSON') + raise ValueError( + 'Required property \'resource_type\' not present in ClusterNetworkSubnetReservedIPReference JSON' + ) return cls(**args) @classmethod @@ -40326,7 +40581,6 @@ class ResourceTypeEnum(str, Enum): CLUSTER_NETWORK_SUBNET_RESERVED_IP = 'cluster_network_subnet_reserved_ip' - class ClusterNetworkSubnetReservedIPTarget: """ The target this cluster network subnet reserved IP is bound to. @@ -40342,7 +40596,11 @@ def __init__( """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['ClusterNetworkSubnetReservedIPTargetClusterNetworkInterfaceReferenceClusterNetworkSubnetReservedIPTargetContext']) + ", ".join( + [ + 'ClusterNetworkSubnetReservedIPTargetClusterNetworkInterfaceReferenceClusterNetworkSubnetReservedIPTargetContext' + ] + ) ) raise Exception(msg) @@ -40872,7 +41130,9 @@ def from_dict(cls, _dict: Dict) -> 'DedicatedHost': else: raise ValueError('Required property \'state\' not present in DedicatedHost JSON') if (supported_instance_profiles := _dict.get('supported_instance_profiles')) is not None: - args['supported_instance_profiles'] = [InstanceProfileReference.from_dict(v) for v in supported_instance_profiles] + args['supported_instance_profiles'] = [ + InstanceProfileReference.from_dict(v) for v in supported_instance_profiles + ] else: raise ValueError('Required property \'supported_instance_profiles\' not present in DedicatedHost JSON') if (vcpu := _dict.get('vcpu')) is not None: @@ -41011,7 +41271,6 @@ class LifecycleStateEnum(str, Enum): UPDATING = 'updating' WAITING = 'waiting' - class ResourceTypeEnum(str, Enum): """ The resource type. @@ -41019,7 +41278,6 @@ class ResourceTypeEnum(str, Enum): DEDICATED_HOST = 'dedicated_host' - class StateEnum(str, Enum): """ The administrative state of the dedicated host. @@ -41034,7 +41292,6 @@ class StateEnum(str, Enum): UNAVAILABLE = 'unavailable' - class DedicatedHostCollection: """ DedicatedHostCollection. @@ -41281,7 +41538,9 @@ def from_dict(cls, _dict: Dict) -> 'DedicatedHostDisk': if (supported_instance_interface_types := _dict.get('supported_instance_interface_types')) is not None: args['supported_instance_interface_types'] = supported_instance_interface_types else: - raise ValueError('Required property \'supported_instance_interface_types\' not present in DedicatedHostDisk JSON') + raise ValueError( + 'Required property \'supported_instance_interface_types\' not present in DedicatedHostDisk JSON' + ) return cls(**args) @classmethod @@ -41349,7 +41608,6 @@ class InterfaceTypeEnum(str, Enum): NVME = 'nvme' - class LifecycleStateEnum(str, Enum): """ The lifecycle state of this dedicated host disk. @@ -41363,7 +41621,6 @@ class LifecycleStateEnum(str, Enum): UPDATING = 'updating' WAITING = 'waiting' - class ResourceTypeEnum(str, Enum): """ The resource type. @@ -41371,7 +41628,6 @@ class ResourceTypeEnum(str, Enum): DEDICATED_HOST_DISK = 'dedicated_host_disk' - class SupportedInstanceInterfaceTypesEnum(str, Enum): """ The disk interface used for attaching the disk. @@ -41384,7 +41640,6 @@ class SupportedInstanceInterfaceTypesEnum(str, Enum): VIRTIO_BLK = 'virtio_blk' - class DedicatedHostDiskCollection: """ DedicatedHostDiskCollection. @@ -41629,7 +41884,9 @@ def from_dict(cls, _dict: Dict) -> 'DedicatedHostGroup': else: raise ValueError('Required property \'resource_type\' not present in DedicatedHostGroup JSON') if (supported_instance_profiles := _dict.get('supported_instance_profiles')) is not None: - args['supported_instance_profiles'] = [InstanceProfileReference.from_dict(v) for v in supported_instance_profiles] + args['supported_instance_profiles'] = [ + InstanceProfileReference.from_dict(v) for v in supported_instance_profiles + ] else: raise ValueError('Required property \'supported_instance_profiles\' not present in DedicatedHostGroup JSON') if (zone := _dict.get('zone')) is not None: @@ -41717,7 +41974,6 @@ class FamilyEnum(str, Enum): COMPUTE = 'compute' MEMORY = 'memory' - class ResourceTypeEnum(str, Enum): """ The resource type. @@ -41726,7 +41982,6 @@ class ResourceTypeEnum(str, Enum): DEDICATED_HOST_GROUP = 'dedicated_host_group' - class DedicatedHostGroupCollection: """ DedicatedHostGroupCollection. @@ -41857,7 +42112,13 @@ def __init__( """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['DedicatedHostGroupIdentityById', 'DedicatedHostGroupIdentityByCRN', 'DedicatedHostGroupIdentityByHref']) + ", ".join( + [ + 'DedicatedHostGroupIdentityById', + 'DedicatedHostGroupIdentityByCRN', + 'DedicatedHostGroupIdentityByHref', + ] + ) ) raise Exception(msg) @@ -42121,7 +42382,6 @@ class ResourceTypeEnum(str, Enum): DEDICATED_HOST_GROUP = 'dedicated_host_group' - class DedicatedHostNUMA: """ The dedicated host NUMA configuration. @@ -42473,9 +42733,13 @@ def from_dict(cls, _dict: Dict) -> 'DedicatedHostProfile': else: raise ValueError('Required property \'status\' not present in DedicatedHostProfile JSON') if (supported_instance_profiles := _dict.get('supported_instance_profiles')) is not None: - args['supported_instance_profiles'] = [InstanceProfileReference.from_dict(v) for v in supported_instance_profiles] + args['supported_instance_profiles'] = [ + InstanceProfileReference.from_dict(v) for v in supported_instance_profiles + ] else: - raise ValueError('Required property \'supported_instance_profiles\' not present in DedicatedHostProfile JSON') + raise ValueError( + 'Required property \'supported_instance_profiles\' not present in DedicatedHostProfile JSON' + ) if (vcpu_architecture := _dict.get('vcpu_architecture')) is not None: args['vcpu_architecture'] = DedicatedHostProfileVCPUArchitecture.from_dict(vcpu_architecture) else: @@ -42581,7 +42845,6 @@ class FamilyEnum(str, Enum): COMPUTE = 'compute' MEMORY = 'memory' - class StatusEnum(str, Enum): """ The status of the dedicated host profile: @@ -42602,7 +42865,6 @@ class StatusEnum(str, Enum): PREVIOUS = 'previous' - class DedicatedHostProfileCollection: """ DedicatedHostProfileCollection. @@ -42773,9 +43035,13 @@ def from_dict(cls, _dict: Dict) -> 'DedicatedHostProfileDisk': else: raise ValueError('Required property \'size\' not present in DedicatedHostProfileDisk JSON') if (supported_instance_interface_types := _dict.get('supported_instance_interface_types')) is not None: - args['supported_instance_interface_types'] = DedicatedHostProfileDiskSupportedInterfaces.from_dict(supported_instance_interface_types) + args['supported_instance_interface_types'] = DedicatedHostProfileDiskSupportedInterfaces.from_dict( + supported_instance_interface_types + ) else: - raise ValueError('Required property \'supported_instance_interface_types\' not present in DedicatedHostProfileDisk JSON') + raise ValueError( + 'Required property \'supported_instance_interface_types\' not present in DedicatedHostProfileDisk JSON' + ) return cls(**args) @classmethod @@ -42910,7 +43176,6 @@ class TypeEnum(str, Enum): FIXED = 'fixed' - class ValueEnum(str, Enum): """ The interface of the disk for a dedicated host with this profile @@ -42922,7 +43187,6 @@ class ValueEnum(str, Enum): NVME = 'nvme' - class DedicatedHostProfileDiskQuantity: """ The number of disks of this type for a dedicated host with this profile. @@ -42999,7 +43263,6 @@ class TypeEnum(str, Enum): FIXED = 'fixed' - class DedicatedHostProfileDiskSize: """ The size of the disk in GB (gigabytes). @@ -43076,7 +43339,6 @@ class TypeEnum(str, Enum): FIXED = 'fixed' - class DedicatedHostProfileDiskSupportedInterfaces: """ DedicatedHostProfileDiskSupportedInterfaces. @@ -43108,11 +43370,15 @@ def from_dict(cls, _dict: Dict) -> 'DedicatedHostProfileDiskSupportedInterfaces' if (type := _dict.get('type')) is not None: args['type'] = type else: - raise ValueError('Required property \'type\' not present in DedicatedHostProfileDiskSupportedInterfaces JSON') + raise ValueError( + 'Required property \'type\' not present in DedicatedHostProfileDiskSupportedInterfaces JSON' + ) if (value := _dict.get('value')) is not None: args['value'] = value else: - raise ValueError('Required property \'value\' not present in DedicatedHostProfileDiskSupportedInterfaces JSON') + raise ValueError( + 'Required property \'value\' not present in DedicatedHostProfileDiskSupportedInterfaces JSON' + ) return cls(**args) @classmethod @@ -43154,7 +43420,6 @@ class TypeEnum(str, Enum): FIXED = 'fixed' - class ValueEnum(str, Enum): """ The disk interface used for attaching the disk. @@ -43167,7 +43432,6 @@ class ValueEnum(str, Enum): VIRTIO_BLK = 'virtio_blk' - class DedicatedHostProfileIdentity: """ Identifies a dedicated host profile by a unique property. @@ -43201,7 +43465,14 @@ def __init__( """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['DedicatedHostProfileMemoryFixed', 'DedicatedHostProfileMemoryRange', 'DedicatedHostProfileMemoryEnum', 'DedicatedHostProfileMemoryDependent']) + ", ".join( + [ + 'DedicatedHostProfileMemoryFixed', + 'DedicatedHostProfileMemoryRange', + 'DedicatedHostProfileMemoryEnum', + 'DedicatedHostProfileMemoryDependent', + ] + ) ) raise Exception(msg) @@ -43289,7 +43560,14 @@ def __init__( """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['DedicatedHostProfileSocketFixed', 'DedicatedHostProfileSocketRange', 'DedicatedHostProfileSocketEnum', 'DedicatedHostProfileSocketDependent']) + ", ".join( + [ + 'DedicatedHostProfileSocketFixed', + 'DedicatedHostProfileSocketRange', + 'DedicatedHostProfileSocketEnum', + 'DedicatedHostProfileSocketDependent', + ] + ) ) raise Exception(msg) @@ -43308,7 +43586,14 @@ def __init__( """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['DedicatedHostProfileVCPUFixed', 'DedicatedHostProfileVCPURange', 'DedicatedHostProfileVCPUEnum', 'DedicatedHostProfileVCPUDependent']) + ", ".join( + [ + 'DedicatedHostProfileVCPUFixed', + 'DedicatedHostProfileVCPURange', + 'DedicatedHostProfileVCPUEnum', + 'DedicatedHostProfileVCPUDependent', + ] + ) ) raise Exception(msg) @@ -43390,7 +43675,6 @@ class TypeEnum(str, Enum): FIXED = 'fixed' - class DedicatedHostProfileVCPUManufacturer: """ DedicatedHostProfileVCPUManufacturer. @@ -43468,7 +43752,6 @@ class TypeEnum(str, Enum): FIXED = 'fixed' - class DedicatedHostPrototype: """ DedicatedHostPrototype. @@ -43642,7 +43925,6 @@ class ResourceTypeEnum(str, Enum): DEDICATED_HOST = 'dedicated_host' - class DefaultNetworkACL: """ DefaultNetworkACL. @@ -44062,7 +44344,9 @@ def from_dict(cls, _dict: Dict) -> 'DefaultRoutingTable': if (route_transit_gateway_ingress := _dict.get('route_transit_gateway_ingress')) is not None: args['route_transit_gateway_ingress'] = route_transit_gateway_ingress else: - raise ValueError('Required property \'route_transit_gateway_ingress\' not present in DefaultRoutingTable JSON') + raise ValueError( + 'Required property \'route_transit_gateway_ingress\' not present in DefaultRoutingTable JSON' + ) if (route_vpc_zone_ingress := _dict.get('route_vpc_zone_ingress')) is not None: args['route_vpc_zone_ingress'] = route_vpc_zone_ingress else: @@ -44170,7 +44454,6 @@ class AdvertiseRoutesToEnum(str, Enum): DIRECT_LINK = 'direct_link' TRANSIT_GATEWAY = 'transit_gateway' - class LifecycleStateEnum(str, Enum): """ The lifecycle state of the routing table. @@ -44184,7 +44467,6 @@ class LifecycleStateEnum(str, Enum): UPDATING = 'updating' WAITING = 'waiting' - class ResourceTypeEnum(str, Enum): """ The resource type. @@ -44193,7 +44475,6 @@ class ResourceTypeEnum(str, Enum): ROUTING_TABLE = 'routing_table' - class DefaultSecurityGroup: """ DefaultSecurityGroup. @@ -44817,7 +45098,6 @@ class HealthStateEnum(str, Enum): INAPPLICABLE = 'inapplicable' OK = 'ok' - class LifecycleStateEnum(str, Enum): """ The lifecycle state of the endpoint gateway. @@ -44831,7 +45111,6 @@ class LifecycleStateEnum(str, Enum): UPDATING = 'updating' WAITING = 'waiting' - class ResourceTypeEnum(str, Enum): """ The resource type. @@ -44840,7 +45119,6 @@ class ResourceTypeEnum(str, Enum): ENDPOINT_GATEWAY = 'endpoint_gateway' - class EndpointGatewayCollection: """ EndpointGatewayCollection. @@ -45082,7 +45360,6 @@ class CodeEnum(str, Enum): RESOURCE_SUSPENDED_BY_PROVIDER = 'resource_suspended_by_provider' - class EndpointGatewayPatch: """ EndpointGatewayPatch. @@ -45287,7 +45564,6 @@ class ResourceTypeEnum(str, Enum): ENDPOINT_GATEWAY = 'endpoint_gateway' - class EndpointGatewayRemote: """ If present, this property indicates that the resource associated with this reference @@ -45386,7 +45662,12 @@ def __init__( """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['EndpointGatewayReservedIPReservedIPIdentity', 'EndpointGatewayReservedIPReservedIPPrototypeTargetContext']) + ", ".join( + [ + 'EndpointGatewayReservedIPReservedIPIdentity', + 'EndpointGatewayReservedIPReservedIPPrototypeTargetContext', + ] + ) ) raise Exception(msg) @@ -45409,7 +45690,13 @@ def __init__( gateway. """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['EndpointGatewayTargetPrivatePathServiceGatewayReference', 'EndpointGatewayTargetProviderCloudServiceReference', 'EndpointGatewayTargetProviderInfrastructureServiceReference']) + ", ".join( + [ + 'EndpointGatewayTargetPrivatePathServiceGatewayReference', + 'EndpointGatewayTargetProviderCloudServiceReference', + 'EndpointGatewayTargetProviderInfrastructureServiceReference', + ] + ) ) raise Exception(msg) @@ -45423,7 +45710,6 @@ class ResourceTypeEnum(str, Enum): PROVIDER_INFRASTRUCTURE_SERVICE = 'provider_infrastructure_service' - class EndpointGatewayTargetPrototype: """ The target to use for this endpoint gateway. The target: @@ -45448,7 +45734,13 @@ def __init__( endpoint gateway. """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypePrivatePathServiceGatewayPrototype', 'EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypeProviderInfrastructureServicePrototype', 'EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypeProviderCloudServicePrototype']) + ", ".join( + [ + 'EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypePrivatePathServiceGatewayPrototype', + 'EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypeProviderInfrastructureServicePrototype', + 'EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypeProviderCloudServicePrototype', + ] + ) ) raise Exception(msg) @@ -45462,7 +45754,6 @@ class ResourceTypeEnum(str, Enum): PROVIDER_INFRASTRUCTURE_SERVICE = 'provider_infrastructure_service' - class FloatingIP: """ FloatingIP. @@ -45644,7 +45935,6 @@ class StatusEnum(str, Enum): PENDING = 'pending' - class FloatingIPCollection: """ FloatingIPCollection. @@ -45811,21 +46101,29 @@ def from_dict(cls, _dict: Dict) -> 'FloatingIPCollectionVirtualNetworkInterfaceC if (first := _dict.get('first')) is not None: args['first'] = PageLink.from_dict(first) else: - raise ValueError('Required property \'first\' not present in FloatingIPCollectionVirtualNetworkInterfaceContext JSON') + raise ValueError( + 'Required property \'first\' not present in FloatingIPCollectionVirtualNetworkInterfaceContext JSON' + ) if (floating_ips := _dict.get('floating_ips')) is not None: args['floating_ips'] = [FloatingIPReference.from_dict(v) for v in floating_ips] else: - raise ValueError('Required property \'floating_ips\' not present in FloatingIPCollectionVirtualNetworkInterfaceContext JSON') + raise ValueError( + 'Required property \'floating_ips\' not present in FloatingIPCollectionVirtualNetworkInterfaceContext JSON' + ) if (limit := _dict.get('limit')) is not None: args['limit'] = limit else: - raise ValueError('Required property \'limit\' not present in FloatingIPCollectionVirtualNetworkInterfaceContext JSON') + raise ValueError( + 'Required property \'limit\' not present in FloatingIPCollectionVirtualNetworkInterfaceContext JSON' + ) if (next := _dict.get('next')) is not None: args['next'] = PageLink.from_dict(next) if (total_count := _dict.get('total_count')) is not None: args['total_count'] = total_count else: - raise ValueError('Required property \'total_count\' not present in FloatingIPCollectionVirtualNetworkInterfaceContext JSON') + raise ValueError( + 'Required property \'total_count\' not present in FloatingIPCollectionVirtualNetworkInterfaceContext JSON' + ) return cls(**args) @classmethod @@ -46140,7 +46438,14 @@ def __init__( """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['FloatingIPTargetNetworkInterfaceReference', 'FloatingIPTargetBareMetalServerNetworkInterfaceReference', 'FloatingIPTargetPublicGatewayReference', 'FloatingIPTargetVirtualNetworkInterfaceReference']) + ", ".join( + [ + 'FloatingIPTargetNetworkInterfaceReference', + 'FloatingIPTargetBareMetalServerNetworkInterfaceReference', + 'FloatingIPTargetPublicGatewayReference', + 'FloatingIPTargetVirtualNetworkInterfaceReference', + ] + ) ) raise Exception(msg) @@ -46166,7 +46471,13 @@ def __init__( """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['FloatingIPTargetPatchBareMetalServerNetworkInterfaceIdentity', 'FloatingIPTargetPatchNetworkInterfaceIdentity', 'FloatingIPTargetPatchVirtualNetworkInterfaceIdentity']) + ", ".join( + [ + 'FloatingIPTargetPatchBareMetalServerNetworkInterfaceIdentity', + 'FloatingIPTargetPatchNetworkInterfaceIdentity', + 'FloatingIPTargetPatchVirtualNetworkInterfaceIdentity', + ] + ) ) raise Exception(msg) @@ -46190,7 +46501,13 @@ def __init__( """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['FloatingIPTargetPrototypeBareMetalServerNetworkInterfaceIdentity', 'FloatingIPTargetPrototypeNetworkInterfaceIdentity', 'FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentity']) + ", ".join( + [ + 'FloatingIPTargetPrototypeBareMetalServerNetworkInterfaceIdentity', + 'FloatingIPTargetPrototypeNetworkInterfaceIdentity', + 'FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentity', + ] + ) ) raise Exception(msg) @@ -46520,7 +46837,6 @@ class LifecycleStateEnum(str, Enum): WAITING = 'waiting' - class FlowLogCollectorCollection: """ FlowLogCollectorCollection. @@ -46742,7 +47058,16 @@ def __init__( """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['FlowLogCollectorTargetNetworkInterfaceReferenceTargetContext', 'FlowLogCollectorTargetInstanceReference', 'FlowLogCollectorTargetSubnetReference', 'FlowLogCollectorTargetVPCReference', 'FlowLogCollectorTargetInstanceNetworkAttachmentReference', 'FlowLogCollectorTargetVirtualNetworkInterfaceReferenceAttachmentContext']) + ", ".join( + [ + 'FlowLogCollectorTargetNetworkInterfaceReferenceTargetContext', + 'FlowLogCollectorTargetInstanceReference', + 'FlowLogCollectorTargetSubnetReference', + 'FlowLogCollectorTargetVPCReference', + 'FlowLogCollectorTargetInstanceNetworkAttachmentReference', + 'FlowLogCollectorTargetVirtualNetworkInterfaceReferenceAttachmentContext', + ] + ) ) raise Exception(msg) @@ -46767,7 +47092,16 @@ def __init__( """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['FlowLogCollectorTargetPrototypeNetworkInterfaceIdentity', 'FlowLogCollectorTargetPrototypeInstanceIdentity', 'FlowLogCollectorTargetPrototypeSubnetIdentity', 'FlowLogCollectorTargetPrototypeVPCIdentity', 'FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentity', 'FlowLogCollectorTargetPrototypeInstanceNetworkAttachmentIdentity']) + ", ".join( + [ + 'FlowLogCollectorTargetPrototypeNetworkInterfaceIdentity', + 'FlowLogCollectorTargetPrototypeInstanceIdentity', + 'FlowLogCollectorTargetPrototypeSubnetIdentity', + 'FlowLogCollectorTargetPrototypeVPCIdentity', + 'FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentity', + 'FlowLogCollectorTargetPrototypeInstanceNetworkAttachmentIdentity', + ] + ) ) raise Exception(msg) @@ -47005,7 +47339,6 @@ class AuthenticationAlgorithmEnum(str, Enum): SHA384 = 'sha384' SHA512 = 'sha512' - class EncryptionAlgorithmEnum(str, Enum): """ The encryption algorithm. @@ -47020,7 +47353,6 @@ class EncryptionAlgorithmEnum(str, Enum): AES256 = 'aes256' TRIPLE_DES = 'triple_des' - class NegotiationModeEnum(str, Enum): """ The IKE negotiation mode. @@ -47031,7 +47363,6 @@ class NegotiationModeEnum(str, Enum): MAIN = 'main' - class ResourceTypeEnum(str, Enum): """ The resource type. @@ -47040,7 +47371,6 @@ class ResourceTypeEnum(str, Enum): IKE_POLICY = 'ike_policy' - class IKEPolicyCollection: """ IKEPolicyCollection. @@ -47384,7 +47714,6 @@ class AuthenticationAlgorithmEnum(str, Enum): SHA384 = 'sha384' SHA512 = 'sha512' - class EncryptionAlgorithmEnum(str, Enum): """ The encryption algorithm. @@ -47395,7 +47724,6 @@ class EncryptionAlgorithmEnum(str, Enum): AES256 = 'aes256' - class IKEPolicyReference: """ IKEPolicyReference. @@ -47510,7 +47838,6 @@ class ResourceTypeEnum(str, Enum): IKE_POLICY = 'ike_policy' - class IP: """ IP. @@ -47823,7 +48150,6 @@ class AuthenticationAlgorithmEnum(str, Enum): SHA384 = 'sha384' SHA512 = 'sha512' - class EncapsulationModeEnum(str, Enum): """ The encapsulation mode used. @@ -47834,7 +48160,6 @@ class EncapsulationModeEnum(str, Enum): TUNNEL = 'tunnel' - class EncryptionAlgorithmEnum(str, Enum): """ The encryption algorithm @@ -47852,7 +48177,6 @@ class EncryptionAlgorithmEnum(str, Enum): AES256GCM16 = 'aes256gcm16' TRIPLE_DES = 'triple_des' - class PfsEnum(str, Enum): """ The Perfect Forward Secrecy group @@ -47878,7 +48202,6 @@ class PfsEnum(str, Enum): GROUP_31 = 'group_31' GROUP_5 = 'group_5' - class ResourceTypeEnum(str, Enum): """ The resource type. @@ -47886,7 +48209,6 @@ class ResourceTypeEnum(str, Enum): IPSEC_POLICY = 'ipsec_policy' - class TransformProtocolEnum(str, Enum): """ The transform protocol used. @@ -47898,7 +48220,6 @@ class TransformProtocolEnum(str, Enum): ESP = 'esp' - class IPsecPolicyCollection: """ IPsecPolicyCollection. @@ -48254,7 +48575,6 @@ class AuthenticationAlgorithmEnum(str, Enum): SHA384 = 'sha384' SHA512 = 'sha512' - class EncryptionAlgorithmEnum(str, Enum): """ The encryption algorithm @@ -48270,7 +48590,6 @@ class EncryptionAlgorithmEnum(str, Enum): AES256 = 'aes256' AES256GCM16 = 'aes256gcm16' - class PfsEnum(str, Enum): """ The Perfect Forward Secrecy group. @@ -48292,7 +48611,6 @@ class PfsEnum(str, Enum): GROUP_31 = 'group_31' - class IPsecPolicyReference: """ IPsecPolicyReference. @@ -48407,7 +48725,6 @@ class ResourceTypeEnum(str, Enum): IPSEC_POLICY = 'ipsec_policy' - class Image: """ Image. @@ -48757,7 +49074,6 @@ class EncryptionEnum(str, Enum): NONE = 'none' USER_MANAGED = 'user_managed' - class ResourceTypeEnum(str, Enum): """ The resource type. @@ -48765,7 +49081,6 @@ class ResourceTypeEnum(str, Enum): IMAGE = 'image' - class StatusEnum(str, Enum): """ The status of this image: @@ -48790,7 +49105,6 @@ class StatusEnum(str, Enum): PENDING = 'pending' UNUSABLE = 'unusable' - class UserDataFormatEnum(str, Enum): """ The user data format for this image: @@ -48808,7 +49122,6 @@ class UserDataFormatEnum(str, Enum): ESXI_KICKSTART = 'esxi_kickstart' IPXE = 'ipxe' - class VisibilityEnum(str, Enum): """ The visibility of this image. @@ -48820,7 +49133,6 @@ class VisibilityEnum(str, Enum): PUBLIC = 'public' - class ImageCatalogOffering: """ ImageCatalogOffering. @@ -49291,7 +49603,6 @@ class FormatEnum(str, Enum): QCOW2 = 'qcow2' VHD = 'vhd' - class ResourceTypeEnum(str, Enum): """ The resource type. @@ -49299,7 +49610,6 @@ class ResourceTypeEnum(str, Enum): IMAGE_EXPORT_JOB = 'image_export_job' - class StatusEnum(str, Enum): """ The status of this image export job: @@ -49321,7 +49631,6 @@ class StatusEnum(str, Enum): SUCCEEDED = 'succeeded' - class ImageExportJobPatch: """ ImageExportJobPatch. @@ -49483,7 +49792,6 @@ class CodeEnum(str, Enum): INTERNAL_ERROR = 'internal_error' - class ImageExportJobUnpaginatedCollection: """ ImageExportJobUnpaginatedCollection. @@ -49509,7 +49817,9 @@ def from_dict(cls, _dict: Dict) -> 'ImageExportJobUnpaginatedCollection': if (export_jobs := _dict.get('export_jobs')) is not None: args['export_jobs'] = [ImageExportJob.from_dict(v) for v in export_jobs] else: - raise ValueError('Required property \'export_jobs\' not present in ImageExportJobUnpaginatedCollection JSON') + raise ValueError( + 'Required property \'export_jobs\' not present in ImageExportJobUnpaginatedCollection JSON' + ) return cls(**args) @classmethod @@ -50127,7 +50437,6 @@ class ResourceTypeEnum(str, Enum): IMAGE = 'image' - class ImageRemote: """ If present, this property indicates that the resource associated with this reference @@ -50357,7 +50666,6 @@ class CodeEnum(str, Enum): IMAGE_REQUEST_QUEUED = 'image_request_queued' - class Instance: """ Instance. @@ -50710,7 +51018,9 @@ def from_dict(cls, _dict: Dict) -> 'Instance': if (cluster_network := _dict.get('cluster_network')) is not None: args['cluster_network'] = ClusterNetworkReference.from_dict(cluster_network) if (cluster_network_attachments := _dict.get('cluster_network_attachments')) is not None: - args['cluster_network_attachments'] = [InstanceClusterNetworkAttachmentReference.from_dict(v) for v in cluster_network_attachments] + args['cluster_network_attachments'] = [ + InstanceClusterNetworkAttachmentReference.from_dict(v) for v in cluster_network_attachments + ] else: raise ValueError('Required property \'cluster_network_attachments\' not present in Instance JSON') if (confidential_compute_mode := _dict.get('confidential_compute_mode')) is not None: @@ -50780,7 +51090,9 @@ def from_dict(cls, _dict: Dict) -> 'Instance': else: raise ValueError('Required property \'network_attachments\' not present in Instance JSON') if (network_interfaces := _dict.get('network_interfaces')) is not None: - args['network_interfaces'] = [NetworkInterfaceInstanceContextReference.from_dict(v) for v in network_interfaces] + args['network_interfaces'] = [ + NetworkInterfaceInstanceContextReference.from_dict(v) for v in network_interfaces + ] else: raise ValueError('Required property \'network_interfaces\' not present in Instance JSON') if (numa_count := _dict.get('numa_count')) is not None: @@ -50788,9 +51100,13 @@ def from_dict(cls, _dict: Dict) -> 'Instance': if (placement_target := _dict.get('placement_target')) is not None: args['placement_target'] = placement_target if (primary_network_attachment := _dict.get('primary_network_attachment')) is not None: - args['primary_network_attachment'] = InstanceNetworkAttachmentReference.from_dict(primary_network_attachment) + args['primary_network_attachment'] = InstanceNetworkAttachmentReference.from_dict( + primary_network_attachment + ) if (primary_network_interface := _dict.get('primary_network_interface')) is not None: - args['primary_network_interface'] = NetworkInterfaceInstanceContextReference.from_dict(primary_network_interface) + args['primary_network_interface'] = NetworkInterfaceInstanceContextReference.from_dict( + primary_network_interface + ) else: raise ValueError('Required property \'primary_network_interface\' not present in Instance JSON') if (profile := _dict.get('profile')) is not None: @@ -50836,7 +51152,9 @@ def from_dict(cls, _dict: Dict) -> 'Instance': else: raise ValueError('Required property \'vcpu\' not present in Instance JSON') if (volume_attachments := _dict.get('volume_attachments')) is not None: - args['volume_attachments'] = [VolumeAttachmentReferenceInstanceContext.from_dict(v) for v in volume_attachments] + args['volume_attachments'] = [ + VolumeAttachmentReferenceInstanceContext.from_dict(v) for v in volume_attachments + ] else: raise ValueError('Required property \'volume_attachments\' not present in Instance JSON') if (vpc := _dict.get('vpc')) is not None: @@ -51073,7 +51391,6 @@ class ConfidentialComputeModeEnum(str, Enum): DISABLED = 'disabled' SGX = 'sgx' - class HealthStateEnum(str, Enum): """ The health of this resource: @@ -51091,7 +51408,6 @@ class HealthStateEnum(str, Enum): INAPPLICABLE = 'inapplicable' OK = 'ok' - class LifecycleStateEnum(str, Enum): """ The lifecycle state of the virtual server instance. @@ -51105,7 +51421,6 @@ class LifecycleStateEnum(str, Enum): UPDATING = 'updating' WAITING = 'waiting' - class ResourceTypeEnum(str, Enum): """ The resource type. @@ -51113,7 +51428,6 @@ class ResourceTypeEnum(str, Enum): INSTANCE = 'instance' - class StatusEnum(str, Enum): """ The status of the virtual server instance. @@ -51132,7 +51446,6 @@ class StatusEnum(str, Enum): STOPPING = 'stopping' - class InstanceAction: """ InstanceAction. @@ -51272,7 +51585,6 @@ class StatusEnum(str, Enum): PENDING = 'pending' RUNNING = 'running' - class TypeEnum(str, Enum): """ The type of action. @@ -51283,7 +51595,6 @@ class TypeEnum(str, Enum): STOP = 'stop' - class InstanceAvailabilityPolicy: """ InstanceAvailabilityPolicy. @@ -51370,7 +51681,6 @@ class HostFailureEnum(str, Enum): STOP = 'stop' - class InstanceAvailabilityPolicyPatch: """ InstanceAvailabilityPolicyPatch. @@ -51447,7 +51757,6 @@ class HostFailureEnum(str, Enum): STOP = 'stop' - class InstanceAvailabilityPolicyPrototype: """ InstanceAvailabilityPolicyPrototype. @@ -51524,7 +51833,6 @@ class HostFailureEnum(str, Enum): STOP = 'stop' - class InstanceCatalogOffering: """ InstanceCatalogOffering. @@ -51649,7 +51957,12 @@ def __init__( a billing plan to be used. """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['InstanceCatalogOfferingPrototypeCatalogOfferingByOffering', 'InstanceCatalogOfferingPrototypeCatalogOfferingByVersion']) + ", ".join( + [ + 'InstanceCatalogOfferingPrototypeCatalogOfferingByOffering', + 'InstanceCatalogOfferingPrototypeCatalogOfferingByVersion', + ] + ) ) raise Exception(msg) @@ -51725,7 +52038,9 @@ def from_dict(cls, _dict: Dict) -> 'InstanceClusterNetworkAttachment': if (cluster_network_interface := _dict.get('cluster_network_interface')) is not None: args['cluster_network_interface'] = ClusterNetworkInterfaceReference.from_dict(cluster_network_interface) else: - raise ValueError('Required property \'cluster_network_interface\' not present in InstanceClusterNetworkAttachment JSON') + raise ValueError( + 'Required property \'cluster_network_interface\' not present in InstanceClusterNetworkAttachment JSON' + ) if (href := _dict.get('href')) is not None: args['href'] = href else: @@ -51735,13 +52050,19 @@ def from_dict(cls, _dict: Dict) -> 'InstanceClusterNetworkAttachment': else: raise ValueError('Required property \'id\' not present in InstanceClusterNetworkAttachment JSON') if (lifecycle_reasons := _dict.get('lifecycle_reasons')) is not None: - args['lifecycle_reasons'] = [InstanceClusterNetworkAttachmentLifecycleReason.from_dict(v) for v in lifecycle_reasons] + args['lifecycle_reasons'] = [ + InstanceClusterNetworkAttachmentLifecycleReason.from_dict(v) for v in lifecycle_reasons + ] else: - raise ValueError('Required property \'lifecycle_reasons\' not present in InstanceClusterNetworkAttachment JSON') + raise ValueError( + 'Required property \'lifecycle_reasons\' not present in InstanceClusterNetworkAttachment JSON' + ) if (lifecycle_state := _dict.get('lifecycle_state')) is not None: args['lifecycle_state'] = lifecycle_state else: - raise ValueError('Required property \'lifecycle_state\' not present in InstanceClusterNetworkAttachment JSON') + raise ValueError( + 'Required property \'lifecycle_state\' not present in InstanceClusterNetworkAttachment JSON' + ) if (name := _dict.get('name')) is not None: args['name'] = name else: @@ -51821,7 +52142,6 @@ class LifecycleStateEnum(str, Enum): UPDATING = 'updating' WAITING = 'waiting' - class ResourceTypeEnum(str, Enum): """ The resource type. @@ -51830,7 +52150,6 @@ class ResourceTypeEnum(str, Enum): INSTANCE_CLUSTER_NETWORK_ATTACHMENT = 'instance_cluster_network_attachment' - class InstanceClusterNetworkAttachmentBefore: """ The instance cluster network attachment that is immediately before. If absent, this is @@ -51885,7 +52204,9 @@ def from_dict(cls, _dict: Dict) -> 'InstanceClusterNetworkAttachmentBefore': if (resource_type := _dict.get('resource_type')) is not None: args['resource_type'] = resource_type else: - raise ValueError('Required property \'resource_type\' not present in InstanceClusterNetworkAttachmentBefore JSON') + raise ValueError( + 'Required property \'resource_type\' not present in InstanceClusterNetworkAttachmentBefore JSON' + ) return cls(**args) @classmethod @@ -51932,7 +52253,6 @@ class ResourceTypeEnum(str, Enum): INSTANCE_CLUSTER_NETWORK_ATTACHMENT = 'instance_cluster_network_attachment' - class InstanceClusterNetworkAttachmentBeforePrototype: """ The instance cluster network attachment to insert this instance cluster network @@ -51950,7 +52270,12 @@ def __init__( """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['InstanceClusterNetworkAttachmentBeforePrototypeInstanceClusterNetworkAttachmentIdentityById', 'InstanceClusterNetworkAttachmentBeforePrototypeInstanceClusterNetworkAttachmentIdentityByHref']) + ", ".join( + [ + 'InstanceClusterNetworkAttachmentBeforePrototypeInstanceClusterNetworkAttachmentIdentityById', + 'InstanceClusterNetworkAttachmentBeforePrototypeInstanceClusterNetworkAttachmentIdentityByHref', + ] + ) ) raise Exception(msg) @@ -52007,23 +52332,33 @@ def from_dict(cls, _dict: Dict) -> 'InstanceClusterNetworkAttachmentCollection': """Initialize a InstanceClusterNetworkAttachmentCollection object from a json dictionary.""" args = {} if (cluster_network_attachments := _dict.get('cluster_network_attachments')) is not None: - args['cluster_network_attachments'] = [InstanceClusterNetworkAttachment.from_dict(v) for v in cluster_network_attachments] + args['cluster_network_attachments'] = [ + InstanceClusterNetworkAttachment.from_dict(v) for v in cluster_network_attachments + ] else: - raise ValueError('Required property \'cluster_network_attachments\' not present in InstanceClusterNetworkAttachmentCollection JSON') + raise ValueError( + 'Required property \'cluster_network_attachments\' not present in InstanceClusterNetworkAttachmentCollection JSON' + ) if (first := _dict.get('first')) is not None: args['first'] = PageLink.from_dict(first) else: - raise ValueError('Required property \'first\' not present in InstanceClusterNetworkAttachmentCollection JSON') + raise ValueError( + 'Required property \'first\' not present in InstanceClusterNetworkAttachmentCollection JSON' + ) if (limit := _dict.get('limit')) is not None: args['limit'] = limit else: - raise ValueError('Required property \'limit\' not present in InstanceClusterNetworkAttachmentCollection JSON') + raise ValueError( + 'Required property \'limit\' not present in InstanceClusterNetworkAttachmentCollection JSON' + ) if (next := _dict.get('next')) is not None: args['next'] = PageLink.from_dict(next) if (total_count := _dict.get('total_count')) is not None: args['total_count'] = total_count else: - raise ValueError('Required property \'total_count\' not present in InstanceClusterNetworkAttachmentCollection JSON') + raise ValueError( + 'Required property \'total_count\' not present in InstanceClusterNetworkAttachmentCollection JSON' + ) return cls(**args) @classmethod @@ -52126,11 +52461,15 @@ def from_dict(cls, _dict: Dict) -> 'InstanceClusterNetworkAttachmentLifecycleRea if (code := _dict.get('code')) is not None: args['code'] = code else: - raise ValueError('Required property \'code\' not present in InstanceClusterNetworkAttachmentLifecycleReason JSON') + raise ValueError( + 'Required property \'code\' not present in InstanceClusterNetworkAttachmentLifecycleReason JSON' + ) if (message := _dict.get('message')) is not None: args['message'] = message else: - raise ValueError('Required property \'message\' not present in InstanceClusterNetworkAttachmentLifecycleReason JSON') + raise ValueError( + 'Required property \'message\' not present in InstanceClusterNetworkAttachmentLifecycleReason JSON' + ) if (more_info := _dict.get('more_info')) is not None: args['more_info'] = more_info return cls(**args) @@ -52184,7 +52523,6 @@ class CodeEnum(str, Enum): RESOURCE_SUSPENDED_BY_PROVIDER = 'resource_suspended_by_provider' - class InstanceClusterNetworkAttachmentPatch: """ InstanceClusterNetworkAttachmentPatch. @@ -52268,7 +52606,12 @@ def __init__( """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment', 'InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceClusterNetworkInterfaceIdentity']) + ", ".join( + [ + 'InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment', + 'InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceClusterNetworkInterfaceIdentity', + ] + ) ) raise Exception(msg) @@ -52331,7 +52674,9 @@ def from_dict(cls, _dict: Dict) -> 'InstanceClusterNetworkAttachmentPrototypeIns if (cluster_network_interface := _dict.get('cluster_network_interface')) is not None: args['cluster_network_interface'] = cluster_network_interface else: - raise ValueError('Required property \'cluster_network_interface\' not present in InstanceClusterNetworkAttachmentPrototypeInstanceContext JSON') + raise ValueError( + 'Required property \'cluster_network_interface\' not present in InstanceClusterNetworkAttachmentPrototypeInstanceContext JSON' + ) if (name := _dict.get('name')) is not None: args['name'] = name return cls(**args) @@ -52425,7 +52770,9 @@ def from_dict(cls, _dict: Dict) -> 'InstanceClusterNetworkAttachmentReference': if (resource_type := _dict.get('resource_type')) is not None: args['resource_type'] = resource_type else: - raise ValueError('Required property \'resource_type\' not present in InstanceClusterNetworkAttachmentReference JSON') + raise ValueError( + 'Required property \'resource_type\' not present in InstanceClusterNetworkAttachmentReference JSON' + ) return cls(**args) @classmethod @@ -52472,7 +52819,6 @@ class ResourceTypeEnum(str, Enum): INSTANCE_CLUSTER_NETWORK_ATTACHMENT = 'instance_cluster_network_attachment' - class InstanceCollection: """ InstanceCollection. @@ -52716,7 +53062,6 @@ class ConsoleTypeEnum(str, Enum): VNC = 'vnc' - class InstanceDefaultTrustedProfilePrototype: """ InstanceDefaultTrustedProfilePrototype. @@ -52934,7 +53279,6 @@ class InterfaceTypeEnum(str, Enum): NVME = 'nvme' VIRTIO_BLK = 'virtio_blk' - class ResourceTypeEnum(str, Enum): """ The resource type. @@ -52943,7 +53287,6 @@ class ResourceTypeEnum(str, Enum): INSTANCE_DISK = 'instance_disk' - class InstanceDiskCollection: """ InstanceDiskCollection. @@ -53183,7 +53526,6 @@ class ResourceTypeEnum(str, Enum): INSTANCE_DISK = 'instance_disk' - class InstanceGPU: """ The virtual server instance GPU configuration. @@ -53570,7 +53912,6 @@ class LifecycleStateEnum(str, Enum): UPDATING = 'updating' WAITING = 'waiting' - class StatusEnum(str, Enum): """ The status of the instance group @@ -53590,7 +53931,6 @@ class StatusEnum(str, Enum): UNHEALTHY = 'unhealthy' - class InstanceGroupCollection: """ InstanceGroupCollection. @@ -53814,7 +54154,6 @@ class CodeEnum(str, Enum): RESOURCE_SUSPENDED_BY_PROVIDER = 'resource_suspended_by_provider' - class InstanceGroupManager: """ InstanceGroupManager. @@ -53946,7 +54285,6 @@ class ResourceTypeEnum(str, Enum): INSTANCE_GROUP_MANAGER_ACTION = 'instance_group_manager_action' - class StatusEnum(str, Enum): """ The status of the instance group action @@ -53967,7 +54305,6 @@ class StatusEnum(str, Enum): OMITTED = 'omitted' - class InstanceGroupManagerActionGroupPatch: """ InstanceGroupManagerActionGroupPatch. @@ -54319,7 +54656,9 @@ def from_dict(cls, _dict: Dict) -> 'InstanceGroupManagerActionReference': if (resource_type := _dict.get('resource_type')) is not None: args['resource_type'] = resource_type else: - raise ValueError('Required property \'resource_type\' not present in InstanceGroupManagerActionReference JSON') + raise ValueError( + 'Required property \'resource_type\' not present in InstanceGroupManagerActionReference JSON' + ) return cls(**args) @classmethod @@ -54371,7 +54710,6 @@ class ResourceTypeEnum(str, Enum): INSTANCE_GROUP_MANAGER_ACTION = 'instance_group_manager_action' - class InstanceGroupManagerActionsCollection: """ InstanceGroupManagerActionsCollection. @@ -54436,7 +54774,9 @@ def from_dict(cls, _dict: Dict) -> 'InstanceGroupManagerActionsCollection': if (total_count := _dict.get('total_count')) is not None: args['total_count'] = total_count else: - raise ValueError('Required property \'total_count\' not present in InstanceGroupManagerActionsCollection JSON') + raise ValueError( + 'Required property \'total_count\' not present in InstanceGroupManagerActionsCollection JSON' + ) return cls(**args) @classmethod @@ -54823,7 +55163,9 @@ def from_dict(cls, _dict: Dict) -> 'InstanceGroupManagerPolicyCollection': if (total_count := _dict.get('total_count')) is not None: args['total_count'] = total_count else: - raise ValueError('Required property \'total_count\' not present in InstanceGroupManagerPolicyCollection JSON') + raise ValueError( + 'Required property \'total_count\' not present in InstanceGroupManagerPolicyCollection JSON' + ) return cls(**args) @classmethod @@ -54964,7 +55306,6 @@ class MetricTypeEnum(str, Enum): NETWORK_OUT = 'network_out' - class InstanceGroupManagerPolicyPrototype: """ InstanceGroupManagerPolicyPrototype. @@ -55118,7 +55459,12 @@ def __init__( unspecified, the name will be a hyphenated list of randomly-selected words. """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['InstanceGroupManagerPrototypeInstanceGroupManagerAutoScalePrototype', 'InstanceGroupManagerPrototypeInstanceGroupManagerScheduledPrototype']) + ", ".join( + [ + 'InstanceGroupManagerPrototypeInstanceGroupManagerAutoScalePrototype', + 'InstanceGroupManagerPrototypeInstanceGroupManagerScheduledPrototype', + ] + ) ) raise Exception(msg) @@ -55247,7 +55593,9 @@ def from_dict(cls, _dict: Dict) -> 'InstanceGroupManagerScheduledActionGroup': if (membership_count := _dict.get('membership_count')) is not None: args['membership_count'] = membership_count else: - raise ValueError('Required property \'membership_count\' not present in InstanceGroupManagerScheduledActionGroup JSON') + raise ValueError( + 'Required property \'membership_count\' not present in InstanceGroupManagerScheduledActionGroup JSON' + ) return cls(**args) @classmethod @@ -55308,7 +55656,9 @@ def from_dict(cls, _dict: Dict) -> 'InstanceGroupManagerScheduledActionGroupProt if (membership_count := _dict.get('membership_count')) is not None: args['membership_count'] = membership_count else: - raise ValueError('Required property \'membership_count\' not present in InstanceGroupManagerScheduledActionGroupPrototype JSON') + raise ValueError( + 'Required property \'membership_count\' not present in InstanceGroupManagerScheduledActionGroupPrototype JSON' + ) return cls(**args) @classmethod @@ -55470,7 +55820,9 @@ def from_dict(cls, _dict: Dict) -> 'InstanceGroupMembership': if (delete_instance_on_membership_delete := _dict.get('delete_instance_on_membership_delete')) is not None: args['delete_instance_on_membership_delete'] = delete_instance_on_membership_delete else: - raise ValueError('Required property \'delete_instance_on_membership_delete\' not present in InstanceGroupMembership JSON') + raise ValueError( + 'Required property \'delete_instance_on_membership_delete\' not present in InstanceGroupMembership JSON' + ) if (href := _dict.get('href')) is not None: args['href'] = href else: @@ -55513,7 +55865,10 @@ def to_dict(self) -> Dict: _dict = {} if hasattr(self, 'created_at') and self.created_at is not None: _dict['created_at'] = datetime_to_string(self.created_at) - if hasattr(self, 'delete_instance_on_membership_delete') and self.delete_instance_on_membership_delete is not None: + if ( + hasattr(self, 'delete_instance_on_membership_delete') + and self.delete_instance_on_membership_delete is not None + ): _dict['delete_instance_on_membership_delete'] = self.delete_instance_on_membership_delete if hasattr(self, 'href') and self.href is not None: _dict['href'] = self.href @@ -55580,7 +55935,6 @@ class StatusEnum(str, Enum): UNHEALTHY = 'unhealthy' - class InstanceGroupMembershipCollection: """ InstanceGroupMembershipCollection. @@ -55745,7 +56099,10 @@ def _from_dict(cls, _dict): def to_dict(self) -> Dict: """Return a json dictionary representing this model.""" _dict = {} - if hasattr(self, 'delete_instance_on_membership_delete') and self.delete_instance_on_membership_delete is not None: + if ( + hasattr(self, 'delete_instance_on_membership_delete') + and self.delete_instance_on_membership_delete is not None + ): _dict['delete_instance_on_membership_delete'] = self.delete_instance_on_membership_delete if hasattr(self, 'name') and self.name is not None: _dict['name'] = self.name @@ -56152,7 +56509,6 @@ class CodeEnum(str, Enum): RESERVATION_FAILED = 'reservation_failed' - class InstanceInitialization: """ InstanceInitialization. @@ -56193,7 +56549,9 @@ def from_dict(cls, _dict: Dict) -> 'InstanceInitialization': """Initialize a InstanceInitialization object from a json dictionary.""" args = {} if (default_trusted_profile := _dict.get('default_trusted_profile')) is not None: - args['default_trusted_profile'] = InstanceInitializationDefaultTrustedProfile.from_dict(default_trusted_profile) + args['default_trusted_profile'] = InstanceInitializationDefaultTrustedProfile.from_dict( + default_trusted_profile + ) if (keys := _dict.get('keys')) is not None: args['keys'] = [KeyReference.from_dict(v) for v in keys] else: @@ -56286,11 +56644,15 @@ def from_dict(cls, _dict: Dict) -> 'InstanceInitializationDefaultTrustedProfile' if (auto_link := _dict.get('auto_link')) is not None: args['auto_link'] = auto_link else: - raise ValueError('Required property \'auto_link\' not present in InstanceInitializationDefaultTrustedProfile JSON') + raise ValueError( + 'Required property \'auto_link\' not present in InstanceInitializationDefaultTrustedProfile JSON' + ) if (target := _dict.get('target')) is not None: args['target'] = TrustedProfileReference.from_dict(target) else: - raise ValueError('Required property \'target\' not present in InstanceInitializationDefaultTrustedProfile JSON') + raise ValueError( + 'Required property \'target\' not present in InstanceInitializationDefaultTrustedProfile JSON' + ) return cls(**args) @classmethod @@ -56363,7 +56725,9 @@ def from_dict(cls, _dict: Dict) -> 'InstanceInitializationPassword': if (encrypted_password := _dict.get('encrypted_password')) is not None: args['encrypted_password'] = base64.b64decode(encrypted_password) else: - raise ValueError('Required property \'encrypted_password\' not present in InstanceInitializationPassword JSON') + raise ValueError( + 'Required property \'encrypted_password\' not present in InstanceInitializationPassword JSON' + ) if (encryption_key := _dict.get('encryption_key')) is not None: args['encryption_key'] = KeyIdentityByFingerprint.from_dict(encryption_key) else: @@ -56533,7 +56897,6 @@ class CodeEnum(str, Enum): RESOURCE_SUSPENDED_BY_PROVIDER = 'resource_suspended_by_provider' - class InstanceMetadataService: """ The metadata service configuration. @@ -56636,7 +56999,6 @@ class ProtocolEnum(str, Enum): HTTPS = 'https' - class InstanceMetadataServicePatch: """ The metadata service configuration. @@ -56735,7 +57097,6 @@ class ProtocolEnum(str, Enum): HTTPS = 'https' - class InstanceMetadataServicePrototype: """ The metadata service configuration. @@ -56834,7 +57195,6 @@ class ProtocolEnum(str, Enum): HTTPS = 'https' - class InstanceNetworkAttachment: """ InstanceNetworkAttachment. @@ -56956,9 +57316,13 @@ def from_dict(cls, _dict: Dict) -> 'InstanceNetworkAttachment': else: raise ValueError('Required property \'type\' not present in InstanceNetworkAttachment JSON') if (virtual_network_interface := _dict.get('virtual_network_interface')) is not None: - args['virtual_network_interface'] = VirtualNetworkInterfaceReferenceAttachmentContext.from_dict(virtual_network_interface) + args['virtual_network_interface'] = VirtualNetworkInterfaceReferenceAttachmentContext.from_dict( + virtual_network_interface + ) else: - raise ValueError('Required property \'virtual_network_interface\' not present in InstanceNetworkAttachment JSON') + raise ValueError( + 'Required property \'virtual_network_interface\' not present in InstanceNetworkAttachment JSON' + ) return cls(**args) @classmethod @@ -57033,7 +57397,6 @@ class LifecycleStateEnum(str, Enum): UPDATING = 'updating' WAITING = 'waiting' - class ResourceTypeEnum(str, Enum): """ The resource type. @@ -57041,7 +57404,6 @@ class ResourceTypeEnum(str, Enum): INSTANCE_NETWORK_ATTACHMENT = 'instance_network_attachment' - class TypeEnum(str, Enum): """ The instance network attachment type. @@ -57051,7 +57413,6 @@ class TypeEnum(str, Enum): SECONDARY = 'secondary' - class InstanceNetworkAttachmentCollection: """ InstanceNetworkAttachmentCollection. @@ -57079,7 +57440,9 @@ def from_dict(cls, _dict: Dict) -> 'InstanceNetworkAttachmentCollection': if (network_attachments := _dict.get('network_attachments')) is not None: args['network_attachments'] = [InstanceNetworkAttachment.from_dict(v) for v in network_attachments] else: - raise ValueError('Required property \'network_attachments\' not present in InstanceNetworkAttachmentCollection JSON') + raise ValueError( + 'Required property \'network_attachments\' not present in InstanceNetworkAttachmentCollection JSON' + ) return cls(**args) @classmethod @@ -57231,7 +57594,9 @@ def from_dict(cls, _dict: Dict) -> 'InstanceNetworkAttachmentPrototype': if (virtual_network_interface := _dict.get('virtual_network_interface')) is not None: args['virtual_network_interface'] = virtual_network_interface else: - raise ValueError('Required property \'virtual_network_interface\' not present in InstanceNetworkAttachmentPrototype JSON') + raise ValueError( + 'Required property \'virtual_network_interface\' not present in InstanceNetworkAttachmentPrototype JSON' + ) return cls(**args) @classmethod @@ -57289,7 +57654,12 @@ def __init__( """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeInstanceNetworkAttachmentContext', 'InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentity']) + ", ".join( + [ + 'InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeInstanceNetworkAttachmentContext', + 'InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentity', + ] + ) ) raise Exception(msg) @@ -57382,15 +57752,21 @@ def from_dict(cls, _dict: Dict) -> 'InstanceNetworkAttachmentReference': if (resource_type := _dict.get('resource_type')) is not None: args['resource_type'] = resource_type else: - raise ValueError('Required property \'resource_type\' not present in InstanceNetworkAttachmentReference JSON') + raise ValueError( + 'Required property \'resource_type\' not present in InstanceNetworkAttachmentReference JSON' + ) if (subnet := _dict.get('subnet')) is not None: args['subnet'] = SubnetReference.from_dict(subnet) else: raise ValueError('Required property \'subnet\' not present in InstanceNetworkAttachmentReference JSON') if (virtual_network_interface := _dict.get('virtual_network_interface')) is not None: - args['virtual_network_interface'] = VirtualNetworkInterfaceReferenceAttachmentContext.from_dict(virtual_network_interface) + args['virtual_network_interface'] = VirtualNetworkInterfaceReferenceAttachmentContext.from_dict( + virtual_network_interface + ) else: - raise ValueError('Required property \'virtual_network_interface\' not present in InstanceNetworkAttachmentReference JSON') + raise ValueError( + 'Required property \'virtual_network_interface\' not present in InstanceNetworkAttachmentReference JSON' + ) return cls(**args) @classmethod @@ -57457,7 +57833,6 @@ class ResourceTypeEnum(str, Enum): INSTANCE_NETWORK_ATTACHMENT = 'instance_network_attachment' - class InstancePatch: """ InstancePatch. @@ -57670,7 +58045,6 @@ class ConfidentialComputeModeEnum(str, Enum): SGX = 'sgx' - class InstancePatchProfile: """ The profile to use for this virtual server instance. Any disks associated with the @@ -57695,7 +58069,12 @@ def __init__( """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['InstancePatchProfileInstanceProfileIdentityByName', 'InstancePatchProfileInstanceProfileIdentityByHref']) + ", ".join( + [ + 'InstancePatchProfileInstanceProfileIdentityByName', + 'InstancePatchProfileInstanceProfileIdentityByHref', + ] + ) ) raise Exception(msg) @@ -57714,7 +58093,13 @@ def __init__( """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['InstancePlacementTargetDedicatedHostGroupReference', 'InstancePlacementTargetDedicatedHostReference', 'InstancePlacementTargetPlacementGroupReference']) + ", ".join( + [ + 'InstancePlacementTargetDedicatedHostGroupReference', + 'InstancePlacementTargetDedicatedHostReference', + 'InstancePlacementTargetPlacementGroupReference', + ] + ) ) raise Exception(msg) @@ -57733,7 +58118,12 @@ def __init__( """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['InstancePlacementTargetPatchDedicatedHostIdentity', 'InstancePlacementTargetPatchDedicatedHostGroupIdentity']) + ", ".join( + [ + 'InstancePlacementTargetPatchDedicatedHostIdentity', + 'InstancePlacementTargetPatchDedicatedHostGroupIdentity', + ] + ) ) raise Exception(msg) @@ -57752,7 +58142,13 @@ def __init__( """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['InstancePlacementTargetPrototypeDedicatedHostIdentity', 'InstancePlacementTargetPrototypeDedicatedHostGroupIdentity', 'InstancePlacementTargetPrototypePlacementGroupIdentity']) + ", ".join( + [ + 'InstancePlacementTargetPrototypeDedicatedHostIdentity', + 'InstancePlacementTargetPrototypeDedicatedHostGroupIdentity', + 'InstancePlacementTargetPrototypePlacementGroupIdentity', + ] + ) ) raise Exception(msg) @@ -57922,9 +58318,13 @@ def from_dict(cls, _dict: Dict) -> 'InstanceProfile': if (cluster_network_attachment_count := _dict.get('cluster_network_attachment_count')) is not None: args['cluster_network_attachment_count'] = cluster_network_attachment_count else: - raise ValueError('Required property \'cluster_network_attachment_count\' not present in InstanceProfile JSON') + raise ValueError( + 'Required property \'cluster_network_attachment_count\' not present in InstanceProfile JSON' + ) if (confidential_compute_modes := _dict.get('confidential_compute_modes')) is not None: - args['confidential_compute_modes'] = InstanceProfileSupportedConfidentialComputeModes.from_dict(confidential_compute_modes) + args['confidential_compute_modes'] = InstanceProfileSupportedConfidentialComputeModes.from_dict( + confidential_compute_modes + ) else: raise ValueError('Required property \'confidential_compute_modes\' not present in InstanceProfile JSON') if (disks := _dict.get('disks')) is not None: @@ -57990,9 +58390,13 @@ def from_dict(cls, _dict: Dict) -> 'InstanceProfile': else: raise ValueError('Required property \'status\' not present in InstanceProfile JSON') if (supported_cluster_network_profiles := _dict.get('supported_cluster_network_profiles')) is not None: - args['supported_cluster_network_profiles'] = [ClusterNetworkProfileReference.from_dict(v) for v in supported_cluster_network_profiles] + args['supported_cluster_network_profiles'] = [ + ClusterNetworkProfileReference.from_dict(v) for v in supported_cluster_network_profiles + ] else: - raise ValueError('Required property \'supported_cluster_network_profiles\' not present in InstanceProfile JSON') + raise ValueError( + 'Required property \'supported_cluster_network_profiles\' not present in InstanceProfile JSON' + ) if (total_volume_bandwidth := _dict.get('total_volume_bandwidth')) is not None: args['total_volume_bandwidth'] = total_volume_bandwidth else: @@ -58167,7 +58571,6 @@ class ResourceTypeEnum(str, Enum): INSTANCE_PROFILE = 'instance_profile' - class StatusEnum(str, Enum): """ The status of the instance profile: @@ -58188,7 +58591,6 @@ class StatusEnum(str, Enum): PREVIOUS = 'previous' - class InstanceProfileBandwidth: """ InstanceProfileBandwidth. @@ -58203,7 +58605,14 @@ def __init__( """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['InstanceProfileBandwidthFixed', 'InstanceProfileBandwidthRange', 'InstanceProfileBandwidthEnum', 'InstanceProfileBandwidthDependent']) + ", ".join( + [ + 'InstanceProfileBandwidthFixed', + 'InstanceProfileBandwidthRange', + 'InstanceProfileBandwidthEnum', + 'InstanceProfileBandwidthDependent', + ] + ) ) raise Exception(msg) @@ -58222,7 +58631,13 @@ def __init__( """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['InstanceProfileClusterNetworkAttachmentCountDependent', 'InstanceProfileClusterNetworkAttachmentCountEnum', 'InstanceProfileClusterNetworkAttachmentCountRange']) + ", ".join( + [ + 'InstanceProfileClusterNetworkAttachmentCountDependent', + 'InstanceProfileClusterNetworkAttachmentCountEnum', + 'InstanceProfileClusterNetworkAttachmentCountRange', + ] + ) ) raise Exception(msg) @@ -58333,7 +58748,9 @@ def from_dict(cls, _dict: Dict) -> 'InstanceProfileDisk': else: raise ValueError('Required property \'size\' not present in InstanceProfileDisk JSON') if (supported_interface_types := _dict.get('supported_interface_types')) is not None: - args['supported_interface_types'] = InstanceProfileDiskSupportedInterfaces.from_dict(supported_interface_types) + args['supported_interface_types'] = InstanceProfileDiskSupportedInterfaces.from_dict( + supported_interface_types + ) else: raise ValueError('Required property \'supported_interface_types\' not present in InstanceProfileDisk JSON') return cls(**args) @@ -58396,7 +58813,14 @@ def __init__( """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['InstanceProfileDiskQuantityFixed', 'InstanceProfileDiskQuantityRange', 'InstanceProfileDiskQuantityEnum', 'InstanceProfileDiskQuantityDependent']) + ", ".join( + [ + 'InstanceProfileDiskQuantityFixed', + 'InstanceProfileDiskQuantityRange', + 'InstanceProfileDiskQuantityEnum', + 'InstanceProfileDiskQuantityDependent', + ] + ) ) raise Exception(msg) @@ -58415,7 +58839,14 @@ def __init__( """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['InstanceProfileDiskSizeFixed', 'InstanceProfileDiskSizeRange', 'InstanceProfileDiskSizeEnum', 'InstanceProfileDiskSizeDependent']) + ", ".join( + [ + 'InstanceProfileDiskSizeFixed', + 'InstanceProfileDiskSizeRange', + 'InstanceProfileDiskSizeEnum', + 'InstanceProfileDiskSizeDependent', + ] + ) ) raise Exception(msg) @@ -58517,7 +58948,6 @@ class DefaultEnum(str, Enum): NVME = 'nvme' VIRTIO_BLK = 'virtio_blk' - class TypeEnum(str, Enum): """ The type for this profile field. @@ -58525,7 +58955,6 @@ class TypeEnum(str, Enum): ENUM = 'enum' - class ValuesEnum(str, Enum): """ The disk interface used for attaching the disk. @@ -58538,7 +58967,6 @@ class ValuesEnum(str, Enum): VIRTIO_BLK = 'virtio_blk' - class InstanceProfileGPU: """ InstanceProfileGPU. @@ -58553,7 +58981,14 @@ def __init__( """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['InstanceProfileGPUFixed', 'InstanceProfileGPURange', 'InstanceProfileGPUEnum', 'InstanceProfileGPUDependent']) + ", ".join( + [ + 'InstanceProfileGPUFixed', + 'InstanceProfileGPURange', + 'InstanceProfileGPUEnum', + 'InstanceProfileGPUDependent', + ] + ) ) raise Exception(msg) @@ -58636,7 +59071,6 @@ class TypeEnum(str, Enum): ENUM = 'enum' - class InstanceProfileGPUMemory: """ InstanceProfileGPUMemory. @@ -58651,7 +59085,14 @@ def __init__( """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['InstanceProfileGPUMemoryFixed', 'InstanceProfileGPUMemoryRange', 'InstanceProfileGPUMemoryEnum', 'InstanceProfileGPUMemoryDependent']) + ", ".join( + [ + 'InstanceProfileGPUMemoryFixed', + 'InstanceProfileGPUMemoryRange', + 'InstanceProfileGPUMemoryEnum', + 'InstanceProfileGPUMemoryDependent', + ] + ) ) raise Exception(msg) @@ -58734,7 +59175,6 @@ class TypeEnum(str, Enum): ENUM = 'enum' - class InstanceProfileIdentity: """ Identifies an instance profile by a unique property. @@ -58768,7 +59208,14 @@ def __init__( """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['InstanceProfileMemoryFixed', 'InstanceProfileMemoryRange', 'InstanceProfileMemoryEnum', 'InstanceProfileMemoryDependent']) + ", ".join( + [ + 'InstanceProfileMemoryFixed', + 'InstanceProfileMemoryRange', + 'InstanceProfileMemoryEnum', + 'InstanceProfileMemoryDependent', + ] + ) ) raise Exception(msg) @@ -58920,7 +59367,6 @@ class TypeEnum(str, Enum): ENUM = 'enum' - class InstanceProfilePortSpeed: """ InstanceProfilePortSpeed. @@ -59028,7 +59474,6 @@ class ResourceTypeEnum(str, Enum): INSTANCE_PROFILE = 'instance_profile' - class InstanceProfileReservationTerms: """ InstanceProfileReservationTerms. @@ -59106,7 +59551,6 @@ class TypeEnum(str, Enum): ENUM = 'enum' - class ValuesEnum(str, Enum): """ values. @@ -59116,7 +59560,6 @@ class ValuesEnum(str, Enum): THREE_YEAR = 'three_year' - class InstanceProfileSupportedConfidentialComputeModes: """ InstanceProfileSupportedConfidentialComputeModes. @@ -59150,15 +59593,21 @@ def from_dict(cls, _dict: Dict) -> 'InstanceProfileSupportedConfidentialComputeM if (default := _dict.get('default')) is not None: args['default'] = default else: - raise ValueError('Required property \'default\' not present in InstanceProfileSupportedConfidentialComputeModes JSON') + raise ValueError( + 'Required property \'default\' not present in InstanceProfileSupportedConfidentialComputeModes JSON' + ) if (type := _dict.get('type')) is not None: args['type'] = type else: - raise ValueError('Required property \'type\' not present in InstanceProfileSupportedConfidentialComputeModes JSON') + raise ValueError( + 'Required property \'type\' not present in InstanceProfileSupportedConfidentialComputeModes JSON' + ) if (values := _dict.get('values')) is not None: args['values'] = values else: - raise ValueError('Required property \'values\' not present in InstanceProfileSupportedConfidentialComputeModes JSON') + raise ValueError( + 'Required property \'values\' not present in InstanceProfileSupportedConfidentialComputeModes JSON' + ) return cls(**args) @classmethod @@ -59203,7 +59652,6 @@ class DefaultEnum(str, Enum): DISABLED = 'disabled' SGX = 'sgx' - class TypeEnum(str, Enum): """ The type for this profile field. @@ -59211,7 +59659,6 @@ class TypeEnum(str, Enum): ENUM = 'enum' - class ValuesEnum(str, Enum): """ The confidential compute modes: @@ -59226,7 +59673,6 @@ class ValuesEnum(str, Enum): SGX = 'sgx' - class InstanceProfileSupportedSecureBootModes: """ InstanceProfileSupportedSecureBootModes. @@ -59262,7 +59708,9 @@ def from_dict(cls, _dict: Dict) -> 'InstanceProfileSupportedSecureBootModes': if (default := _dict.get('default')) is not None: args['default'] = default else: - raise ValueError('Required property \'default\' not present in InstanceProfileSupportedSecureBootModes JSON') + raise ValueError( + 'Required property \'default\' not present in InstanceProfileSupportedSecureBootModes JSON' + ) if (type := _dict.get('type')) is not None: args['type'] = type else: @@ -59315,7 +59763,6 @@ class TypeEnum(str, Enum): ENUM = 'enum' - class InstanceProfileVCPU: """ InstanceProfileVCPU. @@ -59330,7 +59777,14 @@ def __init__( """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['InstanceProfileVCPUFixed', 'InstanceProfileVCPURange', 'InstanceProfileVCPUEnum', 'InstanceProfileVCPUDependent']) + ", ".join( + [ + 'InstanceProfileVCPUFixed', + 'InstanceProfileVCPURange', + 'InstanceProfileVCPUEnum', + 'InstanceProfileVCPUDependent', + ] + ) ) raise Exception(msg) @@ -59422,7 +59876,6 @@ class TypeEnum(str, Enum): FIXED = 'fixed' - class InstanceProfileVCPUManufacturer: """ InstanceProfileVCPUManufacturer. @@ -59510,7 +59963,6 @@ class TypeEnum(str, Enum): FIXED = 'fixed' - class InstanceProfileVolumeBandwidth: """ InstanceProfileVolumeBandwidth. @@ -59525,7 +59977,14 @@ def __init__( """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['InstanceProfileVolumeBandwidthFixed', 'InstanceProfileVolumeBandwidthRange', 'InstanceProfileVolumeBandwidthEnum', 'InstanceProfileVolumeBandwidthDependent']) + ", ".join( + [ + 'InstanceProfileVolumeBandwidthFixed', + 'InstanceProfileVolumeBandwidthRange', + 'InstanceProfileVolumeBandwidthEnum', + 'InstanceProfileVolumeBandwidthDependent', + ] + ) ) raise Exception(msg) @@ -59706,7 +60165,15 @@ def __init__( attachments or instance network interfaces. """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['InstancePrototypeInstanceByImage', 'InstancePrototypeInstanceByCatalogOffering', 'InstancePrototypeInstanceByVolume', 'InstancePrototypeInstanceBySourceSnapshot', 'InstancePrototypeInstanceBySourceTemplate']) + ", ".join( + [ + 'InstancePrototypeInstanceByImage', + 'InstancePrototypeInstanceByCatalogOffering', + 'InstancePrototypeInstanceByVolume', + 'InstancePrototypeInstanceBySourceSnapshot', + 'InstancePrototypeInstanceBySourceTemplate', + ] + ) ) raise Exception(msg) @@ -59721,7 +60188,6 @@ class ConfidentialComputeModeEnum(str, Enum): SGX = 'sgx' - class InstanceReference: """ InstanceReference. @@ -59922,7 +60388,6 @@ class PolicyEnum(str, Enum): MANUAL = 'manual' - class InstanceReservationAffinityPatch: """ InstanceReservationAffinityPatch. @@ -60026,7 +60491,6 @@ class PolicyEnum(str, Enum): MANUAL = 'manual' - class InstanceReservationAffinityPrototype: """ InstanceReservationAffinityPrototype. @@ -60133,7 +60597,6 @@ class PolicyEnum(str, Enum): MANUAL = 'manual' - class InstanceStatusReason: """ InstanceStatusReason. @@ -60241,7 +60704,6 @@ class CodeEnum(str, Enum): STOPPED_FOR_IMAGE_CREATION = 'stopped_for_image_creation' - class InstanceTemplate: """ InstanceTemplate. @@ -60424,7 +60886,13 @@ def __init__( attachments or instance network interfaces. """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['InstanceTemplateInstanceByImageInstanceTemplateContext', 'InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContext', 'InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContext']) + ", ".join( + [ + 'InstanceTemplateInstanceByImageInstanceTemplateContext', + 'InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContext', + 'InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContext', + ] + ) ) raise Exception(msg) @@ -60439,7 +60907,6 @@ class ConfidentialComputeModeEnum(str, Enum): SGX = 'sgx' - class InstanceTemplateCollection: """ InstanceTemplateCollection. @@ -60570,7 +61037,9 @@ def __init__( """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['InstanceTemplateIdentityById', 'InstanceTemplateIdentityByHref', 'InstanceTemplateIdentityByCRN']) + ", ".join( + ['InstanceTemplateIdentityById', 'InstanceTemplateIdentityByHref', 'InstanceTemplateIdentityByCRN'] + ) ) raise Exception(msg) @@ -60809,7 +61278,14 @@ def __init__( attachments or instance network interfaces. """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['InstanceTemplatePrototypeInstanceTemplateByImage', 'InstanceTemplatePrototypeInstanceTemplateBySourceTemplate', 'InstanceTemplatePrototypeInstanceTemplateBySourceSnapshot', 'InstanceTemplatePrototypeInstanceTemplateByCatalogOffering']) + ", ".join( + [ + 'InstanceTemplatePrototypeInstanceTemplateByImage', + 'InstanceTemplatePrototypeInstanceTemplateBySourceTemplate', + 'InstanceTemplatePrototypeInstanceTemplateBySourceSnapshot', + 'InstanceTemplatePrototypeInstanceTemplateByCatalogOffering', + ] + ) ) raise Exception(msg) @@ -60824,7 +61300,6 @@ class ConfidentialComputeModeEnum(str, Enum): SGX = 'sgx' - class InstanceTemplateReference: """ InstanceTemplateReference. @@ -61190,7 +61665,6 @@ class TypeEnum(str, Enum): RSA = 'rsa' - class KeyCollection: """ KeyCollection. @@ -61930,10 +62404,14 @@ def from_dict(cls, _dict: Dict) -> 'LoadBalancer': args['security_groups_supported'] = security_groups_supported else: raise ValueError('Required property \'security_groups_supported\' not present in LoadBalancer JSON') - if (source_ip_session_persistence_supported := _dict.get('source_ip_session_persistence_supported')) is not None: + if ( + source_ip_session_persistence_supported := _dict.get('source_ip_session_persistence_supported') + ) is not None: args['source_ip_session_persistence_supported'] = source_ip_session_persistence_supported else: - raise ValueError('Required property \'source_ip_session_persistence_supported\' not present in LoadBalancer JSON') + raise ValueError( + 'Required property \'source_ip_session_persistence_supported\' not present in LoadBalancer JSON' + ) if (subnets := _dict.get('subnets')) is not None: args['subnets'] = [SubnetReference.from_dict(v) for v in subnets] else: @@ -62044,7 +62522,10 @@ def to_dict(self) -> Dict: _dict['security_groups'] = security_groups_list if hasattr(self, 'security_groups_supported') and self.security_groups_supported is not None: _dict['security_groups_supported'] = self.security_groups_supported - if hasattr(self, 'source_ip_session_persistence_supported') and self.source_ip_session_persistence_supported is not None: + if ( + hasattr(self, 'source_ip_session_persistence_supported') + and self.source_ip_session_persistence_supported is not None + ): _dict['source_ip_session_persistence_supported'] = self.source_ip_session_persistence_supported if hasattr(self, 'subnets') and self.subnets is not None: subnets_list = [] @@ -62091,7 +62572,6 @@ class AccessModeEnum(str, Enum): PRIVATE_PATH = 'private_path' PUBLIC = 'public' - class AvailabilityEnum(str, Enum): """ The availability of this load balancer: @@ -62107,7 +62587,6 @@ class AvailabilityEnum(str, Enum): REGION = 'region' SUBNET = 'subnet' - class OperatingStatusEnum(str, Enum): """ The operating status of this load balancer. @@ -62119,7 +62598,6 @@ class OperatingStatusEnum(str, Enum): OFFLINE = 'offline' ONLINE = 'online' - class ProvisioningStatusEnum(str, Enum): """ The provisioning status of this load balancer: @@ -62146,7 +62624,6 @@ class ProvisioningStatusEnum(str, Enum): MIGRATE_PENDING = 'migrate_pending' UPDATE_PENDING = 'update_pending' - class ResourceTypeEnum(str, Enum): """ The resource type. @@ -62155,7 +62632,6 @@ class ResourceTypeEnum(str, Enum): LOAD_BALANCER = 'load_balancer' - class LoadBalancerCollection: """ LoadBalancerCollection. @@ -62836,7 +63312,6 @@ class ProtocolEnum(str, Enum): TCP = 'tcp' UDP = 'udp' - class ProvisioningStatusEnum(str, Enum): """ The provisioning status of this listener @@ -62852,7 +63327,6 @@ class ProvisioningStatusEnum(str, Enum): UPDATE_PENDING = 'update_pending' - class LoadBalancerListenerCollection: """ LoadBalancerListenerCollection. @@ -62940,7 +63414,12 @@ def __init__( """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['LoadBalancerListenerDefaultPoolPatchLoadBalancerPoolIdentityById', 'LoadBalancerListenerDefaultPoolPatchLoadBalancerPoolIdentityByHref']) + ", ".join( + [ + 'LoadBalancerListenerDefaultPoolPatchLoadBalancerPoolIdentityById', + 'LoadBalancerListenerDefaultPoolPatchLoadBalancerPoolIdentityByHref', + ] + ) ) raise Exception(msg) @@ -62979,7 +63458,9 @@ def from_dict(cls, _dict: Dict) -> 'LoadBalancerListenerHTTPSRedirect': if (http_status_code := _dict.get('http_status_code')) is not None: args['http_status_code'] = http_status_code else: - raise ValueError('Required property \'http_status_code\' not present in LoadBalancerListenerHTTPSRedirect JSON') + raise ValueError( + 'Required property \'http_status_code\' not present in LoadBalancerListenerHTTPSRedirect JSON' + ) if (listener := _dict.get('listener')) is not None: args['listener'] = LoadBalancerListenerReference.from_dict(listener) else: @@ -63142,11 +63623,15 @@ def from_dict(cls, _dict: Dict) -> 'LoadBalancerListenerHTTPSRedirectPrototype': if (http_status_code := _dict.get('http_status_code')) is not None: args['http_status_code'] = http_status_code else: - raise ValueError('Required property \'http_status_code\' not present in LoadBalancerListenerHTTPSRedirectPrototype JSON') + raise ValueError( + 'Required property \'http_status_code\' not present in LoadBalancerListenerHTTPSRedirectPrototype JSON' + ) if (listener := _dict.get('listener')) is not None: args['listener'] = listener else: - raise ValueError('Required property \'listener\' not present in LoadBalancerListenerHTTPSRedirectPrototype JSON') + raise ValueError( + 'Required property \'listener\' not present in LoadBalancerListenerHTTPSRedirectPrototype JSON' + ) if (uri := _dict.get('uri')) is not None: args['uri'] = uri return cls(**args) @@ -63481,7 +63966,6 @@ class ProtocolEnum(str, Enum): UDP = 'udp' - class LoadBalancerListenerPolicy: """ LoadBalancerListenerPolicy. @@ -63692,7 +64176,6 @@ class ActionEnum(str, Enum): REDIRECT = 'redirect' REJECT = 'reject' - class ProvisioningStatusEnum(str, Enum): """ The provisioning status of this policy @@ -63708,7 +64191,6 @@ class ProvisioningStatusEnum(str, Enum): UPDATE_PENDING = 'update_pending' - class LoadBalancerListenerPolicyCollection: """ LoadBalancerListenerPolicyCollection. @@ -64032,7 +64514,6 @@ class ActionEnum(str, Enum): REJECT = 'reject' - class LoadBalancerListenerPolicyReference: """ LoadBalancerListenerPolicyReference. @@ -64232,7 +64713,9 @@ def from_dict(cls, _dict: Dict) -> 'LoadBalancerListenerPolicyRule': if (provisioning_status := _dict.get('provisioning_status')) is not None: args['provisioning_status'] = provisioning_status else: - raise ValueError('Required property \'provisioning_status\' not present in LoadBalancerListenerPolicyRule JSON') + raise ValueError( + 'Required property \'provisioning_status\' not present in LoadBalancerListenerPolicyRule JSON' + ) if (type := _dict.get('type')) is not None: args['type'] = type else: @@ -64299,7 +64782,6 @@ class ConditionEnum(str, Enum): EQUALS = 'equals' MATCHES_REGEX = 'matches_regex' - class ProvisioningStatusEnum(str, Enum): """ The provisioning status of this rule @@ -64314,7 +64796,6 @@ class ProvisioningStatusEnum(str, Enum): FAILED = 'failed' UPDATE_PENDING = 'update_pending' - class TypeEnum(str, Enum): """ The type of the rule. Body rules are applied to form-encoded request bodies using @@ -64332,7 +64813,6 @@ class TypeEnum(str, Enum): QUERY = 'query' - class LoadBalancerListenerPolicyRuleCollection: """ LoadBalancerListenerPolicyRuleCollection. @@ -64508,7 +64988,6 @@ class ConditionEnum(str, Enum): EQUALS = 'equals' MATCHES_REGEX = 'matches_regex' - class TypeEnum(str, Enum): """ The type of the rule. Body rules are applied to form-encoded request bodies using @@ -64523,7 +65002,6 @@ class TypeEnum(str, Enum): QUERY = 'query' - class LoadBalancerListenerPolicyRulePrototype: """ LoadBalancerListenerPolicyRulePrototype. @@ -64579,7 +65057,9 @@ def from_dict(cls, _dict: Dict) -> 'LoadBalancerListenerPolicyRulePrototype': if (condition := _dict.get('condition')) is not None: args['condition'] = condition else: - raise ValueError('Required property \'condition\' not present in LoadBalancerListenerPolicyRulePrototype JSON') + raise ValueError( + 'Required property \'condition\' not present in LoadBalancerListenerPolicyRulePrototype JSON' + ) if (field := _dict.get('field')) is not None: args['field'] = field if (type := _dict.get('type')) is not None: @@ -64637,7 +65117,6 @@ class ConditionEnum(str, Enum): EQUALS = 'equals' MATCHES_REGEX = 'matches_regex' - class TypeEnum(str, Enum): """ The type of the rule. Body rules are applied to form-encoded request bodies using @@ -64652,7 +65131,6 @@ class TypeEnum(str, Enum): QUERY = 'query' - class LoadBalancerListenerPolicyRuleReference: """ LoadBalancerListenerPolicyRuleReference. @@ -64758,7 +65236,13 @@ def __init__( """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['LoadBalancerListenerPolicyTargetLoadBalancerPoolReference', 'LoadBalancerListenerPolicyTargetLoadBalancerListenerPolicyHTTPSRedirect', 'LoadBalancerListenerPolicyTargetLoadBalancerListenerPolicyRedirectURL']) + ", ".join( + [ + 'LoadBalancerListenerPolicyTargetLoadBalancerPoolReference', + 'LoadBalancerListenerPolicyTargetLoadBalancerListenerPolicyHTTPSRedirect', + 'LoadBalancerListenerPolicyTargetLoadBalancerListenerPolicyRedirectURL', + ] + ) ) raise Exception(msg) @@ -64780,7 +65264,13 @@ def __init__( """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['LoadBalancerListenerPolicyTargetPatchLoadBalancerPoolIdentity', 'LoadBalancerListenerPolicyTargetPatchLoadBalancerListenerPolicyHTTPSRedirectPatch', 'LoadBalancerListenerPolicyTargetPatchLoadBalancerListenerPolicyRedirectURLPatch']) + ", ".join( + [ + 'LoadBalancerListenerPolicyTargetPatchLoadBalancerPoolIdentity', + 'LoadBalancerListenerPolicyTargetPatchLoadBalancerListenerPolicyHTTPSRedirectPatch', + 'LoadBalancerListenerPolicyTargetPatchLoadBalancerListenerPolicyRedirectURLPatch', + ] + ) ) raise Exception(msg) @@ -64805,7 +65295,13 @@ def __init__( """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['LoadBalancerListenerPolicyTargetPrototypeLoadBalancerPoolIdentity', 'LoadBalancerListenerPolicyTargetPrototypeLoadBalancerListenerPolicyHTTPSRedirectPrototype', 'LoadBalancerListenerPolicyTargetPrototypeLoadBalancerListenerPolicyRedirectURLPrototype']) + ", ".join( + [ + 'LoadBalancerListenerPolicyTargetPrototypeLoadBalancerPoolIdentity', + 'LoadBalancerListenerPolicyTargetPrototypeLoadBalancerListenerPolicyHTTPSRedirectPrototype', + 'LoadBalancerListenerPolicyTargetPrototypeLoadBalancerListenerPolicyRedirectURLPrototype', + ] + ) ) raise Exception(msg) @@ -65006,7 +65502,9 @@ def from_dict(cls, _dict: Dict) -> 'LoadBalancerListenerPrototypeLoadBalancerCon if (protocol := _dict.get('protocol')) is not None: args['protocol'] = protocol else: - raise ValueError('Required property \'protocol\' not present in LoadBalancerListenerPrototypeLoadBalancerContext JSON') + raise ValueError( + 'Required property \'protocol\' not present in LoadBalancerListenerPrototypeLoadBalancerContext JSON' + ) return cls(**args) @classmethod @@ -65086,7 +65584,6 @@ class ProtocolEnum(str, Enum): UDP = 'udp' - class LoadBalancerListenerReference: """ LoadBalancerListenerReference. @@ -65904,7 +66401,6 @@ class AlgorithmEnum(str, Enum): ROUND_ROBIN = 'round_robin' WEIGHTED_ROUND_ROBIN = 'weighted_round_robin' - class ProtocolEnum(str, Enum): """ The protocol for this load balancer pool. @@ -65918,7 +66414,6 @@ class ProtocolEnum(str, Enum): TCP = 'tcp' UDP = 'udp' - class ProvisioningStatusEnum(str, Enum): """ The provisioning status of this pool @@ -65933,7 +66428,6 @@ class ProvisioningStatusEnum(str, Enum): FAILED = 'failed' UPDATE_PENDING = 'update_pending' - class ProxyProtocolEnum(str, Enum): """ The PROXY protocol setting for this pool: @@ -65950,7 +66444,6 @@ class ProxyProtocolEnum(str, Enum): V2 = 'v2' - class LoadBalancerPoolCollection: """ LoadBalancerPoolCollection. @@ -66147,7 +66640,6 @@ class TypeEnum(str, Enum): TCP = 'tcp' - class LoadBalancerPoolHealthMonitorPatch: """ LoadBalancerPoolHealthMonitorPatch. @@ -66277,7 +66769,6 @@ class TypeEnum(str, Enum): TCP = 'tcp' - class LoadBalancerPoolHealthMonitorPrototype: """ LoadBalancerPoolHealthMonitorPrototype. @@ -66340,7 +66831,9 @@ def from_dict(cls, _dict: Dict) -> 'LoadBalancerPoolHealthMonitorPrototype': if (max_retries := _dict.get('max_retries')) is not None: args['max_retries'] = max_retries else: - raise ValueError('Required property \'max_retries\' not present in LoadBalancerPoolHealthMonitorPrototype JSON') + raise ValueError( + 'Required property \'max_retries\' not present in LoadBalancerPoolHealthMonitorPrototype JSON' + ) if (port := _dict.get('port')) is not None: args['port'] = port if (timeout := _dict.get('timeout')) is not None: @@ -66405,7 +66898,6 @@ class TypeEnum(str, Enum): TCP = 'tcp' - class LoadBalancerPoolIdentity: """ Identifies a load balancer pool by a unique property. @@ -66420,7 +66912,12 @@ def __init__( """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['LoadBalancerPoolIdentityLoadBalancerPoolIdentityById', 'LoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref']) + ", ".join( + [ + 'LoadBalancerPoolIdentityLoadBalancerPoolIdentityById', + 'LoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref', + ] + ) ) raise Exception(msg) @@ -66666,7 +67163,6 @@ class HealthEnum(str, Enum): OK = 'ok' UNKNOWN = 'unknown' - class ProvisioningStatusEnum(str, Enum): """ The provisioning status of this member @@ -66682,7 +67178,6 @@ class ProvisioningStatusEnum(str, Enum): UPDATE_PENDING = 'update_pending' - class LoadBalancerPoolMemberCollection: """ LoadBalancerPoolMemberCollection. @@ -67091,7 +67586,9 @@ def __init__( """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['LoadBalancerPoolMemberTargetPrototypeInstanceIdentity', 'LoadBalancerPoolMemberTargetPrototypeIP']) + ", ".join( + ['LoadBalancerPoolMemberTargetPrototypeInstanceIdentity', 'LoadBalancerPoolMemberTargetPrototypeIP'] + ) ) raise Exception(msg) @@ -67243,7 +67740,6 @@ class AlgorithmEnum(str, Enum): ROUND_ROBIN = 'round_robin' WEIGHTED_ROUND_ROBIN = 'weighted_round_robin' - class ProtocolEnum(str, Enum): """ The protocol for this load balancer pool. @@ -67260,7 +67756,6 @@ class ProtocolEnum(str, Enum): TCP = 'tcp' UDP = 'udp' - class ProxyProtocolEnum(str, Enum): """ The PROXY protocol setting for this pool: @@ -67275,7 +67770,6 @@ class ProxyProtocolEnum(str, Enum): V2 = 'v2' - class LoadBalancerPoolPrototype: """ LoadBalancerPoolPrototype. @@ -67453,7 +67947,6 @@ class AlgorithmEnum(str, Enum): ROUND_ROBIN = 'round_robin' WEIGHTED_ROUND_ROBIN = 'weighted_round_robin' - class ProtocolEnum(str, Enum): """ The protocol used for this load balancer pool. Load balancers in the `network` @@ -67467,7 +67960,6 @@ class ProtocolEnum(str, Enum): TCP = 'tcp' UDP = 'udp' - class ProxyProtocolEnum(str, Enum): """ The PROXY protocol setting for this pool: @@ -67482,7 +67974,6 @@ class ProxyProtocolEnum(str, Enum): V2 = 'v2' - class LoadBalancerPoolReference: """ LoadBalancerPoolReference. @@ -67666,7 +68157,6 @@ class TypeEnum(str, Enum): SOURCE_IP = 'source_ip' - class LoadBalancerPoolSessionPersistencePatch: """ The session persistence configuration. Specify `null` to remove any existing session @@ -67755,7 +68245,6 @@ class TypeEnum(str, Enum): SOURCE_IP = 'source_ip' - class LoadBalancerPoolSessionPersistencePrototype: """ LoadBalancerPoolSessionPersistencePrototype. @@ -67798,7 +68287,9 @@ def from_dict(cls, _dict: Dict) -> 'LoadBalancerPoolSessionPersistencePrototype' if (type := _dict.get('type')) is not None: args['type'] = type else: - raise ValueError('Required property \'type\' not present in LoadBalancerPoolSessionPersistencePrototype JSON') + raise ValueError( + 'Required property \'type\' not present in LoadBalancerPoolSessionPersistencePrototype JSON' + ) return cls(**args) @classmethod @@ -67845,7 +68336,6 @@ class TypeEnum(str, Enum): SOURCE_IP = 'source_ip' - class LoadBalancerProfile: """ LoadBalancerProfile. @@ -67957,10 +68447,14 @@ def from_dict(cls, _dict: Dict) -> 'LoadBalancerProfile': args['security_groups_supported'] = security_groups_supported else: raise ValueError('Required property \'security_groups_supported\' not present in LoadBalancerProfile JSON') - if (source_ip_session_persistence_supported := _dict.get('source_ip_session_persistence_supported')) is not None: + if ( + source_ip_session_persistence_supported := _dict.get('source_ip_session_persistence_supported') + ) is not None: args['source_ip_session_persistence_supported'] = source_ip_session_persistence_supported else: - raise ValueError('Required property \'source_ip_session_persistence_supported\' not present in LoadBalancerProfile JSON') + raise ValueError( + 'Required property \'source_ip_session_persistence_supported\' not present in LoadBalancerProfile JSON' + ) if (udp_supported := _dict.get('udp_supported')) is not None: args['udp_supported'] = udp_supported else: @@ -68011,11 +68505,16 @@ def to_dict(self) -> Dict: _dict['security_groups_supported'] = self.security_groups_supported else: _dict['security_groups_supported'] = self.security_groups_supported.to_dict() - if hasattr(self, 'source_ip_session_persistence_supported') and self.source_ip_session_persistence_supported is not None: + if ( + hasattr(self, 'source_ip_session_persistence_supported') + and self.source_ip_session_persistence_supported is not None + ): if isinstance(self.source_ip_session_persistence_supported, dict): _dict['source_ip_session_persistence_supported'] = self.source_ip_session_persistence_supported else: - _dict['source_ip_session_persistence_supported'] = self.source_ip_session_persistence_supported.to_dict() + _dict['source_ip_session_persistence_supported'] = ( + self.source_ip_session_persistence_supported.to_dict() + ) if hasattr(self, 'udp_supported') and self.udp_supported is not None: if isinstance(self.udp_supported, dict): _dict['udp_supported'] = self.udp_supported @@ -68053,7 +68552,6 @@ class FamilyEnum(str, Enum): NETWORK = 'network' - class LoadBalancerProfileAccessModes: """ LoadBalancerProfileAccessModes. @@ -68131,7 +68629,6 @@ class TypeEnum(str, Enum): ENUM = 'enum' - class ValuesEnum(str, Enum): """ The access mode for this load balancer: @@ -68148,7 +68645,6 @@ class ValuesEnum(str, Enum): PUBLIC = 'public' - class LoadBalancerProfileAvailability: """ LoadBalancerProfileAvailability. @@ -68318,7 +68814,12 @@ def __init__( """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['LoadBalancerProfileInstanceGroupsSupportedFixed', 'LoadBalancerProfileInstanceGroupsSupportedDependent']) + ", ".join( + [ + 'LoadBalancerProfileInstanceGroupsSupportedFixed', + 'LoadBalancerProfileInstanceGroupsSupportedDependent', + ] + ) ) raise Exception(msg) @@ -68401,7 +68902,6 @@ class TypeEnum(str, Enum): FIXED = 'fixed' - class LoadBalancerProfileReference: """ LoadBalancerProfileReference. @@ -68499,7 +68999,6 @@ class FamilyEnum(str, Enum): NETWORK = 'network' - class LoadBalancerProfileRouteModeSupported: """ LoadBalancerProfileRouteModeSupported. @@ -68533,7 +69032,12 @@ def __init__( """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['LoadBalancerProfileSecurityGroupsSupportedFixed', 'LoadBalancerProfileSecurityGroupsSupportedDependent']) + ", ".join( + [ + 'LoadBalancerProfileSecurityGroupsSupportedFixed', + 'LoadBalancerProfileSecurityGroupsSupportedDependent', + ] + ) ) raise Exception(msg) @@ -68552,7 +69056,12 @@ def __init__( """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['LoadBalancerProfileSourceIPSessionPersistenceSupportedFixed', 'LoadBalancerProfileSourceIPSessionPersistenceSupportedDependent']) + ", ".join( + [ + 'LoadBalancerProfileSourceIPSessionPersistenceSupportedFixed', + 'LoadBalancerProfileSourceIPSessionPersistenceSupportedDependent', + ] + ) ) raise Exception(msg) @@ -68700,7 +69209,6 @@ class ResourceTypeEnum(str, Enum): LOAD_BALANCER = 'load_balancer' - class LoadBalancerStatistics: """ LoadBalancerStatistics. @@ -68752,7 +69260,9 @@ def from_dict(cls, _dict: Dict) -> 'LoadBalancerStatistics': if (data_processed_this_month := _dict.get('data_processed_this_month')) is not None: args['data_processed_this_month'] = data_processed_this_month else: - raise ValueError('Required property \'data_processed_this_month\' not present in LoadBalancerStatistics JSON') + raise ValueError( + 'Required property \'data_processed_this_month\' not present in LoadBalancerStatistics JSON' + ) if (throughput := _dict.get('throughput')) is not None: args['throughput'] = throughput else: @@ -69359,7 +69869,13 @@ def __init__( is immediately before. If absent, this is the last rule. """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['NetworkACLRuleNetworkACLRuleProtocolTCPUDP', 'NetworkACLRuleNetworkACLRuleProtocolICMP', 'NetworkACLRuleNetworkACLRuleProtocolAll']) + ", ".join( + [ + 'NetworkACLRuleNetworkACLRuleProtocolTCPUDP', + 'NetworkACLRuleNetworkACLRuleProtocolICMP', + 'NetworkACLRuleNetworkACLRuleProtocolAll', + ] + ) ) raise Exception(msg) @@ -69370,7 +69886,13 @@ def from_dict(cls, _dict: Dict) -> 'NetworkACLRule': if disc_class != cls: return disc_class.from_dict(_dict) msg = "Cannot convert dictionary into an instance of base class 'NetworkACLRule'. The discriminator value should map to a valid subclass: {1}".format( - ", ".join(['NetworkACLRuleNetworkACLRuleProtocolTCPUDP', 'NetworkACLRuleNetworkACLRuleProtocolICMP', 'NetworkACLRuleNetworkACLRuleProtocolAll']) + ", ".join( + [ + 'NetworkACLRuleNetworkACLRuleProtocolTCPUDP', + 'NetworkACLRuleNetworkACLRuleProtocolICMP', + 'NetworkACLRuleNetworkACLRuleProtocolAll', + ] + ) ) raise Exception(msg) @@ -69406,7 +69928,6 @@ class ActionEnum(str, Enum): ALLOW = 'allow' DENY = 'deny' - class DirectionEnum(str, Enum): """ The direction of traffic to match. @@ -69415,7 +69936,6 @@ class DirectionEnum(str, Enum): INBOUND = 'inbound' OUTBOUND = 'outbound' - class IpVersionEnum(str, Enum): """ The IP version for this rule. @@ -69423,7 +69943,6 @@ class IpVersionEnum(str, Enum): IPV4 = 'ipv4' - class ProtocolEnum(str, Enum): """ The network protocol. @@ -69435,7 +69954,6 @@ class ProtocolEnum(str, Enum): UDP = 'udp' - class NetworkACLRuleBeforePatch: """ The rule to move this rule immediately before. @@ -69451,7 +69969,12 @@ def __init__( """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['NetworkACLRuleBeforePatchNetworkACLRuleIdentityById', 'NetworkACLRuleBeforePatchNetworkACLRuleIdentityByHref']) + ", ".join( + [ + 'NetworkACLRuleBeforePatchNetworkACLRuleIdentityById', + 'NetworkACLRuleBeforePatchNetworkACLRuleIdentityByHref', + ] + ) ) raise Exception(msg) @@ -69471,7 +69994,12 @@ def __init__( """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['NetworkACLRuleBeforePrototypeNetworkACLRuleIdentityById', 'NetworkACLRuleBeforePrototypeNetworkACLRuleIdentityByHref']) + ", ".join( + [ + 'NetworkACLRuleBeforePrototypeNetworkACLRuleIdentityById', + 'NetworkACLRuleBeforePrototypeNetworkACLRuleIdentityByHref', + ] + ) ) raise Exception(msg) @@ -69653,7 +70181,13 @@ def __init__( rule. """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['NetworkACLRuleItemNetworkACLRuleProtocolTCPUDP', 'NetworkACLRuleItemNetworkACLRuleProtocolICMP', 'NetworkACLRuleItemNetworkACLRuleProtocolAll']) + ", ".join( + [ + 'NetworkACLRuleItemNetworkACLRuleProtocolTCPUDP', + 'NetworkACLRuleItemNetworkACLRuleProtocolICMP', + 'NetworkACLRuleItemNetworkACLRuleProtocolAll', + ] + ) ) raise Exception(msg) @@ -69664,7 +70198,13 @@ def from_dict(cls, _dict: Dict) -> 'NetworkACLRuleItem': if disc_class != cls: return disc_class.from_dict(_dict) msg = "Cannot convert dictionary into an instance of base class 'NetworkACLRuleItem'. The discriminator value should map to a valid subclass: {1}".format( - ", ".join(['NetworkACLRuleItemNetworkACLRuleProtocolTCPUDP', 'NetworkACLRuleItemNetworkACLRuleProtocolICMP', 'NetworkACLRuleItemNetworkACLRuleProtocolAll']) + ", ".join( + [ + 'NetworkACLRuleItemNetworkACLRuleProtocolTCPUDP', + 'NetworkACLRuleItemNetworkACLRuleProtocolICMP', + 'NetworkACLRuleItemNetworkACLRuleProtocolAll', + ] + ) ) raise Exception(msg) @@ -69700,7 +70240,6 @@ class ActionEnum(str, Enum): ALLOW = 'allow' DENY = 'deny' - class DirectionEnum(str, Enum): """ The direction of traffic to match. @@ -69709,7 +70248,6 @@ class DirectionEnum(str, Enum): INBOUND = 'inbound' OUTBOUND = 'outbound' - class IpVersionEnum(str, Enum): """ The IP version for this rule. @@ -69717,7 +70255,6 @@ class IpVersionEnum(str, Enum): IPV4 = 'ipv4' - class ProtocolEnum(str, Enum): """ The network protocol. @@ -69729,7 +70266,6 @@ class ProtocolEnum(str, Enum): UDP = 'udp' - class NetworkACLRulePatch: """ NetworkACLRulePatch. @@ -69920,7 +70456,6 @@ class ActionEnum(str, Enum): ALLOW = 'allow' DENY = 'deny' - class DirectionEnum(str, Enum): """ The direction of traffic to match. @@ -69929,7 +70464,6 @@ class DirectionEnum(str, Enum): INBOUND = 'inbound' OUTBOUND = 'outbound' - class ProtocolEnum(str, Enum): """ The network protocol. @@ -69941,7 +70475,6 @@ class ProtocolEnum(str, Enum): UDP = 'udp' - class NetworkACLRulePrototype: """ NetworkACLRulePrototype. @@ -69993,7 +70526,13 @@ def __init__( name will be a hyphenated list of randomly-selected words. """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['NetworkACLRulePrototypeNetworkACLRuleProtocolTCPUDPPrototype', 'NetworkACLRulePrototypeNetworkACLRuleProtocolICMPPrototype', 'NetworkACLRulePrototypeNetworkACLRuleProtocolAllPrototype']) + ", ".join( + [ + 'NetworkACLRulePrototypeNetworkACLRuleProtocolTCPUDPPrototype', + 'NetworkACLRulePrototypeNetworkACLRuleProtocolICMPPrototype', + 'NetworkACLRulePrototypeNetworkACLRuleProtocolAllPrototype', + ] + ) ) raise Exception(msg) @@ -70004,7 +70543,13 @@ def from_dict(cls, _dict: Dict) -> 'NetworkACLRulePrototype': if disc_class != cls: return disc_class.from_dict(_dict) msg = "Cannot convert dictionary into an instance of base class 'NetworkACLRulePrototype'. The discriminator value should map to a valid subclass: {1}".format( - ", ".join(['NetworkACLRulePrototypeNetworkACLRuleProtocolTCPUDPPrototype', 'NetworkACLRulePrototypeNetworkACLRuleProtocolICMPPrototype', 'NetworkACLRulePrototypeNetworkACLRuleProtocolAllPrototype']) + ", ".join( + [ + 'NetworkACLRulePrototypeNetworkACLRuleProtocolTCPUDPPrototype', + 'NetworkACLRulePrototypeNetworkACLRuleProtocolICMPPrototype', + 'NetworkACLRulePrototypeNetworkACLRuleProtocolAllPrototype', + ] + ) ) raise Exception(msg) @@ -70040,7 +70585,6 @@ class ActionEnum(str, Enum): ALLOW = 'allow' DENY = 'deny' - class DirectionEnum(str, Enum): """ The direction of traffic to match. @@ -70049,7 +70593,6 @@ class DirectionEnum(str, Enum): INBOUND = 'inbound' OUTBOUND = 'outbound' - class IpVersionEnum(str, Enum): """ The IP version for this rule. @@ -70057,7 +70600,6 @@ class IpVersionEnum(str, Enum): IPV4 = 'ipv4' - class ProtocolEnum(str, Enum): """ The network protocol. @@ -70069,7 +70611,6 @@ class ProtocolEnum(str, Enum): UDP = 'udp' - class NetworkACLRulePrototypeNetworkACLContext: """ NetworkACLRulePrototypeNetworkACLContext. @@ -70114,7 +70655,13 @@ def __init__( name will be a hyphenated list of randomly-selected words. """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolTCPUDPPrototype', 'NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolICMPPrototype', 'NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolAllPrototype']) + ", ".join( + [ + 'NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolTCPUDPPrototype', + 'NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolICMPPrototype', + 'NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolAllPrototype', + ] + ) ) raise Exception(msg) @@ -70125,7 +70672,13 @@ def from_dict(cls, _dict: Dict) -> 'NetworkACLRulePrototypeNetworkACLContext': if disc_class != cls: return disc_class.from_dict(_dict) msg = "Cannot convert dictionary into an instance of base class 'NetworkACLRulePrototypeNetworkACLContext'. The discriminator value should map to a valid subclass: {1}".format( - ", ".join(['NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolTCPUDPPrototype', 'NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolICMPPrototype', 'NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolAllPrototype']) + ", ".join( + [ + 'NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolTCPUDPPrototype', + 'NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolICMPPrototype', + 'NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolAllPrototype', + ] + ) ) raise Exception(msg) @@ -70143,7 +70696,9 @@ def _get_class_by_discriminator(cls, _dict: Dict) -> object: mapping['udp'] = 'NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolTCPUDPPrototype' disc_value = _dict.get('protocol') if disc_value is None: - raise ValueError('Discriminator property \'protocol\' not found in NetworkACLRulePrototypeNetworkACLContext JSON') + raise ValueError( + 'Discriminator property \'protocol\' not found in NetworkACLRulePrototypeNetworkACLContext JSON' + ) class_name = mapping.get(disc_value, disc_value) try: disc_class = getattr(sys.modules[__name__], class_name) @@ -70161,7 +70716,6 @@ class ActionEnum(str, Enum): ALLOW = 'allow' DENY = 'deny' - class DirectionEnum(str, Enum): """ The direction of traffic to match. @@ -70170,7 +70724,6 @@ class DirectionEnum(str, Enum): INBOUND = 'inbound' OUTBOUND = 'outbound' - class IpVersionEnum(str, Enum): """ The IP version for this rule. @@ -70178,7 +70731,6 @@ class IpVersionEnum(str, Enum): IPV4 = 'ipv4' - class ProtocolEnum(str, Enum): """ The network protocol. @@ -70190,7 +70742,6 @@ class ProtocolEnum(str, Enum): UDP = 'udp' - class NetworkACLRuleReference: """ NetworkACLRuleReference. @@ -70601,7 +71152,6 @@ class ResourceTypeEnum(str, Enum): NETWORK_INTERFACE = 'network_interface' - class StatusEnum(str, Enum): """ The status of the instance network interface. @@ -70616,7 +71166,6 @@ class StatusEnum(str, Enum): FAILED = 'failed' PENDING = 'pending' - class TypeEnum(str, Enum): """ The instance network interface type. @@ -70631,7 +71180,6 @@ class TypeEnum(str, Enum): SECONDARY = 'secondary' - class NetworkInterfaceBareMetalServerContextReference: """ NetworkInterfaceBareMetalServerContextReference. @@ -70711,27 +71259,39 @@ def from_dict(cls, _dict: Dict) -> 'NetworkInterfaceBareMetalServerContextRefere if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in NetworkInterfaceBareMetalServerContextReference JSON') + raise ValueError( + 'Required property \'href\' not present in NetworkInterfaceBareMetalServerContextReference JSON' + ) if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in NetworkInterfaceBareMetalServerContextReference JSON') + raise ValueError( + 'Required property \'id\' not present in NetworkInterfaceBareMetalServerContextReference JSON' + ) if (name := _dict.get('name')) is not None: args['name'] = name else: - raise ValueError('Required property \'name\' not present in NetworkInterfaceBareMetalServerContextReference JSON') + raise ValueError( + 'Required property \'name\' not present in NetworkInterfaceBareMetalServerContextReference JSON' + ) if (primary_ip := _dict.get('primary_ip')) is not None: args['primary_ip'] = ReservedIPReference.from_dict(primary_ip) else: - raise ValueError('Required property \'primary_ip\' not present in NetworkInterfaceBareMetalServerContextReference JSON') + raise ValueError( + 'Required property \'primary_ip\' not present in NetworkInterfaceBareMetalServerContextReference JSON' + ) if (resource_type := _dict.get('resource_type')) is not None: args['resource_type'] = resource_type else: - raise ValueError('Required property \'resource_type\' not present in NetworkInterfaceBareMetalServerContextReference JSON') + raise ValueError( + 'Required property \'resource_type\' not present in NetworkInterfaceBareMetalServerContextReference JSON' + ) if (subnet := _dict.get('subnet')) is not None: args['subnet'] = SubnetReference.from_dict(subnet) else: - raise ValueError('Required property \'subnet\' not present in NetworkInterfaceBareMetalServerContextReference JSON') + raise ValueError( + 'Required property \'subnet\' not present in NetworkInterfaceBareMetalServerContextReference JSON' + ) return cls(**args) @classmethod @@ -70793,7 +71353,6 @@ class ResourceTypeEnum(str, Enum): NETWORK_INTERFACE = 'network_interface' - class NetworkInterfaceIPPrototype: """ NetworkInterfaceIPPrototype. @@ -70808,7 +71367,12 @@ def __init__( """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['NetworkInterfaceIPPrototypeReservedIPIdentity', 'NetworkInterfaceIPPrototypeReservedIPPrototypeNetworkInterfaceContext']) + ", ".join( + [ + 'NetworkInterfaceIPPrototypeReservedIPIdentity', + 'NetworkInterfaceIPPrototypeReservedIPPrototypeNetworkInterfaceContext', + ] + ) ) raise Exception(msg) @@ -70900,15 +71464,21 @@ def from_dict(cls, _dict: Dict) -> 'NetworkInterfaceInstanceContextReference': if (primary_ip := _dict.get('primary_ip')) is not None: args['primary_ip'] = ReservedIPReference.from_dict(primary_ip) else: - raise ValueError('Required property \'primary_ip\' not present in NetworkInterfaceInstanceContextReference JSON') + raise ValueError( + 'Required property \'primary_ip\' not present in NetworkInterfaceInstanceContextReference JSON' + ) if (resource_type := _dict.get('resource_type')) is not None: args['resource_type'] = resource_type else: - raise ValueError('Required property \'resource_type\' not present in NetworkInterfaceInstanceContextReference JSON') + raise ValueError( + 'Required property \'resource_type\' not present in NetworkInterfaceInstanceContextReference JSON' + ) if (subnet := _dict.get('subnet')) is not None: args['subnet'] = SubnetReference.from_dict(subnet) else: - raise ValueError('Required property \'subnet\' not present in NetworkInterfaceInstanceContextReference JSON') + raise ValueError( + 'Required property \'subnet\' not present in NetworkInterfaceInstanceContextReference JSON' + ) return cls(**args) @classmethod @@ -70970,7 +71540,6 @@ class ResourceTypeEnum(str, Enum): NETWORK_INTERFACE = 'network_interface' - class NetworkInterfacePatch: """ NetworkInterfacePatch. @@ -71225,7 +71794,9 @@ def from_dict(cls, _dict: Dict) -> 'NetworkInterfaceUnpaginatedCollection': if (network_interfaces := _dict.get('network_interfaces')) is not None: args['network_interfaces'] = [NetworkInterface.from_dict(v) for v in network_interfaces] else: - raise ValueError('Required property \'network_interfaces\' not present in NetworkInterfaceUnpaginatedCollection JSON') + raise ValueError( + 'Required property \'network_interfaces\' not present in NetworkInterfaceUnpaginatedCollection JSON' + ) return cls(**args) @classmethod @@ -71451,7 +72022,6 @@ class UserDataFormatEnum(str, Enum): IPXE = 'ipxe' - class OperatingSystemCollection: """ OperatingSystemCollection. @@ -71817,7 +72387,6 @@ class LifecycleStateEnum(str, Enum): UPDATING = 'updating' WAITING = 'waiting' - class ResourceTypeEnum(str, Enum): """ The resource type. @@ -71825,7 +72394,6 @@ class ResourceTypeEnum(str, Enum): PLACEMENT_GROUP = 'placement_group' - class StrategyEnum(str, Enum): """ The strategy for this placement group: @@ -71840,7 +72408,6 @@ class StrategyEnum(str, Enum): POWER_SPREAD = 'power_spread' - class PlacementGroupCollection: """ PlacementGroupCollection. @@ -72172,19 +72739,29 @@ def from_dict(cls, _dict: Dict) -> 'PrivatePathServiceGateway': if (default_access_policy := _dict.get('default_access_policy')) is not None: args['default_access_policy'] = default_access_policy else: - raise ValueError('Required property \'default_access_policy\' not present in PrivatePathServiceGateway JSON') + raise ValueError( + 'Required property \'default_access_policy\' not present in PrivatePathServiceGateway JSON' + ) if (endpoint_gateway_binding_auto_delete := _dict.get('endpoint_gateway_binding_auto_delete')) is not None: args['endpoint_gateway_binding_auto_delete'] = endpoint_gateway_binding_auto_delete else: - raise ValueError('Required property \'endpoint_gateway_binding_auto_delete\' not present in PrivatePathServiceGateway JSON') - if (endpoint_gateway_binding_auto_delete_timeout := _dict.get('endpoint_gateway_binding_auto_delete_timeout')) is not None: + raise ValueError( + 'Required property \'endpoint_gateway_binding_auto_delete\' not present in PrivatePathServiceGateway JSON' + ) + if ( + endpoint_gateway_binding_auto_delete_timeout := _dict.get('endpoint_gateway_binding_auto_delete_timeout') + ) is not None: args['endpoint_gateway_binding_auto_delete_timeout'] = endpoint_gateway_binding_auto_delete_timeout else: - raise ValueError('Required property \'endpoint_gateway_binding_auto_delete_timeout\' not present in PrivatePathServiceGateway JSON') + raise ValueError( + 'Required property \'endpoint_gateway_binding_auto_delete_timeout\' not present in PrivatePathServiceGateway JSON' + ) if (endpoint_gateway_count := _dict.get('endpoint_gateway_count')) is not None: args['endpoint_gateway_count'] = endpoint_gateway_count else: - raise ValueError('Required property \'endpoint_gateway_count\' not present in PrivatePathServiceGateway JSON') + raise ValueError( + 'Required property \'endpoint_gateway_count\' not present in PrivatePathServiceGateway JSON' + ) if (href := _dict.get('href')) is not None: args['href'] = href else: @@ -72245,9 +72822,15 @@ def to_dict(self) -> Dict: _dict['crn'] = self.crn if hasattr(self, 'default_access_policy') and self.default_access_policy is not None: _dict['default_access_policy'] = self.default_access_policy - if hasattr(self, 'endpoint_gateway_binding_auto_delete') and self.endpoint_gateway_binding_auto_delete is not None: + if ( + hasattr(self, 'endpoint_gateway_binding_auto_delete') + and self.endpoint_gateway_binding_auto_delete is not None + ): _dict['endpoint_gateway_binding_auto_delete'] = self.endpoint_gateway_binding_auto_delete - if hasattr(self, 'endpoint_gateway_binding_auto_delete_timeout') and self.endpoint_gateway_binding_auto_delete_timeout is not None: + if ( + hasattr(self, 'endpoint_gateway_binding_auto_delete_timeout') + and self.endpoint_gateway_binding_auto_delete_timeout is not None + ): _dict['endpoint_gateway_binding_auto_delete_timeout'] = self.endpoint_gateway_binding_auto_delete_timeout if hasattr(self, 'endpoint_gateway_count') and self.endpoint_gateway_count is not None: _dict['endpoint_gateway_count'] = self.endpoint_gateway_count @@ -72311,7 +72894,6 @@ class DefaultAccessPolicyEnum(str, Enum): PERMIT = 'permit' REVIEW = 'review' - class LifecycleStateEnum(str, Enum): """ The lifecycle state of the private path service gateway. @@ -72325,7 +72907,6 @@ class LifecycleStateEnum(str, Enum): UPDATING = 'updating' WAITING = 'waiting' - class ResourceTypeEnum(str, Enum): """ The resource type. @@ -72334,7 +72915,6 @@ class ResourceTypeEnum(str, Enum): PRIVATE_PATH_SERVICE_GATEWAY = 'private_path_service_gateway' - class PrivatePathServiceGatewayAccountPolicy: """ PrivatePathServiceGatewayAccountPolicy. @@ -72394,7 +72974,9 @@ def from_dict(cls, _dict: Dict) -> 'PrivatePathServiceGatewayAccountPolicy': if (access_policy := _dict.get('access_policy')) is not None: args['access_policy'] = access_policy else: - raise ValueError('Required property \'access_policy\' not present in PrivatePathServiceGatewayAccountPolicy JSON') + raise ValueError( + 'Required property \'access_policy\' not present in PrivatePathServiceGatewayAccountPolicy JSON' + ) if (account := _dict.get('account')) is not None: args['account'] = AccountReference.from_dict(account) else: @@ -72402,7 +72984,9 @@ def from_dict(cls, _dict: Dict) -> 'PrivatePathServiceGatewayAccountPolicy': if (created_at := _dict.get('created_at')) is not None: args['created_at'] = string_to_datetime(created_at) else: - raise ValueError('Required property \'created_at\' not present in PrivatePathServiceGatewayAccountPolicy JSON') + raise ValueError( + 'Required property \'created_at\' not present in PrivatePathServiceGatewayAccountPolicy JSON' + ) if (href := _dict.get('href')) is not None: args['href'] = href else: @@ -72414,7 +72998,9 @@ def from_dict(cls, _dict: Dict) -> 'PrivatePathServiceGatewayAccountPolicy': if (resource_type := _dict.get('resource_type')) is not None: args['resource_type'] = resource_type else: - raise ValueError('Required property \'resource_type\' not present in PrivatePathServiceGatewayAccountPolicy JSON') + raise ValueError( + 'Required property \'resource_type\' not present in PrivatePathServiceGatewayAccountPolicy JSON' + ) return cls(**args) @classmethod @@ -72475,7 +73061,6 @@ class AccessPolicyEnum(str, Enum): PERMIT = 'permit' REVIEW = 'review' - class ResourceTypeEnum(str, Enum): """ The resource type. @@ -72484,7 +73069,6 @@ class ResourceTypeEnum(str, Enum): PRIVATE_PATH_SERVICE_GATEWAY_ACCOUNT_POLICY = 'private_path_service_gateway_account_policy' - class PrivatePathServiceGatewayAccountPolicyCollection: """ PrivatePathServiceGatewayAccountPolicyCollection. @@ -72535,21 +73119,29 @@ def from_dict(cls, _dict: Dict) -> 'PrivatePathServiceGatewayAccountPolicyCollec if (account_policies := _dict.get('account_policies')) is not None: args['account_policies'] = [PrivatePathServiceGatewayAccountPolicy.from_dict(v) for v in account_policies] else: - raise ValueError('Required property \'account_policies\' not present in PrivatePathServiceGatewayAccountPolicyCollection JSON') + raise ValueError( + 'Required property \'account_policies\' not present in PrivatePathServiceGatewayAccountPolicyCollection JSON' + ) if (first := _dict.get('first')) is not None: args['first'] = PageLink.from_dict(first) else: - raise ValueError('Required property \'first\' not present in PrivatePathServiceGatewayAccountPolicyCollection JSON') + raise ValueError( + 'Required property \'first\' not present in PrivatePathServiceGatewayAccountPolicyCollection JSON' + ) if (limit := _dict.get('limit')) is not None: args['limit'] = limit else: - raise ValueError('Required property \'limit\' not present in PrivatePathServiceGatewayAccountPolicyCollection JSON') + raise ValueError( + 'Required property \'limit\' not present in PrivatePathServiceGatewayAccountPolicyCollection JSON' + ) if (next := _dict.get('next')) is not None: args['next'] = PageLink.from_dict(next) if (total_count := _dict.get('total_count')) is not None: args['total_count'] = total_count else: - raise ValueError('Required property \'total_count\' not present in PrivatePathServiceGatewayAccountPolicyCollection JSON') + raise ValueError( + 'Required property \'total_count\' not present in PrivatePathServiceGatewayAccountPolicyCollection JSON' + ) return cls(**args) @classmethod @@ -72707,7 +73299,6 @@ class AccessPolicyEnum(str, Enum): REVIEW = 'review' - class PrivatePathServiceGatewayCollection: """ PrivatePathServiceGatewayCollection. @@ -72766,13 +73357,19 @@ def from_dict(cls, _dict: Dict) -> 'PrivatePathServiceGatewayCollection': if (next := _dict.get('next')) is not None: args['next'] = PageLink.from_dict(next) if (private_path_service_gateways := _dict.get('private_path_service_gateways')) is not None: - args['private_path_service_gateways'] = [PrivatePathServiceGateway.from_dict(v) for v in private_path_service_gateways] + args['private_path_service_gateways'] = [ + PrivatePathServiceGateway.from_dict(v) for v in private_path_service_gateways + ] else: - raise ValueError('Required property \'private_path_service_gateways\' not present in PrivatePathServiceGatewayCollection JSON') + raise ValueError( + 'Required property \'private_path_service_gateways\' not present in PrivatePathServiceGatewayCollection JSON' + ) if (total_count := _dict.get('total_count')) is not None: args['total_count'] = total_count else: - raise ValueError('Required property \'total_count\' not present in PrivatePathServiceGatewayCollection JSON') + raise ValueError( + 'Required property \'total_count\' not present in PrivatePathServiceGatewayCollection JSON' + ) return cls(**args) @classmethod @@ -72914,33 +73511,47 @@ def from_dict(cls, _dict: Dict) -> 'PrivatePathServiceGatewayEndpointGatewayBind if (account := _dict.get('account')) is not None: args['account'] = AccountReference.from_dict(account) else: - raise ValueError('Required property \'account\' not present in PrivatePathServiceGatewayEndpointGatewayBinding JSON') + raise ValueError( + 'Required property \'account\' not present in PrivatePathServiceGatewayEndpointGatewayBinding JSON' + ) if (created_at := _dict.get('created_at')) is not None: args['created_at'] = string_to_datetime(created_at) else: - raise ValueError('Required property \'created_at\' not present in PrivatePathServiceGatewayEndpointGatewayBinding JSON') + raise ValueError( + 'Required property \'created_at\' not present in PrivatePathServiceGatewayEndpointGatewayBinding JSON' + ) if (expiration_at := _dict.get('expiration_at')) is not None: args['expiration_at'] = string_to_datetime(expiration_at) if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in PrivatePathServiceGatewayEndpointGatewayBinding JSON') + raise ValueError( + 'Required property \'href\' not present in PrivatePathServiceGatewayEndpointGatewayBinding JSON' + ) if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in PrivatePathServiceGatewayEndpointGatewayBinding JSON') + raise ValueError( + 'Required property \'id\' not present in PrivatePathServiceGatewayEndpointGatewayBinding JSON' + ) if (lifecycle_state := _dict.get('lifecycle_state')) is not None: args['lifecycle_state'] = lifecycle_state else: - raise ValueError('Required property \'lifecycle_state\' not present in PrivatePathServiceGatewayEndpointGatewayBinding JSON') + raise ValueError( + 'Required property \'lifecycle_state\' not present in PrivatePathServiceGatewayEndpointGatewayBinding JSON' + ) if (resource_type := _dict.get('resource_type')) is not None: args['resource_type'] = resource_type else: - raise ValueError('Required property \'resource_type\' not present in PrivatePathServiceGatewayEndpointGatewayBinding JSON') + raise ValueError( + 'Required property \'resource_type\' not present in PrivatePathServiceGatewayEndpointGatewayBinding JSON' + ) if (status := _dict.get('status')) is not None: args['status'] = status else: - raise ValueError('Required property \'status\' not present in PrivatePathServiceGatewayEndpointGatewayBinding JSON') + raise ValueError( + 'Required property \'status\' not present in PrivatePathServiceGatewayEndpointGatewayBinding JSON' + ) return cls(**args) @classmethod @@ -73003,7 +73614,6 @@ class LifecycleStateEnum(str, Enum): UPDATING = 'updating' WAITING = 'waiting' - class ResourceTypeEnum(str, Enum): """ The resource type. @@ -73011,7 +73621,6 @@ class ResourceTypeEnum(str, Enum): PRIVATE_PATH_SERVICE_GATEWAY_ENDPOINT_GATEWAY_BINDING = 'private_path_service_gateway_endpoint_gateway_binding' - class StatusEnum(str, Enum): """ The status of the endpoint gateway binding: @@ -73034,7 +73643,6 @@ class StatusEnum(str, Enum): PERMITTED = 'permitted' - class PrivatePathServiceGatewayEndpointGatewayBindingCollection: """ PrivatePathServiceGatewayEndpointGatewayBindingCollection. @@ -73085,23 +73693,33 @@ def from_dict(cls, _dict: Dict) -> 'PrivatePathServiceGatewayEndpointGatewayBind """Initialize a PrivatePathServiceGatewayEndpointGatewayBindingCollection object from a json dictionary.""" args = {} if (endpoint_gateway_bindings := _dict.get('endpoint_gateway_bindings')) is not None: - args['endpoint_gateway_bindings'] = [PrivatePathServiceGatewayEndpointGatewayBinding.from_dict(v) for v in endpoint_gateway_bindings] + args['endpoint_gateway_bindings'] = [ + PrivatePathServiceGatewayEndpointGatewayBinding.from_dict(v) for v in endpoint_gateway_bindings + ] else: - raise ValueError('Required property \'endpoint_gateway_bindings\' not present in PrivatePathServiceGatewayEndpointGatewayBindingCollection JSON') + raise ValueError( + 'Required property \'endpoint_gateway_bindings\' not present in PrivatePathServiceGatewayEndpointGatewayBindingCollection JSON' + ) if (first := _dict.get('first')) is not None: args['first'] = PageLink.from_dict(first) else: - raise ValueError('Required property \'first\' not present in PrivatePathServiceGatewayEndpointGatewayBindingCollection JSON') + raise ValueError( + 'Required property \'first\' not present in PrivatePathServiceGatewayEndpointGatewayBindingCollection JSON' + ) if (limit := _dict.get('limit')) is not None: args['limit'] = limit else: - raise ValueError('Required property \'limit\' not present in PrivatePathServiceGatewayEndpointGatewayBindingCollection JSON') + raise ValueError( + 'Required property \'limit\' not present in PrivatePathServiceGatewayEndpointGatewayBindingCollection JSON' + ) if (next := _dict.get('next')) is not None: args['next'] = PageLink.from_dict(next) if (total_count := _dict.get('total_count')) is not None: args['total_count'] = total_count else: - raise ValueError('Required property \'total_count\' not present in PrivatePathServiceGatewayEndpointGatewayBindingCollection JSON') + raise ValueError( + 'Required property \'total_count\' not present in PrivatePathServiceGatewayEndpointGatewayBindingCollection JSON' + ) return cls(**args) @classmethod @@ -73277,7 +73895,6 @@ class DefaultAccessPolicyEnum(str, Enum): REVIEW = 'review' - class PrivatePathServiceGatewayRemote: """ If present, this property indicates that the resource associated with this reference @@ -73544,7 +74161,6 @@ class ResourceTypeEnum(str, Enum): PUBLIC_GATEWAY = 'public_gateway' - class StatusEnum(str, Enum): """ The status of this public gateway. @@ -73556,7 +74172,6 @@ class StatusEnum(str, Enum): PENDING = 'pending' - class PublicGatewayCollection: """ PublicGatewayCollection. @@ -73687,7 +74302,12 @@ def __init__( """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['PublicGatewayFloatingIPPrototypeFloatingIPIdentity', 'PublicGatewayFloatingIPPrototypeFloatingIPPrototypeTargetContext']) + ", ".join( + [ + 'PublicGatewayFloatingIPPrototypeFloatingIPIdentity', + 'PublicGatewayFloatingIPPrototypeFloatingIPPrototypeTargetContext', + ] + ) ) raise Exception(msg) @@ -73823,7 +74443,13 @@ def __init__( """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['PublicGatewayIdentityPublicGatewayIdentityById', 'PublicGatewayIdentityPublicGatewayIdentityByCRN', 'PublicGatewayIdentityPublicGatewayIdentityByHref']) + ", ".join( + [ + 'PublicGatewayIdentityPublicGatewayIdentityById', + 'PublicGatewayIdentityPublicGatewayIdentityByCRN', + 'PublicGatewayIdentityPublicGatewayIdentityByHref', + ] + ) ) raise Exception(msg) @@ -74012,7 +74638,6 @@ class ResourceTypeEnum(str, Enum): PUBLIC_GATEWAY = 'public_gateway' - class Region: """ Region. @@ -74119,7 +74744,6 @@ class StatusEnum(str, Enum): UNAVAILABLE = 'unavailable' - class RegionCollection: """ RegionCollection. @@ -74534,7 +75158,6 @@ class AffinityPolicyEnum(str, Enum): RESTRICTED = 'restricted' - class LifecycleStateEnum(str, Enum): """ The lifecycle state of this reservation. @@ -74548,7 +75171,6 @@ class LifecycleStateEnum(str, Enum): UPDATING = 'updating' WAITING = 'waiting' - class ResourceTypeEnum(str, Enum): """ The resource type. @@ -74556,7 +75178,6 @@ class ResourceTypeEnum(str, Enum): RESERVATION = 'reservation' - class StatusEnum(str, Enum): """ The status of the reservation. @@ -74573,7 +75194,6 @@ class StatusEnum(str, Enum): INACTIVE = 'inactive' - class ReservationCapacity: """ The capacity configuration for this reservation @@ -74721,7 +75341,6 @@ class StatusEnum(str, Enum): UNALLOCATED = 'unallocated' - class ReservationCapacityPatch: """ The capacity reservation configuration to use. @@ -75080,7 +75699,6 @@ class ExpirationPolicyEnum(str, Enum): RENEW = 'renew' - class ReservationCommittedUsePatch: """ ReservationCommittedUsePatch. @@ -75179,7 +75797,6 @@ class ExpirationPolicyEnum(str, Enum): RENEW = 'renew' - class ReservationCommittedUsePrototype: """ ReservationCommittedUsePrototype. @@ -75276,7 +75893,6 @@ class ExpirationPolicyEnum(str, Enum): RENEW = 'renew' - class ReservationIdentity: """ Identifies a reservation by a unique property. @@ -75490,7 +76106,6 @@ class ResourceTypeEnum(str, Enum): INSTANCE_PROFILE = 'instance_profile' - class ReservationProfilePatch: """ The [profile](https://cloud.ibm.com/docs/vpc?topic=vpc-profiles) to use for this @@ -75565,7 +76180,6 @@ class ResourceTypeEnum(str, Enum): INSTANCE_PROFILE = 'instance_profile' - class ReservationProfilePrototype: """ The [profile](https://cloud.ibm.com/docs/vpc?topic=vpc-profiles) to use for this @@ -75643,7 +76257,6 @@ class ResourceTypeEnum(str, Enum): INSTANCE_PROFILE = 'instance_profile' - class ReservationReference: """ ReservationReference. @@ -75768,7 +76381,6 @@ class ResourceTypeEnum(str, Enum): RESERVATION = 'reservation' - class ReservationStatusReason: """ ReservationStatusReason. @@ -75866,7 +76478,6 @@ class CodeEnum(str, Enum): CANNOT_RENEW_UNSUPPORTED_PROFILE_TERM = 'cannot_renew_unsupported_profile_term' - class ReservedIP: """ ReservedIP. @@ -76061,7 +76672,6 @@ class LifecycleStateEnum(str, Enum): UPDATING = 'updating' WAITING = 'waiting' - class OwnerEnum(str, Enum): """ The owner of the reserved IP. @@ -76073,7 +76683,6 @@ class OwnerEnum(str, Enum): PROVIDER = 'provider' USER = 'user' - class ResourceTypeEnum(str, Enum): """ The resource type. @@ -76082,7 +76691,6 @@ class ResourceTypeEnum(str, Enum): SUBNET_RESERVED_IP = 'subnet_reserved_ip' - class ReservedIPCollection: """ ReservedIPCollection. @@ -76249,21 +76857,29 @@ def from_dict(cls, _dict: Dict) -> 'ReservedIPCollectionBareMetalServerNetworkIn if (first := _dict.get('first')) is not None: args['first'] = PageLink.from_dict(first) else: - raise ValueError('Required property \'first\' not present in ReservedIPCollectionBareMetalServerNetworkInterfaceContext JSON') + raise ValueError( + 'Required property \'first\' not present in ReservedIPCollectionBareMetalServerNetworkInterfaceContext JSON' + ) if (ips := _dict.get('ips')) is not None: args['ips'] = [ReservedIP.from_dict(v) for v in ips] else: - raise ValueError('Required property \'ips\' not present in ReservedIPCollectionBareMetalServerNetworkInterfaceContext JSON') + raise ValueError( + 'Required property \'ips\' not present in ReservedIPCollectionBareMetalServerNetworkInterfaceContext JSON' + ) if (limit := _dict.get('limit')) is not None: args['limit'] = limit else: - raise ValueError('Required property \'limit\' not present in ReservedIPCollectionBareMetalServerNetworkInterfaceContext JSON') + raise ValueError( + 'Required property \'limit\' not present in ReservedIPCollectionBareMetalServerNetworkInterfaceContext JSON' + ) if (next := _dict.get('next')) is not None: args['next'] = PageLink.from_dict(next) if (total_count := _dict.get('total_count')) is not None: args['total_count'] = total_count else: - raise ValueError('Required property \'total_count\' not present in ReservedIPCollectionBareMetalServerNetworkInterfaceContext JSON') + raise ValueError( + 'Required property \'total_count\' not present in ReservedIPCollectionBareMetalServerNetworkInterfaceContext JSON' + ) return cls(**args) @classmethod @@ -76367,7 +76983,9 @@ def from_dict(cls, _dict: Dict) -> 'ReservedIPCollectionEndpointGatewayContext': if (first := _dict.get('first')) is not None: args['first'] = PageLink.from_dict(first) else: - raise ValueError('Required property \'first\' not present in ReservedIPCollectionEndpointGatewayContext JSON') + raise ValueError( + 'Required property \'first\' not present in ReservedIPCollectionEndpointGatewayContext JSON' + ) if (ips := _dict.get('ips')) is not None: args['ips'] = [ReservedIP.from_dict(v) for v in ips] else: @@ -76375,13 +76993,17 @@ def from_dict(cls, _dict: Dict) -> 'ReservedIPCollectionEndpointGatewayContext': if (limit := _dict.get('limit')) is not None: args['limit'] = limit else: - raise ValueError('Required property \'limit\' not present in ReservedIPCollectionEndpointGatewayContext JSON') + raise ValueError( + 'Required property \'limit\' not present in ReservedIPCollectionEndpointGatewayContext JSON' + ) if (next := _dict.get('next')) is not None: args['next'] = PageLink.from_dict(next) if (total_count := _dict.get('total_count')) is not None: args['total_count'] = total_count else: - raise ValueError('Required property \'total_count\' not present in ReservedIPCollectionEndpointGatewayContext JSON') + raise ValueError( + 'Required property \'total_count\' not present in ReservedIPCollectionEndpointGatewayContext JSON' + ) return cls(**args) @classmethod @@ -76485,21 +77107,29 @@ def from_dict(cls, _dict: Dict) -> 'ReservedIPCollectionInstanceNetworkInterface if (first := _dict.get('first')) is not None: args['first'] = PageLink.from_dict(first) else: - raise ValueError('Required property \'first\' not present in ReservedIPCollectionInstanceNetworkInterfaceContext JSON') + raise ValueError( + 'Required property \'first\' not present in ReservedIPCollectionInstanceNetworkInterfaceContext JSON' + ) if (ips := _dict.get('ips')) is not None: args['ips'] = [ReservedIP.from_dict(v) for v in ips] else: - raise ValueError('Required property \'ips\' not present in ReservedIPCollectionInstanceNetworkInterfaceContext JSON') + raise ValueError( + 'Required property \'ips\' not present in ReservedIPCollectionInstanceNetworkInterfaceContext JSON' + ) if (limit := _dict.get('limit')) is not None: args['limit'] = limit else: - raise ValueError('Required property \'limit\' not present in ReservedIPCollectionInstanceNetworkInterfaceContext JSON') + raise ValueError( + 'Required property \'limit\' not present in ReservedIPCollectionInstanceNetworkInterfaceContext JSON' + ) if (next := _dict.get('next')) is not None: args['next'] = PageLink.from_dict(next) if (total_count := _dict.get('total_count')) is not None: args['total_count'] = total_count else: - raise ValueError('Required property \'total_count\' not present in ReservedIPCollectionInstanceNetworkInterfaceContext JSON') + raise ValueError( + 'Required property \'total_count\' not present in ReservedIPCollectionInstanceNetworkInterfaceContext JSON' + ) return cls(**args) @classmethod @@ -76603,21 +77233,29 @@ def from_dict(cls, _dict: Dict) -> 'ReservedIPCollectionVirtualNetworkInterfaceC if (first := _dict.get('first')) is not None: args['first'] = PageLink.from_dict(first) else: - raise ValueError('Required property \'first\' not present in ReservedIPCollectionVirtualNetworkInterfaceContext JSON') + raise ValueError( + 'Required property \'first\' not present in ReservedIPCollectionVirtualNetworkInterfaceContext JSON' + ) if (ips := _dict.get('ips')) is not None: args['ips'] = [ReservedIPReference.from_dict(v) for v in ips] else: - raise ValueError('Required property \'ips\' not present in ReservedIPCollectionVirtualNetworkInterfaceContext JSON') + raise ValueError( + 'Required property \'ips\' not present in ReservedIPCollectionVirtualNetworkInterfaceContext JSON' + ) if (limit := _dict.get('limit')) is not None: args['limit'] = limit else: - raise ValueError('Required property \'limit\' not present in ReservedIPCollectionVirtualNetworkInterfaceContext JSON') + raise ValueError( + 'Required property \'limit\' not present in ReservedIPCollectionVirtualNetworkInterfaceContext JSON' + ) if (next := _dict.get('next')) is not None: args['next'] = PageLink.from_dict(next) if (total_count := _dict.get('total_count')) is not None: args['total_count'] = total_count else: - raise ValueError('Required property \'total_count\' not present in ReservedIPCollectionVirtualNetworkInterfaceContext JSON') + raise ValueError( + 'Required property \'total_count\' not present in ReservedIPCollectionVirtualNetworkInterfaceContext JSON' + ) return cls(**args) @classmethod @@ -76879,7 +77517,6 @@ class ResourceTypeEnum(str, Enum): SUBNET_RESERVED_IP = 'subnet_reserved_ip' - class ReservedIPTarget: """ The target this reserved IP is bound to. @@ -76897,7 +77534,18 @@ def __init__( """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['ReservedIPTargetEndpointGatewayReference', 'ReservedIPTargetVirtualNetworkInterfaceReferenceReservedIPTargetContext', 'ReservedIPTargetNetworkInterfaceReferenceTargetContext', 'ReservedIPTargetBareMetalServerNetworkInterfaceReferenceTargetContext', 'ReservedIPTargetLoadBalancerReference', 'ReservedIPTargetVPNGatewayReference', 'ReservedIPTargetVPNServerReference', 'ReservedIPTargetGenericResourceReference']) + ", ".join( + [ + 'ReservedIPTargetEndpointGatewayReference', + 'ReservedIPTargetVirtualNetworkInterfaceReferenceReservedIPTargetContext', + 'ReservedIPTargetNetworkInterfaceReferenceTargetContext', + 'ReservedIPTargetBareMetalServerNetworkInterfaceReferenceTargetContext', + 'ReservedIPTargetLoadBalancerReference', + 'ReservedIPTargetVPNGatewayReference', + 'ReservedIPTargetVPNServerReference', + 'ReservedIPTargetGenericResourceReference', + ] + ) ) raise Exception(msg) @@ -76920,7 +77568,12 @@ def __init__( """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['ReservedIPTargetPrototypeEndpointGatewayIdentity', 'ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentity']) + ", ".join( + [ + 'ReservedIPTargetPrototypeEndpointGatewayIdentity', + 'ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentity', + ] + ) ) raise Exception(msg) @@ -77350,7 +78003,6 @@ class ActionEnum(str, Enum): DELIVER = 'deliver' DROP = 'drop' - class LifecycleStateEnum(str, Enum): """ The lifecycle state of the route. @@ -77364,7 +78016,6 @@ class LifecycleStateEnum(str, Enum): UPDATING = 'updating' WAITING = 'waiting' - class OriginEnum(str, Enum): """ The origin of this route: @@ -77379,7 +78030,6 @@ class OriginEnum(str, Enum): USER = 'user' - class RouteCollection: """ RouteCollection. @@ -78038,7 +78688,6 @@ class ActionEnum(str, Enum): DROP = 'drop' - class RouteReference: """ RouteReference. @@ -78483,7 +79132,6 @@ class AdvertiseRoutesToEnum(str, Enum): DIRECT_LINK = 'direct_link' TRANSIT_GATEWAY = 'transit_gateway' - class LifecycleStateEnum(str, Enum): """ The lifecycle state of the routing table. @@ -78497,7 +79145,6 @@ class LifecycleStateEnum(str, Enum): UPDATING = 'updating' WAITING = 'waiting' - class ResourceTypeEnum(str, Enum): """ The resource type. @@ -78506,7 +79153,6 @@ class ResourceTypeEnum(str, Enum): ROUTING_TABLE = 'routing_table' - class RoutingTableCollection: """ RoutingTableCollection. @@ -78892,7 +79538,6 @@ class AdvertiseRoutesToEnum(str, Enum): TRANSIT_GATEWAY = 'transit_gateway' - class RoutingTableReference: """ RoutingTableReference. @@ -79017,7 +79662,6 @@ class ResourceTypeEnum(str, Enum): ROUTING_TABLE = 'routing_table' - class SecurityGroup: """ SecurityGroup. @@ -79555,7 +80199,13 @@ def __init__( (or to any destination, for outbound rules). """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['SecurityGroupRuleSecurityGroupRuleProtocolAll', 'SecurityGroupRuleSecurityGroupRuleProtocolICMP', 'SecurityGroupRuleSecurityGroupRuleProtocolTCPUDP']) + ", ".join( + [ + 'SecurityGroupRuleSecurityGroupRuleProtocolAll', + 'SecurityGroupRuleSecurityGroupRuleProtocolICMP', + 'SecurityGroupRuleSecurityGroupRuleProtocolTCPUDP', + ] + ) ) raise Exception(msg) @@ -79566,7 +80216,13 @@ def from_dict(cls, _dict: Dict) -> 'SecurityGroupRule': if disc_class != cls: return disc_class.from_dict(_dict) msg = "Cannot convert dictionary into an instance of base class 'SecurityGroupRule'. The discriminator value should map to a valid subclass: {1}".format( - ", ".join(['SecurityGroupRuleSecurityGroupRuleProtocolAll', 'SecurityGroupRuleSecurityGroupRuleProtocolICMP', 'SecurityGroupRuleSecurityGroupRuleProtocolTCPUDP']) + ", ".join( + [ + 'SecurityGroupRuleSecurityGroupRuleProtocolAll', + 'SecurityGroupRuleSecurityGroupRuleProtocolICMP', + 'SecurityGroupRuleSecurityGroupRuleProtocolTCPUDP', + ] + ) ) raise Exception(msg) @@ -79602,7 +80258,6 @@ class DirectionEnum(str, Enum): INBOUND = 'inbound' OUTBOUND = 'outbound' - class IpVersionEnum(str, Enum): """ The IP version to allow. The format of `local.address`, `remote.address`, @@ -79614,7 +80269,6 @@ class IpVersionEnum(str, Enum): IPV4 = 'ipv4' - class ProtocolEnum(str, Enum): """ The protocol to allow. @@ -79629,7 +80283,6 @@ class ProtocolEnum(str, Enum): UDP = 'udp' - class SecurityGroupRuleCollection: """ SecurityGroupRuleCollection. @@ -79943,7 +80596,6 @@ class DirectionEnum(str, Enum): INBOUND = 'inbound' OUTBOUND = 'outbound' - class IpVersionEnum(str, Enum): """ The IP version to allow. The format of `local.address`, `remote.address`, @@ -79956,7 +80608,6 @@ class IpVersionEnum(str, Enum): IPV4 = 'ipv4' - class SecurityGroupRulePrototype: """ SecurityGroupRulePrototype. @@ -80022,7 +80673,13 @@ def __init__( (or to any destination, for outbound rules). """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['SecurityGroupRulePrototypeSecurityGroupRuleProtocolAll', 'SecurityGroupRulePrototypeSecurityGroupRuleProtocolICMP', 'SecurityGroupRulePrototypeSecurityGroupRuleProtocolTCPUDP']) + ", ".join( + [ + 'SecurityGroupRulePrototypeSecurityGroupRuleProtocolAll', + 'SecurityGroupRulePrototypeSecurityGroupRuleProtocolICMP', + 'SecurityGroupRulePrototypeSecurityGroupRuleProtocolTCPUDP', + ] + ) ) raise Exception(msg) @@ -80034,7 +80691,6 @@ class DirectionEnum(str, Enum): INBOUND = 'inbound' OUTBOUND = 'outbound' - class IpVersionEnum(str, Enum): """ The IP version to allow. The format of `local.address`, `remote.address`, @@ -80046,7 +80702,6 @@ class IpVersionEnum(str, Enum): IPV4 = 'ipv4' - class ProtocolEnum(str, Enum): """ The protocol to allow. @@ -80058,7 +80713,6 @@ class ProtocolEnum(str, Enum): UDP = 'udp' - class SecurityGroupRuleRemote: """ The remote IP addresses or security groups from which this rule allows traffic (or to @@ -80075,7 +80729,13 @@ def __init__( """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['SecurityGroupRuleRemoteIP', 'SecurityGroupRuleRemoteCIDR', 'SecurityGroupRuleRemoteSecurityGroupReference']) + ", ".join( + [ + 'SecurityGroupRuleRemoteIP', + 'SecurityGroupRuleRemoteCIDR', + 'SecurityGroupRuleRemoteSecurityGroupReference', + ] + ) ) raise Exception(msg) @@ -80097,7 +80757,13 @@ def __init__( """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['SecurityGroupRuleRemotePatchIP', 'SecurityGroupRuleRemotePatchCIDR', 'SecurityGroupRuleRemotePatchSecurityGroupIdentity']) + ", ".join( + [ + 'SecurityGroupRuleRemotePatchIP', + 'SecurityGroupRuleRemotePatchCIDR', + 'SecurityGroupRuleRemotePatchSecurityGroupIdentity', + ] + ) ) raise Exception(msg) @@ -80121,7 +80787,13 @@ def __init__( """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['SecurityGroupRuleRemotePrototypeIP', 'SecurityGroupRuleRemotePrototypeCIDR', 'SecurityGroupRuleRemotePrototypeSecurityGroupIdentity']) + ", ".join( + [ + 'SecurityGroupRuleRemotePrototypeIP', + 'SecurityGroupRuleRemotePrototypeCIDR', + 'SecurityGroupRuleRemotePrototypeSecurityGroupIdentity', + ] + ) ) raise Exception(msg) @@ -80260,7 +80932,16 @@ def __init__( """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['SecurityGroupTargetReferenceNetworkInterfaceReferenceTargetContext', 'SecurityGroupTargetReferenceBareMetalServerNetworkInterfaceReferenceTargetContext', 'SecurityGroupTargetReferenceLoadBalancerReference', 'SecurityGroupTargetReferenceEndpointGatewayReference', 'SecurityGroupTargetReferenceVPNServerReference', 'SecurityGroupTargetReferenceVirtualNetworkInterfaceReference']) + ", ".join( + [ + 'SecurityGroupTargetReferenceNetworkInterfaceReferenceTargetContext', + 'SecurityGroupTargetReferenceBareMetalServerNetworkInterfaceReferenceTargetContext', + 'SecurityGroupTargetReferenceLoadBalancerReference', + 'SecurityGroupTargetReferenceEndpointGatewayReference', + 'SecurityGroupTargetReferenceVPNServerReference', + 'SecurityGroupTargetReferenceVirtualNetworkInterfaceReference', + ] + ) ) raise Exception(msg) @@ -80612,7 +81293,9 @@ def from_dict(cls, _dict: Dict) -> 'Share': else: raise ValueError('Required property \'replication_status\' not present in Share JSON') if (replication_status_reasons := _dict.get('replication_status_reasons')) is not None: - args['replication_status_reasons'] = [ShareReplicationStatusReason.from_dict(v) for v in replication_status_reasons] + args['replication_status_reasons'] = [ + ShareReplicationStatusReason.from_dict(v) for v in replication_status_reasons + ] else: raise ValueError('Required property \'replication_status_reasons\' not present in Share JSON') if (resource_group := _dict.get('resource_group')) is not None: @@ -80794,7 +81477,6 @@ class AccessControlModeEnum(str, Enum): SECURITY_GROUP = 'security_group' VPC = 'vpc' - class AccessorBindingRoleEnum(str, Enum): """ The accessor binding role of this file share: @@ -80809,7 +81491,6 @@ class AccessorBindingRoleEnum(str, Enum): NONE = 'none' ORIGIN = 'origin' - class AllowedTransitEncryptionModesEnum(str, Enum): """ An allowed transit encryption mode for this share. @@ -80823,7 +81504,6 @@ class AllowedTransitEncryptionModesEnum(str, Enum): NONE = 'none' USER_MANAGED = 'user_managed' - class EncryptionEnum(str, Enum): """ The type of encryption used for this file share. @@ -80832,7 +81512,6 @@ class EncryptionEnum(str, Enum): PROVIDER_MANAGED = 'provider_managed' USER_MANAGED = 'user_managed' - class LifecycleStateEnum(str, Enum): """ The lifecycle state of the file share. @@ -80846,7 +81525,6 @@ class LifecycleStateEnum(str, Enum): UPDATING = 'updating' WAITING = 'waiting' - class ReplicationRoleEnum(str, Enum): """ The replication role of the file share: @@ -80862,7 +81540,6 @@ class ReplicationRoleEnum(str, Enum): REPLICA = 'replica' SOURCE = 'source' - class ReplicationStatusEnum(str, Enum): """ The replication status of the file share: @@ -80886,7 +81563,6 @@ class ReplicationStatusEnum(str, Enum): NONE = 'none' SPLIT_PENDING = 'split_pending' - class ResourceTypeEnum(str, Enum): """ The resource type. @@ -80895,7 +81571,6 @@ class ResourceTypeEnum(str, Enum): SHARE = 'share' - class ShareAccessorBinding: """ ShareAccessorBinding. @@ -81032,7 +81707,6 @@ class LifecycleStateEnum(str, Enum): UPDATING = 'updating' WAITING = 'waiting' - class ResourceTypeEnum(str, Enum): """ The resource type. @@ -81041,7 +81715,6 @@ class ResourceTypeEnum(str, Enum): SHARE_ACCESSOR_BINDING = 'share_accessor_binding' - class ShareAccessorBindingAccessor: """ The accessor for this share accessor binding. @@ -81058,7 +81731,12 @@ def __init__( """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['ShareAccessorBindingAccessorShareReference', 'ShareAccessorBindingAccessorWatsonxMachineLearningReference']) + ", ".join( + [ + 'ShareAccessorBindingAccessorShareReference', + 'ShareAccessorBindingAccessorWatsonxMachineLearningReference', + ] + ) ) raise Exception(msg) @@ -81113,7 +81791,9 @@ def from_dict(cls, _dict: Dict) -> 'ShareAccessorBindingCollection': if (accessor_bindings := _dict.get('accessor_bindings')) is not None: args['accessor_bindings'] = [ShareAccessorBinding.from_dict(v) for v in accessor_bindings] else: - raise ValueError('Required property \'accessor_bindings\' not present in ShareAccessorBindingCollection JSON') + raise ValueError( + 'Required property \'accessor_bindings\' not present in ShareAccessorBindingCollection JSON' + ) if (first := _dict.get('first')) is not None: args['first'] = PageLink.from_dict(first) else: @@ -81267,7 +81947,6 @@ class ResourceTypeEnum(str, Enum): SHARE_ACCESSOR_BINDING = 'share_accessor_binding' - class ShareCollection: """ ShareCollection. @@ -81602,7 +82281,6 @@ class StatusEnum(str, Enum): RUNNING = 'running' SUCCEEDED = 'succeeded' - class TypeEnum(str, Enum): """ The type of the file share job: @@ -81619,7 +82297,6 @@ class TypeEnum(str, Enum): REPLICATION_SPLIT = 'replication_split' - class ShareJobStatusReason: """ ShareJobStatusReason. @@ -81718,7 +82395,6 @@ class CodeEnum(str, Enum): CANNOT_REACH_SOURCE_SHARE = 'cannot_reach_source_share' - class ShareLatestSync: """ Information about the latest synchronization for this file share. @@ -81919,7 +82595,6 @@ class CodeEnum(str, Enum): RESOURCE_SUSPENDED_BY_PROVIDER = 'resource_suspended_by_provider' - class ShareMountTarget: """ ShareMountTarget. @@ -82111,7 +82786,9 @@ def from_dict(cls, _dict: Dict) -> 'ShareMountTarget': else: raise ValueError('Required property \'transit_encryption\' not present in ShareMountTarget JSON') if (virtual_network_interface := _dict.get('virtual_network_interface')) is not None: - args['virtual_network_interface'] = VirtualNetworkInterfaceReferenceAttachmentContext.from_dict(virtual_network_interface) + args['virtual_network_interface'] = VirtualNetworkInterfaceReferenceAttachmentContext.from_dict( + virtual_network_interface + ) if (vpc := _dict.get('vpc')) is not None: args['vpc'] = VPCReference.from_dict(vpc) else: @@ -82200,7 +82877,6 @@ class AccessControlModeEnum(str, Enum): SECURITY_GROUP = 'security_group' VPC = 'vpc' - class LifecycleStateEnum(str, Enum): """ The lifecycle state of the mount target. @@ -82214,7 +82890,6 @@ class LifecycleStateEnum(str, Enum): UPDATING = 'updating' WAITING = 'waiting' - class ResourceTypeEnum(str, Enum): """ The resource type. @@ -82222,7 +82897,6 @@ class ResourceTypeEnum(str, Enum): SHARE_MOUNT_TARGET = 'share_mount_target' - class TransitEncryptionEnum(str, Enum): """ The transit encryption mode for this share mount target: @@ -82237,7 +82911,6 @@ class TransitEncryptionEnum(str, Enum): USER_MANAGED = 'user_managed' - class ShareMountTargetCollection: """ ShareMountTargetCollection. @@ -82454,7 +83127,12 @@ def __init__( `allowed_transit_encryption_modes`. """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['ShareMountTargetPrototypeShareMountTargetByAccessControlModeSecurityGroup', 'ShareMountTargetPrototypeShareMountTargetByAccessControlModeVPC']) + ", ".join( + [ + 'ShareMountTargetPrototypeShareMountTargetByAccessControlModeSecurityGroup', + 'ShareMountTargetPrototypeShareMountTargetByAccessControlModeVPC', + ] + ) ) raise Exception(msg) @@ -82473,7 +83151,6 @@ class TransitEncryptionEnum(str, Enum): USER_MANAGED = 'user_managed' - class ShareMountTargetReference: """ ShareMountTargetReference. @@ -82588,7 +83265,6 @@ class ResourceTypeEnum(str, Enum): SHARE_MOUNT_TARGET = 'share_mount_target' - class ShareMountTargetVirtualNetworkInterfacePrototype: """ ShareMountTargetVirtualNetworkInterfacePrototype. @@ -82603,7 +83279,12 @@ def __init__( """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfacePrototypeShareMountTargetContext', 'ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentity']) + ", ".join( + [ + 'ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfacePrototypeShareMountTargetContext', + 'ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentity', + ] + ) ) raise Exception(msg) @@ -82795,7 +83476,6 @@ class AccessControlModeEnum(str, Enum): SECURITY_GROUP = 'security_group' VPC = 'vpc' - class AllowedTransitEncryptionModesEnum(str, Enum): """ An allowed transit encryption mode for this share. @@ -82810,7 +83490,6 @@ class AllowedTransitEncryptionModesEnum(str, Enum): USER_MANAGED = 'user_managed' - class ShareProfile: """ ShareProfile. @@ -82945,7 +83624,6 @@ class FamilyEnum(str, Enum): DEFINED_PERFORMANCE = 'defined_performance' - class ResourceTypeEnum(str, Enum): """ The resource type. @@ -82954,7 +83632,6 @@ class ResourceTypeEnum(str, Enum): SHARE_PROFILE = 'share_profile' - class ShareProfileCapacity: """ ShareProfileCapacity. @@ -82969,7 +83646,14 @@ def __init__( """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['ShareProfileCapacityFixed', 'ShareProfileCapacityEnum', 'ShareProfileCapacityRange', 'ShareProfileCapacityDependentRange']) + ", ".join( + [ + 'ShareProfileCapacityFixed', + 'ShareProfileCapacityEnum', + 'ShareProfileCapacityRange', + 'ShareProfileCapacityDependentRange', + ] + ) ) raise Exception(msg) @@ -83104,7 +83788,14 @@ def __init__( """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['ShareProfileIOPSFixed', 'ShareProfileIOPSRange', 'ShareProfileIOPSEnum', 'ShareProfileIOPSDependentRange']) + ", ".join( + [ + 'ShareProfileIOPSFixed', + 'ShareProfileIOPSRange', + 'ShareProfileIOPSEnum', + 'ShareProfileIOPSDependentRange', + ] + ) ) raise Exception(msg) @@ -83214,7 +83905,6 @@ class ResourceTypeEnum(str, Enum): SHARE_PROFILE = 'share_profile' - class SharePrototype: """ SharePrototype. @@ -83271,7 +83961,9 @@ def __init__( :param List[str] user_tags: (optional) Tags for this resource. """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['SharePrototypeShareBySize', 'SharePrototypeShareBySourceShare', 'SharePrototypeShareByOriginShare']) + ", ".join( + ['SharePrototypeShareBySize', 'SharePrototypeShareBySourceShare', 'SharePrototypeShareByOriginShare'] + ) ) raise Exception(msg) @@ -83289,7 +83981,6 @@ class AllowedTransitEncryptionModesEnum(str, Enum): USER_MANAGED = 'user_managed' - class SharePrototypeShareContext: """ Configuration for a replica file share to create and associate with this file share. @@ -83414,7 +84105,9 @@ def from_dict(cls, _dict: Dict) -> 'SharePrototypeShareContext': if (replication_cron_spec := _dict.get('replication_cron_spec')) is not None: args['replication_cron_spec'] = replication_cron_spec else: - raise ValueError('Required property \'replication_cron_spec\' not present in SharePrototypeShareContext JSON') + raise ValueError( + 'Required property \'replication_cron_spec\' not present in SharePrototypeShareContext JSON' + ) if (resource_group := _dict.get('resource_group')) is not None: args['resource_group'] = resource_group if (user_tags := _dict.get('user_tags')) is not None: @@ -83500,7 +84193,6 @@ class AllowedTransitEncryptionModesEnum(str, Enum): USER_MANAGED = 'user_managed' - class ShareReference: """ ShareReference. @@ -83640,7 +84332,6 @@ class ResourceTypeEnum(str, Enum): SHARE = 'share' - class ShareRemote: """ If present, this property indicates that the resource associated with this reference @@ -83820,7 +84511,6 @@ class CodeEnum(str, Enum): CANNOT_REACH_SOURCE_SHARE = 'cannot_reach_source_share' - class Snapshot: """ Snapshot. @@ -84237,7 +84927,6 @@ class EncryptionEnum(str, Enum): PROVIDER_MANAGED = 'provider_managed' USER_MANAGED = 'user_managed' - class LifecycleStateEnum(str, Enum): """ The lifecycle state of this snapshot. @@ -84251,7 +84940,6 @@ class LifecycleStateEnum(str, Enum): UPDATING = 'updating' WAITING = 'waiting' - class ResourceTypeEnum(str, Enum): """ The resource type. @@ -84260,7 +84948,6 @@ class ResourceTypeEnum(str, Enum): SNAPSHOT = 'snapshot' - class SnapshotCatalogOffering: """ SnapshotCatalogOffering. @@ -84780,7 +85467,9 @@ def from_dict(cls, _dict: Dict) -> 'SnapshotConsistencyGroup': if (delete_snapshots_on_delete := _dict.get('delete_snapshots_on_delete')) is not None: args['delete_snapshots_on_delete'] = delete_snapshots_on_delete else: - raise ValueError('Required property \'delete_snapshots_on_delete\' not present in SnapshotConsistencyGroup JSON') + raise ValueError( + 'Required property \'delete_snapshots_on_delete\' not present in SnapshotConsistencyGroup JSON' + ) if (href := _dict.get('href')) is not None: args['href'] = href else: @@ -84892,7 +85581,6 @@ class LifecycleStateEnum(str, Enum): UPDATING = 'updating' WAITING = 'waiting' - class ResourceTypeEnum(str, Enum): """ The resource type. @@ -84901,7 +85589,6 @@ class ResourceTypeEnum(str, Enum): SNAPSHOT_CONSISTENCY_GROUP = 'snapshot_consistency_group' - class SnapshotConsistencyGroupCollection: """ SnapshotConsistencyGroupCollection. @@ -84960,9 +85647,13 @@ def from_dict(cls, _dict: Dict) -> 'SnapshotConsistencyGroupCollection': if (next := _dict.get('next')) is not None: args['next'] = PageLink.from_dict(next) if (snapshot_consistency_groups := _dict.get('snapshot_consistency_groups')) is not None: - args['snapshot_consistency_groups'] = [SnapshotConsistencyGroup.from_dict(v) for v in snapshot_consistency_groups] + args['snapshot_consistency_groups'] = [ + SnapshotConsistencyGroup.from_dict(v) for v in snapshot_consistency_groups + ] else: - raise ValueError('Required property \'snapshot_consistency_groups\' not present in SnapshotConsistencyGroupCollection JSON') + raise ValueError( + 'Required property \'snapshot_consistency_groups\' not present in SnapshotConsistencyGroupCollection JSON' + ) if (total_count := _dict.get('total_count')) is not None: args['total_count'] = total_count else: @@ -85206,7 +85897,9 @@ def from_dict(cls, _dict: Dict) -> 'SnapshotConsistencyGroupReference': if (resource_type := _dict.get('resource_type')) is not None: args['resource_type'] = resource_type else: - raise ValueError('Required property \'resource_type\' not present in SnapshotConsistencyGroupReference JSON') + raise ValueError( + 'Required property \'resource_type\' not present in SnapshotConsistencyGroupReference JSON' + ) return cls(**args) @classmethod @@ -85260,7 +85953,6 @@ class ResourceTypeEnum(str, Enum): SNAPSHOT_CONSISTENCY_GROUP = 'snapshot_consistency_group' - class SnapshotCopiesItem: """ SnapshotCopiesItem. @@ -85398,7 +86090,6 @@ class ResourceTypeEnum(str, Enum): SNAPSHOT = 'snapshot' - class SnapshotIdentity: """ Identifies a snapshot by a unique property. @@ -85583,7 +86274,9 @@ def from_dict(cls, _dict: Dict) -> 'SnapshotPrototypeSnapshotConsistencyGroupCon if (source_volume := _dict.get('source_volume')) is not None: args['source_volume'] = source_volume else: - raise ValueError('Required property \'source_volume\' not present in SnapshotPrototypeSnapshotConsistencyGroupContext JSON') + raise ValueError( + 'Required property \'source_volume\' not present in SnapshotPrototypeSnapshotConsistencyGroupContext JSON' + ) if (user_tags := _dict.get('user_tags')) is not None: args['user_tags'] = user_tags return cls(**args) @@ -85765,7 +86458,6 @@ class ResourceTypeEnum(str, Enum): SNAPSHOT = 'snapshot' - class SnapshotRemote: """ If present, this property indicates that the resource associated with this reference @@ -85986,7 +86678,6 @@ class ResourceTypeEnum(str, Enum): SNAPSHOT = 'snapshot' - class Subnet: """ Subnet. @@ -86256,7 +86947,6 @@ class IpVersionEnum(str, Enum): IPV4 = 'ipv4' - class ResourceTypeEnum(str, Enum): """ The resource type. @@ -86264,7 +86954,6 @@ class ResourceTypeEnum(str, Enum): SUBNET = 'subnet' - class StatusEnum(str, Enum): """ The status of the subnet. @@ -86279,7 +86968,6 @@ class StatusEnum(str, Enum): PENDING = 'pending' - class SubnetCollection: """ SubnetCollection. @@ -86593,7 +87281,6 @@ class IpVersionEnum(str, Enum): IPV4 = 'ipv4' - class SubnetPublicGatewayPatch: """ The public gateway to use for internet-bound traffic for this subnet. @@ -86608,7 +87295,13 @@ def __init__( """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['SubnetPublicGatewayPatchPublicGatewayIdentityById', 'SubnetPublicGatewayPatchPublicGatewayIdentityByCRN', 'SubnetPublicGatewayPatchPublicGatewayIdentityByHref']) + ", ".join( + [ + 'SubnetPublicGatewayPatchPublicGatewayIdentityById', + 'SubnetPublicGatewayPatchPublicGatewayIdentityByCRN', + 'SubnetPublicGatewayPatchPublicGatewayIdentityByHref', + ] + ) ) raise Exception(msg) @@ -86737,7 +87430,6 @@ class ResourceTypeEnum(str, Enum): SUBNET = 'subnet' - class TrustedProfileIdentity: """ Identifies a trusted profile by a unique property. @@ -86843,7 +87535,6 @@ class ResourceTypeEnum(str, Enum): TRUSTED_PROFILE = 'trusted_profile' - class VCPU: """ The VCPU configuration. @@ -87231,7 +87922,6 @@ class HealthStateEnum(str, Enum): INAPPLICABLE = 'inapplicable' OK = 'ok' - class ResourceTypeEnum(str, Enum): """ The resource type. @@ -87239,7 +87929,6 @@ class ResourceTypeEnum(str, Enum): VPC = 'vpc' - class StatusEnum(str, Enum): """ The status of this VPC. @@ -87254,7 +87943,6 @@ class StatusEnum(str, Enum): PENDING = 'pending' - class VPCCSESourceIP: """ VPCCSESourceIP. @@ -87902,7 +88590,6 @@ class HealthStateEnum(str, Enum): INAPPLICABLE = 'inapplicable' OK = 'ok' - class LifecycleStateEnum(str, Enum): """ The lifecycle state of the DNS resolution binding. @@ -87916,7 +88603,6 @@ class LifecycleStateEnum(str, Enum): UPDATING = 'updating' WAITING = 'waiting' - class ResourceTypeEnum(str, Enum): """ The resource type. @@ -87925,7 +88611,6 @@ class ResourceTypeEnum(str, Enum): VPC_DNS_RESOLUTION_BINDING = 'vpc_dns_resolution_binding' - class VPCDNSResolutionBindingCollection: """ VPCDNSResolutionBindingCollection. @@ -87976,7 +88661,9 @@ def from_dict(cls, _dict: Dict) -> 'VPCDNSResolutionBindingCollection': if (dns_resolution_bindings := _dict.get('dns_resolution_bindings')) is not None: args['dns_resolution_bindings'] = [VPCDNSResolutionBinding.from_dict(v) for v in dns_resolution_bindings] else: - raise ValueError('Required property \'dns_resolution_bindings\' not present in VPCDNSResolutionBindingCollection JSON') + raise ValueError( + 'Required property \'dns_resolution_bindings\' not present in VPCDNSResolutionBindingCollection JSON' + ) if (first := _dict.get('first')) is not None: args['first'] = PageLink.from_dict(first) else: @@ -88132,7 +88819,6 @@ class CodeEnum(str, Enum): INTERNAL_ERROR = 'internal_error' - class VPCDNSResolutionBindingPatch: """ VPCDNSResolutionBindingPatch. @@ -88267,7 +88953,6 @@ class TypeEnum(str, Enum): SYSTEM = 'system' - class VPCDNSResolverPatch: """ VPCDNSResolverPatch. @@ -88441,7 +89126,6 @@ class TypeEnum(str, Enum): SYSTEM = 'system' - class VPCDNSResolverPrototype: """ VPCDNSResolverPrototype. @@ -88469,7 +89153,12 @@ def __init__( configuration. """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['VPCDNSResolverPrototypeVPCDNSResolverTypeManualPrototype', 'VPCDNSResolverPrototypeVPCDNSResolverTypeSystemPrototype']) + ", ".join( + [ + 'VPCDNSResolverPrototypeVPCDNSResolverTypeManualPrototype', + 'VPCDNSResolverPrototypeVPCDNSResolverTypeSystemPrototype', + ] + ) ) raise Exception(msg) @@ -88485,7 +89174,6 @@ class TypeEnum(str, Enum): SYSTEM = 'system' - class VPCDNSResolverVPCPatch: """ The VPC to provide DNS server addresses for this VPC. The specified VPC must be @@ -88504,7 +89192,13 @@ def __init__( """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['VPCDNSResolverVPCPatchVPCIdentityById', 'VPCDNSResolverVPCPatchVPCIdentityByCRN', 'VPCDNSResolverVPCPatchVPCIdentityByHref']) + ", ".join( + [ + 'VPCDNSResolverVPCPatchVPCIdentityById', + 'VPCDNSResolverVPCPatchVPCIdentityByCRN', + 'VPCDNSResolverVPCPatchVPCIdentityByHref', + ] + ) ) raise Exception(msg) @@ -88597,7 +89291,6 @@ class CodeEnum(str, Enum): INTERNAL_ERROR = 'internal_error' - class VPCIdentity: """ Identifies a VPC by a unique property. @@ -88812,7 +89505,6 @@ class ResourceTypeEnum(str, Enum): VPC = 'vpc' - class VPCReferenceDNSResolverContext: """ A VPC whose DNS resolver is delegated to provide DNS servers for this VPC. @@ -88953,7 +89645,6 @@ class ResourceTypeEnum(str, Enum): VPC = 'vpc' - class VPCReferenceRemote: """ VPCReferenceRemote. @@ -89078,7 +89769,6 @@ class ResourceTypeEnum(str, Enum): VPC = 'vpc' - class VPCRemote: """ If present, this property indicates that the resource associated with this reference @@ -89272,7 +89962,6 @@ class HealthStateEnum(str, Enum): INAPPLICABLE = 'inapplicable' OK = 'ok' - class LifecycleStateEnum(str, Enum): """ The lifecycle state of the VPN gateway. @@ -89286,7 +89975,6 @@ class LifecycleStateEnum(str, Enum): UPDATING = 'updating' WAITING = 'waiting' - class ResourceTypeEnum(str, Enum): """ The resource type. @@ -89295,7 +89983,6 @@ class ResourceTypeEnum(str, Enum): VPN_GATEWAY = 'vpn_gateway' - class VPNGatewayCollection: """ VPNGatewayCollection. @@ -89568,7 +90255,6 @@ class AuthenticationModeEnum(str, Enum): PSK = 'psk' - class EstablishModeEnum(str, Enum): """ The establish mode of the VPN gateway connection: @@ -89586,7 +90272,6 @@ class EstablishModeEnum(str, Enum): BIDIRECTIONAL = 'bidirectional' PEER_ONLY = 'peer_only' - class ModeEnum(str, Enum): """ The mode of the VPN gateway. @@ -89598,7 +90283,6 @@ class ModeEnum(str, Enum): POLICY = 'policy' ROUTE = 'route' - class ResourceTypeEnum(str, Enum): """ The resource type. @@ -89606,7 +90290,6 @@ class ResourceTypeEnum(str, Enum): VPN_GATEWAY_CONNECTION = 'vpn_gateway_connection' - class StatusEnum(str, Enum): """ The status of a VPN gateway connection. @@ -89616,7 +90299,6 @@ class StatusEnum(str, Enum): UP = 'up' - class VPNGatewayConnectionCIDRs: """ VPNGatewayConnectionCIDRs. @@ -89885,7 +90567,6 @@ class ActionEnum(str, Enum): RESTART = 'restart' - class VPNGatewayConnectionDPDPatch: """ The Dead Peer Detection settings. @@ -89972,7 +90653,6 @@ class ActionEnum(str, Enum): RESTART = 'restart' - class VPNGatewayConnectionDPDPrototype: """ The Dead Peer Detection settings. @@ -90059,7 +90739,6 @@ class ActionEnum(str, Enum): RESTART = 'restart' - class VPNGatewayConnectionIKEIdentity: """ VPNGatewayConnectionIKEIdentity. @@ -90083,7 +90762,14 @@ def __init__( future. """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityFQDN', 'VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityHostname', 'VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityIPv4', 'VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityKeyID']) + ", ".join( + [ + 'VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityFQDN', + 'VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityHostname', + 'VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityIPv4', + 'VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityKeyID', + ] + ) ) raise Exception(msg) @@ -90101,7 +90787,6 @@ class TypeEnum(str, Enum): KEY_ID = 'key_id' - class VPNGatewayConnectionIKEIdentityPrototype: """ VPNGatewayConnectionIKEIdentityPrototype. @@ -90119,7 +90804,14 @@ def __init__( :param str type: The IKE identity type. """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityFQDN', 'VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityHostname', 'VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityIPv4', 'VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityKeyID']) + ", ".join( + [ + 'VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityFQDN', + 'VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityHostname', + 'VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityIPv4', + 'VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityKeyID', + ] + ) ) raise Exception(msg) @@ -90134,7 +90826,6 @@ class TypeEnum(str, Enum): KEY_ID = 'key_id' - class VPNGatewayConnectionIKEPolicyPatch: """ The IKE policy to use. Specify `null` to remove any existing policy, [resulting in @@ -90150,7 +90841,12 @@ def __init__( """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['VPNGatewayConnectionIKEPolicyPatchIKEPolicyIdentityById', 'VPNGatewayConnectionIKEPolicyPatchIKEPolicyIdentityByHref']) + ", ".join( + [ + 'VPNGatewayConnectionIKEPolicyPatchIKEPolicyIdentityById', + 'VPNGatewayConnectionIKEPolicyPatchIKEPolicyIdentityByHref', + ] + ) ) raise Exception(msg) @@ -90170,7 +90866,12 @@ def __init__( """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['VPNGatewayConnectionIKEPolicyPrototypeIKEPolicyIdentityById', 'VPNGatewayConnectionIKEPolicyPrototypeIKEPolicyIdentityByHref']) + ", ".join( + [ + 'VPNGatewayConnectionIKEPolicyPrototypeIKEPolicyIdentityById', + 'VPNGatewayConnectionIKEPolicyPrototypeIKEPolicyIdentityByHref', + ] + ) ) raise Exception(msg) @@ -90190,7 +90891,12 @@ def __init__( """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['VPNGatewayConnectionIPsecPolicyPatchIPsecPolicyIdentityById', 'VPNGatewayConnectionIPsecPolicyPatchIPsecPolicyIdentityByHref']) + ", ".join( + [ + 'VPNGatewayConnectionIPsecPolicyPatchIPsecPolicyIdentityById', + 'VPNGatewayConnectionIPsecPolicyPatchIPsecPolicyIdentityByHref', + ] + ) ) raise Exception(msg) @@ -90210,7 +90916,12 @@ def __init__( """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['VPNGatewayConnectionIPsecPolicyPrototypeIPsecPolicyIdentityById', 'VPNGatewayConnectionIPsecPolicyPrototypeIPsecPolicyIdentityByHref']) + ", ".join( + [ + 'VPNGatewayConnectionIPsecPolicyPrototypeIPsecPolicyIdentityById', + 'VPNGatewayConnectionIPsecPolicyPrototypeIPsecPolicyIdentityByHref', + ] + ) ) raise Exception(msg) @@ -90415,7 +91126,6 @@ class EstablishModeEnum(str, Enum): PEER_ONLY = 'peer_only' - class VPNGatewayConnectionPeerPatch: """ VPNGatewayConnectionPeerPatch. @@ -90430,7 +91140,12 @@ def __init__( """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['VPNGatewayConnectionPeerPatchVPNGatewayConnectionPolicyModePeerPatch', 'VPNGatewayConnectionPeerPatchVPNGatewayConnectionStaticRouteModePeerPatch']) + ", ".join( + [ + 'VPNGatewayConnectionPeerPatchVPNGatewayConnectionPolicyModePeerPatch', + 'VPNGatewayConnectionPeerPatchVPNGatewayConnectionStaticRouteModePeerPatch', + ] + ) ) raise Exception(msg) @@ -90474,7 +91189,9 @@ def from_dict(cls, _dict: Dict) -> 'VPNGatewayConnectionPolicyModeLocal': if (ike_identities := _dict.get('ike_identities')) is not None: args['ike_identities'] = ike_identities else: - raise ValueError('Required property \'ike_identities\' not present in VPNGatewayConnectionPolicyModeLocal JSON') + raise ValueError( + 'Required property \'ike_identities\' not present in VPNGatewayConnectionPolicyModeLocal JSON' + ) return cls(**args) @classmethod @@ -90556,7 +91273,9 @@ def from_dict(cls, _dict: Dict) -> 'VPNGatewayConnectionPolicyModeLocalPrototype if (cidrs := _dict.get('cidrs')) is not None: args['cidrs'] = cidrs else: - raise ValueError('Required property \'cidrs\' not present in VPNGatewayConnectionPolicyModeLocalPrototype JSON') + raise ValueError( + 'Required property \'cidrs\' not present in VPNGatewayConnectionPolicyModeLocalPrototype JSON' + ) if (ike_identities := _dict.get('ike_identities')) is not None: args['ike_identities'] = ike_identities return cls(**args) @@ -90623,7 +91342,12 @@ def __init__( :param str type: Indicates whether `peer.address` or `peer.fqdn` is used. """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['VPNGatewayConnectionPolicyModePeerVPNGatewayConnectionPeerByAddress', 'VPNGatewayConnectionPolicyModePeerVPNGatewayConnectionPeerByFQDN']) + ", ".join( + [ + 'VPNGatewayConnectionPolicyModePeerVPNGatewayConnectionPeerByAddress', + 'VPNGatewayConnectionPolicyModePeerVPNGatewayConnectionPeerByFQDN', + ] + ) ) raise Exception(msg) @@ -90636,7 +91360,6 @@ class TypeEnum(str, Enum): FQDN = 'fqdn' - class VPNGatewayConnectionPolicyModePeerPrototype: """ VPNGatewayConnectionPolicyModePeerPrototype. @@ -90670,7 +91393,12 @@ def __init__( will be `peer.fqdn`. """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['VPNGatewayConnectionPolicyModePeerPrototypeVPNGatewayConnectionPeerByAddress', 'VPNGatewayConnectionPolicyModePeerPrototypeVPNGatewayConnectionPeerByFQDN']) + ", ".join( + [ + 'VPNGatewayConnectionPolicyModePeerPrototypeVPNGatewayConnectionPeerByAddress', + 'VPNGatewayConnectionPolicyModePeerPrototypeVPNGatewayConnectionPeerByFQDN', + ] + ) ) raise Exception(msg) @@ -90747,7 +91475,12 @@ def __init__( unspecified, the name will be a hyphenated list of randomly-selected words. """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['VPNGatewayConnectionPrototypeVPNGatewayConnectionStaticRouteModePrototype', 'VPNGatewayConnectionPrototypeVPNGatewayConnectionPolicyModePrototype']) + ", ".join( + [ + 'VPNGatewayConnectionPrototypeVPNGatewayConnectionStaticRouteModePrototype', + 'VPNGatewayConnectionPrototypeVPNGatewayConnectionPolicyModePrototype', + ] + ) ) raise Exception(msg) @@ -90769,7 +91502,6 @@ class EstablishModeEnum(str, Enum): PEER_ONLY = 'peer_only' - class VPNGatewayConnectionReference: """ VPNGatewayConnectionReference. @@ -90884,7 +91616,6 @@ class ResourceTypeEnum(str, Enum): VPN_GATEWAY_CONNECTION = 'vpn_gateway_connection' - class VPNGatewayConnectionStaticRouteModeLocal: """ VPNGatewayConnectionStaticRouteModeLocal. @@ -90918,7 +91649,9 @@ def from_dict(cls, _dict: Dict) -> 'VPNGatewayConnectionStaticRouteModeLocal': if (ike_identities := _dict.get('ike_identities')) is not None: args['ike_identities'] = ike_identities else: - raise ValueError('Required property \'ike_identities\' not present in VPNGatewayConnectionStaticRouteModeLocal JSON') + raise ValueError( + 'Required property \'ike_identities\' not present in VPNGatewayConnectionStaticRouteModeLocal JSON' + ) return cls(**args) @classmethod @@ -91054,7 +91787,12 @@ def __init__( :param str type: Indicates whether `peer.address` or `peer.fqdn` is used. """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['VPNGatewayConnectionStaticRouteModePeerVPNGatewayConnectionPeerByAddress', 'VPNGatewayConnectionStaticRouteModePeerVPNGatewayConnectionPeerByFQDN']) + ", ".join( + [ + 'VPNGatewayConnectionStaticRouteModePeerVPNGatewayConnectionPeerByAddress', + 'VPNGatewayConnectionStaticRouteModePeerVPNGatewayConnectionPeerByFQDN', + ] + ) ) raise Exception(msg) @@ -91067,7 +91805,6 @@ class TypeEnum(str, Enum): FQDN = 'fqdn' - class VPNGatewayConnectionStaticRouteModePeerPrototype: """ VPNGatewayConnectionStaticRouteModePeerPrototype. @@ -91098,7 +91835,12 @@ def __init__( will be `peer.fqdn`. """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['VPNGatewayConnectionStaticRouteModePeerPrototypeVPNGatewayConnectionPeerByAddress', 'VPNGatewayConnectionStaticRouteModePeerPrototypeVPNGatewayConnectionPeerByFQDN']) + ", ".join( + [ + 'VPNGatewayConnectionStaticRouteModePeerPrototypeVPNGatewayConnectionPeerByAddress', + 'VPNGatewayConnectionStaticRouteModePeerPrototypeVPNGatewayConnectionPeerByFQDN', + ] + ) ) raise Exception(msg) @@ -91146,15 +91888,21 @@ def from_dict(cls, _dict: Dict) -> 'VPNGatewayConnectionStaticRouteModeTunnel': if (public_ip := _dict.get('public_ip')) is not None: args['public_ip'] = IP.from_dict(public_ip) else: - raise ValueError('Required property \'public_ip\' not present in VPNGatewayConnectionStaticRouteModeTunnel JSON') + raise ValueError( + 'Required property \'public_ip\' not present in VPNGatewayConnectionStaticRouteModeTunnel JSON' + ) if (status := _dict.get('status')) is not None: args['status'] = status else: - raise ValueError('Required property \'status\' not present in VPNGatewayConnectionStaticRouteModeTunnel JSON') + raise ValueError( + 'Required property \'status\' not present in VPNGatewayConnectionStaticRouteModeTunnel JSON' + ) if (status_reasons := _dict.get('status_reasons')) is not None: args['status_reasons'] = [VPNGatewayConnectionTunnelStatusReason.from_dict(v) for v in status_reasons] else: - raise ValueError('Required property \'status_reasons\' not present in VPNGatewayConnectionStaticRouteModeTunnel JSON') + raise ValueError( + 'Required property \'status_reasons\' not present in VPNGatewayConnectionStaticRouteModeTunnel JSON' + ) return cls(**args) @classmethod @@ -91212,7 +91960,6 @@ class StatusEnum(str, Enum): UP = 'up' - class VPNGatewayConnectionStatusReason: """ VPNGatewayConnectionStatusReason. @@ -91317,7 +92064,6 @@ class CodeEnum(str, Enum): PEER_NOT_RESPONDING = 'peer_not_responding' - class VPNGatewayConnectionTunnelStatusReason: """ VPNGatewayConnectionTunnelStatusReason. @@ -91483,7 +92229,6 @@ class CodeEnum(str, Enum): PEER_NOT_RESPONDING = 'peer_not_responding' - class VPNGatewayHealthReason: """ VPNGatewayHealthReason. @@ -91597,7 +92342,6 @@ class CodeEnum(str, Enum): INTERNAL_ERROR = 'internal_error' - class VPNGatewayLifecycleReason: """ VPNGatewayLifecycleReason. @@ -91705,7 +92449,6 @@ class CodeEnum(str, Enum): RESOURCE_SUSPENDED_BY_PROVIDER = 'resource_suspended_by_provider' - class VPNGatewayMember: """ VPNGatewayMember. @@ -91897,7 +92640,6 @@ class HealthStateEnum(str, Enum): INAPPLICABLE = 'inapplicable' OK = 'ok' - class LifecycleStateEnum(str, Enum): """ The lifecycle state of the VPN gateway member. @@ -91911,7 +92653,6 @@ class LifecycleStateEnum(str, Enum): UPDATING = 'updating' WAITING = 'waiting' - class RoleEnum(str, Enum): """ The high availability role assigned to the VPN gateway member. @@ -91924,7 +92665,6 @@ class RoleEnum(str, Enum): STANDBY = 'standby' - class VPNGatewayMemberHealthReason: """ VPNGatewayMemberHealthReason. @@ -92034,7 +92774,6 @@ class CodeEnum(str, Enum): INTERNAL_ERROR = 'internal_error' - class VPNGatewayMemberLifecycleReason: """ VPNGatewayMemberLifecycleReason. @@ -92142,7 +92881,6 @@ class CodeEnum(str, Enum): RESOURCE_SUSPENDED_BY_PROVIDER = 'resource_suspended_by_provider' - class VPNGatewayPatch: """ VPNGatewayPatch. @@ -92237,7 +92975,9 @@ def __init__( used. """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['VPNGatewayPrototypeVPNGatewayRouteModePrototype', 'VPNGatewayPrototypeVPNGatewayPolicyModePrototype']) + ", ".join( + ['VPNGatewayPrototypeVPNGatewayRouteModePrototype', 'VPNGatewayPrototypeVPNGatewayPolicyModePrototype'] + ) ) raise Exception(msg) @@ -92689,7 +93429,6 @@ class HealthStateEnum(str, Enum): INAPPLICABLE = 'inapplicable' OK = 'ok' - class LifecycleStateEnum(str, Enum): """ The lifecycle state of the VPN server. @@ -92703,7 +93442,6 @@ class LifecycleStateEnum(str, Enum): UPDATING = 'updating' WAITING = 'waiting' - class ProtocolEnum(str, Enum): """ The transport protocol to use for this VPN server. @@ -92715,7 +93453,6 @@ class ProtocolEnum(str, Enum): TCP = 'tcp' UDP = 'udp' - class ResourceTypeEnum(str, Enum): """ The resource type. @@ -92724,7 +93461,6 @@ class ResourceTypeEnum(str, Enum): VPN_SERVER = 'vpn_server' - class VPNServerAuthentication: """ An authentication method for this VPN server. @@ -92764,7 +93500,6 @@ class MethodEnum(str, Enum): USERNAME = 'username' - class VPNServerAuthenticationByUsernameIdProvider: """ The type of identity provider to be used by VPN client. @@ -92801,7 +93536,12 @@ def __init__( :param str method: The type of authentication. """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['VPNServerAuthenticationPrototypeVPNServerAuthenticationByUsernamePrototype', 'VPNServerAuthenticationPrototypeVPNServerAuthenticationByCertificatePrototype']) + ", ".join( + [ + 'VPNServerAuthenticationPrototypeVPNServerAuthenticationByUsernamePrototype', + 'VPNServerAuthenticationPrototypeVPNServerAuthenticationByCertificatePrototype', + ] + ) ) raise Exception(msg) @@ -92812,7 +93552,12 @@ def from_dict(cls, _dict: Dict) -> 'VPNServerAuthenticationPrototype': if disc_class != cls: return disc_class.from_dict(_dict) msg = "Cannot convert dictionary into an instance of base class 'VPNServerAuthenticationPrototype'. The discriminator value should map to a valid subclass: {1}".format( - ", ".join(['VPNServerAuthenticationPrototypeVPNServerAuthenticationByUsernamePrototype', 'VPNServerAuthenticationPrototypeVPNServerAuthenticationByCertificatePrototype']) + ", ".join( + [ + 'VPNServerAuthenticationPrototypeVPNServerAuthenticationByUsernamePrototype', + 'VPNServerAuthenticationPrototypeVPNServerAuthenticationByCertificatePrototype', + ] + ) ) raise Exception(msg) @@ -92847,7 +93592,6 @@ class MethodEnum(str, Enum): USERNAME = 'username' - class VPNServerClient: """ VPNServerClient. @@ -93044,7 +93788,6 @@ class ResourceTypeEnum(str, Enum): VPN_SERVER_CLIENT = 'vpn_server_client' - class StatusEnum(str, Enum): """ The status of the VPN client: @@ -93059,7 +93802,6 @@ class StatusEnum(str, Enum): DISCONNECTED = 'disconnected' - class VPNServerClientCollection: """ VPNServerClientCollection. @@ -93437,7 +94179,6 @@ class CodeEnum(str, Enum): INTERNAL_ERROR = 'internal_error' - class VPNServerLifecycleReason: """ VPNServerLifecycleReason. @@ -93545,7 +94286,6 @@ class CodeEnum(str, Enum): RESOURCE_SUSPENDED_BY_PROVIDER = 'resource_suspended_by_provider' - class VPNServerPatch: """ VPNServerPatch. @@ -93654,7 +94394,9 @@ def from_dict(cls, _dict: Dict) -> 'VPNServerPatch': if (certificate := _dict.get('certificate')) is not None: args['certificate'] = certificate if (client_authentication := _dict.get('client_authentication')) is not None: - args['client_authentication'] = [VPNServerAuthenticationPrototype.from_dict(v) for v in client_authentication] + args['client_authentication'] = [ + VPNServerAuthenticationPrototype.from_dict(v) for v in client_authentication + ] if (client_dns_server_ips := _dict.get('client_dns_server_ips')) is not None: args['client_dns_server_ips'] = [IP.from_dict(v) for v in client_dns_server_ips] if (client_idle_timeout := _dict.get('client_idle_timeout')) is not None: @@ -93751,7 +94493,6 @@ class ProtocolEnum(str, Enum): UDP = 'udp' - class VPNServerRoute: """ VPNServerRoute. @@ -93987,7 +94728,6 @@ class ActionEnum(str, Enum): DROP = 'drop' TRANSLATE = 'translate' - class HealthStateEnum(str, Enum): """ The health of this resource: @@ -94005,7 +94745,6 @@ class HealthStateEnum(str, Enum): INAPPLICABLE = 'inapplicable' OK = 'ok' - class LifecycleStateEnum(str, Enum): """ The lifecycle state of the VPN route. @@ -94019,7 +94758,6 @@ class LifecycleStateEnum(str, Enum): UPDATING = 'updating' WAITING = 'waiting' - class ResourceTypeEnum(str, Enum): """ The resource type. @@ -94028,7 +94766,6 @@ class ResourceTypeEnum(str, Enum): VPN_SERVER_ROUTE = 'vpn_server_route' - class VPNServerRouteCollection: """ VPNServerRouteCollection. @@ -94244,7 +94981,6 @@ class CodeEnum(str, Enum): INTERNAL_ERROR = 'internal_error' - class VPNServerRouteLifecycleReason: """ VPNServerRouteLifecycleReason. @@ -94352,7 +95088,6 @@ class CodeEnum(str, Enum): RESOURCE_SUSPENDED_BY_PROVIDER = 'resource_suspended_by_provider' - class VPNServerRoutePatch: """ VPNServerRoutePatch. @@ -94600,7 +95335,9 @@ def from_dict(cls, _dict: Dict) -> 'VirtualNetworkInterface': if (enable_infrastructure_nat := _dict.get('enable_infrastructure_nat')) is not None: args['enable_infrastructure_nat'] = enable_infrastructure_nat else: - raise ValueError('Required property \'enable_infrastructure_nat\' not present in VirtualNetworkInterface JSON') + raise ValueError( + 'Required property \'enable_infrastructure_nat\' not present in VirtualNetworkInterface JSON' + ) if (href := _dict.get('href')) is not None: args['href'] = href else: @@ -94630,7 +95367,9 @@ def from_dict(cls, _dict: Dict) -> 'VirtualNetworkInterface': if (protocol_state_filtering_mode := _dict.get('protocol_state_filtering_mode')) is not None: args['protocol_state_filtering_mode'] = protocol_state_filtering_mode else: - raise ValueError('Required property \'protocol_state_filtering_mode\' not present in VirtualNetworkInterface JSON') + raise ValueError( + 'Required property \'protocol_state_filtering_mode\' not present in VirtualNetworkInterface JSON' + ) if (resource_group := _dict.get('resource_group')) is not None: args['resource_group'] = ResourceGroupReference.from_dict(resource_group) else: @@ -94770,7 +95509,6 @@ class LifecycleStateEnum(str, Enum): UPDATING = 'updating' WAITING = 'waiting' - class ProtocolStateFilteringModeEnum(str, Enum): """ The protocol state filtering mode used for this virtual network interface. If @@ -94790,7 +95528,6 @@ class ProtocolStateFilteringModeEnum(str, Enum): DISABLED = 'disabled' ENABLED = 'enabled' - class ResourceTypeEnum(str, Enum): """ The resource type. @@ -94799,7 +95536,6 @@ class ResourceTypeEnum(str, Enum): VIRTUAL_NETWORK_INTERFACE = 'virtual_network_interface' - class VirtualNetworkInterfaceCollection: """ VirtualNetworkInterfaceCollection. @@ -94862,9 +95598,13 @@ def from_dict(cls, _dict: Dict) -> 'VirtualNetworkInterfaceCollection': else: raise ValueError('Required property \'total_count\' not present in VirtualNetworkInterfaceCollection JSON') if (virtual_network_interfaces := _dict.get('virtual_network_interfaces')) is not None: - args['virtual_network_interfaces'] = [VirtualNetworkInterface.from_dict(v) for v in virtual_network_interfaces] + args['virtual_network_interfaces'] = [ + VirtualNetworkInterface.from_dict(v) for v in virtual_network_interfaces + ] else: - raise ValueError('Required property \'virtual_network_interfaces\' not present in VirtualNetworkInterfaceCollection JSON') + raise ValueError( + 'Required property \'virtual_network_interfaces\' not present in VirtualNetworkInterfaceCollection JSON' + ) return cls(**args) @classmethod @@ -94932,7 +95672,12 @@ def __init__( """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['VirtualNetworkInterfaceIPPrototypeReservedIPIdentityVirtualNetworkInterfaceIPsContext', 'VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext']) + ", ".join( + [ + 'VirtualNetworkInterfaceIPPrototypeReservedIPIdentityVirtualNetworkInterfaceIPsContext', + 'VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext', + ] + ) ) raise Exception(msg) @@ -95109,7 +95854,6 @@ class ProtocolStateFilteringModeEnum(str, Enum): ENABLED = 'enabled' - class VirtualNetworkInterfacePrimaryIPPrototype: """ VirtualNetworkInterfacePrimaryIPPrototype. @@ -95124,7 +95868,12 @@ def __init__( """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['VirtualNetworkInterfacePrimaryIPPrototypeReservedIPIdentityVirtualNetworkInterfacePrimaryIPContext', 'VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext']) + ", ".join( + [ + 'VirtualNetworkInterfacePrimaryIPPrototypeReservedIPIdentityVirtualNetworkInterfacePrimaryIPContext', + 'VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext', + ] + ) ) raise Exception(msg) @@ -95172,23 +95921,33 @@ def from_dict(cls, _dict: Dict) -> 'VirtualNetworkInterfaceReferenceAttachmentCo if (crn := _dict.get('crn')) is not None: args['crn'] = crn else: - raise ValueError('Required property \'crn\' not present in VirtualNetworkInterfaceReferenceAttachmentContext JSON') + raise ValueError( + 'Required property \'crn\' not present in VirtualNetworkInterfaceReferenceAttachmentContext JSON' + ) if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in VirtualNetworkInterfaceReferenceAttachmentContext JSON') + raise ValueError( + 'Required property \'href\' not present in VirtualNetworkInterfaceReferenceAttachmentContext JSON' + ) if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in VirtualNetworkInterfaceReferenceAttachmentContext JSON') + raise ValueError( + 'Required property \'id\' not present in VirtualNetworkInterfaceReferenceAttachmentContext JSON' + ) if (name := _dict.get('name')) is not None: args['name'] = name else: - raise ValueError('Required property \'name\' not present in VirtualNetworkInterfaceReferenceAttachmentContext JSON') + raise ValueError( + 'Required property \'name\' not present in VirtualNetworkInterfaceReferenceAttachmentContext JSON' + ) if (resource_type := _dict.get('resource_type')) is not None: args['resource_type'] = resource_type else: - raise ValueError('Required property \'resource_type\' not present in VirtualNetworkInterfaceReferenceAttachmentContext JSON') + raise ValueError( + 'Required property \'resource_type\' not present in VirtualNetworkInterfaceReferenceAttachmentContext JSON' + ) return cls(**args) @classmethod @@ -95237,7 +95996,6 @@ class ResourceTypeEnum(str, Enum): VIRTUAL_NETWORK_INTERFACE = 'virtual_network_interface' - class VirtualNetworkInterfaceTarget: """ A virtual network interface target. @@ -95254,7 +96012,13 @@ def __init__( """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['VirtualNetworkInterfaceTargetShareMountTargetReference', 'VirtualNetworkInterfaceTargetInstanceNetworkAttachmentReferenceVirtualNetworkInterfaceContext', 'VirtualNetworkInterfaceTargetBareMetalServerNetworkAttachmentReferenceVirtualNetworkInterfaceContext']) + ", ".join( + [ + 'VirtualNetworkInterfaceTargetShareMountTargetReference', + 'VirtualNetworkInterfaceTargetInstanceNetworkAttachmentReferenceVirtualNetworkInterfaceContext', + 'VirtualNetworkInterfaceTargetBareMetalServerNetworkAttachmentReferenceVirtualNetworkInterfaceContext', + ] + ) ) raise Exception(msg) @@ -95598,7 +96362,9 @@ def from_dict(cls, _dict: Dict) -> 'Volume': else: raise ValueError('Required property \'user_tags\' not present in Volume JSON') if (volume_attachments := _dict.get('volume_attachments')) is not None: - args['volume_attachments'] = [VolumeAttachmentReferenceVolumeContext.from_dict(v) for v in volume_attachments] + args['volume_attachments'] = [ + VolumeAttachmentReferenceVolumeContext.from_dict(v) for v in volume_attachments + ] else: raise ValueError('Required property \'volume_attachments\' not present in Volume JSON') if (zone := _dict.get('zone')) is not None: @@ -95748,7 +96514,6 @@ class AdjustableCapacityStatesEnum(str, Enum): UNATTACHED = 'unattached' UNUSABLE = 'unusable' - class AdjustableIopsStatesEnum(str, Enum): """ The attachment state of the volume @@ -95762,7 +96527,6 @@ class AdjustableIopsStatesEnum(str, Enum): UNATTACHED = 'unattached' UNUSABLE = 'unusable' - class AttachmentStateEnum(str, Enum): """ The attachment state of the volume @@ -95776,7 +96540,6 @@ class AttachmentStateEnum(str, Enum): UNATTACHED = 'unattached' UNUSABLE = 'unusable' - class EncryptionEnum(str, Enum): """ The type of encryption used on the volume. @@ -95785,7 +96548,6 @@ class EncryptionEnum(str, Enum): PROVIDER_MANAGED = 'provider_managed' USER_MANAGED = 'user_managed' - class HealthStateEnum(str, Enum): """ The health of this resource: @@ -95803,7 +96565,6 @@ class HealthStateEnum(str, Enum): INAPPLICABLE = 'inapplicable' OK = 'ok' - class ResourceTypeEnum(str, Enum): """ The resource type. @@ -95811,7 +96572,6 @@ class ResourceTypeEnum(str, Enum): VOLUME = 'volume' - class StatusEnum(str, Enum): """ The status of the volume. @@ -95828,7 +96588,6 @@ class StatusEnum(str, Enum): UPDATING = 'updating' - class VolumeAttachment: """ VolumeAttachment. @@ -95929,7 +96688,9 @@ def from_dict(cls, _dict: Dict) -> 'VolumeAttachment': if (delete_volume_on_instance_delete := _dict.get('delete_volume_on_instance_delete')) is not None: args['delete_volume_on_instance_delete'] = delete_volume_on_instance_delete else: - raise ValueError('Required property \'delete_volume_on_instance_delete\' not present in VolumeAttachment JSON') + raise ValueError( + 'Required property \'delete_volume_on_instance_delete\' not present in VolumeAttachment JSON' + ) if (device := _dict.get('device')) is not None: args['device'] = VolumeAttachmentDevice.from_dict(device) if (href := _dict.get('href')) is not None: @@ -96023,7 +96784,6 @@ class StatusEnum(str, Enum): DELETING = 'deleting' DETACHING = 'detaching' - class TypeEnum(str, Enum): """ The type of volume attachment. @@ -96036,7 +96796,6 @@ class TypeEnum(str, Enum): DATA = 'data' - class VolumeAttachmentCollection: """ VolumeAttachmentCollection. @@ -96368,7 +97127,9 @@ def from_dict(cls, _dict: Dict) -> 'VolumeAttachmentPrototypeInstanceByImageCont if (volume := _dict.get('volume')) is not None: args['volume'] = VolumePrototypeInstanceByImageContext.from_dict(volume) else: - raise ValueError('Required property \'volume\' not present in VolumeAttachmentPrototypeInstanceByImageContext JSON') + raise ValueError( + 'Required property \'volume\' not present in VolumeAttachmentPrototypeInstanceByImageContext JSON' + ) return cls(**args) @classmethod @@ -96455,7 +97216,9 @@ def from_dict(cls, _dict: Dict) -> 'VolumeAttachmentPrototypeInstanceBySourceSna if (volume := _dict.get('volume')) is not None: args['volume'] = VolumePrototypeInstanceBySourceSnapshotContext.from_dict(volume) else: - raise ValueError('Required property \'volume\' not present in VolumeAttachmentPrototypeInstanceBySourceSnapshotContext JSON') + raise ValueError( + 'Required property \'volume\' not present in VolumeAttachmentPrototypeInstanceBySourceSnapshotContext JSON' + ) return cls(**args) @classmethod @@ -96540,7 +97303,9 @@ def from_dict(cls, _dict: Dict) -> 'VolumeAttachmentPrototypeInstanceByVolumeCon if (volume := _dict.get('volume')) is not None: args['volume'] = volume else: - raise ValueError('Required property \'volume\' not present in VolumeAttachmentPrototypeInstanceByVolumeContext JSON') + raise ValueError( + 'Required property \'volume\' not present in VolumeAttachmentPrototypeInstanceByVolumeContext JSON' + ) return cls(**args) @classmethod @@ -96595,7 +97360,12 @@ def __init__( """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['VolumeAttachmentPrototypeVolumeVolumeIdentity', 'VolumeAttachmentPrototypeVolumeVolumePrototypeInstanceContext']) + ", ".join( + [ + 'VolumeAttachmentPrototypeVolumeVolumeIdentity', + 'VolumeAttachmentPrototypeVolumeVolumePrototypeInstanceContext', + ] + ) ) raise Exception(msg) @@ -96803,7 +97573,9 @@ def from_dict(cls, _dict: Dict) -> 'VolumeAttachmentReferenceVolumeContext': if (delete_volume_on_instance_delete := _dict.get('delete_volume_on_instance_delete')) is not None: args['delete_volume_on_instance_delete'] = delete_volume_on_instance_delete else: - raise ValueError('Required property \'delete_volume_on_instance_delete\' not present in VolumeAttachmentReferenceVolumeContext JSON') + raise ValueError( + 'Required property \'delete_volume_on_instance_delete\' not present in VolumeAttachmentReferenceVolumeContext JSON' + ) if (deleted := _dict.get('deleted')) is not None: args['deleted'] = Deleted.from_dict(deleted) if (device := _dict.get('device')) is not None: @@ -96819,7 +97591,9 @@ def from_dict(cls, _dict: Dict) -> 'VolumeAttachmentReferenceVolumeContext': if (instance := _dict.get('instance')) is not None: args['instance'] = InstanceReference.from_dict(instance) else: - raise ValueError('Required property \'instance\' not present in VolumeAttachmentReferenceVolumeContext JSON') + raise ValueError( + 'Required property \'instance\' not present in VolumeAttachmentReferenceVolumeContext JSON' + ) if (name := _dict.get('name')) is not None: args['name'] = name else: @@ -96895,7 +97669,6 @@ class TypeEnum(str, Enum): DATA = 'data' - class VolumeCatalogOffering: """ VolumeCatalogOffering. @@ -97184,7 +97957,6 @@ class CodeEnum(str, Enum): THROTTLED_BY_INSUFFICIENT_INSTANCE_BANDWIDTH = 'throttled_by_insufficient_instance_bandwidth' - class VolumeIdentity: """ Identifies a volume by a unique property. @@ -97411,7 +98183,9 @@ def from_dict(cls, _dict: Dict) -> 'VolumeProfile': """Initialize a VolumeProfile object from a json dictionary.""" args = {} if (adjustable_capacity_states := _dict.get('adjustable_capacity_states')) is not None: - args['adjustable_capacity_states'] = VolumeProfileAdjustableCapacityStates.from_dict(adjustable_capacity_states) + args['adjustable_capacity_states'] = VolumeProfileAdjustableCapacityStates.from_dict( + adjustable_capacity_states + ) else: raise ValueError('Required property \'adjustable_capacity_states\' not present in VolumeProfile JSON') if (adjustable_iops_states := _dict.get('adjustable_iops_states')) is not None: @@ -97516,7 +98290,6 @@ class FamilyEnum(str, Enum): TIERED = 'tiered' - class VolumeProfileAdjustableCapacityStates: """ VolumeProfileAdjustableCapacityStates. @@ -97594,7 +98367,6 @@ class TypeEnum(str, Enum): ENUM = 'enum' - class ValuesEnum(str, Enum): """ The attachment state of the volume @@ -97609,7 +98381,6 @@ class ValuesEnum(str, Enum): UNUSABLE = 'unusable' - class VolumeProfileAdjustableIOPSStates: """ VolumeProfileAdjustableIOPSStates. @@ -97687,7 +98458,6 @@ class TypeEnum(str, Enum): ENUM = 'enum' - class ValuesEnum(str, Enum): """ The attachment state of the volume @@ -97702,7 +98472,6 @@ class ValuesEnum(str, Enum): UNUSABLE = 'unusable' - class VolumeProfileBootCapacity: """ VolumeProfileBootCapacity. @@ -97717,7 +98486,14 @@ def __init__( """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['VolumeProfileBootCapacityFixed', 'VolumeProfileBootCapacityRange', 'VolumeProfileBootCapacityEnum', 'VolumeProfileBootCapacityDependentRange']) + ", ".join( + [ + 'VolumeProfileBootCapacityFixed', + 'VolumeProfileBootCapacityRange', + 'VolumeProfileBootCapacityEnum', + 'VolumeProfileBootCapacityDependentRange', + ] + ) ) raise Exception(msg) @@ -97736,7 +98512,14 @@ def __init__( """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['VolumeProfileCapacityFixed', 'VolumeProfileCapacityRange', 'VolumeProfileCapacityEnum', 'VolumeProfileCapacityDependentRange']) + ", ".join( + [ + 'VolumeProfileCapacityFixed', + 'VolumeProfileCapacityRange', + 'VolumeProfileCapacityEnum', + 'VolumeProfileCapacityDependentRange', + ] + ) ) raise Exception(msg) @@ -97871,7 +98654,14 @@ def __init__( """ msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['VolumeProfileIOPSFixed', 'VolumeProfileIOPSRange', 'VolumeProfileIOPSEnum', 'VolumeProfileIOPSDependentRange']) + ", ".join( + [ + 'VolumeProfileIOPSFixed', + 'VolumeProfileIOPSRange', + 'VolumeProfileIOPSEnum', + 'VolumeProfileIOPSDependentRange', + ] + ) ) raise Exception(msg) @@ -98276,13 +99066,17 @@ def from_dict(cls, _dict: Dict) -> 'VolumePrototypeInstanceBySourceSnapshotConte if (profile := _dict.get('profile')) is not None: args['profile'] = profile else: - raise ValueError('Required property \'profile\' not present in VolumePrototypeInstanceBySourceSnapshotContext JSON') + raise ValueError( + 'Required property \'profile\' not present in VolumePrototypeInstanceBySourceSnapshotContext JSON' + ) if (resource_group := _dict.get('resource_group')) is not None: args['resource_group'] = resource_group if (source_snapshot := _dict.get('source_snapshot')) is not None: args['source_snapshot'] = source_snapshot else: - raise ValueError('Required property \'source_snapshot\' not present in VolumePrototypeInstanceBySourceSnapshotContext JSON') + raise ValueError( + 'Required property \'source_snapshot\' not present in VolumePrototypeInstanceBySourceSnapshotContext JSON' + ) if (user_tags := _dict.get('user_tags')) is not None: args['user_tags'] = user_tags return cls(**args) @@ -98483,7 +99277,6 @@ class ResourceTypeEnum(str, Enum): VOLUME = 'volume' - class VolumeReferenceVolumeAttachmentContext: """ VolumeReferenceVolumeAttachmentContext. @@ -98554,7 +99347,9 @@ def from_dict(cls, _dict: Dict) -> 'VolumeReferenceVolumeAttachmentContext': if (resource_type := _dict.get('resource_type')) is not None: args['resource_type'] = resource_type else: - raise ValueError('Required property \'resource_type\' not present in VolumeReferenceVolumeAttachmentContext JSON') + raise ValueError( + 'Required property \'resource_type\' not present in VolumeReferenceVolumeAttachmentContext JSON' + ) return cls(**args) @classmethod @@ -98608,7 +99403,6 @@ class ResourceTypeEnum(str, Enum): VOLUME = 'volume' - class VolumeRemote: """ If present, this property indicates that the resource associated with this reference @@ -98771,7 +99565,6 @@ class CodeEnum(str, Enum): ENCRYPTION_KEY_DELETED = 'encryption_key_deleted' - class Zone: """ Zone. @@ -98926,7 +99719,6 @@ class StatusEnum(str, Enum): UNAVAILABLE = 'unavailable' - class ZoneCollection: """ ZoneCollection. @@ -99329,7 +100121,9 @@ def from_dict(cls, _dict: Dict) -> 'BackupPolicyJobSourceVolumeReference': if (resource_type := _dict.get('resource_type')) is not None: args['resource_type'] = resource_type else: - raise ValueError('Required property \'resource_type\' not present in BackupPolicyJobSourceVolumeReference JSON') + raise ValueError( + 'Required property \'resource_type\' not present in BackupPolicyJobSourceVolumeReference JSON' + ) return cls(**args) @classmethod @@ -99388,7 +100182,6 @@ class ResourceTypeEnum(str, Enum): VOLUME = 'volume' - class BackupPolicyMatchResourceTypeInstance(BackupPolicy): """ BackupPolicyMatchResourceTypeInstance. @@ -99536,7 +100329,9 @@ def from_dict(cls, _dict: Dict) -> 'BackupPolicyMatchResourceTypeInstance': if (created_at := _dict.get('created_at')) is not None: args['created_at'] = string_to_datetime(created_at) else: - raise ValueError('Required property \'created_at\' not present in BackupPolicyMatchResourceTypeInstance JSON') + raise ValueError( + 'Required property \'created_at\' not present in BackupPolicyMatchResourceTypeInstance JSON' + ) if (crn := _dict.get('crn')) is not None: args['crn'] = crn else: @@ -99544,11 +100339,15 @@ def from_dict(cls, _dict: Dict) -> 'BackupPolicyMatchResourceTypeInstance': if (health_reasons := _dict.get('health_reasons')) is not None: args['health_reasons'] = [BackupPolicyHealthReason.from_dict(v) for v in health_reasons] else: - raise ValueError('Required property \'health_reasons\' not present in BackupPolicyMatchResourceTypeInstance JSON') + raise ValueError( + 'Required property \'health_reasons\' not present in BackupPolicyMatchResourceTypeInstance JSON' + ) if (health_state := _dict.get('health_state')) is not None: args['health_state'] = health_state else: - raise ValueError('Required property \'health_state\' not present in BackupPolicyMatchResourceTypeInstance JSON') + raise ValueError( + 'Required property \'health_state\' not present in BackupPolicyMatchResourceTypeInstance JSON' + ) if (href := _dict.get('href')) is not None: args['href'] = href else: @@ -99562,11 +100361,15 @@ def from_dict(cls, _dict: Dict) -> 'BackupPolicyMatchResourceTypeInstance': if (lifecycle_state := _dict.get('lifecycle_state')) is not None: args['lifecycle_state'] = lifecycle_state else: - raise ValueError('Required property \'lifecycle_state\' not present in BackupPolicyMatchResourceTypeInstance JSON') + raise ValueError( + 'Required property \'lifecycle_state\' not present in BackupPolicyMatchResourceTypeInstance JSON' + ) if (match_user_tags := _dict.get('match_user_tags')) is not None: args['match_user_tags'] = match_user_tags else: - raise ValueError('Required property \'match_user_tags\' not present in BackupPolicyMatchResourceTypeInstance JSON') + raise ValueError( + 'Required property \'match_user_tags\' not present in BackupPolicyMatchResourceTypeInstance JSON' + ) if (name := _dict.get('name')) is not None: args['name'] = name else: @@ -99578,11 +100381,15 @@ def from_dict(cls, _dict: Dict) -> 'BackupPolicyMatchResourceTypeInstance': if (resource_group := _dict.get('resource_group')) is not None: args['resource_group'] = ResourceGroupReference.from_dict(resource_group) else: - raise ValueError('Required property \'resource_group\' not present in BackupPolicyMatchResourceTypeInstance JSON') + raise ValueError( + 'Required property \'resource_group\' not present in BackupPolicyMatchResourceTypeInstance JSON' + ) if (resource_type := _dict.get('resource_type')) is not None: args['resource_type'] = resource_type else: - raise ValueError('Required property \'resource_type\' not present in BackupPolicyMatchResourceTypeInstance JSON') + raise ValueError( + 'Required property \'resource_type\' not present in BackupPolicyMatchResourceTypeInstance JSON' + ) if (scope := _dict.get('scope')) is not None: args['scope'] = scope else: @@ -99590,11 +100397,15 @@ def from_dict(cls, _dict: Dict) -> 'BackupPolicyMatchResourceTypeInstance': if (included_content := _dict.get('included_content')) is not None: args['included_content'] = included_content else: - raise ValueError('Required property \'included_content\' not present in BackupPolicyMatchResourceTypeInstance JSON') + raise ValueError( + 'Required property \'included_content\' not present in BackupPolicyMatchResourceTypeInstance JSON' + ) if (match_resource_type := _dict.get('match_resource_type')) is not None: args['match_resource_type'] = match_resource_type else: - raise ValueError('Required property \'match_resource_type\' not present in BackupPolicyMatchResourceTypeInstance JSON') + raise ValueError( + 'Required property \'match_resource_type\' not present in BackupPolicyMatchResourceTypeInstance JSON' + ) return cls(**args) @classmethod @@ -99692,7 +100503,6 @@ class HealthStateEnum(str, Enum): INAPPLICABLE = 'inapplicable' OK = 'ok' - class LifecycleStateEnum(str, Enum): """ The lifecycle state of the backup policy. @@ -99706,7 +100516,6 @@ class LifecycleStateEnum(str, Enum): UPDATING = 'updating' WAITING = 'waiting' - class ResourceTypeEnum(str, Enum): """ The resource type. @@ -99714,7 +100523,6 @@ class ResourceTypeEnum(str, Enum): BACKUP_POLICY = 'backup_policy' - class IncludedContentEnum(str, Enum): """ An item to include. @@ -99723,7 +100531,6 @@ class IncludedContentEnum(str, Enum): BOOT_VOLUME = 'boot_volume' DATA_VOLUMES = 'data_volumes' - class MatchResourceTypeEnum(str, Enum): """ The resource type this backup policy applies to. Resources that have both a @@ -99736,7 +100543,6 @@ class MatchResourceTypeEnum(str, Enum): INSTANCE = 'instance' - class BackupPolicyMatchResourceTypeVolume(BackupPolicy): """ BackupPolicyMatchResourceTypeVolume. @@ -99876,11 +100682,15 @@ def from_dict(cls, _dict: Dict) -> 'BackupPolicyMatchResourceTypeVolume': if (health_reasons := _dict.get('health_reasons')) is not None: args['health_reasons'] = [BackupPolicyHealthReason.from_dict(v) for v in health_reasons] else: - raise ValueError('Required property \'health_reasons\' not present in BackupPolicyMatchResourceTypeVolume JSON') + raise ValueError( + 'Required property \'health_reasons\' not present in BackupPolicyMatchResourceTypeVolume JSON' + ) if (health_state := _dict.get('health_state')) is not None: args['health_state'] = health_state else: - raise ValueError('Required property \'health_state\' not present in BackupPolicyMatchResourceTypeVolume JSON') + raise ValueError( + 'Required property \'health_state\' not present in BackupPolicyMatchResourceTypeVolume JSON' + ) if (href := _dict.get('href')) is not None: args['href'] = href else: @@ -99894,11 +100704,15 @@ def from_dict(cls, _dict: Dict) -> 'BackupPolicyMatchResourceTypeVolume': if (lifecycle_state := _dict.get('lifecycle_state')) is not None: args['lifecycle_state'] = lifecycle_state else: - raise ValueError('Required property \'lifecycle_state\' not present in BackupPolicyMatchResourceTypeVolume JSON') + raise ValueError( + 'Required property \'lifecycle_state\' not present in BackupPolicyMatchResourceTypeVolume JSON' + ) if (match_user_tags := _dict.get('match_user_tags')) is not None: args['match_user_tags'] = match_user_tags else: - raise ValueError('Required property \'match_user_tags\' not present in BackupPolicyMatchResourceTypeVolume JSON') + raise ValueError( + 'Required property \'match_user_tags\' not present in BackupPolicyMatchResourceTypeVolume JSON' + ) if (name := _dict.get('name')) is not None: args['name'] = name else: @@ -99910,11 +100724,15 @@ def from_dict(cls, _dict: Dict) -> 'BackupPolicyMatchResourceTypeVolume': if (resource_group := _dict.get('resource_group')) is not None: args['resource_group'] = ResourceGroupReference.from_dict(resource_group) else: - raise ValueError('Required property \'resource_group\' not present in BackupPolicyMatchResourceTypeVolume JSON') + raise ValueError( + 'Required property \'resource_group\' not present in BackupPolicyMatchResourceTypeVolume JSON' + ) if (resource_type := _dict.get('resource_type')) is not None: args['resource_type'] = resource_type else: - raise ValueError('Required property \'resource_type\' not present in BackupPolicyMatchResourceTypeVolume JSON') + raise ValueError( + 'Required property \'resource_type\' not present in BackupPolicyMatchResourceTypeVolume JSON' + ) if (scope := _dict.get('scope')) is not None: args['scope'] = scope else: @@ -99922,7 +100740,9 @@ def from_dict(cls, _dict: Dict) -> 'BackupPolicyMatchResourceTypeVolume': if (match_resource_type := _dict.get('match_resource_type')) is not None: args['match_resource_type'] = match_resource_type else: - raise ValueError('Required property \'match_resource_type\' not present in BackupPolicyMatchResourceTypeVolume JSON') + raise ValueError( + 'Required property \'match_resource_type\' not present in BackupPolicyMatchResourceTypeVolume JSON' + ) return cls(**args) @classmethod @@ -100018,7 +100838,6 @@ class HealthStateEnum(str, Enum): INAPPLICABLE = 'inapplicable' OK = 'ok' - class LifecycleStateEnum(str, Enum): """ The lifecycle state of the backup policy. @@ -100032,7 +100851,6 @@ class LifecycleStateEnum(str, Enum): UPDATING = 'updating' WAITING = 'waiting' - class ResourceTypeEnum(str, Enum): """ The resource type. @@ -100040,7 +100858,6 @@ class ResourceTypeEnum(str, Enum): BACKUP_POLICY = 'backup_policy' - class MatchResourceTypeEnum(str, Enum): """ The resource type this backup policy applies to. Resources that have both a @@ -100053,7 +100870,6 @@ class MatchResourceTypeEnum(str, Enum): VOLUME = 'volume' - class BackupPolicyPrototypeBackupPolicyMatchResourceTypeInstancePrototype(BackupPolicyPrototype): """ BackupPolicyPrototypeBackupPolicyMatchResourceTypeInstancePrototype. @@ -100125,7 +100941,9 @@ def from_dict(cls, _dict: Dict) -> 'BackupPolicyPrototypeBackupPolicyMatchResour if (match_user_tags := _dict.get('match_user_tags')) is not None: args['match_user_tags'] = match_user_tags else: - raise ValueError('Required property \'match_user_tags\' not present in BackupPolicyPrototypeBackupPolicyMatchResourceTypeInstancePrototype JSON') + raise ValueError( + 'Required property \'match_user_tags\' not present in BackupPolicyPrototypeBackupPolicyMatchResourceTypeInstancePrototype JSON' + ) if (name := _dict.get('name')) is not None: args['name'] = name if (plans := _dict.get('plans')) is not None: @@ -100139,7 +100957,9 @@ def from_dict(cls, _dict: Dict) -> 'BackupPolicyPrototypeBackupPolicyMatchResour if (match_resource_type := _dict.get('match_resource_type')) is not None: args['match_resource_type'] = match_resource_type else: - raise ValueError('Required property \'match_resource_type\' not present in BackupPolicyPrototypeBackupPolicyMatchResourceTypeInstancePrototype JSON') + raise ValueError( + 'Required property \'match_resource_type\' not present in BackupPolicyPrototypeBackupPolicyMatchResourceTypeInstancePrototype JSON' + ) return cls(**args) @classmethod @@ -100204,7 +101024,6 @@ class IncludedContentEnum(str, Enum): BOOT_VOLUME = 'boot_volume' DATA_VOLUMES = 'data_volumes' - class MatchResourceTypeEnum(str, Enum): """ The resource type this backup policy will apply to. Resources that have both a @@ -100214,7 +101033,6 @@ class MatchResourceTypeEnum(str, Enum): INSTANCE = 'instance' - class BackupPolicyPrototypeBackupPolicyMatchResourceTypeVolumePrototype(BackupPolicyPrototype): """ BackupPolicyPrototypeBackupPolicyMatchResourceTypeVolumePrototype. @@ -100276,7 +101094,9 @@ def from_dict(cls, _dict: Dict) -> 'BackupPolicyPrototypeBackupPolicyMatchResour if (match_user_tags := _dict.get('match_user_tags')) is not None: args['match_user_tags'] = match_user_tags else: - raise ValueError('Required property \'match_user_tags\' not present in BackupPolicyPrototypeBackupPolicyMatchResourceTypeVolumePrototype JSON') + raise ValueError( + 'Required property \'match_user_tags\' not present in BackupPolicyPrototypeBackupPolicyMatchResourceTypeVolumePrototype JSON' + ) if (name := _dict.get('name')) is not None: args['name'] = name if (plans := _dict.get('plans')) is not None: @@ -100288,7 +101108,9 @@ def from_dict(cls, _dict: Dict) -> 'BackupPolicyPrototypeBackupPolicyMatchResour if (match_resource_type := _dict.get('match_resource_type')) is not None: args['match_resource_type'] = match_resource_type else: - raise ValueError('Required property \'match_resource_type\' not present in BackupPolicyPrototypeBackupPolicyMatchResourceTypeVolumePrototype JSON') + raise ValueError( + 'Required property \'match_resource_type\' not present in BackupPolicyPrototypeBackupPolicyMatchResourceTypeVolumePrototype JSON' + ) return cls(**args) @classmethod @@ -100352,7 +101174,6 @@ class MatchResourceTypeEnum(str, Enum): VOLUME = 'volume' - class BackupPolicyScopePrototypeEnterpriseIdentity(BackupPolicyScopePrototype): """ Identifies an enterprise by a unique property. @@ -100407,7 +101228,9 @@ def from_dict(cls, _dict: Dict) -> 'BackupPolicyScopeAccountReference': if (resource_type := _dict.get('resource_type')) is not None: args['resource_type'] = resource_type else: - raise ValueError('Required property \'resource_type\' not present in BackupPolicyScopeAccountReference JSON') + raise ValueError( + 'Required property \'resource_type\' not present in BackupPolicyScopeAccountReference JSON' + ) return cls(**args) @classmethod @@ -100450,7 +101273,6 @@ class ResourceTypeEnum(str, Enum): ACCOUNT = 'account' - class BackupPolicyScopeEnterpriseReference(BackupPolicyScope): """ BackupPolicyScopeEnterpriseReference. @@ -100493,7 +101315,9 @@ def from_dict(cls, _dict: Dict) -> 'BackupPolicyScopeEnterpriseReference': if (resource_type := _dict.get('resource_type')) is not None: args['resource_type'] = resource_type else: - raise ValueError('Required property \'resource_type\' not present in BackupPolicyScopeEnterpriseReference JSON') + raise ValueError( + 'Required property \'resource_type\' not present in BackupPolicyScopeEnterpriseReference JSON' + ) return cls(**args) @classmethod @@ -100538,7 +101362,6 @@ class ResourceTypeEnum(str, Enum): ENTERPRISE = 'enterprise' - class BareMetalServerBootTargetBareMetalServerDiskReference(BareMetalServerBootTarget): """ BareMetalServerBootTargetBareMetalServerDiskReference. @@ -100590,19 +101413,27 @@ def from_dict(cls, _dict: Dict) -> 'BareMetalServerBootTargetBareMetalServerDisk if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in BareMetalServerBootTargetBareMetalServerDiskReference JSON') + raise ValueError( + 'Required property \'href\' not present in BareMetalServerBootTargetBareMetalServerDiskReference JSON' + ) if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in BareMetalServerBootTargetBareMetalServerDiskReference JSON') + raise ValueError( + 'Required property \'id\' not present in BareMetalServerBootTargetBareMetalServerDiskReference JSON' + ) if (name := _dict.get('name')) is not None: args['name'] = name else: - raise ValueError('Required property \'name\' not present in BareMetalServerBootTargetBareMetalServerDiskReference JSON') + raise ValueError( + 'Required property \'name\' not present in BareMetalServerBootTargetBareMetalServerDiskReference JSON' + ) if (resource_type := _dict.get('resource_type')) is not None: args['resource_type'] = resource_type else: - raise ValueError('Required property \'resource_type\' not present in BareMetalServerBootTargetBareMetalServerDiskReference JSON') + raise ValueError( + 'Required property \'resource_type\' not present in BareMetalServerBootTargetBareMetalServerDiskReference JSON' + ) return cls(**args) @classmethod @@ -100654,8 +101485,9 @@ class ResourceTypeEnum(str, Enum): BARE_METAL_SERVER_DISK = 'bare_metal_server_disk' - -class BareMetalServerInitializationUserAccountBareMetalServerInitializationHostUserAccount(BareMetalServerInitializationUserAccount): +class BareMetalServerInitializationUserAccountBareMetalServerInitializationHostUserAccount( + BareMetalServerInitializationUserAccount +): """ BareMetalServerInitializationUserAccountBareMetalServerInitializationHostUserAccount. @@ -100692,25 +101524,35 @@ def __init__( self.username = username @classmethod - def from_dict(cls, _dict: Dict) -> 'BareMetalServerInitializationUserAccountBareMetalServerInitializationHostUserAccount': + def from_dict( + cls, _dict: Dict + ) -> 'BareMetalServerInitializationUserAccountBareMetalServerInitializationHostUserAccount': """Initialize a BareMetalServerInitializationUserAccountBareMetalServerInitializationHostUserAccount object from a json dictionary.""" args = {} if (encrypted_password := _dict.get('encrypted_password')) is not None: args['encrypted_password'] = base64.b64decode(encrypted_password) else: - raise ValueError('Required property \'encrypted_password\' not present in BareMetalServerInitializationUserAccountBareMetalServerInitializationHostUserAccount JSON') + raise ValueError( + 'Required property \'encrypted_password\' not present in BareMetalServerInitializationUserAccountBareMetalServerInitializationHostUserAccount JSON' + ) if (encryption_key := _dict.get('encryption_key')) is not None: args['encryption_key'] = KeyReference.from_dict(encryption_key) else: - raise ValueError('Required property \'encryption_key\' not present in BareMetalServerInitializationUserAccountBareMetalServerInitializationHostUserAccount JSON') + raise ValueError( + 'Required property \'encryption_key\' not present in BareMetalServerInitializationUserAccountBareMetalServerInitializationHostUserAccount JSON' + ) if (resource_type := _dict.get('resource_type')) is not None: args['resource_type'] = resource_type else: - raise ValueError('Required property \'resource_type\' not present in BareMetalServerInitializationUserAccountBareMetalServerInitializationHostUserAccount JSON') + raise ValueError( + 'Required property \'resource_type\' not present in BareMetalServerInitializationUserAccountBareMetalServerInitializationHostUserAccount JSON' + ) if (username := _dict.get('username')) is not None: args['username'] = username else: - raise ValueError('Required property \'username\' not present in BareMetalServerInitializationUserAccountBareMetalServerInitializationHostUserAccount JSON') + raise ValueError( + 'Required property \'username\' not present in BareMetalServerInitializationUserAccountBareMetalServerInitializationHostUserAccount JSON' + ) return cls(**args) @classmethod @@ -100742,13 +101584,17 @@ def __str__(self) -> str: """Return a `str` version of this BareMetalServerInitializationUserAccountBareMetalServerInitializationHostUserAccount object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'BareMetalServerInitializationUserAccountBareMetalServerInitializationHostUserAccount') -> bool: + def __eq__( + self, other: 'BareMetalServerInitializationUserAccountBareMetalServerInitializationHostUserAccount' + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'BareMetalServerInitializationUserAccountBareMetalServerInitializationHostUserAccount') -> bool: + def __ne__( + self, other: 'BareMetalServerInitializationUserAccountBareMetalServerInitializationHostUserAccount' + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other @@ -100760,7 +101606,6 @@ class ResourceTypeEnum(str, Enum): HOST_USER_ACCOUNT = 'host_user_account' - class BareMetalServerNetworkAttachmentByPCI(BareMetalServerNetworkAttachment): """ BareMetalServerNetworkAttachmentByPCI. @@ -100874,7 +101719,9 @@ def from_dict(cls, _dict: Dict) -> 'BareMetalServerNetworkAttachmentByPCI': if (created_at := _dict.get('created_at')) is not None: args['created_at'] = string_to_datetime(created_at) else: - raise ValueError('Required property \'created_at\' not present in BareMetalServerNetworkAttachmentByPCI JSON') + raise ValueError( + 'Required property \'created_at\' not present in BareMetalServerNetworkAttachmentByPCI JSON' + ) if (href := _dict.get('href')) is not None: args['href'] = href else: @@ -100886,7 +101733,9 @@ def from_dict(cls, _dict: Dict) -> 'BareMetalServerNetworkAttachmentByPCI': if (lifecycle_state := _dict.get('lifecycle_state')) is not None: args['lifecycle_state'] = lifecycle_state else: - raise ValueError('Required property \'lifecycle_state\' not present in BareMetalServerNetworkAttachmentByPCI JSON') + raise ValueError( + 'Required property \'lifecycle_state\' not present in BareMetalServerNetworkAttachmentByPCI JSON' + ) if (name := _dict.get('name')) is not None: args['name'] = name else: @@ -100894,15 +101743,21 @@ def from_dict(cls, _dict: Dict) -> 'BareMetalServerNetworkAttachmentByPCI': if (port_speed := _dict.get('port_speed')) is not None: args['port_speed'] = port_speed else: - raise ValueError('Required property \'port_speed\' not present in BareMetalServerNetworkAttachmentByPCI JSON') + raise ValueError( + 'Required property \'port_speed\' not present in BareMetalServerNetworkAttachmentByPCI JSON' + ) if (primary_ip := _dict.get('primary_ip')) is not None: args['primary_ip'] = ReservedIPReference.from_dict(primary_ip) else: - raise ValueError('Required property \'primary_ip\' not present in BareMetalServerNetworkAttachmentByPCI JSON') + raise ValueError( + 'Required property \'primary_ip\' not present in BareMetalServerNetworkAttachmentByPCI JSON' + ) if (resource_type := _dict.get('resource_type')) is not None: args['resource_type'] = resource_type else: - raise ValueError('Required property \'resource_type\' not present in BareMetalServerNetworkAttachmentByPCI JSON') + raise ValueError( + 'Required property \'resource_type\' not present in BareMetalServerNetworkAttachmentByPCI JSON' + ) if (subnet := _dict.get('subnet')) is not None: args['subnet'] = SubnetReference.from_dict(subnet) else: @@ -100912,17 +101767,25 @@ def from_dict(cls, _dict: Dict) -> 'BareMetalServerNetworkAttachmentByPCI': else: raise ValueError('Required property \'type\' not present in BareMetalServerNetworkAttachmentByPCI JSON') if (virtual_network_interface := _dict.get('virtual_network_interface')) is not None: - args['virtual_network_interface'] = VirtualNetworkInterfaceReferenceAttachmentContext.from_dict(virtual_network_interface) + args['virtual_network_interface'] = VirtualNetworkInterfaceReferenceAttachmentContext.from_dict( + virtual_network_interface + ) else: - raise ValueError('Required property \'virtual_network_interface\' not present in BareMetalServerNetworkAttachmentByPCI JSON') + raise ValueError( + 'Required property \'virtual_network_interface\' not present in BareMetalServerNetworkAttachmentByPCI JSON' + ) if (allowed_vlans := _dict.get('allowed_vlans')) is not None: args['allowed_vlans'] = allowed_vlans else: - raise ValueError('Required property \'allowed_vlans\' not present in BareMetalServerNetworkAttachmentByPCI JSON') + raise ValueError( + 'Required property \'allowed_vlans\' not present in BareMetalServerNetworkAttachmentByPCI JSON' + ) if (interface_type := _dict.get('interface_type')) is not None: args['interface_type'] = interface_type else: - raise ValueError('Required property \'interface_type\' not present in BareMetalServerNetworkAttachmentByPCI JSON') + raise ValueError( + 'Required property \'interface_type\' not present in BareMetalServerNetworkAttachmentByPCI JSON' + ) return cls(**args) @classmethod @@ -101001,7 +101864,6 @@ class LifecycleStateEnum(str, Enum): UPDATING = 'updating' WAITING = 'waiting' - class ResourceTypeEnum(str, Enum): """ The resource type. @@ -101009,7 +101871,6 @@ class ResourceTypeEnum(str, Enum): BARE_METAL_SERVER_NETWORK_ATTACHMENT = 'bare_metal_server_network_attachment' - class TypeEnum(str, Enum): """ The bare metal server network attachment type. @@ -101021,7 +101882,6 @@ class TypeEnum(str, Enum): PRIMARY = 'primary' SECONDARY = 'secondary' - class InterfaceTypeEnum(str, Enum): """ - `pci`: a physical PCI device which can only be created or deleted when the bare @@ -101036,7 +101896,6 @@ class InterfaceTypeEnum(str, Enum): PCI = 'pci' - class BareMetalServerNetworkAttachmentByVLAN(BareMetalServerNetworkAttachment): """ BareMetalServerNetworkAttachmentByVLAN. @@ -101170,7 +102029,9 @@ def from_dict(cls, _dict: Dict) -> 'BareMetalServerNetworkAttachmentByVLAN': if (created_at := _dict.get('created_at')) is not None: args['created_at'] = string_to_datetime(created_at) else: - raise ValueError('Required property \'created_at\' not present in BareMetalServerNetworkAttachmentByVLAN JSON') + raise ValueError( + 'Required property \'created_at\' not present in BareMetalServerNetworkAttachmentByVLAN JSON' + ) if (href := _dict.get('href')) is not None: args['href'] = href else: @@ -101182,7 +102043,9 @@ def from_dict(cls, _dict: Dict) -> 'BareMetalServerNetworkAttachmentByVLAN': if (lifecycle_state := _dict.get('lifecycle_state')) is not None: args['lifecycle_state'] = lifecycle_state else: - raise ValueError('Required property \'lifecycle_state\' not present in BareMetalServerNetworkAttachmentByVLAN JSON') + raise ValueError( + 'Required property \'lifecycle_state\' not present in BareMetalServerNetworkAttachmentByVLAN JSON' + ) if (name := _dict.get('name')) is not None: args['name'] = name else: @@ -101190,15 +102053,21 @@ def from_dict(cls, _dict: Dict) -> 'BareMetalServerNetworkAttachmentByVLAN': if (port_speed := _dict.get('port_speed')) is not None: args['port_speed'] = port_speed else: - raise ValueError('Required property \'port_speed\' not present in BareMetalServerNetworkAttachmentByVLAN JSON') + raise ValueError( + 'Required property \'port_speed\' not present in BareMetalServerNetworkAttachmentByVLAN JSON' + ) if (primary_ip := _dict.get('primary_ip')) is not None: args['primary_ip'] = ReservedIPReference.from_dict(primary_ip) else: - raise ValueError('Required property \'primary_ip\' not present in BareMetalServerNetworkAttachmentByVLAN JSON') + raise ValueError( + 'Required property \'primary_ip\' not present in BareMetalServerNetworkAttachmentByVLAN JSON' + ) if (resource_type := _dict.get('resource_type')) is not None: args['resource_type'] = resource_type else: - raise ValueError('Required property \'resource_type\' not present in BareMetalServerNetworkAttachmentByVLAN JSON') + raise ValueError( + 'Required property \'resource_type\' not present in BareMetalServerNetworkAttachmentByVLAN JSON' + ) if (subnet := _dict.get('subnet')) is not None: args['subnet'] = SubnetReference.from_dict(subnet) else: @@ -101208,17 +102077,25 @@ def from_dict(cls, _dict: Dict) -> 'BareMetalServerNetworkAttachmentByVLAN': else: raise ValueError('Required property \'type\' not present in BareMetalServerNetworkAttachmentByVLAN JSON') if (virtual_network_interface := _dict.get('virtual_network_interface')) is not None: - args['virtual_network_interface'] = VirtualNetworkInterfaceReferenceAttachmentContext.from_dict(virtual_network_interface) + args['virtual_network_interface'] = VirtualNetworkInterfaceReferenceAttachmentContext.from_dict( + virtual_network_interface + ) else: - raise ValueError('Required property \'virtual_network_interface\' not present in BareMetalServerNetworkAttachmentByVLAN JSON') + raise ValueError( + 'Required property \'virtual_network_interface\' not present in BareMetalServerNetworkAttachmentByVLAN JSON' + ) if (allow_to_float := _dict.get('allow_to_float')) is not None: args['allow_to_float'] = allow_to_float else: - raise ValueError('Required property \'allow_to_float\' not present in BareMetalServerNetworkAttachmentByVLAN JSON') + raise ValueError( + 'Required property \'allow_to_float\' not present in BareMetalServerNetworkAttachmentByVLAN JSON' + ) if (interface_type := _dict.get('interface_type')) is not None: args['interface_type'] = interface_type else: - raise ValueError('Required property \'interface_type\' not present in BareMetalServerNetworkAttachmentByVLAN JSON') + raise ValueError( + 'Required property \'interface_type\' not present in BareMetalServerNetworkAttachmentByVLAN JSON' + ) if (vlan := _dict.get('vlan')) is not None: args['vlan'] = vlan else: @@ -101303,7 +102180,6 @@ class LifecycleStateEnum(str, Enum): UPDATING = 'updating' WAITING = 'waiting' - class ResourceTypeEnum(str, Enum): """ The resource type. @@ -101311,7 +102187,6 @@ class ResourceTypeEnum(str, Enum): BARE_METAL_SERVER_NETWORK_ATTACHMENT = 'bare_metal_server_network_attachment' - class TypeEnum(str, Enum): """ The bare metal server network attachment type. @@ -101323,7 +102198,6 @@ class TypeEnum(str, Enum): PRIMARY = 'primary' SECONDARY = 'secondary' - class InterfaceTypeEnum(str, Enum): """ - `vlan`: a virtual device, used through a `pci` device that has the `vlan` in its @@ -101335,8 +102209,9 @@ class InterfaceTypeEnum(str, Enum): VLAN = 'vlan' - -class BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentity(BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterface): +class BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentity( + BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterface +): """ Identifies a virtual network interface by a unique property. @@ -101351,12 +102226,20 @@ def __init__( """ # pylint: disable=super-init-not-called msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById', 'BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref', 'BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN']) + ", ".join( + [ + 'BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById', + 'BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref', + 'BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN', + ] + ) ) raise Exception(msg) -class BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeBareMetalServerNetworkAttachmentContext(BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterface): +class BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeBareMetalServerNetworkAttachmentContext( + BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterface +): """ The virtual network interface for this target. @@ -101522,7 +102405,9 @@ def __init__( self.subnet = subnet @classmethod - def from_dict(cls, _dict: Dict) -> 'BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeBareMetalServerNetworkAttachmentContext': + def from_dict( + cls, _dict: Dict + ) -> 'BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeBareMetalServerNetworkAttachmentContext': """Initialize a BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeBareMetalServerNetworkAttachmentContext object from a json dictionary.""" args = {} if (allow_ip_spoofing := _dict.get('allow_ip_spoofing')) is not None: @@ -101606,13 +102491,19 @@ def __str__(self) -> str: """Return a `str` version of this BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeBareMetalServerNetworkAttachmentContext object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeBareMetalServerNetworkAttachmentContext') -> bool: + def __eq__( + self, + other: 'BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeBareMetalServerNetworkAttachmentContext', + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeBareMetalServerNetworkAttachmentContext') -> bool: + def __ne__( + self, + other: 'BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeBareMetalServerNetworkAttachmentContext', + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other @@ -101636,8 +102527,9 @@ class ProtocolStateFilteringModeEnum(str, Enum): ENABLED = 'enabled' - -class BareMetalServerNetworkAttachmentPrototypeBareMetalServerNetworkAttachmentByPCIPrototype(BareMetalServerNetworkAttachmentPrototype): +class BareMetalServerNetworkAttachmentPrototypeBareMetalServerNetworkAttachmentByPCIPrototype( + BareMetalServerNetworkAttachmentPrototype +): """ BareMetalServerNetworkAttachmentPrototypeBareMetalServerNetworkAttachmentByPCIPrototype. @@ -101695,7 +102587,9 @@ def __init__( self.interface_type = interface_type @classmethod - def from_dict(cls, _dict: Dict) -> 'BareMetalServerNetworkAttachmentPrototypeBareMetalServerNetworkAttachmentByPCIPrototype': + def from_dict( + cls, _dict: Dict + ) -> 'BareMetalServerNetworkAttachmentPrototypeBareMetalServerNetworkAttachmentByPCIPrototype': """Initialize a BareMetalServerNetworkAttachmentPrototypeBareMetalServerNetworkAttachmentByPCIPrototype object from a json dictionary.""" args = {} if (name := _dict.get('name')) is not None: @@ -101703,13 +102597,17 @@ def from_dict(cls, _dict: Dict) -> 'BareMetalServerNetworkAttachmentPrototypeBar if (virtual_network_interface := _dict.get('virtual_network_interface')) is not None: args['virtual_network_interface'] = virtual_network_interface else: - raise ValueError('Required property \'virtual_network_interface\' not present in BareMetalServerNetworkAttachmentPrototypeBareMetalServerNetworkAttachmentByPCIPrototype JSON') + raise ValueError( + 'Required property \'virtual_network_interface\' not present in BareMetalServerNetworkAttachmentPrototypeBareMetalServerNetworkAttachmentByPCIPrototype JSON' + ) if (allowed_vlans := _dict.get('allowed_vlans')) is not None: args['allowed_vlans'] = allowed_vlans if (interface_type := _dict.get('interface_type')) is not None: args['interface_type'] = interface_type else: - raise ValueError('Required property \'interface_type\' not present in BareMetalServerNetworkAttachmentPrototypeBareMetalServerNetworkAttachmentByPCIPrototype JSON') + raise ValueError( + 'Required property \'interface_type\' not present in BareMetalServerNetworkAttachmentPrototypeBareMetalServerNetworkAttachmentByPCIPrototype JSON' + ) return cls(**args) @classmethod @@ -101741,13 +102639,17 @@ def __str__(self) -> str: """Return a `str` version of this BareMetalServerNetworkAttachmentPrototypeBareMetalServerNetworkAttachmentByPCIPrototype object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'BareMetalServerNetworkAttachmentPrototypeBareMetalServerNetworkAttachmentByPCIPrototype') -> bool: + def __eq__( + self, other: 'BareMetalServerNetworkAttachmentPrototypeBareMetalServerNetworkAttachmentByPCIPrototype' + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'BareMetalServerNetworkAttachmentPrototypeBareMetalServerNetworkAttachmentByPCIPrototype') -> bool: + def __ne__( + self, other: 'BareMetalServerNetworkAttachmentPrototypeBareMetalServerNetworkAttachmentByPCIPrototype' + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other @@ -101766,8 +102668,9 @@ class InterfaceTypeEnum(str, Enum): PCI = 'pci' - -class BareMetalServerNetworkAttachmentPrototypeBareMetalServerNetworkAttachmentByVLANPrototype(BareMetalServerNetworkAttachmentPrototype): +class BareMetalServerNetworkAttachmentPrototypeBareMetalServerNetworkAttachmentByVLANPrototype( + BareMetalServerNetworkAttachmentPrototype +): """ BareMetalServerNetworkAttachmentPrototypeBareMetalServerNetworkAttachmentByVLANPrototype. @@ -101842,7 +102745,9 @@ def __init__( self.vlan = vlan @classmethod - def from_dict(cls, _dict: Dict) -> 'BareMetalServerNetworkAttachmentPrototypeBareMetalServerNetworkAttachmentByVLANPrototype': + def from_dict( + cls, _dict: Dict + ) -> 'BareMetalServerNetworkAttachmentPrototypeBareMetalServerNetworkAttachmentByVLANPrototype': """Initialize a BareMetalServerNetworkAttachmentPrototypeBareMetalServerNetworkAttachmentByVLANPrototype object from a json dictionary.""" args = {} if (name := _dict.get('name')) is not None: @@ -101850,17 +102755,23 @@ def from_dict(cls, _dict: Dict) -> 'BareMetalServerNetworkAttachmentPrototypeBar if (virtual_network_interface := _dict.get('virtual_network_interface')) is not None: args['virtual_network_interface'] = virtual_network_interface else: - raise ValueError('Required property \'virtual_network_interface\' not present in BareMetalServerNetworkAttachmentPrototypeBareMetalServerNetworkAttachmentByVLANPrototype JSON') + raise ValueError( + 'Required property \'virtual_network_interface\' not present in BareMetalServerNetworkAttachmentPrototypeBareMetalServerNetworkAttachmentByVLANPrototype JSON' + ) if (allow_to_float := _dict.get('allow_to_float')) is not None: args['allow_to_float'] = allow_to_float if (interface_type := _dict.get('interface_type')) is not None: args['interface_type'] = interface_type else: - raise ValueError('Required property \'interface_type\' not present in BareMetalServerNetworkAttachmentPrototypeBareMetalServerNetworkAttachmentByVLANPrototype JSON') + raise ValueError( + 'Required property \'interface_type\' not present in BareMetalServerNetworkAttachmentPrototypeBareMetalServerNetworkAttachmentByVLANPrototype JSON' + ) if (vlan := _dict.get('vlan')) is not None: args['vlan'] = vlan else: - raise ValueError('Required property \'vlan\' not present in BareMetalServerNetworkAttachmentPrototypeBareMetalServerNetworkAttachmentByVLANPrototype JSON') + raise ValueError( + 'Required property \'vlan\' not present in BareMetalServerNetworkAttachmentPrototypeBareMetalServerNetworkAttachmentByVLANPrototype JSON' + ) return cls(**args) @classmethod @@ -101894,13 +102805,17 @@ def __str__(self) -> str: """Return a `str` version of this BareMetalServerNetworkAttachmentPrototypeBareMetalServerNetworkAttachmentByVLANPrototype object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'BareMetalServerNetworkAttachmentPrototypeBareMetalServerNetworkAttachmentByVLANPrototype') -> bool: + def __eq__( + self, other: 'BareMetalServerNetworkAttachmentPrototypeBareMetalServerNetworkAttachmentByVLANPrototype' + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'BareMetalServerNetworkAttachmentPrototypeBareMetalServerNetworkAttachmentByVLANPrototype') -> bool: + def __ne__( + self, other: 'BareMetalServerNetworkAttachmentPrototypeBareMetalServerNetworkAttachmentByVLANPrototype' + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other @@ -101915,7 +102830,6 @@ class InterfaceTypeEnum(str, Enum): VLAN = 'vlan' - class BareMetalServerNetworkInterfaceByHiperSocket(BareMetalServerNetworkInterface): """ BareMetalServerNetworkInterfaceByHiperSocket. @@ -102173,67 +103087,99 @@ def from_dict(cls, _dict: Dict) -> 'BareMetalServerNetworkInterfaceByHiperSocket if (allow_ip_spoofing := _dict.get('allow_ip_spoofing')) is not None: args['allow_ip_spoofing'] = allow_ip_spoofing else: - raise ValueError('Required property \'allow_ip_spoofing\' not present in BareMetalServerNetworkInterfaceByHiperSocket JSON') + raise ValueError( + 'Required property \'allow_ip_spoofing\' not present in BareMetalServerNetworkInterfaceByHiperSocket JSON' + ) if (created_at := _dict.get('created_at')) is not None: args['created_at'] = string_to_datetime(created_at) else: - raise ValueError('Required property \'created_at\' not present in BareMetalServerNetworkInterfaceByHiperSocket JSON') + raise ValueError( + 'Required property \'created_at\' not present in BareMetalServerNetworkInterfaceByHiperSocket JSON' + ) if (enable_infrastructure_nat := _dict.get('enable_infrastructure_nat')) is not None: args['enable_infrastructure_nat'] = enable_infrastructure_nat else: - raise ValueError('Required property \'enable_infrastructure_nat\' not present in BareMetalServerNetworkInterfaceByHiperSocket JSON') + raise ValueError( + 'Required property \'enable_infrastructure_nat\' not present in BareMetalServerNetworkInterfaceByHiperSocket JSON' + ) if (floating_ips := _dict.get('floating_ips')) is not None: args['floating_ips'] = [FloatingIPReference.from_dict(v) for v in floating_ips] else: - raise ValueError('Required property \'floating_ips\' not present in BareMetalServerNetworkInterfaceByHiperSocket JSON') + raise ValueError( + 'Required property \'floating_ips\' not present in BareMetalServerNetworkInterfaceByHiperSocket JSON' + ) if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in BareMetalServerNetworkInterfaceByHiperSocket JSON') + raise ValueError( + 'Required property \'href\' not present in BareMetalServerNetworkInterfaceByHiperSocket JSON' + ) if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in BareMetalServerNetworkInterfaceByHiperSocket JSON') + raise ValueError( + 'Required property \'id\' not present in BareMetalServerNetworkInterfaceByHiperSocket JSON' + ) if (mac_address := _dict.get('mac_address')) is not None: args['mac_address'] = mac_address else: - raise ValueError('Required property \'mac_address\' not present in BareMetalServerNetworkInterfaceByHiperSocket JSON') + raise ValueError( + 'Required property \'mac_address\' not present in BareMetalServerNetworkInterfaceByHiperSocket JSON' + ) if (name := _dict.get('name')) is not None: args['name'] = name else: - raise ValueError('Required property \'name\' not present in BareMetalServerNetworkInterfaceByHiperSocket JSON') + raise ValueError( + 'Required property \'name\' not present in BareMetalServerNetworkInterfaceByHiperSocket JSON' + ) if (port_speed := _dict.get('port_speed')) is not None: args['port_speed'] = port_speed else: - raise ValueError('Required property \'port_speed\' not present in BareMetalServerNetworkInterfaceByHiperSocket JSON') + raise ValueError( + 'Required property \'port_speed\' not present in BareMetalServerNetworkInterfaceByHiperSocket JSON' + ) if (primary_ip := _dict.get('primary_ip')) is not None: args['primary_ip'] = ReservedIPReference.from_dict(primary_ip) else: - raise ValueError('Required property \'primary_ip\' not present in BareMetalServerNetworkInterfaceByHiperSocket JSON') + raise ValueError( + 'Required property \'primary_ip\' not present in BareMetalServerNetworkInterfaceByHiperSocket JSON' + ) if (resource_type := _dict.get('resource_type')) is not None: args['resource_type'] = resource_type else: - raise ValueError('Required property \'resource_type\' not present in BareMetalServerNetworkInterfaceByHiperSocket JSON') + raise ValueError( + 'Required property \'resource_type\' not present in BareMetalServerNetworkInterfaceByHiperSocket JSON' + ) if (security_groups := _dict.get('security_groups')) is not None: args['security_groups'] = [SecurityGroupReference.from_dict(v) for v in security_groups] else: - raise ValueError('Required property \'security_groups\' not present in BareMetalServerNetworkInterfaceByHiperSocket JSON') + raise ValueError( + 'Required property \'security_groups\' not present in BareMetalServerNetworkInterfaceByHiperSocket JSON' + ) if (status := _dict.get('status')) is not None: args['status'] = status else: - raise ValueError('Required property \'status\' not present in BareMetalServerNetworkInterfaceByHiperSocket JSON') + raise ValueError( + 'Required property \'status\' not present in BareMetalServerNetworkInterfaceByHiperSocket JSON' + ) if (subnet := _dict.get('subnet')) is not None: args['subnet'] = SubnetReference.from_dict(subnet) else: - raise ValueError('Required property \'subnet\' not present in BareMetalServerNetworkInterfaceByHiperSocket JSON') + raise ValueError( + 'Required property \'subnet\' not present in BareMetalServerNetworkInterfaceByHiperSocket JSON' + ) if (type := _dict.get('type')) is not None: args['type'] = type else: - raise ValueError('Required property \'type\' not present in BareMetalServerNetworkInterfaceByHiperSocket JSON') + raise ValueError( + 'Required property \'type\' not present in BareMetalServerNetworkInterfaceByHiperSocket JSON' + ) if (interface_type := _dict.get('interface_type')) is not None: args['interface_type'] = interface_type else: - raise ValueError('Required property \'interface_type\' not present in BareMetalServerNetworkInterfaceByHiperSocket JSON') + raise ValueError( + 'Required property \'interface_type\' not present in BareMetalServerNetworkInterfaceByHiperSocket JSON' + ) return cls(**args) @classmethod @@ -102321,7 +103267,6 @@ class ResourceTypeEnum(str, Enum): NETWORK_INTERFACE = 'network_interface' - class StatusEnum(str, Enum): """ The status of the bare metal server network interface. @@ -102336,7 +103281,6 @@ class StatusEnum(str, Enum): FAILED = 'failed' PENDING = 'pending' - class TypeEnum(str, Enum): """ The bare metal server network interface type. @@ -102350,7 +103294,6 @@ class TypeEnum(str, Enum): PRIMARY = 'primary' SECONDARY = 'secondary' - class InterfaceTypeEnum(str, Enum): """ - `hipersocket`: a virtual network device that provides high-speed TCP/IP @@ -102361,7 +103304,6 @@ class InterfaceTypeEnum(str, Enum): HIPERSOCKET = 'hipersocket' - class BareMetalServerNetworkInterfaceByPCI(BareMetalServerNetworkInterface): """ BareMetalServerNetworkInterfaceByPCI. @@ -102646,19 +103588,27 @@ def from_dict(cls, _dict: Dict) -> 'BareMetalServerNetworkInterfaceByPCI': if (allow_ip_spoofing := _dict.get('allow_ip_spoofing')) is not None: args['allow_ip_spoofing'] = allow_ip_spoofing else: - raise ValueError('Required property \'allow_ip_spoofing\' not present in BareMetalServerNetworkInterfaceByPCI JSON') + raise ValueError( + 'Required property \'allow_ip_spoofing\' not present in BareMetalServerNetworkInterfaceByPCI JSON' + ) if (created_at := _dict.get('created_at')) is not None: args['created_at'] = string_to_datetime(created_at) else: - raise ValueError('Required property \'created_at\' not present in BareMetalServerNetworkInterfaceByPCI JSON') + raise ValueError( + 'Required property \'created_at\' not present in BareMetalServerNetworkInterfaceByPCI JSON' + ) if (enable_infrastructure_nat := _dict.get('enable_infrastructure_nat')) is not None: args['enable_infrastructure_nat'] = enable_infrastructure_nat else: - raise ValueError('Required property \'enable_infrastructure_nat\' not present in BareMetalServerNetworkInterfaceByPCI JSON') + raise ValueError( + 'Required property \'enable_infrastructure_nat\' not present in BareMetalServerNetworkInterfaceByPCI JSON' + ) if (floating_ips := _dict.get('floating_ips')) is not None: args['floating_ips'] = [FloatingIPReference.from_dict(v) for v in floating_ips] else: - raise ValueError('Required property \'floating_ips\' not present in BareMetalServerNetworkInterfaceByPCI JSON') + raise ValueError( + 'Required property \'floating_ips\' not present in BareMetalServerNetworkInterfaceByPCI JSON' + ) if (href := _dict.get('href')) is not None: args['href'] = href else: @@ -102670,7 +103620,9 @@ def from_dict(cls, _dict: Dict) -> 'BareMetalServerNetworkInterfaceByPCI': if (mac_address := _dict.get('mac_address')) is not None: args['mac_address'] = mac_address else: - raise ValueError('Required property \'mac_address\' not present in BareMetalServerNetworkInterfaceByPCI JSON') + raise ValueError( + 'Required property \'mac_address\' not present in BareMetalServerNetworkInterfaceByPCI JSON' + ) if (name := _dict.get('name')) is not None: args['name'] = name else: @@ -102678,19 +103630,27 @@ def from_dict(cls, _dict: Dict) -> 'BareMetalServerNetworkInterfaceByPCI': if (port_speed := _dict.get('port_speed')) is not None: args['port_speed'] = port_speed else: - raise ValueError('Required property \'port_speed\' not present in BareMetalServerNetworkInterfaceByPCI JSON') + raise ValueError( + 'Required property \'port_speed\' not present in BareMetalServerNetworkInterfaceByPCI JSON' + ) if (primary_ip := _dict.get('primary_ip')) is not None: args['primary_ip'] = ReservedIPReference.from_dict(primary_ip) else: - raise ValueError('Required property \'primary_ip\' not present in BareMetalServerNetworkInterfaceByPCI JSON') + raise ValueError( + 'Required property \'primary_ip\' not present in BareMetalServerNetworkInterfaceByPCI JSON' + ) if (resource_type := _dict.get('resource_type')) is not None: args['resource_type'] = resource_type else: - raise ValueError('Required property \'resource_type\' not present in BareMetalServerNetworkInterfaceByPCI JSON') + raise ValueError( + 'Required property \'resource_type\' not present in BareMetalServerNetworkInterfaceByPCI JSON' + ) if (security_groups := _dict.get('security_groups')) is not None: args['security_groups'] = [SecurityGroupReference.from_dict(v) for v in security_groups] else: - raise ValueError('Required property \'security_groups\' not present in BareMetalServerNetworkInterfaceByPCI JSON') + raise ValueError( + 'Required property \'security_groups\' not present in BareMetalServerNetworkInterfaceByPCI JSON' + ) if (status := _dict.get('status')) is not None: args['status'] = status else: @@ -102706,11 +103666,15 @@ def from_dict(cls, _dict: Dict) -> 'BareMetalServerNetworkInterfaceByPCI': if (allowed_vlans := _dict.get('allowed_vlans')) is not None: args['allowed_vlans'] = allowed_vlans else: - raise ValueError('Required property \'allowed_vlans\' not present in BareMetalServerNetworkInterfaceByPCI JSON') + raise ValueError( + 'Required property \'allowed_vlans\' not present in BareMetalServerNetworkInterfaceByPCI JSON' + ) if (interface_type := _dict.get('interface_type')) is not None: args['interface_type'] = interface_type else: - raise ValueError('Required property \'interface_type\' not present in BareMetalServerNetworkInterfaceByPCI JSON') + raise ValueError( + 'Required property \'interface_type\' not present in BareMetalServerNetworkInterfaceByPCI JSON' + ) return cls(**args) @classmethod @@ -102800,7 +103764,6 @@ class ResourceTypeEnum(str, Enum): NETWORK_INTERFACE = 'network_interface' - class StatusEnum(str, Enum): """ The status of the bare metal server network interface. @@ -102815,7 +103778,6 @@ class StatusEnum(str, Enum): FAILED = 'failed' PENDING = 'pending' - class TypeEnum(str, Enum): """ The bare metal server network interface type. @@ -102829,7 +103791,6 @@ class TypeEnum(str, Enum): PRIMARY = 'primary' SECONDARY = 'secondary' - class InterfaceTypeEnum(str, Enum): """ - `pci`: a physical PCI device which can only be created or deleted when the bare @@ -102844,7 +103805,6 @@ class InterfaceTypeEnum(str, Enum): PCI = 'pci' - class BareMetalServerNetworkInterfaceByVLAN(BareMetalServerNetworkInterface): """ BareMetalServerNetworkInterfaceByVLAN. @@ -103165,19 +104125,27 @@ def from_dict(cls, _dict: Dict) -> 'BareMetalServerNetworkInterfaceByVLAN': if (allow_ip_spoofing := _dict.get('allow_ip_spoofing')) is not None: args['allow_ip_spoofing'] = allow_ip_spoofing else: - raise ValueError('Required property \'allow_ip_spoofing\' not present in BareMetalServerNetworkInterfaceByVLAN JSON') + raise ValueError( + 'Required property \'allow_ip_spoofing\' not present in BareMetalServerNetworkInterfaceByVLAN JSON' + ) if (created_at := _dict.get('created_at')) is not None: args['created_at'] = string_to_datetime(created_at) else: - raise ValueError('Required property \'created_at\' not present in BareMetalServerNetworkInterfaceByVLAN JSON') + raise ValueError( + 'Required property \'created_at\' not present in BareMetalServerNetworkInterfaceByVLAN JSON' + ) if (enable_infrastructure_nat := _dict.get('enable_infrastructure_nat')) is not None: args['enable_infrastructure_nat'] = enable_infrastructure_nat else: - raise ValueError('Required property \'enable_infrastructure_nat\' not present in BareMetalServerNetworkInterfaceByVLAN JSON') + raise ValueError( + 'Required property \'enable_infrastructure_nat\' not present in BareMetalServerNetworkInterfaceByVLAN JSON' + ) if (floating_ips := _dict.get('floating_ips')) is not None: args['floating_ips'] = [FloatingIPReference.from_dict(v) for v in floating_ips] else: - raise ValueError('Required property \'floating_ips\' not present in BareMetalServerNetworkInterfaceByVLAN JSON') + raise ValueError( + 'Required property \'floating_ips\' not present in BareMetalServerNetworkInterfaceByVLAN JSON' + ) if (href := _dict.get('href')) is not None: args['href'] = href else: @@ -103189,7 +104157,9 @@ def from_dict(cls, _dict: Dict) -> 'BareMetalServerNetworkInterfaceByVLAN': if (mac_address := _dict.get('mac_address')) is not None: args['mac_address'] = mac_address else: - raise ValueError('Required property \'mac_address\' not present in BareMetalServerNetworkInterfaceByVLAN JSON') + raise ValueError( + 'Required property \'mac_address\' not present in BareMetalServerNetworkInterfaceByVLAN JSON' + ) if (name := _dict.get('name')) is not None: args['name'] = name else: @@ -103197,19 +104167,27 @@ def from_dict(cls, _dict: Dict) -> 'BareMetalServerNetworkInterfaceByVLAN': if (port_speed := _dict.get('port_speed')) is not None: args['port_speed'] = port_speed else: - raise ValueError('Required property \'port_speed\' not present in BareMetalServerNetworkInterfaceByVLAN JSON') + raise ValueError( + 'Required property \'port_speed\' not present in BareMetalServerNetworkInterfaceByVLAN JSON' + ) if (primary_ip := _dict.get('primary_ip')) is not None: args['primary_ip'] = ReservedIPReference.from_dict(primary_ip) else: - raise ValueError('Required property \'primary_ip\' not present in BareMetalServerNetworkInterfaceByVLAN JSON') + raise ValueError( + 'Required property \'primary_ip\' not present in BareMetalServerNetworkInterfaceByVLAN JSON' + ) if (resource_type := _dict.get('resource_type')) is not None: args['resource_type'] = resource_type else: - raise ValueError('Required property \'resource_type\' not present in BareMetalServerNetworkInterfaceByVLAN JSON') + raise ValueError( + 'Required property \'resource_type\' not present in BareMetalServerNetworkInterfaceByVLAN JSON' + ) if (security_groups := _dict.get('security_groups')) is not None: args['security_groups'] = [SecurityGroupReference.from_dict(v) for v in security_groups] else: - raise ValueError('Required property \'security_groups\' not present in BareMetalServerNetworkInterfaceByVLAN JSON') + raise ValueError( + 'Required property \'security_groups\' not present in BareMetalServerNetworkInterfaceByVLAN JSON' + ) if (status := _dict.get('status')) is not None: args['status'] = status else: @@ -103225,11 +104203,15 @@ def from_dict(cls, _dict: Dict) -> 'BareMetalServerNetworkInterfaceByVLAN': if (allow_interface_to_float := _dict.get('allow_interface_to_float')) is not None: args['allow_interface_to_float'] = allow_interface_to_float else: - raise ValueError('Required property \'allow_interface_to_float\' not present in BareMetalServerNetworkInterfaceByVLAN JSON') + raise ValueError( + 'Required property \'allow_interface_to_float\' not present in BareMetalServerNetworkInterfaceByVLAN JSON' + ) if (interface_type := _dict.get('interface_type')) is not None: args['interface_type'] = interface_type else: - raise ValueError('Required property \'interface_type\' not present in BareMetalServerNetworkInterfaceByVLAN JSON') + raise ValueError( + 'Required property \'interface_type\' not present in BareMetalServerNetworkInterfaceByVLAN JSON' + ) if (vlan := _dict.get('vlan')) is not None: args['vlan'] = vlan else: @@ -103325,7 +104307,6 @@ class ResourceTypeEnum(str, Enum): NETWORK_INTERFACE = 'network_interface' - class StatusEnum(str, Enum): """ The status of the bare metal server network interface. @@ -103340,7 +104321,6 @@ class StatusEnum(str, Enum): FAILED = 'failed' PENDING = 'pending' - class TypeEnum(str, Enum): """ The bare metal server network interface type. @@ -103354,7 +104334,6 @@ class TypeEnum(str, Enum): PRIMARY = 'primary' SECONDARY = 'secondary' - class InterfaceTypeEnum(str, Enum): """ - `vlan`: a virtual device, used through a `pci` device that has the `vlan` in its @@ -103369,8 +104348,9 @@ class InterfaceTypeEnum(str, Enum): VLAN = 'vlan' - -class BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByHiperSocketPrototype(BareMetalServerNetworkInterfacePrototype): +class BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByHiperSocketPrototype( + BareMetalServerNetworkInterfacePrototype +): """ BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByHiperSocketPrototype. @@ -103488,7 +104468,9 @@ def __init__( self.interface_type = interface_type @classmethod - def from_dict(cls, _dict: Dict) -> 'BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByHiperSocketPrototype': + def from_dict( + cls, _dict: Dict + ) -> 'BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByHiperSocketPrototype': """Initialize a BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByHiperSocketPrototype object from a json dictionary.""" args = {} if (allow_ip_spoofing := _dict.get('allow_ip_spoofing')) is not None: @@ -103504,11 +104486,15 @@ def from_dict(cls, _dict: Dict) -> 'BareMetalServerNetworkInterfacePrototypeBare if (subnet := _dict.get('subnet')) is not None: args['subnet'] = subnet else: - raise ValueError('Required property \'subnet\' not present in BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByHiperSocketPrototype JSON') + raise ValueError( + 'Required property \'subnet\' not present in BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByHiperSocketPrototype JSON' + ) if (interface_type := _dict.get('interface_type')) is not None: args['interface_type'] = interface_type else: - raise ValueError('Required property \'interface_type\' not present in BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByHiperSocketPrototype JSON') + raise ValueError( + 'Required property \'interface_type\' not present in BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByHiperSocketPrototype JSON' + ) return cls(**args) @classmethod @@ -103555,13 +104541,17 @@ def __str__(self) -> str: """Return a `str` version of this BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByHiperSocketPrototype object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByHiperSocketPrototype') -> bool: + def __eq__( + self, other: 'BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByHiperSocketPrototype' + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByHiperSocketPrototype') -> bool: + def __ne__( + self, other: 'BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByHiperSocketPrototype' + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other @@ -103576,8 +104566,9 @@ class InterfaceTypeEnum(str, Enum): HIPERSOCKET = 'hipersocket' - -class BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByPCIPrototype(BareMetalServerNetworkInterfacePrototype): +class BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByPCIPrototype( + BareMetalServerNetworkInterfacePrototype +): """ BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByPCIPrototype. @@ -103709,7 +104700,9 @@ def __init__( self.interface_type = interface_type @classmethod - def from_dict(cls, _dict: Dict) -> 'BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByPCIPrototype': + def from_dict( + cls, _dict: Dict + ) -> 'BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByPCIPrototype': """Initialize a BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByPCIPrototype object from a json dictionary.""" args = {} if (allow_ip_spoofing := _dict.get('allow_ip_spoofing')) is not None: @@ -103725,13 +104718,17 @@ def from_dict(cls, _dict: Dict) -> 'BareMetalServerNetworkInterfacePrototypeBare if (subnet := _dict.get('subnet')) is not None: args['subnet'] = subnet else: - raise ValueError('Required property \'subnet\' not present in BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByPCIPrototype JSON') + raise ValueError( + 'Required property \'subnet\' not present in BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByPCIPrototype JSON' + ) if (allowed_vlans := _dict.get('allowed_vlans')) is not None: args['allowed_vlans'] = allowed_vlans if (interface_type := _dict.get('interface_type')) is not None: args['interface_type'] = interface_type else: - raise ValueError('Required property \'interface_type\' not present in BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByPCIPrototype JSON') + raise ValueError( + 'Required property \'interface_type\' not present in BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByPCIPrototype JSON' + ) return cls(**args) @classmethod @@ -103780,13 +104777,17 @@ def __str__(self) -> str: """Return a `str` version of this BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByPCIPrototype object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByPCIPrototype') -> bool: + def __eq__( + self, other: 'BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByPCIPrototype' + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByPCIPrototype') -> bool: + def __ne__( + self, other: 'BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByPCIPrototype' + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other @@ -103805,8 +104806,9 @@ class InterfaceTypeEnum(str, Enum): PCI = 'pci' - -class BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByVLANPrototype(BareMetalServerNetworkInterfacePrototype): +class BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByVLANPrototype( + BareMetalServerNetworkInterfacePrototype +): """ BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByVLANPrototype. @@ -103987,7 +104989,9 @@ def __init__( self.vlan = vlan @classmethod - def from_dict(cls, _dict: Dict) -> 'BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByVLANPrototype': + def from_dict( + cls, _dict: Dict + ) -> 'BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByVLANPrototype': """Initialize a BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByVLANPrototype object from a json dictionary.""" args = {} if (allow_ip_spoofing := _dict.get('allow_ip_spoofing')) is not None: @@ -104003,17 +105007,23 @@ def from_dict(cls, _dict: Dict) -> 'BareMetalServerNetworkInterfacePrototypeBare if (subnet := _dict.get('subnet')) is not None: args['subnet'] = subnet else: - raise ValueError('Required property \'subnet\' not present in BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByVLANPrototype JSON') + raise ValueError( + 'Required property \'subnet\' not present in BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByVLANPrototype JSON' + ) if (allow_interface_to_float := _dict.get('allow_interface_to_float')) is not None: args['allow_interface_to_float'] = allow_interface_to_float if (interface_type := _dict.get('interface_type')) is not None: args['interface_type'] = interface_type else: - raise ValueError('Required property \'interface_type\' not present in BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByVLANPrototype JSON') + raise ValueError( + 'Required property \'interface_type\' not present in BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByVLANPrototype JSON' + ) if (vlan := _dict.get('vlan')) is not None: args['vlan'] = vlan else: - raise ValueError('Required property \'vlan\' not present in BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByVLANPrototype JSON') + raise ValueError( + 'Required property \'vlan\' not present in BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByVLANPrototype JSON' + ) return cls(**args) @classmethod @@ -104064,13 +105074,17 @@ def __str__(self) -> str: """Return a `str` version of this BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByVLANPrototype object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByVLANPrototype') -> bool: + def __eq__( + self, other: 'BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByVLANPrototype' + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByVLANPrototype') -> bool: + def __ne__( + self, other: 'BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByVLANPrototype' + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other @@ -104089,8 +105103,9 @@ class InterfaceTypeEnum(str, Enum): VLAN = 'vlan' - -class BareMetalServerPrimaryNetworkAttachmentPrototypeBareMetalServerPrimaryNetworkAttachmentByPCIPrototype(BareMetalServerPrimaryNetworkAttachmentPrototype): +class BareMetalServerPrimaryNetworkAttachmentPrototypeBareMetalServerPrimaryNetworkAttachmentByPCIPrototype( + BareMetalServerPrimaryNetworkAttachmentPrototype +): """ BareMetalServerPrimaryNetworkAttachmentPrototypeBareMetalServerPrimaryNetworkAttachmentByPCIPrototype. @@ -104148,7 +105163,9 @@ def __init__( self.interface_type = interface_type @classmethod - def from_dict(cls, _dict: Dict) -> 'BareMetalServerPrimaryNetworkAttachmentPrototypeBareMetalServerPrimaryNetworkAttachmentByPCIPrototype': + def from_dict( + cls, _dict: Dict + ) -> 'BareMetalServerPrimaryNetworkAttachmentPrototypeBareMetalServerPrimaryNetworkAttachmentByPCIPrototype': """Initialize a BareMetalServerPrimaryNetworkAttachmentPrototypeBareMetalServerPrimaryNetworkAttachmentByPCIPrototype object from a json dictionary.""" args = {} if (name := _dict.get('name')) is not None: @@ -104156,7 +105173,9 @@ def from_dict(cls, _dict: Dict) -> 'BareMetalServerPrimaryNetworkAttachmentProto if (virtual_network_interface := _dict.get('virtual_network_interface')) is not None: args['virtual_network_interface'] = virtual_network_interface else: - raise ValueError('Required property \'virtual_network_interface\' not present in BareMetalServerPrimaryNetworkAttachmentPrototypeBareMetalServerPrimaryNetworkAttachmentByPCIPrototype JSON') + raise ValueError( + 'Required property \'virtual_network_interface\' not present in BareMetalServerPrimaryNetworkAttachmentPrototypeBareMetalServerPrimaryNetworkAttachmentByPCIPrototype JSON' + ) if (allowed_vlans := _dict.get('allowed_vlans')) is not None: args['allowed_vlans'] = allowed_vlans if (interface_type := _dict.get('interface_type')) is not None: @@ -104192,13 +105211,19 @@ def __str__(self) -> str: """Return a `str` version of this BareMetalServerPrimaryNetworkAttachmentPrototypeBareMetalServerPrimaryNetworkAttachmentByPCIPrototype object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'BareMetalServerPrimaryNetworkAttachmentPrototypeBareMetalServerPrimaryNetworkAttachmentByPCIPrototype') -> bool: + def __eq__( + self, + other: 'BareMetalServerPrimaryNetworkAttachmentPrototypeBareMetalServerPrimaryNetworkAttachmentByPCIPrototype', + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'BareMetalServerPrimaryNetworkAttachmentPrototypeBareMetalServerPrimaryNetworkAttachmentByPCIPrototype') -> bool: + def __ne__( + self, + other: 'BareMetalServerPrimaryNetworkAttachmentPrototypeBareMetalServerPrimaryNetworkAttachmentByPCIPrototype', + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other @@ -104217,7 +105242,6 @@ class InterfaceTypeEnum(str, Enum): PCI = 'pci' - class BareMetalServerProfileBandwidthDependent(BareMetalServerProfileBandwidth): """ The total bandwidth shared across the bare metal server network attachments or bare @@ -104287,7 +105311,6 @@ class TypeEnum(str, Enum): DEPENDENT = 'dependent' - class BareMetalServerProfileBandwidthEnum(BareMetalServerProfileBandwidth): """ The permitted total bandwidth values (in megabits per second) shared across the bare @@ -104377,7 +105400,6 @@ class TypeEnum(str, Enum): ENUM = 'enum' - class BareMetalServerProfileBandwidthFixed(BareMetalServerProfileBandwidth): """ The total bandwidth (in megabits per second) shared across the bare metal server @@ -104457,7 +105479,6 @@ class TypeEnum(str, Enum): FIXED = 'fixed' - class BareMetalServerProfileBandwidthRange(BareMetalServerProfileBandwidth): """ The permitted total bandwidth range (in megabits per second) shared across the network @@ -104566,7 +105587,6 @@ class TypeEnum(str, Enum): RANGE = 'range' - class BareMetalServerProfileCPUCoreCountDependent(BareMetalServerProfileCPUCoreCount): """ The CPU core count for a bare metal server with this profile depends on its @@ -104594,7 +105614,9 @@ def from_dict(cls, _dict: Dict) -> 'BareMetalServerProfileCPUCoreCountDependent' if (type := _dict.get('type')) is not None: args['type'] = type else: - raise ValueError('Required property \'type\' not present in BareMetalServerProfileCPUCoreCountDependent JSON') + raise ValueError( + 'Required property \'type\' not present in BareMetalServerProfileCPUCoreCountDependent JSON' + ) return cls(**args) @classmethod @@ -104635,7 +105657,6 @@ class TypeEnum(str, Enum): DEPENDENT = 'dependent' - class BareMetalServerProfileCPUCoreCountEnum(BareMetalServerProfileCPUCoreCount): """ The permitted values for CPU cores for a bare metal server with this profile. @@ -104723,7 +105744,6 @@ class TypeEnum(str, Enum): ENUM = 'enum' - class BareMetalServerProfileCPUCoreCountFixed(BareMetalServerProfileCPUCoreCount): """ The CPU core count for a bare metal server with this profile. @@ -104801,7 +105821,6 @@ class TypeEnum(str, Enum): FIXED = 'fixed' - class BareMetalServerProfileCPUCoreCountRange(BareMetalServerProfileCPUCoreCount): """ The permitted range for the number of CPU cores for a bare metal server with this @@ -104845,7 +105864,9 @@ def from_dict(cls, _dict: Dict) -> 'BareMetalServerProfileCPUCoreCountRange': if (default := _dict.get('default')) is not None: args['default'] = default else: - raise ValueError('Required property \'default\' not present in BareMetalServerProfileCPUCoreCountRange JSON') + raise ValueError( + 'Required property \'default\' not present in BareMetalServerProfileCPUCoreCountRange JSON' + ) if (max := _dict.get('max')) is not None: args['max'] = max else: @@ -104910,7 +105931,6 @@ class TypeEnum(str, Enum): RANGE = 'range' - class BareMetalServerProfileCPUSocketCountDependent(BareMetalServerProfileCPUSocketCount): """ The CPU socket count for a bare metal server with this profile depends on its @@ -104938,7 +105958,9 @@ def from_dict(cls, _dict: Dict) -> 'BareMetalServerProfileCPUSocketCountDependen if (type := _dict.get('type')) is not None: args['type'] = type else: - raise ValueError('Required property \'type\' not present in BareMetalServerProfileCPUSocketCountDependent JSON') + raise ValueError( + 'Required property \'type\' not present in BareMetalServerProfileCPUSocketCountDependent JSON' + ) return cls(**args) @classmethod @@ -104979,7 +106001,6 @@ class TypeEnum(str, Enum): DEPENDENT = 'dependent' - class BareMetalServerProfileCPUSocketCountEnum(BareMetalServerProfileCPUSocketCount): """ The permitted values for CPU sockets for a bare metal server with this profile. @@ -105014,7 +106035,9 @@ def from_dict(cls, _dict: Dict) -> 'BareMetalServerProfileCPUSocketCountEnum': if (default := _dict.get('default')) is not None: args['default'] = default else: - raise ValueError('Required property \'default\' not present in BareMetalServerProfileCPUSocketCountEnum JSON') + raise ValueError( + 'Required property \'default\' not present in BareMetalServerProfileCPUSocketCountEnum JSON' + ) if (type := _dict.get('type')) is not None: args['type'] = type else: @@ -105022,7 +106045,9 @@ def from_dict(cls, _dict: Dict) -> 'BareMetalServerProfileCPUSocketCountEnum': if (values := _dict.get('values')) is not None: args['values'] = values else: - raise ValueError('Required property \'values\' not present in BareMetalServerProfileCPUSocketCountEnum JSON') + raise ValueError( + 'Required property \'values\' not present in BareMetalServerProfileCPUSocketCountEnum JSON' + ) return cls(**args) @classmethod @@ -105067,7 +106092,6 @@ class TypeEnum(str, Enum): ENUM = 'enum' - class BareMetalServerProfileCPUSocketCountFixed(BareMetalServerProfileCPUSocketCount): """ The number of CPU sockets for a bare metal server with this profile. @@ -105102,7 +106126,9 @@ def from_dict(cls, _dict: Dict) -> 'BareMetalServerProfileCPUSocketCountFixed': if (value := _dict.get('value')) is not None: args['value'] = value else: - raise ValueError('Required property \'value\' not present in BareMetalServerProfileCPUSocketCountFixed JSON') + raise ValueError( + 'Required property \'value\' not present in BareMetalServerProfileCPUSocketCountFixed JSON' + ) return cls(**args) @classmethod @@ -105145,7 +106171,6 @@ class TypeEnum(str, Enum): FIXED = 'fixed' - class BareMetalServerProfileCPUSocketCountRange(BareMetalServerProfileCPUSocketCount): """ The permitted range for the number of CPU sockets for a bare metal server with this @@ -105189,7 +106214,9 @@ def from_dict(cls, _dict: Dict) -> 'BareMetalServerProfileCPUSocketCountRange': if (default := _dict.get('default')) is not None: args['default'] = default else: - raise ValueError('Required property \'default\' not present in BareMetalServerProfileCPUSocketCountRange JSON') + raise ValueError( + 'Required property \'default\' not present in BareMetalServerProfileCPUSocketCountRange JSON' + ) if (max := _dict.get('max')) is not None: args['max'] = max else: @@ -105254,7 +106281,6 @@ class TypeEnum(str, Enum): RANGE = 'range' - class BareMetalServerProfileDiskQuantityDependent(BareMetalServerProfileDiskQuantity): """ The number of disks of this configuration for a bare metal server with this profile @@ -105282,7 +106308,9 @@ def from_dict(cls, _dict: Dict) -> 'BareMetalServerProfileDiskQuantityDependent' if (type := _dict.get('type')) is not None: args['type'] = type else: - raise ValueError('Required property \'type\' not present in BareMetalServerProfileDiskQuantityDependent JSON') + raise ValueError( + 'Required property \'type\' not present in BareMetalServerProfileDiskQuantityDependent JSON' + ) return cls(**args) @classmethod @@ -105323,7 +106351,6 @@ class TypeEnum(str, Enum): DEPENDENT = 'dependent' - class BareMetalServerProfileDiskQuantityEnum(BareMetalServerProfileDiskQuantity): """ The permitted the number of disks of this configuration for a bare metal server with @@ -105412,7 +106439,6 @@ class TypeEnum(str, Enum): ENUM = 'enum' - class BareMetalServerProfileDiskQuantityFixed(BareMetalServerProfileDiskQuantity): """ The number of disks of this configuration for a bare metal server with this profile. @@ -105490,7 +106516,6 @@ class TypeEnum(str, Enum): FIXED = 'fixed' - class BareMetalServerProfileDiskQuantityRange(BareMetalServerProfileDiskQuantity): """ The permitted range for the number of disks of this configuration for a bare metal @@ -105534,7 +106559,9 @@ def from_dict(cls, _dict: Dict) -> 'BareMetalServerProfileDiskQuantityRange': if (default := _dict.get('default')) is not None: args['default'] = default else: - raise ValueError('Required property \'default\' not present in BareMetalServerProfileDiskQuantityRange JSON') + raise ValueError( + 'Required property \'default\' not present in BareMetalServerProfileDiskQuantityRange JSON' + ) if (max := _dict.get('max')) is not None: args['max'] = max else: @@ -105599,7 +106626,6 @@ class TypeEnum(str, Enum): RANGE = 'range' - class BareMetalServerProfileDiskSizeDependent(BareMetalServerProfileDiskSize): """ The disk size in GB (gigabytes) of this configuration for a bare metal server with @@ -105668,7 +106694,6 @@ class TypeEnum(str, Enum): DEPENDENT = 'dependent' - class BareMetalServerProfileDiskSizeEnum(BareMetalServerProfileDiskSize): """ The permitted disk size in GB (gigabytes) of this configuration for a bare metal @@ -105757,7 +106782,6 @@ class TypeEnum(str, Enum): ENUM = 'enum' - class BareMetalServerProfileDiskSizeFixed(BareMetalServerProfileDiskSize): """ The size of the disk in GB (gigabytes). @@ -105835,7 +106859,6 @@ class TypeEnum(str, Enum): FIXED = 'fixed' - class BareMetalServerProfileDiskSizeRange(BareMetalServerProfileDiskSize): """ The permitted range for the disk size of this configuration in GB (gigabytes) for a @@ -105944,7 +106967,6 @@ class TypeEnum(str, Enum): RANGE = 'range' - class BareMetalServerProfileIdentityByHref(BareMetalServerProfileIdentity): """ BareMetalServerProfileIdentityByHref. @@ -106133,7 +107155,6 @@ class TypeEnum(str, Enum): DEPENDENT = 'dependent' - class BareMetalServerProfileMemoryEnum(BareMetalServerProfileMemory): """ The permitted memory values (in gibibytes) for a bare metal server with this profile. @@ -106221,7 +107242,6 @@ class TypeEnum(str, Enum): ENUM = 'enum' - class BareMetalServerProfileMemoryFixed(BareMetalServerProfileMemory): """ The memory (in gibibytes) for a bare metal server with this profile. @@ -106299,7 +107319,6 @@ class TypeEnum(str, Enum): FIXED = 'fixed' - class BareMetalServerProfileMemoryRange(BareMetalServerProfileMemory): """ The permitted memory range (in gibibytes) for a bare metal server with this profile. @@ -106407,7 +107426,6 @@ class TypeEnum(str, Enum): RANGE = 'range' - class BareMetalServerProfileNetworkAttachmentCountDependent(BareMetalServerProfileNetworkAttachmentCount): """ The number of network attachments supported on a bare metal server with this profile @@ -106435,7 +107453,9 @@ def from_dict(cls, _dict: Dict) -> 'BareMetalServerProfileNetworkAttachmentCount if (type := _dict.get('type')) is not None: args['type'] = type else: - raise ValueError('Required property \'type\' not present in BareMetalServerProfileNetworkAttachmentCountDependent JSON') + raise ValueError( + 'Required property \'type\' not present in BareMetalServerProfileNetworkAttachmentCountDependent JSON' + ) return cls(**args) @classmethod @@ -106476,7 +107496,6 @@ class TypeEnum(str, Enum): DEPENDENT = 'dependent' - class BareMetalServerProfileNetworkAttachmentCountRange(BareMetalServerProfileNetworkAttachmentCount): """ The number of network attachments supported on a bare metal server with this profile. @@ -106516,7 +107535,9 @@ def from_dict(cls, _dict: Dict) -> 'BareMetalServerProfileNetworkAttachmentCount if (type := _dict.get('type')) is not None: args['type'] = type else: - raise ValueError('Required property \'type\' not present in BareMetalServerProfileNetworkAttachmentCountRange JSON') + raise ValueError( + 'Required property \'type\' not present in BareMetalServerProfileNetworkAttachmentCountRange JSON' + ) return cls(**args) @classmethod @@ -106561,7 +107582,6 @@ class TypeEnum(str, Enum): RANGE = 'range' - class BareMetalServerProfileNetworkInterfaceCountDependent(BareMetalServerProfileNetworkInterfaceCount): """ The number of bare metal server network interfaces supported on a bare metal server @@ -106589,7 +107609,9 @@ def from_dict(cls, _dict: Dict) -> 'BareMetalServerProfileNetworkInterfaceCountD if (type := _dict.get('type')) is not None: args['type'] = type else: - raise ValueError('Required property \'type\' not present in BareMetalServerProfileNetworkInterfaceCountDependent JSON') + raise ValueError( + 'Required property \'type\' not present in BareMetalServerProfileNetworkInterfaceCountDependent JSON' + ) return cls(**args) @classmethod @@ -106630,7 +107652,6 @@ class TypeEnum(str, Enum): DEPENDENT = 'dependent' - class BareMetalServerProfileNetworkInterfaceCountRange(BareMetalServerProfileNetworkInterfaceCount): """ The number of bare metal server network interfaces supported on a bare metal server @@ -106671,7 +107692,9 @@ def from_dict(cls, _dict: Dict) -> 'BareMetalServerProfileNetworkInterfaceCountR if (type := _dict.get('type')) is not None: args['type'] = type else: - raise ValueError('Required property \'type\' not present in BareMetalServerProfileNetworkInterfaceCountRange JSON') + raise ValueError( + 'Required property \'type\' not present in BareMetalServerProfileNetworkInterfaceCountRange JSON' + ) return cls(**args) @classmethod @@ -106716,7 +107739,6 @@ class TypeEnum(str, Enum): RANGE = 'range' - class BareMetalServerPrototypeBareMetalServerByNetworkAttachment(BareMetalServerPrototype): """ BareMetalServerPrototypeBareMetalServerByNetworkAttachment. @@ -106825,29 +107847,39 @@ def from_dict(cls, _dict: Dict) -> 'BareMetalServerPrototypeBareMetalServerByNet if (initialization := _dict.get('initialization')) is not None: args['initialization'] = BareMetalServerInitializationPrototype.from_dict(initialization) else: - raise ValueError('Required property \'initialization\' not present in BareMetalServerPrototypeBareMetalServerByNetworkAttachment JSON') + raise ValueError( + 'Required property \'initialization\' not present in BareMetalServerPrototypeBareMetalServerByNetworkAttachment JSON' + ) if (name := _dict.get('name')) is not None: args['name'] = name if (profile := _dict.get('profile')) is not None: args['profile'] = profile else: - raise ValueError('Required property \'profile\' not present in BareMetalServerPrototypeBareMetalServerByNetworkAttachment JSON') + raise ValueError( + 'Required property \'profile\' not present in BareMetalServerPrototypeBareMetalServerByNetworkAttachment JSON' + ) if (resource_group := _dict.get('resource_group')) is not None: args['resource_group'] = resource_group if (trusted_platform_module := _dict.get('trusted_platform_module')) is not None: - args['trusted_platform_module'] = BareMetalServerTrustedPlatformModulePrototype.from_dict(trusted_platform_module) + args['trusted_platform_module'] = BareMetalServerTrustedPlatformModulePrototype.from_dict( + trusted_platform_module + ) if (vpc := _dict.get('vpc')) is not None: args['vpc'] = vpc if (zone := _dict.get('zone')) is not None: args['zone'] = zone else: - raise ValueError('Required property \'zone\' not present in BareMetalServerPrototypeBareMetalServerByNetworkAttachment JSON') + raise ValueError( + 'Required property \'zone\' not present in BareMetalServerPrototypeBareMetalServerByNetworkAttachment JSON' + ) if (network_attachments := _dict.get('network_attachments')) is not None: args['network_attachments'] = network_attachments if (primary_network_attachment := _dict.get('primary_network_attachment')) is not None: args['primary_network_attachment'] = primary_network_attachment else: - raise ValueError('Required property \'primary_network_attachment\' not present in BareMetalServerPrototypeBareMetalServerByNetworkAttachment JSON') + raise ValueError( + 'Required property \'primary_network_attachment\' not present in BareMetalServerPrototypeBareMetalServerByNetworkAttachment JSON' + ) return cls(**args) @classmethod @@ -107034,29 +108066,43 @@ def from_dict(cls, _dict: Dict) -> 'BareMetalServerPrototypeBareMetalServerByNet if (initialization := _dict.get('initialization')) is not None: args['initialization'] = BareMetalServerInitializationPrototype.from_dict(initialization) else: - raise ValueError('Required property \'initialization\' not present in BareMetalServerPrototypeBareMetalServerByNetworkInterface JSON') + raise ValueError( + 'Required property \'initialization\' not present in BareMetalServerPrototypeBareMetalServerByNetworkInterface JSON' + ) if (name := _dict.get('name')) is not None: args['name'] = name if (profile := _dict.get('profile')) is not None: args['profile'] = profile else: - raise ValueError('Required property \'profile\' not present in BareMetalServerPrototypeBareMetalServerByNetworkInterface JSON') + raise ValueError( + 'Required property \'profile\' not present in BareMetalServerPrototypeBareMetalServerByNetworkInterface JSON' + ) if (resource_group := _dict.get('resource_group')) is not None: args['resource_group'] = resource_group if (trusted_platform_module := _dict.get('trusted_platform_module')) is not None: - args['trusted_platform_module'] = BareMetalServerTrustedPlatformModulePrototype.from_dict(trusted_platform_module) + args['trusted_platform_module'] = BareMetalServerTrustedPlatformModulePrototype.from_dict( + trusted_platform_module + ) if (vpc := _dict.get('vpc')) is not None: args['vpc'] = vpc if (zone := _dict.get('zone')) is not None: args['zone'] = zone else: - raise ValueError('Required property \'zone\' not present in BareMetalServerPrototypeBareMetalServerByNetworkInterface JSON') + raise ValueError( + 'Required property \'zone\' not present in BareMetalServerPrototypeBareMetalServerByNetworkInterface JSON' + ) if (network_interfaces := _dict.get('network_interfaces')) is not None: - args['network_interfaces'] = [BareMetalServerNetworkInterfacePrototype.from_dict(v) for v in network_interfaces] + args['network_interfaces'] = [ + BareMetalServerNetworkInterfacePrototype.from_dict(v) for v in network_interfaces + ] if (primary_network_interface := _dict.get('primary_network_interface')) is not None: - args['primary_network_interface'] = BareMetalServerPrimaryNetworkInterfacePrototype.from_dict(primary_network_interface) + args['primary_network_interface'] = BareMetalServerPrimaryNetworkInterfacePrototype.from_dict( + primary_network_interface + ) else: - raise ValueError('Required property \'primary_network_interface\' not present in BareMetalServerPrototypeBareMetalServerByNetworkInterface JSON') + raise ValueError( + 'Required property \'primary_network_interface\' not present in BareMetalServerPrototypeBareMetalServerByNetworkInterface JSON' + ) return cls(**args) @classmethod @@ -107167,7 +108213,9 @@ def from_dict(cls, _dict: Dict) -> 'CatalogOfferingIdentityCatalogOfferingByCRN' if (crn := _dict.get('crn')) is not None: args['crn'] = crn else: - raise ValueError('Required property \'crn\' not present in CatalogOfferingIdentityCatalogOfferingByCRN JSON') + raise ValueError( + 'Required property \'crn\' not present in CatalogOfferingIdentityCatalogOfferingByCRN JSON' + ) return cls(**args) @classmethod @@ -107231,7 +108279,9 @@ def from_dict(cls, _dict: Dict) -> 'CatalogOfferingVersionIdentityCatalogOfferin if (crn := _dict.get('crn')) is not None: args['crn'] = crn else: - raise ValueError('Required property \'crn\' not present in CatalogOfferingVersionIdentityCatalogOfferingVersionByCRN JSON') + raise ValueError( + 'Required property \'crn\' not present in CatalogOfferingVersionIdentityCatalogOfferingVersionByCRN JSON' + ) return cls(**args) @classmethod @@ -107295,7 +108345,9 @@ def from_dict(cls, _dict: Dict) -> 'CatalogOfferingVersionPlanIdentityCatalogOff if (crn := _dict.get('crn')) is not None: args['crn'] = crn else: - raise ValueError('Required property \'crn\' not present in CatalogOfferingVersionPlanIdentityCatalogOfferingVersionPlanByCRN JSON') + raise ValueError( + 'Required property \'crn\' not present in CatalogOfferingVersionPlanIdentityCatalogOfferingVersionPlanByCRN JSON' + ) return cls(**args) @classmethod @@ -107476,7 +108528,9 @@ def from_dict(cls, _dict: Dict) -> 'CloudObjectStorageBucketIdentityCloudObjectS if (name := _dict.get('name')) is not None: args['name'] = name else: - raise ValueError('Required property \'name\' not present in CloudObjectStorageBucketIdentityCloudObjectStorageBucketIdentityByName JSON') + raise ValueError( + 'Required property \'name\' not present in CloudObjectStorageBucketIdentityCloudObjectStorageBucketIdentityByName JSON' + ) return cls(**args) @classmethod @@ -107510,7 +108564,9 @@ def __ne__(self, other: 'CloudObjectStorageBucketIdentityCloudObjectStorageBucke return not self == other -class ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPIdentityClusterNetworkInterfacePrimaryIPContext(ClusterNetworkInterfacePrimaryIPPrototype): +class ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPIdentityClusterNetworkInterfacePrimaryIPContext( + ClusterNetworkInterfacePrimaryIPPrototype +): """ Identifies a cluster network subnet reserved IP by a unique property. Required if `subnet` is not specified. The cluster network subnet reserved IP must be currently @@ -107527,12 +108583,19 @@ def __init__( """ # pylint: disable=super-init-not-called msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPIdentityClusterNetworkInterfacePrimaryIPContextById', 'ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPIdentityClusterNetworkInterfacePrimaryIPContextByHref']) + ", ".join( + [ + 'ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPIdentityClusterNetworkInterfacePrimaryIPContextById', + 'ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPIdentityClusterNetworkInterfacePrimaryIPContextByHref', + ] + ) ) raise Exception(msg) -class ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPPrototypeClusterNetworkInterfacePrimaryIPContext(ClusterNetworkInterfacePrimaryIPPrototype): +class ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPPrototypeClusterNetworkInterfacePrimaryIPContext( + ClusterNetworkInterfacePrimaryIPPrototype +): """ The prototype for a new cluster network subnet reserved IP. Requires `subnet` to be specified. @@ -107580,7 +108643,9 @@ def __init__( self.name = name @classmethod - def from_dict(cls, _dict: Dict) -> 'ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPPrototypeClusterNetworkInterfacePrimaryIPContext': + def from_dict( + cls, _dict: Dict + ) -> 'ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPPrototypeClusterNetworkInterfacePrimaryIPContext': """Initialize a ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPPrototypeClusterNetworkInterfacePrimaryIPContext object from a json dictionary.""" args = {} if (address := _dict.get('address')) is not None: @@ -107615,18 +108680,26 @@ def __str__(self) -> str: """Return a `str` version of this ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPPrototypeClusterNetworkInterfacePrimaryIPContext object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPPrototypeClusterNetworkInterfacePrimaryIPContext') -> bool: + def __eq__( + self, + other: 'ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPPrototypeClusterNetworkInterfacePrimaryIPContext', + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPPrototypeClusterNetworkInterfacePrimaryIPContext') -> bool: + def __ne__( + self, + other: 'ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPPrototypeClusterNetworkInterfacePrimaryIPContext', + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other -class ClusterNetworkInterfaceTargetInstanceClusterNetworkAttachmentReferenceClusterNetworkInterfaceContext(ClusterNetworkInterfaceTarget): +class ClusterNetworkInterfaceTargetInstanceClusterNetworkAttachmentReferenceClusterNetworkInterfaceContext( + ClusterNetworkInterfaceTarget +): """ ClusterNetworkInterfaceTargetInstanceClusterNetworkAttachmentReferenceClusterNetworkInterfaceContext. @@ -107662,25 +108735,35 @@ def __init__( self.resource_type = resource_type @classmethod - def from_dict(cls, _dict: Dict) -> 'ClusterNetworkInterfaceTargetInstanceClusterNetworkAttachmentReferenceClusterNetworkInterfaceContext': + def from_dict( + cls, _dict: Dict + ) -> 'ClusterNetworkInterfaceTargetInstanceClusterNetworkAttachmentReferenceClusterNetworkInterfaceContext': """Initialize a ClusterNetworkInterfaceTargetInstanceClusterNetworkAttachmentReferenceClusterNetworkInterfaceContext object from a json dictionary.""" args = {} if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in ClusterNetworkInterfaceTargetInstanceClusterNetworkAttachmentReferenceClusterNetworkInterfaceContext JSON') + raise ValueError( + 'Required property \'href\' not present in ClusterNetworkInterfaceTargetInstanceClusterNetworkAttachmentReferenceClusterNetworkInterfaceContext JSON' + ) if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in ClusterNetworkInterfaceTargetInstanceClusterNetworkAttachmentReferenceClusterNetworkInterfaceContext JSON') + raise ValueError( + 'Required property \'id\' not present in ClusterNetworkInterfaceTargetInstanceClusterNetworkAttachmentReferenceClusterNetworkInterfaceContext JSON' + ) if (name := _dict.get('name')) is not None: args['name'] = name else: - raise ValueError('Required property \'name\' not present in ClusterNetworkInterfaceTargetInstanceClusterNetworkAttachmentReferenceClusterNetworkInterfaceContext JSON') + raise ValueError( + 'Required property \'name\' not present in ClusterNetworkInterfaceTargetInstanceClusterNetworkAttachmentReferenceClusterNetworkInterfaceContext JSON' + ) if (resource_type := _dict.get('resource_type')) is not None: args['resource_type'] = resource_type else: - raise ValueError('Required property \'resource_type\' not present in ClusterNetworkInterfaceTargetInstanceClusterNetworkAttachmentReferenceClusterNetworkInterfaceContext JSON') + raise ValueError( + 'Required property \'resource_type\' not present in ClusterNetworkInterfaceTargetInstanceClusterNetworkAttachmentReferenceClusterNetworkInterfaceContext JSON' + ) return cls(**args) @classmethod @@ -107709,13 +108792,19 @@ def __str__(self) -> str: """Return a `str` version of this ClusterNetworkInterfaceTargetInstanceClusterNetworkAttachmentReferenceClusterNetworkInterfaceContext object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'ClusterNetworkInterfaceTargetInstanceClusterNetworkAttachmentReferenceClusterNetworkInterfaceContext') -> bool: + def __eq__( + self, + other: 'ClusterNetworkInterfaceTargetInstanceClusterNetworkAttachmentReferenceClusterNetworkInterfaceContext', + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'ClusterNetworkInterfaceTargetInstanceClusterNetworkAttachmentReferenceClusterNetworkInterfaceContext') -> bool: + def __ne__( + self, + other: 'ClusterNetworkInterfaceTargetInstanceClusterNetworkAttachmentReferenceClusterNetworkInterfaceContext', + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other @@ -107727,7 +108816,6 @@ class ResourceTypeEnum(str, Enum): INSTANCE_CLUSTER_NETWORK_ATTACHMENT = 'instance_cluster_network_attachment' - class ClusterNetworkProfileIdentityByHref(ClusterNetworkProfileIdentity): """ ClusterNetworkProfileIdentityByHref. @@ -108034,7 +109122,9 @@ def from_dict(cls, _dict: Dict) -> 'ClusterNetworkSubnetPrototypeClusterNetworkS if (ipv4_cidr_block := _dict.get('ipv4_cidr_block')) is not None: args['ipv4_cidr_block'] = ipv4_cidr_block else: - raise ValueError('Required property \'ipv4_cidr_block\' not present in ClusterNetworkSubnetPrototypeClusterNetworkSubnetByIPv4CIDRBlockPrototype JSON') + raise ValueError( + 'Required property \'ipv4_cidr_block\' not present in ClusterNetworkSubnetPrototypeClusterNetworkSubnetByIPv4CIDRBlockPrototype JSON' + ) return cls(**args) @classmethod @@ -108079,7 +109169,6 @@ class IpVersionEnum(str, Enum): IPV4 = 'ipv4' - class ClusterNetworkSubnetPrototypeClusterNetworkSubnetByTotalCountPrototype(ClusterNetworkSubnetPrototype): """ ClusterNetworkSubnetPrototypeClusterNetworkSubnetByTotalCountPrototype. @@ -108138,7 +109227,9 @@ def from_dict(cls, _dict: Dict) -> 'ClusterNetworkSubnetPrototypeClusterNetworkS if (total_ipv4_address_count := _dict.get('total_ipv4_address_count')) is not None: args['total_ipv4_address_count'] = total_ipv4_address_count else: - raise ValueError('Required property \'total_ipv4_address_count\' not present in ClusterNetworkSubnetPrototypeClusterNetworkSubnetByTotalCountPrototype JSON') + raise ValueError( + 'Required property \'total_ipv4_address_count\' not present in ClusterNetworkSubnetPrototypeClusterNetworkSubnetByTotalCountPrototype JSON' + ) return cls(**args) @classmethod @@ -108183,8 +109274,9 @@ class IpVersionEnum(str, Enum): IPV4 = 'ipv4' - -class ClusterNetworkSubnetReservedIPTargetClusterNetworkInterfaceReferenceClusterNetworkSubnetReservedIPTargetContext(ClusterNetworkSubnetReservedIPTarget): +class ClusterNetworkSubnetReservedIPTargetClusterNetworkInterfaceReferenceClusterNetworkSubnetReservedIPTargetContext( + ClusterNetworkSubnetReservedIPTarget +): """ ClusterNetworkSubnetReservedIPTargetClusterNetworkInterfaceReferenceClusterNetworkSubnetReservedIPTargetContext. @@ -108227,7 +109319,9 @@ def __init__( self.resource_type = resource_type @classmethod - def from_dict(cls, _dict: Dict) -> 'ClusterNetworkSubnetReservedIPTargetClusterNetworkInterfaceReferenceClusterNetworkSubnetReservedIPTargetContext': + def from_dict( + cls, _dict: Dict + ) -> 'ClusterNetworkSubnetReservedIPTargetClusterNetworkInterfaceReferenceClusterNetworkSubnetReservedIPTargetContext': """Initialize a ClusterNetworkSubnetReservedIPTargetClusterNetworkInterfaceReferenceClusterNetworkSubnetReservedIPTargetContext object from a json dictionary.""" args = {} if (deleted := _dict.get('deleted')) is not None: @@ -108235,19 +109329,27 @@ def from_dict(cls, _dict: Dict) -> 'ClusterNetworkSubnetReservedIPTargetClusterN if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in ClusterNetworkSubnetReservedIPTargetClusterNetworkInterfaceReferenceClusterNetworkSubnetReservedIPTargetContext JSON') + raise ValueError( + 'Required property \'href\' not present in ClusterNetworkSubnetReservedIPTargetClusterNetworkInterfaceReferenceClusterNetworkSubnetReservedIPTargetContext JSON' + ) if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in ClusterNetworkSubnetReservedIPTargetClusterNetworkInterfaceReferenceClusterNetworkSubnetReservedIPTargetContext JSON') + raise ValueError( + 'Required property \'id\' not present in ClusterNetworkSubnetReservedIPTargetClusterNetworkInterfaceReferenceClusterNetworkSubnetReservedIPTargetContext JSON' + ) if (name := _dict.get('name')) is not None: args['name'] = name else: - raise ValueError('Required property \'name\' not present in ClusterNetworkSubnetReservedIPTargetClusterNetworkInterfaceReferenceClusterNetworkSubnetReservedIPTargetContext JSON') + raise ValueError( + 'Required property \'name\' not present in ClusterNetworkSubnetReservedIPTargetClusterNetworkInterfaceReferenceClusterNetworkSubnetReservedIPTargetContext JSON' + ) if (resource_type := _dict.get('resource_type')) is not None: args['resource_type'] = resource_type else: - raise ValueError('Required property \'resource_type\' not present in ClusterNetworkSubnetReservedIPTargetClusterNetworkInterfaceReferenceClusterNetworkSubnetReservedIPTargetContext JSON') + raise ValueError( + 'Required property \'resource_type\' not present in ClusterNetworkSubnetReservedIPTargetClusterNetworkInterfaceReferenceClusterNetworkSubnetReservedIPTargetContext JSON' + ) return cls(**args) @classmethod @@ -108281,13 +109383,19 @@ def __str__(self) -> str: """Return a `str` version of this ClusterNetworkSubnetReservedIPTargetClusterNetworkInterfaceReferenceClusterNetworkSubnetReservedIPTargetContext object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'ClusterNetworkSubnetReservedIPTargetClusterNetworkInterfaceReferenceClusterNetworkSubnetReservedIPTargetContext') -> bool: + def __eq__( + self, + other: 'ClusterNetworkSubnetReservedIPTargetClusterNetworkInterfaceReferenceClusterNetworkSubnetReservedIPTargetContext', + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'ClusterNetworkSubnetReservedIPTargetClusterNetworkInterfaceReferenceClusterNetworkSubnetReservedIPTargetContext') -> bool: + def __ne__( + self, + other: 'ClusterNetworkSubnetReservedIPTargetClusterNetworkInterfaceReferenceClusterNetworkSubnetReservedIPTargetContext', + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other @@ -108299,7 +109407,6 @@ class ResourceTypeEnum(str, Enum): CLUSTER_NETWORK_INTERFACE = 'cluster_network_interface' - class DNSInstanceIdentityByCRN(DNSInstanceIdentity): """ DNSInstanceIdentityByCRN. @@ -108787,7 +109894,6 @@ class TypeEnum(str, Enum): DEPENDENT = 'dependent' - class DedicatedHostProfileMemoryEnum(DedicatedHostProfileMemory): """ The permitted memory values (in gibibytes) for a dedicated host with this profile. @@ -108875,7 +109981,6 @@ class TypeEnum(str, Enum): ENUM = 'enum' - class DedicatedHostProfileMemoryFixed(DedicatedHostProfileMemory): """ The memory (in gibibytes) for a dedicated host with this profile. @@ -108953,7 +110058,6 @@ class TypeEnum(str, Enum): FIXED = 'fixed' - class DedicatedHostProfileMemoryRange(DedicatedHostProfileMemory): """ The permitted memory range (in gibibytes) for a dedicated host with this profile. @@ -109061,7 +110165,6 @@ class TypeEnum(str, Enum): RANGE = 'range' - class DedicatedHostProfileSocketDependent(DedicatedHostProfileSocket): """ The CPU socket count for a dedicated host with this profile depends on its @@ -109130,7 +110233,6 @@ class TypeEnum(str, Enum): DEPENDENT = 'dependent' - class DedicatedHostProfileSocketEnum(DedicatedHostProfileSocket): """ The permitted values for CPU socket count for a dedicated host with this profile. @@ -109218,7 +110320,6 @@ class TypeEnum(str, Enum): ENUM = 'enum' - class DedicatedHostProfileSocketFixed(DedicatedHostProfileSocket): """ The CPU socket count for a dedicated host with this profile. @@ -109296,7 +110397,6 @@ class TypeEnum(str, Enum): FIXED = 'fixed' - class DedicatedHostProfileSocketRange(DedicatedHostProfileSocket): """ The permitted range for CPU socket count for a dedicated host with this profile. @@ -109404,7 +110504,6 @@ class TypeEnum(str, Enum): RANGE = 'range' - class DedicatedHostProfileVCPUDependent(DedicatedHostProfileVCPU): """ The VCPU count for a dedicated host with this profile depends on its configuration. @@ -109472,7 +110571,6 @@ class TypeEnum(str, Enum): DEPENDENT = 'dependent' - class DedicatedHostProfileVCPUEnum(DedicatedHostProfileVCPU): """ The permitted values for VCPU count for a dedicated host with this profile. @@ -109560,7 +110658,6 @@ class TypeEnum(str, Enum): ENUM = 'enum' - class DedicatedHostProfileVCPUFixed(DedicatedHostProfileVCPU): """ The VCPU count for a dedicated host with this profile. @@ -109638,7 +110735,6 @@ class TypeEnum(str, Enum): FIXED = 'fixed' - class DedicatedHostProfileVCPURange(DedicatedHostProfileVCPU): """ The permitted range for VCPU count for a dedicated host with this profile. @@ -109746,7 +110842,6 @@ class TypeEnum(str, Enum): RANGE = 'range' - class DedicatedHostPrototypeDedicatedHostByGroup(DedicatedHostPrototype): """ DedicatedHostPrototypeDedicatedHostByGroup. @@ -109806,13 +110901,17 @@ def from_dict(cls, _dict: Dict) -> 'DedicatedHostPrototypeDedicatedHostByGroup': if (profile := _dict.get('profile')) is not None: args['profile'] = profile else: - raise ValueError('Required property \'profile\' not present in DedicatedHostPrototypeDedicatedHostByGroup JSON') + raise ValueError( + 'Required property \'profile\' not present in DedicatedHostPrototypeDedicatedHostByGroup JSON' + ) if (resource_group := _dict.get('resource_group')) is not None: args['resource_group'] = resource_group if (group := _dict.get('group')) is not None: args['group'] = group else: - raise ValueError('Required property \'group\' not present in DedicatedHostPrototypeDedicatedHostByGroup JSON') + raise ValueError( + 'Required property \'group\' not present in DedicatedHostPrototypeDedicatedHostByGroup JSON' + ) return cls(**args) @classmethod @@ -109925,7 +111024,9 @@ def from_dict(cls, _dict: Dict) -> 'DedicatedHostPrototypeDedicatedHostByZone': if (profile := _dict.get('profile')) is not None: args['profile'] = profile else: - raise ValueError('Required property \'profile\' not present in DedicatedHostPrototypeDedicatedHostByZone JSON') + raise ValueError( + 'Required property \'profile\' not present in DedicatedHostPrototypeDedicatedHostByZone JSON' + ) if (resource_group := _dict.get('resource_group')) is not None: args['resource_group'] = resource_group if (group := _dict.get('group')) is not None: @@ -110072,7 +111173,9 @@ def __init__( """ # pylint: disable=super-init-not-called msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['EndpointGatewayReservedIPReservedIPIdentityById', 'EndpointGatewayReservedIPReservedIPIdentityByHref']) + ", ".join( + ['EndpointGatewayReservedIPReservedIPIdentityById', 'EndpointGatewayReservedIPReservedIPIdentityByHref'] + ) ) raise Exception(msg) @@ -110139,7 +111242,9 @@ def from_dict(cls, _dict: Dict) -> 'EndpointGatewayReservedIPReservedIPPrototype if (subnet := _dict.get('subnet')) is not None: args['subnet'] = subnet else: - raise ValueError('Required property \'subnet\' not present in EndpointGatewayReservedIPReservedIPPrototypeTargetContext JSON') + raise ValueError( + 'Required property \'subnet\' not present in EndpointGatewayReservedIPReservedIPPrototypeTargetContext JSON' + ) return cls(**args) @classmethod @@ -110182,7 +111287,9 @@ def __ne__(self, other: 'EndpointGatewayReservedIPReservedIPPrototypeTargetConte return not self == other -class EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypePrivatePathServiceGatewayPrototype(EndpointGatewayTargetPrototype): +class EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypePrivatePathServiceGatewayPrototype( + EndpointGatewayTargetPrototype +): """ EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypePrivatePathServiceGatewayPrototype. @@ -110207,17 +111314,23 @@ def __init__( self.resource_type = resource_type @classmethod - def from_dict(cls, _dict: Dict) -> 'EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypePrivatePathServiceGatewayPrototype': + def from_dict( + cls, _dict: Dict + ) -> 'EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypePrivatePathServiceGatewayPrototype': """Initialize a EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypePrivatePathServiceGatewayPrototype object from a json dictionary.""" args = {} if (crn := _dict.get('crn')) is not None: args['crn'] = crn else: - raise ValueError('Required property \'crn\' not present in EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypePrivatePathServiceGatewayPrototype JSON') + raise ValueError( + 'Required property \'crn\' not present in EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypePrivatePathServiceGatewayPrototype JSON' + ) if (resource_type := _dict.get('resource_type')) is not None: args['resource_type'] = resource_type else: - raise ValueError('Required property \'resource_type\' not present in EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypePrivatePathServiceGatewayPrototype JSON') + raise ValueError( + 'Required property \'resource_type\' not present in EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypePrivatePathServiceGatewayPrototype JSON' + ) return cls(**args) @classmethod @@ -110242,13 +111355,17 @@ def __str__(self) -> str: """Return a `str` version of this EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypePrivatePathServiceGatewayPrototype object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypePrivatePathServiceGatewayPrototype') -> bool: + def __eq__( + self, other: 'EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypePrivatePathServiceGatewayPrototype' + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypePrivatePathServiceGatewayPrototype') -> bool: + def __ne__( + self, other: 'EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypePrivatePathServiceGatewayPrototype' + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other @@ -110260,8 +111377,9 @@ class ResourceTypeEnum(str, Enum): PRIVATE_PATH_SERVICE_GATEWAY = 'private_path_service_gateway' - -class EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypeProviderCloudServicePrototype(EndpointGatewayTargetPrototype): +class EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypeProviderCloudServicePrototype( + EndpointGatewayTargetPrototype +): """ EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypeProviderCloudServicePrototype. @@ -110288,17 +111406,23 @@ def __init__( self.resource_type = resource_type @classmethod - def from_dict(cls, _dict: Dict) -> 'EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypeProviderCloudServicePrototype': + def from_dict( + cls, _dict: Dict + ) -> 'EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypeProviderCloudServicePrototype': """Initialize a EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypeProviderCloudServicePrototype object from a json dictionary.""" args = {} if (crn := _dict.get('crn')) is not None: args['crn'] = crn else: - raise ValueError('Required property \'crn\' not present in EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypeProviderCloudServicePrototype JSON') + raise ValueError( + 'Required property \'crn\' not present in EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypeProviderCloudServicePrototype JSON' + ) if (resource_type := _dict.get('resource_type')) is not None: args['resource_type'] = resource_type else: - raise ValueError('Required property \'resource_type\' not present in EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypeProviderCloudServicePrototype JSON') + raise ValueError( + 'Required property \'resource_type\' not present in EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypeProviderCloudServicePrototype JSON' + ) return cls(**args) @classmethod @@ -110323,13 +111447,17 @@ def __str__(self) -> str: """Return a `str` version of this EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypeProviderCloudServicePrototype object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypeProviderCloudServicePrototype') -> bool: + def __eq__( + self, other: 'EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypeProviderCloudServicePrototype' + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypeProviderCloudServicePrototype') -> bool: + def __ne__( + self, other: 'EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypeProviderCloudServicePrototype' + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other @@ -110341,8 +111469,9 @@ class ResourceTypeEnum(str, Enum): PROVIDER_CLOUD_SERVICE = 'provider_cloud_service' - -class EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypeProviderInfrastructureServicePrototype(EndpointGatewayTargetPrototype): +class EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypeProviderInfrastructureServicePrototype( + EndpointGatewayTargetPrototype +): """ The name of this provider infrastructure service. @@ -110369,17 +111498,23 @@ def __init__( self.resource_type = resource_type @classmethod - def from_dict(cls, _dict: Dict) -> 'EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypeProviderInfrastructureServicePrototype': + def from_dict( + cls, _dict: Dict + ) -> 'EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypeProviderInfrastructureServicePrototype': """Initialize a EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypeProviderInfrastructureServicePrototype object from a json dictionary.""" args = {} if (name := _dict.get('name')) is not None: args['name'] = name else: - raise ValueError('Required property \'name\' not present in EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypeProviderInfrastructureServicePrototype JSON') + raise ValueError( + 'Required property \'name\' not present in EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypeProviderInfrastructureServicePrototype JSON' + ) if (resource_type := _dict.get('resource_type')) is not None: args['resource_type'] = resource_type else: - raise ValueError('Required property \'resource_type\' not present in EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypeProviderInfrastructureServicePrototype JSON') + raise ValueError( + 'Required property \'resource_type\' not present in EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypeProviderInfrastructureServicePrototype JSON' + ) return cls(**args) @classmethod @@ -110404,13 +111539,19 @@ def __str__(self) -> str: """Return a `str` version of this EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypeProviderInfrastructureServicePrototype object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypeProviderInfrastructureServicePrototype') -> bool: + def __eq__( + self, + other: 'EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypeProviderInfrastructureServicePrototype', + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypeProviderInfrastructureServicePrototype') -> bool: + def __ne__( + self, + other: 'EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypeProviderInfrastructureServicePrototype', + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other @@ -110422,7 +111563,6 @@ class ResourceTypeEnum(str, Enum): PROVIDER_INFRASTRUCTURE_SERVICE = 'provider_infrastructure_service' - class EndpointGatewayTargetPrivatePathServiceGatewayReference(EndpointGatewayTarget): """ EndpointGatewayTargetPrivatePathServiceGatewayReference. @@ -110484,27 +111624,37 @@ def from_dict(cls, _dict: Dict) -> 'EndpointGatewayTargetPrivatePathServiceGatew if (crn := _dict.get('crn')) is not None: args['crn'] = crn else: - raise ValueError('Required property \'crn\' not present in EndpointGatewayTargetPrivatePathServiceGatewayReference JSON') + raise ValueError( + 'Required property \'crn\' not present in EndpointGatewayTargetPrivatePathServiceGatewayReference JSON' + ) if (deleted := _dict.get('deleted')) is not None: args['deleted'] = Deleted.from_dict(deleted) if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in EndpointGatewayTargetPrivatePathServiceGatewayReference JSON') + raise ValueError( + 'Required property \'href\' not present in EndpointGatewayTargetPrivatePathServiceGatewayReference JSON' + ) if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in EndpointGatewayTargetPrivatePathServiceGatewayReference JSON') + raise ValueError( + 'Required property \'id\' not present in EndpointGatewayTargetPrivatePathServiceGatewayReference JSON' + ) if (name := _dict.get('name')) is not None: args['name'] = name else: - raise ValueError('Required property \'name\' not present in EndpointGatewayTargetPrivatePathServiceGatewayReference JSON') + raise ValueError( + 'Required property \'name\' not present in EndpointGatewayTargetPrivatePathServiceGatewayReference JSON' + ) if (remote := _dict.get('remote')) is not None: args['remote'] = PrivatePathServiceGatewayRemote.from_dict(remote) if (resource_type := _dict.get('resource_type')) is not None: args['resource_type'] = resource_type else: - raise ValueError('Required property \'resource_type\' not present in EndpointGatewayTargetPrivatePathServiceGatewayReference JSON') + raise ValueError( + 'Required property \'resource_type\' not present in EndpointGatewayTargetPrivatePathServiceGatewayReference JSON' + ) return cls(**args) @classmethod @@ -110563,7 +111713,6 @@ class ResourceTypeEnum(str, Enum): PRIVATE_PATH_SERVICE_GATEWAY = 'private_path_service_gateway' - class EndpointGatewayTargetProviderCloudServiceReference(EndpointGatewayTarget): """ EndpointGatewayTargetProviderCloudServiceReference. @@ -110596,11 +111745,15 @@ def from_dict(cls, _dict: Dict) -> 'EndpointGatewayTargetProviderCloudServiceRef if (crn := _dict.get('crn')) is not None: args['crn'] = crn else: - raise ValueError('Required property \'crn\' not present in EndpointGatewayTargetProviderCloudServiceReference JSON') + raise ValueError( + 'Required property \'crn\' not present in EndpointGatewayTargetProviderCloudServiceReference JSON' + ) if (resource_type := _dict.get('resource_type')) is not None: args['resource_type'] = resource_type else: - raise ValueError('Required property \'resource_type\' not present in EndpointGatewayTargetProviderCloudServiceReference JSON') + raise ValueError( + 'Required property \'resource_type\' not present in EndpointGatewayTargetProviderCloudServiceReference JSON' + ) return cls(**args) @classmethod @@ -110643,7 +111796,6 @@ class ResourceTypeEnum(str, Enum): PROVIDER_CLOUD_SERVICE = 'provider_cloud_service' - class EndpointGatewayTargetProviderInfrastructureServiceReference(EndpointGatewayTarget): """ The name of this provider infrastructure service. @@ -110676,11 +111828,15 @@ def from_dict(cls, _dict: Dict) -> 'EndpointGatewayTargetProviderInfrastructureS if (name := _dict.get('name')) is not None: args['name'] = name else: - raise ValueError('Required property \'name\' not present in EndpointGatewayTargetProviderInfrastructureServiceReference JSON') + raise ValueError( + 'Required property \'name\' not present in EndpointGatewayTargetProviderInfrastructureServiceReference JSON' + ) if (resource_type := _dict.get('resource_type')) is not None: args['resource_type'] = resource_type else: - raise ValueError('Required property \'resource_type\' not present in EndpointGatewayTargetProviderInfrastructureServiceReference JSON') + raise ValueError( + 'Required property \'resource_type\' not present in EndpointGatewayTargetProviderInfrastructureServiceReference JSON' + ) return cls(**args) @classmethod @@ -110723,7 +111879,6 @@ class ResourceTypeEnum(str, Enum): PROVIDER_INFRASTRUCTURE_SERVICE = 'provider_infrastructure_service' - class FloatingIPPrototypeFloatingIPByTarget(FloatingIPPrototype): """ FloatingIPPrototypeFloatingIPByTarget. @@ -110930,7 +112085,12 @@ def __init__( """ # pylint: disable=super-init-not-called msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['FloatingIPTargetPatchBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityById', 'FloatingIPTargetPatchBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityByHref']) + ", ".join( + [ + 'FloatingIPTargetPatchBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityById', + 'FloatingIPTargetPatchBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityByHref', + ] + ) ) raise Exception(msg) @@ -110950,7 +112110,12 @@ def __init__( """ # pylint: disable=super-init-not-called msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['FloatingIPTargetPatchNetworkInterfaceIdentityNetworkInterfaceIdentityById', 'FloatingIPTargetPatchNetworkInterfaceIdentityNetworkInterfaceIdentityByHref']) + ", ".join( + [ + 'FloatingIPTargetPatchNetworkInterfaceIdentityNetworkInterfaceIdentityById', + 'FloatingIPTargetPatchNetworkInterfaceIdentityNetworkInterfaceIdentityByHref', + ] + ) ) raise Exception(msg) @@ -110970,7 +112135,13 @@ def __init__( """ # pylint: disable=super-init-not-called msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById', 'FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref', 'FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN']) + ", ".join( + [ + 'FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById', + 'FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref', + 'FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN', + ] + ) ) raise Exception(msg) @@ -110990,7 +112161,12 @@ def __init__( """ # pylint: disable=super-init-not-called msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['FloatingIPTargetPrototypeBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityById', 'FloatingIPTargetPrototypeBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityByHref']) + ", ".join( + [ + 'FloatingIPTargetPrototypeBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityById', + 'FloatingIPTargetPrototypeBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityByHref', + ] + ) ) raise Exception(msg) @@ -111010,7 +112186,12 @@ def __init__( """ # pylint: disable=super-init-not-called msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['FloatingIPTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityById', 'FloatingIPTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityByHref']) + ", ".join( + [ + 'FloatingIPTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityById', + 'FloatingIPTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityByHref', + ] + ) ) raise Exception(msg) @@ -111030,7 +112211,13 @@ def __init__( """ # pylint: disable=super-init-not-called msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById', 'FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref', 'FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN']) + ", ".join( + [ + 'FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById', + 'FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref', + 'FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN', + ] + ) ) raise Exception(msg) @@ -111111,23 +112298,33 @@ def from_dict(cls, _dict: Dict) -> 'FloatingIPTargetBareMetalServerNetworkInterf if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in FloatingIPTargetBareMetalServerNetworkInterfaceReference JSON') + raise ValueError( + 'Required property \'href\' not present in FloatingIPTargetBareMetalServerNetworkInterfaceReference JSON' + ) if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in FloatingIPTargetBareMetalServerNetworkInterfaceReference JSON') + raise ValueError( + 'Required property \'id\' not present in FloatingIPTargetBareMetalServerNetworkInterfaceReference JSON' + ) if (name := _dict.get('name')) is not None: args['name'] = name else: - raise ValueError('Required property \'name\' not present in FloatingIPTargetBareMetalServerNetworkInterfaceReference JSON') + raise ValueError( + 'Required property \'name\' not present in FloatingIPTargetBareMetalServerNetworkInterfaceReference JSON' + ) if (primary_ip := _dict.get('primary_ip')) is not None: args['primary_ip'] = ReservedIPReference.from_dict(primary_ip) else: - raise ValueError('Required property \'primary_ip\' not present in FloatingIPTargetBareMetalServerNetworkInterfaceReference JSON') + raise ValueError( + 'Required property \'primary_ip\' not present in FloatingIPTargetBareMetalServerNetworkInterfaceReference JSON' + ) if (resource_type := _dict.get('resource_type')) is not None: args['resource_type'] = resource_type else: - raise ValueError('Required property \'resource_type\' not present in FloatingIPTargetBareMetalServerNetworkInterfaceReference JSON') + raise ValueError( + 'Required property \'resource_type\' not present in FloatingIPTargetBareMetalServerNetworkInterfaceReference JSON' + ) return cls(**args) @classmethod @@ -111184,7 +112381,6 @@ class ResourceTypeEnum(str, Enum): NETWORK_INTERFACE = 'network_interface' - class FloatingIPTargetNetworkInterfaceReference(FloatingIPTarget): """ FloatingIPTargetNetworkInterfaceReference. @@ -111269,11 +112465,15 @@ def from_dict(cls, _dict: Dict) -> 'FloatingIPTargetNetworkInterfaceReference': if (primary_ip := _dict.get('primary_ip')) is not None: args['primary_ip'] = ReservedIPReference.from_dict(primary_ip) else: - raise ValueError('Required property \'primary_ip\' not present in FloatingIPTargetNetworkInterfaceReference JSON') + raise ValueError( + 'Required property \'primary_ip\' not present in FloatingIPTargetNetworkInterfaceReference JSON' + ) if (resource_type := _dict.get('resource_type')) is not None: args['resource_type'] = resource_type else: - raise ValueError('Required property \'resource_type\' not present in FloatingIPTargetNetworkInterfaceReference JSON') + raise ValueError( + 'Required property \'resource_type\' not present in FloatingIPTargetNetworkInterfaceReference JSON' + ) return cls(**args) @classmethod @@ -111330,7 +112530,6 @@ class ResourceTypeEnum(str, Enum): NETWORK_INTERFACE = 'network_interface' - class FloatingIPTargetPublicGatewayReference(FloatingIPTarget): """ FloatingIPTargetPublicGatewayReference. @@ -111402,7 +112601,9 @@ def from_dict(cls, _dict: Dict) -> 'FloatingIPTargetPublicGatewayReference': if (resource_type := _dict.get('resource_type')) is not None: args['resource_type'] = resource_type else: - raise ValueError('Required property \'resource_type\' not present in FloatingIPTargetPublicGatewayReference JSON') + raise ValueError( + 'Required property \'resource_type\' not present in FloatingIPTargetPublicGatewayReference JSON' + ) return cls(**args) @classmethod @@ -111456,7 +112657,6 @@ class ResourceTypeEnum(str, Enum): PUBLIC_GATEWAY = 'public_gateway' - class FloatingIPTargetVirtualNetworkInterfaceReference(FloatingIPTarget): """ FloatingIPTargetVirtualNetworkInterfaceReference. @@ -111520,33 +112720,47 @@ def from_dict(cls, _dict: Dict) -> 'FloatingIPTargetVirtualNetworkInterfaceRefer if (crn := _dict.get('crn')) is not None: args['crn'] = crn else: - raise ValueError('Required property \'crn\' not present in FloatingIPTargetVirtualNetworkInterfaceReference JSON') + raise ValueError( + 'Required property \'crn\' not present in FloatingIPTargetVirtualNetworkInterfaceReference JSON' + ) if (deleted := _dict.get('deleted')) is not None: args['deleted'] = Deleted.from_dict(deleted) if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in FloatingIPTargetVirtualNetworkInterfaceReference JSON') + raise ValueError( + 'Required property \'href\' not present in FloatingIPTargetVirtualNetworkInterfaceReference JSON' + ) if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in FloatingIPTargetVirtualNetworkInterfaceReference JSON') + raise ValueError( + 'Required property \'id\' not present in FloatingIPTargetVirtualNetworkInterfaceReference JSON' + ) if (name := _dict.get('name')) is not None: args['name'] = name else: - raise ValueError('Required property \'name\' not present in FloatingIPTargetVirtualNetworkInterfaceReference JSON') + raise ValueError( + 'Required property \'name\' not present in FloatingIPTargetVirtualNetworkInterfaceReference JSON' + ) if (primary_ip := _dict.get('primary_ip')) is not None: args['primary_ip'] = ReservedIPReference.from_dict(primary_ip) else: - raise ValueError('Required property \'primary_ip\' not present in FloatingIPTargetVirtualNetworkInterfaceReference JSON') + raise ValueError( + 'Required property \'primary_ip\' not present in FloatingIPTargetVirtualNetworkInterfaceReference JSON' + ) if (resource_type := _dict.get('resource_type')) is not None: args['resource_type'] = resource_type else: - raise ValueError('Required property \'resource_type\' not present in FloatingIPTargetVirtualNetworkInterfaceReference JSON') + raise ValueError( + 'Required property \'resource_type\' not present in FloatingIPTargetVirtualNetworkInterfaceReference JSON' + ) if (subnet := _dict.get('subnet')) is not None: args['subnet'] = SubnetReference.from_dict(subnet) else: - raise ValueError('Required property \'subnet\' not present in FloatingIPTargetVirtualNetworkInterfaceReference JSON') + raise ValueError( + 'Required property \'subnet\' not present in FloatingIPTargetVirtualNetworkInterfaceReference JSON' + ) return cls(**args) @classmethod @@ -111610,7 +112824,6 @@ class ResourceTypeEnum(str, Enum): VIRTUAL_NETWORK_INTERFACE = 'virtual_network_interface' - class FlowLogCollectorTargetPrototypeInstanceIdentity(FlowLogCollectorTargetPrototype): """ Identifies a virtual server instance by a unique property. @@ -111626,7 +112839,13 @@ def __init__( """ # pylint: disable=super-init-not-called msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['FlowLogCollectorTargetPrototypeInstanceIdentityInstanceIdentityById', 'FlowLogCollectorTargetPrototypeInstanceIdentityInstanceIdentityByCRN', 'FlowLogCollectorTargetPrototypeInstanceIdentityInstanceIdentityByHref']) + ", ".join( + [ + 'FlowLogCollectorTargetPrototypeInstanceIdentityInstanceIdentityById', + 'FlowLogCollectorTargetPrototypeInstanceIdentityInstanceIdentityByCRN', + 'FlowLogCollectorTargetPrototypeInstanceIdentityInstanceIdentityByHref', + ] + ) ) raise Exception(msg) @@ -111646,7 +112865,12 @@ def __init__( """ # pylint: disable=super-init-not-called msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['FlowLogCollectorTargetPrototypeInstanceNetworkAttachmentIdentityInstanceNetworkAttachmentIdentityById', 'FlowLogCollectorTargetPrototypeInstanceNetworkAttachmentIdentityInstanceNetworkAttachmentIdentityByHref']) + ", ".join( + [ + 'FlowLogCollectorTargetPrototypeInstanceNetworkAttachmentIdentityInstanceNetworkAttachmentIdentityById', + 'FlowLogCollectorTargetPrototypeInstanceNetworkAttachmentIdentityInstanceNetworkAttachmentIdentityByHref', + ] + ) ) raise Exception(msg) @@ -111666,7 +112890,12 @@ def __init__( """ # pylint: disable=super-init-not-called msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['FlowLogCollectorTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityById', 'FlowLogCollectorTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityByHref']) + ", ".join( + [ + 'FlowLogCollectorTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityById', + 'FlowLogCollectorTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityByHref', + ] + ) ) raise Exception(msg) @@ -111686,7 +112915,13 @@ def __init__( """ # pylint: disable=super-init-not-called msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['FlowLogCollectorTargetPrototypeSubnetIdentitySubnetIdentityById', 'FlowLogCollectorTargetPrototypeSubnetIdentitySubnetIdentityByCRN', 'FlowLogCollectorTargetPrototypeSubnetIdentitySubnetIdentityByHref']) + ", ".join( + [ + 'FlowLogCollectorTargetPrototypeSubnetIdentitySubnetIdentityById', + 'FlowLogCollectorTargetPrototypeSubnetIdentitySubnetIdentityByCRN', + 'FlowLogCollectorTargetPrototypeSubnetIdentitySubnetIdentityByHref', + ] + ) ) raise Exception(msg) @@ -111706,7 +112941,13 @@ def __init__( """ # pylint: disable=super-init-not-called msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['FlowLogCollectorTargetPrototypeVPCIdentityVPCIdentityById', 'FlowLogCollectorTargetPrototypeVPCIdentityVPCIdentityByCRN', 'FlowLogCollectorTargetPrototypeVPCIdentityVPCIdentityByHref']) + ", ".join( + [ + 'FlowLogCollectorTargetPrototypeVPCIdentityVPCIdentityById', + 'FlowLogCollectorTargetPrototypeVPCIdentityVPCIdentityByCRN', + 'FlowLogCollectorTargetPrototypeVPCIdentityVPCIdentityByHref', + ] + ) ) raise Exception(msg) @@ -111726,7 +112967,13 @@ def __init__( """ # pylint: disable=super-init-not-called msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById', 'FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref', 'FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN']) + ", ".join( + [ + 'FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById', + 'FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref', + 'FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN', + ] + ) ) raise Exception(msg) @@ -111804,31 +113051,47 @@ def from_dict(cls, _dict: Dict) -> 'FlowLogCollectorTargetInstanceNetworkAttachm if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in FlowLogCollectorTargetInstanceNetworkAttachmentReference JSON') + raise ValueError( + 'Required property \'href\' not present in FlowLogCollectorTargetInstanceNetworkAttachmentReference JSON' + ) if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in FlowLogCollectorTargetInstanceNetworkAttachmentReference JSON') + raise ValueError( + 'Required property \'id\' not present in FlowLogCollectorTargetInstanceNetworkAttachmentReference JSON' + ) if (name := _dict.get('name')) is not None: args['name'] = name else: - raise ValueError('Required property \'name\' not present in FlowLogCollectorTargetInstanceNetworkAttachmentReference JSON') + raise ValueError( + 'Required property \'name\' not present in FlowLogCollectorTargetInstanceNetworkAttachmentReference JSON' + ) if (primary_ip := _dict.get('primary_ip')) is not None: args['primary_ip'] = ReservedIPReference.from_dict(primary_ip) else: - raise ValueError('Required property \'primary_ip\' not present in FlowLogCollectorTargetInstanceNetworkAttachmentReference JSON') + raise ValueError( + 'Required property \'primary_ip\' not present in FlowLogCollectorTargetInstanceNetworkAttachmentReference JSON' + ) if (resource_type := _dict.get('resource_type')) is not None: args['resource_type'] = resource_type else: - raise ValueError('Required property \'resource_type\' not present in FlowLogCollectorTargetInstanceNetworkAttachmentReference JSON') + raise ValueError( + 'Required property \'resource_type\' not present in FlowLogCollectorTargetInstanceNetworkAttachmentReference JSON' + ) if (subnet := _dict.get('subnet')) is not None: args['subnet'] = SubnetReference.from_dict(subnet) else: - raise ValueError('Required property \'subnet\' not present in FlowLogCollectorTargetInstanceNetworkAttachmentReference JSON') + raise ValueError( + 'Required property \'subnet\' not present in FlowLogCollectorTargetInstanceNetworkAttachmentReference JSON' + ) if (virtual_network_interface := _dict.get('virtual_network_interface')) is not None: - args['virtual_network_interface'] = VirtualNetworkInterfaceReferenceAttachmentContext.from_dict(virtual_network_interface) + args['virtual_network_interface'] = VirtualNetworkInterfaceReferenceAttachmentContext.from_dict( + virtual_network_interface + ) else: - raise ValueError('Required property \'virtual_network_interface\' not present in FlowLogCollectorTargetInstanceNetworkAttachmentReference JSON') + raise ValueError( + 'Required property \'virtual_network_interface\' not present in FlowLogCollectorTargetInstanceNetworkAttachmentReference JSON' + ) return cls(**args) @classmethod @@ -111895,7 +113158,6 @@ class ResourceTypeEnum(str, Enum): INSTANCE_NETWORK_ATTACHMENT = 'instance_network_attachment' - class FlowLogCollectorTargetInstanceReference(FlowLogCollectorTarget): """ FlowLogCollectorTargetInstanceReference. @@ -112072,19 +113334,27 @@ def from_dict(cls, _dict: Dict) -> 'FlowLogCollectorTargetNetworkInterfaceRefere if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in FlowLogCollectorTargetNetworkInterfaceReferenceTargetContext JSON') + raise ValueError( + 'Required property \'href\' not present in FlowLogCollectorTargetNetworkInterfaceReferenceTargetContext JSON' + ) if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in FlowLogCollectorTargetNetworkInterfaceReferenceTargetContext JSON') + raise ValueError( + 'Required property \'id\' not present in FlowLogCollectorTargetNetworkInterfaceReferenceTargetContext JSON' + ) if (name := _dict.get('name')) is not None: args['name'] = name else: - raise ValueError('Required property \'name\' not present in FlowLogCollectorTargetNetworkInterfaceReferenceTargetContext JSON') + raise ValueError( + 'Required property \'name\' not present in FlowLogCollectorTargetNetworkInterfaceReferenceTargetContext JSON' + ) if (resource_type := _dict.get('resource_type')) is not None: args['resource_type'] = resource_type else: - raise ValueError('Required property \'resource_type\' not present in FlowLogCollectorTargetNetworkInterfaceReferenceTargetContext JSON') + raise ValueError( + 'Required property \'resource_type\' not present in FlowLogCollectorTargetNetworkInterfaceReferenceTargetContext JSON' + ) return cls(**args) @classmethod @@ -112136,7 +113406,6 @@ class ResourceTypeEnum(str, Enum): NETWORK_INTERFACE = 'network_interface' - class FlowLogCollectorTargetSubnetReference(FlowLogCollectorTarget): """ FlowLogCollectorTargetSubnetReference. @@ -112208,7 +113477,9 @@ def from_dict(cls, _dict: Dict) -> 'FlowLogCollectorTargetSubnetReference': if (resource_type := _dict.get('resource_type')) is not None: args['resource_type'] = resource_type else: - raise ValueError('Required property \'resource_type\' not present in FlowLogCollectorTargetSubnetReference JSON') + raise ValueError( + 'Required property \'resource_type\' not present in FlowLogCollectorTargetSubnetReference JSON' + ) return cls(**args) @classmethod @@ -112262,7 +113533,6 @@ class ResourceTypeEnum(str, Enum): SUBNET = 'subnet' - class FlowLogCollectorTargetVPCReference(FlowLogCollectorTarget): """ FlowLogCollectorTargetVPCReference. @@ -112334,7 +113604,9 @@ def from_dict(cls, _dict: Dict) -> 'FlowLogCollectorTargetVPCReference': if (resource_type := _dict.get('resource_type')) is not None: args['resource_type'] = resource_type else: - raise ValueError('Required property \'resource_type\' not present in FlowLogCollectorTargetVPCReference JSON') + raise ValueError( + 'Required property \'resource_type\' not present in FlowLogCollectorTargetVPCReference JSON' + ) return cls(**args) @classmethod @@ -112388,7 +113660,6 @@ class ResourceTypeEnum(str, Enum): VPC = 'vpc' - class FlowLogCollectorTargetVirtualNetworkInterfaceReferenceAttachmentContext(FlowLogCollectorTarget): """ FlowLogCollectorTargetVirtualNetworkInterfaceReferenceAttachmentContext. @@ -112433,23 +113704,33 @@ def from_dict(cls, _dict: Dict) -> 'FlowLogCollectorTargetVirtualNetworkInterfac if (crn := _dict.get('crn')) is not None: args['crn'] = crn else: - raise ValueError('Required property \'crn\' not present in FlowLogCollectorTargetVirtualNetworkInterfaceReferenceAttachmentContext JSON') + raise ValueError( + 'Required property \'crn\' not present in FlowLogCollectorTargetVirtualNetworkInterfaceReferenceAttachmentContext JSON' + ) if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in FlowLogCollectorTargetVirtualNetworkInterfaceReferenceAttachmentContext JSON') + raise ValueError( + 'Required property \'href\' not present in FlowLogCollectorTargetVirtualNetworkInterfaceReferenceAttachmentContext JSON' + ) if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in FlowLogCollectorTargetVirtualNetworkInterfaceReferenceAttachmentContext JSON') + raise ValueError( + 'Required property \'id\' not present in FlowLogCollectorTargetVirtualNetworkInterfaceReferenceAttachmentContext JSON' + ) if (name := _dict.get('name')) is not None: args['name'] = name else: - raise ValueError('Required property \'name\' not present in FlowLogCollectorTargetVirtualNetworkInterfaceReferenceAttachmentContext JSON') + raise ValueError( + 'Required property \'name\' not present in FlowLogCollectorTargetVirtualNetworkInterfaceReferenceAttachmentContext JSON' + ) if (resource_type := _dict.get('resource_type')) is not None: args['resource_type'] = resource_type else: - raise ValueError('Required property \'resource_type\' not present in FlowLogCollectorTargetVirtualNetworkInterfaceReferenceAttachmentContext JSON') + raise ValueError( + 'Required property \'resource_type\' not present in FlowLogCollectorTargetVirtualNetworkInterfaceReferenceAttachmentContext JSON' + ) return cls(**args) @classmethod @@ -112498,7 +113779,6 @@ class ResourceTypeEnum(str, Enum): VIRTUAL_NETWORK_INTERFACE = 'virtual_network_interface' - class ImageIdentityByCRN(ImageIdentity): """ ImageIdentityByCRN. @@ -112999,7 +114279,9 @@ def from_dict(cls, _dict: Dict) -> 'ImagePrototypeImageBySourceVolume': if (source_volume := _dict.get('source_volume')) is not None: args['source_volume'] = source_volume else: - raise ValueError('Required property \'source_volume\' not present in ImagePrototypeImageBySourceVolume JSON') + raise ValueError( + 'Required property \'source_volume\' not present in ImagePrototypeImageBySourceVolume JSON' + ) return cls(**args) @classmethod @@ -113095,7 +114377,9 @@ def from_dict(cls, _dict: Dict) -> 'InstanceCatalogOfferingPrototypeCatalogOffer if (offering := _dict.get('offering')) is not None: args['offering'] = offering else: - raise ValueError('Required property \'offering\' not present in InstanceCatalogOfferingPrototypeCatalogOfferingByOffering JSON') + raise ValueError( + 'Required property \'offering\' not present in InstanceCatalogOfferingPrototypeCatalogOfferingByOffering JSON' + ) return cls(**args) @classmethod @@ -113182,7 +114466,9 @@ def from_dict(cls, _dict: Dict) -> 'InstanceCatalogOfferingPrototypeCatalogOffer if (version := _dict.get('version')) is not None: args['version'] = version else: - raise ValueError('Required property \'version\' not present in InstanceCatalogOfferingPrototypeCatalogOfferingByVersion JSON') + raise ValueError( + 'Required property \'version\' not present in InstanceCatalogOfferingPrototypeCatalogOfferingByVersion JSON' + ) return cls(**args) @classmethod @@ -113224,7 +114510,9 @@ def __ne__(self, other: 'InstanceCatalogOfferingPrototypeCatalogOfferingByVersio return not self == other -class InstanceClusterNetworkAttachmentBeforePrototypeInstanceClusterNetworkAttachmentIdentityByHref(InstanceClusterNetworkAttachmentBeforePrototype): +class InstanceClusterNetworkAttachmentBeforePrototypeInstanceClusterNetworkAttachmentIdentityByHref( + InstanceClusterNetworkAttachmentBeforePrototype +): """ InstanceClusterNetworkAttachmentBeforePrototypeInstanceClusterNetworkAttachmentIdentityByHref. @@ -113244,13 +114532,17 @@ def __init__( self.href = href @classmethod - def from_dict(cls, _dict: Dict) -> 'InstanceClusterNetworkAttachmentBeforePrototypeInstanceClusterNetworkAttachmentIdentityByHref': + def from_dict( + cls, _dict: Dict + ) -> 'InstanceClusterNetworkAttachmentBeforePrototypeInstanceClusterNetworkAttachmentIdentityByHref': """Initialize a InstanceClusterNetworkAttachmentBeforePrototypeInstanceClusterNetworkAttachmentIdentityByHref object from a json dictionary.""" args = {} if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in InstanceClusterNetworkAttachmentBeforePrototypeInstanceClusterNetworkAttachmentIdentityByHref JSON') + raise ValueError( + 'Required property \'href\' not present in InstanceClusterNetworkAttachmentBeforePrototypeInstanceClusterNetworkAttachmentIdentityByHref JSON' + ) return cls(**args) @classmethod @@ -113273,18 +114565,24 @@ def __str__(self) -> str: """Return a `str` version of this InstanceClusterNetworkAttachmentBeforePrototypeInstanceClusterNetworkAttachmentIdentityByHref object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'InstanceClusterNetworkAttachmentBeforePrototypeInstanceClusterNetworkAttachmentIdentityByHref') -> bool: + def __eq__( + self, other: 'InstanceClusterNetworkAttachmentBeforePrototypeInstanceClusterNetworkAttachmentIdentityByHref' + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'InstanceClusterNetworkAttachmentBeforePrototypeInstanceClusterNetworkAttachmentIdentityByHref') -> bool: + def __ne__( + self, other: 'InstanceClusterNetworkAttachmentBeforePrototypeInstanceClusterNetworkAttachmentIdentityByHref' + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other -class InstanceClusterNetworkAttachmentBeforePrototypeInstanceClusterNetworkAttachmentIdentityById(InstanceClusterNetworkAttachmentBeforePrototype): +class InstanceClusterNetworkAttachmentBeforePrototypeInstanceClusterNetworkAttachmentIdentityById( + InstanceClusterNetworkAttachmentBeforePrototype +): """ InstanceClusterNetworkAttachmentBeforePrototypeInstanceClusterNetworkAttachmentIdentityById. @@ -113306,13 +114604,17 @@ def __init__( self.id = id @classmethod - def from_dict(cls, _dict: Dict) -> 'InstanceClusterNetworkAttachmentBeforePrototypeInstanceClusterNetworkAttachmentIdentityById': + def from_dict( + cls, _dict: Dict + ) -> 'InstanceClusterNetworkAttachmentBeforePrototypeInstanceClusterNetworkAttachmentIdentityById': """Initialize a InstanceClusterNetworkAttachmentBeforePrototypeInstanceClusterNetworkAttachmentIdentityById object from a json dictionary.""" args = {} if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in InstanceClusterNetworkAttachmentBeforePrototypeInstanceClusterNetworkAttachmentIdentityById JSON') + raise ValueError( + 'Required property \'id\' not present in InstanceClusterNetworkAttachmentBeforePrototypeInstanceClusterNetworkAttachmentIdentityById JSON' + ) return cls(**args) @classmethod @@ -113335,18 +114637,24 @@ def __str__(self) -> str: """Return a `str` version of this InstanceClusterNetworkAttachmentBeforePrototypeInstanceClusterNetworkAttachmentIdentityById object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'InstanceClusterNetworkAttachmentBeforePrototypeInstanceClusterNetworkAttachmentIdentityById') -> bool: + def __eq__( + self, other: 'InstanceClusterNetworkAttachmentBeforePrototypeInstanceClusterNetworkAttachmentIdentityById' + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'InstanceClusterNetworkAttachmentBeforePrototypeInstanceClusterNetworkAttachmentIdentityById') -> bool: + def __ne__( + self, other: 'InstanceClusterNetworkAttachmentBeforePrototypeInstanceClusterNetworkAttachmentIdentityById' + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other -class InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceClusterNetworkInterfaceIdentity(InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterface): +class InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceClusterNetworkInterfaceIdentity( + InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterface +): """ Identifies a cluster network interface by a unique property. @@ -113361,12 +114669,19 @@ def __init__( """ # pylint: disable=super-init-not-called msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceClusterNetworkInterfaceIdentityClusterNetworkInterfaceIdentityById', 'InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceClusterNetworkInterfaceIdentityClusterNetworkInterfaceIdentityByHref']) + ", ".join( + [ + 'InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceClusterNetworkInterfaceIdentityClusterNetworkInterfaceIdentityById', + 'InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceClusterNetworkInterfaceIdentityClusterNetworkInterfaceIdentityByHref', + ] + ) ) raise Exception(msg) -class InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment(InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterface): +class InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment( + InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterface +): """ The cluster network interface for this target. @@ -113442,7 +114757,9 @@ def __init__( self.subnet = subnet @classmethod - def from_dict(cls, _dict: Dict) -> 'InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment': + def from_dict( + cls, _dict: Dict + ) -> 'InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment': """Initialize a InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment object from a json dictionary.""" args = {} if (auto_delete := _dict.get('auto_delete')) is not None: @@ -113487,13 +114804,19 @@ def __str__(self) -> str: """Return a `str` version of this InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment') -> bool: + def __eq__( + self, + other: 'InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment', + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment') -> bool: + def __ne__( + self, + other: 'InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment', + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other @@ -113522,7 +114845,12 @@ def __init__( """ # pylint: disable=super-init-not-called msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['InstanceGroupManagerActionPrototypeScheduledActionPrototypeByRunAt', 'InstanceGroupManagerActionPrototypeScheduledActionPrototypeByCronSpec']) + ", ".join( + [ + 'InstanceGroupManagerActionPrototypeScheduledActionPrototypeByRunAt', + 'InstanceGroupManagerActionPrototypeScheduledActionPrototypeByCronSpec', + ] + ) ) raise Exception(msg) @@ -113625,7 +114953,12 @@ def __init__( """ # pylint: disable=super-init-not-called msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['InstanceGroupManagerActionScheduledActionGroupTarget', 'InstanceGroupManagerActionScheduledActionManagerTarget']) + ", ".join( + [ + 'InstanceGroupManagerActionScheduledActionGroupTarget', + 'InstanceGroupManagerActionScheduledActionManagerTarget', + ] + ) ) raise Exception(msg) @@ -113636,7 +114969,6 @@ class ResourceTypeEnum(str, Enum): INSTANCE_GROUP_MANAGER_ACTION = 'instance_group_manager_action' - class StatusEnum(str, Enum): """ The status of the instance group action @@ -113656,7 +114988,6 @@ class StatusEnum(str, Enum): INCOMPATIBLE = 'incompatible' OMITTED = 'omitted' - class ActionTypeEnum(str, Enum): """ The type of action for the instance group. @@ -113665,7 +114996,6 @@ class ActionTypeEnum(str, Enum): SCHEDULED = 'scheduled' - class InstanceGroupManagerAutoScale(InstanceGroupManager): """ InstanceGroupManagerAutoScale. @@ -113766,7 +115096,9 @@ def from_dict(cls, _dict: Dict) -> 'InstanceGroupManagerAutoScale': if (management_enabled := _dict.get('management_enabled')) is not None: args['management_enabled'] = management_enabled else: - raise ValueError('Required property \'management_enabled\' not present in InstanceGroupManagerAutoScale JSON') + raise ValueError( + 'Required property \'management_enabled\' not present in InstanceGroupManagerAutoScale JSON' + ) if (name := _dict.get('name')) is not None: args['name'] = name else: @@ -113778,7 +115110,9 @@ def from_dict(cls, _dict: Dict) -> 'InstanceGroupManagerAutoScale': if (aggregation_window := _dict.get('aggregation_window')) is not None: args['aggregation_window'] = aggregation_window else: - raise ValueError('Required property \'aggregation_window\' not present in InstanceGroupManagerAutoScale JSON') + raise ValueError( + 'Required property \'aggregation_window\' not present in InstanceGroupManagerAutoScale JSON' + ) if (cooldown := _dict.get('cooldown')) is not None: args['cooldown'] = cooldown else: @@ -113790,11 +115124,15 @@ def from_dict(cls, _dict: Dict) -> 'InstanceGroupManagerAutoScale': if (max_membership_count := _dict.get('max_membership_count')) is not None: args['max_membership_count'] = max_membership_count else: - raise ValueError('Required property \'max_membership_count\' not present in InstanceGroupManagerAutoScale JSON') + raise ValueError( + 'Required property \'max_membership_count\' not present in InstanceGroupManagerAutoScale JSON' + ) if (min_membership_count := _dict.get('min_membership_count')) is not None: args['min_membership_count'] = min_membership_count else: - raise ValueError('Required property \'min_membership_count\' not present in InstanceGroupManagerAutoScale JSON') + raise ValueError( + 'Required property \'min_membership_count\' not present in InstanceGroupManagerAutoScale JSON' + ) if (policies := _dict.get('policies')) is not None: args['policies'] = [InstanceGroupManagerPolicyReference.from_dict(v) for v in policies] else: @@ -113867,7 +115205,6 @@ class ManagerTypeEnum(str, Enum): AUTOSCALE = 'autoscale' - class InstanceGroupManagerPolicyPrototypeInstanceGroupManagerTargetPolicyPrototype(InstanceGroupManagerPolicyPrototype): """ InstanceGroupManagerPolicyPrototypeInstanceGroupManagerTargetPolicyPrototype. @@ -113914,15 +115251,21 @@ def from_dict(cls, _dict: Dict) -> 'InstanceGroupManagerPolicyPrototypeInstanceG if (metric_type := _dict.get('metric_type')) is not None: args['metric_type'] = metric_type else: - raise ValueError('Required property \'metric_type\' not present in InstanceGroupManagerPolicyPrototypeInstanceGroupManagerTargetPolicyPrototype JSON') + raise ValueError( + 'Required property \'metric_type\' not present in InstanceGroupManagerPolicyPrototypeInstanceGroupManagerTargetPolicyPrototype JSON' + ) if (metric_value := _dict.get('metric_value')) is not None: args['metric_value'] = metric_value else: - raise ValueError('Required property \'metric_value\' not present in InstanceGroupManagerPolicyPrototypeInstanceGroupManagerTargetPolicyPrototype JSON') + raise ValueError( + 'Required property \'metric_value\' not present in InstanceGroupManagerPolicyPrototypeInstanceGroupManagerTargetPolicyPrototype JSON' + ) if (policy_type := _dict.get('policy_type')) is not None: args['policy_type'] = policy_type else: - raise ValueError('Required property \'policy_type\' not present in InstanceGroupManagerPolicyPrototypeInstanceGroupManagerTargetPolicyPrototype JSON') + raise ValueError( + 'Required property \'policy_type\' not present in InstanceGroupManagerPolicyPrototypeInstanceGroupManagerTargetPolicyPrototype JSON' + ) return cls(**args) @classmethod @@ -113971,7 +115314,6 @@ class MetricTypeEnum(str, Enum): NETWORK_IN = 'network_in' NETWORK_OUT = 'network_out' - class PolicyTypeEnum(str, Enum): """ The type of policy for the instance group. @@ -113980,7 +115322,6 @@ class PolicyTypeEnum(str, Enum): TARGET = 'target' - class InstanceGroupManagerPolicyInstanceGroupManagerTargetPolicy(InstanceGroupManagerPolicy): """ InstanceGroupManagerPolicyInstanceGroupManagerTargetPolicy. @@ -114054,35 +115395,51 @@ def from_dict(cls, _dict: Dict) -> 'InstanceGroupManagerPolicyInstanceGroupManag if (created_at := _dict.get('created_at')) is not None: args['created_at'] = string_to_datetime(created_at) else: - raise ValueError('Required property \'created_at\' not present in InstanceGroupManagerPolicyInstanceGroupManagerTargetPolicy JSON') + raise ValueError( + 'Required property \'created_at\' not present in InstanceGroupManagerPolicyInstanceGroupManagerTargetPolicy JSON' + ) if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in InstanceGroupManagerPolicyInstanceGroupManagerTargetPolicy JSON') + raise ValueError( + 'Required property \'href\' not present in InstanceGroupManagerPolicyInstanceGroupManagerTargetPolicy JSON' + ) if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in InstanceGroupManagerPolicyInstanceGroupManagerTargetPolicy JSON') + raise ValueError( + 'Required property \'id\' not present in InstanceGroupManagerPolicyInstanceGroupManagerTargetPolicy JSON' + ) if (name := _dict.get('name')) is not None: args['name'] = name else: - raise ValueError('Required property \'name\' not present in InstanceGroupManagerPolicyInstanceGroupManagerTargetPolicy JSON') + raise ValueError( + 'Required property \'name\' not present in InstanceGroupManagerPolicyInstanceGroupManagerTargetPolicy JSON' + ) if (updated_at := _dict.get('updated_at')) is not None: args['updated_at'] = string_to_datetime(updated_at) else: - raise ValueError('Required property \'updated_at\' not present in InstanceGroupManagerPolicyInstanceGroupManagerTargetPolicy JSON') + raise ValueError( + 'Required property \'updated_at\' not present in InstanceGroupManagerPolicyInstanceGroupManagerTargetPolicy JSON' + ) if (metric_type := _dict.get('metric_type')) is not None: args['metric_type'] = metric_type else: - raise ValueError('Required property \'metric_type\' not present in InstanceGroupManagerPolicyInstanceGroupManagerTargetPolicy JSON') + raise ValueError( + 'Required property \'metric_type\' not present in InstanceGroupManagerPolicyInstanceGroupManagerTargetPolicy JSON' + ) if (metric_value := _dict.get('metric_value')) is not None: args['metric_value'] = metric_value else: - raise ValueError('Required property \'metric_value\' not present in InstanceGroupManagerPolicyInstanceGroupManagerTargetPolicy JSON') + raise ValueError( + 'Required property \'metric_value\' not present in InstanceGroupManagerPolicyInstanceGroupManagerTargetPolicy JSON' + ) if (policy_type := _dict.get('policy_type')) is not None: args['policy_type'] = policy_type else: - raise ValueError('Required property \'policy_type\' not present in InstanceGroupManagerPolicyInstanceGroupManagerTargetPolicy JSON') + raise ValueError( + 'Required property \'policy_type\' not present in InstanceGroupManagerPolicyInstanceGroupManagerTargetPolicy JSON' + ) return cls(**args) @classmethod @@ -114142,7 +115499,6 @@ class MetricTypeEnum(str, Enum): NETWORK_IN = 'network_in' NETWORK_OUT = 'network_out' - class PolicyTypeEnum(str, Enum): """ The type of policy for the instance group @@ -114154,7 +115510,6 @@ class PolicyTypeEnum(str, Enum): TARGET = 'target' - class InstanceGroupManagerPrototypeInstanceGroupManagerAutoScalePrototype(InstanceGroupManagerPrototype): """ InstanceGroupManagerPrototypeInstanceGroupManagerAutoScalePrototype. @@ -114228,11 +115583,15 @@ def from_dict(cls, _dict: Dict) -> 'InstanceGroupManagerPrototypeInstanceGroupMa if (manager_type := _dict.get('manager_type')) is not None: args['manager_type'] = manager_type else: - raise ValueError('Required property \'manager_type\' not present in InstanceGroupManagerPrototypeInstanceGroupManagerAutoScalePrototype JSON') + raise ValueError( + 'Required property \'manager_type\' not present in InstanceGroupManagerPrototypeInstanceGroupManagerAutoScalePrototype JSON' + ) if (max_membership_count := _dict.get('max_membership_count')) is not None: args['max_membership_count'] = max_membership_count else: - raise ValueError('Required property \'max_membership_count\' not present in InstanceGroupManagerPrototypeInstanceGroupManagerAutoScalePrototype JSON') + raise ValueError( + 'Required property \'max_membership_count\' not present in InstanceGroupManagerPrototypeInstanceGroupManagerAutoScalePrototype JSON' + ) if (min_membership_count := _dict.get('min_membership_count')) is not None: args['min_membership_count'] = min_membership_count return cls(**args) @@ -114287,7 +115646,6 @@ class ManagerTypeEnum(str, Enum): AUTOSCALE = 'autoscale' - class InstanceGroupManagerPrototypeInstanceGroupManagerScheduledPrototype(InstanceGroupManagerPrototype): """ InstanceGroupManagerPrototypeInstanceGroupManagerScheduledPrototype. @@ -114333,7 +115691,9 @@ def from_dict(cls, _dict: Dict) -> 'InstanceGroupManagerPrototypeInstanceGroupMa if (manager_type := _dict.get('manager_type')) is not None: args['manager_type'] = manager_type else: - raise ValueError('Required property \'manager_type\' not present in InstanceGroupManagerPrototypeInstanceGroupManagerScheduledPrototype JSON') + raise ValueError( + 'Required property \'manager_type\' not present in InstanceGroupManagerPrototypeInstanceGroupManagerScheduledPrototype JSON' + ) return cls(**args) @classmethod @@ -114378,7 +115738,6 @@ class ManagerTypeEnum(str, Enum): SCHEDULED = 'scheduled' - class InstanceGroupManagerScheduled(InstanceGroupManager): """ InstanceGroupManagerScheduled. @@ -114455,7 +115814,9 @@ def from_dict(cls, _dict: Dict) -> 'InstanceGroupManagerScheduled': if (management_enabled := _dict.get('management_enabled')) is not None: args['management_enabled'] = management_enabled else: - raise ValueError('Required property \'management_enabled\' not present in InstanceGroupManagerScheduled JSON') + raise ValueError( + 'Required property \'management_enabled\' not present in InstanceGroupManagerScheduled JSON' + ) if (name := _dict.get('name')) is not None: args['name'] = name else: @@ -114532,7 +115893,6 @@ class ManagerTypeEnum(str, Enum): SCHEDULED = 'scheduled' - class InstanceGroupManagerScheduledActionManagerAutoScale(InstanceGroupManagerScheduledActionManager): """ InstanceGroupManagerScheduledActionManagerAutoScale. @@ -114592,15 +115952,21 @@ def from_dict(cls, _dict: Dict) -> 'InstanceGroupManagerScheduledActionManagerAu if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in InstanceGroupManagerScheduledActionManagerAutoScale JSON') + raise ValueError( + 'Required property \'href\' not present in InstanceGroupManagerScheduledActionManagerAutoScale JSON' + ) if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in InstanceGroupManagerScheduledActionManagerAutoScale JSON') + raise ValueError( + 'Required property \'id\' not present in InstanceGroupManagerScheduledActionManagerAutoScale JSON' + ) if (name := _dict.get('name')) is not None: args['name'] = name else: - raise ValueError('Required property \'name\' not present in InstanceGroupManagerScheduledActionManagerAutoScale JSON') + raise ValueError( + 'Required property \'name\' not present in InstanceGroupManagerScheduledActionManagerAutoScale JSON' + ) if (max_membership_count := _dict.get('max_membership_count')) is not None: args['max_membership_count'] = max_membership_count if (min_membership_count := _dict.get('min_membership_count')) is not None: @@ -114651,7 +116017,9 @@ def __ne__(self, other: 'InstanceGroupManagerScheduledActionManagerAutoScale') - return not self == other -class InstanceGroupManagerScheduledActionManagerPrototypeAutoScalePrototype(InstanceGroupManagerScheduledActionManagerPrototype): +class InstanceGroupManagerScheduledActionManagerPrototypeAutoScalePrototype( + InstanceGroupManagerScheduledActionManagerPrototype +): """ The auto scale manager to update, and one or more properties to be updated. Either `id` or `href` must be specified, in addition to at least one of @@ -114680,12 +116048,19 @@ def __init__( """ # pylint: disable=super-init-not-called msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['InstanceGroupManagerScheduledActionManagerPrototypeAutoScalePrototypeById', 'InstanceGroupManagerScheduledActionManagerPrototypeAutoScalePrototypeByHref']) + ", ".join( + [ + 'InstanceGroupManagerScheduledActionManagerPrototypeAutoScalePrototypeById', + 'InstanceGroupManagerScheduledActionManagerPrototypeAutoScalePrototypeByHref', + ] + ) ) raise Exception(msg) -class InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentity(InstanceNetworkAttachmentPrototypeVirtualNetworkInterface): +class InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentity( + InstanceNetworkAttachmentPrototypeVirtualNetworkInterface +): """ Identifies a virtual network interface by a unique property. @@ -114700,12 +116075,20 @@ def __init__( """ # pylint: disable=super-init-not-called msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById', 'InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref', 'InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN']) + ", ".join( + [ + 'InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById', + 'InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref', + 'InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN', + ] + ) ) raise Exception(msg) -class InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeInstanceNetworkAttachmentContext(InstanceNetworkAttachmentPrototypeVirtualNetworkInterface): +class InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeInstanceNetworkAttachmentContext( + InstanceNetworkAttachmentPrototypeVirtualNetworkInterface +): """ The virtual network interface for this target. @@ -114871,7 +116254,9 @@ def __init__( self.subnet = subnet @classmethod - def from_dict(cls, _dict: Dict) -> 'InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeInstanceNetworkAttachmentContext': + def from_dict( + cls, _dict: Dict + ) -> 'InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeInstanceNetworkAttachmentContext': """Initialize a InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeInstanceNetworkAttachmentContext object from a json dictionary.""" args = {} if (allow_ip_spoofing := _dict.get('allow_ip_spoofing')) is not None: @@ -114955,13 +116340,19 @@ def __str__(self) -> str: """Return a `str` version of this InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeInstanceNetworkAttachmentContext object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeInstanceNetworkAttachmentContext') -> bool: + def __eq__( + self, + other: 'InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeInstanceNetworkAttachmentContext', + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeInstanceNetworkAttachmentContext') -> bool: + def __ne__( + self, + other: 'InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeInstanceNetworkAttachmentContext', + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other @@ -114985,7 +116376,6 @@ class ProtocolStateFilteringModeEnum(str, Enum): ENABLED = 'enabled' - class InstancePatchProfileInstanceProfileIdentityByHref(InstancePatchProfile): """ InstancePatchProfileInstanceProfileIdentityByHref. @@ -115012,7 +116402,9 @@ def from_dict(cls, _dict: Dict) -> 'InstancePatchProfileInstanceProfileIdentityB if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in InstancePatchProfileInstanceProfileIdentityByHref JSON') + raise ValueError( + 'Required property \'href\' not present in InstancePatchProfileInstanceProfileIdentityByHref JSON' + ) return cls(**args) @classmethod @@ -115074,7 +116466,9 @@ def from_dict(cls, _dict: Dict) -> 'InstancePatchProfileInstanceProfileIdentityB if (name := _dict.get('name')) is not None: args['name'] = name else: - raise ValueError('Required property \'name\' not present in InstancePatchProfileInstanceProfileIdentityByName JSON') + raise ValueError( + 'Required property \'name\' not present in InstancePatchProfileInstanceProfileIdentityByName JSON' + ) return cls(**args) @classmethod @@ -115123,7 +116517,13 @@ def __init__( """ # pylint: disable=super-init-not-called msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityById', 'InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityByCRN', 'InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityByHref']) + ", ".join( + [ + 'InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityById', + 'InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityByCRN', + 'InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityByHref', + ] + ) ) raise Exception(msg) @@ -115143,7 +116543,13 @@ def __init__( """ # pylint: disable=super-init-not-called msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['InstancePlacementTargetPatchDedicatedHostIdentityDedicatedHostIdentityById', 'InstancePlacementTargetPatchDedicatedHostIdentityDedicatedHostIdentityByCRN', 'InstancePlacementTargetPatchDedicatedHostIdentityDedicatedHostIdentityByHref']) + ", ".join( + [ + 'InstancePlacementTargetPatchDedicatedHostIdentityDedicatedHostIdentityById', + 'InstancePlacementTargetPatchDedicatedHostIdentityDedicatedHostIdentityByCRN', + 'InstancePlacementTargetPatchDedicatedHostIdentityDedicatedHostIdentityByHref', + ] + ) ) raise Exception(msg) @@ -115163,7 +116569,13 @@ def __init__( """ # pylint: disable=super-init-not-called msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityById', 'InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityByCRN', 'InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityByHref']) + ", ".join( + [ + 'InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityById', + 'InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityByCRN', + 'InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityByHref', + ] + ) ) raise Exception(msg) @@ -115183,7 +116595,13 @@ def __init__( """ # pylint: disable=super-init-not-called msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityById', 'InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityByCRN', 'InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityByHref']) + ", ".join( + [ + 'InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityById', + 'InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityByCRN', + 'InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityByHref', + ] + ) ) raise Exception(msg) @@ -115203,7 +116621,13 @@ def __init__( """ # pylint: disable=super-init-not-called msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['InstancePlacementTargetPrototypePlacementGroupIdentityPlacementGroupIdentityById', 'InstancePlacementTargetPrototypePlacementGroupIdentityPlacementGroupIdentityByCRN', 'InstancePlacementTargetPrototypePlacementGroupIdentityPlacementGroupIdentityByHref']) + ", ".join( + [ + 'InstancePlacementTargetPrototypePlacementGroupIdentityPlacementGroupIdentityById', + 'InstancePlacementTargetPrototypePlacementGroupIdentityPlacementGroupIdentityByCRN', + 'InstancePlacementTargetPrototypePlacementGroupIdentityPlacementGroupIdentityByHref', + ] + ) ) raise Exception(msg) @@ -115261,25 +116685,35 @@ def from_dict(cls, _dict: Dict) -> 'InstancePlacementTargetDedicatedHostGroupRef if (crn := _dict.get('crn')) is not None: args['crn'] = crn else: - raise ValueError('Required property \'crn\' not present in InstancePlacementTargetDedicatedHostGroupReference JSON') + raise ValueError( + 'Required property \'crn\' not present in InstancePlacementTargetDedicatedHostGroupReference JSON' + ) if (deleted := _dict.get('deleted')) is not None: args['deleted'] = Deleted.from_dict(deleted) if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in InstancePlacementTargetDedicatedHostGroupReference JSON') + raise ValueError( + 'Required property \'href\' not present in InstancePlacementTargetDedicatedHostGroupReference JSON' + ) if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in InstancePlacementTargetDedicatedHostGroupReference JSON') + raise ValueError( + 'Required property \'id\' not present in InstancePlacementTargetDedicatedHostGroupReference JSON' + ) if (name := _dict.get('name')) is not None: args['name'] = name else: - raise ValueError('Required property \'name\' not present in InstancePlacementTargetDedicatedHostGroupReference JSON') + raise ValueError( + 'Required property \'name\' not present in InstancePlacementTargetDedicatedHostGroupReference JSON' + ) if (resource_type := _dict.get('resource_type')) is not None: args['resource_type'] = resource_type else: - raise ValueError('Required property \'resource_type\' not present in InstancePlacementTargetDedicatedHostGroupReference JSON') + raise ValueError( + 'Required property \'resource_type\' not present in InstancePlacementTargetDedicatedHostGroupReference JSON' + ) return cls(**args) @classmethod @@ -115333,7 +116767,6 @@ class ResourceTypeEnum(str, Enum): DEDICATED_HOST_GROUP = 'dedicated_host_group' - class InstancePlacementTargetDedicatedHostReference(InstancePlacementTarget): """ InstancePlacementTargetDedicatedHostReference. @@ -115387,25 +116820,35 @@ def from_dict(cls, _dict: Dict) -> 'InstancePlacementTargetDedicatedHostReferenc if (crn := _dict.get('crn')) is not None: args['crn'] = crn else: - raise ValueError('Required property \'crn\' not present in InstancePlacementTargetDedicatedHostReference JSON') + raise ValueError( + 'Required property \'crn\' not present in InstancePlacementTargetDedicatedHostReference JSON' + ) if (deleted := _dict.get('deleted')) is not None: args['deleted'] = Deleted.from_dict(deleted) if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in InstancePlacementTargetDedicatedHostReference JSON') + raise ValueError( + 'Required property \'href\' not present in InstancePlacementTargetDedicatedHostReference JSON' + ) if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in InstancePlacementTargetDedicatedHostReference JSON') + raise ValueError( + 'Required property \'id\' not present in InstancePlacementTargetDedicatedHostReference JSON' + ) if (name := _dict.get('name')) is not None: args['name'] = name else: - raise ValueError('Required property \'name\' not present in InstancePlacementTargetDedicatedHostReference JSON') + raise ValueError( + 'Required property \'name\' not present in InstancePlacementTargetDedicatedHostReference JSON' + ) if (resource_type := _dict.get('resource_type')) is not None: args['resource_type'] = resource_type else: - raise ValueError('Required property \'resource_type\' not present in InstancePlacementTargetDedicatedHostReference JSON') + raise ValueError( + 'Required property \'resource_type\' not present in InstancePlacementTargetDedicatedHostReference JSON' + ) return cls(**args) @classmethod @@ -115459,7 +116902,6 @@ class ResourceTypeEnum(str, Enum): DEDICATED_HOST = 'dedicated_host' - class InstancePlacementTargetPlacementGroupReference(InstancePlacementTarget): """ InstancePlacementTargetPlacementGroupReference. @@ -115513,25 +116955,35 @@ def from_dict(cls, _dict: Dict) -> 'InstancePlacementTargetPlacementGroupReferen if (crn := _dict.get('crn')) is not None: args['crn'] = crn else: - raise ValueError('Required property \'crn\' not present in InstancePlacementTargetPlacementGroupReference JSON') + raise ValueError( + 'Required property \'crn\' not present in InstancePlacementTargetPlacementGroupReference JSON' + ) if (deleted := _dict.get('deleted')) is not None: args['deleted'] = Deleted.from_dict(deleted) if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in InstancePlacementTargetPlacementGroupReference JSON') + raise ValueError( + 'Required property \'href\' not present in InstancePlacementTargetPlacementGroupReference JSON' + ) if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in InstancePlacementTargetPlacementGroupReference JSON') + raise ValueError( + 'Required property \'id\' not present in InstancePlacementTargetPlacementGroupReference JSON' + ) if (name := _dict.get('name')) is not None: args['name'] = name else: - raise ValueError('Required property \'name\' not present in InstancePlacementTargetPlacementGroupReference JSON') + raise ValueError( + 'Required property \'name\' not present in InstancePlacementTargetPlacementGroupReference JSON' + ) if (resource_type := _dict.get('resource_type')) is not None: args['resource_type'] = resource_type else: - raise ValueError('Required property \'resource_type\' not present in InstancePlacementTargetPlacementGroupReference JSON') + raise ValueError( + 'Required property \'resource_type\' not present in InstancePlacementTargetPlacementGroupReference JSON' + ) return cls(**args) @classmethod @@ -115585,7 +117037,6 @@ class ResourceTypeEnum(str, Enum): PLACEMENT_GROUP = 'placement_group' - class InstanceProfileBandwidthDependent(InstanceProfileBandwidth): """ The total bandwidth shared across the network attachments or network interfaces and @@ -115654,7 +117105,6 @@ class TypeEnum(str, Enum): DEPENDENT = 'dependent' - class InstanceProfileBandwidthEnum(InstanceProfileBandwidth): """ The permitted total bandwidth values (in megabits per second) shared across the @@ -115744,7 +117194,6 @@ class TypeEnum(str, Enum): ENUM = 'enum' - class InstanceProfileBandwidthFixed(InstanceProfileBandwidth): """ The total bandwidth (in megabits per second) shared across the network attachments or @@ -115823,7 +117272,6 @@ class TypeEnum(str, Enum): FIXED = 'fixed' - class InstanceProfileBandwidthRange(InstanceProfileBandwidth): """ The permitted total bandwidth range (in megabits per second) shared across the network @@ -115933,7 +117381,6 @@ class TypeEnum(str, Enum): RANGE = 'range' - class InstanceProfileClusterNetworkAttachmentCountDependent(InstanceProfileClusterNetworkAttachmentCount): """ The number of cluster network attachments supported on an instance with this profile @@ -115961,7 +117408,9 @@ def from_dict(cls, _dict: Dict) -> 'InstanceProfileClusterNetworkAttachmentCount if (type := _dict.get('type')) is not None: args['type'] = type else: - raise ValueError('Required property \'type\' not present in InstanceProfileClusterNetworkAttachmentCountDependent JSON') + raise ValueError( + 'Required property \'type\' not present in InstanceProfileClusterNetworkAttachmentCountDependent JSON' + ) return cls(**args) @classmethod @@ -116002,7 +117451,6 @@ class TypeEnum(str, Enum): DEPENDENT = 'dependent' - class InstanceProfileClusterNetworkAttachmentCountEnum(InstanceProfileClusterNetworkAttachmentCount): """ The permitted values for cluster network attachment count for an instance with this @@ -116041,11 +117489,15 @@ def from_dict(cls, _dict: Dict) -> 'InstanceProfileClusterNetworkAttachmentCount if (type := _dict.get('type')) is not None: args['type'] = type else: - raise ValueError('Required property \'type\' not present in InstanceProfileClusterNetworkAttachmentCountEnum JSON') + raise ValueError( + 'Required property \'type\' not present in InstanceProfileClusterNetworkAttachmentCountEnum JSON' + ) if (values := _dict.get('values')) is not None: args['values'] = values else: - raise ValueError('Required property \'values\' not present in InstanceProfileClusterNetworkAttachmentCountEnum JSON') + raise ValueError( + 'Required property \'values\' not present in InstanceProfileClusterNetworkAttachmentCountEnum JSON' + ) return cls(**args) @classmethod @@ -116090,7 +117542,6 @@ class TypeEnum(str, Enum): ENUM = 'enum' - class InstanceProfileClusterNetworkAttachmentCountRange(InstanceProfileClusterNetworkAttachmentCount): """ The number of network attachments supported on an instance with this profile. @@ -116136,7 +117587,9 @@ def from_dict(cls, _dict: Dict) -> 'InstanceProfileClusterNetworkAttachmentCount if (type := _dict.get('type')) is not None: args['type'] = type else: - raise ValueError('Required property \'type\' not present in InstanceProfileClusterNetworkAttachmentCountRange JSON') + raise ValueError( + 'Required property \'type\' not present in InstanceProfileClusterNetworkAttachmentCountRange JSON' + ) return cls(**args) @classmethod @@ -116183,7 +117636,6 @@ class TypeEnum(str, Enum): RANGE = 'range' - class InstanceProfileDiskQuantityDependent(InstanceProfileDiskQuantity): """ The number of disks of this configuration for an instance with this profile depends on @@ -116252,7 +117704,6 @@ class TypeEnum(str, Enum): DEPENDENT = 'dependent' - class InstanceProfileDiskQuantityEnum(InstanceProfileDiskQuantity): """ The permitted the number of disks of this configuration for an instance with this @@ -116341,7 +117792,6 @@ class TypeEnum(str, Enum): ENUM = 'enum' - class InstanceProfileDiskQuantityFixed(InstanceProfileDiskQuantity): """ The number of disks of this configuration for an instance with this profile. @@ -116419,7 +117869,6 @@ class TypeEnum(str, Enum): FIXED = 'fixed' - class InstanceProfileDiskQuantityRange(InstanceProfileDiskQuantity): """ The permitted range for the number of disks of this configuration for an instance with @@ -116528,7 +117977,6 @@ class TypeEnum(str, Enum): RANGE = 'range' - class InstanceProfileDiskSizeDependent(InstanceProfileDiskSize): """ The disk size in GB (gigabytes) of this configuration for an instance with this @@ -116597,7 +118045,6 @@ class TypeEnum(str, Enum): DEPENDENT = 'dependent' - class InstanceProfileDiskSizeEnum(InstanceProfileDiskSize): """ The permitted disk size in GB (gigabytes) of this configuration for an instance with @@ -116686,7 +118133,6 @@ class TypeEnum(str, Enum): ENUM = 'enum' - class InstanceProfileDiskSizeFixed(InstanceProfileDiskSize): """ The size of the disk in GB (gigabytes). @@ -116764,7 +118210,6 @@ class TypeEnum(str, Enum): FIXED = 'fixed' - class InstanceProfileDiskSizeRange(InstanceProfileDiskSize): """ The permitted range for the disk size of this configuration in GB (gigabytes) for an @@ -116873,7 +118318,6 @@ class TypeEnum(str, Enum): RANGE = 'range' - class InstanceProfileGPUDependent(InstanceProfileGPU): """ The GPU count for an instance with this profile depends on its configuration. @@ -116941,7 +118385,6 @@ class TypeEnum(str, Enum): DEPENDENT = 'dependent' - class InstanceProfileGPUEnum(InstanceProfileGPU): """ The permitted GPU count values for an instance with this profile. @@ -117029,7 +118472,6 @@ class TypeEnum(str, Enum): ENUM = 'enum' - class InstanceProfileGPUFixed(InstanceProfileGPU): """ The GPU count for an instance with this profile. @@ -117107,7 +118549,6 @@ class TypeEnum(str, Enum): FIXED = 'fixed' - class InstanceProfileGPUMemoryDependent(InstanceProfileGPUMemory): """ The overall GPU memory value for an instance with this profile depends on its @@ -117176,7 +118617,6 @@ class TypeEnum(str, Enum): DEPENDENT = 'dependent' - class InstanceProfileGPUMemoryEnum(InstanceProfileGPUMemory): """ The permitted overall GPU memory values in GiB (gibibytes) for an instance with this @@ -117265,7 +118705,6 @@ class TypeEnum(str, Enum): ENUM = 'enum' - class InstanceProfileGPUMemoryFixed(InstanceProfileGPUMemory): """ The overall GPU memory in GiB (gibibytes) for an instance with this profile. @@ -117343,7 +118782,6 @@ class TypeEnum(str, Enum): FIXED = 'fixed' - class InstanceProfileGPUMemoryRange(InstanceProfileGPUMemory): """ The permitted overall GPU memory range in GiB (gibibytes) for an instance with this @@ -117452,7 +118890,6 @@ class TypeEnum(str, Enum): RANGE = 'range' - class InstanceProfileGPURange(InstanceProfileGPU): """ The permitted GPU count range for an instance with this profile. @@ -117560,7 +118997,6 @@ class TypeEnum(str, Enum): RANGE = 'range' - class InstanceProfileIdentityByHref(InstanceProfileIdentity): """ InstanceProfileIdentityByHref. @@ -117750,7 +119186,6 @@ class TypeEnum(str, Enum): DEPENDENT = 'dependent' - class InstanceProfileMemoryEnum(InstanceProfileMemory): """ The permitted memory values (in gibibytes) for an instance with this profile. @@ -117838,7 +119273,6 @@ class TypeEnum(str, Enum): ENUM = 'enum' - class InstanceProfileMemoryFixed(InstanceProfileMemory): """ The memory (in gibibytes) for an instance with this profile. @@ -117916,7 +119350,6 @@ class TypeEnum(str, Enum): FIXED = 'fixed' - class InstanceProfileMemoryRange(InstanceProfileMemory): """ The permitted memory range (in gibibytes) for an instance with this profile. @@ -118024,7 +119457,6 @@ class TypeEnum(str, Enum): RANGE = 'range' - class InstanceProfileNUMACountDependent(InstanceProfileNUMACount): """ The total number of NUMA nodes for an instance with this profile depends on its @@ -118093,7 +119525,6 @@ class TypeEnum(str, Enum): DEPENDENT = 'dependent' - class InstanceProfileNUMACountFixed(InstanceProfileNUMACount): """ The total number of NUMA nodes for an instance with this profile. @@ -118171,7 +119602,6 @@ class TypeEnum(str, Enum): FIXED = 'fixed' - class InstanceProfileNetworkAttachmentCountDependent(InstanceProfileNetworkAttachmentCount): """ The number of network attachments supported on an instance with this profile is @@ -118199,7 +119629,9 @@ def from_dict(cls, _dict: Dict) -> 'InstanceProfileNetworkAttachmentCountDepende if (type := _dict.get('type')) is not None: args['type'] = type else: - raise ValueError('Required property \'type\' not present in InstanceProfileNetworkAttachmentCountDependent JSON') + raise ValueError( + 'Required property \'type\' not present in InstanceProfileNetworkAttachmentCountDependent JSON' + ) return cls(**args) @classmethod @@ -118240,7 +119672,6 @@ class TypeEnum(str, Enum): DEPENDENT = 'dependent' - class InstanceProfileNetworkAttachmentCountRange(InstanceProfileNetworkAttachmentCount): """ The number of network attachments supported on an instance with this profile. @@ -118280,7 +119711,9 @@ def from_dict(cls, _dict: Dict) -> 'InstanceProfileNetworkAttachmentCountRange': if (type := _dict.get('type')) is not None: args['type'] = type else: - raise ValueError('Required property \'type\' not present in InstanceProfileNetworkAttachmentCountRange JSON') + raise ValueError( + 'Required property \'type\' not present in InstanceProfileNetworkAttachmentCountRange JSON' + ) return cls(**args) @classmethod @@ -118325,7 +119758,6 @@ class TypeEnum(str, Enum): RANGE = 'range' - class InstanceProfileNetworkInterfaceCountDependent(InstanceProfileNetworkInterfaceCount): """ The number of network interfaces supported on an instance with this profile is @@ -118353,7 +119785,9 @@ def from_dict(cls, _dict: Dict) -> 'InstanceProfileNetworkInterfaceCountDependen if (type := _dict.get('type')) is not None: args['type'] = type else: - raise ValueError('Required property \'type\' not present in InstanceProfileNetworkInterfaceCountDependent JSON') + raise ValueError( + 'Required property \'type\' not present in InstanceProfileNetworkInterfaceCountDependent JSON' + ) return cls(**args) @classmethod @@ -118394,7 +119828,6 @@ class TypeEnum(str, Enum): DEPENDENT = 'dependent' - class InstanceProfileNetworkInterfaceCountRange(InstanceProfileNetworkInterfaceCount): """ The number of network interfaces supported on an instance with this profile. @@ -118479,7 +119912,6 @@ class TypeEnum(str, Enum): RANGE = 'range' - class InstanceProfilePortSpeedDependent(InstanceProfilePortSpeed): """ The port speed of each network interface of an instance with this profile depends on @@ -118548,7 +119980,6 @@ class TypeEnum(str, Enum): DEPENDENT = 'dependent' - class InstanceProfilePortSpeedFixed(InstanceProfilePortSpeed): """ The maximum speed (in megabits per second) of each network interface of an instance @@ -118627,7 +120058,6 @@ class TypeEnum(str, Enum): FIXED = 'fixed' - class InstanceProfileVCPUDependent(InstanceProfileVCPU): """ The VCPU count for an instance with this profile depends on its configuration. @@ -118695,7 +120125,6 @@ class TypeEnum(str, Enum): DEPENDENT = 'dependent' - class InstanceProfileVCPUEnum(InstanceProfileVCPU): """ The permitted values for VCPU count for an instance with this profile. @@ -118783,7 +120212,6 @@ class TypeEnum(str, Enum): ENUM = 'enum' - class InstanceProfileVCPUFixed(InstanceProfileVCPU): """ The VCPU count for an instance with this profile. @@ -118861,7 +120289,6 @@ class TypeEnum(str, Enum): FIXED = 'fixed' - class InstanceProfileVCPURange(InstanceProfileVCPU): """ The permitted range for VCPU count for an instance with this profile. @@ -118969,7 +120396,6 @@ class TypeEnum(str, Enum): RANGE = 'range' - class InstanceProfileVolumeBandwidthDependent(InstanceProfileVolumeBandwidth): """ The storage bandwidth shared across the storage volumes of an instance with this @@ -119038,7 +120464,6 @@ class TypeEnum(str, Enum): DEPENDENT = 'dependent' - class InstanceProfileVolumeBandwidthEnum(InstanceProfileVolumeBandwidth): """ The permitted storage bandwidth values (in megabits per second) shared across the @@ -119127,7 +120552,6 @@ class TypeEnum(str, Enum): ENUM = 'enum' - class InstanceProfileVolumeBandwidthFixed(InstanceProfileVolumeBandwidth): """ The storage bandwidth (in megabits per second) shared across the storage volumes of an @@ -119206,7 +120630,6 @@ class TypeEnum(str, Enum): FIXED = 'fixed' - class InstanceProfileVolumeBandwidthRange(InstanceProfileVolumeBandwidth): """ The permitted storage bandwidth range (in megabits per second) shared across the @@ -119315,7 +120738,6 @@ class TypeEnum(str, Enum): RANGE = 'range' - class InstancePrototypeInstanceByCatalogOffering(InstancePrototype): """ Create an instance by using a catalog offering. @@ -119509,7 +120931,12 @@ def __init__( """ # pylint: disable=super-init-not-called msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['InstancePrototypeInstanceByCatalogOfferingInstanceByCatalogOfferingInstanceByNetworkAttachment', 'InstancePrototypeInstanceByCatalogOfferingInstanceByCatalogOfferingInstanceByNetworkInterface']) + ", ".join( + [ + 'InstancePrototypeInstanceByCatalogOfferingInstanceByCatalogOfferingInstanceByNetworkAttachment', + 'InstancePrototypeInstanceByCatalogOfferingInstanceByCatalogOfferingInstanceByNetworkInterface', + ] + ) ) raise Exception(msg) @@ -119524,7 +120951,6 @@ class ConfidentialComputeModeEnum(str, Enum): SGX = 'sgx' - class InstancePrototypeInstanceByImage(InstancePrototype): """ Create an instance by using an image. @@ -119706,7 +121132,12 @@ def __init__( """ # pylint: disable=super-init-not-called msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['InstancePrototypeInstanceByImageInstanceByImageInstanceByNetworkAttachment', 'InstancePrototypeInstanceByImageInstanceByImageInstanceByNetworkInterface']) + ", ".join( + [ + 'InstancePrototypeInstanceByImageInstanceByImageInstanceByNetworkAttachment', + 'InstancePrototypeInstanceByImageInstanceByImageInstanceByNetworkInterface', + ] + ) ) raise Exception(msg) @@ -119721,7 +121152,6 @@ class ConfidentialComputeModeEnum(str, Enum): SGX = 'sgx' - class InstancePrototypeInstanceBySourceSnapshot(InstancePrototype): """ Create an instance by using a snapshot. @@ -119898,7 +121328,12 @@ def __init__( """ # pylint: disable=super-init-not-called msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment', 'InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkInterface']) + ", ".join( + [ + 'InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment', + 'InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkInterface', + ] + ) ) raise Exception(msg) @@ -119913,7 +121348,6 @@ class ConfidentialComputeModeEnum(str, Enum): SGX = 'sgx' - class InstancePrototypeInstanceBySourceTemplate(InstancePrototype): """ Create an instance by using an instance template. @@ -120179,7 +121613,10 @@ def from_dict(cls, _dict: Dict) -> 'InstancePrototypeInstanceBySourceTemplate': if (availability_policy := _dict.get('availability_policy')) is not None: args['availability_policy'] = InstanceAvailabilityPolicyPrototype.from_dict(availability_policy) if (cluster_network_attachments := _dict.get('cluster_network_attachments')) is not None: - args['cluster_network_attachments'] = [InstanceClusterNetworkAttachmentPrototypeInstanceContext.from_dict(v) for v in cluster_network_attachments] + args['cluster_network_attachments'] = [ + InstanceClusterNetworkAttachmentPrototypeInstanceContext.from_dict(v) + for v in cluster_network_attachments + ] if (confidential_compute_mode := _dict.get('confidential_compute_mode')) is not None: args['confidential_compute_mode'] = confidential_compute_mode if (default_trusted_profile := _dict.get('default_trusted_profile')) is not None: @@ -120209,7 +121646,9 @@ def from_dict(cls, _dict: Dict) -> 'InstancePrototypeInstanceBySourceTemplate': if (vpc := _dict.get('vpc')) is not None: args['vpc'] = vpc if (boot_volume_attachment := _dict.get('boot_volume_attachment')) is not None: - args['boot_volume_attachment'] = VolumeAttachmentPrototypeInstanceByImageContext.from_dict(boot_volume_attachment) + args['boot_volume_attachment'] = VolumeAttachmentPrototypeInstanceByImageContext.from_dict( + boot_volume_attachment + ) if (catalog_offering := _dict.get('catalog_offering')) is not None: args['catalog_offering'] = catalog_offering if (image := _dict.get('image')) is not None: @@ -120219,13 +121658,17 @@ def from_dict(cls, _dict: Dict) -> 'InstancePrototypeInstanceBySourceTemplate': if (network_interfaces := _dict.get('network_interfaces')) is not None: args['network_interfaces'] = [NetworkInterfacePrototype.from_dict(v) for v in network_interfaces] if (primary_network_attachment := _dict.get('primary_network_attachment')) is not None: - args['primary_network_attachment'] = InstanceNetworkAttachmentPrototype.from_dict(primary_network_attachment) + args['primary_network_attachment'] = InstanceNetworkAttachmentPrototype.from_dict( + primary_network_attachment + ) if (primary_network_interface := _dict.get('primary_network_interface')) is not None: args['primary_network_interface'] = NetworkInterfacePrototype.from_dict(primary_network_interface) if (source_template := _dict.get('source_template')) is not None: args['source_template'] = source_template else: - raise ValueError('Required property \'source_template\' not present in InstancePrototypeInstanceBySourceTemplate JSON') + raise ValueError( + 'Required property \'source_template\' not present in InstancePrototypeInstanceBySourceTemplate JSON' + ) if (zone := _dict.get('zone')) is not None: args['zone'] = zone return cls(**args) @@ -120394,7 +121837,6 @@ class ConfidentialComputeModeEnum(str, Enum): SGX = 'sgx' - class InstancePrototypeInstanceByVolume(InstancePrototype): """ Create an instance by using a boot volume. @@ -120570,7 +122012,12 @@ def __init__( """ # pylint: disable=super-init-not-called msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['InstancePrototypeInstanceByVolumeInstanceByVolumeInstanceByNetworkAttachment', 'InstancePrototypeInstanceByVolumeInstanceByVolumeInstanceByNetworkInterface']) + ", ".join( + [ + 'InstancePrototypeInstanceByVolumeInstanceByVolumeInstanceByNetworkAttachment', + 'InstancePrototypeInstanceByVolumeInstanceByVolumeInstanceByNetworkInterface', + ] + ) ) raise Exception(msg) @@ -120585,7 +122032,6 @@ class ConfidentialComputeModeEnum(str, Enum): SGX = 'sgx' - class InstanceTemplateIdentityByCRN(InstanceTemplateIdentity): """ InstanceTemplateIdentityByCRN. @@ -120957,7 +122403,12 @@ def __init__( """ # pylint: disable=super-init-not-called msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['InstanceTemplatePrototypeInstanceTemplateByCatalogOfferingInstanceTemplateByCatalogOfferingInstanceByNetworkAttachment', 'InstanceTemplatePrototypeInstanceTemplateByCatalogOfferingInstanceTemplateByCatalogOfferingInstanceByNetworkInterface']) + ", ".join( + [ + 'InstanceTemplatePrototypeInstanceTemplateByCatalogOfferingInstanceTemplateByCatalogOfferingInstanceByNetworkAttachment', + 'InstanceTemplatePrototypeInstanceTemplateByCatalogOfferingInstanceTemplateByCatalogOfferingInstanceByNetworkInterface', + ] + ) ) raise Exception(msg) @@ -120972,7 +122423,6 @@ class ConfidentialComputeModeEnum(str, Enum): SGX = 'sgx' - class InstanceTemplatePrototypeInstanceTemplateByImage(InstanceTemplatePrototype): """ Create an instance template that creates instances by using an image. @@ -121152,7 +122602,12 @@ def __init__( """ # pylint: disable=super-init-not-called msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['InstanceTemplatePrototypeInstanceTemplateByImageInstanceTemplateByImageInstanceByNetworkAttachment', 'InstanceTemplatePrototypeInstanceTemplateByImageInstanceTemplateByImageInstanceByNetworkInterface']) + ", ".join( + [ + 'InstanceTemplatePrototypeInstanceTemplateByImageInstanceTemplateByImageInstanceByNetworkAttachment', + 'InstanceTemplatePrototypeInstanceTemplateByImageInstanceTemplateByImageInstanceByNetworkInterface', + ] + ) ) raise Exception(msg) @@ -121167,7 +122622,6 @@ class ConfidentialComputeModeEnum(str, Enum): SGX = 'sgx' - class InstanceTemplatePrototypeInstanceTemplateBySourceSnapshot(InstanceTemplatePrototype): """ Create an instance template that creates instances by using a snapshot. @@ -121342,7 +122796,12 @@ def __init__( """ # pylint: disable=super-init-not-called msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['InstanceTemplatePrototypeInstanceTemplateBySourceSnapshotInstanceTemplateBySourceSnapshotInstanceByNetworkAttachment', 'InstanceTemplatePrototypeInstanceTemplateBySourceSnapshotInstanceTemplateBySourceSnapshotInstanceByNetworkInterface']) + ", ".join( + [ + 'InstanceTemplatePrototypeInstanceTemplateBySourceSnapshotInstanceTemplateBySourceSnapshotInstanceByNetworkAttachment', + 'InstanceTemplatePrototypeInstanceTemplateBySourceSnapshotInstanceTemplateBySourceSnapshotInstanceByNetworkInterface', + ] + ) ) raise Exception(msg) @@ -121357,7 +122816,6 @@ class ConfidentialComputeModeEnum(str, Enum): SGX = 'sgx' - class InstanceTemplatePrototypeInstanceTemplateBySourceTemplate(InstanceTemplatePrototype): """ Create an instance template from an existing source instance template. @@ -121621,7 +123079,10 @@ def from_dict(cls, _dict: Dict) -> 'InstanceTemplatePrototypeInstanceTemplateByS if (availability_policy := _dict.get('availability_policy')) is not None: args['availability_policy'] = InstanceAvailabilityPolicyPrototype.from_dict(availability_policy) if (cluster_network_attachments := _dict.get('cluster_network_attachments')) is not None: - args['cluster_network_attachments'] = [InstanceClusterNetworkAttachmentPrototypeInstanceContext.from_dict(v) for v in cluster_network_attachments] + args['cluster_network_attachments'] = [ + InstanceClusterNetworkAttachmentPrototypeInstanceContext.from_dict(v) + for v in cluster_network_attachments + ] if (confidential_compute_mode := _dict.get('confidential_compute_mode')) is not None: args['confidential_compute_mode'] = confidential_compute_mode if (default_trusted_profile := _dict.get('default_trusted_profile')) is not None: @@ -121651,7 +123112,9 @@ def from_dict(cls, _dict: Dict) -> 'InstanceTemplatePrototypeInstanceTemplateByS if (vpc := _dict.get('vpc')) is not None: args['vpc'] = vpc if (boot_volume_attachment := _dict.get('boot_volume_attachment')) is not None: - args['boot_volume_attachment'] = VolumeAttachmentPrototypeInstanceByImageContext.from_dict(boot_volume_attachment) + args['boot_volume_attachment'] = VolumeAttachmentPrototypeInstanceByImageContext.from_dict( + boot_volume_attachment + ) if (catalog_offering := _dict.get('catalog_offering')) is not None: args['catalog_offering'] = catalog_offering if (image := _dict.get('image')) is not None: @@ -121661,13 +123124,17 @@ def from_dict(cls, _dict: Dict) -> 'InstanceTemplatePrototypeInstanceTemplateByS if (network_interfaces := _dict.get('network_interfaces')) is not None: args['network_interfaces'] = [NetworkInterfacePrototype.from_dict(v) for v in network_interfaces] if (primary_network_attachment := _dict.get('primary_network_attachment')) is not None: - args['primary_network_attachment'] = InstanceNetworkAttachmentPrototype.from_dict(primary_network_attachment) + args['primary_network_attachment'] = InstanceNetworkAttachmentPrototype.from_dict( + primary_network_attachment + ) if (primary_network_interface := _dict.get('primary_network_interface')) is not None: args['primary_network_interface'] = NetworkInterfacePrototype.from_dict(primary_network_interface) if (source_template := _dict.get('source_template')) is not None: args['source_template'] = source_template else: - raise ValueError('Required property \'source_template\' not present in InstanceTemplatePrototypeInstanceTemplateBySourceTemplate JSON') + raise ValueError( + 'Required property \'source_template\' not present in InstanceTemplatePrototypeInstanceTemplateBySourceTemplate JSON' + ) if (zone := _dict.get('zone')) is not None: args['zone'] = zone return cls(**args) @@ -121836,7 +123303,6 @@ class ConfidentialComputeModeEnum(str, Enum): SGX = 'sgx' - class InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContext(InstanceTemplate): """ Create an instance by using a catalog offering. @@ -122042,7 +123508,12 @@ def __init__( """ # pylint: disable=super-init-not-called msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkAttachment', 'InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkInterface']) + ", ".join( + [ + 'InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkAttachment', + 'InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkInterface', + ] + ) ) raise Exception(msg) @@ -122057,7 +123528,6 @@ class ConfidentialComputeModeEnum(str, Enum): SGX = 'sgx' - class InstanceTemplateInstanceByImageInstanceTemplateContext(InstanceTemplate): """ Create an instance by using an image. @@ -122250,7 +123720,12 @@ def __init__( """ # pylint: disable=super-init-not-called msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkAttachment', 'InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkInterface']) + ", ".join( + [ + 'InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkAttachment', + 'InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkInterface', + ] + ) ) raise Exception(msg) @@ -122265,7 +123740,6 @@ class ConfidentialComputeModeEnum(str, Enum): SGX = 'sgx' - class InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContext(InstanceTemplate): """ Create an instance by using a snapshot. @@ -122471,7 +123945,12 @@ def __init__( """ # pylint: disable=super-init-not-called msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkAttachment', 'InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkInterface']) + ", ".join( + [ + 'InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkAttachment', + 'InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkInterface', + ] + ) ) raise Exception(msg) @@ -122486,7 +123965,6 @@ class ConfidentialComputeModeEnum(str, Enum): SGX = 'sgx' - class KeyIdentityByCRN(KeyIdentity): """ KeyIdentityByCRN. @@ -122730,7 +124208,9 @@ def __ne__(self, other: 'KeyIdentityById') -> bool: return not self == other -class LegacyCloudObjectStorageBucketIdentityCloudObjectStorageBucketIdentityByName(LegacyCloudObjectStorageBucketIdentity): +class LegacyCloudObjectStorageBucketIdentityCloudObjectStorageBucketIdentityByName( + LegacyCloudObjectStorageBucketIdentity +): """ LegacyCloudObjectStorageBucketIdentityCloudObjectStorageBucketIdentityByName. @@ -122757,7 +124237,9 @@ def from_dict(cls, _dict: Dict) -> 'LegacyCloudObjectStorageBucketIdentityCloudO if (name := _dict.get('name')) is not None: args['name'] = name else: - raise ValueError('Required property \'name\' not present in LegacyCloudObjectStorageBucketIdentityCloudObjectStorageBucketIdentityByName JSON') + raise ValueError( + 'Required property \'name\' not present in LegacyCloudObjectStorageBucketIdentityCloudObjectStorageBucketIdentityByName JSON' + ) return cls(**args) @classmethod @@ -122997,7 +124479,9 @@ def from_dict(cls, _dict: Dict) -> 'LoadBalancerListenerDefaultPoolPatchLoadBala if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in LoadBalancerListenerDefaultPoolPatchLoadBalancerPoolIdentityByHref JSON') + raise ValueError( + 'Required property \'href\' not present in LoadBalancerListenerDefaultPoolPatchLoadBalancerPoolIdentityByHref JSON' + ) return cls(**args) @classmethod @@ -123057,7 +124541,9 @@ def from_dict(cls, _dict: Dict) -> 'LoadBalancerListenerDefaultPoolPatchLoadBala if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in LoadBalancerListenerDefaultPoolPatchLoadBalancerPoolIdentityById JSON') + raise ValueError( + 'Required property \'id\' not present in LoadBalancerListenerDefaultPoolPatchLoadBalancerPoolIdentityById JSON' + ) return cls(**args) @classmethod @@ -123211,7 +124697,9 @@ def __ne__(self, other: 'LoadBalancerListenerIdentityById') -> bool: return not self == other -class LoadBalancerListenerPolicyTargetPatchLoadBalancerListenerPolicyHTTPSRedirectPatch(LoadBalancerListenerPolicyTargetPatch): +class LoadBalancerListenerPolicyTargetPatchLoadBalancerListenerPolicyHTTPSRedirectPatch( + LoadBalancerListenerPolicyTargetPatch +): """ LoadBalancerListenerPolicyTargetPatchLoadBalancerListenerPolicyHTTPSRedirectPatch. @@ -123243,7 +124731,9 @@ def __init__( self.uri = uri @classmethod - def from_dict(cls, _dict: Dict) -> 'LoadBalancerListenerPolicyTargetPatchLoadBalancerListenerPolicyHTTPSRedirectPatch': + def from_dict( + cls, _dict: Dict + ) -> 'LoadBalancerListenerPolicyTargetPatchLoadBalancerListenerPolicyHTTPSRedirectPatch': """Initialize a LoadBalancerListenerPolicyTargetPatchLoadBalancerListenerPolicyHTTPSRedirectPatch object from a json dictionary.""" args = {} if (http_status_code := _dict.get('http_status_code')) is not None: @@ -123281,18 +124771,24 @@ def __str__(self) -> str: """Return a `str` version of this LoadBalancerListenerPolicyTargetPatchLoadBalancerListenerPolicyHTTPSRedirectPatch object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'LoadBalancerListenerPolicyTargetPatchLoadBalancerListenerPolicyHTTPSRedirectPatch') -> bool: + def __eq__( + self, other: 'LoadBalancerListenerPolicyTargetPatchLoadBalancerListenerPolicyHTTPSRedirectPatch' + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'LoadBalancerListenerPolicyTargetPatchLoadBalancerListenerPolicyHTTPSRedirectPatch') -> bool: + def __ne__( + self, other: 'LoadBalancerListenerPolicyTargetPatchLoadBalancerListenerPolicyHTTPSRedirectPatch' + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other -class LoadBalancerListenerPolicyTargetPatchLoadBalancerListenerPolicyRedirectURLPatch(LoadBalancerListenerPolicyTargetPatch): +class LoadBalancerListenerPolicyTargetPatchLoadBalancerListenerPolicyRedirectURLPatch( + LoadBalancerListenerPolicyTargetPatch +): """ LoadBalancerListenerPolicyTargetPatchLoadBalancerListenerPolicyRedirectURLPatch. @@ -123353,7 +124849,9 @@ def __init__( self.url = url @classmethod - def from_dict(cls, _dict: Dict) -> 'LoadBalancerListenerPolicyTargetPatchLoadBalancerListenerPolicyRedirectURLPatch': + def from_dict( + cls, _dict: Dict + ) -> 'LoadBalancerListenerPolicyTargetPatchLoadBalancerListenerPolicyRedirectURLPatch': """Initialize a LoadBalancerListenerPolicyTargetPatchLoadBalancerListenerPolicyRedirectURLPatch object from a json dictionary.""" args = {} if (http_status_code := _dict.get('http_status_code')) is not None: @@ -123410,12 +124908,19 @@ def __init__( """ # pylint: disable=super-init-not-called msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['LoadBalancerListenerPolicyTargetPatchLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityById', 'LoadBalancerListenerPolicyTargetPatchLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref']) + ", ".join( + [ + 'LoadBalancerListenerPolicyTargetPatchLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityById', + 'LoadBalancerListenerPolicyTargetPatchLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref', + ] + ) ) raise Exception(msg) -class LoadBalancerListenerPolicyTargetPrototypeLoadBalancerListenerPolicyHTTPSRedirectPrototype(LoadBalancerListenerPolicyTargetPrototype): +class LoadBalancerListenerPolicyTargetPrototypeLoadBalancerListenerPolicyHTTPSRedirectPrototype( + LoadBalancerListenerPolicyTargetPrototype +): """ LoadBalancerListenerPolicyTargetPrototypeLoadBalancerListenerPolicyHTTPSRedirectPrototype. @@ -123446,17 +124951,23 @@ def __init__( self.uri = uri @classmethod - def from_dict(cls, _dict: Dict) -> 'LoadBalancerListenerPolicyTargetPrototypeLoadBalancerListenerPolicyHTTPSRedirectPrototype': + def from_dict( + cls, _dict: Dict + ) -> 'LoadBalancerListenerPolicyTargetPrototypeLoadBalancerListenerPolicyHTTPSRedirectPrototype': """Initialize a LoadBalancerListenerPolicyTargetPrototypeLoadBalancerListenerPolicyHTTPSRedirectPrototype object from a json dictionary.""" args = {} if (http_status_code := _dict.get('http_status_code')) is not None: args['http_status_code'] = http_status_code else: - raise ValueError('Required property \'http_status_code\' not present in LoadBalancerListenerPolicyTargetPrototypeLoadBalancerListenerPolicyHTTPSRedirectPrototype JSON') + raise ValueError( + 'Required property \'http_status_code\' not present in LoadBalancerListenerPolicyTargetPrototypeLoadBalancerListenerPolicyHTTPSRedirectPrototype JSON' + ) if (listener := _dict.get('listener')) is not None: args['listener'] = listener else: - raise ValueError('Required property \'listener\' not present in LoadBalancerListenerPolicyTargetPrototypeLoadBalancerListenerPolicyHTTPSRedirectPrototype JSON') + raise ValueError( + 'Required property \'listener\' not present in LoadBalancerListenerPolicyTargetPrototypeLoadBalancerListenerPolicyHTTPSRedirectPrototype JSON' + ) if (uri := _dict.get('uri')) is not None: args['uri'] = uri return cls(**args) @@ -123488,18 +124999,24 @@ def __str__(self) -> str: """Return a `str` version of this LoadBalancerListenerPolicyTargetPrototypeLoadBalancerListenerPolicyHTTPSRedirectPrototype object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'LoadBalancerListenerPolicyTargetPrototypeLoadBalancerListenerPolicyHTTPSRedirectPrototype') -> bool: + def __eq__( + self, other: 'LoadBalancerListenerPolicyTargetPrototypeLoadBalancerListenerPolicyHTTPSRedirectPrototype' + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'LoadBalancerListenerPolicyTargetPrototypeLoadBalancerListenerPolicyHTTPSRedirectPrototype') -> bool: + def __ne__( + self, other: 'LoadBalancerListenerPolicyTargetPrototypeLoadBalancerListenerPolicyHTTPSRedirectPrototype' + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other -class LoadBalancerListenerPolicyTargetPrototypeLoadBalancerListenerPolicyRedirectURLPrototype(LoadBalancerListenerPolicyTargetPrototype): +class LoadBalancerListenerPolicyTargetPrototypeLoadBalancerListenerPolicyRedirectURLPrototype( + LoadBalancerListenerPolicyTargetPrototype +): """ LoadBalancerListenerPolicyTargetPrototypeLoadBalancerListenerPolicyRedirectURLPrototype. @@ -123557,17 +125074,23 @@ def __init__( self.url = url @classmethod - def from_dict(cls, _dict: Dict) -> 'LoadBalancerListenerPolicyTargetPrototypeLoadBalancerListenerPolicyRedirectURLPrototype': + def from_dict( + cls, _dict: Dict + ) -> 'LoadBalancerListenerPolicyTargetPrototypeLoadBalancerListenerPolicyRedirectURLPrototype': """Initialize a LoadBalancerListenerPolicyTargetPrototypeLoadBalancerListenerPolicyRedirectURLPrototype object from a json dictionary.""" args = {} if (http_status_code := _dict.get('http_status_code')) is not None: args['http_status_code'] = http_status_code else: - raise ValueError('Required property \'http_status_code\' not present in LoadBalancerListenerPolicyTargetPrototypeLoadBalancerListenerPolicyRedirectURLPrototype JSON') + raise ValueError( + 'Required property \'http_status_code\' not present in LoadBalancerListenerPolicyTargetPrototypeLoadBalancerListenerPolicyRedirectURLPrototype JSON' + ) if (url := _dict.get('url')) is not None: args['url'] = url else: - raise ValueError('Required property \'url\' not present in LoadBalancerListenerPolicyTargetPrototypeLoadBalancerListenerPolicyRedirectURLPrototype JSON') + raise ValueError( + 'Required property \'url\' not present in LoadBalancerListenerPolicyTargetPrototypeLoadBalancerListenerPolicyRedirectURLPrototype JSON' + ) return cls(**args) @classmethod @@ -123592,13 +125115,17 @@ def __str__(self) -> str: """Return a `str` version of this LoadBalancerListenerPolicyTargetPrototypeLoadBalancerListenerPolicyRedirectURLPrototype object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'LoadBalancerListenerPolicyTargetPrototypeLoadBalancerListenerPolicyRedirectURLPrototype') -> bool: + def __eq__( + self, other: 'LoadBalancerListenerPolicyTargetPrototypeLoadBalancerListenerPolicyRedirectURLPrototype' + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'LoadBalancerListenerPolicyTargetPrototypeLoadBalancerListenerPolicyRedirectURLPrototype') -> bool: + def __ne__( + self, other: 'LoadBalancerListenerPolicyTargetPrototypeLoadBalancerListenerPolicyRedirectURLPrototype' + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other @@ -123618,7 +125145,12 @@ def __init__( """ # pylint: disable=super-init-not-called msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['LoadBalancerListenerPolicyTargetPrototypeLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityById', 'LoadBalancerListenerPolicyTargetPrototypeLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref']) + ", ".join( + [ + 'LoadBalancerListenerPolicyTargetPrototypeLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityById', + 'LoadBalancerListenerPolicyTargetPrototypeLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref', + ] + ) ) raise Exception(msg) @@ -123658,11 +125190,15 @@ def from_dict(cls, _dict: Dict) -> 'LoadBalancerListenerPolicyTargetLoadBalancer if (http_status_code := _dict.get('http_status_code')) is not None: args['http_status_code'] = http_status_code else: - raise ValueError('Required property \'http_status_code\' not present in LoadBalancerListenerPolicyTargetLoadBalancerListenerPolicyHTTPSRedirect JSON') + raise ValueError( + 'Required property \'http_status_code\' not present in LoadBalancerListenerPolicyTargetLoadBalancerListenerPolicyHTTPSRedirect JSON' + ) if (listener := _dict.get('listener')) is not None: args['listener'] = LoadBalancerListenerReference.from_dict(listener) else: - raise ValueError('Required property \'listener\' not present in LoadBalancerListenerPolicyTargetLoadBalancerListenerPolicyHTTPSRedirect JSON') + raise ValueError( + 'Required property \'listener\' not present in LoadBalancerListenerPolicyTargetLoadBalancerListenerPolicyHTTPSRedirect JSON' + ) if (uri := _dict.get('uri')) is not None: args['uri'] = uri return cls(**args) @@ -123769,11 +125305,15 @@ def from_dict(cls, _dict: Dict) -> 'LoadBalancerListenerPolicyTargetLoadBalancer if (http_status_code := _dict.get('http_status_code')) is not None: args['http_status_code'] = http_status_code else: - raise ValueError('Required property \'http_status_code\' not present in LoadBalancerListenerPolicyTargetLoadBalancerListenerPolicyRedirectURL JSON') + raise ValueError( + 'Required property \'http_status_code\' not present in LoadBalancerListenerPolicyTargetLoadBalancerListenerPolicyRedirectURL JSON' + ) if (url := _dict.get('url')) is not None: args['url'] = url else: - raise ValueError('Required property \'url\' not present in LoadBalancerListenerPolicyTargetLoadBalancerListenerPolicyRedirectURL JSON') + raise ValueError( + 'Required property \'url\' not present in LoadBalancerListenerPolicyTargetLoadBalancerListenerPolicyRedirectURL JSON' + ) return cls(**args) @classmethod @@ -123856,15 +125396,21 @@ def from_dict(cls, _dict: Dict) -> 'LoadBalancerListenerPolicyTargetLoadBalancer if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in LoadBalancerListenerPolicyTargetLoadBalancerPoolReference JSON') + raise ValueError( + 'Required property \'href\' not present in LoadBalancerListenerPolicyTargetLoadBalancerPoolReference JSON' + ) if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in LoadBalancerListenerPolicyTargetLoadBalancerPoolReference JSON') + raise ValueError( + 'Required property \'id\' not present in LoadBalancerListenerPolicyTargetLoadBalancerPoolReference JSON' + ) if (name := _dict.get('name')) is not None: args['name'] = name else: - raise ValueError('Required property \'name\' not present in LoadBalancerListenerPolicyTargetLoadBalancerPoolReference JSON') + raise ValueError( + 'Required property \'name\' not present in LoadBalancerListenerPolicyTargetLoadBalancerPoolReference JSON' + ) return cls(**args) @classmethod @@ -123933,7 +125479,9 @@ def from_dict(cls, _dict: Dict) -> 'LoadBalancerPoolIdentityLoadBalancerPoolIden if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in LoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref JSON') + raise ValueError( + 'Required property \'href\' not present in LoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref JSON' + ) return cls(**args) @classmethod @@ -123993,7 +125541,9 @@ def from_dict(cls, _dict: Dict) -> 'LoadBalancerPoolIdentityLoadBalancerPoolIden if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in LoadBalancerPoolIdentityLoadBalancerPoolIdentityById JSON') + raise ValueError( + 'Required property \'id\' not present in LoadBalancerPoolIdentityLoadBalancerPoolIdentityById JSON' + ) return cls(**args) @classmethod @@ -124059,7 +125609,9 @@ def from_dict(cls, _dict: Dict) -> 'LoadBalancerPoolMemberTargetPrototypeIP': if (address := _dict.get('address')) is not None: args['address'] = address else: - raise ValueError('Required property \'address\' not present in LoadBalancerPoolMemberTargetPrototypeIP JSON') + raise ValueError( + 'Required property \'address\' not present in LoadBalancerPoolMemberTargetPrototypeIP JSON' + ) return cls(**args) @classmethod @@ -124108,7 +125660,13 @@ def __init__( """ # pylint: disable=super-init-not-called msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['LoadBalancerPoolMemberTargetPrototypeInstanceIdentityInstanceIdentityById', 'LoadBalancerPoolMemberTargetPrototypeInstanceIdentityInstanceIdentityByCRN', 'LoadBalancerPoolMemberTargetPrototypeInstanceIdentityInstanceIdentityByHref']) + ", ".join( + [ + 'LoadBalancerPoolMemberTargetPrototypeInstanceIdentityInstanceIdentityById', + 'LoadBalancerPoolMemberTargetPrototypeInstanceIdentityInstanceIdentityByCRN', + 'LoadBalancerPoolMemberTargetPrototypeInstanceIdentityInstanceIdentityByHref', + ] + ) ) raise Exception(msg) @@ -124228,21 +125786,29 @@ def from_dict(cls, _dict: Dict) -> 'LoadBalancerPoolMemberTargetInstanceReferenc if (crn := _dict.get('crn')) is not None: args['crn'] = crn else: - raise ValueError('Required property \'crn\' not present in LoadBalancerPoolMemberTargetInstanceReference JSON') + raise ValueError( + 'Required property \'crn\' not present in LoadBalancerPoolMemberTargetInstanceReference JSON' + ) if (deleted := _dict.get('deleted')) is not None: args['deleted'] = Deleted.from_dict(deleted) if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in LoadBalancerPoolMemberTargetInstanceReference JSON') + raise ValueError( + 'Required property \'href\' not present in LoadBalancerPoolMemberTargetInstanceReference JSON' + ) if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in LoadBalancerPoolMemberTargetInstanceReference JSON') + raise ValueError( + 'Required property \'id\' not present in LoadBalancerPoolMemberTargetInstanceReference JSON' + ) if (name := _dict.get('name')) is not None: args['name'] = name else: - raise ValueError('Required property \'name\' not present in LoadBalancerPoolMemberTargetInstanceReference JSON') + raise ValueError( + 'Required property \'name\' not present in LoadBalancerPoolMemberTargetInstanceReference JSON' + ) return cls(**args) @classmethod @@ -124355,7 +125921,6 @@ class TypeEnum(str, Enum): DEPENDENT = 'dependent' - class LoadBalancerProfileAvailabilityFixed(LoadBalancerProfileAvailability): """ The availability mode for a load balancer with this profile. @@ -124447,7 +126012,6 @@ class TypeEnum(str, Enum): FIXED = 'fixed' - class ValueEnum(str, Enum): """ The availability of this load balancer: @@ -124464,7 +126028,6 @@ class ValueEnum(str, Enum): SUBNET = 'subnet' - class LoadBalancerProfileIdentityByHref(LoadBalancerProfileIdentity): """ LoadBalancerProfileIdentityByHref. @@ -124612,7 +126175,9 @@ def from_dict(cls, _dict: Dict) -> 'LoadBalancerProfileInstanceGroupsSupportedDe if (type := _dict.get('type')) is not None: args['type'] = type else: - raise ValueError('Required property \'type\' not present in LoadBalancerProfileInstanceGroupsSupportedDependent JSON') + raise ValueError( + 'Required property \'type\' not present in LoadBalancerProfileInstanceGroupsSupportedDependent JSON' + ) return cls(**args) @classmethod @@ -124653,7 +126218,6 @@ class TypeEnum(str, Enum): DEPENDENT = 'dependent' - class LoadBalancerProfileInstanceGroupsSupportedFixed(LoadBalancerProfileInstanceGroupsSupported): """ The instance groups support for a load balancer with this profile. @@ -124684,11 +126248,15 @@ def from_dict(cls, _dict: Dict) -> 'LoadBalancerProfileInstanceGroupsSupportedFi if (type := _dict.get('type')) is not None: args['type'] = type else: - raise ValueError('Required property \'type\' not present in LoadBalancerProfileInstanceGroupsSupportedFixed JSON') + raise ValueError( + 'Required property \'type\' not present in LoadBalancerProfileInstanceGroupsSupportedFixed JSON' + ) if (value := _dict.get('value')) is not None: args['value'] = value else: - raise ValueError('Required property \'value\' not present in LoadBalancerProfileInstanceGroupsSupportedFixed JSON') + raise ValueError( + 'Required property \'value\' not present in LoadBalancerProfileInstanceGroupsSupportedFixed JSON' + ) return cls(**args) @classmethod @@ -124731,7 +126299,6 @@ class TypeEnum(str, Enum): FIXED = 'fixed' - class LoadBalancerProfileRouteModeSupportedDependent(LoadBalancerProfileRouteModeSupported): """ The route mode support for a load balancer with this profile depends on its @@ -124759,7 +126326,9 @@ def from_dict(cls, _dict: Dict) -> 'LoadBalancerProfileRouteModeSupportedDepende if (type := _dict.get('type')) is not None: args['type'] = type else: - raise ValueError('Required property \'type\' not present in LoadBalancerProfileRouteModeSupportedDependent JSON') + raise ValueError( + 'Required property \'type\' not present in LoadBalancerProfileRouteModeSupportedDependent JSON' + ) return cls(**args) @classmethod @@ -124800,7 +126369,6 @@ class TypeEnum(str, Enum): DEPENDENT = 'dependent' - class LoadBalancerProfileRouteModeSupportedFixed(LoadBalancerProfileRouteModeSupported): """ The route mode support for a load balancer with this profile. @@ -124831,11 +126399,15 @@ def from_dict(cls, _dict: Dict) -> 'LoadBalancerProfileRouteModeSupportedFixed': if (type := _dict.get('type')) is not None: args['type'] = type else: - raise ValueError('Required property \'type\' not present in LoadBalancerProfileRouteModeSupportedFixed JSON') + raise ValueError( + 'Required property \'type\' not present in LoadBalancerProfileRouteModeSupportedFixed JSON' + ) if (value := _dict.get('value')) is not None: args['value'] = value else: - raise ValueError('Required property \'value\' not present in LoadBalancerProfileRouteModeSupportedFixed JSON') + raise ValueError( + 'Required property \'value\' not present in LoadBalancerProfileRouteModeSupportedFixed JSON' + ) return cls(**args) @classmethod @@ -124878,7 +126450,6 @@ class TypeEnum(str, Enum): FIXED = 'fixed' - class LoadBalancerProfileSecurityGroupsSupportedDependent(LoadBalancerProfileSecurityGroupsSupported): """ The security group support for a load balancer with this profile depends on its @@ -124906,7 +126477,9 @@ def from_dict(cls, _dict: Dict) -> 'LoadBalancerProfileSecurityGroupsSupportedDe if (type := _dict.get('type')) is not None: args['type'] = type else: - raise ValueError('Required property \'type\' not present in LoadBalancerProfileSecurityGroupsSupportedDependent JSON') + raise ValueError( + 'Required property \'type\' not present in LoadBalancerProfileSecurityGroupsSupportedDependent JSON' + ) return cls(**args) @classmethod @@ -124947,7 +126520,6 @@ class TypeEnum(str, Enum): DEPENDENT = 'dependent' - class LoadBalancerProfileSecurityGroupsSupportedFixed(LoadBalancerProfileSecurityGroupsSupported): """ The security group support for a load balancer with this profile. @@ -124978,11 +126550,15 @@ def from_dict(cls, _dict: Dict) -> 'LoadBalancerProfileSecurityGroupsSupportedFi if (type := _dict.get('type')) is not None: args['type'] = type else: - raise ValueError('Required property \'type\' not present in LoadBalancerProfileSecurityGroupsSupportedFixed JSON') + raise ValueError( + 'Required property \'type\' not present in LoadBalancerProfileSecurityGroupsSupportedFixed JSON' + ) if (value := _dict.get('value')) is not None: args['value'] = value else: - raise ValueError('Required property \'value\' not present in LoadBalancerProfileSecurityGroupsSupportedFixed JSON') + raise ValueError( + 'Required property \'value\' not present in LoadBalancerProfileSecurityGroupsSupportedFixed JSON' + ) return cls(**args) @classmethod @@ -125025,8 +126601,9 @@ class TypeEnum(str, Enum): FIXED = 'fixed' - -class LoadBalancerProfileSourceIPSessionPersistenceSupportedDependent(LoadBalancerProfileSourceIPSessionPersistenceSupported): +class LoadBalancerProfileSourceIPSessionPersistenceSupportedDependent( + LoadBalancerProfileSourceIPSessionPersistenceSupported +): """ The source IP session persistence support for a load balancer with this profile depends on its configuration. @@ -125053,7 +126630,9 @@ def from_dict(cls, _dict: Dict) -> 'LoadBalancerProfileSourceIPSessionPersistenc if (type := _dict.get('type')) is not None: args['type'] = type else: - raise ValueError('Required property \'type\' not present in LoadBalancerProfileSourceIPSessionPersistenceSupportedDependent JSON') + raise ValueError( + 'Required property \'type\' not present in LoadBalancerProfileSourceIPSessionPersistenceSupportedDependent JSON' + ) return cls(**args) @classmethod @@ -125094,8 +126673,9 @@ class TypeEnum(str, Enum): DEPENDENT = 'dependent' - -class LoadBalancerProfileSourceIPSessionPersistenceSupportedFixed(LoadBalancerProfileSourceIPSessionPersistenceSupported): +class LoadBalancerProfileSourceIPSessionPersistenceSupportedFixed( + LoadBalancerProfileSourceIPSessionPersistenceSupported +): """ The source IP session persistence support for a load balancer with this profile. @@ -125125,11 +126705,15 @@ def from_dict(cls, _dict: Dict) -> 'LoadBalancerProfileSourceIPSessionPersistenc if (type := _dict.get('type')) is not None: args['type'] = type else: - raise ValueError('Required property \'type\' not present in LoadBalancerProfileSourceIPSessionPersistenceSupportedFixed JSON') + raise ValueError( + 'Required property \'type\' not present in LoadBalancerProfileSourceIPSessionPersistenceSupportedFixed JSON' + ) if (value := _dict.get('value')) is not None: args['value'] = value else: - raise ValueError('Required property \'value\' not present in LoadBalancerProfileSourceIPSessionPersistenceSupportedFixed JSON') + raise ValueError( + 'Required property \'value\' not present in LoadBalancerProfileSourceIPSessionPersistenceSupportedFixed JSON' + ) return cls(**args) @classmethod @@ -125172,7 +126756,6 @@ class TypeEnum(str, Enum): FIXED = 'fixed' - class LoadBalancerProfileUDPSupportedDependent(LoadBalancerProfileUDPSupported): """ The UDP support for a load balancer with this profile depends on its configuration. @@ -125240,7 +126823,6 @@ class TypeEnum(str, Enum): DEPENDENT = 'dependent' - class LoadBalancerProfileUDPSupportedFixed(LoadBalancerProfileUDPSupported): """ The UDP support for a load balancer with this profile. @@ -125318,7 +126900,6 @@ class TypeEnum(str, Enum): FIXED = 'fixed' - class NetworkACLIdentityByCRN(NetworkACLIdentity): """ NetworkACLIdentityByCRN. @@ -125653,11 +127234,15 @@ def from_dict(cls, _dict: Dict) -> 'NetworkACLPrototypeNetworkACLBySourceNetwork if (vpc := _dict.get('vpc')) is not None: args['vpc'] = vpc else: - raise ValueError('Required property \'vpc\' not present in NetworkACLPrototypeNetworkACLBySourceNetworkACL JSON') + raise ValueError( + 'Required property \'vpc\' not present in NetworkACLPrototypeNetworkACLBySourceNetworkACL JSON' + ) if (source_network_acl := _dict.get('source_network_acl')) is not None: args['source_network_acl'] = source_network_acl else: - raise ValueError('Required property \'source_network_acl\' not present in NetworkACLPrototypeNetworkACLBySourceNetworkACL JSON') + raise ValueError( + 'Required property \'source_network_acl\' not present in NetworkACLPrototypeNetworkACLBySourceNetworkACL JSON' + ) return cls(**args) @classmethod @@ -125732,7 +127317,9 @@ def from_dict(cls, _dict: Dict) -> 'NetworkACLRuleBeforePatchNetworkACLRuleIdent if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in NetworkACLRuleBeforePatchNetworkACLRuleIdentityByHref JSON') + raise ValueError( + 'Required property \'href\' not present in NetworkACLRuleBeforePatchNetworkACLRuleIdentityByHref JSON' + ) return cls(**args) @classmethod @@ -125792,7 +127379,9 @@ def from_dict(cls, _dict: Dict) -> 'NetworkACLRuleBeforePatchNetworkACLRuleIdent if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in NetworkACLRuleBeforePatchNetworkACLRuleIdentityById JSON') + raise ValueError( + 'Required property \'id\' not present in NetworkACLRuleBeforePatchNetworkACLRuleIdentityById JSON' + ) return cls(**args) @classmethod @@ -125852,7 +127441,9 @@ def from_dict(cls, _dict: Dict) -> 'NetworkACLRuleBeforePrototypeNetworkACLRuleI if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in NetworkACLRuleBeforePrototypeNetworkACLRuleIdentityByHref JSON') + raise ValueError( + 'Required property \'href\' not present in NetworkACLRuleBeforePrototypeNetworkACLRuleIdentityByHref JSON' + ) return cls(**args) @classmethod @@ -125912,7 +127503,9 @@ def from_dict(cls, _dict: Dict) -> 'NetworkACLRuleBeforePrototypeNetworkACLRuleI if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in NetworkACLRuleBeforePrototypeNetworkACLRuleIdentityById JSON') + raise ValueError( + 'Required property \'id\' not present in NetworkACLRuleBeforePrototypeNetworkACLRuleIdentityById JSON' + ) return cls(**args) @classmethod @@ -126023,25 +127616,35 @@ def from_dict(cls, _dict: Dict) -> 'NetworkACLRuleItemNetworkACLRuleProtocolAll' if (action := _dict.get('action')) is not None: args['action'] = action else: - raise ValueError('Required property \'action\' not present in NetworkACLRuleItemNetworkACLRuleProtocolAll JSON') + raise ValueError( + 'Required property \'action\' not present in NetworkACLRuleItemNetworkACLRuleProtocolAll JSON' + ) if (before := _dict.get('before')) is not None: args['before'] = NetworkACLRuleReference.from_dict(before) if (created_at := _dict.get('created_at')) is not None: args['created_at'] = string_to_datetime(created_at) else: - raise ValueError('Required property \'created_at\' not present in NetworkACLRuleItemNetworkACLRuleProtocolAll JSON') + raise ValueError( + 'Required property \'created_at\' not present in NetworkACLRuleItemNetworkACLRuleProtocolAll JSON' + ) if (destination := _dict.get('destination')) is not None: args['destination'] = destination else: - raise ValueError('Required property \'destination\' not present in NetworkACLRuleItemNetworkACLRuleProtocolAll JSON') + raise ValueError( + 'Required property \'destination\' not present in NetworkACLRuleItemNetworkACLRuleProtocolAll JSON' + ) if (direction := _dict.get('direction')) is not None: args['direction'] = direction else: - raise ValueError('Required property \'direction\' not present in NetworkACLRuleItemNetworkACLRuleProtocolAll JSON') + raise ValueError( + 'Required property \'direction\' not present in NetworkACLRuleItemNetworkACLRuleProtocolAll JSON' + ) if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in NetworkACLRuleItemNetworkACLRuleProtocolAll JSON') + raise ValueError( + 'Required property \'href\' not present in NetworkACLRuleItemNetworkACLRuleProtocolAll JSON' + ) if (id := _dict.get('id')) is not None: args['id'] = id else: @@ -126049,19 +127652,27 @@ def from_dict(cls, _dict: Dict) -> 'NetworkACLRuleItemNetworkACLRuleProtocolAll' if (ip_version := _dict.get('ip_version')) is not None: args['ip_version'] = ip_version else: - raise ValueError('Required property \'ip_version\' not present in NetworkACLRuleItemNetworkACLRuleProtocolAll JSON') + raise ValueError( + 'Required property \'ip_version\' not present in NetworkACLRuleItemNetworkACLRuleProtocolAll JSON' + ) if (name := _dict.get('name')) is not None: args['name'] = name else: - raise ValueError('Required property \'name\' not present in NetworkACLRuleItemNetworkACLRuleProtocolAll JSON') + raise ValueError( + 'Required property \'name\' not present in NetworkACLRuleItemNetworkACLRuleProtocolAll JSON' + ) if (source := _dict.get('source')) is not None: args['source'] = source else: - raise ValueError('Required property \'source\' not present in NetworkACLRuleItemNetworkACLRuleProtocolAll JSON') + raise ValueError( + 'Required property \'source\' not present in NetworkACLRuleItemNetworkACLRuleProtocolAll JSON' + ) if (protocol := _dict.get('protocol')) is not None: args['protocol'] = protocol else: - raise ValueError('Required property \'protocol\' not present in NetworkACLRuleItemNetworkACLRuleProtocolAll JSON') + raise ValueError( + 'Required property \'protocol\' not present in NetworkACLRuleItemNetworkACLRuleProtocolAll JSON' + ) return cls(**args) @classmethod @@ -126125,7 +127736,6 @@ class ActionEnum(str, Enum): ALLOW = 'allow' DENY = 'deny' - class DirectionEnum(str, Enum): """ The direction of traffic to match. @@ -126134,7 +127744,6 @@ class DirectionEnum(str, Enum): INBOUND = 'inbound' OUTBOUND = 'outbound' - class IpVersionEnum(str, Enum): """ The IP version for this rule. @@ -126142,7 +127751,6 @@ class IpVersionEnum(str, Enum): IPV4 = 'ipv4' - class ProtocolEnum(str, Enum): """ The network protocol. @@ -126151,7 +127759,6 @@ class ProtocolEnum(str, Enum): ALL = 'all' - class NetworkACLRuleItemNetworkACLRuleProtocolICMP(NetworkACLRuleItem): """ NetworkACLRuleItemNetworkACLRuleProtocolICMP. @@ -126241,47 +127848,67 @@ def from_dict(cls, _dict: Dict) -> 'NetworkACLRuleItemNetworkACLRuleProtocolICMP if (action := _dict.get('action')) is not None: args['action'] = action else: - raise ValueError('Required property \'action\' not present in NetworkACLRuleItemNetworkACLRuleProtocolICMP JSON') + raise ValueError( + 'Required property \'action\' not present in NetworkACLRuleItemNetworkACLRuleProtocolICMP JSON' + ) if (before := _dict.get('before')) is not None: args['before'] = NetworkACLRuleReference.from_dict(before) if (created_at := _dict.get('created_at')) is not None: args['created_at'] = string_to_datetime(created_at) else: - raise ValueError('Required property \'created_at\' not present in NetworkACLRuleItemNetworkACLRuleProtocolICMP JSON') + raise ValueError( + 'Required property \'created_at\' not present in NetworkACLRuleItemNetworkACLRuleProtocolICMP JSON' + ) if (destination := _dict.get('destination')) is not None: args['destination'] = destination else: - raise ValueError('Required property \'destination\' not present in NetworkACLRuleItemNetworkACLRuleProtocolICMP JSON') + raise ValueError( + 'Required property \'destination\' not present in NetworkACLRuleItemNetworkACLRuleProtocolICMP JSON' + ) if (direction := _dict.get('direction')) is not None: args['direction'] = direction else: - raise ValueError('Required property \'direction\' not present in NetworkACLRuleItemNetworkACLRuleProtocolICMP JSON') + raise ValueError( + 'Required property \'direction\' not present in NetworkACLRuleItemNetworkACLRuleProtocolICMP JSON' + ) if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in NetworkACLRuleItemNetworkACLRuleProtocolICMP JSON') + raise ValueError( + 'Required property \'href\' not present in NetworkACLRuleItemNetworkACLRuleProtocolICMP JSON' + ) if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in NetworkACLRuleItemNetworkACLRuleProtocolICMP JSON') + raise ValueError( + 'Required property \'id\' not present in NetworkACLRuleItemNetworkACLRuleProtocolICMP JSON' + ) if (ip_version := _dict.get('ip_version')) is not None: args['ip_version'] = ip_version else: - raise ValueError('Required property \'ip_version\' not present in NetworkACLRuleItemNetworkACLRuleProtocolICMP JSON') + raise ValueError( + 'Required property \'ip_version\' not present in NetworkACLRuleItemNetworkACLRuleProtocolICMP JSON' + ) if (name := _dict.get('name')) is not None: args['name'] = name else: - raise ValueError('Required property \'name\' not present in NetworkACLRuleItemNetworkACLRuleProtocolICMP JSON') + raise ValueError( + 'Required property \'name\' not present in NetworkACLRuleItemNetworkACLRuleProtocolICMP JSON' + ) if (source := _dict.get('source')) is not None: args['source'] = source else: - raise ValueError('Required property \'source\' not present in NetworkACLRuleItemNetworkACLRuleProtocolICMP JSON') + raise ValueError( + 'Required property \'source\' not present in NetworkACLRuleItemNetworkACLRuleProtocolICMP JSON' + ) if (code := _dict.get('code')) is not None: args['code'] = code if (protocol := _dict.get('protocol')) is not None: args['protocol'] = protocol else: - raise ValueError('Required property \'protocol\' not present in NetworkACLRuleItemNetworkACLRuleProtocolICMP JSON') + raise ValueError( + 'Required property \'protocol\' not present in NetworkACLRuleItemNetworkACLRuleProtocolICMP JSON' + ) if (type := _dict.get('type')) is not None: args['type'] = type return cls(**args) @@ -126351,7 +127978,6 @@ class ActionEnum(str, Enum): ALLOW = 'allow' DENY = 'deny' - class DirectionEnum(str, Enum): """ The direction of traffic to match. @@ -126360,7 +127986,6 @@ class DirectionEnum(str, Enum): INBOUND = 'inbound' OUTBOUND = 'outbound' - class IpVersionEnum(str, Enum): """ The IP version for this rule. @@ -126368,7 +127993,6 @@ class IpVersionEnum(str, Enum): IPV4 = 'ipv4' - class ProtocolEnum(str, Enum): """ The network protocol. @@ -126377,7 +128001,6 @@ class ProtocolEnum(str, Enum): ICMP = 'icmp' - class NetworkACLRuleItemNetworkACLRuleProtocolTCPUDP(NetworkACLRuleItem): """ NetworkACLRuleItemNetworkACLRuleProtocolTCPUDP. @@ -126479,61 +128102,89 @@ def from_dict(cls, _dict: Dict) -> 'NetworkACLRuleItemNetworkACLRuleProtocolTCPU if (action := _dict.get('action')) is not None: args['action'] = action else: - raise ValueError('Required property \'action\' not present in NetworkACLRuleItemNetworkACLRuleProtocolTCPUDP JSON') + raise ValueError( + 'Required property \'action\' not present in NetworkACLRuleItemNetworkACLRuleProtocolTCPUDP JSON' + ) if (before := _dict.get('before')) is not None: args['before'] = NetworkACLRuleReference.from_dict(before) if (created_at := _dict.get('created_at')) is not None: args['created_at'] = string_to_datetime(created_at) else: - raise ValueError('Required property \'created_at\' not present in NetworkACLRuleItemNetworkACLRuleProtocolTCPUDP JSON') + raise ValueError( + 'Required property \'created_at\' not present in NetworkACLRuleItemNetworkACLRuleProtocolTCPUDP JSON' + ) if (destination := _dict.get('destination')) is not None: args['destination'] = destination else: - raise ValueError('Required property \'destination\' not present in NetworkACLRuleItemNetworkACLRuleProtocolTCPUDP JSON') + raise ValueError( + 'Required property \'destination\' not present in NetworkACLRuleItemNetworkACLRuleProtocolTCPUDP JSON' + ) if (direction := _dict.get('direction')) is not None: args['direction'] = direction else: - raise ValueError('Required property \'direction\' not present in NetworkACLRuleItemNetworkACLRuleProtocolTCPUDP JSON') + raise ValueError( + 'Required property \'direction\' not present in NetworkACLRuleItemNetworkACLRuleProtocolTCPUDP JSON' + ) if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in NetworkACLRuleItemNetworkACLRuleProtocolTCPUDP JSON') + raise ValueError( + 'Required property \'href\' not present in NetworkACLRuleItemNetworkACLRuleProtocolTCPUDP JSON' + ) if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in NetworkACLRuleItemNetworkACLRuleProtocolTCPUDP JSON') + raise ValueError( + 'Required property \'id\' not present in NetworkACLRuleItemNetworkACLRuleProtocolTCPUDP JSON' + ) if (ip_version := _dict.get('ip_version')) is not None: args['ip_version'] = ip_version else: - raise ValueError('Required property \'ip_version\' not present in NetworkACLRuleItemNetworkACLRuleProtocolTCPUDP JSON') + raise ValueError( + 'Required property \'ip_version\' not present in NetworkACLRuleItemNetworkACLRuleProtocolTCPUDP JSON' + ) if (name := _dict.get('name')) is not None: args['name'] = name else: - raise ValueError('Required property \'name\' not present in NetworkACLRuleItemNetworkACLRuleProtocolTCPUDP JSON') + raise ValueError( + 'Required property \'name\' not present in NetworkACLRuleItemNetworkACLRuleProtocolTCPUDP JSON' + ) if (source := _dict.get('source')) is not None: args['source'] = source else: - raise ValueError('Required property \'source\' not present in NetworkACLRuleItemNetworkACLRuleProtocolTCPUDP JSON') + raise ValueError( + 'Required property \'source\' not present in NetworkACLRuleItemNetworkACLRuleProtocolTCPUDP JSON' + ) if (destination_port_max := _dict.get('destination_port_max')) is not None: args['destination_port_max'] = destination_port_max else: - raise ValueError('Required property \'destination_port_max\' not present in NetworkACLRuleItemNetworkACLRuleProtocolTCPUDP JSON') + raise ValueError( + 'Required property \'destination_port_max\' not present in NetworkACLRuleItemNetworkACLRuleProtocolTCPUDP JSON' + ) if (destination_port_min := _dict.get('destination_port_min')) is not None: args['destination_port_min'] = destination_port_min else: - raise ValueError('Required property \'destination_port_min\' not present in NetworkACLRuleItemNetworkACLRuleProtocolTCPUDP JSON') + raise ValueError( + 'Required property \'destination_port_min\' not present in NetworkACLRuleItemNetworkACLRuleProtocolTCPUDP JSON' + ) if (protocol := _dict.get('protocol')) is not None: args['protocol'] = protocol else: - raise ValueError('Required property \'protocol\' not present in NetworkACLRuleItemNetworkACLRuleProtocolTCPUDP JSON') + raise ValueError( + 'Required property \'protocol\' not present in NetworkACLRuleItemNetworkACLRuleProtocolTCPUDP JSON' + ) if (source_port_max := _dict.get('source_port_max')) is not None: args['source_port_max'] = source_port_max else: - raise ValueError('Required property \'source_port_max\' not present in NetworkACLRuleItemNetworkACLRuleProtocolTCPUDP JSON') + raise ValueError( + 'Required property \'source_port_max\' not present in NetworkACLRuleItemNetworkACLRuleProtocolTCPUDP JSON' + ) if (source_port_min := _dict.get('source_port_min')) is not None: args['source_port_min'] = source_port_min else: - raise ValueError('Required property \'source_port_min\' not present in NetworkACLRuleItemNetworkACLRuleProtocolTCPUDP JSON') + raise ValueError( + 'Required property \'source_port_min\' not present in NetworkACLRuleItemNetworkACLRuleProtocolTCPUDP JSON' + ) return cls(**args) @classmethod @@ -126605,7 +128256,6 @@ class ActionEnum(str, Enum): ALLOW = 'allow' DENY = 'deny' - class DirectionEnum(str, Enum): """ The direction of traffic to match. @@ -126614,7 +128264,6 @@ class DirectionEnum(str, Enum): INBOUND = 'inbound' OUTBOUND = 'outbound' - class IpVersionEnum(str, Enum): """ The IP version for this rule. @@ -126622,7 +128271,6 @@ class IpVersionEnum(str, Enum): IPV4 = 'ipv4' - class ProtocolEnum(str, Enum): """ The network protocol. @@ -126632,8 +128280,9 @@ class ProtocolEnum(str, Enum): UDP = 'udp' - -class NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolAllPrototype(NetworkACLRulePrototypeNetworkACLContext): +class NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolAllPrototype( + NetworkACLRulePrototypeNetworkACLContext +): """ NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolAllPrototype. @@ -126692,15 +128341,21 @@ def from_dict(cls, _dict: Dict) -> 'NetworkACLRulePrototypeNetworkACLContextNetw if (action := _dict.get('action')) is not None: args['action'] = action else: - raise ValueError('Required property \'action\' not present in NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolAllPrototype JSON') + raise ValueError( + 'Required property \'action\' not present in NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolAllPrototype JSON' + ) if (destination := _dict.get('destination')) is not None: args['destination'] = destination else: - raise ValueError('Required property \'destination\' not present in NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolAllPrototype JSON') + raise ValueError( + 'Required property \'destination\' not present in NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolAllPrototype JSON' + ) if (direction := _dict.get('direction')) is not None: args['direction'] = direction else: - raise ValueError('Required property \'direction\' not present in NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolAllPrototype JSON') + raise ValueError( + 'Required property \'direction\' not present in NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolAllPrototype JSON' + ) if (ip_version := _dict.get('ip_version')) is not None: args['ip_version'] = ip_version if (name := _dict.get('name')) is not None: @@ -126708,11 +128363,15 @@ def from_dict(cls, _dict: Dict) -> 'NetworkACLRulePrototypeNetworkACLContextNetw if (source := _dict.get('source')) is not None: args['source'] = source else: - raise ValueError('Required property \'source\' not present in NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolAllPrototype JSON') + raise ValueError( + 'Required property \'source\' not present in NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolAllPrototype JSON' + ) if (protocol := _dict.get('protocol')) is not None: args['protocol'] = protocol else: - raise ValueError('Required property \'protocol\' not present in NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolAllPrototype JSON') + raise ValueError( + 'Required property \'protocol\' not present in NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolAllPrototype JSON' + ) return cls(**args) @classmethod @@ -126765,7 +128424,6 @@ class ActionEnum(str, Enum): ALLOW = 'allow' DENY = 'deny' - class DirectionEnum(str, Enum): """ The direction of traffic to match. @@ -126774,7 +128432,6 @@ class DirectionEnum(str, Enum): INBOUND = 'inbound' OUTBOUND = 'outbound' - class IpVersionEnum(str, Enum): """ The IP version for this rule. @@ -126782,7 +128439,6 @@ class IpVersionEnum(str, Enum): IPV4 = 'ipv4' - class ProtocolEnum(str, Enum): """ The network protocol. @@ -126791,8 +128447,9 @@ class ProtocolEnum(str, Enum): ALL = 'all' - -class NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolICMPPrototype(NetworkACLRulePrototypeNetworkACLContext): +class NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolICMPPrototype( + NetworkACLRulePrototypeNetworkACLContext +): """ NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolICMPPrototype. @@ -126865,15 +128522,21 @@ def from_dict(cls, _dict: Dict) -> 'NetworkACLRulePrototypeNetworkACLContextNetw if (action := _dict.get('action')) is not None: args['action'] = action else: - raise ValueError('Required property \'action\' not present in NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolICMPPrototype JSON') + raise ValueError( + 'Required property \'action\' not present in NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolICMPPrototype JSON' + ) if (destination := _dict.get('destination')) is not None: args['destination'] = destination else: - raise ValueError('Required property \'destination\' not present in NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolICMPPrototype JSON') + raise ValueError( + 'Required property \'destination\' not present in NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolICMPPrototype JSON' + ) if (direction := _dict.get('direction')) is not None: args['direction'] = direction else: - raise ValueError('Required property \'direction\' not present in NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolICMPPrototype JSON') + raise ValueError( + 'Required property \'direction\' not present in NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolICMPPrototype JSON' + ) if (ip_version := _dict.get('ip_version')) is not None: args['ip_version'] = ip_version if (name := _dict.get('name')) is not None: @@ -126881,13 +128544,17 @@ def from_dict(cls, _dict: Dict) -> 'NetworkACLRulePrototypeNetworkACLContextNetw if (source := _dict.get('source')) is not None: args['source'] = source else: - raise ValueError('Required property \'source\' not present in NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolICMPPrototype JSON') + raise ValueError( + 'Required property \'source\' not present in NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolICMPPrototype JSON' + ) if (code := _dict.get('code')) is not None: args['code'] = code if (protocol := _dict.get('protocol')) is not None: args['protocol'] = protocol else: - raise ValueError('Required property \'protocol\' not present in NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolICMPPrototype JSON') + raise ValueError( + 'Required property \'protocol\' not present in NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolICMPPrototype JSON' + ) if (type := _dict.get('type')) is not None: args['type'] = type return cls(**args) @@ -126946,7 +128613,6 @@ class ActionEnum(str, Enum): ALLOW = 'allow' DENY = 'deny' - class DirectionEnum(str, Enum): """ The direction of traffic to match. @@ -126955,7 +128621,6 @@ class DirectionEnum(str, Enum): INBOUND = 'inbound' OUTBOUND = 'outbound' - class IpVersionEnum(str, Enum): """ The IP version for this rule. @@ -126963,7 +128628,6 @@ class IpVersionEnum(str, Enum): IPV4 = 'ipv4' - class ProtocolEnum(str, Enum): """ The network protocol. @@ -126972,8 +128636,9 @@ class ProtocolEnum(str, Enum): ICMP = 'icmp' - -class NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolTCPUDPPrototype(NetworkACLRulePrototypeNetworkACLContext): +class NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolTCPUDPPrototype( + NetworkACLRulePrototypeNetworkACLContext +): """ NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolTCPUDPPrototype. @@ -127056,15 +128721,21 @@ def from_dict(cls, _dict: Dict) -> 'NetworkACLRulePrototypeNetworkACLContextNetw if (action := _dict.get('action')) is not None: args['action'] = action else: - raise ValueError('Required property \'action\' not present in NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolTCPUDPPrototype JSON') + raise ValueError( + 'Required property \'action\' not present in NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolTCPUDPPrototype JSON' + ) if (destination := _dict.get('destination')) is not None: args['destination'] = destination else: - raise ValueError('Required property \'destination\' not present in NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolTCPUDPPrototype JSON') + raise ValueError( + 'Required property \'destination\' not present in NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolTCPUDPPrototype JSON' + ) if (direction := _dict.get('direction')) is not None: args['direction'] = direction else: - raise ValueError('Required property \'direction\' not present in NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolTCPUDPPrototype JSON') + raise ValueError( + 'Required property \'direction\' not present in NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolTCPUDPPrototype JSON' + ) if (ip_version := _dict.get('ip_version')) is not None: args['ip_version'] = ip_version if (name := _dict.get('name')) is not None: @@ -127072,7 +128743,9 @@ def from_dict(cls, _dict: Dict) -> 'NetworkACLRulePrototypeNetworkACLContextNetw if (source := _dict.get('source')) is not None: args['source'] = source else: - raise ValueError('Required property \'source\' not present in NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolTCPUDPPrototype JSON') + raise ValueError( + 'Required property \'source\' not present in NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolTCPUDPPrototype JSON' + ) if (destination_port_max := _dict.get('destination_port_max')) is not None: args['destination_port_max'] = destination_port_max if (destination_port_min := _dict.get('destination_port_min')) is not None: @@ -127080,7 +128753,9 @@ def from_dict(cls, _dict: Dict) -> 'NetworkACLRulePrototypeNetworkACLContextNetw if (protocol := _dict.get('protocol')) is not None: args['protocol'] = protocol else: - raise ValueError('Required property \'protocol\' not present in NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolTCPUDPPrototype JSON') + raise ValueError( + 'Required property \'protocol\' not present in NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolTCPUDPPrototype JSON' + ) if (source_port_max := _dict.get('source_port_max')) is not None: args['source_port_max'] = source_port_max if (source_port_min := _dict.get('source_port_min')) is not None: @@ -127145,7 +128820,6 @@ class ActionEnum(str, Enum): ALLOW = 'allow' DENY = 'deny' - class DirectionEnum(str, Enum): """ The direction of traffic to match. @@ -127154,7 +128828,6 @@ class DirectionEnum(str, Enum): INBOUND = 'inbound' OUTBOUND = 'outbound' - class IpVersionEnum(str, Enum): """ The IP version for this rule. @@ -127162,7 +128835,6 @@ class IpVersionEnum(str, Enum): IPV4 = 'ipv4' - class ProtocolEnum(str, Enum): """ The network protocol. @@ -127172,7 +128844,6 @@ class ProtocolEnum(str, Enum): UDP = 'udp' - class NetworkACLRulePrototypeNetworkACLRuleProtocolAllPrototype(NetworkACLRulePrototype): """ NetworkACLRulePrototypeNetworkACLRuleProtocolAllPrototype. @@ -127236,17 +128907,23 @@ def from_dict(cls, _dict: Dict) -> 'NetworkACLRulePrototypeNetworkACLRuleProtoco if (action := _dict.get('action')) is not None: args['action'] = action else: - raise ValueError('Required property \'action\' not present in NetworkACLRulePrototypeNetworkACLRuleProtocolAllPrototype JSON') + raise ValueError( + 'Required property \'action\' not present in NetworkACLRulePrototypeNetworkACLRuleProtocolAllPrototype JSON' + ) if (before := _dict.get('before')) is not None: args['before'] = before if (destination := _dict.get('destination')) is not None: args['destination'] = destination else: - raise ValueError('Required property \'destination\' not present in NetworkACLRulePrototypeNetworkACLRuleProtocolAllPrototype JSON') + raise ValueError( + 'Required property \'destination\' not present in NetworkACLRulePrototypeNetworkACLRuleProtocolAllPrototype JSON' + ) if (direction := _dict.get('direction')) is not None: args['direction'] = direction else: - raise ValueError('Required property \'direction\' not present in NetworkACLRulePrototypeNetworkACLRuleProtocolAllPrototype JSON') + raise ValueError( + 'Required property \'direction\' not present in NetworkACLRulePrototypeNetworkACLRuleProtocolAllPrototype JSON' + ) if (ip_version := _dict.get('ip_version')) is not None: args['ip_version'] = ip_version if (name := _dict.get('name')) is not None: @@ -127254,11 +128931,15 @@ def from_dict(cls, _dict: Dict) -> 'NetworkACLRulePrototypeNetworkACLRuleProtoco if (source := _dict.get('source')) is not None: args['source'] = source else: - raise ValueError('Required property \'source\' not present in NetworkACLRulePrototypeNetworkACLRuleProtocolAllPrototype JSON') + raise ValueError( + 'Required property \'source\' not present in NetworkACLRulePrototypeNetworkACLRuleProtocolAllPrototype JSON' + ) if (protocol := _dict.get('protocol')) is not None: args['protocol'] = protocol else: - raise ValueError('Required property \'protocol\' not present in NetworkACLRulePrototypeNetworkACLRuleProtocolAllPrototype JSON') + raise ValueError( + 'Required property \'protocol\' not present in NetworkACLRulePrototypeNetworkACLRuleProtocolAllPrototype JSON' + ) return cls(**args) @classmethod @@ -127316,7 +128997,6 @@ class ActionEnum(str, Enum): ALLOW = 'allow' DENY = 'deny' - class DirectionEnum(str, Enum): """ The direction of traffic to match. @@ -127325,7 +129005,6 @@ class DirectionEnum(str, Enum): INBOUND = 'inbound' OUTBOUND = 'outbound' - class IpVersionEnum(str, Enum): """ The IP version for this rule. @@ -127333,7 +129012,6 @@ class IpVersionEnum(str, Enum): IPV4 = 'ipv4' - class ProtocolEnum(str, Enum): """ The network protocol. @@ -127342,7 +129020,6 @@ class ProtocolEnum(str, Enum): ALL = 'all' - class NetworkACLRulePrototypeNetworkACLRuleProtocolICMPPrototype(NetworkACLRulePrototype): """ NetworkACLRulePrototypeNetworkACLRuleProtocolICMPPrototype. @@ -127420,17 +129097,23 @@ def from_dict(cls, _dict: Dict) -> 'NetworkACLRulePrototypeNetworkACLRuleProtoco if (action := _dict.get('action')) is not None: args['action'] = action else: - raise ValueError('Required property \'action\' not present in NetworkACLRulePrototypeNetworkACLRuleProtocolICMPPrototype JSON') + raise ValueError( + 'Required property \'action\' not present in NetworkACLRulePrototypeNetworkACLRuleProtocolICMPPrototype JSON' + ) if (before := _dict.get('before')) is not None: args['before'] = before if (destination := _dict.get('destination')) is not None: args['destination'] = destination else: - raise ValueError('Required property \'destination\' not present in NetworkACLRulePrototypeNetworkACLRuleProtocolICMPPrototype JSON') + raise ValueError( + 'Required property \'destination\' not present in NetworkACLRulePrototypeNetworkACLRuleProtocolICMPPrototype JSON' + ) if (direction := _dict.get('direction')) is not None: args['direction'] = direction else: - raise ValueError('Required property \'direction\' not present in NetworkACLRulePrototypeNetworkACLRuleProtocolICMPPrototype JSON') + raise ValueError( + 'Required property \'direction\' not present in NetworkACLRulePrototypeNetworkACLRuleProtocolICMPPrototype JSON' + ) if (ip_version := _dict.get('ip_version')) is not None: args['ip_version'] = ip_version if (name := _dict.get('name')) is not None: @@ -127438,13 +129121,17 @@ def from_dict(cls, _dict: Dict) -> 'NetworkACLRulePrototypeNetworkACLRuleProtoco if (source := _dict.get('source')) is not None: args['source'] = source else: - raise ValueError('Required property \'source\' not present in NetworkACLRulePrototypeNetworkACLRuleProtocolICMPPrototype JSON') + raise ValueError( + 'Required property \'source\' not present in NetworkACLRulePrototypeNetworkACLRuleProtocolICMPPrototype JSON' + ) if (code := _dict.get('code')) is not None: args['code'] = code if (protocol := _dict.get('protocol')) is not None: args['protocol'] = protocol else: - raise ValueError('Required property \'protocol\' not present in NetworkACLRulePrototypeNetworkACLRuleProtocolICMPPrototype JSON') + raise ValueError( + 'Required property \'protocol\' not present in NetworkACLRulePrototypeNetworkACLRuleProtocolICMPPrototype JSON' + ) if (type := _dict.get('type')) is not None: args['type'] = type return cls(**args) @@ -127508,7 +129195,6 @@ class ActionEnum(str, Enum): ALLOW = 'allow' DENY = 'deny' - class DirectionEnum(str, Enum): """ The direction of traffic to match. @@ -127517,7 +129203,6 @@ class DirectionEnum(str, Enum): INBOUND = 'inbound' OUTBOUND = 'outbound' - class IpVersionEnum(str, Enum): """ The IP version for this rule. @@ -127525,7 +129210,6 @@ class IpVersionEnum(str, Enum): IPV4 = 'ipv4' - class ProtocolEnum(str, Enum): """ The network protocol. @@ -127534,7 +129218,6 @@ class ProtocolEnum(str, Enum): ICMP = 'icmp' - class NetworkACLRulePrototypeNetworkACLRuleProtocolTCPUDPPrototype(NetworkACLRulePrototype): """ NetworkACLRulePrototypeNetworkACLRuleProtocolTCPUDPPrototype. @@ -127622,17 +129305,23 @@ def from_dict(cls, _dict: Dict) -> 'NetworkACLRulePrototypeNetworkACLRuleProtoco if (action := _dict.get('action')) is not None: args['action'] = action else: - raise ValueError('Required property \'action\' not present in NetworkACLRulePrototypeNetworkACLRuleProtocolTCPUDPPrototype JSON') + raise ValueError( + 'Required property \'action\' not present in NetworkACLRulePrototypeNetworkACLRuleProtocolTCPUDPPrototype JSON' + ) if (before := _dict.get('before')) is not None: args['before'] = before if (destination := _dict.get('destination')) is not None: args['destination'] = destination else: - raise ValueError('Required property \'destination\' not present in NetworkACLRulePrototypeNetworkACLRuleProtocolTCPUDPPrototype JSON') + raise ValueError( + 'Required property \'destination\' not present in NetworkACLRulePrototypeNetworkACLRuleProtocolTCPUDPPrototype JSON' + ) if (direction := _dict.get('direction')) is not None: args['direction'] = direction else: - raise ValueError('Required property \'direction\' not present in NetworkACLRulePrototypeNetworkACLRuleProtocolTCPUDPPrototype JSON') + raise ValueError( + 'Required property \'direction\' not present in NetworkACLRulePrototypeNetworkACLRuleProtocolTCPUDPPrototype JSON' + ) if (ip_version := _dict.get('ip_version')) is not None: args['ip_version'] = ip_version if (name := _dict.get('name')) is not None: @@ -127640,7 +129329,9 @@ def from_dict(cls, _dict: Dict) -> 'NetworkACLRulePrototypeNetworkACLRuleProtoco if (source := _dict.get('source')) is not None: args['source'] = source else: - raise ValueError('Required property \'source\' not present in NetworkACLRulePrototypeNetworkACLRuleProtocolTCPUDPPrototype JSON') + raise ValueError( + 'Required property \'source\' not present in NetworkACLRulePrototypeNetworkACLRuleProtocolTCPUDPPrototype JSON' + ) if (destination_port_max := _dict.get('destination_port_max')) is not None: args['destination_port_max'] = destination_port_max if (destination_port_min := _dict.get('destination_port_min')) is not None: @@ -127648,7 +129339,9 @@ def from_dict(cls, _dict: Dict) -> 'NetworkACLRulePrototypeNetworkACLRuleProtoco if (protocol := _dict.get('protocol')) is not None: args['protocol'] = protocol else: - raise ValueError('Required property \'protocol\' not present in NetworkACLRulePrototypeNetworkACLRuleProtocolTCPUDPPrototype JSON') + raise ValueError( + 'Required property \'protocol\' not present in NetworkACLRulePrototypeNetworkACLRuleProtocolTCPUDPPrototype JSON' + ) if (source_port_max := _dict.get('source_port_max')) is not None: args['source_port_max'] = source_port_max if (source_port_min := _dict.get('source_port_min')) is not None: @@ -127718,7 +129411,6 @@ class ActionEnum(str, Enum): ALLOW = 'allow' DENY = 'deny' - class DirectionEnum(str, Enum): """ The direction of traffic to match. @@ -127727,7 +129419,6 @@ class DirectionEnum(str, Enum): INBOUND = 'inbound' OUTBOUND = 'outbound' - class IpVersionEnum(str, Enum): """ The IP version for this rule. @@ -127735,7 +129426,6 @@ class IpVersionEnum(str, Enum): IPV4 = 'ipv4' - class ProtocolEnum(str, Enum): """ The network protocol. @@ -127745,7 +129435,6 @@ class ProtocolEnum(str, Enum): UDP = 'udp' - class NetworkACLRuleNetworkACLRuleProtocolAll(NetworkACLRule): """ NetworkACLRuleNetworkACLRuleProtocolAll. @@ -127827,15 +129516,21 @@ def from_dict(cls, _dict: Dict) -> 'NetworkACLRuleNetworkACLRuleProtocolAll': if (created_at := _dict.get('created_at')) is not None: args['created_at'] = string_to_datetime(created_at) else: - raise ValueError('Required property \'created_at\' not present in NetworkACLRuleNetworkACLRuleProtocolAll JSON') + raise ValueError( + 'Required property \'created_at\' not present in NetworkACLRuleNetworkACLRuleProtocolAll JSON' + ) if (destination := _dict.get('destination')) is not None: args['destination'] = destination else: - raise ValueError('Required property \'destination\' not present in NetworkACLRuleNetworkACLRuleProtocolAll JSON') + raise ValueError( + 'Required property \'destination\' not present in NetworkACLRuleNetworkACLRuleProtocolAll JSON' + ) if (direction := _dict.get('direction')) is not None: args['direction'] = direction else: - raise ValueError('Required property \'direction\' not present in NetworkACLRuleNetworkACLRuleProtocolAll JSON') + raise ValueError( + 'Required property \'direction\' not present in NetworkACLRuleNetworkACLRuleProtocolAll JSON' + ) if (href := _dict.get('href')) is not None: args['href'] = href else: @@ -127847,7 +129542,9 @@ def from_dict(cls, _dict: Dict) -> 'NetworkACLRuleNetworkACLRuleProtocolAll': if (ip_version := _dict.get('ip_version')) is not None: args['ip_version'] = ip_version else: - raise ValueError('Required property \'ip_version\' not present in NetworkACLRuleNetworkACLRuleProtocolAll JSON') + raise ValueError( + 'Required property \'ip_version\' not present in NetworkACLRuleNetworkACLRuleProtocolAll JSON' + ) if (name := _dict.get('name')) is not None: args['name'] = name else: @@ -127859,7 +129556,9 @@ def from_dict(cls, _dict: Dict) -> 'NetworkACLRuleNetworkACLRuleProtocolAll': if (protocol := _dict.get('protocol')) is not None: args['protocol'] = protocol else: - raise ValueError('Required property \'protocol\' not present in NetworkACLRuleNetworkACLRuleProtocolAll JSON') + raise ValueError( + 'Required property \'protocol\' not present in NetworkACLRuleNetworkACLRuleProtocolAll JSON' + ) return cls(**args) @classmethod @@ -127923,7 +129622,6 @@ class ActionEnum(str, Enum): ALLOW = 'allow' DENY = 'deny' - class DirectionEnum(str, Enum): """ The direction of traffic to match. @@ -127932,7 +129630,6 @@ class DirectionEnum(str, Enum): INBOUND = 'inbound' OUTBOUND = 'outbound' - class IpVersionEnum(str, Enum): """ The IP version for this rule. @@ -127940,7 +129637,6 @@ class IpVersionEnum(str, Enum): IPV4 = 'ipv4' - class ProtocolEnum(str, Enum): """ The network protocol. @@ -127949,7 +129645,6 @@ class ProtocolEnum(str, Enum): ALL = 'all' - class NetworkACLRuleNetworkACLRuleProtocolICMP(NetworkACLRule): """ NetworkACLRuleNetworkACLRuleProtocolICMP. @@ -128037,21 +129732,29 @@ def from_dict(cls, _dict: Dict) -> 'NetworkACLRuleNetworkACLRuleProtocolICMP': if (action := _dict.get('action')) is not None: args['action'] = action else: - raise ValueError('Required property \'action\' not present in NetworkACLRuleNetworkACLRuleProtocolICMP JSON') + raise ValueError( + 'Required property \'action\' not present in NetworkACLRuleNetworkACLRuleProtocolICMP JSON' + ) if (before := _dict.get('before')) is not None: args['before'] = NetworkACLRuleReference.from_dict(before) if (created_at := _dict.get('created_at')) is not None: args['created_at'] = string_to_datetime(created_at) else: - raise ValueError('Required property \'created_at\' not present in NetworkACLRuleNetworkACLRuleProtocolICMP JSON') + raise ValueError( + 'Required property \'created_at\' not present in NetworkACLRuleNetworkACLRuleProtocolICMP JSON' + ) if (destination := _dict.get('destination')) is not None: args['destination'] = destination else: - raise ValueError('Required property \'destination\' not present in NetworkACLRuleNetworkACLRuleProtocolICMP JSON') + raise ValueError( + 'Required property \'destination\' not present in NetworkACLRuleNetworkACLRuleProtocolICMP JSON' + ) if (direction := _dict.get('direction')) is not None: args['direction'] = direction else: - raise ValueError('Required property \'direction\' not present in NetworkACLRuleNetworkACLRuleProtocolICMP JSON') + raise ValueError( + 'Required property \'direction\' not present in NetworkACLRuleNetworkACLRuleProtocolICMP JSON' + ) if (href := _dict.get('href')) is not None: args['href'] = href else: @@ -128063,7 +129766,9 @@ def from_dict(cls, _dict: Dict) -> 'NetworkACLRuleNetworkACLRuleProtocolICMP': if (ip_version := _dict.get('ip_version')) is not None: args['ip_version'] = ip_version else: - raise ValueError('Required property \'ip_version\' not present in NetworkACLRuleNetworkACLRuleProtocolICMP JSON') + raise ValueError( + 'Required property \'ip_version\' not present in NetworkACLRuleNetworkACLRuleProtocolICMP JSON' + ) if (name := _dict.get('name')) is not None: args['name'] = name else: @@ -128071,13 +129776,17 @@ def from_dict(cls, _dict: Dict) -> 'NetworkACLRuleNetworkACLRuleProtocolICMP': if (source := _dict.get('source')) is not None: args['source'] = source else: - raise ValueError('Required property \'source\' not present in NetworkACLRuleNetworkACLRuleProtocolICMP JSON') + raise ValueError( + 'Required property \'source\' not present in NetworkACLRuleNetworkACLRuleProtocolICMP JSON' + ) if (code := _dict.get('code')) is not None: args['code'] = code if (protocol := _dict.get('protocol')) is not None: args['protocol'] = protocol else: - raise ValueError('Required property \'protocol\' not present in NetworkACLRuleNetworkACLRuleProtocolICMP JSON') + raise ValueError( + 'Required property \'protocol\' not present in NetworkACLRuleNetworkACLRuleProtocolICMP JSON' + ) if (type := _dict.get('type')) is not None: args['type'] = type return cls(**args) @@ -128147,7 +129856,6 @@ class ActionEnum(str, Enum): ALLOW = 'allow' DENY = 'deny' - class DirectionEnum(str, Enum): """ The direction of traffic to match. @@ -128156,7 +129864,6 @@ class DirectionEnum(str, Enum): INBOUND = 'inbound' OUTBOUND = 'outbound' - class IpVersionEnum(str, Enum): """ The IP version for this rule. @@ -128164,7 +129871,6 @@ class IpVersionEnum(str, Enum): IPV4 = 'ipv4' - class ProtocolEnum(str, Enum): """ The network protocol. @@ -128173,7 +129879,6 @@ class ProtocolEnum(str, Enum): ICMP = 'icmp' - class NetworkACLRuleNetworkACLRuleProtocolTCPUDP(NetworkACLRule): """ NetworkACLRuleNetworkACLRuleProtocolTCPUDP. @@ -128273,25 +129978,35 @@ def from_dict(cls, _dict: Dict) -> 'NetworkACLRuleNetworkACLRuleProtocolTCPUDP': if (action := _dict.get('action')) is not None: args['action'] = action else: - raise ValueError('Required property \'action\' not present in NetworkACLRuleNetworkACLRuleProtocolTCPUDP JSON') + raise ValueError( + 'Required property \'action\' not present in NetworkACLRuleNetworkACLRuleProtocolTCPUDP JSON' + ) if (before := _dict.get('before')) is not None: args['before'] = NetworkACLRuleReference.from_dict(before) if (created_at := _dict.get('created_at')) is not None: args['created_at'] = string_to_datetime(created_at) else: - raise ValueError('Required property \'created_at\' not present in NetworkACLRuleNetworkACLRuleProtocolTCPUDP JSON') + raise ValueError( + 'Required property \'created_at\' not present in NetworkACLRuleNetworkACLRuleProtocolTCPUDP JSON' + ) if (destination := _dict.get('destination')) is not None: args['destination'] = destination else: - raise ValueError('Required property \'destination\' not present in NetworkACLRuleNetworkACLRuleProtocolTCPUDP JSON') + raise ValueError( + 'Required property \'destination\' not present in NetworkACLRuleNetworkACLRuleProtocolTCPUDP JSON' + ) if (direction := _dict.get('direction')) is not None: args['direction'] = direction else: - raise ValueError('Required property \'direction\' not present in NetworkACLRuleNetworkACLRuleProtocolTCPUDP JSON') + raise ValueError( + 'Required property \'direction\' not present in NetworkACLRuleNetworkACLRuleProtocolTCPUDP JSON' + ) if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in NetworkACLRuleNetworkACLRuleProtocolTCPUDP JSON') + raise ValueError( + 'Required property \'href\' not present in NetworkACLRuleNetworkACLRuleProtocolTCPUDP JSON' + ) if (id := _dict.get('id')) is not None: args['id'] = id else: @@ -128299,35 +130014,51 @@ def from_dict(cls, _dict: Dict) -> 'NetworkACLRuleNetworkACLRuleProtocolTCPUDP': if (ip_version := _dict.get('ip_version')) is not None: args['ip_version'] = ip_version else: - raise ValueError('Required property \'ip_version\' not present in NetworkACLRuleNetworkACLRuleProtocolTCPUDP JSON') + raise ValueError( + 'Required property \'ip_version\' not present in NetworkACLRuleNetworkACLRuleProtocolTCPUDP JSON' + ) if (name := _dict.get('name')) is not None: args['name'] = name else: - raise ValueError('Required property \'name\' not present in NetworkACLRuleNetworkACLRuleProtocolTCPUDP JSON') + raise ValueError( + 'Required property \'name\' not present in NetworkACLRuleNetworkACLRuleProtocolTCPUDP JSON' + ) if (source := _dict.get('source')) is not None: args['source'] = source else: - raise ValueError('Required property \'source\' not present in NetworkACLRuleNetworkACLRuleProtocolTCPUDP JSON') + raise ValueError( + 'Required property \'source\' not present in NetworkACLRuleNetworkACLRuleProtocolTCPUDP JSON' + ) if (destination_port_max := _dict.get('destination_port_max')) is not None: args['destination_port_max'] = destination_port_max else: - raise ValueError('Required property \'destination_port_max\' not present in NetworkACLRuleNetworkACLRuleProtocolTCPUDP JSON') + raise ValueError( + 'Required property \'destination_port_max\' not present in NetworkACLRuleNetworkACLRuleProtocolTCPUDP JSON' + ) if (destination_port_min := _dict.get('destination_port_min')) is not None: args['destination_port_min'] = destination_port_min else: - raise ValueError('Required property \'destination_port_min\' not present in NetworkACLRuleNetworkACLRuleProtocolTCPUDP JSON') + raise ValueError( + 'Required property \'destination_port_min\' not present in NetworkACLRuleNetworkACLRuleProtocolTCPUDP JSON' + ) if (protocol := _dict.get('protocol')) is not None: args['protocol'] = protocol else: - raise ValueError('Required property \'protocol\' not present in NetworkACLRuleNetworkACLRuleProtocolTCPUDP JSON') + raise ValueError( + 'Required property \'protocol\' not present in NetworkACLRuleNetworkACLRuleProtocolTCPUDP JSON' + ) if (source_port_max := _dict.get('source_port_max')) is not None: args['source_port_max'] = source_port_max else: - raise ValueError('Required property \'source_port_max\' not present in NetworkACLRuleNetworkACLRuleProtocolTCPUDP JSON') + raise ValueError( + 'Required property \'source_port_max\' not present in NetworkACLRuleNetworkACLRuleProtocolTCPUDP JSON' + ) if (source_port_min := _dict.get('source_port_min')) is not None: args['source_port_min'] = source_port_min else: - raise ValueError('Required property \'source_port_min\' not present in NetworkACLRuleNetworkACLRuleProtocolTCPUDP JSON') + raise ValueError( + 'Required property \'source_port_min\' not present in NetworkACLRuleNetworkACLRuleProtocolTCPUDP JSON' + ) return cls(**args) @classmethod @@ -128399,7 +130130,6 @@ class ActionEnum(str, Enum): ALLOW = 'allow' DENY = 'deny' - class DirectionEnum(str, Enum): """ The direction of traffic to match. @@ -128408,7 +130138,6 @@ class DirectionEnum(str, Enum): INBOUND = 'inbound' OUTBOUND = 'outbound' - class IpVersionEnum(str, Enum): """ The IP version for this rule. @@ -128416,7 +130145,6 @@ class IpVersionEnum(str, Enum): IPV4 = 'ipv4' - class ProtocolEnum(str, Enum): """ The network protocol. @@ -128426,7 +130154,6 @@ class ProtocolEnum(str, Enum): UDP = 'udp' - class NetworkInterfaceIPPrototypeReservedIPIdentity(NetworkInterfaceIPPrototype): """ Identifies a reserved IP by a unique property. @@ -128442,7 +130169,12 @@ def __init__( """ # pylint: disable=super-init-not-called msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['NetworkInterfaceIPPrototypeReservedIPIdentityById', 'NetworkInterfaceIPPrototypeReservedIPIdentityByHref']) + ", ".join( + [ + 'NetworkInterfaceIPPrototypeReservedIPIdentityById', + 'NetworkInterfaceIPPrototypeReservedIPIdentityByHref', + ] + ) ) raise Exception(msg) @@ -128673,7 +130405,14 @@ def __init__( """ # pylint: disable=super-init-not-called msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['PublicGatewayFloatingIPPrototypeFloatingIPIdentityFloatingIPIdentityById', 'PublicGatewayFloatingIPPrototypeFloatingIPIdentityFloatingIPIdentityByCRN', 'PublicGatewayFloatingIPPrototypeFloatingIPIdentityFloatingIPIdentityByHref', 'PublicGatewayFloatingIPPrototypeFloatingIPIdentityFloatingIPIdentityByAddress']) + ", ".join( + [ + 'PublicGatewayFloatingIPPrototypeFloatingIPIdentityFloatingIPIdentityById', + 'PublicGatewayFloatingIPPrototypeFloatingIPIdentityFloatingIPIdentityByCRN', + 'PublicGatewayFloatingIPPrototypeFloatingIPIdentityFloatingIPIdentityByHref', + 'PublicGatewayFloatingIPPrototypeFloatingIPIdentityFloatingIPIdentityByAddress', + ] + ) ) raise Exception(msg) @@ -128784,7 +130523,9 @@ def from_dict(cls, _dict: Dict) -> 'PublicGatewayIdentityPublicGatewayIdentityBy if (crn := _dict.get('crn')) is not None: args['crn'] = crn else: - raise ValueError('Required property \'crn\' not present in PublicGatewayIdentityPublicGatewayIdentityByCRN JSON') + raise ValueError( + 'Required property \'crn\' not present in PublicGatewayIdentityPublicGatewayIdentityByCRN JSON' + ) return cls(**args) @classmethod @@ -128844,7 +130585,9 @@ def from_dict(cls, _dict: Dict) -> 'PublicGatewayIdentityPublicGatewayIdentityBy if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in PublicGatewayIdentityPublicGatewayIdentityByHref JSON') + raise ValueError( + 'Required property \'href\' not present in PublicGatewayIdentityPublicGatewayIdentityByHref JSON' + ) return cls(**args) @classmethod @@ -128904,7 +130647,9 @@ def from_dict(cls, _dict: Dict) -> 'PublicGatewayIdentityPublicGatewayIdentityBy if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in PublicGatewayIdentityPublicGatewayIdentityById JSON') + raise ValueError( + 'Required property \'id\' not present in PublicGatewayIdentityPublicGatewayIdentityById JSON' + ) return cls(**args) @classmethod @@ -129253,7 +130998,13 @@ def __init__( """ # pylint: disable=super-init-not-called msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['ReservedIPTargetPrototypeEndpointGatewayIdentityEndpointGatewayIdentityById', 'ReservedIPTargetPrototypeEndpointGatewayIdentityEndpointGatewayIdentityByCRN', 'ReservedIPTargetPrototypeEndpointGatewayIdentityEndpointGatewayIdentityByHref']) + ", ".join( + [ + 'ReservedIPTargetPrototypeEndpointGatewayIdentityEndpointGatewayIdentityById', + 'ReservedIPTargetPrototypeEndpointGatewayIdentityEndpointGatewayIdentityByCRN', + 'ReservedIPTargetPrototypeEndpointGatewayIdentityEndpointGatewayIdentityByHref', + ] + ) ) raise Exception(msg) @@ -129273,7 +131024,13 @@ def __init__( """ # pylint: disable=super-init-not-called msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById', 'ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref', 'ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN']) + ", ".join( + [ + 'ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById', + 'ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref', + 'ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN', + ] + ) ) raise Exception(msg) @@ -129350,19 +131107,27 @@ def from_dict(cls, _dict: Dict) -> 'ReservedIPTargetBareMetalServerNetworkInterf if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in ReservedIPTargetBareMetalServerNetworkInterfaceReferenceTargetContext JSON') + raise ValueError( + 'Required property \'href\' not present in ReservedIPTargetBareMetalServerNetworkInterfaceReferenceTargetContext JSON' + ) if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in ReservedIPTargetBareMetalServerNetworkInterfaceReferenceTargetContext JSON') + raise ValueError( + 'Required property \'id\' not present in ReservedIPTargetBareMetalServerNetworkInterfaceReferenceTargetContext JSON' + ) if (name := _dict.get('name')) is not None: args['name'] = name else: - raise ValueError('Required property \'name\' not present in ReservedIPTargetBareMetalServerNetworkInterfaceReferenceTargetContext JSON') + raise ValueError( + 'Required property \'name\' not present in ReservedIPTargetBareMetalServerNetworkInterfaceReferenceTargetContext JSON' + ) if (resource_type := _dict.get('resource_type')) is not None: args['resource_type'] = resource_type else: - raise ValueError('Required property \'resource_type\' not present in ReservedIPTargetBareMetalServerNetworkInterfaceReferenceTargetContext JSON') + raise ValueError( + 'Required property \'resource_type\' not present in ReservedIPTargetBareMetalServerNetworkInterfaceReferenceTargetContext JSON' + ) return cls(**args) @classmethod @@ -129414,7 +131179,6 @@ class ResourceTypeEnum(str, Enum): NETWORK_INTERFACE = 'network_interface' - class ReservedIPTargetEndpointGatewayReference(ReservedIPTarget): """ ReservedIPTargetEndpointGatewayReference. @@ -129486,7 +131250,9 @@ def from_dict(cls, _dict: Dict) -> 'ReservedIPTargetEndpointGatewayReference': if (resource_type := _dict.get('resource_type')) is not None: args['resource_type'] = resource_type else: - raise ValueError('Required property \'resource_type\' not present in ReservedIPTargetEndpointGatewayReference JSON') + raise ValueError( + 'Required property \'resource_type\' not present in ReservedIPTargetEndpointGatewayReference JSON' + ) return cls(**args) @classmethod @@ -129540,7 +131306,6 @@ class ResourceTypeEnum(str, Enum): ENDPOINT_GATEWAY = 'endpoint_gateway' - class ReservedIPTargetGenericResourceReference(ReservedIPTarget): """ Identifying information for a resource that is not native to the VPC API. @@ -129586,7 +131351,9 @@ def from_dict(cls, _dict: Dict) -> 'ReservedIPTargetGenericResourceReference': if (resource_type := _dict.get('resource_type')) is not None: args['resource_type'] = resource_type else: - raise ValueError('Required property \'resource_type\' not present in ReservedIPTargetGenericResourceReference JSON') + raise ValueError( + 'Required property \'resource_type\' not present in ReservedIPTargetGenericResourceReference JSON' + ) return cls(**args) @classmethod @@ -129634,7 +131401,6 @@ class ResourceTypeEnum(str, Enum): CLOUD_RESOURCE = 'cloud_resource' - class ReservedIPTargetLoadBalancerReference(ReservedIPTarget): """ ReservedIPTargetLoadBalancerReference. @@ -129706,7 +131472,9 @@ def from_dict(cls, _dict: Dict) -> 'ReservedIPTargetLoadBalancerReference': if (resource_type := _dict.get('resource_type')) is not None: args['resource_type'] = resource_type else: - raise ValueError('Required property \'resource_type\' not present in ReservedIPTargetLoadBalancerReference JSON') + raise ValueError( + 'Required property \'resource_type\' not present in ReservedIPTargetLoadBalancerReference JSON' + ) return cls(**args) @classmethod @@ -129760,7 +131528,6 @@ class ResourceTypeEnum(str, Enum): LOAD_BALANCER = 'load_balancer' - class ReservedIPTargetNetworkInterfaceReferenceTargetContext(ReservedIPTarget): """ ReservedIPTargetNetworkInterfaceReferenceTargetContext. @@ -129829,19 +131596,27 @@ def from_dict(cls, _dict: Dict) -> 'ReservedIPTargetNetworkInterfaceReferenceTar if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in ReservedIPTargetNetworkInterfaceReferenceTargetContext JSON') + raise ValueError( + 'Required property \'href\' not present in ReservedIPTargetNetworkInterfaceReferenceTargetContext JSON' + ) if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in ReservedIPTargetNetworkInterfaceReferenceTargetContext JSON') + raise ValueError( + 'Required property \'id\' not present in ReservedIPTargetNetworkInterfaceReferenceTargetContext JSON' + ) if (name := _dict.get('name')) is not None: args['name'] = name else: - raise ValueError('Required property \'name\' not present in ReservedIPTargetNetworkInterfaceReferenceTargetContext JSON') + raise ValueError( + 'Required property \'name\' not present in ReservedIPTargetNetworkInterfaceReferenceTargetContext JSON' + ) if (resource_type := _dict.get('resource_type')) is not None: args['resource_type'] = resource_type else: - raise ValueError('Required property \'resource_type\' not present in ReservedIPTargetNetworkInterfaceReferenceTargetContext JSON') + raise ValueError( + 'Required property \'resource_type\' not present in ReservedIPTargetNetworkInterfaceReferenceTargetContext JSON' + ) return cls(**args) @classmethod @@ -129893,7 +131668,6 @@ class ResourceTypeEnum(str, Enum): NETWORK_INTERFACE = 'network_interface' - class ReservedIPTargetVPNGatewayReference(ReservedIPTarget): """ ReservedIPTargetVPNGatewayReference. @@ -129965,7 +131739,9 @@ def from_dict(cls, _dict: Dict) -> 'ReservedIPTargetVPNGatewayReference': if (resource_type := _dict.get('resource_type')) is not None: args['resource_type'] = resource_type else: - raise ValueError('Required property \'resource_type\' not present in ReservedIPTargetVPNGatewayReference JSON') + raise ValueError( + 'Required property \'resource_type\' not present in ReservedIPTargetVPNGatewayReference JSON' + ) return cls(**args) @classmethod @@ -130019,7 +131795,6 @@ class ResourceTypeEnum(str, Enum): VPN_GATEWAY = 'vpn_gateway' - class ReservedIPTargetVPNServerReference(ReservedIPTarget): """ ReservedIPTargetVPNServerReference. @@ -130091,7 +131866,9 @@ def from_dict(cls, _dict: Dict) -> 'ReservedIPTargetVPNServerReference': if (resource_type := _dict.get('resource_type')) is not None: args['resource_type'] = resource_type else: - raise ValueError('Required property \'resource_type\' not present in ReservedIPTargetVPNServerReference JSON') + raise ValueError( + 'Required property \'resource_type\' not present in ReservedIPTargetVPNServerReference JSON' + ) return cls(**args) @classmethod @@ -130145,7 +131922,6 @@ class ResourceTypeEnum(str, Enum): VPN_SERVER = 'vpn_server' - class ReservedIPTargetVirtualNetworkInterfaceReferenceReservedIPTargetContext(ReservedIPTarget): """ ReservedIPTargetVirtualNetworkInterfaceReferenceReservedIPTargetContext. @@ -130190,23 +131966,33 @@ def from_dict(cls, _dict: Dict) -> 'ReservedIPTargetVirtualNetworkInterfaceRefer if (crn := _dict.get('crn')) is not None: args['crn'] = crn else: - raise ValueError('Required property \'crn\' not present in ReservedIPTargetVirtualNetworkInterfaceReferenceReservedIPTargetContext JSON') + raise ValueError( + 'Required property \'crn\' not present in ReservedIPTargetVirtualNetworkInterfaceReferenceReservedIPTargetContext JSON' + ) if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in ReservedIPTargetVirtualNetworkInterfaceReferenceReservedIPTargetContext JSON') + raise ValueError( + 'Required property \'href\' not present in ReservedIPTargetVirtualNetworkInterfaceReferenceReservedIPTargetContext JSON' + ) if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in ReservedIPTargetVirtualNetworkInterfaceReferenceReservedIPTargetContext JSON') + raise ValueError( + 'Required property \'id\' not present in ReservedIPTargetVirtualNetworkInterfaceReferenceReservedIPTargetContext JSON' + ) if (name := _dict.get('name')) is not None: args['name'] = name else: - raise ValueError('Required property \'name\' not present in ReservedIPTargetVirtualNetworkInterfaceReferenceReservedIPTargetContext JSON') + raise ValueError( + 'Required property \'name\' not present in ReservedIPTargetVirtualNetworkInterfaceReferenceReservedIPTargetContext JSON' + ) if (resource_type := _dict.get('resource_type')) is not None: args['resource_type'] = resource_type else: - raise ValueError('Required property \'resource_type\' not present in ReservedIPTargetVirtualNetworkInterfaceReferenceReservedIPTargetContext JSON') + raise ValueError( + 'Required property \'resource_type\' not present in ReservedIPTargetVirtualNetworkInterfaceReferenceReservedIPTargetContext JSON' + ) return cls(**args) @classmethod @@ -130255,7 +132041,6 @@ class ResourceTypeEnum(str, Enum): VIRTUAL_NETWORK_INTERFACE = 'virtual_network_interface' - class ResourceGroupIdentityById(ResourceGroupIdentity): """ ResourceGroupIdentityById. @@ -130441,7 +132226,6 @@ class ResourceTypeEnum(str, Enum): VPN_GATEWAY = 'vpn_gateway' - class RouteCreatorVPNServerReference(RouteCreator): """ RouteCreatorVPNServerReference. @@ -130567,7 +132351,6 @@ class ResourceTypeEnum(str, Enum): VPN_SERVER = 'vpn_server' - class RouteNextHopIP(RouteNextHop): """ RouteNextHopIP. @@ -130649,7 +132432,12 @@ def __init__( """ # pylint: disable=super-init-not-called msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['RouteNextHopPatchRouteNextHopIPRouteNextHopIPSentinelIP', 'RouteNextHopPatchRouteNextHopIPRouteNextHopIPUnicastIP']) + ", ".join( + [ + 'RouteNextHopPatchRouteNextHopIPRouteNextHopIPSentinelIP', + 'RouteNextHopPatchRouteNextHopIPRouteNextHopIPUnicastIP', + ] + ) ) raise Exception(msg) @@ -130669,7 +132457,12 @@ def __init__( """ # pylint: disable=super-init-not-called msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['RouteNextHopPatchVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityById', 'RouteNextHopPatchVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref']) + ", ".join( + [ + 'RouteNextHopPatchVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityById', + 'RouteNextHopPatchVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref', + ] + ) ) raise Exception(msg) @@ -130689,7 +132482,12 @@ def __init__( """ # pylint: disable=super-init-not-called msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP', 'RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP']) + ", ".join( + [ + 'RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP', + 'RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP', + ] + ) ) raise Exception(msg) @@ -130709,7 +132507,12 @@ def __init__( """ # pylint: disable=super-init-not-called msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityById', 'RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref']) + ", ".join( + [ + 'RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityById', + 'RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref', + ] + ) ) raise Exception(msg) @@ -130777,7 +132580,9 @@ def from_dict(cls, _dict: Dict) -> 'RouteNextHopVPNGatewayConnectionReference': if (resource_type := _dict.get('resource_type')) is not None: args['resource_type'] = resource_type else: - raise ValueError('Required property \'resource_type\' not present in RouteNextHopVPNGatewayConnectionReference JSON') + raise ValueError( + 'Required property \'resource_type\' not present in RouteNextHopVPNGatewayConnectionReference JSON' + ) return cls(**args) @classmethod @@ -130829,7 +132634,6 @@ class ResourceTypeEnum(str, Enum): VPN_GATEWAY_CONNECTION = 'vpn_gateway_connection' - class RoutingTableIdentityByCRN(RoutingTableIdentity): """ RoutingTableIdentityByCRN. @@ -131664,7 +133468,9 @@ def from_dict(cls, _dict: Dict) -> 'SecurityGroupRulePrototypeSecurityGroupRuleP if (direction := _dict.get('direction')) is not None: args['direction'] = direction else: - raise ValueError('Required property \'direction\' not present in SecurityGroupRulePrototypeSecurityGroupRuleProtocolAll JSON') + raise ValueError( + 'Required property \'direction\' not present in SecurityGroupRulePrototypeSecurityGroupRuleProtocolAll JSON' + ) if (ip_version := _dict.get('ip_version')) is not None: args['ip_version'] = ip_version if (local := _dict.get('local')) is not None: @@ -131672,7 +133478,9 @@ def from_dict(cls, _dict: Dict) -> 'SecurityGroupRulePrototypeSecurityGroupRuleP if (protocol := _dict.get('protocol')) is not None: args['protocol'] = protocol else: - raise ValueError('Required property \'protocol\' not present in SecurityGroupRulePrototypeSecurityGroupRuleProtocolAll JSON') + raise ValueError( + 'Required property \'protocol\' not present in SecurityGroupRulePrototypeSecurityGroupRuleProtocolAll JSON' + ) if (remote := _dict.get('remote')) is not None: args['remote'] = remote return cls(**args) @@ -131729,7 +133537,6 @@ class DirectionEnum(str, Enum): INBOUND = 'inbound' OUTBOUND = 'outbound' - class IpVersionEnum(str, Enum): """ The IP version to allow. The format of `local.address`, `remote.address`, @@ -131741,7 +133548,6 @@ class IpVersionEnum(str, Enum): IPV4 = 'ipv4' - class ProtocolEnum(str, Enum): """ The network protocol. @@ -131750,7 +133556,6 @@ class ProtocolEnum(str, Enum): ALL = 'all' - class SecurityGroupRulePrototypeSecurityGroupRuleProtocolICMP(SecurityGroupRulePrototype): """ A rule specifying the ICMP traffic to allow. @@ -131845,7 +133650,9 @@ def from_dict(cls, _dict: Dict) -> 'SecurityGroupRulePrototypeSecurityGroupRuleP if (direction := _dict.get('direction')) is not None: args['direction'] = direction else: - raise ValueError('Required property \'direction\' not present in SecurityGroupRulePrototypeSecurityGroupRuleProtocolICMP JSON') + raise ValueError( + 'Required property \'direction\' not present in SecurityGroupRulePrototypeSecurityGroupRuleProtocolICMP JSON' + ) if (ip_version := _dict.get('ip_version')) is not None: args['ip_version'] = ip_version if (local := _dict.get('local')) is not None: @@ -131853,7 +133660,9 @@ def from_dict(cls, _dict: Dict) -> 'SecurityGroupRulePrototypeSecurityGroupRuleP if (protocol := _dict.get('protocol')) is not None: args['protocol'] = protocol else: - raise ValueError('Required property \'protocol\' not present in SecurityGroupRulePrototypeSecurityGroupRuleProtocolICMP JSON') + raise ValueError( + 'Required property \'protocol\' not present in SecurityGroupRulePrototypeSecurityGroupRuleProtocolICMP JSON' + ) if (remote := _dict.get('remote')) is not None: args['remote'] = remote if (type := _dict.get('type')) is not None: @@ -131916,7 +133725,6 @@ class DirectionEnum(str, Enum): INBOUND = 'inbound' OUTBOUND = 'outbound' - class IpVersionEnum(str, Enum): """ The IP version to allow. The format of `local.address`, `remote.address`, @@ -131928,7 +133736,6 @@ class IpVersionEnum(str, Enum): IPV4 = 'ipv4' - class ProtocolEnum(str, Enum): """ The network protocol. @@ -131937,7 +133744,6 @@ class ProtocolEnum(str, Enum): ICMP = 'icmp' - class SecurityGroupRulePrototypeSecurityGroupRuleProtocolTCPUDP(SecurityGroupRulePrototype): """ A rule specifying the TCP or UDP traffic to allow. @@ -132044,7 +133850,9 @@ def from_dict(cls, _dict: Dict) -> 'SecurityGroupRulePrototypeSecurityGroupRuleP if (direction := _dict.get('direction')) is not None: args['direction'] = direction else: - raise ValueError('Required property \'direction\' not present in SecurityGroupRulePrototypeSecurityGroupRuleProtocolTCPUDP JSON') + raise ValueError( + 'Required property \'direction\' not present in SecurityGroupRulePrototypeSecurityGroupRuleProtocolTCPUDP JSON' + ) if (ip_version := _dict.get('ip_version')) is not None: args['ip_version'] = ip_version if (local := _dict.get('local')) is not None: @@ -132056,7 +133864,9 @@ def from_dict(cls, _dict: Dict) -> 'SecurityGroupRulePrototypeSecurityGroupRuleP if (protocol := _dict.get('protocol')) is not None: args['protocol'] = protocol else: - raise ValueError('Required property \'protocol\' not present in SecurityGroupRulePrototypeSecurityGroupRuleProtocolTCPUDP JSON') + raise ValueError( + 'Required property \'protocol\' not present in SecurityGroupRulePrototypeSecurityGroupRuleProtocolTCPUDP JSON' + ) if (remote := _dict.get('remote')) is not None: args['remote'] = remote return cls(**args) @@ -132117,7 +133927,6 @@ class DirectionEnum(str, Enum): INBOUND = 'inbound' OUTBOUND = 'outbound' - class IpVersionEnum(str, Enum): """ The IP version to allow. The format of `local.address`, `remote.address`, @@ -132129,7 +133938,6 @@ class IpVersionEnum(str, Enum): IPV4 = 'ipv4' - class ProtocolEnum(str, Enum): """ The network protocol. @@ -132139,7 +133947,6 @@ class ProtocolEnum(str, Enum): UDP = 'udp' - class SecurityGroupRuleRemotePatchCIDR(SecurityGroupRuleRemotePatch): """ SecurityGroupRuleRemotePatchCIDR. @@ -132287,7 +134094,13 @@ def __init__( """ # pylint: disable=super-init-not-called msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['SecurityGroupRuleRemotePatchSecurityGroupIdentitySecurityGroupIdentityById', 'SecurityGroupRuleRemotePatchSecurityGroupIdentitySecurityGroupIdentityByCRN', 'SecurityGroupRuleRemotePatchSecurityGroupIdentitySecurityGroupIdentityByHref']) + ", ".join( + [ + 'SecurityGroupRuleRemotePatchSecurityGroupIdentitySecurityGroupIdentityById', + 'SecurityGroupRuleRemotePatchSecurityGroupIdentitySecurityGroupIdentityByCRN', + 'SecurityGroupRuleRemotePatchSecurityGroupIdentitySecurityGroupIdentityByHref', + ] + ) ) raise Exception(msg) @@ -132324,7 +134137,9 @@ def from_dict(cls, _dict: Dict) -> 'SecurityGroupRuleRemotePrototypeCIDR': if (cidr_block := _dict.get('cidr_block')) is not None: args['cidr_block'] = cidr_block else: - raise ValueError('Required property \'cidr_block\' not present in SecurityGroupRuleRemotePrototypeCIDR JSON') + raise ValueError( + 'Required property \'cidr_block\' not present in SecurityGroupRuleRemotePrototypeCIDR JSON' + ) return cls(**args) @classmethod @@ -132439,7 +134254,13 @@ def __init__( """ # pylint: disable=super-init-not-called msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGroupIdentityById', 'SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGroupIdentityByCRN', 'SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGroupIdentityByHref']) + ", ".join( + [ + 'SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGroupIdentityById', + 'SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGroupIdentityByCRN', + 'SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGroupIdentityByHref', + ] + ) ) raise Exception(msg) @@ -132625,21 +134446,29 @@ def from_dict(cls, _dict: Dict) -> 'SecurityGroupRuleRemoteSecurityGroupReferenc if (crn := _dict.get('crn')) is not None: args['crn'] = crn else: - raise ValueError('Required property \'crn\' not present in SecurityGroupRuleRemoteSecurityGroupReference JSON') + raise ValueError( + 'Required property \'crn\' not present in SecurityGroupRuleRemoteSecurityGroupReference JSON' + ) if (deleted := _dict.get('deleted')) is not None: args['deleted'] = Deleted.from_dict(deleted) if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in SecurityGroupRuleRemoteSecurityGroupReference JSON') + raise ValueError( + 'Required property \'href\' not present in SecurityGroupRuleRemoteSecurityGroupReference JSON' + ) if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in SecurityGroupRuleRemoteSecurityGroupReference JSON') + raise ValueError( + 'Required property \'id\' not present in SecurityGroupRuleRemoteSecurityGroupReference JSON' + ) if (name := _dict.get('name')) is not None: args['name'] = name else: - raise ValueError('Required property \'name\' not present in SecurityGroupRuleRemoteSecurityGroupReference JSON') + raise ValueError( + 'Required property \'name\' not present in SecurityGroupRuleRemoteSecurityGroupReference JSON' + ) return cls(**args) @classmethod @@ -132744,31 +134573,45 @@ def from_dict(cls, _dict: Dict) -> 'SecurityGroupRuleSecurityGroupRuleProtocolAl if (direction := _dict.get('direction')) is not None: args['direction'] = direction else: - raise ValueError('Required property \'direction\' not present in SecurityGroupRuleSecurityGroupRuleProtocolAll JSON') + raise ValueError( + 'Required property \'direction\' not present in SecurityGroupRuleSecurityGroupRuleProtocolAll JSON' + ) if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in SecurityGroupRuleSecurityGroupRuleProtocolAll JSON') + raise ValueError( + 'Required property \'href\' not present in SecurityGroupRuleSecurityGroupRuleProtocolAll JSON' + ) if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in SecurityGroupRuleSecurityGroupRuleProtocolAll JSON') + raise ValueError( + 'Required property \'id\' not present in SecurityGroupRuleSecurityGroupRuleProtocolAll JSON' + ) if (ip_version := _dict.get('ip_version')) is not None: args['ip_version'] = ip_version else: - raise ValueError('Required property \'ip_version\' not present in SecurityGroupRuleSecurityGroupRuleProtocolAll JSON') + raise ValueError( + 'Required property \'ip_version\' not present in SecurityGroupRuleSecurityGroupRuleProtocolAll JSON' + ) if (local := _dict.get('local')) is not None: args['local'] = local else: - raise ValueError('Required property \'local\' not present in SecurityGroupRuleSecurityGroupRuleProtocolAll JSON') + raise ValueError( + 'Required property \'local\' not present in SecurityGroupRuleSecurityGroupRuleProtocolAll JSON' + ) if (remote := _dict.get('remote')) is not None: args['remote'] = remote else: - raise ValueError('Required property \'remote\' not present in SecurityGroupRuleSecurityGroupRuleProtocolAll JSON') + raise ValueError( + 'Required property \'remote\' not present in SecurityGroupRuleSecurityGroupRuleProtocolAll JSON' + ) if (protocol := _dict.get('protocol')) is not None: args['protocol'] = protocol else: - raise ValueError('Required property \'protocol\' not present in SecurityGroupRuleSecurityGroupRuleProtocolAll JSON') + raise ValueError( + 'Required property \'protocol\' not present in SecurityGroupRuleSecurityGroupRuleProtocolAll JSON' + ) return cls(**args) @classmethod @@ -132827,7 +134670,6 @@ class DirectionEnum(str, Enum): INBOUND = 'inbound' OUTBOUND = 'outbound' - class IpVersionEnum(str, Enum): """ The IP version to allow. The format of `local.address`, `remote.address`, @@ -132839,7 +134681,6 @@ class IpVersionEnum(str, Enum): IPV4 = 'ipv4' - class ProtocolEnum(str, Enum): """ The network protocol. @@ -132848,7 +134689,6 @@ class ProtocolEnum(str, Enum): ALL = 'all' - class SecurityGroupRuleSecurityGroupRuleProtocolICMP(SecurityGroupRule): """ A rule specifying the ICMP traffic to allow. @@ -132922,33 +134762,47 @@ def from_dict(cls, _dict: Dict) -> 'SecurityGroupRuleSecurityGroupRuleProtocolIC if (direction := _dict.get('direction')) is not None: args['direction'] = direction else: - raise ValueError('Required property \'direction\' not present in SecurityGroupRuleSecurityGroupRuleProtocolICMP JSON') + raise ValueError( + 'Required property \'direction\' not present in SecurityGroupRuleSecurityGroupRuleProtocolICMP JSON' + ) if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in SecurityGroupRuleSecurityGroupRuleProtocolICMP JSON') + raise ValueError( + 'Required property \'href\' not present in SecurityGroupRuleSecurityGroupRuleProtocolICMP JSON' + ) if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in SecurityGroupRuleSecurityGroupRuleProtocolICMP JSON') + raise ValueError( + 'Required property \'id\' not present in SecurityGroupRuleSecurityGroupRuleProtocolICMP JSON' + ) if (ip_version := _dict.get('ip_version')) is not None: args['ip_version'] = ip_version else: - raise ValueError('Required property \'ip_version\' not present in SecurityGroupRuleSecurityGroupRuleProtocolICMP JSON') + raise ValueError( + 'Required property \'ip_version\' not present in SecurityGroupRuleSecurityGroupRuleProtocolICMP JSON' + ) if (local := _dict.get('local')) is not None: args['local'] = local else: - raise ValueError('Required property \'local\' not present in SecurityGroupRuleSecurityGroupRuleProtocolICMP JSON') + raise ValueError( + 'Required property \'local\' not present in SecurityGroupRuleSecurityGroupRuleProtocolICMP JSON' + ) if (remote := _dict.get('remote')) is not None: args['remote'] = remote else: - raise ValueError('Required property \'remote\' not present in SecurityGroupRuleSecurityGroupRuleProtocolICMP JSON') + raise ValueError( + 'Required property \'remote\' not present in SecurityGroupRuleSecurityGroupRuleProtocolICMP JSON' + ) if (code := _dict.get('code')) is not None: args['code'] = code if (protocol := _dict.get('protocol')) is not None: args['protocol'] = protocol else: - raise ValueError('Required property \'protocol\' not present in SecurityGroupRuleSecurityGroupRuleProtocolICMP JSON') + raise ValueError( + 'Required property \'protocol\' not present in SecurityGroupRuleSecurityGroupRuleProtocolICMP JSON' + ) if (type := _dict.get('type')) is not None: args['type'] = type return cls(**args) @@ -133013,7 +134867,6 @@ class DirectionEnum(str, Enum): INBOUND = 'inbound' OUTBOUND = 'outbound' - class IpVersionEnum(str, Enum): """ The IP version to allow. The format of `local.address`, `remote.address`, @@ -133025,7 +134878,6 @@ class IpVersionEnum(str, Enum): IPV4 = 'ipv4' - class ProtocolEnum(str, Enum): """ The network protocol. @@ -133034,7 +134886,6 @@ class ProtocolEnum(str, Enum): ICMP = 'icmp' - class SecurityGroupRuleSecurityGroupRuleProtocolTCPUDP(SecurityGroupRule): """ A rule specifying the TCP or UDP traffic to allow. @@ -133111,27 +134962,39 @@ def from_dict(cls, _dict: Dict) -> 'SecurityGroupRuleSecurityGroupRuleProtocolTC if (direction := _dict.get('direction')) is not None: args['direction'] = direction else: - raise ValueError('Required property \'direction\' not present in SecurityGroupRuleSecurityGroupRuleProtocolTCPUDP JSON') + raise ValueError( + 'Required property \'direction\' not present in SecurityGroupRuleSecurityGroupRuleProtocolTCPUDP JSON' + ) if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in SecurityGroupRuleSecurityGroupRuleProtocolTCPUDP JSON') + raise ValueError( + 'Required property \'href\' not present in SecurityGroupRuleSecurityGroupRuleProtocolTCPUDP JSON' + ) if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in SecurityGroupRuleSecurityGroupRuleProtocolTCPUDP JSON') + raise ValueError( + 'Required property \'id\' not present in SecurityGroupRuleSecurityGroupRuleProtocolTCPUDP JSON' + ) if (ip_version := _dict.get('ip_version')) is not None: args['ip_version'] = ip_version else: - raise ValueError('Required property \'ip_version\' not present in SecurityGroupRuleSecurityGroupRuleProtocolTCPUDP JSON') + raise ValueError( + 'Required property \'ip_version\' not present in SecurityGroupRuleSecurityGroupRuleProtocolTCPUDP JSON' + ) if (local := _dict.get('local')) is not None: args['local'] = local else: - raise ValueError('Required property \'local\' not present in SecurityGroupRuleSecurityGroupRuleProtocolTCPUDP JSON') + raise ValueError( + 'Required property \'local\' not present in SecurityGroupRuleSecurityGroupRuleProtocolTCPUDP JSON' + ) if (remote := _dict.get('remote')) is not None: args['remote'] = remote else: - raise ValueError('Required property \'remote\' not present in SecurityGroupRuleSecurityGroupRuleProtocolTCPUDP JSON') + raise ValueError( + 'Required property \'remote\' not present in SecurityGroupRuleSecurityGroupRuleProtocolTCPUDP JSON' + ) if (port_max := _dict.get('port_max')) is not None: args['port_max'] = port_max if (port_min := _dict.get('port_min')) is not None: @@ -133139,7 +135002,9 @@ def from_dict(cls, _dict: Dict) -> 'SecurityGroupRuleSecurityGroupRuleProtocolTC if (protocol := _dict.get('protocol')) is not None: args['protocol'] = protocol else: - raise ValueError('Required property \'protocol\' not present in SecurityGroupRuleSecurityGroupRuleProtocolTCPUDP JSON') + raise ValueError( + 'Required property \'protocol\' not present in SecurityGroupRuleSecurityGroupRuleProtocolTCPUDP JSON' + ) return cls(**args) @classmethod @@ -133202,7 +135067,6 @@ class DirectionEnum(str, Enum): INBOUND = 'inbound' OUTBOUND = 'outbound' - class IpVersionEnum(str, Enum): """ The IP version to allow. The format of `local.address`, `remote.address`, @@ -133214,7 +135078,6 @@ class IpVersionEnum(str, Enum): IPV4 = 'ipv4' - class ProtocolEnum(str, Enum): """ The network protocol. @@ -133224,7 +135087,6 @@ class ProtocolEnum(str, Enum): UDP = 'udp' - class SecurityGroupTargetReferenceBareMetalServerNetworkInterfaceReferenceTargetContext(SecurityGroupTargetReference): """ SecurityGroupTargetReferenceBareMetalServerNetworkInterfaceReferenceTargetContext. @@ -133289,7 +135151,9 @@ def __init__( self.resource_type = resource_type @classmethod - def from_dict(cls, _dict: Dict) -> 'SecurityGroupTargetReferenceBareMetalServerNetworkInterfaceReferenceTargetContext': + def from_dict( + cls, _dict: Dict + ) -> 'SecurityGroupTargetReferenceBareMetalServerNetworkInterfaceReferenceTargetContext': """Initialize a SecurityGroupTargetReferenceBareMetalServerNetworkInterfaceReferenceTargetContext object from a json dictionary.""" args = {} if (deleted := _dict.get('deleted')) is not None: @@ -133297,19 +135161,27 @@ def from_dict(cls, _dict: Dict) -> 'SecurityGroupTargetReferenceBareMetalServerN if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in SecurityGroupTargetReferenceBareMetalServerNetworkInterfaceReferenceTargetContext JSON') + raise ValueError( + 'Required property \'href\' not present in SecurityGroupTargetReferenceBareMetalServerNetworkInterfaceReferenceTargetContext JSON' + ) if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in SecurityGroupTargetReferenceBareMetalServerNetworkInterfaceReferenceTargetContext JSON') + raise ValueError( + 'Required property \'id\' not present in SecurityGroupTargetReferenceBareMetalServerNetworkInterfaceReferenceTargetContext JSON' + ) if (name := _dict.get('name')) is not None: args['name'] = name else: - raise ValueError('Required property \'name\' not present in SecurityGroupTargetReferenceBareMetalServerNetworkInterfaceReferenceTargetContext JSON') + raise ValueError( + 'Required property \'name\' not present in SecurityGroupTargetReferenceBareMetalServerNetworkInterfaceReferenceTargetContext JSON' + ) if (resource_type := _dict.get('resource_type')) is not None: args['resource_type'] = resource_type else: - raise ValueError('Required property \'resource_type\' not present in SecurityGroupTargetReferenceBareMetalServerNetworkInterfaceReferenceTargetContext JSON') + raise ValueError( + 'Required property \'resource_type\' not present in SecurityGroupTargetReferenceBareMetalServerNetworkInterfaceReferenceTargetContext JSON' + ) return cls(**args) @classmethod @@ -133343,13 +135215,17 @@ def __str__(self) -> str: """Return a `str` version of this SecurityGroupTargetReferenceBareMetalServerNetworkInterfaceReferenceTargetContext object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'SecurityGroupTargetReferenceBareMetalServerNetworkInterfaceReferenceTargetContext') -> bool: + def __eq__( + self, other: 'SecurityGroupTargetReferenceBareMetalServerNetworkInterfaceReferenceTargetContext' + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'SecurityGroupTargetReferenceBareMetalServerNetworkInterfaceReferenceTargetContext') -> bool: + def __ne__( + self, other: 'SecurityGroupTargetReferenceBareMetalServerNetworkInterfaceReferenceTargetContext' + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other @@ -133361,7 +135237,6 @@ class ResourceTypeEnum(str, Enum): NETWORK_INTERFACE = 'network_interface' - class SecurityGroupTargetReferenceEndpointGatewayReference(SecurityGroupTargetReference): """ SecurityGroupTargetReferenceEndpointGatewayReference. @@ -133415,25 +135290,35 @@ def from_dict(cls, _dict: Dict) -> 'SecurityGroupTargetReferenceEndpointGatewayR if (crn := _dict.get('crn')) is not None: args['crn'] = crn else: - raise ValueError('Required property \'crn\' not present in SecurityGroupTargetReferenceEndpointGatewayReference JSON') + raise ValueError( + 'Required property \'crn\' not present in SecurityGroupTargetReferenceEndpointGatewayReference JSON' + ) if (deleted := _dict.get('deleted')) is not None: args['deleted'] = Deleted.from_dict(deleted) if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in SecurityGroupTargetReferenceEndpointGatewayReference JSON') + raise ValueError( + 'Required property \'href\' not present in SecurityGroupTargetReferenceEndpointGatewayReference JSON' + ) if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in SecurityGroupTargetReferenceEndpointGatewayReference JSON') + raise ValueError( + 'Required property \'id\' not present in SecurityGroupTargetReferenceEndpointGatewayReference JSON' + ) if (name := _dict.get('name')) is not None: args['name'] = name else: - raise ValueError('Required property \'name\' not present in SecurityGroupTargetReferenceEndpointGatewayReference JSON') + raise ValueError( + 'Required property \'name\' not present in SecurityGroupTargetReferenceEndpointGatewayReference JSON' + ) if (resource_type := _dict.get('resource_type')) is not None: args['resource_type'] = resource_type else: - raise ValueError('Required property \'resource_type\' not present in SecurityGroupTargetReferenceEndpointGatewayReference JSON') + raise ValueError( + 'Required property \'resource_type\' not present in SecurityGroupTargetReferenceEndpointGatewayReference JSON' + ) return cls(**args) @classmethod @@ -133487,7 +135372,6 @@ class ResourceTypeEnum(str, Enum): ENDPOINT_GATEWAY = 'endpoint_gateway' - class SecurityGroupTargetReferenceLoadBalancerReference(SecurityGroupTargetReference): """ SecurityGroupTargetReferenceLoadBalancerReference. @@ -133541,25 +135425,35 @@ def from_dict(cls, _dict: Dict) -> 'SecurityGroupTargetReferenceLoadBalancerRefe if (crn := _dict.get('crn')) is not None: args['crn'] = crn else: - raise ValueError('Required property \'crn\' not present in SecurityGroupTargetReferenceLoadBalancerReference JSON') + raise ValueError( + 'Required property \'crn\' not present in SecurityGroupTargetReferenceLoadBalancerReference JSON' + ) if (deleted := _dict.get('deleted')) is not None: args['deleted'] = Deleted.from_dict(deleted) if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in SecurityGroupTargetReferenceLoadBalancerReference JSON') + raise ValueError( + 'Required property \'href\' not present in SecurityGroupTargetReferenceLoadBalancerReference JSON' + ) if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in SecurityGroupTargetReferenceLoadBalancerReference JSON') + raise ValueError( + 'Required property \'id\' not present in SecurityGroupTargetReferenceLoadBalancerReference JSON' + ) if (name := _dict.get('name')) is not None: args['name'] = name else: - raise ValueError('Required property \'name\' not present in SecurityGroupTargetReferenceLoadBalancerReference JSON') + raise ValueError( + 'Required property \'name\' not present in SecurityGroupTargetReferenceLoadBalancerReference JSON' + ) if (resource_type := _dict.get('resource_type')) is not None: args['resource_type'] = resource_type else: - raise ValueError('Required property \'resource_type\' not present in SecurityGroupTargetReferenceLoadBalancerReference JSON') + raise ValueError( + 'Required property \'resource_type\' not present in SecurityGroupTargetReferenceLoadBalancerReference JSON' + ) return cls(**args) @classmethod @@ -133613,7 +135507,6 @@ class ResourceTypeEnum(str, Enum): LOAD_BALANCER = 'load_balancer' - class SecurityGroupTargetReferenceNetworkInterfaceReferenceTargetContext(SecurityGroupTargetReference): """ SecurityGroupTargetReferenceNetworkInterfaceReferenceTargetContext. @@ -133682,19 +135575,27 @@ def from_dict(cls, _dict: Dict) -> 'SecurityGroupTargetReferenceNetworkInterface if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in SecurityGroupTargetReferenceNetworkInterfaceReferenceTargetContext JSON') + raise ValueError( + 'Required property \'href\' not present in SecurityGroupTargetReferenceNetworkInterfaceReferenceTargetContext JSON' + ) if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in SecurityGroupTargetReferenceNetworkInterfaceReferenceTargetContext JSON') + raise ValueError( + 'Required property \'id\' not present in SecurityGroupTargetReferenceNetworkInterfaceReferenceTargetContext JSON' + ) if (name := _dict.get('name')) is not None: args['name'] = name else: - raise ValueError('Required property \'name\' not present in SecurityGroupTargetReferenceNetworkInterfaceReferenceTargetContext JSON') + raise ValueError( + 'Required property \'name\' not present in SecurityGroupTargetReferenceNetworkInterfaceReferenceTargetContext JSON' + ) if (resource_type := _dict.get('resource_type')) is not None: args['resource_type'] = resource_type else: - raise ValueError('Required property \'resource_type\' not present in SecurityGroupTargetReferenceNetworkInterfaceReferenceTargetContext JSON') + raise ValueError( + 'Required property \'resource_type\' not present in SecurityGroupTargetReferenceNetworkInterfaceReferenceTargetContext JSON' + ) return cls(**args) @classmethod @@ -133746,7 +135647,6 @@ class ResourceTypeEnum(str, Enum): NETWORK_INTERFACE = 'network_interface' - class SecurityGroupTargetReferenceVPNServerReference(SecurityGroupTargetReference): """ SecurityGroupTargetReferenceVPNServerReference. @@ -133800,25 +135700,35 @@ def from_dict(cls, _dict: Dict) -> 'SecurityGroupTargetReferenceVPNServerReferen if (crn := _dict.get('crn')) is not None: args['crn'] = crn else: - raise ValueError('Required property \'crn\' not present in SecurityGroupTargetReferenceVPNServerReference JSON') + raise ValueError( + 'Required property \'crn\' not present in SecurityGroupTargetReferenceVPNServerReference JSON' + ) if (deleted := _dict.get('deleted')) is not None: args['deleted'] = Deleted.from_dict(deleted) if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in SecurityGroupTargetReferenceVPNServerReference JSON') + raise ValueError( + 'Required property \'href\' not present in SecurityGroupTargetReferenceVPNServerReference JSON' + ) if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in SecurityGroupTargetReferenceVPNServerReference JSON') + raise ValueError( + 'Required property \'id\' not present in SecurityGroupTargetReferenceVPNServerReference JSON' + ) if (name := _dict.get('name')) is not None: args['name'] = name else: - raise ValueError('Required property \'name\' not present in SecurityGroupTargetReferenceVPNServerReference JSON') + raise ValueError( + 'Required property \'name\' not present in SecurityGroupTargetReferenceVPNServerReference JSON' + ) if (resource_type := _dict.get('resource_type')) is not None: args['resource_type'] = resource_type else: - raise ValueError('Required property \'resource_type\' not present in SecurityGroupTargetReferenceVPNServerReference JSON') + raise ValueError( + 'Required property \'resource_type\' not present in SecurityGroupTargetReferenceVPNServerReference JSON' + ) return cls(**args) @classmethod @@ -133872,7 +135782,6 @@ class ResourceTypeEnum(str, Enum): VPN_SERVER = 'vpn_server' - class SecurityGroupTargetReferenceVirtualNetworkInterfaceReference(SecurityGroupTargetReference): """ SecurityGroupTargetReferenceVirtualNetworkInterfaceReference. @@ -133936,33 +135845,47 @@ def from_dict(cls, _dict: Dict) -> 'SecurityGroupTargetReferenceVirtualNetworkIn if (crn := _dict.get('crn')) is not None: args['crn'] = crn else: - raise ValueError('Required property \'crn\' not present in SecurityGroupTargetReferenceVirtualNetworkInterfaceReference JSON') + raise ValueError( + 'Required property \'crn\' not present in SecurityGroupTargetReferenceVirtualNetworkInterfaceReference JSON' + ) if (deleted := _dict.get('deleted')) is not None: args['deleted'] = Deleted.from_dict(deleted) if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in SecurityGroupTargetReferenceVirtualNetworkInterfaceReference JSON') + raise ValueError( + 'Required property \'href\' not present in SecurityGroupTargetReferenceVirtualNetworkInterfaceReference JSON' + ) if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in SecurityGroupTargetReferenceVirtualNetworkInterfaceReference JSON') + raise ValueError( + 'Required property \'id\' not present in SecurityGroupTargetReferenceVirtualNetworkInterfaceReference JSON' + ) if (name := _dict.get('name')) is not None: args['name'] = name else: - raise ValueError('Required property \'name\' not present in SecurityGroupTargetReferenceVirtualNetworkInterfaceReference JSON') + raise ValueError( + 'Required property \'name\' not present in SecurityGroupTargetReferenceVirtualNetworkInterfaceReference JSON' + ) if (primary_ip := _dict.get('primary_ip')) is not None: args['primary_ip'] = ReservedIPReference.from_dict(primary_ip) else: - raise ValueError('Required property \'primary_ip\' not present in SecurityGroupTargetReferenceVirtualNetworkInterfaceReference JSON') + raise ValueError( + 'Required property \'primary_ip\' not present in SecurityGroupTargetReferenceVirtualNetworkInterfaceReference JSON' + ) if (resource_type := _dict.get('resource_type')) is not None: args['resource_type'] = resource_type else: - raise ValueError('Required property \'resource_type\' not present in SecurityGroupTargetReferenceVirtualNetworkInterfaceReference JSON') + raise ValueError( + 'Required property \'resource_type\' not present in SecurityGroupTargetReferenceVirtualNetworkInterfaceReference JSON' + ) if (subnet := _dict.get('subnet')) is not None: args['subnet'] = SubnetReference.from_dict(subnet) else: - raise ValueError('Required property \'subnet\' not present in SecurityGroupTargetReferenceVirtualNetworkInterfaceReference JSON') + raise ValueError( + 'Required property \'subnet\' not present in SecurityGroupTargetReferenceVirtualNetworkInterfaceReference JSON' + ) return cls(**args) @classmethod @@ -134026,7 +135949,6 @@ class ResourceTypeEnum(str, Enum): VIRTUAL_NETWORK_INTERFACE = 'virtual_network_interface' - class ShareAccessorBindingAccessorShareReference(ShareAccessorBindingAccessor): """ ShareAccessorBindingAccessorShareReference. @@ -134094,7 +136016,9 @@ def from_dict(cls, _dict: Dict) -> 'ShareAccessorBindingAccessorShareReference': if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in ShareAccessorBindingAccessorShareReference JSON') + raise ValueError( + 'Required property \'href\' not present in ShareAccessorBindingAccessorShareReference JSON' + ) if (id := _dict.get('id')) is not None: args['id'] = id else: @@ -134102,13 +136026,17 @@ def from_dict(cls, _dict: Dict) -> 'ShareAccessorBindingAccessorShareReference': if (name := _dict.get('name')) is not None: args['name'] = name else: - raise ValueError('Required property \'name\' not present in ShareAccessorBindingAccessorShareReference JSON') + raise ValueError( + 'Required property \'name\' not present in ShareAccessorBindingAccessorShareReference JSON' + ) if (remote := _dict.get('remote')) is not None: args['remote'] = ShareRemote.from_dict(remote) if (resource_type := _dict.get('resource_type')) is not None: args['resource_type'] = resource_type else: - raise ValueError('Required property \'resource_type\' not present in ShareAccessorBindingAccessorShareReference JSON') + raise ValueError( + 'Required property \'resource_type\' not present in ShareAccessorBindingAccessorShareReference JSON' + ) return cls(**args) @classmethod @@ -134167,7 +136095,6 @@ class ResourceTypeEnum(str, Enum): SHARE = 'share' - class ShareAccessorBindingAccessorWatsonxMachineLearningReference(ShareAccessorBindingAccessor): """ ShareAccessorBindingAccessorWatsonxMachineLearningReference. @@ -134198,11 +136125,15 @@ def from_dict(cls, _dict: Dict) -> 'ShareAccessorBindingAccessorWatsonxMachineLe if (crn := _dict.get('crn')) is not None: args['crn'] = crn else: - raise ValueError('Required property \'crn\' not present in ShareAccessorBindingAccessorWatsonxMachineLearningReference JSON') + raise ValueError( + 'Required property \'crn\' not present in ShareAccessorBindingAccessorWatsonxMachineLearningReference JSON' + ) if (resource_type := _dict.get('resource_type')) is not None: args['resource_type'] = resource_type else: - raise ValueError('Required property \'resource_type\' not present in ShareAccessorBindingAccessorWatsonxMachineLearningReference JSON') + raise ValueError( + 'Required property \'resource_type\' not present in ShareAccessorBindingAccessorWatsonxMachineLearningReference JSON' + ) return cls(**args) @classmethod @@ -134245,7 +136176,6 @@ class ResourceTypeEnum(str, Enum): WATSONX_MACHINE_LEARNING = 'watsonx_machine_learning' - class ShareIdentityByCRN(ShareIdentity): """ ShareIdentityByCRN. @@ -134494,7 +136424,9 @@ def from_dict(cls, _dict: Dict) -> 'ShareMountTargetPrototypeShareMountTargetByA if (virtual_network_interface := _dict.get('virtual_network_interface')) is not None: args['virtual_network_interface'] = virtual_network_interface else: - raise ValueError('Required property \'virtual_network_interface\' not present in ShareMountTargetPrototypeShareMountTargetByAccessControlModeSecurityGroup JSON') + raise ValueError( + 'Required property \'virtual_network_interface\' not present in ShareMountTargetPrototypeShareMountTargetByAccessControlModeSecurityGroup JSON' + ) return cls(**args) @classmethod @@ -134549,7 +136481,6 @@ class TransitEncryptionEnum(str, Enum): USER_MANAGED = 'user_managed' - class ShareMountTargetPrototypeShareMountTargetByAccessControlModeVPC(ShareMountTargetPrototype): """ The VPC in which clients can mount the file share using this mount target. The VPC @@ -134608,7 +136539,9 @@ def from_dict(cls, _dict: Dict) -> 'ShareMountTargetPrototypeShareMountTargetByA if (vpc := _dict.get('vpc')) is not None: args['vpc'] = vpc else: - raise ValueError('Required property \'vpc\' not present in ShareMountTargetPrototypeShareMountTargetByAccessControlModeVPC JSON') + raise ValueError( + 'Required property \'vpc\' not present in ShareMountTargetPrototypeShareMountTargetByAccessControlModeVPC JSON' + ) return cls(**args) @classmethod @@ -134663,8 +136596,9 @@ class TransitEncryptionEnum(str, Enum): USER_MANAGED = 'user_managed' - -class ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentity(ShareMountTargetVirtualNetworkInterfacePrototype): +class ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentity( + ShareMountTargetVirtualNetworkInterfacePrototype +): """ Identifies a virtual network interface by a unique property. @@ -134679,12 +136613,20 @@ def __init__( """ # pylint: disable=super-init-not-called msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById', 'ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref', 'ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN']) + ", ".join( + [ + 'ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById', + 'ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref', + 'ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN', + ] + ) ) raise Exception(msg) -class ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfacePrototypeShareMountTargetContext(ShareMountTargetVirtualNetworkInterfacePrototype): +class ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfacePrototypeShareMountTargetContext( + ShareMountTargetVirtualNetworkInterfacePrototype +): """ The virtual network interface for this target. @@ -134850,7 +136792,9 @@ def __init__( self.subnet = subnet @classmethod - def from_dict(cls, _dict: Dict) -> 'ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfacePrototypeShareMountTargetContext': + def from_dict( + cls, _dict: Dict + ) -> 'ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfacePrototypeShareMountTargetContext': """Initialize a ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfacePrototypeShareMountTargetContext object from a json dictionary.""" args = {} if (allow_ip_spoofing := _dict.get('allow_ip_spoofing')) is not None: @@ -134934,13 +136878,19 @@ def __str__(self) -> str: """Return a `str` version of this ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfacePrototypeShareMountTargetContext object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfacePrototypeShareMountTargetContext') -> bool: + def __eq__( + self, + other: 'ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfacePrototypeShareMountTargetContext', + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfacePrototypeShareMountTargetContext') -> bool: + def __ne__( + self, + other: 'ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfacePrototypeShareMountTargetContext', + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other @@ -134963,7 +136913,6 @@ class ProtocolStateFilteringModeEnum(str, Enum): ENABLED = 'enabled' - class ShareProfileCapacityDependentRange(ShareProfileCapacity): """ The permitted total capacity (in gigabytes) of a share with this profile depends on @@ -135062,7 +137011,6 @@ class TypeEnum(str, Enum): DEPENDENT_RANGE = 'dependent_range' - class ShareProfileCapacityEnum(ShareProfileCapacity): """ The permitted total capacities (in gigabytes) of a share with this profile. @@ -135140,7 +137088,6 @@ class TypeEnum(str, Enum): ENUM = 'enum' - class ShareProfileCapacityFixed(ShareProfileCapacity): """ The permitted total capacity (in gigabytes) of a share with this profile is fixed. @@ -135218,7 +137165,6 @@ class TypeEnum(str, Enum): FIXED = 'fixed' - class ShareProfileCapacityRange(ShareProfileCapacity): """ The permitted total capacity range (in gigabytes) of a share with this profile. @@ -135326,7 +137272,6 @@ class TypeEnum(str, Enum): RANGE = 'range' - class ShareProfileIOPSDependentRange(ShareProfileIOPS): """ The permitted IOPS range of a share with this profile depends on its configuration. @@ -135424,7 +137369,6 @@ class TypeEnum(str, Enum): DEPENDENT_RANGE = 'dependent_range' - class ShareProfileIOPSEnum(ShareProfileIOPS): """ The permitted IOPS values of a share with this profile. @@ -135512,7 +137456,6 @@ class TypeEnum(str, Enum): ENUM = 'enum' - class ShareProfileIOPSFixed(ShareProfileIOPS): """ The permitted IOPS of a share with this profile is fixed. @@ -135590,7 +137533,6 @@ class TypeEnum(str, Enum): FIXED = 'fixed' - class ShareProfileIOPSRange(ShareProfileIOPS): """ The permitted IOPS range of a share with this profile. @@ -135698,7 +137640,6 @@ class TypeEnum(str, Enum): RANGE = 'range' - class ShareProfileIdentityByHref(ShareProfileIdentity): """ ShareProfileIdentityByHref. @@ -135974,7 +137915,6 @@ class AllowedTransitEncryptionModesEnum(str, Enum): USER_MANAGED = 'user_managed' - class SharePrototypeShareBySize(SharePrototype): """ Create a file share by size. @@ -136246,7 +138186,6 @@ class AllowedTransitEncryptionModesEnum(str, Enum): NONE = 'none' USER_MANAGED = 'user_managed' - class AccessControlModeEnum(str, Enum): """ The access control mode for the share: @@ -136262,7 +138201,6 @@ class AccessControlModeEnum(str, Enum): VPC = 'vpc' - class SharePrototypeShareBySourceShare(SharePrototype): """ Create a replica file share for an existing file share. The values for @@ -136430,7 +138368,9 @@ def from_dict(cls, _dict: Dict) -> 'SharePrototypeShareBySourceShare': if (replication_cron_spec := _dict.get('replication_cron_spec')) is not None: args['replication_cron_spec'] = replication_cron_spec else: - raise ValueError('Required property \'replication_cron_spec\' not present in SharePrototypeShareBySourceShare JSON') + raise ValueError( + 'Required property \'replication_cron_spec\' not present in SharePrototypeShareBySourceShare JSON' + ) if (resource_group := _dict.get('resource_group')) is not None: args['resource_group'] = resource_group if (source_share := _dict.get('source_share')) is not None: @@ -136533,7 +138473,6 @@ class AllowedTransitEncryptionModesEnum(str, Enum): USER_MANAGED = 'user_managed' - class SnapshotConsistencyGroupPrototypeSnapshotConsistencyGroupBySnapshots(SnapshotConsistencyGroupPrototype): """ SnapshotConsistencyGroupPrototypeSnapshotConsistencyGroupBySnapshots. @@ -136593,7 +138532,9 @@ def from_dict(cls, _dict: Dict) -> 'SnapshotConsistencyGroupPrototypeSnapshotCon if (snapshots := _dict.get('snapshots')) is not None: args['snapshots'] = [SnapshotPrototypeSnapshotConsistencyGroupContext.from_dict(v) for v in snapshots] else: - raise ValueError('Required property \'snapshots\' not present in SnapshotConsistencyGroupPrototypeSnapshotConsistencyGroupBySnapshots JSON') + raise ValueError( + 'Required property \'snapshots\' not present in SnapshotConsistencyGroupPrototypeSnapshotConsistencyGroupBySnapshots JSON' + ) return cls(**args) @classmethod @@ -136915,7 +138856,9 @@ def from_dict(cls, _dict: Dict) -> 'SnapshotPrototypeSnapshotBySourceSnapshot': if (source_snapshot := _dict.get('source_snapshot')) is not None: args['source_snapshot'] = SnapshotIdentityByCRN.from_dict(source_snapshot) else: - raise ValueError('Required property \'source_snapshot\' not present in SnapshotPrototypeSnapshotBySourceSnapshot JSON') + raise ValueError( + 'Required property \'source_snapshot\' not present in SnapshotPrototypeSnapshotBySourceSnapshot JSON' + ) return cls(**args) @classmethod @@ -137036,7 +138979,9 @@ def from_dict(cls, _dict: Dict) -> 'SnapshotPrototypeSnapshotBySourceVolume': if (source_volume := _dict.get('source_volume')) is not None: args['source_volume'] = source_volume else: - raise ValueError('Required property \'source_volume\' not present in SnapshotPrototypeSnapshotBySourceVolume JSON') + raise ValueError( + 'Required property \'source_volume\' not present in SnapshotPrototypeSnapshotBySourceVolume JSON' + ) return cls(**args) @classmethod @@ -137454,7 +139399,6 @@ class IpVersionEnum(str, Enum): IPV4 = 'ipv4' - class SubnetPrototypeSubnetByTotalCount(SubnetPrototype): """ SubnetPrototypeSubnetByTotalCount. @@ -137555,7 +139499,9 @@ def from_dict(cls, _dict: Dict) -> 'SubnetPrototypeSubnetByTotalCount': if (total_ipv4_address_count := _dict.get('total_ipv4_address_count')) is not None: args['total_ipv4_address_count'] = total_ipv4_address_count else: - raise ValueError('Required property \'total_ipv4_address_count\' not present in SubnetPrototypeSubnetByTotalCount JSON') + raise ValueError( + 'Required property \'total_ipv4_address_count\' not present in SubnetPrototypeSubnetByTotalCount JSON' + ) if (zone := _dict.get('zone')) is not None: args['zone'] = zone else: @@ -137634,7 +139580,6 @@ class IpVersionEnum(str, Enum): IPV4 = 'ipv4' - class SubnetPublicGatewayPatchPublicGatewayIdentityByCRN(SubnetPublicGatewayPatch): """ SubnetPublicGatewayPatchPublicGatewayIdentityByCRN. @@ -137661,7 +139606,9 @@ def from_dict(cls, _dict: Dict) -> 'SubnetPublicGatewayPatchPublicGatewayIdentit if (crn := _dict.get('crn')) is not None: args['crn'] = crn else: - raise ValueError('Required property \'crn\' not present in SubnetPublicGatewayPatchPublicGatewayIdentityByCRN JSON') + raise ValueError( + 'Required property \'crn\' not present in SubnetPublicGatewayPatchPublicGatewayIdentityByCRN JSON' + ) return cls(**args) @classmethod @@ -137721,7 +139668,9 @@ def from_dict(cls, _dict: Dict) -> 'SubnetPublicGatewayPatchPublicGatewayIdentit if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in SubnetPublicGatewayPatchPublicGatewayIdentityByHref JSON') + raise ValueError( + 'Required property \'href\' not present in SubnetPublicGatewayPatchPublicGatewayIdentityByHref JSON' + ) return cls(**args) @classmethod @@ -137781,7 +139730,9 @@ def from_dict(cls, _dict: Dict) -> 'SubnetPublicGatewayPatchPublicGatewayIdentit if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in SubnetPublicGatewayPatchPublicGatewayIdentityById JSON') + raise ValueError( + 'Required property \'id\' not present in SubnetPublicGatewayPatchPublicGatewayIdentityById JSON' + ) return cls(**args) @classmethod @@ -137987,11 +139938,15 @@ def from_dict(cls, _dict: Dict) -> 'VPCDNSResolverPrototypeVPCDNSResolverTypeMan if (manual_servers := _dict.get('manual_servers')) is not None: args['manual_servers'] = [DNSServerPrototype.from_dict(v) for v in manual_servers] else: - raise ValueError('Required property \'manual_servers\' not present in VPCDNSResolverPrototypeVPCDNSResolverTypeManualPrototype JSON') + raise ValueError( + 'Required property \'manual_servers\' not present in VPCDNSResolverPrototypeVPCDNSResolverTypeManualPrototype JSON' + ) if (type := _dict.get('type')) is not None: args['type'] = type else: - raise ValueError('Required property \'type\' not present in VPCDNSResolverPrototypeVPCDNSResolverTypeManualPrototype JSON') + raise ValueError( + 'Required property \'type\' not present in VPCDNSResolverPrototypeVPCDNSResolverTypeManualPrototype JSON' + ) return cls(**args) @classmethod @@ -138040,7 +139995,6 @@ class TypeEnum(str, Enum): MANUAL = 'manual' - class VPCDNSResolverPrototypeVPCDNSResolverTypeSystemPrototype(VPCDNSResolverPrototype): """ The system will provide DNS server addresses for this VPC. The system-provided DNS @@ -138111,7 +140065,6 @@ class TypeEnum(str, Enum): SYSTEM = 'system' - class VPCDNSResolverTypeDelegated(VPCDNSResolver): """ The DNS server addresses are delegated to the DNS resolver of another VPC. @@ -138229,7 +140182,6 @@ class TypeEnum(str, Enum): DELEGATED = 'delegated' - class VPCDNSResolverTypeManual(VPCDNSResolver): """ The DNS server addresses are manually specified. @@ -138368,7 +140320,6 @@ class TypeEnum(str, Enum): MANUAL = 'manual' - class VPCDNSResolverTypeSystem(VPCDNSResolver): """ The DNS server addresses are provided by the system and depend on the configuration. @@ -138522,7 +140473,6 @@ class ConfigurationEnum(str, Enum): DEFAULT = 'default' PRIVATE_RESOLVER = 'private_resolver' - class TypeEnum(str, Enum): """ The type of the DNS resolver used for the VPC. @@ -138531,7 +140481,6 @@ class TypeEnum(str, Enum): SYSTEM = 'system' - class VPCDNSResolverVPCPatchVPCIdentityByCRN(VPCDNSResolverVPCPatch): """ VPCDNSResolverVPCPatchVPCIdentityByCRN. @@ -138892,7 +140841,9 @@ def __ne__(self, other: 'VPCIdentityById') -> bool: return not self == other -class VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityFQDN(VPNGatewayConnectionIKEIdentityPrototype): +class VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityFQDN( + VPNGatewayConnectionIKEIdentityPrototype +): """ VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityFQDN. @@ -138922,11 +140873,15 @@ def from_dict(cls, _dict: Dict) -> 'VPNGatewayConnectionIKEIdentityPrototypeVPNG if (type := _dict.get('type')) is not None: args['type'] = type else: - raise ValueError('Required property \'type\' not present in VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityFQDN JSON') + raise ValueError( + 'Required property \'type\' not present in VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityFQDN JSON' + ) if (value := _dict.get('value')) is not None: args['value'] = value else: - raise ValueError('Required property \'value\' not present in VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityFQDN JSON') + raise ValueError( + 'Required property \'value\' not present in VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityFQDN JSON' + ) return cls(**args) @classmethod @@ -138972,8 +140927,9 @@ class TypeEnum(str, Enum): KEY_ID = 'key_id' - -class VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityHostname(VPNGatewayConnectionIKEIdentityPrototype): +class VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityHostname( + VPNGatewayConnectionIKEIdentityPrototype +): """ VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityHostname. @@ -138997,17 +140953,23 @@ def __init__( self.value = value @classmethod - def from_dict(cls, _dict: Dict) -> 'VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityHostname': + def from_dict( + cls, _dict: Dict + ) -> 'VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityHostname': """Initialize a VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityHostname object from a json dictionary.""" args = {} if (type := _dict.get('type')) is not None: args['type'] = type else: - raise ValueError('Required property \'type\' not present in VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityHostname JSON') + raise ValueError( + 'Required property \'type\' not present in VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityHostname JSON' + ) if (value := _dict.get('value')) is not None: args['value'] = value else: - raise ValueError('Required property \'value\' not present in VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityHostname JSON') + raise ValueError( + 'Required property \'value\' not present in VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityHostname JSON' + ) return cls(**args) @classmethod @@ -139053,8 +141015,9 @@ class TypeEnum(str, Enum): KEY_ID = 'key_id' - -class VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityIPv4(VPNGatewayConnectionIKEIdentityPrototype): +class VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityIPv4( + VPNGatewayConnectionIKEIdentityPrototype +): """ VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityIPv4. @@ -139084,11 +141047,15 @@ def from_dict(cls, _dict: Dict) -> 'VPNGatewayConnectionIKEIdentityPrototypeVPNG if (type := _dict.get('type')) is not None: args['type'] = type else: - raise ValueError('Required property \'type\' not present in VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityIPv4 JSON') + raise ValueError( + 'Required property \'type\' not present in VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityIPv4 JSON' + ) if (value := _dict.get('value')) is not None: args['value'] = value else: - raise ValueError('Required property \'value\' not present in VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityIPv4 JSON') + raise ValueError( + 'Required property \'value\' not present in VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityIPv4 JSON' + ) return cls(**args) @classmethod @@ -139134,8 +141101,9 @@ class TypeEnum(str, Enum): KEY_ID = 'key_id' - -class VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityKeyID(VPNGatewayConnectionIKEIdentityPrototype): +class VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityKeyID( + VPNGatewayConnectionIKEIdentityPrototype +): """ VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityKeyID. @@ -139165,11 +141133,15 @@ def from_dict(cls, _dict: Dict) -> 'VPNGatewayConnectionIKEIdentityPrototypeVPNG if (type := _dict.get('type')) is not None: args['type'] = type else: - raise ValueError('Required property \'type\' not present in VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityKeyID JSON') + raise ValueError( + 'Required property \'type\' not present in VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityKeyID JSON' + ) if (value := _dict.get('value')) is not None: args['value'] = value else: - raise ValueError('Required property \'value\' not present in VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityKeyID JSON') + raise ValueError( + 'Required property \'value\' not present in VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityKeyID JSON' + ) return cls(**args) @classmethod @@ -139215,7 +141187,6 @@ class TypeEnum(str, Enum): KEY_ID = 'key_id' - class VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityFQDN(VPNGatewayConnectionIKEIdentity): """ VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityFQDN. @@ -139252,11 +141223,15 @@ def from_dict(cls, _dict: Dict) -> 'VPNGatewayConnectionIKEIdentityVPNGatewayCon if (type := _dict.get('type')) is not None: args['type'] = type else: - raise ValueError('Required property \'type\' not present in VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityFQDN JSON') + raise ValueError( + 'Required property \'type\' not present in VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityFQDN JSON' + ) if (value := _dict.get('value')) is not None: args['value'] = value else: - raise ValueError('Required property \'value\' not present in VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityFQDN JSON') + raise ValueError( + 'Required property \'value\' not present in VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityFQDN JSON' + ) return cls(**args) @classmethod @@ -139305,7 +141280,6 @@ class TypeEnum(str, Enum): KEY_ID = 'key_id' - class VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityHostname(VPNGatewayConnectionIKEIdentity): """ VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityHostname. @@ -139342,11 +141316,15 @@ def from_dict(cls, _dict: Dict) -> 'VPNGatewayConnectionIKEIdentityVPNGatewayCon if (type := _dict.get('type')) is not None: args['type'] = type else: - raise ValueError('Required property \'type\' not present in VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityHostname JSON') + raise ValueError( + 'Required property \'type\' not present in VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityHostname JSON' + ) if (value := _dict.get('value')) is not None: args['value'] = value else: - raise ValueError('Required property \'value\' not present in VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityHostname JSON') + raise ValueError( + 'Required property \'value\' not present in VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityHostname JSON' + ) return cls(**args) @classmethod @@ -139395,7 +141373,6 @@ class TypeEnum(str, Enum): KEY_ID = 'key_id' - class VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityIPv4(VPNGatewayConnectionIKEIdentity): """ VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityIPv4. @@ -139432,11 +141409,15 @@ def from_dict(cls, _dict: Dict) -> 'VPNGatewayConnectionIKEIdentityVPNGatewayCon if (type := _dict.get('type')) is not None: args['type'] = type else: - raise ValueError('Required property \'type\' not present in VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityIPv4 JSON') + raise ValueError( + 'Required property \'type\' not present in VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityIPv4 JSON' + ) if (value := _dict.get('value')) is not None: args['value'] = value else: - raise ValueError('Required property \'value\' not present in VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityIPv4 JSON') + raise ValueError( + 'Required property \'value\' not present in VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityIPv4 JSON' + ) return cls(**args) @classmethod @@ -139485,7 +141466,6 @@ class TypeEnum(str, Enum): KEY_ID = 'key_id' - class VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityKeyID(VPNGatewayConnectionIKEIdentity): """ VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityKeyID. @@ -139522,11 +141502,15 @@ def from_dict(cls, _dict: Dict) -> 'VPNGatewayConnectionIKEIdentityVPNGatewayCon if (type := _dict.get('type')) is not None: args['type'] = type else: - raise ValueError('Required property \'type\' not present in VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityKeyID JSON') + raise ValueError( + 'Required property \'type\' not present in VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityKeyID JSON' + ) if (value := _dict.get('value')) is not None: args['value'] = value else: - raise ValueError('Required property \'value\' not present in VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityKeyID JSON') + raise ValueError( + 'Required property \'value\' not present in VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityKeyID JSON' + ) return cls(**args) @classmethod @@ -139575,7 +141559,6 @@ class TypeEnum(str, Enum): KEY_ID = 'key_id' - class VPNGatewayConnectionIKEPolicyPatchIKEPolicyIdentityByHref(VPNGatewayConnectionIKEPolicyPatch): """ VPNGatewayConnectionIKEPolicyPatchIKEPolicyIdentityByHref. @@ -139602,7 +141585,9 @@ def from_dict(cls, _dict: Dict) -> 'VPNGatewayConnectionIKEPolicyPatchIKEPolicyI if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in VPNGatewayConnectionIKEPolicyPatchIKEPolicyIdentityByHref JSON') + raise ValueError( + 'Required property \'href\' not present in VPNGatewayConnectionIKEPolicyPatchIKEPolicyIdentityByHref JSON' + ) return cls(**args) @classmethod @@ -139662,7 +141647,9 @@ def from_dict(cls, _dict: Dict) -> 'VPNGatewayConnectionIKEPolicyPatchIKEPolicyI if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in VPNGatewayConnectionIKEPolicyPatchIKEPolicyIdentityById JSON') + raise ValueError( + 'Required property \'id\' not present in VPNGatewayConnectionIKEPolicyPatchIKEPolicyIdentityById JSON' + ) return cls(**args) @classmethod @@ -139722,7 +141709,9 @@ def from_dict(cls, _dict: Dict) -> 'VPNGatewayConnectionIKEPolicyPrototypeIKEPol if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in VPNGatewayConnectionIKEPolicyPrototypeIKEPolicyIdentityByHref JSON') + raise ValueError( + 'Required property \'href\' not present in VPNGatewayConnectionIKEPolicyPrototypeIKEPolicyIdentityByHref JSON' + ) return cls(**args) @classmethod @@ -139782,7 +141771,9 @@ def from_dict(cls, _dict: Dict) -> 'VPNGatewayConnectionIKEPolicyPrototypeIKEPol if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in VPNGatewayConnectionIKEPolicyPrototypeIKEPolicyIdentityById JSON') + raise ValueError( + 'Required property \'id\' not present in VPNGatewayConnectionIKEPolicyPrototypeIKEPolicyIdentityById JSON' + ) return cls(**args) @classmethod @@ -139842,7 +141833,9 @@ def from_dict(cls, _dict: Dict) -> 'VPNGatewayConnectionIPsecPolicyPatchIPsecPol if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in VPNGatewayConnectionIPsecPolicyPatchIPsecPolicyIdentityByHref JSON') + raise ValueError( + 'Required property \'href\' not present in VPNGatewayConnectionIPsecPolicyPatchIPsecPolicyIdentityByHref JSON' + ) return cls(**args) @classmethod @@ -139902,7 +141895,9 @@ def from_dict(cls, _dict: Dict) -> 'VPNGatewayConnectionIPsecPolicyPatchIPsecPol if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in VPNGatewayConnectionIPsecPolicyPatchIPsecPolicyIdentityById JSON') + raise ValueError( + 'Required property \'id\' not present in VPNGatewayConnectionIPsecPolicyPatchIPsecPolicyIdentityById JSON' + ) return cls(**args) @classmethod @@ -139962,7 +141957,9 @@ def from_dict(cls, _dict: Dict) -> 'VPNGatewayConnectionIPsecPolicyPrototypeIPse if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in VPNGatewayConnectionIPsecPolicyPrototypeIPsecPolicyIdentityByHref JSON') + raise ValueError( + 'Required property \'href\' not present in VPNGatewayConnectionIPsecPolicyPrototypeIPsecPolicyIdentityByHref JSON' + ) return cls(**args) @classmethod @@ -140022,7 +142019,9 @@ def from_dict(cls, _dict: Dict) -> 'VPNGatewayConnectionIPsecPolicyPrototypeIPse if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in VPNGatewayConnectionIPsecPolicyPrototypeIPsecPolicyIdentityById JSON') + raise ValueError( + 'Required property \'id\' not present in VPNGatewayConnectionIPsecPolicyPrototypeIPsecPolicyIdentityById JSON' + ) return cls(**args) @classmethod @@ -140073,7 +142072,12 @@ def __init__( """ # pylint: disable=super-init-not-called msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['VPNGatewayConnectionPeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPeerAddressPatch', 'VPNGatewayConnectionPeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPeerFQDNPatch']) + ", ".join( + [ + 'VPNGatewayConnectionPeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPeerAddressPatch', + 'VPNGatewayConnectionPeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPeerFQDNPatch', + ] + ) ) raise Exception(msg) @@ -140095,7 +142099,12 @@ def __init__( """ # pylint: disable=super-init-not-called msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['VPNGatewayConnectionPeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionPeerAddressPatch', 'VPNGatewayConnectionPeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionPeerFQDNPatch']) + ", ".join( + [ + 'VPNGatewayConnectionPeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionPeerAddressPatch', + 'VPNGatewayConnectionPeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionPeerFQDNPatch', + ] + ) ) raise Exception(msg) @@ -140242,7 +142251,9 @@ def from_dict(cls, _dict: Dict) -> 'VPNGatewayConnectionPolicyMode': if (authentication_mode := _dict.get('authentication_mode')) is not None: args['authentication_mode'] = authentication_mode else: - raise ValueError('Required property \'authentication_mode\' not present in VPNGatewayConnectionPolicyMode JSON') + raise ValueError( + 'Required property \'authentication_mode\' not present in VPNGatewayConnectionPolicyMode JSON' + ) if (created_at := _dict.get('created_at')) is not None: args['created_at'] = string_to_datetime(created_at) else: @@ -140250,7 +142261,9 @@ def from_dict(cls, _dict: Dict) -> 'VPNGatewayConnectionPolicyMode': if (dead_peer_detection := _dict.get('dead_peer_detection')) is not None: args['dead_peer_detection'] = VPNGatewayConnectionDPD.from_dict(dead_peer_detection) else: - raise ValueError('Required property \'dead_peer_detection\' not present in VPNGatewayConnectionPolicyMode JSON') + raise ValueError( + 'Required property \'dead_peer_detection\' not present in VPNGatewayConnectionPolicyMode JSON' + ) if (establish_mode := _dict.get('establish_mode')) is not None: args['establish_mode'] = establish_mode else: @@ -140394,7 +142407,6 @@ class AuthenticationModeEnum(str, Enum): PSK = 'psk' - class EstablishModeEnum(str, Enum): """ The establish mode of the VPN gateway connection: @@ -140412,7 +142424,6 @@ class EstablishModeEnum(str, Enum): BIDIRECTIONAL = 'bidirectional' PEER_ONLY = 'peer_only' - class ModeEnum(str, Enum): """ The mode of the VPN gateway. @@ -140424,7 +142435,6 @@ class ModeEnum(str, Enum): POLICY = 'policy' ROUTE = 'route' - class ResourceTypeEnum(str, Enum): """ The resource type. @@ -140432,7 +142442,6 @@ class ResourceTypeEnum(str, Enum): VPN_GATEWAY_CONNECTION = 'vpn_gateway_connection' - class StatusEnum(str, Enum): """ The status of a VPN gateway connection. @@ -140442,8 +142451,9 @@ class StatusEnum(str, Enum): UP = 'up' - -class VPNGatewayConnectionPolicyModePeerPrototypeVPNGatewayConnectionPeerByAddress(VPNGatewayConnectionPolicyModePeerPrototype): +class VPNGatewayConnectionPolicyModePeerPrototypeVPNGatewayConnectionPeerByAddress( + VPNGatewayConnectionPolicyModePeerPrototype +): """ VPNGatewayConnectionPolicyModePeerPrototypeVPNGatewayConnectionPeerByAddress. @@ -140491,13 +142501,17 @@ def from_dict(cls, _dict: Dict) -> 'VPNGatewayConnectionPolicyModePeerPrototypeV if (cidrs := _dict.get('cidrs')) is not None: args['cidrs'] = cidrs else: - raise ValueError('Required property \'cidrs\' not present in VPNGatewayConnectionPolicyModePeerPrototypeVPNGatewayConnectionPeerByAddress JSON') + raise ValueError( + 'Required property \'cidrs\' not present in VPNGatewayConnectionPolicyModePeerPrototypeVPNGatewayConnectionPeerByAddress JSON' + ) if (ike_identity := _dict.get('ike_identity')) is not None: args['ike_identity'] = ike_identity if (address := _dict.get('address')) is not None: args['address'] = address else: - raise ValueError('Required property \'address\' not present in VPNGatewayConnectionPolicyModePeerPrototypeVPNGatewayConnectionPeerByAddress JSON') + raise ValueError( + 'Required property \'address\' not present in VPNGatewayConnectionPolicyModePeerPrototypeVPNGatewayConnectionPeerByAddress JSON' + ) return cls(**args) @classmethod @@ -140538,7 +142552,9 @@ def __ne__(self, other: 'VPNGatewayConnectionPolicyModePeerPrototypeVPNGatewayCo return not self == other -class VPNGatewayConnectionPolicyModePeerPrototypeVPNGatewayConnectionPeerByFQDN(VPNGatewayConnectionPolicyModePeerPrototype): +class VPNGatewayConnectionPolicyModePeerPrototypeVPNGatewayConnectionPeerByFQDN( + VPNGatewayConnectionPolicyModePeerPrototype +): """ VPNGatewayConnectionPolicyModePeerPrototypeVPNGatewayConnectionPeerByFQDN. @@ -140585,13 +142601,17 @@ def from_dict(cls, _dict: Dict) -> 'VPNGatewayConnectionPolicyModePeerPrototypeV if (cidrs := _dict.get('cidrs')) is not None: args['cidrs'] = cidrs else: - raise ValueError('Required property \'cidrs\' not present in VPNGatewayConnectionPolicyModePeerPrototypeVPNGatewayConnectionPeerByFQDN JSON') + raise ValueError( + 'Required property \'cidrs\' not present in VPNGatewayConnectionPolicyModePeerPrototypeVPNGatewayConnectionPeerByFQDN JSON' + ) if (ike_identity := _dict.get('ike_identity')) is not None: args['ike_identity'] = ike_identity if (fqdn := _dict.get('fqdn')) is not None: args['fqdn'] = fqdn else: - raise ValueError('Required property \'fqdn\' not present in VPNGatewayConnectionPolicyModePeerPrototypeVPNGatewayConnectionPeerByFQDN JSON') + raise ValueError( + 'Required property \'fqdn\' not present in VPNGatewayConnectionPolicyModePeerPrototypeVPNGatewayConnectionPeerByFQDN JSON' + ) return cls(**args) @classmethod @@ -140671,19 +142691,27 @@ def from_dict(cls, _dict: Dict) -> 'VPNGatewayConnectionPolicyModePeerVPNGateway if (cidrs := _dict.get('cidrs')) is not None: args['cidrs'] = cidrs else: - raise ValueError('Required property \'cidrs\' not present in VPNGatewayConnectionPolicyModePeerVPNGatewayConnectionPeerByAddress JSON') + raise ValueError( + 'Required property \'cidrs\' not present in VPNGatewayConnectionPolicyModePeerVPNGatewayConnectionPeerByAddress JSON' + ) if (ike_identity := _dict.get('ike_identity')) is not None: args['ike_identity'] = ike_identity else: - raise ValueError('Required property \'ike_identity\' not present in VPNGatewayConnectionPolicyModePeerVPNGatewayConnectionPeerByAddress JSON') + raise ValueError( + 'Required property \'ike_identity\' not present in VPNGatewayConnectionPolicyModePeerVPNGatewayConnectionPeerByAddress JSON' + ) if (type := _dict.get('type')) is not None: args['type'] = type else: - raise ValueError('Required property \'type\' not present in VPNGatewayConnectionPolicyModePeerVPNGatewayConnectionPeerByAddress JSON') + raise ValueError( + 'Required property \'type\' not present in VPNGatewayConnectionPolicyModePeerVPNGatewayConnectionPeerByAddress JSON' + ) if (address := _dict.get('address')) is not None: args['address'] = address else: - raise ValueError('Required property \'address\' not present in VPNGatewayConnectionPolicyModePeerVPNGatewayConnectionPeerByAddress JSON') + raise ValueError( + 'Required property \'address\' not present in VPNGatewayConnectionPolicyModePeerVPNGatewayConnectionPeerByAddress JSON' + ) return cls(**args) @classmethod @@ -140734,7 +142762,6 @@ class TypeEnum(str, Enum): FQDN = 'fqdn' - class VPNGatewayConnectionPolicyModePeerVPNGatewayConnectionPeerByFQDN(VPNGatewayConnectionPolicyModePeer): """ VPNGatewayConnectionPolicyModePeerVPNGatewayConnectionPeerByFQDN. @@ -140773,19 +142800,27 @@ def from_dict(cls, _dict: Dict) -> 'VPNGatewayConnectionPolicyModePeerVPNGateway if (cidrs := _dict.get('cidrs')) is not None: args['cidrs'] = cidrs else: - raise ValueError('Required property \'cidrs\' not present in VPNGatewayConnectionPolicyModePeerVPNGatewayConnectionPeerByFQDN JSON') + raise ValueError( + 'Required property \'cidrs\' not present in VPNGatewayConnectionPolicyModePeerVPNGatewayConnectionPeerByFQDN JSON' + ) if (ike_identity := _dict.get('ike_identity')) is not None: args['ike_identity'] = ike_identity else: - raise ValueError('Required property \'ike_identity\' not present in VPNGatewayConnectionPolicyModePeerVPNGatewayConnectionPeerByFQDN JSON') + raise ValueError( + 'Required property \'ike_identity\' not present in VPNGatewayConnectionPolicyModePeerVPNGatewayConnectionPeerByFQDN JSON' + ) if (type := _dict.get('type')) is not None: args['type'] = type else: - raise ValueError('Required property \'type\' not present in VPNGatewayConnectionPolicyModePeerVPNGatewayConnectionPeerByFQDN JSON') + raise ValueError( + 'Required property \'type\' not present in VPNGatewayConnectionPolicyModePeerVPNGatewayConnectionPeerByFQDN JSON' + ) if (fqdn := _dict.get('fqdn')) is not None: args['fqdn'] = fqdn else: - raise ValueError('Required property \'fqdn\' not present in VPNGatewayConnectionPolicyModePeerVPNGatewayConnectionPeerByFQDN JSON') + raise ValueError( + 'Required property \'fqdn\' not present in VPNGatewayConnectionPolicyModePeerVPNGatewayConnectionPeerByFQDN JSON' + ) return cls(**args) @classmethod @@ -140836,7 +142871,6 @@ class TypeEnum(str, Enum): FQDN = 'fqdn' - class VPNGatewayConnectionPrototypeVPNGatewayConnectionPolicyModePrototype(VPNGatewayConnectionPrototype): """ VPNGatewayConnectionPrototypeVPNGatewayConnectionPolicyModePrototype. @@ -140934,15 +142968,21 @@ def from_dict(cls, _dict: Dict) -> 'VPNGatewayConnectionPrototypeVPNGatewayConne if (psk := _dict.get('psk')) is not None: args['psk'] = psk else: - raise ValueError('Required property \'psk\' not present in VPNGatewayConnectionPrototypeVPNGatewayConnectionPolicyModePrototype JSON') + raise ValueError( + 'Required property \'psk\' not present in VPNGatewayConnectionPrototypeVPNGatewayConnectionPolicyModePrototype JSON' + ) if (local := _dict.get('local')) is not None: args['local'] = VPNGatewayConnectionPolicyModeLocalPrototype.from_dict(local) else: - raise ValueError('Required property \'local\' not present in VPNGatewayConnectionPrototypeVPNGatewayConnectionPolicyModePrototype JSON') + raise ValueError( + 'Required property \'local\' not present in VPNGatewayConnectionPrototypeVPNGatewayConnectionPolicyModePrototype JSON' + ) if (peer := _dict.get('peer')) is not None: args['peer'] = peer else: - raise ValueError('Required property \'peer\' not present in VPNGatewayConnectionPrototypeVPNGatewayConnectionPolicyModePrototype JSON') + raise ValueError( + 'Required property \'peer\' not present in VPNGatewayConnectionPrototypeVPNGatewayConnectionPolicyModePrototype JSON' + ) return cls(**args) @classmethod @@ -141024,7 +143064,6 @@ class EstablishModeEnum(str, Enum): PEER_ONLY = 'peer_only' - class VPNGatewayConnectionPrototypeVPNGatewayConnectionStaticRouteModePrototype(VPNGatewayConnectionPrototype): """ VPNGatewayConnectionPrototypeVPNGatewayConnectionStaticRouteModePrototype. @@ -141144,7 +143183,9 @@ def from_dict(cls, _dict: Dict) -> 'VPNGatewayConnectionPrototypeVPNGatewayConne if (psk := _dict.get('psk')) is not None: args['psk'] = psk else: - raise ValueError('Required property \'psk\' not present in VPNGatewayConnectionPrototypeVPNGatewayConnectionStaticRouteModePrototype JSON') + raise ValueError( + 'Required property \'psk\' not present in VPNGatewayConnectionPrototypeVPNGatewayConnectionStaticRouteModePrototype JSON' + ) if (distribute_traffic := _dict.get('distribute_traffic')) is not None: args['distribute_traffic'] = distribute_traffic if (local := _dict.get('local')) is not None: @@ -141152,7 +143193,9 @@ def from_dict(cls, _dict: Dict) -> 'VPNGatewayConnectionPrototypeVPNGatewayConne if (peer := _dict.get('peer')) is not None: args['peer'] = peer else: - raise ValueError('Required property \'peer\' not present in VPNGatewayConnectionPrototypeVPNGatewayConnectionStaticRouteModePrototype JSON') + raise ValueError( + 'Required property \'peer\' not present in VPNGatewayConnectionPrototypeVPNGatewayConnectionStaticRouteModePrototype JSON' + ) if (routing_protocol := _dict.get('routing_protocol')) is not None: args['routing_protocol'] = routing_protocol return cls(**args) @@ -141239,7 +143282,6 @@ class EstablishModeEnum(str, Enum): BIDIRECTIONAL = 'bidirectional' PEER_ONLY = 'peer_only' - class RoutingProtocolEnum(str, Enum): """ Routing protocols are disabled for this VPN gateway connection. @@ -141248,7 +143290,6 @@ class RoutingProtocolEnum(str, Enum): NONE = 'none' - class VPNGatewayConnectionRouteMode(VPNGatewayConnection): """ VPNGatewayConnectionRouteMode. @@ -141383,7 +143424,9 @@ def _get_class_by_discriminator(cls, _dict: Dict) -> object: mapping['none'] = 'VPNGatewayConnectionRouteModeVPNGatewayConnectionStaticRouteMode' disc_value = _dict.get('routing_protocol') if disc_value is None: - raise ValueError('Discriminator property \'routing_protocol\' not found in VPNGatewayConnectionRouteMode JSON') + raise ValueError( + 'Discriminator property \'routing_protocol\' not found in VPNGatewayConnectionRouteMode JSON' + ) class_name = mapping.get(disc_value, disc_value) try: disc_class = getattr(sys.modules[__name__], class_name) @@ -141403,7 +143446,6 @@ class AuthenticationModeEnum(str, Enum): PSK = 'psk' - class EstablishModeEnum(str, Enum): """ The establish mode of the VPN gateway connection: @@ -141421,7 +143463,6 @@ class EstablishModeEnum(str, Enum): BIDIRECTIONAL = 'bidirectional' PEER_ONLY = 'peer_only' - class ModeEnum(str, Enum): """ The mode of the VPN gateway. @@ -141433,7 +143474,6 @@ class ModeEnum(str, Enum): POLICY = 'policy' ROUTE = 'route' - class ResourceTypeEnum(str, Enum): """ The resource type. @@ -141441,7 +143481,6 @@ class ResourceTypeEnum(str, Enum): VPN_GATEWAY_CONNECTION = 'vpn_gateway_connection' - class StatusEnum(str, Enum): """ The status of a VPN gateway connection. @@ -141451,8 +143490,9 @@ class StatusEnum(str, Enum): UP = 'up' - -class VPNGatewayConnectionStaticRouteModePeerPrototypeVPNGatewayConnectionPeerByAddress(VPNGatewayConnectionStaticRouteModePeerPrototype): +class VPNGatewayConnectionStaticRouteModePeerPrototypeVPNGatewayConnectionPeerByAddress( + VPNGatewayConnectionStaticRouteModePeerPrototype +): """ VPNGatewayConnectionStaticRouteModePeerPrototypeVPNGatewayConnectionPeerByAddress. @@ -141490,7 +143530,9 @@ def __init__( self.address = address @classmethod - def from_dict(cls, _dict: Dict) -> 'VPNGatewayConnectionStaticRouteModePeerPrototypeVPNGatewayConnectionPeerByAddress': + def from_dict( + cls, _dict: Dict + ) -> 'VPNGatewayConnectionStaticRouteModePeerPrototypeVPNGatewayConnectionPeerByAddress': """Initialize a VPNGatewayConnectionStaticRouteModePeerPrototypeVPNGatewayConnectionPeerByAddress object from a json dictionary.""" args = {} if (ike_identity := _dict.get('ike_identity')) is not None: @@ -141498,7 +143540,9 @@ def from_dict(cls, _dict: Dict) -> 'VPNGatewayConnectionStaticRouteModePeerProto if (address := _dict.get('address')) is not None: args['address'] = address else: - raise ValueError('Required property \'address\' not present in VPNGatewayConnectionStaticRouteModePeerPrototypeVPNGatewayConnectionPeerByAddress JSON') + raise ValueError( + 'Required property \'address\' not present in VPNGatewayConnectionStaticRouteModePeerPrototypeVPNGatewayConnectionPeerByAddress JSON' + ) return cls(**args) @classmethod @@ -141526,18 +143570,24 @@ def __str__(self) -> str: """Return a `str` version of this VPNGatewayConnectionStaticRouteModePeerPrototypeVPNGatewayConnectionPeerByAddress object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'VPNGatewayConnectionStaticRouteModePeerPrototypeVPNGatewayConnectionPeerByAddress') -> bool: + def __eq__( + self, other: 'VPNGatewayConnectionStaticRouteModePeerPrototypeVPNGatewayConnectionPeerByAddress' + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'VPNGatewayConnectionStaticRouteModePeerPrototypeVPNGatewayConnectionPeerByAddress') -> bool: + def __ne__( + self, other: 'VPNGatewayConnectionStaticRouteModePeerPrototypeVPNGatewayConnectionPeerByAddress' + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other -class VPNGatewayConnectionStaticRouteModePeerPrototypeVPNGatewayConnectionPeerByFQDN(VPNGatewayConnectionStaticRouteModePeerPrototype): +class VPNGatewayConnectionStaticRouteModePeerPrototypeVPNGatewayConnectionPeerByFQDN( + VPNGatewayConnectionStaticRouteModePeerPrototype +): """ VPNGatewayConnectionStaticRouteModePeerPrototypeVPNGatewayConnectionPeerByFQDN. @@ -141582,7 +143632,9 @@ def from_dict(cls, _dict: Dict) -> 'VPNGatewayConnectionStaticRouteModePeerProto if (fqdn := _dict.get('fqdn')) is not None: args['fqdn'] = fqdn else: - raise ValueError('Required property \'fqdn\' not present in VPNGatewayConnectionStaticRouteModePeerPrototypeVPNGatewayConnectionPeerByFQDN JSON') + raise ValueError( + 'Required property \'fqdn\' not present in VPNGatewayConnectionStaticRouteModePeerPrototypeVPNGatewayConnectionPeerByFQDN JSON' + ) return cls(**args) @classmethod @@ -141656,15 +143708,21 @@ def from_dict(cls, _dict: Dict) -> 'VPNGatewayConnectionStaticRouteModePeerVPNGa if (ike_identity := _dict.get('ike_identity')) is not None: args['ike_identity'] = ike_identity else: - raise ValueError('Required property \'ike_identity\' not present in VPNGatewayConnectionStaticRouteModePeerVPNGatewayConnectionPeerByAddress JSON') + raise ValueError( + 'Required property \'ike_identity\' not present in VPNGatewayConnectionStaticRouteModePeerVPNGatewayConnectionPeerByAddress JSON' + ) if (type := _dict.get('type')) is not None: args['type'] = type else: - raise ValueError('Required property \'type\' not present in VPNGatewayConnectionStaticRouteModePeerVPNGatewayConnectionPeerByAddress JSON') + raise ValueError( + 'Required property \'type\' not present in VPNGatewayConnectionStaticRouteModePeerVPNGatewayConnectionPeerByAddress JSON' + ) if (address := _dict.get('address')) is not None: args['address'] = address else: - raise ValueError('Required property \'address\' not present in VPNGatewayConnectionStaticRouteModePeerVPNGatewayConnectionPeerByAddress JSON') + raise ValueError( + 'Required property \'address\' not present in VPNGatewayConnectionStaticRouteModePeerVPNGatewayConnectionPeerByAddress JSON' + ) return cls(**args) @classmethod @@ -141713,7 +143771,6 @@ class TypeEnum(str, Enum): FQDN = 'fqdn' - class VPNGatewayConnectionStaticRouteModePeerVPNGatewayConnectionPeerByFQDN(VPNGatewayConnectionStaticRouteModePeer): """ VPNGatewayConnectionStaticRouteModePeerVPNGatewayConnectionPeerByFQDN. @@ -141748,15 +143805,21 @@ def from_dict(cls, _dict: Dict) -> 'VPNGatewayConnectionStaticRouteModePeerVPNGa if (ike_identity := _dict.get('ike_identity')) is not None: args['ike_identity'] = ike_identity else: - raise ValueError('Required property \'ike_identity\' not present in VPNGatewayConnectionStaticRouteModePeerVPNGatewayConnectionPeerByFQDN JSON') + raise ValueError( + 'Required property \'ike_identity\' not present in VPNGatewayConnectionStaticRouteModePeerVPNGatewayConnectionPeerByFQDN JSON' + ) if (type := _dict.get('type')) is not None: args['type'] = type else: - raise ValueError('Required property \'type\' not present in VPNGatewayConnectionStaticRouteModePeerVPNGatewayConnectionPeerByFQDN JSON') + raise ValueError( + 'Required property \'type\' not present in VPNGatewayConnectionStaticRouteModePeerVPNGatewayConnectionPeerByFQDN JSON' + ) if (fqdn := _dict.get('fqdn')) is not None: args['fqdn'] = fqdn else: - raise ValueError('Required property \'fqdn\' not present in VPNGatewayConnectionStaticRouteModePeerVPNGatewayConnectionPeerByFQDN JSON') + raise ValueError( + 'Required property \'fqdn\' not present in VPNGatewayConnectionStaticRouteModePeerVPNGatewayConnectionPeerByFQDN JSON' + ) return cls(**args) @classmethod @@ -141805,7 +143868,6 @@ class TypeEnum(str, Enum): FQDN = 'fqdn' - class VPNGatewayPolicyMode(VPNGateway): """ VPNGatewayPolicyMode. @@ -142097,7 +144159,6 @@ class HealthStateEnum(str, Enum): INAPPLICABLE = 'inapplicable' OK = 'ok' - class LifecycleStateEnum(str, Enum): """ The lifecycle state of the VPN gateway. @@ -142111,7 +144172,6 @@ class LifecycleStateEnum(str, Enum): UPDATING = 'updating' WAITING = 'waiting' - class ResourceTypeEnum(str, Enum): """ The resource type. @@ -142119,7 +144179,6 @@ class ResourceTypeEnum(str, Enum): VPN_GATEWAY = 'vpn_gateway' - class ModeEnum(str, Enum): """ Policy mode VPN gateway. @@ -142128,7 +144187,6 @@ class ModeEnum(str, Enum): POLICY = 'policy' - class VPNGatewayPrototypeVPNGatewayPolicyModePrototype(VPNGatewayPrototype): """ VPNGatewayPrototypeVPNGatewayPolicyModePrototype. @@ -142176,7 +144234,9 @@ def from_dict(cls, _dict: Dict) -> 'VPNGatewayPrototypeVPNGatewayPolicyModeProto if (subnet := _dict.get('subnet')) is not None: args['subnet'] = subnet else: - raise ValueError('Required property \'subnet\' not present in VPNGatewayPrototypeVPNGatewayPolicyModePrototype JSON') + raise ValueError( + 'Required property \'subnet\' not present in VPNGatewayPrototypeVPNGatewayPolicyModePrototype JSON' + ) if (mode := _dict.get('mode')) is not None: args['mode'] = mode return cls(**args) @@ -142231,7 +144291,6 @@ class ModeEnum(str, Enum): POLICY = 'policy' - class VPNGatewayPrototypeVPNGatewayRouteModePrototype(VPNGatewayPrototype): """ VPNGatewayPrototypeVPNGatewayRouteModePrototype. @@ -142279,7 +144338,9 @@ def from_dict(cls, _dict: Dict) -> 'VPNGatewayPrototypeVPNGatewayRouteModeProtot if (subnet := _dict.get('subnet')) is not None: args['subnet'] = subnet else: - raise ValueError('Required property \'subnet\' not present in VPNGatewayPrototypeVPNGatewayRouteModePrototype JSON') + raise ValueError( + 'Required property \'subnet\' not present in VPNGatewayPrototypeVPNGatewayRouteModePrototype JSON' + ) if (mode := _dict.get('mode')) is not None: args['mode'] = mode return cls(**args) @@ -142334,7 +144395,6 @@ class ModeEnum(str, Enum): ROUTE = 'route' - class VPNGatewayRouteMode(VPNGateway): """ VPNGatewayRouteMode. @@ -142626,7 +144686,6 @@ class HealthStateEnum(str, Enum): INAPPLICABLE = 'inapplicable' OK = 'ok' - class LifecycleStateEnum(str, Enum): """ The lifecycle state of the VPN gateway. @@ -142640,7 +144699,6 @@ class LifecycleStateEnum(str, Enum): UPDATING = 'updating' WAITING = 'waiting' - class ResourceTypeEnum(str, Enum): """ The resource type. @@ -142648,7 +144706,6 @@ class ResourceTypeEnum(str, Enum): VPN_GATEWAY = 'vpn_gateway' - class ModeEnum(str, Enum): """ Route mode VPN gateway. @@ -142657,7 +144714,6 @@ class ModeEnum(str, Enum): ROUTE = 'route' - class VPNServerAuthenticationByCertificate(VPNServerAuthentication): """ VPNServerAuthenticationByCertificate. @@ -142761,7 +144817,6 @@ class MethodEnum(str, Enum): USERNAME = 'username' - class VPNServerAuthenticationByUsername(VPNServerAuthentication): """ VPNServerAuthenticationByUsername. @@ -142804,7 +144859,9 @@ def from_dict(cls, _dict: Dict) -> 'VPNServerAuthenticationByUsername': if (identity_provider := _dict.get('identity_provider')) is not None: args['identity_provider'] = identity_provider else: - raise ValueError('Required property \'identity_provider\' not present in VPNServerAuthenticationByUsername JSON') + raise ValueError( + 'Required property \'identity_provider\' not present in VPNServerAuthenticationByUsername JSON' + ) return cls(**args) @classmethod @@ -142854,7 +144911,6 @@ class MethodEnum(str, Enum): USERNAME = 'username' - class VPNServerAuthenticationByUsernameIdProviderByIAM(VPNServerAuthenticationByUsernameIdProvider): """ VPNServerAuthenticationByUsernameIdProviderByIAM. @@ -142891,7 +144947,9 @@ def from_dict(cls, _dict: Dict) -> 'VPNServerAuthenticationByUsernameIdProviderB if (provider_type := _dict.get('provider_type')) is not None: args['provider_type'] = provider_type else: - raise ValueError('Required property \'provider_type\' not present in VPNServerAuthenticationByUsernameIdProviderByIAM JSON') + raise ValueError( + 'Required property \'provider_type\' not present in VPNServerAuthenticationByUsernameIdProviderByIAM JSON' + ) return cls(**args) @classmethod @@ -142936,7 +144994,6 @@ class ProviderTypeEnum(str, Enum): IAM = 'iam' - class VPNServerAuthenticationPrototypeVPNServerAuthenticationByCertificatePrototype(VPNServerAuthenticationPrototype): """ VPNServerAuthenticationPrototypeVPNServerAuthenticationByCertificatePrototype. @@ -142976,11 +145033,15 @@ def from_dict(cls, _dict: Dict) -> 'VPNServerAuthenticationPrototypeVPNServerAut if (method := _dict.get('method')) is not None: args['method'] = method else: - raise ValueError('Required property \'method\' not present in VPNServerAuthenticationPrototypeVPNServerAuthenticationByCertificatePrototype JSON') + raise ValueError( + 'Required property \'method\' not present in VPNServerAuthenticationPrototypeVPNServerAuthenticationByCertificatePrototype JSON' + ) if (client_ca := _dict.get('client_ca')) is not None: args['client_ca'] = client_ca else: - raise ValueError('Required property \'client_ca\' not present in VPNServerAuthenticationPrototypeVPNServerAuthenticationByCertificatePrototype JSON') + raise ValueError( + 'Required property \'client_ca\' not present in VPNServerAuthenticationPrototypeVPNServerAuthenticationByCertificatePrototype JSON' + ) if (crl := _dict.get('crl')) is not None: args['crl'] = crl return cls(**args) @@ -143031,7 +145092,6 @@ class MethodEnum(str, Enum): USERNAME = 'username' - class VPNServerAuthenticationPrototypeVPNServerAuthenticationByUsernamePrototype(VPNServerAuthenticationPrototype): """ VPNServerAuthenticationPrototypeVPNServerAuthenticationByUsernamePrototype. @@ -143064,11 +145124,15 @@ def from_dict(cls, _dict: Dict) -> 'VPNServerAuthenticationPrototypeVPNServerAut if (method := _dict.get('method')) is not None: args['method'] = method else: - raise ValueError('Required property \'method\' not present in VPNServerAuthenticationPrototypeVPNServerAuthenticationByUsernamePrototype JSON') + raise ValueError( + 'Required property \'method\' not present in VPNServerAuthenticationPrototypeVPNServerAuthenticationByUsernamePrototype JSON' + ) if (identity_provider := _dict.get('identity_provider')) is not None: args['identity_provider'] = identity_provider else: - raise ValueError('Required property \'identity_provider\' not present in VPNServerAuthenticationPrototypeVPNServerAuthenticationByUsernamePrototype JSON') + raise ValueError( + 'Required property \'identity_provider\' not present in VPNServerAuthenticationPrototypeVPNServerAuthenticationByUsernamePrototype JSON' + ) return cls(**args) @classmethod @@ -143115,8 +145179,9 @@ class MethodEnum(str, Enum): USERNAME = 'username' - -class VirtualNetworkInterfaceIPPrototypeReservedIPIdentityVirtualNetworkInterfaceIPsContext(VirtualNetworkInterfaceIPPrototype): +class VirtualNetworkInterfaceIPPrototypeReservedIPIdentityVirtualNetworkInterfaceIPsContext( + VirtualNetworkInterfaceIPPrototype +): """ Identifies a reserved IP by a unique property. The reserved IP must be currently unbound and in the primary IP's subnet. @@ -143132,12 +145197,19 @@ def __init__( """ # pylint: disable=super-init-not-called msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['VirtualNetworkInterfaceIPPrototypeReservedIPIdentityVirtualNetworkInterfaceIPsContextById', 'VirtualNetworkInterfaceIPPrototypeReservedIPIdentityVirtualNetworkInterfaceIPsContextByHref']) + ", ".join( + [ + 'VirtualNetworkInterfaceIPPrototypeReservedIPIdentityVirtualNetworkInterfaceIPsContextById', + 'VirtualNetworkInterfaceIPPrototypeReservedIPIdentityVirtualNetworkInterfaceIPsContextByHref', + ] + ) ) raise Exception(msg) -class VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext(VirtualNetworkInterfaceIPPrototype): +class VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext( + VirtualNetworkInterfaceIPPrototype +): """ The prototype for a new reserved IP. Must be in the primary IP's subnet. @@ -143182,7 +145254,9 @@ def __init__( self.name = name @classmethod - def from_dict(cls, _dict: Dict) -> 'VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext': + def from_dict( + cls, _dict: Dict + ) -> 'VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext': """Initialize a VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext object from a json dictionary.""" args = {} if (address := _dict.get('address')) is not None: @@ -143217,18 +145291,24 @@ def __str__(self) -> str: """Return a `str` version of this VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext') -> bool: + def __eq__( + self, other: 'VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext' + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext') -> bool: + def __ne__( + self, other: 'VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext' + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other -class VirtualNetworkInterfacePrimaryIPPrototypeReservedIPIdentityVirtualNetworkInterfacePrimaryIPContext(VirtualNetworkInterfacePrimaryIPPrototype): +class VirtualNetworkInterfacePrimaryIPPrototypeReservedIPIdentityVirtualNetworkInterfacePrimaryIPContext( + VirtualNetworkInterfacePrimaryIPPrototype +): """ Identifies a reserved IP by a unique property. Required if `subnet` is not specified. The reserved IP must be currently unbound. @@ -143244,12 +145324,19 @@ def __init__( """ # pylint: disable=super-init-not-called msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['VirtualNetworkInterfacePrimaryIPPrototypeReservedIPIdentityVirtualNetworkInterfacePrimaryIPContextById', 'VirtualNetworkInterfacePrimaryIPPrototypeReservedIPIdentityVirtualNetworkInterfacePrimaryIPContextByHref']) + ", ".join( + [ + 'VirtualNetworkInterfacePrimaryIPPrototypeReservedIPIdentityVirtualNetworkInterfacePrimaryIPContextById', + 'VirtualNetworkInterfacePrimaryIPPrototypeReservedIPIdentityVirtualNetworkInterfacePrimaryIPContextByHref', + ] + ) ) raise Exception(msg) -class VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext(VirtualNetworkInterfacePrimaryIPPrototype): +class VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext( + VirtualNetworkInterfacePrimaryIPPrototype +): """ The prototype for a new reserved IP. Requires `subnet` to be specified. @@ -143294,7 +145381,9 @@ def __init__( self.name = name @classmethod - def from_dict(cls, _dict: Dict) -> 'VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext': + def from_dict( + cls, _dict: Dict + ) -> 'VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext': """Initialize a VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext object from a json dictionary.""" args = {} if (address := _dict.get('address')) is not None: @@ -143329,18 +145418,26 @@ def __str__(self) -> str: """Return a `str` version of this VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext') -> bool: + def __eq__( + self, + other: 'VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext', + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext') -> bool: + def __ne__( + self, + other: 'VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext', + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other -class VirtualNetworkInterfaceTargetBareMetalServerNetworkAttachmentReferenceVirtualNetworkInterfaceContext(VirtualNetworkInterfaceTarget): +class VirtualNetworkInterfaceTargetBareMetalServerNetworkAttachmentReferenceVirtualNetworkInterfaceContext( + VirtualNetworkInterfaceTarget +): """ VirtualNetworkInterfaceTargetBareMetalServerNetworkAttachmentReferenceVirtualNetworkInterfaceContext. @@ -143377,25 +145474,35 @@ def __init__( self.resource_type = resource_type @classmethod - def from_dict(cls, _dict: Dict) -> 'VirtualNetworkInterfaceTargetBareMetalServerNetworkAttachmentReferenceVirtualNetworkInterfaceContext': + def from_dict( + cls, _dict: Dict + ) -> 'VirtualNetworkInterfaceTargetBareMetalServerNetworkAttachmentReferenceVirtualNetworkInterfaceContext': """Initialize a VirtualNetworkInterfaceTargetBareMetalServerNetworkAttachmentReferenceVirtualNetworkInterfaceContext object from a json dictionary.""" args = {} if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in VirtualNetworkInterfaceTargetBareMetalServerNetworkAttachmentReferenceVirtualNetworkInterfaceContext JSON') + raise ValueError( + 'Required property \'href\' not present in VirtualNetworkInterfaceTargetBareMetalServerNetworkAttachmentReferenceVirtualNetworkInterfaceContext JSON' + ) if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in VirtualNetworkInterfaceTargetBareMetalServerNetworkAttachmentReferenceVirtualNetworkInterfaceContext JSON') + raise ValueError( + 'Required property \'id\' not present in VirtualNetworkInterfaceTargetBareMetalServerNetworkAttachmentReferenceVirtualNetworkInterfaceContext JSON' + ) if (name := _dict.get('name')) is not None: args['name'] = name else: - raise ValueError('Required property \'name\' not present in VirtualNetworkInterfaceTargetBareMetalServerNetworkAttachmentReferenceVirtualNetworkInterfaceContext JSON') + raise ValueError( + 'Required property \'name\' not present in VirtualNetworkInterfaceTargetBareMetalServerNetworkAttachmentReferenceVirtualNetworkInterfaceContext JSON' + ) if (resource_type := _dict.get('resource_type')) is not None: args['resource_type'] = resource_type else: - raise ValueError('Required property \'resource_type\' not present in VirtualNetworkInterfaceTargetBareMetalServerNetworkAttachmentReferenceVirtualNetworkInterfaceContext JSON') + raise ValueError( + 'Required property \'resource_type\' not present in VirtualNetworkInterfaceTargetBareMetalServerNetworkAttachmentReferenceVirtualNetworkInterfaceContext JSON' + ) return cls(**args) @classmethod @@ -143424,13 +145531,19 @@ def __str__(self) -> str: """Return a `str` version of this VirtualNetworkInterfaceTargetBareMetalServerNetworkAttachmentReferenceVirtualNetworkInterfaceContext object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'VirtualNetworkInterfaceTargetBareMetalServerNetworkAttachmentReferenceVirtualNetworkInterfaceContext') -> bool: + def __eq__( + self, + other: 'VirtualNetworkInterfaceTargetBareMetalServerNetworkAttachmentReferenceVirtualNetworkInterfaceContext', + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'VirtualNetworkInterfaceTargetBareMetalServerNetworkAttachmentReferenceVirtualNetworkInterfaceContext') -> bool: + def __ne__( + self, + other: 'VirtualNetworkInterfaceTargetBareMetalServerNetworkAttachmentReferenceVirtualNetworkInterfaceContext', + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other @@ -143442,8 +145555,9 @@ class ResourceTypeEnum(str, Enum): BARE_METAL_SERVER_NETWORK_ATTACHMENT = 'bare_metal_server_network_attachment' - -class VirtualNetworkInterfaceTargetInstanceNetworkAttachmentReferenceVirtualNetworkInterfaceContext(VirtualNetworkInterfaceTarget): +class VirtualNetworkInterfaceTargetInstanceNetworkAttachmentReferenceVirtualNetworkInterfaceContext( + VirtualNetworkInterfaceTarget +): """ VirtualNetworkInterfaceTargetInstanceNetworkAttachmentReferenceVirtualNetworkInterfaceContext. @@ -143477,25 +145591,35 @@ def __init__( self.resource_type = resource_type @classmethod - def from_dict(cls, _dict: Dict) -> 'VirtualNetworkInterfaceTargetInstanceNetworkAttachmentReferenceVirtualNetworkInterfaceContext': + def from_dict( + cls, _dict: Dict + ) -> 'VirtualNetworkInterfaceTargetInstanceNetworkAttachmentReferenceVirtualNetworkInterfaceContext': """Initialize a VirtualNetworkInterfaceTargetInstanceNetworkAttachmentReferenceVirtualNetworkInterfaceContext object from a json dictionary.""" args = {} if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in VirtualNetworkInterfaceTargetInstanceNetworkAttachmentReferenceVirtualNetworkInterfaceContext JSON') + raise ValueError( + 'Required property \'href\' not present in VirtualNetworkInterfaceTargetInstanceNetworkAttachmentReferenceVirtualNetworkInterfaceContext JSON' + ) if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in VirtualNetworkInterfaceTargetInstanceNetworkAttachmentReferenceVirtualNetworkInterfaceContext JSON') + raise ValueError( + 'Required property \'id\' not present in VirtualNetworkInterfaceTargetInstanceNetworkAttachmentReferenceVirtualNetworkInterfaceContext JSON' + ) if (name := _dict.get('name')) is not None: args['name'] = name else: - raise ValueError('Required property \'name\' not present in VirtualNetworkInterfaceTargetInstanceNetworkAttachmentReferenceVirtualNetworkInterfaceContext JSON') + raise ValueError( + 'Required property \'name\' not present in VirtualNetworkInterfaceTargetInstanceNetworkAttachmentReferenceVirtualNetworkInterfaceContext JSON' + ) if (resource_type := _dict.get('resource_type')) is not None: args['resource_type'] = resource_type else: - raise ValueError('Required property \'resource_type\' not present in VirtualNetworkInterfaceTargetInstanceNetworkAttachmentReferenceVirtualNetworkInterfaceContext JSON') + raise ValueError( + 'Required property \'resource_type\' not present in VirtualNetworkInterfaceTargetInstanceNetworkAttachmentReferenceVirtualNetworkInterfaceContext JSON' + ) return cls(**args) @classmethod @@ -143524,13 +145648,17 @@ def __str__(self) -> str: """Return a `str` version of this VirtualNetworkInterfaceTargetInstanceNetworkAttachmentReferenceVirtualNetworkInterfaceContext object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'VirtualNetworkInterfaceTargetInstanceNetworkAttachmentReferenceVirtualNetworkInterfaceContext') -> bool: + def __eq__( + self, other: 'VirtualNetworkInterfaceTargetInstanceNetworkAttachmentReferenceVirtualNetworkInterfaceContext' + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'VirtualNetworkInterfaceTargetInstanceNetworkAttachmentReferenceVirtualNetworkInterfaceContext') -> bool: + def __ne__( + self, other: 'VirtualNetworkInterfaceTargetInstanceNetworkAttachmentReferenceVirtualNetworkInterfaceContext' + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other @@ -143542,7 +145670,6 @@ class ResourceTypeEnum(str, Enum): INSTANCE_NETWORK_ATTACHMENT = 'instance_network_attachment' - class VirtualNetworkInterfaceTargetShareMountTargetReference(VirtualNetworkInterfaceTarget): """ VirtualNetworkInterfaceTargetShareMountTargetReference. @@ -143594,19 +145721,27 @@ def from_dict(cls, _dict: Dict) -> 'VirtualNetworkInterfaceTargetShareMountTarge if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in VirtualNetworkInterfaceTargetShareMountTargetReference JSON') + raise ValueError( + 'Required property \'href\' not present in VirtualNetworkInterfaceTargetShareMountTargetReference JSON' + ) if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in VirtualNetworkInterfaceTargetShareMountTargetReference JSON') + raise ValueError( + 'Required property \'id\' not present in VirtualNetworkInterfaceTargetShareMountTargetReference JSON' + ) if (name := _dict.get('name')) is not None: args['name'] = name else: - raise ValueError('Required property \'name\' not present in VirtualNetworkInterfaceTargetShareMountTargetReference JSON') + raise ValueError( + 'Required property \'name\' not present in VirtualNetworkInterfaceTargetShareMountTargetReference JSON' + ) if (resource_type := _dict.get('resource_type')) is not None: args['resource_type'] = resource_type else: - raise ValueError('Required property \'resource_type\' not present in VirtualNetworkInterfaceTargetShareMountTargetReference JSON') + raise ValueError( + 'Required property \'resource_type\' not present in VirtualNetworkInterfaceTargetShareMountTargetReference JSON' + ) return cls(**args) @classmethod @@ -143658,7 +145793,6 @@ class ResourceTypeEnum(str, Enum): SHARE_MOUNT_TARGET = 'share_mount_target' - class VolumeAttachmentPrototypeVolumeVolumeIdentity(VolumeAttachmentPrototypeVolume): """ Identifies a volume by a unique property. @@ -143674,7 +145808,13 @@ def __init__( """ # pylint: disable=super-init-not-called msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['VolumeAttachmentPrototypeVolumeVolumeIdentityVolumeIdentityById', 'VolumeAttachmentPrototypeVolumeVolumeIdentityVolumeIdentityByCRN', 'VolumeAttachmentPrototypeVolumeVolumeIdentityVolumeIdentityByHref']) + ", ".join( + [ + 'VolumeAttachmentPrototypeVolumeVolumeIdentityVolumeIdentityById', + 'VolumeAttachmentPrototypeVolumeVolumeIdentityVolumeIdentityByCRN', + 'VolumeAttachmentPrototypeVolumeVolumeIdentityVolumeIdentityByHref', + ] + ) ) raise Exception(msg) @@ -143731,7 +145871,12 @@ def __init__( """ # pylint: disable=super-init-not-called msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['VolumeAttachmentPrototypeVolumeVolumePrototypeInstanceContextVolumePrototypeInstanceContextVolumeByCapacity', 'VolumeAttachmentPrototypeVolumeVolumePrototypeInstanceContextVolumePrototypeInstanceContextVolumeBySourceSnapshot']) + ", ".join( + [ + 'VolumeAttachmentPrototypeVolumeVolumePrototypeInstanceContextVolumePrototypeInstanceContextVolumeByCapacity', + 'VolumeAttachmentPrototypeVolumeVolumePrototypeInstanceContextVolumePrototypeInstanceContextVolumeBySourceSnapshot', + ] + ) ) raise Exception(msg) @@ -144014,7 +146159,6 @@ class TypeEnum(str, Enum): DEPENDENT_RANGE = 'dependent_range' - class VolumeProfileBootCapacityEnum(VolumeProfileBootCapacity): """ The permitted total capacities (in gigabytes) of a boot volume with this profile. @@ -144102,7 +146246,6 @@ class TypeEnum(str, Enum): ENUM = 'enum' - class VolumeProfileBootCapacityFixed(VolumeProfileBootCapacity): """ The permitted total capacity (in gigabytes) of a boot volume with this profile is @@ -144181,7 +146324,6 @@ class TypeEnum(str, Enum): FIXED = 'fixed' - class VolumeProfileBootCapacityRange(VolumeProfileBootCapacity): """ The permitted total capacity range (in gigabytes) of a boot volume with this profile. @@ -144289,7 +146431,6 @@ class TypeEnum(str, Enum): RANGE = 'range' - class VolumeProfileCapacityDependentRange(VolumeProfileCapacity): """ The permitted total capacity (in gigabytes) of a data volume with this profile depends @@ -144388,7 +146529,6 @@ class TypeEnum(str, Enum): DEPENDENT_RANGE = 'dependent_range' - class VolumeProfileCapacityEnum(VolumeProfileCapacity): """ The permitted total capacities (in gigabytes) of a data volume with this profile. @@ -144476,7 +146616,6 @@ class TypeEnum(str, Enum): ENUM = 'enum' - class VolumeProfileCapacityFixed(VolumeProfileCapacity): """ The permitted total capacity (in gigabytes) of a data volume with this profile is @@ -144555,7 +146694,6 @@ class TypeEnum(str, Enum): FIXED = 'fixed' - class VolumeProfileCapacityRange(VolumeProfileCapacity): """ The permitted total capacity range (in gigabytes) of a data volume with this profile. @@ -144663,7 +146801,6 @@ class TypeEnum(str, Enum): RANGE = 'range' - class VolumeProfileIOPSDependentRange(VolumeProfileIOPS): """ The permitted IOPS range of a volume with this profile depends on its configuration. @@ -144761,7 +146898,6 @@ class TypeEnum(str, Enum): DEPENDENT_RANGE = 'dependent_range' - class VolumeProfileIOPSEnum(VolumeProfileIOPS): """ The permitted IOPS values of a volume with this profile. @@ -144849,7 +146985,6 @@ class TypeEnum(str, Enum): ENUM = 'enum' - class VolumeProfileIOPSFixed(VolumeProfileIOPS): """ The permitted IOPS of a volume with this profile is fixed. @@ -144927,7 +147062,6 @@ class TypeEnum(str, Enum): FIXED = 'fixed' - class VolumeProfileIOPSRange(VolumeProfileIOPS): """ The permitted IOPS range of a volume with this profile. @@ -145035,7 +147169,6 @@ class TypeEnum(str, Enum): RANGE = 'range' - class VolumeProfileIdentityByHref(VolumeProfileIdentity): """ VolumeProfileIdentityByHref. @@ -145427,7 +147560,9 @@ def from_dict(cls, _dict: Dict) -> 'VolumePrototypeVolumeBySourceSnapshot': if (source_snapshot := _dict.get('source_snapshot')) is not None: args['source_snapshot'] = source_snapshot else: - raise ValueError('Required property \'source_snapshot\' not present in VolumePrototypeVolumeBySourceSnapshot JSON') + raise ValueError( + 'Required property \'source_snapshot\' not present in VolumePrototypeVolumeBySourceSnapshot JSON' + ) return cls(**args) @classmethod @@ -145638,7 +147773,9 @@ def from_dict(cls, _dict: Dict) -> 'BackupPolicyScopePrototypeEnterpriseIdentity if (crn := _dict.get('crn')) is not None: args['crn'] = crn else: - raise ValueError('Required property \'crn\' not present in BackupPolicyScopePrototypeEnterpriseIdentityEnterpriseIdentityByCRN JSON') + raise ValueError( + 'Required property \'crn\' not present in BackupPolicyScopePrototypeEnterpriseIdentityEnterpriseIdentityByCRN JSON' + ) return cls(**args) @classmethod @@ -145672,7 +147809,9 @@ def __ne__(self, other: 'BackupPolicyScopePrototypeEnterpriseIdentityEnterpriseI return not self == other -class BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN(BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentity): +class BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN( + BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentity +): """ BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN. @@ -145692,13 +147831,17 @@ def __init__( self.crn = crn @classmethod - def from_dict(cls, _dict: Dict) -> 'BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN': + def from_dict( + cls, _dict: Dict + ) -> 'BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN': """Initialize a BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN object from a json dictionary.""" args = {} if (crn := _dict.get('crn')) is not None: args['crn'] = crn else: - raise ValueError('Required property \'crn\' not present in BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN JSON') + raise ValueError( + 'Required property \'crn\' not present in BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN JSON' + ) return cls(**args) @classmethod @@ -145721,18 +147864,26 @@ def __str__(self) -> str: """Return a `str` version of this BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN') -> bool: + def __eq__( + self, + other: 'BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN', + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN') -> bool: + def __ne__( + self, + other: 'BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN', + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other -class BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref(BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentity): +class BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref( + BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentity +): """ BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref. @@ -145752,13 +147903,17 @@ def __init__( self.href = href @classmethod - def from_dict(cls, _dict: Dict) -> 'BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref': + def from_dict( + cls, _dict: Dict + ) -> 'BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref': """Initialize a BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref object from a json dictionary.""" args = {} if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref JSON') + raise ValueError( + 'Required property \'href\' not present in BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref JSON' + ) return cls(**args) @classmethod @@ -145781,18 +147936,26 @@ def __str__(self) -> str: """Return a `str` version of this BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref') -> bool: + def __eq__( + self, + other: 'BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref', + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref') -> bool: + def __ne__( + self, + other: 'BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref', + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other -class BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById(BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentity): +class BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById( + BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentity +): """ BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById. @@ -145812,13 +147975,17 @@ def __init__( self.id = id @classmethod - def from_dict(cls, _dict: Dict) -> 'BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById': + def from_dict( + cls, _dict: Dict + ) -> 'BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById': """Initialize a BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById object from a json dictionary.""" args = {} if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById JSON') + raise ValueError( + 'Required property \'id\' not present in BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById JSON' + ) return cls(**args) @classmethod @@ -145841,18 +148008,26 @@ def __str__(self) -> str: """Return a `str` version of this BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById') -> bool: + def __eq__( + self, + other: 'BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById', + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById') -> bool: + def __ne__( + self, + other: 'BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById', + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other -class ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPIdentityClusterNetworkInterfacePrimaryIPContextByHref(ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPIdentityClusterNetworkInterfacePrimaryIPContext): +class ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPIdentityClusterNetworkInterfacePrimaryIPContextByHref( + ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPIdentityClusterNetworkInterfacePrimaryIPContext +): """ ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPIdentityClusterNetworkInterfacePrimaryIPContextByHref. @@ -145872,13 +148047,17 @@ def __init__( self.href = href @classmethod - def from_dict(cls, _dict: Dict) -> 'ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPIdentityClusterNetworkInterfacePrimaryIPContextByHref': + def from_dict( + cls, _dict: Dict + ) -> 'ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPIdentityClusterNetworkInterfacePrimaryIPContextByHref': """Initialize a ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPIdentityClusterNetworkInterfacePrimaryIPContextByHref object from a json dictionary.""" args = {} if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPIdentityClusterNetworkInterfacePrimaryIPContextByHref JSON') + raise ValueError( + 'Required property \'href\' not present in ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPIdentityClusterNetworkInterfacePrimaryIPContextByHref JSON' + ) return cls(**args) @classmethod @@ -145901,18 +148080,26 @@ def __str__(self) -> str: """Return a `str` version of this ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPIdentityClusterNetworkInterfacePrimaryIPContextByHref object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPIdentityClusterNetworkInterfacePrimaryIPContextByHref') -> bool: + def __eq__( + self, + other: 'ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPIdentityClusterNetworkInterfacePrimaryIPContextByHref', + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPIdentityClusterNetworkInterfacePrimaryIPContextByHref') -> bool: + def __ne__( + self, + other: 'ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPIdentityClusterNetworkInterfacePrimaryIPContextByHref', + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other -class ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPIdentityClusterNetworkInterfacePrimaryIPContextById(ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPIdentityClusterNetworkInterfacePrimaryIPContext): +class ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPIdentityClusterNetworkInterfacePrimaryIPContextById( + ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPIdentityClusterNetworkInterfacePrimaryIPContext +): """ ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPIdentityClusterNetworkInterfacePrimaryIPContextById. @@ -145934,13 +148121,17 @@ def __init__( self.id = id @classmethod - def from_dict(cls, _dict: Dict) -> 'ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPIdentityClusterNetworkInterfacePrimaryIPContextById': + def from_dict( + cls, _dict: Dict + ) -> 'ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPIdentityClusterNetworkInterfacePrimaryIPContextById': """Initialize a ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPIdentityClusterNetworkInterfacePrimaryIPContextById object from a json dictionary.""" args = {} if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPIdentityClusterNetworkInterfacePrimaryIPContextById JSON') + raise ValueError( + 'Required property \'id\' not present in ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPIdentityClusterNetworkInterfacePrimaryIPContextById JSON' + ) return cls(**args) @classmethod @@ -145963,13 +148154,19 @@ def __str__(self) -> str: """Return a `str` version of this ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPIdentityClusterNetworkInterfacePrimaryIPContextById object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPIdentityClusterNetworkInterfacePrimaryIPContextById') -> bool: + def __eq__( + self, + other: 'ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPIdentityClusterNetworkInterfacePrimaryIPContextById', + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPIdentityClusterNetworkInterfacePrimaryIPContextById') -> bool: + def __ne__( + self, + other: 'ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPIdentityClusterNetworkInterfacePrimaryIPContextById', + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other @@ -146000,7 +148197,9 @@ def from_dict(cls, _dict: Dict) -> 'EndpointGatewayReservedIPReservedIPIdentityB if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in EndpointGatewayReservedIPReservedIPIdentityByHref JSON') + raise ValueError( + 'Required property \'href\' not present in EndpointGatewayReservedIPReservedIPIdentityByHref JSON' + ) return cls(**args) @classmethod @@ -146060,7 +148259,9 @@ def from_dict(cls, _dict: Dict) -> 'EndpointGatewayReservedIPReservedIPIdentityB if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in EndpointGatewayReservedIPReservedIPIdentityById JSON') + raise ValueError( + 'Required property \'id\' not present in EndpointGatewayReservedIPReservedIPIdentityById JSON' + ) return cls(**args) @classmethod @@ -146094,7 +148295,9 @@ def __ne__(self, other: 'EndpointGatewayReservedIPReservedIPIdentityById') -> bo return not self == other -class FloatingIPTargetPatchBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityByHref(FloatingIPTargetPatchBareMetalServerNetworkInterfaceIdentity): +class FloatingIPTargetPatchBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityByHref( + FloatingIPTargetPatchBareMetalServerNetworkInterfaceIdentity +): """ FloatingIPTargetPatchBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityByHref. @@ -146123,13 +148326,17 @@ def __init__( self.href = href @classmethod - def from_dict(cls, _dict: Dict) -> 'FloatingIPTargetPatchBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityByHref': + def from_dict( + cls, _dict: Dict + ) -> 'FloatingIPTargetPatchBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityByHref': """Initialize a FloatingIPTargetPatchBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityByHref object from a json dictionary.""" args = {} if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in FloatingIPTargetPatchBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityByHref JSON') + raise ValueError( + 'Required property \'href\' not present in FloatingIPTargetPatchBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityByHref JSON' + ) return cls(**args) @classmethod @@ -146152,18 +148359,26 @@ def __str__(self) -> str: """Return a `str` version of this FloatingIPTargetPatchBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityByHref object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'FloatingIPTargetPatchBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityByHref') -> bool: + def __eq__( + self, + other: 'FloatingIPTargetPatchBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityByHref', + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'FloatingIPTargetPatchBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityByHref') -> bool: + def __ne__( + self, + other: 'FloatingIPTargetPatchBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityByHref', + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other -class FloatingIPTargetPatchBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityById(FloatingIPTargetPatchBareMetalServerNetworkInterfaceIdentity): +class FloatingIPTargetPatchBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityById( + FloatingIPTargetPatchBareMetalServerNetworkInterfaceIdentity +): """ FloatingIPTargetPatchBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityById. @@ -146197,13 +148412,17 @@ def __init__( self.id = id @classmethod - def from_dict(cls, _dict: Dict) -> 'FloatingIPTargetPatchBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityById': + def from_dict( + cls, _dict: Dict + ) -> 'FloatingIPTargetPatchBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityById': """Initialize a FloatingIPTargetPatchBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityById object from a json dictionary.""" args = {} if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in FloatingIPTargetPatchBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityById JSON') + raise ValueError( + 'Required property \'id\' not present in FloatingIPTargetPatchBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityById JSON' + ) return cls(**args) @classmethod @@ -146226,18 +148445,26 @@ def __str__(self) -> str: """Return a `str` version of this FloatingIPTargetPatchBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityById object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'FloatingIPTargetPatchBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityById') -> bool: + def __eq__( + self, + other: 'FloatingIPTargetPatchBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityById', + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'FloatingIPTargetPatchBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityById') -> bool: + def __ne__( + self, + other: 'FloatingIPTargetPatchBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityById', + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other -class FloatingIPTargetPatchNetworkInterfaceIdentityNetworkInterfaceIdentityByHref(FloatingIPTargetPatchNetworkInterfaceIdentity): +class FloatingIPTargetPatchNetworkInterfaceIdentityNetworkInterfaceIdentityByHref( + FloatingIPTargetPatchNetworkInterfaceIdentity +): """ FloatingIPTargetPatchNetworkInterfaceIdentityNetworkInterfaceIdentityByHref. @@ -146271,7 +148498,9 @@ def from_dict(cls, _dict: Dict) -> 'FloatingIPTargetPatchNetworkInterfaceIdentit if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in FloatingIPTargetPatchNetworkInterfaceIdentityNetworkInterfaceIdentityByHref JSON') + raise ValueError( + 'Required property \'href\' not present in FloatingIPTargetPatchNetworkInterfaceIdentityNetworkInterfaceIdentityByHref JSON' + ) return cls(**args) @classmethod @@ -146305,7 +148534,9 @@ def __ne__(self, other: 'FloatingIPTargetPatchNetworkInterfaceIdentityNetworkInt return not self == other -class FloatingIPTargetPatchNetworkInterfaceIdentityNetworkInterfaceIdentityById(FloatingIPTargetPatchNetworkInterfaceIdentity): +class FloatingIPTargetPatchNetworkInterfaceIdentityNetworkInterfaceIdentityById( + FloatingIPTargetPatchNetworkInterfaceIdentity +): """ FloatingIPTargetPatchNetworkInterfaceIdentityNetworkInterfaceIdentityById. @@ -146342,7 +148573,9 @@ def from_dict(cls, _dict: Dict) -> 'FloatingIPTargetPatchNetworkInterfaceIdentit if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in FloatingIPTargetPatchNetworkInterfaceIdentityNetworkInterfaceIdentityById JSON') + raise ValueError( + 'Required property \'id\' not present in FloatingIPTargetPatchNetworkInterfaceIdentityNetworkInterfaceIdentityById JSON' + ) return cls(**args) @classmethod @@ -146376,7 +148609,9 @@ def __ne__(self, other: 'FloatingIPTargetPatchNetworkInterfaceIdentityNetworkInt return not self == other -class FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN(FloatingIPTargetPatchVirtualNetworkInterfaceIdentity): +class FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN( + FloatingIPTargetPatchVirtualNetworkInterfaceIdentity +): """ FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN. @@ -146396,13 +148631,17 @@ def __init__( self.crn = crn @classmethod - def from_dict(cls, _dict: Dict) -> 'FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN': + def from_dict( + cls, _dict: Dict + ) -> 'FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN': """Initialize a FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN object from a json dictionary.""" args = {} if (crn := _dict.get('crn')) is not None: args['crn'] = crn else: - raise ValueError('Required property \'crn\' not present in FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN JSON') + raise ValueError( + 'Required property \'crn\' not present in FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN JSON' + ) return cls(**args) @classmethod @@ -146425,18 +148664,24 @@ def __str__(self) -> str: """Return a `str` version of this FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN') -> bool: + def __eq__( + self, other: 'FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN' + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN') -> bool: + def __ne__( + self, other: 'FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN' + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other -class FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref(FloatingIPTargetPatchVirtualNetworkInterfaceIdentity): +class FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref( + FloatingIPTargetPatchVirtualNetworkInterfaceIdentity +): """ FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref. @@ -146456,13 +148701,17 @@ def __init__( self.href = href @classmethod - def from_dict(cls, _dict: Dict) -> 'FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref': + def from_dict( + cls, _dict: Dict + ) -> 'FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref': """Initialize a FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref object from a json dictionary.""" args = {} if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref JSON') + raise ValueError( + 'Required property \'href\' not present in FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref JSON' + ) return cls(**args) @classmethod @@ -146485,18 +148734,24 @@ def __str__(self) -> str: """Return a `str` version of this FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref') -> bool: + def __eq__( + self, other: 'FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref' + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref') -> bool: + def __ne__( + self, other: 'FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref' + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other -class FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById(FloatingIPTargetPatchVirtualNetworkInterfaceIdentity): +class FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById( + FloatingIPTargetPatchVirtualNetworkInterfaceIdentity +): """ FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById. @@ -146516,13 +148771,17 @@ def __init__( self.id = id @classmethod - def from_dict(cls, _dict: Dict) -> 'FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById': + def from_dict( + cls, _dict: Dict + ) -> 'FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById': """Initialize a FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById object from a json dictionary.""" args = {} if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById JSON') + raise ValueError( + 'Required property \'id\' not present in FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById JSON' + ) return cls(**args) @classmethod @@ -146545,18 +148804,24 @@ def __str__(self) -> str: """Return a `str` version of this FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById') -> bool: + def __eq__( + self, other: 'FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById' + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById') -> bool: + def __ne__( + self, other: 'FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById' + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other -class FloatingIPTargetPrototypeBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityByHref(FloatingIPTargetPrototypeBareMetalServerNetworkInterfaceIdentity): +class FloatingIPTargetPrototypeBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityByHref( + FloatingIPTargetPrototypeBareMetalServerNetworkInterfaceIdentity +): """ FloatingIPTargetPrototypeBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityByHref. @@ -146585,13 +148850,19 @@ def __init__( self.href = href @classmethod - def from_dict(cls, _dict: Dict) -> 'FloatingIPTargetPrototypeBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityByHref': + def from_dict( + cls, _dict: Dict + ) -> ( + 'FloatingIPTargetPrototypeBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityByHref' + ): """Initialize a FloatingIPTargetPrototypeBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityByHref object from a json dictionary.""" args = {} if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in FloatingIPTargetPrototypeBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityByHref JSON') + raise ValueError( + 'Required property \'href\' not present in FloatingIPTargetPrototypeBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityByHref JSON' + ) return cls(**args) @classmethod @@ -146614,18 +148885,26 @@ def __str__(self) -> str: """Return a `str` version of this FloatingIPTargetPrototypeBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityByHref object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'FloatingIPTargetPrototypeBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityByHref') -> bool: + def __eq__( + self, + other: 'FloatingIPTargetPrototypeBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityByHref', + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'FloatingIPTargetPrototypeBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityByHref') -> bool: + def __ne__( + self, + other: 'FloatingIPTargetPrototypeBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityByHref', + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other -class FloatingIPTargetPrototypeBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityById(FloatingIPTargetPrototypeBareMetalServerNetworkInterfaceIdentity): +class FloatingIPTargetPrototypeBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityById( + FloatingIPTargetPrototypeBareMetalServerNetworkInterfaceIdentity +): """ FloatingIPTargetPrototypeBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityById. @@ -146659,13 +148938,17 @@ def __init__( self.id = id @classmethod - def from_dict(cls, _dict: Dict) -> 'FloatingIPTargetPrototypeBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityById': + def from_dict( + cls, _dict: Dict + ) -> 'FloatingIPTargetPrototypeBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityById': """Initialize a FloatingIPTargetPrototypeBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityById object from a json dictionary.""" args = {} if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in FloatingIPTargetPrototypeBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityById JSON') + raise ValueError( + 'Required property \'id\' not present in FloatingIPTargetPrototypeBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityById JSON' + ) return cls(**args) @classmethod @@ -146688,18 +148971,26 @@ def __str__(self) -> str: """Return a `str` version of this FloatingIPTargetPrototypeBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityById object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'FloatingIPTargetPrototypeBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityById') -> bool: + def __eq__( + self, + other: 'FloatingIPTargetPrototypeBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityById', + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'FloatingIPTargetPrototypeBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityById') -> bool: + def __ne__( + self, + other: 'FloatingIPTargetPrototypeBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityById', + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other -class FloatingIPTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityByHref(FloatingIPTargetPrototypeNetworkInterfaceIdentity): +class FloatingIPTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityByHref( + FloatingIPTargetPrototypeNetworkInterfaceIdentity +): """ FloatingIPTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityByHref. @@ -146727,13 +149018,17 @@ def __init__( self.href = href @classmethod - def from_dict(cls, _dict: Dict) -> 'FloatingIPTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityByHref': + def from_dict( + cls, _dict: Dict + ) -> 'FloatingIPTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityByHref': """Initialize a FloatingIPTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityByHref object from a json dictionary.""" args = {} if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in FloatingIPTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityByHref JSON') + raise ValueError( + 'Required property \'href\' not present in FloatingIPTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityByHref JSON' + ) return cls(**args) @classmethod @@ -146767,7 +149062,9 @@ def __ne__(self, other: 'FloatingIPTargetPrototypeNetworkInterfaceIdentityNetwor return not self == other -class FloatingIPTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityById(FloatingIPTargetPrototypeNetworkInterfaceIdentity): +class FloatingIPTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityById( + FloatingIPTargetPrototypeNetworkInterfaceIdentity +): """ FloatingIPTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityById. @@ -146804,7 +149101,9 @@ def from_dict(cls, _dict: Dict) -> 'FloatingIPTargetPrototypeNetworkInterfaceIde if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in FloatingIPTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityById JSON') + raise ValueError( + 'Required property \'id\' not present in FloatingIPTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityById JSON' + ) return cls(**args) @classmethod @@ -146838,7 +149137,9 @@ def __ne__(self, other: 'FloatingIPTargetPrototypeNetworkInterfaceIdentityNetwor return not self == other -class FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN(FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentity): +class FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN( + FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentity +): """ FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN. @@ -146858,13 +149159,17 @@ def __init__( self.crn = crn @classmethod - def from_dict(cls, _dict: Dict) -> 'FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN': + def from_dict( + cls, _dict: Dict + ) -> 'FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN': """Initialize a FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN object from a json dictionary.""" args = {} if (crn := _dict.get('crn')) is not None: args['crn'] = crn else: - raise ValueError('Required property \'crn\' not present in FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN JSON') + raise ValueError( + 'Required property \'crn\' not present in FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN JSON' + ) return cls(**args) @classmethod @@ -146887,18 +149192,24 @@ def __str__(self) -> str: """Return a `str` version of this FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN') -> bool: + def __eq__( + self, other: 'FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN' + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN') -> bool: + def __ne__( + self, other: 'FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN' + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other -class FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref(FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentity): +class FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref( + FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentity +): """ FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref. @@ -146918,13 +149229,17 @@ def __init__( self.href = href @classmethod - def from_dict(cls, _dict: Dict) -> 'FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref': + def from_dict( + cls, _dict: Dict + ) -> 'FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref': """Initialize a FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref object from a json dictionary.""" args = {} if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref JSON') + raise ValueError( + 'Required property \'href\' not present in FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref JSON' + ) return cls(**args) @classmethod @@ -146947,18 +149262,24 @@ def __str__(self) -> str: """Return a `str` version of this FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref') -> bool: + def __eq__( + self, other: 'FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref' + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref') -> bool: + def __ne__( + self, other: 'FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref' + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other -class FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById(FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentity): +class FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById( + FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentity +): """ FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById. @@ -146978,13 +149299,17 @@ def __init__( self.id = id @classmethod - def from_dict(cls, _dict: Dict) -> 'FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById': + def from_dict( + cls, _dict: Dict + ) -> 'FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById': """Initialize a FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById object from a json dictionary.""" args = {} if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById JSON') + raise ValueError( + 'Required property \'id\' not present in FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById JSON' + ) return cls(**args) @classmethod @@ -147007,18 +149332,24 @@ def __str__(self) -> str: """Return a `str` version of this FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById') -> bool: + def __eq__( + self, other: 'FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById' + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById') -> bool: + def __ne__( + self, other: 'FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById' + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other -class FlowLogCollectorTargetPrototypeInstanceIdentityInstanceIdentityByCRN(FlowLogCollectorTargetPrototypeInstanceIdentity): +class FlowLogCollectorTargetPrototypeInstanceIdentityInstanceIdentityByCRN( + FlowLogCollectorTargetPrototypeInstanceIdentity +): """ FlowLogCollectorTargetPrototypeInstanceIdentityInstanceIdentityByCRN. @@ -147044,7 +149375,9 @@ def from_dict(cls, _dict: Dict) -> 'FlowLogCollectorTargetPrototypeInstanceIdent if (crn := _dict.get('crn')) is not None: args['crn'] = crn else: - raise ValueError('Required property \'crn\' not present in FlowLogCollectorTargetPrototypeInstanceIdentityInstanceIdentityByCRN JSON') + raise ValueError( + 'Required property \'crn\' not present in FlowLogCollectorTargetPrototypeInstanceIdentityInstanceIdentityByCRN JSON' + ) return cls(**args) @classmethod @@ -147078,7 +149411,9 @@ def __ne__(self, other: 'FlowLogCollectorTargetPrototypeInstanceIdentityInstance return not self == other -class FlowLogCollectorTargetPrototypeInstanceIdentityInstanceIdentityByHref(FlowLogCollectorTargetPrototypeInstanceIdentity): +class FlowLogCollectorTargetPrototypeInstanceIdentityInstanceIdentityByHref( + FlowLogCollectorTargetPrototypeInstanceIdentity +): """ FlowLogCollectorTargetPrototypeInstanceIdentityInstanceIdentityByHref. @@ -147104,7 +149439,9 @@ def from_dict(cls, _dict: Dict) -> 'FlowLogCollectorTargetPrototypeInstanceIdent if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in FlowLogCollectorTargetPrototypeInstanceIdentityInstanceIdentityByHref JSON') + raise ValueError( + 'Required property \'href\' not present in FlowLogCollectorTargetPrototypeInstanceIdentityInstanceIdentityByHref JSON' + ) return cls(**args) @classmethod @@ -147138,7 +149475,9 @@ def __ne__(self, other: 'FlowLogCollectorTargetPrototypeInstanceIdentityInstance return not self == other -class FlowLogCollectorTargetPrototypeInstanceIdentityInstanceIdentityById(FlowLogCollectorTargetPrototypeInstanceIdentity): +class FlowLogCollectorTargetPrototypeInstanceIdentityInstanceIdentityById( + FlowLogCollectorTargetPrototypeInstanceIdentity +): """ FlowLogCollectorTargetPrototypeInstanceIdentityInstanceIdentityById. @@ -147164,7 +149503,9 @@ def from_dict(cls, _dict: Dict) -> 'FlowLogCollectorTargetPrototypeInstanceIdent if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in FlowLogCollectorTargetPrototypeInstanceIdentityInstanceIdentityById JSON') + raise ValueError( + 'Required property \'id\' not present in FlowLogCollectorTargetPrototypeInstanceIdentityInstanceIdentityById JSON' + ) return cls(**args) @classmethod @@ -147198,7 +149539,9 @@ def __ne__(self, other: 'FlowLogCollectorTargetPrototypeInstanceIdentityInstance return not self == other -class FlowLogCollectorTargetPrototypeInstanceNetworkAttachmentIdentityInstanceNetworkAttachmentIdentityByHref(FlowLogCollectorTargetPrototypeInstanceNetworkAttachmentIdentity): +class FlowLogCollectorTargetPrototypeInstanceNetworkAttachmentIdentityInstanceNetworkAttachmentIdentityByHref( + FlowLogCollectorTargetPrototypeInstanceNetworkAttachmentIdentity +): """ FlowLogCollectorTargetPrototypeInstanceNetworkAttachmentIdentityInstanceNetworkAttachmentIdentityByHref. @@ -147218,13 +149561,17 @@ def __init__( self.href = href @classmethod - def from_dict(cls, _dict: Dict) -> 'FlowLogCollectorTargetPrototypeInstanceNetworkAttachmentIdentityInstanceNetworkAttachmentIdentityByHref': + def from_dict( + cls, _dict: Dict + ) -> 'FlowLogCollectorTargetPrototypeInstanceNetworkAttachmentIdentityInstanceNetworkAttachmentIdentityByHref': """Initialize a FlowLogCollectorTargetPrototypeInstanceNetworkAttachmentIdentityInstanceNetworkAttachmentIdentityByHref object from a json dictionary.""" args = {} if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in FlowLogCollectorTargetPrototypeInstanceNetworkAttachmentIdentityInstanceNetworkAttachmentIdentityByHref JSON') + raise ValueError( + 'Required property \'href\' not present in FlowLogCollectorTargetPrototypeInstanceNetworkAttachmentIdentityInstanceNetworkAttachmentIdentityByHref JSON' + ) return cls(**args) @classmethod @@ -147247,18 +149594,26 @@ def __str__(self) -> str: """Return a `str` version of this FlowLogCollectorTargetPrototypeInstanceNetworkAttachmentIdentityInstanceNetworkAttachmentIdentityByHref object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'FlowLogCollectorTargetPrototypeInstanceNetworkAttachmentIdentityInstanceNetworkAttachmentIdentityByHref') -> bool: + def __eq__( + self, + other: 'FlowLogCollectorTargetPrototypeInstanceNetworkAttachmentIdentityInstanceNetworkAttachmentIdentityByHref', + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'FlowLogCollectorTargetPrototypeInstanceNetworkAttachmentIdentityInstanceNetworkAttachmentIdentityByHref') -> bool: + def __ne__( + self, + other: 'FlowLogCollectorTargetPrototypeInstanceNetworkAttachmentIdentityInstanceNetworkAttachmentIdentityByHref', + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other -class FlowLogCollectorTargetPrototypeInstanceNetworkAttachmentIdentityInstanceNetworkAttachmentIdentityById(FlowLogCollectorTargetPrototypeInstanceNetworkAttachmentIdentity): +class FlowLogCollectorTargetPrototypeInstanceNetworkAttachmentIdentityInstanceNetworkAttachmentIdentityById( + FlowLogCollectorTargetPrototypeInstanceNetworkAttachmentIdentity +): """ FlowLogCollectorTargetPrototypeInstanceNetworkAttachmentIdentityInstanceNetworkAttachmentIdentityById. @@ -147278,13 +149633,17 @@ def __init__( self.id = id @classmethod - def from_dict(cls, _dict: Dict) -> 'FlowLogCollectorTargetPrototypeInstanceNetworkAttachmentIdentityInstanceNetworkAttachmentIdentityById': + def from_dict( + cls, _dict: Dict + ) -> 'FlowLogCollectorTargetPrototypeInstanceNetworkAttachmentIdentityInstanceNetworkAttachmentIdentityById': """Initialize a FlowLogCollectorTargetPrototypeInstanceNetworkAttachmentIdentityInstanceNetworkAttachmentIdentityById object from a json dictionary.""" args = {} if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in FlowLogCollectorTargetPrototypeInstanceNetworkAttachmentIdentityInstanceNetworkAttachmentIdentityById JSON') + raise ValueError( + 'Required property \'id\' not present in FlowLogCollectorTargetPrototypeInstanceNetworkAttachmentIdentityInstanceNetworkAttachmentIdentityById JSON' + ) return cls(**args) @classmethod @@ -147307,18 +149666,26 @@ def __str__(self) -> str: """Return a `str` version of this FlowLogCollectorTargetPrototypeInstanceNetworkAttachmentIdentityInstanceNetworkAttachmentIdentityById object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'FlowLogCollectorTargetPrototypeInstanceNetworkAttachmentIdentityInstanceNetworkAttachmentIdentityById') -> bool: + def __eq__( + self, + other: 'FlowLogCollectorTargetPrototypeInstanceNetworkAttachmentIdentityInstanceNetworkAttachmentIdentityById', + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'FlowLogCollectorTargetPrototypeInstanceNetworkAttachmentIdentityInstanceNetworkAttachmentIdentityById') -> bool: + def __ne__( + self, + other: 'FlowLogCollectorTargetPrototypeInstanceNetworkAttachmentIdentityInstanceNetworkAttachmentIdentityById', + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other -class FlowLogCollectorTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityByHref(FlowLogCollectorTargetPrototypeNetworkInterfaceIdentity): +class FlowLogCollectorTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityByHref( + FlowLogCollectorTargetPrototypeNetworkInterfaceIdentity +): """ FlowLogCollectorTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityByHref. @@ -147346,13 +149713,17 @@ def __init__( self.href = href @classmethod - def from_dict(cls, _dict: Dict) -> 'FlowLogCollectorTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityByHref': + def from_dict( + cls, _dict: Dict + ) -> 'FlowLogCollectorTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityByHref': """Initialize a FlowLogCollectorTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityByHref object from a json dictionary.""" args = {} if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in FlowLogCollectorTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityByHref JSON') + raise ValueError( + 'Required property \'href\' not present in FlowLogCollectorTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityByHref JSON' + ) return cls(**args) @classmethod @@ -147375,18 +149746,24 @@ def __str__(self) -> str: """Return a `str` version of this FlowLogCollectorTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityByHref object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'FlowLogCollectorTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityByHref') -> bool: + def __eq__( + self, other: 'FlowLogCollectorTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityByHref' + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'FlowLogCollectorTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityByHref') -> bool: + def __ne__( + self, other: 'FlowLogCollectorTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityByHref' + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other -class FlowLogCollectorTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityById(FlowLogCollectorTargetPrototypeNetworkInterfaceIdentity): +class FlowLogCollectorTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityById( + FlowLogCollectorTargetPrototypeNetworkInterfaceIdentity +): """ FlowLogCollectorTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityById. @@ -147417,13 +149794,17 @@ def __init__( self.id = id @classmethod - def from_dict(cls, _dict: Dict) -> 'FlowLogCollectorTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityById': + def from_dict( + cls, _dict: Dict + ) -> 'FlowLogCollectorTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityById': """Initialize a FlowLogCollectorTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityById object from a json dictionary.""" args = {} if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in FlowLogCollectorTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityById JSON') + raise ValueError( + 'Required property \'id\' not present in FlowLogCollectorTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityById JSON' + ) return cls(**args) @classmethod @@ -147446,13 +149827,17 @@ def __str__(self) -> str: """Return a `str` version of this FlowLogCollectorTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityById object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'FlowLogCollectorTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityById') -> bool: + def __eq__( + self, other: 'FlowLogCollectorTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityById' + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'FlowLogCollectorTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityById') -> bool: + def __ne__( + self, other: 'FlowLogCollectorTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityById' + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other @@ -147483,7 +149868,9 @@ def from_dict(cls, _dict: Dict) -> 'FlowLogCollectorTargetPrototypeSubnetIdentit if (crn := _dict.get('crn')) is not None: args['crn'] = crn else: - raise ValueError('Required property \'crn\' not present in FlowLogCollectorTargetPrototypeSubnetIdentitySubnetIdentityByCRN JSON') + raise ValueError( + 'Required property \'crn\' not present in FlowLogCollectorTargetPrototypeSubnetIdentitySubnetIdentityByCRN JSON' + ) return cls(**args) @classmethod @@ -147543,7 +149930,9 @@ def from_dict(cls, _dict: Dict) -> 'FlowLogCollectorTargetPrototypeSubnetIdentit if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in FlowLogCollectorTargetPrototypeSubnetIdentitySubnetIdentityByHref JSON') + raise ValueError( + 'Required property \'href\' not present in FlowLogCollectorTargetPrototypeSubnetIdentitySubnetIdentityByHref JSON' + ) return cls(**args) @classmethod @@ -147603,7 +149992,9 @@ def from_dict(cls, _dict: Dict) -> 'FlowLogCollectorTargetPrototypeSubnetIdentit if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in FlowLogCollectorTargetPrototypeSubnetIdentitySubnetIdentityById JSON') + raise ValueError( + 'Required property \'id\' not present in FlowLogCollectorTargetPrototypeSubnetIdentitySubnetIdentityById JSON' + ) return cls(**args) @classmethod @@ -147663,7 +150054,9 @@ def from_dict(cls, _dict: Dict) -> 'FlowLogCollectorTargetPrototypeVPCIdentityVP if (crn := _dict.get('crn')) is not None: args['crn'] = crn else: - raise ValueError('Required property \'crn\' not present in FlowLogCollectorTargetPrototypeVPCIdentityVPCIdentityByCRN JSON') + raise ValueError( + 'Required property \'crn\' not present in FlowLogCollectorTargetPrototypeVPCIdentityVPCIdentityByCRN JSON' + ) return cls(**args) @classmethod @@ -147723,7 +150116,9 @@ def from_dict(cls, _dict: Dict) -> 'FlowLogCollectorTargetPrototypeVPCIdentityVP if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in FlowLogCollectorTargetPrototypeVPCIdentityVPCIdentityByHref JSON') + raise ValueError( + 'Required property \'href\' not present in FlowLogCollectorTargetPrototypeVPCIdentityVPCIdentityByHref JSON' + ) return cls(**args) @classmethod @@ -147783,7 +150178,9 @@ def from_dict(cls, _dict: Dict) -> 'FlowLogCollectorTargetPrototypeVPCIdentityVP if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in FlowLogCollectorTargetPrototypeVPCIdentityVPCIdentityById JSON') + raise ValueError( + 'Required property \'id\' not present in FlowLogCollectorTargetPrototypeVPCIdentityVPCIdentityById JSON' + ) return cls(**args) @classmethod @@ -147817,7 +150214,9 @@ def __ne__(self, other: 'FlowLogCollectorTargetPrototypeVPCIdentityVPCIdentityBy return not self == other -class FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN(FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentity): +class FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN( + FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentity +): """ FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN. @@ -147837,13 +150236,17 @@ def __init__( self.crn = crn @classmethod - def from_dict(cls, _dict: Dict) -> 'FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN': + def from_dict( + cls, _dict: Dict + ) -> 'FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN': """Initialize a FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN object from a json dictionary.""" args = {} if (crn := _dict.get('crn')) is not None: args['crn'] = crn else: - raise ValueError('Required property \'crn\' not present in FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN JSON') + raise ValueError( + 'Required property \'crn\' not present in FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN JSON' + ) return cls(**args) @classmethod @@ -147866,18 +150269,26 @@ def __str__(self) -> str: """Return a `str` version of this FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN') -> bool: + def __eq__( + self, + other: 'FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN', + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN') -> bool: + def __ne__( + self, + other: 'FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN', + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other -class FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref(FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentity): +class FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref( + FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentity +): """ FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref. @@ -147897,13 +150308,17 @@ def __init__( self.href = href @classmethod - def from_dict(cls, _dict: Dict) -> 'FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref': + def from_dict( + cls, _dict: Dict + ) -> 'FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref': """Initialize a FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref object from a json dictionary.""" args = {} if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref JSON') + raise ValueError( + 'Required property \'href\' not present in FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref JSON' + ) return cls(**args) @classmethod @@ -147926,18 +150341,26 @@ def __str__(self) -> str: """Return a `str` version of this FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref') -> bool: + def __eq__( + self, + other: 'FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref', + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref') -> bool: + def __ne__( + self, + other: 'FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref', + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other -class FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById(FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentity): +class FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById( + FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentity +): """ FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById. @@ -147957,13 +150380,17 @@ def __init__( self.id = id @classmethod - def from_dict(cls, _dict: Dict) -> 'FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById': + def from_dict( + cls, _dict: Dict + ) -> 'FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById': """Initialize a FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById object from a json dictionary.""" args = {} if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById JSON') + raise ValueError( + 'Required property \'id\' not present in FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById JSON' + ) return cls(**args) @classmethod @@ -147986,18 +150413,24 @@ def __str__(self) -> str: """Return a `str` version of this FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById') -> bool: + def __eq__( + self, other: 'FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById' + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById') -> bool: + def __ne__( + self, other: 'FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById' + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other -class InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceClusterNetworkInterfaceIdentityClusterNetworkInterfaceIdentityByHref(InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceClusterNetworkInterfaceIdentity): +class InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceClusterNetworkInterfaceIdentityClusterNetworkInterfaceIdentityByHref( + InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceClusterNetworkInterfaceIdentity +): """ InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceClusterNetworkInterfaceIdentityClusterNetworkInterfaceIdentityByHref. @@ -148017,13 +150450,17 @@ def __init__( self.href = href @classmethod - def from_dict(cls, _dict: Dict) -> 'InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceClusterNetworkInterfaceIdentityClusterNetworkInterfaceIdentityByHref': + def from_dict( + cls, _dict: Dict + ) -> 'InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceClusterNetworkInterfaceIdentityClusterNetworkInterfaceIdentityByHref': """Initialize a InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceClusterNetworkInterfaceIdentityClusterNetworkInterfaceIdentityByHref object from a json dictionary.""" args = {} if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceClusterNetworkInterfaceIdentityClusterNetworkInterfaceIdentityByHref JSON') + raise ValueError( + 'Required property \'href\' not present in InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceClusterNetworkInterfaceIdentityClusterNetworkInterfaceIdentityByHref JSON' + ) return cls(**args) @classmethod @@ -148046,18 +150483,26 @@ def __str__(self) -> str: """Return a `str` version of this InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceClusterNetworkInterfaceIdentityClusterNetworkInterfaceIdentityByHref object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceClusterNetworkInterfaceIdentityClusterNetworkInterfaceIdentityByHref') -> bool: + def __eq__( + self, + other: 'InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceClusterNetworkInterfaceIdentityClusterNetworkInterfaceIdentityByHref', + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceClusterNetworkInterfaceIdentityClusterNetworkInterfaceIdentityByHref') -> bool: + def __ne__( + self, + other: 'InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceClusterNetworkInterfaceIdentityClusterNetworkInterfaceIdentityByHref', + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other -class InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceClusterNetworkInterfaceIdentityClusterNetworkInterfaceIdentityById(InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceClusterNetworkInterfaceIdentity): +class InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceClusterNetworkInterfaceIdentityClusterNetworkInterfaceIdentityById( + InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceClusterNetworkInterfaceIdentity +): """ InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceClusterNetworkInterfaceIdentityClusterNetworkInterfaceIdentityById. @@ -148077,13 +150522,17 @@ def __init__( self.id = id @classmethod - def from_dict(cls, _dict: Dict) -> 'InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceClusterNetworkInterfaceIdentityClusterNetworkInterfaceIdentityById': + def from_dict( + cls, _dict: Dict + ) -> 'InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceClusterNetworkInterfaceIdentityClusterNetworkInterfaceIdentityById': """Initialize a InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceClusterNetworkInterfaceIdentityClusterNetworkInterfaceIdentityById object from a json dictionary.""" args = {} if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceClusterNetworkInterfaceIdentityClusterNetworkInterfaceIdentityById JSON') + raise ValueError( + 'Required property \'id\' not present in InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceClusterNetworkInterfaceIdentityClusterNetworkInterfaceIdentityById JSON' + ) return cls(**args) @classmethod @@ -148106,18 +150555,26 @@ def __str__(self) -> str: """Return a `str` version of this InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceClusterNetworkInterfaceIdentityClusterNetworkInterfaceIdentityById object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceClusterNetworkInterfaceIdentityClusterNetworkInterfaceIdentityById') -> bool: + def __eq__( + self, + other: 'InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceClusterNetworkInterfaceIdentityClusterNetworkInterfaceIdentityById', + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceClusterNetworkInterfaceIdentityClusterNetworkInterfaceIdentityById') -> bool: + def __ne__( + self, + other: 'InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceClusterNetworkInterfaceIdentityClusterNetworkInterfaceIdentityById', + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other -class InstanceGroupManagerActionPrototypeScheduledActionPrototypeByCronSpec(InstanceGroupManagerActionPrototypeScheduledActionPrototype): +class InstanceGroupManagerActionPrototypeScheduledActionPrototypeByCronSpec( + InstanceGroupManagerActionPrototypeScheduledActionPrototype +): """ InstanceGroupManagerActionPrototypeScheduledActionPrototypeByCronSpec. @@ -148148,12 +150605,19 @@ def __init__( """ # pylint: disable=super-init-not-called msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['InstanceGroupManagerActionPrototypeScheduledActionPrototypeByCronSpecByGroup', 'InstanceGroupManagerActionPrototypeScheduledActionPrototypeByCronSpecByManager']) + ", ".join( + [ + 'InstanceGroupManagerActionPrototypeScheduledActionPrototypeByCronSpecByGroup', + 'InstanceGroupManagerActionPrototypeScheduledActionPrototypeByCronSpecByManager', + ] + ) ) raise Exception(msg) -class InstanceGroupManagerActionPrototypeScheduledActionPrototypeByRunAt(InstanceGroupManagerActionPrototypeScheduledActionPrototype): +class InstanceGroupManagerActionPrototypeScheduledActionPrototypeByRunAt( + InstanceGroupManagerActionPrototypeScheduledActionPrototype +): """ InstanceGroupManagerActionPrototypeScheduledActionPrototypeByRunAt. @@ -148182,7 +150646,12 @@ def __init__( """ # pylint: disable=super-init-not-called msg = "Cannot instantiate base class. Instead, instantiate one of the defined subclasses: {0}".format( - ", ".join(['InstanceGroupManagerActionPrototypeScheduledActionPrototypeByRunAtByGroup', 'InstanceGroupManagerActionPrototypeScheduledActionPrototypeByRunAtByManager']) + ", ".join( + [ + 'InstanceGroupManagerActionPrototypeScheduledActionPrototypeByRunAtByGroup', + 'InstanceGroupManagerActionPrototypeScheduledActionPrototypeByRunAtByManager', + ] + ) ) raise Exception(msg) @@ -148309,43 +150778,63 @@ def from_dict(cls, _dict: Dict) -> 'InstanceGroupManagerActionScheduledActionGro if (auto_delete := _dict.get('auto_delete')) is not None: args['auto_delete'] = auto_delete else: - raise ValueError('Required property \'auto_delete\' not present in InstanceGroupManagerActionScheduledActionGroupTarget JSON') + raise ValueError( + 'Required property \'auto_delete\' not present in InstanceGroupManagerActionScheduledActionGroupTarget JSON' + ) if (auto_delete_timeout := _dict.get('auto_delete_timeout')) is not None: args['auto_delete_timeout'] = auto_delete_timeout else: - raise ValueError('Required property \'auto_delete_timeout\' not present in InstanceGroupManagerActionScheduledActionGroupTarget JSON') + raise ValueError( + 'Required property \'auto_delete_timeout\' not present in InstanceGroupManagerActionScheduledActionGroupTarget JSON' + ) if (created_at := _dict.get('created_at')) is not None: args['created_at'] = string_to_datetime(created_at) else: - raise ValueError('Required property \'created_at\' not present in InstanceGroupManagerActionScheduledActionGroupTarget JSON') + raise ValueError( + 'Required property \'created_at\' not present in InstanceGroupManagerActionScheduledActionGroupTarget JSON' + ) if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in InstanceGroupManagerActionScheduledActionGroupTarget JSON') + raise ValueError( + 'Required property \'href\' not present in InstanceGroupManagerActionScheduledActionGroupTarget JSON' + ) if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in InstanceGroupManagerActionScheduledActionGroupTarget JSON') + raise ValueError( + 'Required property \'id\' not present in InstanceGroupManagerActionScheduledActionGroupTarget JSON' + ) if (name := _dict.get('name')) is not None: args['name'] = name else: - raise ValueError('Required property \'name\' not present in InstanceGroupManagerActionScheduledActionGroupTarget JSON') + raise ValueError( + 'Required property \'name\' not present in InstanceGroupManagerActionScheduledActionGroupTarget JSON' + ) if (resource_type := _dict.get('resource_type')) is not None: args['resource_type'] = resource_type else: - raise ValueError('Required property \'resource_type\' not present in InstanceGroupManagerActionScheduledActionGroupTarget JSON') + raise ValueError( + 'Required property \'resource_type\' not present in InstanceGroupManagerActionScheduledActionGroupTarget JSON' + ) if (status := _dict.get('status')) is not None: args['status'] = status else: - raise ValueError('Required property \'status\' not present in InstanceGroupManagerActionScheduledActionGroupTarget JSON') + raise ValueError( + 'Required property \'status\' not present in InstanceGroupManagerActionScheduledActionGroupTarget JSON' + ) if (updated_at := _dict.get('updated_at')) is not None: args['updated_at'] = string_to_datetime(updated_at) else: - raise ValueError('Required property \'updated_at\' not present in InstanceGroupManagerActionScheduledActionGroupTarget JSON') + raise ValueError( + 'Required property \'updated_at\' not present in InstanceGroupManagerActionScheduledActionGroupTarget JSON' + ) if (action_type := _dict.get('action_type')) is not None: args['action_type'] = action_type else: - raise ValueError('Required property \'action_type\' not present in InstanceGroupManagerActionScheduledActionGroupTarget JSON') + raise ValueError( + 'Required property \'action_type\' not present in InstanceGroupManagerActionScheduledActionGroupTarget JSON' + ) if (cron_spec := _dict.get('cron_spec')) is not None: args['cron_spec'] = cron_spec if (last_applied_at := _dict.get('last_applied_at')) is not None: @@ -148355,7 +150844,9 @@ def from_dict(cls, _dict: Dict) -> 'InstanceGroupManagerActionScheduledActionGro if (group := _dict.get('group')) is not None: args['group'] = InstanceGroupManagerScheduledActionGroup.from_dict(group) else: - raise ValueError('Required property \'group\' not present in InstanceGroupManagerActionScheduledActionGroupTarget JSON') + raise ValueError( + 'Required property \'group\' not present in InstanceGroupManagerActionScheduledActionGroupTarget JSON' + ) return cls(**args) @classmethod @@ -148424,7 +150915,6 @@ class ResourceTypeEnum(str, Enum): INSTANCE_GROUP_MANAGER_ACTION = 'instance_group_manager_action' - class StatusEnum(str, Enum): """ The status of the instance group action @@ -148444,7 +150934,6 @@ class StatusEnum(str, Enum): INCOMPATIBLE = 'incompatible' OMITTED = 'omitted' - class ActionTypeEnum(str, Enum): """ The type of action for the instance group. @@ -148453,7 +150942,6 @@ class ActionTypeEnum(str, Enum): SCHEDULED = 'scheduled' - class InstanceGroupManagerActionScheduledActionManagerTarget(InstanceGroupManagerActionScheduledAction): """ InstanceGroupManagerActionScheduledActionManagerTarget. @@ -148576,43 +151064,63 @@ def from_dict(cls, _dict: Dict) -> 'InstanceGroupManagerActionScheduledActionMan if (auto_delete := _dict.get('auto_delete')) is not None: args['auto_delete'] = auto_delete else: - raise ValueError('Required property \'auto_delete\' not present in InstanceGroupManagerActionScheduledActionManagerTarget JSON') + raise ValueError( + 'Required property \'auto_delete\' not present in InstanceGroupManagerActionScheduledActionManagerTarget JSON' + ) if (auto_delete_timeout := _dict.get('auto_delete_timeout')) is not None: args['auto_delete_timeout'] = auto_delete_timeout else: - raise ValueError('Required property \'auto_delete_timeout\' not present in InstanceGroupManagerActionScheduledActionManagerTarget JSON') + raise ValueError( + 'Required property \'auto_delete_timeout\' not present in InstanceGroupManagerActionScheduledActionManagerTarget JSON' + ) if (created_at := _dict.get('created_at')) is not None: args['created_at'] = string_to_datetime(created_at) else: - raise ValueError('Required property \'created_at\' not present in InstanceGroupManagerActionScheduledActionManagerTarget JSON') + raise ValueError( + 'Required property \'created_at\' not present in InstanceGroupManagerActionScheduledActionManagerTarget JSON' + ) if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in InstanceGroupManagerActionScheduledActionManagerTarget JSON') + raise ValueError( + 'Required property \'href\' not present in InstanceGroupManagerActionScheduledActionManagerTarget JSON' + ) if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in InstanceGroupManagerActionScheduledActionManagerTarget JSON') + raise ValueError( + 'Required property \'id\' not present in InstanceGroupManagerActionScheduledActionManagerTarget JSON' + ) if (name := _dict.get('name')) is not None: args['name'] = name else: - raise ValueError('Required property \'name\' not present in InstanceGroupManagerActionScheduledActionManagerTarget JSON') + raise ValueError( + 'Required property \'name\' not present in InstanceGroupManagerActionScheduledActionManagerTarget JSON' + ) if (resource_type := _dict.get('resource_type')) is not None: args['resource_type'] = resource_type else: - raise ValueError('Required property \'resource_type\' not present in InstanceGroupManagerActionScheduledActionManagerTarget JSON') + raise ValueError( + 'Required property \'resource_type\' not present in InstanceGroupManagerActionScheduledActionManagerTarget JSON' + ) if (status := _dict.get('status')) is not None: args['status'] = status else: - raise ValueError('Required property \'status\' not present in InstanceGroupManagerActionScheduledActionManagerTarget JSON') + raise ValueError( + 'Required property \'status\' not present in InstanceGroupManagerActionScheduledActionManagerTarget JSON' + ) if (updated_at := _dict.get('updated_at')) is not None: args['updated_at'] = string_to_datetime(updated_at) else: - raise ValueError('Required property \'updated_at\' not present in InstanceGroupManagerActionScheduledActionManagerTarget JSON') + raise ValueError( + 'Required property \'updated_at\' not present in InstanceGroupManagerActionScheduledActionManagerTarget JSON' + ) if (action_type := _dict.get('action_type')) is not None: args['action_type'] = action_type else: - raise ValueError('Required property \'action_type\' not present in InstanceGroupManagerActionScheduledActionManagerTarget JSON') + raise ValueError( + 'Required property \'action_type\' not present in InstanceGroupManagerActionScheduledActionManagerTarget JSON' + ) if (cron_spec := _dict.get('cron_spec')) is not None: args['cron_spec'] = cron_spec if (last_applied_at := _dict.get('last_applied_at')) is not None: @@ -148622,7 +151130,9 @@ def from_dict(cls, _dict: Dict) -> 'InstanceGroupManagerActionScheduledActionMan if (manager := _dict.get('manager')) is not None: args['manager'] = manager else: - raise ValueError('Required property \'manager\' not present in InstanceGroupManagerActionScheduledActionManagerTarget JSON') + raise ValueError( + 'Required property \'manager\' not present in InstanceGroupManagerActionScheduledActionManagerTarget JSON' + ) return cls(**args) @classmethod @@ -148691,7 +151201,6 @@ class ResourceTypeEnum(str, Enum): INSTANCE_GROUP_MANAGER_ACTION = 'instance_group_manager_action' - class StatusEnum(str, Enum): """ The status of the instance group action @@ -148711,7 +151220,6 @@ class StatusEnum(str, Enum): INCOMPATIBLE = 'incompatible' OMITTED = 'omitted' - class ActionTypeEnum(str, Enum): """ The type of action for the instance group. @@ -148720,8 +151228,9 @@ class ActionTypeEnum(str, Enum): SCHEDULED = 'scheduled' - -class InstanceGroupManagerScheduledActionManagerPrototypeAutoScalePrototypeByHref(InstanceGroupManagerScheduledActionManagerPrototypeAutoScalePrototype): +class InstanceGroupManagerScheduledActionManagerPrototypeAutoScalePrototypeByHref( + InstanceGroupManagerScheduledActionManagerPrototypeAutoScalePrototype +): """ InstanceGroupManagerScheduledActionManagerPrototypeAutoScalePrototypeByHref. @@ -148764,7 +151273,9 @@ def from_dict(cls, _dict: Dict) -> 'InstanceGroupManagerScheduledActionManagerPr if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in InstanceGroupManagerScheduledActionManagerPrototypeAutoScalePrototypeByHref JSON') + raise ValueError( + 'Required property \'href\' not present in InstanceGroupManagerScheduledActionManagerPrototypeAutoScalePrototypeByHref JSON' + ) return cls(**args) @classmethod @@ -148802,7 +151313,9 @@ def __ne__(self, other: 'InstanceGroupManagerScheduledActionManagerPrototypeAuto return not self == other -class InstanceGroupManagerScheduledActionManagerPrototypeAutoScalePrototypeById(InstanceGroupManagerScheduledActionManagerPrototypeAutoScalePrototype): +class InstanceGroupManagerScheduledActionManagerPrototypeAutoScalePrototypeById( + InstanceGroupManagerScheduledActionManagerPrototypeAutoScalePrototype +): """ InstanceGroupManagerScheduledActionManagerPrototypeAutoScalePrototypeById. @@ -148845,7 +151358,9 @@ def from_dict(cls, _dict: Dict) -> 'InstanceGroupManagerScheduledActionManagerPr if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in InstanceGroupManagerScheduledActionManagerPrototypeAutoScalePrototypeById JSON') + raise ValueError( + 'Required property \'id\' not present in InstanceGroupManagerScheduledActionManagerPrototypeAutoScalePrototypeById JSON' + ) return cls(**args) @classmethod @@ -148883,7 +151398,9 @@ def __ne__(self, other: 'InstanceGroupManagerScheduledActionManagerPrototypeAuto return not self == other -class InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN(InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentity): +class InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN( + InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentity +): """ InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN. @@ -148903,13 +151420,17 @@ def __init__( self.crn = crn @classmethod - def from_dict(cls, _dict: Dict) -> 'InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN': + def from_dict( + cls, _dict: Dict + ) -> 'InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN': """Initialize a InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN object from a json dictionary.""" args = {} if (crn := _dict.get('crn')) is not None: args['crn'] = crn else: - raise ValueError('Required property \'crn\' not present in InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN JSON') + raise ValueError( + 'Required property \'crn\' not present in InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN JSON' + ) return cls(**args) @classmethod @@ -148932,18 +151453,26 @@ def __str__(self) -> str: """Return a `str` version of this InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN') -> bool: + def __eq__( + self, + other: 'InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN', + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN') -> bool: + def __ne__( + self, + other: 'InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN', + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other -class InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref(InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentity): +class InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref( + InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentity +): """ InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref. @@ -148963,13 +151492,17 @@ def __init__( self.href = href @classmethod - def from_dict(cls, _dict: Dict) -> 'InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref': + def from_dict( + cls, _dict: Dict + ) -> 'InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref': """Initialize a InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref object from a json dictionary.""" args = {} if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref JSON') + raise ValueError( + 'Required property \'href\' not present in InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref JSON' + ) return cls(**args) @classmethod @@ -148992,18 +151525,26 @@ def __str__(self) -> str: """Return a `str` version of this InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref') -> bool: + def __eq__( + self, + other: 'InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref', + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref') -> bool: + def __ne__( + self, + other: 'InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref', + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other -class InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById(InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentity): +class InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById( + InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentity +): """ InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById. @@ -149023,13 +151564,17 @@ def __init__( self.id = id @classmethod - def from_dict(cls, _dict: Dict) -> 'InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById': + def from_dict( + cls, _dict: Dict + ) -> 'InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById': """Initialize a InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById object from a json dictionary.""" args = {} if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById JSON') + raise ValueError( + 'Required property \'id\' not present in InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById JSON' + ) return cls(**args) @classmethod @@ -149052,18 +151597,26 @@ def __str__(self) -> str: """Return a `str` version of this InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById') -> bool: + def __eq__( + self, + other: 'InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById', + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById') -> bool: + def __ne__( + self, + other: 'InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById', + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other -class InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityByCRN(InstancePlacementTargetPatchDedicatedHostGroupIdentity): +class InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityByCRN( + InstancePlacementTargetPatchDedicatedHostGroupIdentity +): """ InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityByCRN. @@ -149083,13 +151636,17 @@ def __init__( self.crn = crn @classmethod - def from_dict(cls, _dict: Dict) -> 'InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityByCRN': + def from_dict( + cls, _dict: Dict + ) -> 'InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityByCRN': """Initialize a InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityByCRN object from a json dictionary.""" args = {} if (crn := _dict.get('crn')) is not None: args['crn'] = crn else: - raise ValueError('Required property \'crn\' not present in InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityByCRN JSON') + raise ValueError( + 'Required property \'crn\' not present in InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityByCRN JSON' + ) return cls(**args) @classmethod @@ -149112,18 +151669,24 @@ def __str__(self) -> str: """Return a `str` version of this InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityByCRN object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityByCRN') -> bool: + def __eq__( + self, other: 'InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityByCRN' + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityByCRN') -> bool: + def __ne__( + self, other: 'InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityByCRN' + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other -class InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityByHref(InstancePlacementTargetPatchDedicatedHostGroupIdentity): +class InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityByHref( + InstancePlacementTargetPatchDedicatedHostGroupIdentity +): """ InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityByHref. @@ -149143,13 +151706,17 @@ def __init__( self.href = href @classmethod - def from_dict(cls, _dict: Dict) -> 'InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityByHref': + def from_dict( + cls, _dict: Dict + ) -> 'InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityByHref': """Initialize a InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityByHref object from a json dictionary.""" args = {} if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityByHref JSON') + raise ValueError( + 'Required property \'href\' not present in InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityByHref JSON' + ) return cls(**args) @classmethod @@ -149172,18 +151739,24 @@ def __str__(self) -> str: """Return a `str` version of this InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityByHref object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityByHref') -> bool: + def __eq__( + self, other: 'InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityByHref' + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityByHref') -> bool: + def __ne__( + self, other: 'InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityByHref' + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other -class InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityById(InstancePlacementTargetPatchDedicatedHostGroupIdentity): +class InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityById( + InstancePlacementTargetPatchDedicatedHostGroupIdentity +): """ InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityById. @@ -149203,13 +151776,17 @@ def __init__( self.id = id @classmethod - def from_dict(cls, _dict: Dict) -> 'InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityById': + def from_dict( + cls, _dict: Dict + ) -> 'InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityById': """Initialize a InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityById object from a json dictionary.""" args = {} if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityById JSON') + raise ValueError( + 'Required property \'id\' not present in InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityById JSON' + ) return cls(**args) @classmethod @@ -149232,18 +151809,24 @@ def __str__(self) -> str: """Return a `str` version of this InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityById object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityById') -> bool: + def __eq__( + self, other: 'InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityById' + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityById') -> bool: + def __ne__( + self, other: 'InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityById' + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other -class InstancePlacementTargetPatchDedicatedHostIdentityDedicatedHostIdentityByCRN(InstancePlacementTargetPatchDedicatedHostIdentity): +class InstancePlacementTargetPatchDedicatedHostIdentityDedicatedHostIdentityByCRN( + InstancePlacementTargetPatchDedicatedHostIdentity +): """ InstancePlacementTargetPatchDedicatedHostIdentityDedicatedHostIdentityByCRN. @@ -149269,7 +151852,9 @@ def from_dict(cls, _dict: Dict) -> 'InstancePlacementTargetPatchDedicatedHostIde if (crn := _dict.get('crn')) is not None: args['crn'] = crn else: - raise ValueError('Required property \'crn\' not present in InstancePlacementTargetPatchDedicatedHostIdentityDedicatedHostIdentityByCRN JSON') + raise ValueError( + 'Required property \'crn\' not present in InstancePlacementTargetPatchDedicatedHostIdentityDedicatedHostIdentityByCRN JSON' + ) return cls(**args) @classmethod @@ -149303,7 +151888,9 @@ def __ne__(self, other: 'InstancePlacementTargetPatchDedicatedHostIdentityDedica return not self == other -class InstancePlacementTargetPatchDedicatedHostIdentityDedicatedHostIdentityByHref(InstancePlacementTargetPatchDedicatedHostIdentity): +class InstancePlacementTargetPatchDedicatedHostIdentityDedicatedHostIdentityByHref( + InstancePlacementTargetPatchDedicatedHostIdentity +): """ InstancePlacementTargetPatchDedicatedHostIdentityDedicatedHostIdentityByHref. @@ -149329,7 +151916,9 @@ def from_dict(cls, _dict: Dict) -> 'InstancePlacementTargetPatchDedicatedHostIde if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in InstancePlacementTargetPatchDedicatedHostIdentityDedicatedHostIdentityByHref JSON') + raise ValueError( + 'Required property \'href\' not present in InstancePlacementTargetPatchDedicatedHostIdentityDedicatedHostIdentityByHref JSON' + ) return cls(**args) @classmethod @@ -149363,7 +151952,9 @@ def __ne__(self, other: 'InstancePlacementTargetPatchDedicatedHostIdentityDedica return not self == other -class InstancePlacementTargetPatchDedicatedHostIdentityDedicatedHostIdentityById(InstancePlacementTargetPatchDedicatedHostIdentity): +class InstancePlacementTargetPatchDedicatedHostIdentityDedicatedHostIdentityById( + InstancePlacementTargetPatchDedicatedHostIdentity +): """ InstancePlacementTargetPatchDedicatedHostIdentityDedicatedHostIdentityById. @@ -149389,7 +151980,9 @@ def from_dict(cls, _dict: Dict) -> 'InstancePlacementTargetPatchDedicatedHostIde if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in InstancePlacementTargetPatchDedicatedHostIdentityDedicatedHostIdentityById JSON') + raise ValueError( + 'Required property \'id\' not present in InstancePlacementTargetPatchDedicatedHostIdentityDedicatedHostIdentityById JSON' + ) return cls(**args) @classmethod @@ -149423,7 +152016,9 @@ def __ne__(self, other: 'InstancePlacementTargetPatchDedicatedHostIdentityDedica return not self == other -class InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityByCRN(InstancePlacementTargetPrototypeDedicatedHostGroupIdentity): +class InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityByCRN( + InstancePlacementTargetPrototypeDedicatedHostGroupIdentity +): """ InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityByCRN. @@ -149443,13 +152038,17 @@ def __init__( self.crn = crn @classmethod - def from_dict(cls, _dict: Dict) -> 'InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityByCRN': + def from_dict( + cls, _dict: Dict + ) -> 'InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityByCRN': """Initialize a InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityByCRN object from a json dictionary.""" args = {} if (crn := _dict.get('crn')) is not None: args['crn'] = crn else: - raise ValueError('Required property \'crn\' not present in InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityByCRN JSON') + raise ValueError( + 'Required property \'crn\' not present in InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityByCRN JSON' + ) return cls(**args) @classmethod @@ -149472,18 +152071,24 @@ def __str__(self) -> str: """Return a `str` version of this InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityByCRN object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityByCRN') -> bool: + def __eq__( + self, other: 'InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityByCRN' + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityByCRN') -> bool: + def __ne__( + self, other: 'InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityByCRN' + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other -class InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityByHref(InstancePlacementTargetPrototypeDedicatedHostGroupIdentity): +class InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityByHref( + InstancePlacementTargetPrototypeDedicatedHostGroupIdentity +): """ InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityByHref. @@ -149503,13 +152108,17 @@ def __init__( self.href = href @classmethod - def from_dict(cls, _dict: Dict) -> 'InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityByHref': + def from_dict( + cls, _dict: Dict + ) -> 'InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityByHref': """Initialize a InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityByHref object from a json dictionary.""" args = {} if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityByHref JSON') + raise ValueError( + 'Required property \'href\' not present in InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityByHref JSON' + ) return cls(**args) @classmethod @@ -149532,18 +152141,24 @@ def __str__(self) -> str: """Return a `str` version of this InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityByHref object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityByHref') -> bool: + def __eq__( + self, other: 'InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityByHref' + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityByHref') -> bool: + def __ne__( + self, other: 'InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityByHref' + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other -class InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityById(InstancePlacementTargetPrototypeDedicatedHostGroupIdentity): +class InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityById( + InstancePlacementTargetPrototypeDedicatedHostGroupIdentity +): """ InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityById. @@ -149563,13 +152178,17 @@ def __init__( self.id = id @classmethod - def from_dict(cls, _dict: Dict) -> 'InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityById': + def from_dict( + cls, _dict: Dict + ) -> 'InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityById': """Initialize a InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityById object from a json dictionary.""" args = {} if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityById JSON') + raise ValueError( + 'Required property \'id\' not present in InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityById JSON' + ) return cls(**args) @classmethod @@ -149592,18 +152211,24 @@ def __str__(self) -> str: """Return a `str` version of this InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityById object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityById') -> bool: + def __eq__( + self, other: 'InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityById' + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityById') -> bool: + def __ne__( + self, other: 'InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityById' + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other -class InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityByCRN(InstancePlacementTargetPrototypeDedicatedHostIdentity): +class InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityByCRN( + InstancePlacementTargetPrototypeDedicatedHostIdentity +): """ InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityByCRN. @@ -149623,13 +152248,17 @@ def __init__( self.crn = crn @classmethod - def from_dict(cls, _dict: Dict) -> 'InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityByCRN': + def from_dict( + cls, _dict: Dict + ) -> 'InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityByCRN': """Initialize a InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityByCRN object from a json dictionary.""" args = {} if (crn := _dict.get('crn')) is not None: args['crn'] = crn else: - raise ValueError('Required property \'crn\' not present in InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityByCRN JSON') + raise ValueError( + 'Required property \'crn\' not present in InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityByCRN JSON' + ) return cls(**args) @classmethod @@ -149663,7 +152292,9 @@ def __ne__(self, other: 'InstancePlacementTargetPrototypeDedicatedHostIdentityDe return not self == other -class InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityByHref(InstancePlacementTargetPrototypeDedicatedHostIdentity): +class InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityByHref( + InstancePlacementTargetPrototypeDedicatedHostIdentity +): """ InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityByHref. @@ -149683,13 +152314,17 @@ def __init__( self.href = href @classmethod - def from_dict(cls, _dict: Dict) -> 'InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityByHref': + def from_dict( + cls, _dict: Dict + ) -> 'InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityByHref': """Initialize a InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityByHref object from a json dictionary.""" args = {} if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityByHref JSON') + raise ValueError( + 'Required property \'href\' not present in InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityByHref JSON' + ) return cls(**args) @classmethod @@ -149723,7 +152358,9 @@ def __ne__(self, other: 'InstancePlacementTargetPrototypeDedicatedHostIdentityDe return not self == other -class InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityById(InstancePlacementTargetPrototypeDedicatedHostIdentity): +class InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityById( + InstancePlacementTargetPrototypeDedicatedHostIdentity +): """ InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityById. @@ -149749,7 +152386,9 @@ def from_dict(cls, _dict: Dict) -> 'InstancePlacementTargetPrototypeDedicatedHos if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityById JSON') + raise ValueError( + 'Required property \'id\' not present in InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityById JSON' + ) return cls(**args) @classmethod @@ -149783,7 +152422,9 @@ def __ne__(self, other: 'InstancePlacementTargetPrototypeDedicatedHostIdentityDe return not self == other -class InstancePlacementTargetPrototypePlacementGroupIdentityPlacementGroupIdentityByCRN(InstancePlacementTargetPrototypePlacementGroupIdentity): +class InstancePlacementTargetPrototypePlacementGroupIdentityPlacementGroupIdentityByCRN( + InstancePlacementTargetPrototypePlacementGroupIdentity +): """ InstancePlacementTargetPrototypePlacementGroupIdentityPlacementGroupIdentityByCRN. @@ -149803,13 +152444,17 @@ def __init__( self.crn = crn @classmethod - def from_dict(cls, _dict: Dict) -> 'InstancePlacementTargetPrototypePlacementGroupIdentityPlacementGroupIdentityByCRN': + def from_dict( + cls, _dict: Dict + ) -> 'InstancePlacementTargetPrototypePlacementGroupIdentityPlacementGroupIdentityByCRN': """Initialize a InstancePlacementTargetPrototypePlacementGroupIdentityPlacementGroupIdentityByCRN object from a json dictionary.""" args = {} if (crn := _dict.get('crn')) is not None: args['crn'] = crn else: - raise ValueError('Required property \'crn\' not present in InstancePlacementTargetPrototypePlacementGroupIdentityPlacementGroupIdentityByCRN JSON') + raise ValueError( + 'Required property \'crn\' not present in InstancePlacementTargetPrototypePlacementGroupIdentityPlacementGroupIdentityByCRN JSON' + ) return cls(**args) @classmethod @@ -149832,18 +152477,24 @@ def __str__(self) -> str: """Return a `str` version of this InstancePlacementTargetPrototypePlacementGroupIdentityPlacementGroupIdentityByCRN object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'InstancePlacementTargetPrototypePlacementGroupIdentityPlacementGroupIdentityByCRN') -> bool: + def __eq__( + self, other: 'InstancePlacementTargetPrototypePlacementGroupIdentityPlacementGroupIdentityByCRN' + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'InstancePlacementTargetPrototypePlacementGroupIdentityPlacementGroupIdentityByCRN') -> bool: + def __ne__( + self, other: 'InstancePlacementTargetPrototypePlacementGroupIdentityPlacementGroupIdentityByCRN' + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other -class InstancePlacementTargetPrototypePlacementGroupIdentityPlacementGroupIdentityByHref(InstancePlacementTargetPrototypePlacementGroupIdentity): +class InstancePlacementTargetPrototypePlacementGroupIdentityPlacementGroupIdentityByHref( + InstancePlacementTargetPrototypePlacementGroupIdentity +): """ InstancePlacementTargetPrototypePlacementGroupIdentityPlacementGroupIdentityByHref. @@ -149863,13 +152514,17 @@ def __init__( self.href = href @classmethod - def from_dict(cls, _dict: Dict) -> 'InstancePlacementTargetPrototypePlacementGroupIdentityPlacementGroupIdentityByHref': + def from_dict( + cls, _dict: Dict + ) -> 'InstancePlacementTargetPrototypePlacementGroupIdentityPlacementGroupIdentityByHref': """Initialize a InstancePlacementTargetPrototypePlacementGroupIdentityPlacementGroupIdentityByHref object from a json dictionary.""" args = {} if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in InstancePlacementTargetPrototypePlacementGroupIdentityPlacementGroupIdentityByHref JSON') + raise ValueError( + 'Required property \'href\' not present in InstancePlacementTargetPrototypePlacementGroupIdentityPlacementGroupIdentityByHref JSON' + ) return cls(**args) @classmethod @@ -149892,18 +152547,24 @@ def __str__(self) -> str: """Return a `str` version of this InstancePlacementTargetPrototypePlacementGroupIdentityPlacementGroupIdentityByHref object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'InstancePlacementTargetPrototypePlacementGroupIdentityPlacementGroupIdentityByHref') -> bool: + def __eq__( + self, other: 'InstancePlacementTargetPrototypePlacementGroupIdentityPlacementGroupIdentityByHref' + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'InstancePlacementTargetPrototypePlacementGroupIdentityPlacementGroupIdentityByHref') -> bool: + def __ne__( + self, other: 'InstancePlacementTargetPrototypePlacementGroupIdentityPlacementGroupIdentityByHref' + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other -class InstancePlacementTargetPrototypePlacementGroupIdentityPlacementGroupIdentityById(InstancePlacementTargetPrototypePlacementGroupIdentity): +class InstancePlacementTargetPrototypePlacementGroupIdentityPlacementGroupIdentityById( + InstancePlacementTargetPrototypePlacementGroupIdentity +): """ InstancePlacementTargetPrototypePlacementGroupIdentityPlacementGroupIdentityById. @@ -149923,13 +152584,17 @@ def __init__( self.id = id @classmethod - def from_dict(cls, _dict: Dict) -> 'InstancePlacementTargetPrototypePlacementGroupIdentityPlacementGroupIdentityById': + def from_dict( + cls, _dict: Dict + ) -> 'InstancePlacementTargetPrototypePlacementGroupIdentityPlacementGroupIdentityById': """Initialize a InstancePlacementTargetPrototypePlacementGroupIdentityPlacementGroupIdentityById object from a json dictionary.""" args = {} if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in InstancePlacementTargetPrototypePlacementGroupIdentityPlacementGroupIdentityById JSON') + raise ValueError( + 'Required property \'id\' not present in InstancePlacementTargetPrototypePlacementGroupIdentityPlacementGroupIdentityById JSON' + ) return cls(**args) @classmethod @@ -149963,7 +152628,9 @@ def __ne__(self, other: 'InstancePlacementTargetPrototypePlacementGroupIdentityP return not self == other -class InstancePrototypeInstanceByCatalogOfferingInstanceByCatalogOfferingInstanceByNetworkAttachment(InstancePrototypeInstanceByCatalogOffering): +class InstancePrototypeInstanceByCatalogOfferingInstanceByCatalogOfferingInstanceByNetworkAttachment( + InstancePrototypeInstanceByCatalogOffering +): """ InstancePrototypeInstanceByCatalogOfferingInstanceByCatalogOfferingInstanceByNetworkAttachment. @@ -150174,13 +152841,18 @@ def __init__( self.primary_network_attachment = primary_network_attachment @classmethod - def from_dict(cls, _dict: Dict) -> 'InstancePrototypeInstanceByCatalogOfferingInstanceByCatalogOfferingInstanceByNetworkAttachment': + def from_dict( + cls, _dict: Dict + ) -> 'InstancePrototypeInstanceByCatalogOfferingInstanceByCatalogOfferingInstanceByNetworkAttachment': """Initialize a InstancePrototypeInstanceByCatalogOfferingInstanceByCatalogOfferingInstanceByNetworkAttachment object from a json dictionary.""" args = {} if (availability_policy := _dict.get('availability_policy')) is not None: args['availability_policy'] = InstanceAvailabilityPolicyPrototype.from_dict(availability_policy) if (cluster_network_attachments := _dict.get('cluster_network_attachments')) is not None: - args['cluster_network_attachments'] = [InstanceClusterNetworkAttachmentPrototypeInstanceContext.from_dict(v) for v in cluster_network_attachments] + args['cluster_network_attachments'] = [ + InstanceClusterNetworkAttachmentPrototypeInstanceContext.from_dict(v) + for v in cluster_network_attachments + ] if (confidential_compute_mode := _dict.get('confidential_compute_mode')) is not None: args['confidential_compute_mode'] = confidential_compute_mode if (default_trusted_profile := _dict.get('default_trusted_profile')) is not None: @@ -150210,21 +152882,31 @@ def from_dict(cls, _dict: Dict) -> 'InstancePrototypeInstanceByCatalogOfferingIn if (vpc := _dict.get('vpc')) is not None: args['vpc'] = vpc if (boot_volume_attachment := _dict.get('boot_volume_attachment')) is not None: - args['boot_volume_attachment'] = VolumeAttachmentPrototypeInstanceByImageContext.from_dict(boot_volume_attachment) + args['boot_volume_attachment'] = VolumeAttachmentPrototypeInstanceByImageContext.from_dict( + boot_volume_attachment + ) if (catalog_offering := _dict.get('catalog_offering')) is not None: args['catalog_offering'] = catalog_offering else: - raise ValueError('Required property \'catalog_offering\' not present in InstancePrototypeInstanceByCatalogOfferingInstanceByCatalogOfferingInstanceByNetworkAttachment JSON') + raise ValueError( + 'Required property \'catalog_offering\' not present in InstancePrototypeInstanceByCatalogOfferingInstanceByCatalogOfferingInstanceByNetworkAttachment JSON' + ) if (zone := _dict.get('zone')) is not None: args['zone'] = zone else: - raise ValueError('Required property \'zone\' not present in InstancePrototypeInstanceByCatalogOfferingInstanceByCatalogOfferingInstanceByNetworkAttachment JSON') + raise ValueError( + 'Required property \'zone\' not present in InstancePrototypeInstanceByCatalogOfferingInstanceByCatalogOfferingInstanceByNetworkAttachment JSON' + ) if (network_attachments := _dict.get('network_attachments')) is not None: args['network_attachments'] = [InstanceNetworkAttachmentPrototype.from_dict(v) for v in network_attachments] if (primary_network_attachment := _dict.get('primary_network_attachment')) is not None: - args['primary_network_attachment'] = InstanceNetworkAttachmentPrototype.from_dict(primary_network_attachment) + args['primary_network_attachment'] = InstanceNetworkAttachmentPrototype.from_dict( + primary_network_attachment + ) else: - raise ValueError('Required property \'primary_network_attachment\' not present in InstancePrototypeInstanceByCatalogOfferingInstanceByCatalogOfferingInstanceByNetworkAttachment JSON') + raise ValueError( + 'Required property \'primary_network_attachment\' not present in InstancePrototypeInstanceByCatalogOfferingInstanceByCatalogOfferingInstanceByNetworkAttachment JSON' + ) return cls(**args) @classmethod @@ -150347,13 +153029,17 @@ def __str__(self) -> str: """Return a `str` version of this InstancePrototypeInstanceByCatalogOfferingInstanceByCatalogOfferingInstanceByNetworkAttachment object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'InstancePrototypeInstanceByCatalogOfferingInstanceByCatalogOfferingInstanceByNetworkAttachment') -> bool: + def __eq__( + self, other: 'InstancePrototypeInstanceByCatalogOfferingInstanceByCatalogOfferingInstanceByNetworkAttachment' + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'InstancePrototypeInstanceByCatalogOfferingInstanceByCatalogOfferingInstanceByNetworkAttachment') -> bool: + def __ne__( + self, other: 'InstancePrototypeInstanceByCatalogOfferingInstanceByCatalogOfferingInstanceByNetworkAttachment' + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other @@ -150368,8 +153054,9 @@ class ConfidentialComputeModeEnum(str, Enum): SGX = 'sgx' - -class InstancePrototypeInstanceByCatalogOfferingInstanceByCatalogOfferingInstanceByNetworkInterface(InstancePrototypeInstanceByCatalogOffering): +class InstancePrototypeInstanceByCatalogOfferingInstanceByCatalogOfferingInstanceByNetworkInterface( + InstancePrototypeInstanceByCatalogOffering +): """ InstancePrototypeInstanceByCatalogOfferingInstanceByCatalogOfferingInstanceByNetworkInterface. @@ -150579,13 +153266,18 @@ def __init__( self.primary_network_interface = primary_network_interface @classmethod - def from_dict(cls, _dict: Dict) -> 'InstancePrototypeInstanceByCatalogOfferingInstanceByCatalogOfferingInstanceByNetworkInterface': + def from_dict( + cls, _dict: Dict + ) -> 'InstancePrototypeInstanceByCatalogOfferingInstanceByCatalogOfferingInstanceByNetworkInterface': """Initialize a InstancePrototypeInstanceByCatalogOfferingInstanceByCatalogOfferingInstanceByNetworkInterface object from a json dictionary.""" args = {} if (availability_policy := _dict.get('availability_policy')) is not None: args['availability_policy'] = InstanceAvailabilityPolicyPrototype.from_dict(availability_policy) if (cluster_network_attachments := _dict.get('cluster_network_attachments')) is not None: - args['cluster_network_attachments'] = [InstanceClusterNetworkAttachmentPrototypeInstanceContext.from_dict(v) for v in cluster_network_attachments] + args['cluster_network_attachments'] = [ + InstanceClusterNetworkAttachmentPrototypeInstanceContext.from_dict(v) + for v in cluster_network_attachments + ] if (confidential_compute_mode := _dict.get('confidential_compute_mode')) is not None: args['confidential_compute_mode'] = confidential_compute_mode if (default_trusted_profile := _dict.get('default_trusted_profile')) is not None: @@ -150615,21 +153307,29 @@ def from_dict(cls, _dict: Dict) -> 'InstancePrototypeInstanceByCatalogOfferingIn if (vpc := _dict.get('vpc')) is not None: args['vpc'] = vpc if (boot_volume_attachment := _dict.get('boot_volume_attachment')) is not None: - args['boot_volume_attachment'] = VolumeAttachmentPrototypeInstanceByImageContext.from_dict(boot_volume_attachment) + args['boot_volume_attachment'] = VolumeAttachmentPrototypeInstanceByImageContext.from_dict( + boot_volume_attachment + ) if (catalog_offering := _dict.get('catalog_offering')) is not None: args['catalog_offering'] = catalog_offering else: - raise ValueError('Required property \'catalog_offering\' not present in InstancePrototypeInstanceByCatalogOfferingInstanceByCatalogOfferingInstanceByNetworkInterface JSON') + raise ValueError( + 'Required property \'catalog_offering\' not present in InstancePrototypeInstanceByCatalogOfferingInstanceByCatalogOfferingInstanceByNetworkInterface JSON' + ) if (zone := _dict.get('zone')) is not None: args['zone'] = zone else: - raise ValueError('Required property \'zone\' not present in InstancePrototypeInstanceByCatalogOfferingInstanceByCatalogOfferingInstanceByNetworkInterface JSON') + raise ValueError( + 'Required property \'zone\' not present in InstancePrototypeInstanceByCatalogOfferingInstanceByCatalogOfferingInstanceByNetworkInterface JSON' + ) if (network_interfaces := _dict.get('network_interfaces')) is not None: args['network_interfaces'] = [NetworkInterfacePrototype.from_dict(v) for v in network_interfaces] if (primary_network_interface := _dict.get('primary_network_interface')) is not None: args['primary_network_interface'] = NetworkInterfacePrototype.from_dict(primary_network_interface) else: - raise ValueError('Required property \'primary_network_interface\' not present in InstancePrototypeInstanceByCatalogOfferingInstanceByCatalogOfferingInstanceByNetworkInterface JSON') + raise ValueError( + 'Required property \'primary_network_interface\' not present in InstancePrototypeInstanceByCatalogOfferingInstanceByCatalogOfferingInstanceByNetworkInterface JSON' + ) return cls(**args) @classmethod @@ -150752,13 +153452,17 @@ def __str__(self) -> str: """Return a `str` version of this InstancePrototypeInstanceByCatalogOfferingInstanceByCatalogOfferingInstanceByNetworkInterface object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'InstancePrototypeInstanceByCatalogOfferingInstanceByCatalogOfferingInstanceByNetworkInterface') -> bool: + def __eq__( + self, other: 'InstancePrototypeInstanceByCatalogOfferingInstanceByCatalogOfferingInstanceByNetworkInterface' + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'InstancePrototypeInstanceByCatalogOfferingInstanceByCatalogOfferingInstanceByNetworkInterface') -> bool: + def __ne__( + self, other: 'InstancePrototypeInstanceByCatalogOfferingInstanceByCatalogOfferingInstanceByNetworkInterface' + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other @@ -150773,7 +153477,6 @@ class ConfidentialComputeModeEnum(str, Enum): SGX = 'sgx' - class InstancePrototypeInstanceByImageInstanceByImageInstanceByNetworkAttachment(InstancePrototypeInstanceByImage): """ InstancePrototypeInstanceByImageInstanceByImageInstanceByNetworkAttachment. @@ -150993,7 +153696,10 @@ def from_dict(cls, _dict: Dict) -> 'InstancePrototypeInstanceByImageInstanceByIm if (availability_policy := _dict.get('availability_policy')) is not None: args['availability_policy'] = InstanceAvailabilityPolicyPrototype.from_dict(availability_policy) if (cluster_network_attachments := _dict.get('cluster_network_attachments')) is not None: - args['cluster_network_attachments'] = [InstanceClusterNetworkAttachmentPrototypeInstanceContext.from_dict(v) for v in cluster_network_attachments] + args['cluster_network_attachments'] = [ + InstanceClusterNetworkAttachmentPrototypeInstanceContext.from_dict(v) + for v in cluster_network_attachments + ] if (confidential_compute_mode := _dict.get('confidential_compute_mode')) is not None: args['confidential_compute_mode'] = confidential_compute_mode if (default_trusted_profile := _dict.get('default_trusted_profile')) is not None: @@ -151023,21 +153729,31 @@ def from_dict(cls, _dict: Dict) -> 'InstancePrototypeInstanceByImageInstanceByIm if (vpc := _dict.get('vpc')) is not None: args['vpc'] = vpc if (boot_volume_attachment := _dict.get('boot_volume_attachment')) is not None: - args['boot_volume_attachment'] = VolumeAttachmentPrototypeInstanceByImageContext.from_dict(boot_volume_attachment) + args['boot_volume_attachment'] = VolumeAttachmentPrototypeInstanceByImageContext.from_dict( + boot_volume_attachment + ) if (image := _dict.get('image')) is not None: args['image'] = image else: - raise ValueError('Required property \'image\' not present in InstancePrototypeInstanceByImageInstanceByImageInstanceByNetworkAttachment JSON') + raise ValueError( + 'Required property \'image\' not present in InstancePrototypeInstanceByImageInstanceByImageInstanceByNetworkAttachment JSON' + ) if (zone := _dict.get('zone')) is not None: args['zone'] = zone else: - raise ValueError('Required property \'zone\' not present in InstancePrototypeInstanceByImageInstanceByImageInstanceByNetworkAttachment JSON') + raise ValueError( + 'Required property \'zone\' not present in InstancePrototypeInstanceByImageInstanceByImageInstanceByNetworkAttachment JSON' + ) if (network_attachments := _dict.get('network_attachments')) is not None: args['network_attachments'] = [InstanceNetworkAttachmentPrototype.from_dict(v) for v in network_attachments] if (primary_network_attachment := _dict.get('primary_network_attachment')) is not None: - args['primary_network_attachment'] = InstanceNetworkAttachmentPrototype.from_dict(primary_network_attachment) + args['primary_network_attachment'] = InstanceNetworkAttachmentPrototype.from_dict( + primary_network_attachment + ) else: - raise ValueError('Required property \'primary_network_attachment\' not present in InstancePrototypeInstanceByImageInstanceByImageInstanceByNetworkAttachment JSON') + raise ValueError( + 'Required property \'primary_network_attachment\' not present in InstancePrototypeInstanceByImageInstanceByImageInstanceByNetworkAttachment JSON' + ) return cls(**args) @classmethod @@ -151181,7 +153897,6 @@ class ConfidentialComputeModeEnum(str, Enum): SGX = 'sgx' - class InstancePrototypeInstanceByImageInstanceByImageInstanceByNetworkInterface(InstancePrototypeInstanceByImage): """ InstancePrototypeInstanceByImageInstanceByImageInstanceByNetworkInterface. @@ -151400,7 +154115,10 @@ def from_dict(cls, _dict: Dict) -> 'InstancePrototypeInstanceByImageInstanceByIm if (availability_policy := _dict.get('availability_policy')) is not None: args['availability_policy'] = InstanceAvailabilityPolicyPrototype.from_dict(availability_policy) if (cluster_network_attachments := _dict.get('cluster_network_attachments')) is not None: - args['cluster_network_attachments'] = [InstanceClusterNetworkAttachmentPrototypeInstanceContext.from_dict(v) for v in cluster_network_attachments] + args['cluster_network_attachments'] = [ + InstanceClusterNetworkAttachmentPrototypeInstanceContext.from_dict(v) + for v in cluster_network_attachments + ] if (confidential_compute_mode := _dict.get('confidential_compute_mode')) is not None: args['confidential_compute_mode'] = confidential_compute_mode if (default_trusted_profile := _dict.get('default_trusted_profile')) is not None: @@ -151430,21 +154148,29 @@ def from_dict(cls, _dict: Dict) -> 'InstancePrototypeInstanceByImageInstanceByIm if (vpc := _dict.get('vpc')) is not None: args['vpc'] = vpc if (boot_volume_attachment := _dict.get('boot_volume_attachment')) is not None: - args['boot_volume_attachment'] = VolumeAttachmentPrototypeInstanceByImageContext.from_dict(boot_volume_attachment) + args['boot_volume_attachment'] = VolumeAttachmentPrototypeInstanceByImageContext.from_dict( + boot_volume_attachment + ) if (image := _dict.get('image')) is not None: args['image'] = image else: - raise ValueError('Required property \'image\' not present in InstancePrototypeInstanceByImageInstanceByImageInstanceByNetworkInterface JSON') + raise ValueError( + 'Required property \'image\' not present in InstancePrototypeInstanceByImageInstanceByImageInstanceByNetworkInterface JSON' + ) if (zone := _dict.get('zone')) is not None: args['zone'] = zone else: - raise ValueError('Required property \'zone\' not present in InstancePrototypeInstanceByImageInstanceByImageInstanceByNetworkInterface JSON') + raise ValueError( + 'Required property \'zone\' not present in InstancePrototypeInstanceByImageInstanceByImageInstanceByNetworkInterface JSON' + ) if (network_interfaces := _dict.get('network_interfaces')) is not None: args['network_interfaces'] = [NetworkInterfacePrototype.from_dict(v) for v in network_interfaces] if (primary_network_interface := _dict.get('primary_network_interface')) is not None: args['primary_network_interface'] = NetworkInterfacePrototype.from_dict(primary_network_interface) else: - raise ValueError('Required property \'primary_network_interface\' not present in InstancePrototypeInstanceByImageInstanceByImageInstanceByNetworkInterface JSON') + raise ValueError( + 'Required property \'primary_network_interface\' not present in InstancePrototypeInstanceByImageInstanceByImageInstanceByNetworkInterface JSON' + ) return cls(**args) @classmethod @@ -151588,8 +154314,9 @@ class ConfidentialComputeModeEnum(str, Enum): SGX = 'sgx' - -class InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment(InstancePrototypeInstanceBySourceSnapshot): +class InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment( + InstancePrototypeInstanceBySourceSnapshot +): """ InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment. @@ -151797,13 +154524,18 @@ def __init__( self.primary_network_attachment = primary_network_attachment @classmethod - def from_dict(cls, _dict: Dict) -> 'InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment': + def from_dict( + cls, _dict: Dict + ) -> 'InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment': """Initialize a InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment object from a json dictionary.""" args = {} if (availability_policy := _dict.get('availability_policy')) is not None: args['availability_policy'] = InstanceAvailabilityPolicyPrototype.from_dict(availability_policy) if (cluster_network_attachments := _dict.get('cluster_network_attachments')) is not None: - args['cluster_network_attachments'] = [InstanceClusterNetworkAttachmentPrototypeInstanceContext.from_dict(v) for v in cluster_network_attachments] + args['cluster_network_attachments'] = [ + InstanceClusterNetworkAttachmentPrototypeInstanceContext.from_dict(v) + for v in cluster_network_attachments + ] if (confidential_compute_mode := _dict.get('confidential_compute_mode')) is not None: args['confidential_compute_mode'] = confidential_compute_mode if (default_trusted_profile := _dict.get('default_trusted_profile')) is not None: @@ -151833,19 +154565,29 @@ def from_dict(cls, _dict: Dict) -> 'InstancePrototypeInstanceBySourceSnapshotIns if (vpc := _dict.get('vpc')) is not None: args['vpc'] = vpc if (boot_volume_attachment := _dict.get('boot_volume_attachment')) is not None: - args['boot_volume_attachment'] = VolumeAttachmentPrototypeInstanceBySourceSnapshotContext.from_dict(boot_volume_attachment) + args['boot_volume_attachment'] = VolumeAttachmentPrototypeInstanceBySourceSnapshotContext.from_dict( + boot_volume_attachment + ) else: - raise ValueError('Required property \'boot_volume_attachment\' not present in InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment JSON') + raise ValueError( + 'Required property \'boot_volume_attachment\' not present in InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment JSON' + ) if (zone := _dict.get('zone')) is not None: args['zone'] = zone else: - raise ValueError('Required property \'zone\' not present in InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment JSON') + raise ValueError( + 'Required property \'zone\' not present in InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment JSON' + ) if (network_attachments := _dict.get('network_attachments')) is not None: args['network_attachments'] = [InstanceNetworkAttachmentPrototype.from_dict(v) for v in network_attachments] if (primary_network_attachment := _dict.get('primary_network_attachment')) is not None: - args['primary_network_attachment'] = InstanceNetworkAttachmentPrototype.from_dict(primary_network_attachment) + args['primary_network_attachment'] = InstanceNetworkAttachmentPrototype.from_dict( + primary_network_attachment + ) else: - raise ValueError('Required property \'primary_network_attachment\' not present in InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment JSON') + raise ValueError( + 'Required property \'primary_network_attachment\' not present in InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment JSON' + ) return cls(**args) @classmethod @@ -151963,13 +154705,17 @@ def __str__(self) -> str: """Return a `str` version of this InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment') -> bool: + def __eq__( + self, other: 'InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment' + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment') -> bool: + def __ne__( + self, other: 'InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment' + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other @@ -151984,8 +154730,9 @@ class ConfidentialComputeModeEnum(str, Enum): SGX = 'sgx' - -class InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkInterface(InstancePrototypeInstanceBySourceSnapshot): +class InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkInterface( + InstancePrototypeInstanceBySourceSnapshot +): """ InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkInterface. @@ -152192,13 +154939,18 @@ def __init__( self.primary_network_interface = primary_network_interface @classmethod - def from_dict(cls, _dict: Dict) -> 'InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkInterface': + def from_dict( + cls, _dict: Dict + ) -> 'InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkInterface': """Initialize a InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkInterface object from a json dictionary.""" args = {} if (availability_policy := _dict.get('availability_policy')) is not None: args['availability_policy'] = InstanceAvailabilityPolicyPrototype.from_dict(availability_policy) if (cluster_network_attachments := _dict.get('cluster_network_attachments')) is not None: - args['cluster_network_attachments'] = [InstanceClusterNetworkAttachmentPrototypeInstanceContext.from_dict(v) for v in cluster_network_attachments] + args['cluster_network_attachments'] = [ + InstanceClusterNetworkAttachmentPrototypeInstanceContext.from_dict(v) + for v in cluster_network_attachments + ] if (confidential_compute_mode := _dict.get('confidential_compute_mode')) is not None: args['confidential_compute_mode'] = confidential_compute_mode if (default_trusted_profile := _dict.get('default_trusted_profile')) is not None: @@ -152228,19 +154980,27 @@ def from_dict(cls, _dict: Dict) -> 'InstancePrototypeInstanceBySourceSnapshotIns if (vpc := _dict.get('vpc')) is not None: args['vpc'] = vpc if (boot_volume_attachment := _dict.get('boot_volume_attachment')) is not None: - args['boot_volume_attachment'] = VolumeAttachmentPrototypeInstanceBySourceSnapshotContext.from_dict(boot_volume_attachment) + args['boot_volume_attachment'] = VolumeAttachmentPrototypeInstanceBySourceSnapshotContext.from_dict( + boot_volume_attachment + ) else: - raise ValueError('Required property \'boot_volume_attachment\' not present in InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkInterface JSON') + raise ValueError( + 'Required property \'boot_volume_attachment\' not present in InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkInterface JSON' + ) if (zone := _dict.get('zone')) is not None: args['zone'] = zone else: - raise ValueError('Required property \'zone\' not present in InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkInterface JSON') + raise ValueError( + 'Required property \'zone\' not present in InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkInterface JSON' + ) if (network_interfaces := _dict.get('network_interfaces')) is not None: args['network_interfaces'] = [NetworkInterfacePrototype.from_dict(v) for v in network_interfaces] if (primary_network_interface := _dict.get('primary_network_interface')) is not None: args['primary_network_interface'] = NetworkInterfacePrototype.from_dict(primary_network_interface) else: - raise ValueError('Required property \'primary_network_interface\' not present in InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkInterface JSON') + raise ValueError( + 'Required property \'primary_network_interface\' not present in InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkInterface JSON' + ) return cls(**args) @classmethod @@ -152358,13 +155118,17 @@ def __str__(self) -> str: """Return a `str` version of this InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkInterface object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkInterface') -> bool: + def __eq__( + self, other: 'InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkInterface' + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkInterface') -> bool: + def __ne__( + self, other: 'InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkInterface' + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other @@ -152379,7 +155143,6 @@ class ConfidentialComputeModeEnum(str, Enum): SGX = 'sgx' - class InstancePrototypeInstanceByVolumeInstanceByVolumeInstanceByNetworkAttachment(InstancePrototypeInstanceByVolume): """ InstancePrototypeInstanceByVolumeInstanceByVolumeInstanceByNetworkAttachment. @@ -152593,7 +155356,10 @@ def from_dict(cls, _dict: Dict) -> 'InstancePrototypeInstanceByVolumeInstanceByV if (availability_policy := _dict.get('availability_policy')) is not None: args['availability_policy'] = InstanceAvailabilityPolicyPrototype.from_dict(availability_policy) if (cluster_network_attachments := _dict.get('cluster_network_attachments')) is not None: - args['cluster_network_attachments'] = [InstanceClusterNetworkAttachmentPrototypeInstanceContext.from_dict(v) for v in cluster_network_attachments] + args['cluster_network_attachments'] = [ + InstanceClusterNetworkAttachmentPrototypeInstanceContext.from_dict(v) + for v in cluster_network_attachments + ] if (confidential_compute_mode := _dict.get('confidential_compute_mode')) is not None: args['confidential_compute_mode'] = confidential_compute_mode if (default_trusted_profile := _dict.get('default_trusted_profile')) is not None: @@ -152623,19 +155389,29 @@ def from_dict(cls, _dict: Dict) -> 'InstancePrototypeInstanceByVolumeInstanceByV if (vpc := _dict.get('vpc')) is not None: args['vpc'] = vpc if (boot_volume_attachment := _dict.get('boot_volume_attachment')) is not None: - args['boot_volume_attachment'] = VolumeAttachmentPrototypeInstanceByVolumeContext.from_dict(boot_volume_attachment) + args['boot_volume_attachment'] = VolumeAttachmentPrototypeInstanceByVolumeContext.from_dict( + boot_volume_attachment + ) else: - raise ValueError('Required property \'boot_volume_attachment\' not present in InstancePrototypeInstanceByVolumeInstanceByVolumeInstanceByNetworkAttachment JSON') + raise ValueError( + 'Required property \'boot_volume_attachment\' not present in InstancePrototypeInstanceByVolumeInstanceByVolumeInstanceByNetworkAttachment JSON' + ) if (zone := _dict.get('zone')) is not None: args['zone'] = zone else: - raise ValueError('Required property \'zone\' not present in InstancePrototypeInstanceByVolumeInstanceByVolumeInstanceByNetworkAttachment JSON') + raise ValueError( + 'Required property \'zone\' not present in InstancePrototypeInstanceByVolumeInstanceByVolumeInstanceByNetworkAttachment JSON' + ) if (network_attachments := _dict.get('network_attachments')) is not None: args['network_attachments'] = [InstanceNetworkAttachmentPrototype.from_dict(v) for v in network_attachments] if (primary_network_attachment := _dict.get('primary_network_attachment')) is not None: - args['primary_network_attachment'] = InstanceNetworkAttachmentPrototype.from_dict(primary_network_attachment) + args['primary_network_attachment'] = InstanceNetworkAttachmentPrototype.from_dict( + primary_network_attachment + ) else: - raise ValueError('Required property \'primary_network_attachment\' not present in InstancePrototypeInstanceByVolumeInstanceByVolumeInstanceByNetworkAttachment JSON') + raise ValueError( + 'Required property \'primary_network_attachment\' not present in InstancePrototypeInstanceByVolumeInstanceByVolumeInstanceByNetworkAttachment JSON' + ) return cls(**args) @classmethod @@ -152774,7 +155550,6 @@ class ConfidentialComputeModeEnum(str, Enum): SGX = 'sgx' - class InstancePrototypeInstanceByVolumeInstanceByVolumeInstanceByNetworkInterface(InstancePrototypeInstanceByVolume): """ InstancePrototypeInstanceByVolumeInstanceByVolumeInstanceByNetworkInterface. @@ -152987,7 +155762,10 @@ def from_dict(cls, _dict: Dict) -> 'InstancePrototypeInstanceByVolumeInstanceByV if (availability_policy := _dict.get('availability_policy')) is not None: args['availability_policy'] = InstanceAvailabilityPolicyPrototype.from_dict(availability_policy) if (cluster_network_attachments := _dict.get('cluster_network_attachments')) is not None: - args['cluster_network_attachments'] = [InstanceClusterNetworkAttachmentPrototypeInstanceContext.from_dict(v) for v in cluster_network_attachments] + args['cluster_network_attachments'] = [ + InstanceClusterNetworkAttachmentPrototypeInstanceContext.from_dict(v) + for v in cluster_network_attachments + ] if (confidential_compute_mode := _dict.get('confidential_compute_mode')) is not None: args['confidential_compute_mode'] = confidential_compute_mode if (default_trusted_profile := _dict.get('default_trusted_profile')) is not None: @@ -153017,19 +155795,27 @@ def from_dict(cls, _dict: Dict) -> 'InstancePrototypeInstanceByVolumeInstanceByV if (vpc := _dict.get('vpc')) is not None: args['vpc'] = vpc if (boot_volume_attachment := _dict.get('boot_volume_attachment')) is not None: - args['boot_volume_attachment'] = VolumeAttachmentPrototypeInstanceByVolumeContext.from_dict(boot_volume_attachment) + args['boot_volume_attachment'] = VolumeAttachmentPrototypeInstanceByVolumeContext.from_dict( + boot_volume_attachment + ) else: - raise ValueError('Required property \'boot_volume_attachment\' not present in InstancePrototypeInstanceByVolumeInstanceByVolumeInstanceByNetworkInterface JSON') + raise ValueError( + 'Required property \'boot_volume_attachment\' not present in InstancePrototypeInstanceByVolumeInstanceByVolumeInstanceByNetworkInterface JSON' + ) if (zone := _dict.get('zone')) is not None: args['zone'] = zone else: - raise ValueError('Required property \'zone\' not present in InstancePrototypeInstanceByVolumeInstanceByVolumeInstanceByNetworkInterface JSON') + raise ValueError( + 'Required property \'zone\' not present in InstancePrototypeInstanceByVolumeInstanceByVolumeInstanceByNetworkInterface JSON' + ) if (network_interfaces := _dict.get('network_interfaces')) is not None: args['network_interfaces'] = [NetworkInterfacePrototype.from_dict(v) for v in network_interfaces] if (primary_network_interface := _dict.get('primary_network_interface')) is not None: args['primary_network_interface'] = NetworkInterfacePrototype.from_dict(primary_network_interface) else: - raise ValueError('Required property \'primary_network_interface\' not present in InstancePrototypeInstanceByVolumeInstanceByVolumeInstanceByNetworkInterface JSON') + raise ValueError( + 'Required property \'primary_network_interface\' not present in InstancePrototypeInstanceByVolumeInstanceByVolumeInstanceByNetworkInterface JSON' + ) return cls(**args) @classmethod @@ -153168,8 +155954,9 @@ class ConfidentialComputeModeEnum(str, Enum): SGX = 'sgx' - -class InstanceTemplatePrototypeInstanceTemplateByCatalogOfferingInstanceTemplateByCatalogOfferingInstanceByNetworkAttachment(InstanceTemplatePrototypeInstanceTemplateByCatalogOffering): +class InstanceTemplatePrototypeInstanceTemplateByCatalogOfferingInstanceTemplateByCatalogOfferingInstanceByNetworkAttachment( + InstanceTemplatePrototypeInstanceTemplateByCatalogOffering +): """ InstanceTemplatePrototypeInstanceTemplateByCatalogOfferingInstanceTemplateByCatalogOfferingInstanceByNetworkAttachment. @@ -153378,13 +156165,18 @@ def __init__( self.primary_network_attachment = primary_network_attachment @classmethod - def from_dict(cls, _dict: Dict) -> 'InstanceTemplatePrototypeInstanceTemplateByCatalogOfferingInstanceTemplateByCatalogOfferingInstanceByNetworkAttachment': + def from_dict( + cls, _dict: Dict + ) -> 'InstanceTemplatePrototypeInstanceTemplateByCatalogOfferingInstanceTemplateByCatalogOfferingInstanceByNetworkAttachment': """Initialize a InstanceTemplatePrototypeInstanceTemplateByCatalogOfferingInstanceTemplateByCatalogOfferingInstanceByNetworkAttachment object from a json dictionary.""" args = {} if (availability_policy := _dict.get('availability_policy')) is not None: args['availability_policy'] = InstanceAvailabilityPolicyPrototype.from_dict(availability_policy) if (cluster_network_attachments := _dict.get('cluster_network_attachments')) is not None: - args['cluster_network_attachments'] = [InstanceClusterNetworkAttachmentPrototypeInstanceContext.from_dict(v) for v in cluster_network_attachments] + args['cluster_network_attachments'] = [ + InstanceClusterNetworkAttachmentPrototypeInstanceContext.from_dict(v) + for v in cluster_network_attachments + ] if (confidential_compute_mode := _dict.get('confidential_compute_mode')) is not None: args['confidential_compute_mode'] = confidential_compute_mode if (default_trusted_profile := _dict.get('default_trusted_profile')) is not None: @@ -153414,21 +156206,31 @@ def from_dict(cls, _dict: Dict) -> 'InstanceTemplatePrototypeInstanceTemplateByC if (vpc := _dict.get('vpc')) is not None: args['vpc'] = vpc if (boot_volume_attachment := _dict.get('boot_volume_attachment')) is not None: - args['boot_volume_attachment'] = VolumeAttachmentPrototypeInstanceByImageContext.from_dict(boot_volume_attachment) + args['boot_volume_attachment'] = VolumeAttachmentPrototypeInstanceByImageContext.from_dict( + boot_volume_attachment + ) if (catalog_offering := _dict.get('catalog_offering')) is not None: args['catalog_offering'] = catalog_offering else: - raise ValueError('Required property \'catalog_offering\' not present in InstanceTemplatePrototypeInstanceTemplateByCatalogOfferingInstanceTemplateByCatalogOfferingInstanceByNetworkAttachment JSON') + raise ValueError( + 'Required property \'catalog_offering\' not present in InstanceTemplatePrototypeInstanceTemplateByCatalogOfferingInstanceTemplateByCatalogOfferingInstanceByNetworkAttachment JSON' + ) if (zone := _dict.get('zone')) is not None: args['zone'] = zone else: - raise ValueError('Required property \'zone\' not present in InstanceTemplatePrototypeInstanceTemplateByCatalogOfferingInstanceTemplateByCatalogOfferingInstanceByNetworkAttachment JSON') + raise ValueError( + 'Required property \'zone\' not present in InstanceTemplatePrototypeInstanceTemplateByCatalogOfferingInstanceTemplateByCatalogOfferingInstanceByNetworkAttachment JSON' + ) if (network_attachments := _dict.get('network_attachments')) is not None: args['network_attachments'] = [InstanceNetworkAttachmentPrototype.from_dict(v) for v in network_attachments] if (primary_network_attachment := _dict.get('primary_network_attachment')) is not None: - args['primary_network_attachment'] = InstanceNetworkAttachmentPrototype.from_dict(primary_network_attachment) + args['primary_network_attachment'] = InstanceNetworkAttachmentPrototype.from_dict( + primary_network_attachment + ) else: - raise ValueError('Required property \'primary_network_attachment\' not present in InstanceTemplatePrototypeInstanceTemplateByCatalogOfferingInstanceTemplateByCatalogOfferingInstanceByNetworkAttachment JSON') + raise ValueError( + 'Required property \'primary_network_attachment\' not present in InstanceTemplatePrototypeInstanceTemplateByCatalogOfferingInstanceTemplateByCatalogOfferingInstanceByNetworkAttachment JSON' + ) return cls(**args) @classmethod @@ -153551,13 +156353,19 @@ def __str__(self) -> str: """Return a `str` version of this InstanceTemplatePrototypeInstanceTemplateByCatalogOfferingInstanceTemplateByCatalogOfferingInstanceByNetworkAttachment object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'InstanceTemplatePrototypeInstanceTemplateByCatalogOfferingInstanceTemplateByCatalogOfferingInstanceByNetworkAttachment') -> bool: + def __eq__( + self, + other: 'InstanceTemplatePrototypeInstanceTemplateByCatalogOfferingInstanceTemplateByCatalogOfferingInstanceByNetworkAttachment', + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'InstanceTemplatePrototypeInstanceTemplateByCatalogOfferingInstanceTemplateByCatalogOfferingInstanceByNetworkAttachment') -> bool: + def __ne__( + self, + other: 'InstanceTemplatePrototypeInstanceTemplateByCatalogOfferingInstanceTemplateByCatalogOfferingInstanceByNetworkAttachment', + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other @@ -153572,8 +156380,9 @@ class ConfidentialComputeModeEnum(str, Enum): SGX = 'sgx' - -class InstanceTemplatePrototypeInstanceTemplateByCatalogOfferingInstanceTemplateByCatalogOfferingInstanceByNetworkInterface(InstanceTemplatePrototypeInstanceTemplateByCatalogOffering): +class InstanceTemplatePrototypeInstanceTemplateByCatalogOfferingInstanceTemplateByCatalogOfferingInstanceByNetworkInterface( + InstanceTemplatePrototypeInstanceTemplateByCatalogOffering +): """ InstanceTemplatePrototypeInstanceTemplateByCatalogOfferingInstanceTemplateByCatalogOfferingInstanceByNetworkInterface. @@ -153781,13 +156590,18 @@ def __init__( self.primary_network_interface = primary_network_interface @classmethod - def from_dict(cls, _dict: Dict) -> 'InstanceTemplatePrototypeInstanceTemplateByCatalogOfferingInstanceTemplateByCatalogOfferingInstanceByNetworkInterface': + def from_dict( + cls, _dict: Dict + ) -> 'InstanceTemplatePrototypeInstanceTemplateByCatalogOfferingInstanceTemplateByCatalogOfferingInstanceByNetworkInterface': """Initialize a InstanceTemplatePrototypeInstanceTemplateByCatalogOfferingInstanceTemplateByCatalogOfferingInstanceByNetworkInterface object from a json dictionary.""" args = {} if (availability_policy := _dict.get('availability_policy')) is not None: args['availability_policy'] = InstanceAvailabilityPolicyPrototype.from_dict(availability_policy) if (cluster_network_attachments := _dict.get('cluster_network_attachments')) is not None: - args['cluster_network_attachments'] = [InstanceClusterNetworkAttachmentPrototypeInstanceContext.from_dict(v) for v in cluster_network_attachments] + args['cluster_network_attachments'] = [ + InstanceClusterNetworkAttachmentPrototypeInstanceContext.from_dict(v) + for v in cluster_network_attachments + ] if (confidential_compute_mode := _dict.get('confidential_compute_mode')) is not None: args['confidential_compute_mode'] = confidential_compute_mode if (default_trusted_profile := _dict.get('default_trusted_profile')) is not None: @@ -153817,21 +156631,29 @@ def from_dict(cls, _dict: Dict) -> 'InstanceTemplatePrototypeInstanceTemplateByC if (vpc := _dict.get('vpc')) is not None: args['vpc'] = vpc if (boot_volume_attachment := _dict.get('boot_volume_attachment')) is not None: - args['boot_volume_attachment'] = VolumeAttachmentPrototypeInstanceByImageContext.from_dict(boot_volume_attachment) + args['boot_volume_attachment'] = VolumeAttachmentPrototypeInstanceByImageContext.from_dict( + boot_volume_attachment + ) if (catalog_offering := _dict.get('catalog_offering')) is not None: args['catalog_offering'] = catalog_offering else: - raise ValueError('Required property \'catalog_offering\' not present in InstanceTemplatePrototypeInstanceTemplateByCatalogOfferingInstanceTemplateByCatalogOfferingInstanceByNetworkInterface JSON') + raise ValueError( + 'Required property \'catalog_offering\' not present in InstanceTemplatePrototypeInstanceTemplateByCatalogOfferingInstanceTemplateByCatalogOfferingInstanceByNetworkInterface JSON' + ) if (zone := _dict.get('zone')) is not None: args['zone'] = zone else: - raise ValueError('Required property \'zone\' not present in InstanceTemplatePrototypeInstanceTemplateByCatalogOfferingInstanceTemplateByCatalogOfferingInstanceByNetworkInterface JSON') + raise ValueError( + 'Required property \'zone\' not present in InstanceTemplatePrototypeInstanceTemplateByCatalogOfferingInstanceTemplateByCatalogOfferingInstanceByNetworkInterface JSON' + ) if (network_interfaces := _dict.get('network_interfaces')) is not None: args['network_interfaces'] = [NetworkInterfacePrototype.from_dict(v) for v in network_interfaces] if (primary_network_interface := _dict.get('primary_network_interface')) is not None: args['primary_network_interface'] = NetworkInterfacePrototype.from_dict(primary_network_interface) else: - raise ValueError('Required property \'primary_network_interface\' not present in InstanceTemplatePrototypeInstanceTemplateByCatalogOfferingInstanceTemplateByCatalogOfferingInstanceByNetworkInterface JSON') + raise ValueError( + 'Required property \'primary_network_interface\' not present in InstanceTemplatePrototypeInstanceTemplateByCatalogOfferingInstanceTemplateByCatalogOfferingInstanceByNetworkInterface JSON' + ) return cls(**args) @classmethod @@ -153954,13 +156776,19 @@ def __str__(self) -> str: """Return a `str` version of this InstanceTemplatePrototypeInstanceTemplateByCatalogOfferingInstanceTemplateByCatalogOfferingInstanceByNetworkInterface object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'InstanceTemplatePrototypeInstanceTemplateByCatalogOfferingInstanceTemplateByCatalogOfferingInstanceByNetworkInterface') -> bool: + def __eq__( + self, + other: 'InstanceTemplatePrototypeInstanceTemplateByCatalogOfferingInstanceTemplateByCatalogOfferingInstanceByNetworkInterface', + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'InstanceTemplatePrototypeInstanceTemplateByCatalogOfferingInstanceTemplateByCatalogOfferingInstanceByNetworkInterface') -> bool: + def __ne__( + self, + other: 'InstanceTemplatePrototypeInstanceTemplateByCatalogOfferingInstanceTemplateByCatalogOfferingInstanceByNetworkInterface', + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other @@ -153975,8 +156803,9 @@ class ConfidentialComputeModeEnum(str, Enum): SGX = 'sgx' - -class InstanceTemplatePrototypeInstanceTemplateByImageInstanceTemplateByImageInstanceByNetworkAttachment(InstanceTemplatePrototypeInstanceTemplateByImage): +class InstanceTemplatePrototypeInstanceTemplateByImageInstanceTemplateByImageInstanceByNetworkAttachment( + InstanceTemplatePrototypeInstanceTemplateByImage +): """ InstanceTemplatePrototypeInstanceTemplateByImageInstanceTemplateByImageInstanceByNetworkAttachment. @@ -154187,13 +157016,18 @@ def __init__( self.primary_network_attachment = primary_network_attachment @classmethod - def from_dict(cls, _dict: Dict) -> 'InstanceTemplatePrototypeInstanceTemplateByImageInstanceTemplateByImageInstanceByNetworkAttachment': + def from_dict( + cls, _dict: Dict + ) -> 'InstanceTemplatePrototypeInstanceTemplateByImageInstanceTemplateByImageInstanceByNetworkAttachment': """Initialize a InstanceTemplatePrototypeInstanceTemplateByImageInstanceTemplateByImageInstanceByNetworkAttachment object from a json dictionary.""" args = {} if (availability_policy := _dict.get('availability_policy')) is not None: args['availability_policy'] = InstanceAvailabilityPolicyPrototype.from_dict(availability_policy) if (cluster_network_attachments := _dict.get('cluster_network_attachments')) is not None: - args['cluster_network_attachments'] = [InstanceClusterNetworkAttachmentPrototypeInstanceContext.from_dict(v) for v in cluster_network_attachments] + args['cluster_network_attachments'] = [ + InstanceClusterNetworkAttachmentPrototypeInstanceContext.from_dict(v) + for v in cluster_network_attachments + ] if (confidential_compute_mode := _dict.get('confidential_compute_mode')) is not None: args['confidential_compute_mode'] = confidential_compute_mode if (default_trusted_profile := _dict.get('default_trusted_profile')) is not None: @@ -154223,21 +157057,31 @@ def from_dict(cls, _dict: Dict) -> 'InstanceTemplatePrototypeInstanceTemplateByI if (vpc := _dict.get('vpc')) is not None: args['vpc'] = vpc if (boot_volume_attachment := _dict.get('boot_volume_attachment')) is not None: - args['boot_volume_attachment'] = VolumeAttachmentPrototypeInstanceByImageContext.from_dict(boot_volume_attachment) + args['boot_volume_attachment'] = VolumeAttachmentPrototypeInstanceByImageContext.from_dict( + boot_volume_attachment + ) if (image := _dict.get('image')) is not None: args['image'] = image else: - raise ValueError('Required property \'image\' not present in InstanceTemplatePrototypeInstanceTemplateByImageInstanceTemplateByImageInstanceByNetworkAttachment JSON') + raise ValueError( + 'Required property \'image\' not present in InstanceTemplatePrototypeInstanceTemplateByImageInstanceTemplateByImageInstanceByNetworkAttachment JSON' + ) if (zone := _dict.get('zone')) is not None: args['zone'] = zone else: - raise ValueError('Required property \'zone\' not present in InstanceTemplatePrototypeInstanceTemplateByImageInstanceTemplateByImageInstanceByNetworkAttachment JSON') + raise ValueError( + 'Required property \'zone\' not present in InstanceTemplatePrototypeInstanceTemplateByImageInstanceTemplateByImageInstanceByNetworkAttachment JSON' + ) if (network_attachments := _dict.get('network_attachments')) is not None: args['network_attachments'] = [InstanceNetworkAttachmentPrototype.from_dict(v) for v in network_attachments] if (primary_network_attachment := _dict.get('primary_network_attachment')) is not None: - args['primary_network_attachment'] = InstanceNetworkAttachmentPrototype.from_dict(primary_network_attachment) + args['primary_network_attachment'] = InstanceNetworkAttachmentPrototype.from_dict( + primary_network_attachment + ) else: - raise ValueError('Required property \'primary_network_attachment\' not present in InstanceTemplatePrototypeInstanceTemplateByImageInstanceTemplateByImageInstanceByNetworkAttachment JSON') + raise ValueError( + 'Required property \'primary_network_attachment\' not present in InstanceTemplatePrototypeInstanceTemplateByImageInstanceTemplateByImageInstanceByNetworkAttachment JSON' + ) return cls(**args) @classmethod @@ -154360,13 +157204,19 @@ def __str__(self) -> str: """Return a `str` version of this InstanceTemplatePrototypeInstanceTemplateByImageInstanceTemplateByImageInstanceByNetworkAttachment object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'InstanceTemplatePrototypeInstanceTemplateByImageInstanceTemplateByImageInstanceByNetworkAttachment') -> bool: + def __eq__( + self, + other: 'InstanceTemplatePrototypeInstanceTemplateByImageInstanceTemplateByImageInstanceByNetworkAttachment', + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'InstanceTemplatePrototypeInstanceTemplateByImageInstanceTemplateByImageInstanceByNetworkAttachment') -> bool: + def __ne__( + self, + other: 'InstanceTemplatePrototypeInstanceTemplateByImageInstanceTemplateByImageInstanceByNetworkAttachment', + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other @@ -154381,8 +157231,9 @@ class ConfidentialComputeModeEnum(str, Enum): SGX = 'sgx' - -class InstanceTemplatePrototypeInstanceTemplateByImageInstanceTemplateByImageInstanceByNetworkInterface(InstanceTemplatePrototypeInstanceTemplateByImage): +class InstanceTemplatePrototypeInstanceTemplateByImageInstanceTemplateByImageInstanceByNetworkInterface( + InstanceTemplatePrototypeInstanceTemplateByImage +): """ InstanceTemplatePrototypeInstanceTemplateByImageInstanceTemplateByImageInstanceByNetworkInterface. @@ -154592,13 +157443,18 @@ def __init__( self.primary_network_interface = primary_network_interface @classmethod - def from_dict(cls, _dict: Dict) -> 'InstanceTemplatePrototypeInstanceTemplateByImageInstanceTemplateByImageInstanceByNetworkInterface': + def from_dict( + cls, _dict: Dict + ) -> 'InstanceTemplatePrototypeInstanceTemplateByImageInstanceTemplateByImageInstanceByNetworkInterface': """Initialize a InstanceTemplatePrototypeInstanceTemplateByImageInstanceTemplateByImageInstanceByNetworkInterface object from a json dictionary.""" args = {} if (availability_policy := _dict.get('availability_policy')) is not None: args['availability_policy'] = InstanceAvailabilityPolicyPrototype.from_dict(availability_policy) if (cluster_network_attachments := _dict.get('cluster_network_attachments')) is not None: - args['cluster_network_attachments'] = [InstanceClusterNetworkAttachmentPrototypeInstanceContext.from_dict(v) for v in cluster_network_attachments] + args['cluster_network_attachments'] = [ + InstanceClusterNetworkAttachmentPrototypeInstanceContext.from_dict(v) + for v in cluster_network_attachments + ] if (confidential_compute_mode := _dict.get('confidential_compute_mode')) is not None: args['confidential_compute_mode'] = confidential_compute_mode if (default_trusted_profile := _dict.get('default_trusted_profile')) is not None: @@ -154628,21 +157484,29 @@ def from_dict(cls, _dict: Dict) -> 'InstanceTemplatePrototypeInstanceTemplateByI if (vpc := _dict.get('vpc')) is not None: args['vpc'] = vpc if (boot_volume_attachment := _dict.get('boot_volume_attachment')) is not None: - args['boot_volume_attachment'] = VolumeAttachmentPrototypeInstanceByImageContext.from_dict(boot_volume_attachment) + args['boot_volume_attachment'] = VolumeAttachmentPrototypeInstanceByImageContext.from_dict( + boot_volume_attachment + ) if (image := _dict.get('image')) is not None: args['image'] = image else: - raise ValueError('Required property \'image\' not present in InstanceTemplatePrototypeInstanceTemplateByImageInstanceTemplateByImageInstanceByNetworkInterface JSON') + raise ValueError( + 'Required property \'image\' not present in InstanceTemplatePrototypeInstanceTemplateByImageInstanceTemplateByImageInstanceByNetworkInterface JSON' + ) if (zone := _dict.get('zone')) is not None: args['zone'] = zone else: - raise ValueError('Required property \'zone\' not present in InstanceTemplatePrototypeInstanceTemplateByImageInstanceTemplateByImageInstanceByNetworkInterface JSON') + raise ValueError( + 'Required property \'zone\' not present in InstanceTemplatePrototypeInstanceTemplateByImageInstanceTemplateByImageInstanceByNetworkInterface JSON' + ) if (network_interfaces := _dict.get('network_interfaces')) is not None: args['network_interfaces'] = [NetworkInterfacePrototype.from_dict(v) for v in network_interfaces] if (primary_network_interface := _dict.get('primary_network_interface')) is not None: args['primary_network_interface'] = NetworkInterfacePrototype.from_dict(primary_network_interface) else: - raise ValueError('Required property \'primary_network_interface\' not present in InstanceTemplatePrototypeInstanceTemplateByImageInstanceTemplateByImageInstanceByNetworkInterface JSON') + raise ValueError( + 'Required property \'primary_network_interface\' not present in InstanceTemplatePrototypeInstanceTemplateByImageInstanceTemplateByImageInstanceByNetworkInterface JSON' + ) return cls(**args) @classmethod @@ -154765,13 +157629,17 @@ def __str__(self) -> str: """Return a `str` version of this InstanceTemplatePrototypeInstanceTemplateByImageInstanceTemplateByImageInstanceByNetworkInterface object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'InstanceTemplatePrototypeInstanceTemplateByImageInstanceTemplateByImageInstanceByNetworkInterface') -> bool: + def __eq__( + self, other: 'InstanceTemplatePrototypeInstanceTemplateByImageInstanceTemplateByImageInstanceByNetworkInterface' + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'InstanceTemplatePrototypeInstanceTemplateByImageInstanceTemplateByImageInstanceByNetworkInterface') -> bool: + def __ne__( + self, other: 'InstanceTemplatePrototypeInstanceTemplateByImageInstanceTemplateByImageInstanceByNetworkInterface' + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other @@ -154786,8 +157654,9 @@ class ConfidentialComputeModeEnum(str, Enum): SGX = 'sgx' - -class InstanceTemplatePrototypeInstanceTemplateBySourceSnapshotInstanceTemplateBySourceSnapshotInstanceByNetworkAttachment(InstanceTemplatePrototypeInstanceTemplateBySourceSnapshot): +class InstanceTemplatePrototypeInstanceTemplateBySourceSnapshotInstanceTemplateBySourceSnapshotInstanceByNetworkAttachment( + InstanceTemplatePrototypeInstanceTemplateBySourceSnapshot +): """ InstanceTemplatePrototypeInstanceTemplateBySourceSnapshotInstanceTemplateBySourceSnapshotInstanceByNetworkAttachment. @@ -154993,13 +157862,18 @@ def __init__( self.primary_network_attachment = primary_network_attachment @classmethod - def from_dict(cls, _dict: Dict) -> 'InstanceTemplatePrototypeInstanceTemplateBySourceSnapshotInstanceTemplateBySourceSnapshotInstanceByNetworkAttachment': + def from_dict( + cls, _dict: Dict + ) -> 'InstanceTemplatePrototypeInstanceTemplateBySourceSnapshotInstanceTemplateBySourceSnapshotInstanceByNetworkAttachment': """Initialize a InstanceTemplatePrototypeInstanceTemplateBySourceSnapshotInstanceTemplateBySourceSnapshotInstanceByNetworkAttachment object from a json dictionary.""" args = {} if (availability_policy := _dict.get('availability_policy')) is not None: args['availability_policy'] = InstanceAvailabilityPolicyPrototype.from_dict(availability_policy) if (cluster_network_attachments := _dict.get('cluster_network_attachments')) is not None: - args['cluster_network_attachments'] = [InstanceClusterNetworkAttachmentPrototypeInstanceContext.from_dict(v) for v in cluster_network_attachments] + args['cluster_network_attachments'] = [ + InstanceClusterNetworkAttachmentPrototypeInstanceContext.from_dict(v) + for v in cluster_network_attachments + ] if (confidential_compute_mode := _dict.get('confidential_compute_mode')) is not None: args['confidential_compute_mode'] = confidential_compute_mode if (default_trusted_profile := _dict.get('default_trusted_profile')) is not None: @@ -155029,19 +157903,29 @@ def from_dict(cls, _dict: Dict) -> 'InstanceTemplatePrototypeInstanceTemplateByS if (vpc := _dict.get('vpc')) is not None: args['vpc'] = vpc if (boot_volume_attachment := _dict.get('boot_volume_attachment')) is not None: - args['boot_volume_attachment'] = VolumeAttachmentPrototypeInstanceBySourceSnapshotContext.from_dict(boot_volume_attachment) + args['boot_volume_attachment'] = VolumeAttachmentPrototypeInstanceBySourceSnapshotContext.from_dict( + boot_volume_attachment + ) else: - raise ValueError('Required property \'boot_volume_attachment\' not present in InstanceTemplatePrototypeInstanceTemplateBySourceSnapshotInstanceTemplateBySourceSnapshotInstanceByNetworkAttachment JSON') + raise ValueError( + 'Required property \'boot_volume_attachment\' not present in InstanceTemplatePrototypeInstanceTemplateBySourceSnapshotInstanceTemplateBySourceSnapshotInstanceByNetworkAttachment JSON' + ) if (zone := _dict.get('zone')) is not None: args['zone'] = zone else: - raise ValueError('Required property \'zone\' not present in InstanceTemplatePrototypeInstanceTemplateBySourceSnapshotInstanceTemplateBySourceSnapshotInstanceByNetworkAttachment JSON') + raise ValueError( + 'Required property \'zone\' not present in InstanceTemplatePrototypeInstanceTemplateBySourceSnapshotInstanceTemplateBySourceSnapshotInstanceByNetworkAttachment JSON' + ) if (network_attachments := _dict.get('network_attachments')) is not None: args['network_attachments'] = [InstanceNetworkAttachmentPrototype.from_dict(v) for v in network_attachments] if (primary_network_attachment := _dict.get('primary_network_attachment')) is not None: - args['primary_network_attachment'] = InstanceNetworkAttachmentPrototype.from_dict(primary_network_attachment) + args['primary_network_attachment'] = InstanceNetworkAttachmentPrototype.from_dict( + primary_network_attachment + ) else: - raise ValueError('Required property \'primary_network_attachment\' not present in InstanceTemplatePrototypeInstanceTemplateBySourceSnapshotInstanceTemplateBySourceSnapshotInstanceByNetworkAttachment JSON') + raise ValueError( + 'Required property \'primary_network_attachment\' not present in InstanceTemplatePrototypeInstanceTemplateBySourceSnapshotInstanceTemplateBySourceSnapshotInstanceByNetworkAttachment JSON' + ) return cls(**args) @classmethod @@ -155159,13 +158043,19 @@ def __str__(self) -> str: """Return a `str` version of this InstanceTemplatePrototypeInstanceTemplateBySourceSnapshotInstanceTemplateBySourceSnapshotInstanceByNetworkAttachment object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'InstanceTemplatePrototypeInstanceTemplateBySourceSnapshotInstanceTemplateBySourceSnapshotInstanceByNetworkAttachment') -> bool: + def __eq__( + self, + other: 'InstanceTemplatePrototypeInstanceTemplateBySourceSnapshotInstanceTemplateBySourceSnapshotInstanceByNetworkAttachment', + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'InstanceTemplatePrototypeInstanceTemplateBySourceSnapshotInstanceTemplateBySourceSnapshotInstanceByNetworkAttachment') -> bool: + def __ne__( + self, + other: 'InstanceTemplatePrototypeInstanceTemplateBySourceSnapshotInstanceTemplateBySourceSnapshotInstanceByNetworkAttachment', + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other @@ -155180,8 +158070,9 @@ class ConfidentialComputeModeEnum(str, Enum): SGX = 'sgx' - -class InstanceTemplatePrototypeInstanceTemplateBySourceSnapshotInstanceTemplateBySourceSnapshotInstanceByNetworkInterface(InstanceTemplatePrototypeInstanceTemplateBySourceSnapshot): +class InstanceTemplatePrototypeInstanceTemplateBySourceSnapshotInstanceTemplateBySourceSnapshotInstanceByNetworkInterface( + InstanceTemplatePrototypeInstanceTemplateBySourceSnapshot +): """ InstanceTemplatePrototypeInstanceTemplateBySourceSnapshotInstanceTemplateBySourceSnapshotInstanceByNetworkInterface. @@ -155386,13 +158277,18 @@ def __init__( self.primary_network_interface = primary_network_interface @classmethod - def from_dict(cls, _dict: Dict) -> 'InstanceTemplatePrototypeInstanceTemplateBySourceSnapshotInstanceTemplateBySourceSnapshotInstanceByNetworkInterface': + def from_dict( + cls, _dict: Dict + ) -> 'InstanceTemplatePrototypeInstanceTemplateBySourceSnapshotInstanceTemplateBySourceSnapshotInstanceByNetworkInterface': """Initialize a InstanceTemplatePrototypeInstanceTemplateBySourceSnapshotInstanceTemplateBySourceSnapshotInstanceByNetworkInterface object from a json dictionary.""" args = {} if (availability_policy := _dict.get('availability_policy')) is not None: args['availability_policy'] = InstanceAvailabilityPolicyPrototype.from_dict(availability_policy) if (cluster_network_attachments := _dict.get('cluster_network_attachments')) is not None: - args['cluster_network_attachments'] = [InstanceClusterNetworkAttachmentPrototypeInstanceContext.from_dict(v) for v in cluster_network_attachments] + args['cluster_network_attachments'] = [ + InstanceClusterNetworkAttachmentPrototypeInstanceContext.from_dict(v) + for v in cluster_network_attachments + ] if (confidential_compute_mode := _dict.get('confidential_compute_mode')) is not None: args['confidential_compute_mode'] = confidential_compute_mode if (default_trusted_profile := _dict.get('default_trusted_profile')) is not None: @@ -155422,19 +158318,27 @@ def from_dict(cls, _dict: Dict) -> 'InstanceTemplatePrototypeInstanceTemplateByS if (vpc := _dict.get('vpc')) is not None: args['vpc'] = vpc if (boot_volume_attachment := _dict.get('boot_volume_attachment')) is not None: - args['boot_volume_attachment'] = VolumeAttachmentPrototypeInstanceBySourceSnapshotContext.from_dict(boot_volume_attachment) + args['boot_volume_attachment'] = VolumeAttachmentPrototypeInstanceBySourceSnapshotContext.from_dict( + boot_volume_attachment + ) else: - raise ValueError('Required property \'boot_volume_attachment\' not present in InstanceTemplatePrototypeInstanceTemplateBySourceSnapshotInstanceTemplateBySourceSnapshotInstanceByNetworkInterface JSON') + raise ValueError( + 'Required property \'boot_volume_attachment\' not present in InstanceTemplatePrototypeInstanceTemplateBySourceSnapshotInstanceTemplateBySourceSnapshotInstanceByNetworkInterface JSON' + ) if (zone := _dict.get('zone')) is not None: args['zone'] = zone else: - raise ValueError('Required property \'zone\' not present in InstanceTemplatePrototypeInstanceTemplateBySourceSnapshotInstanceTemplateBySourceSnapshotInstanceByNetworkInterface JSON') + raise ValueError( + 'Required property \'zone\' not present in InstanceTemplatePrototypeInstanceTemplateBySourceSnapshotInstanceTemplateBySourceSnapshotInstanceByNetworkInterface JSON' + ) if (network_interfaces := _dict.get('network_interfaces')) is not None: args['network_interfaces'] = [NetworkInterfacePrototype.from_dict(v) for v in network_interfaces] if (primary_network_interface := _dict.get('primary_network_interface')) is not None: args['primary_network_interface'] = NetworkInterfacePrototype.from_dict(primary_network_interface) else: - raise ValueError('Required property \'primary_network_interface\' not present in InstanceTemplatePrototypeInstanceTemplateBySourceSnapshotInstanceTemplateBySourceSnapshotInstanceByNetworkInterface JSON') + raise ValueError( + 'Required property \'primary_network_interface\' not present in InstanceTemplatePrototypeInstanceTemplateBySourceSnapshotInstanceTemplateBySourceSnapshotInstanceByNetworkInterface JSON' + ) return cls(**args) @classmethod @@ -155552,13 +158456,19 @@ def __str__(self) -> str: """Return a `str` version of this InstanceTemplatePrototypeInstanceTemplateBySourceSnapshotInstanceTemplateBySourceSnapshotInstanceByNetworkInterface object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'InstanceTemplatePrototypeInstanceTemplateBySourceSnapshotInstanceTemplateBySourceSnapshotInstanceByNetworkInterface') -> bool: + def __eq__( + self, + other: 'InstanceTemplatePrototypeInstanceTemplateBySourceSnapshotInstanceTemplateBySourceSnapshotInstanceByNetworkInterface', + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'InstanceTemplatePrototypeInstanceTemplateBySourceSnapshotInstanceTemplateBySourceSnapshotInstanceByNetworkInterface') -> bool: + def __ne__( + self, + other: 'InstanceTemplatePrototypeInstanceTemplateBySourceSnapshotInstanceTemplateBySourceSnapshotInstanceByNetworkInterface', + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other @@ -155573,8 +158483,9 @@ class ConfidentialComputeModeEnum(str, Enum): SGX = 'sgx' - -class InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkAttachment(InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContext): +class InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkAttachment( + InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContext +): """ InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkAttachment. @@ -155801,23 +158712,32 @@ def __init__( self.primary_network_attachment = primary_network_attachment @classmethod - def from_dict(cls, _dict: Dict) -> 'InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkAttachment': + def from_dict( + cls, _dict: Dict + ) -> 'InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkAttachment': """Initialize a InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkAttachment object from a json dictionary.""" args = {} if (availability_policy := _dict.get('availability_policy')) is not None: args['availability_policy'] = InstanceAvailabilityPolicyPrototype.from_dict(availability_policy) if (cluster_network_attachments := _dict.get('cluster_network_attachments')) is not None: - args['cluster_network_attachments'] = [InstanceClusterNetworkAttachmentPrototypeInstanceContext.from_dict(v) for v in cluster_network_attachments] + args['cluster_network_attachments'] = [ + InstanceClusterNetworkAttachmentPrototypeInstanceContext.from_dict(v) + for v in cluster_network_attachments + ] if (confidential_compute_mode := _dict.get('confidential_compute_mode')) is not None: args['confidential_compute_mode'] = confidential_compute_mode if (created_at := _dict.get('created_at')) is not None: args['created_at'] = string_to_datetime(created_at) else: - raise ValueError('Required property \'created_at\' not present in InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkAttachment JSON') + raise ValueError( + 'Required property \'created_at\' not present in InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkAttachment JSON' + ) if (crn := _dict.get('crn')) is not None: args['crn'] = crn else: - raise ValueError('Required property \'crn\' not present in InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkAttachment JSON') + raise ValueError( + 'Required property \'crn\' not present in InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkAttachment JSON' + ) if (default_trusted_profile := _dict.get('default_trusted_profile')) is not None: args['default_trusted_profile'] = InstanceDefaultTrustedProfilePrototype.from_dict(default_trusted_profile) if (enable_secure_boot := _dict.get('enable_secure_boot')) is not None: @@ -155825,11 +158745,15 @@ def from_dict(cls, _dict: Dict) -> 'InstanceTemplateInstanceByCatalogOfferingIns if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkAttachment JSON') + raise ValueError( + 'Required property \'href\' not present in InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkAttachment JSON' + ) if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkAttachment JSON') + raise ValueError( + 'Required property \'id\' not present in InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkAttachment JSON' + ) if (keys := _dict.get('keys')) is not None: args['keys'] = keys if (metadata_service := _dict.get('metadata_service')) is not None: @@ -155837,7 +158761,9 @@ def from_dict(cls, _dict: Dict) -> 'InstanceTemplateInstanceByCatalogOfferingIns if (name := _dict.get('name')) is not None: args['name'] = name else: - raise ValueError('Required property \'name\' not present in InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkAttachment JSON') + raise ValueError( + 'Required property \'name\' not present in InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkAttachment JSON' + ) if (placement_target := _dict.get('placement_target')) is not None: args['placement_target'] = placement_target if (profile := _dict.get('profile')) is not None: @@ -155847,7 +158773,9 @@ def from_dict(cls, _dict: Dict) -> 'InstanceTemplateInstanceByCatalogOfferingIns if (resource_group := _dict.get('resource_group')) is not None: args['resource_group'] = ResourceGroupReference.from_dict(resource_group) else: - raise ValueError('Required property \'resource_group\' not present in InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkAttachment JSON') + raise ValueError( + 'Required property \'resource_group\' not present in InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkAttachment JSON' + ) if (total_volume_bandwidth := _dict.get('total_volume_bandwidth')) is not None: args['total_volume_bandwidth'] = total_volume_bandwidth if (user_data := _dict.get('user_data')) is not None: @@ -155857,21 +158785,31 @@ def from_dict(cls, _dict: Dict) -> 'InstanceTemplateInstanceByCatalogOfferingIns if (vpc := _dict.get('vpc')) is not None: args['vpc'] = vpc if (boot_volume_attachment := _dict.get('boot_volume_attachment')) is not None: - args['boot_volume_attachment'] = VolumeAttachmentPrototypeInstanceByImageContext.from_dict(boot_volume_attachment) + args['boot_volume_attachment'] = VolumeAttachmentPrototypeInstanceByImageContext.from_dict( + boot_volume_attachment + ) if (catalog_offering := _dict.get('catalog_offering')) is not None: args['catalog_offering'] = catalog_offering else: - raise ValueError('Required property \'catalog_offering\' not present in InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkAttachment JSON') + raise ValueError( + 'Required property \'catalog_offering\' not present in InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkAttachment JSON' + ) if (zone := _dict.get('zone')) is not None: args['zone'] = zone else: - raise ValueError('Required property \'zone\' not present in InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkAttachment JSON') + raise ValueError( + 'Required property \'zone\' not present in InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkAttachment JSON' + ) if (network_attachments := _dict.get('network_attachments')) is not None: args['network_attachments'] = [InstanceNetworkAttachmentPrototype.from_dict(v) for v in network_attachments] if (primary_network_attachment := _dict.get('primary_network_attachment')) is not None: - args['primary_network_attachment'] = InstanceNetworkAttachmentPrototype.from_dict(primary_network_attachment) + args['primary_network_attachment'] = InstanceNetworkAttachmentPrototype.from_dict( + primary_network_attachment + ) else: - raise ValueError('Required property \'primary_network_attachment\' not present in InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkAttachment JSON') + raise ValueError( + 'Required property \'primary_network_attachment\' not present in InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkAttachment JSON' + ) return cls(**args) @classmethod @@ -156002,13 +158940,19 @@ def __str__(self) -> str: """Return a `str` version of this InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkAttachment object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkAttachment') -> bool: + def __eq__( + self, + other: 'InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkAttachment', + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkAttachment') -> bool: + def __ne__( + self, + other: 'InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkAttachment', + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other @@ -156023,8 +158967,9 @@ class ConfidentialComputeModeEnum(str, Enum): SGX = 'sgx' - -class InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkInterface(InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContext): +class InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkInterface( + InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContext +): """ InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkInterface. @@ -156250,23 +159195,32 @@ def __init__( self.primary_network_interface = primary_network_interface @classmethod - def from_dict(cls, _dict: Dict) -> 'InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkInterface': + def from_dict( + cls, _dict: Dict + ) -> 'InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkInterface': """Initialize a InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkInterface object from a json dictionary.""" args = {} if (availability_policy := _dict.get('availability_policy')) is not None: args['availability_policy'] = InstanceAvailabilityPolicyPrototype.from_dict(availability_policy) if (cluster_network_attachments := _dict.get('cluster_network_attachments')) is not None: - args['cluster_network_attachments'] = [InstanceClusterNetworkAttachmentPrototypeInstanceContext.from_dict(v) for v in cluster_network_attachments] + args['cluster_network_attachments'] = [ + InstanceClusterNetworkAttachmentPrototypeInstanceContext.from_dict(v) + for v in cluster_network_attachments + ] if (confidential_compute_mode := _dict.get('confidential_compute_mode')) is not None: args['confidential_compute_mode'] = confidential_compute_mode if (created_at := _dict.get('created_at')) is not None: args['created_at'] = string_to_datetime(created_at) else: - raise ValueError('Required property \'created_at\' not present in InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkInterface JSON') + raise ValueError( + 'Required property \'created_at\' not present in InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkInterface JSON' + ) if (crn := _dict.get('crn')) is not None: args['crn'] = crn else: - raise ValueError('Required property \'crn\' not present in InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkInterface JSON') + raise ValueError( + 'Required property \'crn\' not present in InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkInterface JSON' + ) if (default_trusted_profile := _dict.get('default_trusted_profile')) is not None: args['default_trusted_profile'] = InstanceDefaultTrustedProfilePrototype.from_dict(default_trusted_profile) if (enable_secure_boot := _dict.get('enable_secure_boot')) is not None: @@ -156274,11 +159228,15 @@ def from_dict(cls, _dict: Dict) -> 'InstanceTemplateInstanceByCatalogOfferingIns if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkInterface JSON') + raise ValueError( + 'Required property \'href\' not present in InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkInterface JSON' + ) if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkInterface JSON') + raise ValueError( + 'Required property \'id\' not present in InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkInterface JSON' + ) if (keys := _dict.get('keys')) is not None: args['keys'] = keys if (metadata_service := _dict.get('metadata_service')) is not None: @@ -156286,7 +159244,9 @@ def from_dict(cls, _dict: Dict) -> 'InstanceTemplateInstanceByCatalogOfferingIns if (name := _dict.get('name')) is not None: args['name'] = name else: - raise ValueError('Required property \'name\' not present in InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkInterface JSON') + raise ValueError( + 'Required property \'name\' not present in InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkInterface JSON' + ) if (placement_target := _dict.get('placement_target')) is not None: args['placement_target'] = placement_target if (profile := _dict.get('profile')) is not None: @@ -156296,7 +159256,9 @@ def from_dict(cls, _dict: Dict) -> 'InstanceTemplateInstanceByCatalogOfferingIns if (resource_group := _dict.get('resource_group')) is not None: args['resource_group'] = ResourceGroupReference.from_dict(resource_group) else: - raise ValueError('Required property \'resource_group\' not present in InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkInterface JSON') + raise ValueError( + 'Required property \'resource_group\' not present in InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkInterface JSON' + ) if (total_volume_bandwidth := _dict.get('total_volume_bandwidth')) is not None: args['total_volume_bandwidth'] = total_volume_bandwidth if (user_data := _dict.get('user_data')) is not None: @@ -156306,21 +159268,29 @@ def from_dict(cls, _dict: Dict) -> 'InstanceTemplateInstanceByCatalogOfferingIns if (vpc := _dict.get('vpc')) is not None: args['vpc'] = vpc if (boot_volume_attachment := _dict.get('boot_volume_attachment')) is not None: - args['boot_volume_attachment'] = VolumeAttachmentPrototypeInstanceByImageContext.from_dict(boot_volume_attachment) + args['boot_volume_attachment'] = VolumeAttachmentPrototypeInstanceByImageContext.from_dict( + boot_volume_attachment + ) if (catalog_offering := _dict.get('catalog_offering')) is not None: args['catalog_offering'] = catalog_offering else: - raise ValueError('Required property \'catalog_offering\' not present in InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkInterface JSON') + raise ValueError( + 'Required property \'catalog_offering\' not present in InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkInterface JSON' + ) if (zone := _dict.get('zone')) is not None: args['zone'] = zone else: - raise ValueError('Required property \'zone\' not present in InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkInterface JSON') + raise ValueError( + 'Required property \'zone\' not present in InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkInterface JSON' + ) if (network_interfaces := _dict.get('network_interfaces')) is not None: args['network_interfaces'] = [NetworkInterfacePrototype.from_dict(v) for v in network_interfaces] if (primary_network_interface := _dict.get('primary_network_interface')) is not None: args['primary_network_interface'] = NetworkInterfacePrototype.from_dict(primary_network_interface) else: - raise ValueError('Required property \'primary_network_interface\' not present in InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkInterface JSON') + raise ValueError( + 'Required property \'primary_network_interface\' not present in InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkInterface JSON' + ) return cls(**args) @classmethod @@ -156451,13 +159421,19 @@ def __str__(self) -> str: """Return a `str` version of this InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkInterface object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkInterface') -> bool: + def __eq__( + self, + other: 'InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkInterface', + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkInterface') -> bool: + def __ne__( + self, + other: 'InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkInterface', + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other @@ -156472,8 +159448,9 @@ class ConfidentialComputeModeEnum(str, Enum): SGX = 'sgx' - -class InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkAttachment(InstanceTemplateInstanceByImageInstanceTemplateContext): +class InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkAttachment( + InstanceTemplateInstanceByImageInstanceTemplateContext +): """ InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkAttachment. @@ -156702,23 +159679,32 @@ def __init__( self.primary_network_attachment = primary_network_attachment @classmethod - def from_dict(cls, _dict: Dict) -> 'InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkAttachment': + def from_dict( + cls, _dict: Dict + ) -> 'InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkAttachment': """Initialize a InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkAttachment object from a json dictionary.""" args = {} if (availability_policy := _dict.get('availability_policy')) is not None: args['availability_policy'] = InstanceAvailabilityPolicyPrototype.from_dict(availability_policy) if (cluster_network_attachments := _dict.get('cluster_network_attachments')) is not None: - args['cluster_network_attachments'] = [InstanceClusterNetworkAttachmentPrototypeInstanceContext.from_dict(v) for v in cluster_network_attachments] + args['cluster_network_attachments'] = [ + InstanceClusterNetworkAttachmentPrototypeInstanceContext.from_dict(v) + for v in cluster_network_attachments + ] if (confidential_compute_mode := _dict.get('confidential_compute_mode')) is not None: args['confidential_compute_mode'] = confidential_compute_mode if (created_at := _dict.get('created_at')) is not None: args['created_at'] = string_to_datetime(created_at) else: - raise ValueError('Required property \'created_at\' not present in InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkAttachment JSON') + raise ValueError( + 'Required property \'created_at\' not present in InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkAttachment JSON' + ) if (crn := _dict.get('crn')) is not None: args['crn'] = crn else: - raise ValueError('Required property \'crn\' not present in InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkAttachment JSON') + raise ValueError( + 'Required property \'crn\' not present in InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkAttachment JSON' + ) if (default_trusted_profile := _dict.get('default_trusted_profile')) is not None: args['default_trusted_profile'] = InstanceDefaultTrustedProfilePrototype.from_dict(default_trusted_profile) if (enable_secure_boot := _dict.get('enable_secure_boot')) is not None: @@ -156726,11 +159712,15 @@ def from_dict(cls, _dict: Dict) -> 'InstanceTemplateInstanceByImageInstanceTempl if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkAttachment JSON') + raise ValueError( + 'Required property \'href\' not present in InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkAttachment JSON' + ) if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkAttachment JSON') + raise ValueError( + 'Required property \'id\' not present in InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkAttachment JSON' + ) if (keys := _dict.get('keys')) is not None: args['keys'] = keys if (metadata_service := _dict.get('metadata_service')) is not None: @@ -156738,7 +159728,9 @@ def from_dict(cls, _dict: Dict) -> 'InstanceTemplateInstanceByImageInstanceTempl if (name := _dict.get('name')) is not None: args['name'] = name else: - raise ValueError('Required property \'name\' not present in InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkAttachment JSON') + raise ValueError( + 'Required property \'name\' not present in InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkAttachment JSON' + ) if (placement_target := _dict.get('placement_target')) is not None: args['placement_target'] = placement_target if (profile := _dict.get('profile')) is not None: @@ -156748,7 +159740,9 @@ def from_dict(cls, _dict: Dict) -> 'InstanceTemplateInstanceByImageInstanceTempl if (resource_group := _dict.get('resource_group')) is not None: args['resource_group'] = ResourceGroupReference.from_dict(resource_group) else: - raise ValueError('Required property \'resource_group\' not present in InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkAttachment JSON') + raise ValueError( + 'Required property \'resource_group\' not present in InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkAttachment JSON' + ) if (total_volume_bandwidth := _dict.get('total_volume_bandwidth')) is not None: args['total_volume_bandwidth'] = total_volume_bandwidth if (user_data := _dict.get('user_data')) is not None: @@ -156758,21 +159752,31 @@ def from_dict(cls, _dict: Dict) -> 'InstanceTemplateInstanceByImageInstanceTempl if (vpc := _dict.get('vpc')) is not None: args['vpc'] = vpc if (boot_volume_attachment := _dict.get('boot_volume_attachment')) is not None: - args['boot_volume_attachment'] = VolumeAttachmentPrototypeInstanceByImageContext.from_dict(boot_volume_attachment) + args['boot_volume_attachment'] = VolumeAttachmentPrototypeInstanceByImageContext.from_dict( + boot_volume_attachment + ) if (image := _dict.get('image')) is not None: args['image'] = image else: - raise ValueError('Required property \'image\' not present in InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkAttachment JSON') + raise ValueError( + 'Required property \'image\' not present in InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkAttachment JSON' + ) if (zone := _dict.get('zone')) is not None: args['zone'] = zone else: - raise ValueError('Required property \'zone\' not present in InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkAttachment JSON') + raise ValueError( + 'Required property \'zone\' not present in InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkAttachment JSON' + ) if (network_attachments := _dict.get('network_attachments')) is not None: args['network_attachments'] = [InstanceNetworkAttachmentPrototype.from_dict(v) for v in network_attachments] if (primary_network_attachment := _dict.get('primary_network_attachment')) is not None: - args['primary_network_attachment'] = InstanceNetworkAttachmentPrototype.from_dict(primary_network_attachment) + args['primary_network_attachment'] = InstanceNetworkAttachmentPrototype.from_dict( + primary_network_attachment + ) else: - raise ValueError('Required property \'primary_network_attachment\' not present in InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkAttachment JSON') + raise ValueError( + 'Required property \'primary_network_attachment\' not present in InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkAttachment JSON' + ) return cls(**args) @classmethod @@ -156903,13 +159907,19 @@ def __str__(self) -> str: """Return a `str` version of this InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkAttachment object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkAttachment') -> bool: + def __eq__( + self, + other: 'InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkAttachment', + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkAttachment') -> bool: + def __ne__( + self, + other: 'InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkAttachment', + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other @@ -156924,8 +159934,9 @@ class ConfidentialComputeModeEnum(str, Enum): SGX = 'sgx' - -class InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkInterface(InstanceTemplateInstanceByImageInstanceTemplateContext): +class InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkInterface( + InstanceTemplateInstanceByImageInstanceTemplateContext +): """ InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkInterface. @@ -157153,23 +160164,32 @@ def __init__( self.primary_network_interface = primary_network_interface @classmethod - def from_dict(cls, _dict: Dict) -> 'InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkInterface': + def from_dict( + cls, _dict: Dict + ) -> 'InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkInterface': """Initialize a InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkInterface object from a json dictionary.""" args = {} if (availability_policy := _dict.get('availability_policy')) is not None: args['availability_policy'] = InstanceAvailabilityPolicyPrototype.from_dict(availability_policy) if (cluster_network_attachments := _dict.get('cluster_network_attachments')) is not None: - args['cluster_network_attachments'] = [InstanceClusterNetworkAttachmentPrototypeInstanceContext.from_dict(v) for v in cluster_network_attachments] + args['cluster_network_attachments'] = [ + InstanceClusterNetworkAttachmentPrototypeInstanceContext.from_dict(v) + for v in cluster_network_attachments + ] if (confidential_compute_mode := _dict.get('confidential_compute_mode')) is not None: args['confidential_compute_mode'] = confidential_compute_mode if (created_at := _dict.get('created_at')) is not None: args['created_at'] = string_to_datetime(created_at) else: - raise ValueError('Required property \'created_at\' not present in InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkInterface JSON') + raise ValueError( + 'Required property \'created_at\' not present in InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkInterface JSON' + ) if (crn := _dict.get('crn')) is not None: args['crn'] = crn else: - raise ValueError('Required property \'crn\' not present in InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkInterface JSON') + raise ValueError( + 'Required property \'crn\' not present in InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkInterface JSON' + ) if (default_trusted_profile := _dict.get('default_trusted_profile')) is not None: args['default_trusted_profile'] = InstanceDefaultTrustedProfilePrototype.from_dict(default_trusted_profile) if (enable_secure_boot := _dict.get('enable_secure_boot')) is not None: @@ -157177,11 +160197,15 @@ def from_dict(cls, _dict: Dict) -> 'InstanceTemplateInstanceByImageInstanceTempl if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkInterface JSON') + raise ValueError( + 'Required property \'href\' not present in InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkInterface JSON' + ) if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkInterface JSON') + raise ValueError( + 'Required property \'id\' not present in InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkInterface JSON' + ) if (keys := _dict.get('keys')) is not None: args['keys'] = keys if (metadata_service := _dict.get('metadata_service')) is not None: @@ -157189,7 +160213,9 @@ def from_dict(cls, _dict: Dict) -> 'InstanceTemplateInstanceByImageInstanceTempl if (name := _dict.get('name')) is not None: args['name'] = name else: - raise ValueError('Required property \'name\' not present in InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkInterface JSON') + raise ValueError( + 'Required property \'name\' not present in InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkInterface JSON' + ) if (placement_target := _dict.get('placement_target')) is not None: args['placement_target'] = placement_target if (profile := _dict.get('profile')) is not None: @@ -157199,7 +160225,9 @@ def from_dict(cls, _dict: Dict) -> 'InstanceTemplateInstanceByImageInstanceTempl if (resource_group := _dict.get('resource_group')) is not None: args['resource_group'] = ResourceGroupReference.from_dict(resource_group) else: - raise ValueError('Required property \'resource_group\' not present in InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkInterface JSON') + raise ValueError( + 'Required property \'resource_group\' not present in InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkInterface JSON' + ) if (total_volume_bandwidth := _dict.get('total_volume_bandwidth')) is not None: args['total_volume_bandwidth'] = total_volume_bandwidth if (user_data := _dict.get('user_data')) is not None: @@ -157209,21 +160237,29 @@ def from_dict(cls, _dict: Dict) -> 'InstanceTemplateInstanceByImageInstanceTempl if (vpc := _dict.get('vpc')) is not None: args['vpc'] = vpc if (boot_volume_attachment := _dict.get('boot_volume_attachment')) is not None: - args['boot_volume_attachment'] = VolumeAttachmentPrototypeInstanceByImageContext.from_dict(boot_volume_attachment) + args['boot_volume_attachment'] = VolumeAttachmentPrototypeInstanceByImageContext.from_dict( + boot_volume_attachment + ) if (image := _dict.get('image')) is not None: args['image'] = image else: - raise ValueError('Required property \'image\' not present in InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkInterface JSON') + raise ValueError( + 'Required property \'image\' not present in InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkInterface JSON' + ) if (zone := _dict.get('zone')) is not None: args['zone'] = zone else: - raise ValueError('Required property \'zone\' not present in InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkInterface JSON') + raise ValueError( + 'Required property \'zone\' not present in InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkInterface JSON' + ) if (network_interfaces := _dict.get('network_interfaces')) is not None: args['network_interfaces'] = [NetworkInterfacePrototype.from_dict(v) for v in network_interfaces] if (primary_network_interface := _dict.get('primary_network_interface')) is not None: args['primary_network_interface'] = NetworkInterfacePrototype.from_dict(primary_network_interface) else: - raise ValueError('Required property \'primary_network_interface\' not present in InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkInterface JSON') + raise ValueError( + 'Required property \'primary_network_interface\' not present in InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkInterface JSON' + ) return cls(**args) @classmethod @@ -157354,13 +160390,19 @@ def __str__(self) -> str: """Return a `str` version of this InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkInterface object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkInterface') -> bool: + def __eq__( + self, + other: 'InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkInterface', + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkInterface') -> bool: + def __ne__( + self, + other: 'InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkInterface', + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other @@ -157375,8 +160417,9 @@ class ConfidentialComputeModeEnum(str, Enum): SGX = 'sgx' - -class InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkAttachment(InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContext): +class InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkAttachment( + InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContext +): """ InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkAttachment. @@ -157606,23 +160649,32 @@ def __init__( self.primary_network_attachment = primary_network_attachment @classmethod - def from_dict(cls, _dict: Dict) -> 'InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkAttachment': + def from_dict( + cls, _dict: Dict + ) -> 'InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkAttachment': """Initialize a InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkAttachment object from a json dictionary.""" args = {} if (availability_policy := _dict.get('availability_policy')) is not None: args['availability_policy'] = InstanceAvailabilityPolicyPrototype.from_dict(availability_policy) if (cluster_network_attachments := _dict.get('cluster_network_attachments')) is not None: - args['cluster_network_attachments'] = [InstanceClusterNetworkAttachmentPrototypeInstanceContext.from_dict(v) for v in cluster_network_attachments] + args['cluster_network_attachments'] = [ + InstanceClusterNetworkAttachmentPrototypeInstanceContext.from_dict(v) + for v in cluster_network_attachments + ] if (confidential_compute_mode := _dict.get('confidential_compute_mode')) is not None: args['confidential_compute_mode'] = confidential_compute_mode if (created_at := _dict.get('created_at')) is not None: args['created_at'] = string_to_datetime(created_at) else: - raise ValueError('Required property \'created_at\' not present in InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkAttachment JSON') + raise ValueError( + 'Required property \'created_at\' not present in InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkAttachment JSON' + ) if (crn := _dict.get('crn')) is not None: args['crn'] = crn else: - raise ValueError('Required property \'crn\' not present in InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkAttachment JSON') + raise ValueError( + 'Required property \'crn\' not present in InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkAttachment JSON' + ) if (default_trusted_profile := _dict.get('default_trusted_profile')) is not None: args['default_trusted_profile'] = InstanceDefaultTrustedProfilePrototype.from_dict(default_trusted_profile) if (enable_secure_boot := _dict.get('enable_secure_boot')) is not None: @@ -157630,11 +160682,15 @@ def from_dict(cls, _dict: Dict) -> 'InstanceTemplateInstanceBySourceSnapshotInst if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkAttachment JSON') + raise ValueError( + 'Required property \'href\' not present in InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkAttachment JSON' + ) if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkAttachment JSON') + raise ValueError( + 'Required property \'id\' not present in InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkAttachment JSON' + ) if (keys := _dict.get('keys')) is not None: args['keys'] = keys if (metadata_service := _dict.get('metadata_service')) is not None: @@ -157642,7 +160698,9 @@ def from_dict(cls, _dict: Dict) -> 'InstanceTemplateInstanceBySourceSnapshotInst if (name := _dict.get('name')) is not None: args['name'] = name else: - raise ValueError('Required property \'name\' not present in InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkAttachment JSON') + raise ValueError( + 'Required property \'name\' not present in InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkAttachment JSON' + ) if (placement_target := _dict.get('placement_target')) is not None: args['placement_target'] = placement_target if (profile := _dict.get('profile')) is not None: @@ -157652,7 +160710,9 @@ def from_dict(cls, _dict: Dict) -> 'InstanceTemplateInstanceBySourceSnapshotInst if (resource_group := _dict.get('resource_group')) is not None: args['resource_group'] = ResourceGroupReference.from_dict(resource_group) else: - raise ValueError('Required property \'resource_group\' not present in InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkAttachment JSON') + raise ValueError( + 'Required property \'resource_group\' not present in InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkAttachment JSON' + ) if (total_volume_bandwidth := _dict.get('total_volume_bandwidth')) is not None: args['total_volume_bandwidth'] = total_volume_bandwidth if (user_data := _dict.get('user_data')) is not None: @@ -157662,21 +160722,31 @@ def from_dict(cls, _dict: Dict) -> 'InstanceTemplateInstanceBySourceSnapshotInst if (vpc := _dict.get('vpc')) is not None: args['vpc'] = vpc if (boot_volume_attachment := _dict.get('boot_volume_attachment')) is not None: - args['boot_volume_attachment'] = VolumeAttachmentPrototypeInstanceBySourceSnapshotContext.from_dict(boot_volume_attachment) + args['boot_volume_attachment'] = VolumeAttachmentPrototypeInstanceBySourceSnapshotContext.from_dict( + boot_volume_attachment + ) else: - raise ValueError('Required property \'boot_volume_attachment\' not present in InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkAttachment JSON') + raise ValueError( + 'Required property \'boot_volume_attachment\' not present in InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkAttachment JSON' + ) if (network_interfaces := _dict.get('network_interfaces')) is not None: args['network_interfaces'] = [NetworkInterfacePrototype.from_dict(v) for v in network_interfaces] if (zone := _dict.get('zone')) is not None: args['zone'] = zone else: - raise ValueError('Required property \'zone\' not present in InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkAttachment JSON') + raise ValueError( + 'Required property \'zone\' not present in InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkAttachment JSON' + ) if (network_attachments := _dict.get('network_attachments')) is not None: args['network_attachments'] = [InstanceNetworkAttachmentPrototype.from_dict(v) for v in network_attachments] if (primary_network_attachment := _dict.get('primary_network_attachment')) is not None: - args['primary_network_attachment'] = InstanceNetworkAttachmentPrototype.from_dict(primary_network_attachment) + args['primary_network_attachment'] = InstanceNetworkAttachmentPrototype.from_dict( + primary_network_attachment + ) else: - raise ValueError('Required property \'primary_network_attachment\' not present in InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkAttachment JSON') + raise ValueError( + 'Required property \'primary_network_attachment\' not present in InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkAttachment JSON' + ) return cls(**args) @classmethod @@ -157810,13 +160880,19 @@ def __str__(self) -> str: """Return a `str` version of this InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkAttachment object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkAttachment') -> bool: + def __eq__( + self, + other: 'InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkAttachment', + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkAttachment') -> bool: + def __ne__( + self, + other: 'InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkAttachment', + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other @@ -157831,8 +160907,9 @@ class ConfidentialComputeModeEnum(str, Enum): SGX = 'sgx' - -class InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkInterface(InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContext): +class InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkInterface( + InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContext +): """ InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkInterface. @@ -158069,23 +161146,32 @@ def __init__( self.primary_network_interface = primary_network_interface @classmethod - def from_dict(cls, _dict: Dict) -> 'InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkInterface': + def from_dict( + cls, _dict: Dict + ) -> 'InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkInterface': """Initialize a InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkInterface object from a json dictionary.""" args = {} if (availability_policy := _dict.get('availability_policy')) is not None: args['availability_policy'] = InstanceAvailabilityPolicyPrototype.from_dict(availability_policy) if (cluster_network_attachments := _dict.get('cluster_network_attachments')) is not None: - args['cluster_network_attachments'] = [InstanceClusterNetworkAttachmentPrototypeInstanceContext.from_dict(v) for v in cluster_network_attachments] + args['cluster_network_attachments'] = [ + InstanceClusterNetworkAttachmentPrototypeInstanceContext.from_dict(v) + for v in cluster_network_attachments + ] if (confidential_compute_mode := _dict.get('confidential_compute_mode')) is not None: args['confidential_compute_mode'] = confidential_compute_mode if (created_at := _dict.get('created_at')) is not None: args['created_at'] = string_to_datetime(created_at) else: - raise ValueError('Required property \'created_at\' not present in InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkInterface JSON') + raise ValueError( + 'Required property \'created_at\' not present in InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkInterface JSON' + ) if (crn := _dict.get('crn')) is not None: args['crn'] = crn else: - raise ValueError('Required property \'crn\' not present in InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkInterface JSON') + raise ValueError( + 'Required property \'crn\' not present in InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkInterface JSON' + ) if (default_trusted_profile := _dict.get('default_trusted_profile')) is not None: args['default_trusted_profile'] = InstanceDefaultTrustedProfilePrototype.from_dict(default_trusted_profile) if (enable_secure_boot := _dict.get('enable_secure_boot')) is not None: @@ -158093,11 +161179,15 @@ def from_dict(cls, _dict: Dict) -> 'InstanceTemplateInstanceBySourceSnapshotInst if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkInterface JSON') + raise ValueError( + 'Required property \'href\' not present in InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkInterface JSON' + ) if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkInterface JSON') + raise ValueError( + 'Required property \'id\' not present in InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkInterface JSON' + ) if (keys := _dict.get('keys')) is not None: args['keys'] = keys if (metadata_service := _dict.get('metadata_service')) is not None: @@ -158105,7 +161195,9 @@ def from_dict(cls, _dict: Dict) -> 'InstanceTemplateInstanceBySourceSnapshotInst if (name := _dict.get('name')) is not None: args['name'] = name else: - raise ValueError('Required property \'name\' not present in InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkInterface JSON') + raise ValueError( + 'Required property \'name\' not present in InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkInterface JSON' + ) if (placement_target := _dict.get('placement_target')) is not None: args['placement_target'] = placement_target if (profile := _dict.get('profile')) is not None: @@ -158115,7 +161207,9 @@ def from_dict(cls, _dict: Dict) -> 'InstanceTemplateInstanceBySourceSnapshotInst if (resource_group := _dict.get('resource_group')) is not None: args['resource_group'] = ResourceGroupReference.from_dict(resource_group) else: - raise ValueError('Required property \'resource_group\' not present in InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkInterface JSON') + raise ValueError( + 'Required property \'resource_group\' not present in InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkInterface JSON' + ) if (total_volume_bandwidth := _dict.get('total_volume_bandwidth')) is not None: args['total_volume_bandwidth'] = total_volume_bandwidth if (user_data := _dict.get('user_data')) is not None: @@ -158125,23 +161219,33 @@ def from_dict(cls, _dict: Dict) -> 'InstanceTemplateInstanceBySourceSnapshotInst if (vpc := _dict.get('vpc')) is not None: args['vpc'] = vpc if (boot_volume_attachment := _dict.get('boot_volume_attachment')) is not None: - args['boot_volume_attachment'] = VolumeAttachmentPrototypeInstanceBySourceSnapshotContext.from_dict(boot_volume_attachment) + args['boot_volume_attachment'] = VolumeAttachmentPrototypeInstanceBySourceSnapshotContext.from_dict( + boot_volume_attachment + ) else: - raise ValueError('Required property \'boot_volume_attachment\' not present in InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkInterface JSON') + raise ValueError( + 'Required property \'boot_volume_attachment\' not present in InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkInterface JSON' + ) if (network_attachments := _dict.get('network_attachments')) is not None: args['network_attachments'] = [InstanceNetworkAttachmentPrototype.from_dict(v) for v in network_attachments] if (primary_network_attachment := _dict.get('primary_network_attachment')) is not None: - args['primary_network_attachment'] = InstanceNetworkAttachmentPrototype.from_dict(primary_network_attachment) + args['primary_network_attachment'] = InstanceNetworkAttachmentPrototype.from_dict( + primary_network_attachment + ) if (zone := _dict.get('zone')) is not None: args['zone'] = zone else: - raise ValueError('Required property \'zone\' not present in InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkInterface JSON') + raise ValueError( + 'Required property \'zone\' not present in InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkInterface JSON' + ) if (network_interfaces := _dict.get('network_interfaces')) is not None: args['network_interfaces'] = [NetworkInterfacePrototype.from_dict(v) for v in network_interfaces] if (primary_network_interface := _dict.get('primary_network_interface')) is not None: args['primary_network_interface'] = NetworkInterfacePrototype.from_dict(primary_network_interface) else: - raise ValueError('Required property \'primary_network_interface\' not present in InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkInterface JSON') + raise ValueError( + 'Required property \'primary_network_interface\' not present in InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkInterface JSON' + ) return cls(**args) @classmethod @@ -158280,13 +161384,19 @@ def __str__(self) -> str: """Return a `str` version of this InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkInterface object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkInterface') -> bool: + def __eq__( + self, + other: 'InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkInterface', + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkInterface') -> bool: + def __ne__( + self, + other: 'InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkInterface', + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other @@ -158301,8 +161411,9 @@ class ConfidentialComputeModeEnum(str, Enum): SGX = 'sgx' - -class LoadBalancerListenerPolicyTargetPatchLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref(LoadBalancerListenerPolicyTargetPatchLoadBalancerPoolIdentity): +class LoadBalancerListenerPolicyTargetPatchLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref( + LoadBalancerListenerPolicyTargetPatchLoadBalancerPoolIdentity +): """ LoadBalancerListenerPolicyTargetPatchLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref. @@ -158322,13 +161433,17 @@ def __init__( self.href = href @classmethod - def from_dict(cls, _dict: Dict) -> 'LoadBalancerListenerPolicyTargetPatchLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref': + def from_dict( + cls, _dict: Dict + ) -> 'LoadBalancerListenerPolicyTargetPatchLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref': """Initialize a LoadBalancerListenerPolicyTargetPatchLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref object from a json dictionary.""" args = {} if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in LoadBalancerListenerPolicyTargetPatchLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref JSON') + raise ValueError( + 'Required property \'href\' not present in LoadBalancerListenerPolicyTargetPatchLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref JSON' + ) return cls(**args) @classmethod @@ -158351,18 +161466,26 @@ def __str__(self) -> str: """Return a `str` version of this LoadBalancerListenerPolicyTargetPatchLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'LoadBalancerListenerPolicyTargetPatchLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref') -> bool: + def __eq__( + self, + other: 'LoadBalancerListenerPolicyTargetPatchLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref', + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'LoadBalancerListenerPolicyTargetPatchLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref') -> bool: + def __ne__( + self, + other: 'LoadBalancerListenerPolicyTargetPatchLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref', + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other -class LoadBalancerListenerPolicyTargetPatchLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityById(LoadBalancerListenerPolicyTargetPatchLoadBalancerPoolIdentity): +class LoadBalancerListenerPolicyTargetPatchLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityById( + LoadBalancerListenerPolicyTargetPatchLoadBalancerPoolIdentity +): """ LoadBalancerListenerPolicyTargetPatchLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityById. @@ -158382,13 +161505,17 @@ def __init__( self.id = id @classmethod - def from_dict(cls, _dict: Dict) -> 'LoadBalancerListenerPolicyTargetPatchLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityById': + def from_dict( + cls, _dict: Dict + ) -> 'LoadBalancerListenerPolicyTargetPatchLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityById': """Initialize a LoadBalancerListenerPolicyTargetPatchLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityById object from a json dictionary.""" args = {} if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in LoadBalancerListenerPolicyTargetPatchLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityById JSON') + raise ValueError( + 'Required property \'id\' not present in LoadBalancerListenerPolicyTargetPatchLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityById JSON' + ) return cls(**args) @classmethod @@ -158411,18 +161538,26 @@ def __str__(self) -> str: """Return a `str` version of this LoadBalancerListenerPolicyTargetPatchLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityById object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'LoadBalancerListenerPolicyTargetPatchLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityById') -> bool: + def __eq__( + self, + other: 'LoadBalancerListenerPolicyTargetPatchLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityById', + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'LoadBalancerListenerPolicyTargetPatchLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityById') -> bool: + def __ne__( + self, + other: 'LoadBalancerListenerPolicyTargetPatchLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityById', + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other -class LoadBalancerListenerPolicyTargetPrototypeLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref(LoadBalancerListenerPolicyTargetPrototypeLoadBalancerPoolIdentity): +class LoadBalancerListenerPolicyTargetPrototypeLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref( + LoadBalancerListenerPolicyTargetPrototypeLoadBalancerPoolIdentity +): """ LoadBalancerListenerPolicyTargetPrototypeLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref. @@ -158442,13 +161577,17 @@ def __init__( self.href = href @classmethod - def from_dict(cls, _dict: Dict) -> 'LoadBalancerListenerPolicyTargetPrototypeLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref': + def from_dict( + cls, _dict: Dict + ) -> 'LoadBalancerListenerPolicyTargetPrototypeLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref': """Initialize a LoadBalancerListenerPolicyTargetPrototypeLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref object from a json dictionary.""" args = {} if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in LoadBalancerListenerPolicyTargetPrototypeLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref JSON') + raise ValueError( + 'Required property \'href\' not present in LoadBalancerListenerPolicyTargetPrototypeLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref JSON' + ) return cls(**args) @classmethod @@ -158471,18 +161610,26 @@ def __str__(self) -> str: """Return a `str` version of this LoadBalancerListenerPolicyTargetPrototypeLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'LoadBalancerListenerPolicyTargetPrototypeLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref') -> bool: + def __eq__( + self, + other: 'LoadBalancerListenerPolicyTargetPrototypeLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref', + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'LoadBalancerListenerPolicyTargetPrototypeLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref') -> bool: + def __ne__( + self, + other: 'LoadBalancerListenerPolicyTargetPrototypeLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref', + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other -class LoadBalancerListenerPolicyTargetPrototypeLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityById(LoadBalancerListenerPolicyTargetPrototypeLoadBalancerPoolIdentity): +class LoadBalancerListenerPolicyTargetPrototypeLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityById( + LoadBalancerListenerPolicyTargetPrototypeLoadBalancerPoolIdentity +): """ LoadBalancerListenerPolicyTargetPrototypeLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityById. @@ -158502,13 +161649,17 @@ def __init__( self.id = id @classmethod - def from_dict(cls, _dict: Dict) -> 'LoadBalancerListenerPolicyTargetPrototypeLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityById': + def from_dict( + cls, _dict: Dict + ) -> 'LoadBalancerListenerPolicyTargetPrototypeLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityById': """Initialize a LoadBalancerListenerPolicyTargetPrototypeLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityById object from a json dictionary.""" args = {} if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in LoadBalancerListenerPolicyTargetPrototypeLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityById JSON') + raise ValueError( + 'Required property \'id\' not present in LoadBalancerListenerPolicyTargetPrototypeLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityById JSON' + ) return cls(**args) @classmethod @@ -158531,18 +161682,26 @@ def __str__(self) -> str: """Return a `str` version of this LoadBalancerListenerPolicyTargetPrototypeLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityById object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'LoadBalancerListenerPolicyTargetPrototypeLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityById') -> bool: + def __eq__( + self, + other: 'LoadBalancerListenerPolicyTargetPrototypeLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityById', + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'LoadBalancerListenerPolicyTargetPrototypeLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityById') -> bool: + def __ne__( + self, + other: 'LoadBalancerListenerPolicyTargetPrototypeLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityById', + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other -class LoadBalancerPoolMemberTargetPrototypeInstanceIdentityInstanceIdentityByCRN(LoadBalancerPoolMemberTargetPrototypeInstanceIdentity): +class LoadBalancerPoolMemberTargetPrototypeInstanceIdentityInstanceIdentityByCRN( + LoadBalancerPoolMemberTargetPrototypeInstanceIdentity +): """ LoadBalancerPoolMemberTargetPrototypeInstanceIdentityInstanceIdentityByCRN. @@ -158568,7 +161727,9 @@ def from_dict(cls, _dict: Dict) -> 'LoadBalancerPoolMemberTargetPrototypeInstanc if (crn := _dict.get('crn')) is not None: args['crn'] = crn else: - raise ValueError('Required property \'crn\' not present in LoadBalancerPoolMemberTargetPrototypeInstanceIdentityInstanceIdentityByCRN JSON') + raise ValueError( + 'Required property \'crn\' not present in LoadBalancerPoolMemberTargetPrototypeInstanceIdentityInstanceIdentityByCRN JSON' + ) return cls(**args) @classmethod @@ -158602,7 +161763,9 @@ def __ne__(self, other: 'LoadBalancerPoolMemberTargetPrototypeInstanceIdentityIn return not self == other -class LoadBalancerPoolMemberTargetPrototypeInstanceIdentityInstanceIdentityByHref(LoadBalancerPoolMemberTargetPrototypeInstanceIdentity): +class LoadBalancerPoolMemberTargetPrototypeInstanceIdentityInstanceIdentityByHref( + LoadBalancerPoolMemberTargetPrototypeInstanceIdentity +): """ LoadBalancerPoolMemberTargetPrototypeInstanceIdentityInstanceIdentityByHref. @@ -158628,7 +161791,9 @@ def from_dict(cls, _dict: Dict) -> 'LoadBalancerPoolMemberTargetPrototypeInstanc if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in LoadBalancerPoolMemberTargetPrototypeInstanceIdentityInstanceIdentityByHref JSON') + raise ValueError( + 'Required property \'href\' not present in LoadBalancerPoolMemberTargetPrototypeInstanceIdentityInstanceIdentityByHref JSON' + ) return cls(**args) @classmethod @@ -158662,7 +161827,9 @@ def __ne__(self, other: 'LoadBalancerPoolMemberTargetPrototypeInstanceIdentityIn return not self == other -class LoadBalancerPoolMemberTargetPrototypeInstanceIdentityInstanceIdentityById(LoadBalancerPoolMemberTargetPrototypeInstanceIdentity): +class LoadBalancerPoolMemberTargetPrototypeInstanceIdentityInstanceIdentityById( + LoadBalancerPoolMemberTargetPrototypeInstanceIdentity +): """ LoadBalancerPoolMemberTargetPrototypeInstanceIdentityInstanceIdentityById. @@ -158688,7 +161855,9 @@ def from_dict(cls, _dict: Dict) -> 'LoadBalancerPoolMemberTargetPrototypeInstanc if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in LoadBalancerPoolMemberTargetPrototypeInstanceIdentityInstanceIdentityById JSON') + raise ValueError( + 'Required property \'id\' not present in LoadBalancerPoolMemberTargetPrototypeInstanceIdentityInstanceIdentityById JSON' + ) return cls(**args) @classmethod @@ -158748,7 +161917,9 @@ def from_dict(cls, _dict: Dict) -> 'NetworkInterfaceIPPrototypeReservedIPIdentit if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in NetworkInterfaceIPPrototypeReservedIPIdentityByHref JSON') + raise ValueError( + 'Required property \'href\' not present in NetworkInterfaceIPPrototypeReservedIPIdentityByHref JSON' + ) return cls(**args) @classmethod @@ -158808,7 +161979,9 @@ def from_dict(cls, _dict: Dict) -> 'NetworkInterfaceIPPrototypeReservedIPIdentit if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in NetworkInterfaceIPPrototypeReservedIPIdentityById JSON') + raise ValueError( + 'Required property \'id\' not present in NetworkInterfaceIPPrototypeReservedIPIdentityById JSON' + ) return cls(**args) @classmethod @@ -158842,7 +162015,9 @@ def __ne__(self, other: 'NetworkInterfaceIPPrototypeReservedIPIdentityById') -> return not self == other -class PublicGatewayFloatingIPPrototypeFloatingIPIdentityFloatingIPIdentityByAddress(PublicGatewayFloatingIPPrototypeFloatingIPIdentity): +class PublicGatewayFloatingIPPrototypeFloatingIPIdentityFloatingIPIdentityByAddress( + PublicGatewayFloatingIPPrototypeFloatingIPIdentity +): """ PublicGatewayFloatingIPPrototypeFloatingIPIdentityFloatingIPIdentityByAddress. @@ -158868,7 +162043,9 @@ def from_dict(cls, _dict: Dict) -> 'PublicGatewayFloatingIPPrototypeFloatingIPId if (address := _dict.get('address')) is not None: args['address'] = address else: - raise ValueError('Required property \'address\' not present in PublicGatewayFloatingIPPrototypeFloatingIPIdentityFloatingIPIdentityByAddress JSON') + raise ValueError( + 'Required property \'address\' not present in PublicGatewayFloatingIPPrototypeFloatingIPIdentityFloatingIPIdentityByAddress JSON' + ) return cls(**args) @classmethod @@ -158902,7 +162079,9 @@ def __ne__(self, other: 'PublicGatewayFloatingIPPrototypeFloatingIPIdentityFloat return not self == other -class PublicGatewayFloatingIPPrototypeFloatingIPIdentityFloatingIPIdentityByCRN(PublicGatewayFloatingIPPrototypeFloatingIPIdentity): +class PublicGatewayFloatingIPPrototypeFloatingIPIdentityFloatingIPIdentityByCRN( + PublicGatewayFloatingIPPrototypeFloatingIPIdentity +): """ PublicGatewayFloatingIPPrototypeFloatingIPIdentityFloatingIPIdentityByCRN. @@ -158928,7 +162107,9 @@ def from_dict(cls, _dict: Dict) -> 'PublicGatewayFloatingIPPrototypeFloatingIPId if (crn := _dict.get('crn')) is not None: args['crn'] = crn else: - raise ValueError('Required property \'crn\' not present in PublicGatewayFloatingIPPrototypeFloatingIPIdentityFloatingIPIdentityByCRN JSON') + raise ValueError( + 'Required property \'crn\' not present in PublicGatewayFloatingIPPrototypeFloatingIPIdentityFloatingIPIdentityByCRN JSON' + ) return cls(**args) @classmethod @@ -158962,7 +162143,9 @@ def __ne__(self, other: 'PublicGatewayFloatingIPPrototypeFloatingIPIdentityFloat return not self == other -class PublicGatewayFloatingIPPrototypeFloatingIPIdentityFloatingIPIdentityByHref(PublicGatewayFloatingIPPrototypeFloatingIPIdentity): +class PublicGatewayFloatingIPPrototypeFloatingIPIdentityFloatingIPIdentityByHref( + PublicGatewayFloatingIPPrototypeFloatingIPIdentity +): """ PublicGatewayFloatingIPPrototypeFloatingIPIdentityFloatingIPIdentityByHref. @@ -158988,7 +162171,9 @@ def from_dict(cls, _dict: Dict) -> 'PublicGatewayFloatingIPPrototypeFloatingIPId if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in PublicGatewayFloatingIPPrototypeFloatingIPIdentityFloatingIPIdentityByHref JSON') + raise ValueError( + 'Required property \'href\' not present in PublicGatewayFloatingIPPrototypeFloatingIPIdentityFloatingIPIdentityByHref JSON' + ) return cls(**args) @classmethod @@ -159022,7 +162207,9 @@ def __ne__(self, other: 'PublicGatewayFloatingIPPrototypeFloatingIPIdentityFloat return not self == other -class PublicGatewayFloatingIPPrototypeFloatingIPIdentityFloatingIPIdentityById(PublicGatewayFloatingIPPrototypeFloatingIPIdentity): +class PublicGatewayFloatingIPPrototypeFloatingIPIdentityFloatingIPIdentityById( + PublicGatewayFloatingIPPrototypeFloatingIPIdentity +): """ PublicGatewayFloatingIPPrototypeFloatingIPIdentityFloatingIPIdentityById. @@ -159048,7 +162235,9 @@ def from_dict(cls, _dict: Dict) -> 'PublicGatewayFloatingIPPrototypeFloatingIPId if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in PublicGatewayFloatingIPPrototypeFloatingIPIdentityFloatingIPIdentityById JSON') + raise ValueError( + 'Required property \'id\' not present in PublicGatewayFloatingIPPrototypeFloatingIPIdentityFloatingIPIdentityById JSON' + ) return cls(**args) @classmethod @@ -159082,7 +162271,9 @@ def __ne__(self, other: 'PublicGatewayFloatingIPPrototypeFloatingIPIdentityFloat return not self == other -class ReservedIPTargetPrototypeEndpointGatewayIdentityEndpointGatewayIdentityByCRN(ReservedIPTargetPrototypeEndpointGatewayIdentity): +class ReservedIPTargetPrototypeEndpointGatewayIdentityEndpointGatewayIdentityByCRN( + ReservedIPTargetPrototypeEndpointGatewayIdentity +): """ ReservedIPTargetPrototypeEndpointGatewayIdentityEndpointGatewayIdentityByCRN. @@ -159108,7 +162299,9 @@ def from_dict(cls, _dict: Dict) -> 'ReservedIPTargetPrototypeEndpointGatewayIden if (crn := _dict.get('crn')) is not None: args['crn'] = crn else: - raise ValueError('Required property \'crn\' not present in ReservedIPTargetPrototypeEndpointGatewayIdentityEndpointGatewayIdentityByCRN JSON') + raise ValueError( + 'Required property \'crn\' not present in ReservedIPTargetPrototypeEndpointGatewayIdentityEndpointGatewayIdentityByCRN JSON' + ) return cls(**args) @classmethod @@ -159142,7 +162335,9 @@ def __ne__(self, other: 'ReservedIPTargetPrototypeEndpointGatewayIdentityEndpoin return not self == other -class ReservedIPTargetPrototypeEndpointGatewayIdentityEndpointGatewayIdentityByHref(ReservedIPTargetPrototypeEndpointGatewayIdentity): +class ReservedIPTargetPrototypeEndpointGatewayIdentityEndpointGatewayIdentityByHref( + ReservedIPTargetPrototypeEndpointGatewayIdentity +): """ ReservedIPTargetPrototypeEndpointGatewayIdentityEndpointGatewayIdentityByHref. @@ -159168,7 +162363,9 @@ def from_dict(cls, _dict: Dict) -> 'ReservedIPTargetPrototypeEndpointGatewayIden if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in ReservedIPTargetPrototypeEndpointGatewayIdentityEndpointGatewayIdentityByHref JSON') + raise ValueError( + 'Required property \'href\' not present in ReservedIPTargetPrototypeEndpointGatewayIdentityEndpointGatewayIdentityByHref JSON' + ) return cls(**args) @classmethod @@ -159202,7 +162399,9 @@ def __ne__(self, other: 'ReservedIPTargetPrototypeEndpointGatewayIdentityEndpoin return not self == other -class ReservedIPTargetPrototypeEndpointGatewayIdentityEndpointGatewayIdentityById(ReservedIPTargetPrototypeEndpointGatewayIdentity): +class ReservedIPTargetPrototypeEndpointGatewayIdentityEndpointGatewayIdentityById( + ReservedIPTargetPrototypeEndpointGatewayIdentity +): """ ReservedIPTargetPrototypeEndpointGatewayIdentityEndpointGatewayIdentityById. @@ -159228,7 +162427,9 @@ def from_dict(cls, _dict: Dict) -> 'ReservedIPTargetPrototypeEndpointGatewayIden if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in ReservedIPTargetPrototypeEndpointGatewayIdentityEndpointGatewayIdentityById JSON') + raise ValueError( + 'Required property \'id\' not present in ReservedIPTargetPrototypeEndpointGatewayIdentityEndpointGatewayIdentityById JSON' + ) return cls(**args) @classmethod @@ -159262,7 +162463,9 @@ def __ne__(self, other: 'ReservedIPTargetPrototypeEndpointGatewayIdentityEndpoin return not self == other -class ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN(ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentity): +class ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN( + ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentity +): """ ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN. @@ -159282,13 +162485,17 @@ def __init__( self.crn = crn @classmethod - def from_dict(cls, _dict: Dict) -> 'ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN': + def from_dict( + cls, _dict: Dict + ) -> 'ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN': """Initialize a ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN object from a json dictionary.""" args = {} if (crn := _dict.get('crn')) is not None: args['crn'] = crn else: - raise ValueError('Required property \'crn\' not present in ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN JSON') + raise ValueError( + 'Required property \'crn\' not present in ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN JSON' + ) return cls(**args) @classmethod @@ -159311,18 +162518,24 @@ def __str__(self) -> str: """Return a `str` version of this ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN') -> bool: + def __eq__( + self, other: 'ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN' + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN') -> bool: + def __ne__( + self, other: 'ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN' + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other -class ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref(ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentity): +class ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref( + ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentity +): """ ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref. @@ -159342,13 +162555,17 @@ def __init__( self.href = href @classmethod - def from_dict(cls, _dict: Dict) -> 'ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref': + def from_dict( + cls, _dict: Dict + ) -> 'ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref': """Initialize a ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref object from a json dictionary.""" args = {} if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref JSON') + raise ValueError( + 'Required property \'href\' not present in ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref JSON' + ) return cls(**args) @classmethod @@ -159371,18 +162588,24 @@ def __str__(self) -> str: """Return a `str` version of this ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref') -> bool: + def __eq__( + self, other: 'ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref' + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref') -> bool: + def __ne__( + self, other: 'ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref' + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other -class ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById(ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentity): +class ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById( + ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentity +): """ ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById. @@ -159402,13 +162625,17 @@ def __init__( self.id = id @classmethod - def from_dict(cls, _dict: Dict) -> 'ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById': + def from_dict( + cls, _dict: Dict + ) -> 'ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById': """Initialize a ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById object from a json dictionary.""" args = {} if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById JSON') + raise ValueError( + 'Required property \'id\' not present in ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById JSON' + ) return cls(**args) @classmethod @@ -159431,13 +162658,17 @@ def __str__(self) -> str: """Return a `str` version of this ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById') -> bool: + def __eq__( + self, other: 'ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById' + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById') -> bool: + def __ne__( + self, other: 'ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById' + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other @@ -159474,7 +162705,9 @@ def from_dict(cls, _dict: Dict) -> 'RouteNextHopPatchRouteNextHopIPRouteNextHopI if (address := _dict.get('address')) is not None: args['address'] = address else: - raise ValueError('Required property \'address\' not present in RouteNextHopPatchRouteNextHopIPRouteNextHopIPSentinelIP JSON') + raise ValueError( + 'Required property \'address\' not present in RouteNextHopPatchRouteNextHopIPRouteNextHopIPSentinelIP JSON' + ) return cls(**args) @classmethod @@ -159548,7 +162781,9 @@ def from_dict(cls, _dict: Dict) -> 'RouteNextHopPatchRouteNextHopIPRouteNextHopI if (address := _dict.get('address')) is not None: args['address'] = address else: - raise ValueError('Required property \'address\' not present in RouteNextHopPatchRouteNextHopIPRouteNextHopIPUnicastIP JSON') + raise ValueError( + 'Required property \'address\' not present in RouteNextHopPatchRouteNextHopIPRouteNextHopIPUnicastIP JSON' + ) return cls(**args) @classmethod @@ -159582,7 +162817,9 @@ def __ne__(self, other: 'RouteNextHopPatchRouteNextHopIPRouteNextHopIPUnicastIP' return not self == other -class RouteNextHopPatchVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref(RouteNextHopPatchVPNGatewayConnectionIdentity): +class RouteNextHopPatchVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref( + RouteNextHopPatchVPNGatewayConnectionIdentity +): """ RouteNextHopPatchVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref. @@ -159602,13 +162839,17 @@ def __init__( self.href = href @classmethod - def from_dict(cls, _dict: Dict) -> 'RouteNextHopPatchVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref': + def from_dict( + cls, _dict: Dict + ) -> 'RouteNextHopPatchVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref': """Initialize a RouteNextHopPatchVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref object from a json dictionary.""" args = {} if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in RouteNextHopPatchVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref JSON') + raise ValueError( + 'Required property \'href\' not present in RouteNextHopPatchVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref JSON' + ) return cls(**args) @classmethod @@ -159642,7 +162883,9 @@ def __ne__(self, other: 'RouteNextHopPatchVPNGatewayConnectionIdentityVPNGateway return not self == other -class RouteNextHopPatchVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityById(RouteNextHopPatchVPNGatewayConnectionIdentity): +class RouteNextHopPatchVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityById( + RouteNextHopPatchVPNGatewayConnectionIdentity +): """ RouteNextHopPatchVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityById. @@ -159668,7 +162911,9 @@ def from_dict(cls, _dict: Dict) -> 'RouteNextHopPatchVPNGatewayConnectionIdentit if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in RouteNextHopPatchVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityById JSON') + raise ValueError( + 'Required property \'id\' not present in RouteNextHopPatchVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityById JSON' + ) return cls(**args) @classmethod @@ -159734,7 +162979,9 @@ def from_dict(cls, _dict: Dict) -> 'RouteNextHopPrototypeRouteNextHopIPRouteNext if (address := _dict.get('address')) is not None: args['address'] = address else: - raise ValueError('Required property \'address\' not present in RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP JSON') + raise ValueError( + 'Required property \'address\' not present in RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP JSON' + ) return cls(**args) @classmethod @@ -159808,7 +163055,9 @@ def from_dict(cls, _dict: Dict) -> 'RouteNextHopPrototypeRouteNextHopIPRouteNext if (address := _dict.get('address')) is not None: args['address'] = address else: - raise ValueError('Required property \'address\' not present in RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP JSON') + raise ValueError( + 'Required property \'address\' not present in RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP JSON' + ) return cls(**args) @classmethod @@ -159842,7 +163091,9 @@ def __ne__(self, other: 'RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicas return not self == other -class RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref(RouteNextHopPrototypeVPNGatewayConnectionIdentity): +class RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref( + RouteNextHopPrototypeVPNGatewayConnectionIdentity +): """ RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref. @@ -159862,13 +163113,17 @@ def __init__( self.href = href @classmethod - def from_dict(cls, _dict: Dict) -> 'RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref': + def from_dict( + cls, _dict: Dict + ) -> 'RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref': """Initialize a RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref object from a json dictionary.""" args = {} if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref JSON') + raise ValueError( + 'Required property \'href\' not present in RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref JSON' + ) return cls(**args) @classmethod @@ -159891,18 +163146,24 @@ def __str__(self) -> str: """Return a `str` version of this RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref') -> bool: + def __eq__( + self, other: 'RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref' + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref') -> bool: + def __ne__( + self, other: 'RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref' + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other -class RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityById(RouteNextHopPrototypeVPNGatewayConnectionIdentity): +class RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityById( + RouteNextHopPrototypeVPNGatewayConnectionIdentity +): """ RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityById. @@ -159922,13 +163183,17 @@ def __init__( self.id = id @classmethod - def from_dict(cls, _dict: Dict) -> 'RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityById': + def from_dict( + cls, _dict: Dict + ) -> 'RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityById': """Initialize a RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityById object from a json dictionary.""" args = {} if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityById JSON') + raise ValueError( + 'Required property \'id\' not present in RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityById JSON' + ) return cls(**args) @classmethod @@ -159951,18 +163216,24 @@ def __str__(self) -> str: """Return a `str` version of this RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityById object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityById') -> bool: + def __eq__( + self, other: 'RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityById' + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityById') -> bool: + def __ne__( + self, other: 'RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityById' + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other -class SecurityGroupRuleRemotePatchSecurityGroupIdentitySecurityGroupIdentityByCRN(SecurityGroupRuleRemotePatchSecurityGroupIdentity): +class SecurityGroupRuleRemotePatchSecurityGroupIdentitySecurityGroupIdentityByCRN( + SecurityGroupRuleRemotePatchSecurityGroupIdentity +): """ SecurityGroupRuleRemotePatchSecurityGroupIdentitySecurityGroupIdentityByCRN. @@ -159988,7 +163259,9 @@ def from_dict(cls, _dict: Dict) -> 'SecurityGroupRuleRemotePatchSecurityGroupIde if (crn := _dict.get('crn')) is not None: args['crn'] = crn else: - raise ValueError('Required property \'crn\' not present in SecurityGroupRuleRemotePatchSecurityGroupIdentitySecurityGroupIdentityByCRN JSON') + raise ValueError( + 'Required property \'crn\' not present in SecurityGroupRuleRemotePatchSecurityGroupIdentitySecurityGroupIdentityByCRN JSON' + ) return cls(**args) @classmethod @@ -160022,7 +163295,9 @@ def __ne__(self, other: 'SecurityGroupRuleRemotePatchSecurityGroupIdentitySecuri return not self == other -class SecurityGroupRuleRemotePatchSecurityGroupIdentitySecurityGroupIdentityByHref(SecurityGroupRuleRemotePatchSecurityGroupIdentity): +class SecurityGroupRuleRemotePatchSecurityGroupIdentitySecurityGroupIdentityByHref( + SecurityGroupRuleRemotePatchSecurityGroupIdentity +): """ SecurityGroupRuleRemotePatchSecurityGroupIdentitySecurityGroupIdentityByHref. @@ -160048,7 +163323,9 @@ def from_dict(cls, _dict: Dict) -> 'SecurityGroupRuleRemotePatchSecurityGroupIde if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in SecurityGroupRuleRemotePatchSecurityGroupIdentitySecurityGroupIdentityByHref JSON') + raise ValueError( + 'Required property \'href\' not present in SecurityGroupRuleRemotePatchSecurityGroupIdentitySecurityGroupIdentityByHref JSON' + ) return cls(**args) @classmethod @@ -160082,7 +163359,9 @@ def __ne__(self, other: 'SecurityGroupRuleRemotePatchSecurityGroupIdentitySecuri return not self == other -class SecurityGroupRuleRemotePatchSecurityGroupIdentitySecurityGroupIdentityById(SecurityGroupRuleRemotePatchSecurityGroupIdentity): +class SecurityGroupRuleRemotePatchSecurityGroupIdentitySecurityGroupIdentityById( + SecurityGroupRuleRemotePatchSecurityGroupIdentity +): """ SecurityGroupRuleRemotePatchSecurityGroupIdentitySecurityGroupIdentityById. @@ -160108,7 +163387,9 @@ def from_dict(cls, _dict: Dict) -> 'SecurityGroupRuleRemotePatchSecurityGroupIde if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in SecurityGroupRuleRemotePatchSecurityGroupIdentitySecurityGroupIdentityById JSON') + raise ValueError( + 'Required property \'id\' not present in SecurityGroupRuleRemotePatchSecurityGroupIdentitySecurityGroupIdentityById JSON' + ) return cls(**args) @classmethod @@ -160142,7 +163423,9 @@ def __ne__(self, other: 'SecurityGroupRuleRemotePatchSecurityGroupIdentitySecuri return not self == other -class SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGroupIdentityByCRN(SecurityGroupRuleRemotePrototypeSecurityGroupIdentity): +class SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGroupIdentityByCRN( + SecurityGroupRuleRemotePrototypeSecurityGroupIdentity +): """ SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGroupIdentityByCRN. @@ -160162,13 +163445,17 @@ def __init__( self.crn = crn @classmethod - def from_dict(cls, _dict: Dict) -> 'SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGroupIdentityByCRN': + def from_dict( + cls, _dict: Dict + ) -> 'SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGroupIdentityByCRN': """Initialize a SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGroupIdentityByCRN object from a json dictionary.""" args = {} if (crn := _dict.get('crn')) is not None: args['crn'] = crn else: - raise ValueError('Required property \'crn\' not present in SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGroupIdentityByCRN JSON') + raise ValueError( + 'Required property \'crn\' not present in SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGroupIdentityByCRN JSON' + ) return cls(**args) @classmethod @@ -160202,7 +163489,9 @@ def __ne__(self, other: 'SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySe return not self == other -class SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGroupIdentityByHref(SecurityGroupRuleRemotePrototypeSecurityGroupIdentity): +class SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGroupIdentityByHref( + SecurityGroupRuleRemotePrototypeSecurityGroupIdentity +): """ SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGroupIdentityByHref. @@ -160222,13 +163511,17 @@ def __init__( self.href = href @classmethod - def from_dict(cls, _dict: Dict) -> 'SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGroupIdentityByHref': + def from_dict( + cls, _dict: Dict + ) -> 'SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGroupIdentityByHref': """Initialize a SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGroupIdentityByHref object from a json dictionary.""" args = {} if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGroupIdentityByHref JSON') + raise ValueError( + 'Required property \'href\' not present in SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGroupIdentityByHref JSON' + ) return cls(**args) @classmethod @@ -160262,7 +163555,9 @@ def __ne__(self, other: 'SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySe return not self == other -class SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGroupIdentityById(SecurityGroupRuleRemotePrototypeSecurityGroupIdentity): +class SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGroupIdentityById( + SecurityGroupRuleRemotePrototypeSecurityGroupIdentity +): """ SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGroupIdentityById. @@ -160288,7 +163583,9 @@ def from_dict(cls, _dict: Dict) -> 'SecurityGroupRuleRemotePrototypeSecurityGrou if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGroupIdentityById JSON') + raise ValueError( + 'Required property \'id\' not present in SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGroupIdentityById JSON' + ) return cls(**args) @classmethod @@ -160322,7 +163619,9 @@ def __ne__(self, other: 'SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySe return not self == other -class ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN(ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentity): +class ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN( + ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentity +): """ ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN. @@ -160342,13 +163641,17 @@ def __init__( self.crn = crn @classmethod - def from_dict(cls, _dict: Dict) -> 'ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN': + def from_dict( + cls, _dict: Dict + ) -> 'ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN': """Initialize a ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN object from a json dictionary.""" args = {} if (crn := _dict.get('crn')) is not None: args['crn'] = crn else: - raise ValueError('Required property \'crn\' not present in ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN JSON') + raise ValueError( + 'Required property \'crn\' not present in ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN JSON' + ) return cls(**args) @classmethod @@ -160371,18 +163674,26 @@ def __str__(self) -> str: """Return a `str` version of this ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN') -> bool: + def __eq__( + self, + other: 'ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN', + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN') -> bool: + def __ne__( + self, + other: 'ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN', + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other -class ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref(ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentity): +class ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref( + ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentity +): """ ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref. @@ -160402,13 +163713,17 @@ def __init__( self.href = href @classmethod - def from_dict(cls, _dict: Dict) -> 'ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref': + def from_dict( + cls, _dict: Dict + ) -> 'ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref': """Initialize a ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref object from a json dictionary.""" args = {} if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref JSON') + raise ValueError( + 'Required property \'href\' not present in ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref JSON' + ) return cls(**args) @classmethod @@ -160431,18 +163746,26 @@ def __str__(self) -> str: """Return a `str` version of this ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref') -> bool: + def __eq__( + self, + other: 'ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref', + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref') -> bool: + def __ne__( + self, + other: 'ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref', + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other -class ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById(ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentity): +class ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById( + ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentity +): """ ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById. @@ -160462,13 +163785,17 @@ def __init__( self.id = id @classmethod - def from_dict(cls, _dict: Dict) -> 'ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById': + def from_dict( + cls, _dict: Dict + ) -> 'ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById': """Initialize a ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById object from a json dictionary.""" args = {} if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById JSON') + raise ValueError( + 'Required property \'id\' not present in ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById JSON' + ) return cls(**args) @classmethod @@ -160491,18 +163818,26 @@ def __str__(self) -> str: """Return a `str` version of this ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById') -> bool: + def __eq__( + self, + other: 'ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById', + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById') -> bool: + def __ne__( + self, + other: 'ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById', + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other -class VPNGatewayConnectionPeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPeerAddressPatch(VPNGatewayConnectionPeerPatchVPNGatewayConnectionPolicyModePeerPatch): +class VPNGatewayConnectionPeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPeerAddressPatch( + VPNGatewayConnectionPeerPatchVPNGatewayConnectionPolicyModePeerPatch +): """ VPNGatewayConnectionPeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPeerAddressPatch. @@ -160525,7 +163860,9 @@ def __init__( self.address = address @classmethod - def from_dict(cls, _dict: Dict) -> 'VPNGatewayConnectionPeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPeerAddressPatch': + def from_dict( + cls, _dict: Dict + ) -> 'VPNGatewayConnectionPeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPeerAddressPatch': """Initialize a VPNGatewayConnectionPeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPeerAddressPatch object from a json dictionary.""" args = {} if (address := _dict.get('address')) is not None: @@ -160552,18 +163889,26 @@ def __str__(self) -> str: """Return a `str` version of this VPNGatewayConnectionPeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPeerAddressPatch object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'VPNGatewayConnectionPeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPeerAddressPatch') -> bool: + def __eq__( + self, + other: 'VPNGatewayConnectionPeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPeerAddressPatch', + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'VPNGatewayConnectionPeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPeerAddressPatch') -> bool: + def __ne__( + self, + other: 'VPNGatewayConnectionPeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPeerAddressPatch', + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other -class VPNGatewayConnectionPeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPeerFQDNPatch(VPNGatewayConnectionPeerPatchVPNGatewayConnectionPolicyModePeerPatch): +class VPNGatewayConnectionPeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPeerFQDNPatch( + VPNGatewayConnectionPeerPatchVPNGatewayConnectionPolicyModePeerPatch +): """ VPNGatewayConnectionPeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPeerFQDNPatch. @@ -160586,7 +163931,9 @@ def __init__( self.fqdn = fqdn @classmethod - def from_dict(cls, _dict: Dict) -> 'VPNGatewayConnectionPeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPeerFQDNPatch': + def from_dict( + cls, _dict: Dict + ) -> 'VPNGatewayConnectionPeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPeerFQDNPatch': """Initialize a VPNGatewayConnectionPeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPeerFQDNPatch object from a json dictionary.""" args = {} if (fqdn := _dict.get('fqdn')) is not None: @@ -160613,18 +163960,26 @@ def __str__(self) -> str: """Return a `str` version of this VPNGatewayConnectionPeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPeerFQDNPatch object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'VPNGatewayConnectionPeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPeerFQDNPatch') -> bool: + def __eq__( + self, + other: 'VPNGatewayConnectionPeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPeerFQDNPatch', + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'VPNGatewayConnectionPeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPeerFQDNPatch') -> bool: + def __ne__( + self, + other: 'VPNGatewayConnectionPeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPeerFQDNPatch', + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other -class VPNGatewayConnectionPeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionPeerAddressPatch(VPNGatewayConnectionPeerPatchVPNGatewayConnectionStaticRouteModePeerPatch): +class VPNGatewayConnectionPeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionPeerAddressPatch( + VPNGatewayConnectionPeerPatchVPNGatewayConnectionStaticRouteModePeerPatch +): """ VPNGatewayConnectionPeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionPeerAddressPatch. @@ -160647,7 +164002,9 @@ def __init__( self.address = address @classmethod - def from_dict(cls, _dict: Dict) -> 'VPNGatewayConnectionPeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionPeerAddressPatch': + def from_dict( + cls, _dict: Dict + ) -> 'VPNGatewayConnectionPeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionPeerAddressPatch': """Initialize a VPNGatewayConnectionPeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionPeerAddressPatch object from a json dictionary.""" args = {} if (address := _dict.get('address')) is not None: @@ -160674,18 +164031,26 @@ def __str__(self) -> str: """Return a `str` version of this VPNGatewayConnectionPeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionPeerAddressPatch object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'VPNGatewayConnectionPeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionPeerAddressPatch') -> bool: + def __eq__( + self, + other: 'VPNGatewayConnectionPeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionPeerAddressPatch', + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'VPNGatewayConnectionPeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionPeerAddressPatch') -> bool: + def __ne__( + self, + other: 'VPNGatewayConnectionPeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionPeerAddressPatch', + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other -class VPNGatewayConnectionPeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionPeerFQDNPatch(VPNGatewayConnectionPeerPatchVPNGatewayConnectionStaticRouteModePeerPatch): +class VPNGatewayConnectionPeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionPeerFQDNPatch( + VPNGatewayConnectionPeerPatchVPNGatewayConnectionStaticRouteModePeerPatch +): """ VPNGatewayConnectionPeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionPeerFQDNPatch. @@ -160708,7 +164073,9 @@ def __init__( self.fqdn = fqdn @classmethod - def from_dict(cls, _dict: Dict) -> 'VPNGatewayConnectionPeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionPeerFQDNPatch': + def from_dict( + cls, _dict: Dict + ) -> 'VPNGatewayConnectionPeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionPeerFQDNPatch': """Initialize a VPNGatewayConnectionPeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionPeerFQDNPatch object from a json dictionary.""" args = {} if (fqdn := _dict.get('fqdn')) is not None: @@ -160735,13 +164102,19 @@ def __str__(self) -> str: """Return a `str` version of this VPNGatewayConnectionPeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionPeerFQDNPatch object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'VPNGatewayConnectionPeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionPeerFQDNPatch') -> bool: + def __eq__( + self, + other: 'VPNGatewayConnectionPeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionPeerFQDNPatch', + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'VPNGatewayConnectionPeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionPeerFQDNPatch') -> bool: + def __ne__( + self, + other: 'VPNGatewayConnectionPeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionPeerFQDNPatch', + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other @@ -160907,31 +164280,45 @@ def from_dict(cls, _dict: Dict) -> 'VPNGatewayConnectionRouteModeVPNGatewayConne if (admin_state_up := _dict.get('admin_state_up')) is not None: args['admin_state_up'] = admin_state_up else: - raise ValueError('Required property \'admin_state_up\' not present in VPNGatewayConnectionRouteModeVPNGatewayConnectionStaticRouteMode JSON') + raise ValueError( + 'Required property \'admin_state_up\' not present in VPNGatewayConnectionRouteModeVPNGatewayConnectionStaticRouteMode JSON' + ) if (authentication_mode := _dict.get('authentication_mode')) is not None: args['authentication_mode'] = authentication_mode else: - raise ValueError('Required property \'authentication_mode\' not present in VPNGatewayConnectionRouteModeVPNGatewayConnectionStaticRouteMode JSON') + raise ValueError( + 'Required property \'authentication_mode\' not present in VPNGatewayConnectionRouteModeVPNGatewayConnectionStaticRouteMode JSON' + ) if (created_at := _dict.get('created_at')) is not None: args['created_at'] = string_to_datetime(created_at) else: - raise ValueError('Required property \'created_at\' not present in VPNGatewayConnectionRouteModeVPNGatewayConnectionStaticRouteMode JSON') + raise ValueError( + 'Required property \'created_at\' not present in VPNGatewayConnectionRouteModeVPNGatewayConnectionStaticRouteMode JSON' + ) if (dead_peer_detection := _dict.get('dead_peer_detection')) is not None: args['dead_peer_detection'] = VPNGatewayConnectionDPD.from_dict(dead_peer_detection) else: - raise ValueError('Required property \'dead_peer_detection\' not present in VPNGatewayConnectionRouteModeVPNGatewayConnectionStaticRouteMode JSON') + raise ValueError( + 'Required property \'dead_peer_detection\' not present in VPNGatewayConnectionRouteModeVPNGatewayConnectionStaticRouteMode JSON' + ) if (establish_mode := _dict.get('establish_mode')) is not None: args['establish_mode'] = establish_mode else: - raise ValueError('Required property \'establish_mode\' not present in VPNGatewayConnectionRouteModeVPNGatewayConnectionStaticRouteMode JSON') + raise ValueError( + 'Required property \'establish_mode\' not present in VPNGatewayConnectionRouteModeVPNGatewayConnectionStaticRouteMode JSON' + ) if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in VPNGatewayConnectionRouteModeVPNGatewayConnectionStaticRouteMode JSON') + raise ValueError( + 'Required property \'href\' not present in VPNGatewayConnectionRouteModeVPNGatewayConnectionStaticRouteMode JSON' + ) if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in VPNGatewayConnectionRouteModeVPNGatewayConnectionStaticRouteMode JSON') + raise ValueError( + 'Required property \'id\' not present in VPNGatewayConnectionRouteModeVPNGatewayConnectionStaticRouteMode JSON' + ) if (ike_policy := _dict.get('ike_policy')) is not None: args['ike_policy'] = IKEPolicyReference.from_dict(ike_policy) if (ipsec_policy := _dict.get('ipsec_policy')) is not None: @@ -160939,47 +164326,69 @@ def from_dict(cls, _dict: Dict) -> 'VPNGatewayConnectionRouteModeVPNGatewayConne if (mode := _dict.get('mode')) is not None: args['mode'] = mode else: - raise ValueError('Required property \'mode\' not present in VPNGatewayConnectionRouteModeVPNGatewayConnectionStaticRouteMode JSON') + raise ValueError( + 'Required property \'mode\' not present in VPNGatewayConnectionRouteModeVPNGatewayConnectionStaticRouteMode JSON' + ) if (name := _dict.get('name')) is not None: args['name'] = name else: - raise ValueError('Required property \'name\' not present in VPNGatewayConnectionRouteModeVPNGatewayConnectionStaticRouteMode JSON') + raise ValueError( + 'Required property \'name\' not present in VPNGatewayConnectionRouteModeVPNGatewayConnectionStaticRouteMode JSON' + ) if (psk := _dict.get('psk')) is not None: args['psk'] = psk else: - raise ValueError('Required property \'psk\' not present in VPNGatewayConnectionRouteModeVPNGatewayConnectionStaticRouteMode JSON') + raise ValueError( + 'Required property \'psk\' not present in VPNGatewayConnectionRouteModeVPNGatewayConnectionStaticRouteMode JSON' + ) if (resource_type := _dict.get('resource_type')) is not None: args['resource_type'] = resource_type else: - raise ValueError('Required property \'resource_type\' not present in VPNGatewayConnectionRouteModeVPNGatewayConnectionStaticRouteMode JSON') + raise ValueError( + 'Required property \'resource_type\' not present in VPNGatewayConnectionRouteModeVPNGatewayConnectionStaticRouteMode JSON' + ) if (status := _dict.get('status')) is not None: args['status'] = status else: - raise ValueError('Required property \'status\' not present in VPNGatewayConnectionRouteModeVPNGatewayConnectionStaticRouteMode JSON') + raise ValueError( + 'Required property \'status\' not present in VPNGatewayConnectionRouteModeVPNGatewayConnectionStaticRouteMode JSON' + ) if (status_reasons := _dict.get('status_reasons')) is not None: args['status_reasons'] = [VPNGatewayConnectionStatusReason.from_dict(v) for v in status_reasons] else: - raise ValueError('Required property \'status_reasons\' not present in VPNGatewayConnectionRouteModeVPNGatewayConnectionStaticRouteMode JSON') + raise ValueError( + 'Required property \'status_reasons\' not present in VPNGatewayConnectionRouteModeVPNGatewayConnectionStaticRouteMode JSON' + ) if (distribute_traffic := _dict.get('distribute_traffic')) is not None: args['distribute_traffic'] = distribute_traffic else: - raise ValueError('Required property \'distribute_traffic\' not present in VPNGatewayConnectionRouteModeVPNGatewayConnectionStaticRouteMode JSON') + raise ValueError( + 'Required property \'distribute_traffic\' not present in VPNGatewayConnectionRouteModeVPNGatewayConnectionStaticRouteMode JSON' + ) if (local := _dict.get('local')) is not None: args['local'] = VPNGatewayConnectionStaticRouteModeLocal.from_dict(local) else: - raise ValueError('Required property \'local\' not present in VPNGatewayConnectionRouteModeVPNGatewayConnectionStaticRouteMode JSON') + raise ValueError( + 'Required property \'local\' not present in VPNGatewayConnectionRouteModeVPNGatewayConnectionStaticRouteMode JSON' + ) if (peer := _dict.get('peer')) is not None: args['peer'] = peer else: - raise ValueError('Required property \'peer\' not present in VPNGatewayConnectionRouteModeVPNGatewayConnectionStaticRouteMode JSON') + raise ValueError( + 'Required property \'peer\' not present in VPNGatewayConnectionRouteModeVPNGatewayConnectionStaticRouteMode JSON' + ) if (routing_protocol := _dict.get('routing_protocol')) is not None: args['routing_protocol'] = routing_protocol else: - raise ValueError('Required property \'routing_protocol\' not present in VPNGatewayConnectionRouteModeVPNGatewayConnectionStaticRouteMode JSON') + raise ValueError( + 'Required property \'routing_protocol\' not present in VPNGatewayConnectionRouteModeVPNGatewayConnectionStaticRouteMode JSON' + ) if (tunnels := _dict.get('tunnels')) is not None: args['tunnels'] = [VPNGatewayConnectionStaticRouteModeTunnel.from_dict(v) for v in tunnels] else: - raise ValueError('Required property \'tunnels\' not present in VPNGatewayConnectionRouteModeVPNGatewayConnectionStaticRouteMode JSON') + raise ValueError( + 'Required property \'tunnels\' not present in VPNGatewayConnectionRouteModeVPNGatewayConnectionStaticRouteMode JSON' + ) return cls(**args) @classmethod @@ -161087,7 +164496,6 @@ class AuthenticationModeEnum(str, Enum): PSK = 'psk' - class EstablishModeEnum(str, Enum): """ The establish mode of the VPN gateway connection: @@ -161105,7 +164513,6 @@ class EstablishModeEnum(str, Enum): BIDIRECTIONAL = 'bidirectional' PEER_ONLY = 'peer_only' - class ModeEnum(str, Enum): """ The mode of the VPN gateway. @@ -161117,7 +164524,6 @@ class ModeEnum(str, Enum): POLICY = 'policy' ROUTE = 'route' - class ResourceTypeEnum(str, Enum): """ The resource type. @@ -161125,7 +164531,6 @@ class ResourceTypeEnum(str, Enum): VPN_GATEWAY_CONNECTION = 'vpn_gateway_connection' - class StatusEnum(str, Enum): """ The status of a VPN gateway connection. @@ -161134,7 +164539,6 @@ class StatusEnum(str, Enum): DOWN = 'down' UP = 'up' - class RoutingProtocolEnum(str, Enum): """ Routing protocols are disabled for this VPN gateway connection. @@ -161143,8 +164547,9 @@ class RoutingProtocolEnum(str, Enum): NONE = 'none' - -class VirtualNetworkInterfaceIPPrototypeReservedIPIdentityVirtualNetworkInterfaceIPsContextByHref(VirtualNetworkInterfaceIPPrototypeReservedIPIdentityVirtualNetworkInterfaceIPsContext): +class VirtualNetworkInterfaceIPPrototypeReservedIPIdentityVirtualNetworkInterfaceIPsContextByHref( + VirtualNetworkInterfaceIPPrototypeReservedIPIdentityVirtualNetworkInterfaceIPsContext +): """ VirtualNetworkInterfaceIPPrototypeReservedIPIdentityVirtualNetworkInterfaceIPsContextByHref. @@ -161164,13 +164569,17 @@ def __init__( self.href = href @classmethod - def from_dict(cls, _dict: Dict) -> 'VirtualNetworkInterfaceIPPrototypeReservedIPIdentityVirtualNetworkInterfaceIPsContextByHref': + def from_dict( + cls, _dict: Dict + ) -> 'VirtualNetworkInterfaceIPPrototypeReservedIPIdentityVirtualNetworkInterfaceIPsContextByHref': """Initialize a VirtualNetworkInterfaceIPPrototypeReservedIPIdentityVirtualNetworkInterfaceIPsContextByHref object from a json dictionary.""" args = {} if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in VirtualNetworkInterfaceIPPrototypeReservedIPIdentityVirtualNetworkInterfaceIPsContextByHref JSON') + raise ValueError( + 'Required property \'href\' not present in VirtualNetworkInterfaceIPPrototypeReservedIPIdentityVirtualNetworkInterfaceIPsContextByHref JSON' + ) return cls(**args) @classmethod @@ -161193,18 +164602,24 @@ def __str__(self) -> str: """Return a `str` version of this VirtualNetworkInterfaceIPPrototypeReservedIPIdentityVirtualNetworkInterfaceIPsContextByHref object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'VirtualNetworkInterfaceIPPrototypeReservedIPIdentityVirtualNetworkInterfaceIPsContextByHref') -> bool: + def __eq__( + self, other: 'VirtualNetworkInterfaceIPPrototypeReservedIPIdentityVirtualNetworkInterfaceIPsContextByHref' + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'VirtualNetworkInterfaceIPPrototypeReservedIPIdentityVirtualNetworkInterfaceIPsContextByHref') -> bool: + def __ne__( + self, other: 'VirtualNetworkInterfaceIPPrototypeReservedIPIdentityVirtualNetworkInterfaceIPsContextByHref' + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other -class VirtualNetworkInterfaceIPPrototypeReservedIPIdentityVirtualNetworkInterfaceIPsContextById(VirtualNetworkInterfaceIPPrototypeReservedIPIdentityVirtualNetworkInterfaceIPsContext): +class VirtualNetworkInterfaceIPPrototypeReservedIPIdentityVirtualNetworkInterfaceIPsContextById( + VirtualNetworkInterfaceIPPrototypeReservedIPIdentityVirtualNetworkInterfaceIPsContext +): """ VirtualNetworkInterfaceIPPrototypeReservedIPIdentityVirtualNetworkInterfaceIPsContextById. @@ -161224,13 +164639,17 @@ def __init__( self.id = id @classmethod - def from_dict(cls, _dict: Dict) -> 'VirtualNetworkInterfaceIPPrototypeReservedIPIdentityVirtualNetworkInterfaceIPsContextById': + def from_dict( + cls, _dict: Dict + ) -> 'VirtualNetworkInterfaceIPPrototypeReservedIPIdentityVirtualNetworkInterfaceIPsContextById': """Initialize a VirtualNetworkInterfaceIPPrototypeReservedIPIdentityVirtualNetworkInterfaceIPsContextById object from a json dictionary.""" args = {} if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in VirtualNetworkInterfaceIPPrototypeReservedIPIdentityVirtualNetworkInterfaceIPsContextById JSON') + raise ValueError( + 'Required property \'id\' not present in VirtualNetworkInterfaceIPPrototypeReservedIPIdentityVirtualNetworkInterfaceIPsContextById JSON' + ) return cls(**args) @classmethod @@ -161253,18 +164672,24 @@ def __str__(self) -> str: """Return a `str` version of this VirtualNetworkInterfaceIPPrototypeReservedIPIdentityVirtualNetworkInterfaceIPsContextById object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'VirtualNetworkInterfaceIPPrototypeReservedIPIdentityVirtualNetworkInterfaceIPsContextById') -> bool: + def __eq__( + self, other: 'VirtualNetworkInterfaceIPPrototypeReservedIPIdentityVirtualNetworkInterfaceIPsContextById' + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'VirtualNetworkInterfaceIPPrototypeReservedIPIdentityVirtualNetworkInterfaceIPsContextById') -> bool: + def __ne__( + self, other: 'VirtualNetworkInterfaceIPPrototypeReservedIPIdentityVirtualNetworkInterfaceIPsContextById' + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other -class VirtualNetworkInterfacePrimaryIPPrototypeReservedIPIdentityVirtualNetworkInterfacePrimaryIPContextByHref(VirtualNetworkInterfacePrimaryIPPrototypeReservedIPIdentityVirtualNetworkInterfacePrimaryIPContext): +class VirtualNetworkInterfacePrimaryIPPrototypeReservedIPIdentityVirtualNetworkInterfacePrimaryIPContextByHref( + VirtualNetworkInterfacePrimaryIPPrototypeReservedIPIdentityVirtualNetworkInterfacePrimaryIPContext +): """ VirtualNetworkInterfacePrimaryIPPrototypeReservedIPIdentityVirtualNetworkInterfacePrimaryIPContextByHref. @@ -161284,13 +164709,17 @@ def __init__( self.href = href @classmethod - def from_dict(cls, _dict: Dict) -> 'VirtualNetworkInterfacePrimaryIPPrototypeReservedIPIdentityVirtualNetworkInterfacePrimaryIPContextByHref': + def from_dict( + cls, _dict: Dict + ) -> 'VirtualNetworkInterfacePrimaryIPPrototypeReservedIPIdentityVirtualNetworkInterfacePrimaryIPContextByHref': """Initialize a VirtualNetworkInterfacePrimaryIPPrototypeReservedIPIdentityVirtualNetworkInterfacePrimaryIPContextByHref object from a json dictionary.""" args = {} if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in VirtualNetworkInterfacePrimaryIPPrototypeReservedIPIdentityVirtualNetworkInterfacePrimaryIPContextByHref JSON') + raise ValueError( + 'Required property \'href\' not present in VirtualNetworkInterfacePrimaryIPPrototypeReservedIPIdentityVirtualNetworkInterfacePrimaryIPContextByHref JSON' + ) return cls(**args) @classmethod @@ -161313,18 +164742,26 @@ def __str__(self) -> str: """Return a `str` version of this VirtualNetworkInterfacePrimaryIPPrototypeReservedIPIdentityVirtualNetworkInterfacePrimaryIPContextByHref object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'VirtualNetworkInterfacePrimaryIPPrototypeReservedIPIdentityVirtualNetworkInterfacePrimaryIPContextByHref') -> bool: + def __eq__( + self, + other: 'VirtualNetworkInterfacePrimaryIPPrototypeReservedIPIdentityVirtualNetworkInterfacePrimaryIPContextByHref', + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'VirtualNetworkInterfacePrimaryIPPrototypeReservedIPIdentityVirtualNetworkInterfacePrimaryIPContextByHref') -> bool: + def __ne__( + self, + other: 'VirtualNetworkInterfacePrimaryIPPrototypeReservedIPIdentityVirtualNetworkInterfacePrimaryIPContextByHref', + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other -class VirtualNetworkInterfacePrimaryIPPrototypeReservedIPIdentityVirtualNetworkInterfacePrimaryIPContextById(VirtualNetworkInterfacePrimaryIPPrototypeReservedIPIdentityVirtualNetworkInterfacePrimaryIPContext): +class VirtualNetworkInterfacePrimaryIPPrototypeReservedIPIdentityVirtualNetworkInterfacePrimaryIPContextById( + VirtualNetworkInterfacePrimaryIPPrototypeReservedIPIdentityVirtualNetworkInterfacePrimaryIPContext +): """ VirtualNetworkInterfacePrimaryIPPrototypeReservedIPIdentityVirtualNetworkInterfacePrimaryIPContextById. @@ -161344,13 +164781,17 @@ def __init__( self.id = id @classmethod - def from_dict(cls, _dict: Dict) -> 'VirtualNetworkInterfacePrimaryIPPrototypeReservedIPIdentityVirtualNetworkInterfacePrimaryIPContextById': + def from_dict( + cls, _dict: Dict + ) -> 'VirtualNetworkInterfacePrimaryIPPrototypeReservedIPIdentityVirtualNetworkInterfacePrimaryIPContextById': """Initialize a VirtualNetworkInterfacePrimaryIPPrototypeReservedIPIdentityVirtualNetworkInterfacePrimaryIPContextById object from a json dictionary.""" args = {} if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in VirtualNetworkInterfacePrimaryIPPrototypeReservedIPIdentityVirtualNetworkInterfacePrimaryIPContextById JSON') + raise ValueError( + 'Required property \'id\' not present in VirtualNetworkInterfacePrimaryIPPrototypeReservedIPIdentityVirtualNetworkInterfacePrimaryIPContextById JSON' + ) return cls(**args) @classmethod @@ -161373,13 +164814,19 @@ def __str__(self) -> str: """Return a `str` version of this VirtualNetworkInterfacePrimaryIPPrototypeReservedIPIdentityVirtualNetworkInterfacePrimaryIPContextById object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'VirtualNetworkInterfacePrimaryIPPrototypeReservedIPIdentityVirtualNetworkInterfacePrimaryIPContextById') -> bool: + def __eq__( + self, + other: 'VirtualNetworkInterfacePrimaryIPPrototypeReservedIPIdentityVirtualNetworkInterfacePrimaryIPContextById', + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'VirtualNetworkInterfacePrimaryIPPrototypeReservedIPIdentityVirtualNetworkInterfacePrimaryIPContextById') -> bool: + def __ne__( + self, + other: 'VirtualNetworkInterfacePrimaryIPPrototypeReservedIPIdentityVirtualNetworkInterfacePrimaryIPContextById', + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other @@ -161410,7 +164857,9 @@ def from_dict(cls, _dict: Dict) -> 'VolumeAttachmentPrototypeVolumeVolumeIdentit if (crn := _dict.get('crn')) is not None: args['crn'] = crn else: - raise ValueError('Required property \'crn\' not present in VolumeAttachmentPrototypeVolumeVolumeIdentityVolumeIdentityByCRN JSON') + raise ValueError( + 'Required property \'crn\' not present in VolumeAttachmentPrototypeVolumeVolumeIdentityVolumeIdentityByCRN JSON' + ) return cls(**args) @classmethod @@ -161470,7 +164919,9 @@ def from_dict(cls, _dict: Dict) -> 'VolumeAttachmentPrototypeVolumeVolumeIdentit if (href := _dict.get('href')) is not None: args['href'] = href else: - raise ValueError('Required property \'href\' not present in VolumeAttachmentPrototypeVolumeVolumeIdentityVolumeIdentityByHref JSON') + raise ValueError( + 'Required property \'href\' not present in VolumeAttachmentPrototypeVolumeVolumeIdentityVolumeIdentityByHref JSON' + ) return cls(**args) @classmethod @@ -161530,7 +164981,9 @@ def from_dict(cls, _dict: Dict) -> 'VolumeAttachmentPrototypeVolumeVolumeIdentit if (id := _dict.get('id')) is not None: args['id'] = id else: - raise ValueError('Required property \'id\' not present in VolumeAttachmentPrototypeVolumeVolumeIdentityVolumeIdentityById JSON') + raise ValueError( + 'Required property \'id\' not present in VolumeAttachmentPrototypeVolumeVolumeIdentityVolumeIdentityById JSON' + ) return cls(**args) @classmethod @@ -161564,7 +165017,9 @@ def __ne__(self, other: 'VolumeAttachmentPrototypeVolumeVolumeIdentityVolumeIden return not self == other -class VolumeAttachmentPrototypeVolumeVolumePrototypeInstanceContextVolumePrototypeInstanceContextVolumeByCapacity(VolumeAttachmentPrototypeVolumeVolumePrototypeInstanceContext): +class VolumeAttachmentPrototypeVolumeVolumePrototypeInstanceContextVolumePrototypeInstanceContextVolumeByCapacity( + VolumeAttachmentPrototypeVolumeVolumePrototypeInstanceContext +): """ VolumeAttachmentPrototypeVolumeVolumePrototypeInstanceContextVolumePrototypeInstanceContextVolumeByCapacity. @@ -161636,7 +165091,9 @@ def __init__( self.encryption_key = encryption_key @classmethod - def from_dict(cls, _dict: Dict) -> 'VolumeAttachmentPrototypeVolumeVolumePrototypeInstanceContextVolumePrototypeInstanceContextVolumeByCapacity': + def from_dict( + cls, _dict: Dict + ) -> 'VolumeAttachmentPrototypeVolumeVolumePrototypeInstanceContextVolumePrototypeInstanceContextVolumeByCapacity': """Initialize a VolumeAttachmentPrototypeVolumeVolumePrototypeInstanceContextVolumePrototypeInstanceContextVolumeByCapacity object from a json dictionary.""" args = {} if (iops := _dict.get('iops')) is not None: @@ -161646,7 +165103,9 @@ def from_dict(cls, _dict: Dict) -> 'VolumeAttachmentPrototypeVolumeVolumePrototy if (profile := _dict.get('profile')) is not None: args['profile'] = profile else: - raise ValueError('Required property \'profile\' not present in VolumeAttachmentPrototypeVolumeVolumePrototypeInstanceContextVolumePrototypeInstanceContextVolumeByCapacity JSON') + raise ValueError( + 'Required property \'profile\' not present in VolumeAttachmentPrototypeVolumeVolumePrototypeInstanceContextVolumePrototypeInstanceContextVolumeByCapacity JSON' + ) if (resource_group := _dict.get('resource_group')) is not None: args['resource_group'] = resource_group if (user_tags := _dict.get('user_tags')) is not None: @@ -161654,7 +165113,9 @@ def from_dict(cls, _dict: Dict) -> 'VolumeAttachmentPrototypeVolumeVolumePrototy if (capacity := _dict.get('capacity')) is not None: args['capacity'] = capacity else: - raise ValueError('Required property \'capacity\' not present in VolumeAttachmentPrototypeVolumeVolumePrototypeInstanceContextVolumePrototypeInstanceContextVolumeByCapacity JSON') + raise ValueError( + 'Required property \'capacity\' not present in VolumeAttachmentPrototypeVolumeVolumePrototypeInstanceContextVolumePrototypeInstanceContextVolumeByCapacity JSON' + ) if (encryption_key := _dict.get('encryption_key')) is not None: args['encryption_key'] = encryption_key return cls(**args) @@ -161700,18 +165161,26 @@ def __str__(self) -> str: """Return a `str` version of this VolumeAttachmentPrototypeVolumeVolumePrototypeInstanceContextVolumePrototypeInstanceContextVolumeByCapacity object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'VolumeAttachmentPrototypeVolumeVolumePrototypeInstanceContextVolumePrototypeInstanceContextVolumeByCapacity') -> bool: + def __eq__( + self, + other: 'VolumeAttachmentPrototypeVolumeVolumePrototypeInstanceContextVolumePrototypeInstanceContextVolumeByCapacity', + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'VolumeAttachmentPrototypeVolumeVolumePrototypeInstanceContextVolumePrototypeInstanceContextVolumeByCapacity') -> bool: + def __ne__( + self, + other: 'VolumeAttachmentPrototypeVolumeVolumePrototypeInstanceContextVolumePrototypeInstanceContextVolumeByCapacity', + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other -class VolumeAttachmentPrototypeVolumeVolumePrototypeInstanceContextVolumePrototypeInstanceContextVolumeBySourceSnapshot(VolumeAttachmentPrototypeVolumeVolumePrototypeInstanceContext): +class VolumeAttachmentPrototypeVolumeVolumePrototypeInstanceContextVolumePrototypeInstanceContextVolumeBySourceSnapshot( + VolumeAttachmentPrototypeVolumeVolumePrototypeInstanceContext +): """ VolumeAttachmentPrototypeVolumeVolumePrototypeInstanceContextVolumePrototypeInstanceContextVolumeBySourceSnapshot. @@ -161798,7 +165267,9 @@ def __init__( self.source_snapshot = source_snapshot @classmethod - def from_dict(cls, _dict: Dict) -> 'VolumeAttachmentPrototypeVolumeVolumePrototypeInstanceContextVolumePrototypeInstanceContextVolumeBySourceSnapshot': + def from_dict( + cls, _dict: Dict + ) -> 'VolumeAttachmentPrototypeVolumeVolumePrototypeInstanceContextVolumePrototypeInstanceContextVolumeBySourceSnapshot': """Initialize a VolumeAttachmentPrototypeVolumeVolumePrototypeInstanceContextVolumePrototypeInstanceContextVolumeBySourceSnapshot object from a json dictionary.""" args = {} if (iops := _dict.get('iops')) is not None: @@ -161808,7 +165279,9 @@ def from_dict(cls, _dict: Dict) -> 'VolumeAttachmentPrototypeVolumeVolumePrototy if (profile := _dict.get('profile')) is not None: args['profile'] = profile else: - raise ValueError('Required property \'profile\' not present in VolumeAttachmentPrototypeVolumeVolumePrototypeInstanceContextVolumePrototypeInstanceContextVolumeBySourceSnapshot JSON') + raise ValueError( + 'Required property \'profile\' not present in VolumeAttachmentPrototypeVolumeVolumePrototypeInstanceContextVolumePrototypeInstanceContextVolumeBySourceSnapshot JSON' + ) if (resource_group := _dict.get('resource_group')) is not None: args['resource_group'] = resource_group if (user_tags := _dict.get('user_tags')) is not None: @@ -161820,7 +165293,9 @@ def from_dict(cls, _dict: Dict) -> 'VolumeAttachmentPrototypeVolumeVolumePrototy if (source_snapshot := _dict.get('source_snapshot')) is not None: args['source_snapshot'] = source_snapshot else: - raise ValueError('Required property \'source_snapshot\' not present in VolumeAttachmentPrototypeVolumeVolumePrototypeInstanceContextVolumePrototypeInstanceContextVolumeBySourceSnapshot JSON') + raise ValueError( + 'Required property \'source_snapshot\' not present in VolumeAttachmentPrototypeVolumeVolumePrototypeInstanceContextVolumePrototypeInstanceContextVolumeBySourceSnapshot JSON' + ) return cls(**args) @classmethod @@ -161869,18 +165344,26 @@ def __str__(self) -> str: """Return a `str` version of this VolumeAttachmentPrototypeVolumeVolumePrototypeInstanceContextVolumePrototypeInstanceContextVolumeBySourceSnapshot object.""" return json.dumps(self.to_dict(), indent=2) - def __eq__(self, other: 'VolumeAttachmentPrototypeVolumeVolumePrototypeInstanceContextVolumePrototypeInstanceContextVolumeBySourceSnapshot') -> bool: + def __eq__( + self, + other: 'VolumeAttachmentPrototypeVolumeVolumePrototypeInstanceContextVolumePrototypeInstanceContextVolumeBySourceSnapshot', + ) -> bool: """Return `true` when self and other are equal, false otherwise.""" if not isinstance(other, self.__class__): return False return self.__dict__ == other.__dict__ - def __ne__(self, other: 'VolumeAttachmentPrototypeVolumeVolumePrototypeInstanceContextVolumePrototypeInstanceContextVolumeBySourceSnapshot') -> bool: + def __ne__( + self, + other: 'VolumeAttachmentPrototypeVolumeVolumePrototypeInstanceContextVolumePrototypeInstanceContextVolumeBySourceSnapshot', + ) -> bool: """Return `true` when self and other are not equal, false otherwise.""" return not self == other -class InstanceGroupManagerActionPrototypeScheduledActionPrototypeByCronSpecByGroup(InstanceGroupManagerActionPrototypeScheduledActionPrototypeByCronSpec): +class InstanceGroupManagerActionPrototypeScheduledActionPrototypeByCronSpecByGroup( + InstanceGroupManagerActionPrototypeScheduledActionPrototypeByCronSpec +): """ InstanceGroupManagerActionPrototypeScheduledActionPrototypeByCronSpecByGroup. @@ -161928,7 +165411,9 @@ def from_dict(cls, _dict: Dict) -> 'InstanceGroupManagerActionPrototypeScheduled if (group := _dict.get('group')) is not None: args['group'] = InstanceGroupManagerScheduledActionGroupPrototype.from_dict(group) else: - raise ValueError('Required property \'group\' not present in InstanceGroupManagerActionPrototypeScheduledActionPrototypeByCronSpecByGroup JSON') + raise ValueError( + 'Required property \'group\' not present in InstanceGroupManagerActionPrototypeScheduledActionPrototypeByCronSpecByGroup JSON' + ) return cls(**args) @classmethod @@ -161969,7 +165454,9 @@ def __ne__(self, other: 'InstanceGroupManagerActionPrototypeScheduledActionProto return not self == other -class InstanceGroupManagerActionPrototypeScheduledActionPrototypeByCronSpecByManager(InstanceGroupManagerActionPrototypeScheduledActionPrototypeByCronSpec): +class InstanceGroupManagerActionPrototypeScheduledActionPrototypeByCronSpecByManager( + InstanceGroupManagerActionPrototypeScheduledActionPrototypeByCronSpec +): """ InstanceGroupManagerActionPrototypeScheduledActionPrototypeByCronSpecByManager. @@ -162017,7 +165504,9 @@ def from_dict(cls, _dict: Dict) -> 'InstanceGroupManagerActionPrototypeScheduled if (manager := _dict.get('manager')) is not None: args['manager'] = manager else: - raise ValueError('Required property \'manager\' not present in InstanceGroupManagerActionPrototypeScheduledActionPrototypeByCronSpecByManager JSON') + raise ValueError( + 'Required property \'manager\' not present in InstanceGroupManagerActionPrototypeScheduledActionPrototypeByCronSpecByManager JSON' + ) return cls(**args) @classmethod @@ -162058,7 +165547,9 @@ def __ne__(self, other: 'InstanceGroupManagerActionPrototypeScheduledActionProto return not self == other -class InstanceGroupManagerActionPrototypeScheduledActionPrototypeByRunAtByGroup(InstanceGroupManagerActionPrototypeScheduledActionPrototypeByRunAt): +class InstanceGroupManagerActionPrototypeScheduledActionPrototypeByRunAtByGroup( + InstanceGroupManagerActionPrototypeScheduledActionPrototypeByRunAt +): """ InstanceGroupManagerActionPrototypeScheduledActionPrototypeByRunAtByGroup. @@ -162104,7 +165595,9 @@ def from_dict(cls, _dict: Dict) -> 'InstanceGroupManagerActionPrototypeScheduled if (group := _dict.get('group')) is not None: args['group'] = InstanceGroupManagerScheduledActionGroupPrototype.from_dict(group) else: - raise ValueError('Required property \'group\' not present in InstanceGroupManagerActionPrototypeScheduledActionPrototypeByRunAtByGroup JSON') + raise ValueError( + 'Required property \'group\' not present in InstanceGroupManagerActionPrototypeScheduledActionPrototypeByRunAtByGroup JSON' + ) return cls(**args) @classmethod @@ -162145,7 +165638,9 @@ def __ne__(self, other: 'InstanceGroupManagerActionPrototypeScheduledActionProto return not self == other -class InstanceGroupManagerActionPrototypeScheduledActionPrototypeByRunAtByManager(InstanceGroupManagerActionPrototypeScheduledActionPrototypeByRunAt): +class InstanceGroupManagerActionPrototypeScheduledActionPrototypeByRunAtByManager( + InstanceGroupManagerActionPrototypeScheduledActionPrototypeByRunAt +): """ InstanceGroupManagerActionPrototypeScheduledActionPrototypeByRunAtByManager. @@ -162191,7 +165686,9 @@ def from_dict(cls, _dict: Dict) -> 'InstanceGroupManagerActionPrototypeScheduled if (manager := _dict.get('manager')) is not None: args['manager'] = manager else: - raise ValueError('Required property \'manager\' not present in InstanceGroupManagerActionPrototypeScheduledActionPrototypeByRunAtByManager JSON') + raise ValueError( + 'Required property \'manager\' not present in InstanceGroupManagerActionPrototypeScheduledActionPrototypeByRunAtByManager JSON' + ) return cls(**args) @classmethod @@ -162231,6 +165728,7 @@ def __ne__(self, other: 'InstanceGroupManagerActionPrototypeScheduledActionProto """Return `true` when self and other are not equal, false otherwise.""" return not self == other + ############################################################################## # Pagers ############################################################################## diff --git a/pyproject.toml b/pyproject.toml index ea45b70..2d29cb1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "ibm-vpc" -version = "0.0.1" +version = "0.25.0" authors = [ { name="IBM", email="devxsdk@us.ibm.com" } ] diff --git a/test/integration/conftest.py b/test/integration/conftest.py index 264853e..5a23700 100644 --- a/test/integration/conftest.py +++ b/test/integration/conftest.py @@ -21,26 +21,28 @@ # Read config file configFile = 'vpc.env' + def loadConfigFile(): if os.path.exists(configFile): os.environ['IBM_CREDENTIALS_FILE'] = configFile else: pytest.skip('External configuration not available, skipping...') + @pytest.fixture(scope="session") def createGen2Service(): loadConfigFile() service = VpcV1.new_instance() - headers = { - 'Accept': 'application/json' - } + headers = {'Accept': 'application/json'} service.set_default_headers(headers) print('Setup complete.') return service + def pytest_addoption(parser): parser.addoption("--env", action="store", help="Run test on dev environment") + @pytest.fixture() def env(request): val = request.config.getoption("--env") @@ -48,4 +50,3 @@ def env(request): print('Test on dev env -', val) return True return False - diff --git a/test/integration/test_gen2.py b/test/integration/test_gen2.py index 26501ff..cdb81c3 100644 --- a/test/integration/test_gen2.py +++ b/test/integration/test_gen2.py @@ -25,7 +25,7 @@ store = {} -class TestGeography(): +class TestGeography: def test_regions(self, createGen2Service, env): regions = list_regions(createGen2Service) assert regions.status_code == 200 @@ -45,12 +45,11 @@ def test_zones(self, createGen2Service, env): store['zone'] = zones.get_result()['zones'][0]['name'] def test_zone(self, createGen2Service): - zone = get_region_zone( - createGen2Service, store['region'], store['zone']) + zone = get_region_zone(createGen2Service, store['region'], store['zone']) assert zone.status_code == 200 -class TestFloatingIPs(): +class TestFloatingIPs: def test_create_floating_ip(self, createGen2Service): fip = create_floating_ip(createGen2Service) assertCreateResponse(fip) @@ -69,7 +68,7 @@ def test_update_floating_ip(self, createGen2Service): assertGetPatchResponse(fip) -class TestImages(): +class TestImages: def test_create_images(self, createGen2Service): image = create_image(createGen2Service) assertCreateResponse(image) @@ -111,21 +110,19 @@ def test_delete_image_export_job(self, createGen2Service): def test_list_operating_systems(self, createGen2Service): oss = list_operating_systems(createGen2Service) assertListResponse(oss, 'operating_systems') - store['operating_system_name'] = oss.get_result()[ - 'operating_systems'][0]['name'] + store['operating_system_name'] = oss.get_result()['operating_systems'][0]['name'] def test_get_operating_system(self, createGen2Service): - os = get_operating_system( - createGen2Service, store['operating_system_name']).get_result() + os = get_operating_system(createGen2Service, store['operating_system_name']).get_result() assert os['name'] == store['operating_system_name'] -class TestSSHKeys(): +class TestSSHKeys: def test_create_ssh_keys(self, createGen2Service): key = create_key(createGen2Service) assertCreateResponse(key) store['created_key'] = key.get_result()['id'] - + def test_list_ssh_keys(self, createGen2Service): keys = list_keys(createGen2Service) assertListResponse(keys, 'keys') @@ -139,7 +136,7 @@ def test_update_key(self, createGen2Service): assertGetPatchResponse(key) -class TestNetworkACL(): +class TestNetworkACL: def test_list_nacl(self, createGen2Service): acls = list_network_acls(createGen2Service) assertListResponse(acls, 'network_acls') @@ -155,29 +152,24 @@ def test_create_nacl(self, createGen2Service): store['created_nacl_id'] = acl.get_result()['id'] def test_list_nacl_rules(self, createGen2Service): - acl_rules = list_network_acl_rules( - createGen2Service, store['created_nacl_id']) + acl_rules = list_network_acl_rules(createGen2Service, store['created_nacl_id']) assertListResponse(acl_rules, 'rules') def test_create_nacl_rules(self, createGen2Service): - acl_rule = create_network_acl_rule( - createGen2Service, store['created_nacl_id']) + acl_rule = create_network_acl_rule(createGen2Service, store['created_nacl_id']) assertCreateResponse(acl_rule) store['created_nacl_rule_id'] = acl_rule.get_result()['id'] def test_get_nacl_rules(self, createGen2Service): - acl_rules = get_network_acl_rule( - createGen2Service, store['created_nacl_id'], store['created_nacl_rule_id']) + acl_rules = get_network_acl_rule(createGen2Service, store['created_nacl_id'], store['created_nacl_rule_id']) assertGetPatchResponse(acl_rules) def test_update_nacl_rules(self, createGen2Service): - acl_rule = update_network_acl_rule( - createGen2Service, store['created_nacl_id'], store['created_nacl_rule_id']) + acl_rule = update_network_acl_rule(createGen2Service, store['created_nacl_id'], store['created_nacl_rule_id']) assertGetPatchResponse(acl_rule) def test_delete_nacl_rules(self, createGen2Service): - acl_rule = delete_network_acl_rule( - createGen2Service, store['created_nacl_id'], store['created_nacl_rule_id']) + acl_rule = delete_network_acl_rule(createGen2Service, store['created_nacl_id'], store['created_nacl_rule_id']) assertDeleteResponse(acl_rule) def test_update_nacl(self, createGen2Service): @@ -185,8 +177,7 @@ def test_update_nacl(self, createGen2Service): assertGetPatchResponse(acl) - -class TestVolume(): +class TestVolume: def test_list_vol_profiles(self, createGen2Service): profiles = list_volume_profiles(createGen2Service) assertListResponse(profiles, 'profiles') @@ -214,7 +205,8 @@ def test_update_vol(self, createGen2Service): vol = update_volume(createGen2Service, store['created_vol']) assertGetPatchResponse(vol) -class TestVPC(): + +class TestVPC: def test_list_vpc(self, createGen2Service): vpcs = list_vpcs(createGen2Service) assertListResponse(vpcs, 'vpcs') @@ -241,7 +233,6 @@ def test_get_vpc_dns_res_binding(self, createGen2Service): vpc = get_vpc_dns_res_binding(createGen2Service, store['created_vpc'], store['created_vpc_dns_res_binding']) assertGetResponse(vpc) - def test_list_vpc_dns_res_binding(self, createGen2Service): vpc = list_vpc_dns_res_binding(createGen2Service, store['created_vpc']) assertPagerListResponse(vpc) @@ -259,7 +250,7 @@ def test_update_vpc(self, createGen2Service): assertGetPatchResponse(vpc) -class TestSubnet(): +class TestSubnet: def test_list_subnet(self, createGen2Service): subnets = list_subnets(createGen2Service) assertListResponse(subnets, 'subnets') @@ -270,8 +261,7 @@ def test_list_subnet(self, createGen2Service): def test_create_subnet(self, createGen2Service): print(store['zone'], store['created_vpc']) - subnet = create_subnet( - createGen2Service, store['created_vpc'], store['zone']) + subnet = create_subnet(createGen2Service, store['created_vpc'], store['zone']) assertCreateResponse(subnet) store['created_subnet'] = subnet.get_result()['id'] print('created_subnet: ' + store['created_subnet']) @@ -285,98 +275,97 @@ def test_update_subnet(self, createGen2Service): assertGetPatchResponse(subnet) def test_update_subnet_nacl(self, createGen2Service): - subnet_nacl = replace_subnet_network_acl( - createGen2Service, store['created_subnet'], store['created_nacl_id']) + subnet_nacl = replace_subnet_network_acl(createGen2Service, store['created_subnet'], store['created_nacl_id']) assertCreateResponse(subnet_nacl) def test_get_subnet_nacl(self, createGen2Service): - subnet_nacl = get_subnet_network_acl( - createGen2Service, store['created_subnet']) + subnet_nacl = get_subnet_network_acl(createGen2Service, store['created_subnet']) assertGetPatchResponse(subnet_nacl) def test_list_subnet_reserved_ips(self, createGen2Service): - reserved_ips = list_subnet_reserved_ips( - createGen2Service, store['created_subnet']) + reserved_ips = list_subnet_reserved_ips(createGen2Service, store['created_subnet']) assertListResponse(reserved_ips, 'reserved_ips') def test_create_subnet_reserved_ip(self, createGen2Service): - reserved_ip = create_subnet_reserved_ip( - createGen2Service, store['created_subnet']) + reserved_ip = create_subnet_reserved_ip(createGen2Service, store['created_subnet']) assertCreateResponse(reserved_ip) store['created_subnet_reserved_ip'] = reserved_ip.get_result()['id'] def test_get_subnet_reserved_ip(self, createGen2Service): reserved_ip = get_subnet_reserved_ip( - createGen2Service, store['created_subnet'], store['created_subnet_reserved_ip']) + createGen2Service, store['created_subnet'], store['created_subnet_reserved_ip'] + ) assertGetPatchResponse(reserved_ip) def test_update_subnet_reserved_ip(self, createGen2Service): reserved_ip = update_subnet_reserved_ip( - createGen2Service, store['created_subnet'], store['created_subnet_reserved_ip']) + createGen2Service, store['created_subnet'], store['created_subnet_reserved_ip'] + ) assertGetPatchResponse(reserved_ip) -class TestVPCRoutingTables(): +class TestVPCRoutingTables: def test_create_vpc_routing_table(self, createGen2Service): - routing_table = create_vpc_routing_table( - createGen2Service, store['created_vpc'], store['zone']) + routing_table = create_vpc_routing_table(createGen2Service, store['created_vpc'], store['zone']) assertCreateResponse(routing_table) store['created_routing_table_id'] = routing_table.get_result()['id'] def test_list_vpc_routing_tables(self, createGen2Service): - routing_tables = list_vpc_routing_tables( - createGen2Service, store['created_vpc']) + routing_tables = list_vpc_routing_tables(createGen2Service, store['created_vpc']) assertListResponse(routing_tables, 'routing_tables') def test_create_vpc_routing_table_route(self, createGen2Service): route = create_vpc_routing_table_route( - createGen2Service, - store['created_vpc'], - store['created_routing_table_id'], - store['zone']) + createGen2Service, store['created_vpc'], store['created_routing_table_id'], store['zone'] + ) assertCreateResponse(route) store['created_route_id'] = route.get_result()['id'] def test_list_vpc_routing_table_routes(self, createGen2Service): pytest.skip("mock error") routes = list_vpc_routing_table_routes( - createGen2Service, store['created_vpc'], store['created_routing_table_id']) + createGen2Service, store['created_vpc'], store['created_routing_table_id'] + ) assertListResponse(routes, 'routes') def test_get_vpc_routing_table(self, createGen2Service): - route = get_vpc_routing_table( - createGen2Service, store['created_vpc'], store['created_routing_table_id']) + route = get_vpc_routing_table(createGen2Service, store['created_vpc'], store['created_routing_table_id']) assertGetPatchResponse(route) def test_get_vpc_routing_table_route(self, createGen2Service): route = get_vpc_routing_table_route( - createGen2Service, store['created_vpc'], store['created_routing_table_id'], store['created_route_id']) + createGen2Service, store['created_vpc'], store['created_routing_table_id'], store['created_route_id'] + ) assertGetPatchResponse(route) def test_update_vpc_routing_table_route(self, createGen2Service): route = update_vpc_routing_table_route( - createGen2Service, store['created_vpc'], store['created_routing_table_id'], store['created_route_id']) + createGen2Service, store['created_vpc'], store['created_routing_table_id'], store['created_route_id'] + ) assertGetPatchResponse(route) def test_update_vpc_routing_table(self, createGen2Service): routing_table = update_vpc_routing_table( - createGen2Service, store['created_vpc'], store['created_routing_table_id']) + createGen2Service, store['created_vpc'], store['created_routing_table_id'] + ) assertGetPatchResponse(routing_table) def test_delete_vpc_routing_table_route(self, createGen2Service): route = delete_vpc_routing_table_route( - createGen2Service, store['created_vpc'], store['created_routing_table_id'], store['created_route_id']) + createGen2Service, store['created_vpc'], store['created_routing_table_id'], store['created_route_id'] + ) assertDeleteResponse(route) def test_delete_vpc_routing_table(self, createGen2Service): routing_table = delete_vpc_routing_table( - createGen2Service, store['created_vpc'], store['created_routing_table_id']) + createGen2Service, store['created_vpc'], store['created_routing_table_id'] + ) assertDeleteResponse(routing_table) -class TestEndpointGateways(): +class TestEndpointGateways: def test_create_endpoint_gateway(self, createGen2Service): - eg = create_endpoint_gateway(createGen2Service, store['created_vpc']) + eg = create_endpoint_gateway(createGen2Service, store['created_vpc']) assertCreateResponse(eg) store['created_eg_id'] = eg.get_result()['id'] @@ -389,41 +378,34 @@ def test_get_endpoint_gateway(self, createGen2Service): assertGetPatchResponse(fip) def test_update_endpoint_gateway(self, createGen2Service): - fip = update_endpoint_gateway( - createGen2Service, store['created_eg_id']) + fip = update_endpoint_gateway(createGen2Service, store['created_eg_id']) assertGetPatchResponse(fip) def test_add_endpoint_gateway_ip(self, createGen2Service): - eg_ip = add_endpoint_gateway_ip( - createGen2Service, store['created_eg_id'], store['created_subnet_reserved_ip']) + eg_ip = add_endpoint_gateway_ip(createGen2Service, store['created_eg_id'], store['created_subnet_reserved_ip']) assertCreateResponse(eg_ip) store['created_eg_ip_id'] = eg_ip.get_result()['id'] def test_list_endpoint_gateway_ips(self, createGen2Service): - ips = list_endpoint_gateway_ips( - createGen2Service, store['created_eg_id']) + ips = list_endpoint_gateway_ips(createGen2Service, store['created_eg_id']) assertListResponse(ips, 'ips') def test_get_endpoint_gateway_ip(self, createGen2Service): - fip = get_endpoint_gateway_ip( - createGen2Service, store['created_eg_id'], store['created_eg_ip_id']) + fip = get_endpoint_gateway_ip(createGen2Service, store['created_eg_id'], store['created_eg_ip_id']) assertGetPatchResponse(fip) def test_remove_endpoint_gateway_ip(self, createGen2Service): - vpc = remove_endpoint_gateway_ip( - createGen2Service, store['created_eg_id'], store['created_eg_ip_id']) + vpc = remove_endpoint_gateway_ip(createGen2Service, store['created_eg_id'], store['created_eg_ip_id']) assertDeleteResponse(vpc) def test_delete_endpoint_gateway(self, createGen2Service): - vpc = delete_endpoint_gateway( - createGen2Service, store['created_eg_id']) + vpc = delete_endpoint_gateway(createGen2Service, store['created_eg_id']) assertDeleteResponse(vpc) -class TestPublicGateways(): +class TestPublicGateways: def test_create_pgw(self, createGen2Service): - pgw = create_public_gateway( - createGen2Service, store['created_vpc'], store['zone']) + pgw = create_public_gateway(createGen2Service, store['created_vpc'], store['zone']) assertCreateResponse(pgw) store['created_pgw'] = pgw.get_result()['id'] @@ -440,39 +422,42 @@ def test_update_pgw(self, createGen2Service): assertGetPatchResponse(pgw) def test_update_subnet_pgw(self, createGen2Service): - subnet = set_subnet_public_gateway( - createGen2Service, store['created_subnet'], store['created_pgw']) + subnet = set_subnet_public_gateway(createGen2Service, store['created_subnet'], store['created_pgw']) assertCreateResponse(subnet) def test_get_subnet_pgw(self, createGen2Service): - subnet = get_subnet_public_gateway( - createGen2Service, store['created_subnet']) + subnet = get_subnet_public_gateway(createGen2Service, store['created_subnet']) assertGetPatchResponse(subnet) def test_delete_subnet_pgw(self, createGen2Service): - vpc = unset_subnet_public_gateway( - createGen2Service, store['created_subnet']) + vpc = unset_subnet_public_gateway(createGen2Service, store['created_subnet']) assertDeleteResponse(vpc) -class TestBareMetalServers(): +class TestBareMetalServers: def test_list_bare_metal_server_profiles(self, createGen2Service): profiles = list_bare_metal_server_profiles(createGen2Service) assertListResponse(profiles, 'profiles') - store['bare_metal_server_profile'] = profiles.get_result()[ - 'profiles'][0]['name'] + store['bare_metal_server_profile'] = profiles.get_result()['profiles'][0]['name'] def test_get_bare_metal_server_profile(self, createGen2Service): - prof = get_bare_metal_server_profile( - createGen2Service, store['bare_metal_server_profile']) + prof = get_bare_metal_server_profile(createGen2Service, store['bare_metal_server_profile']) assert prof.status_code == 200 assert prof.get_result() is not None def test_create_bare_metal_server(self, createGen2Service): - bms = create_bare_metal_server(createGen2Service, store['bare_metal_server_profile'], store['created_subnet'], - store['image_id'], store['created_key'], store['created_vpc'], - store['zone'], 'testString', 'my-bare-metal-server') + bms = create_bare_metal_server( + createGen2Service, + store['bare_metal_server_profile'], + store['created_subnet'], + store['image_id'], + store['created_key'], + store['created_vpc'], + store['zone'], + 'testString', + 'my-bare-metal-server', + ) assertCreateResponse(bms) store['created_bare_metal_server_id'] = bms.get_result()['id'] print('created_bare_metal_server_id -' + store['created_bare_metal_server_id']) @@ -486,33 +471,32 @@ def test_list_bare_metal_servers(self, createGen2Service): print("primary network interface is - " + store['network_interface_id']) def test_get_bare_metal_server(self, createGen2Service): - bare_metal_server = get_bare_metal_server( - createGen2Service, store['created_bare_metal_server_id']) + bare_metal_server = get_bare_metal_server(createGen2Service, store['created_bare_metal_server_id']) assertGetPatchResponse(bare_metal_server) def test_update_bare_metal_server(self, createGen2Service): bare_metal_server = update_bare_metal_server( - createGen2Service, store['created_bare_metal_server_id'], 'my-bare-metal-server-update', True) + createGen2Service, store['created_bare_metal_server_id'], 'my-bare-metal-server-update', True + ) assertGetPatchResponse(bare_metal_server) def test_get_bare_metal_server_initialization(self, createGen2Service): bare_metal_server = get_bare_metal_server_initialization( - createGen2Service, store['created_bare_metal_server_id']) + createGen2Service, store['created_bare_metal_server_id'] + ) assert bare_metal_server.status_code == 200 assert bare_metal_server.get_result() is not None def test_create_bare_metal_server_console_access_token(self, createGen2Service): pytest.skip("no env") bare_metal_server_access_token = create_bare_metal_server_console_access_token( - createGen2Service, store['created_bare_metal_server_id'], - 'serial' + createGen2Service, store['created_bare_metal_server_id'], 'serial' ) assert bare_metal_server_access_token.status_code == 200 assert bare_metal_server_access_token.get_result() is not None def test_list_bare_metal_server_disks(self, createGen2Service): - bare_metal_server_disks = list_bare_metal_server_disks( - createGen2Service, store['created_bare_metal_server_id']) + bare_metal_server_disks = list_bare_metal_server_disks(createGen2Service, store['created_bare_metal_server_id']) bare_metal_server_disk = bare_metal_server_disks.get_result()['disks'][0] store['bare_metal_server_disk_id'] = bare_metal_server_disk['id'] assert bare_metal_server_disks.status_code == 200 @@ -520,14 +504,17 @@ def test_list_bare_metal_server_disks(self, createGen2Service): def test_get_bare_metal_server_disk(self, createGen2Service): bare_metal_server_disk = get_bare_metal_server_disk( - createGen2Service, store['created_bare_metal_server_id'], store['bare_metal_server_disk_id']) + createGen2Service, store['created_bare_metal_server_id'], store['bare_metal_server_disk_id'] + ) assert bare_metal_server_disk.status_code == 200 assert bare_metal_server_disk.get_result() is not None def test_update_bare_metal_server_disk(self, createGen2Service): bare_metal_server_disk = update_bare_metal_server_disk( - createGen2Service, store['created_bare_metal_server_id'], store['bare_metal_server_disk_id'], - 'my-bare-metal-server-disk-update' + createGen2Service, + store['created_bare_metal_server_id'], + store['bare_metal_server_disk_id'], + 'my-bare-metal-server-disk-update', ) assert bare_metal_server_disk.status_code == 200 assert bare_metal_server_disk.get_result() is not None @@ -535,91 +522,119 @@ def test_update_bare_metal_server_disk(self, createGen2Service): # create nic def test_create_bare_metal_server_network_interface(self, createGen2Service): nic = create_bare_metal_server_network_interface( - createGen2Service, store['created_bare_metal_server_id'], - [4, 4049], store['created_subnet'], 'pci', 'my-bms-nic', False, True) + createGen2Service, + store['created_bare_metal_server_id'], + [4, 4049], + store['created_subnet'], + 'pci', + 'my-bms-nic', + False, + True, + ) assertCreateResponse(nic) store['bare_metal_server_created_nic'] = nic.get_result()['id'] def test_list_bare_metal_server_network_interfaces(self, createGen2Service): bare_metal_server_nics = list_bare_metal_server_network_interfaces( - createGen2Service, store['created_bare_metal_server_id']) + createGen2Service, store['created_bare_metal_server_id'] + ) assertListResponse(bare_metal_server_nics, 'network_interfaces') - store['bms_nic_id'] = bare_metal_server_nics.get_result()[ - 'network_interfaces'][0]['id'] + store['bms_nic_id'] = bare_metal_server_nics.get_result()['network_interfaces'][0]['id'] def test_get_bare_metal_server_network_interface(self, createGen2Service): bare_metal_server_nic = get_bare_metal_server_network_interface( - createGen2Service, store['created_bare_metal_server_id'], store['bms_nic_id']) + createGen2Service, store['created_bare_metal_server_id'], store['bms_nic_id'] + ) assertGetPatchResponse(bare_metal_server_nic) # update nic def test_update_bare_metal_server_network_interface(self, createGen2Service): nic = update_bare_metal_server_network_interface( - createGen2Service, store['created_bare_metal_server_id'], store['bare_metal_server_created_nic'], - 'my-bare-metal-server-network-interface-update', True, False) + createGen2Service, + store['created_bare_metal_server_id'], + store['bare_metal_server_created_nic'], + 'my-bare-metal-server-network-interface-update', + True, + False, + ) assertGetPatchResponse(nic) def test_create_bare_metal_server_nic_fip(self, createGen2Service): fip = add_bare_metal_server_network_interface_floating_ip( - createGen2Service, store['created_bare_metal_server_id'], store['bms_nic_id'], store['created_fip_id']) + createGen2Service, store['created_bare_metal_server_id'], store['bms_nic_id'], store['created_fip_id'] + ) assertCreateResponse(fip) store['created_bms_nic_fip'] = fip.get_result()['id'] def test_get_bare_metal_server_nic_fips(self, createGen2Service): fips = list_bare_metal_server_network_interface_floating_ips( - createGen2Service, store['created_bare_metal_server_id'], store['bms_nic_id']) + createGen2Service, store['created_bare_metal_server_id'], store['bms_nic_id'] + ) assertListResponse(fips, 'floating_ips') def test_get_bare_metal_server_nic_fip(self, createGen2Service): fips = get_bare_metal_server_network_interface_floating_ip( - createGen2Service, store['created_bare_metal_server_id'], store['bms_nic_id'], store['created_fip_id']) + createGen2Service, store['created_bare_metal_server_id'], store['bms_nic_id'], store['created_fip_id'] + ) assertGetPatchResponse(fips) def test_list_bare_metal_server_network_interface_ips(self, createGen2Service): pytest.skip("no env") ips = list_bare_metal_server_network_interface_ips( - createGen2Service, store['created_bare_metal_server_id'], store['bms_nic_id']) + createGen2Service, store['created_bare_metal_server_id'], store['bms_nic_id'] + ) assertListResponse(ips, 'ips') def test_get_bare_metal_server_network_interface_ip(self, createGen2Service): pytest.skip("no env") ips = get_bare_metal_server_network_interface_ip( - createGen2Service, store['created_bare_metal_server_id'], store['bms_nic_id'], store['created_subnet_reserved_ip']) + createGen2Service, + store['created_bare_metal_server_id'], + store['bms_nic_id'], + store['created_subnet_reserved_ip'], + ) assertGetPatchResponse(ips) - + def test_delete_bare_metal_server_nic_fip(self, createGen2Service): fips = remove_bare_metal_server_network_interface_floating_ip( - createGen2Service, store['created_bare_metal_server_id'], store['bms_nic_id'], store['created_fip_id']) + createGen2Service, store['created_bare_metal_server_id'], store['bms_nic_id'], store['created_fip_id'] + ) assertDeleteResponse(fips) def test_delete_bare_metal_server_network_interface(self, createGen2Service): nics = delete_bare_metal_server_network_interface( - createGen2Service, store['created_bare_metal_server_id'], store['bms_nic_id']) + createGen2Service, store['created_bare_metal_server_id'], store['bms_nic_id'] + ) assertDeleteResponse(nics) def test_create_bare_metal_server_restart(self, createGen2Service): bare_metal_server_restart = create_bare_metal_server_restart( - createGen2Service, store['created_bare_metal_server_id']) + createGen2Service, store['created_bare_metal_server_id'] + ) assert bare_metal_server_restart.status_code == 204 def test_create_bare_metal_server_stop(self, createGen2Service): bare_metal_server_stop = create_bare_metal_server_stop( - createGen2Service, store['created_bare_metal_server_id'], 'hard') + createGen2Service, store['created_bare_metal_server_id'], 'hard' + ) assert bare_metal_server_stop.status_code == 204 def test_create_bare_metal_server_start(self, createGen2Service): bare_metal_server_start = create_bare_metal_server_start( - createGen2Service, store['created_bare_metal_server_id']) + createGen2Service, store['created_bare_metal_server_id'] + ) assert bare_metal_server_start.status_code == 204 def test_delete_bare_metal_server(self, createGen2Service): bare_metal_server_stop = create_bare_metal_server_stop( - createGen2Service, store['created_bare_metal_server_id'], 'hard') + createGen2Service, store['created_bare_metal_server_id'], 'hard' + ) assert bare_metal_server_stop.status_code == 204 bms = delete_bare_metal_server(createGen2Service, store['created_bare_metal_server_id']) assertDeleteResponse(bms) -class TestInstances(): + +class TestInstances: def test_list_instances(self, createGen2Service): instances = list_instances(createGen2Service) assertListResponse(instances, 'instances') @@ -630,39 +645,39 @@ def test_list_instances(self, createGen2Service): def test_list_instance_profiles(self, createGen2Service): profiles = list_instance_profiles(createGen2Service) assertListResponse(profiles, 'profiles') - store['instance_profile'] = profiles.get_result()[ - 'profiles'][0]['name'] + store['instance_profile'] = profiles.get_result()['profiles'][0]['name'] def test_get_instance_profile(self, createGen2Service): - prof = get_instance_profile( - createGen2Service, store['instance_profile']) + prof = get_instance_profile(createGen2Service, store['instance_profile']) assert prof.status_code == 200 assert prof.get_result() is not None def test_create_instance(self, createGen2Service): - ins = create_instance(createGen2Service, store['created_vpc'], store['instance_profile'], - store['zone'], store['image_id'], store['created_subnet']) + ins = create_instance( + createGen2Service, + store['created_vpc'], + store['instance_profile'], + store['zone'], + store['image_id'], + store['created_subnet'], + ) assertCreateResponse(ins) store['created_instance_id'] = ins.get_result()['id'] print('created_instance_id -' + store['created_instance_id']) def test_get_instance(self, createGen2Service): - instance = get_instance( - createGen2Service, store['created_instance_id']) + instance = get_instance(createGen2Service, store['created_instance_id']) assertGetPatchResponse(instance) def test_update_instance(self, createGen2Service): - instance = update_instance( - createGen2Service, store['created_instance_id']) + instance = update_instance(createGen2Service, store['created_instance_id']) assertGetPatchResponse(instance) def test_create_instance_action(self, createGen2Service): - instance = create_instance_action( - createGen2Service, store['created_instance_id']) + instance = create_instance_action(createGen2Service, store['created_instance_id']) assert instance.status_code == 201 assert instance.get_result()['id'] is not None - def test_list_instance_cluster_network_attachments(self, createGen2Service): response = createGen2Service.list_instance_cluster_network_attachments( instance_id=store['created_instance_id'], @@ -697,7 +712,9 @@ def test_list_instance_cluster_network_attachments_with_pager(self, createGen2Se assert all_items is not None assert len(all_results) == len(all_items) - print(f'\nlist_instance_cluster_network_attachments() returned a total of {len(all_results)} items(s) using InstanceClusterNetworkAttachmentsPager.') + print( + f'\nlist_instance_cluster_network_attachments() returned a total of {len(all_results)} items(s) using InstanceClusterNetworkAttachmentsPager.' + ) def test_create_cluster_network_attachment(self, createGen2Service): # Construct a dict representation of a ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPPrototypeClusterNetworkInterfacePrimaryIPContext model @@ -719,7 +736,6 @@ def test_create_cluster_network_attachment(self, createGen2Service): } # Construct a dict representation of a InstanceClusterNetworkAttachmentBeforePrototypeInstanceClusterNetworkAttachmentIdentityById model - response = createGen2Service.create_cluster_network_attachment( instance_id=store['created_instance_id'], cluster_network_interface=instance_cluster_network_attachment_prototype_cluster_network_interface_model, @@ -757,57 +773,58 @@ def test_update_instance_cluster_network_attachment(self, createGen2Service): instance_cluster_network_attachment = response.get_result() assert instance_cluster_network_attachment is not None - def test_get_instance_initialization(self, createGen2Service): - instance = get_instance_initialization( - createGen2Service, store['created_instance_id']) + instance = get_instance_initialization(createGen2Service, store['created_instance_id']) assert instance.status_code == 200 assert instance.get_result() is not None def test_list_instance_network_interfaces(self, createGen2Service): - instance_nics = list_instance_network_interfaces( - createGen2Service, store['created_instance_id']) + instance_nics = list_instance_network_interfaces(createGen2Service, store['created_instance_id']) assertListResponse(instance_nics, 'network_interfaces') - store['nic_id'] = instance_nics.get_result()[ - 'network_interfaces'][0]['id'] + store['nic_id'] = instance_nics.get_result()['network_interfaces'][0]['id'] + # create nic def test_create_instance_network_interface(self, createGen2Service): nic = create_instance_network_interface( - createGen2Service, store['created_instance_id'], store['created_subnet']) + createGen2Service, store['created_instance_id'], store['created_subnet'] + ) assertCreateResponse(nic) store['created_nic'] = nic.get_result()['id'] + # update def test_update_instance_network_interface(self, createGen2Service): - nic = update_instance_network_interface( - createGen2Service, store['created_instance_id'], store['created_nic']) + nic = update_instance_network_interface(createGen2Service, store['created_instance_id'], store['created_nic']) assertGetPatchResponse(nic) def test_get_instance_network_interface(self, createGen2Service): - instance_nic = get_instance_network_interface( - createGen2Service, store['created_instance_id'], store['nic_id']) + instance_nic = get_instance_network_interface(createGen2Service, store['created_instance_id'], store['nic_id']) assertGetPatchResponse(instance_nic) def test_create_instance_nic_fip(self, createGen2Service): fip = add_instance_network_interface_floating_ip( - createGen2Service, store['created_instance_id'], store['nic_id'], store['created_fip_id']) + createGen2Service, store['created_instance_id'], store['nic_id'], store['created_fip_id'] + ) assertCreateResponse(fip) store['created_nic_fip'] = fip.get_result()['id'] def test_get_instance_nic_fips(self, createGen2Service): fips = list_instance_network_interface_floating_ips( - createGen2Service, store['created_instance_id'], store['nic_id']) + createGen2Service, store['created_instance_id'], store['nic_id'] + ) assertListResponse(fips, 'floating_ips') def test_get_instance_nic_fip(self, createGen2Service): fips = get_instance_network_interface_floating_ip( - createGen2Service, store['created_instance_id'], store['nic_id'], store['created_fip_id']) + createGen2Service, store['created_instance_id'], store['nic_id'], store['created_fip_id'] + ) assertGetPatchResponse(fips) def test_delete_instance_nic_fip(self, createGen2Service): fips = remove_instance_network_interface_floating_ip( - createGen2Service, store['created_instance_id'], store['nic_id'], store['created_fip_id']) + createGen2Service, store['created_instance_id'], store['nic_id'], store['created_fip_id'] + ) assertDeleteResponse(fips) def test_delete_instance_cluster_network_attachment(self, createGen2Service): @@ -821,51 +838,52 @@ def test_delete_instance_cluster_network_attachment(self, createGen2Service): assert instance_cluster_network_attachment is not None def test_list_instance_network_interface_ips(self, createGen2Service): - ips = list_instance_network_interface_ips( - createGen2Service, store['created_instance_id'], store['nic_id']) + ips = list_instance_network_interface_ips(createGen2Service, store['created_instance_id'], store['nic_id']) assertListResponse(ips, 'ips') def test_get_instance_network_interface_ip(self, createGen2Service): fips = get_instance_network_interface_ip( - createGen2Service, store['created_instance_id'], store['nic_id'], store['created_subnet_reserved_ip']) + createGen2Service, store['created_instance_id'], store['nic_id'], store['created_subnet_reserved_ip'] + ) assertGetPatchResponse(fips) def test_delete_subnet_reserved_ip(self, createGen2Service): - vpc = delete_subnet_reserved_ip( - createGen2Service, store['created_subnet'], store['created_subnet_reserved_ip']) + vpc = delete_subnet_reserved_ip(createGen2Service, store['created_subnet'], store['created_subnet_reserved_ip']) assertDeleteResponse(vpc) def test_delete_instance_network_interface(self, createGen2Service): - nics = delete_instance_network_interface( - createGen2Service, store['created_instance_id'], store['created_nic']) + nics = delete_instance_network_interface(createGen2Service, store['created_instance_id'], store['created_nic']) assertDeleteResponse(nics) def test_create_instance_vol_attachment(self, createGen2Service): vol_attach = create_instance_volume_attachment( - createGen2Service, store['created_instance_id'], store['created_vol']) + createGen2Service, store['created_instance_id'], store['created_vol'] + ) assertCreateResponse(vol_attach) store['created_vol_atchmt'] = vol_attach.get_result()['id'] def test_list_instance_vol_attachment(self, createGen2Service): - instance_vol_attachments = list_instance_volume_attachments( - createGen2Service, store['created_instance_id']) + instance_vol_attachments = list_instance_volume_attachments(createGen2Service, store['created_instance_id']) assertListResponse(instance_vol_attachments, 'volume_attachments') def test_get_instance_vol_attachment(self, createGen2Service): vol_attach = get_instance_volume_attachment( - createGen2Service, store['created_instance_id'], store['created_vol_atchmt']) + createGen2Service, store['created_instance_id'], store['created_vol_atchmt'] + ) assertGetPatchResponse(vol_attach) def test_update_instance_vol_attachment(self, createGen2Service): vol_attach = update_instance_volume_attachment( - createGen2Service, store['created_instance_id'], store['created_vol_atchmt']) + createGen2Service, store['created_instance_id'], store['created_vol_atchmt'] + ) assertGetPatchResponse(vol_attach) -class TestSnapshots(): + +class TestSnapshots: def test_list_snapshots(self, createGen2Service): snapshots = list_snapshots(createGen2Service) assertListResponse(snapshots, 'snapshots') - + def test_create_snapshot(self, createGen2Service): snapshot = create_snapshot(createGen2Service, store['created_vol'], generate_name("snapshot")) snapshot1 = create_snapshot(createGen2Service, store['created_vol'], generate_name("snapshot")) @@ -882,7 +900,7 @@ def test_create_snapshot_CRC(self, createGen2Service): def test_get_snapshot(self, createGen2Service): snapshot = get_snapshot(createGen2Service, store['snapshot_id']) assertGetPatchResponse(snapshot) - + def test_update_snapshot(self, createGen2Service): snapshot = update_snapshot(createGen2Service, store['snapshot_id']) assertGetPatchResponse(snapshot) @@ -906,14 +924,14 @@ def test_delete_snapshot_clone(self, createGen2Service): def test_delete_snapshot(self, createGen2Service): response = delete_snapshot(createGen2Service, store['snapshot_id']) assertDeleteResponse(response) - + def test_delete_snapshots(self, createGen2Service): pytest.skip("mock error") response = delete_snapshots(createGen2Service, store['created_vol']) assertDeleteResponse(response) -class TestClusterNetworks(): +class TestClusterNetworks: def test_list_cluster_network_profiles(self, createGen2Service): response = createGen2Service.list_cluster_network_profiles( @@ -924,7 +942,6 @@ def test_list_cluster_network_profiles(self, createGen2Service): cluster_network_profile_collection = response.get_result() assert cluster_network_profile_collection is not None - def test_list_cluster_network_profiles_with_pager(self, createGen2Service): all_results = [] @@ -947,7 +964,9 @@ def test_list_cluster_network_profiles_with_pager(self, createGen2Service): assert all_items is not None assert len(all_results) == len(all_items) - print(f'\nlist_cluster_network_profiles() returned a total of {len(all_results)} items(s) using ClusterNetworkProfilesPager.') + print( + f'\nlist_cluster_network_profiles() returned a total of {len(all_results)} items(s) using ClusterNetworkProfilesPager.' + ) store['cluster_network_profile'] = all_items[0]['name'] def test_get_cluster_network_profile(self, createGen2Service): @@ -959,7 +978,6 @@ def test_get_cluster_network_profile(self, createGen2Service): cluster_network_profile = response.get_result() assert cluster_network_profile is not None - def test_list_cluster_networks(self, createGen2Service): response = createGen2Service.list_cluster_networks( limit=50, @@ -971,7 +989,6 @@ def test_list_cluster_networks(self, createGen2Service): cluster_network_collection = response.get_result() assert cluster_network_collection is not None - def test_list_cluster_networks_with_pager(self, createGen2Service): all_results = [] @@ -1000,7 +1017,6 @@ def test_list_cluster_networks_with_pager(self, createGen2Service): assert len(all_results) == len(all_items) print(f'\nlist_cluster_networks() returned a total of {len(all_results)} items(s) using ClusterNetworksPager.') - def test_create_cluster_network(self, createGen2Service): # Construct a dict representation of a ClusterNetworkProfileIdentityByName model cluster_network_profile_identity_model = { @@ -1032,7 +1048,6 @@ def test_create_cluster_network(self, createGen2Service): assert cluster_network is not None store['created_cluster_network_id'] = cluster_network['id'] - def test_list_cluster_network_interfaces(self, createGen2Service): response = createGen2Service.list_cluster_network_interfaces( cluster_network_id=store['created_cluster_network_id'], @@ -1044,7 +1059,6 @@ def test_list_cluster_network_interfaces(self, createGen2Service): cluster_network_interface_collection = response.get_result() assert cluster_network_interface_collection is not None - def test_list_cluster_network_interfaces_with_pager(self, createGen2Service): all_results = [] @@ -1071,8 +1085,9 @@ def test_list_cluster_network_interfaces_with_pager(self, createGen2Service): assert all_items is not None assert len(all_results) == len(all_items) - print(f'\nlist_cluster_network_interfaces() returned a total of {len(all_results)} items(s) using ClusterNetworkInterfacesPager.') - + print( + f'\nlist_cluster_network_interfaces() returned a total of {len(all_results)} items(s) using ClusterNetworkInterfacesPager.' + ) def test_create_cluster_network_interface(self, createGen2Service): # Construct a dict representation of a ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPPrototypeClusterNetworkInterfacePrimaryIPContext model @@ -1098,7 +1113,6 @@ def test_create_cluster_network_interface(self, createGen2Service): assert cluster_network_interface is not None store['created_cluster_network_interface_id'] = cluster_network_interface['id'] - def test_get_cluster_network_interface(self, createGen2Service): response = createGen2Service.get_cluster_network_interface( cluster_network_id=store['created_cluster_network_id'], @@ -1109,7 +1123,6 @@ def test_get_cluster_network_interface(self, createGen2Service): cluster_network_interface = response.get_result() assert cluster_network_interface is not None - def test_update_cluster_network_interface(self, createGen2Service): # Construct a dict representation of a ClusterNetworkInterfacePatch model cluster_network_interface_patch_model = { @@ -1128,7 +1141,6 @@ def test_update_cluster_network_interface(self, createGen2Service): cluster_network_interface = response.get_result() assert cluster_network_interface is not None - def test_list_cluster_network_subnets(self, createGen2Service): response = createGen2Service.list_cluster_network_subnets( cluster_network_id=store['created_cluster_network_id'], @@ -1140,7 +1152,6 @@ def test_list_cluster_network_subnets(self, createGen2Service): cluster_network_subnet_collection = response.get_result() assert cluster_network_subnet_collection is not None - def test_list_cluster_network_subnets_with_pager(self, createGen2Service): all_results = [] @@ -1167,8 +1178,9 @@ def test_list_cluster_network_subnets_with_pager(self, createGen2Service): assert all_items is not None assert len(all_results) == len(all_items) - print(f'\nlist_cluster_network_subnets() returned a total of {len(all_results)} items(s) using ClusterNetworkSubnetsPager.') - + print( + f'\nlist_cluster_network_subnets() returned a total of {len(all_results)} items(s) using ClusterNetworkSubnetsPager.' + ) def test_create_cluster_network_subnet(self, createGen2Service): # Construct a dict representation of a ClusterNetworkSubnetPrototypeClusterNetworkSubnetByTotalCountPrototype model @@ -1200,7 +1212,6 @@ def test_list_cluster_network_subnet_reserved_ips(self, createGen2Service): cluster_network_subnet_reserved_ip_collection = response.get_result() assert cluster_network_subnet_reserved_ip_collection is not None - def test_list_cluster_network_subnet_reserved_ips_with_pager(self, createGen2Service): all_results = [] @@ -1229,8 +1240,9 @@ def test_list_cluster_network_subnet_reserved_ips_with_pager(self, createGen2Ser assert all_items is not None assert len(all_results) == len(all_items) - print(f'\nlist_cluster_network_subnet_reserved_ips() returned a total of {len(all_results)} items(s) using ClusterNetworkSubnetReservedIpsPager.') - + print( + f'\nlist_cluster_network_subnet_reserved_ips() returned a total of {len(all_results)} items(s) using ClusterNetworkSubnetReservedIpsPager.' + ) def test_create_cluster_network_subnet_reserved_ip(self, createGen2Service): response = createGen2Service.create_cluster_network_subnet_reserved_ip( @@ -1245,7 +1257,6 @@ def test_create_cluster_network_subnet_reserved_ip(self, createGen2Service): assert cluster_network_subnet_reserved_ip is not None store['created_cluster_network_subnet_reserved_ip_id'] = cluster_network_subnet_reserved_ip['id'] - def test_get_cluster_network_subnet_reserved_ip(self, createGen2Service): response = createGen2Service.get_cluster_network_subnet_reserved_ip( cluster_network_id=store['created_cluster_network_id'], @@ -1257,7 +1268,6 @@ def test_get_cluster_network_subnet_reserved_ip(self, createGen2Service): cluster_network_subnet_reserved_ip = response.get_result() assert cluster_network_subnet_reserved_ip is not None - def test_update_cluster_network_subnet_reserved_ip(self, createGen2Service): # Construct a dict representation of a ClusterNetworkSubnetReservedIPPatch model cluster_network_subnet_reserved_ip_patch_model = { @@ -1277,7 +1287,6 @@ def test_update_cluster_network_subnet_reserved_ip(self, createGen2Service): cluster_network_subnet_reserved_ip = response.get_result() assert cluster_network_subnet_reserved_ip is not None - def test_get_cluster_network_subnet(self, createGen2Service): response = createGen2Service.get_cluster_network_subnet( cluster_network_id=store['created_cluster_network_id'], @@ -1288,7 +1297,6 @@ def test_get_cluster_network_subnet(self, createGen2Service): cluster_network_subnet = response.get_result() assert cluster_network_subnet is not None - def test_update_cluster_network_subnet(self, createGen2Service): # Construct a dict representation of a ClusterNetworkSubnetPatch model cluster_network_subnet_patch_model = { @@ -1306,7 +1314,6 @@ def test_update_cluster_network_subnet(self, createGen2Service): cluster_network_subnet = response.get_result() assert cluster_network_subnet is not None - def test_get_cluster_network(self, createGen2Service): response = createGen2Service.get_cluster_network( id=store['created_cluster_network_id'], @@ -1316,7 +1323,6 @@ def test_get_cluster_network(self, createGen2Service): cluster_network = response.get_result() assert cluster_network is not None - def test_update_cluster_network(self, createGen2Service): # Construct a dict representation of a ClusterNetworkPatch model cluster_network_patch_model = { @@ -1333,8 +1339,6 @@ def test_update_cluster_network(self, createGen2Service): cluster_network = response.get_result() assert cluster_network is not None - - def test_delete_cluster_network_interface(self, createGen2Service): response = createGen2Service.delete_cluster_network_interface( cluster_network_id=store['created_cluster_network_id'], @@ -1346,7 +1350,6 @@ def test_delete_cluster_network_interface(self, createGen2Service): cluster_network_interface = response.get_result() assert cluster_network_interface is not None - def test_delete_cluster_network_subnet_reserved_ip(self, createGen2Service): response = createGen2Service.delete_cluster_network_subnet_reserved_ip( cluster_network_id=store['created_cluster_network_id'], @@ -1359,7 +1362,6 @@ def test_delete_cluster_network_subnet_reserved_ip(self, createGen2Service): cluster_network_subnet_reserved_ip = response.get_result() assert cluster_network_subnet_reserved_ip is not None - def test_delete_cluster_network_subnet(self, createGen2Service): response = createGen2Service.delete_cluster_network_subnet( cluster_network_id=store['created_cluster_network_id'], @@ -1371,7 +1373,6 @@ def test_delete_cluster_network_subnet(self, createGen2Service): cluster_network_subnet = response.get_result() assert cluster_network_subnet is not None - def test_delete_cluster_network(self, createGen2Service): response = createGen2Service.delete_cluster_network( id=store['created_cluster_network_id'], @@ -1383,15 +1384,14 @@ def test_delete_cluster_network(self, createGen2Service): assert cluster_network is not None -class TestShares(): +class TestShares: def test_list_share_profiles(self, createGen2Service): share_profiles = list_share_profiles(createGen2Service) - store['share_profile_name']=share_profiles.get_result()['profiles'][0]['name'] + store['share_profile_name'] = share_profiles.get_result()['profiles'][0]['name'] assertListResponse(share_profiles, 'profiles') def test_get_share_profile(self, createGen2Service): - share_profile = get_share_profile( - createGen2Service, store['share_profile_name']) + share_profile = get_share_profile(createGen2Service, store['share_profile_name']) assertGetPatchResponse(share_profile) def test_list_shares(self, createGen2Service): @@ -1403,7 +1403,14 @@ def test_create_share(self, createGen2Service): assertCreateResponse(share) store['share_id'] = share.get_result()['id'] store['share_crn'] = share.get_result()['crn'] - share_replica = create_share_replica(createGen2Service, store['share_profile_name'], generate_name("share-replica"), store['zone'], store['share_id'], '0 */5 * * *') + share_replica = create_share_replica( + createGen2Service, + store['share_profile_name'], + generate_name("share-replica"), + store['zone'], + store['share_id'], + '0 */5 * * *', + ) assertCreateResponse(share_replica) store['share_replica_id'] = share_replica.get_result()['id'] store['share_replica_etag'] = share_replica.get_headers()['ETag'] @@ -1417,7 +1424,7 @@ def test_get_share(self, createGen2Service): share = get_share(createGen2Service, store['share_id']) store['share_etag'] = share.get_headers()['ETag'] assertGetPatchResponse(share) - + def test_update_share(self, createGen2Service): share = update_share(createGen2Service, store['share_id'], generate_name("share-updated"), store['share_etag']) assertGetPatchResponse(share) @@ -1432,22 +1439,35 @@ def test_list_share_mount_targets(self, createGen2Service): assertListResponse(share_mount_targets, 'mount_targets') def test_create_share_mount_target(self, createGen2Service): - share_mount_target = create_share_mount_target(createGen2Service, store['share_id'], store['created_subnet'], generate_name("share-mount-target"), generate_name("vni")) + share_mount_target = create_share_mount_target( + createGen2Service, + store['share_id'], + store['created_subnet'], + generate_name("share-mount-target"), + generate_name("vni"), + ) assertCreateResponse(share_mount_target) store['share_mount_target_id'] = share_mount_target.get_result()['id'] def test_get_share_mount_target(self, createGen2Service): - share_mount_target = get_share_mount_target(createGen2Service, store['share_id'], store['share_mount_target_id']) + share_mount_target = get_share_mount_target( + createGen2Service, store['share_id'], store['share_mount_target_id'] + ) assertGetResponse(share_mount_target) def test_update_share_mount_target(self, createGen2Service): - share_mount_target = update_share_mount_target(createGen2Service, store['share_id'], store['share_mount_target_id'], generate_name("share-mount-target-updated")) + share_mount_target = update_share_mount_target( + createGen2Service, + store['share_id'], + store['share_mount_target_id'], + generate_name("share-mount-target-updated"), + ) assertGetPatchResponse(share_mount_target) # def test_get_share_source(self, createGen2Service): # share = get_share_source(createGen2Service, store['share_id']) # assertGetResponse(share) - + def test_delete_share_mount_target(self, createGen2Service): response = delete_share_mount_target(createGen2Service, store['share_id'], store['share_mount_target_id']) assertDeleteRequestAcceptedResponse(response) @@ -1462,7 +1482,8 @@ def test_delete_share(self, createGen2Service): response_replica = delete_share(createGen2Service, store['share_replica_id'], store['share_replica_etag']) assertDeleteRequestAcceptedResponse(response_replica) -class TestSecurityGroups(): + +class TestSecurityGroups: def test_create_sg(self, createGen2Service): sg = create_security_group(createGen2Service, store['created_vpc']) assertCreateResponse(sg) @@ -1478,50 +1499,46 @@ def test_get_sg(self, createGen2Service): def test_create_sg_target(self, createGen2Service): sg_network_interface = create_security_group_target_binding( - createGen2Service, store['created_sg_id'], store['network_interface_id']) + createGen2Service, store['created_sg_id'], store['network_interface_id'] + ) assertCreateResponse(sg_network_interface) - store['created_sg_network_interface_id'] = sg_network_interface.get_result()[ - 'id'] + store['created_sg_network_interface_id'] = sg_network_interface.get_result()['id'] def test_list_sg_targets(self, createGen2Service): - sg_network_interface = list_security_group_targets( - createGen2Service, store['created_sg_id']) + sg_network_interface = list_security_group_targets(createGen2Service, store['created_sg_id']) assert sg_network_interface.status_code == 200 def test_get_sg_target(self, createGen2Service): sg_network_interface = get_security_group_target( - createGen2Service, store['created_sg_id'], store['created_sg_network_interface_id']) + createGen2Service, store['created_sg_id'], store['created_sg_network_interface_id'] + ) assertGetPatchResponse(sg_network_interface) def test_delete_sg_target(self, createGen2Service): sg_network_interface = delete_security_group_target_binding( - createGen2Service, store['created_sg_id'], store['created_sg_network_interface_id']) + createGen2Service, store['created_sg_id'], store['created_sg_network_interface_id'] + ) assert sg_network_interface.status_code == 204 def test_create_sg_rule(self, createGen2Service): - sg_rule = create_security_group_rule( - createGen2Service, store['created_sg_id']) + sg_rule = create_security_group_rule(createGen2Service, store['created_sg_id']) assertCreateResponse(sg_rule) store['created_sg_rule_id'] = sg_rule.get_result()['id'] def test_list_sg_rules(self, createGen2Service): - sg_rules = list_security_group_rules( - createGen2Service, store['created_sg_id']) + sg_rules = list_security_group_rules(createGen2Service, store['created_sg_id']) assertListResponse(sg_rules, 'rules') def test_get_sg_rule(self, createGen2Service): - sg_rule = get_security_group_rule( - createGen2Service, store['created_sg_id'], store['created_sg_rule_id']) + sg_rule = get_security_group_rule(createGen2Service, store['created_sg_id'], store['created_sg_rule_id']) assertGetPatchResponse(sg_rule) def test_update_sg_rule(self, createGen2Service): - sg_rule = update_security_group_rule( - createGen2Service, store['created_sg_id'], store['created_sg_rule_id']) + sg_rule = update_security_group_rule(createGen2Service, store['created_sg_id'], store['created_sg_rule_id']) assertGetPatchResponse(sg_rule) def test_delete_sg_rule(self, createGen2Service): - sg_rule = delete_security_group_rule( - createGen2Service, store['created_sg_id'], store['created_sg_rule_id']) + sg_rule = delete_security_group_rule(createGen2Service, store['created_sg_id'], store['created_sg_rule_id']) assertDeleteResponse(sg_rule) def test_update_sg(self, createGen2Service): @@ -1533,25 +1550,22 @@ def test_delete_sg(self, createGen2Service): assertDeleteResponse(sg) -class TestVPCDefaultSecurityGroup(): +class TestVPCDefaultSecurityGroup: def test_get_vpc_default_sg(self, createGen2Service): - vpc_default_sg = get_vpc_default_security_group( - createGen2Service, store['created_vpc']) + vpc_default_sg = get_vpc_default_security_group(createGen2Service, store['created_vpc']) assertGetPatchResponse(vpc_default_sg) -class TestVPCDefaultACL(): +class TestVPCDefaultACL: def test_get_vpc_acl(self, createGen2Service): - vpc_default_acl = get_vpc_default_network_acl( - createGen2Service, store['created_vpc']) + vpc_default_acl = get_vpc_default_network_acl(createGen2Service, store['created_vpc']) assertGetPatchResponse(vpc_default_acl) -class TestVPCRoutes(): +class TestVPCRoutes: def test_create_route(self, createGen2Service): pytest.skip("no env") - route = create_vpc_route( - createGen2Service, store['created_vpc'], store['zone']) + route = create_vpc_route(createGen2Service, store['created_vpc'], store['zone']) assertCreateResponse(route) store['created_route'] = route.get_result()['id'] @@ -1562,52 +1576,50 @@ def test_list_routes(self, createGen2Service): def test_get_route(self, createGen2Service): pytest.skip("no env") - route = get_vpc_route( - createGen2Service, store['created_vpc'], store['created_route']) + route = get_vpc_route(createGen2Service, store['created_vpc'], store['created_route']) assertGetPatchResponse(route) def test_update_route(self, createGen2Service): pytest.skip("no env") - route = update_vpc_route( - createGen2Service, store['created_vpc'], store['created_route']) + route = update_vpc_route(createGen2Service, store['created_vpc'], store['created_route']) assertGetPatchResponse(route) def test_delete_route(self, createGen2Service): pytest.skip("no env") - route = delete_vpc_route( - createGen2Service, store['created_vpc'], store['created_route']) + route = delete_vpc_route(createGen2Service, store['created_vpc'], store['created_route']) assertDeleteResponse(route) -class TestAddressPrefix(): +class TestAddressPrefix: def test_create_address_prefix(self, createGen2Service): - address_prefix = create_vpc_address_prefix( - createGen2Service, store['created_vpc'], store['zone']) + address_prefix = create_vpc_address_prefix(createGen2Service, store['created_vpc'], store['zone']) assertCreateResponse(address_prefix) store['created_address_prefix'] = address_prefix.get_result()['id'] def test_list_address_prefixes(self, createGen2Service): - address_prefixs = list_vpc_address_prefixes( - createGen2Service, store['created_vpc']) + address_prefixs = list_vpc_address_prefixes(createGen2Service, store['created_vpc']) assertListResponse(address_prefixs, 'address_prefixes') def test_get_address_prefix(self, createGen2Service): address_prefix = get_vpc_address_prefix( - createGen2Service, store['created_vpc'], store['created_address_prefix']) + createGen2Service, store['created_vpc'], store['created_address_prefix'] + ) assertGetPatchResponse(address_prefix) def test_update_address_prefix(self, createGen2Service): address_prefix = update_vpc_address_prefix( - createGen2Service, store['created_vpc'], store['created_address_prefix']) + createGen2Service, store['created_vpc'], store['created_address_prefix'] + ) assertGetPatchResponse(address_prefix) def test_delete_address_prefix(self, createGen2Service): address_prefix = delete_vpc_address_prefix( - createGen2Service, store['created_vpc'], store['created_address_prefix']) + createGen2Service, store['created_vpc'], store['created_address_prefix'] + ) assertDeleteResponse(address_prefix) -class TestVPNGateways(): +class TestVPNGateways: def test_create_ike_policy(self, createGen2Service): ike_policy = create_ike_policy(createGen2Service) assertCreateResponse(ike_policy) @@ -1618,18 +1630,15 @@ def test_list_ike_policies(self, createGen2Service): assertListResponse(ike_policies, 'ike_policies') def test_get_ike_policy(self, createGen2Service): - ike_policy = get_ike_policy( - createGen2Service, store['created_ike_policy_id']) + ike_policy = get_ike_policy(createGen2Service, store['created_ike_policy_id']) assertGetPatchResponse(ike_policy) def test_update_ike_policy(self, createGen2Service): - ike_policy = update_ike_policy( - createGen2Service, store['created_ike_policy_id']) + ike_policy = update_ike_policy(createGen2Service, store['created_ike_policy_id']) assertGetPatchResponse(ike_policy) def test_list_ike_policy_connections(self, createGen2Service): - ike_policies_conn = list_ike_policy_connections( - createGen2Service, store['created_ike_policy_id']) + ike_policies_conn = list_ike_policy_connections(createGen2Service, store['created_ike_policy_id']) assertListResponse(ike_policies_conn, 'connections') def test_create_ipsec_policy(self, createGen2Service): @@ -1642,24 +1651,21 @@ def test_list_ike_policies(self, createGen2Service): assertListResponse(ipsec_policies, 'ipsec_policies') def test_get_ipsec_policy(self, createGen2Service): - ipsec_policy = get_ipsec_policy( - createGen2Service, store['created_ipsec_policy_id']) + ipsec_policy = get_ipsec_policy(createGen2Service, store['created_ipsec_policy_id']) assertGetPatchResponse(ipsec_policy) def test_update_ipsec_policy(self, createGen2Service): - ipsec_policy = update_ipsec_policy( - createGen2Service, store['created_ipsec_policy_id']) + ipsec_policy = update_ipsec_policy(createGen2Service, store['created_ipsec_policy_id']) assertGetPatchResponse(ipsec_policy) def test_list_ipsec_policy_connections(self, createGen2Service): - ipsec_policies_conn = list_ipsec_policy_connections( - createGen2Service, store['created_ipsec_policy_id']) + ipsec_policies_conn = list_ipsec_policy_connections(createGen2Service, store['created_ipsec_policy_id']) assertListResponse(ipsec_policies_conn, 'connections') + # vpn_gateways def test_create_vpn_gateway(self, createGen2Service): - vpn_gateway = create_vpn_gateway( - createGen2Service, store['created_subnet']) + vpn_gateway = create_vpn_gateway(createGen2Service, store['created_subnet']) assertCreateResponse(vpn_gateway) store['created_vpn_gateway_id'] = vpn_gateway.get_result()['id'] @@ -1668,97 +1674,127 @@ def test_list_vpn_gateways(self, createGen2Service): assertListResponse(ipsec_policies, 'vpn_gateways') def test_get_vpn_gateway(self, createGen2Service): - vpn_gateway = get_vpn_gateway( - createGen2Service, store['created_vpn_gateway_id']) + vpn_gateway = get_vpn_gateway(createGen2Service, store['created_vpn_gateway_id']) assertGetPatchResponse(vpn_gateway) def test_update_vpn_gateway(self, createGen2Service): - vpn_gateway = update_vpn_gateway( - createGen2Service, store['created_vpn_gateway_id']) + vpn_gateway = update_vpn_gateway(createGen2Service, store['created_vpn_gateway_id']) assertGetPatchResponse(vpn_gateway) + # vpn_gateways_connections def test_create_vpn_gateway_connections(self, createGen2Service): - vpn_gateway_connection = create_vpn_gateway_connection( - createGen2Service, store['created_vpn_gateway_id']) + vpn_gateway_connection = create_vpn_gateway_connection(createGen2Service, store['created_vpn_gateway_id']) assertCreateResponse(vpn_gateway_connection) - store['created_vpn_gateway_connection_id'] = vpn_gateway_connection.get_result()[ - 'id'] + store['created_vpn_gateway_connection_id'] = vpn_gateway_connection.get_result()['id'] def test_list_vpn_gateway_connections(self, createGen2Service): - vpn_gateway_connections = list_vpn_gateway_connections( - createGen2Service, store['created_vpn_gateway_id']) + vpn_gateway_connections = list_vpn_gateway_connections(createGen2Service, store['created_vpn_gateway_id']) assertListResponse(vpn_gateway_connections, 'connections') def test_get_vpn_gateway_connection(self, createGen2Service): vpn_gateway_connection = get_vpn_gateway_connection( - createGen2Service, store['created_vpn_gateway_id'], store['created_vpn_gateway_connection_id']) + createGen2Service, store['created_vpn_gateway_id'], store['created_vpn_gateway_connection_id'] + ) assertGetPatchResponse(vpn_gateway_connection) def test_update_vpn_gateway_connection(self, createGen2Service): vpn_gateway_connection = update_vpn_gateway_connection( - createGen2Service, store['created_vpn_gateway_id'], store['created_vpn_gateway_connection_id']) + createGen2Service, store['created_vpn_gateway_id'], store['created_vpn_gateway_connection_id'] + ) assertGetPatchResponse(vpn_gateway_connection) # local_cidrs def test_create_vpn_gateway_connection_local_cidrs(self, createGen2Service): local_cidr = add_vpn_gateway_connection_local_cidr( - createGen2Service, store['created_vpn_gateway_id'], store['created_vpn_gateway_connection_id'], "192.132.10.0", "28") + createGen2Service, + store['created_vpn_gateway_id'], + store['created_vpn_gateway_connection_id'], + "192.132.10.0", + "28", + ) assert local_cidr.status_code == 204 def test_list_vpn_gateway_connection_local_cidrs(self, createGen2Service): local_cidr = list_vpn_gateway_connection_local_cidrs( - createGen2Service, store['created_vpn_gateway_id'], store['created_vpn_gateway_connection_id']) + createGen2Service, store['created_vpn_gateway_id'], store['created_vpn_gateway_connection_id'] + ) assert local_cidr.status_code == 200 def test_check_vpn_gateway_connection_local_cidr(self, createGen2Service): local_cidr = check_vpn_gateway_connection_local_cidr( - createGen2Service, store['created_vpn_gateway_id'], store['created_vpn_gateway_connection_id'], "192.132.10.0", "28") + createGen2Service, + store['created_vpn_gateway_id'], + store['created_vpn_gateway_connection_id'], + "192.132.10.0", + "28", + ) assert local_cidr.status_code == 204 def test_remove_vpn_gateway_connection_local_cidr(self, createGen2Service): local_cidr = remove_vpn_gateway_connection_local_cidr( - createGen2Service, store['created_vpn_gateway_id'], store['created_vpn_gateway_connection_id'], "192.132.10.0", "28") + createGen2Service, + store['created_vpn_gateway_id'], + store['created_vpn_gateway_connection_id'], + "192.132.10.0", + "28", + ) assert local_cidr.status_code == 204 + # peer_cidrs def test_create_vpn_gateway_connection_peer_cidrs(self, createGen2Service): peer_cidr = add_vpn_gateway_connection_peer_cidr( - createGen2Service, store['created_vpn_gateway_id'], store['created_vpn_gateway_connection_id'], "202.138.10.0", "28") + createGen2Service, + store['created_vpn_gateway_id'], + store['created_vpn_gateway_connection_id'], + "202.138.10.0", + "28", + ) assert peer_cidr.status_code == 204 def test_list_vpn_gateway_connection_peer_cidrs(self, createGen2Service): peer_cidr = list_vpn_gateway_connection_peer_cidrs( - createGen2Service, store['created_vpn_gateway_id'], store['created_vpn_gateway_connection_id']) + createGen2Service, store['created_vpn_gateway_id'], store['created_vpn_gateway_connection_id'] + ) assert peer_cidr.status_code == 200 def test_check_vpn_gateway_connection_peer_cidr(self, createGen2Service): peer_cidr = check_vpn_gateway_connection_peer_cidr( - createGen2Service, store['created_vpn_gateway_id'], store['created_vpn_gateway_connection_id'], "202.138.10.0", "28") + createGen2Service, + store['created_vpn_gateway_id'], + store['created_vpn_gateway_connection_id'], + "202.138.10.0", + "28", + ) assert peer_cidr.status_code == 204 def test_remove_vpn_gateway_connection_peer_cidr(self, createGen2Service): peer_cidr = remove_vpn_gateway_connection_peer_cidr( - createGen2Service, store['created_vpn_gateway_id'], store['created_vpn_gateway_connection_id'], "202.138.10.0", "28") + createGen2Service, + store['created_vpn_gateway_id'], + store['created_vpn_gateway_connection_id'], + "202.138.10.0", + "28", + ) assert peer_cidr.status_code == 204 -class TestVPNServer(): +class TestVPNServer: def test_list_vpn_servers(self, createGen2Service): vpnServers = list_vpn_servers(createGen2Service) assertListResponse(vpnServers, 'vpn_servers') - + def test_create_vpn_server(self, createGen2Service): vpnServer = create_vpn_server(createGen2Service, store['created_subnet']) assertCreateResponse(vpnServer) store['created_vpn_server'] = vpnServer.get_result()['id'] - def test_get_vpn_server(self, createGen2Service): vpnServer = get_vpn_server(createGen2Service, store['created_vpn_server']) store['created_vpn_server_etag'] = vpnServer.get_headers()['ETag'] assertGetPatchResponse(vpnServer) - + def test_update_vpn_server(self, createGen2Service): vpnServer = update_vpn_server(createGen2Service, store['created_vpn_server'], store['created_vpn_server_etag']) assertGetPatchResponse(vpnServer) @@ -1766,10 +1802,10 @@ def test_update_vpn_server(self, createGen2Service): def test_get_vpn_server_client_configuration(self, createGen2Service): vpnServerConfiguration = get_vpn_server_client_configuration(createGen2Service, store['created_vpn_server']) assertGetResponse(vpnServerConfiguration) - + def test_list_vpn_server_clients(self, createGen2Service): clients = list_vpn_server_clients(createGen2Service, store['created_vpn_server']) - store['vpnserverclientId']=clients.get_result()['clients'][0]['id'] + store['vpnserverclientId'] = clients.get_result()['clients'][0]['id'] assertListResponse(clients, 'clients') def test_get_vpn_server_client(self, createGen2Service): @@ -1788,28 +1824,33 @@ def test_create_vpn_server_route(self, createGen2Service): route = create_vpn_server_route(createGen2Service, store['created_vpn_server']) store['created_vpn_server_route'] = route.get_result()['id'] assertCreateResponse(route) - + def test_get_vpn_server_route(self, createGen2Service): route = get_vpn_server_route(createGen2Service, store['created_vpn_server'], store['created_vpn_server_route']) assertGetPatchResponse(route) - + def test_update_vpn_server_route(self, createGen2Service): - route = update_vpn_server_route(createGen2Service, store['created_vpn_server'], store['created_vpn_server_route']) + route = update_vpn_server_route( + createGen2Service, store['created_vpn_server'], store['created_vpn_server_route'] + ) assertGetPatchResponse(route) def test_delete_vpn_server_route(self, createGen2Service): - response = delete_vpn_server_route(createGen2Service, store['created_vpn_server'], store['created_vpn_server_route']) + response = delete_vpn_server_route( + createGen2Service, store['created_vpn_server'], store['created_vpn_server_route'] + ) assertDeleteRequestAcceptedResponse(response) - + def test_delete_vpn_server_client(self, createGen2Service): response = delete_vpn_server_client(createGen2Service, store['created_vpn_server'], store['vpnserverclientId']) assertDeleteRequestAcceptedResponse(response) - def test_delete_vpn_server(self,createGen2Service): - response = delete_vpn_server(createGen2Service, store['created_vpn_server'], store['created_vpn_server_etag'] ) + def test_delete_vpn_server(self, createGen2Service): + response = delete_vpn_server(createGen2Service, store['created_vpn_server'], store['created_vpn_server_etag']) assertDeleteRequestAcceptedResponse(response) -class TestLoadBalancer(): + +class TestLoadBalancer: def test_list_load_balancer_profiles(self, createGen2Service): profiles = list_load_balancer_profiles(createGen2Service) assertListResponse(profiles, 'profiles') @@ -1823,82 +1864,99 @@ def test_list_load_balancer(self, createGen2Service): assertListResponse(load_balancers, 'load_balancers') def test_create_load_balancer(self, createGen2Service): - load_balancer = create_load_balancer( - createGen2Service, store['created_subnet']) + load_balancer = create_load_balancer(createGen2Service, store['created_subnet']) assertCreateResponse(load_balancer) store['created_load_balancer'] = load_balancer.get_result()['id'] print('created_load_balancer: ' + store['created_load_balancer']) def test_get_load_balancer(self, createGen2Service): - load_balancer = get_load_balancer( - createGen2Service, store['created_load_balancer']) + load_balancer = get_load_balancer(createGen2Service, store['created_load_balancer']) assertGetPatchResponse(load_balancer) store['created_load_balancer_etag'] = load_balancer.get_headers()['ETag'] def test_update_load_balancer(self, createGen2Service): load_balancer = update_load_balancer( - createGen2Service, store['created_load_balancer'], store['created_load_balancer_etag']) + createGen2Service, store['created_load_balancer'], store['created_load_balancer_etag'] + ) assertGetPatchResponse(load_balancer) def test_get_load_balancer_statistics(self, createGen2Service): - load_balancers = get_load_balancer_statistics( - createGen2Service, store['created_load_balancer']) + load_balancers = get_load_balancer_statistics(createGen2Service, store['created_load_balancer']) assert load_balancers.status_code == 200 + # listeners def test_list_load_balancer_listeners(self, createGen2Service): - listeners = list_load_balancer_listeners( - createGen2Service, store['created_load_balancer']) + listeners = list_load_balancer_listeners(createGen2Service, store['created_load_balancer']) assertListResponse(listeners, 'listeners') def test_create_load_balancer_listener(self, createGen2Service): - listener = create_load_balancer_listener( - createGen2Service, store['created_load_balancer']) + listener = create_load_balancer_listener(createGen2Service, store['created_load_balancer']) assertCreateResponse(listener) store['created_listener'] = listener.get_result()['id'] def test_get_load_balancer_listener(self, createGen2Service): listener = get_load_balancer_listener( - createGen2Service, store['created_load_balancer'], store['created_listener']) + createGen2Service, store['created_load_balancer'], store['created_listener'] + ) assertGetPatchResponse(listener) def test_update_load_balancer_listener(self, createGen2Service): listener = update_load_balancer_listener( - createGen2Service, store['created_load_balancer'], store['created_listener']) + createGen2Service, store['created_load_balancer'], store['created_listener'] + ) assertGetPatchResponse(listener) # listener policies def test_list_listener_policies(self, createGen2Service): policies = list_load_balancer_listener_policies( - createGen2Service, store['created_load_balancer'], store['created_listener']) + createGen2Service, store['created_load_balancer'], store['created_listener'] + ) assertListResponse(policies, 'policies') def test_create_listener_policy(self, createGen2Service): policy = create_load_balancer_listener_policy( - createGen2Service, store['created_load_balancer'], store['created_listener']) + createGen2Service, store['created_load_balancer'], store['created_listener'] + ) assertCreateResponse(policy) store['created_listener_policy'] = policy.get_result()['id'] print('created_listener_policy: ' + store['created_listener_policy']) def test_get_listener_policy(self, createGen2Service): policy = get_load_balancer_listener_policy( - createGen2Service, store['created_load_balancer'], store['created_listener'], store['created_listener_policy']) + createGen2Service, + store['created_load_balancer'], + store['created_listener'], + store['created_listener_policy'], + ) assertGetPatchResponse(policy) def test_update_listener_policy(self, createGen2Service): policy = update_load_balancer_listener_policy( - createGen2Service, store['created_load_balancer'], store['created_listener'], store['created_listener_policy']) + createGen2Service, + store['created_load_balancer'], + store['created_listener'], + store['created_listener_policy'], + ) assertGetPatchResponse(policy) # listener policy rules def test_list_listener_policies_rules(self, createGen2Service): rules = list_load_balancer_listener_policy_rules( - createGen2Service, store['created_load_balancer'], store['created_listener'], store['created_listener_policy']) + createGen2Service, + store['created_load_balancer'], + store['created_listener'], + store['created_listener_policy'], + ) assertListResponse(rules, 'rules') def test_create_listener_policy_rule(self, createGen2Service): rule = create_load_balancer_listener_policy_rule( - createGen2Service, store['created_load_balancer'], store['created_listener'], store['created_listener_policy']) + createGen2Service, + store['created_load_balancer'], + store['created_listener'], + store['created_listener_policy'], + ) assert rule.status_code == 201 res = rule.get_result() assert res['id'] is not None @@ -1906,47 +1964,55 @@ def test_create_listener_policy_rule(self, createGen2Service): def test_get_listener_policy_rule(self, createGen2Service): rule = get_load_balancer_listener_policy_rule( - createGen2Service, store['created_load_balancer'], store['created_listener'], store['created_listener_policy'], store['created_listener_policy_rule']) + createGen2Service, + store['created_load_balancer'], + store['created_listener'], + store['created_listener_policy'], + store['created_listener_policy_rule'], + ) assert rule.status_code == 200 res = rule.get_result() assert res['id'] is not None def test_update_listener_policy_rule(self, createGen2Service): rule = update_load_balancer_listener_policy_rule( - createGen2Service, store['created_load_balancer'], store['created_listener'], store['created_listener_policy'], store['created_listener_policy_rule']) + createGen2Service, + store['created_load_balancer'], + store['created_listener'], + store['created_listener_policy'], + store['created_listener_policy_rule'], + ) assert rule.status_code == 200 res = rule.get_result() assert res['id'] is not None def test_create_pool(self, createGen2Service): - pool = create_load_balancer_pool( - createGen2Service, store['created_load_balancer']) + pool = create_load_balancer_pool(createGen2Service, store['created_load_balancer']) assertCreateResponse(pool) store['created_lb_pool'] = pool.get_result()['id'] def test_list_lb_pools(self, createGen2Service): - pools = list_load_balancer_pools( - createGen2Service, store['created_load_balancer']) + pools = list_load_balancer_pools(createGen2Service, store['created_load_balancer']) assertListResponse(pools, 'pools') def test_get_pool(self, createGen2Service): - pool = get_load_balancer_pool( - createGen2Service, store['created_load_balancer'], store['created_lb_pool']) + pool = get_load_balancer_pool(createGen2Service, store['created_load_balancer'], store['created_lb_pool']) assertGetPatchResponse(pool) def test_update_pool(self, createGen2Service): - pool = update_load_balancer_pool( - createGen2Service, store['created_load_balancer'], store['created_lb_pool']) + pool = update_load_balancer_pool(createGen2Service, store['created_load_balancer'], store['created_lb_pool']) assertGetPatchResponse(pool) def test_put_pool_member(self, createGen2Service): member = replace_load_balancer_pool_members( - createGen2Service, store['created_load_balancer'], store['created_lb_pool']) + createGen2Service, store['created_load_balancer'], store['created_lb_pool'] + ) assert member.status_code == 202 def test_create_pool_member(self, createGen2Service): member = create_load_balancer_pool_member( - createGen2Service, store['created_load_balancer'], store['created_lb_pool']) + createGen2Service, store['created_load_balancer'], store['created_lb_pool'] + ) assert member.status_code == 201 res = member.get_result() assert res['id'] is not None @@ -1954,59 +2020,73 @@ def test_create_pool_member(self, createGen2Service): def test_list_lb_pool_member(self, createGen2Service): members = list_load_balancer_pool_members( - createGen2Service, store['created_load_balancer'], store['created_lb_pool']) + createGen2Service, store['created_load_balancer'], store['created_lb_pool'] + ) assertListResponse(members, 'members') def test_get_pool_member(self, createGen2Service): member = get_load_balancer_pool_member( - createGen2Service, store['created_load_balancer'], store['created_lb_pool'], store['created_lb_pool_member']) + createGen2Service, store['created_load_balancer'], store['created_lb_pool'], store['created_lb_pool_member'] + ) assert member.status_code == 200 assert member.get_result()['id'] is not None def test_update_pool_member(self, createGen2Service): member = update_load_balancer_pool_member( - createGen2Service, store['created_load_balancer'], store['created_lb_pool'], store['created_lb_pool_member']) + createGen2Service, store['created_load_balancer'], store['created_lb_pool'], store['created_lb_pool_member'] + ) assert member.status_code == 200 assert member.get_result()['id'] is not None # delete listener policy rule def test_delete_listener_policy_rule(self, createGen2Service): rule = delete_load_balancer_listener_policy_rule( - createGen2Service, store['created_load_balancer'], store['created_listener'], store['created_listener_policy'], store['created_listener_policy_rule']) + createGen2Service, + store['created_load_balancer'], + store['created_listener'], + store['created_listener_policy'], + store['created_listener_policy_rule'], + ) assertDeleteResponse(rule) # delete listener policy def test_delete_listener_policy(self, createGen2Service): policy = delete_load_balancer_listener_policy( - createGen2Service, store['created_load_balancer'], store['created_listener'], store['created_listener_policy']) + createGen2Service, + store['created_load_balancer'], + store['created_listener'], + store['created_listener_policy'], + ) assertDeleteResponse(policy) # delete listener def test_delete_listener(self, createGen2Service): listener = delete_load_balancer_listener( - createGen2Service, store['created_load_balancer'], store['created_listener']) + createGen2Service, store['created_load_balancer'], store['created_listener'] + ) assertDeleteResponse(listener) # delete pool member def test_delete_pool_member(self, createGen2Service): pool = delete_load_balancer_pool_member( - createGen2Service, store['created_load_balancer'], store['created_lb_pool'], store['created_lb_pool_member']) + createGen2Service, store['created_load_balancer'], store['created_lb_pool'], store['created_lb_pool_member'] + ) assertDeleteResponse(pool) # delete pool def test_delete_pool(self, createGen2Service): - pool = delete_load_balancer_pool( - createGen2Service, store['created_load_balancer'], store['created_lb_pool']) + pool = delete_load_balancer_pool(createGen2Service, store['created_load_balancer'], store['created_lb_pool']) assertDeleteResponse(pool) # delete load balancer def test_delete_load_balancer(self, createGen2Service): load_balancer = delete_load_balancer( - createGen2Service, store['created_load_balancer'], store['created_load_balancer_etag']) + createGen2Service, store['created_load_balancer'], store['created_load_balancer_etag'] + ) assertDeleteResponse(load_balancer) -class TestVPCFlowLogs(): +class TestVPCFlowLogs: def test_create_flow_log_collector(self, createGen2Service): fl = create_flow_log_collector(createGen2Service, store['created_vpc']) assertCreateResponse(fl) @@ -2029,10 +2109,16 @@ def test_delete_flow_log_collector(self, createGen2Service): assertDeleteResponse(fl) -class TestVPCInstanceTemplates(): +class TestVPCInstanceTemplates: def test_create_instance_template(self, createGen2Service): it = create_instance_template( - createGen2Service, store['created_vpc'], store['instance_profile'], store['zone'], store['image_id'], store['created_subnet']) + createGen2Service, + store['created_vpc'], + store['instance_profile'], + store['zone'], + store['image_id'], + store['created_subnet'], + ) assertCreateResponse(it) store['created_it'] = it.get_result()['id'] @@ -2049,10 +2135,9 @@ def test_update_instance_template(self, createGen2Service): assertGetPatchResponse(it) -class TestVPCInstanceGroups(): +class TestVPCInstanceGroups: def test_create_instance_groups(self, createGen2Service): - ig = create_instance_group( - createGen2Service, store['created_it'], store['created_subnet']) + ig = create_instance_group(createGen2Service, store['created_it'], store['created_subnet']) assertCreateResponse(ig) store['created_ig'] = ig.get_result()['id'] @@ -2069,77 +2154,68 @@ def test_update_instance_group(self, createGen2Service): assertGetPatchResponse(ig) def test_create_instance_group_manager(self, createGen2Service): - igm = create_instance_group_manager( - createGen2Service, store['created_ig']) + igm = create_instance_group_manager(createGen2Service, store['created_ig']) assertCreateResponse(igm) store['created_igm'] = igm.get_result()['id'] def test_list_instance_group_managers(self, createGen2Service): - igm = list_instance_group_managers( - createGen2Service, store['created_ig']) + igm = list_instance_group_managers(createGen2Service, store['created_ig']) assertListResponse(igm, 'managers') def test_get_instance_group_manager(self, createGen2Service): - igm = get_instance_group_manager( - createGen2Service, store['created_ig'], store['created_igm']) + igm = get_instance_group_manager(createGen2Service, store['created_ig'], store['created_igm']) assertGetPatchResponse(igm) def test_update_instance_group_manager(self, createGen2Service): - igm = update_instance_group_manager( - createGen2Service, store['created_ig'], store['created_igm']) + igm = update_instance_group_manager(createGen2Service, store['created_ig'], store['created_igm']) assertGetPatchResponse(igm) def test_create_instance_group_manager_policy(self, createGen2Service): - igmp = create_instance_group_manager_policy( - createGen2Service, store['created_ig'], store['created_igm']) + igmp = create_instance_group_manager_policy(createGen2Service, store['created_ig'], store['created_igm']) assertCreateResponse(igmp) store['created_igmp'] = igmp.get_result()['id'] def test_list_instance_group_manager_policies(self, createGen2Service): - igmps = list_instance_group_manager_policies( - createGen2Service, store['created_ig'], store['created_igm']) + igmps = list_instance_group_manager_policies(createGen2Service, store['created_ig'], store['created_igm']) assertListResponse(igmps, 'policies') def test_get_instance_group_manager_policy(self, createGen2Service): igmp = get_instance_group_manager_policy( - createGen2Service, store['created_ig'], store['created_igm'], store['created_igmp']) + createGen2Service, store['created_ig'], store['created_igm'], store['created_igmp'] + ) assertGetPatchResponse(igmp) def test_update_instance_group_manager_policy(self, createGen2Service): igmp = update_instance_group_manager_policy( - createGen2Service, store['created_ig'], store['created_igm'], store['created_igmp']) + createGen2Service, store['created_ig'], store['created_igm'], store['created_igmp'] + ) assertGetPatchResponse(igmp) def test_list_instance_group_memberships(self, createGen2Service): - igm = list_instance_group_memberships( - createGen2Service, store['created_ig']) + igm = list_instance_group_memberships(createGen2Service, store['created_ig']) assertListResponse(igm, 'memberships') store['created_mbr'] = igm.get_result()['memberships'][0]['id'] def test_get_instance_group_membership(self, createGen2Service): - igm = get_instance_group_membership( - createGen2Service, store['created_ig'], store['created_mbr']) + igm = get_instance_group_membership(createGen2Service, store['created_ig'], store['created_mbr']) assert igm.status_code == 200 def test_update_instance_group_membership(self, createGen2Service): - igm = update_instance_group_membership( - createGen2Service, store['created_ig'], store['created_mbr']) + igm = update_instance_group_membership(createGen2Service, store['created_ig'], store['created_mbr']) response = igm.get_result() assert igm.status_code == 200 assert response['id'] is not None def test_delete_instance_group_membership(self, createGen2Service): - igm = delete_instance_group_membership( - createGen2Service, store['created_ig'], store['created_mbr']) + igm = delete_instance_group_membership(createGen2Service, store['created_ig'], store['created_mbr']) assertDeleteResponse(igm) def test_delete_instance_group_memberships(self, createGen2Service): - igm = delete_instance_group_memberships( - createGen2Service, store['created_ig']) + igm = delete_instance_group_memberships(createGen2Service, store['created_ig']) assertDeleteResponse(igm) -class TestDedicatedHost(): +class TestDedicatedHost: def test_create_dedicated_host_group(self, createGen2Service): dhg = create_dedicated_host_group(createGen2Service) assertCreateResponse(dhg) @@ -2155,8 +2231,7 @@ def test_get_dedicated_host_profile(self, createGen2Service): assert ig.status_code == 200 def test_create_dedicated_host(self, createGen2Service): - dh = create_dedicated_host( - createGen2Service, 'bx2-host-152x608', store['created_dhg']) + dh = create_dedicated_host(createGen2Service, 'bx2-host-152x608', store['created_dhg']) assertCreateResponse(dh) store['created_dh'] = dh.get_result()['id'] @@ -2177,8 +2252,7 @@ def test_get_dedicated_host(self, createGen2Service): assertGetPatchResponse(ig) def test_update_dedicated_host_group(self, createGen2Service): - ig = update_dedicated_host_group( - createGen2Service, store['created_dhg']) + ig = update_dedicated_host_group(createGen2Service, store['created_dhg']) assertGetPatchResponse(ig) def test_update_dedicated_host(self, createGen2Service): @@ -2186,22 +2260,19 @@ def test_update_dedicated_host(self, createGen2Service): assertGetPatchResponse(ig) def test_delete_dedicated_host(self, createGen2Service): - igm = delete_dedicated_host( - createGen2Service, store['created_dh']) + igm = delete_dedicated_host(createGen2Service, store['created_dh']) assertDeleteResponse(igm) - + def test_delete_dedicated_host_group(self, createGen2Service): - igm = delete_dedicated_host_group( - createGen2Service, store['created_dhg']) + igm = delete_dedicated_host_group(createGen2Service, store['created_dhg']) assertDeleteResponse(igm) -class TestBackupAsaService(): + +class TestBackupAsaService: def test_list_backup_policies(self, createGen2Service): - bckPolicies = list_backup_policies( - createGen2Service - ) + bckPolicies = list_backup_policies(createGen2Service) assertListResponse(bckPolicies, 'backup_policies') - + def test_create_backup_policy(self, createGen2Service): name = 'my-backup-policy' bckPolicies = create_backup_policy(createGen2Service, name) @@ -2210,27 +2281,18 @@ def test_create_backup_policy(self, createGen2Service): store['created_backup_policy_etag'] = bckPolicies.get_headers()['ETag'] def test_list_backup_policy_plans(self, createGen2Service): - bckPolicyPlans = list_backup_policy_plans( - createGen2Service, - store['created_backup_policy'], - 'my-backup-policy' - ) + bckPolicyPlans = list_backup_policy_plans(createGen2Service, store['created_backup_policy'], 'my-backup-policy') assertListResponse(bckPolicyPlans, 'plans') + def test_create_backup_policy_plan(self, createGen2Service): - name='my-backup-policy-plan' - bckPolicyPlan = create_backup_policy_plan( - createGen2Service, - store['created_backup_policy'], - name - ) + name = 'my-backup-policy-plan' + bckPolicyPlan = create_backup_policy_plan(createGen2Service, store['created_backup_policy'], name) assertCreateResponse(bckPolicyPlan) store['created_backup_policy_plan'] = bckPolicyPlan.get_result()['id'] def test_get_backup_policy_plan(self, createGen2Service): bckPolicyPlan = get_backup_policy_plan( - createGen2Service, - store['created_backup_policy'], - store['created_backup_policy_plan'] + createGen2Service, store['created_backup_policy'], store['created_backup_policy_plan'] ) store['created_backup_policy_plan_etag'] = bckPolicyPlan.get_headers()['ETag'] assertGetPatchResponse(bckPolicyPlan) @@ -2241,32 +2303,24 @@ def test_update_backup_policy_plan(self, createGen2Service): store['created_backup_policy'], store['created_backup_policy_plan'], store['created_backup_policy_plan_etag'], - 'my-backup-policy-plan-updated' + 'my-backup-policy-plan-updated', ) assertGetPatchResponse(bckPolicyPlan) def test_list_backup_policy_jobs(self, createGen2Service): - - bckPolicyJjobs = list_backup_policy_jobs( - createGen2Service, - store['created_backup_policy'] - ) + + bckPolicyJjobs = list_backup_policy_jobs(createGen2Service, store['created_backup_policy']) assertListResponse(bckPolicyJjobs, 'jobs') store['created_backup_policy_job'] = bckPolicyJjobs.get_result()['jobs'][0]['id'] def test_get_backup_policy_job(self, createGen2Service): bckPolicyjob = get_backup_policy_job( - createGen2Service, - store['created_backup_policy'], - store['created_backup_policy_job'] + createGen2Service, store['created_backup_policy'], store['created_backup_policy_job'] ) assertGetPatchResponse(bckPolicyjob) def test_get_backup_policy(self, createGen2Service): - bckPolicy = get_backup_policy( - createGen2Service, - store['created_backup_policy'] - ) + bckPolicy = get_backup_policy(createGen2Service, store['created_backup_policy']) assertGetPatchResponse(bckPolicy) def test_update_backup_policy(self, createGen2Service): @@ -2274,27 +2328,27 @@ def test_update_backup_policy(self, createGen2Service): createGen2Service, store['created_backup_policy'], store['created_backup_policy_etag'], - 'my-backup-policy-updated' + 'my-backup-policy-updated', ) assertGetPatchResponse(bckPolicy) - + def test_delete_backup_policy_plan(self, createGen2Service): bckPolicyPlan = delete_backup_policy_plan( createGen2Service, store['created_backup_policy'], store['created_backup_policy_plan'], - store['created_backup_policy_plan_etag'] + store['created_backup_policy_plan_etag'], ) assertDeleteRequestAcceptedResponse(bckPolicyPlan) def test_delete_backup_policy(self, createGen2Service): bckPolicy = delete_backup_policy( - createGen2Service, - store['created_backup_policy'], - store['created_backup_policy_etag'] + createGen2Service, store['created_backup_policy'], store['created_backup_policy_etag'] ) assertDeleteRequestAcceptedResponse(bckPolicy) -class TestPlacementGroup(): + + +class TestPlacementGroup: def test_create_placement_group(self, createGen2Service): name = 'my-placement-group' pg = create_placement_group(createGen2Service, name) @@ -2311,23 +2365,23 @@ def test_get_placement_group(self, createGen2Service): assert pg.get_result() is not None def test_update_placement_group(self, createGen2Service): - pg = update_placement_group( - createGen2Service, store['created_placement_group'], 'my-placement-group1') + pg = update_placement_group(createGen2Service, store['created_placement_group'], 'my-placement-group1') assertGetPatchResponse(pg) def test_delete_placement_group(self, createGen2Service): pg = delete_placement_group(createGen2Service, store['created_placement_group']) assertDeleteResponse(pg) -class TestTeardown(): + +class TestTeardown: def test_delete_instance_group_manager_policy(self, createGen2Service): igmp = delete_instance_group_manager_policy( - createGen2Service, store['created_ig'], store['created_igm'], store['created_igmp']) + createGen2Service, store['created_ig'], store['created_igm'], store['created_igmp'] + ) assertDeleteResponse(igmp) def test_delete_instance_group_manager(self, createGen2Service): - igm = delete_instance_group_manager( - createGen2Service, store['created_ig'], store['created_igm']) + igm = delete_instance_group_manager(createGen2Service, store['created_ig'], store['created_igm']) assertDeleteResponse(igm) def test_delete_instance_group(self, createGen2Service): @@ -2339,23 +2393,21 @@ def test_delete_instance_template(self, createGen2Service): assertDeleteResponse(it) def test_delete_ipsec_policy(self, createGen2Service): - ipsec_policy = delete_ipsec_policy( - createGen2Service, store['created_ipsec_policy_id']) + ipsec_policy = delete_ipsec_policy(createGen2Service, store['created_ipsec_policy_id']) assertDeleteResponse(ipsec_policy) def test_delete_ike_policy(self, createGen2Service): - ike_policy = delete_ike_policy( - createGen2Service, store['created_ike_policy_id']) + ike_policy = delete_ike_policy(createGen2Service, store['created_ike_policy_id']) assertDeleteResponse(ike_policy) def test_delete_vpn_gateway_connection(self, createGen2Service): vpn_gateway_connection = delete_vpn_gateway_connection( - createGen2Service, store['created_vpn_gateway_id'], store['created_vpn_gateway_connection_id']) + createGen2Service, store['created_vpn_gateway_id'], store['created_vpn_gateway_connection_id'] + ) assertDeleteResponse(vpn_gateway_connection) def test_delete_vpn_gateway(self, createGen2Service): - vpn_gateway = delete_vpn_gateway( - createGen2Service, store['created_vpn_gateway_id']) + vpn_gateway = delete_vpn_gateway(createGen2Service, store['created_vpn_gateway_id']) assert vpn_gateway.status_code == 202 def test_delete_floating_ip(self, createGen2Service): @@ -2368,7 +2420,8 @@ def test_delete_pgw(self, createGen2Service): def test_delete_instance_vol_attachment(self, createGen2Service): vol_attach = delete_instance_volume_attachment( - createGen2Service, store['created_instance_id'], store['created_vol_atchmt']) + createGen2Service, store['created_instance_id'], store['created_vol_atchmt'] + ) assertDeleteResponse(vol_attach) def test_delete_instance(self, createGen2Service): @@ -2398,7 +2451,7 @@ def test_delete_vpc_dns_res_binding(self, createGen2Service): def test_delete_vpc(self, createGen2Service): vpc = delete_vpc(createGen2Service, store['created_vpc']) assertDeleteResponse(vpc) - + def test_delete_vpc(self, createGen2Service): vpc = delete_vpc(createGen2Service, store['created_vpc_hub']) assertDeleteResponse(vpc) @@ -2407,6 +2460,7 @@ def test_delete_image(self, createGen2Service): image = delete_image(createGen2Service, store['image_id']) assertDeleteResponse(image) + # -------------------------------------------------------- # test helpers # -------------------------------------------------------- @@ -2420,6 +2474,7 @@ def list_floating_ips(service): response = service.list_floating_ips() return response + # -------------------------------------------------------- # create_floating_ip() # -------------------------------------------------------- @@ -2438,8 +2493,7 @@ def create_floating_ip(service): # Construct a dict representation of a FloatingIPPrototypeFloatingIPByZone model floating_ip_prototype_model = {} floating_ip_prototype_model['name'] = generate_name("fip") - floating_ip_prototype_model[ - 'resource_group'] = resource_group_identity_model + floating_ip_prototype_model['resource_group'] = resource_group_identity_model floating_ip_prototype_model['zone'] = zone_identity_model # Set up parameter values @@ -2447,6 +2501,8 @@ def create_floating_ip(service): response = service.create_floating_ip(floating_ip_prototype) return response + + # -------------------------------------------------------- # delete_floating_ip() # -------------------------------------------------------- @@ -2456,6 +2512,7 @@ def delete_floating_ip(service, id): response = service.delete_floating_ip(id) return response + # -------------------------------------------------------- # get_floating_ip() # -------------------------------------------------------- @@ -2465,6 +2522,7 @@ def get_floating_ip(service, id): response = service.get_floating_ip(id) return response + # -------------------------------------------------------- # update_floating_ip() # -------------------------------------------------------- @@ -2479,6 +2537,7 @@ def update_floating_ip(service, id): ) return response + # -------------------------------------------------------- # list_regions() # -------------------------------------------------------- @@ -2488,6 +2547,7 @@ def list_regions(service): response = service.list_regions() return response + # -------------------------------------------------------- # get_region() # -------------------------------------------------------- @@ -2497,6 +2557,7 @@ def get_region(service, name): response = service.get_region(name) return response + # -------------------------------------------------------- # list_region_zones() # -------------------------------------------------------- @@ -2506,6 +2567,7 @@ def list_region_zones(service, region_name): response = service.list_region_zones(region_name) return response + # -------------------------------------------------------- # get_region_zone() # -------------------------------------------------------- @@ -2520,6 +2582,7 @@ def get_region_zone(service, region_name, zone_name): # Bare Metal Servers # -------------------------------------------------------- + def list_bare_metal_server_profiles(service): list_bare_metal_server_profiles_response = service.list_bare_metal_server_profiles() return list_bare_metal_server_profiles_response @@ -2535,8 +2598,9 @@ def list_bare_metal_servers(service): return list_bare_metal_servers_response -def create_bare_metal_server(service, profile_name, subnet_id, image_id, key_id, vpc_id, zone_name, user_data, - bare_metal_server_name): +def create_bare_metal_server( + service, profile_name, subnet_id, image_id, key_id, vpc_id, zone_name, user_data, bare_metal_server_name +): bare_metal_server_profile_identity_model = {} bare_metal_server_profile_identity_model['name'] = profile_name @@ -2575,7 +2639,7 @@ def create_bare_metal_server(service, profile_name, subnet_id, image_id, key_id, name=bare_metal_server_name, trusted_platform_module=bare_metal_server_trusted_platform_module_prototype_model, vpc=vpc_identity_model, - #enable_secure_boot=True + # enable_secure_boot=True ) return create_bare_metal_server_response @@ -2587,9 +2651,7 @@ def get_bare_metal_server_console(service, bare_metal_server_id): def create_bare_metal_server_console_access_token(service, bare_metal_server_id, console_type): create_bare_metal_server_console_access_token_response = service.create_bare_metal_server_console_access_token( - bare_metal_server_id, - console_type=console_type, - force=True + bare_metal_server_id, console_type=console_type, force=True ) return create_bare_metal_server_console_access_token_response @@ -2608,9 +2670,7 @@ def update_bare_metal_server_disk(service, bare_metal_server_id, id, disk_name): bare_metal_server_disk_patch_model = {} bare_metal_server_disk_patch_model['name'] = disk_name update_bare_metal_server_disk_response = service.update_bare_metal_server_disk( - bare_metal_server_id, - id, - bare_metal_server_disk_patch=bare_metal_server_disk_patch_model + bare_metal_server_id, id, bare_metal_server_disk_patch=bare_metal_server_disk_patch_model ) return update_bare_metal_server_disk_response @@ -2622,8 +2682,16 @@ def list_bare_metal_server_network_interfaces(service, bare_metal_server_id): return list_bare_metal_server_network_interfaces_response -def create_bare_metal_server_network_interface(service, bare_metal_server_id, vlans, subnet_id, inetrface_type, - nic_name, allow_ip_spoofing, enable_infrastructure_nat): +def create_bare_metal_server_network_interface( + service, + bare_metal_server_id, + vlans, + subnet_id, + inetrface_type, + nic_name, + allow_ip_spoofing, + enable_infrastructure_nat, +): allowed_vlans = vlans subnet_identity_model = {} subnet_identity_model['id'] = subnet_id @@ -2637,21 +2705,21 @@ def create_bare_metal_server_network_interface(service, bare_metal_server_id, vl create_bare_metal_server_network_interface_response = service.create_bare_metal_server_network_interface( bare_metal_server_id, - bare_metal_server_network_interface_prototype=bare_metal_server_network_interface_prototype_model + bare_metal_server_network_interface_prototype=bare_metal_server_network_interface_prototype_model, ) return create_bare_metal_server_network_interface_response def get_bare_metal_server_network_interface(service, bare_metal_server_id, id): get_bare_metal_server_network_interface_response = service.get_bare_metal_server_network_interface( - bare_metal_server_id, - id + bare_metal_server_id, id ) return get_bare_metal_server_network_interface_response -def update_bare_metal_server_network_interface(service, bare_metal_server_id, id, bms_nic_name, allow_ip_spoofing, - enable_infrastructure_nat): +def update_bare_metal_server_network_interface( + service, bare_metal_server_id, id, bms_nic_name, allow_ip_spoofing, enable_infrastructure_nat +): bare_metal_server_network_interface_patch_model = {} bare_metal_server_network_interface_patch_model['name'] = bms_nic_name bare_metal_server_network_interface_patch_model['allow_ip_spoofing'] = allow_ip_spoofing @@ -2659,66 +2727,60 @@ def update_bare_metal_server_network_interface(service, bare_metal_server_id, id update_bare_metal_server_network_interface_response = service.update_bare_metal_server_network_interface( bare_metal_server_id, id, - bare_metal_server_network_interface_patch=bare_metal_server_network_interface_patch_model + bare_metal_server_network_interface_patch=bare_metal_server_network_interface_patch_model, ) return update_bare_metal_server_network_interface_response def delete_bare_metal_server_network_interface(service, bare_metal_server_id, id): delete_bare_metal_server_network_interface_response = service.delete_bare_metal_server_network_interface( - bare_metal_server_id, - id + bare_metal_server_id, id ) return delete_bare_metal_server_network_interface_response -def list_bare_metal_server_network_interface_floating_ips(service, bare_metal_server_id, network_interface_id, ): - list_bare_metal_server_network_interface_floating_ips_response = service.list_bare_metal_server_network_interface_floating_ips( - bare_metal_server_id, - network_interface_id +def list_bare_metal_server_network_interface_floating_ips( + service, + bare_metal_server_id, + network_interface_id, +): + list_bare_metal_server_network_interface_floating_ips_response = ( + service.list_bare_metal_server_network_interface_floating_ips(bare_metal_server_id, network_interface_id) ) return list_bare_metal_server_network_interface_floating_ips_response def get_bare_metal_server_network_interface_floating_ip(service, bare_metal_server_id, network_interface_id, id): - get_bare_metal_server_network_interface_floating_ip_response = service.get_bare_metal_server_network_interface_floating_ip( - bare_metal_server_id, - network_interface_id, - id + get_bare_metal_server_network_interface_floating_ip_response = ( + service.get_bare_metal_server_network_interface_floating_ip(bare_metal_server_id, network_interface_id, id) ) return get_bare_metal_server_network_interface_floating_ip_response def add_bare_metal_server_network_interface_floating_ip(service, bare_metal_server_id, network_interface_id, id): - add_bare_metal_server_network_interface_floating_ip_response = service.add_bare_metal_server_network_interface_floating_ip( - bare_metal_server_id, - network_interface_id, - id + add_bare_metal_server_network_interface_floating_ip_response = ( + service.add_bare_metal_server_network_interface_floating_ip(bare_metal_server_id, network_interface_id, id) ) return add_bare_metal_server_network_interface_floating_ip_response + def list_bare_metal_server_network_interface_ips(service, bare_metal_server_id, network_interface_id): - list_bare_metal_server_network_interface_floating_ip_response = service.list_bare_metal_server_network_interface_ips( - bare_metal_server_id, - network_interface_id + list_bare_metal_server_network_interface_floating_ip_response = ( + service.list_bare_metal_server_network_interface_ips(bare_metal_server_id, network_interface_id) ) return list_bare_metal_server_network_interface_floating_ip_response def get_bare_metal_server_network_interface_ip(service, bare_metal_server_id, network_interface_id, id): get_bare_metal_server_network_interface_ip_response = service.get_bare_metal_server_network_interface_ip( - bare_metal_server_id, - network_interface_id, - id + bare_metal_server_id, network_interface_id, id ) return get_bare_metal_server_network_interface_ip_response def remove_bare_metal_server_network_interface_floating_ip(service, bare_metal_server_id, network_interface_id, id): - remove_bare_metal_server_network_interface_floating_ip_response = service.remove_bare_metal_server_network_interface_floating_ip( - bare_metal_server_id, - network_interface_id, - id + remove_bare_metal_server_network_interface_floating_ip_response = ( + service.remove_bare_metal_server_network_interface_floating_ip(bare_metal_server_id, network_interface_id, id) ) return remove_bare_metal_server_network_interface_floating_ip_response @@ -2734,8 +2796,7 @@ def update_bare_metal_server(service, id, name, enable_secure_boot): bare_metal_server_patch_model['enable_secure_boot'] = enable_secure_boot update_bare_metal_server_response = service.update_bare_metal_server( - id, - bare_metal_server_patch=bare_metal_server_patch_model + id, bare_metal_server_patch=bare_metal_server_patch_model ) return update_bare_metal_server_response @@ -2761,12 +2822,10 @@ def create_bare_metal_server_start(service, id): def create_bare_metal_server_stop(service, id, stopping_type): - create_bare_metal_server_stop_response = service.stop_bare_metal_server( - id, - stopping_type - ) + create_bare_metal_server_stop_response = service.stop_bare_metal_server(id, stopping_type) return create_bare_metal_server_stop_response + # -------------------------------------------------------- # Backup Policies # -------------------------------------------------------- @@ -2774,6 +2833,7 @@ def list_backup_policies(service): response = service.list_backup_policies() return response + def create_backup_policy(service, name): # Construct a dict representation of a BackupPolicyPlanDeletionTriggerPrototype model backup_policy_plan_deletion_trigger_prototype_model = { @@ -2799,21 +2859,22 @@ def create_backup_policy(service, name): ) return response + def list_backup_policy_jobs(service, backup_policy_id): response = service.list_backup_policy_jobs(backup_policy_id) return response + def get_backup_policy_job(service, backup_policy_id, job_id): response = service.get_backup_policy_job(backup_policy_id, job_id) return response + def list_backup_policy_plans(service, backup_policy_id, name): - response = service.list_backup_policy_plans( - backup_policy_id=backup_policy_id, - name=name - ) + response = service.list_backup_policy_plans(backup_policy_id=backup_policy_id, name=name) return response + def create_backup_policy_plan(service, backup_policy_id, name): # Construct a dict representation of a BackupPolicyPlanDeletionTriggerPrototype model backup_policy_plan_deletion_trigger_prototype_model = { @@ -2846,17 +2907,16 @@ def create_backup_policy_plan(service, backup_policy_id, name): clone_policy=backup_policy_plan_clone_policy_prototype_model, deletion_trigger=backup_policy_plan_deletion_trigger_prototype_model, remote_region_policies=backup_policy_plan_remote_region_policies_protoype_model, - name=name + name=name, ) return response + def get_backup_policy_plan(service, backup_policy_id, backup_policy_plan_id): - response = service.get_backup_policy_plan( - backup_policy_id=backup_policy_id, - id=backup_policy_plan_id - ) + response = service.get_backup_policy_plan(backup_policy_id=backup_policy_id, id=backup_policy_plan_id) return response + def update_backup_policy_plan(service, backup_policy_id, backup_policy_plan_id, etag, name): # Construct a dict representation of a BackupPolicyPlanDeletionTriggerPatch model backup_policy_plan_deletion_trigger_patch_model = { @@ -2892,16 +2952,16 @@ def update_backup_policy_plan(service, backup_policy_id, backup_policy_plan_id, backup_policy_id=backup_policy_id, id=backup_policy_plan_id, backup_policy_plan_patch=backup_policy_plan_patch_model, - if_match=etag + if_match=etag, ) return response + def get_backup_policy(service, backup_policy_id): - response = service.get_backup_policy( - id=backup_policy_id - ) + response = service.get_backup_policy(id=backup_policy_id) return response + def update_backup_policy(service, backup_policy_id, etag, name): # Construct a dict representation of a BackupPolicyPatch model backup_policy_patch_model = { @@ -2910,26 +2970,23 @@ def update_backup_policy(service, backup_policy_id, etag, name): } response = service.update_backup_policy( - id=backup_policy_id, - backup_policy_patch=backup_policy_patch_model, - if_match=etag + id=backup_policy_id, backup_policy_patch=backup_policy_patch_model, if_match=etag ) return response + def delete_backup_policy_plan(service, backup_policy_id, backup_policy_plan_id, etag): response = service.delete_backup_policy_plan( - backup_policy_id=backup_policy_id, - id=backup_policy_plan_id, - if_match=etag + backup_policy_id=backup_policy_id, id=backup_policy_plan_id, if_match=etag ) return response + def delete_backup_policy(service, backup_policy_id, etag): - response = service.delete_backup_policy( - id=backup_policy_id, - if_match=etag - ) + response = service.delete_backup_policy(id=backup_policy_id, if_match=etag) return response + + # -------------------------------------------------------- # list_images() # -------------------------------------------------------- @@ -2939,6 +2996,7 @@ def list_images(service): response = service.list_images() return response + # -------------------------------------------------------- # create_image() # -------------------------------------------------------- @@ -2948,8 +3006,7 @@ def create_image(service): # Construct a dict representation of a ImageFilePrototype model image_file_prototype_model = {} - image_file_prototype_model[ - 'href'] = 'cos://us-south/custom-image-vpc-bucket/customImage-0.vhd' + image_file_prototype_model['href'] = 'cos://us-south/custom-image-vpc-bucket/customImage-0.vhd' # Construct a dict representation of a OperatingSystemIdentityByName model operating_system_identity_model = {} @@ -2964,8 +3021,7 @@ def create_image(service): image_prototype_model['name'] = generate_name('image') image_prototype_model['resource_group'] = resource_group_identity_model image_prototype_model['file'] = image_file_prototype_model - image_prototype_model[ - 'operating_system'] = operating_system_identity_model + image_prototype_model['operating_system'] = operating_system_identity_model # Set up parameter values image_prototype = image_prototype_model @@ -2973,6 +3029,7 @@ def create_image(service): response = service.create_image(image_prototype) return response + # -------------------------------------------------------- # delete_image() # -------------------------------------------------------- @@ -2982,6 +3039,7 @@ def delete_image(service, id): response = service.delete_image(id) return response + # -------------------------------------------------------- # get_image() # -------------------------------------------------------- @@ -2991,6 +3049,7 @@ def get_image(service, id): response = service.get_image(id) return response + # -------------------------------------------------------- # update_image() # -------------------------------------------------------- @@ -3005,47 +3064,40 @@ def update_image(service, id): ) return response + def create_image_export_job(service, id): cloud_object_storage_bucket_identity_model = { 'name': 'bucket-27200-lwx4cfvcue', } image_export_job = service.create_image_export_job( - image_id=id, - name='my-image-export-job', - storage_bucket=cloud_object_storage_bucket_identity_model + image_id=id, name='my-image-export-job', storage_bucket=cloud_object_storage_bucket_identity_model ) return image_export_job + def list_image_export_jobs(service, id): - response = service.list_image_export_jobs( - image_id=id - ) + response = service.list_image_export_jobs(image_id=id) return response + def update_image_export_job(service, id, export_id): - image_export_job_patch_model = { - 'name' : generate_name('image-export-job-updated') - } + image_export_job_patch_model = {'name': generate_name('image-export-job-updated')} image_export_job = service.update_image_export_job( - image_id=id, - id=export_id, - image_export_job_patch=image_export_job_patch_model + image_id=id, id=export_id, image_export_job_patch=image_export_job_patch_model ) return image_export_job + def get_image_export_job(service, id, export_id): - image_export_job = service.get_image_export_job( - image_id=id, - id=export_id - ) + image_export_job = service.get_image_export_job(image_id=id, id=export_id) return image_export_job + def delete_image_export_job(service, id, export_id): - response = service.delete_image_export_job( - image_id=id, - id=export_id - ) + response = service.delete_image_export_job(image_id=id, id=export_id) return response + + # -------------------------------------------------------- # list_operating_systems() # -------------------------------------------------------- @@ -3055,6 +3107,7 @@ def list_operating_systems(service): response = service.list_operating_systems() return response + # -------------------------------------------------------- # get_operating_system() # -------------------------------------------------------- @@ -3064,6 +3117,7 @@ def get_operating_system(service, name): response = service.get_operating_system(name) return response + # -------------------------------------------------------- # list_instance_profiles() # -------------------------------------------------------- @@ -3073,6 +3127,7 @@ def list_instance_profiles(service): response = service.list_instance_profiles() return response + # -------------------------------------------------------- # get_instance_profile() # -------------------------------------------------------- @@ -3082,6 +3137,7 @@ def get_instance_profile(service, name): response = service.get_instance_profile(name) return response + # -------------------------------------------------------- # list_instances() # -------------------------------------------------------- @@ -3091,6 +3147,7 @@ def list_instances(service): response = service.list_instances() return response + # -------------------------------------------------------- # create_instance() # -------------------------------------------------------- @@ -3193,8 +3250,7 @@ def create_instance(service, vpc, profile, zone, image, subnet): # instance_prototype_model[ # 'boot_volume_attachment'] = volume_attachment_prototype_instance_by_image_context_model instance_prototype_model['image'] = image_identity_model - instance_prototype_model[ - 'primary_network_interface'] = network_interface_prototype_model + instance_prototype_model['primary_network_interface'] = network_interface_prototype_model instance_prototype_model['zone'] = zone_identity_model metadata_service_model = {} metadata_service_model['enabled'] = True @@ -3208,6 +3264,7 @@ def create_instance(service, vpc, profile, zone, image, subnet): response = service.create_instance(instance_prototype) return response + # -------------------------------------------------------- # delete_instance() # -------------------------------------------------------- @@ -3217,6 +3274,7 @@ def delete_instance(service, id): response = service.delete_instance(id) return response + # -------------------------------------------------------- # get_instance() # -------------------------------------------------------- @@ -3226,6 +3284,7 @@ def get_instance(service, id): response = service.get_instance(id) return response + # -------------------------------------------------------- # update_instance() # -------------------------------------------------------- @@ -3248,6 +3307,7 @@ def get_instance_initialization(service, id): response = service.get_instance_initialization(id) return response + # -------------------------------------------------------- # create_instance_action() # -------------------------------------------------------- @@ -3261,6 +3321,7 @@ def create_instance_action(service, instance_id): ) return response + # -------------------------------------------------------- # list_instance_network_interfaces() # -------------------------------------------------------- @@ -3307,6 +3368,7 @@ def delete_instance_network_interface(service, instance_id, id): response = service.delete_instance_network_interface(instance_id, id) return response + # -------------------------------------------------------- # get_instance_network_interface() # -------------------------------------------------------- @@ -3316,6 +3378,7 @@ def get_instance_network_interface(service, instance_id, id): response = service.get_instance_network_interface(instance_id, id) return response + # -------------------------------------------------------- # update_instance_network_interface() # -------------------------------------------------------- @@ -3331,65 +3394,67 @@ def update_instance_network_interface(service, instance_id, id): ) return response + # -------------------------------------------------------- # list_instance_network_interface_floating_ips() # -------------------------------------------------------- def list_instance_network_interface_floating_ips(service, instance_id, network_interface_id): - response = service.list_instance_network_interface_floating_ips( - instance_id, network_interface_id) + response = service.list_instance_network_interface_floating_ips(instance_id, network_interface_id) return response + # -------------------------------------------------------- # remove_instance_network_interface_floating_ip() # -------------------------------------------------------- def remove_instance_network_interface_floating_ip(service, instance_id, network_interface_id, id): - response = service.remove_instance_network_interface_floating_ip( - instance_id, network_interface_id, id) + response = service.remove_instance_network_interface_floating_ip(instance_id, network_interface_id, id) return response + + # -------------------------------------------------------- # get_instance_network_interface_floating_ip() # -------------------------------------------------------- def get_instance_network_interface_floating_ip(service, instance_id, network_interface_id, id): - response = service.get_instance_network_interface_floating_ip( - instance_id, network_interface_id, id) + response = service.get_instance_network_interface_floating_ip(instance_id, network_interface_id, id) return response + # -------------------------------------------------------- # add_instance_network_interface_floating_ip() # -------------------------------------------------------- def add_instance_network_interface_floating_ip(service, instance_id, network_interface_id, id): - response = service.add_instance_network_interface_floating_ip( - instance_id, network_interface_id, id) + response = service.add_instance_network_interface_floating_ip(instance_id, network_interface_id, id) return response + # -------------------------------------------------------- # list_instance_network_interface_ips() # -------------------------------------------------------- def list_instance_network_interface_ips(service, instance_id, network_interface_id): - response = service.list_instance_network_interface_ips( - instance_id, network_interface_id) + response = service.list_instance_network_interface_ips(instance_id, network_interface_id) return response + # -------------------------------------------------------- # get_instance_network_interface_ip() # -------------------------------------------------------- def get_instance_network_interface_ip(service, instance_id, network_interface_id, id): - response = service.get_instance_network_interface_ip( - instance_id, network_interface_id, id) + response = service.get_instance_network_interface_ip(instance_id, network_interface_id, id) return response + # -------------------------------------------------------- # list_instance_volume_attachments() # -------------------------------------------------------- @@ -3399,6 +3464,7 @@ def list_instance_volume_attachments(service, instance_id): response = service.list_instance_volume_attachments(instance_id) return response + # -------------------------------------------------------- # create_instance_volume_attachment() # -------------------------------------------------------- @@ -3429,6 +3495,7 @@ def delete_instance_volume_attachment(service, instance_id, id): response = service.delete_instance_volume_attachment(instance_id, id) return response + # -------------------------------------------------------- # get_instance_volume_attachment() # -------------------------------------------------------- @@ -3438,6 +3505,7 @@ def get_instance_volume_attachment(service, instance_id, id): response = service.get_instance_volume_attachment(instance_id, id) return response + # -------------------------------------------------------- # update_instance_volume_attachment() # -------------------------------------------------------- @@ -3454,12 +3522,12 @@ def update_instance_volume_attachment(service, instance_id, id): ) return response + def list_vpn_servers(service): - vpn_server_collection = service.list_vpn_servers( - sort='name' - ) + vpn_server_collection = service.list_vpn_servers(sort='name') return vpn_server_collection + def create_vpn_server(service, subnetId): name = generate_name('vpnserver') certificate_instance_identity_model = { @@ -3484,106 +3552,83 @@ def create_vpn_server(service, subnetId): client_authentication=[vpn_server_authentication_prototype_model], client_ip_pool='172.16.0.0/16', subnets=[subnet_identity_model], - name=name + name=name, ) return vpn_server + def get_vpn_server(service, vpnServerId): - vpn_server = service.get_vpn_server( - id=vpnServerId - ) + vpn_server = service.get_vpn_server(id=vpnServerId) return vpn_server + def update_vpn_server(service, vpnServerId, etag): vpn_server_patch_model = {} - vpn_server_patch_model['name']=generate_name('vpnserver-updated') + vpn_server_patch_model['name'] = generate_name('vpnserver-updated') - vpn_server = service.update_vpn_server( - id=vpnServerId, - vpn_server_patch=vpn_server_patch_model, - if_match=etag - ) + vpn_server = service.update_vpn_server(id=vpnServerId, vpn_server_patch=vpn_server_patch_model, if_match=etag) return vpn_server + def get_vpn_server_client_configuration(service, vpnServerId): - vpn_server_client_configuration = service.get_vpn_server_client_configuration( - id=vpnServerId - ) + vpn_server_client_configuration = service.get_vpn_server_client_configuration(id=vpnServerId) return vpn_server_client_configuration + def list_vpn_server_clients(service, vpnServerId): - vpn_server_client_collection = service.list_vpn_server_clients( - vpn_server_id=vpnServerId, - sort='created_at' - ) + vpn_server_client_collection = service.list_vpn_server_clients(vpn_server_id=vpnServerId, sort='created_at') return vpn_server_client_collection + def get_vpn_server_client(service, vpnServerId, vpnServerClientId): - vpn_server_client = service.get_vpn_server_client( - vpn_server_id=vpnServerId, - id=vpnServerClientId - ) + vpn_server_client = service.get_vpn_server_client(vpn_server_id=vpnServerId, id=vpnServerClientId) return vpn_server_client + def disconnect_vpn_client(service, vpnServerId, vpnServerClientId): - response = service.disconnect_vpn_client( - vpn_server_id=vpnServerId, - id=vpnServerClientId - ) + response = service.disconnect_vpn_client(vpn_server_id=vpnServerId, id=vpnServerClientId) return response + def list_vpn_server_routes(service, vpnServerId): - vpn_server_route_collection = service.list_vpn_server_routes( - vpn_server_id=vpnServerId, - sort='name' - ) + vpn_server_route_collection = service.list_vpn_server_routes(vpn_server_id=vpnServerId, sort='name') return vpn_server_route_collection + def create_vpn_server_route(service, vpnServerId): name = generate_name('vpnserver-route') vpn_server_route = service.create_vpn_server_route( - vpn_server_id=vpnServerId, - destination='172.16.0.0/16', - name=name + vpn_server_id=vpnServerId, destination='172.16.0.0/16', name=name ) return vpn_server_route def get_vpn_server_route(service, vpnServerId, vpnServerRouteId): - vpn_server_route = service.get_vpn_server_route( - vpn_server_id=vpnServerId, - id=vpnServerRouteId - ) + vpn_server_route = service.get_vpn_server_route(vpn_server_id=vpnServerId, id=vpnServerRouteId) return vpn_server_route + def update_vpn_server_route(service, vpnServerId, vpnServerRouteId): vpn_server_route_patch_model = {} vpn_server_route_patch_model['name'] = 'my-vpnserver-route-updated' vpn_server_route = service.update_vpn_server_route( - vpn_server_id=vpnServerId, - id=vpnServerRouteId, - vpn_server_route_patch=vpn_server_route_patch_model + vpn_server_id=vpnServerId, id=vpnServerRouteId, vpn_server_route_patch=vpn_server_route_patch_model ) return vpn_server_route + + def delete_vpn_server_route(service, vpnServerId, vpnServerRouteId): - response = service.delete_vpn_server_route( - vpn_server_id=vpnServerId, - id=vpnServerRouteId - ) + response = service.delete_vpn_server_route(vpn_server_id=vpnServerId, id=vpnServerRouteId) return response + def delete_vpn_server_client(service, vpnServerId, vpnServerClientId): - response = service.delete_vpn_server_client( - vpn_server_id=vpnServerId, - id=vpnServerClientId - ) + response = service.delete_vpn_server_client(vpn_server_id=vpnServerId, id=vpnServerClientId) return response + def delete_vpn_server(service, id, etag): - response = service.delete_vpn_server( - id=id, - if_match=etag - ) + response = service.delete_vpn_server(id=id, if_match=etag) return response @@ -3595,6 +3640,8 @@ def delete_vpn_server(service, id, etag): def list_load_balancer_profiles(service): response = service.list_load_balancer_profiles() return response + + # -------------------------------------------------------- # test_get_load_balancer_profile_() # -------------------------------------------------------- @@ -3604,6 +3651,8 @@ def get_load_balancer_profile(service): name = 'network-fixed' response = service.get_load_balancer_profile(name) return response + + # -------------------------------------------------------- # list_load_balancers() # -------------------------------------------------------- @@ -3613,6 +3662,7 @@ def list_load_balancers(service): response = service.list_load_balancers() return response + # -------------------------------------------------------- # create_load_balancer() # -------------------------------------------------------- @@ -3709,21 +3759,23 @@ def create_load_balancer(service, subnet): subnets, # listeners=listeners, name=name, - dns=load_balancer_dns_prototype_model + dns=load_balancer_dns_prototype_model, # pools=pools, # resource_group=resource_group, ) return response + # -------------------------------------------------------- # delete_load_balancer() # -------------------------------------------------------- def delete_load_balancer(service, id, etag): - response = service.delete_load_balancer(id, if_match = etag) + response = service.delete_load_balancer(id, if_match=etag) return response + # -------------------------------------------------------- # get_load_balancer() # -------------------------------------------------------- @@ -3743,10 +3795,11 @@ def update_load_balancer(service, id, etag): response = service.update_load_balancer( id, load_balancer_patch, - if_match = etag, + if_match=etag, ) return response + # -------------------------------------------------------- # get_load_balancer_statistics() # -------------------------------------------------------- @@ -3756,6 +3809,7 @@ def get_load_balancer_statistics(service, id): response = service.get_load_balancer_statistics(id) return response + # -------------------------------------------------------- # list_load_balancer_listeners() # -------------------------------------------------------- @@ -3765,6 +3819,7 @@ def list_load_balancer_listeners(service, load_balancer_id): response = service.list_load_balancer_listeners(load_balancer_id) return response + # -------------------------------------------------------- # create_load_balancer_listener() # -------------------------------------------------------- @@ -3842,6 +3897,7 @@ def get_load_balancer_listener(service, load_balancer_id, id): response = service.get_load_balancer_listener(load_balancer_id, id) return response + # -------------------------------------------------------- # update_load_balancer_listener() # -------------------------------------------------------- @@ -3857,14 +3913,15 @@ def update_load_balancer_listener(service, load_balancer_id, id): load_balancer_listener_patch, ) return response + + # -------------------------------------------------------- # list_load_balancer_listener_policies() # -------------------------------------------------------- def list_load_balancer_listener_policies(service, load_balancer_id, listener_id): - response = service.list_load_balancer_listener_policies( - load_balancer_id, listener_id) + response = service.list_load_balancer_listener_policies(load_balancer_id, listener_id) return response @@ -3905,26 +3962,27 @@ def create_load_balancer_listener_policy(service, load_balancer_id, listener_id) ) return response + # -------------------------------------------------------- # delete_load_balancer_listener_policy() # -------------------------------------------------------- def delete_load_balancer_listener_policy(service, load_balancer_id, listener_id, id): - response = service.delete_load_balancer_listener_policy( - load_balancer_id, listener_id, id) + response = service.delete_load_balancer_listener_policy(load_balancer_id, listener_id, id) return response + # -------------------------------------------------------- # get_load_balancer_listener_policy() # -------------------------------------------------------- def get_load_balancer_listener_policy(service, load_balancer_id, listener_id, id): - response = service.get_load_balancer_listener_policy( - load_balancer_id, listener_id, id) + response = service.get_load_balancer_listener_policy(load_balancer_id, listener_id, id) return response + # -------------------------------------------------------- # update_load_balancer_listener_policy() # -------------------------------------------------------- @@ -3945,16 +4003,17 @@ def update_load_balancer_listener_policy(service, load_balancer_id, listener_id, return response + # -------------------------------------------------------- # list_load_balancer_listener_policy_rules() # -------------------------------------------------------- def list_load_balancer_listener_policy_rules(service, load_balancer_id, listener_id, policy_id): - response = service.list_load_balancer_listener_policy_rules( - load_balancer_id, listener_id, policy_id) + response = service.list_load_balancer_listener_policy_rules(load_balancer_id, listener_id, policy_id) return response + # -------------------------------------------------------- # create_load_balancer_listener_policy_rule() # -------------------------------------------------------- @@ -3977,24 +4036,24 @@ def create_load_balancer_listener_policy_rule(service, load_balancer_id, listene ) return response + # -------------------------------------------------------- # delete_load_balancer_listener_policy_rule() # -------------------------------------------------------- def delete_load_balancer_listener_policy_rule(service, load_balancer_id, listener_id, policy_id, id): - response = service.delete_load_balancer_listener_policy_rule( - load_balancer_id, listener_id, policy_id, id) + response = service.delete_load_balancer_listener_policy_rule(load_balancer_id, listener_id, policy_id, id) return response + # -------------------------------------------------------- # get_load_balancer_listener_policy_rule() # -------------------------------------------------------- def get_load_balancer_listener_policy_rule(service, load_balancer_id, listener_id, policy_id, id): - response = service.get_load_balancer_listener_policy_rule( - load_balancer_id, listener_id, policy_id, id) + response = service.get_load_balancer_listener_policy_rule(load_balancer_id, listener_id, policy_id, id) return response @@ -4004,8 +4063,7 @@ def get_load_balancer_listener_policy_rule(service, load_balancer_id, listener_i def update_load_balancer_listener_policy_rule(service, load_balancer_id, listener_id, policy_id, id): load_balancer_listener_policy_rule_patch_model = {} load_balancer_listener_policy_rule_patch_model['condition'] = 'contains' - load_balancer_listener_policy_rule_patch_model[ - 'field'] = 'MY-APP-HEADER' + load_balancer_listener_policy_rule_patch_model['field'] = 'MY-APP-HEADER' load_balancer_listener_policy_rule_patch_model['type'] = 'header' load_balancer_listener_policy_rule_patch_model['value'] = 'some-value' @@ -4027,6 +4085,7 @@ def list_load_balancer_pools(service, load_balancer_id): response = service.list_load_balancer_pools(load_balancer_id) return response + # -------------------------------------------------------- # create_load_balancer_pool() # -------------------------------------------------------- @@ -4045,8 +4104,7 @@ def create_load_balancer_pool(service, load_balancer_id): # Construct a dict representation of a LoadBalancerPoolMemberTargetPrototypeByAddress model load_balancer_pool_member_target_prototype_model = {} - load_balancer_pool_member_target_prototype_model[ - 'address'] = '192.168.3.4' + load_balancer_pool_member_target_prototype_model['address'] = '192.168.3.4' # Construct a dict representation of a LoadBalancerPoolMemberPrototype model # load_balancer_pool_member_prototype_model = {} @@ -4057,8 +4115,7 @@ def create_load_balancer_pool(service, load_balancer_id): # Construct a dict representation of a LoadBalancerPoolSessionPersistencePrototype model load_balancer_pool_session_persistence_prototype_model = {} - load_balancer_pool_session_persistence_prototype_model[ - 'type'] = 'source_ip' + load_balancer_pool_session_persistence_prototype_model['type'] = 'source_ip' algorithm = 'least_connections' health_monitor = load_balancer_pool_health_monitor_prototype_model @@ -4077,6 +4134,8 @@ def create_load_balancer_pool(service, load_balancer_id): # session_persistence=session_persistence, ) return response + + # -------------------------------------------------------- # delete_load_balancer_pool() # -------------------------------------------------------- @@ -4086,6 +4145,7 @@ def delete_load_balancer_pool(service, load_balancer_id, id): response = service.delete_load_balancer_pool(load_balancer_id, id) return response + # -------------------------------------------------------- # get_load_balancer_pool() # -------------------------------------------------------- @@ -4095,6 +4155,7 @@ def get_load_balancer_pool(service, load_balancer_id, id): response = service.get_load_balancer_pool(load_balancer_id, id) return response + # -------------------------------------------------------- # update_load_balancer_pool() # -------------------------------------------------------- @@ -4111,16 +4172,17 @@ def update_load_balancer_pool(service, load_balancer_id, id): ) return response + # -------------------------------------------------------- # list_load_balancer_pool_members() # -------------------------------------------------------- def list_load_balancer_pool_members(service, load_balancer_id, pool_id): - response = service.list_load_balancer_pool_members( - load_balancer_id, pool_id) + response = service.list_load_balancer_pool_members(load_balancer_id, pool_id) return response + # -------------------------------------------------------- # create_load_balancer_pool_member() # -------------------------------------------------------- @@ -4129,8 +4191,7 @@ def list_load_balancer_pool_members(service, load_balancer_id, pool_id): def create_load_balancer_pool_member(service, load_balancer_id, pool_id): # Construct a dict representation of a LoadBalancerPoolMemberTargetPrototypeByAddress model load_balancer_pool_member_target_prototype_model = {} - load_balancer_pool_member_target_prototype_model[ - 'address'] = '192.168.3.4' + load_balancer_pool_member_target_prototype_model['address'] = '192.168.3.4' port = 80 target = load_balancer_pool_member_target_prototype_model @@ -4145,6 +4206,7 @@ def create_load_balancer_pool_member(service, load_balancer_id, pool_id): ) return response + # -------------------------------------------------------- # replace_load_balancer_pool_members() # -------------------------------------------------------- @@ -4171,26 +4233,28 @@ def replace_load_balancer_pool_members(service, load_balancer_id, pool_id): members, ) return response + + # -------------------------------------------------------- # delete_load_balancer_pool_member() # -------------------------------------------------------- def delete_load_balancer_pool_member(service, load_balancer_id, pool_id, id): - response = service.delete_load_balancer_pool_member( - load_balancer_id, pool_id, id) + response = service.delete_load_balancer_pool_member(load_balancer_id, pool_id, id) return response + # -------------------------------------------------------- # get_load_balancer_pool_member() # -------------------------------------------------------- def get_load_balancer_pool_member(service, load_balancer_id, pool_id, id): - response = service.get_load_balancer_pool_member( - load_balancer_id, pool_id, id) + response = service.get_load_balancer_pool_member(load_balancer_id, pool_id, id) return response + # -------------------------------------------------------- # update_load_balancer_pool_member() # -------------------------------------------------------- @@ -4210,6 +4274,7 @@ def update_load_balancer_pool_member(service, load_balancer_id, pool_id, id): ) return response + # -------------------------------------------------------- # list_network_acls() # -------------------------------------------------------- @@ -4219,6 +4284,7 @@ def list_network_acls(service): response = service.list_network_acls() return response + # -------------------------------------------------------- # create_network_acl() # -------------------------------------------------------- @@ -4289,10 +4355,10 @@ def create_network_acl(service, source_nacl_id): # Set up parameter values network_acl_prototype = network_acl_prototype_model - response = service.create_network_acl( - network_acl_prototype=network_acl_prototype) + response = service.create_network_acl(network_acl_prototype=network_acl_prototype) return response + # -------------------------------------------------------- # delete_network_acl() # -------------------------------------------------------- @@ -4302,6 +4368,7 @@ def delete_network_acl(service, id): response = service.delete_network_acl(id) return response + # -------------------------------------------------------- # get_network_acl() # -------------------------------------------------------- @@ -4311,6 +4378,7 @@ def get_network_acl(service, id): response = service.get_network_acl(id) return response + # -------------------------------------------------------- # update_network_acl() # -------------------------------------------------------- @@ -4326,6 +4394,7 @@ def update_network_acl(service, id): ) return response + # -------------------------------------------------------- # list_network_acl_rules() # -------------------------------------------------------- @@ -4335,6 +4404,7 @@ def list_network_acl_rules(service, network_acl_id): response = service.list_network_acl_rules(network_acl_id) return response + # -------------------------------------------------------- # create_network_acl_rule() # -------------------------------------------------------- @@ -4370,9 +4440,10 @@ def create_network_acl_rule(service, network_acl_id): network_acl_rule_prototype = network_acl_rule_prototype_model - response = service.create_network_acl_rule(network_acl_id, - network_acl_rule_prototype) + response = service.create_network_acl_rule(network_acl_id, network_acl_rule_prototype) return response + + # -------------------------------------------------------- # delete_network_acl_rule() # -------------------------------------------------------- @@ -4382,6 +4453,7 @@ def delete_network_acl_rule(service, network_acl_id, id): response = service.delete_network_acl_rule(network_acl_id, id) return response + # -------------------------------------------------------- # get_network_acl_rule() # -------------------------------------------------------- @@ -4391,6 +4463,7 @@ def get_network_acl_rule(service, network_acl_id, id): response = service.get_network_acl_rule(network_acl_id, id) return response + # -------------------------------------------------------- # update_network_acl_rule() # -------------------------------------------------------- @@ -4405,11 +4478,11 @@ def update_network_acl_rule(service, network_acl_id, id): network_acl_rule_patch_model['type'] = 8 network_acl_rule_patch = network_acl_rule_patch_model - response = service.update_network_acl_rule(network_acl_id, id, - network_acl_rule_patch) + response = service.update_network_acl_rule(network_acl_id, id, network_acl_rule_patch) return response + # -------------------------------------------------------- # list_public_gateways() # -------------------------------------------------------- @@ -4420,6 +4493,7 @@ def list_public_gateways(service): response = service.list_public_gateways() return response + # -------------------------------------------------------- # create_public_gateway() # -------------------------------------------------------- @@ -4460,6 +4534,8 @@ def create_public_gateway(service, vpc, zone): ) return response + + # -------------------------------------------------------- # delete_public_gateway() # -------------------------------------------------------- @@ -4469,6 +4545,7 @@ def delete_public_gateway(service, id): response = service.delete_public_gateway(id) return response + # -------------------------------------------------------- # get_public_gateway() # -------------------------------------------------------- @@ -4478,6 +4555,7 @@ def get_public_gateway(service, id): response = service.get_public_gateway(id) return response + # -------------------------------------------------------- # update_public_gateway() # -------------------------------------------------------- @@ -4492,6 +4570,7 @@ def update_public_gateway(service, id): ) return response + # -------------------------------------------------------- # list_keys() # -------------------------------------------------------- @@ -4501,6 +4580,7 @@ def list_keys(service): response = service.list_keys() return response + def create_key_ed25519(service): public_key = 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAID/K3T8h8CPvZr/InxpBrxh8bmG2RTyB8vzUTvOtQhaJ' @@ -4515,6 +4595,7 @@ def create_key_ed25519(service): ) return response + # -------------------------------------------------------- # create_key() # -------------------------------------------------------- @@ -4538,6 +4619,7 @@ def create_key(service): ) return response + # -------------------------------------------------------- # delete_key() # -------------------------------------------------------- @@ -4555,6 +4637,7 @@ def get_key(service, id): response = service.get_key(id) return response + # -------------------------------------------------------- # update_key() # -------------------------------------------------------- @@ -4570,11 +4653,11 @@ def update_key(service, id): return response - def list_snapshots(service): snapshots = service.list_snapshots() return snapshots + def create_snapshot(service, volumeID, name): volume_identity_model = {} volume_identity_model['id'] = volumeID @@ -4585,17 +4668,17 @@ def create_snapshot(service, volumeID, name): snapshot_clone_prototype_model = { 'zone': zone_identity_model, } - + snapshot_prototype_model = { 'clones': [snapshot_clone_prototype_model], 'source_volume': volume_identity_model, - 'name': name + 'name': name, } - snapshot = service.create_snapshot( - snapshot_prototype=snapshot_prototype_model) + snapshot = service.create_snapshot(snapshot_prototype=snapshot_prototype_model) return snapshot + def create_snapshot_CRC(service, sourceVolumeCRN, name): snapshot_identity_by_crn_model = {} # SnapshotIdentityByCRN snapshot_identity_by_crn_model['crn'] = sourceVolumeCRN @@ -4610,56 +4693,62 @@ def create_snapshot_CRC(service, sourceVolumeCRN, name): snapshot_prototype_model = { 'clones': [snapshot_clone_prototype_model], 'source_snapshot': snapshot_identity_by_crn_model, - 'name': name + 'name': name, } - snapshot = service.create_snapshot( - snapshot_prototype=snapshot_prototype_model) + snapshot = service.create_snapshot(snapshot_prototype=snapshot_prototype_model) return snapshot + def get_snapshot(service, snapshotID): snapshot = service.get_snapshot(id=snapshotID) return snapshot + def update_snapshot(service, snapshotID): snapshot_patch_model = {} snapshot_patch_model['name'] = generate_name('updated') - snapshot = service.update_snapshot( - id=snapshotID, - snapshot_patch=snapshot_patch_model) + snapshot = service.update_snapshot(id=snapshotID, snapshot_patch=snapshot_patch_model) return snapshot + def list_snapshot_clones(service, snapshotID): clones = service.list_snapshot_clones(id=snapshotID) return clones + def get_snapshot_clone(service, snapshotID, zone): snapshot = service.get_snapshot_clone( - id=snapshotID, - zone_name=zone, - ) + id=snapshotID, + zone_name=zone, + ) return snapshot + def create_snapshot_clone(service, snapshotID, zone): snapshot = service.create_snapshot_clone( - id=snapshotID, - zone_name=zone, - ) + id=snapshotID, + zone_name=zone, + ) return snapshot + def delete_snapshot(service, snapshotID): response = service.delete_snapshot(id=snapshotID) return response + def delete_snapshots(service, volumeID): response = service.delete_snapshots(source_volume_id=volumeID) return response + def delete_snapshot_clone(service, snapshotID, zone): response = service.delete_snapshot_clone(id=snapshotID, zone_name=zone) return response + # -------------------------------------------------------- # shares # -------------------------------------------------------- @@ -4669,16 +4758,19 @@ def list_share_profiles(service): share_profile_collection = service.list_share_profiles() return share_profile_collection + def get_share_profile(service, share_profile_name): share_profile = service.get_share_profile( name=share_profile_name, ) return share_profile + def list_shares(service): shares = service.list_shares() return shares + def create_share(service, share_profile_name, name, zone_name, size): share_profile_identity_model = { 'name': share_profile_name, @@ -4698,6 +4790,7 @@ def create_share(service, share_profile_name, name, zone_name, size): ) return share + def create_accessor_share(service, shareCRN, name): share_identity = { 'crn': shareCRN, @@ -4712,6 +4805,7 @@ def create_accessor_share(service, shareCRN, name): ) return share + def create_share_replica(service, share_profile_name, name, zone_name, share_id, cron_spec): share_profile_identity_model = { 'name': share_profile_name, @@ -4735,15 +4829,17 @@ def create_share_replica(service, share_profile_name, name, zone_name, share_id, ) return share + def get_share(service, share_id): share = service.get_share( id=share_id, ) return share + def update_share(service, share_id, share_name, share_etag): share_patch_model = { - 'name': share_name, + 'name': share_name, } share = service.update_share( @@ -4753,18 +4849,21 @@ def update_share(service, share_id, share_name, share_etag): ) return share + def failover_share(service, share_id): response = service.failover_share( - share_id=share_id, + share_id=share_id, ) return response + def list_share_mount_targets(service, share_id): share_mount_target_collection = service.list_share_mount_targets( - share_id=share_id, + share_id=share_id, ) return share_mount_target_collection + def get_share_mount_target(service, share_id, share_mount_target_id): share_mount_target = service.get_share_mount_target( share_id=share_id, @@ -4772,6 +4871,7 @@ def get_share_mount_target(service, share_id, share_mount_target_id): ) return share_mount_target + def update_share_mount_target(service, share_id, share_mount_target_id, share_mount_target_name): share_mount_target_patch_model = { 'name': share_mount_target_name, @@ -4783,16 +4883,18 @@ def update_share_mount_target(service, share_id, share_mount_target_id, share_mo ) return share_mount_target + def get_share_source(service, share_id): share = service.get_share_source( - share_id=share_id, + share_id=share_id, ) return share + def create_share_mount_target(service, share_id, subnet_id, name, vni_name): subnet_prototype_model = { - 'id': subnet_id, + 'id': subnet_id, } share_mount_target_virtual_network_interface_prototype_model = { 'name': vni_name, @@ -4809,6 +4911,7 @@ def create_share_mount_target(service, share_id, subnet_id, name, vni_name): ) return share_mount_target + def delete_share_mount_target(service, share_id, share_mount_target_id): share_mount_target = service.delete_share_mount_target( share_id=share_id, @@ -4816,12 +4919,14 @@ def delete_share_mount_target(service, share_id, share_mount_target_id): ) return share_mount_target + def delete_share_source(service, share_id): response = service.delete_share_source( share_id=share_id, ) return response + def delete_share(service, share_id, share_etag): share = service.delete_share( id=share_id, @@ -4830,7 +4935,6 @@ def delete_share(service, share_id, share_etag): return share - # -------------------------------------------------------- # list_security_groups() # -------------------------------------------------------- @@ -4840,6 +4944,7 @@ def list_security_groups(service): response = service.list_security_groups() return response + # -------------------------------------------------------- # create_security_group() # -------------------------------------------------------- @@ -4884,6 +4989,7 @@ def create_security_group(service, vpc): ) return response + # -------------------------------------------------------- # delete_security_group() # -------------------------------------------------------- @@ -4898,10 +5004,12 @@ def delete_security_group(service, id): # get_security_group() # -------------------------------------------------------- + def get_security_group(service, id): response = service.get_security_group(id) return response + # -------------------------------------------------------- # update_security_group() # -------------------------------------------------------- @@ -4916,46 +5024,47 @@ def update_security_group(service, id): ) return response + # -------------------------------------------------------- # list_security_group_targets() # -------------------------------------------------------- def list_security_group_targets(service, security_group_id): - response = service.list_security_group_targets( - security_group_id) + response = service.list_security_group_targets(security_group_id) return response + # -------------------------------------------------------- # delete_security_group_target_binding() # -------------------------------------------------------- def delete_security_group_target_binding(service, security_group_id, id): - response = service.delete_security_group_target_binding( - security_group_id, id) + response = service.delete_security_group_target_binding(security_group_id, id) return response + # -------------------------------------------------------- # get_security_group_target() # -------------------------------------------------------- def get_security_group_target(service, security_group_id, id): - response = service.get_security_group_target( - security_group_id, id) + response = service.get_security_group_target(security_group_id, id) return response + # -------------------------------------------------------- # create_security_group_target_binding() # -------------------------------------------------------- def create_security_group_target_binding(service, security_group_id, id): - response = service.create_security_group_target_binding( - security_group_id, id) + response = service.create_security_group_target_binding(security_group_id, id) return response + # -------------------------------------------------------- # list_security_group_rules() # -------------------------------------------------------- @@ -4965,6 +5074,7 @@ def list_security_group_rules(service, security_group_id): response = service.list_security_group_rules(security_group_id) return response + # -------------------------------------------------------- # create_security_group_rule() # -------------------------------------------------------- @@ -4989,10 +5099,10 @@ def create_security_group_rule(service, sg_id): security_group_id = sg_id security_group_rule_prototype = security_group_rule_prototype_model - response = service.create_security_group_rule( - security_group_id, security_group_rule_prototype) + response = service.create_security_group_rule(security_group_id, security_group_rule_prototype) return response + # -------------------------------------------------------- # delete_security_group_rule() # -------------------------------------------------------- @@ -5002,6 +5112,7 @@ def delete_security_group_rule(service, security_group_id, id): response = service.delete_security_group_rule(security_group_id, id) return response + # -------------------------------------------------------- # get_security_group_rule() # -------------------------------------------------------- @@ -5011,6 +5122,7 @@ def get_security_group_rule(service, security_group_id, id): response = service.get_security_group_rule(security_group_id, id) return response + # -------------------------------------------------------- # update_security_group_rule() # -------------------------------------------------------- @@ -5023,10 +5135,10 @@ def update_security_group_rule(service, security_group_id, id): security_group_rule_patch = security_group_rule_patch_model - response = service.update_security_group_rule( - security_group_id, id, security_group_rule_patch) + response = service.update_security_group_rule(security_group_id, id, security_group_rule_patch) return response + # -------------------------------------------------------- # list_subnets() # -------------------------------------------------------- @@ -5036,6 +5148,7 @@ def list_subnets(service): response = service.list_subnets() return response + # -------------------------------------------------------- # create_subnet() # -------------------------------------------------------- @@ -5081,6 +5194,7 @@ def create_subnet(service, vpc, zone): response = service.create_subnet(subnet_prototype) return response + # -------------------------------------------------------- # delete_subnet() # -------------------------------------------------------- @@ -5090,6 +5204,7 @@ def delete_subnet(service, id): response = service.delete_subnet(id) return response + # -------------------------------------------------------- # get_subnet() # -------------------------------------------------------- @@ -5098,6 +5213,8 @@ def delete_subnet(service, id): def get_subnet(service, id): response = service.get_subnet(id) return response + + # -------------------------------------------------------- # update_subnet() # -------------------------------------------------------- @@ -5113,6 +5230,7 @@ def update_subnet(service, id): ) return response + # -------------------------------------------------------- # get_subnet_network_acl() # -------------------------------------------------------- @@ -5122,6 +5240,7 @@ def get_subnet_network_acl(service, id): response = service.get_subnet_network_acl(id) return response + # -------------------------------------------------------- # replace_subnet_network_acl() # -------------------------------------------------------- @@ -5131,15 +5250,14 @@ def replace_subnet_network_acl(service, id, acl): # Construct a dict representation of a NetworkACLIdentityById model network_acl_identity_model = {} - network_acl_identity_model[ - 'id'] = acl + network_acl_identity_model['id'] = acl network_acl_identity = network_acl_identity_model - response = service.replace_subnet_network_acl( - id, network_acl_identity) + response = service.replace_subnet_network_acl(id, network_acl_identity) return response + # -------------------------------------------------------- # unset_subnet_public_gateway() # -------------------------------------------------------- @@ -5149,6 +5267,7 @@ def unset_subnet_public_gateway(service, id): response = service.unset_subnet_public_gateway(id) return response + # -------------------------------------------------------- # get_subnet_public_gateway() # -------------------------------------------------------- @@ -5158,6 +5277,7 @@ def get_subnet_public_gateway(service, id): response = service.get_subnet_public_gateway(id) return response + # -------------------------------------------------------- # set_subnet_public_gateway() # -------------------------------------------------------- @@ -5167,14 +5287,13 @@ def set_subnet_public_gateway(service, id, pgw): # Construct a dict representation of a PublicGatewayIdentityById model public_gateway_identity_model = {} - public_gateway_identity_model[ - 'id'] = pgw + public_gateway_identity_model['id'] = pgw public_gateway_identity = public_gateway_identity_model - response = service.set_subnet_public_gateway( - id, public_gateway_identity) + response = service.set_subnet_public_gateway(id, public_gateway_identity) return response + # -------------------------------------------------------- # service() # -------------------------------------------------------- @@ -5183,43 +5302,40 @@ def set_subnet_public_gateway(service, id, pgw): def list_subnet_reserved_ips(service, subnet_id): response = service.list_subnet_reserved_ips(subnet_id) return response + + # -------------------------------------------------------- # create_subnet_reserved_ip() # -------------------------------------------------------- def create_subnet_reserved_ip(service, subnet_id): - response = service.create_subnet_reserved_ip( - subnet_id, - auto_delete=False, - name='my-reserved-ip') + response = service.create_subnet_reserved_ip(subnet_id, auto_delete=False, name='my-reserved-ip') return response + # -------------------------------------------------------- # get_subnet_reserved_ip() # -------------------------------------------------------- def get_subnet_reserved_ip(service, subnet_id, id): - response = service.get_subnet_reserved_ip( - subnet_id, id) + response = service.get_subnet_reserved_ip(subnet_id, id) return response + # -------------------------------------------------------- # update_subnet_reserved_ip() # -------------------------------------------------------- def update_subnet_reserved_ip(service, subnet_id, id): - reserved_ip_patch_model = { - 'name': 'my-reserved-ip' - } + reserved_ip_patch_model = {'name': 'my-reserved-ip'} - response = service.update_subnet_reserved_ip( - subnet_id, - id, - reserved_ip_patch=reserved_ip_patch_model) + response = service.update_subnet_reserved_ip(subnet_id, id, reserved_ip_patch=reserved_ip_patch_model) return response + + # -------------------------------------------------------- # delete_subnet_reserved_ip() # -------------------------------------------------------- @@ -5234,9 +5350,12 @@ def delete_subnet_reserved_ip(service, subnet_id, id): # list_vpcs() # -------------------------------------------------------- + def list_vpcs(service): response = service.list_vpcs() return response + + # -------------------------------------------------------- # create_vpc() # -------------------------------------------------------- @@ -5261,6 +5380,7 @@ def create_vpc(service): ) return response + def create_vpc_hub(service): # Construct a dict representation of a ResourceGroupIdentityById model # resource_group_identity_model = {} @@ -5304,14 +5424,15 @@ def create_vpc_dns_res_binding(service, spokeVpcId, hubVpcId): return response -def get_vpc_dns_res_binding(service,vpcId, bindingId): +def get_vpc_dns_res_binding(service, vpcId, bindingId): response = service.get_vpc_dns_resolution_binding( vpc_id=vpcId, id=bindingId, ) return response -def list_vpc_dns_res_binding(service,vpcId): + +def list_vpc_dns_res_binding(service, vpcId): all_results = [] pager = VpcDnsResolutionBindingsPager( client=service, @@ -5324,10 +5445,10 @@ def list_vpc_dns_res_binding(service,vpcId): all_results.extend(next_page) return all_results -def update_vpc_dns_res_binding(service,vpcId, vpcDnsResolutionBindingID): - vpcdns_resolution_binding_patch_model = { - } - vpcdns_resolution_binding_patch_model['name']='my-vpc-dns-resolution-binding-updated' + +def update_vpc_dns_res_binding(service, vpcId, vpcDnsResolutionBindingID): + vpcdns_resolution_binding_patch_model = {} + vpcdns_resolution_binding_patch_model['name'] = 'my-vpc-dns-resolution-binding-updated' response = service.update_vpc_dns_resolution_binding( vpc_id=vpcId, @@ -5336,6 +5457,7 @@ def update_vpc_dns_res_binding(service,vpcId, vpcDnsResolutionBindingID): ) return response + # -------------------------------------------------------- # delete_vpc() # -------------------------------------------------------- @@ -5345,6 +5467,7 @@ def delete_vpc(service, id): response = service.delete_vpc(id) return response + def delete_vpc_dns_res_binding(service, vpcId, bindingId): response = service.delete_vpc_dns_resolution_binding( vpc_id=vpcId, @@ -5352,6 +5475,7 @@ def delete_vpc_dns_res_binding(service, vpcId, bindingId): ) return response + # -------------------------------------------------------- # get_vpc() # -------------------------------------------------------- @@ -5375,6 +5499,7 @@ def update_vpc(service, id): ) return response + # -------------------------------------------------------- # get_vpc_default_network_acl() # -------------------------------------------------------- @@ -5384,6 +5509,7 @@ def get_vpc_default_network_acl(service, id): response = service.get_vpc_default_network_acl(id) return response + # -------------------------------------------------------- # get_vpc_default_security_group() # -------------------------------------------------------- @@ -5393,6 +5519,7 @@ def get_vpc_default_security_group(service, id): response = service.get_vpc_default_security_group(id) return response + # -------------------------------------------------------- # list_vpc_address_prefixes() # -------------------------------------------------------- @@ -5407,6 +5534,7 @@ def list_vpc_address_prefixes(service, vpc_id): # create_vpc_address_prefix() # -------------------------------------------------------- + def create_vpc_address_prefix(service, vpc_id, zone): # Construct a dict representation of a ZoneIdentityByName model zone_identity_model = {} @@ -5425,6 +5553,7 @@ def create_vpc_address_prefix(service, vpc_id, zone): ) return response + # -------------------------------------------------------- # delete_vpc_address_prefix() # -------------------------------------------------------- @@ -5434,6 +5563,7 @@ def delete_vpc_address_prefix(service, vpc_id, id): response = service.delete_vpc_address_prefix(vpc_id, id) return response + # -------------------------------------------------------- # get_vpc_address_prefix() # -------------------------------------------------------- @@ -5443,6 +5573,7 @@ def get_vpc_address_prefix(service, vpc_id, id): response = service.get_vpc_address_prefix(vpc_id, id) return response + # -------------------------------------------------------- # update_vpc_address_prefix() # -------------------------------------------------------- @@ -5459,6 +5590,7 @@ def update_vpc_address_prefix(service, vpc_id, id): ) return response + # -------------------------------------------------------- # list_vpc_routes() # -------------------------------------------------------- @@ -5468,6 +5600,7 @@ def list_vpc_routes(service, vpc_id, zone_name): response = service.list_vpc_routes(vpc_id, zone_name=zone_name) return response + # -------------------------------------------------------- # list_vpc_routes() # -------------------------------------------------------- @@ -5511,6 +5644,8 @@ def create_vpc_route(service, vpc_id, zone): def delete_vpc_route(service, vpc_id, id): response = service.delete_vpc_route(vpc_id, id) return response + + # -------------------------------------------------------- # get_vpc_route() # -------------------------------------------------------- @@ -5519,6 +5654,8 @@ def delete_vpc_route(service, vpc_id, id): def get_vpc_route(service, vpc_id, id): response = service.get_vpc_route(vpc_id, id) return response + + # -------------------------------------------------------- # update_vpc_route() # -------------------------------------------------------- @@ -5534,6 +5671,7 @@ def update_vpc_route(service, vpc_id, id): ) return response + # -------------------------------------------------------- # list_ike_policies() # -------------------------------------------------------- @@ -5543,6 +5681,7 @@ def list_ike_policies(service): response = service.list_ike_policies() return response + # -------------------------------------------------------- # create_ike_policy() # -------------------------------------------------------- @@ -5577,6 +5716,7 @@ def create_ike_policy(service): # delete_ike_policy() # -------------------------------------------------------- + def delete_ike_policy(service, id): response = service.delete_ike_policy(id) return response @@ -5586,6 +5726,7 @@ def delete_ike_policy(service, id): # get_ike_policy() # -------------------------------------------------------- + def get_ike_policy(service, id): response = service.get_ike_policy(id) return response @@ -5595,6 +5736,7 @@ def get_ike_policy(service, id): # update_ike_policy() # -------------------------------------------------------- + def update_ike_policy(service, id): ike_policy_patch_model = {} @@ -5608,6 +5750,8 @@ def update_ike_policy(service, id): ike_policy_patch, ) return response + + # -------------------------------------------------------- # list_ike_policy_connections() # -------------------------------------------------------- @@ -5625,6 +5769,7 @@ def list_ipsec_policies(service): response = service.list_ipsec_policies() return response + # -------------------------------------------------------- # create_ipsec_policy() # -------------------------------------------------------- @@ -5653,6 +5798,7 @@ def create_ipsec_policy(service): ) return response + # -------------------------------- # -------------------------------------------------------- @@ -5664,6 +5810,7 @@ def delete_ipsec_policy(service, id): response = service.delete_ipsec_policy(id) return response + # -------------------------------------------------------- # get_ipsec_policy() # -------------------------------------------------------- @@ -5674,6 +5821,7 @@ def get_ipsec_policy(service, id): response = service.get_ipsec_policy(id) return response + # -------------------------------------------------------- # update_ipsec_policy() # -------------------------------------------------------- @@ -5692,6 +5840,8 @@ def update_ipsec_policy(service, id): i_psec_policy_patch=i_psec_policy_patch_model, ) return response + + # -------------------------------------------------------- # list_ipsec_policy_connections() # -------------------------------------------------------- @@ -5701,6 +5851,7 @@ def list_ipsec_policy_connections(service, id): response = service.list_ipsec_policy_connections(id) return response + # -------------------------------------------------------- # list_vpn_gateways() # -------------------------------------------------------- @@ -5710,6 +5861,7 @@ def list_vpn_gateways(service): response = service.list_vpn_gateways() return response + # -------------------------------------------------------- # create_vpn_gateway() # -------------------------------------------------------- @@ -5730,6 +5882,7 @@ def create_vpn_gateway(service, subnet): response = service.create_vpn_gateway(vpn_gateway_prototype) return response + # -------------------------------------------------------- # delete_vpn_gateway() # -------------------------------------------------------- @@ -5739,6 +5892,7 @@ def delete_vpn_gateway(service, id): response = service.delete_vpn_gateway(id) return response + # -------------------------------------------------------- # get_vpn_gateway() # -------------------------------------------------------- @@ -5753,6 +5907,7 @@ def get_vpn_gateway(service, id): # update_vpn_gateway() # -------------------------------------------------------- + def update_vpn_gateway(service, id): vpn_gateway_patch_model = {} vpn_gateway_patch_model['name'] = generate_name('vpng') @@ -5762,6 +5917,7 @@ def update_vpn_gateway(service, id): ) return response + # -------------------------------------------------------- # list_vpn_gateway_connections() # -------------------------------------------------------- @@ -5771,6 +5927,7 @@ def list_vpn_gateway_connections(service, vpn_gateway_id): response = service.list_vpn_gateway_connections(vpn_gateway_id) return response + # -------------------------------------------------------- # create_vpn_gateway_connection() # -------------------------------------------------------- @@ -5826,6 +5983,8 @@ def create_vpn_gateway_connection(service, vpn_gateway_id): ) return response + + # -------------------------------------------------------- # delete_vpn_gateway_connection() # -------------------------------------------------------- @@ -5834,6 +5993,8 @@ def create_vpn_gateway_connection(service, vpn_gateway_id): def delete_vpn_gateway_connection(service, vpn_gateway_id, id): response = service.delete_vpn_gateway_connection(vpn_gateway_id, id) return response + + # -------------------------------------------------------- # get_vpn_gateway_connection() # -------------------------------------------------------- @@ -5843,6 +6004,7 @@ def get_vpn_gateway_connection(service, vpn_gateway_id, id): response = service.get_vpn_gateway_connection(vpn_gateway_id, id) return response + # -------------------------------------------------------- # update_vpn_gateway_connection() # -------------------------------------------------------- @@ -5859,83 +6021,87 @@ def update_vpn_gateway_connection(service, vpn_gateway_id, id): ) return response + # -------------------------------------------------------- # list_vpn_gateway_connection_local_cidrs() # -------------------------------------------------------- def list_vpn_gateway_connection_local_cidrs(service, vpn_gateway_id, id): - response = service.list_vpn_gateway_connections_local_cidrs( - vpn_gateway_id, id) + response = service.list_vpn_gateway_connections_local_cidrs(vpn_gateway_id, id) return response + # -------------------------------------------------------- # remove_vpn_gateway_connection_local_cidr() # -------------------------------------------------------- def remove_vpn_gateway_connection_local_cidr(service, vpn_gateway_id, id, prefix_address, prefix_length): - response = service.remove_vpn_gateway_connections_local_cidr( - vpn_gateway_id, id, prefix_address, prefix_length) + response = service.remove_vpn_gateway_connections_local_cidr(vpn_gateway_id, id, prefix_address, prefix_length) return response + # -------------------------------------------------------- # check_vpn_gateway_connection_local_cidr() # -------------------------------------------------------- def check_vpn_gateway_connection_local_cidr(service, vpn_gateway_id, id, prefix_address, prefix_length): - response = service.check_vpn_gateway_connections_local_cidr( - vpn_gateway_id, id, prefix_address, prefix_length) + response = service.check_vpn_gateway_connections_local_cidr(vpn_gateway_id, id, prefix_address, prefix_length) return response + + # -------------------------------------------------------- # add_vpn_gateway_connection_local_cidr() # -------------------------------------------------------- def add_vpn_gateway_connection_local_cidr(service, vpn_gateway_id, id, prefix_address, prefix_length): - response = service.add_vpn_gateway_connections_local_cidr( - vpn_gateway_id, id, prefix_address, prefix_length) + response = service.add_vpn_gateway_connections_local_cidr(vpn_gateway_id, id, prefix_address, prefix_length) return response + + # -------------------------------------------------------- # list_vpn_gateway_connection_peer_cidrs() # -------------------------------------------------------- def list_vpn_gateway_connection_peer_cidrs(service, vpn_gateway_id, id): - response = service.list_vpn_gateway_connections_peer_cidrs( - vpn_gateway_id, id) + response = service.list_vpn_gateway_connections_peer_cidrs(vpn_gateway_id, id) return response + # -------------------------------------------------------- # remove_vpn_gateway_connection_peer_cidr() # -------------------------------------------------------- def remove_vpn_gateway_connection_peer_cidr(service, vpn_gateway_id, id, prefix_address, prefix_length): - response = service.remove_vpn_gateway_connections_peer_cidr( - vpn_gateway_id, id, prefix_address, prefix_length) + response = service.remove_vpn_gateway_connections_peer_cidr(vpn_gateway_id, id, prefix_address, prefix_length) return response + # -------------------------------------------------------- # check_vpn_gateway_connection_peer_cidr() # -------------------------------------------------------- def check_vpn_gateway_connection_peer_cidr(service, vpn_gateway_id, id, prefix_address, prefix_length): - response = service.check_vpn_gateway_connections_peer_cidr( - vpn_gateway_id, id, prefix_address, prefix_length) + response = service.check_vpn_gateway_connections_peer_cidr(vpn_gateway_id, id, prefix_address, prefix_length) return response + + # -------------------------------------------------------- # add_vpn_gateway_connection_peer_cidr() # -------------------------------------------------------- def add_vpn_gateway_connection_peer_cidr(service, vpn_gateway_id, id, prefix_address, prefix_length): - response = service.add_vpn_gateway_connections_peer_cidr( - vpn_gateway_id, id, prefix_address, prefix_length) + response = service.add_vpn_gateway_connections_peer_cidr(vpn_gateway_id, id, prefix_address, prefix_length) return response + # -------------------------------------------------------- # list_volume_profiles() # -------------------------------------------------------- @@ -5945,6 +6111,7 @@ def list_volume_profiles(service): response = service.list_volume_profiles() return response + # -------------------------------------------------------- # get_volume_profile() # -------------------------------------------------------- @@ -5953,6 +6120,8 @@ def list_volume_profiles(service): def get_volume_profile(service, name): response = service.get_volume_profile(name) return response + + # -------------------------------------------------------- # list_volumes() # -------------------------------------------------------- @@ -5961,6 +6130,8 @@ def get_volume_profile(service, name): def list_volumes(service): response = service.list_volumes() return response + + # -------------------------------------------------------- # create_volume() # -------------------------------------------------------- @@ -5992,6 +6163,7 @@ def create_volume(service, zone): response = service.create_volume(volume_prototype) return response + # -------------------------------------------------------- # delete_volume() # -------------------------------------------------------- @@ -6001,6 +6173,7 @@ def delete_volume(service, id): response = service.delete_volume(id) return response + # -------------------------------------------------------- # get_volume() # -------------------------------------------------------- @@ -6009,6 +6182,8 @@ def delete_volume(service, id): def get_volume(service, id): response = service.get_volume(id) return response + + # -------------------------------------------------------- # update_volume() # -------------------------------------------------------- @@ -6023,6 +6198,7 @@ def update_volume(service, id): ) return response + # -------------------------------------------------------- # list_flow_log_collectors() # -------------------------------------------------------- @@ -6032,6 +6208,7 @@ def list_flow_log_collectors(service): response = service.list_flow_log_collectors() return response + # -------------------------------------------------------- # create_flow_log_collector() # -------------------------------------------------------- @@ -6041,13 +6218,11 @@ def create_flow_log_collector(service, target_id): # Construct a dict representation of a CloudObjectStorageBucketIdentityByName model cloud_object_storage_bucket_identity_model = {} - cloud_object_storage_bucket_identity_model[ - 'name'] = generate_name('cos-bucket') + cloud_object_storage_bucket_identity_model['name'] = generate_name('cos-bucket') # Construct a dict representation of a FlowLogCollectorPrototypeTargetNetworkInterfaceIdentityNetworkInterfaceIdentityById model flow_log_collector_prototype_target_model = {} - flow_log_collector_prototype_target_model[ - 'id'] = target_id + flow_log_collector_prototype_target_model['id'] = target_id # Construct a dict representation of a ResourceGroupIdentityById model # resource_group_identity_model = {} @@ -6069,6 +6244,7 @@ def create_flow_log_collector(service, target_id): ) return response + # -------------------------------------------------------- # delete_flow_log_collector() # -------------------------------------------------------- @@ -6078,6 +6254,7 @@ def delete_flow_log_collector(service, id): response = service.delete_flow_log_collector(id) return response + # -------------------------------------------------------- # get_flow_log_collector() # -------------------------------------------------------- @@ -6087,6 +6264,7 @@ def get_flow_log_collector(service, id): response = service.get_flow_log_collector(id) return response + # -------------------------------------------------------- # update_flow_log_collector() # -------------------------------------------------------- @@ -6095,11 +6273,13 @@ def get_flow_log_collector(service, id): def update_flow_log_collector(service, id): flow_log_collector_patch_model = {} flow_log_collector_patch_model['name'] = generate_name('flow-log') - response = service.update_flow_log_collector(id, - flow_log_collector_patch=flow_log_collector_patch_model, - ) + response = service.update_flow_log_collector( + id, + flow_log_collector_patch=flow_log_collector_patch_model, + ) return response + # -------------------------------------------------------- # list_instance_templates() # -------------------------------------------------------- @@ -6109,6 +6289,7 @@ def list_instance_templates(service): response = service.list_instance_templates() return response + # -------------------------------------------------------- # create_instance_template() # -------------------------------------------------------- @@ -6148,8 +6329,7 @@ def create_instance_template(service, vpc, profile, zone, image, subnet): instance_template_prototype_model['vpc'] = vpc_identity_model instance_template_prototype_model['image'] = image_identity_model - instance_template_prototype_model[ - 'primary_network_interface'] = network_interface_prototype_model + instance_template_prototype_model['primary_network_interface'] = network_interface_prototype_model instance_template_prototype_model['zone'] = zone_identity_model instance_template_prototype = instance_template_prototype_model @@ -6158,6 +6338,7 @@ def create_instance_template(service, vpc, profile, zone, image, subnet): response = service.create_instance_template(instance_template_prototype) return response + # -------------------------------------------------------- # delete_instance_template() # -------------------------------------------------------- @@ -6167,6 +6348,7 @@ def delete_instance_template(service, id): response = service.delete_instance_template(id) return response + # -------------------------------------------------------- # get_instance_template() # -------------------------------------------------------- @@ -6176,6 +6358,7 @@ def get_instance_template(service, id): response = service.get_instance_template(id) return response + # -------------------------------------------------------- # update_instance_template() # -------------------------------------------------------- @@ -6190,6 +6373,7 @@ def update_instance_template(service, id): ) return response + # -------------------------------------------------------- # list_instance_groups() # -------------------------------------------------------- @@ -6199,6 +6383,7 @@ def list_instance_groups(service): response = service.list_instance_groups() return response + # -------------------------------------------------------- # create_instance_groups() # -------------------------------------------------------- @@ -6208,8 +6393,7 @@ def create_instance_group(service, instance_template, subnet): # Construct a dict representation of a InstanceTemplateIdentityById model instance_template_identity_model = {} - instance_template_identity_model[ - 'id'] = instance_template + instance_template_identity_model['id'] = instance_template # Construct a dict representation of a SubnetIdentityById model subnet_identity_model = {} @@ -6229,6 +6413,8 @@ def create_instance_group(service, instance_template, subnet): membership_count=membership_count, ) return response + + # -------------------------------------------------------- # delete_instance_group) # -------------------------------------------------------- @@ -6238,6 +6424,7 @@ def delete_instance_group(service, id): response = service.delete_instance_group(id) return response + # -------------------------------------------------------- # get_instance_group() # -------------------------------------------------------- @@ -6247,6 +6434,7 @@ def get_instance_group(service, id): response = service.get_instance_group(id) return response + # -------------------------------------------------------- # update_instance_group() # -------------------------------------------------------- @@ -6255,18 +6443,20 @@ def get_instance_group(service, id): def update_instance_group(service, id): instance_group_patch_model = {} instance_group_patch_model['name'] = generate_name("instance-group") - response = service.update_instance_group( - id, instance_group_patch=instance_group_patch_model) + response = service.update_instance_group(id, instance_group_patch=instance_group_patch_model) return response + + # -------------------------------------------------------- # delete_instance_group_load_balancer() # -------------------------------------------------------- def delete_instance_group_load_balancer(service, instance_group_id): - response = service.delete_instance_group_load_balancer( - instance_group_id) + response = service.delete_instance_group_load_balancer(instance_group_id) return response + + # -------------------------------------------------------- # list_instance_group_managers() # -------------------------------------------------------- @@ -6275,6 +6465,8 @@ def delete_instance_group_load_balancer(service, instance_group_id): def list_instance_group_managers(service, instance_group_id): response = service.list_instance_group_managers(instance_group_id) return response + + # -------------------------------------------------------- # create_instance_group_manager() # -------------------------------------------------------- @@ -6283,8 +6475,7 @@ def list_instance_group_managers(service, instance_group_id): def create_instance_group_manager(service, id): # Construct a dict representation of a InstanceGroupManagerPrototypeInstanceGroupManagerAutoScalePrototype model instance_group_manager_prototype_model = {} - instance_group_manager_prototype_model[ - 'name'] = generate_name("manager") + instance_group_manager_prototype_model['name'] = generate_name("manager") instance_group_manager_prototype_model['management_enabled'] = True instance_group_manager_prototype_model['aggregation_window'] = 120 instance_group_manager_prototype_model['cooldown'] = 300 @@ -6297,27 +6488,30 @@ def create_instance_group_manager(service, id): instance_group_manager_prototype = instance_group_manager_prototype_model # Invoke method - response = service.create_instance_group_manager( - instance_group_id, instance_group_manager_prototype) + response = service.create_instance_group_manager(instance_group_id, instance_group_manager_prototype) return response + + # -------------------------------------------------------- # delete_instance_group_manager() # -------------------------------------------------------- def delete_instance_group_manager(service, instance_group_id, id): - response = service.delete_instance_group_manager(instance_group_id, - id) + response = service.delete_instance_group_manager(instance_group_id, id) return response + + # -------------------------------------------------------- # get_instance_group_manager() # -------------------------------------------------------- def get_instance_group_manager(service, instance_group_id, id): - response = service.get_instance_group_manager(instance_group_id, - id) + response = service.get_instance_group_manager(instance_group_id, id) return response + + # -------------------------------------------------------- # update_instance_group_manager() # -------------------------------------------------------- @@ -6332,29 +6526,29 @@ def update_instance_group_manager(service, instance_group_id, id): instance_group_manager_patch=instance_group_manager_patch_model, ) return response + + # -------------------------------------------------------- # list_instance_group_manager_policies() # -------------------------------------------------------- -def list_instance_group_manager_policies(service, - instance_group_id, instance_group_manager_id): +def list_instance_group_manager_policies(service, instance_group_id, instance_group_manager_id): # Invoke method - response = service.list_instance_group_manager_policies( - instance_group_id, instance_group_manager_id) + response = service.list_instance_group_manager_policies(instance_group_id, instance_group_manager_id) return response + + # -------------------------------------------------------- # create_instance_group_manager_policy() # -------------------------------------------------------- -def create_instance_group_manager_policy(service, instance_group_id, - instance_group_manager_id): +def create_instance_group_manager_policy(service, instance_group_id, instance_group_manager_id): instance_group_manager_policy_prototype_model = {} - instance_group_manager_policy_prototype_model['name'] = generate_name( - "mpolicy") + instance_group_manager_policy_prototype_model['name'] = generate_name("mpolicy") instance_group_manager_policy_prototype_model['metric_type'] = 'cpu' instance_group_manager_policy_prototype_model['metric_value'] = 38 instance_group_manager_policy_prototype_model['policy_type'] = 'target' @@ -6364,19 +6558,21 @@ def create_instance_group_manager_policy(service, instance_group_id, # Invoke method response = service.create_instance_group_manager_policy( - instance_group_id, - instance_group_manager_id, - instance_group_manager_policy_prototype) + instance_group_id, instance_group_manager_id, instance_group_manager_policy_prototype + ) return response + + # -------------------------------------------------------- # delete_instance_group_manager_policy() # -------------------------------------------------------- def delete_instance_group_manager_policy(service, instance_group_id, instance_group_manager_id, id): - response = service.delete_instance_group_manager_policy( - instance_group_id, instance_group_manager_id, id) + response = service.delete_instance_group_manager_policy(instance_group_id, instance_group_manager_id, id) return response + + # -------------------------------------------------------- # get_instance_group_manager_policy() # -------------------------------------------------------- @@ -6384,9 +6580,10 @@ def delete_instance_group_manager_policy(service, instance_group_id, instance_gr def get_instance_group_manager_policy(service, instance_group_id, instance_group_manager_id, id): # Invoke method - response = service.get_instance_group_manager_policy( - instance_group_id, instance_group_manager_id, id) + response = service.get_instance_group_manager_policy(instance_group_id, instance_group_manager_id, id) return response + + # -------------------------------------------------------- # update_instance_group_manager_policy() # -------------------------------------------------------- @@ -6406,6 +6603,8 @@ def update_instance_group_manager_policy(service, instance_group_id, instance_gr instance_group_manager_policy_patch=instance_group_manager_policy_patch_model, ) return response + + # -------------------------------------------------------- # delete_instance_group_memberships() # -------------------------------------------------------- @@ -6415,6 +6614,8 @@ def delete_instance_group_memberships(service, instance_group_id): # Invoke method response = service.delete_instance_group_memberships(instance_group_id) return response + + # -------------------------------------------------------- # list_instance_group_memberships() # -------------------------------------------------------- @@ -6423,24 +6624,28 @@ def delete_instance_group_memberships(service, instance_group_id): def list_instance_group_memberships(service, instance_group_id): response = service.list_instance_group_memberships(instance_group_id) return response + + # -------------------------------------------------------- # delete_instance_group_membership() # -------------------------------------------------------- def delete_instance_group_membership(service, instance_group_id, id): - response = service.delete_instance_group_membership(instance_group_id, - id) + response = service.delete_instance_group_membership(instance_group_id, id) return response + + # -------------------------------------------------------- # get_instance_group_membership() # -------------------------------------------------------- def get_instance_group_membership(service, instance_group_id, id): - response = service.get_instance_group_membership(instance_group_id, - id) + response = service.get_instance_group_membership(instance_group_id, id) return response + + # -------------------------------------------------------- # update_instance_group_membership() # -------------------------------------------------------- @@ -6448,14 +6653,15 @@ def get_instance_group_membership(service, instance_group_id, id): def update_instance_group_membership(service, instance_group_id, id): instance_group_membership_patch_model = {} - instance_group_membership_patch_model[ - 'name'] = generate_name("member") - response = service.update_instance_group_membership(instance_group_id, - id, - instance_group_membership_patch=instance_group_membership_patch_model, - ) + instance_group_membership_patch_model['name'] = generate_name("member") + response = service.update_instance_group_membership( + instance_group_id, + id, + instance_group_membership_patch=instance_group_membership_patch_model, + ) return response + # -------------------------------------------------------- # list_endpoint_gateways() # -------------------------------------------------------- @@ -6465,6 +6671,7 @@ def list_endpoint_gateways(service): response = service.list_endpoint_gateways() return response + # -------------------------------------------------------- # create_endpoint_gateway() # -------------------------------------------------------- @@ -6483,6 +6690,8 @@ def create_endpoint_gateway(service, vpcId): vpc=vpc_identity_model, ) return response + + # -------------------------------------------------------- # delete_endpoint_gateway() # -------------------------------------------------------- @@ -6492,6 +6701,7 @@ def delete_endpoint_gateway(service, id): response = service.delete_endpoint_gateway(id) return response + # -------------------------------------------------------- # get_endpoint_gateway() # -------------------------------------------------------- @@ -6501,6 +6711,7 @@ def get_endpoint_gateway(service, id): response = service.get_endpoint_gateway(id) return response + # -------------------------------------------------------- # get_endpoint_gateway() # -------------------------------------------------------- @@ -6509,10 +6720,10 @@ def get_endpoint_gateway(service, id): def update_endpoint_gateway(service, id): endpoint_gateway_patch_model = {} endpoint_gateway_patch_model['name'] = generate_name("endpoint-gateway") - response = service.update_endpoint_gateway(id, - endpoint_gateway_patch=endpoint_gateway_patch_model) + response = service.update_endpoint_gateway(id, endpoint_gateway_patch=endpoint_gateway_patch_model) return response + # -------------------------------------------------------- # list_endpoint_gateway_ips() # -------------------------------------------------------- @@ -6522,26 +6733,27 @@ def list_endpoint_gateway_ips(service, id): response = service.list_endpoint_gateway_ips(endpoint_gateway_id=id) return response + # -------------------------------------------------------- # remove_endpoint_gateway_ip() # -------------------------------------------------------- def remove_endpoint_gateway_ip(service, endpoint_gateway_id, id): - response = service.remove_endpoint_gateway_ip( - endpoint_gateway_id=endpoint_gateway_id, id=id) + response = service.remove_endpoint_gateway_ip(endpoint_gateway_id=endpoint_gateway_id, id=id) return response + # -------------------------------------------------------- # get_endpoint_gateway_ip() # -------------------------------------------------------- def get_endpoint_gateway_ip(service, endpoint_gateway_id, id): - response = service.get_endpoint_gateway_ip( - endpoint_gateway_id=endpoint_gateway_id, id=id) + response = service.get_endpoint_gateway_ip(endpoint_gateway_id=endpoint_gateway_id, id=id) return response + # -------------------------------------------------------- # add_endpoint_gateway_ip() # -------------------------------------------------------- @@ -6551,6 +6763,7 @@ def add_endpoint_gateway_ip(service, endpoint_gateway_id, id): response = service.add_endpoint_gateway_ip(endpoint_gateway_id, id) return response + # -------------------------------------------------------- # get_vpc_default_routing_table() # -------------------------------------------------------- @@ -6560,6 +6773,7 @@ def get_vpc_default_routing_table(service, id): response = service.get_vpc_default_routing_table(id=id) return response + # -------------------------------------------------------- # get_subnet_routing_table() # -------------------------------------------------------- @@ -6568,6 +6782,8 @@ def get_vpc_default_routing_table(service, id): def get_subnet_routing_table(service, id): response = service.get_subnet_routing_table(id=id) return response + + # -------------------------------------------------------- # replace_subnet_routing_table() # -------------------------------------------------------- @@ -6576,10 +6792,10 @@ def get_subnet_routing_table(service, id): def replace_subnet_routing_table(service, routing_table_id, id): routing_table_identity_model = {} routing_table_identity_model['id'] = routing_table_id - response = service.replace_subnet_routing_table(id=id, - routing_table_identity=routing_table_identity_model) + response = service.replace_subnet_routing_table(id=id, routing_table_identity=routing_table_identity_model) return response + # -------------------------------------------------------- # list_vpc_routing_tables() # -------------------------------------------------------- @@ -6589,6 +6805,7 @@ def list_vpc_routing_tables(service, vpc_id): response = service.list_vpc_routing_tables(vpc_id=vpc_id) return response + # -------------------------------------------------------- # create_vpc_routing_table() # -------------------------------------------------------- @@ -6605,7 +6822,7 @@ def create_vpc_routing_table(service, vpc_id, zoneName): 'destination': '192.168.3.0/24', 'name': 'my-route-2', 'next_hop': route_next_hop_prototype_model, - 'zone': zone_identity_model + 'zone': zone_identity_model, } response = service.create_vpc_routing_table( vpc_id=vpc_id, @@ -6613,6 +6830,8 @@ def create_vpc_routing_table(service, vpc_id, zoneName): routes=[route_prototype_model], ) return response + + # -------------------------------------------------------- # delete_vpc_routing_table() # -------------------------------------------------------- @@ -6622,6 +6841,7 @@ def delete_vpc_routing_table(service, vpc_id, id): response = service.delete_vpc_routing_table(vpc_id, id) return response + # -------------------------------------------------------- # get_vpc_routing_table() # -------------------------------------------------------- @@ -6631,6 +6851,7 @@ def get_vpc_routing_table(service, vpc_id, id): response = service.get_vpc_routing_table(vpc_id, id) return response + # -------------------------------------------------------- # update_vpc_routing_table() # -------------------------------------------------------- @@ -6639,20 +6860,20 @@ def get_vpc_routing_table(service, vpc_id, id): def update_vpc_routing_table(service, vpc_id, id): routing_table_patch_model = {} routing_table_patch_model['name'] = generate_name("routing-table") - response = service.update_vpc_routing_table(vpc_id, id, - routing_table_patch=routing_table_patch_model) + response = service.update_vpc_routing_table(vpc_id, id, routing_table_patch=routing_table_patch_model) return response + # -------------------------------------------------------- # list_vpc_routing_table_routes() # -------------------------------------------------------- def list_vpc_routing_table_routes(service, vpc_id, routing_table_id): - response = service.list_vpc_routing_table_routes( - vpc_id=vpc_id, routing_table_id=routing_table_id) + response = service.list_vpc_routing_table_routes(vpc_id=vpc_id, routing_table_id=routing_table_id) return response + # -------------------------------------------------------- # create_vpc_routing_table_route() # -------------------------------------------------------- @@ -6675,26 +6896,28 @@ def create_vpc_routing_table_route(service, vpc_id, routing_table_id, zoneName): name=generate_name('my-route'), ) return response + + # -------------------------------------------------------- # delete_vpc_routing_table_route() # -------------------------------------------------------- def delete_vpc_routing_table_route(service, vpc_id, routing_table_id, id): - response = service.delete_vpc_routing_table_route( - vpc_id, routing_table_id, id) + response = service.delete_vpc_routing_table_route(vpc_id, routing_table_id, id) return response + # -------------------------------------------------------- # get_vpc_routing_table_route() # -------------------------------------------------------- def get_vpc_routing_table_route(service, vpc_id, routing_table_id, id): - response = service.get_vpc_routing_table_route( - vpc_id, routing_table_id, id) + response = service.get_vpc_routing_table_route(vpc_id, routing_table_id, id) return response + # -------------------------------------------------------- # update_vpc_routing_table() # -------------------------------------------------------- @@ -6703,10 +6926,10 @@ def get_vpc_routing_table_route(service, vpc_id, routing_table_id, id): def update_vpc_routing_table_route(service, vpc_id, table_id, id): route_patch_model = {} route_patch_model['name'] = generate_name("route") - response = service.update_vpc_routing_table_route(vpc_id, table_id, id, - route_patch=route_patch_model) + response = service.update_vpc_routing_table_route(vpc_id, table_id, id, route_patch=route_patch_model) return response + # -------------------------------------------------------- # dedicated host # -------------------------------------------------------- @@ -6740,8 +6963,8 @@ def update_dedicated_host_group(service, id): dedicated_host_group_patch_model = {'name': 'my-host-group-modified'} update_dedicated_host_group_response = service.update_dedicated_host_group( - id, - dedicated_host_group_patch=dedicated_host_group_patch_model) + id, dedicated_host_group_patch=dedicated_host_group_patch_model + ) return update_dedicated_host_group_response @@ -6751,8 +6974,7 @@ def list_dedicated_host_profiles(service): def get_dedicated_host_profile(service, name): - get_dedicated_host_profile_response = service.get_dedicated_host_profile( - name) + get_dedicated_host_profile_response = service.get_dedicated_host_profile(name) return get_dedicated_host_profile_response @@ -6766,19 +6988,18 @@ def create_dedicated_host(service, profileName, groupId): dedicated_host_profile_identity_model['name'] = profileName # Construct a dict representation of a DedicatedHostGroupIdentityById model - dedicated_host_group_identity_model = { - 'id': groupId - } + dedicated_host_group_identity_model = {'id': groupId} # Construct a dict representation of a DedicatedHostPrototypeDedicatedHostByGroup model dedicated_host_prototype_model = { 'name': 'my-host', 'profile': dedicated_host_profile_identity_model, - 'group': dedicated_host_group_identity_model + 'group': dedicated_host_group_identity_model, } create_dedicated_host_response = service.create_dedicated_host( - dedicated_host_prototype=dedicated_host_prototype_model) + dedicated_host_prototype=dedicated_host_prototype_model + ) return create_dedicated_host_response @@ -6788,18 +7009,13 @@ def get_dedicated_host(service, id): def update_dedicated_host(service, id): - dedicated_host_patch_model = { - 'name': 'my-host', - 'instance_placement_enabled': False - } - update_dedicated_host_response = service.update_dedicated_host( - id, dedicated_host_patch=dedicated_host_patch_model) + dedicated_host_patch_model = {'name': 'my-host', 'instance_placement_enabled': False} + update_dedicated_host_response = service.update_dedicated_host(id, dedicated_host_patch=dedicated_host_patch_model) return update_dedicated_host_response def delete_dedicated_host_group(service, id): - delete_dedicated_host_group_response = service.delete_dedicated_host_group( - id) + delete_dedicated_host_group_response = service.delete_dedicated_host_group(id) return delete_dedicated_host_group_response @@ -6808,7 +7024,6 @@ def delete_dedicated_host(service, id): return delete_dedicated_host_response - # -------------------------------------------------------- # placement groups # -------------------------------------------------------- @@ -6821,25 +7036,24 @@ def create_placement_group(service, name): ) return placement_group + def list_placement_groups(service): placement_group_collection = service.list_placement_groups() return placement_group_collection + def get_placement_group(service, pgid): placement_group = service.get_placement_group(pgid) return placement_group + def update_placement_group(service, pgid, name): - placement_group_patch_model = { - 'name': name - } + placement_group_patch_model = {'name': name} - placement_group = service.update_placement_group( - pgid, - placement_group_patch=placement_group_patch_model - ) + placement_group = service.update_placement_group(pgid, placement_group_patch=placement_group_patch_model) return placement_group + def delete_placement_group(service, pgid): response = service.delete_placement_group(pgid) return response @@ -6851,7 +7065,23 @@ def delete_placement_group(service, pgid): def generate_name(r_type): - names = ("cloudy", "jumble", "lavender", "mayfly", "green", "yellow", "fox", "unrest", "red", "windy", "foggy", "hatchet", "mushily", "beach", "slacker") + names = ( + "cloudy", + "jumble", + "lavender", + "mayfly", + "green", + "yellow", + "fox", + "unrest", + "red", + "windy", + "foggy", + "hatchet", + "mushily", + "beach", + "slacker", + ) return "psdk-" + names[random.randint(0, len(names) - 1)] + "-" + r_type @@ -6860,27 +7090,33 @@ def assertListResponse(output, rType): assert output.status_code == 200 assert response[rType] is not None + # + def assertPagerListResponse(output): assert len(output) != 0 + def assertGetNameResponse(output): response = output.get_result() assert output.status_code == 200 # assert response['name'] is not None assert response['name'] is not None + def assertGetPatchResponse(output): response = output.get_result() assert output.status_code == 200 # assert response['name'] is not None assert response['id'] is not None + def assertGetResponse(output): response = output.get_result() assert output.status_code == 200 + def assertCreateResponse(output): response = output.get_result() assert output.status_code == 201 @@ -6892,6 +7128,7 @@ def assertDeleteResponse(output): response = output.get_result() assert output.status_code == 204 + def assertDeleteRequestAcceptedResponse(output): response = output.get_result() assert output.status_code == 202 diff --git a/test/unit/test_common.py b/test/unit/test_common.py index f5e40a2..739128e 100644 --- a/test/unit/test_common.py +++ b/test/unit/test_common.py @@ -21,6 +21,7 @@ import unittest from ibm_vpc import common + class TestCommon(unittest.TestCase): """ Test methods in the common module diff --git a/test/unit/test_vpc_v1.py b/test/unit/test_vpc_v1.py index e01f108..1c97af7 100644 --- a/test/unit/test_vpc_v1.py +++ b/test/unit/test_vpc_v1.py @@ -218,8 +218,7 @@ def test_list_vpcs_value_error(self): ) # Pass in all but one required param and check for a ValueError - req_param_dict = { - } + req_param_dict = {} for param in req_param_dict.keys(): req_copy = {key: val if key is not param else None for (key, val) in req_param_dict.items()} with pytest.raises(ValueError): @@ -438,8 +437,7 @@ def test_create_vpc_value_error(self): ) # Pass in all but one required param and check for a ValueError - req_param_dict = { - } + req_param_dict = {} for param in req_param_dict.keys(): req_copy = {key: val if key is not param else None for (key, val) in req_param_dict.items()} with pytest.raises(ValueError): @@ -4444,8 +4442,7 @@ def test_list_subnets_value_error(self): ) # Pass in all but one required param and check for a ValueError - req_param_dict = { - } + req_param_dict = {} for param in req_param_dict.keys(): req_copy = {key: val if key is not param else None for (key, val) in req_param_dict.items()} with pytest.raises(ValueError): @@ -5515,7 +5512,9 @@ def test_replace_subnet_routing_table_all_params(self): # Construct a dict representation of a RoutingTableIdentityByCRN model routing_table_identity_model = {} - routing_table_identity_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc-routing-table:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b/r006-6885e83f-03b2-4603-8a86-db2a0f55c840' + routing_table_identity_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc-routing-table:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b/r006-6885e83f-03b2-4603-8a86-db2a0f55c840' + ) # Set up parameter values id = 'testString' @@ -5562,7 +5561,9 @@ def test_replace_subnet_routing_table_value_error(self): # Construct a dict representation of a RoutingTableIdentityByCRN model routing_table_identity_model = {} - routing_table_identity_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc-routing-table:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b/r006-6885e83f-03b2-4603-8a86-db2a0f55c840' + routing_table_identity_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc-routing-table:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b/r006-6885e83f-03b2-4603-8a86-db2a0f55c840' + ) # Set up parameter values id = 'testString' @@ -6356,8 +6357,7 @@ def test_list_images_value_error(self): ) # Pass in all but one required param and check for a ValueError - req_param_dict = { - } + req_param_dict = {} for param in req_param_dict.keys(): req_copy = {key: val if key is not param else None for (key, val) in req_param_dict.items()} with pytest.raises(ValueError): @@ -6479,7 +6479,9 @@ def test_create_image_all_params(self): # Construct a dict representation of a EncryptionKeyIdentityByCRN model encryption_key_identity_model = {} - encryption_key_identity_model['crn'] = 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + encryption_key_identity_model['crn'] = ( + 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + ) # Construct a dict representation of a ImageFilePrototype model image_file_prototype_model = {} @@ -6547,7 +6549,9 @@ def test_create_image_value_error(self): # Construct a dict representation of a EncryptionKeyIdentityByCRN model encryption_key_identity_model = {} - encryption_key_identity_model['crn'] = 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + encryption_key_identity_model['crn'] = ( + 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + ) # Construct a dict representation of a ImageFilePrototype model image_file_prototype_model = {} @@ -7588,8 +7592,7 @@ def test_list_operating_systems_value_error(self): ) # Pass in all but one required param and check for a ValueError - req_param_dict = { - } + req_param_dict = {} for param in req_param_dict.keys(): req_copy = {key: val if key is not param else None for (key, val) in req_param_dict.items()} with pytest.raises(ValueError): @@ -7914,8 +7917,7 @@ def test_list_keys_value_error(self): ) # Pass in all but one required param and check for a ValueError - req_param_dict = { - } + req_param_dict = {} for param in req_param_dict.keys(): req_copy = {key: val if key is not param else None for (key, val) in req_param_dict.items()} with pytest.raises(ValueError): @@ -8047,7 +8049,10 @@ def test_create_key_all_params(self): assert response.status_code == 201 # Validate body params req_body = json.loads(str(responses.calls[0].request.body, 'utf-8')) - assert req_body['public_key'] == 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDDGe50Bxa5T5NDddrrtbx2Y4/VGbiCgXqnBsYToIUKoFSHTQl5IX3PasGnneKanhcLwWz5M5MoCRvhxTp66NKzIfAz7r+FX9rxgR+ZgcM253YAqOVeIpOU408simDZKriTlN8kYsXL7P34tsWuAJf4MgZtJAQxous/2byetpdCv8ddnT4X3ltOg9w+LqSCPYfNivqH00Eh7S1Ldz7I8aw5WOp5a+sQFP/RbwfpwHp+ny7DfeIOokcuI42tJkoBn7UsLTVpCSmXr2EDRlSWe/1M/iHNRBzaT3CK0+SwZWd2AEjePxSnWKNGIEUJDlUYp7hKhiQcgT5ZAnWU121oc5En' + assert ( + req_body['public_key'] + == 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDDGe50Bxa5T5NDddrrtbx2Y4/VGbiCgXqnBsYToIUKoFSHTQl5IX3PasGnneKanhcLwWz5M5MoCRvhxTp66NKzIfAz7r+FX9rxgR+ZgcM253YAqOVeIpOU408simDZKriTlN8kYsXL7P34tsWuAJf4MgZtJAQxous/2byetpdCv8ddnT4X3ltOg9w+LqSCPYfNivqH00Eh7S1Ldz7I8aw5WOp5a+sQFP/RbwfpwHp+ny7DfeIOokcuI42tJkoBn7UsLTVpCSmXr2EDRlSWe/1M/iHNRBzaT3CK0+SwZWd2AEjePxSnWKNGIEUJDlUYp7hKhiQcgT5ZAnWU121oc5En' + ) assert req_body['name'] == 'my-key-1' assert req_body['resource_group'] == resource_group_identity_model assert req_body['type'] == 'rsa' @@ -8469,8 +8474,7 @@ def test_list_instance_profiles_value_error(self): ) # Pass in all but one required param and check for a ValueError - req_param_dict = { - } + req_param_dict = {} for param in req_param_dict.keys(): req_copy = {key: val if key is not param else None for (key, val) in req_param_dict.items()} with pytest.raises(ValueError): @@ -8621,8 +8625,7 @@ def test_list_instance_templates_value_error(self): ) # Pass in all but one required param and check for a ValueError - req_param_dict = { - } + req_param_dict = {} for param in req_param_dict.keys(): req_copy = {key: val if key is not param else None for (key, val) in req_param_dict.items()} with pytest.raises(ValueError): @@ -8676,263 +8679,21 @@ def test_create_instance_template_all_params(self): # Construct a dict representation of a InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment model instance_cluster_network_attachment_prototype_cluster_network_interface_model = {} instance_cluster_network_attachment_prototype_cluster_network_interface_model['auto_delete'] = False - instance_cluster_network_attachment_prototype_cluster_network_interface_model['name'] = 'my-cluster-network-interface' - instance_cluster_network_attachment_prototype_cluster_network_interface_model['primary_ip'] = cluster_network_interface_primary_ip_prototype_model - instance_cluster_network_attachment_prototype_cluster_network_interface_model['subnet'] = cluster_network_subnet_identity_model - - # Construct a dict representation of a InstanceClusterNetworkAttachmentPrototypeInstanceContext model - instance_cluster_network_attachment_prototype_instance_context_model = {} - instance_cluster_network_attachment_prototype_instance_context_model['cluster_network_interface'] = instance_cluster_network_attachment_prototype_cluster_network_interface_model - instance_cluster_network_attachment_prototype_instance_context_model['name'] = 'my-instance-network-attachment' - - # Construct a dict representation of a TrustedProfileIdentityById model - trusted_profile_identity_model = {} - trusted_profile_identity_model['id'] = 'Profile-9fd84246-7df4-4667-94e4-8ecde51d5ac5' - - # Construct a dict representation of a InstanceDefaultTrustedProfilePrototype model - instance_default_trusted_profile_prototype_model = {} - instance_default_trusted_profile_prototype_model['auto_link'] = False - instance_default_trusted_profile_prototype_model['target'] = trusted_profile_identity_model - - # Construct a dict representation of a KeyIdentityById model - key_identity_model = {} - key_identity_model['id'] = '363f6d70-0000-0001-0000-00000013b96c' - - # Construct a dict representation of a InstanceMetadataServicePrototype model - instance_metadata_service_prototype_model = {} - instance_metadata_service_prototype_model['enabled'] = False - instance_metadata_service_prototype_model['protocol'] = 'https' - instance_metadata_service_prototype_model['response_hop_limit'] = 2 - - # Construct a dict representation of a InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityById model - instance_placement_target_prototype_model = {} - instance_placement_target_prototype_model['id'] = '0717-1e09281b-f177-46fb-baf1-bc152b2e391a' - - # Construct a dict representation of a InstanceProfileIdentityByName model - instance_profile_identity_model = {} - instance_profile_identity_model['name'] = 'bx2-2x8' - - # Construct a dict representation of a ReservationIdentityById model - reservation_identity_model = {} - reservation_identity_model['id'] = '0717-ba49df72-37b8-43ac-98da-f8e029de0e63' - - # Construct a dict representation of a InstanceReservationAffinityPrototype model - instance_reservation_affinity_prototype_model = {} - instance_reservation_affinity_prototype_model['policy'] = 'disabled' - instance_reservation_affinity_prototype_model['pool'] = [reservation_identity_model] - - # Construct a dict representation of a ResourceGroupIdentityById model - resource_group_identity_model = {} - resource_group_identity_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' - - # Construct a dict representation of a VolumeAttachmentPrototypeVolumeVolumeIdentityVolumeIdentityById model - volume_attachment_prototype_volume_model = {} - volume_attachment_prototype_volume_model['id'] = 'r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' - - # Construct a dict representation of a VolumeAttachmentPrototype model - volume_attachment_prototype_model = {} - volume_attachment_prototype_model['delete_volume_on_instance_delete'] = False - volume_attachment_prototype_model['name'] = 'my-volume-attachment' - volume_attachment_prototype_model['volume'] = volume_attachment_prototype_volume_model - - # Construct a dict representation of a VPCIdentityById model - vpc_identity_model = {} - vpc_identity_model['id'] = 'dc201ab2-8536-4904-86a8-084d84582133' - - # Construct a dict representation of a EncryptionKeyIdentityByCRN model - encryption_key_identity_model = {} - encryption_key_identity_model['crn'] = 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' - - # Construct a dict representation of a VolumeProfileIdentityByName model - volume_profile_identity_model = {} - volume_profile_identity_model['name'] = 'general-purpose' - - # Construct a dict representation of a VolumePrototypeInstanceByImageContext model - volume_prototype_instance_by_image_context_model = {} - volume_prototype_instance_by_image_context_model['capacity'] = 100 - volume_prototype_instance_by_image_context_model['encryption_key'] = encryption_key_identity_model - volume_prototype_instance_by_image_context_model['iops'] = 10000 - volume_prototype_instance_by_image_context_model['name'] = 'my-volume' - volume_prototype_instance_by_image_context_model['profile'] = volume_profile_identity_model - volume_prototype_instance_by_image_context_model['resource_group'] = resource_group_identity_model - volume_prototype_instance_by_image_context_model['user_tags'] = [] - - # Construct a dict representation of a VolumeAttachmentPrototypeInstanceByImageContext model - volume_attachment_prototype_instance_by_image_context_model = {} - volume_attachment_prototype_instance_by_image_context_model['delete_volume_on_instance_delete'] = True - volume_attachment_prototype_instance_by_image_context_model['name'] = 'my-volume-attachment' - volume_attachment_prototype_instance_by_image_context_model['volume'] = volume_prototype_instance_by_image_context_model - - # Construct a dict representation of a CatalogOfferingVersionPlanIdentityCatalogOfferingVersionPlanByCRN model - catalog_offering_version_plan_identity_model = {} - catalog_offering_version_plan_identity_model['crn'] = 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:51c9e0db-2911-45a6-adb0-ac5332d27cf2:plan:sw.51c9e0db-2911-45a6-adb0-ac5332d27cf2.772c0dbe-aa62-482e-adbe-a3fc20101e0e' - - # Construct a dict representation of a CatalogOfferingIdentityCatalogOfferingByCRN model - catalog_offering_identity_model = {} - catalog_offering_identity_model['crn'] = 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:offering:00111601-0ec5-41ac-b142-96d1e64e6442' - - # Construct a dict representation of a InstanceCatalogOfferingPrototypeCatalogOfferingByOffering model - instance_catalog_offering_prototype_model = {} - instance_catalog_offering_prototype_model['plan'] = catalog_offering_version_plan_identity_model - instance_catalog_offering_prototype_model['offering'] = catalog_offering_identity_model - - # Construct a dict representation of a ImageIdentityById model - image_identity_model = {} - image_identity_model['id'] = '3f9a2d96-830e-4100-9b4c-663225a3f872' - - # Construct a dict representation of a VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext model - virtual_network_interface_ip_prototype_model = {} - virtual_network_interface_ip_prototype_model['address'] = '10.0.0.5' - virtual_network_interface_ip_prototype_model['auto_delete'] = False - virtual_network_interface_ip_prototype_model['name'] = 'my-reserved-ip' - - # Construct a dict representation of a VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext model - virtual_network_interface_primary_ip_prototype_model = {} - virtual_network_interface_primary_ip_prototype_model['address'] = '10.0.0.5' - virtual_network_interface_primary_ip_prototype_model['auto_delete'] = False - virtual_network_interface_primary_ip_prototype_model['name'] = 'my-reserved-ip' - - # Construct a dict representation of a SecurityGroupIdentityById model - security_group_identity_model = {} - security_group_identity_model['id'] = 'r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' - - # Construct a dict representation of a SubnetIdentityById model - subnet_identity_model = {} - subnet_identity_model['id'] = '7ec86020-1c6e-4889-b3f0-a15f2e50f87e' - - # Construct a dict representation of a InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeInstanceNetworkAttachmentContext model - instance_network_attachment_prototype_virtual_network_interface_model = {} - instance_network_attachment_prototype_virtual_network_interface_model['allow_ip_spoofing'] = True - instance_network_attachment_prototype_virtual_network_interface_model['auto_delete'] = False - instance_network_attachment_prototype_virtual_network_interface_model['enable_infrastructure_nat'] = True - instance_network_attachment_prototype_virtual_network_interface_model['ips'] = [virtual_network_interface_ip_prototype_model] - instance_network_attachment_prototype_virtual_network_interface_model['name'] = 'my-virtual-network-interface' - instance_network_attachment_prototype_virtual_network_interface_model['primary_ip'] = virtual_network_interface_primary_ip_prototype_model - instance_network_attachment_prototype_virtual_network_interface_model['protocol_state_filtering_mode'] = 'auto' - instance_network_attachment_prototype_virtual_network_interface_model['resource_group'] = resource_group_identity_model - instance_network_attachment_prototype_virtual_network_interface_model['security_groups'] = [security_group_identity_model] - instance_network_attachment_prototype_virtual_network_interface_model['subnet'] = subnet_identity_model - - # Construct a dict representation of a InstanceNetworkAttachmentPrototype model - instance_network_attachment_prototype_model = {} - instance_network_attachment_prototype_model['name'] = 'my-instance-network-attachment' - instance_network_attachment_prototype_model['virtual_network_interface'] = instance_network_attachment_prototype_virtual_network_interface_model - - # Construct a dict representation of a NetworkInterfaceIPPrototypeReservedIPPrototypeNetworkInterfaceContext model - network_interface_ip_prototype_model = {} - network_interface_ip_prototype_model['address'] = '10.0.0.5' - network_interface_ip_prototype_model['auto_delete'] = False - network_interface_ip_prototype_model['name'] = 'my-reserved-ip' - - # Construct a dict representation of a NetworkInterfacePrototype model - network_interface_prototype_model = {} - network_interface_prototype_model['allow_ip_spoofing'] = True - network_interface_prototype_model['name'] = 'my-instance-network-interface' - network_interface_prototype_model['primary_ip'] = network_interface_ip_prototype_model - network_interface_prototype_model['security_groups'] = [security_group_identity_model] - network_interface_prototype_model['subnet'] = subnet_identity_model - - # Construct a dict representation of a InstanceTemplateIdentityById model - instance_template_identity_model = {} - instance_template_identity_model['id'] = 'a6b1a881-2ce8-41a3-80fc-36316a73f803' - - # Construct a dict representation of a ZoneIdentityByName model - zone_identity_model = {} - zone_identity_model['name'] = 'us-south-1' - - # Construct a dict representation of a InstanceTemplatePrototypeInstanceTemplateBySourceTemplate model - instance_template_prototype_model = {} - instance_template_prototype_model['availability_policy'] = instance_availability_policy_prototype_model - instance_template_prototype_model['cluster_network_attachments'] = [instance_cluster_network_attachment_prototype_instance_context_model] - instance_template_prototype_model['confidential_compute_mode'] = 'disabled' - instance_template_prototype_model['default_trusted_profile'] = instance_default_trusted_profile_prototype_model - instance_template_prototype_model['enable_secure_boot'] = True - instance_template_prototype_model['keys'] = [key_identity_model] - instance_template_prototype_model['metadata_service'] = instance_metadata_service_prototype_model - instance_template_prototype_model['name'] = 'my-instance-template' - instance_template_prototype_model['placement_target'] = instance_placement_target_prototype_model - instance_template_prototype_model['profile'] = instance_profile_identity_model - instance_template_prototype_model['reservation_affinity'] = instance_reservation_affinity_prototype_model - instance_template_prototype_model['resource_group'] = resource_group_identity_model - instance_template_prototype_model['total_volume_bandwidth'] = 500 - instance_template_prototype_model['user_data'] = 'testString' - instance_template_prototype_model['volume_attachments'] = [volume_attachment_prototype_model] - instance_template_prototype_model['vpc'] = vpc_identity_model - instance_template_prototype_model['boot_volume_attachment'] = volume_attachment_prototype_instance_by_image_context_model - instance_template_prototype_model['catalog_offering'] = instance_catalog_offering_prototype_model - instance_template_prototype_model['image'] = image_identity_model - instance_template_prototype_model['network_attachments'] = [instance_network_attachment_prototype_model] - instance_template_prototype_model['network_interfaces'] = [network_interface_prototype_model] - instance_template_prototype_model['primary_network_attachment'] = instance_network_attachment_prototype_model - instance_template_prototype_model['primary_network_interface'] = network_interface_prototype_model - instance_template_prototype_model['source_template'] = instance_template_identity_model - instance_template_prototype_model['zone'] = zone_identity_model - - # Set up parameter values - instance_template_prototype = instance_template_prototype_model - - # Invoke method - response = _service.create_instance_template( - instance_template_prototype, - headers={}, + instance_cluster_network_attachment_prototype_cluster_network_interface_model['name'] = ( + 'my-cluster-network-interface' ) - - # Check for correct operation - assert len(responses.calls) == 1 - assert response.status_code == 201 - # Validate body params - req_body = json.loads(str(responses.calls[0].request.body, 'utf-8')) - assert req_body == instance_template_prototype - - def test_create_instance_template_all_params_with_retries(self): - # Enable retries and run test_create_instance_template_all_params. - _service.enable_retries() - self.test_create_instance_template_all_params() - - # Disable retries and run test_create_instance_template_all_params. - _service.disable_retries() - self.test_create_instance_template_all_params() - - @responses.activate - def test_create_instance_template_value_error(self): - """ - test_create_instance_template_value_error() - """ - # Set up mock - url = preprocess_url('/instance/templates') - mock_response = '{"availability_policy": {"host_failure": "restart"}, "cluster_network_attachments": [{"cluster_network_interface": {"auto_delete": false, "name": "my-cluster-network-interface", "primary_ip": {"id": "6d353a0f-aeb1-4ae1-832e-1110d10981bb"}, "subnet": {"id": "0717-7931845c-65c4-4b0a-80cd-7d9c1a6d7930"}}, "name": "my-instance-network-attachment"}], "confidential_compute_mode": "disabled", "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::instance-template:1e09281b-f177-46fb-baf1-bc152b2e391a", "default_trusted_profile": {"auto_link": false, "target": {"id": "Profile-9fd84246-7df4-4667-94e4-8ecde51d5ac5"}}, "enable_secure_boot": true, "href": "https://us-south.iaas.cloud.ibm.com/v1/instance/templates/1e09281b-f177-46fb-baf1-bc152b2e391a", "id": "a6b1a881-2ce8-41a3-80fc-36316a73f803", "keys": [{"id": "r006-82679077-ac3b-4c10-be16-63e9c21f0f45"}], "metadata_service": {"enabled": false, "protocol": "https", "response_hop_limit": 2}, "name": "my-instance-template", "placement_target": {"id": "0717-1e09281b-f177-46fb-baf1-bc152b2e391a"}, "profile": {"name": "bx2-4x16"}, "reservation_affinity": {"policy": "disabled", "pool": [{"id": "0717-ba49df72-37b8-43ac-98da-f8e029de0e63"}]}, "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "total_volume_bandwidth": 500, "user_data": "user_data", "volume_attachments": [{"delete_volume_on_instance_delete": false, "name": "my-volume-attachment", "volume": {"id": "r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5"}}], "vpc": {"id": "r006-4727d842-f94f-4a2d-824a-9bc9b02c523b"}, "boot_volume_attachment": {"delete_volume_on_instance_delete": true, "name": "my-volume-attachment", "volume": {"capacity": 100, "encryption_key": {"crn": "crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179"}, "iops": 10000, "name": "my-volume", "profile": {"name": "general-purpose"}, "resource_group": {"id": "fee82deba12e4c0fb69c3b09d1f12345"}, "user_tags": ["user_tags"]}}, "image": {"id": "r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8"}, "zone": {"name": "us-south-1"}, "network_attachments": [{"name": "my-instance-network-attachment", "virtual_network_interface": {"allow_ip_spoofing": true, "auto_delete": false, "enable_infrastructure_nat": true, "ips": [{"id": "0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb"}], "name": "my-virtual-network-interface", "primary_ip": {"id": "0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb"}, "protocol_state_filtering_mode": "auto", "resource_group": {"id": "fee82deba12e4c0fb69c3b09d1f12345"}, "security_groups": [{"id": "r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271"}], "subnet": {"id": "0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e"}}}], "primary_network_attachment": {"name": "my-instance-network-attachment", "virtual_network_interface": {"allow_ip_spoofing": true, "auto_delete": false, "enable_infrastructure_nat": true, "ips": [{"id": "0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb"}], "name": "my-virtual-network-interface", "primary_ip": {"id": "0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb"}, "protocol_state_filtering_mode": "auto", "resource_group": {"id": "fee82deba12e4c0fb69c3b09d1f12345"}, "security_groups": [{"id": "r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271"}], "subnet": {"id": "0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e"}}}}' - responses.add( - responses.POST, - url, - body=mock_response, - content_type='application/json', - status=201, + instance_cluster_network_attachment_prototype_cluster_network_interface_model['primary_ip'] = ( + cluster_network_interface_primary_ip_prototype_model + ) + instance_cluster_network_attachment_prototype_cluster_network_interface_model['subnet'] = ( + cluster_network_subnet_identity_model ) - - # Construct a dict representation of a InstanceAvailabilityPolicyPrototype model - instance_availability_policy_prototype_model = {} - instance_availability_policy_prototype_model['host_failure'] = 'restart' - - # Construct a dict representation of a ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPPrototypeClusterNetworkInterfacePrimaryIPContext model - cluster_network_interface_primary_ip_prototype_model = {} - cluster_network_interface_primary_ip_prototype_model['address'] = '10.0.0.5' - cluster_network_interface_primary_ip_prototype_model['auto_delete'] = False - cluster_network_interface_primary_ip_prototype_model['name'] = 'my-cluster-network-subnet-reserved-ip' - - # Construct a dict representation of a ClusterNetworkSubnetIdentityById model - cluster_network_subnet_identity_model = {} - cluster_network_subnet_identity_model['id'] = '0717-7931845c-65c4-4b0a-80cd-7d9c1a6d7930' - - # Construct a dict representation of a InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment model - instance_cluster_network_attachment_prototype_cluster_network_interface_model = {} - instance_cluster_network_attachment_prototype_cluster_network_interface_model['auto_delete'] = False - instance_cluster_network_attachment_prototype_cluster_network_interface_model['name'] = 'my-cluster-network-interface' - instance_cluster_network_attachment_prototype_cluster_network_interface_model['primary_ip'] = cluster_network_interface_primary_ip_prototype_model - instance_cluster_network_attachment_prototype_cluster_network_interface_model['subnet'] = cluster_network_subnet_identity_model # Construct a dict representation of a InstanceClusterNetworkAttachmentPrototypeInstanceContext model instance_cluster_network_attachment_prototype_instance_context_model = {} - instance_cluster_network_attachment_prototype_instance_context_model['cluster_network_interface'] = instance_cluster_network_attachment_prototype_cluster_network_interface_model + instance_cluster_network_attachment_prototype_instance_context_model['cluster_network_interface'] = ( + instance_cluster_network_attachment_prototype_cluster_network_interface_model + ) instance_cluster_network_attachment_prototype_instance_context_model['name'] = 'my-instance-network-attachment' # Construct a dict representation of a TrustedProfileIdentityById model @@ -8991,7 +8752,9 @@ def test_create_instance_template_value_error(self): # Construct a dict representation of a EncryptionKeyIdentityByCRN model encryption_key_identity_model = {} - encryption_key_identity_model['crn'] = 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + encryption_key_identity_model['crn'] = ( + 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + ) # Construct a dict representation of a VolumeProfileIdentityByName model volume_profile_identity_model = {} @@ -9011,15 +8774,21 @@ def test_create_instance_template_value_error(self): volume_attachment_prototype_instance_by_image_context_model = {} volume_attachment_prototype_instance_by_image_context_model['delete_volume_on_instance_delete'] = True volume_attachment_prototype_instance_by_image_context_model['name'] = 'my-volume-attachment' - volume_attachment_prototype_instance_by_image_context_model['volume'] = volume_prototype_instance_by_image_context_model + volume_attachment_prototype_instance_by_image_context_model['volume'] = ( + volume_prototype_instance_by_image_context_model + ) # Construct a dict representation of a CatalogOfferingVersionPlanIdentityCatalogOfferingVersionPlanByCRN model catalog_offering_version_plan_identity_model = {} - catalog_offering_version_plan_identity_model['crn'] = 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:51c9e0db-2911-45a6-adb0-ac5332d27cf2:plan:sw.51c9e0db-2911-45a6-adb0-ac5332d27cf2.772c0dbe-aa62-482e-adbe-a3fc20101e0e' + catalog_offering_version_plan_identity_model['crn'] = ( + 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:51c9e0db-2911-45a6-adb0-ac5332d27cf2:plan:sw.51c9e0db-2911-45a6-adb0-ac5332d27cf2.772c0dbe-aa62-482e-adbe-a3fc20101e0e' + ) # Construct a dict representation of a CatalogOfferingIdentityCatalogOfferingByCRN model catalog_offering_identity_model = {} - catalog_offering_identity_model['crn'] = 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:offering:00111601-0ec5-41ac-b142-96d1e64e6442' + catalog_offering_identity_model['crn'] = ( + 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:offering:00111601-0ec5-41ac-b142-96d1e64e6442' + ) # Construct a dict representation of a InstanceCatalogOfferingPrototypeCatalogOfferingByOffering model instance_catalog_offering_prototype_model = {} @@ -9055,18 +8824,28 @@ def test_create_instance_template_value_error(self): instance_network_attachment_prototype_virtual_network_interface_model['allow_ip_spoofing'] = True instance_network_attachment_prototype_virtual_network_interface_model['auto_delete'] = False instance_network_attachment_prototype_virtual_network_interface_model['enable_infrastructure_nat'] = True - instance_network_attachment_prototype_virtual_network_interface_model['ips'] = [virtual_network_interface_ip_prototype_model] + instance_network_attachment_prototype_virtual_network_interface_model['ips'] = [ + virtual_network_interface_ip_prototype_model + ] instance_network_attachment_prototype_virtual_network_interface_model['name'] = 'my-virtual-network-interface' - instance_network_attachment_prototype_virtual_network_interface_model['primary_ip'] = virtual_network_interface_primary_ip_prototype_model + instance_network_attachment_prototype_virtual_network_interface_model['primary_ip'] = ( + virtual_network_interface_primary_ip_prototype_model + ) instance_network_attachment_prototype_virtual_network_interface_model['protocol_state_filtering_mode'] = 'auto' - instance_network_attachment_prototype_virtual_network_interface_model['resource_group'] = resource_group_identity_model - instance_network_attachment_prototype_virtual_network_interface_model['security_groups'] = [security_group_identity_model] + instance_network_attachment_prototype_virtual_network_interface_model['resource_group'] = ( + resource_group_identity_model + ) + instance_network_attachment_prototype_virtual_network_interface_model['security_groups'] = [ + security_group_identity_model + ] instance_network_attachment_prototype_virtual_network_interface_model['subnet'] = subnet_identity_model # Construct a dict representation of a InstanceNetworkAttachmentPrototype model instance_network_attachment_prototype_model = {} instance_network_attachment_prototype_model['name'] = 'my-instance-network-attachment' - instance_network_attachment_prototype_model['virtual_network_interface'] = instance_network_attachment_prototype_virtual_network_interface_model + instance_network_attachment_prototype_model['virtual_network_interface'] = ( + instance_network_attachment_prototype_virtual_network_interface_model + ) # Construct a dict representation of a NetworkInterfaceIPPrototypeReservedIPPrototypeNetworkInterfaceContext model network_interface_ip_prototype_model = {} @@ -9093,7 +8872,9 @@ def test_create_instance_template_value_error(self): # Construct a dict representation of a InstanceTemplatePrototypeInstanceTemplateBySourceTemplate model instance_template_prototype_model = {} instance_template_prototype_model['availability_policy'] = instance_availability_policy_prototype_model - instance_template_prototype_model['cluster_network_attachments'] = [instance_cluster_network_attachment_prototype_instance_context_model] + instance_template_prototype_model['cluster_network_attachments'] = [ + instance_cluster_network_attachment_prototype_instance_context_model + ] instance_template_prototype_model['confidential_compute_mode'] = 'disabled' instance_template_prototype_model['default_trusted_profile'] = instance_default_trusted_profile_prototype_model instance_template_prototype_model['enable_secure_boot'] = True @@ -9108,7 +8889,289 @@ def test_create_instance_template_value_error(self): instance_template_prototype_model['user_data'] = 'testString' instance_template_prototype_model['volume_attachments'] = [volume_attachment_prototype_model] instance_template_prototype_model['vpc'] = vpc_identity_model - instance_template_prototype_model['boot_volume_attachment'] = volume_attachment_prototype_instance_by_image_context_model + instance_template_prototype_model['boot_volume_attachment'] = ( + volume_attachment_prototype_instance_by_image_context_model + ) + instance_template_prototype_model['catalog_offering'] = instance_catalog_offering_prototype_model + instance_template_prototype_model['image'] = image_identity_model + instance_template_prototype_model['network_attachments'] = [instance_network_attachment_prototype_model] + instance_template_prototype_model['network_interfaces'] = [network_interface_prototype_model] + instance_template_prototype_model['primary_network_attachment'] = instance_network_attachment_prototype_model + instance_template_prototype_model['primary_network_interface'] = network_interface_prototype_model + instance_template_prototype_model['source_template'] = instance_template_identity_model + instance_template_prototype_model['zone'] = zone_identity_model + + # Set up parameter values + instance_template_prototype = instance_template_prototype_model + + # Invoke method + response = _service.create_instance_template( + instance_template_prototype, + headers={}, + ) + + # Check for correct operation + assert len(responses.calls) == 1 + assert response.status_code == 201 + # Validate body params + req_body = json.loads(str(responses.calls[0].request.body, 'utf-8')) + assert req_body == instance_template_prototype + + def test_create_instance_template_all_params_with_retries(self): + # Enable retries and run test_create_instance_template_all_params. + _service.enable_retries() + self.test_create_instance_template_all_params() + + # Disable retries and run test_create_instance_template_all_params. + _service.disable_retries() + self.test_create_instance_template_all_params() + + @responses.activate + def test_create_instance_template_value_error(self): + """ + test_create_instance_template_value_error() + """ + # Set up mock + url = preprocess_url('/instance/templates') + mock_response = '{"availability_policy": {"host_failure": "restart"}, "cluster_network_attachments": [{"cluster_network_interface": {"auto_delete": false, "name": "my-cluster-network-interface", "primary_ip": {"id": "6d353a0f-aeb1-4ae1-832e-1110d10981bb"}, "subnet": {"id": "0717-7931845c-65c4-4b0a-80cd-7d9c1a6d7930"}}, "name": "my-instance-network-attachment"}], "confidential_compute_mode": "disabled", "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::instance-template:1e09281b-f177-46fb-baf1-bc152b2e391a", "default_trusted_profile": {"auto_link": false, "target": {"id": "Profile-9fd84246-7df4-4667-94e4-8ecde51d5ac5"}}, "enable_secure_boot": true, "href": "https://us-south.iaas.cloud.ibm.com/v1/instance/templates/1e09281b-f177-46fb-baf1-bc152b2e391a", "id": "a6b1a881-2ce8-41a3-80fc-36316a73f803", "keys": [{"id": "r006-82679077-ac3b-4c10-be16-63e9c21f0f45"}], "metadata_service": {"enabled": false, "protocol": "https", "response_hop_limit": 2}, "name": "my-instance-template", "placement_target": {"id": "0717-1e09281b-f177-46fb-baf1-bc152b2e391a"}, "profile": {"name": "bx2-4x16"}, "reservation_affinity": {"policy": "disabled", "pool": [{"id": "0717-ba49df72-37b8-43ac-98da-f8e029de0e63"}]}, "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "total_volume_bandwidth": 500, "user_data": "user_data", "volume_attachments": [{"delete_volume_on_instance_delete": false, "name": "my-volume-attachment", "volume": {"id": "r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5"}}], "vpc": {"id": "r006-4727d842-f94f-4a2d-824a-9bc9b02c523b"}, "boot_volume_attachment": {"delete_volume_on_instance_delete": true, "name": "my-volume-attachment", "volume": {"capacity": 100, "encryption_key": {"crn": "crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179"}, "iops": 10000, "name": "my-volume", "profile": {"name": "general-purpose"}, "resource_group": {"id": "fee82deba12e4c0fb69c3b09d1f12345"}, "user_tags": ["user_tags"]}}, "image": {"id": "r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8"}, "zone": {"name": "us-south-1"}, "network_attachments": [{"name": "my-instance-network-attachment", "virtual_network_interface": {"allow_ip_spoofing": true, "auto_delete": false, "enable_infrastructure_nat": true, "ips": [{"id": "0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb"}], "name": "my-virtual-network-interface", "primary_ip": {"id": "0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb"}, "protocol_state_filtering_mode": "auto", "resource_group": {"id": "fee82deba12e4c0fb69c3b09d1f12345"}, "security_groups": [{"id": "r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271"}], "subnet": {"id": "0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e"}}}], "primary_network_attachment": {"name": "my-instance-network-attachment", "virtual_network_interface": {"allow_ip_spoofing": true, "auto_delete": false, "enable_infrastructure_nat": true, "ips": [{"id": "0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb"}], "name": "my-virtual-network-interface", "primary_ip": {"id": "0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb"}, "protocol_state_filtering_mode": "auto", "resource_group": {"id": "fee82deba12e4c0fb69c3b09d1f12345"}, "security_groups": [{"id": "r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271"}], "subnet": {"id": "0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e"}}}}' + responses.add( + responses.POST, + url, + body=mock_response, + content_type='application/json', + status=201, + ) + + # Construct a dict representation of a InstanceAvailabilityPolicyPrototype model + instance_availability_policy_prototype_model = {} + instance_availability_policy_prototype_model['host_failure'] = 'restart' + + # Construct a dict representation of a ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPPrototypeClusterNetworkInterfacePrimaryIPContext model + cluster_network_interface_primary_ip_prototype_model = {} + cluster_network_interface_primary_ip_prototype_model['address'] = '10.0.0.5' + cluster_network_interface_primary_ip_prototype_model['auto_delete'] = False + cluster_network_interface_primary_ip_prototype_model['name'] = 'my-cluster-network-subnet-reserved-ip' + + # Construct a dict representation of a ClusterNetworkSubnetIdentityById model + cluster_network_subnet_identity_model = {} + cluster_network_subnet_identity_model['id'] = '0717-7931845c-65c4-4b0a-80cd-7d9c1a6d7930' + + # Construct a dict representation of a InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment model + instance_cluster_network_attachment_prototype_cluster_network_interface_model = {} + instance_cluster_network_attachment_prototype_cluster_network_interface_model['auto_delete'] = False + instance_cluster_network_attachment_prototype_cluster_network_interface_model['name'] = ( + 'my-cluster-network-interface' + ) + instance_cluster_network_attachment_prototype_cluster_network_interface_model['primary_ip'] = ( + cluster_network_interface_primary_ip_prototype_model + ) + instance_cluster_network_attachment_prototype_cluster_network_interface_model['subnet'] = ( + cluster_network_subnet_identity_model + ) + + # Construct a dict representation of a InstanceClusterNetworkAttachmentPrototypeInstanceContext model + instance_cluster_network_attachment_prototype_instance_context_model = {} + instance_cluster_network_attachment_prototype_instance_context_model['cluster_network_interface'] = ( + instance_cluster_network_attachment_prototype_cluster_network_interface_model + ) + instance_cluster_network_attachment_prototype_instance_context_model['name'] = 'my-instance-network-attachment' + + # Construct a dict representation of a TrustedProfileIdentityById model + trusted_profile_identity_model = {} + trusted_profile_identity_model['id'] = 'Profile-9fd84246-7df4-4667-94e4-8ecde51d5ac5' + + # Construct a dict representation of a InstanceDefaultTrustedProfilePrototype model + instance_default_trusted_profile_prototype_model = {} + instance_default_trusted_profile_prototype_model['auto_link'] = False + instance_default_trusted_profile_prototype_model['target'] = trusted_profile_identity_model + + # Construct a dict representation of a KeyIdentityById model + key_identity_model = {} + key_identity_model['id'] = '363f6d70-0000-0001-0000-00000013b96c' + + # Construct a dict representation of a InstanceMetadataServicePrototype model + instance_metadata_service_prototype_model = {} + instance_metadata_service_prototype_model['enabled'] = False + instance_metadata_service_prototype_model['protocol'] = 'https' + instance_metadata_service_prototype_model['response_hop_limit'] = 2 + + # Construct a dict representation of a InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityById model + instance_placement_target_prototype_model = {} + instance_placement_target_prototype_model['id'] = '0717-1e09281b-f177-46fb-baf1-bc152b2e391a' + + # Construct a dict representation of a InstanceProfileIdentityByName model + instance_profile_identity_model = {} + instance_profile_identity_model['name'] = 'bx2-2x8' + + # Construct a dict representation of a ReservationIdentityById model + reservation_identity_model = {} + reservation_identity_model['id'] = '0717-ba49df72-37b8-43ac-98da-f8e029de0e63' + + # Construct a dict representation of a InstanceReservationAffinityPrototype model + instance_reservation_affinity_prototype_model = {} + instance_reservation_affinity_prototype_model['policy'] = 'disabled' + instance_reservation_affinity_prototype_model['pool'] = [reservation_identity_model] + + # Construct a dict representation of a ResourceGroupIdentityById model + resource_group_identity_model = {} + resource_group_identity_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' + + # Construct a dict representation of a VolumeAttachmentPrototypeVolumeVolumeIdentityVolumeIdentityById model + volume_attachment_prototype_volume_model = {} + volume_attachment_prototype_volume_model['id'] = 'r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' + + # Construct a dict representation of a VolumeAttachmentPrototype model + volume_attachment_prototype_model = {} + volume_attachment_prototype_model['delete_volume_on_instance_delete'] = False + volume_attachment_prototype_model['name'] = 'my-volume-attachment' + volume_attachment_prototype_model['volume'] = volume_attachment_prototype_volume_model + + # Construct a dict representation of a VPCIdentityById model + vpc_identity_model = {} + vpc_identity_model['id'] = 'dc201ab2-8536-4904-86a8-084d84582133' + + # Construct a dict representation of a EncryptionKeyIdentityByCRN model + encryption_key_identity_model = {} + encryption_key_identity_model['crn'] = ( + 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + ) + + # Construct a dict representation of a VolumeProfileIdentityByName model + volume_profile_identity_model = {} + volume_profile_identity_model['name'] = 'general-purpose' + + # Construct a dict representation of a VolumePrototypeInstanceByImageContext model + volume_prototype_instance_by_image_context_model = {} + volume_prototype_instance_by_image_context_model['capacity'] = 100 + volume_prototype_instance_by_image_context_model['encryption_key'] = encryption_key_identity_model + volume_prototype_instance_by_image_context_model['iops'] = 10000 + volume_prototype_instance_by_image_context_model['name'] = 'my-volume' + volume_prototype_instance_by_image_context_model['profile'] = volume_profile_identity_model + volume_prototype_instance_by_image_context_model['resource_group'] = resource_group_identity_model + volume_prototype_instance_by_image_context_model['user_tags'] = [] + + # Construct a dict representation of a VolumeAttachmentPrototypeInstanceByImageContext model + volume_attachment_prototype_instance_by_image_context_model = {} + volume_attachment_prototype_instance_by_image_context_model['delete_volume_on_instance_delete'] = True + volume_attachment_prototype_instance_by_image_context_model['name'] = 'my-volume-attachment' + volume_attachment_prototype_instance_by_image_context_model['volume'] = ( + volume_prototype_instance_by_image_context_model + ) + + # Construct a dict representation of a CatalogOfferingVersionPlanIdentityCatalogOfferingVersionPlanByCRN model + catalog_offering_version_plan_identity_model = {} + catalog_offering_version_plan_identity_model['crn'] = ( + 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:51c9e0db-2911-45a6-adb0-ac5332d27cf2:plan:sw.51c9e0db-2911-45a6-adb0-ac5332d27cf2.772c0dbe-aa62-482e-adbe-a3fc20101e0e' + ) + + # Construct a dict representation of a CatalogOfferingIdentityCatalogOfferingByCRN model + catalog_offering_identity_model = {} + catalog_offering_identity_model['crn'] = ( + 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:offering:00111601-0ec5-41ac-b142-96d1e64e6442' + ) + + # Construct a dict representation of a InstanceCatalogOfferingPrototypeCatalogOfferingByOffering model + instance_catalog_offering_prototype_model = {} + instance_catalog_offering_prototype_model['plan'] = catalog_offering_version_plan_identity_model + instance_catalog_offering_prototype_model['offering'] = catalog_offering_identity_model + + # Construct a dict representation of a ImageIdentityById model + image_identity_model = {} + image_identity_model['id'] = '3f9a2d96-830e-4100-9b4c-663225a3f872' + + # Construct a dict representation of a VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext model + virtual_network_interface_ip_prototype_model = {} + virtual_network_interface_ip_prototype_model['address'] = '10.0.0.5' + virtual_network_interface_ip_prototype_model['auto_delete'] = False + virtual_network_interface_ip_prototype_model['name'] = 'my-reserved-ip' + + # Construct a dict representation of a VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext model + virtual_network_interface_primary_ip_prototype_model = {} + virtual_network_interface_primary_ip_prototype_model['address'] = '10.0.0.5' + virtual_network_interface_primary_ip_prototype_model['auto_delete'] = False + virtual_network_interface_primary_ip_prototype_model['name'] = 'my-reserved-ip' + + # Construct a dict representation of a SecurityGroupIdentityById model + security_group_identity_model = {} + security_group_identity_model['id'] = 'r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + + # Construct a dict representation of a SubnetIdentityById model + subnet_identity_model = {} + subnet_identity_model['id'] = '7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + + # Construct a dict representation of a InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeInstanceNetworkAttachmentContext model + instance_network_attachment_prototype_virtual_network_interface_model = {} + instance_network_attachment_prototype_virtual_network_interface_model['allow_ip_spoofing'] = True + instance_network_attachment_prototype_virtual_network_interface_model['auto_delete'] = False + instance_network_attachment_prototype_virtual_network_interface_model['enable_infrastructure_nat'] = True + instance_network_attachment_prototype_virtual_network_interface_model['ips'] = [ + virtual_network_interface_ip_prototype_model + ] + instance_network_attachment_prototype_virtual_network_interface_model['name'] = 'my-virtual-network-interface' + instance_network_attachment_prototype_virtual_network_interface_model['primary_ip'] = ( + virtual_network_interface_primary_ip_prototype_model + ) + instance_network_attachment_prototype_virtual_network_interface_model['protocol_state_filtering_mode'] = 'auto' + instance_network_attachment_prototype_virtual_network_interface_model['resource_group'] = ( + resource_group_identity_model + ) + instance_network_attachment_prototype_virtual_network_interface_model['security_groups'] = [ + security_group_identity_model + ] + instance_network_attachment_prototype_virtual_network_interface_model['subnet'] = subnet_identity_model + + # Construct a dict representation of a InstanceNetworkAttachmentPrototype model + instance_network_attachment_prototype_model = {} + instance_network_attachment_prototype_model['name'] = 'my-instance-network-attachment' + instance_network_attachment_prototype_model['virtual_network_interface'] = ( + instance_network_attachment_prototype_virtual_network_interface_model + ) + + # Construct a dict representation of a NetworkInterfaceIPPrototypeReservedIPPrototypeNetworkInterfaceContext model + network_interface_ip_prototype_model = {} + network_interface_ip_prototype_model['address'] = '10.0.0.5' + network_interface_ip_prototype_model['auto_delete'] = False + network_interface_ip_prototype_model['name'] = 'my-reserved-ip' + + # Construct a dict representation of a NetworkInterfacePrototype model + network_interface_prototype_model = {} + network_interface_prototype_model['allow_ip_spoofing'] = True + network_interface_prototype_model['name'] = 'my-instance-network-interface' + network_interface_prototype_model['primary_ip'] = network_interface_ip_prototype_model + network_interface_prototype_model['security_groups'] = [security_group_identity_model] + network_interface_prototype_model['subnet'] = subnet_identity_model + + # Construct a dict representation of a InstanceTemplateIdentityById model + instance_template_identity_model = {} + instance_template_identity_model['id'] = 'a6b1a881-2ce8-41a3-80fc-36316a73f803' + + # Construct a dict representation of a ZoneIdentityByName model + zone_identity_model = {} + zone_identity_model['name'] = 'us-south-1' + + # Construct a dict representation of a InstanceTemplatePrototypeInstanceTemplateBySourceTemplate model + instance_template_prototype_model = {} + instance_template_prototype_model['availability_policy'] = instance_availability_policy_prototype_model + instance_template_prototype_model['cluster_network_attachments'] = [ + instance_cluster_network_attachment_prototype_instance_context_model + ] + instance_template_prototype_model['confidential_compute_mode'] = 'disabled' + instance_template_prototype_model['default_trusted_profile'] = instance_default_trusted_profile_prototype_model + instance_template_prototype_model['enable_secure_boot'] = True + instance_template_prototype_model['keys'] = [key_identity_model] + instance_template_prototype_model['metadata_service'] = instance_metadata_service_prototype_model + instance_template_prototype_model['name'] = 'my-instance-template' + instance_template_prototype_model['placement_target'] = instance_placement_target_prototype_model + instance_template_prototype_model['profile'] = instance_profile_identity_model + instance_template_prototype_model['reservation_affinity'] = instance_reservation_affinity_prototype_model + instance_template_prototype_model['resource_group'] = resource_group_identity_model + instance_template_prototype_model['total_volume_bandwidth'] = 500 + instance_template_prototype_model['user_data'] = 'testString' + instance_template_prototype_model['volume_attachments'] = [volume_attachment_prototype_model] + instance_template_prototype_model['vpc'] = vpc_identity_model + instance_template_prototype_model['boot_volume_attachment'] = ( + volume_attachment_prototype_instance_by_image_context_model + ) instance_template_prototype_model['catalog_offering'] = instance_catalog_offering_prototype_model instance_template_prototype_model['image'] = image_identity_model instance_template_prototype_model['network_attachments'] = [instance_network_attachment_prototype_model] @@ -9542,8 +9605,7 @@ def test_list_instances_value_error(self): ) # Pass in all but one required param and check for a ValueError - req_param_dict = { - } + req_param_dict = {} for param in req_param_dict.keys(): req_copy = {key: val if key is not param else None for (key, val) in req_param_dict.items()} with pytest.raises(ValueError): @@ -9700,13 +9762,21 @@ def test_create_instance_all_params(self): # Construct a dict representation of a InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment model instance_cluster_network_attachment_prototype_cluster_network_interface_model = {} instance_cluster_network_attachment_prototype_cluster_network_interface_model['auto_delete'] = False - instance_cluster_network_attachment_prototype_cluster_network_interface_model['name'] = 'my-cluster-network-interface' - instance_cluster_network_attachment_prototype_cluster_network_interface_model['primary_ip'] = cluster_network_interface_primary_ip_prototype_model - instance_cluster_network_attachment_prototype_cluster_network_interface_model['subnet'] = cluster_network_subnet_identity_model + instance_cluster_network_attachment_prototype_cluster_network_interface_model['name'] = ( + 'my-cluster-network-interface' + ) + instance_cluster_network_attachment_prototype_cluster_network_interface_model['primary_ip'] = ( + cluster_network_interface_primary_ip_prototype_model + ) + instance_cluster_network_attachment_prototype_cluster_network_interface_model['subnet'] = ( + cluster_network_subnet_identity_model + ) # Construct a dict representation of a InstanceClusterNetworkAttachmentPrototypeInstanceContext model instance_cluster_network_attachment_prototype_instance_context_model = {} - instance_cluster_network_attachment_prototype_instance_context_model['cluster_network_interface'] = instance_cluster_network_attachment_prototype_cluster_network_interface_model + instance_cluster_network_attachment_prototype_instance_context_model['cluster_network_interface'] = ( + instance_cluster_network_attachment_prototype_cluster_network_interface_model + ) instance_cluster_network_attachment_prototype_instance_context_model['name'] = 'my-instance-network-attachment' # Construct a dict representation of a TrustedProfileIdentityById model @@ -9791,15 +9861,21 @@ def test_create_instance_all_params(self): volume_attachment_prototype_instance_by_image_context_model = {} volume_attachment_prototype_instance_by_image_context_model['delete_volume_on_instance_delete'] = True volume_attachment_prototype_instance_by_image_context_model['name'] = 'my-volume-attachment' - volume_attachment_prototype_instance_by_image_context_model['volume'] = volume_prototype_instance_by_image_context_model + volume_attachment_prototype_instance_by_image_context_model['volume'] = ( + volume_prototype_instance_by_image_context_model + ) # Construct a dict representation of a CatalogOfferingVersionPlanIdentityCatalogOfferingVersionPlanByCRN model catalog_offering_version_plan_identity_model = {} - catalog_offering_version_plan_identity_model['crn'] = 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:51c9e0db-2911-45a6-adb0-ac5332d27cf2:plan:sw.51c9e0db-2911-45a6-adb0-ac5332d27cf2.772c0dbe-aa62-482e-adbe-a3fc20101e0e' + catalog_offering_version_plan_identity_model['crn'] = ( + 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:51c9e0db-2911-45a6-adb0-ac5332d27cf2:plan:sw.51c9e0db-2911-45a6-adb0-ac5332d27cf2.772c0dbe-aa62-482e-adbe-a3fc20101e0e' + ) # Construct a dict representation of a CatalogOfferingIdentityCatalogOfferingByCRN model catalog_offering_identity_model = {} - catalog_offering_identity_model['crn'] = 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:offering:00111601-0ec5-41ac-b142-96d1e64e6442' + catalog_offering_identity_model['crn'] = ( + 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:offering:00111601-0ec5-41ac-b142-96d1e64e6442' + ) # Construct a dict representation of a InstanceCatalogOfferingPrototypeCatalogOfferingByOffering model instance_catalog_offering_prototype_model = {} @@ -9835,18 +9911,28 @@ def test_create_instance_all_params(self): instance_network_attachment_prototype_virtual_network_interface_model['allow_ip_spoofing'] = True instance_network_attachment_prototype_virtual_network_interface_model['auto_delete'] = False instance_network_attachment_prototype_virtual_network_interface_model['enable_infrastructure_nat'] = True - instance_network_attachment_prototype_virtual_network_interface_model['ips'] = [virtual_network_interface_ip_prototype_model] + instance_network_attachment_prototype_virtual_network_interface_model['ips'] = [ + virtual_network_interface_ip_prototype_model + ] instance_network_attachment_prototype_virtual_network_interface_model['name'] = 'my-virtual-network-interface' - instance_network_attachment_prototype_virtual_network_interface_model['primary_ip'] = virtual_network_interface_primary_ip_prototype_model + instance_network_attachment_prototype_virtual_network_interface_model['primary_ip'] = ( + virtual_network_interface_primary_ip_prototype_model + ) instance_network_attachment_prototype_virtual_network_interface_model['protocol_state_filtering_mode'] = 'auto' - instance_network_attachment_prototype_virtual_network_interface_model['resource_group'] = resource_group_identity_model - instance_network_attachment_prototype_virtual_network_interface_model['security_groups'] = [security_group_identity_model] + instance_network_attachment_prototype_virtual_network_interface_model['resource_group'] = ( + resource_group_identity_model + ) + instance_network_attachment_prototype_virtual_network_interface_model['security_groups'] = [ + security_group_identity_model + ] instance_network_attachment_prototype_virtual_network_interface_model['subnet'] = subnet_identity_model # Construct a dict representation of a InstanceNetworkAttachmentPrototype model instance_network_attachment_prototype_model = {} instance_network_attachment_prototype_model['name'] = 'my-instance-network-attachment' - instance_network_attachment_prototype_model['virtual_network_interface'] = instance_network_attachment_prototype_virtual_network_interface_model + instance_network_attachment_prototype_model['virtual_network_interface'] = ( + instance_network_attachment_prototype_virtual_network_interface_model + ) # Construct a dict representation of a NetworkInterfaceIPPrototypeReservedIPPrototypeNetworkInterfaceContext model network_interface_ip_prototype_model = {} @@ -9873,7 +9959,9 @@ def test_create_instance_all_params(self): # Construct a dict representation of a InstancePrototypeInstanceBySourceTemplate model instance_prototype_model = {} instance_prototype_model['availability_policy'] = instance_availability_policy_prototype_model - instance_prototype_model['cluster_network_attachments'] = [instance_cluster_network_attachment_prototype_instance_context_model] + instance_prototype_model['cluster_network_attachments'] = [ + instance_cluster_network_attachment_prototype_instance_context_model + ] instance_prototype_model['confidential_compute_mode'] = 'disabled' instance_prototype_model['default_trusted_profile'] = instance_default_trusted_profile_prototype_model instance_prototype_model['enable_secure_boot'] = True @@ -9956,13 +10044,21 @@ def test_create_instance_value_error(self): # Construct a dict representation of a InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment model instance_cluster_network_attachment_prototype_cluster_network_interface_model = {} instance_cluster_network_attachment_prototype_cluster_network_interface_model['auto_delete'] = False - instance_cluster_network_attachment_prototype_cluster_network_interface_model['name'] = 'my-cluster-network-interface' - instance_cluster_network_attachment_prototype_cluster_network_interface_model['primary_ip'] = cluster_network_interface_primary_ip_prototype_model - instance_cluster_network_attachment_prototype_cluster_network_interface_model['subnet'] = cluster_network_subnet_identity_model + instance_cluster_network_attachment_prototype_cluster_network_interface_model['name'] = ( + 'my-cluster-network-interface' + ) + instance_cluster_network_attachment_prototype_cluster_network_interface_model['primary_ip'] = ( + cluster_network_interface_primary_ip_prototype_model + ) + instance_cluster_network_attachment_prototype_cluster_network_interface_model['subnet'] = ( + cluster_network_subnet_identity_model + ) # Construct a dict representation of a InstanceClusterNetworkAttachmentPrototypeInstanceContext model instance_cluster_network_attachment_prototype_instance_context_model = {} - instance_cluster_network_attachment_prototype_instance_context_model['cluster_network_interface'] = instance_cluster_network_attachment_prototype_cluster_network_interface_model + instance_cluster_network_attachment_prototype_instance_context_model['cluster_network_interface'] = ( + instance_cluster_network_attachment_prototype_cluster_network_interface_model + ) instance_cluster_network_attachment_prototype_instance_context_model['name'] = 'my-instance-network-attachment' # Construct a dict representation of a TrustedProfileIdentityById model @@ -10047,15 +10143,21 @@ def test_create_instance_value_error(self): volume_attachment_prototype_instance_by_image_context_model = {} volume_attachment_prototype_instance_by_image_context_model['delete_volume_on_instance_delete'] = True volume_attachment_prototype_instance_by_image_context_model['name'] = 'my-volume-attachment' - volume_attachment_prototype_instance_by_image_context_model['volume'] = volume_prototype_instance_by_image_context_model + volume_attachment_prototype_instance_by_image_context_model['volume'] = ( + volume_prototype_instance_by_image_context_model + ) # Construct a dict representation of a CatalogOfferingVersionPlanIdentityCatalogOfferingVersionPlanByCRN model catalog_offering_version_plan_identity_model = {} - catalog_offering_version_plan_identity_model['crn'] = 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:51c9e0db-2911-45a6-adb0-ac5332d27cf2:plan:sw.51c9e0db-2911-45a6-adb0-ac5332d27cf2.772c0dbe-aa62-482e-adbe-a3fc20101e0e' + catalog_offering_version_plan_identity_model['crn'] = ( + 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:51c9e0db-2911-45a6-adb0-ac5332d27cf2:plan:sw.51c9e0db-2911-45a6-adb0-ac5332d27cf2.772c0dbe-aa62-482e-adbe-a3fc20101e0e' + ) # Construct a dict representation of a CatalogOfferingIdentityCatalogOfferingByCRN model catalog_offering_identity_model = {} - catalog_offering_identity_model['crn'] = 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:offering:00111601-0ec5-41ac-b142-96d1e64e6442' + catalog_offering_identity_model['crn'] = ( + 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:offering:00111601-0ec5-41ac-b142-96d1e64e6442' + ) # Construct a dict representation of a InstanceCatalogOfferingPrototypeCatalogOfferingByOffering model instance_catalog_offering_prototype_model = {} @@ -10091,18 +10193,28 @@ def test_create_instance_value_error(self): instance_network_attachment_prototype_virtual_network_interface_model['allow_ip_spoofing'] = True instance_network_attachment_prototype_virtual_network_interface_model['auto_delete'] = False instance_network_attachment_prototype_virtual_network_interface_model['enable_infrastructure_nat'] = True - instance_network_attachment_prototype_virtual_network_interface_model['ips'] = [virtual_network_interface_ip_prototype_model] + instance_network_attachment_prototype_virtual_network_interface_model['ips'] = [ + virtual_network_interface_ip_prototype_model + ] instance_network_attachment_prototype_virtual_network_interface_model['name'] = 'my-virtual-network-interface' - instance_network_attachment_prototype_virtual_network_interface_model['primary_ip'] = virtual_network_interface_primary_ip_prototype_model + instance_network_attachment_prototype_virtual_network_interface_model['primary_ip'] = ( + virtual_network_interface_primary_ip_prototype_model + ) instance_network_attachment_prototype_virtual_network_interface_model['protocol_state_filtering_mode'] = 'auto' - instance_network_attachment_prototype_virtual_network_interface_model['resource_group'] = resource_group_identity_model - instance_network_attachment_prototype_virtual_network_interface_model['security_groups'] = [security_group_identity_model] + instance_network_attachment_prototype_virtual_network_interface_model['resource_group'] = ( + resource_group_identity_model + ) + instance_network_attachment_prototype_virtual_network_interface_model['security_groups'] = [ + security_group_identity_model + ] instance_network_attachment_prototype_virtual_network_interface_model['subnet'] = subnet_identity_model # Construct a dict representation of a InstanceNetworkAttachmentPrototype model instance_network_attachment_prototype_model = {} instance_network_attachment_prototype_model['name'] = 'my-instance-network-attachment' - instance_network_attachment_prototype_model['virtual_network_interface'] = instance_network_attachment_prototype_virtual_network_interface_model + instance_network_attachment_prototype_model['virtual_network_interface'] = ( + instance_network_attachment_prototype_virtual_network_interface_model + ) # Construct a dict representation of a NetworkInterfaceIPPrototypeReservedIPPrototypeNetworkInterfaceContext model network_interface_ip_prototype_model = {} @@ -10129,7 +10241,9 @@ def test_create_instance_value_error(self): # Construct a dict representation of a InstancePrototypeInstanceBySourceTemplate model instance_prototype_model = {} instance_prototype_model['availability_policy'] = instance_availability_policy_prototype_model - instance_prototype_model['cluster_network_attachments'] = [instance_cluster_network_attachment_prototype_instance_context_model] + instance_prototype_model['cluster_network_attachments'] = [ + instance_cluster_network_attachment_prototype_instance_context_model + ] instance_prototype_model['confidential_compute_mode'] = 'disabled' instance_prototype_model['default_trusted_profile'] = instance_default_trusted_profile_prototype_model instance_prototype_model['enable_secure_boot'] = True @@ -11025,9 +11139,15 @@ def test_create_cluster_network_attachment_all_params(self): # Construct a dict representation of a InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment model instance_cluster_network_attachment_prototype_cluster_network_interface_model = {} instance_cluster_network_attachment_prototype_cluster_network_interface_model['auto_delete'] = False - instance_cluster_network_attachment_prototype_cluster_network_interface_model['name'] = 'my-cluster-network-interface' - instance_cluster_network_attachment_prototype_cluster_network_interface_model['primary_ip'] = cluster_network_interface_primary_ip_prototype_model - instance_cluster_network_attachment_prototype_cluster_network_interface_model['subnet'] = cluster_network_subnet_identity_model + instance_cluster_network_attachment_prototype_cluster_network_interface_model['name'] = ( + 'my-cluster-network-interface' + ) + instance_cluster_network_attachment_prototype_cluster_network_interface_model['primary_ip'] = ( + cluster_network_interface_primary_ip_prototype_model + ) + instance_cluster_network_attachment_prototype_cluster_network_interface_model['subnet'] = ( + cluster_network_subnet_identity_model + ) # Construct a dict representation of a InstanceClusterNetworkAttachmentBeforePrototypeInstanceClusterNetworkAttachmentIdentityById model instance_cluster_network_attachment_before_prototype_model = {} @@ -11053,7 +11173,10 @@ def test_create_cluster_network_attachment_all_params(self): assert response.status_code == 201 # Validate body params req_body = json.loads(str(responses.calls[0].request.body, 'utf-8')) - assert req_body['cluster_network_interface'] == instance_cluster_network_attachment_prototype_cluster_network_interface_model + assert ( + req_body['cluster_network_interface'] + == instance_cluster_network_attachment_prototype_cluster_network_interface_model + ) assert req_body['before'] == instance_cluster_network_attachment_before_prototype_model assert req_body['name'] == 'my-instance-network-attachment' @@ -11095,9 +11218,15 @@ def test_create_cluster_network_attachment_value_error(self): # Construct a dict representation of a InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment model instance_cluster_network_attachment_prototype_cluster_network_interface_model = {} instance_cluster_network_attachment_prototype_cluster_network_interface_model['auto_delete'] = False - instance_cluster_network_attachment_prototype_cluster_network_interface_model['name'] = 'my-cluster-network-interface' - instance_cluster_network_attachment_prototype_cluster_network_interface_model['primary_ip'] = cluster_network_interface_primary_ip_prototype_model - instance_cluster_network_attachment_prototype_cluster_network_interface_model['subnet'] = cluster_network_subnet_identity_model + instance_cluster_network_attachment_prototype_cluster_network_interface_model['name'] = ( + 'my-cluster-network-interface' + ) + instance_cluster_network_attachment_prototype_cluster_network_interface_model['primary_ip'] = ( + cluster_network_interface_primary_ip_prototype_model + ) + instance_cluster_network_attachment_prototype_cluster_network_interface_model['subnet'] = ( + cluster_network_subnet_identity_model + ) # Construct a dict representation of a InstanceClusterNetworkAttachmentBeforePrototypeInstanceClusterNetworkAttachmentIdentityById model instance_cluster_network_attachment_before_prototype_model = {} @@ -11888,12 +12017,20 @@ def test_create_instance_network_attachment_all_params(self): instance_network_attachment_prototype_virtual_network_interface_model['allow_ip_spoofing'] = True instance_network_attachment_prototype_virtual_network_interface_model['auto_delete'] = False instance_network_attachment_prototype_virtual_network_interface_model['enable_infrastructure_nat'] = True - instance_network_attachment_prototype_virtual_network_interface_model['ips'] = [virtual_network_interface_ip_prototype_model] + instance_network_attachment_prototype_virtual_network_interface_model['ips'] = [ + virtual_network_interface_ip_prototype_model + ] instance_network_attachment_prototype_virtual_network_interface_model['name'] = 'my-virtual-network-interface' - instance_network_attachment_prototype_virtual_network_interface_model['primary_ip'] = virtual_network_interface_primary_ip_prototype_model + instance_network_attachment_prototype_virtual_network_interface_model['primary_ip'] = ( + virtual_network_interface_primary_ip_prototype_model + ) instance_network_attachment_prototype_virtual_network_interface_model['protocol_state_filtering_mode'] = 'auto' - instance_network_attachment_prototype_virtual_network_interface_model['resource_group'] = resource_group_identity_model - instance_network_attachment_prototype_virtual_network_interface_model['security_groups'] = [security_group_identity_model] + instance_network_attachment_prototype_virtual_network_interface_model['resource_group'] = ( + resource_group_identity_model + ) + instance_network_attachment_prototype_virtual_network_interface_model['security_groups'] = [ + security_group_identity_model + ] instance_network_attachment_prototype_virtual_network_interface_model['subnet'] = subnet_identity_model # Set up parameter values @@ -11914,7 +12051,10 @@ def test_create_instance_network_attachment_all_params(self): assert response.status_code == 201 # Validate body params req_body = json.loads(str(responses.calls[0].request.body, 'utf-8')) - assert req_body['virtual_network_interface'] == instance_network_attachment_prototype_virtual_network_interface_model + assert ( + req_body['virtual_network_interface'] + == instance_network_attachment_prototype_virtual_network_interface_model + ) assert req_body['name'] == 'testString' def test_create_instance_network_attachment_all_params_with_retries(self): @@ -11971,12 +12111,20 @@ def test_create_instance_network_attachment_value_error(self): instance_network_attachment_prototype_virtual_network_interface_model['allow_ip_spoofing'] = True instance_network_attachment_prototype_virtual_network_interface_model['auto_delete'] = False instance_network_attachment_prototype_virtual_network_interface_model['enable_infrastructure_nat'] = True - instance_network_attachment_prototype_virtual_network_interface_model['ips'] = [virtual_network_interface_ip_prototype_model] + instance_network_attachment_prototype_virtual_network_interface_model['ips'] = [ + virtual_network_interface_ip_prototype_model + ] instance_network_attachment_prototype_virtual_network_interface_model['name'] = 'my-virtual-network-interface' - instance_network_attachment_prototype_virtual_network_interface_model['primary_ip'] = virtual_network_interface_primary_ip_prototype_model + instance_network_attachment_prototype_virtual_network_interface_model['primary_ip'] = ( + virtual_network_interface_primary_ip_prototype_model + ) instance_network_attachment_prototype_virtual_network_interface_model['protocol_state_filtering_mode'] = 'auto' - instance_network_attachment_prototype_virtual_network_interface_model['resource_group'] = resource_group_identity_model - instance_network_attachment_prototype_virtual_network_interface_model['security_groups'] = [security_group_identity_model] + instance_network_attachment_prototype_virtual_network_interface_model['resource_group'] = ( + resource_group_identity_model + ) + instance_network_attachment_prototype_virtual_network_interface_model['security_groups'] = [ + security_group_identity_model + ] instance_network_attachment_prototype_virtual_network_interface_model['subnet'] = subnet_identity_model # Set up parameter values @@ -13996,8 +14144,7 @@ def test_list_instance_groups_value_error(self): ) # Pass in all but one required param and check for a ValueError - req_param_dict = { - } + req_param_dict = {} for param in req_param_dict.keys(): req_copy = {key: val if key is not param else None for (key, val) in req_param_dict.items()} with pytest.raises(ValueError): @@ -15423,7 +15570,9 @@ def test_create_instance_group_manager_action_all_params(self): instance_group_manager_action_prototype_model = {} instance_group_manager_action_prototype_model['name'] = 'my-instance-group-manager-action' instance_group_manager_action_prototype_model['run_at'] = '2019-01-01T12:00:00Z' - instance_group_manager_action_prototype_model['group'] = instance_group_manager_scheduled_action_group_prototype_model + instance_group_manager_action_prototype_model['group'] = ( + instance_group_manager_scheduled_action_group_prototype_model + ) # Set up parameter values instance_group_id = 'testString' @@ -15478,7 +15627,9 @@ def test_create_instance_group_manager_action_value_error(self): instance_group_manager_action_prototype_model = {} instance_group_manager_action_prototype_model['name'] = 'my-instance-group-manager-action' instance_group_manager_action_prototype_model['run_at'] = '2019-01-01T12:00:00Z' - instance_group_manager_action_prototype_model['group'] = instance_group_manager_scheduled_action_group_prototype_model + instance_group_manager_action_prototype_model['group'] = ( + instance_group_manager_scheduled_action_group_prototype_model + ) # Set up parameter values instance_group_id = 'testString' @@ -17110,8 +17261,7 @@ def test_list_reservations_value_error(self): ) # Pass in all but one required param and check for a ValueError - req_param_dict = { - } + req_param_dict = {} for param in req_param_dict.keys(): req_copy = {key: val if key is not param else None for (key, val) in req_param_dict.items()} with pytest.raises(ValueError): @@ -17889,8 +18039,7 @@ def test_list_dedicated_host_groups_value_error(self): ) # Pass in all but one required param and check for a ValueError - req_param_dict = { - } + req_param_dict = {} for param in req_param_dict.keys(): req_copy = {key: val if key is not param else None for (key, val) in req_param_dict.items()} with pytest.raises(ValueError): @@ -18450,8 +18599,7 @@ def test_list_dedicated_host_profiles_value_error(self): ) # Pass in all but one required param and check for a ValueError - req_param_dict = { - } + req_param_dict = {} for param in req_param_dict.keys(): req_copy = {key: val if key is not param else None for (key, val) in req_param_dict.items()} with pytest.raises(ValueError): @@ -18728,8 +18876,7 @@ def test_list_dedicated_hosts_value_error(self): ) # Pass in all but one required param and check for a ValueError - req_param_dict = { - } + req_param_dict = {} for param in req_param_dict.keys(): req_copy = {key: val if key is not param else None for (key, val) in req_param_dict.items()} with pytest.raises(ValueError): @@ -19622,8 +19769,7 @@ def test_list_placement_groups_value_error(self): ) # Pass in all but one required param and check for a ValueError - req_param_dict = { - } + req_param_dict = {} for param in req_param_dict.keys(): req_copy = {key: val if key is not param else None for (key, val) in req_param_dict.items()} with pytest.raises(ValueError): @@ -20216,8 +20362,7 @@ def test_list_bare_metal_server_profiles_value_error(self): ) # Pass in all but one required param and check for a ValueError - req_param_dict = { - } + req_param_dict = {} for param in req_param_dict.keys(): req_copy = {key: val if key is not param else None for (key, val) in req_param_dict.items()} with pytest.raises(ValueError): @@ -20497,8 +20642,7 @@ def test_list_bare_metal_servers_value_error(self): ) # Pass in all but one required param and check for a ValueError - req_param_dict = { - } + req_param_dict = {} for param in req_param_dict.keys(): req_copy = {key: val if key is not param else None for (key, val) in req_param_dict.items()} with pytest.raises(ValueError): @@ -20672,26 +20816,44 @@ def test_create_bare_metal_server_all_params(self): bare_metal_server_network_attachment_prototype_virtual_network_interface_model = {} bare_metal_server_network_attachment_prototype_virtual_network_interface_model['allow_ip_spoofing'] = True bare_metal_server_network_attachment_prototype_virtual_network_interface_model['auto_delete'] = False - bare_metal_server_network_attachment_prototype_virtual_network_interface_model['enable_infrastructure_nat'] = True - bare_metal_server_network_attachment_prototype_virtual_network_interface_model['ips'] = [virtual_network_interface_ip_prototype_model] - bare_metal_server_network_attachment_prototype_virtual_network_interface_model['name'] = 'my-virtual-network-interface' - bare_metal_server_network_attachment_prototype_virtual_network_interface_model['primary_ip'] = virtual_network_interface_primary_ip_prototype_model - bare_metal_server_network_attachment_prototype_virtual_network_interface_model['protocol_state_filtering_mode'] = 'auto' - bare_metal_server_network_attachment_prototype_virtual_network_interface_model['resource_group'] = resource_group_identity_model - bare_metal_server_network_attachment_prototype_virtual_network_interface_model['security_groups'] = [security_group_identity_model] + bare_metal_server_network_attachment_prototype_virtual_network_interface_model['enable_infrastructure_nat'] = ( + True + ) + bare_metal_server_network_attachment_prototype_virtual_network_interface_model['ips'] = [ + virtual_network_interface_ip_prototype_model + ] + bare_metal_server_network_attachment_prototype_virtual_network_interface_model['name'] = ( + 'my-virtual-network-interface' + ) + bare_metal_server_network_attachment_prototype_virtual_network_interface_model['primary_ip'] = ( + virtual_network_interface_primary_ip_prototype_model + ) + bare_metal_server_network_attachment_prototype_virtual_network_interface_model[ + 'protocol_state_filtering_mode' + ] = 'auto' + bare_metal_server_network_attachment_prototype_virtual_network_interface_model['resource_group'] = ( + resource_group_identity_model + ) + bare_metal_server_network_attachment_prototype_virtual_network_interface_model['security_groups'] = [ + security_group_identity_model + ] bare_metal_server_network_attachment_prototype_virtual_network_interface_model['subnet'] = subnet_identity_model # Construct a dict representation of a BareMetalServerNetworkAttachmentPrototypeBareMetalServerNetworkAttachmentByPCIPrototype model bare_metal_server_network_attachment_prototype_model = {} bare_metal_server_network_attachment_prototype_model['name'] = 'my-bare-metal-server-network-attachment' - bare_metal_server_network_attachment_prototype_model['virtual_network_interface'] = bare_metal_server_network_attachment_prototype_virtual_network_interface_model + bare_metal_server_network_attachment_prototype_model['virtual_network_interface'] = ( + bare_metal_server_network_attachment_prototype_virtual_network_interface_model + ) bare_metal_server_network_attachment_prototype_model['allowed_vlans'] = [] bare_metal_server_network_attachment_prototype_model['interface_type'] = 'pci' # Construct a dict representation of a BareMetalServerPrimaryNetworkAttachmentPrototypeBareMetalServerPrimaryNetworkAttachmentByPCIPrototype model bare_metal_server_primary_network_attachment_prototype_model = {} bare_metal_server_primary_network_attachment_prototype_model['name'] = 'my-bare-metal-server-network-attachment' - bare_metal_server_primary_network_attachment_prototype_model['virtual_network_interface'] = bare_metal_server_network_attachment_prototype_virtual_network_interface_model + bare_metal_server_primary_network_attachment_prototype_model['virtual_network_interface'] = ( + bare_metal_server_network_attachment_prototype_virtual_network_interface_model + ) bare_metal_server_primary_network_attachment_prototype_model['allowed_vlans'] = [] bare_metal_server_primary_network_attachment_prototype_model['interface_type'] = 'pci' @@ -20703,11 +20865,17 @@ def test_create_bare_metal_server_all_params(self): bare_metal_server_prototype_model['name'] = 'my-bare-metal-server' bare_metal_server_prototype_model['profile'] = bare_metal_server_profile_identity_model bare_metal_server_prototype_model['resource_group'] = resource_group_identity_model - bare_metal_server_prototype_model['trusted_platform_module'] = bare_metal_server_trusted_platform_module_prototype_model + bare_metal_server_prototype_model['trusted_platform_module'] = ( + bare_metal_server_trusted_platform_module_prototype_model + ) bare_metal_server_prototype_model['vpc'] = vpc_identity_model bare_metal_server_prototype_model['zone'] = zone_identity_model - bare_metal_server_prototype_model['network_attachments'] = [bare_metal_server_network_attachment_prototype_model] - bare_metal_server_prototype_model['primary_network_attachment'] = bare_metal_server_primary_network_attachment_prototype_model + bare_metal_server_prototype_model['network_attachments'] = [ + bare_metal_server_network_attachment_prototype_model + ] + bare_metal_server_prototype_model['primary_network_attachment'] = ( + bare_metal_server_primary_network_attachment_prototype_model + ) # Set up parameter values bare_metal_server_prototype = bare_metal_server_prototype_model @@ -20808,26 +20976,44 @@ def test_create_bare_metal_server_value_error(self): bare_metal_server_network_attachment_prototype_virtual_network_interface_model = {} bare_metal_server_network_attachment_prototype_virtual_network_interface_model['allow_ip_spoofing'] = True bare_metal_server_network_attachment_prototype_virtual_network_interface_model['auto_delete'] = False - bare_metal_server_network_attachment_prototype_virtual_network_interface_model['enable_infrastructure_nat'] = True - bare_metal_server_network_attachment_prototype_virtual_network_interface_model['ips'] = [virtual_network_interface_ip_prototype_model] - bare_metal_server_network_attachment_prototype_virtual_network_interface_model['name'] = 'my-virtual-network-interface' - bare_metal_server_network_attachment_prototype_virtual_network_interface_model['primary_ip'] = virtual_network_interface_primary_ip_prototype_model - bare_metal_server_network_attachment_prototype_virtual_network_interface_model['protocol_state_filtering_mode'] = 'auto' - bare_metal_server_network_attachment_prototype_virtual_network_interface_model['resource_group'] = resource_group_identity_model - bare_metal_server_network_attachment_prototype_virtual_network_interface_model['security_groups'] = [security_group_identity_model] + bare_metal_server_network_attachment_prototype_virtual_network_interface_model['enable_infrastructure_nat'] = ( + True + ) + bare_metal_server_network_attachment_prototype_virtual_network_interface_model['ips'] = [ + virtual_network_interface_ip_prototype_model + ] + bare_metal_server_network_attachment_prototype_virtual_network_interface_model['name'] = ( + 'my-virtual-network-interface' + ) + bare_metal_server_network_attachment_prototype_virtual_network_interface_model['primary_ip'] = ( + virtual_network_interface_primary_ip_prototype_model + ) + bare_metal_server_network_attachment_prototype_virtual_network_interface_model[ + 'protocol_state_filtering_mode' + ] = 'auto' + bare_metal_server_network_attachment_prototype_virtual_network_interface_model['resource_group'] = ( + resource_group_identity_model + ) + bare_metal_server_network_attachment_prototype_virtual_network_interface_model['security_groups'] = [ + security_group_identity_model + ] bare_metal_server_network_attachment_prototype_virtual_network_interface_model['subnet'] = subnet_identity_model # Construct a dict representation of a BareMetalServerNetworkAttachmentPrototypeBareMetalServerNetworkAttachmentByPCIPrototype model bare_metal_server_network_attachment_prototype_model = {} bare_metal_server_network_attachment_prototype_model['name'] = 'my-bare-metal-server-network-attachment' - bare_metal_server_network_attachment_prototype_model['virtual_network_interface'] = bare_metal_server_network_attachment_prototype_virtual_network_interface_model + bare_metal_server_network_attachment_prototype_model['virtual_network_interface'] = ( + bare_metal_server_network_attachment_prototype_virtual_network_interface_model + ) bare_metal_server_network_attachment_prototype_model['allowed_vlans'] = [] bare_metal_server_network_attachment_prototype_model['interface_type'] = 'pci' # Construct a dict representation of a BareMetalServerPrimaryNetworkAttachmentPrototypeBareMetalServerPrimaryNetworkAttachmentByPCIPrototype model bare_metal_server_primary_network_attachment_prototype_model = {} bare_metal_server_primary_network_attachment_prototype_model['name'] = 'my-bare-metal-server-network-attachment' - bare_metal_server_primary_network_attachment_prototype_model['virtual_network_interface'] = bare_metal_server_network_attachment_prototype_virtual_network_interface_model + bare_metal_server_primary_network_attachment_prototype_model['virtual_network_interface'] = ( + bare_metal_server_network_attachment_prototype_virtual_network_interface_model + ) bare_metal_server_primary_network_attachment_prototype_model['allowed_vlans'] = [] bare_metal_server_primary_network_attachment_prototype_model['interface_type'] = 'pci' @@ -20839,11 +21025,17 @@ def test_create_bare_metal_server_value_error(self): bare_metal_server_prototype_model['name'] = 'my-bare-metal-server' bare_metal_server_prototype_model['profile'] = bare_metal_server_profile_identity_model bare_metal_server_prototype_model['resource_group'] = resource_group_identity_model - bare_metal_server_prototype_model['trusted_platform_module'] = bare_metal_server_trusted_platform_module_prototype_model + bare_metal_server_prototype_model['trusted_platform_module'] = ( + bare_metal_server_trusted_platform_module_prototype_model + ) bare_metal_server_prototype_model['vpc'] = vpc_identity_model bare_metal_server_prototype_model['zone'] = zone_identity_model - bare_metal_server_prototype_model['network_attachments'] = [bare_metal_server_network_attachment_prototype_model] - bare_metal_server_prototype_model['primary_network_attachment'] = bare_metal_server_primary_network_attachment_prototype_model + bare_metal_server_prototype_model['network_attachments'] = [ + bare_metal_server_network_attachment_prototype_model + ] + bare_metal_server_prototype_model['primary_network_attachment'] = ( + bare_metal_server_primary_network_attachment_prototype_model + ) # Set up parameter values bare_metal_server_prototype = bare_metal_server_prototype_model @@ -21473,19 +21665,35 @@ def test_create_bare_metal_server_network_attachment_all_params(self): bare_metal_server_network_attachment_prototype_virtual_network_interface_model = {} bare_metal_server_network_attachment_prototype_virtual_network_interface_model['allow_ip_spoofing'] = True bare_metal_server_network_attachment_prototype_virtual_network_interface_model['auto_delete'] = False - bare_metal_server_network_attachment_prototype_virtual_network_interface_model['enable_infrastructure_nat'] = True - bare_metal_server_network_attachment_prototype_virtual_network_interface_model['ips'] = [virtual_network_interface_ip_prototype_model] - bare_metal_server_network_attachment_prototype_virtual_network_interface_model['name'] = 'my-virtual-network-interface' - bare_metal_server_network_attachment_prototype_virtual_network_interface_model['primary_ip'] = virtual_network_interface_primary_ip_prototype_model - bare_metal_server_network_attachment_prototype_virtual_network_interface_model['protocol_state_filtering_mode'] = 'auto' - bare_metal_server_network_attachment_prototype_virtual_network_interface_model['resource_group'] = resource_group_identity_model - bare_metal_server_network_attachment_prototype_virtual_network_interface_model['security_groups'] = [security_group_identity_model] + bare_metal_server_network_attachment_prototype_virtual_network_interface_model['enable_infrastructure_nat'] = ( + True + ) + bare_metal_server_network_attachment_prototype_virtual_network_interface_model['ips'] = [ + virtual_network_interface_ip_prototype_model + ] + bare_metal_server_network_attachment_prototype_virtual_network_interface_model['name'] = ( + 'my-virtual-network-interface' + ) + bare_metal_server_network_attachment_prototype_virtual_network_interface_model['primary_ip'] = ( + virtual_network_interface_primary_ip_prototype_model + ) + bare_metal_server_network_attachment_prototype_virtual_network_interface_model[ + 'protocol_state_filtering_mode' + ] = 'auto' + bare_metal_server_network_attachment_prototype_virtual_network_interface_model['resource_group'] = ( + resource_group_identity_model + ) + bare_metal_server_network_attachment_prototype_virtual_network_interface_model['security_groups'] = [ + security_group_identity_model + ] bare_metal_server_network_attachment_prototype_virtual_network_interface_model['subnet'] = subnet_identity_model # Construct a dict representation of a BareMetalServerNetworkAttachmentPrototypeBareMetalServerNetworkAttachmentByPCIPrototype model bare_metal_server_network_attachment_prototype_model = {} bare_metal_server_network_attachment_prototype_model['name'] = 'my-bare-metal-server-network-attachment' - bare_metal_server_network_attachment_prototype_model['virtual_network_interface'] = bare_metal_server_network_attachment_prototype_virtual_network_interface_model + bare_metal_server_network_attachment_prototype_model['virtual_network_interface'] = ( + bare_metal_server_network_attachment_prototype_virtual_network_interface_model + ) bare_metal_server_network_attachment_prototype_model['allowed_vlans'] = [] bare_metal_server_network_attachment_prototype_model['interface_type'] = 'pci' @@ -21560,19 +21768,35 @@ def test_create_bare_metal_server_network_attachment_value_error(self): bare_metal_server_network_attachment_prototype_virtual_network_interface_model = {} bare_metal_server_network_attachment_prototype_virtual_network_interface_model['allow_ip_spoofing'] = True bare_metal_server_network_attachment_prototype_virtual_network_interface_model['auto_delete'] = False - bare_metal_server_network_attachment_prototype_virtual_network_interface_model['enable_infrastructure_nat'] = True - bare_metal_server_network_attachment_prototype_virtual_network_interface_model['ips'] = [virtual_network_interface_ip_prototype_model] - bare_metal_server_network_attachment_prototype_virtual_network_interface_model['name'] = 'my-virtual-network-interface' - bare_metal_server_network_attachment_prototype_virtual_network_interface_model['primary_ip'] = virtual_network_interface_primary_ip_prototype_model - bare_metal_server_network_attachment_prototype_virtual_network_interface_model['protocol_state_filtering_mode'] = 'auto' - bare_metal_server_network_attachment_prototype_virtual_network_interface_model['resource_group'] = resource_group_identity_model - bare_metal_server_network_attachment_prototype_virtual_network_interface_model['security_groups'] = [security_group_identity_model] + bare_metal_server_network_attachment_prototype_virtual_network_interface_model['enable_infrastructure_nat'] = ( + True + ) + bare_metal_server_network_attachment_prototype_virtual_network_interface_model['ips'] = [ + virtual_network_interface_ip_prototype_model + ] + bare_metal_server_network_attachment_prototype_virtual_network_interface_model['name'] = ( + 'my-virtual-network-interface' + ) + bare_metal_server_network_attachment_prototype_virtual_network_interface_model['primary_ip'] = ( + virtual_network_interface_primary_ip_prototype_model + ) + bare_metal_server_network_attachment_prototype_virtual_network_interface_model[ + 'protocol_state_filtering_mode' + ] = 'auto' + bare_metal_server_network_attachment_prototype_virtual_network_interface_model['resource_group'] = ( + resource_group_identity_model + ) + bare_metal_server_network_attachment_prototype_virtual_network_interface_model['security_groups'] = [ + security_group_identity_model + ] bare_metal_server_network_attachment_prototype_virtual_network_interface_model['subnet'] = subnet_identity_model # Construct a dict representation of a BareMetalServerNetworkAttachmentPrototypeBareMetalServerNetworkAttachmentByPCIPrototype model bare_metal_server_network_attachment_prototype_model = {} bare_metal_server_network_attachment_prototype_model['name'] = 'my-bare-metal-server-network-attachment' - bare_metal_server_network_attachment_prototype_model['virtual_network_interface'] = bare_metal_server_network_attachment_prototype_virtual_network_interface_model + bare_metal_server_network_attachment_prototype_model['virtual_network_interface'] = ( + bare_metal_server_network_attachment_prototype_virtual_network_interface_model + ) bare_metal_server_network_attachment_prototype_model['allowed_vlans'] = [] bare_metal_server_network_attachment_prototype_model['interface_type'] = 'pci' @@ -23954,8 +24178,7 @@ def test_list_volume_profiles_value_error(self): ) # Pass in all but one required param and check for a ValueError - req_param_dict = { - } + req_param_dict = {} for param in req_param_dict.keys(): req_copy = {key: val if key is not param else None for (key, val) in req_param_dict.items()} with pytest.raises(ValueError): @@ -24241,8 +24464,7 @@ def test_list_volumes_value_error(self): ) # Pass in all but one required param and check for a ValueError - req_param_dict = { - } + req_param_dict = {} for param in req_param_dict.keys(): req_copy = {key: val if key is not param else None for (key, val) in req_param_dict.items()} with pytest.raises(ValueError): @@ -24376,7 +24598,9 @@ def test_create_volume_all_params(self): # Construct a dict representation of a EncryptionKeyIdentityByCRN model encryption_key_identity_model = {} - encryption_key_identity_model['crn'] = 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + encryption_key_identity_model['crn'] = ( + 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + ) # Construct a dict representation of a VolumePrototypeVolumeByCapacity model volume_prototype_model = {} @@ -24444,7 +24668,9 @@ def test_create_volume_value_error(self): # Construct a dict representation of a EncryptionKeyIdentityByCRN model encryption_key_identity_model = {} - encryption_key_identity_model['crn'] = 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + encryption_key_identity_model['crn'] = ( + 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + ) # Construct a dict representation of a VolumePrototypeVolumeByCapacity model volume_prototype_model = {} @@ -25009,8 +25235,7 @@ def test_list_snapshot_consistency_groups_value_error(self): ) # Pass in all but one required param and check for a ValueError - req_param_dict = { - } + req_param_dict = {} for param in req_param_dict.keys(): req_copy = {key: val if key is not param else None for (key, val) in req_param_dict.items()} with pytest.raises(ValueError): @@ -25143,7 +25368,9 @@ def test_create_snapshot_consistency_group_all_params(self): snapshot_consistency_group_prototype_model['delete_snapshots_on_delete'] = True snapshot_consistency_group_prototype_model['name'] = 'my-snapshot-consistency-group' snapshot_consistency_group_prototype_model['resource_group'] = resource_group_identity_model - snapshot_consistency_group_prototype_model['snapshots'] = [snapshot_prototype_snapshot_consistency_group_context_model] + snapshot_consistency_group_prototype_model['snapshots'] = [ + snapshot_prototype_snapshot_consistency_group_context_model + ] # Set up parameter values snapshot_consistency_group_prototype = snapshot_consistency_group_prototype_model @@ -25205,7 +25432,9 @@ def test_create_snapshot_consistency_group_value_error(self): snapshot_consistency_group_prototype_model['delete_snapshots_on_delete'] = True snapshot_consistency_group_prototype_model['name'] = 'my-snapshot-consistency-group' snapshot_consistency_group_prototype_model['resource_group'] = resource_group_identity_model - snapshot_consistency_group_prototype_model['snapshots'] = [snapshot_prototype_snapshot_consistency_group_context_model] + snapshot_consistency_group_prototype_model['snapshots'] = [ + snapshot_prototype_snapshot_consistency_group_context_model + ] # Set up parameter values snapshot_consistency_group_prototype = snapshot_consistency_group_prototype_model @@ -25777,8 +26006,7 @@ def test_list_snapshots_value_error(self): ) # Pass in all but one required param and check for a ValueError - req_param_dict = { - } + req_param_dict = {} for param in req_param_dict.keys(): req_copy = {key: val if key is not param else None for (key, val) in req_param_dict.items()} with pytest.raises(ValueError): @@ -26865,8 +27093,7 @@ def test_list_share_profiles_value_error(self): ) # Pass in all but one required param and check for a ValueError - req_param_dict = { - } + req_param_dict = {} for param in req_param_dict.keys(): req_copy = {key: val if key is not param else None for (key, val) in req_param_dict.items()} with pytest.raises(ValueError): @@ -27145,8 +27372,7 @@ def test_list_shares_value_error(self): ) # Pass in all but one required param and check for a ValueError - req_param_dict = { - } + req_param_dict = {} for param in req_param_dict.keys(): req_copy = {key: val if key is not param else None for (key, val) in req_param_dict.items()} with pytest.raises(ValueError): @@ -27289,19 +27515,27 @@ def test_create_share_all_params(self): share_mount_target_virtual_network_interface_prototype_model['allow_ip_spoofing'] = True share_mount_target_virtual_network_interface_prototype_model['auto_delete'] = False share_mount_target_virtual_network_interface_prototype_model['enable_infrastructure_nat'] = True - share_mount_target_virtual_network_interface_prototype_model['ips'] = [virtual_network_interface_ip_prototype_model] + share_mount_target_virtual_network_interface_prototype_model['ips'] = [ + virtual_network_interface_ip_prototype_model + ] share_mount_target_virtual_network_interface_prototype_model['name'] = 'my-virtual-network-interface' - share_mount_target_virtual_network_interface_prototype_model['primary_ip'] = virtual_network_interface_primary_ip_prototype_model + share_mount_target_virtual_network_interface_prototype_model['primary_ip'] = ( + virtual_network_interface_primary_ip_prototype_model + ) share_mount_target_virtual_network_interface_prototype_model['protocol_state_filtering_mode'] = 'auto' share_mount_target_virtual_network_interface_prototype_model['resource_group'] = resource_group_identity_model - share_mount_target_virtual_network_interface_prototype_model['security_groups'] = [security_group_identity_model] + share_mount_target_virtual_network_interface_prototype_model['security_groups'] = [ + security_group_identity_model + ] share_mount_target_virtual_network_interface_prototype_model['subnet'] = subnet_identity_model # Construct a dict representation of a ShareMountTargetPrototypeShareMountTargetByAccessControlModeSecurityGroup model share_mount_target_prototype_model = {} share_mount_target_prototype_model['name'] = 'my-share-mount-target' share_mount_target_prototype_model['transit_encryption'] = 'none' - share_mount_target_prototype_model['virtual_network_interface'] = share_mount_target_virtual_network_interface_prototype_model + share_mount_target_prototype_model['virtual_network_interface'] = ( + share_mount_target_virtual_network_interface_prototype_model + ) # Construct a dict representation of a ShareProfileIdentityByName model share_profile_identity_model = {} @@ -27325,7 +27559,9 @@ def test_create_share_all_params(self): # Construct a dict representation of a EncryptionKeyIdentityByCRN model encryption_key_identity_model = {} - encryption_key_identity_model['crn'] = 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + encryption_key_identity_model['crn'] = ( + 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + ) # Construct a dict representation of a ShareInitialOwner model share_initial_owner_model = {} @@ -27418,19 +27654,27 @@ def test_create_share_value_error(self): share_mount_target_virtual_network_interface_prototype_model['allow_ip_spoofing'] = True share_mount_target_virtual_network_interface_prototype_model['auto_delete'] = False share_mount_target_virtual_network_interface_prototype_model['enable_infrastructure_nat'] = True - share_mount_target_virtual_network_interface_prototype_model['ips'] = [virtual_network_interface_ip_prototype_model] + share_mount_target_virtual_network_interface_prototype_model['ips'] = [ + virtual_network_interface_ip_prototype_model + ] share_mount_target_virtual_network_interface_prototype_model['name'] = 'my-virtual-network-interface' - share_mount_target_virtual_network_interface_prototype_model['primary_ip'] = virtual_network_interface_primary_ip_prototype_model + share_mount_target_virtual_network_interface_prototype_model['primary_ip'] = ( + virtual_network_interface_primary_ip_prototype_model + ) share_mount_target_virtual_network_interface_prototype_model['protocol_state_filtering_mode'] = 'auto' share_mount_target_virtual_network_interface_prototype_model['resource_group'] = resource_group_identity_model - share_mount_target_virtual_network_interface_prototype_model['security_groups'] = [security_group_identity_model] + share_mount_target_virtual_network_interface_prototype_model['security_groups'] = [ + security_group_identity_model + ] share_mount_target_virtual_network_interface_prototype_model['subnet'] = subnet_identity_model # Construct a dict representation of a ShareMountTargetPrototypeShareMountTargetByAccessControlModeSecurityGroup model share_mount_target_prototype_model = {} share_mount_target_prototype_model['name'] = 'my-share-mount-target' share_mount_target_prototype_model['transit_encryption'] = 'none' - share_mount_target_prototype_model['virtual_network_interface'] = share_mount_target_virtual_network_interface_prototype_model + share_mount_target_prototype_model['virtual_network_interface'] = ( + share_mount_target_virtual_network_interface_prototype_model + ) # Construct a dict representation of a ShareProfileIdentityByName model share_profile_identity_model = {} @@ -27454,7 +27698,9 @@ def test_create_share_value_error(self): # Construct a dict representation of a EncryptionKeyIdentityByCRN model encryption_key_identity_model = {} - encryption_key_identity_model['crn'] = 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + encryption_key_identity_model['crn'] = ( + 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + ) # Construct a dict representation of a ShareInitialOwner model share_initial_owner_model = {} @@ -28614,19 +28860,27 @@ def test_create_share_mount_target_all_params(self): share_mount_target_virtual_network_interface_prototype_model['allow_ip_spoofing'] = True share_mount_target_virtual_network_interface_prototype_model['auto_delete'] = False share_mount_target_virtual_network_interface_prototype_model['enable_infrastructure_nat'] = True - share_mount_target_virtual_network_interface_prototype_model['ips'] = [virtual_network_interface_ip_prototype_model] + share_mount_target_virtual_network_interface_prototype_model['ips'] = [ + virtual_network_interface_ip_prototype_model + ] share_mount_target_virtual_network_interface_prototype_model['name'] = 'my-virtual-network-interface' - share_mount_target_virtual_network_interface_prototype_model['primary_ip'] = virtual_network_interface_primary_ip_prototype_model + share_mount_target_virtual_network_interface_prototype_model['primary_ip'] = ( + virtual_network_interface_primary_ip_prototype_model + ) share_mount_target_virtual_network_interface_prototype_model['protocol_state_filtering_mode'] = 'auto' share_mount_target_virtual_network_interface_prototype_model['resource_group'] = resource_group_identity_model - share_mount_target_virtual_network_interface_prototype_model['security_groups'] = [security_group_identity_model] + share_mount_target_virtual_network_interface_prototype_model['security_groups'] = [ + security_group_identity_model + ] share_mount_target_virtual_network_interface_prototype_model['subnet'] = subnet_identity_model # Construct a dict representation of a ShareMountTargetPrototypeShareMountTargetByAccessControlModeSecurityGroup model share_mount_target_prototype_model = {} share_mount_target_prototype_model['name'] = 'my-share-mount-target' share_mount_target_prototype_model['transit_encryption'] = 'none' - share_mount_target_prototype_model['virtual_network_interface'] = share_mount_target_virtual_network_interface_prototype_model + share_mount_target_prototype_model['virtual_network_interface'] = ( + share_mount_target_virtual_network_interface_prototype_model + ) # Set up parameter values share_id = 'testString' @@ -28700,19 +28954,27 @@ def test_create_share_mount_target_value_error(self): share_mount_target_virtual_network_interface_prototype_model['allow_ip_spoofing'] = True share_mount_target_virtual_network_interface_prototype_model['auto_delete'] = False share_mount_target_virtual_network_interface_prototype_model['enable_infrastructure_nat'] = True - share_mount_target_virtual_network_interface_prototype_model['ips'] = [virtual_network_interface_ip_prototype_model] + share_mount_target_virtual_network_interface_prototype_model['ips'] = [ + virtual_network_interface_ip_prototype_model + ] share_mount_target_virtual_network_interface_prototype_model['name'] = 'my-virtual-network-interface' - share_mount_target_virtual_network_interface_prototype_model['primary_ip'] = virtual_network_interface_primary_ip_prototype_model + share_mount_target_virtual_network_interface_prototype_model['primary_ip'] = ( + virtual_network_interface_primary_ip_prototype_model + ) share_mount_target_virtual_network_interface_prototype_model['protocol_state_filtering_mode'] = 'auto' share_mount_target_virtual_network_interface_prototype_model['resource_group'] = resource_group_identity_model - share_mount_target_virtual_network_interface_prototype_model['security_groups'] = [security_group_identity_model] + share_mount_target_virtual_network_interface_prototype_model['security_groups'] = [ + security_group_identity_model + ] share_mount_target_virtual_network_interface_prototype_model['subnet'] = subnet_identity_model # Construct a dict representation of a ShareMountTargetPrototypeShareMountTargetByAccessControlModeSecurityGroup model share_mount_target_prototype_model = {} share_mount_target_prototype_model['name'] = 'my-share-mount-target' share_mount_target_prototype_model['transit_encryption'] = 'none' - share_mount_target_prototype_model['virtual_network_interface'] = share_mount_target_virtual_network_interface_prototype_model + share_mount_target_prototype_model['virtual_network_interface'] = ( + share_mount_target_virtual_network_interface_prototype_model + ) # Set up parameter values share_id = 'testString' @@ -29329,8 +29591,7 @@ def test_list_backup_policies_value_error(self): ) # Pass in all but one required param and check for a ValueError - req_param_dict = { - } + req_param_dict = {} for param in req_param_dict.keys(): req_copy = {key: val if key is not param else None for (key, val) in req_param_dict.items()} with pytest.raises(ValueError): @@ -29458,7 +29719,9 @@ def test_create_backup_policy_all_params(self): # Construct a dict representation of a EncryptionKeyIdentityByCRN model encryption_key_identity_model = {} - encryption_key_identity_model['crn'] = 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + encryption_key_identity_model['crn'] = ( + 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + ) # Construct a dict representation of a RegionIdentityByName model region_identity_model = {} @@ -29479,7 +29742,9 @@ def test_create_backup_policy_all_params(self): backup_policy_plan_prototype_model['cron_spec'] = '30 */2 * * 1-5' backup_policy_plan_prototype_model['deletion_trigger'] = backup_policy_plan_deletion_trigger_prototype_model backup_policy_plan_prototype_model['name'] = 'my-policy-plan' - backup_policy_plan_prototype_model['remote_region_policies'] = [backup_policy_plan_remote_region_policy_prototype_model] + backup_policy_plan_prototype_model['remote_region_policies'] = [ + backup_policy_plan_remote_region_policy_prototype_model + ] # Construct a dict representation of a ResourceGroupIdentityById model resource_group_identity_model = {} @@ -29487,7 +29752,9 @@ def test_create_backup_policy_all_params(self): # Construct a dict representation of a BackupPolicyScopePrototypeEnterpriseIdentityEnterpriseIdentityByCRN model backup_policy_scope_prototype_model = {} - backup_policy_scope_prototype_model['crn'] = 'crn:v1:bluemix:public:enterprise::a/aa2432b1fa4d4ace891e9b80fc104e34::enterprise:ebc2b430240943458b9e91e1432cfcce' + backup_policy_scope_prototype_model['crn'] = ( + 'crn:v1:bluemix:public:enterprise::a/aa2432b1fa4d4ace891e9b80fc104e34::enterprise:ebc2b430240943458b9e91e1432cfcce' + ) # Construct a dict representation of a BackupPolicyPrototypeBackupPolicyMatchResourceTypeVolumePrototype model backup_policy_prototype_model = {} @@ -29555,7 +29822,9 @@ def test_create_backup_policy_value_error(self): # Construct a dict representation of a EncryptionKeyIdentityByCRN model encryption_key_identity_model = {} - encryption_key_identity_model['crn'] = 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + encryption_key_identity_model['crn'] = ( + 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + ) # Construct a dict representation of a RegionIdentityByName model region_identity_model = {} @@ -29576,7 +29845,9 @@ def test_create_backup_policy_value_error(self): backup_policy_plan_prototype_model['cron_spec'] = '30 */2 * * 1-5' backup_policy_plan_prototype_model['deletion_trigger'] = backup_policy_plan_deletion_trigger_prototype_model backup_policy_plan_prototype_model['name'] = 'my-policy-plan' - backup_policy_plan_prototype_model['remote_region_policies'] = [backup_policy_plan_remote_region_policy_prototype_model] + backup_policy_plan_prototype_model['remote_region_policies'] = [ + backup_policy_plan_remote_region_policy_prototype_model + ] # Construct a dict representation of a ResourceGroupIdentityById model resource_group_identity_model = {} @@ -29584,7 +29855,9 @@ def test_create_backup_policy_value_error(self): # Construct a dict representation of a BackupPolicyScopePrototypeEnterpriseIdentityEnterpriseIdentityByCRN model backup_policy_scope_prototype_model = {} - backup_policy_scope_prototype_model['crn'] = 'crn:v1:bluemix:public:enterprise::a/aa2432b1fa4d4ace891e9b80fc104e34::enterprise:ebc2b430240943458b9e91e1432cfcce' + backup_policy_scope_prototype_model['crn'] = ( + 'crn:v1:bluemix:public:enterprise::a/aa2432b1fa4d4ace891e9b80fc104e34::enterprise:ebc2b430240943458b9e91e1432cfcce' + ) # Construct a dict representation of a BackupPolicyPrototypeBackupPolicyMatchResourceTypeVolumePrototype model backup_policy_prototype_model = {} @@ -30093,7 +30366,9 @@ def test_create_backup_policy_plan_all_params(self): # Construct a dict representation of a EncryptionKeyIdentityByCRN model encryption_key_identity_model = {} - encryption_key_identity_model['crn'] = 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + encryption_key_identity_model['crn'] = ( + 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + ) # Construct a dict representation of a RegionIdentityByName model region_identity_model = {} @@ -30185,7 +30460,9 @@ def test_create_backup_policy_plan_value_error(self): # Construct a dict representation of a EncryptionKeyIdentityByCRN model encryption_key_identity_model = {} - encryption_key_identity_model['crn'] = 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + encryption_key_identity_model['crn'] = ( + 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + ) # Construct a dict representation of a RegionIdentityByName model region_identity_model = {} @@ -30477,7 +30754,9 @@ def test_update_backup_policy_plan_all_params(self): # Construct a dict representation of a EncryptionKeyIdentityByCRN model encryption_key_identity_model = {} - encryption_key_identity_model['crn'] = 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + encryption_key_identity_model['crn'] = ( + 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + ) # Construct a dict representation of a RegionIdentityByName model region_identity_model = {} @@ -30498,7 +30777,9 @@ def test_update_backup_policy_plan_all_params(self): backup_policy_plan_patch_model['cron_spec'] = '30 */2 * * 1-5' backup_policy_plan_patch_model['deletion_trigger'] = backup_policy_plan_deletion_trigger_patch_model backup_policy_plan_patch_model['name'] = 'my-policy-plan' - backup_policy_plan_patch_model['remote_region_policies'] = [backup_policy_plan_remote_region_policy_prototype_model] + backup_policy_plan_patch_model['remote_region_policies'] = [ + backup_policy_plan_remote_region_policy_prototype_model + ] # Set up parameter values backup_policy_id = 'testString' @@ -30563,7 +30844,9 @@ def test_update_backup_policy_plan_required_params(self): # Construct a dict representation of a EncryptionKeyIdentityByCRN model encryption_key_identity_model = {} - encryption_key_identity_model['crn'] = 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + encryption_key_identity_model['crn'] = ( + 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + ) # Construct a dict representation of a RegionIdentityByName model region_identity_model = {} @@ -30584,7 +30867,9 @@ def test_update_backup_policy_plan_required_params(self): backup_policy_plan_patch_model['cron_spec'] = '30 */2 * * 1-5' backup_policy_plan_patch_model['deletion_trigger'] = backup_policy_plan_deletion_trigger_patch_model backup_policy_plan_patch_model['name'] = 'my-policy-plan' - backup_policy_plan_patch_model['remote_region_policies'] = [backup_policy_plan_remote_region_policy_prototype_model] + backup_policy_plan_patch_model['remote_region_policies'] = [ + backup_policy_plan_remote_region_policy_prototype_model + ] # Set up parameter values backup_policy_id = 'testString' @@ -30647,7 +30932,9 @@ def test_update_backup_policy_plan_value_error(self): # Construct a dict representation of a EncryptionKeyIdentityByCRN model encryption_key_identity_model = {} - encryption_key_identity_model['crn'] = 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + encryption_key_identity_model['crn'] = ( + 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + ) # Construct a dict representation of a RegionIdentityByName model region_identity_model = {} @@ -30668,7 +30955,9 @@ def test_update_backup_policy_plan_value_error(self): backup_policy_plan_patch_model['cron_spec'] = '30 */2 * * 1-5' backup_policy_plan_patch_model['deletion_trigger'] = backup_policy_plan_deletion_trigger_patch_model backup_policy_plan_patch_model['name'] = 'my-policy-plan' - backup_policy_plan_patch_model['remote_region_policies'] = [backup_policy_plan_remote_region_policy_prototype_model] + backup_policy_plan_patch_model['remote_region_policies'] = [ + backup_policy_plan_remote_region_policy_prototype_model + ] # Set up parameter values backup_policy_id = 'testString' @@ -31160,8 +31449,7 @@ def test_list_regions_value_error(self): ) # Pass in all but one required param and check for a ValueError - req_param_dict = { - } + req_param_dict = {} for param in req_param_dict.keys(): req_copy = {key: val if key is not param else None for (key, val) in req_param_dict.items()} with pytest.raises(ValueError): @@ -31583,8 +31871,7 @@ def test_list_virtual_network_interfaces_value_error(self): ) # Pass in all but one required param and check for a ValueError - req_param_dict = { - } + req_param_dict = {} for param in req_param_dict.keys(): req_copy = {key: val if key is not param else None for (key, val) in req_param_dict.items()} with pytest.raises(ValueError): @@ -31813,8 +32100,7 @@ def test_create_virtual_network_interface_value_error(self): subnet = subnet_identity_model # Pass in all but one required param and check for a ValueError - req_param_dict = { - } + req_param_dict = {} for param in req_param_dict.keys(): req_copy = {key: val if key is not param else None for (key, val) in req_param_dict.items()} with pytest.raises(ValueError): @@ -33158,8 +33444,7 @@ def test_list_cluster_network_profiles_value_error(self): ) # Pass in all but one required param and check for a ValueError - req_param_dict = { - } + req_param_dict = {} for param in req_param_dict.keys(): req_copy = {key: val if key is not param else None for (key, val) in req_param_dict.items()} with pytest.raises(ValueError): @@ -33442,8 +33727,7 @@ def test_list_cluster_networks_value_error(self): ) # Pass in all but one required param and check for a ValueError - req_param_dict = { - } + req_param_dict = {} for param in req_param_dict.keys(): req_copy = {key: val if key is not param else None for (key, val) in req_param_dict.items()} with pytest.raises(ValueError): @@ -36248,8 +36532,7 @@ def test_list_public_gateways_value_error(self): ) # Pass in all but one required param and check for a ValueError - req_param_dict = { - } + req_param_dict = {} for param in req_param_dict.keys(): req_copy = {key: val if key is not param else None for (key, val) in req_param_dict.items()} with pytest.raises(ValueError): @@ -36895,8 +37178,7 @@ def test_list_floating_ips_value_error(self): ) # Pass in all but one required param and check for a ValueError - req_param_dict = { - } + req_param_dict = {} for param in req_param_dict.keys(): req_copy = {key: val if key is not param else None for (key, val) in req_param_dict.items()} with pytest.raises(ValueError): @@ -37526,8 +37808,7 @@ def test_list_network_acls_value_error(self): ) # Pass in all but one required param and check for a ValueError - req_param_dict = { - } + req_param_dict = {} for param in req_param_dict.keys(): req_copy = {key: val if key is not param else None for (key, val) in req_param_dict.items()} with pytest.raises(ValueError): @@ -38802,8 +39083,7 @@ def test_list_security_groups_value_error(self): ) # Pass in all but one required param and check for a ValueError - req_param_dict = { - } + req_param_dict = {} for param in req_param_dict.keys(): req_copy = {key: val if key is not param else None for (key, val) in req_param_dict.items()} with pytest.raises(ValueError): @@ -40391,8 +40671,7 @@ def test_list_ike_policies_value_error(self): ) # Pass in all but one required param and check for a ValueError - req_param_dict = { - } + req_param_dict = {} for param in req_param_dict.keys(): req_copy = {key: val if key is not param else None for (key, val) in req_param_dict.items()} with pytest.raises(ValueError): @@ -41156,8 +41435,7 @@ def test_list_ipsec_policies_value_error(self): ) # Pass in all but one required param and check for a ValueError - req_param_dict = { - } + req_param_dict = {} for param in req_param_dict.keys(): req_copy = {key: val if key is not param else None for (key, val) in req_param_dict.items()} with pytest.raises(ValueError): @@ -41923,8 +42201,7 @@ def test_list_vpn_gateways_value_error(self): ) # Pass in all but one required param and check for a ValueError - req_param_dict = { - } + req_param_dict = {} for param in req_param_dict.keys(): req_copy = {key: val if key is not param else None for (key, val) in req_param_dict.items()} with pytest.raises(ValueError): @@ -42627,11 +42904,15 @@ def test_create_vpn_gateway_connection_all_params(self): # Construct a dict representation of a VPNGatewayConnectionStaticRouteModeLocalPrototype model vpn_gateway_connection_static_route_mode_local_prototype_model = {} - vpn_gateway_connection_static_route_mode_local_prototype_model['ike_identities'] = [vpn_gateway_connection_ike_identity_prototype_model] + vpn_gateway_connection_static_route_mode_local_prototype_model['ike_identities'] = [ + vpn_gateway_connection_ike_identity_prototype_model + ] # Construct a dict representation of a VPNGatewayConnectionStaticRouteModePeerPrototypeVPNGatewayConnectionPeerByAddress model vpn_gateway_connection_static_route_mode_peer_prototype_model = {} - vpn_gateway_connection_static_route_mode_peer_prototype_model['ike_identity'] = vpn_gateway_connection_ike_identity_prototype_model + vpn_gateway_connection_static_route_mode_peer_prototype_model['ike_identity'] = ( + vpn_gateway_connection_ike_identity_prototype_model + ) vpn_gateway_connection_static_route_mode_peer_prototype_model['address'] = '169.21.50.5' # Construct a dict representation of a VPNGatewayConnectionPrototypeVPNGatewayConnectionStaticRouteModePrototype model @@ -42712,11 +42993,15 @@ def test_create_vpn_gateway_connection_value_error(self): # Construct a dict representation of a VPNGatewayConnectionStaticRouteModeLocalPrototype model vpn_gateway_connection_static_route_mode_local_prototype_model = {} - vpn_gateway_connection_static_route_mode_local_prototype_model['ike_identities'] = [vpn_gateway_connection_ike_identity_prototype_model] + vpn_gateway_connection_static_route_mode_local_prototype_model['ike_identities'] = [ + vpn_gateway_connection_ike_identity_prototype_model + ] # Construct a dict representation of a VPNGatewayConnectionStaticRouteModePeerPrototypeVPNGatewayConnectionPeerByAddress model vpn_gateway_connection_static_route_mode_peer_prototype_model = {} - vpn_gateway_connection_static_route_mode_peer_prototype_model['ike_identity'] = vpn_gateway_connection_ike_identity_prototype_model + vpn_gateway_connection_static_route_mode_peer_prototype_model['ike_identity'] = ( + vpn_gateway_connection_ike_identity_prototype_model + ) vpn_gateway_connection_static_route_mode_peer_prototype_model['address'] = '169.21.50.5' # Construct a dict representation of a VPNGatewayConnectionPrototypeVPNGatewayConnectionStaticRouteModePrototype model @@ -43906,8 +44191,7 @@ def test_list_vpn_servers_value_error(self): ) # Pass in all but one required param and check for a ValueError - req_param_dict = { - } + req_param_dict = {} for param in req_param_dict.keys(): req_copy = {key: val if key is not param else None for (key, val) in req_param_dict.items()} with pytest.raises(ValueError): @@ -44021,7 +44305,9 @@ def test_create_vpn_server_all_params(self): # Construct a dict representation of a CertificateInstanceIdentityByCRN model certificate_instance_identity_model = {} - certificate_instance_identity_model['crn'] = 'crn:v1:bluemix:public:secrets-manager:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:36fa422d-080d-4d83-8d2d-86851b4001df:secret:2e786aab-42fa-63ed-14f8-d66d552f4dd5' + certificate_instance_identity_model['crn'] = ( + 'crn:v1:bluemix:public:secrets-manager:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:36fa422d-080d-4d83-8d2d-86851b4001df:secret:2e786aab-42fa-63ed-14f8-d66d552f4dd5' + ) # Construct a dict representation of a VPNServerAuthenticationByUsernameIdProviderByIAM model vpn_server_authentication_by_username_id_provider_model = {} @@ -44030,7 +44316,9 @@ def test_create_vpn_server_all_params(self): # Construct a dict representation of a VPNServerAuthenticationPrototypeVPNServerAuthenticationByUsernamePrototype model vpn_server_authentication_prototype_model = {} vpn_server_authentication_prototype_model['method'] = 'username' - vpn_server_authentication_prototype_model['identity_provider'] = vpn_server_authentication_by_username_id_provider_model + vpn_server_authentication_prototype_model['identity_provider'] = ( + vpn_server_authentication_by_username_id_provider_model + ) # Construct a dict representation of a SubnetIdentityById model subnet_identity_model = {} @@ -44124,7 +44412,9 @@ def test_create_vpn_server_value_error(self): # Construct a dict representation of a CertificateInstanceIdentityByCRN model certificate_instance_identity_model = {} - certificate_instance_identity_model['crn'] = 'crn:v1:bluemix:public:secrets-manager:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:36fa422d-080d-4d83-8d2d-86851b4001df:secret:2e786aab-42fa-63ed-14f8-d66d552f4dd5' + certificate_instance_identity_model['crn'] = ( + 'crn:v1:bluemix:public:secrets-manager:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:36fa422d-080d-4d83-8d2d-86851b4001df:secret:2e786aab-42fa-63ed-14f8-d66d552f4dd5' + ) # Construct a dict representation of a VPNServerAuthenticationByUsernameIdProviderByIAM model vpn_server_authentication_by_username_id_provider_model = {} @@ -44133,7 +44423,9 @@ def test_create_vpn_server_value_error(self): # Construct a dict representation of a VPNServerAuthenticationPrototypeVPNServerAuthenticationByUsernamePrototype model vpn_server_authentication_prototype_model = {} vpn_server_authentication_prototype_model['method'] = 'username' - vpn_server_authentication_prototype_model['identity_provider'] = vpn_server_authentication_by_username_id_provider_model + vpn_server_authentication_prototype_model['identity_provider'] = ( + vpn_server_authentication_by_username_id_provider_model + ) # Construct a dict representation of a SubnetIdentityById model subnet_identity_model = {} @@ -44403,7 +44695,9 @@ def test_update_vpn_server_all_params(self): # Construct a dict representation of a CertificateInstanceIdentityByCRN model certificate_instance_identity_model = {} - certificate_instance_identity_model['crn'] = 'crn:v1:bluemix:public:secrets-manager:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:36fa422d-080d-4d83-8d2d-86851b4001df:secret:2e786aab-42fa-63ed-14f8-d66d552f4dd5' + certificate_instance_identity_model['crn'] = ( + 'crn:v1:bluemix:public:secrets-manager:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:36fa422d-080d-4d83-8d2d-86851b4001df:secret:2e786aab-42fa-63ed-14f8-d66d552f4dd5' + ) # Construct a dict representation of a VPNServerAuthenticationByUsernameIdProviderByIAM model vpn_server_authentication_by_username_id_provider_model = {} @@ -44412,7 +44706,9 @@ def test_update_vpn_server_all_params(self): # Construct a dict representation of a VPNServerAuthenticationPrototypeVPNServerAuthenticationByUsernamePrototype model vpn_server_authentication_prototype_model = {} vpn_server_authentication_prototype_model['method'] = 'username' - vpn_server_authentication_prototype_model['identity_provider'] = vpn_server_authentication_by_username_id_provider_model + vpn_server_authentication_prototype_model['identity_provider'] = ( + vpn_server_authentication_by_username_id_provider_model + ) # Construct a dict representation of a IP model ip_model = {} @@ -44482,7 +44778,9 @@ def test_update_vpn_server_required_params(self): # Construct a dict representation of a CertificateInstanceIdentityByCRN model certificate_instance_identity_model = {} - certificate_instance_identity_model['crn'] = 'crn:v1:bluemix:public:secrets-manager:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:36fa422d-080d-4d83-8d2d-86851b4001df:secret:2e786aab-42fa-63ed-14f8-d66d552f4dd5' + certificate_instance_identity_model['crn'] = ( + 'crn:v1:bluemix:public:secrets-manager:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:36fa422d-080d-4d83-8d2d-86851b4001df:secret:2e786aab-42fa-63ed-14f8-d66d552f4dd5' + ) # Construct a dict representation of a VPNServerAuthenticationByUsernameIdProviderByIAM model vpn_server_authentication_by_username_id_provider_model = {} @@ -44491,7 +44789,9 @@ def test_update_vpn_server_required_params(self): # Construct a dict representation of a VPNServerAuthenticationPrototypeVPNServerAuthenticationByUsernamePrototype model vpn_server_authentication_prototype_model = {} vpn_server_authentication_prototype_model['method'] = 'username' - vpn_server_authentication_prototype_model['identity_provider'] = vpn_server_authentication_by_username_id_provider_model + vpn_server_authentication_prototype_model['identity_provider'] = ( + vpn_server_authentication_by_username_id_provider_model + ) # Construct a dict representation of a IP model ip_model = {} @@ -44559,7 +44859,9 @@ def test_update_vpn_server_value_error(self): # Construct a dict representation of a CertificateInstanceIdentityByCRN model certificate_instance_identity_model = {} - certificate_instance_identity_model['crn'] = 'crn:v1:bluemix:public:secrets-manager:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:36fa422d-080d-4d83-8d2d-86851b4001df:secret:2e786aab-42fa-63ed-14f8-d66d552f4dd5' + certificate_instance_identity_model['crn'] = ( + 'crn:v1:bluemix:public:secrets-manager:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:36fa422d-080d-4d83-8d2d-86851b4001df:secret:2e786aab-42fa-63ed-14f8-d66d552f4dd5' + ) # Construct a dict representation of a VPNServerAuthenticationByUsernameIdProviderByIAM model vpn_server_authentication_by_username_id_provider_model = {} @@ -44568,7 +44870,9 @@ def test_update_vpn_server_value_error(self): # Construct a dict representation of a VPNServerAuthenticationPrototypeVPNServerAuthenticationByUsernamePrototype model vpn_server_authentication_prototype_model = {} vpn_server_authentication_prototype_model['method'] = 'username' - vpn_server_authentication_prototype_model['identity_provider'] = vpn_server_authentication_by_username_id_provider_model + vpn_server_authentication_prototype_model['identity_provider'] = ( + vpn_server_authentication_by_username_id_provider_model + ) # Construct a dict representation of a IP model ip_model = {} @@ -45863,8 +46167,7 @@ def test_list_load_balancer_profiles_value_error(self): ) # Pass in all but one required param and check for a ValueError - req_param_dict = { - } + req_param_dict = {} for param in req_param_dict.keys(): req_copy = {key: val if key is not param else None for (key, val) in req_param_dict.items()} with pytest.raises(ValueError): @@ -46129,8 +46432,7 @@ def test_list_load_balancers_value_error(self): ) # Pass in all but one required param and check for a ValueError - req_param_dict = { - } + req_param_dict = {} for param in req_param_dict.keys(): req_copy = {key: val if key is not param else None for (key, val) in req_param_dict.items()} with pytest.raises(ValueError): @@ -46242,7 +46544,9 @@ def test_create_load_balancer_all_params(self): # Construct a dict representation of a DNSInstanceIdentityByCRN model dns_instance_identity_model = {} - dns_instance_identity_model['crn'] = 'crn:v1:bluemix:public:dns-svcs:global:a/bb1b52262f7441a586f49068482f1e60:f761b566-030a-4696-8649-cc9d09889e88::' + dns_instance_identity_model['crn'] = ( + 'crn:v1:bluemix:public:dns-svcs:global:a/bb1b52262f7441a586f49068482f1e60:f761b566-030a-4696-8649-cc9d09889e88::' + ) # Construct a dict representation of a DNSZoneIdentityById model dns_zone_identity_model = {} @@ -46255,7 +46559,9 @@ def test_create_load_balancer_all_params(self): # Construct a dict representation of a CertificateInstanceIdentityByCRN model certificate_instance_identity_model = {} - certificate_instance_identity_model['crn'] = 'crn:v1:bluemix:public:secrets-manager:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:36fa422d-080d-4d83-8d2d-86851b4001df:secret:2e786aab-42fa-63ed-14f8-d66d552f4dd5' + certificate_instance_identity_model['crn'] = ( + 'crn:v1:bluemix:public:secrets-manager:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:36fa422d-080d-4d83-8d2d-86851b4001df:secret:2e786aab-42fa-63ed-14f8-d66d552f4dd5' + ) # Construct a dict representation of a LoadBalancerPoolIdentityByName model load_balancer_pool_identity_by_name_model = {} @@ -46274,10 +46580,16 @@ def test_create_load_balancer_all_params(self): # Construct a dict representation of a LoadBalancerListenerPrototypeLoadBalancerContext model load_balancer_listener_prototype_load_balancer_context_model = {} load_balancer_listener_prototype_load_balancer_context_model['accept_proxy_protocol'] = True - load_balancer_listener_prototype_load_balancer_context_model['certificate_instance'] = certificate_instance_identity_model + load_balancer_listener_prototype_load_balancer_context_model['certificate_instance'] = ( + certificate_instance_identity_model + ) load_balancer_listener_prototype_load_balancer_context_model['connection_limit'] = 2000 - load_balancer_listener_prototype_load_balancer_context_model['default_pool'] = load_balancer_pool_identity_by_name_model - load_balancer_listener_prototype_load_balancer_context_model['https_redirect'] = load_balancer_listener_https_redirect_prototype_model + load_balancer_listener_prototype_load_balancer_context_model['default_pool'] = ( + load_balancer_pool_identity_by_name_model + ) + load_balancer_listener_prototype_load_balancer_context_model['https_redirect'] = ( + load_balancer_listener_https_redirect_prototype_model + ) load_balancer_listener_prototype_load_balancer_context_model['idle_connection_timeout'] = 100 load_balancer_listener_prototype_load_balancer_context_model['port'] = 443 load_balancer_listener_prototype_load_balancer_context_model['port_max'] = 499 @@ -46324,7 +46636,9 @@ def test_create_load_balancer_all_params(self): load_balancer_pool_prototype_model['name'] = 'my-load-balancer-pool' load_balancer_pool_prototype_model['protocol'] = 'http' load_balancer_pool_prototype_model['proxy_protocol'] = 'disabled' - load_balancer_pool_prototype_model['session_persistence'] = load_balancer_pool_session_persistence_prototype_model + load_balancer_pool_prototype_model['session_persistence'] = ( + load_balancer_pool_session_persistence_prototype_model + ) # Construct a dict representation of a LoadBalancerProfileIdentityByName model load_balancer_profile_identity_model = {} @@ -46418,7 +46732,9 @@ def test_create_load_balancer_value_error(self): # Construct a dict representation of a DNSInstanceIdentityByCRN model dns_instance_identity_model = {} - dns_instance_identity_model['crn'] = 'crn:v1:bluemix:public:dns-svcs:global:a/bb1b52262f7441a586f49068482f1e60:f761b566-030a-4696-8649-cc9d09889e88::' + dns_instance_identity_model['crn'] = ( + 'crn:v1:bluemix:public:dns-svcs:global:a/bb1b52262f7441a586f49068482f1e60:f761b566-030a-4696-8649-cc9d09889e88::' + ) # Construct a dict representation of a DNSZoneIdentityById model dns_zone_identity_model = {} @@ -46431,7 +46747,9 @@ def test_create_load_balancer_value_error(self): # Construct a dict representation of a CertificateInstanceIdentityByCRN model certificate_instance_identity_model = {} - certificate_instance_identity_model['crn'] = 'crn:v1:bluemix:public:secrets-manager:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:36fa422d-080d-4d83-8d2d-86851b4001df:secret:2e786aab-42fa-63ed-14f8-d66d552f4dd5' + certificate_instance_identity_model['crn'] = ( + 'crn:v1:bluemix:public:secrets-manager:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:36fa422d-080d-4d83-8d2d-86851b4001df:secret:2e786aab-42fa-63ed-14f8-d66d552f4dd5' + ) # Construct a dict representation of a LoadBalancerPoolIdentityByName model load_balancer_pool_identity_by_name_model = {} @@ -46450,10 +46768,16 @@ def test_create_load_balancer_value_error(self): # Construct a dict representation of a LoadBalancerListenerPrototypeLoadBalancerContext model load_balancer_listener_prototype_load_balancer_context_model = {} load_balancer_listener_prototype_load_balancer_context_model['accept_proxy_protocol'] = True - load_balancer_listener_prototype_load_balancer_context_model['certificate_instance'] = certificate_instance_identity_model + load_balancer_listener_prototype_load_balancer_context_model['certificate_instance'] = ( + certificate_instance_identity_model + ) load_balancer_listener_prototype_load_balancer_context_model['connection_limit'] = 2000 - load_balancer_listener_prototype_load_balancer_context_model['default_pool'] = load_balancer_pool_identity_by_name_model - load_balancer_listener_prototype_load_balancer_context_model['https_redirect'] = load_balancer_listener_https_redirect_prototype_model + load_balancer_listener_prototype_load_balancer_context_model['default_pool'] = ( + load_balancer_pool_identity_by_name_model + ) + load_balancer_listener_prototype_load_balancer_context_model['https_redirect'] = ( + load_balancer_listener_https_redirect_prototype_model + ) load_balancer_listener_prototype_load_balancer_context_model['idle_connection_timeout'] = 100 load_balancer_listener_prototype_load_balancer_context_model['port'] = 443 load_balancer_listener_prototype_load_balancer_context_model['port_max'] = 499 @@ -46500,7 +46824,9 @@ def test_create_load_balancer_value_error(self): load_balancer_pool_prototype_model['name'] = 'my-load-balancer-pool' load_balancer_pool_prototype_model['protocol'] = 'http' load_balancer_pool_prototype_model['proxy_protocol'] = 'disabled' - load_balancer_pool_prototype_model['session_persistence'] = load_balancer_pool_session_persistence_prototype_model + load_balancer_pool_prototype_model['session_persistence'] = ( + load_balancer_pool_session_persistence_prototype_model + ) # Construct a dict representation of a LoadBalancerProfileIdentityByName model load_balancer_profile_identity_model = {} @@ -46764,7 +47090,9 @@ def test_update_load_balancer_all_params(self): # Construct a dict representation of a DNSInstanceIdentityByCRN model dns_instance_identity_model = {} - dns_instance_identity_model['crn'] = 'crn:v1:bluemix:public:dns-svcs:global:a/bb1b52262f7441a586f49068482f1e60:f761b566-030a-4696-8649-cc9d09889e88::' + dns_instance_identity_model['crn'] = ( + 'crn:v1:bluemix:public:dns-svcs:global:a/bb1b52262f7441a586f49068482f1e60:f761b566-030a-4696-8649-cc9d09889e88::' + ) # Construct a dict representation of a DNSZoneIdentityById model dns_zone_identity_model = {} @@ -46841,7 +47169,9 @@ def test_update_load_balancer_required_params(self): # Construct a dict representation of a DNSInstanceIdentityByCRN model dns_instance_identity_model = {} - dns_instance_identity_model['crn'] = 'crn:v1:bluemix:public:dns-svcs:global:a/bb1b52262f7441a586f49068482f1e60:f761b566-030a-4696-8649-cc9d09889e88::' + dns_instance_identity_model['crn'] = ( + 'crn:v1:bluemix:public:dns-svcs:global:a/bb1b52262f7441a586f49068482f1e60:f761b566-030a-4696-8649-cc9d09889e88::' + ) # Construct a dict representation of a DNSZoneIdentityById model dns_zone_identity_model = {} @@ -46916,7 +47246,9 @@ def test_update_load_balancer_value_error(self): # Construct a dict representation of a DNSInstanceIdentityByCRN model dns_instance_identity_model = {} - dns_instance_identity_model['crn'] = 'crn:v1:bluemix:public:dns-svcs:global:a/bb1b52262f7441a586f49068482f1e60:f761b566-030a-4696-8649-cc9d09889e88::' + dns_instance_identity_model['crn'] = ( + 'crn:v1:bluemix:public:dns-svcs:global:a/bb1b52262f7441a586f49068482f1e60:f761b566-030a-4696-8649-cc9d09889e88::' + ) # Construct a dict representation of a DNSZoneIdentityById model dns_zone_identity_model = {} @@ -47155,7 +47487,9 @@ def test_create_load_balancer_listener_all_params(self): # Construct a dict representation of a CertificateInstanceIdentityByCRN model certificate_instance_identity_model = {} - certificate_instance_identity_model['crn'] = 'crn:v1:bluemix:public:secrets-manager:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:36fa422d-080d-4d83-8d2d-86851b4001df:secret:2e786aab-42fa-63ed-14f8-d66d552f4dd5' + certificate_instance_identity_model['crn'] = ( + 'crn:v1:bluemix:public:secrets-manager:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:36fa422d-080d-4d83-8d2d-86851b4001df:secret:2e786aab-42fa-63ed-14f8-d66d552f4dd5' + ) # Construct a dict representation of a LoadBalancerPoolIdentityLoadBalancerPoolIdentityById model load_balancer_pool_identity_model = {} @@ -47265,7 +47599,9 @@ def test_create_load_balancer_listener_value_error(self): # Construct a dict representation of a CertificateInstanceIdentityByCRN model certificate_instance_identity_model = {} - certificate_instance_identity_model['crn'] = 'crn:v1:bluemix:public:secrets-manager:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:36fa422d-080d-4d83-8d2d-86851b4001df:secret:2e786aab-42fa-63ed-14f8-d66d552f4dd5' + certificate_instance_identity_model['crn'] = ( + 'crn:v1:bluemix:public:secrets-manager:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:36fa422d-080d-4d83-8d2d-86851b4001df:secret:2e786aab-42fa-63ed-14f8-d66d552f4dd5' + ) # Construct a dict representation of a LoadBalancerPoolIdentityLoadBalancerPoolIdentityById model load_balancer_pool_identity_model = {} @@ -47521,7 +47857,9 @@ def test_update_load_balancer_listener_all_params(self): # Construct a dict representation of a CertificateInstanceIdentityByCRN model certificate_instance_identity_model = {} - certificate_instance_identity_model['crn'] = 'crn:v1:bluemix:public:secrets-manager:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:36fa422d-080d-4d83-8d2d-86851b4001df:secret:2e786aab-42fa-63ed-14f8-d66d552f4dd5' + certificate_instance_identity_model['crn'] = ( + 'crn:v1:bluemix:public:secrets-manager:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:36fa422d-080d-4d83-8d2d-86851b4001df:secret:2e786aab-42fa-63ed-14f8-d66d552f4dd5' + ) # Construct a dict representation of a LoadBalancerListenerDefaultPoolPatchLoadBalancerPoolIdentityById model load_balancer_listener_default_pool_patch_model = {} @@ -47597,7 +47935,9 @@ def test_update_load_balancer_listener_value_error(self): # Construct a dict representation of a CertificateInstanceIdentityByCRN model certificate_instance_identity_model = {} - certificate_instance_identity_model['crn'] = 'crn:v1:bluemix:public:secrets-manager:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:36fa422d-080d-4d83-8d2d-86851b4001df:secret:2e786aab-42fa-63ed-14f8-d66d552f4dd5' + certificate_instance_identity_model['crn'] = ( + 'crn:v1:bluemix:public:secrets-manager:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:36fa422d-080d-4d83-8d2d-86851b4001df:secret:2e786aab-42fa-63ed-14f8-d66d552f4dd5' + ) # Construct a dict representation of a LoadBalancerListenerDefaultPoolPatchLoadBalancerPoolIdentityById model load_balancer_listener_default_pool_patch_model = {} @@ -49905,7 +50245,10 @@ def test_list_endpoint_gateways_all_params(self): assert 'vpc.id={}'.format(vpc_id) in query_string assert 'vpc.crn={}'.format(vpc_crn) in query_string assert 'vpc.name={}'.format(vpc_name) in query_string - assert 'allow_dns_resolution_binding={}'.format('true' if allow_dns_resolution_binding else 'false') in query_string + assert ( + 'allow_dns_resolution_binding={}'.format('true' if allow_dns_resolution_binding else 'false') + in query_string + ) def test_list_endpoint_gateways_all_params_with_retries(self): # Enable retries and run test_list_endpoint_gateways_all_params. @@ -49965,8 +50308,7 @@ def test_list_endpoint_gateways_value_error(self): ) # Pass in all but one required param and check for a ValueError - req_param_dict = { - } + req_param_dict = {} for param in req_param_dict.keys(): req_copy = {key: val if key is not param else None for (key, val) in req_param_dict.items()} with pytest.raises(ValueError): @@ -51100,8 +51442,7 @@ def test_list_flow_log_collectors_value_error(self): ) # Pass in all but one required param and check for a ValueError - req_param_dict = { - } + req_param_dict = {} for param in req_param_dict.keys(): req_copy = {key: val if key is not param else None for (key, val) in req_param_dict.items()} with pytest.raises(ValueError): @@ -51738,8 +52079,7 @@ def test_list_private_path_service_gateways_value_error(self): ) # Pass in all but one required param and check for a ValueError - req_param_dict = { - } + req_param_dict = {} for param in req_param_dict.keys(): req_copy = {key: val if key is not param else None for (key, val) in req_param_dict.items()} with pytest.raises(ValueError): @@ -53622,7 +53962,9 @@ def test_address_prefix_serialization(self): address_prefix_model_json['cidr'] = '192.168.3.0/24' address_prefix_model_json['created_at'] = '2019-01-01T12:00:00Z' address_prefix_model_json['has_subnets'] = True - address_prefix_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/8e454ead-0db7-48ac-9a8b-2698d8c470a7/address_prefixes/1a15dca5-7e33-45e1-b7c5-bc690e569531' + address_prefix_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/8e454ead-0db7-48ac-9a8b-2698d8c470a7/address_prefixes/1a15dca5-7e33-45e1-b7c5-bc690e569531' + ) address_prefix_model_json['id'] = '1a15dca5-7e33-45e1-b7c5-bc690e569531' address_prefix_model_json['is_default'] = False address_prefix_model_json['name'] = 'my-address-prefix-1' @@ -53664,14 +54006,18 @@ def test_address_prefix_collection_serialization(self): address_prefix_model['cidr'] = '192.168.3.0/24' address_prefix_model['created_at'] = '2019-01-01T12:00:00Z' address_prefix_model['has_subnets'] = True - address_prefix_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/8e454ead-0db7-48ac-9a8b-2698d8c470a7/address_prefixes/1a15dca5-7e33-45e1-b7c5-bc690e569531' + address_prefix_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/8e454ead-0db7-48ac-9a8b-2698d8c470a7/address_prefixes/1a15dca5-7e33-45e1-b7c5-bc690e569531' + ) address_prefix_model['id'] = '1a15dca5-7e33-45e1-b7c5-bc690e569531' address_prefix_model['is_default'] = False address_prefix_model['name'] = 'my-address-prefix-1' address_prefix_model['zone'] = zone_reference_model page_link_model = {} # PageLink - page_link_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/a4e28308-8ee7-46ab-8108-9f881f22bdbf/address_prefixes?limit=20' + page_link_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/a4e28308-8ee7-46ab-8108-9f881f22bdbf/address_prefixes?limit=20' + ) # Construct a json representation of a AddressPrefixCollection model address_prefix_collection_model_json = {} @@ -53686,7 +54032,9 @@ def test_address_prefix_collection_serialization(self): assert address_prefix_collection_model != False # Construct a model instance of AddressPrefixCollection by calling from_dict on the json representation - address_prefix_collection_model_dict = AddressPrefixCollection.from_dict(address_prefix_collection_model_json).__dict__ + address_prefix_collection_model_dict = AddressPrefixCollection.from_dict( + address_prefix_collection_model_json + ).__dict__ address_prefix_collection_model2 = AddressPrefixCollection(**address_prefix_collection_model_dict) # Verify the model instances are equivalent @@ -53743,7 +54091,9 @@ def test_backup_policy_collection_serialization(self): backup_policy_health_reason_model = {} # BackupPolicyHealthReason backup_policy_health_reason_model['code'] = 'missing_service_authorization_policies' backup_policy_health_reason_model['message'] = 'One or more accounts are missing service authorization policies' - backup_policy_health_reason_model['more_info'] = 'https://cloud.ibm.com/docs/vpc?topic=vpc-backup-service-about&interface=ui' + backup_policy_health_reason_model['more_info'] = ( + 'https://cloud.ibm.com/docs/vpc?topic=vpc-backup-service-about&interface=ui' + ) deleted_model = {} # Deleted deleted_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#deleted-resources' @@ -53757,28 +54107,38 @@ def test_backup_policy_collection_serialization(self): backup_policy_plan_reference_model = {} # BackupPolicyPlanReference backup_policy_plan_reference_model['deleted'] = deleted_model - backup_policy_plan_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/backup_policies/r134-076191ba-49c2-4763-94fd-c70de73ee2e6/plans/r134-6da51cfe-6f7b-4638-a6ba-00e9c327b178' + backup_policy_plan_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/backup_policies/r134-076191ba-49c2-4763-94fd-c70de73ee2e6/plans/r134-6da51cfe-6f7b-4638-a6ba-00e9c327b178' + ) backup_policy_plan_reference_model['id'] = 'r134-6da51cfe-6f7b-4638-a6ba-00e9c327b178' backup_policy_plan_reference_model['name'] = 'my-policy-plan' backup_policy_plan_reference_model['remote'] = backup_policy_plan_remote_model backup_policy_plan_reference_model['resource_type'] = 'backup_policy_plan' resource_group_reference_model = {} # ResourceGroupReference - resource_group_reference_model['href'] = 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + resource_group_reference_model['href'] = ( + 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + ) resource_group_reference_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' resource_group_reference_model['name'] = 'my-resource-group' backup_policy_scope_model = {} # BackupPolicyScopeEnterpriseReference - backup_policy_scope_model['crn'] = 'crn:v1:bluemix:public:enterprise::a/aa2432b1fa4d4ace891e9b80fc104e34::enterprise:ebc2b430240943458b9e91e1432cfcce' + backup_policy_scope_model['crn'] = ( + 'crn:v1:bluemix:public:enterprise::a/aa2432b1fa4d4ace891e9b80fc104e34::enterprise:ebc2b430240943458b9e91e1432cfcce' + ) backup_policy_scope_model['id'] = 'ebc2b430240943458b9e91e1432cfcce' backup_policy_scope_model['resource_type'] = 'enterprise' backup_policy_model = {} # BackupPolicyMatchResourceTypeInstance backup_policy_model['created_at'] = '2019-01-01T12:00:00Z' - backup_policy_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::backup-policy:r134-076191ba-49c2-4763-94fd-c70de73ee2e6' + backup_policy_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::backup-policy:r134-076191ba-49c2-4763-94fd-c70de73ee2e6' + ) backup_policy_model['health_reasons'] = [backup_policy_health_reason_model] backup_policy_model['health_state'] = 'ok' - backup_policy_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/backup_policies/r134-076191ba-49c2-4763-94fd-c70de73ee2e6' + backup_policy_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/backup_policies/r134-076191ba-49c2-4763-94fd-c70de73ee2e6' + ) backup_policy_model['id'] = 'r134-076191ba-49c2-4763-94fd-c70de73ee2e6' backup_policy_model['last_job_completed_at'] = '2019-01-01T12:00:00Z' backup_policy_model['lifecycle_state'] = 'stable' @@ -53807,7 +54167,9 @@ def test_backup_policy_collection_serialization(self): assert backup_policy_collection_model != False # Construct a model instance of BackupPolicyCollection by calling from_dict on the json representation - backup_policy_collection_model_dict = BackupPolicyCollection.from_dict(backup_policy_collection_model_json).__dict__ + backup_policy_collection_model_dict = BackupPolicyCollection.from_dict( + backup_policy_collection_model_json + ).__dict__ backup_policy_collection_model2 = BackupPolicyCollection(**backup_policy_collection_model_dict) # Verify the model instances are equivalent @@ -53831,15 +54193,21 @@ def test_backup_policy_health_reason_serialization(self): # Construct a json representation of a BackupPolicyHealthReason model backup_policy_health_reason_model_json = {} backup_policy_health_reason_model_json['code'] = 'missing_service_authorization_policies' - backup_policy_health_reason_model_json['message'] = 'One or more accounts are missing service authorization policies' - backup_policy_health_reason_model_json['more_info'] = 'https://cloud.ibm.com/docs/vpc?topic=vpc-backup-service-about&interface=ui' + backup_policy_health_reason_model_json['message'] = ( + 'One or more accounts are missing service authorization policies' + ) + backup_policy_health_reason_model_json['more_info'] = ( + 'https://cloud.ibm.com/docs/vpc?topic=vpc-backup-service-about&interface=ui' + ) # Construct a model instance of BackupPolicyHealthReason by calling from_dict on the json representation backup_policy_health_reason_model = BackupPolicyHealthReason.from_dict(backup_policy_health_reason_model_json) assert backup_policy_health_reason_model != False # Construct a model instance of BackupPolicyHealthReason by calling from_dict on the json representation - backup_policy_health_reason_model_dict = BackupPolicyHealthReason.from_dict(backup_policy_health_reason_model_json).__dict__ + backup_policy_health_reason_model_dict = BackupPolicyHealthReason.from_dict( + backup_policy_health_reason_model_json + ).__dict__ backup_policy_health_reason_model2 = BackupPolicyHealthReason(**backup_policy_health_reason_model_dict) # Verify the model instances are equivalent @@ -53874,7 +54242,9 @@ def test_backup_policy_job_serialization(self): backup_policy_plan_reference_model = {} # BackupPolicyPlanReference backup_policy_plan_reference_model['deleted'] = deleted_model - backup_policy_plan_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/backup_policies/r134-076191ba-49c2-4763-94fd-c70de73ee2e6/plans/r134-6da51cfe-6f7b-4638-a6ba-00e9c327b178' + backup_policy_plan_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/backup_policies/r134-076191ba-49c2-4763-94fd-c70de73ee2e6/plans/r134-6da51cfe-6f7b-4638-a6ba-00e9c327b178' + ) backup_policy_plan_reference_model['id'] = 'r134-6da51cfe-6f7b-4638-a6ba-00e9c327b178' backup_policy_plan_reference_model['name'] = 'my-policy-plan' backup_policy_plan_reference_model['remote'] = backup_policy_plan_remote_model @@ -53884,9 +54254,13 @@ def test_backup_policy_job_serialization(self): volume_remote_model['region'] = region_reference_model backup_policy_job_source_model = {} # BackupPolicyJobSourceVolumeReference - backup_policy_job_source_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::volume:r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' + backup_policy_job_source_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::volume:r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' + ) backup_policy_job_source_model['deleted'] = deleted_model - backup_policy_job_source_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/volumes/r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' + backup_policy_job_source_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/volumes/r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' + ) backup_policy_job_source_model['id'] = 'r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' backup_policy_job_source_model['name'] = 'my-volume' backup_policy_job_source_model['remote'] = volume_remote_model @@ -53895,7 +54269,9 @@ def test_backup_policy_job_serialization(self): backup_policy_job_status_reason_model = {} # BackupPolicyJobStatusReason backup_policy_job_status_reason_model['code'] = 'source_volume_busy' backup_policy_job_status_reason_model['message'] = 'testString' - backup_policy_job_status_reason_model['more_info'] = 'https://cloud.ibm.com/docs/vpc?topic=vpc-baas-troubleshoot' + backup_policy_job_status_reason_model['more_info'] = ( + 'https://cloud.ibm.com/docs/vpc?topic=vpc-baas-troubleshoot' + ) account_reference_model = {} # AccountReference account_reference_model['id'] = 'bb1b52262f7441a586f49068482f1e60' @@ -53906,9 +54282,13 @@ def test_backup_policy_job_serialization(self): snapshot_remote_model['region'] = region_reference_model snapshot_reference_model = {} # SnapshotReference - snapshot_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::snapshot:r134-f6bfa329-0e36-433f-a3bb-0df632e79263' + snapshot_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::snapshot:r134-f6bfa329-0e36-433f-a3bb-0df632e79263' + ) snapshot_reference_model['deleted'] = deleted_model - snapshot_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/snapshots/r134-f6bfa329-0e36-433f-a3bb-0df632e79263' + snapshot_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/snapshots/r134-f6bfa329-0e36-433f-a3bb-0df632e79263' + ) snapshot_reference_model['id'] = 'r134-f6bfa329-0e36-433f-a3bb-0df632e79263' snapshot_reference_model['name'] = 'my-snapshot' snapshot_reference_model['remote'] = snapshot_remote_model @@ -53921,7 +54301,9 @@ def test_backup_policy_job_serialization(self): backup_policy_job_model_json['backup_policy_plan'] = backup_policy_plan_reference_model backup_policy_job_model_json['completed_at'] = '2019-01-01T12:00:00Z' backup_policy_job_model_json['created_at'] = '2019-01-01T12:00:00Z' - backup_policy_job_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/backup_policies/0fe9e5d8-0a4d-4818-96ec-e99708644a58/jobs/4cf9171a-0043-4434-8727-15b53dbc374c' + backup_policy_job_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/backup_policies/0fe9e5d8-0a4d-4818-96ec-e99708644a58/jobs/4cf9171a-0043-4434-8727-15b53dbc374c' + ) backup_policy_job_model_json['id'] = '4cf9171a-0043-4434-8727-15b53dbc374c' backup_policy_job_model_json['job_type'] = 'creation' backup_policy_job_model_json['resource_type'] = 'backup_policy_job' @@ -53959,7 +54341,9 @@ def test_backup_policy_job_collection_serialization(self): # Construct dict forms of any model objects needed in order to build this model. page_link_model = {} # PageLink - page_link_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/backup_policies/7241e2a8-601f-11ea-8503-000c29475bed/jobs?limit=20' + page_link_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/backup_policies/7241e2a8-601f-11ea-8503-000c29475bed/jobs?limit=20' + ) deleted_model = {} # Deleted deleted_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#deleted-resources' @@ -53973,7 +54357,9 @@ def test_backup_policy_job_collection_serialization(self): backup_policy_plan_reference_model = {} # BackupPolicyPlanReference backup_policy_plan_reference_model['deleted'] = deleted_model - backup_policy_plan_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/backup_policies/r134-076191ba-49c2-4763-94fd-c70de73ee2e6/plans/r134-6da51cfe-6f7b-4638-a6ba-00e9c327b178' + backup_policy_plan_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/backup_policies/r134-076191ba-49c2-4763-94fd-c70de73ee2e6/plans/r134-6da51cfe-6f7b-4638-a6ba-00e9c327b178' + ) backup_policy_plan_reference_model['id'] = 'r134-6da51cfe-6f7b-4638-a6ba-00e9c327b178' backup_policy_plan_reference_model['name'] = 'my-policy-plan' backup_policy_plan_reference_model['remote'] = backup_policy_plan_remote_model @@ -53983,9 +54369,13 @@ def test_backup_policy_job_collection_serialization(self): volume_remote_model['region'] = region_reference_model backup_policy_job_source_model = {} # BackupPolicyJobSourceVolumeReference - backup_policy_job_source_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::volume:r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' + backup_policy_job_source_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::volume:r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' + ) backup_policy_job_source_model['deleted'] = deleted_model - backup_policy_job_source_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/volumes/r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' + backup_policy_job_source_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/volumes/r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' + ) backup_policy_job_source_model['id'] = 'r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' backup_policy_job_source_model['name'] = 'my-volume' backup_policy_job_source_model['remote'] = volume_remote_model @@ -53994,7 +54384,9 @@ def test_backup_policy_job_collection_serialization(self): backup_policy_job_status_reason_model = {} # BackupPolicyJobStatusReason backup_policy_job_status_reason_model['code'] = 'source_volume_busy' backup_policy_job_status_reason_model['message'] = 'testString' - backup_policy_job_status_reason_model['more_info'] = 'https://cloud.ibm.com/docs/vpc?topic=vpc-baas-troubleshoot' + backup_policy_job_status_reason_model['more_info'] = ( + 'https://cloud.ibm.com/docs/vpc?topic=vpc-baas-troubleshoot' + ) account_reference_model = {} # AccountReference account_reference_model['id'] = 'bb1b52262f7441a586f49068482f1e60' @@ -54005,9 +54397,13 @@ def test_backup_policy_job_collection_serialization(self): snapshot_remote_model['region'] = region_reference_model snapshot_reference_model = {} # SnapshotReference - snapshot_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::snapshot:r134-f6bfa329-0e36-433f-a3bb-0df632e79263' + snapshot_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::snapshot:r134-f6bfa329-0e36-433f-a3bb-0df632e79263' + ) snapshot_reference_model['deleted'] = deleted_model - snapshot_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/snapshots/r134-f6bfa329-0e36-433f-a3bb-0df632e79263' + snapshot_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/snapshots/r134-f6bfa329-0e36-433f-a3bb-0df632e79263' + ) snapshot_reference_model['id'] = 'r134-f6bfa329-0e36-433f-a3bb-0df632e79263' snapshot_reference_model['name'] = 'my-snapshot' snapshot_reference_model['remote'] = snapshot_remote_model @@ -54019,7 +54415,9 @@ def test_backup_policy_job_collection_serialization(self): backup_policy_job_model['backup_policy_plan'] = backup_policy_plan_reference_model backup_policy_job_model['completed_at'] = '2019-01-01T12:00:00Z' backup_policy_job_model['created_at'] = '2019-01-01T12:00:00Z' - backup_policy_job_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/backup_policies/0fe9e5d8-0a4d-4818-96ec-e99708644a58/jobs/4cf9171a-0043-4434-8727-15b53dbc374c' + backup_policy_job_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/backup_policies/0fe9e5d8-0a4d-4818-96ec-e99708644a58/jobs/4cf9171a-0043-4434-8727-15b53dbc374c' + ) backup_policy_job_model['id'] = '4cf9171a-0043-4434-8727-15b53dbc374c' backup_policy_job_model['job_type'] = 'creation' backup_policy_job_model['resource_type'] = 'backup_policy_job' @@ -54037,11 +54435,15 @@ def test_backup_policy_job_collection_serialization(self): backup_policy_job_collection_model_json['total_count'] = 132 # Construct a model instance of BackupPolicyJobCollection by calling from_dict on the json representation - backup_policy_job_collection_model = BackupPolicyJobCollection.from_dict(backup_policy_job_collection_model_json) + backup_policy_job_collection_model = BackupPolicyJobCollection.from_dict( + backup_policy_job_collection_model_json + ) assert backup_policy_job_collection_model != False # Construct a model instance of BackupPolicyJobCollection by calling from_dict on the json representation - backup_policy_job_collection_model_dict = BackupPolicyJobCollection.from_dict(backup_policy_job_collection_model_json).__dict__ + backup_policy_job_collection_model_dict = BackupPolicyJobCollection.from_dict( + backup_policy_job_collection_model_json + ).__dict__ backup_policy_job_collection_model2 = BackupPolicyJobCollection(**backup_policy_job_collection_model_dict) # Verify the model instances are equivalent @@ -54066,15 +54468,23 @@ def test_backup_policy_job_status_reason_serialization(self): backup_policy_job_status_reason_model_json = {} backup_policy_job_status_reason_model_json['code'] = 'source_volume_busy' backup_policy_job_status_reason_model_json['message'] = 'testString' - backup_policy_job_status_reason_model_json['more_info'] = 'https://cloud.ibm.com/docs/vpc?topic=vpc-baas-troubleshoot' + backup_policy_job_status_reason_model_json['more_info'] = ( + 'https://cloud.ibm.com/docs/vpc?topic=vpc-baas-troubleshoot' + ) # Construct a model instance of BackupPolicyJobStatusReason by calling from_dict on the json representation - backup_policy_job_status_reason_model = BackupPolicyJobStatusReason.from_dict(backup_policy_job_status_reason_model_json) + backup_policy_job_status_reason_model = BackupPolicyJobStatusReason.from_dict( + backup_policy_job_status_reason_model_json + ) assert backup_policy_job_status_reason_model != False # Construct a model instance of BackupPolicyJobStatusReason by calling from_dict on the json representation - backup_policy_job_status_reason_model_dict = BackupPolicyJobStatusReason.from_dict(backup_policy_job_status_reason_model_json).__dict__ - backup_policy_job_status_reason_model2 = BackupPolicyJobStatusReason(**backup_policy_job_status_reason_model_dict) + backup_policy_job_status_reason_model_dict = BackupPolicyJobStatusReason.from_dict( + backup_policy_job_status_reason_model_json + ).__dict__ + backup_policy_job_status_reason_model2 = BackupPolicyJobStatusReason( + **backup_policy_job_status_reason_model_dict + ) # Verify the model instances are equivalent assert backup_policy_job_status_reason_model == backup_policy_job_status_reason_model2 @@ -54141,7 +54551,9 @@ def test_backup_policy_plan_serialization(self): backup_policy_plan_deletion_trigger_model['delete_over_count'] = 20 encryption_key_reference_model = {} # EncryptionKeyReference - encryption_key_reference_model['crn'] = 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + encryption_key_reference_model['crn'] = ( + 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + ) region_reference_model = {} # RegionReference region_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/regions/us-south' @@ -54161,7 +54573,9 @@ def test_backup_policy_plan_serialization(self): backup_policy_plan_model_json['created_at'] = '2019-01-01T12:00:00Z' backup_policy_plan_model_json['cron_spec'] = '30 */2 * * 1-5' backup_policy_plan_model_json['deletion_trigger'] = backup_policy_plan_deletion_trigger_model - backup_policy_plan_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/backup_policies/r134-076191ba-49c2-4763-94fd-c70de73ee2e6/plans/r134-6da51cfe-6f7b-4638-a6ba-00e9c327b178' + backup_policy_plan_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/backup_policies/r134-076191ba-49c2-4763-94fd-c70de73ee2e6/plans/r134-6da51cfe-6f7b-4638-a6ba-00e9c327b178' + ) backup_policy_plan_model_json['id'] = 'r134-6da51cfe-6f7b-4638-a6ba-00e9c327b178' backup_policy_plan_model_json['lifecycle_state'] = 'stable' backup_policy_plan_model_json['name'] = 'my-policy-plan' @@ -54206,12 +54620,18 @@ def test_backup_policy_plan_clone_policy_serialization(self): backup_policy_plan_clone_policy_model_json['zones'] = [zone_reference_model] # Construct a model instance of BackupPolicyPlanClonePolicy by calling from_dict on the json representation - backup_policy_plan_clone_policy_model = BackupPolicyPlanClonePolicy.from_dict(backup_policy_plan_clone_policy_model_json) + backup_policy_plan_clone_policy_model = BackupPolicyPlanClonePolicy.from_dict( + backup_policy_plan_clone_policy_model_json + ) assert backup_policy_plan_clone_policy_model != False # Construct a model instance of BackupPolicyPlanClonePolicy by calling from_dict on the json representation - backup_policy_plan_clone_policy_model_dict = BackupPolicyPlanClonePolicy.from_dict(backup_policy_plan_clone_policy_model_json).__dict__ - backup_policy_plan_clone_policy_model2 = BackupPolicyPlanClonePolicy(**backup_policy_plan_clone_policy_model_dict) + backup_policy_plan_clone_policy_model_dict = BackupPolicyPlanClonePolicy.from_dict( + backup_policy_plan_clone_policy_model_json + ).__dict__ + backup_policy_plan_clone_policy_model2 = BackupPolicyPlanClonePolicy( + **backup_policy_plan_clone_policy_model_dict + ) # Verify the model instances are equivalent assert backup_policy_plan_clone_policy_model == backup_policy_plan_clone_policy_model2 @@ -54242,12 +54662,18 @@ def test_backup_policy_plan_clone_policy_patch_serialization(self): backup_policy_plan_clone_policy_patch_model_json['zones'] = [zone_identity_model] # Construct a model instance of BackupPolicyPlanClonePolicyPatch by calling from_dict on the json representation - backup_policy_plan_clone_policy_patch_model = BackupPolicyPlanClonePolicyPatch.from_dict(backup_policy_plan_clone_policy_patch_model_json) + backup_policy_plan_clone_policy_patch_model = BackupPolicyPlanClonePolicyPatch.from_dict( + backup_policy_plan_clone_policy_patch_model_json + ) assert backup_policy_plan_clone_policy_patch_model != False # Construct a model instance of BackupPolicyPlanClonePolicyPatch by calling from_dict on the json representation - backup_policy_plan_clone_policy_patch_model_dict = BackupPolicyPlanClonePolicyPatch.from_dict(backup_policy_plan_clone_policy_patch_model_json).__dict__ - backup_policy_plan_clone_policy_patch_model2 = BackupPolicyPlanClonePolicyPatch(**backup_policy_plan_clone_policy_patch_model_dict) + backup_policy_plan_clone_policy_patch_model_dict = BackupPolicyPlanClonePolicyPatch.from_dict( + backup_policy_plan_clone_policy_patch_model_json + ).__dict__ + backup_policy_plan_clone_policy_patch_model2 = BackupPolicyPlanClonePolicyPatch( + **backup_policy_plan_clone_policy_patch_model_dict + ) # Verify the model instances are equivalent assert backup_policy_plan_clone_policy_patch_model == backup_policy_plan_clone_policy_patch_model2 @@ -54278,19 +54704,30 @@ def test_backup_policy_plan_clone_policy_prototype_serialization(self): backup_policy_plan_clone_policy_prototype_model_json['zones'] = [zone_identity_model] # Construct a model instance of BackupPolicyPlanClonePolicyPrototype by calling from_dict on the json representation - backup_policy_plan_clone_policy_prototype_model = BackupPolicyPlanClonePolicyPrototype.from_dict(backup_policy_plan_clone_policy_prototype_model_json) + backup_policy_plan_clone_policy_prototype_model = BackupPolicyPlanClonePolicyPrototype.from_dict( + backup_policy_plan_clone_policy_prototype_model_json + ) assert backup_policy_plan_clone_policy_prototype_model != False # Construct a model instance of BackupPolicyPlanClonePolicyPrototype by calling from_dict on the json representation - backup_policy_plan_clone_policy_prototype_model_dict = BackupPolicyPlanClonePolicyPrototype.from_dict(backup_policy_plan_clone_policy_prototype_model_json).__dict__ - backup_policy_plan_clone_policy_prototype_model2 = BackupPolicyPlanClonePolicyPrototype(**backup_policy_plan_clone_policy_prototype_model_dict) + backup_policy_plan_clone_policy_prototype_model_dict = BackupPolicyPlanClonePolicyPrototype.from_dict( + backup_policy_plan_clone_policy_prototype_model_json + ).__dict__ + backup_policy_plan_clone_policy_prototype_model2 = BackupPolicyPlanClonePolicyPrototype( + **backup_policy_plan_clone_policy_prototype_model_dict + ) # Verify the model instances are equivalent assert backup_policy_plan_clone_policy_prototype_model == backup_policy_plan_clone_policy_prototype_model2 # Convert model instance back to dict and verify no loss of data - backup_policy_plan_clone_policy_prototype_model_json2 = backup_policy_plan_clone_policy_prototype_model.to_dict() - assert backup_policy_plan_clone_policy_prototype_model_json2 == backup_policy_plan_clone_policy_prototype_model_json + backup_policy_plan_clone_policy_prototype_model_json2 = ( + backup_policy_plan_clone_policy_prototype_model.to_dict() + ) + assert ( + backup_policy_plan_clone_policy_prototype_model_json2 + == backup_policy_plan_clone_policy_prototype_model_json + ) class TestModel_BackupPolicyPlanCollection: @@ -54306,7 +54743,9 @@ def test_backup_policy_plan_collection_serialization(self): # Construct dict forms of any model objects needed in order to build this model. page_link_model = {} # PageLink - page_link_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/backup_policies/r134-076191ba-49c2-4763-94fd-c70de73ee2e6/plans?limit=20' + page_link_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/backup_policies/r134-076191ba-49c2-4763-94fd-c70de73ee2e6/plans?limit=20' + ) zone_reference_model = {} # ZoneReference zone_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1' @@ -54321,7 +54760,9 @@ def test_backup_policy_plan_collection_serialization(self): backup_policy_plan_deletion_trigger_model['delete_over_count'] = 20 encryption_key_reference_model = {} # EncryptionKeyReference - encryption_key_reference_model['crn'] = 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + encryption_key_reference_model['crn'] = ( + 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + ) region_reference_model = {} # RegionReference region_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/regions/us-south' @@ -54340,7 +54781,9 @@ def test_backup_policy_plan_collection_serialization(self): backup_policy_plan_model['created_at'] = '2019-01-01T12:00:00Z' backup_policy_plan_model['cron_spec'] = '30 */2 * * 1-5' backup_policy_plan_model['deletion_trigger'] = backup_policy_plan_deletion_trigger_model - backup_policy_plan_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/backup_policies/r134-076191ba-49c2-4763-94fd-c70de73ee2e6/plans/r134-6da51cfe-6f7b-4638-a6ba-00e9c327b178' + backup_policy_plan_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/backup_policies/r134-076191ba-49c2-4763-94fd-c70de73ee2e6/plans/r134-6da51cfe-6f7b-4638-a6ba-00e9c327b178' + ) backup_policy_plan_model['id'] = 'r134-6da51cfe-6f7b-4638-a6ba-00e9c327b178' backup_policy_plan_model['lifecycle_state'] = 'stable' backup_policy_plan_model['name'] = 'my-policy-plan' @@ -54356,11 +54799,15 @@ def test_backup_policy_plan_collection_serialization(self): backup_policy_plan_collection_model_json['total_count'] = 132 # Construct a model instance of BackupPolicyPlanCollection by calling from_dict on the json representation - backup_policy_plan_collection_model = BackupPolicyPlanCollection.from_dict(backup_policy_plan_collection_model_json) + backup_policy_plan_collection_model = BackupPolicyPlanCollection.from_dict( + backup_policy_plan_collection_model_json + ) assert backup_policy_plan_collection_model != False # Construct a model instance of BackupPolicyPlanCollection by calling from_dict on the json representation - backup_policy_plan_collection_model_dict = BackupPolicyPlanCollection.from_dict(backup_policy_plan_collection_model_json).__dict__ + backup_policy_plan_collection_model_dict = BackupPolicyPlanCollection.from_dict( + backup_policy_plan_collection_model_json + ).__dict__ backup_policy_plan_collection_model2 = BackupPolicyPlanCollection(**backup_policy_plan_collection_model_dict) # Verify the model instances are equivalent @@ -54387,12 +54834,18 @@ def test_backup_policy_plan_deletion_trigger_serialization(self): backup_policy_plan_deletion_trigger_model_json['delete_over_count'] = 20 # Construct a model instance of BackupPolicyPlanDeletionTrigger by calling from_dict on the json representation - backup_policy_plan_deletion_trigger_model = BackupPolicyPlanDeletionTrigger.from_dict(backup_policy_plan_deletion_trigger_model_json) + backup_policy_plan_deletion_trigger_model = BackupPolicyPlanDeletionTrigger.from_dict( + backup_policy_plan_deletion_trigger_model_json + ) assert backup_policy_plan_deletion_trigger_model != False # Construct a model instance of BackupPolicyPlanDeletionTrigger by calling from_dict on the json representation - backup_policy_plan_deletion_trigger_model_dict = BackupPolicyPlanDeletionTrigger.from_dict(backup_policy_plan_deletion_trigger_model_json).__dict__ - backup_policy_plan_deletion_trigger_model2 = BackupPolicyPlanDeletionTrigger(**backup_policy_plan_deletion_trigger_model_dict) + backup_policy_plan_deletion_trigger_model_dict = BackupPolicyPlanDeletionTrigger.from_dict( + backup_policy_plan_deletion_trigger_model_json + ).__dict__ + backup_policy_plan_deletion_trigger_model2 = BackupPolicyPlanDeletionTrigger( + **backup_policy_plan_deletion_trigger_model_dict + ) # Verify the model instances are equivalent assert backup_policy_plan_deletion_trigger_model == backup_policy_plan_deletion_trigger_model2 @@ -54418,19 +54871,30 @@ def test_backup_policy_plan_deletion_trigger_patch_serialization(self): backup_policy_plan_deletion_trigger_patch_model_json['delete_over_count'] = 1 # Construct a model instance of BackupPolicyPlanDeletionTriggerPatch by calling from_dict on the json representation - backup_policy_plan_deletion_trigger_patch_model = BackupPolicyPlanDeletionTriggerPatch.from_dict(backup_policy_plan_deletion_trigger_patch_model_json) + backup_policy_plan_deletion_trigger_patch_model = BackupPolicyPlanDeletionTriggerPatch.from_dict( + backup_policy_plan_deletion_trigger_patch_model_json + ) assert backup_policy_plan_deletion_trigger_patch_model != False # Construct a model instance of BackupPolicyPlanDeletionTriggerPatch by calling from_dict on the json representation - backup_policy_plan_deletion_trigger_patch_model_dict = BackupPolicyPlanDeletionTriggerPatch.from_dict(backup_policy_plan_deletion_trigger_patch_model_json).__dict__ - backup_policy_plan_deletion_trigger_patch_model2 = BackupPolicyPlanDeletionTriggerPatch(**backup_policy_plan_deletion_trigger_patch_model_dict) + backup_policy_plan_deletion_trigger_patch_model_dict = BackupPolicyPlanDeletionTriggerPatch.from_dict( + backup_policy_plan_deletion_trigger_patch_model_json + ).__dict__ + backup_policy_plan_deletion_trigger_patch_model2 = BackupPolicyPlanDeletionTriggerPatch( + **backup_policy_plan_deletion_trigger_patch_model_dict + ) # Verify the model instances are equivalent assert backup_policy_plan_deletion_trigger_patch_model == backup_policy_plan_deletion_trigger_patch_model2 # Convert model instance back to dict and verify no loss of data - backup_policy_plan_deletion_trigger_patch_model_json2 = backup_policy_plan_deletion_trigger_patch_model.to_dict() - assert backup_policy_plan_deletion_trigger_patch_model_json2 == backup_policy_plan_deletion_trigger_patch_model_json + backup_policy_plan_deletion_trigger_patch_model_json2 = ( + backup_policy_plan_deletion_trigger_patch_model.to_dict() + ) + assert ( + backup_policy_plan_deletion_trigger_patch_model_json2 + == backup_policy_plan_deletion_trigger_patch_model_json + ) class TestModel_BackupPolicyPlanDeletionTriggerPrototype: @@ -54449,19 +54913,32 @@ def test_backup_policy_plan_deletion_trigger_prototype_serialization(self): backup_policy_plan_deletion_trigger_prototype_model_json['delete_over_count'] = 20 # Construct a model instance of BackupPolicyPlanDeletionTriggerPrototype by calling from_dict on the json representation - backup_policy_plan_deletion_trigger_prototype_model = BackupPolicyPlanDeletionTriggerPrototype.from_dict(backup_policy_plan_deletion_trigger_prototype_model_json) + backup_policy_plan_deletion_trigger_prototype_model = BackupPolicyPlanDeletionTriggerPrototype.from_dict( + backup_policy_plan_deletion_trigger_prototype_model_json + ) assert backup_policy_plan_deletion_trigger_prototype_model != False # Construct a model instance of BackupPolicyPlanDeletionTriggerPrototype by calling from_dict on the json representation - backup_policy_plan_deletion_trigger_prototype_model_dict = BackupPolicyPlanDeletionTriggerPrototype.from_dict(backup_policy_plan_deletion_trigger_prototype_model_json).__dict__ - backup_policy_plan_deletion_trigger_prototype_model2 = BackupPolicyPlanDeletionTriggerPrototype(**backup_policy_plan_deletion_trigger_prototype_model_dict) + backup_policy_plan_deletion_trigger_prototype_model_dict = BackupPolicyPlanDeletionTriggerPrototype.from_dict( + backup_policy_plan_deletion_trigger_prototype_model_json + ).__dict__ + backup_policy_plan_deletion_trigger_prototype_model2 = BackupPolicyPlanDeletionTriggerPrototype( + **backup_policy_plan_deletion_trigger_prototype_model_dict + ) # Verify the model instances are equivalent - assert backup_policy_plan_deletion_trigger_prototype_model == backup_policy_plan_deletion_trigger_prototype_model2 + assert ( + backup_policy_plan_deletion_trigger_prototype_model == backup_policy_plan_deletion_trigger_prototype_model2 + ) # Convert model instance back to dict and verify no loss of data - backup_policy_plan_deletion_trigger_prototype_model_json2 = backup_policy_plan_deletion_trigger_prototype_model.to_dict() - assert backup_policy_plan_deletion_trigger_prototype_model_json2 == backup_policy_plan_deletion_trigger_prototype_model_json + backup_policy_plan_deletion_trigger_prototype_model_json2 = ( + backup_policy_plan_deletion_trigger_prototype_model.to_dict() + ) + assert ( + backup_policy_plan_deletion_trigger_prototype_model_json2 + == backup_policy_plan_deletion_trigger_prototype_model_json + ) class TestModel_BackupPolicyPlanPatch: @@ -54488,7 +54965,9 @@ def test_backup_policy_plan_patch_serialization(self): backup_policy_plan_deletion_trigger_patch_model['delete_over_count'] = 1 encryption_key_identity_model = {} # EncryptionKeyIdentityByCRN - encryption_key_identity_model['crn'] = 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + encryption_key_identity_model['crn'] = ( + 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + ) region_identity_model = {} # RegionIdentityByName region_identity_model['name'] = 'us-south' @@ -54507,14 +54986,18 @@ def test_backup_policy_plan_patch_serialization(self): backup_policy_plan_patch_model_json['cron_spec'] = '30 */2 * * 1-5' backup_policy_plan_patch_model_json['deletion_trigger'] = backup_policy_plan_deletion_trigger_patch_model backup_policy_plan_patch_model_json['name'] = 'my-policy-plan' - backup_policy_plan_patch_model_json['remote_region_policies'] = [backup_policy_plan_remote_region_policy_prototype_model] + backup_policy_plan_patch_model_json['remote_region_policies'] = [ + backup_policy_plan_remote_region_policy_prototype_model + ] # Construct a model instance of BackupPolicyPlanPatch by calling from_dict on the json representation backup_policy_plan_patch_model = BackupPolicyPlanPatch.from_dict(backup_policy_plan_patch_model_json) assert backup_policy_plan_patch_model != False # Construct a model instance of BackupPolicyPlanPatch by calling from_dict on the json representation - backup_policy_plan_patch_model_dict = BackupPolicyPlanPatch.from_dict(backup_policy_plan_patch_model_json).__dict__ + backup_policy_plan_patch_model_dict = BackupPolicyPlanPatch.from_dict( + backup_policy_plan_patch_model_json + ).__dict__ backup_policy_plan_patch_model2 = BackupPolicyPlanPatch(**backup_policy_plan_patch_model_dict) # Verify the model instances are equivalent @@ -54549,7 +55032,9 @@ def test_backup_policy_plan_prototype_serialization(self): backup_policy_plan_deletion_trigger_prototype_model['delete_over_count'] = 20 encryption_key_identity_model = {} # EncryptionKeyIdentityByCRN - encryption_key_identity_model['crn'] = 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + encryption_key_identity_model['crn'] = ( + 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + ) region_identity_model = {} # RegionIdentityByName region_identity_model['name'] = 'us-south' @@ -54566,16 +55051,24 @@ def test_backup_policy_plan_prototype_serialization(self): backup_policy_plan_prototype_model_json['clone_policy'] = backup_policy_plan_clone_policy_prototype_model backup_policy_plan_prototype_model_json['copy_user_tags'] = True backup_policy_plan_prototype_model_json['cron_spec'] = '30 */2 * * 1-5' - backup_policy_plan_prototype_model_json['deletion_trigger'] = backup_policy_plan_deletion_trigger_prototype_model + backup_policy_plan_prototype_model_json['deletion_trigger'] = ( + backup_policy_plan_deletion_trigger_prototype_model + ) backup_policy_plan_prototype_model_json['name'] = 'my-policy-plan' - backup_policy_plan_prototype_model_json['remote_region_policies'] = [backup_policy_plan_remote_region_policy_prototype_model] + backup_policy_plan_prototype_model_json['remote_region_policies'] = [ + backup_policy_plan_remote_region_policy_prototype_model + ] # Construct a model instance of BackupPolicyPlanPrototype by calling from_dict on the json representation - backup_policy_plan_prototype_model = BackupPolicyPlanPrototype.from_dict(backup_policy_plan_prototype_model_json) + backup_policy_plan_prototype_model = BackupPolicyPlanPrototype.from_dict( + backup_policy_plan_prototype_model_json + ) assert backup_policy_plan_prototype_model != False # Construct a model instance of BackupPolicyPlanPrototype by calling from_dict on the json representation - backup_policy_plan_prototype_model_dict = BackupPolicyPlanPrototype.from_dict(backup_policy_plan_prototype_model_json).__dict__ + backup_policy_plan_prototype_model_dict = BackupPolicyPlanPrototype.from_dict( + backup_policy_plan_prototype_model_json + ).__dict__ backup_policy_plan_prototype_model2 = BackupPolicyPlanPrototype(**backup_policy_plan_prototype_model_dict) # Verify the model instances are equivalent @@ -54611,18 +55104,24 @@ def test_backup_policy_plan_reference_serialization(self): # Construct a json representation of a BackupPolicyPlanReference model backup_policy_plan_reference_model_json = {} backup_policy_plan_reference_model_json['deleted'] = deleted_model - backup_policy_plan_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/backup_policies/r134-076191ba-49c2-4763-94fd-c70de73ee2e6/plans/r134-6da51cfe-6f7b-4638-a6ba-00e9c327b178' + backup_policy_plan_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/backup_policies/r134-076191ba-49c2-4763-94fd-c70de73ee2e6/plans/r134-6da51cfe-6f7b-4638-a6ba-00e9c327b178' + ) backup_policy_plan_reference_model_json['id'] = 'r134-6da51cfe-6f7b-4638-a6ba-00e9c327b178' backup_policy_plan_reference_model_json['name'] = 'my-policy-plan' backup_policy_plan_reference_model_json['remote'] = backup_policy_plan_remote_model backup_policy_plan_reference_model_json['resource_type'] = 'backup_policy_plan' # Construct a model instance of BackupPolicyPlanReference by calling from_dict on the json representation - backup_policy_plan_reference_model = BackupPolicyPlanReference.from_dict(backup_policy_plan_reference_model_json) + backup_policy_plan_reference_model = BackupPolicyPlanReference.from_dict( + backup_policy_plan_reference_model_json + ) assert backup_policy_plan_reference_model != False # Construct a model instance of BackupPolicyPlanReference by calling from_dict on the json representation - backup_policy_plan_reference_model_dict = BackupPolicyPlanReference.from_dict(backup_policy_plan_reference_model_json).__dict__ + backup_policy_plan_reference_model_dict = BackupPolicyPlanReference.from_dict( + backup_policy_plan_reference_model_json + ).__dict__ backup_policy_plan_reference_model2 = BackupPolicyPlanReference(**backup_policy_plan_reference_model_dict) # Verify the model instances are equivalent @@ -54658,7 +55157,9 @@ def test_backup_policy_plan_remote_serialization(self): assert backup_policy_plan_remote_model != False # Construct a model instance of BackupPolicyPlanRemote by calling from_dict on the json representation - backup_policy_plan_remote_model_dict = BackupPolicyPlanRemote.from_dict(backup_policy_plan_remote_model_json).__dict__ + backup_policy_plan_remote_model_dict = BackupPolicyPlanRemote.from_dict( + backup_policy_plan_remote_model_json + ).__dict__ backup_policy_plan_remote_model2 = BackupPolicyPlanRemote(**backup_policy_plan_remote_model_dict) # Verify the model instances are equivalent @@ -54682,7 +55183,9 @@ def test_backup_policy_plan_remote_region_policy_serialization(self): # Construct dict forms of any model objects needed in order to build this model. encryption_key_reference_model = {} # EncryptionKeyReference - encryption_key_reference_model['crn'] = 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + encryption_key_reference_model['crn'] = ( + 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + ) region_reference_model = {} # RegionReference region_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/regions/us-south' @@ -54695,12 +55198,18 @@ def test_backup_policy_plan_remote_region_policy_serialization(self): backup_policy_plan_remote_region_policy_model_json['region'] = region_reference_model # Construct a model instance of BackupPolicyPlanRemoteRegionPolicy by calling from_dict on the json representation - backup_policy_plan_remote_region_policy_model = BackupPolicyPlanRemoteRegionPolicy.from_dict(backup_policy_plan_remote_region_policy_model_json) + backup_policy_plan_remote_region_policy_model = BackupPolicyPlanRemoteRegionPolicy.from_dict( + backup_policy_plan_remote_region_policy_model_json + ) assert backup_policy_plan_remote_region_policy_model != False # Construct a model instance of BackupPolicyPlanRemoteRegionPolicy by calling from_dict on the json representation - backup_policy_plan_remote_region_policy_model_dict = BackupPolicyPlanRemoteRegionPolicy.from_dict(backup_policy_plan_remote_region_policy_model_json).__dict__ - backup_policy_plan_remote_region_policy_model2 = BackupPolicyPlanRemoteRegionPolicy(**backup_policy_plan_remote_region_policy_model_dict) + backup_policy_plan_remote_region_policy_model_dict = BackupPolicyPlanRemoteRegionPolicy.from_dict( + backup_policy_plan_remote_region_policy_model_json + ).__dict__ + backup_policy_plan_remote_region_policy_model2 = BackupPolicyPlanRemoteRegionPolicy( + **backup_policy_plan_remote_region_policy_model_dict + ) # Verify the model instances are equivalent assert backup_policy_plan_remote_region_policy_model == backup_policy_plan_remote_region_policy_model2 @@ -54723,7 +55232,9 @@ def test_backup_policy_plan_remote_region_policy_prototype_serialization(self): # Construct dict forms of any model objects needed in order to build this model. encryption_key_identity_model = {} # EncryptionKeyIdentityByCRN - encryption_key_identity_model['crn'] = 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + encryption_key_identity_model['crn'] = ( + 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + ) region_identity_model = {} # RegionIdentityByName region_identity_model['name'] = 'us-south' @@ -54735,19 +55246,35 @@ def test_backup_policy_plan_remote_region_policy_prototype_serialization(self): backup_policy_plan_remote_region_policy_prototype_model_json['region'] = region_identity_model # Construct a model instance of BackupPolicyPlanRemoteRegionPolicyPrototype by calling from_dict on the json representation - backup_policy_plan_remote_region_policy_prototype_model = BackupPolicyPlanRemoteRegionPolicyPrototype.from_dict(backup_policy_plan_remote_region_policy_prototype_model_json) + backup_policy_plan_remote_region_policy_prototype_model = BackupPolicyPlanRemoteRegionPolicyPrototype.from_dict( + backup_policy_plan_remote_region_policy_prototype_model_json + ) assert backup_policy_plan_remote_region_policy_prototype_model != False # Construct a model instance of BackupPolicyPlanRemoteRegionPolicyPrototype by calling from_dict on the json representation - backup_policy_plan_remote_region_policy_prototype_model_dict = BackupPolicyPlanRemoteRegionPolicyPrototype.from_dict(backup_policy_plan_remote_region_policy_prototype_model_json).__dict__ - backup_policy_plan_remote_region_policy_prototype_model2 = BackupPolicyPlanRemoteRegionPolicyPrototype(**backup_policy_plan_remote_region_policy_prototype_model_dict) + backup_policy_plan_remote_region_policy_prototype_model_dict = ( + BackupPolicyPlanRemoteRegionPolicyPrototype.from_dict( + backup_policy_plan_remote_region_policy_prototype_model_json + ).__dict__ + ) + backup_policy_plan_remote_region_policy_prototype_model2 = BackupPolicyPlanRemoteRegionPolicyPrototype( + **backup_policy_plan_remote_region_policy_prototype_model_dict + ) # Verify the model instances are equivalent - assert backup_policy_plan_remote_region_policy_prototype_model == backup_policy_plan_remote_region_policy_prototype_model2 + assert ( + backup_policy_plan_remote_region_policy_prototype_model + == backup_policy_plan_remote_region_policy_prototype_model2 + ) # Convert model instance back to dict and verify no loss of data - backup_policy_plan_remote_region_policy_prototype_model_json2 = backup_policy_plan_remote_region_policy_prototype_model.to_dict() - assert backup_policy_plan_remote_region_policy_prototype_model_json2 == backup_policy_plan_remote_region_policy_prototype_model_json + backup_policy_plan_remote_region_policy_prototype_model_json2 = ( + backup_policy_plan_remote_region_policy_prototype_model.to_dict() + ) + assert ( + backup_policy_plan_remote_region_policy_prototype_model_json2 + == backup_policy_plan_remote_region_policy_prototype_model_json + ) class TestModel_BareMetalServer: @@ -54767,7 +55294,9 @@ def test_bare_metal_server_serialization(self): bare_metal_server_boot_target_model = {} # BareMetalServerBootTargetBareMetalServerDiskReference bare_metal_server_boot_target_model['deleted'] = deleted_model - bare_metal_server_boot_target_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/bare_metal_servers/0717-aad10fd7-8a02-4f3e-97f3-b18bd82cf304/disks/0717-3744f199-6ccc-4698-8772-bb3937348c96' + bare_metal_server_boot_target_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/bare_metal_servers/0717-aad10fd7-8a02-4f3e-97f3-b18bd82cf304/disks/0717-3744f199-6ccc-4698-8772-bb3937348c96' + ) bare_metal_server_boot_target_model['id'] = '0717-3744f199-6ccc-4698-8772-bb3937348c96' bare_metal_server_boot_target_model['name'] = 'my-bare-metal-server-disk' bare_metal_server_boot_target_model['resource_type'] = 'bare_metal_server_disk' @@ -54780,7 +55309,9 @@ def test_bare_metal_server_serialization(self): bare_metal_server_disk_model = {} # BareMetalServerDisk bare_metal_server_disk_model['created_at'] = '2024-10-23T06:09:15Z' - bare_metal_server_disk_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/bare_metal_servers/0717-aad10fd7-8a02-4f3e-97f3-b18bd82cf304/disks/0717-3744f199-6ccc-4698-8772-bb3937348c96' + bare_metal_server_disk_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/bare_metal_servers/0717-aad10fd7-8a02-4f3e-97f3-b18bd82cf304/disks/0717-3744f199-6ccc-4698-8772-bb3937348c96' + ) bare_metal_server_disk_model['id'] = '0717-3744f199-6ccc-4698-8772-bb3937348c96' bare_metal_server_disk_model['interface_type'] = 'sata' bare_metal_server_disk_model['name'] = 'my-bare-metal-server-disk' @@ -54792,45 +55323,67 @@ def test_bare_metal_server_serialization(self): bare_metal_server_lifecycle_reason_model = {} # BareMetalServerLifecycleReason bare_metal_server_lifecycle_reason_model['code'] = 'resource_suspended_by_provider' - bare_metal_server_lifecycle_reason_model['message'] = 'The resource has been suspended. Contact IBM support with the CRN for next steps.' + bare_metal_server_lifecycle_reason_model['message'] = ( + 'The resource has been suspended. Contact IBM support with the CRN for next steps.' + ) bare_metal_server_lifecycle_reason_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#resource-suspension' reserved_ip_reference_model = {} # ReservedIPReference reserved_ip_reference_model['address'] = '10.0.1.5' reserved_ip_reference_model['deleted'] = deleted_model - reserved_ip_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + reserved_ip_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + ) reserved_ip_reference_model['id'] = '0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' reserved_ip_reference_model['name'] = 'my-reserved-ip' reserved_ip_reference_model['resource_type'] = 'subnet_reserved_ip' subnet_reference_model = {} # SubnetReference - subnet_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['deleted'] = deleted_model - subnet_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['id'] = '0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' subnet_reference_model['name'] = 'my-subnet' subnet_reference_model['resource_type'] = 'subnet' - virtual_network_interface_reference_attachment_context_model = {} # VirtualNetworkInterfaceReferenceAttachmentContext - virtual_network_interface_reference_attachment_context_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::virtual-network-interface:0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' - virtual_network_interface_reference_attachment_context_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/virtual_network_interfaces/0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + virtual_network_interface_reference_attachment_context_model = ( + {} + ) # VirtualNetworkInterfaceReferenceAttachmentContext + virtual_network_interface_reference_attachment_context_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::virtual-network-interface:0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + ) + virtual_network_interface_reference_attachment_context_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/virtual_network_interfaces/0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + ) virtual_network_interface_reference_attachment_context_model['id'] = '0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' virtual_network_interface_reference_attachment_context_model['name'] = 'my-virtual-network-interface' virtual_network_interface_reference_attachment_context_model['resource_type'] = 'virtual_network_interface' bare_metal_server_network_attachment_reference_model = {} # BareMetalServerNetworkAttachmentReference bare_metal_server_network_attachment_reference_model['deleted'] = deleted_model - bare_metal_server_network_attachment_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/bare_metal_servers/0717-aad10fd7-8a02-4f3e-97f3-b18bd82cf304/network_attachments/0717-da8c43ec-b6ca-4bd2-871e-72e288c66ee6' + bare_metal_server_network_attachment_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/bare_metal_servers/0717-aad10fd7-8a02-4f3e-97f3-b18bd82cf304/network_attachments/0717-da8c43ec-b6ca-4bd2-871e-72e288c66ee6' + ) bare_metal_server_network_attachment_reference_model['id'] = '0717-da8c43ec-b6ca-4bd2-871e-72e288c66ee6' bare_metal_server_network_attachment_reference_model['name'] = 'my-bare-metal-server-network-attachment' bare_metal_server_network_attachment_reference_model['primary_ip'] = reserved_ip_reference_model bare_metal_server_network_attachment_reference_model['resource_type'] = 'bare_metal_server_network_attachment' bare_metal_server_network_attachment_reference_model['subnet'] = subnet_reference_model - bare_metal_server_network_attachment_reference_model['virtual_network_interface'] = virtual_network_interface_reference_attachment_context_model + bare_metal_server_network_attachment_reference_model['virtual_network_interface'] = ( + virtual_network_interface_reference_attachment_context_model + ) - network_interface_bare_metal_server_context_reference_model = {} # NetworkInterfaceBareMetalServerContextReference + network_interface_bare_metal_server_context_reference_model = ( + {} + ) # NetworkInterfaceBareMetalServerContextReference network_interface_bare_metal_server_context_reference_model['deleted'] = deleted_model - network_interface_bare_metal_server_context_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/bare_metal_servers/0717-aad10fd7-8a02-4f3e-97f3-b18bd82cf304/network_interfaces/0717-da8c43ec-b6ca-4bd2-871e-72e288c66ee6' + network_interface_bare_metal_server_context_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/bare_metal_servers/0717-aad10fd7-8a02-4f3e-97f3-b18bd82cf304/network_interfaces/0717-da8c43ec-b6ca-4bd2-871e-72e288c66ee6' + ) network_interface_bare_metal_server_context_reference_model['id'] = '0717-da8c43ec-b6ca-4bd2-871e-72e288c66ee6' network_interface_bare_metal_server_context_reference_model['name'] = 'my-primary-network-interface' network_interface_bare_metal_server_context_reference_model['primary_ip'] = reserved_ip_reference_model @@ -54838,19 +55391,27 @@ def test_bare_metal_server_serialization(self): network_interface_bare_metal_server_context_reference_model['subnet'] = subnet_reference_model bare_metal_server_profile_reference_model = {} # BareMetalServerProfileReference - bare_metal_server_profile_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/bare_metal_server/profiles/bx2-metal-192x768' + bare_metal_server_profile_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/bare_metal_server/profiles/bx2-metal-192x768' + ) bare_metal_server_profile_reference_model['name'] = 'bx2-metal-192x768' bare_metal_server_profile_reference_model['resource_type'] = 'bare_metal_server_profile' resource_group_reference_model = {} # ResourceGroupReference - resource_group_reference_model['href'] = 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + resource_group_reference_model['href'] = ( + 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + ) resource_group_reference_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' resource_group_reference_model['name'] = 'Default' bare_metal_server_status_reason_model = {} # BareMetalServerStatusReason bare_metal_server_status_reason_model['code'] = 'cannot_start_capacity' - bare_metal_server_status_reason_model['message'] = 'The bare metal server cannot start as there is no more capacity in this\nzone for a bare metal server with the requested profile.' - bare_metal_server_status_reason_model['more_info'] = 'https://console.bluemix.net/docs/iaas/bare_metal_server.html' + bare_metal_server_status_reason_model['message'] = ( + 'The bare metal server cannot start as there is no more capacity in this\nzone for a bare metal server with the requested profile.' + ) + bare_metal_server_status_reason_model['more_info'] = ( + 'https://console.bluemix.net/docs/iaas/bare_metal_server.html' + ) bare_metal_server_trusted_platform_module_model = {} # BareMetalServerTrustedPlatformModule bare_metal_server_trusted_platform_module_model['enabled'] = False @@ -54858,9 +55419,13 @@ def test_bare_metal_server_serialization(self): bare_metal_server_trusted_platform_module_model['supported_modes'] = ['disabled', 'tpm_2'] vpc_reference_model = {} # VPCReference - vpc_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_model['deleted'] = deleted_model - vpc_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_model['id'] = 'r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' vpc_reference_model['name'] = 'my-vpc' vpc_reference_model['resource_type'] = 'vpc' @@ -54875,20 +55440,30 @@ def test_bare_metal_server_serialization(self): bare_metal_server_model_json['boot_target'] = bare_metal_server_boot_target_model bare_metal_server_model_json['cpu'] = bare_metal_server_cpu_model bare_metal_server_model_json['created_at'] = '2019-01-01T12:00:00Z' - bare_metal_server_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::bare-metal-server:0717-aad10fd7-8a02-4f3e-97f3-b18bd82cf304' + bare_metal_server_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::bare-metal-server:0717-aad10fd7-8a02-4f3e-97f3-b18bd82cf304' + ) bare_metal_server_model_json['disks'] = [bare_metal_server_disk_model] bare_metal_server_model_json['enable_secure_boot'] = False bare_metal_server_model_json['firmware'] = bare_metal_server_firmware_model - bare_metal_server_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/bare_metal_servers/0717-aad10fd7-8a02-4f3e-97f3-b18bd82cf304' + bare_metal_server_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/bare_metal_servers/0717-aad10fd7-8a02-4f3e-97f3-b18bd82cf304' + ) bare_metal_server_model_json['id'] = '0717-aad10fd7-8a02-4f3e-97f3-b18bd82cf304' bare_metal_server_model_json['lifecycle_reasons'] = [bare_metal_server_lifecycle_reason_model] bare_metal_server_model_json['lifecycle_state'] = 'stable' bare_metal_server_model_json['memory'] = 1536 bare_metal_server_model_json['name'] = 'my-bare-metal-server' bare_metal_server_model_json['network_attachments'] = [bare_metal_server_network_attachment_reference_model] - bare_metal_server_model_json['network_interfaces'] = [network_interface_bare_metal_server_context_reference_model] - bare_metal_server_model_json['primary_network_attachment'] = bare_metal_server_network_attachment_reference_model - bare_metal_server_model_json['primary_network_interface'] = network_interface_bare_metal_server_context_reference_model + bare_metal_server_model_json['network_interfaces'] = [ + network_interface_bare_metal_server_context_reference_model + ] + bare_metal_server_model_json['primary_network_attachment'] = ( + bare_metal_server_network_attachment_reference_model + ) + bare_metal_server_model_json['primary_network_interface'] = ( + network_interface_bare_metal_server_context_reference_model + ) bare_metal_server_model_json['profile'] = bare_metal_server_profile_reference_model bare_metal_server_model_json['resource_group'] = resource_group_reference_model bare_metal_server_model_json['resource_type'] = 'bare_metal_server' @@ -54964,7 +55539,9 @@ def test_bare_metal_server_collection_serialization(self): bare_metal_server_boot_target_model = {} # BareMetalServerBootTargetBareMetalServerDiskReference bare_metal_server_boot_target_model['deleted'] = deleted_model - bare_metal_server_boot_target_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/bare_metal_servers/0717-aad10fd7-8a02-4f3e-97f3-b18bd82cf304/disks/0717-3744f199-6ccc-4698-8772-bb3937348c96' + bare_metal_server_boot_target_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/bare_metal_servers/0717-aad10fd7-8a02-4f3e-97f3-b18bd82cf304/disks/0717-3744f199-6ccc-4698-8772-bb3937348c96' + ) bare_metal_server_boot_target_model['id'] = '0717-3744f199-6ccc-4698-8772-bb3937348c96' bare_metal_server_boot_target_model['name'] = 'my-bare-metal-server-disk' bare_metal_server_boot_target_model['resource_type'] = 'bare_metal_server_disk' @@ -54977,7 +55554,9 @@ def test_bare_metal_server_collection_serialization(self): bare_metal_server_disk_model = {} # BareMetalServerDisk bare_metal_server_disk_model['created_at'] = '2024-10-23T06:09:15Z' - bare_metal_server_disk_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/bare_metal_servers/0717-aad10fd7-8a02-4f3e-97f3-b18bd82cf304/disks/0717-3744f199-6ccc-4698-8772-bb3937348c96' + bare_metal_server_disk_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/bare_metal_servers/0717-aad10fd7-8a02-4f3e-97f3-b18bd82cf304/disks/0717-3744f199-6ccc-4698-8772-bb3937348c96' + ) bare_metal_server_disk_model['id'] = '0717-3744f199-6ccc-4698-8772-bb3937348c96' bare_metal_server_disk_model['interface_type'] = 'sata' bare_metal_server_disk_model['name'] = 'my-bare-metal-server-disk' @@ -54989,45 +55568,67 @@ def test_bare_metal_server_collection_serialization(self): bare_metal_server_lifecycle_reason_model = {} # BareMetalServerLifecycleReason bare_metal_server_lifecycle_reason_model['code'] = 'resource_suspended_by_provider' - bare_metal_server_lifecycle_reason_model['message'] = 'The resource has been suspended. Contact IBM support with the CRN for next steps.' + bare_metal_server_lifecycle_reason_model['message'] = ( + 'The resource has been suspended. Contact IBM support with the CRN for next steps.' + ) bare_metal_server_lifecycle_reason_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#resource-suspension' reserved_ip_reference_model = {} # ReservedIPReference reserved_ip_reference_model['address'] = '10.0.1.5' reserved_ip_reference_model['deleted'] = deleted_model - reserved_ip_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + reserved_ip_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + ) reserved_ip_reference_model['id'] = '0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' reserved_ip_reference_model['name'] = 'my-reserved-ip' reserved_ip_reference_model['resource_type'] = 'subnet_reserved_ip' subnet_reference_model = {} # SubnetReference - subnet_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['deleted'] = deleted_model - subnet_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['id'] = '0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' subnet_reference_model['name'] = 'my-subnet' subnet_reference_model['resource_type'] = 'subnet' - virtual_network_interface_reference_attachment_context_model = {} # VirtualNetworkInterfaceReferenceAttachmentContext - virtual_network_interface_reference_attachment_context_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::virtual-network-interface:0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' - virtual_network_interface_reference_attachment_context_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/virtual_network_interfaces/0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + virtual_network_interface_reference_attachment_context_model = ( + {} + ) # VirtualNetworkInterfaceReferenceAttachmentContext + virtual_network_interface_reference_attachment_context_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::virtual-network-interface:0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + ) + virtual_network_interface_reference_attachment_context_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/virtual_network_interfaces/0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + ) virtual_network_interface_reference_attachment_context_model['id'] = '0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' virtual_network_interface_reference_attachment_context_model['name'] = 'my-virtual-network-interface' virtual_network_interface_reference_attachment_context_model['resource_type'] = 'virtual_network_interface' bare_metal_server_network_attachment_reference_model = {} # BareMetalServerNetworkAttachmentReference bare_metal_server_network_attachment_reference_model['deleted'] = deleted_model - bare_metal_server_network_attachment_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/bare_metal_servers/0717-aad10fd7-8a02-4f3e-97f3-b18bd82cf304/network_attachments/0717-da8c43ec-b6ca-4bd2-871e-72e288c66ee6' + bare_metal_server_network_attachment_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/bare_metal_servers/0717-aad10fd7-8a02-4f3e-97f3-b18bd82cf304/network_attachments/0717-da8c43ec-b6ca-4bd2-871e-72e288c66ee6' + ) bare_metal_server_network_attachment_reference_model['id'] = '0717-da8c43ec-b6ca-4bd2-871e-72e288c66ee6' bare_metal_server_network_attachment_reference_model['name'] = 'my-bare-metal-server-network-attachment' bare_metal_server_network_attachment_reference_model['primary_ip'] = reserved_ip_reference_model bare_metal_server_network_attachment_reference_model['resource_type'] = 'bare_metal_server_network_attachment' bare_metal_server_network_attachment_reference_model['subnet'] = subnet_reference_model - bare_metal_server_network_attachment_reference_model['virtual_network_interface'] = virtual_network_interface_reference_attachment_context_model + bare_metal_server_network_attachment_reference_model['virtual_network_interface'] = ( + virtual_network_interface_reference_attachment_context_model + ) - network_interface_bare_metal_server_context_reference_model = {} # NetworkInterfaceBareMetalServerContextReference + network_interface_bare_metal_server_context_reference_model = ( + {} + ) # NetworkInterfaceBareMetalServerContextReference network_interface_bare_metal_server_context_reference_model['deleted'] = deleted_model - network_interface_bare_metal_server_context_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/bare_metal_servers/0717-aad10fd7-8a02-4f3e-97f3-b18bd82cf304/network_interfaces/0717-da8c43ec-b6ca-4bd2-871e-72e288c66ee6' + network_interface_bare_metal_server_context_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/bare_metal_servers/0717-aad10fd7-8a02-4f3e-97f3-b18bd82cf304/network_interfaces/0717-da8c43ec-b6ca-4bd2-871e-72e288c66ee6' + ) network_interface_bare_metal_server_context_reference_model['id'] = '0717-da8c43ec-b6ca-4bd2-871e-72e288c66ee6' network_interface_bare_metal_server_context_reference_model['name'] = 'my-primary-network-interface' network_interface_bare_metal_server_context_reference_model['primary_ip'] = reserved_ip_reference_model @@ -55035,19 +55636,27 @@ def test_bare_metal_server_collection_serialization(self): network_interface_bare_metal_server_context_reference_model['subnet'] = subnet_reference_model bare_metal_server_profile_reference_model = {} # BareMetalServerProfileReference - bare_metal_server_profile_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/bare_metal_server/profiles/bx2-metal-192x768' + bare_metal_server_profile_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/bare_metal_server/profiles/bx2-metal-192x768' + ) bare_metal_server_profile_reference_model['name'] = 'bx2-metal-192x768' bare_metal_server_profile_reference_model['resource_type'] = 'bare_metal_server_profile' resource_group_reference_model = {} # ResourceGroupReference - resource_group_reference_model['href'] = 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + resource_group_reference_model['href'] = ( + 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + ) resource_group_reference_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' resource_group_reference_model['name'] = 'Default' bare_metal_server_status_reason_model = {} # BareMetalServerStatusReason bare_metal_server_status_reason_model['code'] = 'cannot_start_capacity' - bare_metal_server_status_reason_model['message'] = 'The bare metal server cannot start as there is no more capacity in this\nzone for a bare metal server with the requested profile.' - bare_metal_server_status_reason_model['more_info'] = 'https://console.bluemix.net/docs/iaas/bare_metal_server.html' + bare_metal_server_status_reason_model['message'] = ( + 'The bare metal server cannot start as there is no more capacity in this\nzone for a bare metal server with the requested profile.' + ) + bare_metal_server_status_reason_model['more_info'] = ( + 'https://console.bluemix.net/docs/iaas/bare_metal_server.html' + ) bare_metal_server_trusted_platform_module_model = {} # BareMetalServerTrustedPlatformModule bare_metal_server_trusted_platform_module_model['enabled'] = False @@ -55055,9 +55664,13 @@ def test_bare_metal_server_collection_serialization(self): bare_metal_server_trusted_platform_module_model['supported_modes'] = ['disabled', 'tpm_2'] vpc_reference_model = {} # VPCReference - vpc_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_model['deleted'] = deleted_model - vpc_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_model['id'] = 'r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' vpc_reference_model['name'] = 'my-vpc' vpc_reference_model['resource_type'] = 'vpc' @@ -55071,11 +55684,15 @@ def test_bare_metal_server_collection_serialization(self): bare_metal_server_model['boot_target'] = bare_metal_server_boot_target_model bare_metal_server_model['cpu'] = bare_metal_server_cpu_model bare_metal_server_model['created_at'] = '2024-10-22T06:09:15Z' - bare_metal_server_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::bare-metal-server:0717-aad10fd7-8a02-4f3e-97f3-b18bd82cf304' + bare_metal_server_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::bare-metal-server:0717-aad10fd7-8a02-4f3e-97f3-b18bd82cf304' + ) bare_metal_server_model['disks'] = [bare_metal_server_disk_model] bare_metal_server_model['enable_secure_boot'] = False bare_metal_server_model['firmware'] = bare_metal_server_firmware_model - bare_metal_server_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/bare_metal_servers/0717-aad10fd7-8a02-4f3e-97f3-b18bd82cf304' + bare_metal_server_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/bare_metal_servers/0717-aad10fd7-8a02-4f3e-97f3-b18bd82cf304' + ) bare_metal_server_model['id'] = '0717-aad10fd7-8a02-4f3e-97f3-b18bd82cf304' bare_metal_server_model['lifecycle_reasons'] = [bare_metal_server_lifecycle_reason_model] bare_metal_server_model['lifecycle_state'] = 'stable' @@ -55084,7 +55701,9 @@ def test_bare_metal_server_collection_serialization(self): bare_metal_server_model['network_attachments'] = [bare_metal_server_network_attachment_reference_model] bare_metal_server_model['network_interfaces'] = [network_interface_bare_metal_server_context_reference_model] bare_metal_server_model['primary_network_attachment'] = bare_metal_server_network_attachment_reference_model - bare_metal_server_model['primary_network_interface'] = network_interface_bare_metal_server_context_reference_model + bare_metal_server_model['primary_network_interface'] = ( + network_interface_bare_metal_server_context_reference_model + ) bare_metal_server_model['profile'] = bare_metal_server_profile_reference_model bare_metal_server_model['resource_group'] = resource_group_reference_model bare_metal_server_model['resource_type'] = 'bare_metal_server' @@ -55106,11 +55725,15 @@ def test_bare_metal_server_collection_serialization(self): bare_metal_server_collection_model_json['total_count'] = 132 # Construct a model instance of BareMetalServerCollection by calling from_dict on the json representation - bare_metal_server_collection_model = BareMetalServerCollection.from_dict(bare_metal_server_collection_model_json) + bare_metal_server_collection_model = BareMetalServerCollection.from_dict( + bare_metal_server_collection_model_json + ) assert bare_metal_server_collection_model != False # Construct a model instance of BareMetalServerCollection by calling from_dict on the json representation - bare_metal_server_collection_model_dict = BareMetalServerCollection.from_dict(bare_metal_server_collection_model_json).__dict__ + bare_metal_server_collection_model_dict = BareMetalServerCollection.from_dict( + bare_metal_server_collection_model_json + ).__dict__ bare_metal_server_collection_model2 = BareMetalServerCollection(**bare_metal_server_collection_model_dict) # Verify the model instances are equivalent @@ -55133,20 +55756,30 @@ def test_bare_metal_server_console_access_token_serialization(self): # Construct a json representation of a BareMetalServerConsoleAccessToken model bare_metal_server_console_access_token_model_json = {} - bare_metal_server_console_access_token_model_json['access_token'] = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhY2NvdW50IjoiYWEyNDMyYjFmYTRkNGFjZTg5MWU5YjgwZmMxMDRlMzQiLCJzZWNyZXQiOiJRVzRnWlhoaGJYQnNaU0J6WldOeVpYUUsiLCJleHAiOjE3MjYwNzU1OTR9.UFDVzzGJ54Go9Z4jgyPSLG49zNx-AjHTQrJA6ee8KLI' + bare_metal_server_console_access_token_model_json['access_token'] = ( + 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhY2NvdW50IjoiYWEyNDMyYjFmYTRkNGFjZTg5MWU5YjgwZmMxMDRlMzQiLCJzZWNyZXQiOiJRVzRnWlhoaGJYQnNaU0J6WldOeVpYUUsiLCJleHAiOjE3MjYwNzU1OTR9.UFDVzzGJ54Go9Z4jgyPSLG49zNx-AjHTQrJA6ee8KLI' + ) bare_metal_server_console_access_token_model_json['console_type'] = 'serial' bare_metal_server_console_access_token_model_json['created_at'] = '2020-07-27T21:50:14Z' bare_metal_server_console_access_token_model_json['expires_at'] = '2020-07-27T21:51:14Z' bare_metal_server_console_access_token_model_json['force'] = False - bare_metal_server_console_access_token_model_json['href'] = 'wss://us-south.iaas.cloud.ibm.com/v1/bare_metal_servers/0717-aad10fd7-8a02-4f3e-97f3-b18bd82cf304/console?access_token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhY2NvdW50IjoiYWEyNDMyYjFmYTRkNGFjZTg5MWU5YjgwZmMxMDRlMzQiLCJzZWNyZXQiOiJRVzRnWlhoaGJYQnNaU0J6WldOeVpYUUsiLCJleHAiOjE3MjYwNzU1OTR9.UFDVzzGJ54Go9Z4jgyPSLG49zNx-AjHTQrJA6ee8KLI' + bare_metal_server_console_access_token_model_json['href'] = ( + 'wss://us-south.iaas.cloud.ibm.com/v1/bare_metal_servers/0717-aad10fd7-8a02-4f3e-97f3-b18bd82cf304/console?access_token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhY2NvdW50IjoiYWEyNDMyYjFmYTRkNGFjZTg5MWU5YjgwZmMxMDRlMzQiLCJzZWNyZXQiOiJRVzRnWlhoaGJYQnNaU0J6WldOeVpYUUsiLCJleHAiOjE3MjYwNzU1OTR9.UFDVzzGJ54Go9Z4jgyPSLG49zNx-AjHTQrJA6ee8KLI' + ) # Construct a model instance of BareMetalServerConsoleAccessToken by calling from_dict on the json representation - bare_metal_server_console_access_token_model = BareMetalServerConsoleAccessToken.from_dict(bare_metal_server_console_access_token_model_json) + bare_metal_server_console_access_token_model = BareMetalServerConsoleAccessToken.from_dict( + bare_metal_server_console_access_token_model_json + ) assert bare_metal_server_console_access_token_model != False # Construct a model instance of BareMetalServerConsoleAccessToken by calling from_dict on the json representation - bare_metal_server_console_access_token_model_dict = BareMetalServerConsoleAccessToken.from_dict(bare_metal_server_console_access_token_model_json).__dict__ - bare_metal_server_console_access_token_model2 = BareMetalServerConsoleAccessToken(**bare_metal_server_console_access_token_model_dict) + bare_metal_server_console_access_token_model_dict = BareMetalServerConsoleAccessToken.from_dict( + bare_metal_server_console_access_token_model_json + ).__dict__ + bare_metal_server_console_access_token_model2 = BareMetalServerConsoleAccessToken( + **bare_metal_server_console_access_token_model_dict + ) # Verify the model instances are equivalent assert bare_metal_server_console_access_token_model == bare_metal_server_console_access_token_model2 @@ -55169,7 +55802,9 @@ def test_bare_metal_server_disk_serialization(self): # Construct a json representation of a BareMetalServerDisk model bare_metal_server_disk_model_json = {} bare_metal_server_disk_model_json['created_at'] = '2019-01-01T12:00:00Z' - bare_metal_server_disk_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/bare_metal_servers/0717-aad10fd7-8a02-4f3e-97f3-b18bd82cf304/disks/0717-3744f199-6ccc-4698-8772-bb3937348c96' + bare_metal_server_disk_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/bare_metal_servers/0717-aad10fd7-8a02-4f3e-97f3-b18bd82cf304/disks/0717-3744f199-6ccc-4698-8772-bb3937348c96' + ) bare_metal_server_disk_model_json['id'] = '10c02d81-0ecb-4dc5-897d-28392913b81e' bare_metal_server_disk_model_json['interface_type'] = 'fcp' bare_metal_server_disk_model_json['name'] = 'my-bare-metal-server-disk' @@ -55206,7 +55841,9 @@ def test_bare_metal_server_disk_collection_serialization(self): bare_metal_server_disk_model = {} # BareMetalServerDisk bare_metal_server_disk_model['created_at'] = '2024-10-23T06:09:15Z' - bare_metal_server_disk_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/bare_metal_servers/0717-aad10fd7-8a02-4f3e-97f3-b18bd82cf304/disks/0717-3744f199-6ccc-4698-8772-bb3937348c96' + bare_metal_server_disk_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/bare_metal_servers/0717-aad10fd7-8a02-4f3e-97f3-b18bd82cf304/disks/0717-3744f199-6ccc-4698-8772-bb3937348c96' + ) bare_metal_server_disk_model['id'] = '0717-3744f199-6ccc-4698-8772-bb3937348c96' bare_metal_server_disk_model['interface_type'] = 'sata' bare_metal_server_disk_model['name'] = 'my-bare-metal-server-disk' @@ -55218,12 +55855,18 @@ def test_bare_metal_server_disk_collection_serialization(self): bare_metal_server_disk_collection_model_json['disks'] = [bare_metal_server_disk_model] # Construct a model instance of BareMetalServerDiskCollection by calling from_dict on the json representation - bare_metal_server_disk_collection_model = BareMetalServerDiskCollection.from_dict(bare_metal_server_disk_collection_model_json) + bare_metal_server_disk_collection_model = BareMetalServerDiskCollection.from_dict( + bare_metal_server_disk_collection_model_json + ) assert bare_metal_server_disk_collection_model != False # Construct a model instance of BareMetalServerDiskCollection by calling from_dict on the json representation - bare_metal_server_disk_collection_model_dict = BareMetalServerDiskCollection.from_dict(bare_metal_server_disk_collection_model_json).__dict__ - bare_metal_server_disk_collection_model2 = BareMetalServerDiskCollection(**bare_metal_server_disk_collection_model_dict) + bare_metal_server_disk_collection_model_dict = BareMetalServerDiskCollection.from_dict( + bare_metal_server_disk_collection_model_json + ).__dict__ + bare_metal_server_disk_collection_model2 = BareMetalServerDiskCollection( + **bare_metal_server_disk_collection_model_dict + ) # Verify the model instances are equivalent assert bare_metal_server_disk_collection_model == bare_metal_server_disk_collection_model2 @@ -55252,7 +55895,9 @@ def test_bare_metal_server_disk_patch_serialization(self): assert bare_metal_server_disk_patch_model != False # Construct a model instance of BareMetalServerDiskPatch by calling from_dict on the json representation - bare_metal_server_disk_patch_model_dict = BareMetalServerDiskPatch.from_dict(bare_metal_server_disk_patch_model_json).__dict__ + bare_metal_server_disk_patch_model_dict = BareMetalServerDiskPatch.from_dict( + bare_metal_server_disk_patch_model_json + ).__dict__ bare_metal_server_disk_patch_model2 = BareMetalServerDiskPatch(**bare_metal_server_disk_patch_model_dict) # Verify the model instances are equivalent @@ -55282,7 +55927,9 @@ def test_bare_metal_server_firmware_serialization(self): assert bare_metal_server_firmware_model != False # Construct a model instance of BareMetalServerFirmware by calling from_dict on the json representation - bare_metal_server_firmware_model_dict = BareMetalServerFirmware.from_dict(bare_metal_server_firmware_model_json).__dict__ + bare_metal_server_firmware_model_dict = BareMetalServerFirmware.from_dict( + bare_metal_server_firmware_model_json + ).__dict__ bare_metal_server_firmware_model2 = BareMetalServerFirmware(**bare_metal_server_firmware_model_dict) # Verify the model instances are equivalent @@ -55321,24 +55968,36 @@ def test_bare_metal_server_initialization_serialization(self): image_remote_model['region'] = region_reference_model image_reference_model = {} # ImageReference - image_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::image:r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8' + image_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::image:r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8' + ) image_reference_model['deleted'] = deleted_model - image_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/images/r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8' + image_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/images/r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8' + ) image_reference_model['id'] = 'r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8' image_reference_model['name'] = 'my-image' image_reference_model['remote'] = image_remote_model image_reference_model['resource_type'] = 'image' key_reference_model = {} # KeyReference - key_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::key:r006-82679077-ac3b-4c10-be16-63e9c21f0f45' + key_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::key:r006-82679077-ac3b-4c10-be16-63e9c21f0f45' + ) key_reference_model['deleted'] = deleted_model key_reference_model['fingerprint'] = 'SHA256:RJ+YWs2kupwFGiJuLqY85twmcdLOUcjIc9cA6IR8n8E' - key_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/keys/r006-82679077-ac3b-4c10-be16-63e9c21f0f45' + key_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/keys/r006-82679077-ac3b-4c10-be16-63e9c21f0f45' + ) key_reference_model['id'] = 'r006-82679077-ac3b-4c10-be16-63e9c21f0f45' key_reference_model['name'] = 'my-key-1' - bare_metal_server_initialization_user_account_model = {} # BareMetalServerInitializationUserAccountBareMetalServerInitializationHostUserAccount - bare_metal_server_initialization_user_account_model['encrypted_password'] = 'qQ+/YEApnl1ZtEgIrfprzb065307thTkzlnLqL5ICpesdbBN03dyCQ==' + bare_metal_server_initialization_user_account_model = ( + {} + ) # BareMetalServerInitializationUserAccountBareMetalServerInitializationHostUserAccount + bare_metal_server_initialization_user_account_model['encrypted_password'] = ( + 'qQ+/YEApnl1ZtEgIrfprzb065307thTkzlnLqL5ICpesdbBN03dyCQ==' + ) bare_metal_server_initialization_user_account_model['encryption_key'] = key_reference_model bare_metal_server_initialization_user_account_model['resource_type'] = 'host_user_account' bare_metal_server_initialization_user_account_model['username'] = 'root' @@ -55347,15 +56006,23 @@ def test_bare_metal_server_initialization_serialization(self): bare_metal_server_initialization_model_json = {} bare_metal_server_initialization_model_json['image'] = image_reference_model bare_metal_server_initialization_model_json['keys'] = [key_reference_model] - bare_metal_server_initialization_model_json['user_accounts'] = [bare_metal_server_initialization_user_account_model] + bare_metal_server_initialization_model_json['user_accounts'] = [ + bare_metal_server_initialization_user_account_model + ] # Construct a model instance of BareMetalServerInitialization by calling from_dict on the json representation - bare_metal_server_initialization_model = BareMetalServerInitialization.from_dict(bare_metal_server_initialization_model_json) + bare_metal_server_initialization_model = BareMetalServerInitialization.from_dict( + bare_metal_server_initialization_model_json + ) assert bare_metal_server_initialization_model != False # Construct a model instance of BareMetalServerInitialization by calling from_dict on the json representation - bare_metal_server_initialization_model_dict = BareMetalServerInitialization.from_dict(bare_metal_server_initialization_model_json).__dict__ - bare_metal_server_initialization_model2 = BareMetalServerInitialization(**bare_metal_server_initialization_model_dict) + bare_metal_server_initialization_model_dict = BareMetalServerInitialization.from_dict( + bare_metal_server_initialization_model_json + ).__dict__ + bare_metal_server_initialization_model2 = BareMetalServerInitialization( + **bare_metal_server_initialization_model_dict + ) # Verify the model instances are equivalent assert bare_metal_server_initialization_model == bare_metal_server_initialization_model2 @@ -55390,19 +56057,30 @@ def test_bare_metal_server_initialization_prototype_serialization(self): bare_metal_server_initialization_prototype_model_json['user_data'] = 'testString' # Construct a model instance of BareMetalServerInitializationPrototype by calling from_dict on the json representation - bare_metal_server_initialization_prototype_model = BareMetalServerInitializationPrototype.from_dict(bare_metal_server_initialization_prototype_model_json) + bare_metal_server_initialization_prototype_model = BareMetalServerInitializationPrototype.from_dict( + bare_metal_server_initialization_prototype_model_json + ) assert bare_metal_server_initialization_prototype_model != False # Construct a model instance of BareMetalServerInitializationPrototype by calling from_dict on the json representation - bare_metal_server_initialization_prototype_model_dict = BareMetalServerInitializationPrototype.from_dict(bare_metal_server_initialization_prototype_model_json).__dict__ - bare_metal_server_initialization_prototype_model2 = BareMetalServerInitializationPrototype(**bare_metal_server_initialization_prototype_model_dict) + bare_metal_server_initialization_prototype_model_dict = BareMetalServerInitializationPrototype.from_dict( + bare_metal_server_initialization_prototype_model_json + ).__dict__ + bare_metal_server_initialization_prototype_model2 = BareMetalServerInitializationPrototype( + **bare_metal_server_initialization_prototype_model_dict + ) # Verify the model instances are equivalent assert bare_metal_server_initialization_prototype_model == bare_metal_server_initialization_prototype_model2 # Convert model instance back to dict and verify no loss of data - bare_metal_server_initialization_prototype_model_json2 = bare_metal_server_initialization_prototype_model.to_dict() - assert bare_metal_server_initialization_prototype_model_json2 == bare_metal_server_initialization_prototype_model_json + bare_metal_server_initialization_prototype_model_json2 = ( + bare_metal_server_initialization_prototype_model.to_dict() + ) + assert ( + bare_metal_server_initialization_prototype_model_json2 + == bare_metal_server_initialization_prototype_model_json + ) class TestModel_BareMetalServerLifecycleReason: @@ -55418,16 +56096,26 @@ def test_bare_metal_server_lifecycle_reason_serialization(self): # Construct a json representation of a BareMetalServerLifecycleReason model bare_metal_server_lifecycle_reason_model_json = {} bare_metal_server_lifecycle_reason_model_json['code'] = 'resource_suspended_by_provider' - bare_metal_server_lifecycle_reason_model_json['message'] = 'The resource has been suspended. Contact IBM support with the CRN for next steps.' - bare_metal_server_lifecycle_reason_model_json['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#resource-suspension' + bare_metal_server_lifecycle_reason_model_json['message'] = ( + 'The resource has been suspended. Contact IBM support with the CRN for next steps.' + ) + bare_metal_server_lifecycle_reason_model_json['more_info'] = ( + 'https://cloud.ibm.com/apidocs/vpc#resource-suspension' + ) # Construct a model instance of BareMetalServerLifecycleReason by calling from_dict on the json representation - bare_metal_server_lifecycle_reason_model = BareMetalServerLifecycleReason.from_dict(bare_metal_server_lifecycle_reason_model_json) + bare_metal_server_lifecycle_reason_model = BareMetalServerLifecycleReason.from_dict( + bare_metal_server_lifecycle_reason_model_json + ) assert bare_metal_server_lifecycle_reason_model != False # Construct a model instance of BareMetalServerLifecycleReason by calling from_dict on the json representation - bare_metal_server_lifecycle_reason_model_dict = BareMetalServerLifecycleReason.from_dict(bare_metal_server_lifecycle_reason_model_json).__dict__ - bare_metal_server_lifecycle_reason_model2 = BareMetalServerLifecycleReason(**bare_metal_server_lifecycle_reason_model_dict) + bare_metal_server_lifecycle_reason_model_dict = BareMetalServerLifecycleReason.from_dict( + bare_metal_server_lifecycle_reason_model_json + ).__dict__ + bare_metal_server_lifecycle_reason_model2 = BareMetalServerLifecycleReason( + **bare_metal_server_lifecycle_reason_model_dict + ) # Verify the model instances are equivalent assert bare_metal_server_lifecycle_reason_model == bare_metal_server_lifecycle_reason_model2 @@ -55450,7 +56138,9 @@ def test_bare_metal_server_network_attachment_collection_serialization(self): # Construct dict forms of any model objects needed in order to build this model. page_link_model = {} # PageLink - page_link_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/bare_metal_servers/0717-aad10fd7-8a02-4f3e-97f3-b18bd82cf304/network_attachments/0717-da8c43ec-b6ca-4bd2-871e-72e288c66ee6?limit=20' + page_link_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/bare_metal_servers/0717-aad10fd7-8a02-4f3e-97f3-b18bd82cf304/network_attachments/0717-da8c43ec-b6ca-4bd2-871e-72e288c66ee6?limit=20' + ) deleted_model = {} # Deleted deleted_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#deleted-resources' @@ -55458,29 +56148,43 @@ def test_bare_metal_server_network_attachment_collection_serialization(self): reserved_ip_reference_model = {} # ReservedIPReference reserved_ip_reference_model['address'] = '10.0.1.5' reserved_ip_reference_model['deleted'] = deleted_model - reserved_ip_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + reserved_ip_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + ) reserved_ip_reference_model['id'] = '0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' reserved_ip_reference_model['name'] = 'my-reserved-ip' reserved_ip_reference_model['resource_type'] = 'subnet_reserved_ip' subnet_reference_model = {} # SubnetReference - subnet_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['deleted'] = deleted_model - subnet_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['id'] = '0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' subnet_reference_model['name'] = 'my-subnet' subnet_reference_model['resource_type'] = 'subnet' - virtual_network_interface_reference_attachment_context_model = {} # VirtualNetworkInterfaceReferenceAttachmentContext - virtual_network_interface_reference_attachment_context_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::virtual-network-interface:0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' - virtual_network_interface_reference_attachment_context_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/virtual_network_interfaces/0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + virtual_network_interface_reference_attachment_context_model = ( + {} + ) # VirtualNetworkInterfaceReferenceAttachmentContext + virtual_network_interface_reference_attachment_context_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::virtual-network-interface:0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + ) + virtual_network_interface_reference_attachment_context_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/virtual_network_interfaces/0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + ) virtual_network_interface_reference_attachment_context_model['id'] = '0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' virtual_network_interface_reference_attachment_context_model['name'] = 'my-virtual-network-interface' virtual_network_interface_reference_attachment_context_model['resource_type'] = 'virtual_network_interface' bare_metal_server_network_attachment_model = {} # BareMetalServerNetworkAttachmentByVLAN bare_metal_server_network_attachment_model['created_at'] = '2024-10-23T03:42:32.993000Z' - bare_metal_server_network_attachment_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/bare_metal_servers/0717-aad10fd7-8a02-4f3e-97f3-b18bd82cf304/network_attachments/0717-da8c43ec-b6ca-4bd2-871e-72e288c66ee6' + bare_metal_server_network_attachment_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/bare_metal_servers/0717-aad10fd7-8a02-4f3e-97f3-b18bd82cf304/network_attachments/0717-da8c43ec-b6ca-4bd2-871e-72e288c66ee6' + ) bare_metal_server_network_attachment_model['id'] = '0717-da8c43ec-b6ca-4bd2-871e-72e288c66ee6' bare_metal_server_network_attachment_model['lifecycle_state'] = 'stable' bare_metal_server_network_attachment_model['name'] = 'my-bare-metal-server-network-attachment' @@ -55489,7 +56193,9 @@ def test_bare_metal_server_network_attachment_collection_serialization(self): bare_metal_server_network_attachment_model['resource_type'] = 'bare_metal_server_network_attachment' bare_metal_server_network_attachment_model['subnet'] = subnet_reference_model bare_metal_server_network_attachment_model['type'] = 'primary' - bare_metal_server_network_attachment_model['virtual_network_interface'] = virtual_network_interface_reference_attachment_context_model + bare_metal_server_network_attachment_model['virtual_network_interface'] = ( + virtual_network_interface_reference_attachment_context_model + ) bare_metal_server_network_attachment_model['allow_to_float'] = False bare_metal_server_network_attachment_model['interface_type'] = 'vlan' bare_metal_server_network_attachment_model['vlan'] = 4 @@ -55498,24 +56204,42 @@ def test_bare_metal_server_network_attachment_collection_serialization(self): bare_metal_server_network_attachment_collection_model_json = {} bare_metal_server_network_attachment_collection_model_json['first'] = page_link_model bare_metal_server_network_attachment_collection_model_json['limit'] = 20 - bare_metal_server_network_attachment_collection_model_json['network_attachments'] = [bare_metal_server_network_attachment_model] + bare_metal_server_network_attachment_collection_model_json['network_attachments'] = [ + bare_metal_server_network_attachment_model + ] bare_metal_server_network_attachment_collection_model_json['next'] = page_link_model bare_metal_server_network_attachment_collection_model_json['total_count'] = 132 # Construct a model instance of BareMetalServerNetworkAttachmentCollection by calling from_dict on the json representation - bare_metal_server_network_attachment_collection_model = BareMetalServerNetworkAttachmentCollection.from_dict(bare_metal_server_network_attachment_collection_model_json) + bare_metal_server_network_attachment_collection_model = BareMetalServerNetworkAttachmentCollection.from_dict( + bare_metal_server_network_attachment_collection_model_json + ) assert bare_metal_server_network_attachment_collection_model != False # Construct a model instance of BareMetalServerNetworkAttachmentCollection by calling from_dict on the json representation - bare_metal_server_network_attachment_collection_model_dict = BareMetalServerNetworkAttachmentCollection.from_dict(bare_metal_server_network_attachment_collection_model_json).__dict__ - bare_metal_server_network_attachment_collection_model2 = BareMetalServerNetworkAttachmentCollection(**bare_metal_server_network_attachment_collection_model_dict) + bare_metal_server_network_attachment_collection_model_dict = ( + BareMetalServerNetworkAttachmentCollection.from_dict( + bare_metal_server_network_attachment_collection_model_json + ).__dict__ + ) + bare_metal_server_network_attachment_collection_model2 = BareMetalServerNetworkAttachmentCollection( + **bare_metal_server_network_attachment_collection_model_dict + ) # Verify the model instances are equivalent - assert bare_metal_server_network_attachment_collection_model == bare_metal_server_network_attachment_collection_model2 + assert ( + bare_metal_server_network_attachment_collection_model + == bare_metal_server_network_attachment_collection_model2 + ) # Convert model instance back to dict and verify no loss of data - bare_metal_server_network_attachment_collection_model_json2 = bare_metal_server_network_attachment_collection_model.to_dict() - assert bare_metal_server_network_attachment_collection_model_json2 == bare_metal_server_network_attachment_collection_model_json + bare_metal_server_network_attachment_collection_model_json2 = ( + bare_metal_server_network_attachment_collection_model.to_dict() + ) + assert ( + bare_metal_server_network_attachment_collection_model_json2 + == bare_metal_server_network_attachment_collection_model_json + ) class TestModel_BareMetalServerNetworkAttachmentPatch: @@ -55531,22 +56255,35 @@ def test_bare_metal_server_network_attachment_patch_serialization(self): # Construct a json representation of a BareMetalServerNetworkAttachmentPatch model bare_metal_server_network_attachment_patch_model_json = {} bare_metal_server_network_attachment_patch_model_json['allowed_vlans'] = [4] - bare_metal_server_network_attachment_patch_model_json['name'] = 'my-bare-metal-server-network-attachment-updated' + bare_metal_server_network_attachment_patch_model_json['name'] = ( + 'my-bare-metal-server-network-attachment-updated' + ) # Construct a model instance of BareMetalServerNetworkAttachmentPatch by calling from_dict on the json representation - bare_metal_server_network_attachment_patch_model = BareMetalServerNetworkAttachmentPatch.from_dict(bare_metal_server_network_attachment_patch_model_json) + bare_metal_server_network_attachment_patch_model = BareMetalServerNetworkAttachmentPatch.from_dict( + bare_metal_server_network_attachment_patch_model_json + ) assert bare_metal_server_network_attachment_patch_model != False # Construct a model instance of BareMetalServerNetworkAttachmentPatch by calling from_dict on the json representation - bare_metal_server_network_attachment_patch_model_dict = BareMetalServerNetworkAttachmentPatch.from_dict(bare_metal_server_network_attachment_patch_model_json).__dict__ - bare_metal_server_network_attachment_patch_model2 = BareMetalServerNetworkAttachmentPatch(**bare_metal_server_network_attachment_patch_model_dict) + bare_metal_server_network_attachment_patch_model_dict = BareMetalServerNetworkAttachmentPatch.from_dict( + bare_metal_server_network_attachment_patch_model_json + ).__dict__ + bare_metal_server_network_attachment_patch_model2 = BareMetalServerNetworkAttachmentPatch( + **bare_metal_server_network_attachment_patch_model_dict + ) # Verify the model instances are equivalent assert bare_metal_server_network_attachment_patch_model == bare_metal_server_network_attachment_patch_model2 # Convert model instance back to dict and verify no loss of data - bare_metal_server_network_attachment_patch_model_json2 = bare_metal_server_network_attachment_patch_model.to_dict() - assert bare_metal_server_network_attachment_patch_model_json2 == bare_metal_server_network_attachment_patch_model_json + bare_metal_server_network_attachment_patch_model_json2 = ( + bare_metal_server_network_attachment_patch_model.to_dict() + ) + assert ( + bare_metal_server_network_attachment_patch_model_json2 + == bare_metal_server_network_attachment_patch_model_json + ) class TestModel_BareMetalServerNetworkAttachmentReference: @@ -55567,22 +56304,34 @@ def test_bare_metal_server_network_attachment_reference_serialization(self): reserved_ip_reference_model = {} # ReservedIPReference reserved_ip_reference_model['address'] = '10.0.1.5' reserved_ip_reference_model['deleted'] = deleted_model - reserved_ip_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + reserved_ip_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + ) reserved_ip_reference_model['id'] = '0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' reserved_ip_reference_model['name'] = 'my-reserved-ip' reserved_ip_reference_model['resource_type'] = 'subnet_reserved_ip' subnet_reference_model = {} # SubnetReference - subnet_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['deleted'] = deleted_model - subnet_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['id'] = '0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' subnet_reference_model['name'] = 'my-subnet' subnet_reference_model['resource_type'] = 'subnet' - virtual_network_interface_reference_attachment_context_model = {} # VirtualNetworkInterfaceReferenceAttachmentContext - virtual_network_interface_reference_attachment_context_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::virtual-network-interface:0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' - virtual_network_interface_reference_attachment_context_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/virtual_network_interfaces/0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + virtual_network_interface_reference_attachment_context_model = ( + {} + ) # VirtualNetworkInterfaceReferenceAttachmentContext + virtual_network_interface_reference_attachment_context_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::virtual-network-interface:0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + ) + virtual_network_interface_reference_attachment_context_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/virtual_network_interfaces/0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + ) virtual_network_interface_reference_attachment_context_model['id'] = '0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' virtual_network_interface_reference_attachment_context_model['name'] = 'my-virtual-network-interface' virtual_network_interface_reference_attachment_context_model['resource_type'] = 'virtual_network_interface' @@ -55590,28 +56339,48 @@ def test_bare_metal_server_network_attachment_reference_serialization(self): # Construct a json representation of a BareMetalServerNetworkAttachmentReference model bare_metal_server_network_attachment_reference_model_json = {} bare_metal_server_network_attachment_reference_model_json['deleted'] = deleted_model - bare_metal_server_network_attachment_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/bare_metal_servers/0717-aad10fd7-8a02-4f3e-97f3-b18bd82cf304/network_attachments/0717-da8c43ec-b6ca-4bd2-871e-72e288c66ee6' + bare_metal_server_network_attachment_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/bare_metal_servers/0717-aad10fd7-8a02-4f3e-97f3-b18bd82cf304/network_attachments/0717-da8c43ec-b6ca-4bd2-871e-72e288c66ee6' + ) bare_metal_server_network_attachment_reference_model_json['id'] = '0717-da8c43ec-b6ca-4bd2-871e-72e288c66ee6' bare_metal_server_network_attachment_reference_model_json['name'] = 'my-bare-metal-server-network-attachment' bare_metal_server_network_attachment_reference_model_json['primary_ip'] = reserved_ip_reference_model - bare_metal_server_network_attachment_reference_model_json['resource_type'] = 'bare_metal_server_network_attachment' + bare_metal_server_network_attachment_reference_model_json['resource_type'] = ( + 'bare_metal_server_network_attachment' + ) bare_metal_server_network_attachment_reference_model_json['subnet'] = subnet_reference_model - bare_metal_server_network_attachment_reference_model_json['virtual_network_interface'] = virtual_network_interface_reference_attachment_context_model + bare_metal_server_network_attachment_reference_model_json['virtual_network_interface'] = ( + virtual_network_interface_reference_attachment_context_model + ) # Construct a model instance of BareMetalServerNetworkAttachmentReference by calling from_dict on the json representation - bare_metal_server_network_attachment_reference_model = BareMetalServerNetworkAttachmentReference.from_dict(bare_metal_server_network_attachment_reference_model_json) + bare_metal_server_network_attachment_reference_model = BareMetalServerNetworkAttachmentReference.from_dict( + bare_metal_server_network_attachment_reference_model_json + ) assert bare_metal_server_network_attachment_reference_model != False # Construct a model instance of BareMetalServerNetworkAttachmentReference by calling from_dict on the json representation - bare_metal_server_network_attachment_reference_model_dict = BareMetalServerNetworkAttachmentReference.from_dict(bare_metal_server_network_attachment_reference_model_json).__dict__ - bare_metal_server_network_attachment_reference_model2 = BareMetalServerNetworkAttachmentReference(**bare_metal_server_network_attachment_reference_model_dict) + bare_metal_server_network_attachment_reference_model_dict = BareMetalServerNetworkAttachmentReference.from_dict( + bare_metal_server_network_attachment_reference_model_json + ).__dict__ + bare_metal_server_network_attachment_reference_model2 = BareMetalServerNetworkAttachmentReference( + **bare_metal_server_network_attachment_reference_model_dict + ) # Verify the model instances are equivalent - assert bare_metal_server_network_attachment_reference_model == bare_metal_server_network_attachment_reference_model2 + assert ( + bare_metal_server_network_attachment_reference_model + == bare_metal_server_network_attachment_reference_model2 + ) # Convert model instance back to dict and verify no loss of data - bare_metal_server_network_attachment_reference_model_json2 = bare_metal_server_network_attachment_reference_model.to_dict() - assert bare_metal_server_network_attachment_reference_model_json2 == bare_metal_server_network_attachment_reference_model_json + bare_metal_server_network_attachment_reference_model_json2 = ( + bare_metal_server_network_attachment_reference_model.to_dict() + ) + assert ( + bare_metal_server_network_attachment_reference_model_json2 + == bare_metal_server_network_attachment_reference_model_json + ) class TestModel_BareMetalServerNetworkInterfaceCollection: @@ -55627,38 +56396,54 @@ def test_bare_metal_server_network_interface_collection_serialization(self): # Construct dict forms of any model objects needed in order to build this model. page_link_model = {} # PageLink - page_link_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/bare_metal_servers/0717-aad10fd7-8a02-4f3e-97f3-b18bd82cf304/network_interfaces/0717-aad10fd7-8a02-4f3e-97f3-b18bd82cf304?limit=20' + page_link_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/bare_metal_servers/0717-aad10fd7-8a02-4f3e-97f3-b18bd82cf304/network_interfaces/0717-aad10fd7-8a02-4f3e-97f3-b18bd82cf304?limit=20' + ) deleted_model = {} # Deleted deleted_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#deleted-resources' floating_ip_reference_model = {} # FloatingIPReference floating_ip_reference_model['address'] = '203.0.113.1' - floating_ip_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::floating-ip:r006-f45e0d90-12a8-4460-8210-290ff2ab75cd' + floating_ip_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::floating-ip:r006-f45e0d90-12a8-4460-8210-290ff2ab75cd' + ) floating_ip_reference_model['deleted'] = deleted_model - floating_ip_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/floating_ips/r006-f45e0d90-12a8-4460-8210-290ff2ab75cd' + floating_ip_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/floating_ips/r006-f45e0d90-12a8-4460-8210-290ff2ab75cd' + ) floating_ip_reference_model['id'] = 'r006-f45e0d90-12a8-4460-8210-290ff2ab75cd' floating_ip_reference_model['name'] = 'my-floating-ip' reserved_ip_reference_model = {} # ReservedIPReference reserved_ip_reference_model['address'] = '10.0.1.5' reserved_ip_reference_model['deleted'] = deleted_model - reserved_ip_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + reserved_ip_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + ) reserved_ip_reference_model['id'] = '0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' reserved_ip_reference_model['name'] = 'my-reserved-ip' reserved_ip_reference_model['resource_type'] = 'subnet_reserved_ip' security_group_reference_model = {} # SecurityGroupReference - security_group_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::security-group:r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + security_group_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::security-group:r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + ) security_group_reference_model['deleted'] = deleted_model - security_group_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + security_group_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + ) security_group_reference_model['id'] = 'r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' security_group_reference_model['name'] = 'my-security-group' subnet_reference_model = {} # SubnetReference - subnet_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['deleted'] = deleted_model - subnet_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['id'] = '0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' subnet_reference_model['name'] = 'my-subnet' subnet_reference_model['resource_type'] = 'subnet' @@ -55668,7 +56453,9 @@ def test_bare_metal_server_network_interface_collection_serialization(self): bare_metal_server_network_interface_model['created_at'] = '2021-05-21T06:09:15Z' bare_metal_server_network_interface_model['enable_infrastructure_nat'] = False bare_metal_server_network_interface_model['floating_ips'] = [floating_ip_reference_model] - bare_metal_server_network_interface_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/bare_metal_servers/0717-aad10fd7-8a02-4f3e-97f3-b18bd82cf304/network_interfaces/0717-da8c43ec-b6ca-4bd2-871e-72e288c66ee6' + bare_metal_server_network_interface_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/bare_metal_servers/0717-aad10fd7-8a02-4f3e-97f3-b18bd82cf304/network_interfaces/0717-da8c43ec-b6ca-4bd2-871e-72e288c66ee6' + ) bare_metal_server_network_interface_model['id'] = '0717-da8c43ec-b6ca-4bd2-871e-72e288c66ee6' bare_metal_server_network_interface_model['mac_address'] = '02:09:04:00:C4:6A' bare_metal_server_network_interface_model['name'] = 'my-primary-network-interface' @@ -55686,24 +56473,40 @@ def test_bare_metal_server_network_interface_collection_serialization(self): bare_metal_server_network_interface_collection_model_json = {} bare_metal_server_network_interface_collection_model_json['first'] = page_link_model bare_metal_server_network_interface_collection_model_json['limit'] = 20 - bare_metal_server_network_interface_collection_model_json['network_interfaces'] = [bare_metal_server_network_interface_model] + bare_metal_server_network_interface_collection_model_json['network_interfaces'] = [ + bare_metal_server_network_interface_model + ] bare_metal_server_network_interface_collection_model_json['next'] = page_link_model bare_metal_server_network_interface_collection_model_json['total_count'] = 132 # Construct a model instance of BareMetalServerNetworkInterfaceCollection by calling from_dict on the json representation - bare_metal_server_network_interface_collection_model = BareMetalServerNetworkInterfaceCollection.from_dict(bare_metal_server_network_interface_collection_model_json) + bare_metal_server_network_interface_collection_model = BareMetalServerNetworkInterfaceCollection.from_dict( + bare_metal_server_network_interface_collection_model_json + ) assert bare_metal_server_network_interface_collection_model != False # Construct a model instance of BareMetalServerNetworkInterfaceCollection by calling from_dict on the json representation - bare_metal_server_network_interface_collection_model_dict = BareMetalServerNetworkInterfaceCollection.from_dict(bare_metal_server_network_interface_collection_model_json).__dict__ - bare_metal_server_network_interface_collection_model2 = BareMetalServerNetworkInterfaceCollection(**bare_metal_server_network_interface_collection_model_dict) + bare_metal_server_network_interface_collection_model_dict = BareMetalServerNetworkInterfaceCollection.from_dict( + bare_metal_server_network_interface_collection_model_json + ).__dict__ + bare_metal_server_network_interface_collection_model2 = BareMetalServerNetworkInterfaceCollection( + **bare_metal_server_network_interface_collection_model_dict + ) # Verify the model instances are equivalent - assert bare_metal_server_network_interface_collection_model == bare_metal_server_network_interface_collection_model2 + assert ( + bare_metal_server_network_interface_collection_model + == bare_metal_server_network_interface_collection_model2 + ) # Convert model instance back to dict and verify no loss of data - bare_metal_server_network_interface_collection_model_json2 = bare_metal_server_network_interface_collection_model.to_dict() - assert bare_metal_server_network_interface_collection_model_json2 == bare_metal_server_network_interface_collection_model_json + bare_metal_server_network_interface_collection_model_json2 = ( + bare_metal_server_network_interface_collection_model.to_dict() + ) + assert ( + bare_metal_server_network_interface_collection_model_json2 + == bare_metal_server_network_interface_collection_model_json + ) class TestModel_BareMetalServerNetworkInterfacePatch: @@ -55724,19 +56527,30 @@ def test_bare_metal_server_network_interface_patch_serialization(self): bare_metal_server_network_interface_patch_model_json['name'] = 'my-bare-metal-server-network-interface' # Construct a model instance of BareMetalServerNetworkInterfacePatch by calling from_dict on the json representation - bare_metal_server_network_interface_patch_model = BareMetalServerNetworkInterfacePatch.from_dict(bare_metal_server_network_interface_patch_model_json) + bare_metal_server_network_interface_patch_model = BareMetalServerNetworkInterfacePatch.from_dict( + bare_metal_server_network_interface_patch_model_json + ) assert bare_metal_server_network_interface_patch_model != False # Construct a model instance of BareMetalServerNetworkInterfacePatch by calling from_dict on the json representation - bare_metal_server_network_interface_patch_model_dict = BareMetalServerNetworkInterfacePatch.from_dict(bare_metal_server_network_interface_patch_model_json).__dict__ - bare_metal_server_network_interface_patch_model2 = BareMetalServerNetworkInterfacePatch(**bare_metal_server_network_interface_patch_model_dict) + bare_metal_server_network_interface_patch_model_dict = BareMetalServerNetworkInterfacePatch.from_dict( + bare_metal_server_network_interface_patch_model_json + ).__dict__ + bare_metal_server_network_interface_patch_model2 = BareMetalServerNetworkInterfacePatch( + **bare_metal_server_network_interface_patch_model_dict + ) # Verify the model instances are equivalent assert bare_metal_server_network_interface_patch_model == bare_metal_server_network_interface_patch_model2 # Convert model instance back to dict and verify no loss of data - bare_metal_server_network_interface_patch_model_json2 = bare_metal_server_network_interface_patch_model.to_dict() - assert bare_metal_server_network_interface_patch_model_json2 == bare_metal_server_network_interface_patch_model_json + bare_metal_server_network_interface_patch_model_json2 = ( + bare_metal_server_network_interface_patch_model.to_dict() + ) + assert ( + bare_metal_server_network_interface_patch_model_json2 + == bare_metal_server_network_interface_patch_model_json + ) class TestModel_BareMetalServerPatch: @@ -55759,7 +56573,9 @@ def test_bare_metal_server_patch_serialization(self): bare_metal_server_patch_model_json['bandwidth'] = 20000 bare_metal_server_patch_model_json['enable_secure_boot'] = False bare_metal_server_patch_model_json['name'] = 'my-bare-metal-server' - bare_metal_server_patch_model_json['trusted_platform_module'] = bare_metal_server_trusted_platform_module_patch_model + bare_metal_server_patch_model_json['trusted_platform_module'] = ( + bare_metal_server_trusted_platform_module_patch_model + ) # Construct a model instance of BareMetalServerPatch by calling from_dict on the json representation bare_metal_server_patch_model = BareMetalServerPatch.from_dict(bare_metal_server_patch_model_json) @@ -55789,7 +56605,9 @@ def test_bare_metal_server_primary_network_interface_prototype_serialization(sel # Construct dict forms of any model objects needed in order to build this model. - network_interface_ip_prototype_model = {} # NetworkInterfaceIPPrototypeReservedIPPrototypeNetworkInterfaceContext + network_interface_ip_prototype_model = ( + {} + ) # NetworkInterfaceIPPrototypeReservedIPPrototypeNetworkInterfaceContext network_interface_ip_prototype_model['address'] = '10.0.0.5' network_interface_ip_prototype_model['auto_delete'] = False network_interface_ip_prototype_model['name'] = 'my-reserved-ip' @@ -55806,25 +56624,49 @@ def test_bare_metal_server_primary_network_interface_prototype_serialization(sel bare_metal_server_primary_network_interface_prototype_model_json['allowed_vlans'] = [4] bare_metal_server_primary_network_interface_prototype_model_json['enable_infrastructure_nat'] = True bare_metal_server_primary_network_interface_prototype_model_json['interface_type'] = 'pci' - bare_metal_server_primary_network_interface_prototype_model_json['name'] = 'my-bare-metal-server-network-interface' - bare_metal_server_primary_network_interface_prototype_model_json['primary_ip'] = network_interface_ip_prototype_model - bare_metal_server_primary_network_interface_prototype_model_json['security_groups'] = [security_group_identity_model] + bare_metal_server_primary_network_interface_prototype_model_json['name'] = ( + 'my-bare-metal-server-network-interface' + ) + bare_metal_server_primary_network_interface_prototype_model_json['primary_ip'] = ( + network_interface_ip_prototype_model + ) + bare_metal_server_primary_network_interface_prototype_model_json['security_groups'] = [ + security_group_identity_model + ] bare_metal_server_primary_network_interface_prototype_model_json['subnet'] = subnet_identity_model # Construct a model instance of BareMetalServerPrimaryNetworkInterfacePrototype by calling from_dict on the json representation - bare_metal_server_primary_network_interface_prototype_model = BareMetalServerPrimaryNetworkInterfacePrototype.from_dict(bare_metal_server_primary_network_interface_prototype_model_json) + bare_metal_server_primary_network_interface_prototype_model = ( + BareMetalServerPrimaryNetworkInterfacePrototype.from_dict( + bare_metal_server_primary_network_interface_prototype_model_json + ) + ) assert bare_metal_server_primary_network_interface_prototype_model != False # Construct a model instance of BareMetalServerPrimaryNetworkInterfacePrototype by calling from_dict on the json representation - bare_metal_server_primary_network_interface_prototype_model_dict = BareMetalServerPrimaryNetworkInterfacePrototype.from_dict(bare_metal_server_primary_network_interface_prototype_model_json).__dict__ - bare_metal_server_primary_network_interface_prototype_model2 = BareMetalServerPrimaryNetworkInterfacePrototype(**bare_metal_server_primary_network_interface_prototype_model_dict) + bare_metal_server_primary_network_interface_prototype_model_dict = ( + BareMetalServerPrimaryNetworkInterfacePrototype.from_dict( + bare_metal_server_primary_network_interface_prototype_model_json + ).__dict__ + ) + bare_metal_server_primary_network_interface_prototype_model2 = BareMetalServerPrimaryNetworkInterfacePrototype( + **bare_metal_server_primary_network_interface_prototype_model_dict + ) # Verify the model instances are equivalent - assert bare_metal_server_primary_network_interface_prototype_model == bare_metal_server_primary_network_interface_prototype_model2 + assert ( + bare_metal_server_primary_network_interface_prototype_model + == bare_metal_server_primary_network_interface_prototype_model2 + ) # Convert model instance back to dict and verify no loss of data - bare_metal_server_primary_network_interface_prototype_model_json2 = bare_metal_server_primary_network_interface_prototype_model.to_dict() - assert bare_metal_server_primary_network_interface_prototype_model_json2 == bare_metal_server_primary_network_interface_prototype_model_json + bare_metal_server_primary_network_interface_prototype_model_json2 = ( + bare_metal_server_primary_network_interface_prototype_model.to_dict() + ) + assert ( + bare_metal_server_primary_network_interface_prototype_model_json2 + == bare_metal_server_primary_network_interface_prototype_model_json + ) class TestModel_BareMetalServerProfile: @@ -55876,13 +56718,17 @@ def test_bare_metal_server_profile_serialization(self): bare_metal_server_profile_disk_model = {} # BareMetalServerProfileDisk bare_metal_server_profile_disk_model['quantity'] = bare_metal_server_profile_disk_quantity_model bare_metal_server_profile_disk_model['size'] = bare_metal_server_profile_disk_size_model - bare_metal_server_profile_disk_model['supported_interface_types'] = bare_metal_server_profile_disk_supported_interfaces_model + bare_metal_server_profile_disk_model['supported_interface_types'] = ( + bare_metal_server_profile_disk_supported_interfaces_model + ) bare_metal_server_profile_memory_model = {} # BareMetalServerProfileMemoryFixed bare_metal_server_profile_memory_model['type'] = 'fixed' bare_metal_server_profile_memory_model['value'] = 768 - bare_metal_server_profile_network_attachment_count_model = {} # BareMetalServerProfileNetworkAttachmentCountRange + bare_metal_server_profile_network_attachment_count_model = ( + {} + ) # BareMetalServerProfileNetworkAttachmentCountRange bare_metal_server_profile_network_attachment_count_model['max'] = 128 bare_metal_server_profile_network_attachment_count_model['min'] = 1 bare_metal_server_profile_network_attachment_count_model['type'] = 'range' @@ -55897,12 +56743,16 @@ def test_bare_metal_server_profile_serialization(self): bare_metal_server_profile_os_architecture_model['type'] = 'enum' bare_metal_server_profile_os_architecture_model['values'] = ['amd64'] - bare_metal_server_profile_supported_trusted_platform_module_modes_model = {} # BareMetalServerProfileSupportedTrustedPlatformModuleModes + bare_metal_server_profile_supported_trusted_platform_module_modes_model = ( + {} + ) # BareMetalServerProfileSupportedTrustedPlatformModuleModes bare_metal_server_profile_supported_trusted_platform_module_modes_model['default'] = 'disabled' bare_metal_server_profile_supported_trusted_platform_module_modes_model['type'] = 'enum' bare_metal_server_profile_supported_trusted_platform_module_modes_model['values'] = ['disabled', 'tpm_2'] - bare_metal_server_profile_virtual_network_interfaces_supported_model = {} # BareMetalServerProfileVirtualNetworkInterfacesSupported + bare_metal_server_profile_virtual_network_interfaces_supported_model = ( + {} + ) # BareMetalServerProfileVirtualNetworkInterfacesSupported bare_metal_server_profile_virtual_network_interfaces_supported_model['type'] = 'fixed' bare_metal_server_profile_virtual_network_interfaces_supported_model['value'] = True @@ -55915,22 +56765,34 @@ def test_bare_metal_server_profile_serialization(self): bare_metal_server_profile_model_json['cpu_socket_count'] = bare_metal_server_profile_cpu_socket_count_model bare_metal_server_profile_model_json['disks'] = [bare_metal_server_profile_disk_model] bare_metal_server_profile_model_json['family'] = 'balanced' - bare_metal_server_profile_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/bare_metal_servers/profiles/bx2-metal-192x768' + bare_metal_server_profile_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/bare_metal_servers/profiles/bx2-metal-192x768' + ) bare_metal_server_profile_model_json['memory'] = bare_metal_server_profile_memory_model bare_metal_server_profile_model_json['name'] = 'bx2-metal-192x768' - bare_metal_server_profile_model_json['network_attachment_count'] = bare_metal_server_profile_network_attachment_count_model - bare_metal_server_profile_model_json['network_interface_count'] = bare_metal_server_profile_network_interface_count_model + bare_metal_server_profile_model_json['network_attachment_count'] = ( + bare_metal_server_profile_network_attachment_count_model + ) + bare_metal_server_profile_model_json['network_interface_count'] = ( + bare_metal_server_profile_network_interface_count_model + ) bare_metal_server_profile_model_json['os_architecture'] = bare_metal_server_profile_os_architecture_model bare_metal_server_profile_model_json['resource_type'] = 'bare_metal_server_profile' - bare_metal_server_profile_model_json['supported_trusted_platform_module_modes'] = bare_metal_server_profile_supported_trusted_platform_module_modes_model - bare_metal_server_profile_model_json['virtual_network_interfaces_supported'] = bare_metal_server_profile_virtual_network_interfaces_supported_model + bare_metal_server_profile_model_json['supported_trusted_platform_module_modes'] = ( + bare_metal_server_profile_supported_trusted_platform_module_modes_model + ) + bare_metal_server_profile_model_json['virtual_network_interfaces_supported'] = ( + bare_metal_server_profile_virtual_network_interfaces_supported_model + ) # Construct a model instance of BareMetalServerProfile by calling from_dict on the json representation bare_metal_server_profile_model = BareMetalServerProfile.from_dict(bare_metal_server_profile_model_json) assert bare_metal_server_profile_model != False # Construct a model instance of BareMetalServerProfile by calling from_dict on the json representation - bare_metal_server_profile_model_dict = BareMetalServerProfile.from_dict(bare_metal_server_profile_model_json).__dict__ + bare_metal_server_profile_model_dict = BareMetalServerProfile.from_dict( + bare_metal_server_profile_model_json + ).__dict__ bare_metal_server_profile_model2 = BareMetalServerProfile(**bare_metal_server_profile_model_dict) # Verify the model instances are equivalent @@ -55958,19 +56820,30 @@ def test_bare_metal_server_profile_cpu_architecture_serialization(self): bare_metal_server_profile_cpu_architecture_model_json['value'] = 'amd64' # Construct a model instance of BareMetalServerProfileCPUArchitecture by calling from_dict on the json representation - bare_metal_server_profile_cpu_architecture_model = BareMetalServerProfileCPUArchitecture.from_dict(bare_metal_server_profile_cpu_architecture_model_json) + bare_metal_server_profile_cpu_architecture_model = BareMetalServerProfileCPUArchitecture.from_dict( + bare_metal_server_profile_cpu_architecture_model_json + ) assert bare_metal_server_profile_cpu_architecture_model != False # Construct a model instance of BareMetalServerProfileCPUArchitecture by calling from_dict on the json representation - bare_metal_server_profile_cpu_architecture_model_dict = BareMetalServerProfileCPUArchitecture.from_dict(bare_metal_server_profile_cpu_architecture_model_json).__dict__ - bare_metal_server_profile_cpu_architecture_model2 = BareMetalServerProfileCPUArchitecture(**bare_metal_server_profile_cpu_architecture_model_dict) + bare_metal_server_profile_cpu_architecture_model_dict = BareMetalServerProfileCPUArchitecture.from_dict( + bare_metal_server_profile_cpu_architecture_model_json + ).__dict__ + bare_metal_server_profile_cpu_architecture_model2 = BareMetalServerProfileCPUArchitecture( + **bare_metal_server_profile_cpu_architecture_model_dict + ) # Verify the model instances are equivalent assert bare_metal_server_profile_cpu_architecture_model == bare_metal_server_profile_cpu_architecture_model2 # Convert model instance back to dict and verify no loss of data - bare_metal_server_profile_cpu_architecture_model_json2 = bare_metal_server_profile_cpu_architecture_model.to_dict() - assert bare_metal_server_profile_cpu_architecture_model_json2 == bare_metal_server_profile_cpu_architecture_model_json + bare_metal_server_profile_cpu_architecture_model_json2 = ( + bare_metal_server_profile_cpu_architecture_model.to_dict() + ) + assert ( + bare_metal_server_profile_cpu_architecture_model_json2 + == bare_metal_server_profile_cpu_architecture_model_json + ) class TestModel_BareMetalServerProfileCollection: @@ -55986,7 +56859,9 @@ def test_bare_metal_server_profile_collection_serialization(self): # Construct dict forms of any model objects needed in order to build this model. page_link_model = {} # PageLink - page_link_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/bare_metal_server/profiles/bx2d-metal-192x768?limit=50' + page_link_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/bare_metal_server/profiles/bx2d-metal-192x768?limit=50' + ) bare_metal_server_profile_bandwidth_model = {} # BareMetalServerProfileBandwidthFixed bare_metal_server_profile_bandwidth_model['type'] = 'fixed' @@ -56025,13 +56900,17 @@ def test_bare_metal_server_profile_collection_serialization(self): bare_metal_server_profile_disk_model = {} # BareMetalServerProfileDisk bare_metal_server_profile_disk_model['quantity'] = bare_metal_server_profile_disk_quantity_model bare_metal_server_profile_disk_model['size'] = bare_metal_server_profile_disk_size_model - bare_metal_server_profile_disk_model['supported_interface_types'] = bare_metal_server_profile_disk_supported_interfaces_model + bare_metal_server_profile_disk_model['supported_interface_types'] = ( + bare_metal_server_profile_disk_supported_interfaces_model + ) bare_metal_server_profile_memory_model = {} # BareMetalServerProfileMemoryFixed bare_metal_server_profile_memory_model['type'] = 'fixed' bare_metal_server_profile_memory_model['value'] = 768 - bare_metal_server_profile_network_attachment_count_model = {} # BareMetalServerProfileNetworkAttachmentCountRange + bare_metal_server_profile_network_attachment_count_model = ( + {} + ) # BareMetalServerProfileNetworkAttachmentCountRange bare_metal_server_profile_network_attachment_count_model['max'] = 128 bare_metal_server_profile_network_attachment_count_model['min'] = 1 bare_metal_server_profile_network_attachment_count_model['type'] = 'range' @@ -56046,12 +56925,16 @@ def test_bare_metal_server_profile_collection_serialization(self): bare_metal_server_profile_os_architecture_model['type'] = 'enum' bare_metal_server_profile_os_architecture_model['values'] = ['amd64'] - bare_metal_server_profile_supported_trusted_platform_module_modes_model = {} # BareMetalServerProfileSupportedTrustedPlatformModuleModes + bare_metal_server_profile_supported_trusted_platform_module_modes_model = ( + {} + ) # BareMetalServerProfileSupportedTrustedPlatformModuleModes bare_metal_server_profile_supported_trusted_platform_module_modes_model['default'] = 'disabled' bare_metal_server_profile_supported_trusted_platform_module_modes_model['type'] = 'enum' bare_metal_server_profile_supported_trusted_platform_module_modes_model['values'] = ['disabled', 'tpm_2'] - bare_metal_server_profile_virtual_network_interfaces_supported_model = {} # BareMetalServerProfileVirtualNetworkInterfacesSupported + bare_metal_server_profile_virtual_network_interfaces_supported_model = ( + {} + ) # BareMetalServerProfileVirtualNetworkInterfacesSupported bare_metal_server_profile_virtual_network_interfaces_supported_model['type'] = 'fixed' bare_metal_server_profile_virtual_network_interfaces_supported_model['value'] = True @@ -56063,15 +56946,25 @@ def test_bare_metal_server_profile_collection_serialization(self): bare_metal_server_profile_model['cpu_socket_count'] = bare_metal_server_profile_cpu_socket_count_model bare_metal_server_profile_model['disks'] = [bare_metal_server_profile_disk_model] bare_metal_server_profile_model['family'] = 'balanced' - bare_metal_server_profile_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/bare_metal_server/profiles/bx2-metal-192x768' + bare_metal_server_profile_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/bare_metal_server/profiles/bx2-metal-192x768' + ) bare_metal_server_profile_model['memory'] = bare_metal_server_profile_memory_model bare_metal_server_profile_model['name'] = 'bx2-metal-192x768' - bare_metal_server_profile_model['network_attachment_count'] = bare_metal_server_profile_network_attachment_count_model - bare_metal_server_profile_model['network_interface_count'] = bare_metal_server_profile_network_interface_count_model + bare_metal_server_profile_model['network_attachment_count'] = ( + bare_metal_server_profile_network_attachment_count_model + ) + bare_metal_server_profile_model['network_interface_count'] = ( + bare_metal_server_profile_network_interface_count_model + ) bare_metal_server_profile_model['os_architecture'] = bare_metal_server_profile_os_architecture_model bare_metal_server_profile_model['resource_type'] = 'bare_metal_server_profile' - bare_metal_server_profile_model['supported_trusted_platform_module_modes'] = bare_metal_server_profile_supported_trusted_platform_module_modes_model - bare_metal_server_profile_model['virtual_network_interfaces_supported'] = bare_metal_server_profile_virtual_network_interfaces_supported_model + bare_metal_server_profile_model['supported_trusted_platform_module_modes'] = ( + bare_metal_server_profile_supported_trusted_platform_module_modes_model + ) + bare_metal_server_profile_model['virtual_network_interfaces_supported'] = ( + bare_metal_server_profile_virtual_network_interfaces_supported_model + ) # Construct a json representation of a BareMetalServerProfileCollection model bare_metal_server_profile_collection_model_json = {} @@ -56082,12 +56975,18 @@ def test_bare_metal_server_profile_collection_serialization(self): bare_metal_server_profile_collection_model_json['total_count'] = 132 # Construct a model instance of BareMetalServerProfileCollection by calling from_dict on the json representation - bare_metal_server_profile_collection_model = BareMetalServerProfileCollection.from_dict(bare_metal_server_profile_collection_model_json) + bare_metal_server_profile_collection_model = BareMetalServerProfileCollection.from_dict( + bare_metal_server_profile_collection_model_json + ) assert bare_metal_server_profile_collection_model != False # Construct a model instance of BareMetalServerProfileCollection by calling from_dict on the json representation - bare_metal_server_profile_collection_model_dict = BareMetalServerProfileCollection.from_dict(bare_metal_server_profile_collection_model_json).__dict__ - bare_metal_server_profile_collection_model2 = BareMetalServerProfileCollection(**bare_metal_server_profile_collection_model_dict) + bare_metal_server_profile_collection_model_dict = BareMetalServerProfileCollection.from_dict( + bare_metal_server_profile_collection_model_json + ).__dict__ + bare_metal_server_profile_collection_model2 = BareMetalServerProfileCollection( + **bare_metal_server_profile_collection_model_dict + ) # Verify the model instances are equivalent assert bare_metal_server_profile_collection_model == bare_metal_server_profile_collection_model2 @@ -56113,12 +57012,18 @@ def test_bare_metal_server_profile_console_types_serialization(self): bare_metal_server_profile_console_types_model_json['values'] = ['serial'] # Construct a model instance of BareMetalServerProfileConsoleTypes by calling from_dict on the json representation - bare_metal_server_profile_console_types_model = BareMetalServerProfileConsoleTypes.from_dict(bare_metal_server_profile_console_types_model_json) + bare_metal_server_profile_console_types_model = BareMetalServerProfileConsoleTypes.from_dict( + bare_metal_server_profile_console_types_model_json + ) assert bare_metal_server_profile_console_types_model != False # Construct a model instance of BareMetalServerProfileConsoleTypes by calling from_dict on the json representation - bare_metal_server_profile_console_types_model_dict = BareMetalServerProfileConsoleTypes.from_dict(bare_metal_server_profile_console_types_model_json).__dict__ - bare_metal_server_profile_console_types_model2 = BareMetalServerProfileConsoleTypes(**bare_metal_server_profile_console_types_model_dict) + bare_metal_server_profile_console_types_model_dict = BareMetalServerProfileConsoleTypes.from_dict( + bare_metal_server_profile_console_types_model_json + ).__dict__ + bare_metal_server_profile_console_types_model2 = BareMetalServerProfileConsoleTypes( + **bare_metal_server_profile_console_types_model_dict + ) # Verify the model instances are equivalent assert bare_metal_server_profile_console_types_model == bare_metal_server_profile_console_types_model2 @@ -56157,14 +57062,20 @@ def test_bare_metal_server_profile_disk_serialization(self): bare_metal_server_profile_disk_model_json = {} bare_metal_server_profile_disk_model_json['quantity'] = bare_metal_server_profile_disk_quantity_model bare_metal_server_profile_disk_model_json['size'] = bare_metal_server_profile_disk_size_model - bare_metal_server_profile_disk_model_json['supported_interface_types'] = bare_metal_server_profile_disk_supported_interfaces_model + bare_metal_server_profile_disk_model_json['supported_interface_types'] = ( + bare_metal_server_profile_disk_supported_interfaces_model + ) # Construct a model instance of BareMetalServerProfileDisk by calling from_dict on the json representation - bare_metal_server_profile_disk_model = BareMetalServerProfileDisk.from_dict(bare_metal_server_profile_disk_model_json) + bare_metal_server_profile_disk_model = BareMetalServerProfileDisk.from_dict( + bare_metal_server_profile_disk_model_json + ) assert bare_metal_server_profile_disk_model != False # Construct a model instance of BareMetalServerProfileDisk by calling from_dict on the json representation - bare_metal_server_profile_disk_model_dict = BareMetalServerProfileDisk.from_dict(bare_metal_server_profile_disk_model_json).__dict__ + bare_metal_server_profile_disk_model_dict = BareMetalServerProfileDisk.from_dict( + bare_metal_server_profile_disk_model_json + ).__dict__ bare_metal_server_profile_disk_model2 = BareMetalServerProfileDisk(**bare_metal_server_profile_disk_model_dict) # Verify the model instances are equivalent @@ -56192,19 +57103,37 @@ def test_bare_metal_server_profile_disk_supported_interfaces_serialization(self) bare_metal_server_profile_disk_supported_interfaces_model_json['values'] = ['fcp'] # Construct a model instance of BareMetalServerProfileDiskSupportedInterfaces by calling from_dict on the json representation - bare_metal_server_profile_disk_supported_interfaces_model = BareMetalServerProfileDiskSupportedInterfaces.from_dict(bare_metal_server_profile_disk_supported_interfaces_model_json) + bare_metal_server_profile_disk_supported_interfaces_model = ( + BareMetalServerProfileDiskSupportedInterfaces.from_dict( + bare_metal_server_profile_disk_supported_interfaces_model_json + ) + ) assert bare_metal_server_profile_disk_supported_interfaces_model != False # Construct a model instance of BareMetalServerProfileDiskSupportedInterfaces by calling from_dict on the json representation - bare_metal_server_profile_disk_supported_interfaces_model_dict = BareMetalServerProfileDiskSupportedInterfaces.from_dict(bare_metal_server_profile_disk_supported_interfaces_model_json).__dict__ - bare_metal_server_profile_disk_supported_interfaces_model2 = BareMetalServerProfileDiskSupportedInterfaces(**bare_metal_server_profile_disk_supported_interfaces_model_dict) + bare_metal_server_profile_disk_supported_interfaces_model_dict = ( + BareMetalServerProfileDiskSupportedInterfaces.from_dict( + bare_metal_server_profile_disk_supported_interfaces_model_json + ).__dict__ + ) + bare_metal_server_profile_disk_supported_interfaces_model2 = BareMetalServerProfileDiskSupportedInterfaces( + **bare_metal_server_profile_disk_supported_interfaces_model_dict + ) # Verify the model instances are equivalent - assert bare_metal_server_profile_disk_supported_interfaces_model == bare_metal_server_profile_disk_supported_interfaces_model2 + assert ( + bare_metal_server_profile_disk_supported_interfaces_model + == bare_metal_server_profile_disk_supported_interfaces_model2 + ) # Convert model instance back to dict and verify no loss of data - bare_metal_server_profile_disk_supported_interfaces_model_json2 = bare_metal_server_profile_disk_supported_interfaces_model.to_dict() - assert bare_metal_server_profile_disk_supported_interfaces_model_json2 == bare_metal_server_profile_disk_supported_interfaces_model_json + bare_metal_server_profile_disk_supported_interfaces_model_json2 = ( + bare_metal_server_profile_disk_supported_interfaces_model.to_dict() + ) + assert ( + bare_metal_server_profile_disk_supported_interfaces_model_json2 + == bare_metal_server_profile_disk_supported_interfaces_model_json + ) class TestModel_BareMetalServerProfileOSArchitecture: @@ -56224,19 +57153,30 @@ def test_bare_metal_server_profile_os_architecture_serialization(self): bare_metal_server_profile_os_architecture_model_json['values'] = ['amd64'] # Construct a model instance of BareMetalServerProfileOSArchitecture by calling from_dict on the json representation - bare_metal_server_profile_os_architecture_model = BareMetalServerProfileOSArchitecture.from_dict(bare_metal_server_profile_os_architecture_model_json) + bare_metal_server_profile_os_architecture_model = BareMetalServerProfileOSArchitecture.from_dict( + bare_metal_server_profile_os_architecture_model_json + ) assert bare_metal_server_profile_os_architecture_model != False # Construct a model instance of BareMetalServerProfileOSArchitecture by calling from_dict on the json representation - bare_metal_server_profile_os_architecture_model_dict = BareMetalServerProfileOSArchitecture.from_dict(bare_metal_server_profile_os_architecture_model_json).__dict__ - bare_metal_server_profile_os_architecture_model2 = BareMetalServerProfileOSArchitecture(**bare_metal_server_profile_os_architecture_model_dict) + bare_metal_server_profile_os_architecture_model_dict = BareMetalServerProfileOSArchitecture.from_dict( + bare_metal_server_profile_os_architecture_model_json + ).__dict__ + bare_metal_server_profile_os_architecture_model2 = BareMetalServerProfileOSArchitecture( + **bare_metal_server_profile_os_architecture_model_dict + ) # Verify the model instances are equivalent assert bare_metal_server_profile_os_architecture_model == bare_metal_server_profile_os_architecture_model2 # Convert model instance back to dict and verify no loss of data - bare_metal_server_profile_os_architecture_model_json2 = bare_metal_server_profile_os_architecture_model.to_dict() - assert bare_metal_server_profile_os_architecture_model_json2 == bare_metal_server_profile_os_architecture_model_json + bare_metal_server_profile_os_architecture_model_json2 = ( + bare_metal_server_profile_os_architecture_model.to_dict() + ) + assert ( + bare_metal_server_profile_os_architecture_model_json2 + == bare_metal_server_profile_os_architecture_model_json + ) class TestModel_BareMetalServerProfileReference: @@ -56251,17 +57191,25 @@ def test_bare_metal_server_profile_reference_serialization(self): # Construct a json representation of a BareMetalServerProfileReference model bare_metal_server_profile_reference_model_json = {} - bare_metal_server_profile_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/bare_metal_servers/profiles/bx2-metal-192x768' + bare_metal_server_profile_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/bare_metal_servers/profiles/bx2-metal-192x768' + ) bare_metal_server_profile_reference_model_json['name'] = 'bx2-metal-192x768' bare_metal_server_profile_reference_model_json['resource_type'] = 'bare_metal_server_profile' # Construct a model instance of BareMetalServerProfileReference by calling from_dict on the json representation - bare_metal_server_profile_reference_model = BareMetalServerProfileReference.from_dict(bare_metal_server_profile_reference_model_json) + bare_metal_server_profile_reference_model = BareMetalServerProfileReference.from_dict( + bare_metal_server_profile_reference_model_json + ) assert bare_metal_server_profile_reference_model != False # Construct a model instance of BareMetalServerProfileReference by calling from_dict on the json representation - bare_metal_server_profile_reference_model_dict = BareMetalServerProfileReference.from_dict(bare_metal_server_profile_reference_model_json).__dict__ - bare_metal_server_profile_reference_model2 = BareMetalServerProfileReference(**bare_metal_server_profile_reference_model_dict) + bare_metal_server_profile_reference_model_dict = BareMetalServerProfileReference.from_dict( + bare_metal_server_profile_reference_model_json + ).__dict__ + bare_metal_server_profile_reference_model2 = BareMetalServerProfileReference( + **bare_metal_server_profile_reference_model_dict + ) # Verify the model instances are equivalent assert bare_metal_server_profile_reference_model == bare_metal_server_profile_reference_model2 @@ -56288,19 +57236,39 @@ def test_bare_metal_server_profile_supported_trusted_platform_module_modes_seria bare_metal_server_profile_supported_trusted_platform_module_modes_model_json['values'] = ['disabled'] # Construct a model instance of BareMetalServerProfileSupportedTrustedPlatformModuleModes by calling from_dict on the json representation - bare_metal_server_profile_supported_trusted_platform_module_modes_model = BareMetalServerProfileSupportedTrustedPlatformModuleModes.from_dict(bare_metal_server_profile_supported_trusted_platform_module_modes_model_json) + bare_metal_server_profile_supported_trusted_platform_module_modes_model = ( + BareMetalServerProfileSupportedTrustedPlatformModuleModes.from_dict( + bare_metal_server_profile_supported_trusted_platform_module_modes_model_json + ) + ) assert bare_metal_server_profile_supported_trusted_platform_module_modes_model != False # Construct a model instance of BareMetalServerProfileSupportedTrustedPlatformModuleModes by calling from_dict on the json representation - bare_metal_server_profile_supported_trusted_platform_module_modes_model_dict = BareMetalServerProfileSupportedTrustedPlatformModuleModes.from_dict(bare_metal_server_profile_supported_trusted_platform_module_modes_model_json).__dict__ - bare_metal_server_profile_supported_trusted_platform_module_modes_model2 = BareMetalServerProfileSupportedTrustedPlatformModuleModes(**bare_metal_server_profile_supported_trusted_platform_module_modes_model_dict) + bare_metal_server_profile_supported_trusted_platform_module_modes_model_dict = ( + BareMetalServerProfileSupportedTrustedPlatformModuleModes.from_dict( + bare_metal_server_profile_supported_trusted_platform_module_modes_model_json + ).__dict__ + ) + bare_metal_server_profile_supported_trusted_platform_module_modes_model2 = ( + BareMetalServerProfileSupportedTrustedPlatformModuleModes( + **bare_metal_server_profile_supported_trusted_platform_module_modes_model_dict + ) + ) # Verify the model instances are equivalent - assert bare_metal_server_profile_supported_trusted_platform_module_modes_model == bare_metal_server_profile_supported_trusted_platform_module_modes_model2 + assert ( + bare_metal_server_profile_supported_trusted_platform_module_modes_model + == bare_metal_server_profile_supported_trusted_platform_module_modes_model2 + ) # Convert model instance back to dict and verify no loss of data - bare_metal_server_profile_supported_trusted_platform_module_modes_model_json2 = bare_metal_server_profile_supported_trusted_platform_module_modes_model.to_dict() - assert bare_metal_server_profile_supported_trusted_platform_module_modes_model_json2 == bare_metal_server_profile_supported_trusted_platform_module_modes_model_json + bare_metal_server_profile_supported_trusted_platform_module_modes_model_json2 = ( + bare_metal_server_profile_supported_trusted_platform_module_modes_model.to_dict() + ) + assert ( + bare_metal_server_profile_supported_trusted_platform_module_modes_model_json2 + == bare_metal_server_profile_supported_trusted_platform_module_modes_model_json + ) class TestModel_BareMetalServerProfileVirtualNetworkInterfacesSupported: @@ -56319,19 +57287,39 @@ def test_bare_metal_server_profile_virtual_network_interfaces_supported_serializ bare_metal_server_profile_virtual_network_interfaces_supported_model_json['value'] = True # Construct a model instance of BareMetalServerProfileVirtualNetworkInterfacesSupported by calling from_dict on the json representation - bare_metal_server_profile_virtual_network_interfaces_supported_model = BareMetalServerProfileVirtualNetworkInterfacesSupported.from_dict(bare_metal_server_profile_virtual_network_interfaces_supported_model_json) + bare_metal_server_profile_virtual_network_interfaces_supported_model = ( + BareMetalServerProfileVirtualNetworkInterfacesSupported.from_dict( + bare_metal_server_profile_virtual_network_interfaces_supported_model_json + ) + ) assert bare_metal_server_profile_virtual_network_interfaces_supported_model != False # Construct a model instance of BareMetalServerProfileVirtualNetworkInterfacesSupported by calling from_dict on the json representation - bare_metal_server_profile_virtual_network_interfaces_supported_model_dict = BareMetalServerProfileVirtualNetworkInterfacesSupported.from_dict(bare_metal_server_profile_virtual_network_interfaces_supported_model_json).__dict__ - bare_metal_server_profile_virtual_network_interfaces_supported_model2 = BareMetalServerProfileVirtualNetworkInterfacesSupported(**bare_metal_server_profile_virtual_network_interfaces_supported_model_dict) + bare_metal_server_profile_virtual_network_interfaces_supported_model_dict = ( + BareMetalServerProfileVirtualNetworkInterfacesSupported.from_dict( + bare_metal_server_profile_virtual_network_interfaces_supported_model_json + ).__dict__ + ) + bare_metal_server_profile_virtual_network_interfaces_supported_model2 = ( + BareMetalServerProfileVirtualNetworkInterfacesSupported( + **bare_metal_server_profile_virtual_network_interfaces_supported_model_dict + ) + ) # Verify the model instances are equivalent - assert bare_metal_server_profile_virtual_network_interfaces_supported_model == bare_metal_server_profile_virtual_network_interfaces_supported_model2 + assert ( + bare_metal_server_profile_virtual_network_interfaces_supported_model + == bare_metal_server_profile_virtual_network_interfaces_supported_model2 + ) # Convert model instance back to dict and verify no loss of data - bare_metal_server_profile_virtual_network_interfaces_supported_model_json2 = bare_metal_server_profile_virtual_network_interfaces_supported_model.to_dict() - assert bare_metal_server_profile_virtual_network_interfaces_supported_model_json2 == bare_metal_server_profile_virtual_network_interfaces_supported_model_json + bare_metal_server_profile_virtual_network_interfaces_supported_model_json2 = ( + bare_metal_server_profile_virtual_network_interfaces_supported_model.to_dict() + ) + assert ( + bare_metal_server_profile_virtual_network_interfaces_supported_model_json2 + == bare_metal_server_profile_virtual_network_interfaces_supported_model_json + ) class TestModel_BareMetalServerStatusReason: @@ -56347,16 +57335,26 @@ def test_bare_metal_server_status_reason_serialization(self): # Construct a json representation of a BareMetalServerStatusReason model bare_metal_server_status_reason_model_json = {} bare_metal_server_status_reason_model_json['code'] = 'cannot_start_capacity' - bare_metal_server_status_reason_model_json['message'] = 'The bare metal server cannot start as there is no more capacity in this\nzone for a bare metal server with the requested profile.' - bare_metal_server_status_reason_model_json['more_info'] = 'https://console.bluemix.net/docs/iaas/bare_metal_server.html' + bare_metal_server_status_reason_model_json['message'] = ( + 'The bare metal server cannot start as there is no more capacity in this\nzone for a bare metal server with the requested profile.' + ) + bare_metal_server_status_reason_model_json['more_info'] = ( + 'https://console.bluemix.net/docs/iaas/bare_metal_server.html' + ) # Construct a model instance of BareMetalServerStatusReason by calling from_dict on the json representation - bare_metal_server_status_reason_model = BareMetalServerStatusReason.from_dict(bare_metal_server_status_reason_model_json) + bare_metal_server_status_reason_model = BareMetalServerStatusReason.from_dict( + bare_metal_server_status_reason_model_json + ) assert bare_metal_server_status_reason_model != False # Construct a model instance of BareMetalServerStatusReason by calling from_dict on the json representation - bare_metal_server_status_reason_model_dict = BareMetalServerStatusReason.from_dict(bare_metal_server_status_reason_model_json).__dict__ - bare_metal_server_status_reason_model2 = BareMetalServerStatusReason(**bare_metal_server_status_reason_model_dict) + bare_metal_server_status_reason_model_dict = BareMetalServerStatusReason.from_dict( + bare_metal_server_status_reason_model_json + ).__dict__ + bare_metal_server_status_reason_model2 = BareMetalServerStatusReason( + **bare_metal_server_status_reason_model_dict + ) # Verify the model instances are equivalent assert bare_metal_server_status_reason_model == bare_metal_server_status_reason_model2 @@ -56383,19 +57381,30 @@ def test_bare_metal_server_trusted_platform_module_serialization(self): bare_metal_server_trusted_platform_module_model_json['supported_modes'] = ['disabled'] # Construct a model instance of BareMetalServerTrustedPlatformModule by calling from_dict on the json representation - bare_metal_server_trusted_platform_module_model = BareMetalServerTrustedPlatformModule.from_dict(bare_metal_server_trusted_platform_module_model_json) + bare_metal_server_trusted_platform_module_model = BareMetalServerTrustedPlatformModule.from_dict( + bare_metal_server_trusted_platform_module_model_json + ) assert bare_metal_server_trusted_platform_module_model != False # Construct a model instance of BareMetalServerTrustedPlatformModule by calling from_dict on the json representation - bare_metal_server_trusted_platform_module_model_dict = BareMetalServerTrustedPlatformModule.from_dict(bare_metal_server_trusted_platform_module_model_json).__dict__ - bare_metal_server_trusted_platform_module_model2 = BareMetalServerTrustedPlatformModule(**bare_metal_server_trusted_platform_module_model_dict) + bare_metal_server_trusted_platform_module_model_dict = BareMetalServerTrustedPlatformModule.from_dict( + bare_metal_server_trusted_platform_module_model_json + ).__dict__ + bare_metal_server_trusted_platform_module_model2 = BareMetalServerTrustedPlatformModule( + **bare_metal_server_trusted_platform_module_model_dict + ) # Verify the model instances are equivalent assert bare_metal_server_trusted_platform_module_model == bare_metal_server_trusted_platform_module_model2 # Convert model instance back to dict and verify no loss of data - bare_metal_server_trusted_platform_module_model_json2 = bare_metal_server_trusted_platform_module_model.to_dict() - assert bare_metal_server_trusted_platform_module_model_json2 == bare_metal_server_trusted_platform_module_model_json + bare_metal_server_trusted_platform_module_model_json2 = ( + bare_metal_server_trusted_platform_module_model.to_dict() + ) + assert ( + bare_metal_server_trusted_platform_module_model_json2 + == bare_metal_server_trusted_platform_module_model_json + ) class TestModel_BareMetalServerTrustedPlatformModulePatch: @@ -56413,19 +57422,35 @@ def test_bare_metal_server_trusted_platform_module_patch_serialization(self): bare_metal_server_trusted_platform_module_patch_model_json['mode'] = 'disabled' # Construct a model instance of BareMetalServerTrustedPlatformModulePatch by calling from_dict on the json representation - bare_metal_server_trusted_platform_module_patch_model = BareMetalServerTrustedPlatformModulePatch.from_dict(bare_metal_server_trusted_platform_module_patch_model_json) + bare_metal_server_trusted_platform_module_patch_model = BareMetalServerTrustedPlatformModulePatch.from_dict( + bare_metal_server_trusted_platform_module_patch_model_json + ) assert bare_metal_server_trusted_platform_module_patch_model != False # Construct a model instance of BareMetalServerTrustedPlatformModulePatch by calling from_dict on the json representation - bare_metal_server_trusted_platform_module_patch_model_dict = BareMetalServerTrustedPlatformModulePatch.from_dict(bare_metal_server_trusted_platform_module_patch_model_json).__dict__ - bare_metal_server_trusted_platform_module_patch_model2 = BareMetalServerTrustedPlatformModulePatch(**bare_metal_server_trusted_platform_module_patch_model_dict) + bare_metal_server_trusted_platform_module_patch_model_dict = ( + BareMetalServerTrustedPlatformModulePatch.from_dict( + bare_metal_server_trusted_platform_module_patch_model_json + ).__dict__ + ) + bare_metal_server_trusted_platform_module_patch_model2 = BareMetalServerTrustedPlatformModulePatch( + **bare_metal_server_trusted_platform_module_patch_model_dict + ) # Verify the model instances are equivalent - assert bare_metal_server_trusted_platform_module_patch_model == bare_metal_server_trusted_platform_module_patch_model2 + assert ( + bare_metal_server_trusted_platform_module_patch_model + == bare_metal_server_trusted_platform_module_patch_model2 + ) # Convert model instance back to dict and verify no loss of data - bare_metal_server_trusted_platform_module_patch_model_json2 = bare_metal_server_trusted_platform_module_patch_model.to_dict() - assert bare_metal_server_trusted_platform_module_patch_model_json2 == bare_metal_server_trusted_platform_module_patch_model_json + bare_metal_server_trusted_platform_module_patch_model_json2 = ( + bare_metal_server_trusted_platform_module_patch_model.to_dict() + ) + assert ( + bare_metal_server_trusted_platform_module_patch_model_json2 + == bare_metal_server_trusted_platform_module_patch_model_json + ) class TestModel_BareMetalServerTrustedPlatformModulePrototype: @@ -56443,19 +57468,37 @@ def test_bare_metal_server_trusted_platform_module_prototype_serialization(self) bare_metal_server_trusted_platform_module_prototype_model_json['mode'] = 'disabled' # Construct a model instance of BareMetalServerTrustedPlatformModulePrototype by calling from_dict on the json representation - bare_metal_server_trusted_platform_module_prototype_model = BareMetalServerTrustedPlatformModulePrototype.from_dict(bare_metal_server_trusted_platform_module_prototype_model_json) + bare_metal_server_trusted_platform_module_prototype_model = ( + BareMetalServerTrustedPlatformModulePrototype.from_dict( + bare_metal_server_trusted_platform_module_prototype_model_json + ) + ) assert bare_metal_server_trusted_platform_module_prototype_model != False # Construct a model instance of BareMetalServerTrustedPlatformModulePrototype by calling from_dict on the json representation - bare_metal_server_trusted_platform_module_prototype_model_dict = BareMetalServerTrustedPlatformModulePrototype.from_dict(bare_metal_server_trusted_platform_module_prototype_model_json).__dict__ - bare_metal_server_trusted_platform_module_prototype_model2 = BareMetalServerTrustedPlatformModulePrototype(**bare_metal_server_trusted_platform_module_prototype_model_dict) + bare_metal_server_trusted_platform_module_prototype_model_dict = ( + BareMetalServerTrustedPlatformModulePrototype.from_dict( + bare_metal_server_trusted_platform_module_prototype_model_json + ).__dict__ + ) + bare_metal_server_trusted_platform_module_prototype_model2 = BareMetalServerTrustedPlatformModulePrototype( + **bare_metal_server_trusted_platform_module_prototype_model_dict + ) # Verify the model instances are equivalent - assert bare_metal_server_trusted_platform_module_prototype_model == bare_metal_server_trusted_platform_module_prototype_model2 + assert ( + bare_metal_server_trusted_platform_module_prototype_model + == bare_metal_server_trusted_platform_module_prototype_model2 + ) # Convert model instance back to dict and verify no loss of data - bare_metal_server_trusted_platform_module_prototype_model_json2 = bare_metal_server_trusted_platform_module_prototype_model.to_dict() - assert bare_metal_server_trusted_platform_module_prototype_model_json2 == bare_metal_server_trusted_platform_module_prototype_model_json + bare_metal_server_trusted_platform_module_prototype_model_json2 = ( + bare_metal_server_trusted_platform_module_prototype_model.to_dict() + ) + assert ( + bare_metal_server_trusted_platform_module_prototype_model_json2 + == bare_metal_server_trusted_platform_module_prototype_model_json + ) class TestModel_CatalogOfferingVersionPlanReference: @@ -56475,16 +57518,24 @@ def test_catalog_offering_version_plan_reference_serialization(self): # Construct a json representation of a CatalogOfferingVersionPlanReference model catalog_offering_version_plan_reference_model_json = {} - catalog_offering_version_plan_reference_model_json['crn'] = 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:51c9e0db-2911-45a6-adb0-ac5332d27cf2:plan:sw.51c9e0db-2911-45a6-adb0-ac5332d27cf2.772c0dbe-aa62-482e-adbe-a3fc20101e0e' + catalog_offering_version_plan_reference_model_json['crn'] = ( + 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:51c9e0db-2911-45a6-adb0-ac5332d27cf2:plan:sw.51c9e0db-2911-45a6-adb0-ac5332d27cf2.772c0dbe-aa62-482e-adbe-a3fc20101e0e' + ) catalog_offering_version_plan_reference_model_json['deleted'] = deleted_model # Construct a model instance of CatalogOfferingVersionPlanReference by calling from_dict on the json representation - catalog_offering_version_plan_reference_model = CatalogOfferingVersionPlanReference.from_dict(catalog_offering_version_plan_reference_model_json) + catalog_offering_version_plan_reference_model = CatalogOfferingVersionPlanReference.from_dict( + catalog_offering_version_plan_reference_model_json + ) assert catalog_offering_version_plan_reference_model != False # Construct a model instance of CatalogOfferingVersionPlanReference by calling from_dict on the json representation - catalog_offering_version_plan_reference_model_dict = CatalogOfferingVersionPlanReference.from_dict(catalog_offering_version_plan_reference_model_json).__dict__ - catalog_offering_version_plan_reference_model2 = CatalogOfferingVersionPlanReference(**catalog_offering_version_plan_reference_model_dict) + catalog_offering_version_plan_reference_model_dict = CatalogOfferingVersionPlanReference.from_dict( + catalog_offering_version_plan_reference_model_json + ).__dict__ + catalog_offering_version_plan_reference_model2 = CatalogOfferingVersionPlanReference( + **catalog_offering_version_plan_reference_model_dict + ) # Verify the model instances are equivalent assert catalog_offering_version_plan_reference_model == catalog_offering_version_plan_reference_model2 @@ -56506,15 +57557,23 @@ def test_catalog_offering_version_reference_serialization(self): # Construct a json representation of a CatalogOfferingVersionReference model catalog_offering_version_reference_model_json = {} - catalog_offering_version_reference_model_json['crn'] = 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:version:00111601-0ec5-41ac-b142-96d1e64e6442/ec66bec2-6a33-42d6-9323-26dd4dc8875d' + catalog_offering_version_reference_model_json['crn'] = ( + 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:version:00111601-0ec5-41ac-b142-96d1e64e6442/ec66bec2-6a33-42d6-9323-26dd4dc8875d' + ) # Construct a model instance of CatalogOfferingVersionReference by calling from_dict on the json representation - catalog_offering_version_reference_model = CatalogOfferingVersionReference.from_dict(catalog_offering_version_reference_model_json) + catalog_offering_version_reference_model = CatalogOfferingVersionReference.from_dict( + catalog_offering_version_reference_model_json + ) assert catalog_offering_version_reference_model != False # Construct a model instance of CatalogOfferingVersionReference by calling from_dict on the json representation - catalog_offering_version_reference_model_dict = CatalogOfferingVersionReference.from_dict(catalog_offering_version_reference_model_json).__dict__ - catalog_offering_version_reference_model2 = CatalogOfferingVersionReference(**catalog_offering_version_reference_model_dict) + catalog_offering_version_reference_model_dict = CatalogOfferingVersionReference.from_dict( + catalog_offering_version_reference_model_json + ).__dict__ + catalog_offering_version_reference_model2 = CatalogOfferingVersionReference( + **catalog_offering_version_reference_model_dict + ) # Verify the model instances are equivalent assert catalog_offering_version_reference_model == catalog_offering_version_reference_model2 @@ -56536,15 +57595,23 @@ def test_certificate_instance_reference_serialization(self): # Construct a json representation of a CertificateInstanceReference model certificate_instance_reference_model_json = {} - certificate_instance_reference_model_json['crn'] = 'crn:v1:bluemix:public:secrets-manager:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:36fa422d-080d-4d83-8d2d-86851b4001df:secret:2e786aab-42fa-63ed-14f8-d66d552f4dd5' + certificate_instance_reference_model_json['crn'] = ( + 'crn:v1:bluemix:public:secrets-manager:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:36fa422d-080d-4d83-8d2d-86851b4001df:secret:2e786aab-42fa-63ed-14f8-d66d552f4dd5' + ) # Construct a model instance of CertificateInstanceReference by calling from_dict on the json representation - certificate_instance_reference_model = CertificateInstanceReference.from_dict(certificate_instance_reference_model_json) + certificate_instance_reference_model = CertificateInstanceReference.from_dict( + certificate_instance_reference_model_json + ) assert certificate_instance_reference_model != False # Construct a model instance of CertificateInstanceReference by calling from_dict on the json representation - certificate_instance_reference_model_dict = CertificateInstanceReference.from_dict(certificate_instance_reference_model_json).__dict__ - certificate_instance_reference_model2 = CertificateInstanceReference(**certificate_instance_reference_model_dict) + certificate_instance_reference_model_dict = CertificateInstanceReference.from_dict( + certificate_instance_reference_model_json + ).__dict__ + certificate_instance_reference_model2 = CertificateInstanceReference( + **certificate_instance_reference_model_dict + ) # Verify the model instances are equivalent assert certificate_instance_reference_model == certificate_instance_reference_model2 @@ -56566,16 +57633,24 @@ def test_cloud_object_storage_bucket_reference_serialization(self): # Construct a json representation of a CloudObjectStorageBucketReference model cloud_object_storage_bucket_reference_model_json = {} - cloud_object_storage_bucket_reference_model_json['crn'] = 'crn:v1:bluemix:public:cloud-object-storage:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1a0ec336-f391-4091-a6fb-5e084a4c56f4:bucket:my-bucket' + cloud_object_storage_bucket_reference_model_json['crn'] = ( + 'crn:v1:bluemix:public:cloud-object-storage:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1a0ec336-f391-4091-a6fb-5e084a4c56f4:bucket:my-bucket' + ) cloud_object_storage_bucket_reference_model_json['name'] = 'bucket-27200-lwx4cfvcue' # Construct a model instance of CloudObjectStorageBucketReference by calling from_dict on the json representation - cloud_object_storage_bucket_reference_model = CloudObjectStorageBucketReference.from_dict(cloud_object_storage_bucket_reference_model_json) + cloud_object_storage_bucket_reference_model = CloudObjectStorageBucketReference.from_dict( + cloud_object_storage_bucket_reference_model_json + ) assert cloud_object_storage_bucket_reference_model != False # Construct a model instance of CloudObjectStorageBucketReference by calling from_dict on the json representation - cloud_object_storage_bucket_reference_model_dict = CloudObjectStorageBucketReference.from_dict(cloud_object_storage_bucket_reference_model_json).__dict__ - cloud_object_storage_bucket_reference_model2 = CloudObjectStorageBucketReference(**cloud_object_storage_bucket_reference_model_dict) + cloud_object_storage_bucket_reference_model_dict = CloudObjectStorageBucketReference.from_dict( + cloud_object_storage_bucket_reference_model_json + ).__dict__ + cloud_object_storage_bucket_reference_model2 = CloudObjectStorageBucketReference( + **cloud_object_storage_bucket_reference_model_dict + ) # Verify the model instances are equivalent assert cloud_object_storage_bucket_reference_model == cloud_object_storage_bucket_reference_model2 @@ -56600,12 +57675,18 @@ def test_cloud_object_storage_object_reference_serialization(self): cloud_object_storage_object_reference_model_json['name'] = 'my-object' # Construct a model instance of CloudObjectStorageObjectReference by calling from_dict on the json representation - cloud_object_storage_object_reference_model = CloudObjectStorageObjectReference.from_dict(cloud_object_storage_object_reference_model_json) + cloud_object_storage_object_reference_model = CloudObjectStorageObjectReference.from_dict( + cloud_object_storage_object_reference_model_json + ) assert cloud_object_storage_object_reference_model != False # Construct a model instance of CloudObjectStorageObjectReference by calling from_dict on the json representation - cloud_object_storage_object_reference_model_dict = CloudObjectStorageObjectReference.from_dict(cloud_object_storage_object_reference_model_json).__dict__ - cloud_object_storage_object_reference_model2 = CloudObjectStorageObjectReference(**cloud_object_storage_object_reference_model_dict) + cloud_object_storage_object_reference_model_dict = CloudObjectStorageObjectReference.from_dict( + cloud_object_storage_object_reference_model_json + ).__dict__ + cloud_object_storage_object_reference_model2 = CloudObjectStorageObjectReference( + **cloud_object_storage_object_reference_model_dict + ) # Verify the model instances are equivalent assert cloud_object_storage_object_reference_model == cloud_object_storage_object_reference_model2 @@ -56629,16 +57710,22 @@ def test_cluster_network_serialization(self): cluster_network_lifecycle_reason_model = {} # ClusterNetworkLifecycleReason cluster_network_lifecycle_reason_model['code'] = 'resource_suspended_by_provider' - cluster_network_lifecycle_reason_model['message'] = 'The resource has been suspended. Contact IBM support with the CRN for next steps.' + cluster_network_lifecycle_reason_model['message'] = ( + 'The resource has been suspended. Contact IBM support with the CRN for next steps.' + ) cluster_network_lifecycle_reason_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#resource-suspension' cluster_network_profile_reference_model = {} # ClusterNetworkProfileReference - cluster_network_profile_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/cluster_network/profiles/h100' + cluster_network_profile_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/cluster_network/profiles/h100' + ) cluster_network_profile_reference_model['name'] = 'h100' cluster_network_profile_reference_model['resource_type'] = 'cluster_network_profile' resource_group_reference_model = {} # ResourceGroupReference - resource_group_reference_model['href'] = 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + resource_group_reference_model['href'] = ( + 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + ) resource_group_reference_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' resource_group_reference_model['name'] = 'Default' @@ -56650,9 +57737,13 @@ def test_cluster_network_serialization(self): deleted_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#deleted-resources' vpc_reference_model = {} # VPCReference - vpc_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_model['deleted'] = deleted_model - vpc_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_model['id'] = 'r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' vpc_reference_model['name'] = 'my-vpc' vpc_reference_model['resource_type'] = 'vpc' @@ -56664,8 +57755,12 @@ def test_cluster_network_serialization(self): # Construct a json representation of a ClusterNetwork model cluster_network_model_json = {} cluster_network_model_json['created_at'] = '2019-01-01T12:00:00Z' - cluster_network_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::cluster-network:0717-da0df18c-7598-4633-a648-fdaac28a5573' - cluster_network_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/cluster_networks/0717-da0df18c-7598-4633-a648-fdaac28a5573' + cluster_network_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::cluster-network:0717-da0df18c-7598-4633-a648-fdaac28a5573' + ) + cluster_network_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/cluster_networks/0717-da0df18c-7598-4633-a648-fdaac28a5573' + ) cluster_network_model_json['id'] = '0717-da0df18c-7598-4633-a648-fdaac28a5573' cluster_network_model_json['lifecycle_reasons'] = [cluster_network_lifecycle_reason_model] cluster_network_model_json['lifecycle_state'] = 'stable' @@ -56707,16 +57802,22 @@ def test_cluster_network_collection_serialization(self): cluster_network_lifecycle_reason_model = {} # ClusterNetworkLifecycleReason cluster_network_lifecycle_reason_model['code'] = 'resource_suspended_by_provider' - cluster_network_lifecycle_reason_model['message'] = 'The resource has been suspended. Contact IBM support with the CRN for next steps.' + cluster_network_lifecycle_reason_model['message'] = ( + 'The resource has been suspended. Contact IBM support with the CRN for next steps.' + ) cluster_network_lifecycle_reason_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#resource-suspension' cluster_network_profile_reference_model = {} # ClusterNetworkProfileReference - cluster_network_profile_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/cluster_network/profiles/h100' + cluster_network_profile_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/cluster_network/profiles/h100' + ) cluster_network_profile_reference_model['name'] = 'h100' cluster_network_profile_reference_model['resource_type'] = 'cluster_network_profile' resource_group_reference_model = {} # ResourceGroupReference - resource_group_reference_model['href'] = 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + resource_group_reference_model['href'] = ( + 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + ) resource_group_reference_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' resource_group_reference_model['name'] = 'Default' @@ -56728,9 +57829,13 @@ def test_cluster_network_collection_serialization(self): deleted_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#deleted-resources' vpc_reference_model = {} # VPCReference - vpc_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_model['deleted'] = deleted_model - vpc_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_model['id'] = 'r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' vpc_reference_model['name'] = 'my-vpc' vpc_reference_model['resource_type'] = 'vpc' @@ -56741,8 +57846,12 @@ def test_cluster_network_collection_serialization(self): cluster_network_model = {} # ClusterNetwork cluster_network_model['created_at'] = '2024-10-28T11:59:46Z' - cluster_network_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::cluster-network:0717-da0df18c-7598-4633-a648-fdaac28a5573' - cluster_network_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/cluster_networks/0717-da0df18c-7598-4633-a648-fdaac28a5573' + cluster_network_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::cluster-network:0717-da0df18c-7598-4633-a648-fdaac28a5573' + ) + cluster_network_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/cluster_networks/0717-da0df18c-7598-4633-a648-fdaac28a5573' + ) cluster_network_model['id'] = '0717-da0df18c-7598-4633-a648-fdaac28a5573' cluster_network_model['lifecycle_reasons'] = [cluster_network_lifecycle_reason_model] cluster_network_model['lifecycle_state'] = 'stable' @@ -56770,7 +57879,9 @@ def test_cluster_network_collection_serialization(self): assert cluster_network_collection_model != False # Construct a model instance of ClusterNetworkCollection by calling from_dict on the json representation - cluster_network_collection_model_dict = ClusterNetworkCollection.from_dict(cluster_network_collection_model_json).__dict__ + cluster_network_collection_model_dict = ClusterNetworkCollection.from_dict( + cluster_network_collection_model_json + ).__dict__ cluster_network_collection_model2 = ClusterNetworkCollection(**cluster_network_collection_model_dict) # Verify the model instances are equivalent @@ -56795,8 +57906,12 @@ def test_cluster_network_interface_serialization(self): cluster_network_interface_lifecycle_reason_model = {} # ClusterNetworkInterfaceLifecycleReason cluster_network_interface_lifecycle_reason_model['code'] = 'resource_suspended_by_provider' - cluster_network_interface_lifecycle_reason_model['message'] = 'The resource has been suspended. Contact IBM support with the CRN for next steps.' - cluster_network_interface_lifecycle_reason_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#resource-suspension' + cluster_network_interface_lifecycle_reason_model['message'] = ( + 'The resource has been suspended. Contact IBM support with the CRN for next steps.' + ) + cluster_network_interface_lifecycle_reason_model['more_info'] = ( + 'https://cloud.ibm.com/apidocs/vpc#resource-suspension' + ) deleted_model = {} # Deleted deleted_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#deleted-resources' @@ -56804,28 +57919,40 @@ def test_cluster_network_interface_serialization(self): cluster_network_subnet_reserved_ip_reference_model = {} # ClusterNetworkSubnetReservedIPReference cluster_network_subnet_reserved_ip_reference_model['address'] = '10.1.0.6' cluster_network_subnet_reserved_ip_reference_model['deleted'] = deleted_model - cluster_network_subnet_reserved_ip_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/cluster_networks/0717-da0df18c-7598-4633-a648-fdaac28a5573/subnets/0717-7931845c-65c4-4b0a-80cd-7d9c1a6d7930/reserved_ips/63341ffa-1037-4b50-be40-676e3e9ac0c7' + cluster_network_subnet_reserved_ip_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/cluster_networks/0717-da0df18c-7598-4633-a648-fdaac28a5573/subnets/0717-7931845c-65c4-4b0a-80cd-7d9c1a6d7930/reserved_ips/63341ffa-1037-4b50-be40-676e3e9ac0c7' + ) cluster_network_subnet_reserved_ip_reference_model['id'] = '63341ffa-1037-4b50-be40-676e3e9ac0c7' cluster_network_subnet_reserved_ip_reference_model['name'] = 'my-cluster-network-subnet-reserved-ip' cluster_network_subnet_reserved_ip_reference_model['resource_type'] = 'cluster_network_subnet_reserved_ip' cluster_network_subnet_reference_model = {} # ClusterNetworkSubnetReference cluster_network_subnet_reference_model['deleted'] = deleted_model - cluster_network_subnet_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/cluster_networks/0717-da0df18c-7598-4633-a648-fdaac28a5573/subnets/0717-7931845c-65c4-4b0a-80cd-7d9c1a6d7930' + cluster_network_subnet_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/cluster_networks/0717-da0df18c-7598-4633-a648-fdaac28a5573/subnets/0717-7931845c-65c4-4b0a-80cd-7d9c1a6d7930' + ) cluster_network_subnet_reference_model['id'] = '0717-7931845c-65c4-4b0a-80cd-7d9c1a6d7930' cluster_network_subnet_reference_model['name'] = 'my-cluster-network-subnet' cluster_network_subnet_reference_model['resource_type'] = 'cluster_network_subnet' - cluster_network_interface_target_model = {} # ClusterNetworkInterfaceTargetInstanceClusterNetworkAttachmentReferenceClusterNetworkInterfaceContext - cluster_network_interface_target_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/cluster_network_attachments/0717-fb880975-db45-4459-8548-64e3995ac213' + cluster_network_interface_target_model = ( + {} + ) # ClusterNetworkInterfaceTargetInstanceClusterNetworkAttachmentReferenceClusterNetworkInterfaceContext + cluster_network_interface_target_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/cluster_network_attachments/0717-fb880975-db45-4459-8548-64e3995ac213' + ) cluster_network_interface_target_model['id'] = '0717-fb880975-db45-4459-8548-64e3995ac213' cluster_network_interface_target_model['name'] = 'my-instance-network-attachment' cluster_network_interface_target_model['resource_type'] = 'instance_cluster_network_attachment' vpc_reference_model = {} # VPCReference - vpc_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_model['deleted'] = deleted_model - vpc_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_model['id'] = 'r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' vpc_reference_model['name'] = 'my-vpc' vpc_reference_model['resource_type'] = 'vpc' @@ -56840,7 +57967,9 @@ def test_cluster_network_interface_serialization(self): cluster_network_interface_model_json['auto_delete'] = False cluster_network_interface_model_json['created_at'] = '2019-01-01T12:00:00Z' cluster_network_interface_model_json['enable_infrastructure_nat'] = False - cluster_network_interface_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/cluster_networks/0717-da0df18c-7598-4633-a648-fdaac28a5573/interfaces/0717-ffc092f7-5d02-4b93-ab69-26860529b9fb' + cluster_network_interface_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/cluster_networks/0717-da0df18c-7598-4633-a648-fdaac28a5573/interfaces/0717-ffc092f7-5d02-4b93-ab69-26860529b9fb' + ) cluster_network_interface_model_json['id'] = '0717-ffc092f7-5d02-4b93-ab69-26860529b9fb' cluster_network_interface_model_json['lifecycle_reasons'] = [cluster_network_interface_lifecycle_reason_model] cluster_network_interface_model_json['lifecycle_state'] = 'stable' @@ -56858,7 +57987,9 @@ def test_cluster_network_interface_serialization(self): assert cluster_network_interface_model != False # Construct a model instance of ClusterNetworkInterface by calling from_dict on the json representation - cluster_network_interface_model_dict = ClusterNetworkInterface.from_dict(cluster_network_interface_model_json).__dict__ + cluster_network_interface_model_dict = ClusterNetworkInterface.from_dict( + cluster_network_interface_model_json + ).__dict__ cluster_network_interface_model2 = ClusterNetworkInterface(**cluster_network_interface_model_dict) # Verify the model instances are equivalent @@ -56882,12 +58013,18 @@ def test_cluster_network_interface_collection_serialization(self): # Construct dict forms of any model objects needed in order to build this model. page_link_model = {} # PageLink - page_link_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/cluster_networks/0717-da0df18c-7598-4633-a648-fdaac28a5573/interfaces?limit=20' + page_link_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/cluster_networks/0717-da0df18c-7598-4633-a648-fdaac28a5573/interfaces?limit=20' + ) cluster_network_interface_lifecycle_reason_model = {} # ClusterNetworkInterfaceLifecycleReason cluster_network_interface_lifecycle_reason_model['code'] = 'resource_suspended_by_provider' - cluster_network_interface_lifecycle_reason_model['message'] = 'The resource has been suspended. Contact IBM support with the CRN for next steps.' - cluster_network_interface_lifecycle_reason_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#resource-suspension' + cluster_network_interface_lifecycle_reason_model['message'] = ( + 'The resource has been suspended. Contact IBM support with the CRN for next steps.' + ) + cluster_network_interface_lifecycle_reason_model['more_info'] = ( + 'https://cloud.ibm.com/apidocs/vpc#resource-suspension' + ) deleted_model = {} # Deleted deleted_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#deleted-resources' @@ -56895,28 +58032,40 @@ def test_cluster_network_interface_collection_serialization(self): cluster_network_subnet_reserved_ip_reference_model = {} # ClusterNetworkSubnetReservedIPReference cluster_network_subnet_reserved_ip_reference_model['address'] = '10.1.0.6' cluster_network_subnet_reserved_ip_reference_model['deleted'] = deleted_model - cluster_network_subnet_reserved_ip_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/cluster_networks/0717-da0df18c-7598-4633-a648-fdaac28a5573/subnets/0717-7931845c-65c4-4b0a-80cd-7d9c1a6d7930/reserved_ips/63341ffa-1037-4b50-be40-676e3e9ac0c7' + cluster_network_subnet_reserved_ip_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/cluster_networks/0717-da0df18c-7598-4633-a648-fdaac28a5573/subnets/0717-7931845c-65c4-4b0a-80cd-7d9c1a6d7930/reserved_ips/63341ffa-1037-4b50-be40-676e3e9ac0c7' + ) cluster_network_subnet_reserved_ip_reference_model['id'] = '63341ffa-1037-4b50-be40-676e3e9ac0c7' cluster_network_subnet_reserved_ip_reference_model['name'] = 'my-cluster-network-subnet-reserved-ip' cluster_network_subnet_reserved_ip_reference_model['resource_type'] = 'cluster_network_subnet_reserved_ip' cluster_network_subnet_reference_model = {} # ClusterNetworkSubnetReference cluster_network_subnet_reference_model['deleted'] = deleted_model - cluster_network_subnet_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/cluster_networks/0717-da0df18c-7598-4633-a648-fdaac28a5573/subnets/0717-7931845c-65c4-4b0a-80cd-7d9c1a6d7930' + cluster_network_subnet_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/cluster_networks/0717-da0df18c-7598-4633-a648-fdaac28a5573/subnets/0717-7931845c-65c4-4b0a-80cd-7d9c1a6d7930' + ) cluster_network_subnet_reference_model['id'] = '0717-7931845c-65c4-4b0a-80cd-7d9c1a6d7930' cluster_network_subnet_reference_model['name'] = 'my-cluster-network-subnet' cluster_network_subnet_reference_model['resource_type'] = 'cluster_network_subnet' - cluster_network_interface_target_model = {} # ClusterNetworkInterfaceTargetInstanceClusterNetworkAttachmentReferenceClusterNetworkInterfaceContext - cluster_network_interface_target_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/cluster_network_attachments/0717-fb880975-db45-4459-8548-64e3995ac213' + cluster_network_interface_target_model = ( + {} + ) # ClusterNetworkInterfaceTargetInstanceClusterNetworkAttachmentReferenceClusterNetworkInterfaceContext + cluster_network_interface_target_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/cluster_network_attachments/0717-fb880975-db45-4459-8548-64e3995ac213' + ) cluster_network_interface_target_model['id'] = '0717-fb880975-db45-4459-8548-64e3995ac213' cluster_network_interface_target_model['name'] = 'my-instance-network-attachment' cluster_network_interface_target_model['resource_type'] = 'instance_cluster_network_attachment' vpc_reference_model = {} # VPCReference - vpc_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_model['deleted'] = deleted_model - vpc_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_model['id'] = 'r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' vpc_reference_model['name'] = 'my-vpc' vpc_reference_model['resource_type'] = 'vpc' @@ -56930,7 +58079,9 @@ def test_cluster_network_interface_collection_serialization(self): cluster_network_interface_model['auto_delete'] = False cluster_network_interface_model['created_at'] = '2024-10-25T03:42:32.993000Z' cluster_network_interface_model['enable_infrastructure_nat'] = False - cluster_network_interface_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/cluster_networks/0717-da0df18c-7598-4633-a648-fdaac28a5573/interfaces/0717-ffc092f7-5d02-4b93-ab69-26860529b9fb' + cluster_network_interface_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/cluster_networks/0717-da0df18c-7598-4633-a648-fdaac28a5573/interfaces/0717-ffc092f7-5d02-4b93-ab69-26860529b9fb' + ) cluster_network_interface_model['id'] = '0717-ffc092f7-5d02-4b93-ab69-26860529b9fb' cluster_network_interface_model['lifecycle_reasons'] = [cluster_network_interface_lifecycle_reason_model] cluster_network_interface_model['lifecycle_state'] = 'stable' @@ -56952,12 +58103,18 @@ def test_cluster_network_interface_collection_serialization(self): cluster_network_interface_collection_model_json['total_count'] = 132 # Construct a model instance of ClusterNetworkInterfaceCollection by calling from_dict on the json representation - cluster_network_interface_collection_model = ClusterNetworkInterfaceCollection.from_dict(cluster_network_interface_collection_model_json) + cluster_network_interface_collection_model = ClusterNetworkInterfaceCollection.from_dict( + cluster_network_interface_collection_model_json + ) assert cluster_network_interface_collection_model != False # Construct a model instance of ClusterNetworkInterfaceCollection by calling from_dict on the json representation - cluster_network_interface_collection_model_dict = ClusterNetworkInterfaceCollection.from_dict(cluster_network_interface_collection_model_json).__dict__ - cluster_network_interface_collection_model2 = ClusterNetworkInterfaceCollection(**cluster_network_interface_collection_model_dict) + cluster_network_interface_collection_model_dict = ClusterNetworkInterfaceCollection.from_dict( + cluster_network_interface_collection_model_json + ).__dict__ + cluster_network_interface_collection_model2 = ClusterNetworkInterfaceCollection( + **cluster_network_interface_collection_model_dict + ) # Verify the model instances are equivalent assert cluster_network_interface_collection_model == cluster_network_interface_collection_model2 @@ -56980,23 +58137,38 @@ def test_cluster_network_interface_lifecycle_reason_serialization(self): # Construct a json representation of a ClusterNetworkInterfaceLifecycleReason model cluster_network_interface_lifecycle_reason_model_json = {} cluster_network_interface_lifecycle_reason_model_json['code'] = 'resource_suspended_by_provider' - cluster_network_interface_lifecycle_reason_model_json['message'] = 'The resource has been suspended. Contact IBM support with the CRN for next steps.' - cluster_network_interface_lifecycle_reason_model_json['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#resource-suspension' + cluster_network_interface_lifecycle_reason_model_json['message'] = ( + 'The resource has been suspended. Contact IBM support with the CRN for next steps.' + ) + cluster_network_interface_lifecycle_reason_model_json['more_info'] = ( + 'https://cloud.ibm.com/apidocs/vpc#resource-suspension' + ) # Construct a model instance of ClusterNetworkInterfaceLifecycleReason by calling from_dict on the json representation - cluster_network_interface_lifecycle_reason_model = ClusterNetworkInterfaceLifecycleReason.from_dict(cluster_network_interface_lifecycle_reason_model_json) + cluster_network_interface_lifecycle_reason_model = ClusterNetworkInterfaceLifecycleReason.from_dict( + cluster_network_interface_lifecycle_reason_model_json + ) assert cluster_network_interface_lifecycle_reason_model != False # Construct a model instance of ClusterNetworkInterfaceLifecycleReason by calling from_dict on the json representation - cluster_network_interface_lifecycle_reason_model_dict = ClusterNetworkInterfaceLifecycleReason.from_dict(cluster_network_interface_lifecycle_reason_model_json).__dict__ - cluster_network_interface_lifecycle_reason_model2 = ClusterNetworkInterfaceLifecycleReason(**cluster_network_interface_lifecycle_reason_model_dict) + cluster_network_interface_lifecycle_reason_model_dict = ClusterNetworkInterfaceLifecycleReason.from_dict( + cluster_network_interface_lifecycle_reason_model_json + ).__dict__ + cluster_network_interface_lifecycle_reason_model2 = ClusterNetworkInterfaceLifecycleReason( + **cluster_network_interface_lifecycle_reason_model_dict + ) # Verify the model instances are equivalent assert cluster_network_interface_lifecycle_reason_model == cluster_network_interface_lifecycle_reason_model2 # Convert model instance back to dict and verify no loss of data - cluster_network_interface_lifecycle_reason_model_json2 = cluster_network_interface_lifecycle_reason_model.to_dict() - assert cluster_network_interface_lifecycle_reason_model_json2 == cluster_network_interface_lifecycle_reason_model_json + cluster_network_interface_lifecycle_reason_model_json2 = ( + cluster_network_interface_lifecycle_reason_model.to_dict() + ) + assert ( + cluster_network_interface_lifecycle_reason_model_json2 + == cluster_network_interface_lifecycle_reason_model_json + ) class TestModel_ClusterNetworkInterfacePatch: @@ -57015,12 +58187,18 @@ def test_cluster_network_interface_patch_serialization(self): cluster_network_interface_patch_model_json['name'] = 'my-cluster-network-interface' # Construct a model instance of ClusterNetworkInterfacePatch by calling from_dict on the json representation - cluster_network_interface_patch_model = ClusterNetworkInterfacePatch.from_dict(cluster_network_interface_patch_model_json) + cluster_network_interface_patch_model = ClusterNetworkInterfacePatch.from_dict( + cluster_network_interface_patch_model_json + ) assert cluster_network_interface_patch_model != False # Construct a model instance of ClusterNetworkInterfacePatch by calling from_dict on the json representation - cluster_network_interface_patch_model_dict = ClusterNetworkInterfacePatch.from_dict(cluster_network_interface_patch_model_json).__dict__ - cluster_network_interface_patch_model2 = ClusterNetworkInterfacePatch(**cluster_network_interface_patch_model_dict) + cluster_network_interface_patch_model_dict = ClusterNetworkInterfacePatch.from_dict( + cluster_network_interface_patch_model_json + ).__dict__ + cluster_network_interface_patch_model2 = ClusterNetworkInterfacePatch( + **cluster_network_interface_patch_model_dict + ) # Verify the model instances are equivalent assert cluster_network_interface_patch_model == cluster_network_interface_patch_model2 @@ -57048,14 +58226,18 @@ def test_cluster_network_interface_reference_serialization(self): cluster_network_subnet_reserved_ip_reference_model = {} # ClusterNetworkSubnetReservedIPReference cluster_network_subnet_reserved_ip_reference_model['address'] = '10.1.0.6' cluster_network_subnet_reserved_ip_reference_model['deleted'] = deleted_model - cluster_network_subnet_reserved_ip_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/cluster_networks/0717-da0df18c-7598-4633-a648-fdaac28a5573/subnets/0717-7931845c-65c4-4b0a-80cd-7d9c1a6d7930/reserved_ips/63341ffa-1037-4b50-be40-676e3e9ac0c7' + cluster_network_subnet_reserved_ip_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/cluster_networks/0717-da0df18c-7598-4633-a648-fdaac28a5573/subnets/0717-7931845c-65c4-4b0a-80cd-7d9c1a6d7930/reserved_ips/63341ffa-1037-4b50-be40-676e3e9ac0c7' + ) cluster_network_subnet_reserved_ip_reference_model['id'] = '63341ffa-1037-4b50-be40-676e3e9ac0c7' cluster_network_subnet_reserved_ip_reference_model['name'] = 'my-cluster-network-subnet-reserved-ip' cluster_network_subnet_reserved_ip_reference_model['resource_type'] = 'cluster_network_subnet_reserved_ip' cluster_network_subnet_reference_model = {} # ClusterNetworkSubnetReference cluster_network_subnet_reference_model['deleted'] = deleted_model - cluster_network_subnet_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/cluster_networks/0717-da0df18c-7598-4633-a648-fdaac28a5573/subnets/0717-7931845c-65c4-4b0a-80cd-7d9c1a6d7930' + cluster_network_subnet_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/cluster_networks/0717-da0df18c-7598-4633-a648-fdaac28a5573/subnets/0717-7931845c-65c4-4b0a-80cd-7d9c1a6d7930' + ) cluster_network_subnet_reference_model['id'] = '0717-7931845c-65c4-4b0a-80cd-7d9c1a6d7930' cluster_network_subnet_reference_model['name'] = 'my-cluster-network-subnet' cluster_network_subnet_reference_model['resource_type'] = 'cluster_network_subnet' @@ -57063,20 +58245,30 @@ def test_cluster_network_interface_reference_serialization(self): # Construct a json representation of a ClusterNetworkInterfaceReference model cluster_network_interface_reference_model_json = {} cluster_network_interface_reference_model_json['deleted'] = deleted_model - cluster_network_interface_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/cluster_networks/0717-da0df18c-7598-4633-a648-fdaac28a5573/interfaces/0717-ffc092f7-5d02-4b93-ab69-26860529b9fb' + cluster_network_interface_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/cluster_networks/0717-da0df18c-7598-4633-a648-fdaac28a5573/interfaces/0717-ffc092f7-5d02-4b93-ab69-26860529b9fb' + ) cluster_network_interface_reference_model_json['id'] = '0717-ffc092f7-5d02-4b93-ab69-26860529b9fb' cluster_network_interface_reference_model_json['name'] = 'my-cluster-network-interface' - cluster_network_interface_reference_model_json['primary_ip'] = cluster_network_subnet_reserved_ip_reference_model + cluster_network_interface_reference_model_json['primary_ip'] = ( + cluster_network_subnet_reserved_ip_reference_model + ) cluster_network_interface_reference_model_json['resource_type'] = 'cluster_network_interface' cluster_network_interface_reference_model_json['subnet'] = cluster_network_subnet_reference_model # Construct a model instance of ClusterNetworkInterfaceReference by calling from_dict on the json representation - cluster_network_interface_reference_model = ClusterNetworkInterfaceReference.from_dict(cluster_network_interface_reference_model_json) + cluster_network_interface_reference_model = ClusterNetworkInterfaceReference.from_dict( + cluster_network_interface_reference_model_json + ) assert cluster_network_interface_reference_model != False # Construct a model instance of ClusterNetworkInterfaceReference by calling from_dict on the json representation - cluster_network_interface_reference_model_dict = ClusterNetworkInterfaceReference.from_dict(cluster_network_interface_reference_model_json).__dict__ - cluster_network_interface_reference_model2 = ClusterNetworkInterfaceReference(**cluster_network_interface_reference_model_dict) + cluster_network_interface_reference_model_dict = ClusterNetworkInterfaceReference.from_dict( + cluster_network_interface_reference_model_json + ).__dict__ + cluster_network_interface_reference_model2 = ClusterNetworkInterfaceReference( + **cluster_network_interface_reference_model_dict + ) # Verify the model instances are equivalent assert cluster_network_interface_reference_model == cluster_network_interface_reference_model2 @@ -57099,16 +58291,26 @@ def test_cluster_network_lifecycle_reason_serialization(self): # Construct a json representation of a ClusterNetworkLifecycleReason model cluster_network_lifecycle_reason_model_json = {} cluster_network_lifecycle_reason_model_json['code'] = 'resource_suspended_by_provider' - cluster_network_lifecycle_reason_model_json['message'] = 'The resource has been suspended. Contact IBM support with the CRN for next steps.' - cluster_network_lifecycle_reason_model_json['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#resource-suspension' + cluster_network_lifecycle_reason_model_json['message'] = ( + 'The resource has been suspended. Contact IBM support with the CRN for next steps.' + ) + cluster_network_lifecycle_reason_model_json['more_info'] = ( + 'https://cloud.ibm.com/apidocs/vpc#resource-suspension' + ) # Construct a model instance of ClusterNetworkLifecycleReason by calling from_dict on the json representation - cluster_network_lifecycle_reason_model = ClusterNetworkLifecycleReason.from_dict(cluster_network_lifecycle_reason_model_json) + cluster_network_lifecycle_reason_model = ClusterNetworkLifecycleReason.from_dict( + cluster_network_lifecycle_reason_model_json + ) assert cluster_network_lifecycle_reason_model != False # Construct a model instance of ClusterNetworkLifecycleReason by calling from_dict on the json representation - cluster_network_lifecycle_reason_model_dict = ClusterNetworkLifecycleReason.from_dict(cluster_network_lifecycle_reason_model_json).__dict__ - cluster_network_lifecycle_reason_model2 = ClusterNetworkLifecycleReason(**cluster_network_lifecycle_reason_model_dict) + cluster_network_lifecycle_reason_model_dict = ClusterNetworkLifecycleReason.from_dict( + cluster_network_lifecycle_reason_model_json + ).__dict__ + cluster_network_lifecycle_reason_model2 = ClusterNetworkLifecycleReason( + **cluster_network_lifecycle_reason_model_dict + ) # Verify the model instances are equivalent assert cluster_network_lifecycle_reason_model == cluster_network_lifecycle_reason_model2 @@ -57161,7 +58363,9 @@ def test_cluster_network_profile_serialization(self): # Construct dict forms of any model objects needed in order to build this model. instance_profile_reference_model = {} # InstanceProfileReference - instance_profile_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instance/profiles/tx3-160x1536-8h100' + instance_profile_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instance/profiles/tx3-160x1536-8h100' + ) instance_profile_reference_model['name'] = 'tx3-160x1536-8h100' instance_profile_reference_model['resource_type'] = 'instance_profile' @@ -57172,7 +58376,9 @@ def test_cluster_network_profile_serialization(self): # Construct a json representation of a ClusterNetworkProfile model cluster_network_profile_model_json = {} cluster_network_profile_model_json['family'] = 'vela' - cluster_network_profile_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/cluster_network/profiles/h100' + cluster_network_profile_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/cluster_network/profiles/h100' + ) cluster_network_profile_model_json['name'] = 'h100' cluster_network_profile_model_json['resource_type'] = 'cluster_network_profile' cluster_network_profile_model_json['supported_instance_profiles'] = [instance_profile_reference_model] @@ -57183,7 +58389,9 @@ def test_cluster_network_profile_serialization(self): assert cluster_network_profile_model != False # Construct a model instance of ClusterNetworkProfile by calling from_dict on the json representation - cluster_network_profile_model_dict = ClusterNetworkProfile.from_dict(cluster_network_profile_model_json).__dict__ + cluster_network_profile_model_dict = ClusterNetworkProfile.from_dict( + cluster_network_profile_model_json + ).__dict__ cluster_network_profile_model2 = ClusterNetworkProfile(**cluster_network_profile_model_dict) # Verify the model instances are equivalent @@ -57210,7 +58418,9 @@ def test_cluster_network_profile_collection_serialization(self): page_link_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/cluster_network/profiles?limit=50' instance_profile_reference_model = {} # InstanceProfileReference - instance_profile_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instance/profiles/tx3-160x1536-8h100' + instance_profile_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instance/profiles/tx3-160x1536-8h100' + ) instance_profile_reference_model['name'] = 'tx3-160x1536-8h100' instance_profile_reference_model['resource_type'] = 'instance_profile' @@ -57235,12 +58445,18 @@ def test_cluster_network_profile_collection_serialization(self): cluster_network_profile_collection_model_json['total_count'] = 132 # Construct a model instance of ClusterNetworkProfileCollection by calling from_dict on the json representation - cluster_network_profile_collection_model = ClusterNetworkProfileCollection.from_dict(cluster_network_profile_collection_model_json) + cluster_network_profile_collection_model = ClusterNetworkProfileCollection.from_dict( + cluster_network_profile_collection_model_json + ) assert cluster_network_profile_collection_model != False # Construct a model instance of ClusterNetworkProfileCollection by calling from_dict on the json representation - cluster_network_profile_collection_model_dict = ClusterNetworkProfileCollection.from_dict(cluster_network_profile_collection_model_json).__dict__ - cluster_network_profile_collection_model2 = ClusterNetworkProfileCollection(**cluster_network_profile_collection_model_dict) + cluster_network_profile_collection_model_dict = ClusterNetworkProfileCollection.from_dict( + cluster_network_profile_collection_model_json + ).__dict__ + cluster_network_profile_collection_model2 = ClusterNetworkProfileCollection( + **cluster_network_profile_collection_model_dict + ) # Verify the model instances are equivalent assert cluster_network_profile_collection_model == cluster_network_profile_collection_model2 @@ -57262,17 +58478,25 @@ def test_cluster_network_profile_reference_serialization(self): # Construct a json representation of a ClusterNetworkProfileReference model cluster_network_profile_reference_model_json = {} - cluster_network_profile_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/cluster_network/profiles/h100' + cluster_network_profile_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/cluster_network/profiles/h100' + ) cluster_network_profile_reference_model_json['name'] = 'h100' cluster_network_profile_reference_model_json['resource_type'] = 'cluster_network_profile' # Construct a model instance of ClusterNetworkProfileReference by calling from_dict on the json representation - cluster_network_profile_reference_model = ClusterNetworkProfileReference.from_dict(cluster_network_profile_reference_model_json) + cluster_network_profile_reference_model = ClusterNetworkProfileReference.from_dict( + cluster_network_profile_reference_model_json + ) assert cluster_network_profile_reference_model != False # Construct a model instance of ClusterNetworkProfileReference by calling from_dict on the json representation - cluster_network_profile_reference_model_dict = ClusterNetworkProfileReference.from_dict(cluster_network_profile_reference_model_json).__dict__ - cluster_network_profile_reference_model2 = ClusterNetworkProfileReference(**cluster_network_profile_reference_model_dict) + cluster_network_profile_reference_model_dict = ClusterNetworkProfileReference.from_dict( + cluster_network_profile_reference_model_json + ).__dict__ + cluster_network_profile_reference_model2 = ClusterNetworkProfileReference( + **cluster_network_profile_reference_model_dict + ) # Verify the model instances are equivalent assert cluster_network_profile_reference_model == cluster_network_profile_reference_model2 @@ -57299,9 +58523,13 @@ def test_cluster_network_reference_serialization(self): # Construct a json representation of a ClusterNetworkReference model cluster_network_reference_model_json = {} - cluster_network_reference_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::cluster-network:0717-da0df18c-7598-4633-a648-fdaac28a5573' + cluster_network_reference_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::cluster-network:0717-da0df18c-7598-4633-a648-fdaac28a5573' + ) cluster_network_reference_model_json['deleted'] = deleted_model - cluster_network_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/cluster_networks/0717-da0df18c-7598-4633-a648-fdaac28a5573' + cluster_network_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/cluster_networks/0717-da0df18c-7598-4633-a648-fdaac28a5573' + ) cluster_network_reference_model_json['id'] = '0717-da0df18c-7598-4633-a648-fdaac28a5573' cluster_network_reference_model_json['name'] = 'my-cluster-network' cluster_network_reference_model_json['resource_type'] = 'cluster_network' @@ -57311,7 +58539,9 @@ def test_cluster_network_reference_serialization(self): assert cluster_network_reference_model != False # Construct a model instance of ClusterNetworkReference by calling from_dict on the json representation - cluster_network_reference_model_dict = ClusterNetworkReference.from_dict(cluster_network_reference_model_json).__dict__ + cluster_network_reference_model_dict = ClusterNetworkReference.from_dict( + cluster_network_reference_model_json + ).__dict__ cluster_network_reference_model2 = ClusterNetworkReference(**cluster_network_reference_model_dict) # Verify the model instances are equivalent @@ -57336,14 +58566,20 @@ def test_cluster_network_subnet_serialization(self): cluster_network_subnet_lifecycle_reason_model = {} # ClusterNetworkSubnetLifecycleReason cluster_network_subnet_lifecycle_reason_model['code'] = 'resource_suspended_by_provider' - cluster_network_subnet_lifecycle_reason_model['message'] = 'The resource has been suspended. Contact IBM support with the CRN for next steps.' - cluster_network_subnet_lifecycle_reason_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#resource-suspension' + cluster_network_subnet_lifecycle_reason_model['message'] = ( + 'The resource has been suspended. Contact IBM support with the CRN for next steps.' + ) + cluster_network_subnet_lifecycle_reason_model['more_info'] = ( + 'https://cloud.ibm.com/apidocs/vpc#resource-suspension' + ) # Construct a json representation of a ClusterNetworkSubnet model cluster_network_subnet_model_json = {} cluster_network_subnet_model_json['available_ipv4_address_count'] = 15 cluster_network_subnet_model_json['created_at'] = '2019-01-01T12:00:00Z' - cluster_network_subnet_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/cluster_networks/0717-da0df18c-7598-4633-a648-fdaac28a5573/subnets/0717-7931845c-65c4-4b0a-80cd-7d9c1a6d7930' + cluster_network_subnet_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/cluster_networks/0717-da0df18c-7598-4633-a648-fdaac28a5573/subnets/0717-7931845c-65c4-4b0a-80cd-7d9c1a6d7930' + ) cluster_network_subnet_model_json['id'] = '0717-7931845c-65c4-4b0a-80cd-7d9c1a6d7930' cluster_network_subnet_model_json['ip_version'] = 'ipv4' cluster_network_subnet_model_json['ipv4_cidr_block'] = '10.0.0.0/24' @@ -57382,17 +58618,25 @@ def test_cluster_network_subnet_collection_serialization(self): # Construct dict forms of any model objects needed in order to build this model. page_link_model = {} # PageLink - page_link_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/cluster_networks/0717-da0df18c-7598-4633-a648-fdaac28a5573/subnets?limit=50' + page_link_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/cluster_networks/0717-da0df18c-7598-4633-a648-fdaac28a5573/subnets?limit=50' + ) cluster_network_subnet_lifecycle_reason_model = {} # ClusterNetworkSubnetLifecycleReason cluster_network_subnet_lifecycle_reason_model['code'] = 'resource_suspended_by_provider' - cluster_network_subnet_lifecycle_reason_model['message'] = 'The resource has been suspended. Contact IBM support with the CRN for next steps.' - cluster_network_subnet_lifecycle_reason_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#resource-suspension' + cluster_network_subnet_lifecycle_reason_model['message'] = ( + 'The resource has been suspended. Contact IBM support with the CRN for next steps.' + ) + cluster_network_subnet_lifecycle_reason_model['more_info'] = ( + 'https://cloud.ibm.com/apidocs/vpc#resource-suspension' + ) cluster_network_subnet_model = {} # ClusterNetworkSubnet cluster_network_subnet_model['available_ipv4_address_count'] = 251 cluster_network_subnet_model['created_at'] = '2024-10-25T11:59:46Z' - cluster_network_subnet_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/cluster_networks/0717-da0df18c-7598-4633-a648-fdaac28a5573/subnets/0717-7931845c-65c4-4b0a-80cd-7d9c1a6d7930' + cluster_network_subnet_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/cluster_networks/0717-da0df18c-7598-4633-a648-fdaac28a5573/subnets/0717-7931845c-65c4-4b0a-80cd-7d9c1a6d7930' + ) cluster_network_subnet_model['id'] = '0717-7931845c-65c4-4b0a-80cd-7d9c1a6d7930' cluster_network_subnet_model['ip_version'] = 'ipv4' cluster_network_subnet_model['ipv4_cidr_block'] = '10.0.1.0/24' @@ -57411,12 +58655,18 @@ def test_cluster_network_subnet_collection_serialization(self): cluster_network_subnet_collection_model_json['total_count'] = 132 # Construct a model instance of ClusterNetworkSubnetCollection by calling from_dict on the json representation - cluster_network_subnet_collection_model = ClusterNetworkSubnetCollection.from_dict(cluster_network_subnet_collection_model_json) + cluster_network_subnet_collection_model = ClusterNetworkSubnetCollection.from_dict( + cluster_network_subnet_collection_model_json + ) assert cluster_network_subnet_collection_model != False # Construct a model instance of ClusterNetworkSubnetCollection by calling from_dict on the json representation - cluster_network_subnet_collection_model_dict = ClusterNetworkSubnetCollection.from_dict(cluster_network_subnet_collection_model_json).__dict__ - cluster_network_subnet_collection_model2 = ClusterNetworkSubnetCollection(**cluster_network_subnet_collection_model_dict) + cluster_network_subnet_collection_model_dict = ClusterNetworkSubnetCollection.from_dict( + cluster_network_subnet_collection_model_json + ).__dict__ + cluster_network_subnet_collection_model2 = ClusterNetworkSubnetCollection( + **cluster_network_subnet_collection_model_dict + ) # Verify the model instances are equivalent assert cluster_network_subnet_collection_model == cluster_network_subnet_collection_model2 @@ -57439,16 +58689,26 @@ def test_cluster_network_subnet_lifecycle_reason_serialization(self): # Construct a json representation of a ClusterNetworkSubnetLifecycleReason model cluster_network_subnet_lifecycle_reason_model_json = {} cluster_network_subnet_lifecycle_reason_model_json['code'] = 'resource_suspended_by_provider' - cluster_network_subnet_lifecycle_reason_model_json['message'] = 'The resource has been suspended. Contact IBM support with the CRN for next steps.' - cluster_network_subnet_lifecycle_reason_model_json['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#resource-suspension' + cluster_network_subnet_lifecycle_reason_model_json['message'] = ( + 'The resource has been suspended. Contact IBM support with the CRN for next steps.' + ) + cluster_network_subnet_lifecycle_reason_model_json['more_info'] = ( + 'https://cloud.ibm.com/apidocs/vpc#resource-suspension' + ) # Construct a model instance of ClusterNetworkSubnetLifecycleReason by calling from_dict on the json representation - cluster_network_subnet_lifecycle_reason_model = ClusterNetworkSubnetLifecycleReason.from_dict(cluster_network_subnet_lifecycle_reason_model_json) + cluster_network_subnet_lifecycle_reason_model = ClusterNetworkSubnetLifecycleReason.from_dict( + cluster_network_subnet_lifecycle_reason_model_json + ) assert cluster_network_subnet_lifecycle_reason_model != False # Construct a model instance of ClusterNetworkSubnetLifecycleReason by calling from_dict on the json representation - cluster_network_subnet_lifecycle_reason_model_dict = ClusterNetworkSubnetLifecycleReason.from_dict(cluster_network_subnet_lifecycle_reason_model_json).__dict__ - cluster_network_subnet_lifecycle_reason_model2 = ClusterNetworkSubnetLifecycleReason(**cluster_network_subnet_lifecycle_reason_model_dict) + cluster_network_subnet_lifecycle_reason_model_dict = ClusterNetworkSubnetLifecycleReason.from_dict( + cluster_network_subnet_lifecycle_reason_model_json + ).__dict__ + cluster_network_subnet_lifecycle_reason_model2 = ClusterNetworkSubnetLifecycleReason( + **cluster_network_subnet_lifecycle_reason_model_dict + ) # Verify the model instances are equivalent assert cluster_network_subnet_lifecycle_reason_model == cluster_network_subnet_lifecycle_reason_model2 @@ -57473,11 +58733,15 @@ def test_cluster_network_subnet_patch_serialization(self): cluster_network_subnet_patch_model_json['name'] = 'my-cluster-network-subnet' # Construct a model instance of ClusterNetworkSubnetPatch by calling from_dict on the json representation - cluster_network_subnet_patch_model = ClusterNetworkSubnetPatch.from_dict(cluster_network_subnet_patch_model_json) + cluster_network_subnet_patch_model = ClusterNetworkSubnetPatch.from_dict( + cluster_network_subnet_patch_model_json + ) assert cluster_network_subnet_patch_model != False # Construct a model instance of ClusterNetworkSubnetPatch by calling from_dict on the json representation - cluster_network_subnet_patch_model_dict = ClusterNetworkSubnetPatch.from_dict(cluster_network_subnet_patch_model_json).__dict__ + cluster_network_subnet_patch_model_dict = ClusterNetworkSubnetPatch.from_dict( + cluster_network_subnet_patch_model_json + ).__dict__ cluster_network_subnet_patch_model2 = ClusterNetworkSubnetPatch(**cluster_network_subnet_patch_model_dict) # Verify the model instances are equivalent @@ -57504,11 +58768,15 @@ def test_cluster_network_subnet_prefix_serialization(self): cluster_network_subnet_prefix_model_json['cidr'] = '10.0.0.0/24' # Construct a model instance of ClusterNetworkSubnetPrefix by calling from_dict on the json representation - cluster_network_subnet_prefix_model = ClusterNetworkSubnetPrefix.from_dict(cluster_network_subnet_prefix_model_json) + cluster_network_subnet_prefix_model = ClusterNetworkSubnetPrefix.from_dict( + cluster_network_subnet_prefix_model_json + ) assert cluster_network_subnet_prefix_model != False # Construct a model instance of ClusterNetworkSubnetPrefix by calling from_dict on the json representation - cluster_network_subnet_prefix_model_dict = ClusterNetworkSubnetPrefix.from_dict(cluster_network_subnet_prefix_model_json).__dict__ + cluster_network_subnet_prefix_model_dict = ClusterNetworkSubnetPrefix.from_dict( + cluster_network_subnet_prefix_model_json + ).__dict__ cluster_network_subnet_prefix_model2 = ClusterNetworkSubnetPrefix(**cluster_network_subnet_prefix_model_dict) # Verify the model instances are equivalent @@ -57534,12 +58802,18 @@ def test_cluster_network_subnet_prefix_prototype_serialization(self): cluster_network_subnet_prefix_prototype_model_json['cidr'] = '10.0.0.0/24' # Construct a model instance of ClusterNetworkSubnetPrefixPrototype by calling from_dict on the json representation - cluster_network_subnet_prefix_prototype_model = ClusterNetworkSubnetPrefixPrototype.from_dict(cluster_network_subnet_prefix_prototype_model_json) + cluster_network_subnet_prefix_prototype_model = ClusterNetworkSubnetPrefixPrototype.from_dict( + cluster_network_subnet_prefix_prototype_model_json + ) assert cluster_network_subnet_prefix_prototype_model != False # Construct a model instance of ClusterNetworkSubnetPrefixPrototype by calling from_dict on the json representation - cluster_network_subnet_prefix_prototype_model_dict = ClusterNetworkSubnetPrefixPrototype.from_dict(cluster_network_subnet_prefix_prototype_model_json).__dict__ - cluster_network_subnet_prefix_prototype_model2 = ClusterNetworkSubnetPrefixPrototype(**cluster_network_subnet_prefix_prototype_model_dict) + cluster_network_subnet_prefix_prototype_model_dict = ClusterNetworkSubnetPrefixPrototype.from_dict( + cluster_network_subnet_prefix_prototype_model_json + ).__dict__ + cluster_network_subnet_prefix_prototype_model2 = ClusterNetworkSubnetPrefixPrototype( + **cluster_network_subnet_prefix_prototype_model_dict + ) # Verify the model instances are equivalent assert cluster_network_subnet_prefix_prototype_model == cluster_network_subnet_prefix_prototype_model2 @@ -57567,18 +58841,26 @@ def test_cluster_network_subnet_reference_serialization(self): # Construct a json representation of a ClusterNetworkSubnetReference model cluster_network_subnet_reference_model_json = {} cluster_network_subnet_reference_model_json['deleted'] = deleted_model - cluster_network_subnet_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/cluster_networks/0717-da0df18c-7598-4633-a648-fdaac28a5573/subnets/0717-7931845c-65c4-4b0a-80cd-7d9c1a6d7930' + cluster_network_subnet_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/cluster_networks/0717-da0df18c-7598-4633-a648-fdaac28a5573/subnets/0717-7931845c-65c4-4b0a-80cd-7d9c1a6d7930' + ) cluster_network_subnet_reference_model_json['id'] = '0717-7931845c-65c4-4b0a-80cd-7d9c1a6d7930' cluster_network_subnet_reference_model_json['name'] = 'my-cluster-network-subnet' cluster_network_subnet_reference_model_json['resource_type'] = 'cluster_network_subnet' # Construct a model instance of ClusterNetworkSubnetReference by calling from_dict on the json representation - cluster_network_subnet_reference_model = ClusterNetworkSubnetReference.from_dict(cluster_network_subnet_reference_model_json) + cluster_network_subnet_reference_model = ClusterNetworkSubnetReference.from_dict( + cluster_network_subnet_reference_model_json + ) assert cluster_network_subnet_reference_model != False # Construct a model instance of ClusterNetworkSubnetReference by calling from_dict on the json representation - cluster_network_subnet_reference_model_dict = ClusterNetworkSubnetReference.from_dict(cluster_network_subnet_reference_model_json).__dict__ - cluster_network_subnet_reference_model2 = ClusterNetworkSubnetReference(**cluster_network_subnet_reference_model_dict) + cluster_network_subnet_reference_model_dict = ClusterNetworkSubnetReference.from_dict( + cluster_network_subnet_reference_model_json + ).__dict__ + cluster_network_subnet_reference_model2 = ClusterNetworkSubnetReference( + **cluster_network_subnet_reference_model_dict + ) # Verify the model instances are equivalent assert cluster_network_subnet_reference_model == cluster_network_subnet_reference_model2 @@ -57602,15 +58884,23 @@ def test_cluster_network_subnet_reserved_ip_serialization(self): cluster_network_subnet_reserved_ip_lifecycle_reason_model = {} # ClusterNetworkSubnetReservedIPLifecycleReason cluster_network_subnet_reserved_ip_lifecycle_reason_model['code'] = 'resource_suspended_by_provider' - cluster_network_subnet_reserved_ip_lifecycle_reason_model['message'] = 'The resource has been suspended. Contact IBM support with the CRN for next steps.' - cluster_network_subnet_reserved_ip_lifecycle_reason_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#resource-suspension' + cluster_network_subnet_reserved_ip_lifecycle_reason_model['message'] = ( + 'The resource has been suspended. Contact IBM support with the CRN for next steps.' + ) + cluster_network_subnet_reserved_ip_lifecycle_reason_model['more_info'] = ( + 'https://cloud.ibm.com/apidocs/vpc#resource-suspension' + ) deleted_model = {} # Deleted deleted_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#deleted-resources' - cluster_network_subnet_reserved_ip_target_model = {} # ClusterNetworkSubnetReservedIPTargetClusterNetworkInterfaceReferenceClusterNetworkSubnetReservedIPTargetContext + cluster_network_subnet_reserved_ip_target_model = ( + {} + ) # ClusterNetworkSubnetReservedIPTargetClusterNetworkInterfaceReferenceClusterNetworkSubnetReservedIPTargetContext cluster_network_subnet_reserved_ip_target_model['deleted'] = deleted_model - cluster_network_subnet_reserved_ip_target_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/cluster_networks/0717-da0df18c-7598-4633-a648-fdaac28a5573/interfaces/0717-ffc092f7-5d02-4b93-ab69-26860529b9fb' + cluster_network_subnet_reserved_ip_target_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/cluster_networks/0717-da0df18c-7598-4633-a648-fdaac28a5573/interfaces/0717-ffc092f7-5d02-4b93-ab69-26860529b9fb' + ) cluster_network_subnet_reserved_ip_target_model['id'] = '0717-ffc092f7-5d02-4b93-ab69-26860529b9fb' cluster_network_subnet_reserved_ip_target_model['name'] = 'my-cluster-network-interface' cluster_network_subnet_reserved_ip_target_model['resource_type'] = 'cluster_network_interface' @@ -57620,9 +58910,13 @@ def test_cluster_network_subnet_reserved_ip_serialization(self): cluster_network_subnet_reserved_ip_model_json['address'] = '10.1.0.6' cluster_network_subnet_reserved_ip_model_json['auto_delete'] = False cluster_network_subnet_reserved_ip_model_json['created_at'] = '2019-01-01T12:00:00Z' - cluster_network_subnet_reserved_ip_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/cluster_networks/0717-da0df18c-7598-4633-a648-fdaac28a5573/subnets/0717-7931845c-65c4-4b0a-80cd-7d9c1a6d7930/reserved_ips/6d353a0f-aeb1-4ae1-832e-1110d10981bb' + cluster_network_subnet_reserved_ip_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/cluster_networks/0717-da0df18c-7598-4633-a648-fdaac28a5573/subnets/0717-7931845c-65c4-4b0a-80cd-7d9c1a6d7930/reserved_ips/6d353a0f-aeb1-4ae1-832e-1110d10981bb' + ) cluster_network_subnet_reserved_ip_model_json['id'] = '6d353a0f-aeb1-4ae1-832e-1110d10981bb' - cluster_network_subnet_reserved_ip_model_json['lifecycle_reasons'] = [cluster_network_subnet_reserved_ip_lifecycle_reason_model] + cluster_network_subnet_reserved_ip_model_json['lifecycle_reasons'] = [ + cluster_network_subnet_reserved_ip_lifecycle_reason_model + ] cluster_network_subnet_reserved_ip_model_json['lifecycle_state'] = 'stable' cluster_network_subnet_reserved_ip_model_json['name'] = 'my-cluster-network-subnet-reserved-ip' cluster_network_subnet_reserved_ip_model_json['owner'] = 'user' @@ -57630,12 +58924,18 @@ def test_cluster_network_subnet_reserved_ip_serialization(self): cluster_network_subnet_reserved_ip_model_json['target'] = cluster_network_subnet_reserved_ip_target_model # Construct a model instance of ClusterNetworkSubnetReservedIP by calling from_dict on the json representation - cluster_network_subnet_reserved_ip_model = ClusterNetworkSubnetReservedIP.from_dict(cluster_network_subnet_reserved_ip_model_json) + cluster_network_subnet_reserved_ip_model = ClusterNetworkSubnetReservedIP.from_dict( + cluster_network_subnet_reserved_ip_model_json + ) assert cluster_network_subnet_reserved_ip_model != False # Construct a model instance of ClusterNetworkSubnetReservedIP by calling from_dict on the json representation - cluster_network_subnet_reserved_ip_model_dict = ClusterNetworkSubnetReservedIP.from_dict(cluster_network_subnet_reserved_ip_model_json).__dict__ - cluster_network_subnet_reserved_ip_model2 = ClusterNetworkSubnetReservedIP(**cluster_network_subnet_reserved_ip_model_dict) + cluster_network_subnet_reserved_ip_model_dict = ClusterNetworkSubnetReservedIP.from_dict( + cluster_network_subnet_reserved_ip_model_json + ).__dict__ + cluster_network_subnet_reserved_ip_model2 = ClusterNetworkSubnetReservedIP( + **cluster_network_subnet_reserved_ip_model_dict + ) # Verify the model instances are equivalent assert cluster_network_subnet_reserved_ip_model == cluster_network_subnet_reserved_ip_model2 @@ -57658,19 +58958,29 @@ def test_cluster_network_subnet_reserved_ip_collection_serialization(self): # Construct dict forms of any model objects needed in order to build this model. page_link_model = {} # PageLink - page_link_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/cluster_networks/0717-da0df18c-7598-4633-a648-fdaac28a5573/subnets/0717-7931845c-65c4-4b0a-80cd-7d9c1a6d7930/reserved_ips?limit=50' + page_link_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/cluster_networks/0717-da0df18c-7598-4633-a648-fdaac28a5573/subnets/0717-7931845c-65c4-4b0a-80cd-7d9c1a6d7930/reserved_ips?limit=50' + ) cluster_network_subnet_reserved_ip_lifecycle_reason_model = {} # ClusterNetworkSubnetReservedIPLifecycleReason cluster_network_subnet_reserved_ip_lifecycle_reason_model['code'] = 'resource_suspended_by_provider' - cluster_network_subnet_reserved_ip_lifecycle_reason_model['message'] = 'The resource has been suspended. Contact IBM support with the CRN for next steps.' - cluster_network_subnet_reserved_ip_lifecycle_reason_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#resource-suspension' + cluster_network_subnet_reserved_ip_lifecycle_reason_model['message'] = ( + 'The resource has been suspended. Contact IBM support with the CRN for next steps.' + ) + cluster_network_subnet_reserved_ip_lifecycle_reason_model['more_info'] = ( + 'https://cloud.ibm.com/apidocs/vpc#resource-suspension' + ) deleted_model = {} # Deleted deleted_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#deleted-resources' - cluster_network_subnet_reserved_ip_target_model = {} # ClusterNetworkSubnetReservedIPTargetClusterNetworkInterfaceReferenceClusterNetworkSubnetReservedIPTargetContext + cluster_network_subnet_reserved_ip_target_model = ( + {} + ) # ClusterNetworkSubnetReservedIPTargetClusterNetworkInterfaceReferenceClusterNetworkSubnetReservedIPTargetContext cluster_network_subnet_reserved_ip_target_model['deleted'] = deleted_model - cluster_network_subnet_reserved_ip_target_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/cluster_networks/0717-da0df18c-7598-4633-a648-fdaac28a5573/interfaces/0717-ffc092f7-5d02-4b93-ab69-26860529b9fb' + cluster_network_subnet_reserved_ip_target_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/cluster_networks/0717-da0df18c-7598-4633-a648-fdaac28a5573/interfaces/0717-ffc092f7-5d02-4b93-ab69-26860529b9fb' + ) cluster_network_subnet_reserved_ip_target_model['id'] = '0717-ffc092f7-5d02-4b93-ab69-26860529b9fb' cluster_network_subnet_reserved_ip_target_model['name'] = 'my-cluster-network-interface' cluster_network_subnet_reserved_ip_target_model['resource_type'] = 'cluster_network_interface' @@ -57679,9 +58989,13 @@ def test_cluster_network_subnet_reserved_ip_collection_serialization(self): cluster_network_subnet_reserved_ip_model['address'] = '10.1.0.6' cluster_network_subnet_reserved_ip_model['auto_delete'] = False cluster_network_subnet_reserved_ip_model['created_at'] = '2020-07-24T19:52:13Z' - cluster_network_subnet_reserved_ip_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/cluster_networks/0717-da0df18c-7598-4633-a648-fdaac28a5573/subnets/0717-7931845c-65c4-4b0a-80cd-7d9c1a6d7930/reserved_ips/63341ffa-1037-4b50-be40-676e3e9ac0c7' + cluster_network_subnet_reserved_ip_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/cluster_networks/0717-da0df18c-7598-4633-a648-fdaac28a5573/subnets/0717-7931845c-65c4-4b0a-80cd-7d9c1a6d7930/reserved_ips/63341ffa-1037-4b50-be40-676e3e9ac0c7' + ) cluster_network_subnet_reserved_ip_model['id'] = '63341ffa-1037-4b50-be40-676e3e9ac0c7' - cluster_network_subnet_reserved_ip_model['lifecycle_reasons'] = [cluster_network_subnet_reserved_ip_lifecycle_reason_model] + cluster_network_subnet_reserved_ip_model['lifecycle_reasons'] = [ + cluster_network_subnet_reserved_ip_lifecycle_reason_model + ] cluster_network_subnet_reserved_ip_model['lifecycle_state'] = 'stable' cluster_network_subnet_reserved_ip_model['name'] = 'my-cluster-network-subnet-reserved-ip' cluster_network_subnet_reserved_ip_model['owner'] = 'user' @@ -57693,23 +59007,38 @@ def test_cluster_network_subnet_reserved_ip_collection_serialization(self): cluster_network_subnet_reserved_ip_collection_model_json['first'] = page_link_model cluster_network_subnet_reserved_ip_collection_model_json['limit'] = 20 cluster_network_subnet_reserved_ip_collection_model_json['next'] = page_link_model - cluster_network_subnet_reserved_ip_collection_model_json['reserved_ips'] = [cluster_network_subnet_reserved_ip_model] + cluster_network_subnet_reserved_ip_collection_model_json['reserved_ips'] = [ + cluster_network_subnet_reserved_ip_model + ] cluster_network_subnet_reserved_ip_collection_model_json['total_count'] = 132 # Construct a model instance of ClusterNetworkSubnetReservedIPCollection by calling from_dict on the json representation - cluster_network_subnet_reserved_ip_collection_model = ClusterNetworkSubnetReservedIPCollection.from_dict(cluster_network_subnet_reserved_ip_collection_model_json) + cluster_network_subnet_reserved_ip_collection_model = ClusterNetworkSubnetReservedIPCollection.from_dict( + cluster_network_subnet_reserved_ip_collection_model_json + ) assert cluster_network_subnet_reserved_ip_collection_model != False # Construct a model instance of ClusterNetworkSubnetReservedIPCollection by calling from_dict on the json representation - cluster_network_subnet_reserved_ip_collection_model_dict = ClusterNetworkSubnetReservedIPCollection.from_dict(cluster_network_subnet_reserved_ip_collection_model_json).__dict__ - cluster_network_subnet_reserved_ip_collection_model2 = ClusterNetworkSubnetReservedIPCollection(**cluster_network_subnet_reserved_ip_collection_model_dict) + cluster_network_subnet_reserved_ip_collection_model_dict = ClusterNetworkSubnetReservedIPCollection.from_dict( + cluster_network_subnet_reserved_ip_collection_model_json + ).__dict__ + cluster_network_subnet_reserved_ip_collection_model2 = ClusterNetworkSubnetReservedIPCollection( + **cluster_network_subnet_reserved_ip_collection_model_dict + ) # Verify the model instances are equivalent - assert cluster_network_subnet_reserved_ip_collection_model == cluster_network_subnet_reserved_ip_collection_model2 + assert ( + cluster_network_subnet_reserved_ip_collection_model == cluster_network_subnet_reserved_ip_collection_model2 + ) # Convert model instance back to dict and verify no loss of data - cluster_network_subnet_reserved_ip_collection_model_json2 = cluster_network_subnet_reserved_ip_collection_model.to_dict() - assert cluster_network_subnet_reserved_ip_collection_model_json2 == cluster_network_subnet_reserved_ip_collection_model_json + cluster_network_subnet_reserved_ip_collection_model_json2 = ( + cluster_network_subnet_reserved_ip_collection_model.to_dict() + ) + assert ( + cluster_network_subnet_reserved_ip_collection_model_json2 + == cluster_network_subnet_reserved_ip_collection_model_json + ) class TestModel_ClusterNetworkSubnetReservedIPLifecycleReason: @@ -57725,23 +59054,45 @@ def test_cluster_network_subnet_reserved_ip_lifecycle_reason_serialization(self) # Construct a json representation of a ClusterNetworkSubnetReservedIPLifecycleReason model cluster_network_subnet_reserved_ip_lifecycle_reason_model_json = {} cluster_network_subnet_reserved_ip_lifecycle_reason_model_json['code'] = 'resource_suspended_by_provider' - cluster_network_subnet_reserved_ip_lifecycle_reason_model_json['message'] = 'The resource has been suspended. Contact IBM support with the CRN for next steps.' - cluster_network_subnet_reserved_ip_lifecycle_reason_model_json['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#resource-suspension' + cluster_network_subnet_reserved_ip_lifecycle_reason_model_json['message'] = ( + 'The resource has been suspended. Contact IBM support with the CRN for next steps.' + ) + cluster_network_subnet_reserved_ip_lifecycle_reason_model_json['more_info'] = ( + 'https://cloud.ibm.com/apidocs/vpc#resource-suspension' + ) # Construct a model instance of ClusterNetworkSubnetReservedIPLifecycleReason by calling from_dict on the json representation - cluster_network_subnet_reserved_ip_lifecycle_reason_model = ClusterNetworkSubnetReservedIPLifecycleReason.from_dict(cluster_network_subnet_reserved_ip_lifecycle_reason_model_json) + cluster_network_subnet_reserved_ip_lifecycle_reason_model = ( + ClusterNetworkSubnetReservedIPLifecycleReason.from_dict( + cluster_network_subnet_reserved_ip_lifecycle_reason_model_json + ) + ) assert cluster_network_subnet_reserved_ip_lifecycle_reason_model != False # Construct a model instance of ClusterNetworkSubnetReservedIPLifecycleReason by calling from_dict on the json representation - cluster_network_subnet_reserved_ip_lifecycle_reason_model_dict = ClusterNetworkSubnetReservedIPLifecycleReason.from_dict(cluster_network_subnet_reserved_ip_lifecycle_reason_model_json).__dict__ - cluster_network_subnet_reserved_ip_lifecycle_reason_model2 = ClusterNetworkSubnetReservedIPLifecycleReason(**cluster_network_subnet_reserved_ip_lifecycle_reason_model_dict) + cluster_network_subnet_reserved_ip_lifecycle_reason_model_dict = ( + ClusterNetworkSubnetReservedIPLifecycleReason.from_dict( + cluster_network_subnet_reserved_ip_lifecycle_reason_model_json + ).__dict__ + ) + cluster_network_subnet_reserved_ip_lifecycle_reason_model2 = ClusterNetworkSubnetReservedIPLifecycleReason( + **cluster_network_subnet_reserved_ip_lifecycle_reason_model_dict + ) # Verify the model instances are equivalent - assert cluster_network_subnet_reserved_ip_lifecycle_reason_model == cluster_network_subnet_reserved_ip_lifecycle_reason_model2 + assert ( + cluster_network_subnet_reserved_ip_lifecycle_reason_model + == cluster_network_subnet_reserved_ip_lifecycle_reason_model2 + ) # Convert model instance back to dict and verify no loss of data - cluster_network_subnet_reserved_ip_lifecycle_reason_model_json2 = cluster_network_subnet_reserved_ip_lifecycle_reason_model.to_dict() - assert cluster_network_subnet_reserved_ip_lifecycle_reason_model_json2 == cluster_network_subnet_reserved_ip_lifecycle_reason_model_json + cluster_network_subnet_reserved_ip_lifecycle_reason_model_json2 = ( + cluster_network_subnet_reserved_ip_lifecycle_reason_model.to_dict() + ) + assert ( + cluster_network_subnet_reserved_ip_lifecycle_reason_model_json2 + == cluster_network_subnet_reserved_ip_lifecycle_reason_model_json + ) class TestModel_ClusterNetworkSubnetReservedIPPatch: @@ -57760,19 +59111,27 @@ def test_cluster_network_subnet_reserved_ip_patch_serialization(self): cluster_network_subnet_reserved_ip_patch_model_json['name'] = 'my-cluster-network-subnet-reserved-ip' # Construct a model instance of ClusterNetworkSubnetReservedIPPatch by calling from_dict on the json representation - cluster_network_subnet_reserved_ip_patch_model = ClusterNetworkSubnetReservedIPPatch.from_dict(cluster_network_subnet_reserved_ip_patch_model_json) + cluster_network_subnet_reserved_ip_patch_model = ClusterNetworkSubnetReservedIPPatch.from_dict( + cluster_network_subnet_reserved_ip_patch_model_json + ) assert cluster_network_subnet_reserved_ip_patch_model != False # Construct a model instance of ClusterNetworkSubnetReservedIPPatch by calling from_dict on the json representation - cluster_network_subnet_reserved_ip_patch_model_dict = ClusterNetworkSubnetReservedIPPatch.from_dict(cluster_network_subnet_reserved_ip_patch_model_json).__dict__ - cluster_network_subnet_reserved_ip_patch_model2 = ClusterNetworkSubnetReservedIPPatch(**cluster_network_subnet_reserved_ip_patch_model_dict) + cluster_network_subnet_reserved_ip_patch_model_dict = ClusterNetworkSubnetReservedIPPatch.from_dict( + cluster_network_subnet_reserved_ip_patch_model_json + ).__dict__ + cluster_network_subnet_reserved_ip_patch_model2 = ClusterNetworkSubnetReservedIPPatch( + **cluster_network_subnet_reserved_ip_patch_model_dict + ) # Verify the model instances are equivalent assert cluster_network_subnet_reserved_ip_patch_model == cluster_network_subnet_reserved_ip_patch_model2 # Convert model instance back to dict and verify no loss of data cluster_network_subnet_reserved_ip_patch_model_json2 = cluster_network_subnet_reserved_ip_patch_model.to_dict() - assert cluster_network_subnet_reserved_ip_patch_model_json2 == cluster_network_subnet_reserved_ip_patch_model_json + assert ( + cluster_network_subnet_reserved_ip_patch_model_json2 == cluster_network_subnet_reserved_ip_patch_model_json + ) class TestModel_ClusterNetworkSubnetReservedIPReference: @@ -57794,25 +59153,38 @@ def test_cluster_network_subnet_reserved_ip_reference_serialization(self): cluster_network_subnet_reserved_ip_reference_model_json = {} cluster_network_subnet_reserved_ip_reference_model_json['address'] = '10.1.0.6' cluster_network_subnet_reserved_ip_reference_model_json['deleted'] = deleted_model - cluster_network_subnet_reserved_ip_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/cluster_networks/0717-da0df18c-7598-4633-a648-fdaac28a5573/subnets/0717-7931845c-65c4-4b0a-80cd-7d9c1a6d7930/reserved_ips/6d353a0f-aeb1-4ae1-832e-1110d10981bb' + cluster_network_subnet_reserved_ip_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/cluster_networks/0717-da0df18c-7598-4633-a648-fdaac28a5573/subnets/0717-7931845c-65c4-4b0a-80cd-7d9c1a6d7930/reserved_ips/6d353a0f-aeb1-4ae1-832e-1110d10981bb' + ) cluster_network_subnet_reserved_ip_reference_model_json['id'] = '6d353a0f-aeb1-4ae1-832e-1110d10981bb' cluster_network_subnet_reserved_ip_reference_model_json['name'] = 'my-cluster-network-subnet-reserved-ip' cluster_network_subnet_reserved_ip_reference_model_json['resource_type'] = 'cluster_network_subnet_reserved_ip' # Construct a model instance of ClusterNetworkSubnetReservedIPReference by calling from_dict on the json representation - cluster_network_subnet_reserved_ip_reference_model = ClusterNetworkSubnetReservedIPReference.from_dict(cluster_network_subnet_reserved_ip_reference_model_json) + cluster_network_subnet_reserved_ip_reference_model = ClusterNetworkSubnetReservedIPReference.from_dict( + cluster_network_subnet_reserved_ip_reference_model_json + ) assert cluster_network_subnet_reserved_ip_reference_model != False # Construct a model instance of ClusterNetworkSubnetReservedIPReference by calling from_dict on the json representation - cluster_network_subnet_reserved_ip_reference_model_dict = ClusterNetworkSubnetReservedIPReference.from_dict(cluster_network_subnet_reserved_ip_reference_model_json).__dict__ - cluster_network_subnet_reserved_ip_reference_model2 = ClusterNetworkSubnetReservedIPReference(**cluster_network_subnet_reserved_ip_reference_model_dict) + cluster_network_subnet_reserved_ip_reference_model_dict = ClusterNetworkSubnetReservedIPReference.from_dict( + cluster_network_subnet_reserved_ip_reference_model_json + ).__dict__ + cluster_network_subnet_reserved_ip_reference_model2 = ClusterNetworkSubnetReservedIPReference( + **cluster_network_subnet_reserved_ip_reference_model_dict + ) # Verify the model instances are equivalent assert cluster_network_subnet_reserved_ip_reference_model == cluster_network_subnet_reserved_ip_reference_model2 # Convert model instance back to dict and verify no loss of data - cluster_network_subnet_reserved_ip_reference_model_json2 = cluster_network_subnet_reserved_ip_reference_model.to_dict() - assert cluster_network_subnet_reserved_ip_reference_model_json2 == cluster_network_subnet_reserved_ip_reference_model_json + cluster_network_subnet_reserved_ip_reference_model_json2 = ( + cluster_network_subnet_reserved_ip_reference_model.to_dict() + ) + assert ( + cluster_network_subnet_reserved_ip_reference_model_json2 + == cluster_network_subnet_reserved_ip_reference_model_json + ) class TestModel_DNSInstanceReferenceLoadBalancerDNSContext: @@ -57827,22 +59199,40 @@ def test_dns_instance_reference_load_balancer_dns_context_serialization(self): # Construct a json representation of a DNSInstanceReferenceLoadBalancerDNSContext model dns_instance_reference_load_balancer_dns_context_model_json = {} - dns_instance_reference_load_balancer_dns_context_model_json['crn'] = 'crn:v1:bluemix:public:dns-svcs:global:a/bb1b52262f7441a586f49068482f1e60:f761b566-030a-4696-8649-cc9d09889e88::' + dns_instance_reference_load_balancer_dns_context_model_json['crn'] = ( + 'crn:v1:bluemix:public:dns-svcs:global:a/bb1b52262f7441a586f49068482f1e60:f761b566-030a-4696-8649-cc9d09889e88::' + ) # Construct a model instance of DNSInstanceReferenceLoadBalancerDNSContext by calling from_dict on the json representation - dns_instance_reference_load_balancer_dns_context_model = DNSInstanceReferenceLoadBalancerDNSContext.from_dict(dns_instance_reference_load_balancer_dns_context_model_json) + dns_instance_reference_load_balancer_dns_context_model = DNSInstanceReferenceLoadBalancerDNSContext.from_dict( + dns_instance_reference_load_balancer_dns_context_model_json + ) assert dns_instance_reference_load_balancer_dns_context_model != False # Construct a model instance of DNSInstanceReferenceLoadBalancerDNSContext by calling from_dict on the json representation - dns_instance_reference_load_balancer_dns_context_model_dict = DNSInstanceReferenceLoadBalancerDNSContext.from_dict(dns_instance_reference_load_balancer_dns_context_model_json).__dict__ - dns_instance_reference_load_balancer_dns_context_model2 = DNSInstanceReferenceLoadBalancerDNSContext(**dns_instance_reference_load_balancer_dns_context_model_dict) + dns_instance_reference_load_balancer_dns_context_model_dict = ( + DNSInstanceReferenceLoadBalancerDNSContext.from_dict( + dns_instance_reference_load_balancer_dns_context_model_json + ).__dict__ + ) + dns_instance_reference_load_balancer_dns_context_model2 = DNSInstanceReferenceLoadBalancerDNSContext( + **dns_instance_reference_load_balancer_dns_context_model_dict + ) # Verify the model instances are equivalent - assert dns_instance_reference_load_balancer_dns_context_model == dns_instance_reference_load_balancer_dns_context_model2 + assert ( + dns_instance_reference_load_balancer_dns_context_model + == dns_instance_reference_load_balancer_dns_context_model2 + ) # Convert model instance back to dict and verify no loss of data - dns_instance_reference_load_balancer_dns_context_model_json2 = dns_instance_reference_load_balancer_dns_context_model.to_dict() - assert dns_instance_reference_load_balancer_dns_context_model_json2 == dns_instance_reference_load_balancer_dns_context_model_json + dns_instance_reference_load_balancer_dns_context_model_json2 = ( + dns_instance_reference_load_balancer_dns_context_model.to_dict() + ) + assert ( + dns_instance_reference_load_balancer_dns_context_model_json2 + == dns_instance_reference_load_balancer_dns_context_model_json + ) class TestModel_DNSServer: @@ -57970,7 +59360,9 @@ def test_dedicated_host_serialization(self): instance_disk_reference_model = {} # InstanceDiskReference instance_disk_reference_model['deleted'] = deleted_model - instance_disk_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/disks/10c02d81-0ecb-4dc5-897d-28392913b81e' + instance_disk_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/disks/10c02d81-0ecb-4dc5-897d-28392913b81e' + ) instance_disk_reference_model['id'] = '10c02d81-0ecb-4dc5-897d-28392913b81e' instance_disk_reference_model['name'] = 'my-instance-disk' instance_disk_reference_model['resource_type'] = 'instance_disk' @@ -57978,7 +59370,9 @@ def test_dedicated_host_serialization(self): dedicated_host_disk_model = {} # DedicatedHostDisk dedicated_host_disk_model['available'] = 3200 dedicated_host_disk_model['created_at'] = '2024-11-04T17:05:47Z' - dedicated_host_disk_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/dedicated_hosts/0717-1e09281b-f177-46fb-baf1-bc152b2e391a/disks/0717-bd091a9e-b036-4c65-a79b-56d164911f6e' + dedicated_host_disk_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/dedicated_hosts/0717-1e09281b-f177-46fb-baf1-bc152b2e391a/disks/0717-bd091a9e-b036-4c65-a79b-56d164911f6e' + ) dedicated_host_disk_model['id'] = '0717-bd091a9e-b036-4c65-a79b-56d164911f6e' dedicated_host_disk_model['instance_disks'] = [instance_disk_reference_model] dedicated_host_disk_model['interface_type'] = 'nvme' @@ -57990,17 +59384,25 @@ def test_dedicated_host_serialization(self): dedicated_host_disk_model['supported_instance_interface_types'] = ['virtio_blk', 'nvme'] dedicated_host_group_reference_model = {} # DedicatedHostGroupReference - dedicated_host_group_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host-group:0717-bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0' + dedicated_host_group_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host-group:0717-bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0' + ) dedicated_host_group_reference_model['deleted'] = deleted_model - dedicated_host_group_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/dedicated_host/groups/0717-bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0' + dedicated_host_group_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/dedicated_host/groups/0717-bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0' + ) dedicated_host_group_reference_model['id'] = '0717-bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0' dedicated_host_group_reference_model['name'] = 'my-dedicated-host-group' dedicated_host_group_reference_model['resource_type'] = 'dedicated_host_group' instance_reference_model = {} # InstanceReference - instance_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::instance:0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' + instance_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::instance:0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' + ) instance_reference_model['deleted'] = deleted_model - instance_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' + instance_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' + ) instance_reference_model['id'] = '0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' instance_reference_model['name'] = 'my-instance' @@ -58013,11 +59415,15 @@ def test_dedicated_host_serialization(self): dedicated_host_numa_model['nodes'] = [dedicated_host_numa_node_model] dedicated_host_profile_reference_model = {} # DedicatedHostProfileReference - dedicated_host_profile_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/dedicated_host/profiles/mx2-host-152x1216' + dedicated_host_profile_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/dedicated_host/profiles/mx2-host-152x1216' + ) dedicated_host_profile_reference_model['name'] = 'mx2-host-152x1216' resource_group_reference_model = {} # ResourceGroupReference - resource_group_reference_model['href'] = 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + resource_group_reference_model['href'] = ( + 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + ) resource_group_reference_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' resource_group_reference_model['name'] = 'Default' @@ -58035,10 +59441,14 @@ def test_dedicated_host_serialization(self): dedicated_host_model_json['available_memory'] = 128 dedicated_host_model_json['available_vcpu'] = vcpu_model dedicated_host_model_json['created_at'] = '2019-01-01T12:00:00Z' - dedicated_host_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host:0717-1e09281b-f177-46fb-baf1-bc152b2e391a' + dedicated_host_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host:0717-1e09281b-f177-46fb-baf1-bc152b2e391a' + ) dedicated_host_model_json['disks'] = [dedicated_host_disk_model] dedicated_host_model_json['group'] = dedicated_host_group_reference_model - dedicated_host_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/dedicated_hosts/0717-1e09281b-f177-46fb-baf1-bc152b2e391a' + dedicated_host_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/dedicated_hosts/0717-1e09281b-f177-46fb-baf1-bc152b2e391a' + ) dedicated_host_model_json['id'] = '0717-1e09281b-f177-46fb-baf1-bc152b2e391a' dedicated_host_model_json['instance_placement_enabled'] = True dedicated_host_model_json['instances'] = [instance_reference_model] @@ -58094,7 +59504,9 @@ def test_dedicated_host_collection_serialization(self): instance_disk_reference_model = {} # InstanceDiskReference instance_disk_reference_model['deleted'] = deleted_model - instance_disk_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/disks/10c02d81-0ecb-4dc5-897d-28392913b81e' + instance_disk_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/disks/10c02d81-0ecb-4dc5-897d-28392913b81e' + ) instance_disk_reference_model['id'] = '10c02d81-0ecb-4dc5-897d-28392913b81e' instance_disk_reference_model['name'] = 'my-instance-disk' instance_disk_reference_model['resource_type'] = 'instance_disk' @@ -58102,7 +59514,9 @@ def test_dedicated_host_collection_serialization(self): dedicated_host_disk_model = {} # DedicatedHostDisk dedicated_host_disk_model['available'] = 3200 dedicated_host_disk_model['created_at'] = '2024-11-04T17:05:47Z' - dedicated_host_disk_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/dedicated_hosts/0717-1e09281b-f177-46fb-baf1-bc152b2e391a/disks/0717-bd091a9e-b036-4c65-a79b-56d164911f6e' + dedicated_host_disk_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/dedicated_hosts/0717-1e09281b-f177-46fb-baf1-bc152b2e391a/disks/0717-bd091a9e-b036-4c65-a79b-56d164911f6e' + ) dedicated_host_disk_model['id'] = '0717-bd091a9e-b036-4c65-a79b-56d164911f6e' dedicated_host_disk_model['instance_disks'] = [instance_disk_reference_model] dedicated_host_disk_model['interface_type'] = 'nvme' @@ -58114,17 +59528,25 @@ def test_dedicated_host_collection_serialization(self): dedicated_host_disk_model['supported_instance_interface_types'] = ['virtio_blk', 'nvme'] dedicated_host_group_reference_model = {} # DedicatedHostGroupReference - dedicated_host_group_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host-group:0717-bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0' + dedicated_host_group_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host-group:0717-bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0' + ) dedicated_host_group_reference_model['deleted'] = deleted_model - dedicated_host_group_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/dedicated_host/groups/0717-bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0' + dedicated_host_group_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/dedicated_host/groups/0717-bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0' + ) dedicated_host_group_reference_model['id'] = '0717-bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0' dedicated_host_group_reference_model['name'] = 'my-dedicated-host-group' dedicated_host_group_reference_model['resource_type'] = 'dedicated_host_group' instance_reference_model = {} # InstanceReference - instance_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::instance:0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' + instance_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::instance:0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' + ) instance_reference_model['deleted'] = deleted_model - instance_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' + instance_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' + ) instance_reference_model['id'] = '0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' instance_reference_model['name'] = 'my-instance' @@ -58137,11 +59559,15 @@ def test_dedicated_host_collection_serialization(self): dedicated_host_numa_model['nodes'] = [dedicated_host_numa_node_model] dedicated_host_profile_reference_model = {} # DedicatedHostProfileReference - dedicated_host_profile_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/dedicated_host/profiles/mx2-host-152x1216' + dedicated_host_profile_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/dedicated_host/profiles/mx2-host-152x1216' + ) dedicated_host_profile_reference_model['name'] = 'mx2-host-152x1216' resource_group_reference_model = {} # ResourceGroupReference - resource_group_reference_model['href'] = 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + resource_group_reference_model['href'] = ( + 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + ) resource_group_reference_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' resource_group_reference_model['name'] = 'Default' @@ -58158,10 +59584,14 @@ def test_dedicated_host_collection_serialization(self): dedicated_host_model['available_memory'] = 346 dedicated_host_model['available_vcpu'] = vcpu_model dedicated_host_model['created_at'] = '2024-11-04T19:38:33Z' - dedicated_host_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host:0717-1e09281b-f177-46fb-baf1-bc152b2e391a' + dedicated_host_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host:0717-1e09281b-f177-46fb-baf1-bc152b2e391a' + ) dedicated_host_model['disks'] = [dedicated_host_disk_model] dedicated_host_model['group'] = dedicated_host_group_reference_model - dedicated_host_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/dedicated_hosts/0717-1e09281b-f177-46fb-baf1-bc152b2e391a' + dedicated_host_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/dedicated_hosts/0717-1e09281b-f177-46fb-baf1-bc152b2e391a' + ) dedicated_host_model['id'] = '0717-1e09281b-f177-46fb-baf1-bc152b2e391a' dedicated_host_model['instance_placement_enabled'] = True dedicated_host_model['instances'] = [instance_reference_model] @@ -58195,7 +59625,9 @@ def test_dedicated_host_collection_serialization(self): assert dedicated_host_collection_model != False # Construct a model instance of DedicatedHostCollection by calling from_dict on the json representation - dedicated_host_collection_model_dict = DedicatedHostCollection.from_dict(dedicated_host_collection_model_json).__dict__ + dedicated_host_collection_model_dict = DedicatedHostCollection.from_dict( + dedicated_host_collection_model_json + ).__dict__ dedicated_host_collection_model2 = DedicatedHostCollection(**dedicated_host_collection_model_dict) # Verify the model instances are equivalent @@ -58223,7 +59655,9 @@ def test_dedicated_host_disk_serialization(self): instance_disk_reference_model = {} # InstanceDiskReference instance_disk_reference_model['deleted'] = deleted_model - instance_disk_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/disks/10c02d81-0ecb-4dc5-897d-28392913b81e' + instance_disk_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/disks/10c02d81-0ecb-4dc5-897d-28392913b81e' + ) instance_disk_reference_model['id'] = '10c02d81-0ecb-4dc5-897d-28392913b81e' instance_disk_reference_model['name'] = 'my-instance-disk' instance_disk_reference_model['resource_type'] = 'instance_disk' @@ -58232,7 +59666,9 @@ def test_dedicated_host_disk_serialization(self): dedicated_host_disk_model_json = {} dedicated_host_disk_model_json['available'] = 38 dedicated_host_disk_model_json['created_at'] = '2019-01-01T12:00:00Z' - dedicated_host_disk_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/dedicated_hosts/0717-1e09281b-f177-46fb-baf1-bc152b2e391a/disks/0717-bd091a9e-b036-4c65-a79b-56d164911f6e' + dedicated_host_disk_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/dedicated_hosts/0717-1e09281b-f177-46fb-baf1-bc152b2e391a/disks/0717-bd091a9e-b036-4c65-a79b-56d164911f6e' + ) dedicated_host_disk_model_json['id'] = '0717-bd091a9e-b036-4c65-a79b-56d164911f6e' dedicated_host_disk_model_json['instance_disks'] = [instance_disk_reference_model] dedicated_host_disk_model_json['interface_type'] = 'nvme' @@ -58276,7 +59712,9 @@ def test_dedicated_host_disk_collection_serialization(self): instance_disk_reference_model = {} # InstanceDiskReference instance_disk_reference_model['deleted'] = deleted_model - instance_disk_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/disks/10c02d81-0ecb-4dc5-897d-28392913b81e' + instance_disk_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/disks/10c02d81-0ecb-4dc5-897d-28392913b81e' + ) instance_disk_reference_model['id'] = '10c02d81-0ecb-4dc5-897d-28392913b81e' instance_disk_reference_model['name'] = 'my-instance-disk' instance_disk_reference_model['resource_type'] = 'instance_disk' @@ -58284,7 +59722,9 @@ def test_dedicated_host_disk_collection_serialization(self): dedicated_host_disk_model = {} # DedicatedHostDisk dedicated_host_disk_model['available'] = 3200 dedicated_host_disk_model['created_at'] = '2024-11-04T17:05:47Z' - dedicated_host_disk_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/dedicated_hosts/0717-1e09281b-f177-46fb-baf1-bc152b2e391a/disks/0717-bd091a9e-b036-4c65-a79b-56d164911f6e' + dedicated_host_disk_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/dedicated_hosts/0717-1e09281b-f177-46fb-baf1-bc152b2e391a/disks/0717-bd091a9e-b036-4c65-a79b-56d164911f6e' + ) dedicated_host_disk_model['id'] = '0717-bd091a9e-b036-4c65-a79b-56d164911f6e' dedicated_host_disk_model['instance_disks'] = [instance_disk_reference_model] dedicated_host_disk_model['interface_type'] = 'nvme' @@ -58300,11 +59740,15 @@ def test_dedicated_host_disk_collection_serialization(self): dedicated_host_disk_collection_model_json['disks'] = [dedicated_host_disk_model] # Construct a model instance of DedicatedHostDiskCollection by calling from_dict on the json representation - dedicated_host_disk_collection_model = DedicatedHostDiskCollection.from_dict(dedicated_host_disk_collection_model_json) + dedicated_host_disk_collection_model = DedicatedHostDiskCollection.from_dict( + dedicated_host_disk_collection_model_json + ) assert dedicated_host_disk_collection_model != False # Construct a model instance of DedicatedHostDiskCollection by calling from_dict on the json representation - dedicated_host_disk_collection_model_dict = DedicatedHostDiskCollection.from_dict(dedicated_host_disk_collection_model_json).__dict__ + dedicated_host_disk_collection_model_dict = DedicatedHostDiskCollection.from_dict( + dedicated_host_disk_collection_model_json + ).__dict__ dedicated_host_disk_collection_model2 = DedicatedHostDiskCollection(**dedicated_host_disk_collection_model_dict) # Verify the model instances are equivalent @@ -58334,7 +59778,9 @@ def test_dedicated_host_disk_patch_serialization(self): assert dedicated_host_disk_patch_model != False # Construct a model instance of DedicatedHostDiskPatch by calling from_dict on the json representation - dedicated_host_disk_patch_model_dict = DedicatedHostDiskPatch.from_dict(dedicated_host_disk_patch_model_json).__dict__ + dedicated_host_disk_patch_model_dict = DedicatedHostDiskPatch.from_dict( + dedicated_host_disk_patch_model_json + ).__dict__ dedicated_host_disk_patch_model2 = DedicatedHostDiskPatch(**dedicated_host_disk_patch_model_dict) # Verify the model instances are equivalent @@ -58361,15 +59807,21 @@ def test_dedicated_host_group_serialization(self): deleted_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#deleted-resources' dedicated_host_reference_model = {} # DedicatedHostReference - dedicated_host_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host:0717-1e09281b-f177-46fb-baf1-bc152b2e391a' + dedicated_host_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host:0717-1e09281b-f177-46fb-baf1-bc152b2e391a' + ) dedicated_host_reference_model['deleted'] = deleted_model - dedicated_host_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/dedicated_hosts/0717-1e09281b-f177-46fb-baf1-bc152b2e391a' + dedicated_host_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/dedicated_hosts/0717-1e09281b-f177-46fb-baf1-bc152b2e391a' + ) dedicated_host_reference_model['id'] = '0717-1e09281b-f177-46fb-baf1-bc152b2e391a' dedicated_host_reference_model['name'] = 'my-dedicated-host' dedicated_host_reference_model['resource_type'] = 'dedicated_host' resource_group_reference_model = {} # ResourceGroupReference - resource_group_reference_model['href'] = 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + resource_group_reference_model['href'] = ( + 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + ) resource_group_reference_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' resource_group_reference_model['name'] = 'Default' @@ -58386,10 +59838,14 @@ def test_dedicated_host_group_serialization(self): dedicated_host_group_model_json = {} dedicated_host_group_model_json['class'] = 'bx2' dedicated_host_group_model_json['created_at'] = '2019-01-01T12:00:00Z' - dedicated_host_group_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host-group:0717-bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0' + dedicated_host_group_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host-group:0717-bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0' + ) dedicated_host_group_model_json['dedicated_hosts'] = [dedicated_host_reference_model] dedicated_host_group_model_json['family'] = 'balanced' - dedicated_host_group_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/dedicated_host/groups/0717-bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0' + dedicated_host_group_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/dedicated_host/groups/0717-bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0' + ) dedicated_host_group_model_json['id'] = '0717-bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0' dedicated_host_group_model_json['name'] = 'my-dedicated-host-group' dedicated_host_group_model_json['resource_group'] = resource_group_reference_model @@ -58432,15 +59888,21 @@ def test_dedicated_host_group_collection_serialization(self): deleted_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#deleted-resources' dedicated_host_reference_model = {} # DedicatedHostReference - dedicated_host_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host:0717-1e09281b-f177-46fb-baf1-bc152b2e391a' + dedicated_host_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host:0717-1e09281b-f177-46fb-baf1-bc152b2e391a' + ) dedicated_host_reference_model['deleted'] = deleted_model - dedicated_host_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/dedicated_hosts/0717-1e09281b-f177-46fb-baf1-bc152b2e391a' + dedicated_host_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/dedicated_hosts/0717-1e09281b-f177-46fb-baf1-bc152b2e391a' + ) dedicated_host_reference_model['id'] = '0717-1e09281b-f177-46fb-baf1-bc152b2e391a' dedicated_host_reference_model['name'] = 'my-dedicated-host' dedicated_host_reference_model['resource_type'] = 'dedicated_host' resource_group_reference_model = {} # ResourceGroupReference - resource_group_reference_model['href'] = 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + resource_group_reference_model['href'] = ( + 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + ) resource_group_reference_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' resource_group_reference_model['name'] = 'Default' @@ -58456,10 +59918,14 @@ def test_dedicated_host_group_collection_serialization(self): dedicated_host_group_model = {} # DedicatedHostGroup dedicated_host_group_model['class'] = 'mx2' dedicated_host_group_model['created_at'] = '2024-11-04T21:29:25Z' - dedicated_host_group_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host-group:0717-bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0' + dedicated_host_group_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host-group:0717-bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0' + ) dedicated_host_group_model['dedicated_hosts'] = [dedicated_host_reference_model] dedicated_host_group_model['family'] = 'memory' - dedicated_host_group_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/dedicated_host/groups/0717-bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0' + dedicated_host_group_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/dedicated_host/groups/0717-bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0' + ) dedicated_host_group_model['id'] = '0717-bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0' dedicated_host_group_model['name'] = 'my-dedicated-host-group' dedicated_host_group_model['resource_group'] = resource_group_reference_model @@ -58476,12 +59942,18 @@ def test_dedicated_host_group_collection_serialization(self): dedicated_host_group_collection_model_json['total_count'] = 132 # Construct a model instance of DedicatedHostGroupCollection by calling from_dict on the json representation - dedicated_host_group_collection_model = DedicatedHostGroupCollection.from_dict(dedicated_host_group_collection_model_json) + dedicated_host_group_collection_model = DedicatedHostGroupCollection.from_dict( + dedicated_host_group_collection_model_json + ) assert dedicated_host_group_collection_model != False # Construct a model instance of DedicatedHostGroupCollection by calling from_dict on the json representation - dedicated_host_group_collection_model_dict = DedicatedHostGroupCollection.from_dict(dedicated_host_group_collection_model_json).__dict__ - dedicated_host_group_collection_model2 = DedicatedHostGroupCollection(**dedicated_host_group_collection_model_dict) + dedicated_host_group_collection_model_dict = DedicatedHostGroupCollection.from_dict( + dedicated_host_group_collection_model_json + ).__dict__ + dedicated_host_group_collection_model2 = DedicatedHostGroupCollection( + **dedicated_host_group_collection_model_dict + ) # Verify the model instances are equivalent assert dedicated_host_group_collection_model == dedicated_host_group_collection_model2 @@ -58510,7 +59982,9 @@ def test_dedicated_host_group_patch_serialization(self): assert dedicated_host_group_patch_model != False # Construct a model instance of DedicatedHostGroupPatch by calling from_dict on the json representation - dedicated_host_group_patch_model_dict = DedicatedHostGroupPatch.from_dict(dedicated_host_group_patch_model_json).__dict__ + dedicated_host_group_patch_model_dict = DedicatedHostGroupPatch.from_dict( + dedicated_host_group_patch_model_json + ).__dict__ dedicated_host_group_patch_model2 = DedicatedHostGroupPatch(**dedicated_host_group_patch_model_dict) # Verify the model instances are equivalent @@ -58539,22 +60013,44 @@ def test_dedicated_host_group_prototype_dedicated_host_by_zone_context_serializa # Construct a json representation of a DedicatedHostGroupPrototypeDedicatedHostByZoneContext model dedicated_host_group_prototype_dedicated_host_by_zone_context_model_json = {} dedicated_host_group_prototype_dedicated_host_by_zone_context_model_json['name'] = 'my-dedicated-host-group' - dedicated_host_group_prototype_dedicated_host_by_zone_context_model_json['resource_group'] = resource_group_identity_model + dedicated_host_group_prototype_dedicated_host_by_zone_context_model_json['resource_group'] = ( + resource_group_identity_model + ) # Construct a model instance of DedicatedHostGroupPrototypeDedicatedHostByZoneContext by calling from_dict on the json representation - dedicated_host_group_prototype_dedicated_host_by_zone_context_model = DedicatedHostGroupPrototypeDedicatedHostByZoneContext.from_dict(dedicated_host_group_prototype_dedicated_host_by_zone_context_model_json) + dedicated_host_group_prototype_dedicated_host_by_zone_context_model = ( + DedicatedHostGroupPrototypeDedicatedHostByZoneContext.from_dict( + dedicated_host_group_prototype_dedicated_host_by_zone_context_model_json + ) + ) assert dedicated_host_group_prototype_dedicated_host_by_zone_context_model != False # Construct a model instance of DedicatedHostGroupPrototypeDedicatedHostByZoneContext by calling from_dict on the json representation - dedicated_host_group_prototype_dedicated_host_by_zone_context_model_dict = DedicatedHostGroupPrototypeDedicatedHostByZoneContext.from_dict(dedicated_host_group_prototype_dedicated_host_by_zone_context_model_json).__dict__ - dedicated_host_group_prototype_dedicated_host_by_zone_context_model2 = DedicatedHostGroupPrototypeDedicatedHostByZoneContext(**dedicated_host_group_prototype_dedicated_host_by_zone_context_model_dict) + dedicated_host_group_prototype_dedicated_host_by_zone_context_model_dict = ( + DedicatedHostGroupPrototypeDedicatedHostByZoneContext.from_dict( + dedicated_host_group_prototype_dedicated_host_by_zone_context_model_json + ).__dict__ + ) + dedicated_host_group_prototype_dedicated_host_by_zone_context_model2 = ( + DedicatedHostGroupPrototypeDedicatedHostByZoneContext( + **dedicated_host_group_prototype_dedicated_host_by_zone_context_model_dict + ) + ) # Verify the model instances are equivalent - assert dedicated_host_group_prototype_dedicated_host_by_zone_context_model == dedicated_host_group_prototype_dedicated_host_by_zone_context_model2 + assert ( + dedicated_host_group_prototype_dedicated_host_by_zone_context_model + == dedicated_host_group_prototype_dedicated_host_by_zone_context_model2 + ) # Convert model instance back to dict and verify no loss of data - dedicated_host_group_prototype_dedicated_host_by_zone_context_model_json2 = dedicated_host_group_prototype_dedicated_host_by_zone_context_model.to_dict() - assert dedicated_host_group_prototype_dedicated_host_by_zone_context_model_json2 == dedicated_host_group_prototype_dedicated_host_by_zone_context_model_json + dedicated_host_group_prototype_dedicated_host_by_zone_context_model_json2 = ( + dedicated_host_group_prototype_dedicated_host_by_zone_context_model.to_dict() + ) + assert ( + dedicated_host_group_prototype_dedicated_host_by_zone_context_model_json2 + == dedicated_host_group_prototype_dedicated_host_by_zone_context_model_json + ) class TestModel_DedicatedHostGroupReference: @@ -58574,19 +60070,27 @@ def test_dedicated_host_group_reference_serialization(self): # Construct a json representation of a DedicatedHostGroupReference model dedicated_host_group_reference_model_json = {} - dedicated_host_group_reference_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host-group:0717-bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0' + dedicated_host_group_reference_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host-group:0717-bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0' + ) dedicated_host_group_reference_model_json['deleted'] = deleted_model - dedicated_host_group_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/dedicated_host/groups/0717-bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0' + dedicated_host_group_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/dedicated_host/groups/0717-bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0' + ) dedicated_host_group_reference_model_json['id'] = '0717-bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0' dedicated_host_group_reference_model_json['name'] = 'my-dedicated-host-group' dedicated_host_group_reference_model_json['resource_type'] = 'dedicated_host_group' # Construct a model instance of DedicatedHostGroupReference by calling from_dict on the json representation - dedicated_host_group_reference_model = DedicatedHostGroupReference.from_dict(dedicated_host_group_reference_model_json) + dedicated_host_group_reference_model = DedicatedHostGroupReference.from_dict( + dedicated_host_group_reference_model_json + ) assert dedicated_host_group_reference_model != False # Construct a model instance of DedicatedHostGroupReference by calling from_dict on the json representation - dedicated_host_group_reference_model_dict = DedicatedHostGroupReference.from_dict(dedicated_host_group_reference_model_json).__dict__ + dedicated_host_group_reference_model_dict = DedicatedHostGroupReference.from_dict( + dedicated_host_group_reference_model_json + ).__dict__ dedicated_host_group_reference_model2 = DedicatedHostGroupReference(**dedicated_host_group_reference_model_dict) # Verify the model instances are equivalent @@ -58654,7 +60158,9 @@ def test_dedicated_host_numa_node_serialization(self): assert dedicated_host_numa_node_model != False # Construct a model instance of DedicatedHostNUMANode by calling from_dict on the json representation - dedicated_host_numa_node_model_dict = DedicatedHostNUMANode.from_dict(dedicated_host_numa_node_model_json).__dict__ + dedicated_host_numa_node_model_dict = DedicatedHostNUMANode.from_dict( + dedicated_host_numa_node_model_json + ).__dict__ dedicated_host_numa_node_model2 = DedicatedHostNUMANode(**dedicated_host_numa_node_model_dict) # Verify the model instances are equivalent @@ -58728,7 +60234,9 @@ def test_dedicated_host_profile_serialization(self): dedicated_host_profile_disk_model['interface_type'] = dedicated_host_profile_disk_interface_model dedicated_host_profile_disk_model['quantity'] = dedicated_host_profile_disk_quantity_model dedicated_host_profile_disk_model['size'] = dedicated_host_profile_disk_size_model - dedicated_host_profile_disk_model['supported_instance_interface_types'] = dedicated_host_profile_disk_supported_interfaces_model + dedicated_host_profile_disk_model['supported_instance_interface_types'] = ( + dedicated_host_profile_disk_supported_interfaces_model + ) dedicated_host_profile_memory_model = {} # DedicatedHostProfileMemoryFixed dedicated_host_profile_memory_model['type'] = 'fixed' @@ -58760,7 +60268,9 @@ def test_dedicated_host_profile_serialization(self): dedicated_host_profile_model_json['class'] = 'bx2' dedicated_host_profile_model_json['disks'] = [dedicated_host_profile_disk_model] dedicated_host_profile_model_json['family'] = 'balanced' - dedicated_host_profile_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/dedicated_hosts/0717-1e09281b-f177-46fb-baf1-bc152b2e391a' + dedicated_host_profile_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/dedicated_hosts/0717-1e09281b-f177-46fb-baf1-bc152b2e391a' + ) dedicated_host_profile_model_json['memory'] = dedicated_host_profile_memory_model dedicated_host_profile_model_json['name'] = 'mx2-host-152x1216' dedicated_host_profile_model_json['socket_count'] = dedicated_host_profile_socket_model @@ -58821,7 +60331,9 @@ def test_dedicated_host_profile_collection_serialization(self): dedicated_host_profile_disk_model['interface_type'] = dedicated_host_profile_disk_interface_model dedicated_host_profile_disk_model['quantity'] = dedicated_host_profile_disk_quantity_model dedicated_host_profile_disk_model['size'] = dedicated_host_profile_disk_size_model - dedicated_host_profile_disk_model['supported_instance_interface_types'] = dedicated_host_profile_disk_supported_interfaces_model + dedicated_host_profile_disk_model['supported_instance_interface_types'] = ( + dedicated_host_profile_disk_supported_interfaces_model + ) dedicated_host_profile_memory_model = {} # DedicatedHostProfileMemoryFixed dedicated_host_profile_memory_model['type'] = 'fixed' @@ -58852,7 +60364,9 @@ def test_dedicated_host_profile_collection_serialization(self): dedicated_host_profile_model['class'] = 'mx2' dedicated_host_profile_model['disks'] = [dedicated_host_profile_disk_model] dedicated_host_profile_model['family'] = 'memory' - dedicated_host_profile_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/dedicated_host/profiles/mx2-host-152x1216' + dedicated_host_profile_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/dedicated_host/profiles/mx2-host-152x1216' + ) dedicated_host_profile_model['memory'] = dedicated_host_profile_memory_model dedicated_host_profile_model['name'] = 'mx2-host-152x1216' dedicated_host_profile_model['socket_count'] = dedicated_host_profile_socket_model @@ -58871,12 +60385,18 @@ def test_dedicated_host_profile_collection_serialization(self): dedicated_host_profile_collection_model_json['total_count'] = 132 # Construct a model instance of DedicatedHostProfileCollection by calling from_dict on the json representation - dedicated_host_profile_collection_model = DedicatedHostProfileCollection.from_dict(dedicated_host_profile_collection_model_json) + dedicated_host_profile_collection_model = DedicatedHostProfileCollection.from_dict( + dedicated_host_profile_collection_model_json + ) assert dedicated_host_profile_collection_model != False # Construct a model instance of DedicatedHostProfileCollection by calling from_dict on the json representation - dedicated_host_profile_collection_model_dict = DedicatedHostProfileCollection.from_dict(dedicated_host_profile_collection_model_json).__dict__ - dedicated_host_profile_collection_model2 = DedicatedHostProfileCollection(**dedicated_host_profile_collection_model_dict) + dedicated_host_profile_collection_model_dict = DedicatedHostProfileCollection.from_dict( + dedicated_host_profile_collection_model_json + ).__dict__ + dedicated_host_profile_collection_model2 = DedicatedHostProfileCollection( + **dedicated_host_profile_collection_model_dict + ) # Verify the model instances are equivalent assert dedicated_host_profile_collection_model == dedicated_host_profile_collection_model2 @@ -58919,14 +60439,18 @@ def test_dedicated_host_profile_disk_serialization(self): dedicated_host_profile_disk_model_json['interface_type'] = dedicated_host_profile_disk_interface_model dedicated_host_profile_disk_model_json['quantity'] = dedicated_host_profile_disk_quantity_model dedicated_host_profile_disk_model_json['size'] = dedicated_host_profile_disk_size_model - dedicated_host_profile_disk_model_json['supported_instance_interface_types'] = dedicated_host_profile_disk_supported_interfaces_model + dedicated_host_profile_disk_model_json['supported_instance_interface_types'] = ( + dedicated_host_profile_disk_supported_interfaces_model + ) # Construct a model instance of DedicatedHostProfileDisk by calling from_dict on the json representation dedicated_host_profile_disk_model = DedicatedHostProfileDisk.from_dict(dedicated_host_profile_disk_model_json) assert dedicated_host_profile_disk_model != False # Construct a model instance of DedicatedHostProfileDisk by calling from_dict on the json representation - dedicated_host_profile_disk_model_dict = DedicatedHostProfileDisk.from_dict(dedicated_host_profile_disk_model_json).__dict__ + dedicated_host_profile_disk_model_dict = DedicatedHostProfileDisk.from_dict( + dedicated_host_profile_disk_model_json + ).__dict__ dedicated_host_profile_disk_model2 = DedicatedHostProfileDisk(**dedicated_host_profile_disk_model_dict) # Verify the model instances are equivalent @@ -58953,12 +60477,18 @@ def test_dedicated_host_profile_disk_interface_serialization(self): dedicated_host_profile_disk_interface_model_json['value'] = 'nvme' # Construct a model instance of DedicatedHostProfileDiskInterface by calling from_dict on the json representation - dedicated_host_profile_disk_interface_model = DedicatedHostProfileDiskInterface.from_dict(dedicated_host_profile_disk_interface_model_json) + dedicated_host_profile_disk_interface_model = DedicatedHostProfileDiskInterface.from_dict( + dedicated_host_profile_disk_interface_model_json + ) assert dedicated_host_profile_disk_interface_model != False # Construct a model instance of DedicatedHostProfileDiskInterface by calling from_dict on the json representation - dedicated_host_profile_disk_interface_model_dict = DedicatedHostProfileDiskInterface.from_dict(dedicated_host_profile_disk_interface_model_json).__dict__ - dedicated_host_profile_disk_interface_model2 = DedicatedHostProfileDiskInterface(**dedicated_host_profile_disk_interface_model_dict) + dedicated_host_profile_disk_interface_model_dict = DedicatedHostProfileDiskInterface.from_dict( + dedicated_host_profile_disk_interface_model_json + ).__dict__ + dedicated_host_profile_disk_interface_model2 = DedicatedHostProfileDiskInterface( + **dedicated_host_profile_disk_interface_model_dict + ) # Verify the model instances are equivalent assert dedicated_host_profile_disk_interface_model == dedicated_host_profile_disk_interface_model2 @@ -58984,12 +60514,18 @@ def test_dedicated_host_profile_disk_quantity_serialization(self): dedicated_host_profile_disk_quantity_model_json['value'] = 4 # Construct a model instance of DedicatedHostProfileDiskQuantity by calling from_dict on the json representation - dedicated_host_profile_disk_quantity_model = DedicatedHostProfileDiskQuantity.from_dict(dedicated_host_profile_disk_quantity_model_json) + dedicated_host_profile_disk_quantity_model = DedicatedHostProfileDiskQuantity.from_dict( + dedicated_host_profile_disk_quantity_model_json + ) assert dedicated_host_profile_disk_quantity_model != False # Construct a model instance of DedicatedHostProfileDiskQuantity by calling from_dict on the json representation - dedicated_host_profile_disk_quantity_model_dict = DedicatedHostProfileDiskQuantity.from_dict(dedicated_host_profile_disk_quantity_model_json).__dict__ - dedicated_host_profile_disk_quantity_model2 = DedicatedHostProfileDiskQuantity(**dedicated_host_profile_disk_quantity_model_dict) + dedicated_host_profile_disk_quantity_model_dict = DedicatedHostProfileDiskQuantity.from_dict( + dedicated_host_profile_disk_quantity_model_json + ).__dict__ + dedicated_host_profile_disk_quantity_model2 = DedicatedHostProfileDiskQuantity( + **dedicated_host_profile_disk_quantity_model_dict + ) # Verify the model instances are equivalent assert dedicated_host_profile_disk_quantity_model == dedicated_host_profile_disk_quantity_model2 @@ -59015,12 +60551,18 @@ def test_dedicated_host_profile_disk_size_serialization(self): dedicated_host_profile_disk_size_model_json['value'] = 3200 # Construct a model instance of DedicatedHostProfileDiskSize by calling from_dict on the json representation - dedicated_host_profile_disk_size_model = DedicatedHostProfileDiskSize.from_dict(dedicated_host_profile_disk_size_model_json) + dedicated_host_profile_disk_size_model = DedicatedHostProfileDiskSize.from_dict( + dedicated_host_profile_disk_size_model_json + ) assert dedicated_host_profile_disk_size_model != False # Construct a model instance of DedicatedHostProfileDiskSize by calling from_dict on the json representation - dedicated_host_profile_disk_size_model_dict = DedicatedHostProfileDiskSize.from_dict(dedicated_host_profile_disk_size_model_json).__dict__ - dedicated_host_profile_disk_size_model2 = DedicatedHostProfileDiskSize(**dedicated_host_profile_disk_size_model_dict) + dedicated_host_profile_disk_size_model_dict = DedicatedHostProfileDiskSize.from_dict( + dedicated_host_profile_disk_size_model_json + ).__dict__ + dedicated_host_profile_disk_size_model2 = DedicatedHostProfileDiskSize( + **dedicated_host_profile_disk_size_model_dict + ) # Verify the model instances are equivalent assert dedicated_host_profile_disk_size_model == dedicated_host_profile_disk_size_model2 @@ -59046,19 +60588,35 @@ def test_dedicated_host_profile_disk_supported_interfaces_serialization(self): dedicated_host_profile_disk_supported_interfaces_model_json['value'] = ['nvme'] # Construct a model instance of DedicatedHostProfileDiskSupportedInterfaces by calling from_dict on the json representation - dedicated_host_profile_disk_supported_interfaces_model = DedicatedHostProfileDiskSupportedInterfaces.from_dict(dedicated_host_profile_disk_supported_interfaces_model_json) + dedicated_host_profile_disk_supported_interfaces_model = DedicatedHostProfileDiskSupportedInterfaces.from_dict( + dedicated_host_profile_disk_supported_interfaces_model_json + ) assert dedicated_host_profile_disk_supported_interfaces_model != False # Construct a model instance of DedicatedHostProfileDiskSupportedInterfaces by calling from_dict on the json representation - dedicated_host_profile_disk_supported_interfaces_model_dict = DedicatedHostProfileDiskSupportedInterfaces.from_dict(dedicated_host_profile_disk_supported_interfaces_model_json).__dict__ - dedicated_host_profile_disk_supported_interfaces_model2 = DedicatedHostProfileDiskSupportedInterfaces(**dedicated_host_profile_disk_supported_interfaces_model_dict) + dedicated_host_profile_disk_supported_interfaces_model_dict = ( + DedicatedHostProfileDiskSupportedInterfaces.from_dict( + dedicated_host_profile_disk_supported_interfaces_model_json + ).__dict__ + ) + dedicated_host_profile_disk_supported_interfaces_model2 = DedicatedHostProfileDiskSupportedInterfaces( + **dedicated_host_profile_disk_supported_interfaces_model_dict + ) # Verify the model instances are equivalent - assert dedicated_host_profile_disk_supported_interfaces_model == dedicated_host_profile_disk_supported_interfaces_model2 + assert ( + dedicated_host_profile_disk_supported_interfaces_model + == dedicated_host_profile_disk_supported_interfaces_model2 + ) # Convert model instance back to dict and verify no loss of data - dedicated_host_profile_disk_supported_interfaces_model_json2 = dedicated_host_profile_disk_supported_interfaces_model.to_dict() - assert dedicated_host_profile_disk_supported_interfaces_model_json2 == dedicated_host_profile_disk_supported_interfaces_model_json + dedicated_host_profile_disk_supported_interfaces_model_json2 = ( + dedicated_host_profile_disk_supported_interfaces_model.to_dict() + ) + assert ( + dedicated_host_profile_disk_supported_interfaces_model_json2 + == dedicated_host_profile_disk_supported_interfaces_model_json + ) class TestModel_DedicatedHostProfileReference: @@ -59073,16 +60631,24 @@ def test_dedicated_host_profile_reference_serialization(self): # Construct a json representation of a DedicatedHostProfileReference model dedicated_host_profile_reference_model_json = {} - dedicated_host_profile_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/dedicated_hosts/0717-1e09281b-f177-46fb-baf1-bc152b2e391a' + dedicated_host_profile_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/dedicated_hosts/0717-1e09281b-f177-46fb-baf1-bc152b2e391a' + ) dedicated_host_profile_reference_model_json['name'] = 'mx2-host-152x1216' # Construct a model instance of DedicatedHostProfileReference by calling from_dict on the json representation - dedicated_host_profile_reference_model = DedicatedHostProfileReference.from_dict(dedicated_host_profile_reference_model_json) + dedicated_host_profile_reference_model = DedicatedHostProfileReference.from_dict( + dedicated_host_profile_reference_model_json + ) assert dedicated_host_profile_reference_model != False # Construct a model instance of DedicatedHostProfileReference by calling from_dict on the json representation - dedicated_host_profile_reference_model_dict = DedicatedHostProfileReference.from_dict(dedicated_host_profile_reference_model_json).__dict__ - dedicated_host_profile_reference_model2 = DedicatedHostProfileReference(**dedicated_host_profile_reference_model_dict) + dedicated_host_profile_reference_model_dict = DedicatedHostProfileReference.from_dict( + dedicated_host_profile_reference_model_json + ).__dict__ + dedicated_host_profile_reference_model2 = DedicatedHostProfileReference( + **dedicated_host_profile_reference_model_dict + ) # Verify the model instances are equivalent assert dedicated_host_profile_reference_model == dedicated_host_profile_reference_model2 @@ -59108,19 +60674,27 @@ def test_dedicated_host_profile_vcpu_architecture_serialization(self): dedicated_host_profile_vcpu_architecture_model_json['value'] = 'amd64' # Construct a model instance of DedicatedHostProfileVCPUArchitecture by calling from_dict on the json representation - dedicated_host_profile_vcpu_architecture_model = DedicatedHostProfileVCPUArchitecture.from_dict(dedicated_host_profile_vcpu_architecture_model_json) + dedicated_host_profile_vcpu_architecture_model = DedicatedHostProfileVCPUArchitecture.from_dict( + dedicated_host_profile_vcpu_architecture_model_json + ) assert dedicated_host_profile_vcpu_architecture_model != False # Construct a model instance of DedicatedHostProfileVCPUArchitecture by calling from_dict on the json representation - dedicated_host_profile_vcpu_architecture_model_dict = DedicatedHostProfileVCPUArchitecture.from_dict(dedicated_host_profile_vcpu_architecture_model_json).__dict__ - dedicated_host_profile_vcpu_architecture_model2 = DedicatedHostProfileVCPUArchitecture(**dedicated_host_profile_vcpu_architecture_model_dict) + dedicated_host_profile_vcpu_architecture_model_dict = DedicatedHostProfileVCPUArchitecture.from_dict( + dedicated_host_profile_vcpu_architecture_model_json + ).__dict__ + dedicated_host_profile_vcpu_architecture_model2 = DedicatedHostProfileVCPUArchitecture( + **dedicated_host_profile_vcpu_architecture_model_dict + ) # Verify the model instances are equivalent assert dedicated_host_profile_vcpu_architecture_model == dedicated_host_profile_vcpu_architecture_model2 # Convert model instance back to dict and verify no loss of data dedicated_host_profile_vcpu_architecture_model_json2 = dedicated_host_profile_vcpu_architecture_model.to_dict() - assert dedicated_host_profile_vcpu_architecture_model_json2 == dedicated_host_profile_vcpu_architecture_model_json + assert ( + dedicated_host_profile_vcpu_architecture_model_json2 == dedicated_host_profile_vcpu_architecture_model_json + ) class TestModel_DedicatedHostProfileVCPUManufacturer: @@ -59139,19 +60713,27 @@ def test_dedicated_host_profile_vcpu_manufacturer_serialization(self): dedicated_host_profile_vcpu_manufacturer_model_json['value'] = 'intel' # Construct a model instance of DedicatedHostProfileVCPUManufacturer by calling from_dict on the json representation - dedicated_host_profile_vcpu_manufacturer_model = DedicatedHostProfileVCPUManufacturer.from_dict(dedicated_host_profile_vcpu_manufacturer_model_json) + dedicated_host_profile_vcpu_manufacturer_model = DedicatedHostProfileVCPUManufacturer.from_dict( + dedicated_host_profile_vcpu_manufacturer_model_json + ) assert dedicated_host_profile_vcpu_manufacturer_model != False # Construct a model instance of DedicatedHostProfileVCPUManufacturer by calling from_dict on the json representation - dedicated_host_profile_vcpu_manufacturer_model_dict = DedicatedHostProfileVCPUManufacturer.from_dict(dedicated_host_profile_vcpu_manufacturer_model_json).__dict__ - dedicated_host_profile_vcpu_manufacturer_model2 = DedicatedHostProfileVCPUManufacturer(**dedicated_host_profile_vcpu_manufacturer_model_dict) + dedicated_host_profile_vcpu_manufacturer_model_dict = DedicatedHostProfileVCPUManufacturer.from_dict( + dedicated_host_profile_vcpu_manufacturer_model_json + ).__dict__ + dedicated_host_profile_vcpu_manufacturer_model2 = DedicatedHostProfileVCPUManufacturer( + **dedicated_host_profile_vcpu_manufacturer_model_dict + ) # Verify the model instances are equivalent assert dedicated_host_profile_vcpu_manufacturer_model == dedicated_host_profile_vcpu_manufacturer_model2 # Convert model instance back to dict and verify no loss of data dedicated_host_profile_vcpu_manufacturer_model_json2 = dedicated_host_profile_vcpu_manufacturer_model.to_dict() - assert dedicated_host_profile_vcpu_manufacturer_model_json2 == dedicated_host_profile_vcpu_manufacturer_model_json + assert ( + dedicated_host_profile_vcpu_manufacturer_model_json2 == dedicated_host_profile_vcpu_manufacturer_model_json + ) class TestModel_DedicatedHostReference: @@ -59171,9 +60753,13 @@ def test_dedicated_host_reference_serialization(self): # Construct a json representation of a DedicatedHostReference model dedicated_host_reference_model_json = {} - dedicated_host_reference_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host:0717-1e09281b-f177-46fb-baf1-bc152b2e391a' + dedicated_host_reference_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host:0717-1e09281b-f177-46fb-baf1-bc152b2e391a' + ) dedicated_host_reference_model_json['deleted'] = deleted_model - dedicated_host_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/dedicated_hosts/0717-1e09281b-f177-46fb-baf1-bc152b2e391a' + dedicated_host_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/dedicated_hosts/0717-1e09281b-f177-46fb-baf1-bc152b2e391a' + ) dedicated_host_reference_model_json['id'] = '0717-1e09281b-f177-46fb-baf1-bc152b2e391a' dedicated_host_reference_model_json['name'] = 'my-host' dedicated_host_reference_model_json['resource_type'] = 'dedicated_host' @@ -59183,7 +60769,9 @@ def test_dedicated_host_reference_serialization(self): assert dedicated_host_reference_model != False # Construct a model instance of DedicatedHostReference by calling from_dict on the json representation - dedicated_host_reference_model_dict = DedicatedHostReference.from_dict(dedicated_host_reference_model_json).__dict__ + dedicated_host_reference_model_dict = DedicatedHostReference.from_dict( + dedicated_host_reference_model_json + ).__dict__ dedicated_host_reference_model2 = DedicatedHostReference(**dedicated_host_reference_model_dict) # Verify the model instances are equivalent @@ -59207,7 +60795,9 @@ def test_default_network_acl_serialization(self): # Construct dict forms of any model objects needed in order to build this model. resource_group_reference_model = {} # ResourceGroupReference - resource_group_reference_model['href'] = 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + resource_group_reference_model['href'] = ( + 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + ) resource_group_reference_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' resource_group_reference_model['name'] = 'my-resource-group' @@ -59216,7 +60806,9 @@ def test_default_network_acl_serialization(self): network_acl_rule_reference_model = {} # NetworkACLRuleReference network_acl_rule_reference_model['deleted'] = deleted_model - network_acl_rule_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/network_acls/a4e28308-8ee7-46ab-8108-9f881f22bdbf/rules/8daca77a-4980-4d33-8f3e-7038797be8f9' + network_acl_rule_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/network_acls/a4e28308-8ee7-46ab-8108-9f881f22bdbf/rules/8daca77a-4980-4d33-8f3e-7038797be8f9' + ) network_acl_rule_reference_model['id'] = '8daca77a-4980-4d33-8f3e-7038797be8f9' network_acl_rule_reference_model['name'] = 'my-rule-1' @@ -59226,7 +60818,9 @@ def test_default_network_acl_serialization(self): network_acl_rule_item_model['created_at'] = '2019-01-01T12:00:00Z' network_acl_rule_item_model['destination'] = '192.168.3.0/24' network_acl_rule_item_model['direction'] = 'inbound' - network_acl_rule_item_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/network_acls/a4e28308-8ee7-46ab-8108-9f881f22bdbf/rules/8daca77a-4980-4d33-8f3e-7038797be8f9' + network_acl_rule_item_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/network_acls/a4e28308-8ee7-46ab-8108-9f881f22bdbf/rules/8daca77a-4980-4d33-8f3e-7038797be8f9' + ) network_acl_rule_item_model['id'] = '8daca77a-4980-4d33-8f3e-7038797be8f9' network_acl_rule_item_model['ip_version'] = 'ipv4' network_acl_rule_item_model['name'] = 'my-rule-1' @@ -59238,17 +60832,25 @@ def test_default_network_acl_serialization(self): network_acl_rule_item_model['source_port_min'] = 49152 subnet_reference_model = {} # SubnetReference - subnet_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['deleted'] = deleted_model - subnet_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['id'] = '0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' subnet_reference_model['name'] = 'my-subnet' subnet_reference_model['resource_type'] = 'subnet' vpc_reference_model = {} # VPCReference - vpc_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_model['deleted'] = deleted_model - vpc_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_model['id'] = 'r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' vpc_reference_model['name'] = 'my-vpc' vpc_reference_model['resource_type'] = 'vpc' @@ -59256,8 +60858,12 @@ def test_default_network_acl_serialization(self): # Construct a json representation of a DefaultNetworkACL model default_network_acl_model_json = {} default_network_acl_model_json['created_at'] = '2019-01-01T12:00:00Z' - default_network_acl_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::network-acl:r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf' - default_network_acl_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/network_acls/r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf' + default_network_acl_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::network-acl:r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf' + ) + default_network_acl_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/network_acls/r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf' + ) default_network_acl_model_json['id'] = 'r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf' default_network_acl_model_json['name'] = 'mnemonic-ersatz-eatery-mythology' default_network_acl_model_json['resource_group'] = resource_group_reference_model @@ -59297,7 +60903,9 @@ def test_default_routing_table_serialization(self): resource_filter_model['resource_type'] = 'vpn_gateway' resource_group_reference_model = {} # ResourceGroupReference - resource_group_reference_model['href'] = 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + resource_group_reference_model['href'] = ( + 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + ) resource_group_reference_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' resource_group_reference_model['name'] = 'Default' @@ -59306,14 +60914,20 @@ def test_default_routing_table_serialization(self): route_reference_model = {} # RouteReference route_reference_model['deleted'] = deleted_model - route_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b/routing_tables/r006-6885e83f-03b2-4603-8a86-db2a0f55c840/routes/r006-ae54c371-56be-4306-91bd-bb64df239d69' + route_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b/routing_tables/r006-6885e83f-03b2-4603-8a86-db2a0f55c840/routes/r006-ae54c371-56be-4306-91bd-bb64df239d69' + ) route_reference_model['id'] = 'r006-ae54c371-56be-4306-91bd-bb64df239d69' route_reference_model['name'] = 'my-route-1' subnet_reference_model = {} # SubnetReference - subnet_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-8722d01c-9c78-4555-82b5-53ad1266f959' + subnet_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-8722d01c-9c78-4555-82b5-53ad1266f959' + ) subnet_reference_model['deleted'] = deleted_model - subnet_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-8722d01c-9c78-4555-82b5-53ad1266f959' + subnet_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-8722d01c-9c78-4555-82b5-53ad1266f959' + ) subnet_reference_model['id'] = '0717-8722d01c-9c78-4555-82b5-53ad1266f959' subnet_reference_model['name'] = 'my-subnet-1' subnet_reference_model['resource_type'] = 'subnet' @@ -59323,8 +60937,12 @@ def test_default_routing_table_serialization(self): default_routing_table_model_json['accept_routes_from'] = [resource_filter_model] default_routing_table_model_json['advertise_routes_to'] = ['transit_gateway', 'direct_link'] default_routing_table_model_json['created_at'] = '2019-01-01T12:00:00Z' - default_routing_table_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc-routing-table:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b/r006-6885e83f-03b2-4603-8a86-db2a0f55c840' - default_routing_table_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b/routing_tables/r006-6885e83f-03b2-4603-8a86-db2a0f55c840' + default_routing_table_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc-routing-table:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b/r006-6885e83f-03b2-4603-8a86-db2a0f55c840' + ) + default_routing_table_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b/routing_tables/r006-6885e83f-03b2-4603-8a86-db2a0f55c840' + ) default_routing_table_model_json['id'] = 'r006-6885e83f-03b2-4603-8a86-db2a0f55c840' default_routing_table_model_json['is_default'] = True default_routing_table_model_json['lifecycle_state'] = 'stable' @@ -59367,7 +60985,9 @@ def test_default_security_group_serialization(self): # Construct dict forms of any model objects needed in order to build this model. resource_group_reference_model = {} # ResourceGroupReference - resource_group_reference_model['href'] = 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + resource_group_reference_model['href'] = ( + 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + ) resource_group_reference_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' resource_group_reference_model['name'] = 'Default' @@ -59379,7 +60999,9 @@ def test_default_security_group_serialization(self): security_group_rule_model = {} # SecurityGroupRuleSecurityGroupRuleProtocolAll security_group_rule_model['direction'] = 'outbound' - security_group_rule_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271/rules/r006-ad713e2d-9a80-4218-85a2-1f192b41b2c4' + security_group_rule_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271/rules/r006-ad713e2d-9a80-4218-85a2-1f192b41b2c4' + ) security_group_rule_model['id'] = 'r006-ad713e2d-9a80-4218-85a2-1f192b41b2c4' security_group_rule_model['ip_version'] = 'ipv4' security_group_rule_model['local'] = security_group_rule_local_model @@ -59391,15 +61013,21 @@ def test_default_security_group_serialization(self): security_group_target_reference_model = {} # SecurityGroupTargetReferenceNetworkInterfaceReferenceTargetContext security_group_target_reference_model['deleted'] = deleted_model - security_group_target_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/network_interfaces/0717-d54eb633-98ea-459d-aa00-6a8e780175a7' + security_group_target_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/network_interfaces/0717-d54eb633-98ea-459d-aa00-6a8e780175a7' + ) security_group_target_reference_model['id'] = '0717-d54eb633-98ea-459d-aa00-6a8e780175a7' security_group_target_reference_model['name'] = 'my-instance-network-interface' security_group_target_reference_model['resource_type'] = 'network_interface' vpc_reference_model = {} # VPCReference - vpc_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_model['deleted'] = deleted_model - vpc_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_model['id'] = 'r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' vpc_reference_model['name'] = 'my-vpc' vpc_reference_model['resource_type'] = 'vpc' @@ -59407,8 +61035,12 @@ def test_default_security_group_serialization(self): # Construct a json representation of a DefaultSecurityGroup model default_security_group_model_json = {} default_security_group_model_json['created_at'] = '2019-01-01T12:00:00Z' - default_security_group_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::security-group:r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' - default_security_group_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + default_security_group_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::security-group:r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + ) + default_security_group_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + ) default_security_group_model_json['id'] = 'r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' default_security_group_model_json['name'] = 'observant-chip-emphatic-engraver' default_security_group_model_json['resource_group'] = resource_group_reference_model @@ -59474,14 +61106,18 @@ def test_encryption_key_reference_serialization(self): # Construct a json representation of a EncryptionKeyReference model encryption_key_reference_model_json = {} - encryption_key_reference_model_json['crn'] = 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + encryption_key_reference_model_json['crn'] = ( + 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + ) # Construct a model instance of EncryptionKeyReference by calling from_dict on the json representation encryption_key_reference_model = EncryptionKeyReference.from_dict(encryption_key_reference_model_json) assert encryption_key_reference_model != False # Construct a model instance of EncryptionKeyReference by calling from_dict on the json representation - encryption_key_reference_model_dict = EncryptionKeyReference.from_dict(encryption_key_reference_model_json).__dict__ + encryption_key_reference_model_dict = EncryptionKeyReference.from_dict( + encryption_key_reference_model_json + ).__dict__ encryption_key_reference_model2 = EncryptionKeyReference(**encryption_key_reference_model_dict) # Verify the model instances are equivalent @@ -59510,25 +61146,35 @@ def test_endpoint_gateway_serialization(self): reserved_ip_reference_model = {} # ReservedIPReference reserved_ip_reference_model['address'] = '192.168.3.4' reserved_ip_reference_model['deleted'] = deleted_model - reserved_ip_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-bea6a632-5e13-42a4-b4b8-31dc877abfe4/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + reserved_ip_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-bea6a632-5e13-42a4-b4b8-31dc877abfe4/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + ) reserved_ip_reference_model['id'] = '0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' reserved_ip_reference_model['name'] = 'my-reserved-ip' reserved_ip_reference_model['resource_type'] = 'subnet_reserved_ip' endpoint_gateway_lifecycle_reason_model = {} # EndpointGatewayLifecycleReason endpoint_gateway_lifecycle_reason_model['code'] = 'dns_resolution_binding_pending' - endpoint_gateway_lifecycle_reason_model['message'] = 'The resource has been suspended. Contact IBM support with the CRN for next steps.' + endpoint_gateway_lifecycle_reason_model['message'] = ( + 'The resource has been suspended. Contact IBM support with the CRN for next steps.' + ) endpoint_gateway_lifecycle_reason_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#resource-suspension' resource_group_reference_model = {} # ResourceGroupReference - resource_group_reference_model['href'] = 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + resource_group_reference_model['href'] = ( + 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + ) resource_group_reference_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' resource_group_reference_model['name'] = 'my-resource-group' security_group_reference_model = {} # SecurityGroupReference - security_group_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::security-group:r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + security_group_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::security-group:r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + ) security_group_reference_model['deleted'] = deleted_model - security_group_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + security_group_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + ) security_group_reference_model['id'] = 'r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' security_group_reference_model['name'] = 'my-security-group' @@ -59545,18 +61191,26 @@ def test_endpoint_gateway_serialization(self): private_path_service_gateway_remote_model['region'] = region_reference_model endpoint_gateway_target_model = {} # EndpointGatewayTargetPrivatePathServiceGatewayReference - endpoint_gateway_target_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::private-path-service-gateway:r134-fb880975-db45-4459-8548-64e3995ac213' + endpoint_gateway_target_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::private-path-service-gateway:r134-fb880975-db45-4459-8548-64e3995ac213' + ) endpoint_gateway_target_model['deleted'] = deleted_model - endpoint_gateway_target_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/private_path_service_gateways/r134-fb880975-db45-4459-8548-64e3995ac213' + endpoint_gateway_target_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/private_path_service_gateways/r134-fb880975-db45-4459-8548-64e3995ac213' + ) endpoint_gateway_target_model['id'] = 'r134-fb880975-db45-4459-8548-64e3995ac213' endpoint_gateway_target_model['name'] = 'my-private-path-service-gateway' endpoint_gateway_target_model['remote'] = private_path_service_gateway_remote_model endpoint_gateway_target_model['resource_type'] = 'private_path_service_gateway' vpc_reference_model = {} # VPCReference - vpc_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_model['deleted'] = deleted_model - vpc_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_model['id'] = 'r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' vpc_reference_model['name'] = 'my-vpc' vpc_reference_model['resource_type'] = 'vpc' @@ -59565,9 +61219,13 @@ def test_endpoint_gateway_serialization(self): endpoint_gateway_model_json = {} endpoint_gateway_model_json['allow_dns_resolution_binding'] = True endpoint_gateway_model_json['created_at'] = '2019-01-01T12:00:00Z' - endpoint_gateway_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::endpoint-gateway:r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5' + endpoint_gateway_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::endpoint-gateway:r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5' + ) endpoint_gateway_model_json['health_state'] = 'ok' - endpoint_gateway_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/endpoint_gateways/r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5' + endpoint_gateway_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/endpoint_gateways/r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5' + ) endpoint_gateway_model_json['id'] = 'r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5' endpoint_gateway_model_json['ips'] = [reserved_ip_reference_model] endpoint_gateway_model_json['lifecycle_reasons'] = [endpoint_gateway_lifecycle_reason_model] @@ -59615,25 +61273,35 @@ def test_endpoint_gateway_collection_serialization(self): reserved_ip_reference_model = {} # ReservedIPReference reserved_ip_reference_model['address'] = '192.168.3.4' reserved_ip_reference_model['deleted'] = deleted_model - reserved_ip_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-bea6a632-5e13-42a4-b4b8-31dc877abfe4/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + reserved_ip_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-bea6a632-5e13-42a4-b4b8-31dc877abfe4/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + ) reserved_ip_reference_model['id'] = '0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' reserved_ip_reference_model['name'] = 'my-reserved-ip' reserved_ip_reference_model['resource_type'] = 'subnet_reserved_ip' endpoint_gateway_lifecycle_reason_model = {} # EndpointGatewayLifecycleReason endpoint_gateway_lifecycle_reason_model['code'] = 'dns_resolution_binding_pending' - endpoint_gateway_lifecycle_reason_model['message'] = 'The resource has been suspended. Contact IBM support with the CRN for next steps.' + endpoint_gateway_lifecycle_reason_model['message'] = ( + 'The resource has been suspended. Contact IBM support with the CRN for next steps.' + ) endpoint_gateway_lifecycle_reason_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#resource-suspension' resource_group_reference_model = {} # ResourceGroupReference - resource_group_reference_model['href'] = 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + resource_group_reference_model['href'] = ( + 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + ) resource_group_reference_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' resource_group_reference_model['name'] = 'my-resource-group' security_group_reference_model = {} # SecurityGroupReference - security_group_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::security-group:r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + security_group_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::security-group:r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + ) security_group_reference_model['deleted'] = deleted_model - security_group_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + security_group_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + ) security_group_reference_model['id'] = 'r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' security_group_reference_model['name'] = 'my-security-group' @@ -59650,18 +61318,26 @@ def test_endpoint_gateway_collection_serialization(self): private_path_service_gateway_remote_model['region'] = region_reference_model endpoint_gateway_target_model = {} # EndpointGatewayTargetPrivatePathServiceGatewayReference - endpoint_gateway_target_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::private-path-service-gateway:r134-fb880975-db45-4459-8548-64e3995ac213' + endpoint_gateway_target_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::private-path-service-gateway:r134-fb880975-db45-4459-8548-64e3995ac213' + ) endpoint_gateway_target_model['deleted'] = deleted_model - endpoint_gateway_target_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/private_path_service_gateways/r134-fb880975-db45-4459-8548-64e3995ac213' + endpoint_gateway_target_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/private_path_service_gateways/r134-fb880975-db45-4459-8548-64e3995ac213' + ) endpoint_gateway_target_model['id'] = 'r134-fb880975-db45-4459-8548-64e3995ac213' endpoint_gateway_target_model['name'] = 'my-private-path-service-gateway' endpoint_gateway_target_model['remote'] = private_path_service_gateway_remote_model endpoint_gateway_target_model['resource_type'] = 'private_path_service_gateway' vpc_reference_model = {} # VPCReference - vpc_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_model['deleted'] = deleted_model - vpc_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_model['id'] = 'r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' vpc_reference_model['name'] = 'my-vpc' vpc_reference_model['resource_type'] = 'vpc' @@ -59669,9 +61345,13 @@ def test_endpoint_gateway_collection_serialization(self): endpoint_gateway_model = {} # EndpointGateway endpoint_gateway_model['allow_dns_resolution_binding'] = True endpoint_gateway_model['created_at'] = '2019-01-01T12:00:00Z' - endpoint_gateway_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::endpoint-gateway:r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5' + endpoint_gateway_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::endpoint-gateway:r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5' + ) endpoint_gateway_model['health_state'] = 'ok' - endpoint_gateway_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/endpoint_gateways/r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5' + endpoint_gateway_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/endpoint_gateways/r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5' + ) endpoint_gateway_model['id'] = 'r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5' endpoint_gateway_model['ips'] = [reserved_ip_reference_model] endpoint_gateway_model['lifecycle_reasons'] = [endpoint_gateway_lifecycle_reason_model] @@ -59701,7 +61381,9 @@ def test_endpoint_gateway_collection_serialization(self): assert endpoint_gateway_collection_model != False # Construct a model instance of EndpointGatewayCollection by calling from_dict on the json representation - endpoint_gateway_collection_model_dict = EndpointGatewayCollection.from_dict(endpoint_gateway_collection_model_json).__dict__ + endpoint_gateway_collection_model_dict = EndpointGatewayCollection.from_dict( + endpoint_gateway_collection_model_json + ).__dict__ endpoint_gateway_collection_model2 = EndpointGatewayCollection(**endpoint_gateway_collection_model_dict) # Verify the model instances are equivalent @@ -59725,16 +61407,26 @@ def test_endpoint_gateway_lifecycle_reason_serialization(self): # Construct a json representation of a EndpointGatewayLifecycleReason model endpoint_gateway_lifecycle_reason_model_json = {} endpoint_gateway_lifecycle_reason_model_json['code'] = 'dns_resolution_binding_pending' - endpoint_gateway_lifecycle_reason_model_json['message'] = 'The resource has been suspended. Contact IBM support with the CRN for next steps.' - endpoint_gateway_lifecycle_reason_model_json['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#resource-suspension' + endpoint_gateway_lifecycle_reason_model_json['message'] = ( + 'The resource has been suspended. Contact IBM support with the CRN for next steps.' + ) + endpoint_gateway_lifecycle_reason_model_json['more_info'] = ( + 'https://cloud.ibm.com/apidocs/vpc#resource-suspension' + ) # Construct a model instance of EndpointGatewayLifecycleReason by calling from_dict on the json representation - endpoint_gateway_lifecycle_reason_model = EndpointGatewayLifecycleReason.from_dict(endpoint_gateway_lifecycle_reason_model_json) + endpoint_gateway_lifecycle_reason_model = EndpointGatewayLifecycleReason.from_dict( + endpoint_gateway_lifecycle_reason_model_json + ) assert endpoint_gateway_lifecycle_reason_model != False # Construct a model instance of EndpointGatewayLifecycleReason by calling from_dict on the json representation - endpoint_gateway_lifecycle_reason_model_dict = EndpointGatewayLifecycleReason.from_dict(endpoint_gateway_lifecycle_reason_model_json).__dict__ - endpoint_gateway_lifecycle_reason_model2 = EndpointGatewayLifecycleReason(**endpoint_gateway_lifecycle_reason_model_dict) + endpoint_gateway_lifecycle_reason_model_dict = EndpointGatewayLifecycleReason.from_dict( + endpoint_gateway_lifecycle_reason_model_json + ).__dict__ + endpoint_gateway_lifecycle_reason_model2 = EndpointGatewayLifecycleReason( + **endpoint_gateway_lifecycle_reason_model_dict + ) # Verify the model instances are equivalent assert endpoint_gateway_lifecycle_reason_model == endpoint_gateway_lifecycle_reason_model2 @@ -59801,20 +61493,30 @@ def test_endpoint_gateway_reference_remote_serialization(self): # Construct a json representation of a EndpointGatewayReferenceRemote model endpoint_gateway_reference_remote_model_json = {} - endpoint_gateway_reference_remote_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::endpoint-gateway:r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5' - endpoint_gateway_reference_remote_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/endpoint_gateways/r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5' + endpoint_gateway_reference_remote_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::endpoint-gateway:r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5' + ) + endpoint_gateway_reference_remote_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/endpoint_gateways/r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5' + ) endpoint_gateway_reference_remote_model_json['id'] = 'r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5' endpoint_gateway_reference_remote_model_json['name'] = 'my-endpoint-gateway' endpoint_gateway_reference_remote_model_json['remote'] = endpoint_gateway_remote_model endpoint_gateway_reference_remote_model_json['resource_type'] = 'endpoint_gateway' # Construct a model instance of EndpointGatewayReferenceRemote by calling from_dict on the json representation - endpoint_gateway_reference_remote_model = EndpointGatewayReferenceRemote.from_dict(endpoint_gateway_reference_remote_model_json) + endpoint_gateway_reference_remote_model = EndpointGatewayReferenceRemote.from_dict( + endpoint_gateway_reference_remote_model_json + ) assert endpoint_gateway_reference_remote_model != False # Construct a model instance of EndpointGatewayReferenceRemote by calling from_dict on the json representation - endpoint_gateway_reference_remote_model_dict = EndpointGatewayReferenceRemote.from_dict(endpoint_gateway_reference_remote_model_json).__dict__ - endpoint_gateway_reference_remote_model2 = EndpointGatewayReferenceRemote(**endpoint_gateway_reference_remote_model_dict) + endpoint_gateway_reference_remote_model_dict = EndpointGatewayReferenceRemote.from_dict( + endpoint_gateway_reference_remote_model_json + ).__dict__ + endpoint_gateway_reference_remote_model2 = EndpointGatewayReferenceRemote( + **endpoint_gateway_reference_remote_model_dict + ) # Verify the model instances are equivalent assert endpoint_gateway_reference_remote_model == endpoint_gateway_reference_remote_model2 @@ -59854,7 +61556,9 @@ def test_endpoint_gateway_remote_serialization(self): assert endpoint_gateway_remote_model != False # Construct a model instance of EndpointGatewayRemote by calling from_dict on the json representation - endpoint_gateway_remote_model_dict = EndpointGatewayRemote.from_dict(endpoint_gateway_remote_model_json).__dict__ + endpoint_gateway_remote_model_dict = EndpointGatewayRemote.from_dict( + endpoint_gateway_remote_model_json + ).__dict__ endpoint_gateway_remote_model2 = EndpointGatewayRemote(**endpoint_gateway_remote_model_dict) # Verify the model instances are equivalent @@ -59878,7 +61582,9 @@ def test_floating_ip_serialization(self): # Construct dict forms of any model objects needed in order to build this model. resource_group_reference_model = {} # ResourceGroupReference - resource_group_reference_model['href'] = 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + resource_group_reference_model['href'] = ( + 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + ) resource_group_reference_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' resource_group_reference_model['name'] = 'Default' @@ -59888,23 +61594,33 @@ def test_floating_ip_serialization(self): reserved_ip_reference_model = {} # ReservedIPReference reserved_ip_reference_model['address'] = '10.0.1.5' reserved_ip_reference_model['deleted'] = deleted_model - reserved_ip_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + reserved_ip_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + ) reserved_ip_reference_model['id'] = '0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' reserved_ip_reference_model['name'] = 'my-reserved-ip' reserved_ip_reference_model['resource_type'] = 'subnet_reserved_ip' subnet_reference_model = {} # SubnetReference - subnet_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['deleted'] = deleted_model - subnet_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['id'] = '0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' subnet_reference_model['name'] = 'my-subnet' subnet_reference_model['resource_type'] = 'subnet' floating_ip_target_model = {} # FloatingIPTargetVirtualNetworkInterfaceReference - floating_ip_target_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::virtual-network-interface:0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + floating_ip_target_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::virtual-network-interface:0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + ) floating_ip_target_model['deleted'] = deleted_model - floating_ip_target_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/virtual_network_interfaces/0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + floating_ip_target_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/virtual_network_interfaces/0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + ) floating_ip_target_model['id'] = '0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' floating_ip_target_model['name'] = 'my-virtual-network-interface' floating_ip_target_model['primary_ip'] = reserved_ip_reference_model @@ -59919,8 +61635,12 @@ def test_floating_ip_serialization(self): floating_ip_model_json = {} floating_ip_model_json['address'] = '203.0.113.1' floating_ip_model_json['created_at'] = '2019-01-01T12:00:00Z' - floating_ip_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::floating-ip:r006-f45e0d90-12a8-4460-8210-290ff2ab75cd' - floating_ip_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/floating_ips/r006-f45e0d90-12a8-4460-8210-290ff2ab75cd' + floating_ip_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::floating-ip:r006-f45e0d90-12a8-4460-8210-290ff2ab75cd' + ) + floating_ip_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/floating_ips/r006-f45e0d90-12a8-4460-8210-290ff2ab75cd' + ) floating_ip_model_json['id'] = 'r006-f45e0d90-12a8-4460-8210-290ff2ab75cd' floating_ip_model_json['name'] = 'my-floating-ip' floating_ip_model_json['resource_group'] = resource_group_reference_model @@ -59960,7 +61680,9 @@ def test_floating_ip_collection_serialization(self): page_link_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/floating_ips?limit=20' resource_group_reference_model = {} # ResourceGroupReference - resource_group_reference_model['href'] = 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + resource_group_reference_model['href'] = ( + 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + ) resource_group_reference_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' resource_group_reference_model['name'] = 'Default' @@ -59970,23 +61692,33 @@ def test_floating_ip_collection_serialization(self): reserved_ip_reference_model = {} # ReservedIPReference reserved_ip_reference_model['address'] = '10.0.1.5' reserved_ip_reference_model['deleted'] = deleted_model - reserved_ip_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + reserved_ip_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + ) reserved_ip_reference_model['id'] = '0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' reserved_ip_reference_model['name'] = 'my-reserved-ip' reserved_ip_reference_model['resource_type'] = 'subnet_reserved_ip' subnet_reference_model = {} # SubnetReference - subnet_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['deleted'] = deleted_model - subnet_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['id'] = '0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' subnet_reference_model['name'] = 'my-subnet' subnet_reference_model['resource_type'] = 'subnet' floating_ip_target_model = {} # FloatingIPTargetVirtualNetworkInterfaceReference - floating_ip_target_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::virtual-network-interface:0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + floating_ip_target_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::virtual-network-interface:0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + ) floating_ip_target_model['deleted'] = deleted_model - floating_ip_target_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/virtual_network_interfaces/0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + floating_ip_target_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/virtual_network_interfaces/0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + ) floating_ip_target_model['id'] = '0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' floating_ip_target_model['name'] = 'my-virtual-network-interface' floating_ip_target_model['primary_ip'] = reserved_ip_reference_model @@ -60000,8 +61732,12 @@ def test_floating_ip_collection_serialization(self): floating_ip_model = {} # FloatingIP floating_ip_model['address'] = '203.0.113.1' floating_ip_model['created_at'] = '2024-10-15T12:08:05Z' - floating_ip_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::floating-ip:r006-f45e0d90-12a8-4460-8210-290ff2ab75cd' - floating_ip_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/floating_ips/r006-f45e0d90-12a8-4460-8210-290ff2ab75cd' + floating_ip_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::floating-ip:r006-f45e0d90-12a8-4460-8210-290ff2ab75cd' + ) + floating_ip_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/floating_ips/r006-f45e0d90-12a8-4460-8210-290ff2ab75cd' + ) floating_ip_model['id'] = 'r006-f45e0d90-12a8-4460-8210-290ff2ab75cd' floating_ip_model['name'] = 'my-floating-ip' floating_ip_model['resource_group'] = resource_group_reference_model @@ -60046,41 +61782,69 @@ def test_floating_ip_collection_virtual_network_interface_context_serialization( # Construct dict forms of any model objects needed in order to build this model. page_link_model = {} # PageLink - page_link_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/virtual_network_interfaces/0717-54eb57ee-86f2-4796-90bb-d7874e0831ef/floating_ips?limit=50' + page_link_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/virtual_network_interfaces/0717-54eb57ee-86f2-4796-90bb-d7874e0831ef/floating_ips?limit=50' + ) deleted_model = {} # Deleted deleted_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#deleted-resources' floating_ip_reference_model = {} # FloatingIPReference floating_ip_reference_model['address'] = '203.0.113.1' - floating_ip_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::floating-ip:r006-f45e0d90-12a8-4460-8210-290ff2ab75cd' + floating_ip_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::floating-ip:r006-f45e0d90-12a8-4460-8210-290ff2ab75cd' + ) floating_ip_reference_model['deleted'] = deleted_model - floating_ip_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/floating_ips/r006-f45e0d90-12a8-4460-8210-290ff2ab75cd' + floating_ip_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/floating_ips/r006-f45e0d90-12a8-4460-8210-290ff2ab75cd' + ) floating_ip_reference_model['id'] = 'r006-f45e0d90-12a8-4460-8210-290ff2ab75cd' floating_ip_reference_model['name'] = 'my-floating-ip' # Construct a json representation of a FloatingIPCollectionVirtualNetworkInterfaceContext model floating_ip_collection_virtual_network_interface_context_model_json = {} floating_ip_collection_virtual_network_interface_context_model_json['first'] = page_link_model - floating_ip_collection_virtual_network_interface_context_model_json['floating_ips'] = [floating_ip_reference_model] + floating_ip_collection_virtual_network_interface_context_model_json['floating_ips'] = [ + floating_ip_reference_model + ] floating_ip_collection_virtual_network_interface_context_model_json['limit'] = 20 floating_ip_collection_virtual_network_interface_context_model_json['next'] = page_link_model floating_ip_collection_virtual_network_interface_context_model_json['total_count'] = 132 # Construct a model instance of FloatingIPCollectionVirtualNetworkInterfaceContext by calling from_dict on the json representation - floating_ip_collection_virtual_network_interface_context_model = FloatingIPCollectionVirtualNetworkInterfaceContext.from_dict(floating_ip_collection_virtual_network_interface_context_model_json) + floating_ip_collection_virtual_network_interface_context_model = ( + FloatingIPCollectionVirtualNetworkInterfaceContext.from_dict( + floating_ip_collection_virtual_network_interface_context_model_json + ) + ) assert floating_ip_collection_virtual_network_interface_context_model != False # Construct a model instance of FloatingIPCollectionVirtualNetworkInterfaceContext by calling from_dict on the json representation - floating_ip_collection_virtual_network_interface_context_model_dict = FloatingIPCollectionVirtualNetworkInterfaceContext.from_dict(floating_ip_collection_virtual_network_interface_context_model_json).__dict__ - floating_ip_collection_virtual_network_interface_context_model2 = FloatingIPCollectionVirtualNetworkInterfaceContext(**floating_ip_collection_virtual_network_interface_context_model_dict) + floating_ip_collection_virtual_network_interface_context_model_dict = ( + FloatingIPCollectionVirtualNetworkInterfaceContext.from_dict( + floating_ip_collection_virtual_network_interface_context_model_json + ).__dict__ + ) + floating_ip_collection_virtual_network_interface_context_model2 = ( + FloatingIPCollectionVirtualNetworkInterfaceContext( + **floating_ip_collection_virtual_network_interface_context_model_dict + ) + ) # Verify the model instances are equivalent - assert floating_ip_collection_virtual_network_interface_context_model == floating_ip_collection_virtual_network_interface_context_model2 + assert ( + floating_ip_collection_virtual_network_interface_context_model + == floating_ip_collection_virtual_network_interface_context_model2 + ) # Convert model instance back to dict and verify no loss of data - floating_ip_collection_virtual_network_interface_context_model_json2 = floating_ip_collection_virtual_network_interface_context_model.to_dict() - assert floating_ip_collection_virtual_network_interface_context_model_json2 == floating_ip_collection_virtual_network_interface_context_model_json + floating_ip_collection_virtual_network_interface_context_model_json2 = ( + floating_ip_collection_virtual_network_interface_context_model.to_dict() + ) + assert ( + floating_ip_collection_virtual_network_interface_context_model_json2 + == floating_ip_collection_virtual_network_interface_context_model_json + ) class TestModel_FloatingIPPatch: @@ -60095,7 +61859,9 @@ def test_floating_ip_patch_serialization(self): # Construct dict forms of any model objects needed in order to build this model. - floating_ip_target_patch_model = {} # FloatingIPTargetPatchBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityById + floating_ip_target_patch_model = ( + {} + ) # FloatingIPTargetPatchBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityById floating_ip_target_patch_model['id'] = '0717-da8c43ec-b6ca-4bd2-871e-72e288c66ee6' # Construct a json representation of a FloatingIPPatch model @@ -60137,9 +61903,13 @@ def test_floating_ip_reference_serialization(self): # Construct a json representation of a FloatingIPReference model floating_ip_reference_model_json = {} floating_ip_reference_model_json['address'] = '203.0.113.1' - floating_ip_reference_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::floating-ip:r006-f45e0d90-12a8-4460-8210-290ff2ab75cd' + floating_ip_reference_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::floating-ip:r006-f45e0d90-12a8-4460-8210-290ff2ab75cd' + ) floating_ip_reference_model_json['deleted'] = deleted_model - floating_ip_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/floating_ips/r006-f45e0d90-12a8-4460-8210-290ff2ab75cd' + floating_ip_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/floating_ips/r006-f45e0d90-12a8-4460-8210-290ff2ab75cd' + ) floating_ip_reference_model_json['id'] = 'r006-f45e0d90-12a8-4460-8210-290ff2ab75cd' floating_ip_reference_model_json['name'] = 'my-floating-ip' @@ -60172,7 +61942,9 @@ def test_floating_ip_unpaginated_collection_serialization(self): # Construct dict forms of any model objects needed in order to build this model. resource_group_reference_model = {} # ResourceGroupReference - resource_group_reference_model['href'] = 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + resource_group_reference_model['href'] = ( + 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + ) resource_group_reference_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' resource_group_reference_model['name'] = 'Default' @@ -60182,23 +61954,33 @@ def test_floating_ip_unpaginated_collection_serialization(self): reserved_ip_reference_model = {} # ReservedIPReference reserved_ip_reference_model['address'] = '10.0.1.5' reserved_ip_reference_model['deleted'] = deleted_model - reserved_ip_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + reserved_ip_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + ) reserved_ip_reference_model['id'] = '0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' reserved_ip_reference_model['name'] = 'my-reserved-ip' reserved_ip_reference_model['resource_type'] = 'subnet_reserved_ip' subnet_reference_model = {} # SubnetReference - subnet_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['deleted'] = deleted_model - subnet_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['id'] = '0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' subnet_reference_model['name'] = 'my-subnet' subnet_reference_model['resource_type'] = 'subnet' floating_ip_target_model = {} # FloatingIPTargetVirtualNetworkInterfaceReference - floating_ip_target_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::virtual-network-interface:0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + floating_ip_target_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::virtual-network-interface:0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + ) floating_ip_target_model['deleted'] = deleted_model - floating_ip_target_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/virtual_network_interfaces/0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + floating_ip_target_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/virtual_network_interfaces/0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + ) floating_ip_target_model['id'] = '0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' floating_ip_target_model['name'] = 'my-virtual-network-interface' floating_ip_target_model['primary_ip'] = reserved_ip_reference_model @@ -60212,8 +61994,12 @@ def test_floating_ip_unpaginated_collection_serialization(self): floating_ip_model = {} # FloatingIP floating_ip_model['address'] = '203.0.113.1' floating_ip_model['created_at'] = '2024-10-15T12:08:05Z' - floating_ip_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::floating-ip:r006-f45e0d90-12a8-4460-8210-290ff2ab75cd' - floating_ip_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/floating_ips/r006-f45e0d90-12a8-4460-8210-290ff2ab75cd' + floating_ip_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::floating-ip:r006-f45e0d90-12a8-4460-8210-290ff2ab75cd' + ) + floating_ip_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/floating_ips/r006-f45e0d90-12a8-4460-8210-290ff2ab75cd' + ) floating_ip_model['id'] = 'r006-f45e0d90-12a8-4460-8210-290ff2ab75cd' floating_ip_model['name'] = 'my-floating-ip' floating_ip_model['resource_group'] = resource_group_reference_model @@ -60226,12 +62012,18 @@ def test_floating_ip_unpaginated_collection_serialization(self): floating_ip_unpaginated_collection_model_json['floating_ips'] = [floating_ip_model] # Construct a model instance of FloatingIPUnpaginatedCollection by calling from_dict on the json representation - floating_ip_unpaginated_collection_model = FloatingIPUnpaginatedCollection.from_dict(floating_ip_unpaginated_collection_model_json) + floating_ip_unpaginated_collection_model = FloatingIPUnpaginatedCollection.from_dict( + floating_ip_unpaginated_collection_model_json + ) assert floating_ip_unpaginated_collection_model != False # Construct a model instance of FloatingIPUnpaginatedCollection by calling from_dict on the json representation - floating_ip_unpaginated_collection_model_dict = FloatingIPUnpaginatedCollection.from_dict(floating_ip_unpaginated_collection_model_json).__dict__ - floating_ip_unpaginated_collection_model2 = FloatingIPUnpaginatedCollection(**floating_ip_unpaginated_collection_model_dict) + floating_ip_unpaginated_collection_model_dict = FloatingIPUnpaginatedCollection.from_dict( + floating_ip_unpaginated_collection_model_json + ).__dict__ + floating_ip_unpaginated_collection_model2 = FloatingIPUnpaginatedCollection( + **floating_ip_unpaginated_collection_model_dict + ) # Verify the model instances are equivalent assert floating_ip_unpaginated_collection_model == floating_ip_unpaginated_collection_model2 @@ -60254,7 +62046,9 @@ def test_flow_log_collector_serialization(self): # Construct dict forms of any model objects needed in order to build this model. resource_group_reference_model = {} # ResourceGroupReference - resource_group_reference_model['href'] = 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + resource_group_reference_model['href'] = ( + 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + ) resource_group_reference_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' resource_group_reference_model['name'] = 'my-resource-group' @@ -60266,15 +62060,21 @@ def test_flow_log_collector_serialization(self): flow_log_collector_target_model = {} # FlowLogCollectorTargetNetworkInterfaceReferenceTargetContext flow_log_collector_target_model['deleted'] = deleted_model - flow_log_collector_target_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/network_interfaces/0717-d54eb633-98ea-459d-aa00-6a8e780175a7' + flow_log_collector_target_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/network_interfaces/0717-d54eb633-98ea-459d-aa00-6a8e780175a7' + ) flow_log_collector_target_model['id'] = '0717-d54eb633-98ea-459d-aa00-6a8e780175a7' flow_log_collector_target_model['name'] = 'my-instance-network-interface' flow_log_collector_target_model['resource_type'] = 'network_interface' vpc_reference_model = {} # VPCReference - vpc_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_model['deleted'] = deleted_model - vpc_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_model['id'] = 'r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' vpc_reference_model['name'] = 'my-vpc' vpc_reference_model['resource_type'] = 'vpc' @@ -60284,8 +62084,12 @@ def test_flow_log_collector_serialization(self): flow_log_collector_model_json['active'] = True flow_log_collector_model_json['auto_delete'] = True flow_log_collector_model_json['created_at'] = '2019-01-01T12:00:00Z' - flow_log_collector_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::flow-log-collector:39300233-9995-4806-89a5-3c1b6eb88689' - flow_log_collector_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/flow_log_collectors/39300233-9995-4806-89a5-3c1b6eb88689' + flow_log_collector_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::flow-log-collector:39300233-9995-4806-89a5-3c1b6eb88689' + ) + flow_log_collector_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/flow_log_collectors/39300233-9995-4806-89a5-3c1b6eb88689' + ) flow_log_collector_model_json['id'] = '39300233-9995-4806-89a5-3c1b6eb88689' flow_log_collector_model_json['lifecycle_state'] = 'stable' flow_log_collector_model_json['name'] = 'my-flow-log-collector' @@ -60326,7 +62130,9 @@ def test_flow_log_collector_collection_serialization(self): page_link_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/flow_log_collectors?limit=20' resource_group_reference_model = {} # ResourceGroupReference - resource_group_reference_model['href'] = 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + resource_group_reference_model['href'] = ( + 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + ) resource_group_reference_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' resource_group_reference_model['name'] = 'my-resource-group' @@ -60338,15 +62144,21 @@ def test_flow_log_collector_collection_serialization(self): flow_log_collector_target_model = {} # FlowLogCollectorTargetNetworkInterfaceReferenceTargetContext flow_log_collector_target_model['deleted'] = deleted_model - flow_log_collector_target_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/network_interfaces/0717-d54eb633-98ea-459d-aa00-6a8e780175a7' + flow_log_collector_target_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/network_interfaces/0717-d54eb633-98ea-459d-aa00-6a8e780175a7' + ) flow_log_collector_target_model['id'] = '0717-d54eb633-98ea-459d-aa00-6a8e780175a7' flow_log_collector_target_model['name'] = 'my-instance-network-interface' flow_log_collector_target_model['resource_type'] = 'network_interface' vpc_reference_model = {} # VPCReference - vpc_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_model['deleted'] = deleted_model - vpc_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_model['id'] = 'r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' vpc_reference_model['name'] = 'my-vpc' vpc_reference_model['resource_type'] = 'vpc' @@ -60355,8 +62167,12 @@ def test_flow_log_collector_collection_serialization(self): flow_log_collector_model['active'] = True flow_log_collector_model['auto_delete'] = True flow_log_collector_model['created_at'] = '2019-01-01T12:00:00Z' - flow_log_collector_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::flow-log-collector:39300233-9995-4806-89a5-3c1b6eb88689' - flow_log_collector_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/flow_log_collectors/39300233-9995-4806-89a5-3c1b6eb88689' + flow_log_collector_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::flow-log-collector:39300233-9995-4806-89a5-3c1b6eb88689' + ) + flow_log_collector_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/flow_log_collectors/39300233-9995-4806-89a5-3c1b6eb88689' + ) flow_log_collector_model['id'] = '39300233-9995-4806-89a5-3c1b6eb88689' flow_log_collector_model['lifecycle_state'] = 'stable' flow_log_collector_model['name'] = 'my-flow-log-collector' @@ -60374,11 +62190,15 @@ def test_flow_log_collector_collection_serialization(self): flow_log_collector_collection_model_json['total_count'] = 132 # Construct a model instance of FlowLogCollectorCollection by calling from_dict on the json representation - flow_log_collector_collection_model = FlowLogCollectorCollection.from_dict(flow_log_collector_collection_model_json) + flow_log_collector_collection_model = FlowLogCollectorCollection.from_dict( + flow_log_collector_collection_model_json + ) assert flow_log_collector_collection_model != False # Construct a model instance of FlowLogCollectorCollection by calling from_dict on the json representation - flow_log_collector_collection_model_dict = FlowLogCollectorCollection.from_dict(flow_log_collector_collection_model_json).__dict__ + flow_log_collector_collection_model_dict = FlowLogCollectorCollection.from_dict( + flow_log_collector_collection_model_json + ).__dict__ flow_log_collector_collection_model2 = FlowLogCollectorCollection(**flow_log_collector_collection_model_dict) # Verify the model instances are equivalent @@ -60409,7 +62229,9 @@ def test_flow_log_collector_patch_serialization(self): assert flow_log_collector_patch_model != False # Construct a model instance of FlowLogCollectorPatch by calling from_dict on the json representation - flow_log_collector_patch_model_dict = FlowLogCollectorPatch.from_dict(flow_log_collector_patch_model_json).__dict__ + flow_log_collector_patch_model_dict = FlowLogCollectorPatch.from_dict( + flow_log_collector_patch_model_json + ).__dict__ flow_log_collector_patch_model2 = FlowLogCollectorPatch(**flow_log_collector_patch_model_dict) # Verify the model instances are equivalent @@ -60437,13 +62259,17 @@ def test_ike_policy_serialization(self): vpn_gateway_connection_reference_model = {} # VPNGatewayConnectionReference vpn_gateway_connection_reference_model['deleted'] = deleted_model - vpn_gateway_connection_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b/connections/93487806-7743-4c46-81d6-72869883ea0b' + vpn_gateway_connection_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b/connections/93487806-7743-4c46-81d6-72869883ea0b' + ) vpn_gateway_connection_reference_model['id'] = 'a10a5771-dc23-442c-8460-c3601d8542f7' vpn_gateway_connection_reference_model['name'] = 'my-vpn-connection' vpn_gateway_connection_reference_model['resource_type'] = 'vpn_gateway_connection' resource_group_reference_model = {} # ResourceGroupReference - resource_group_reference_model['href'] = 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + resource_group_reference_model['href'] = ( + 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + ) resource_group_reference_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' resource_group_reference_model['name'] = 'my-resource-group' @@ -60454,7 +62280,9 @@ def test_ike_policy_serialization(self): ike_policy_model_json['created_at'] = '2019-01-01T12:00:00Z' ike_policy_model_json['dh_group'] = 14 ike_policy_model_json['encryption_algorithm'] = 'aes128' - ike_policy_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/ike_policies/ddf51bec-3424-11e8-b467-0ed5f89f718b' + ike_policy_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/ike_policies/ddf51bec-3424-11e8-b467-0ed5f89f718b' + ) ike_policy_model_json['id'] = 'ddf51bec-3424-11e8-b467-0ed5f89f718b' ike_policy_model_json['ike_version'] = 1 ike_policy_model_json['key_lifetime'] = 28800 @@ -60499,13 +62327,17 @@ def test_ike_policy_collection_serialization(self): vpn_gateway_connection_reference_model = {} # VPNGatewayConnectionReference vpn_gateway_connection_reference_model['deleted'] = deleted_model - vpn_gateway_connection_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b/connections/93487806-7743-4c46-81d6-72869883ea0b' + vpn_gateway_connection_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b/connections/93487806-7743-4c46-81d6-72869883ea0b' + ) vpn_gateway_connection_reference_model['id'] = 'a10a5771-dc23-442c-8460-c3601d8542f7' vpn_gateway_connection_reference_model['name'] = 'my-vpn-connection' vpn_gateway_connection_reference_model['resource_type'] = 'vpn_gateway_connection' resource_group_reference_model = {} # ResourceGroupReference - resource_group_reference_model['href'] = 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + resource_group_reference_model['href'] = ( + 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + ) resource_group_reference_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' resource_group_reference_model['name'] = 'my-resource-group' @@ -60515,7 +62347,9 @@ def test_ike_policy_collection_serialization(self): ike_policy_model['created_at'] = '2019-01-01T12:00:00Z' ike_policy_model['dh_group'] = 14 ike_policy_model['encryption_algorithm'] = 'aes128' - ike_policy_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/ike_policies/ddf51bec-3424-11e8-b467-0ed5f89f718b' + ike_policy_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/ike_policies/ddf51bec-3424-11e8-b467-0ed5f89f718b' + ) ike_policy_model['id'] = 'ddf51bec-3424-11e8-b467-0ed5f89f718b' ike_policy_model['ike_version'] = 1 ike_policy_model['key_lifetime'] = 28800 @@ -60570,24 +62404,34 @@ def test_ike_policy_connection_collection_serialization(self): ike_policy_reference_model = {} # IKEPolicyReference ike_policy_reference_model['deleted'] = deleted_model - ike_policy_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/ike_policies/ddf51bec-3424-11e8-b467-0ed5f89f718b' + ike_policy_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/ike_policies/ddf51bec-3424-11e8-b467-0ed5f89f718b' + ) ike_policy_reference_model['id'] = 'ddf51bec-3424-11e8-b467-0ed5f89f718b' ike_policy_reference_model['name'] = 'my-ike-policy' ike_policy_reference_model['resource_type'] = 'ike_policy' i_psec_policy_reference_model = {} # IPsecPolicyReference i_psec_policy_reference_model['deleted'] = deleted_model - i_psec_policy_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/ipsec_policies/ddf51bec-3424-11e8-b467-0ed5f89f718b' + i_psec_policy_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/ipsec_policies/ddf51bec-3424-11e8-b467-0ed5f89f718b' + ) i_psec_policy_reference_model['id'] = 'ddf51bec-3424-11e8-b467-0ed5f89f718b' i_psec_policy_reference_model['name'] = 'my-ipsec-policy' i_psec_policy_reference_model['resource_type'] = 'ipsec_policy' vpn_gateway_connection_status_reason_model = {} # VPNGatewayConnectionStatusReason vpn_gateway_connection_status_reason_model['code'] = 'cannot_authenticate_connection' - vpn_gateway_connection_status_reason_model['message'] = 'Failed to authenticate a connection because of mismatched IKE ID and PSK.' - vpn_gateway_connection_status_reason_model['more_info'] = 'https://cloud.ibm.com/docs/vpc?topic=vpc-vpn-health#vpn-connection-health' + vpn_gateway_connection_status_reason_model['message'] = ( + 'Failed to authenticate a connection because of mismatched IKE ID and PSK.' + ) + vpn_gateway_connection_status_reason_model['more_info'] = ( + 'https://cloud.ibm.com/docs/vpc?topic=vpc-vpn-health#vpn-connection-health' + ) - vpn_gateway_connection_ike_identity_model = {} # VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityFQDN + vpn_gateway_connection_ike_identity_model = ( + {} + ) # VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityFQDN vpn_gateway_connection_ike_identity_model['type'] = 'ipv4_address' vpn_gateway_connection_ike_identity_model['value'] = '192.0.2.4' @@ -60595,7 +62439,9 @@ def test_ike_policy_connection_collection_serialization(self): vpn_gateway_connection_policy_mode_local_model['cidrs'] = ['192.0.2.0/24'] vpn_gateway_connection_policy_mode_local_model['ike_identities'] = [vpn_gateway_connection_ike_identity_model] - vpn_gateway_connection_policy_mode_peer_model = {} # VPNGatewayConnectionPolicyModePeerVPNGatewayConnectionPeerByAddress + vpn_gateway_connection_policy_mode_peer_model = ( + {} + ) # VPNGatewayConnectionPolicyModePeerVPNGatewayConnectionPeerByAddress vpn_gateway_connection_policy_mode_peer_model['cidrs'] = ['192.0.3.0/24'] vpn_gateway_connection_policy_mode_peer_model['ike_identity'] = vpn_gateway_connection_ike_identity_model vpn_gateway_connection_policy_mode_peer_model['type'] = 'address' @@ -60607,7 +62453,9 @@ def test_ike_policy_connection_collection_serialization(self): vpn_gateway_connection_model['created_at'] = '2018-12-13T19:40:12.124000Z' vpn_gateway_connection_model['dead_peer_detection'] = vpn_gateway_connection_dpd_model vpn_gateway_connection_model['establish_mode'] = 'peer_only' - vpn_gateway_connection_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/a7d258d5-be1e-491d-83db-526d8d9a2ce9/connections/52f69dc3-6a5c-4bcf-b264-e7fae279b15c' + vpn_gateway_connection_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/a7d258d5-be1e-491d-83db-526d8d9a2ce9/connections/52f69dc3-6a5c-4bcf-b264-e7fae279b15c' + ) vpn_gateway_connection_model['id'] = '52f69dc3-6a5c-4bcf-b264-e7fae279b15c' vpn_gateway_connection_model['ike_policy'] = ike_policy_reference_model vpn_gateway_connection_model['ipsec_policy'] = i_psec_policy_reference_model @@ -60621,7 +62469,9 @@ def test_ike_policy_connection_collection_serialization(self): vpn_gateway_connection_model['peer'] = vpn_gateway_connection_policy_mode_peer_model page_link_model = {} # PageLink - page_link_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/ike_policies/e98f46a3-1e4e-4195-b4e5-b8155192689d/connections?limit=20' + page_link_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/ike_policies/e98f46a3-1e4e-4195-b4e5-b8155192689d/connections?limit=20' + ) # Construct a json representation of a IKEPolicyConnectionCollection model ike_policy_connection_collection_model_json = {} @@ -60632,12 +62482,18 @@ def test_ike_policy_connection_collection_serialization(self): ike_policy_connection_collection_model_json['total_count'] = 132 # Construct a model instance of IKEPolicyConnectionCollection by calling from_dict on the json representation - ike_policy_connection_collection_model = IKEPolicyConnectionCollection.from_dict(ike_policy_connection_collection_model_json) + ike_policy_connection_collection_model = IKEPolicyConnectionCollection.from_dict( + ike_policy_connection_collection_model_json + ) assert ike_policy_connection_collection_model != False # Construct a model instance of IKEPolicyConnectionCollection by calling from_dict on the json representation - ike_policy_connection_collection_model_dict = IKEPolicyConnectionCollection.from_dict(ike_policy_connection_collection_model_json).__dict__ - ike_policy_connection_collection_model2 = IKEPolicyConnectionCollection(**ike_policy_connection_collection_model_dict) + ike_policy_connection_collection_model_dict = IKEPolicyConnectionCollection.from_dict( + ike_policy_connection_collection_model_json + ).__dict__ + ike_policy_connection_collection_model2 = IKEPolicyConnectionCollection( + **ike_policy_connection_collection_model_dict + ) # Verify the model instances are equivalent assert ike_policy_connection_collection_model == ike_policy_connection_collection_model2 @@ -60700,7 +62556,9 @@ def test_ike_policy_reference_serialization(self): # Construct a json representation of a IKEPolicyReference model ike_policy_reference_model_json = {} ike_policy_reference_model_json['deleted'] = deleted_model - ike_policy_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/ike_policies/ddf51bec-3424-11e8-b467-0ed5f89f718b' + ike_policy_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/ike_policies/ddf51bec-3424-11e8-b467-0ed5f89f718b' + ) ike_policy_reference_model_json['id'] = 'ddf51bec-3424-11e8-b467-0ed5f89f718b' ike_policy_reference_model_json['name'] = 'my-ike-policy' ike_policy_reference_model_json['resource_type'] = 'ike_policy' @@ -60768,13 +62626,17 @@ def test_i_psec_policy_serialization(self): vpn_gateway_connection_reference_model = {} # VPNGatewayConnectionReference vpn_gateway_connection_reference_model['deleted'] = deleted_model - vpn_gateway_connection_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b/connections/93487806-7743-4c46-81d6-72869883ea0b' + vpn_gateway_connection_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b/connections/93487806-7743-4c46-81d6-72869883ea0b' + ) vpn_gateway_connection_reference_model['id'] = 'a10a5771-dc23-442c-8460-c3601d8542f7' vpn_gateway_connection_reference_model['name'] = 'my-vpn-connection' vpn_gateway_connection_reference_model['resource_type'] = 'vpn_gateway_connection' resource_group_reference_model = {} # ResourceGroupReference - resource_group_reference_model['href'] = 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + resource_group_reference_model['href'] = ( + 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + ) resource_group_reference_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' resource_group_reference_model['name'] = 'my-resource-group' @@ -60785,7 +62647,9 @@ def test_i_psec_policy_serialization(self): i_psec_policy_model_json['created_at'] = '2019-01-01T12:00:00Z' i_psec_policy_model_json['encapsulation_mode'] = 'tunnel' i_psec_policy_model_json['encryption_algorithm'] = 'aes128' - i_psec_policy_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/ipsec_policies/ddf51bec-3424-11e8-b467-0ed5f89f718b' + i_psec_policy_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/ipsec_policies/ddf51bec-3424-11e8-b467-0ed5f89f718b' + ) i_psec_policy_model_json['id'] = 'ddf51bec-3424-11e8-b467-0ed5f89f718b' i_psec_policy_model_json['key_lifetime'] = 3600 i_psec_policy_model_json['name'] = 'my-ipsec-policy' @@ -60830,13 +62694,17 @@ def test_i_psec_policy_collection_serialization(self): vpn_gateway_connection_reference_model = {} # VPNGatewayConnectionReference vpn_gateway_connection_reference_model['deleted'] = deleted_model - vpn_gateway_connection_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b/connections/93487806-7743-4c46-81d6-72869883ea0b' + vpn_gateway_connection_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b/connections/93487806-7743-4c46-81d6-72869883ea0b' + ) vpn_gateway_connection_reference_model['id'] = 'a10a5771-dc23-442c-8460-c3601d8542f7' vpn_gateway_connection_reference_model['name'] = 'my-vpn-connection' vpn_gateway_connection_reference_model['resource_type'] = 'vpn_gateway_connection' resource_group_reference_model = {} # ResourceGroupReference - resource_group_reference_model['href'] = 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + resource_group_reference_model['href'] = ( + 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + ) resource_group_reference_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' resource_group_reference_model['name'] = 'my-resource-group' @@ -60846,7 +62714,9 @@ def test_i_psec_policy_collection_serialization(self): i_psec_policy_model['created_at'] = '2019-01-01T12:00:00Z' i_psec_policy_model['encapsulation_mode'] = 'tunnel' i_psec_policy_model['encryption_algorithm'] = 'aes128' - i_psec_policy_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/ipsec_policies/ddf51bec-3424-11e8-b467-0ed5f89f718b' + i_psec_policy_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/ipsec_policies/ddf51bec-3424-11e8-b467-0ed5f89f718b' + ) i_psec_policy_model['id'] = 'ddf51bec-3424-11e8-b467-0ed5f89f718b' i_psec_policy_model['key_lifetime'] = 3600 i_psec_policy_model['name'] = 'my-ipsec-policy' @@ -60868,7 +62738,9 @@ def test_i_psec_policy_collection_serialization(self): assert i_psec_policy_collection_model != False # Construct a model instance of IPsecPolicyCollection by calling from_dict on the json representation - i_psec_policy_collection_model_dict = IPsecPolicyCollection.from_dict(i_psec_policy_collection_model_json).__dict__ + i_psec_policy_collection_model_dict = IPsecPolicyCollection.from_dict( + i_psec_policy_collection_model_json + ).__dict__ i_psec_policy_collection_model2 = IPsecPolicyCollection(**i_psec_policy_collection_model_dict) # Verify the model instances are equivalent @@ -60901,24 +62773,34 @@ def test_i_psec_policy_connection_collection_serialization(self): ike_policy_reference_model = {} # IKEPolicyReference ike_policy_reference_model['deleted'] = deleted_model - ike_policy_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/ike_policies/ddf51bec-3424-11e8-b467-0ed5f89f718b' + ike_policy_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/ike_policies/ddf51bec-3424-11e8-b467-0ed5f89f718b' + ) ike_policy_reference_model['id'] = 'ddf51bec-3424-11e8-b467-0ed5f89f718b' ike_policy_reference_model['name'] = 'my-ike-policy' ike_policy_reference_model['resource_type'] = 'ike_policy' i_psec_policy_reference_model = {} # IPsecPolicyReference i_psec_policy_reference_model['deleted'] = deleted_model - i_psec_policy_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/ipsec_policies/ddf51bec-3424-11e8-b467-0ed5f89f718b' + i_psec_policy_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/ipsec_policies/ddf51bec-3424-11e8-b467-0ed5f89f718b' + ) i_psec_policy_reference_model['id'] = 'ddf51bec-3424-11e8-b467-0ed5f89f718b' i_psec_policy_reference_model['name'] = 'my-ipsec-policy' i_psec_policy_reference_model['resource_type'] = 'ipsec_policy' vpn_gateway_connection_status_reason_model = {} # VPNGatewayConnectionStatusReason vpn_gateway_connection_status_reason_model['code'] = 'cannot_authenticate_connection' - vpn_gateway_connection_status_reason_model['message'] = 'Failed to authenticate a connection because of mismatched IKE ID and PSK.' - vpn_gateway_connection_status_reason_model['more_info'] = 'https://cloud.ibm.com/docs/vpc?topic=vpc-vpn-health#vpn-connection-health' + vpn_gateway_connection_status_reason_model['message'] = ( + 'Failed to authenticate a connection because of mismatched IKE ID and PSK.' + ) + vpn_gateway_connection_status_reason_model['more_info'] = ( + 'https://cloud.ibm.com/docs/vpc?topic=vpc-vpn-health#vpn-connection-health' + ) - vpn_gateway_connection_ike_identity_model = {} # VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityFQDN + vpn_gateway_connection_ike_identity_model = ( + {} + ) # VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityFQDN vpn_gateway_connection_ike_identity_model['type'] = 'ipv4_address' vpn_gateway_connection_ike_identity_model['value'] = '192.0.2.4' @@ -60926,7 +62808,9 @@ def test_i_psec_policy_connection_collection_serialization(self): vpn_gateway_connection_policy_mode_local_model['cidrs'] = ['192.0.2.0/24'] vpn_gateway_connection_policy_mode_local_model['ike_identities'] = [vpn_gateway_connection_ike_identity_model] - vpn_gateway_connection_policy_mode_peer_model = {} # VPNGatewayConnectionPolicyModePeerVPNGatewayConnectionPeerByAddress + vpn_gateway_connection_policy_mode_peer_model = ( + {} + ) # VPNGatewayConnectionPolicyModePeerVPNGatewayConnectionPeerByAddress vpn_gateway_connection_policy_mode_peer_model['cidrs'] = ['192.0.3.0/24'] vpn_gateway_connection_policy_mode_peer_model['ike_identity'] = vpn_gateway_connection_ike_identity_model vpn_gateway_connection_policy_mode_peer_model['type'] = 'address' @@ -60938,7 +62822,9 @@ def test_i_psec_policy_connection_collection_serialization(self): vpn_gateway_connection_model['created_at'] = '2018-12-13T19:40:12.124000Z' vpn_gateway_connection_model['dead_peer_detection'] = vpn_gateway_connection_dpd_model vpn_gateway_connection_model['establish_mode'] = 'peer_only' - vpn_gateway_connection_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/a7d258d5-be1e-491d-83db-526d8d9a2ce9/connections/52f69dc3-6a5c-4bcf-b264-e7fae279b15c' + vpn_gateway_connection_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/a7d258d5-be1e-491d-83db-526d8d9a2ce9/connections/52f69dc3-6a5c-4bcf-b264-e7fae279b15c' + ) vpn_gateway_connection_model['id'] = '52f69dc3-6a5c-4bcf-b264-e7fae279b15c' vpn_gateway_connection_model['ike_policy'] = ike_policy_reference_model vpn_gateway_connection_model['ipsec_policy'] = i_psec_policy_reference_model @@ -60952,7 +62838,9 @@ def test_i_psec_policy_connection_collection_serialization(self): vpn_gateway_connection_model['peer'] = vpn_gateway_connection_policy_mode_peer_model page_link_model = {} # PageLink - page_link_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/ipsec_policies/43c2f663-3960-4289-9253-f6eab23a6cd7/connections?limit=20' + page_link_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/ipsec_policies/43c2f663-3960-4289-9253-f6eab23a6cd7/connections?limit=20' + ) # Construct a json representation of a IPsecPolicyConnectionCollection model i_psec_policy_connection_collection_model_json = {} @@ -60963,12 +62851,18 @@ def test_i_psec_policy_connection_collection_serialization(self): i_psec_policy_connection_collection_model_json['total_count'] = 132 # Construct a model instance of IPsecPolicyConnectionCollection by calling from_dict on the json representation - i_psec_policy_connection_collection_model = IPsecPolicyConnectionCollection.from_dict(i_psec_policy_connection_collection_model_json) + i_psec_policy_connection_collection_model = IPsecPolicyConnectionCollection.from_dict( + i_psec_policy_connection_collection_model_json + ) assert i_psec_policy_connection_collection_model != False # Construct a model instance of IPsecPolicyConnectionCollection by calling from_dict on the json representation - i_psec_policy_connection_collection_model_dict = IPsecPolicyConnectionCollection.from_dict(i_psec_policy_connection_collection_model_json).__dict__ - i_psec_policy_connection_collection_model2 = IPsecPolicyConnectionCollection(**i_psec_policy_connection_collection_model_dict) + i_psec_policy_connection_collection_model_dict = IPsecPolicyConnectionCollection.from_dict( + i_psec_policy_connection_collection_model_json + ).__dict__ + i_psec_policy_connection_collection_model2 = IPsecPolicyConnectionCollection( + **i_psec_policy_connection_collection_model_dict + ) # Verify the model instances are equivalent assert i_psec_policy_connection_collection_model == i_psec_policy_connection_collection_model2 @@ -61030,7 +62924,9 @@ def test_i_psec_policy_reference_serialization(self): # Construct a json representation of a IPsecPolicyReference model i_psec_policy_reference_model_json = {} i_psec_policy_reference_model_json['deleted'] = deleted_model - i_psec_policy_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/ipsec_policies/ddf51bec-3424-11e8-b467-0ed5f89f718b' + i_psec_policy_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/ipsec_policies/ddf51bec-3424-11e8-b467-0ed5f89f718b' + ) i_psec_policy_reference_model_json['id'] = 'ddf51bec-3424-11e8-b467-0ed5f89f718b' i_psec_policy_reference_model_json['name'] = 'my-ipsec-policy' i_psec_policy_reference_model_json['resource_type'] = 'ipsec_policy' @@ -61064,14 +62960,18 @@ def test_image_serialization(self): # Construct dict forms of any model objects needed in order to build this model. catalog_offering_version_reference_model = {} # CatalogOfferingVersionReference - catalog_offering_version_reference_model['crn'] = 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:version:00111601-0ec5-41ac-b142-96d1e64e6442/ec66bec2-6a33-42d6-9323-26dd4dc8875d' + catalog_offering_version_reference_model['crn'] = ( + 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:version:00111601-0ec5-41ac-b142-96d1e64e6442/ec66bec2-6a33-42d6-9323-26dd4dc8875d' + ) image_catalog_offering_model = {} # ImageCatalogOffering image_catalog_offering_model['managed'] = False image_catalog_offering_model['version'] = catalog_offering_version_reference_model encryption_key_reference_model = {} # EncryptionKeyReference - encryption_key_reference_model['crn'] = 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + encryption_key_reference_model['crn'] = ( + 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + ) image_file_checksums_model = {} # ImageFileChecksums image_file_checksums_model['sha256'] = 'e992a84f113d3a35d2145ca3e7aca4fc95fe6daf470a08d8af3422ee59c92e15' @@ -61093,7 +62993,9 @@ def test_image_serialization(self): operating_system_model['version'] = '24.04 LTS Noble Numbat Minimal Install' resource_group_reference_model = {} # ResourceGroupReference - resource_group_reference_model['href'] = 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + resource_group_reference_model['href'] = ( + 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + ) resource_group_reference_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' resource_group_reference_model['name'] = 'Default' @@ -61108,9 +63010,13 @@ def test_image_serialization(self): volume_remote_model['region'] = region_reference_model volume_reference_model = {} # VolumeReference - volume_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::volume:r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' + volume_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::volume:r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' + ) volume_reference_model['deleted'] = deleted_model - volume_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/volumes/r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' + volume_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/volumes/r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' + ) volume_reference_model['id'] = 'r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' volume_reference_model['name'] = 'my-volume' volume_reference_model['remote'] = volume_remote_model @@ -61125,12 +63031,16 @@ def test_image_serialization(self): image_model_json = {} image_model_json['catalog_offering'] = image_catalog_offering_model image_model_json['created_at'] = '2019-01-01T12:00:00Z' - image_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::image:r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8' + image_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::image:r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8' + ) image_model_json['deprecation_at'] = '2019-01-01T12:00:00Z' image_model_json['encryption'] = 'user_managed' image_model_json['encryption_key'] = encryption_key_reference_model image_model_json['file'] = image_file_model - image_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/images/r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8' + image_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/images/r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8' + ) image_model_json['id'] = 'r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8' image_model_json['minimum_provisioned_size'] = 38 image_model_json['name'] = 'my-image' @@ -61173,7 +63083,9 @@ def test_image_catalog_offering_serialization(self): # Construct dict forms of any model objects needed in order to build this model. catalog_offering_version_reference_model = {} # CatalogOfferingVersionReference - catalog_offering_version_reference_model['crn'] = 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:version:00111601-0ec5-41ac-b142-96d1e64e6442/ec66bec2-6a33-42d6-9323-26dd4dc8875d' + catalog_offering_version_reference_model['crn'] = ( + 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:version:00111601-0ec5-41ac-b142-96d1e64e6442/ec66bec2-6a33-42d6-9323-26dd4dc8875d' + ) # Construct a json representation of a ImageCatalogOffering model image_catalog_offering_model_json = {} @@ -61212,14 +63124,18 @@ def test_image_collection_serialization(self): page_link_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/images?limit=50' catalog_offering_version_reference_model = {} # CatalogOfferingVersionReference - catalog_offering_version_reference_model['crn'] = 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:version:00111601-0ec5-41ac-b142-96d1e64e6442/ec66bec2-6a33-42d6-9323-26dd4dc8875d' + catalog_offering_version_reference_model['crn'] = ( + 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:version:00111601-0ec5-41ac-b142-96d1e64e6442/ec66bec2-6a33-42d6-9323-26dd4dc8875d' + ) image_catalog_offering_model = {} # ImageCatalogOffering image_catalog_offering_model['managed'] = False image_catalog_offering_model['version'] = catalog_offering_version_reference_model encryption_key_reference_model = {} # EncryptionKeyReference - encryption_key_reference_model['crn'] = 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + encryption_key_reference_model['crn'] = ( + 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + ) image_file_checksums_model = {} # ImageFileChecksums image_file_checksums_model['sha256'] = 'e992a84f113d3a35d2145ca3e7aca4fc95fe6daf470a08d8af3422ee59c92e15' @@ -61241,7 +63157,9 @@ def test_image_collection_serialization(self): operating_system_model['version'] = '24.04 LTS Noble Numbat Minimal Install' resource_group_reference_model = {} # ResourceGroupReference - resource_group_reference_model['href'] = 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + resource_group_reference_model['href'] = ( + 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + ) resource_group_reference_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' resource_group_reference_model['name'] = 'Default' @@ -61256,9 +63174,13 @@ def test_image_collection_serialization(self): volume_remote_model['region'] = region_reference_model volume_reference_model = {} # VolumeReference - volume_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::volume:r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' + volume_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::volume:r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' + ) volume_reference_model['deleted'] = deleted_model - volume_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/volumes/r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' + volume_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/volumes/r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' + ) volume_reference_model['id'] = 'r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' volume_reference_model['name'] = 'my-volume' volume_reference_model['remote'] = volume_remote_model @@ -61272,7 +63194,9 @@ def test_image_collection_serialization(self): image_model = {} # Image image_model['catalog_offering'] = image_catalog_offering_model image_model['created_at'] = '2024-09-13T09:06:26Z' - image_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::image:r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8' + image_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::image:r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8' + ) image_model['deprecation_at'] = '2019-01-01T12:00:00Z' image_model['encryption'] = 'none' image_model['encryption_key'] = encryption_key_reference_model @@ -61330,10 +63254,14 @@ def test_image_export_job_serialization(self): image_export_job_status_reason_model = {} # ImageExportJobStatusReason image_export_job_status_reason_model['code'] = 'cannot_access_storage_bucket' image_export_job_status_reason_model['message'] = 'testString' - image_export_job_status_reason_model['more_info'] = 'https://cloud.ibm.com/docs/vpc?topic=vpc-object-storage-prereq' + image_export_job_status_reason_model['more_info'] = ( + 'https://cloud.ibm.com/docs/vpc?topic=vpc-object-storage-prereq' + ) cloud_object_storage_bucket_reference_model = {} # CloudObjectStorageBucketReference - cloud_object_storage_bucket_reference_model['crn'] = 'crn:v1:bluemix:public:cloud-object-storage:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1a0ec336-f391-4091-a6fb-5e084a4c56f4:bucket:my-bucket' + cloud_object_storage_bucket_reference_model['crn'] = ( + 'crn:v1:bluemix:public:cloud-object-storage:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1a0ec336-f391-4091-a6fb-5e084a4c56f4:bucket:my-bucket' + ) cloud_object_storage_bucket_reference_model['name'] = 'bucket-27200-lwx4cfvcue' cloud_object_storage_object_reference_model = {} # CloudObjectStorageObjectReference @@ -61345,7 +63273,9 @@ def test_image_export_job_serialization(self): image_export_job_model_json['created_at'] = '2019-01-01T12:00:00Z' image_export_job_model_json['encrypted_data_key'] = 'VGhpcyBpcyBhIG1vY2sgYnl0ZSBhcnJheSB2YWx1ZS4=' image_export_job_model_json['format'] = 'qcow2' - image_export_job_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/images/72b27b5c-f4b0-48bb-b954-5becc7c1dcb8/export_jobs/r134-095e9baf-01d4-4e29-986e-20d26606b82a' + image_export_job_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/images/72b27b5c-f4b0-48bb-b954-5becc7c1dcb8/export_jobs/r134-095e9baf-01d4-4e29-986e-20d26606b82a' + ) image_export_job_model_json['id'] = 'r134-095e9baf-01d4-4e29-986e-20d26606b82a' image_export_job_model_json['name'] = 'my-image-export' image_export_job_model_json['resource_type'] = 'image_export_job' @@ -61416,14 +63346,20 @@ def test_image_export_job_status_reason_serialization(self): image_export_job_status_reason_model_json = {} image_export_job_status_reason_model_json['code'] = 'cannot_access_storage_bucket' image_export_job_status_reason_model_json['message'] = 'testString' - image_export_job_status_reason_model_json['more_info'] = 'https://cloud.ibm.com/docs/vpc?topic=vpc-object-storage-prereq' + image_export_job_status_reason_model_json['more_info'] = ( + 'https://cloud.ibm.com/docs/vpc?topic=vpc-object-storage-prereq' + ) # Construct a model instance of ImageExportJobStatusReason by calling from_dict on the json representation - image_export_job_status_reason_model = ImageExportJobStatusReason.from_dict(image_export_job_status_reason_model_json) + image_export_job_status_reason_model = ImageExportJobStatusReason.from_dict( + image_export_job_status_reason_model_json + ) assert image_export_job_status_reason_model != False # Construct a model instance of ImageExportJobStatusReason by calling from_dict on the json representation - image_export_job_status_reason_model_dict = ImageExportJobStatusReason.from_dict(image_export_job_status_reason_model_json).__dict__ + image_export_job_status_reason_model_dict = ImageExportJobStatusReason.from_dict( + image_export_job_status_reason_model_json + ).__dict__ image_export_job_status_reason_model2 = ImageExportJobStatusReason(**image_export_job_status_reason_model_dict) # Verify the model instances are equivalent @@ -61449,10 +63385,14 @@ def test_image_export_job_unpaginated_collection_serialization(self): image_export_job_status_reason_model = {} # ImageExportJobStatusReason image_export_job_status_reason_model['code'] = 'cannot_access_storage_bucket' image_export_job_status_reason_model['message'] = 'testString' - image_export_job_status_reason_model['more_info'] = 'https://cloud.ibm.com/docs/vpc?topic=vpc-object-storage-prereq' + image_export_job_status_reason_model['more_info'] = ( + 'https://cloud.ibm.com/docs/vpc?topic=vpc-object-storage-prereq' + ) cloud_object_storage_bucket_reference_model = {} # CloudObjectStorageBucketReference - cloud_object_storage_bucket_reference_model['crn'] = 'crn:v1:bluemix:public:cloud-object-storage:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1a0ec336-f391-4091-a6fb-5e084a4c56f4:bucket:my-bucket' + cloud_object_storage_bucket_reference_model['crn'] = ( + 'crn:v1:bluemix:public:cloud-object-storage:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1a0ec336-f391-4091-a6fb-5e084a4c56f4:bucket:my-bucket' + ) cloud_object_storage_bucket_reference_model['name'] = 'bucket-27200-lwx4cfvcue' cloud_object_storage_object_reference_model = {} # CloudObjectStorageObjectReference @@ -61463,7 +63403,9 @@ def test_image_export_job_unpaginated_collection_serialization(self): image_export_job_model['created_at'] = '2019-01-01T12:00:00Z' image_export_job_model['encrypted_data_key'] = 'VGhpcyBpcyBhIG1vY2sgYnl0ZSBhcnJheSB2YWx1ZS4=' image_export_job_model['format'] = 'qcow2' - image_export_job_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/images/72b27b5c-f4b0-48bb-b954-5becc7c1dcb8/export_jobs/r134-095e9baf-01d4-4e29-986e-20d26606b82a' + image_export_job_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/images/72b27b5c-f4b0-48bb-b954-5becc7c1dcb8/export_jobs/r134-095e9baf-01d4-4e29-986e-20d26606b82a' + ) image_export_job_model['id'] = 'r134-095e9baf-01d4-4e29-986e-20d26606b82a' image_export_job_model['name'] = 'my-image-export' image_export_job_model['resource_type'] = 'image_export_job' @@ -61479,12 +63421,18 @@ def test_image_export_job_unpaginated_collection_serialization(self): image_export_job_unpaginated_collection_model_json['export_jobs'] = [image_export_job_model] # Construct a model instance of ImageExportJobUnpaginatedCollection by calling from_dict on the json representation - image_export_job_unpaginated_collection_model = ImageExportJobUnpaginatedCollection.from_dict(image_export_job_unpaginated_collection_model_json) + image_export_job_unpaginated_collection_model = ImageExportJobUnpaginatedCollection.from_dict( + image_export_job_unpaginated_collection_model_json + ) assert image_export_job_unpaginated_collection_model != False # Construct a model instance of ImageExportJobUnpaginatedCollection by calling from_dict on the json representation - image_export_job_unpaginated_collection_model_dict = ImageExportJobUnpaginatedCollection.from_dict(image_export_job_unpaginated_collection_model_json).__dict__ - image_export_job_unpaginated_collection_model2 = ImageExportJobUnpaginatedCollection(**image_export_job_unpaginated_collection_model_dict) + image_export_job_unpaginated_collection_model_dict = ImageExportJobUnpaginatedCollection.from_dict( + image_export_job_unpaginated_collection_model_json + ).__dict__ + image_export_job_unpaginated_collection_model2 = ImageExportJobUnpaginatedCollection( + **image_export_job_unpaginated_collection_model_dict + ) # Verify the model instances are equivalent assert image_export_job_unpaginated_collection_model == image_export_job_unpaginated_collection_model2 @@ -61651,9 +63599,13 @@ def test_image_reference_serialization(self): # Construct a json representation of a ImageReference model image_reference_model_json = {} - image_reference_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::image:r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8' + image_reference_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::image:r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8' + ) image_reference_model_json['deleted'] = deleted_model - image_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/images/r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8' + image_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/images/r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8' + ) image_reference_model_json['id'] = 'r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8' image_reference_model_json['name'] = 'my-image' image_reference_model_json['remote'] = image_remote_model @@ -61730,7 +63682,9 @@ def test_image_status_reason_serialization(self): image_status_reason_model_json = {} image_status_reason_model_json['code'] = 'encryption_key_deleted' image_status_reason_model_json['message'] = 'testString' - image_status_reason_model_json['more_info'] = 'https://cloud.ibm.com/docs/key-protect?topic=key-protect-restore-keys' + image_status_reason_model_json['more_info'] = ( + 'https://cloud.ibm.com/docs/key-protect?topic=key-protect-restore-keys' + ) # Construct a model instance of ImageStatusReason by calling from_dict on the json representation image_status_reason_model = ImageStatusReason.from_dict(image_status_reason_model_json) @@ -61770,9 +63724,13 @@ def test_instance_serialization(self): volume_attachment_device_model['id'] = '0717-80b3e36e-41f4-40e9-bd56-beae81792a68-679qb' volume_reference_volume_attachment_context_model = {} # VolumeReferenceVolumeAttachmentContext - volume_reference_volume_attachment_context_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::volume:r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' + volume_reference_volume_attachment_context_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::volume:r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' + ) volume_reference_volume_attachment_context_model['deleted'] = deleted_model - volume_reference_volume_attachment_context_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/volumes/r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' + volume_reference_volume_attachment_context_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/volumes/r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' + ) volume_reference_volume_attachment_context_model['id'] = 'r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' volume_reference_volume_attachment_context_model['name'] = 'my-volume' volume_reference_volume_attachment_context_model['resource_type'] = 'volume' @@ -61780,47 +63738,65 @@ def test_instance_serialization(self): volume_attachment_reference_instance_context_model = {} # VolumeAttachmentReferenceInstanceContext volume_attachment_reference_instance_context_model['deleted'] = deleted_model volume_attachment_reference_instance_context_model['device'] = volume_attachment_device_model - volume_attachment_reference_instance_context_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/volume_attachments/0717-82cbf856-9cbb-45fb-b62f-d7bcef32399a' + volume_attachment_reference_instance_context_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/volume_attachments/0717-82cbf856-9cbb-45fb-b62f-d7bcef32399a' + ) volume_attachment_reference_instance_context_model['id'] = '0717-82cbf856-9cbb-45fb-b62f-d7bcef32399a' volume_attachment_reference_instance_context_model['name'] = 'my-volume-attachment' volume_attachment_reference_instance_context_model['volume'] = volume_reference_volume_attachment_context_model catalog_offering_version_plan_reference_model = {} # CatalogOfferingVersionPlanReference - catalog_offering_version_plan_reference_model['crn'] = 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:51c9e0db-2911-45a6-adb0-ac5332d27cf2:plan:sw.51c9e0db-2911-45a6-adb0-ac5332d27cf2.772c0dbe-aa62-482e-adbe-a3fc20101e0e' + catalog_offering_version_plan_reference_model['crn'] = ( + 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:51c9e0db-2911-45a6-adb0-ac5332d27cf2:plan:sw.51c9e0db-2911-45a6-adb0-ac5332d27cf2.772c0dbe-aa62-482e-adbe-a3fc20101e0e' + ) catalog_offering_version_plan_reference_model['deleted'] = deleted_model catalog_offering_version_reference_model = {} # CatalogOfferingVersionReference - catalog_offering_version_reference_model['crn'] = 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:version:00111601-0ec5-41ac-b142-96d1e64e6442/ec66bec2-6a33-42d6-9323-26dd4dc8875d' + catalog_offering_version_reference_model['crn'] = ( + 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:version:00111601-0ec5-41ac-b142-96d1e64e6442/ec66bec2-6a33-42d6-9323-26dd4dc8875d' + ) instance_catalog_offering_model = {} # InstanceCatalogOffering instance_catalog_offering_model['plan'] = catalog_offering_version_plan_reference_model instance_catalog_offering_model['version'] = catalog_offering_version_reference_model cluster_network_reference_model = {} # ClusterNetworkReference - cluster_network_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::cluster-network:0717-da0df18c-7598-4633-a648-fdaac28a5573' + cluster_network_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::cluster-network:0717-da0df18c-7598-4633-a648-fdaac28a5573' + ) cluster_network_reference_model['deleted'] = deleted_model - cluster_network_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/cluster_networks/0717-da0df18c-7598-4633-a648-fdaac28a5573' + cluster_network_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/cluster_networks/0717-da0df18c-7598-4633-a648-fdaac28a5573' + ) cluster_network_reference_model['id'] = '0717-da0df18c-7598-4633-a648-fdaac28a5573' cluster_network_reference_model['name'] = 'my-cluster-network' cluster_network_reference_model['resource_type'] = 'cluster_network' instance_cluster_network_attachment_reference_model = {} # InstanceClusterNetworkAttachmentReference - instance_cluster_network_attachment_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/cluster_network_attachments/0717-fb880975-db45-4459-8548-64e3995ac213' + instance_cluster_network_attachment_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/cluster_network_attachments/0717-fb880975-db45-4459-8548-64e3995ac213' + ) instance_cluster_network_attachment_reference_model['id'] = '0717-fb880975-db45-4459-8548-64e3995ac213' instance_cluster_network_attachment_reference_model['name'] = 'my-instance-network-attachment' instance_cluster_network_attachment_reference_model['resource_type'] = 'instance_cluster_network_attachment' dedicated_host_reference_model = {} # DedicatedHostReference - dedicated_host_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host:0717-1e09281b-f177-46fb-baf1-bc152b2e391a' + dedicated_host_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host:0717-1e09281b-f177-46fb-baf1-bc152b2e391a' + ) dedicated_host_reference_model['deleted'] = deleted_model - dedicated_host_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/dedicated_hosts/0717-1e09281b-f177-46fb-baf1-bc152b2e391a' + dedicated_host_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/dedicated_hosts/0717-1e09281b-f177-46fb-baf1-bc152b2e391a' + ) dedicated_host_reference_model['id'] = '0717-1e09281b-f177-46fb-baf1-bc152b2e391a' dedicated_host_reference_model['name'] = 'my-dedicated-host' dedicated_host_reference_model['resource_type'] = 'dedicated_host' instance_disk_model = {} # InstanceDisk instance_disk_model['created_at'] = '2019-01-01T12:00:00Z' - instance_disk_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/disks/10c02d81-0ecb-4dc5-897d-28392913b81e' + instance_disk_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/disks/10c02d81-0ecb-4dc5-897d-28392913b81e' + ) instance_disk_model['id'] = '10c02d81-0ecb-4dc5-897d-28392913b81e' instance_disk_model['interface_type'] = 'nvme' instance_disk_model['name'] = 'my-instance-disk' @@ -61836,7 +63812,9 @@ def test_instance_serialization(self): instance_health_reason_model = {} # InstanceHealthReason instance_health_reason_model['code'] = 'reservation_expired' instance_health_reason_model['message'] = 'The reservation cannot be used because it has expired.' - instance_health_reason_model['more_info'] = 'https://cloud.ibm.com/docs/vpc?topic=vpc-server-health-status-reasons' + instance_health_reason_model['more_info'] = ( + 'https://cloud.ibm.com/docs/vpc?topic=vpc-server-health-status-reasons' + ) account_reference_model = {} # AccountReference account_reference_model['id'] = 'bb1b52262f7441a586f49068482f1e60' @@ -61851,9 +63829,13 @@ def test_instance_serialization(self): image_remote_model['region'] = region_reference_model image_reference_model = {} # ImageReference - image_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::image:r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8' + image_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::image:r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8' + ) image_reference_model['deleted'] = deleted_model - image_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/images/r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8' + image_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/images/r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8' + ) image_reference_model['id'] = 'r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8' image_reference_model['name'] = 'my-image' image_reference_model['remote'] = image_remote_model @@ -61861,7 +63843,9 @@ def test_instance_serialization(self): instance_lifecycle_reason_model = {} # InstanceLifecycleReason instance_lifecycle_reason_model['code'] = 'resource_suspended_by_provider' - instance_lifecycle_reason_model['message'] = 'The resource has been suspended. Contact IBM support with the CRN for next steps.' + instance_lifecycle_reason_model['message'] = ( + 'The resource has been suspended. Contact IBM support with the CRN for next steps.' + ) instance_lifecycle_reason_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#resource-suspension' instance_metadata_service_model = {} # InstanceMetadataService @@ -61872,39 +63856,57 @@ def test_instance_serialization(self): reserved_ip_reference_model = {} # ReservedIPReference reserved_ip_reference_model['address'] = '10.0.1.5' reserved_ip_reference_model['deleted'] = deleted_model - reserved_ip_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + reserved_ip_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + ) reserved_ip_reference_model['id'] = '0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' reserved_ip_reference_model['name'] = 'my-reserved-ip' reserved_ip_reference_model['resource_type'] = 'subnet_reserved_ip' subnet_reference_model = {} # SubnetReference - subnet_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['deleted'] = deleted_model - subnet_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['id'] = '0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' subnet_reference_model['name'] = 'my-subnet' subnet_reference_model['resource_type'] = 'subnet' - virtual_network_interface_reference_attachment_context_model = {} # VirtualNetworkInterfaceReferenceAttachmentContext - virtual_network_interface_reference_attachment_context_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::virtual-network-interface:0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' - virtual_network_interface_reference_attachment_context_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/virtual_network_interfaces/0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + virtual_network_interface_reference_attachment_context_model = ( + {} + ) # VirtualNetworkInterfaceReferenceAttachmentContext + virtual_network_interface_reference_attachment_context_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::virtual-network-interface:0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + ) + virtual_network_interface_reference_attachment_context_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/virtual_network_interfaces/0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + ) virtual_network_interface_reference_attachment_context_model['id'] = '0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' virtual_network_interface_reference_attachment_context_model['name'] = 'my-virtual-network-interface' virtual_network_interface_reference_attachment_context_model['resource_type'] = 'virtual_network_interface' instance_network_attachment_reference_model = {} # InstanceNetworkAttachmentReference instance_network_attachment_reference_model['deleted'] = deleted_model - instance_network_attachment_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/network_attachments/0717-d54eb633-98ea-459d-aa00-6a8e780175a7' + instance_network_attachment_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/network_attachments/0717-d54eb633-98ea-459d-aa00-6a8e780175a7' + ) instance_network_attachment_reference_model['id'] = '0717-d54eb633-98ea-459d-aa00-6a8e780175a7' instance_network_attachment_reference_model['name'] = 'my-instance-network-attachment' instance_network_attachment_reference_model['primary_ip'] = reserved_ip_reference_model instance_network_attachment_reference_model['resource_type'] = 'instance_network_attachment' instance_network_attachment_reference_model['subnet'] = subnet_reference_model - instance_network_attachment_reference_model['virtual_network_interface'] = virtual_network_interface_reference_attachment_context_model + instance_network_attachment_reference_model['virtual_network_interface'] = ( + virtual_network_interface_reference_attachment_context_model + ) network_interface_instance_context_reference_model = {} # NetworkInterfaceInstanceContextReference network_interface_instance_context_reference_model['deleted'] = deleted_model - network_interface_instance_context_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/network_interfaces/0717-d54eb633-98ea-459d-aa00-6a8e780175a7' + network_interface_instance_context_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/network_interfaces/0717-d54eb633-98ea-459d-aa00-6a8e780175a7' + ) network_interface_instance_context_reference_model['id'] = '0717-d54eb633-98ea-459d-aa00-6a8e780175a7' network_interface_instance_context_reference_model['name'] = 'my-instance-network-interface' network_interface_instance_context_reference_model['primary_ip'] = reserved_ip_reference_model @@ -61912,9 +63914,13 @@ def test_instance_serialization(self): network_interface_instance_context_reference_model['subnet'] = subnet_reference_model instance_placement_target_model = {} # InstancePlacementTargetDedicatedHostGroupReference - instance_placement_target_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host:0717-1e09281b-f177-46fb-baf1-bc152b2e391a' + instance_placement_target_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host:0717-1e09281b-f177-46fb-baf1-bc152b2e391a' + ) instance_placement_target_model['deleted'] = deleted_model - instance_placement_target_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/dedicated_hosts/0717-1e09281b-f177-46fb-baf1-bc152b2e391a' + instance_placement_target_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/dedicated_hosts/0717-1e09281b-f177-46fb-baf1-bc152b2e391a' + ) instance_placement_target_model['id'] = '0717-1e09281b-f177-46fb-baf1-bc152b2e391a' instance_placement_target_model['name'] = 'my-dedicated-host' instance_placement_target_model['resource_type'] = 'dedicated_host' @@ -61925,9 +63931,13 @@ def test_instance_serialization(self): instance_profile_reference_model['resource_type'] = 'instance_profile' reservation_reference_model = {} # ReservationReference - reservation_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::reservation:0717-ba49df72-37b8-43ac-98da-f8e029de0e63' + reservation_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::reservation:0717-ba49df72-37b8-43ac-98da-f8e029de0e63' + ) reservation_reference_model['deleted'] = deleted_model - reservation_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/reservations/0717-ba49df72-37b8-43ac-98da-f8e029de0e63' + reservation_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/reservations/0717-ba49df72-37b8-43ac-98da-f8e029de0e63' + ) reservation_reference_model['id'] = '0717-ba49df72-37b8-43ac-98da-f8e029de0e63' reservation_reference_model['name'] = 'my-reservation' reservation_reference_model['resource_type'] = 'reservation' @@ -61937,14 +63947,20 @@ def test_instance_serialization(self): instance_reservation_affinity_model['pool'] = [reservation_reference_model] resource_group_reference_model = {} # ResourceGroupReference - resource_group_reference_model['href'] = 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + resource_group_reference_model['href'] = ( + 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + ) resource_group_reference_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' resource_group_reference_model['name'] = 'Default' instance_status_reason_model = {} # InstanceStatusReason instance_status_reason_model['code'] = 'cannot_start_storage' - instance_status_reason_model['message'] = 'The virtual server instance is unusable because the encryption key for the boot volume\nhas been deleted' - instance_status_reason_model['more_info'] = 'https://cloud.ibm.com/docs/key-protect?topic=key-protect-restore-keys' + instance_status_reason_model['message'] = ( + 'The virtual server instance is unusable because the encryption key for the boot volume\nhas been deleted' + ) + instance_status_reason_model['more_info'] = ( + 'https://cloud.ibm.com/docs/key-protect?topic=key-protect-restore-keys' + ) instance_vcpu_model = {} # InstanceVCPU instance_vcpu_model['architecture'] = 'amd64' @@ -61952,9 +63968,13 @@ def test_instance_serialization(self): instance_vcpu_model['manufacturer'] = 'intel' vpc_reference_model = {} # VPCReference - vpc_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_model['deleted'] = deleted_model - vpc_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_model['id'] = 'r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' vpc_reference_model['name'] = 'my-vpc' vpc_reference_model['resource_type'] = 'vpc' @@ -61973,14 +63993,18 @@ def test_instance_serialization(self): instance_model_json['cluster_network_attachments'] = [instance_cluster_network_attachment_reference_model] instance_model_json['confidential_compute_mode'] = 'disabled' instance_model_json['created_at'] = '2019-01-01T12:00:00Z' - instance_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::instance:0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' + instance_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::instance:0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' + ) instance_model_json['dedicated_host'] = dedicated_host_reference_model instance_model_json['disks'] = [instance_disk_model] instance_model_json['enable_secure_boot'] = True instance_model_json['gpu'] = instance_gpu_model instance_model_json['health_reasons'] = [instance_health_reason_model] instance_model_json['health_state'] = 'ok' - instance_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' + instance_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' + ) instance_model_json['id'] = '0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' instance_model_json['image'] = image_reference_model instance_model_json['lifecycle_reasons'] = [instance_lifecycle_reason_model] @@ -62040,7 +64064,9 @@ def test_instance_action_serialization(self): instance_action_model_json['completed_at'] = '2019-01-01T12:00:00Z' instance_action_model_json['created_at'] = '2019-01-01T12:00:00Z' instance_action_model_json['force'] = True - instance_action_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/actions/109a1b6e-1242-4de1-be44-38705e9474ed' + instance_action_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/actions/109a1b6e-1242-4de1-be44-38705e9474ed' + ) instance_action_model_json['id'] = '109a1b6e-1242-4de1-be44-38705e9474ed' instance_action_model_json['started_at'] = '2019-01-01T12:00:00Z' instance_action_model_json['status'] = 'completed' @@ -62077,11 +64103,15 @@ def test_instance_availability_policy_serialization(self): instance_availability_policy_model_json['host_failure'] = 'restart' # Construct a model instance of InstanceAvailabilityPolicy by calling from_dict on the json representation - instance_availability_policy_model = InstanceAvailabilityPolicy.from_dict(instance_availability_policy_model_json) + instance_availability_policy_model = InstanceAvailabilityPolicy.from_dict( + instance_availability_policy_model_json + ) assert instance_availability_policy_model != False # Construct a model instance of InstanceAvailabilityPolicy by calling from_dict on the json representation - instance_availability_policy_model_dict = InstanceAvailabilityPolicy.from_dict(instance_availability_policy_model_json).__dict__ + instance_availability_policy_model_dict = InstanceAvailabilityPolicy.from_dict( + instance_availability_policy_model_json + ).__dict__ instance_availability_policy_model2 = InstanceAvailabilityPolicy(**instance_availability_policy_model_dict) # Verify the model instances are equivalent @@ -62107,12 +64137,18 @@ def test_instance_availability_policy_patch_serialization(self): instance_availability_policy_patch_model_json['host_failure'] = 'restart' # Construct a model instance of InstanceAvailabilityPolicyPatch by calling from_dict on the json representation - instance_availability_policy_patch_model = InstanceAvailabilityPolicyPatch.from_dict(instance_availability_policy_patch_model_json) + instance_availability_policy_patch_model = InstanceAvailabilityPolicyPatch.from_dict( + instance_availability_policy_patch_model_json + ) assert instance_availability_policy_patch_model != False # Construct a model instance of InstanceAvailabilityPolicyPatch by calling from_dict on the json representation - instance_availability_policy_patch_model_dict = InstanceAvailabilityPolicyPatch.from_dict(instance_availability_policy_patch_model_json).__dict__ - instance_availability_policy_patch_model2 = InstanceAvailabilityPolicyPatch(**instance_availability_policy_patch_model_dict) + instance_availability_policy_patch_model_dict = InstanceAvailabilityPolicyPatch.from_dict( + instance_availability_policy_patch_model_json + ).__dict__ + instance_availability_policy_patch_model2 = InstanceAvailabilityPolicyPatch( + **instance_availability_policy_patch_model_dict + ) # Verify the model instances are equivalent assert instance_availability_policy_patch_model == instance_availability_policy_patch_model2 @@ -62137,12 +64173,18 @@ def test_instance_availability_policy_prototype_serialization(self): instance_availability_policy_prototype_model_json['host_failure'] = 'restart' # Construct a model instance of InstanceAvailabilityPolicyPrototype by calling from_dict on the json representation - instance_availability_policy_prototype_model = InstanceAvailabilityPolicyPrototype.from_dict(instance_availability_policy_prototype_model_json) + instance_availability_policy_prototype_model = InstanceAvailabilityPolicyPrototype.from_dict( + instance_availability_policy_prototype_model_json + ) assert instance_availability_policy_prototype_model != False # Construct a model instance of InstanceAvailabilityPolicyPrototype by calling from_dict on the json representation - instance_availability_policy_prototype_model_dict = InstanceAvailabilityPolicyPrototype.from_dict(instance_availability_policy_prototype_model_json).__dict__ - instance_availability_policy_prototype_model2 = InstanceAvailabilityPolicyPrototype(**instance_availability_policy_prototype_model_dict) + instance_availability_policy_prototype_model_dict = InstanceAvailabilityPolicyPrototype.from_dict( + instance_availability_policy_prototype_model_json + ).__dict__ + instance_availability_policy_prototype_model2 = InstanceAvailabilityPolicyPrototype( + **instance_availability_policy_prototype_model_dict + ) # Verify the model instances are equivalent assert instance_availability_policy_prototype_model == instance_availability_policy_prototype_model2 @@ -62168,11 +64210,15 @@ def test_instance_catalog_offering_serialization(self): deleted_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#deleted-resources' catalog_offering_version_plan_reference_model = {} # CatalogOfferingVersionPlanReference - catalog_offering_version_plan_reference_model['crn'] = 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:51c9e0db-2911-45a6-adb0-ac5332d27cf2:plan:sw.51c9e0db-2911-45a6-adb0-ac5332d27cf2.772c0dbe-aa62-482e-adbe-a3fc20101e0e' + catalog_offering_version_plan_reference_model['crn'] = ( + 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:51c9e0db-2911-45a6-adb0-ac5332d27cf2:plan:sw.51c9e0db-2911-45a6-adb0-ac5332d27cf2.772c0dbe-aa62-482e-adbe-a3fc20101e0e' + ) catalog_offering_version_plan_reference_model['deleted'] = deleted_model catalog_offering_version_reference_model = {} # CatalogOfferingVersionReference - catalog_offering_version_reference_model['crn'] = 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:version:00111601-0ec5-41ac-b142-96d1e64e6442/ec66bec2-6a33-42d6-9323-26dd4dc8875d' + catalog_offering_version_reference_model['crn'] = ( + 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:version:00111601-0ec5-41ac-b142-96d1e64e6442/ec66bec2-6a33-42d6-9323-26dd4dc8875d' + ) # Construct a json representation of a InstanceCatalogOffering model instance_catalog_offering_model_json = {} @@ -62184,7 +64230,9 @@ def test_instance_catalog_offering_serialization(self): assert instance_catalog_offering_model != False # Construct a model instance of InstanceCatalogOffering by calling from_dict on the json representation - instance_catalog_offering_model_dict = InstanceCatalogOffering.from_dict(instance_catalog_offering_model_json).__dict__ + instance_catalog_offering_model_dict = InstanceCatalogOffering.from_dict( + instance_catalog_offering_model_json + ).__dict__ instance_catalog_offering_model2 = InstanceCatalogOffering(**instance_catalog_offering_model_dict) # Verify the model instances are equivalent @@ -62208,7 +64256,9 @@ def test_instance_cluster_network_attachment_serialization(self): # Construct dict forms of any model objects needed in order to build this model. instance_cluster_network_attachment_before_model = {} # InstanceClusterNetworkAttachmentBefore - instance_cluster_network_attachment_before_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/cluster_network_attachments/0717-a69563fa-0415-4d6e-aeb3-a3f14654bf90' + instance_cluster_network_attachment_before_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/cluster_network_attachments/0717-a69563fa-0415-4d6e-aeb3-a3f14654bf90' + ) instance_cluster_network_attachment_before_model['id'] = '0717-a69563fa-0415-4d6e-aeb3-a3f14654bf90' instance_cluster_network_attachment_before_model['name'] = 'other-instance-cluster-network-attachment' instance_cluster_network_attachment_before_model['resource_type'] = 'instance_cluster_network_attachment' @@ -62219,50 +64269,74 @@ def test_instance_cluster_network_attachment_serialization(self): cluster_network_subnet_reserved_ip_reference_model = {} # ClusterNetworkSubnetReservedIPReference cluster_network_subnet_reserved_ip_reference_model['address'] = '10.1.0.6' cluster_network_subnet_reserved_ip_reference_model['deleted'] = deleted_model - cluster_network_subnet_reserved_ip_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/cluster_networks/0717-da0df18c-7598-4633-a648-fdaac28a5573/subnets/0717-7931845c-65c4-4b0a-80cd-7d9c1a6d7930/reserved_ips/63341ffa-1037-4b50-be40-676e3e9ac0c7' + cluster_network_subnet_reserved_ip_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/cluster_networks/0717-da0df18c-7598-4633-a648-fdaac28a5573/subnets/0717-7931845c-65c4-4b0a-80cd-7d9c1a6d7930/reserved_ips/63341ffa-1037-4b50-be40-676e3e9ac0c7' + ) cluster_network_subnet_reserved_ip_reference_model['id'] = '63341ffa-1037-4b50-be40-676e3e9ac0c7' cluster_network_subnet_reserved_ip_reference_model['name'] = 'my-cluster-network-subnet-reserved-ip' cluster_network_subnet_reserved_ip_reference_model['resource_type'] = 'cluster_network_subnet_reserved_ip' cluster_network_subnet_reference_model = {} # ClusterNetworkSubnetReference cluster_network_subnet_reference_model['deleted'] = deleted_model - cluster_network_subnet_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/cluster_networks/0717-da0df18c-7598-4633-a648-fdaac28a5573/subnets/0717-7931845c-65c4-4b0a-80cd-7d9c1a6d7930' + cluster_network_subnet_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/cluster_networks/0717-da0df18c-7598-4633-a648-fdaac28a5573/subnets/0717-7931845c-65c4-4b0a-80cd-7d9c1a6d7930' + ) cluster_network_subnet_reference_model['id'] = '0717-7931845c-65c4-4b0a-80cd-7d9c1a6d7930' cluster_network_subnet_reference_model['name'] = 'my-cluster-network-subnet' cluster_network_subnet_reference_model['resource_type'] = 'cluster_network_subnet' cluster_network_interface_reference_model = {} # ClusterNetworkInterfaceReference cluster_network_interface_reference_model['deleted'] = deleted_model - cluster_network_interface_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/cluster_networks/0717-da0df18c-7598-4633-a648-fdaac28a5573/interfaces/0717-ffc092f7-5d02-4b93-ab69-26860529b9fb' + cluster_network_interface_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/cluster_networks/0717-da0df18c-7598-4633-a648-fdaac28a5573/interfaces/0717-ffc092f7-5d02-4b93-ab69-26860529b9fb' + ) cluster_network_interface_reference_model['id'] = '0717-ffc092f7-5d02-4b93-ab69-26860529b9fb' cluster_network_interface_reference_model['name'] = 'my-cluster-network-interface' cluster_network_interface_reference_model['primary_ip'] = cluster_network_subnet_reserved_ip_reference_model cluster_network_interface_reference_model['resource_type'] = 'cluster_network_interface' cluster_network_interface_reference_model['subnet'] = cluster_network_subnet_reference_model - instance_cluster_network_attachment_lifecycle_reason_model = {} # InstanceClusterNetworkAttachmentLifecycleReason + instance_cluster_network_attachment_lifecycle_reason_model = ( + {} + ) # InstanceClusterNetworkAttachmentLifecycleReason instance_cluster_network_attachment_lifecycle_reason_model['code'] = 'resource_suspended_by_provider' - instance_cluster_network_attachment_lifecycle_reason_model['message'] = 'The resource has been suspended. Contact IBM support with the CRN for next steps.' - instance_cluster_network_attachment_lifecycle_reason_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#resource-suspension' + instance_cluster_network_attachment_lifecycle_reason_model['message'] = ( + 'The resource has been suspended. Contact IBM support with the CRN for next steps.' + ) + instance_cluster_network_attachment_lifecycle_reason_model['more_info'] = ( + 'https://cloud.ibm.com/apidocs/vpc#resource-suspension' + ) # Construct a json representation of a InstanceClusterNetworkAttachment model instance_cluster_network_attachment_model_json = {} instance_cluster_network_attachment_model_json['before'] = instance_cluster_network_attachment_before_model - instance_cluster_network_attachment_model_json['cluster_network_interface'] = cluster_network_interface_reference_model - instance_cluster_network_attachment_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/cluster_network_attachments/0717-fb880975-db45-4459-8548-64e3995ac213' + instance_cluster_network_attachment_model_json['cluster_network_interface'] = ( + cluster_network_interface_reference_model + ) + instance_cluster_network_attachment_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/cluster_network_attachments/0717-fb880975-db45-4459-8548-64e3995ac213' + ) instance_cluster_network_attachment_model_json['id'] = '0717-fb880975-db45-4459-8548-64e3995ac213' - instance_cluster_network_attachment_model_json['lifecycle_reasons'] = [instance_cluster_network_attachment_lifecycle_reason_model] + instance_cluster_network_attachment_model_json['lifecycle_reasons'] = [ + instance_cluster_network_attachment_lifecycle_reason_model + ] instance_cluster_network_attachment_model_json['lifecycle_state'] = 'stable' instance_cluster_network_attachment_model_json['name'] = 'my-instance-network-attachment' instance_cluster_network_attachment_model_json['resource_type'] = 'instance_cluster_network_attachment' # Construct a model instance of InstanceClusterNetworkAttachment by calling from_dict on the json representation - instance_cluster_network_attachment_model = InstanceClusterNetworkAttachment.from_dict(instance_cluster_network_attachment_model_json) + instance_cluster_network_attachment_model = InstanceClusterNetworkAttachment.from_dict( + instance_cluster_network_attachment_model_json + ) assert instance_cluster_network_attachment_model != False # Construct a model instance of InstanceClusterNetworkAttachment by calling from_dict on the json representation - instance_cluster_network_attachment_model_dict = InstanceClusterNetworkAttachment.from_dict(instance_cluster_network_attachment_model_json).__dict__ - instance_cluster_network_attachment_model2 = InstanceClusterNetworkAttachment(**instance_cluster_network_attachment_model_dict) + instance_cluster_network_attachment_model_dict = InstanceClusterNetworkAttachment.from_dict( + instance_cluster_network_attachment_model_json + ).__dict__ + instance_cluster_network_attachment_model2 = InstanceClusterNetworkAttachment( + **instance_cluster_network_attachment_model_dict + ) # Verify the model instances are equivalent assert instance_cluster_network_attachment_model == instance_cluster_network_attachment_model2 @@ -62284,25 +64358,38 @@ def test_instance_cluster_network_attachment_before_serialization(self): # Construct a json representation of a InstanceClusterNetworkAttachmentBefore model instance_cluster_network_attachment_before_model_json = {} - instance_cluster_network_attachment_before_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/cluster_network_attachments/0717-fb880975-db45-4459-8548-64e3995ac213' + instance_cluster_network_attachment_before_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/cluster_network_attachments/0717-fb880975-db45-4459-8548-64e3995ac213' + ) instance_cluster_network_attachment_before_model_json['id'] = '0717-fb880975-db45-4459-8548-64e3995ac213' instance_cluster_network_attachment_before_model_json['name'] = 'my-instance-network-attachment' instance_cluster_network_attachment_before_model_json['resource_type'] = 'instance_cluster_network_attachment' # Construct a model instance of InstanceClusterNetworkAttachmentBefore by calling from_dict on the json representation - instance_cluster_network_attachment_before_model = InstanceClusterNetworkAttachmentBefore.from_dict(instance_cluster_network_attachment_before_model_json) + instance_cluster_network_attachment_before_model = InstanceClusterNetworkAttachmentBefore.from_dict( + instance_cluster_network_attachment_before_model_json + ) assert instance_cluster_network_attachment_before_model != False # Construct a model instance of InstanceClusterNetworkAttachmentBefore by calling from_dict on the json representation - instance_cluster_network_attachment_before_model_dict = InstanceClusterNetworkAttachmentBefore.from_dict(instance_cluster_network_attachment_before_model_json).__dict__ - instance_cluster_network_attachment_before_model2 = InstanceClusterNetworkAttachmentBefore(**instance_cluster_network_attachment_before_model_dict) + instance_cluster_network_attachment_before_model_dict = InstanceClusterNetworkAttachmentBefore.from_dict( + instance_cluster_network_attachment_before_model_json + ).__dict__ + instance_cluster_network_attachment_before_model2 = InstanceClusterNetworkAttachmentBefore( + **instance_cluster_network_attachment_before_model_dict + ) # Verify the model instances are equivalent assert instance_cluster_network_attachment_before_model == instance_cluster_network_attachment_before_model2 # Convert model instance back to dict and verify no loss of data - instance_cluster_network_attachment_before_model_json2 = instance_cluster_network_attachment_before_model.to_dict() - assert instance_cluster_network_attachment_before_model_json2 == instance_cluster_network_attachment_before_model_json + instance_cluster_network_attachment_before_model_json2 = ( + instance_cluster_network_attachment_before_model.to_dict() + ) + assert ( + instance_cluster_network_attachment_before_model_json2 + == instance_cluster_network_attachment_before_model_json + ) class TestModel_InstanceClusterNetworkAttachmentCollection: @@ -62318,7 +64405,9 @@ def test_instance_cluster_network_attachment_collection_serialization(self): # Construct dict forms of any model objects needed in order to build this model. instance_cluster_network_attachment_before_model = {} # InstanceClusterNetworkAttachmentBefore - instance_cluster_network_attachment_before_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/cluster_network_attachments/0717-a69563fa-0415-4d6e-aeb3-a3f14654bf90' + instance_cluster_network_attachment_before_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/cluster_network_attachments/0717-a69563fa-0415-4d6e-aeb3-a3f14654bf90' + ) instance_cluster_network_attachment_before_model['id'] = '0717-a69563fa-0415-4d6e-aeb3-a3f14654bf90' instance_cluster_network_attachment_before_model['name'] = 'other-instance-cluster-network-attachment' instance_cluster_network_attachment_before_model['resource_type'] = 'instance_cluster_network_attachment' @@ -62329,67 +64418,105 @@ def test_instance_cluster_network_attachment_collection_serialization(self): cluster_network_subnet_reserved_ip_reference_model = {} # ClusterNetworkSubnetReservedIPReference cluster_network_subnet_reserved_ip_reference_model['address'] = '10.1.0.6' cluster_network_subnet_reserved_ip_reference_model['deleted'] = deleted_model - cluster_network_subnet_reserved_ip_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/cluster_networks/0717-da0df18c-7598-4633-a648-fdaac28a5573/subnets/0717-7931845c-65c4-4b0a-80cd-7d9c1a6d7930/reserved_ips/63341ffa-1037-4b50-be40-676e3e9ac0c7' + cluster_network_subnet_reserved_ip_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/cluster_networks/0717-da0df18c-7598-4633-a648-fdaac28a5573/subnets/0717-7931845c-65c4-4b0a-80cd-7d9c1a6d7930/reserved_ips/63341ffa-1037-4b50-be40-676e3e9ac0c7' + ) cluster_network_subnet_reserved_ip_reference_model['id'] = '63341ffa-1037-4b50-be40-676e3e9ac0c7' cluster_network_subnet_reserved_ip_reference_model['name'] = 'my-cluster-network-subnet-reserved-ip' cluster_network_subnet_reserved_ip_reference_model['resource_type'] = 'cluster_network_subnet_reserved_ip' cluster_network_subnet_reference_model = {} # ClusterNetworkSubnetReference cluster_network_subnet_reference_model['deleted'] = deleted_model - cluster_network_subnet_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/cluster_networks/0717-da0df18c-7598-4633-a648-fdaac28a5573/subnets/0717-7931845c-65c4-4b0a-80cd-7d9c1a6d7930' + cluster_network_subnet_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/cluster_networks/0717-da0df18c-7598-4633-a648-fdaac28a5573/subnets/0717-7931845c-65c4-4b0a-80cd-7d9c1a6d7930' + ) cluster_network_subnet_reference_model['id'] = '0717-7931845c-65c4-4b0a-80cd-7d9c1a6d7930' cluster_network_subnet_reference_model['name'] = 'my-cluster-network-subnet' cluster_network_subnet_reference_model['resource_type'] = 'cluster_network_subnet' cluster_network_interface_reference_model = {} # ClusterNetworkInterfaceReference cluster_network_interface_reference_model['deleted'] = deleted_model - cluster_network_interface_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/cluster_networks/0717-da0df18c-7598-4633-a648-fdaac28a5573/interfaces/0717-ffc092f7-5d02-4b93-ab69-26860529b9fb' + cluster_network_interface_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/cluster_networks/0717-da0df18c-7598-4633-a648-fdaac28a5573/interfaces/0717-ffc092f7-5d02-4b93-ab69-26860529b9fb' + ) cluster_network_interface_reference_model['id'] = '0717-ffc092f7-5d02-4b93-ab69-26860529b9fb' cluster_network_interface_reference_model['name'] = 'my-cluster-network-interface' cluster_network_interface_reference_model['primary_ip'] = cluster_network_subnet_reserved_ip_reference_model cluster_network_interface_reference_model['resource_type'] = 'cluster_network_interface' cluster_network_interface_reference_model['subnet'] = cluster_network_subnet_reference_model - instance_cluster_network_attachment_lifecycle_reason_model = {} # InstanceClusterNetworkAttachmentLifecycleReason + instance_cluster_network_attachment_lifecycle_reason_model = ( + {} + ) # InstanceClusterNetworkAttachmentLifecycleReason instance_cluster_network_attachment_lifecycle_reason_model['code'] = 'resource_suspended_by_provider' - instance_cluster_network_attachment_lifecycle_reason_model['message'] = 'The resource has been suspended. Contact IBM support with the CRN for next steps.' - instance_cluster_network_attachment_lifecycle_reason_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#resource-suspension' + instance_cluster_network_attachment_lifecycle_reason_model['message'] = ( + 'The resource has been suspended. Contact IBM support with the CRN for next steps.' + ) + instance_cluster_network_attachment_lifecycle_reason_model['more_info'] = ( + 'https://cloud.ibm.com/apidocs/vpc#resource-suspension' + ) instance_cluster_network_attachment_model = {} # InstanceClusterNetworkAttachment instance_cluster_network_attachment_model['before'] = instance_cluster_network_attachment_before_model - instance_cluster_network_attachment_model['cluster_network_interface'] = cluster_network_interface_reference_model - instance_cluster_network_attachment_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/cluster_network_attachments/0717-fb880975-db45-4459-8548-64e3995ac213' + instance_cluster_network_attachment_model['cluster_network_interface'] = ( + cluster_network_interface_reference_model + ) + instance_cluster_network_attachment_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/cluster_network_attachments/0717-fb880975-db45-4459-8548-64e3995ac213' + ) instance_cluster_network_attachment_model['id'] = '0717-fb880975-db45-4459-8548-64e3995ac213' - instance_cluster_network_attachment_model['lifecycle_reasons'] = [instance_cluster_network_attachment_lifecycle_reason_model] + instance_cluster_network_attachment_model['lifecycle_reasons'] = [ + instance_cluster_network_attachment_lifecycle_reason_model + ] instance_cluster_network_attachment_model['lifecycle_state'] = 'stable' instance_cluster_network_attachment_model['name'] = 'my-instance-cluster-network-attachment' instance_cluster_network_attachment_model['resource_type'] = 'instance_cluster_network_attachment' page_link_model = {} # PageLink - page_link_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/cluster_network_attachments?limit=20' + page_link_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/cluster_network_attachments?limit=20' + ) # Construct a json representation of a InstanceClusterNetworkAttachmentCollection model instance_cluster_network_attachment_collection_model_json = {} - instance_cluster_network_attachment_collection_model_json['cluster_network_attachments'] = [instance_cluster_network_attachment_model] + instance_cluster_network_attachment_collection_model_json['cluster_network_attachments'] = [ + instance_cluster_network_attachment_model + ] instance_cluster_network_attachment_collection_model_json['first'] = page_link_model instance_cluster_network_attachment_collection_model_json['limit'] = 20 instance_cluster_network_attachment_collection_model_json['next'] = page_link_model instance_cluster_network_attachment_collection_model_json['total_count'] = 132 # Construct a model instance of InstanceClusterNetworkAttachmentCollection by calling from_dict on the json representation - instance_cluster_network_attachment_collection_model = InstanceClusterNetworkAttachmentCollection.from_dict(instance_cluster_network_attachment_collection_model_json) + instance_cluster_network_attachment_collection_model = InstanceClusterNetworkAttachmentCollection.from_dict( + instance_cluster_network_attachment_collection_model_json + ) assert instance_cluster_network_attachment_collection_model != False # Construct a model instance of InstanceClusterNetworkAttachmentCollection by calling from_dict on the json representation - instance_cluster_network_attachment_collection_model_dict = InstanceClusterNetworkAttachmentCollection.from_dict(instance_cluster_network_attachment_collection_model_json).__dict__ - instance_cluster_network_attachment_collection_model2 = InstanceClusterNetworkAttachmentCollection(**instance_cluster_network_attachment_collection_model_dict) + instance_cluster_network_attachment_collection_model_dict = ( + InstanceClusterNetworkAttachmentCollection.from_dict( + instance_cluster_network_attachment_collection_model_json + ).__dict__ + ) + instance_cluster_network_attachment_collection_model2 = InstanceClusterNetworkAttachmentCollection( + **instance_cluster_network_attachment_collection_model_dict + ) # Verify the model instances are equivalent - assert instance_cluster_network_attachment_collection_model == instance_cluster_network_attachment_collection_model2 + assert ( + instance_cluster_network_attachment_collection_model + == instance_cluster_network_attachment_collection_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_cluster_network_attachment_collection_model_json2 = instance_cluster_network_attachment_collection_model.to_dict() - assert instance_cluster_network_attachment_collection_model_json2 == instance_cluster_network_attachment_collection_model_json + instance_cluster_network_attachment_collection_model_json2 = ( + instance_cluster_network_attachment_collection_model.to_dict() + ) + assert ( + instance_cluster_network_attachment_collection_model_json2 + == instance_cluster_network_attachment_collection_model_json + ) class TestModel_InstanceClusterNetworkAttachmentLifecycleReason: @@ -62405,23 +64532,45 @@ def test_instance_cluster_network_attachment_lifecycle_reason_serialization(self # Construct a json representation of a InstanceClusterNetworkAttachmentLifecycleReason model instance_cluster_network_attachment_lifecycle_reason_model_json = {} instance_cluster_network_attachment_lifecycle_reason_model_json['code'] = 'resource_suspended_by_provider' - instance_cluster_network_attachment_lifecycle_reason_model_json['message'] = 'The resource has been suspended. Contact IBM support with the CRN for next steps.' - instance_cluster_network_attachment_lifecycle_reason_model_json['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#resource-suspension' + instance_cluster_network_attachment_lifecycle_reason_model_json['message'] = ( + 'The resource has been suspended. Contact IBM support with the CRN for next steps.' + ) + instance_cluster_network_attachment_lifecycle_reason_model_json['more_info'] = ( + 'https://cloud.ibm.com/apidocs/vpc#resource-suspension' + ) # Construct a model instance of InstanceClusterNetworkAttachmentLifecycleReason by calling from_dict on the json representation - instance_cluster_network_attachment_lifecycle_reason_model = InstanceClusterNetworkAttachmentLifecycleReason.from_dict(instance_cluster_network_attachment_lifecycle_reason_model_json) + instance_cluster_network_attachment_lifecycle_reason_model = ( + InstanceClusterNetworkAttachmentLifecycleReason.from_dict( + instance_cluster_network_attachment_lifecycle_reason_model_json + ) + ) assert instance_cluster_network_attachment_lifecycle_reason_model != False # Construct a model instance of InstanceClusterNetworkAttachmentLifecycleReason by calling from_dict on the json representation - instance_cluster_network_attachment_lifecycle_reason_model_dict = InstanceClusterNetworkAttachmentLifecycleReason.from_dict(instance_cluster_network_attachment_lifecycle_reason_model_json).__dict__ - instance_cluster_network_attachment_lifecycle_reason_model2 = InstanceClusterNetworkAttachmentLifecycleReason(**instance_cluster_network_attachment_lifecycle_reason_model_dict) + instance_cluster_network_attachment_lifecycle_reason_model_dict = ( + InstanceClusterNetworkAttachmentLifecycleReason.from_dict( + instance_cluster_network_attachment_lifecycle_reason_model_json + ).__dict__ + ) + instance_cluster_network_attachment_lifecycle_reason_model2 = InstanceClusterNetworkAttachmentLifecycleReason( + **instance_cluster_network_attachment_lifecycle_reason_model_dict + ) # Verify the model instances are equivalent - assert instance_cluster_network_attachment_lifecycle_reason_model == instance_cluster_network_attachment_lifecycle_reason_model2 + assert ( + instance_cluster_network_attachment_lifecycle_reason_model + == instance_cluster_network_attachment_lifecycle_reason_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_cluster_network_attachment_lifecycle_reason_model_json2 = instance_cluster_network_attachment_lifecycle_reason_model.to_dict() - assert instance_cluster_network_attachment_lifecycle_reason_model_json2 == instance_cluster_network_attachment_lifecycle_reason_model_json + instance_cluster_network_attachment_lifecycle_reason_model_json2 = ( + instance_cluster_network_attachment_lifecycle_reason_model.to_dict() + ) + assert ( + instance_cluster_network_attachment_lifecycle_reason_model_json2 + == instance_cluster_network_attachment_lifecycle_reason_model_json + ) class TestModel_InstanceClusterNetworkAttachmentPatch: @@ -62439,19 +64588,30 @@ def test_instance_cluster_network_attachment_patch_serialization(self): instance_cluster_network_attachment_patch_model_json['name'] = 'my-instance-network-attachment-updated' # Construct a model instance of InstanceClusterNetworkAttachmentPatch by calling from_dict on the json representation - instance_cluster_network_attachment_patch_model = InstanceClusterNetworkAttachmentPatch.from_dict(instance_cluster_network_attachment_patch_model_json) + instance_cluster_network_attachment_patch_model = InstanceClusterNetworkAttachmentPatch.from_dict( + instance_cluster_network_attachment_patch_model_json + ) assert instance_cluster_network_attachment_patch_model != False # Construct a model instance of InstanceClusterNetworkAttachmentPatch by calling from_dict on the json representation - instance_cluster_network_attachment_patch_model_dict = InstanceClusterNetworkAttachmentPatch.from_dict(instance_cluster_network_attachment_patch_model_json).__dict__ - instance_cluster_network_attachment_patch_model2 = InstanceClusterNetworkAttachmentPatch(**instance_cluster_network_attachment_patch_model_dict) + instance_cluster_network_attachment_patch_model_dict = InstanceClusterNetworkAttachmentPatch.from_dict( + instance_cluster_network_attachment_patch_model_json + ).__dict__ + instance_cluster_network_attachment_patch_model2 = InstanceClusterNetworkAttachmentPatch( + **instance_cluster_network_attachment_patch_model_dict + ) # Verify the model instances are equivalent assert instance_cluster_network_attachment_patch_model == instance_cluster_network_attachment_patch_model2 # Convert model instance back to dict and verify no loss of data - instance_cluster_network_attachment_patch_model_json2 = instance_cluster_network_attachment_patch_model.to_dict() - assert instance_cluster_network_attachment_patch_model_json2 == instance_cluster_network_attachment_patch_model_json + instance_cluster_network_attachment_patch_model_json2 = ( + instance_cluster_network_attachment_patch_model.to_dict() + ) + assert ( + instance_cluster_network_attachment_patch_model_json2 + == instance_cluster_network_attachment_patch_model_json + ) class TestModel_InstanceClusterNetworkAttachmentPrototypeInstanceContext: @@ -62466,7 +64626,9 @@ def test_instance_cluster_network_attachment_prototype_instance_context_serializ # Construct dict forms of any model objects needed in order to build this model. - cluster_network_interface_primary_ip_prototype_model = {} # ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPPrototypeClusterNetworkInterfacePrimaryIPContext + cluster_network_interface_primary_ip_prototype_model = ( + {} + ) # ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPPrototypeClusterNetworkInterfacePrimaryIPContext cluster_network_interface_primary_ip_prototype_model['address'] = '10.0.0.5' cluster_network_interface_primary_ip_prototype_model['auto_delete'] = False cluster_network_interface_primary_ip_prototype_model['name'] = 'my-cluster-network-subnet-reserved-ip' @@ -62474,31 +64636,63 @@ def test_instance_cluster_network_attachment_prototype_instance_context_serializ cluster_network_subnet_identity_model = {} # ClusterNetworkSubnetIdentityById cluster_network_subnet_identity_model['id'] = '0717-7931845c-65c4-4b0a-80cd-7d9c1a6d7930' - instance_cluster_network_attachment_prototype_cluster_network_interface_model = {} # InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment + instance_cluster_network_attachment_prototype_cluster_network_interface_model = ( + {} + ) # InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment instance_cluster_network_attachment_prototype_cluster_network_interface_model['auto_delete'] = False - instance_cluster_network_attachment_prototype_cluster_network_interface_model['name'] = 'my-cluster-network-interface' - instance_cluster_network_attachment_prototype_cluster_network_interface_model['primary_ip'] = cluster_network_interface_primary_ip_prototype_model - instance_cluster_network_attachment_prototype_cluster_network_interface_model['subnet'] = cluster_network_subnet_identity_model + instance_cluster_network_attachment_prototype_cluster_network_interface_model['name'] = ( + 'my-cluster-network-interface' + ) + instance_cluster_network_attachment_prototype_cluster_network_interface_model['primary_ip'] = ( + cluster_network_interface_primary_ip_prototype_model + ) + instance_cluster_network_attachment_prototype_cluster_network_interface_model['subnet'] = ( + cluster_network_subnet_identity_model + ) # Construct a json representation of a InstanceClusterNetworkAttachmentPrototypeInstanceContext model instance_cluster_network_attachment_prototype_instance_context_model_json = {} - instance_cluster_network_attachment_prototype_instance_context_model_json['cluster_network_interface'] = instance_cluster_network_attachment_prototype_cluster_network_interface_model - instance_cluster_network_attachment_prototype_instance_context_model_json['name'] = 'my-instance-network-attachment' + instance_cluster_network_attachment_prototype_instance_context_model_json['cluster_network_interface'] = ( + instance_cluster_network_attachment_prototype_cluster_network_interface_model + ) + instance_cluster_network_attachment_prototype_instance_context_model_json['name'] = ( + 'my-instance-network-attachment' + ) # Construct a model instance of InstanceClusterNetworkAttachmentPrototypeInstanceContext by calling from_dict on the json representation - instance_cluster_network_attachment_prototype_instance_context_model = InstanceClusterNetworkAttachmentPrototypeInstanceContext.from_dict(instance_cluster_network_attachment_prototype_instance_context_model_json) + instance_cluster_network_attachment_prototype_instance_context_model = ( + InstanceClusterNetworkAttachmentPrototypeInstanceContext.from_dict( + instance_cluster_network_attachment_prototype_instance_context_model_json + ) + ) assert instance_cluster_network_attachment_prototype_instance_context_model != False # Construct a model instance of InstanceClusterNetworkAttachmentPrototypeInstanceContext by calling from_dict on the json representation - instance_cluster_network_attachment_prototype_instance_context_model_dict = InstanceClusterNetworkAttachmentPrototypeInstanceContext.from_dict(instance_cluster_network_attachment_prototype_instance_context_model_json).__dict__ - instance_cluster_network_attachment_prototype_instance_context_model2 = InstanceClusterNetworkAttachmentPrototypeInstanceContext(**instance_cluster_network_attachment_prototype_instance_context_model_dict) + instance_cluster_network_attachment_prototype_instance_context_model_dict = ( + InstanceClusterNetworkAttachmentPrototypeInstanceContext.from_dict( + instance_cluster_network_attachment_prototype_instance_context_model_json + ).__dict__ + ) + instance_cluster_network_attachment_prototype_instance_context_model2 = ( + InstanceClusterNetworkAttachmentPrototypeInstanceContext( + **instance_cluster_network_attachment_prototype_instance_context_model_dict + ) + ) # Verify the model instances are equivalent - assert instance_cluster_network_attachment_prototype_instance_context_model == instance_cluster_network_attachment_prototype_instance_context_model2 + assert ( + instance_cluster_network_attachment_prototype_instance_context_model + == instance_cluster_network_attachment_prototype_instance_context_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_cluster_network_attachment_prototype_instance_context_model_json2 = instance_cluster_network_attachment_prototype_instance_context_model.to_dict() - assert instance_cluster_network_attachment_prototype_instance_context_model_json2 == instance_cluster_network_attachment_prototype_instance_context_model_json + instance_cluster_network_attachment_prototype_instance_context_model_json2 = ( + instance_cluster_network_attachment_prototype_instance_context_model.to_dict() + ) + assert ( + instance_cluster_network_attachment_prototype_instance_context_model_json2 + == instance_cluster_network_attachment_prototype_instance_context_model_json + ) class TestModel_InstanceClusterNetworkAttachmentReference: @@ -62513,25 +64707,42 @@ def test_instance_cluster_network_attachment_reference_serialization(self): # Construct a json representation of a InstanceClusterNetworkAttachmentReference model instance_cluster_network_attachment_reference_model_json = {} - instance_cluster_network_attachment_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/cluster_network_attachments/0717-fb880975-db45-4459-8548-64e3995ac213' + instance_cluster_network_attachment_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/cluster_network_attachments/0717-fb880975-db45-4459-8548-64e3995ac213' + ) instance_cluster_network_attachment_reference_model_json['id'] = '0717-fb880975-db45-4459-8548-64e3995ac213' instance_cluster_network_attachment_reference_model_json['name'] = 'my-instance-network-attachment' - instance_cluster_network_attachment_reference_model_json['resource_type'] = 'instance_cluster_network_attachment' + instance_cluster_network_attachment_reference_model_json['resource_type'] = ( + 'instance_cluster_network_attachment' + ) # Construct a model instance of InstanceClusterNetworkAttachmentReference by calling from_dict on the json representation - instance_cluster_network_attachment_reference_model = InstanceClusterNetworkAttachmentReference.from_dict(instance_cluster_network_attachment_reference_model_json) + instance_cluster_network_attachment_reference_model = InstanceClusterNetworkAttachmentReference.from_dict( + instance_cluster_network_attachment_reference_model_json + ) assert instance_cluster_network_attachment_reference_model != False # Construct a model instance of InstanceClusterNetworkAttachmentReference by calling from_dict on the json representation - instance_cluster_network_attachment_reference_model_dict = InstanceClusterNetworkAttachmentReference.from_dict(instance_cluster_network_attachment_reference_model_json).__dict__ - instance_cluster_network_attachment_reference_model2 = InstanceClusterNetworkAttachmentReference(**instance_cluster_network_attachment_reference_model_dict) + instance_cluster_network_attachment_reference_model_dict = InstanceClusterNetworkAttachmentReference.from_dict( + instance_cluster_network_attachment_reference_model_json + ).__dict__ + instance_cluster_network_attachment_reference_model2 = InstanceClusterNetworkAttachmentReference( + **instance_cluster_network_attachment_reference_model_dict + ) # Verify the model instances are equivalent - assert instance_cluster_network_attachment_reference_model == instance_cluster_network_attachment_reference_model2 + assert ( + instance_cluster_network_attachment_reference_model == instance_cluster_network_attachment_reference_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_cluster_network_attachment_reference_model_json2 = instance_cluster_network_attachment_reference_model.to_dict() - assert instance_cluster_network_attachment_reference_model_json2 == instance_cluster_network_attachment_reference_model_json + instance_cluster_network_attachment_reference_model_json2 = ( + instance_cluster_network_attachment_reference_model.to_dict() + ) + assert ( + instance_cluster_network_attachment_reference_model_json2 + == instance_cluster_network_attachment_reference_model_json + ) class TestModel_InstanceCollection: @@ -62559,9 +64770,13 @@ def test_instance_collection_serialization(self): volume_attachment_device_model['id'] = '0717-80b3e36e-41f4-40e9-bd56-beae81792a68-679qb' volume_reference_volume_attachment_context_model = {} # VolumeReferenceVolumeAttachmentContext - volume_reference_volume_attachment_context_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::volume:r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' + volume_reference_volume_attachment_context_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::volume:r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' + ) volume_reference_volume_attachment_context_model['deleted'] = deleted_model - volume_reference_volume_attachment_context_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/volumes/r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' + volume_reference_volume_attachment_context_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/volumes/r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' + ) volume_reference_volume_attachment_context_model['id'] = 'r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' volume_reference_volume_attachment_context_model['name'] = 'my-volume' volume_reference_volume_attachment_context_model['resource_type'] = 'volume' @@ -62569,47 +64784,65 @@ def test_instance_collection_serialization(self): volume_attachment_reference_instance_context_model = {} # VolumeAttachmentReferenceInstanceContext volume_attachment_reference_instance_context_model['deleted'] = deleted_model volume_attachment_reference_instance_context_model['device'] = volume_attachment_device_model - volume_attachment_reference_instance_context_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/volume_attachments/0717-82cbf856-9cbb-45fb-b62f-d7bcef32399a' + volume_attachment_reference_instance_context_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/volume_attachments/0717-82cbf856-9cbb-45fb-b62f-d7bcef32399a' + ) volume_attachment_reference_instance_context_model['id'] = '0717-82cbf856-9cbb-45fb-b62f-d7bcef32399a' volume_attachment_reference_instance_context_model['name'] = 'my-volume-attachment' volume_attachment_reference_instance_context_model['volume'] = volume_reference_volume_attachment_context_model catalog_offering_version_plan_reference_model = {} # CatalogOfferingVersionPlanReference - catalog_offering_version_plan_reference_model['crn'] = 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:51c9e0db-2911-45a6-adb0-ac5332d27cf2:plan:sw.51c9e0db-2911-45a6-adb0-ac5332d27cf2.772c0dbe-aa62-482e-adbe-a3fc20101e0e' + catalog_offering_version_plan_reference_model['crn'] = ( + 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:51c9e0db-2911-45a6-adb0-ac5332d27cf2:plan:sw.51c9e0db-2911-45a6-adb0-ac5332d27cf2.772c0dbe-aa62-482e-adbe-a3fc20101e0e' + ) catalog_offering_version_plan_reference_model['deleted'] = deleted_model catalog_offering_version_reference_model = {} # CatalogOfferingVersionReference - catalog_offering_version_reference_model['crn'] = 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:version:00111601-0ec5-41ac-b142-96d1e64e6442/ec66bec2-6a33-42d6-9323-26dd4dc8875d' + catalog_offering_version_reference_model['crn'] = ( + 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:version:00111601-0ec5-41ac-b142-96d1e64e6442/ec66bec2-6a33-42d6-9323-26dd4dc8875d' + ) instance_catalog_offering_model = {} # InstanceCatalogOffering instance_catalog_offering_model['plan'] = catalog_offering_version_plan_reference_model instance_catalog_offering_model['version'] = catalog_offering_version_reference_model cluster_network_reference_model = {} # ClusterNetworkReference - cluster_network_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::cluster-network:0717-da0df18c-7598-4633-a648-fdaac28a5573' + cluster_network_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::cluster-network:0717-da0df18c-7598-4633-a648-fdaac28a5573' + ) cluster_network_reference_model['deleted'] = deleted_model - cluster_network_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/cluster_networks/0717-da0df18c-7598-4633-a648-fdaac28a5573' + cluster_network_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/cluster_networks/0717-da0df18c-7598-4633-a648-fdaac28a5573' + ) cluster_network_reference_model['id'] = '0717-da0df18c-7598-4633-a648-fdaac28a5573' cluster_network_reference_model['name'] = 'my-cluster-network' cluster_network_reference_model['resource_type'] = 'cluster_network' instance_cluster_network_attachment_reference_model = {} # InstanceClusterNetworkAttachmentReference - instance_cluster_network_attachment_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/cluster_network_attachments/0717-fb880975-db45-4459-8548-64e3995ac213' + instance_cluster_network_attachment_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/cluster_network_attachments/0717-fb880975-db45-4459-8548-64e3995ac213' + ) instance_cluster_network_attachment_reference_model['id'] = '0717-fb880975-db45-4459-8548-64e3995ac213' instance_cluster_network_attachment_reference_model['name'] = 'my-instance-network-attachment' instance_cluster_network_attachment_reference_model['resource_type'] = 'instance_cluster_network_attachment' dedicated_host_reference_model = {} # DedicatedHostReference - dedicated_host_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host:0717-1e09281b-f177-46fb-baf1-bc152b2e391a' + dedicated_host_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host:0717-1e09281b-f177-46fb-baf1-bc152b2e391a' + ) dedicated_host_reference_model['deleted'] = deleted_model - dedicated_host_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/dedicated_hosts/0717-1e09281b-f177-46fb-baf1-bc152b2e391a' + dedicated_host_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/dedicated_hosts/0717-1e09281b-f177-46fb-baf1-bc152b2e391a' + ) dedicated_host_reference_model['id'] = '0717-1e09281b-f177-46fb-baf1-bc152b2e391a' dedicated_host_reference_model['name'] = 'my-dedicated-host' dedicated_host_reference_model['resource_type'] = 'dedicated_host' instance_disk_model = {} # InstanceDisk instance_disk_model['created_at'] = '2019-01-01T12:00:00Z' - instance_disk_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/disks/10c02d81-0ecb-4dc5-897d-28392913b81e' + instance_disk_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/disks/10c02d81-0ecb-4dc5-897d-28392913b81e' + ) instance_disk_model['id'] = '10c02d81-0ecb-4dc5-897d-28392913b81e' instance_disk_model['interface_type'] = 'nvme' instance_disk_model['name'] = 'my-instance-disk' @@ -62625,7 +64858,9 @@ def test_instance_collection_serialization(self): instance_health_reason_model = {} # InstanceHealthReason instance_health_reason_model['code'] = 'reservation_expired' instance_health_reason_model['message'] = 'The reservation cannot be used because it has expired.' - instance_health_reason_model['more_info'] = 'https://cloud.ibm.com/docs/vpc?topic=vpc-server-health-status-reasons' + instance_health_reason_model['more_info'] = ( + 'https://cloud.ibm.com/docs/vpc?topic=vpc-server-health-status-reasons' + ) account_reference_model = {} # AccountReference account_reference_model['id'] = 'bb1b52262f7441a586f49068482f1e60' @@ -62640,9 +64875,13 @@ def test_instance_collection_serialization(self): image_remote_model['region'] = region_reference_model image_reference_model = {} # ImageReference - image_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::image:r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8' + image_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::image:r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8' + ) image_reference_model['deleted'] = deleted_model - image_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/images/r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8' + image_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/images/r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8' + ) image_reference_model['id'] = 'r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8' image_reference_model['name'] = 'my-image' image_reference_model['remote'] = image_remote_model @@ -62650,7 +64889,9 @@ def test_instance_collection_serialization(self): instance_lifecycle_reason_model = {} # InstanceLifecycleReason instance_lifecycle_reason_model['code'] = 'resource_suspended_by_provider' - instance_lifecycle_reason_model['message'] = 'The resource has been suspended. Contact IBM support with the CRN for next steps.' + instance_lifecycle_reason_model['message'] = ( + 'The resource has been suspended. Contact IBM support with the CRN for next steps.' + ) instance_lifecycle_reason_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#resource-suspension' instance_metadata_service_model = {} # InstanceMetadataService @@ -62661,39 +64902,57 @@ def test_instance_collection_serialization(self): reserved_ip_reference_model = {} # ReservedIPReference reserved_ip_reference_model['address'] = '10.0.1.5' reserved_ip_reference_model['deleted'] = deleted_model - reserved_ip_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + reserved_ip_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + ) reserved_ip_reference_model['id'] = '0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' reserved_ip_reference_model['name'] = 'my-reserved-ip' reserved_ip_reference_model['resource_type'] = 'subnet_reserved_ip' subnet_reference_model = {} # SubnetReference - subnet_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['deleted'] = deleted_model - subnet_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['id'] = '0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' subnet_reference_model['name'] = 'my-subnet' subnet_reference_model['resource_type'] = 'subnet' - virtual_network_interface_reference_attachment_context_model = {} # VirtualNetworkInterfaceReferenceAttachmentContext - virtual_network_interface_reference_attachment_context_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::virtual-network-interface:0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' - virtual_network_interface_reference_attachment_context_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/virtual_network_interfaces/0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + virtual_network_interface_reference_attachment_context_model = ( + {} + ) # VirtualNetworkInterfaceReferenceAttachmentContext + virtual_network_interface_reference_attachment_context_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::virtual-network-interface:0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + ) + virtual_network_interface_reference_attachment_context_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/virtual_network_interfaces/0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + ) virtual_network_interface_reference_attachment_context_model['id'] = '0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' virtual_network_interface_reference_attachment_context_model['name'] = 'my-virtual-network-interface' virtual_network_interface_reference_attachment_context_model['resource_type'] = 'virtual_network_interface' instance_network_attachment_reference_model = {} # InstanceNetworkAttachmentReference instance_network_attachment_reference_model['deleted'] = deleted_model - instance_network_attachment_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/network_attachments/0717-d54eb633-98ea-459d-aa00-6a8e780175a7' + instance_network_attachment_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/network_attachments/0717-d54eb633-98ea-459d-aa00-6a8e780175a7' + ) instance_network_attachment_reference_model['id'] = '0717-d54eb633-98ea-459d-aa00-6a8e780175a7' instance_network_attachment_reference_model['name'] = 'my-instance-network-attachment' instance_network_attachment_reference_model['primary_ip'] = reserved_ip_reference_model instance_network_attachment_reference_model['resource_type'] = 'instance_network_attachment' instance_network_attachment_reference_model['subnet'] = subnet_reference_model - instance_network_attachment_reference_model['virtual_network_interface'] = virtual_network_interface_reference_attachment_context_model + instance_network_attachment_reference_model['virtual_network_interface'] = ( + virtual_network_interface_reference_attachment_context_model + ) network_interface_instance_context_reference_model = {} # NetworkInterfaceInstanceContextReference network_interface_instance_context_reference_model['deleted'] = deleted_model - network_interface_instance_context_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/network_interfaces/0717-d54eb633-98ea-459d-aa00-6a8e780175a7' + network_interface_instance_context_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/network_interfaces/0717-d54eb633-98ea-459d-aa00-6a8e780175a7' + ) network_interface_instance_context_reference_model['id'] = '0717-d54eb633-98ea-459d-aa00-6a8e780175a7' network_interface_instance_context_reference_model['name'] = 'my-instance-network-interface' network_interface_instance_context_reference_model['primary_ip'] = reserved_ip_reference_model @@ -62701,9 +64960,13 @@ def test_instance_collection_serialization(self): network_interface_instance_context_reference_model['subnet'] = subnet_reference_model instance_placement_target_model = {} # InstancePlacementTargetDedicatedHostGroupReference - instance_placement_target_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host:0717-1e09281b-f177-46fb-baf1-bc152b2e391a' + instance_placement_target_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host:0717-1e09281b-f177-46fb-baf1-bc152b2e391a' + ) instance_placement_target_model['deleted'] = deleted_model - instance_placement_target_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/dedicated_hosts/0717-1e09281b-f177-46fb-baf1-bc152b2e391a' + instance_placement_target_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/dedicated_hosts/0717-1e09281b-f177-46fb-baf1-bc152b2e391a' + ) instance_placement_target_model['id'] = '0717-1e09281b-f177-46fb-baf1-bc152b2e391a' instance_placement_target_model['name'] = 'my-dedicated-host' instance_placement_target_model['resource_type'] = 'dedicated_host' @@ -62714,9 +64977,13 @@ def test_instance_collection_serialization(self): instance_profile_reference_model['resource_type'] = 'instance_profile' reservation_reference_model = {} # ReservationReference - reservation_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::reservation:0717-ba49df72-37b8-43ac-98da-f8e029de0e63' + reservation_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::reservation:0717-ba49df72-37b8-43ac-98da-f8e029de0e63' + ) reservation_reference_model['deleted'] = deleted_model - reservation_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/reservations/0717-ba49df72-37b8-43ac-98da-f8e029de0e63' + reservation_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/reservations/0717-ba49df72-37b8-43ac-98da-f8e029de0e63' + ) reservation_reference_model['id'] = '0717-ba49df72-37b8-43ac-98da-f8e029de0e63' reservation_reference_model['name'] = 'my-reservation' reservation_reference_model['resource_type'] = 'reservation' @@ -62726,14 +64993,20 @@ def test_instance_collection_serialization(self): instance_reservation_affinity_model['pool'] = [reservation_reference_model] resource_group_reference_model = {} # ResourceGroupReference - resource_group_reference_model['href'] = 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + resource_group_reference_model['href'] = ( + 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + ) resource_group_reference_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' resource_group_reference_model['name'] = 'Default' instance_status_reason_model = {} # InstanceStatusReason instance_status_reason_model['code'] = 'cannot_start_storage' - instance_status_reason_model['message'] = 'The virtual server instance is unusable because the encryption key for the boot volume\nhas been deleted' - instance_status_reason_model['more_info'] = 'https://cloud.ibm.com/docs/key-protect?topic=key-protect-restore-keys' + instance_status_reason_model['message'] = ( + 'The virtual server instance is unusable because the encryption key for the boot volume\nhas been deleted' + ) + instance_status_reason_model['more_info'] = ( + 'https://cloud.ibm.com/docs/key-protect?topic=key-protect-restore-keys' + ) instance_vcpu_model = {} # InstanceVCPU instance_vcpu_model['architecture'] = 'amd64' @@ -62741,9 +65014,13 @@ def test_instance_collection_serialization(self): instance_vcpu_model['manufacturer'] = 'intel' vpc_reference_model = {} # VPCReference - vpc_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_model['deleted'] = deleted_model - vpc_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_model['id'] = 'r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' vpc_reference_model['name'] = 'my-vpc' vpc_reference_model['resource_type'] = 'vpc' @@ -62761,14 +65038,18 @@ def test_instance_collection_serialization(self): instance_model['cluster_network_attachments'] = [instance_cluster_network_attachment_reference_model] instance_model['confidential_compute_mode'] = 'sgx' instance_model['created_at'] = '2020-03-26T16:11:57Z' - instance_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::instance:0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' + instance_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::instance:0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' + ) instance_model['dedicated_host'] = dedicated_host_reference_model instance_model['disks'] = [instance_disk_model] instance_model['enable_secure_boot'] = True instance_model['gpu'] = instance_gpu_model instance_model['health_reasons'] = [instance_health_reason_model] instance_model['health_state'] = 'ok' - instance_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' + instance_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' + ) instance_model['id'] = '0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' instance_model['image'] = image_reference_model instance_model['lifecycle_reasons'] = [instance_lifecycle_reason_model] @@ -62833,19 +65114,27 @@ def test_instance_console_access_token_serialization(self): # Construct a json representation of a InstanceConsoleAccessToken model instance_console_access_token_model_json = {} - instance_console_access_token_model_json['access_token'] = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhY2NvdW50IjoiYWEyNDMyYjFmYTRkNGFjZTg5MWU5YjgwZmMxMDRlMzQiLCJzZWNyZXQiOiJRVzRnWlhoaGJYQnNaU0J6WldOeVpYUUsiLCJleHAiOjE3MjYwNzU1OTR9.UFDVzzGJ54Go9Z4jgyPSLG49zNx-AjHTQrJA6ee8KLI' + instance_console_access_token_model_json['access_token'] = ( + 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhY2NvdW50IjoiYWEyNDMyYjFmYTRkNGFjZTg5MWU5YjgwZmMxMDRlMzQiLCJzZWNyZXQiOiJRVzRnWlhoaGJYQnNaU0J6WldOeVpYUUsiLCJleHAiOjE3MjYwNzU1OTR9.UFDVzzGJ54Go9Z4jgyPSLG49zNx-AjHTQrJA6ee8KLI' + ) instance_console_access_token_model_json['console_type'] = 'serial' instance_console_access_token_model_json['created_at'] = '2020-07-27T21:50:14Z' instance_console_access_token_model_json['expires_at'] = '2020-07-27T21:51:14Z' instance_console_access_token_model_json['force'] = False - instance_console_access_token_model_json['href'] = 'wss://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/console?access_token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhY2NvdW50IjoiYWEyNDMyYjFmYTRkNGFjZTg5MWU5YjgwZmMxMDRlMzQiLCJzZWNyZXQiOiJRVzRnWlhoaGJYQnNaU0J6WldOeVpYUUsiLCJleHAiOjE3MjYwNzU1OTR9.UFDVzzGJ54Go9Z4jgyPSLG49zNx-AjHTQrJA6ee8KLI' + instance_console_access_token_model_json['href'] = ( + 'wss://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/console?access_token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhY2NvdW50IjoiYWEyNDMyYjFmYTRkNGFjZTg5MWU5YjgwZmMxMDRlMzQiLCJzZWNyZXQiOiJRVzRnWlhoaGJYQnNaU0J6WldOeVpYUUsiLCJleHAiOjE3MjYwNzU1OTR9.UFDVzzGJ54Go9Z4jgyPSLG49zNx-AjHTQrJA6ee8KLI' + ) # Construct a model instance of InstanceConsoleAccessToken by calling from_dict on the json representation - instance_console_access_token_model = InstanceConsoleAccessToken.from_dict(instance_console_access_token_model_json) + instance_console_access_token_model = InstanceConsoleAccessToken.from_dict( + instance_console_access_token_model_json + ) assert instance_console_access_token_model != False # Construct a model instance of InstanceConsoleAccessToken by calling from_dict on the json representation - instance_console_access_token_model_dict = InstanceConsoleAccessToken.from_dict(instance_console_access_token_model_json).__dict__ + instance_console_access_token_model_dict = InstanceConsoleAccessToken.from_dict( + instance_console_access_token_model_json + ).__dict__ instance_console_access_token_model2 = InstanceConsoleAccessToken(**instance_console_access_token_model_dict) # Verify the model instances are equivalent @@ -62877,19 +65166,30 @@ def test_instance_default_trusted_profile_prototype_serialization(self): instance_default_trusted_profile_prototype_model_json['target'] = trusted_profile_identity_model # Construct a model instance of InstanceDefaultTrustedProfilePrototype by calling from_dict on the json representation - instance_default_trusted_profile_prototype_model = InstanceDefaultTrustedProfilePrototype.from_dict(instance_default_trusted_profile_prototype_model_json) + instance_default_trusted_profile_prototype_model = InstanceDefaultTrustedProfilePrototype.from_dict( + instance_default_trusted_profile_prototype_model_json + ) assert instance_default_trusted_profile_prototype_model != False # Construct a model instance of InstanceDefaultTrustedProfilePrototype by calling from_dict on the json representation - instance_default_trusted_profile_prototype_model_dict = InstanceDefaultTrustedProfilePrototype.from_dict(instance_default_trusted_profile_prototype_model_json).__dict__ - instance_default_trusted_profile_prototype_model2 = InstanceDefaultTrustedProfilePrototype(**instance_default_trusted_profile_prototype_model_dict) + instance_default_trusted_profile_prototype_model_dict = InstanceDefaultTrustedProfilePrototype.from_dict( + instance_default_trusted_profile_prototype_model_json + ).__dict__ + instance_default_trusted_profile_prototype_model2 = InstanceDefaultTrustedProfilePrototype( + **instance_default_trusted_profile_prototype_model_dict + ) # Verify the model instances are equivalent assert instance_default_trusted_profile_prototype_model == instance_default_trusted_profile_prototype_model2 # Convert model instance back to dict and verify no loss of data - instance_default_trusted_profile_prototype_model_json2 = instance_default_trusted_profile_prototype_model.to_dict() - assert instance_default_trusted_profile_prototype_model_json2 == instance_default_trusted_profile_prototype_model_json + instance_default_trusted_profile_prototype_model_json2 = ( + instance_default_trusted_profile_prototype_model.to_dict() + ) + assert ( + instance_default_trusted_profile_prototype_model_json2 + == instance_default_trusted_profile_prototype_model_json + ) class TestModel_InstanceDisk: @@ -62905,7 +65205,9 @@ def test_instance_disk_serialization(self): # Construct a json representation of a InstanceDisk model instance_disk_model_json = {} instance_disk_model_json['created_at'] = '2019-01-01T12:00:00Z' - instance_disk_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/disks/10c02d81-0ecb-4dc5-897d-28392913b81e' + instance_disk_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/disks/10c02d81-0ecb-4dc5-897d-28392913b81e' + ) instance_disk_model_json['id'] = '10c02d81-0ecb-4dc5-897d-28392913b81e' instance_disk_model_json['interface_type'] = 'nvme' instance_disk_model_json['name'] = 'my-instance-disk' @@ -62942,7 +65244,9 @@ def test_instance_disk_collection_serialization(self): instance_disk_model = {} # InstanceDisk instance_disk_model['created_at'] = '2019-01-01T12:00:00Z' - instance_disk_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/disks/10c02d81-0ecb-4dc5-897d-28392913b81e' + instance_disk_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/disks/10c02d81-0ecb-4dc5-897d-28392913b81e' + ) instance_disk_model['id'] = '10c02d81-0ecb-4dc5-897d-28392913b81e' instance_disk_model['interface_type'] = 'nvme' instance_disk_model['name'] = 'my-instance-disk' @@ -62958,7 +65262,9 @@ def test_instance_disk_collection_serialization(self): assert instance_disk_collection_model != False # Construct a model instance of InstanceDiskCollection by calling from_dict on the json representation - instance_disk_collection_model_dict = InstanceDiskCollection.from_dict(instance_disk_collection_model_json).__dict__ + instance_disk_collection_model_dict = InstanceDiskCollection.from_dict( + instance_disk_collection_model_json + ).__dict__ instance_disk_collection_model2 = InstanceDiskCollection(**instance_disk_collection_model_dict) # Verify the model instances are equivalent @@ -63017,7 +65323,9 @@ def test_instance_disk_reference_serialization(self): # Construct a json representation of a InstanceDiskReference model instance_disk_reference_model_json = {} instance_disk_reference_model_json['deleted'] = deleted_model - instance_disk_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/disks/10c02d81-0ecb-4dc5-897d-28392913b81e' + instance_disk_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/disks/10c02d81-0ecb-4dc5-897d-28392913b81e' + ) instance_disk_reference_model_json['id'] = '10c02d81-0ecb-4dc5-897d-28392913b81e' instance_disk_reference_model_json['name'] = 'my-instance-disk' instance_disk_reference_model_json['resource_type'] = 'instance_disk' @@ -63027,7 +65335,9 @@ def test_instance_disk_reference_serialization(self): assert instance_disk_reference_model != False # Construct a model instance of InstanceDiskReference by calling from_dict on the json representation - instance_disk_reference_model_dict = InstanceDiskReference.from_dict(instance_disk_reference_model_json).__dict__ + instance_disk_reference_model_dict = InstanceDiskReference.from_dict( + instance_disk_reference_model_json + ).__dict__ instance_disk_reference_model2 = InstanceDiskReference(**instance_disk_reference_model_dict) # Verify the model instances are equivalent @@ -63089,36 +65399,48 @@ def test_instance_group_serialization(self): instance_template_reference_model = {} # InstanceTemplateReference instance_template_reference_model['crn'] = 'crn:[...]' instance_template_reference_model['deleted'] = deleted_model - instance_template_reference_model['href'] = 'https://eu-gb.iaas.cloud.ibm.com/v1/instance/templates/07a7-eca9fd45-e086-4400-a799-77b09ec5be84' + instance_template_reference_model['href'] = ( + 'https://eu-gb.iaas.cloud.ibm.com/v1/instance/templates/07a7-eca9fd45-e086-4400-a799-77b09ec5be84' + ) instance_template_reference_model['id'] = '07a7-eca9fd45-e086-4400-a799-77b09ec5be84' instance_template_reference_model['name'] = 'my-instance-template' instance_group_lifecycle_reason_model = {} # InstanceGroupLifecycleReason instance_group_lifecycle_reason_model['code'] = 'resource_suspended_by_provider' - instance_group_lifecycle_reason_model['message'] = 'The resource has been suspended. Contact IBM support with the CRN for next steps.' + instance_group_lifecycle_reason_model['message'] = ( + 'The resource has been suspended. Contact IBM support with the CRN for next steps.' + ) instance_group_lifecycle_reason_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#resource-suspension' load_balancer_pool_reference_model = {} # LoadBalancerPoolReference load_balancer_pool_reference_model['deleted'] = deleted_model - load_balancer_pool_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/pools/70294e14-4e61-11e8-bcf4-0242ac110004' + load_balancer_pool_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/pools/70294e14-4e61-11e8-bcf4-0242ac110004' + ) load_balancer_pool_reference_model['id'] = '70294e14-4e61-11e8-bcf4-0242ac110004' load_balancer_pool_reference_model['name'] = 'my-load-balancer-pool' instance_group_manager_reference_model = {} # InstanceGroupManagerReference instance_group_manager_reference_model['deleted'] = deleted_model - instance_group_manager_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instance_groups/1e09281b-f177-46fb-baf1-bc152b2e391a/managers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727' + instance_group_manager_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instance_groups/1e09281b-f177-46fb-baf1-bc152b2e391a/managers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727' + ) instance_group_manager_reference_model['id'] = '1e09281b-f177-46fb-baf1-bc152b2e391a' instance_group_manager_reference_model['name'] = 'my-instance-group-manager' resource_group_reference_model = {} # ResourceGroupReference - resource_group_reference_model['href'] = 'https://resource-controller.cloud.ibm.com/v2/resource_groups/4bbce614c13444cd8fc5e7e878ef8e21' + resource_group_reference_model['href'] = ( + 'https://resource-controller.cloud.ibm.com/v2/resource_groups/4bbce614c13444cd8fc5e7e878ef8e21' + ) resource_group_reference_model['id'] = '4bbce614c13444cd8fc5e7e878ef8e21' resource_group_reference_model['name'] = 'Default' subnet_reference_model = {} # SubnetReference subnet_reference_model['crn'] = 'crn:[...]' subnet_reference_model['deleted'] = deleted_model - subnet_reference_model['href'] = 'https://eu-gb.iaas.cloud.ibm.com/v1/subnets/07a7-3162c0fc-178f-46da-b4ca-d9448824056c' + subnet_reference_model['href'] = ( + 'https://eu-gb.iaas.cloud.ibm.com/v1/subnets/07a7-3162c0fc-178f-46da-b4ca-d9448824056c' + ) subnet_reference_model['id'] = '07a7-3162c0fc-178f-46da-b4ca-d9448824056c' subnet_reference_model['name'] = 'my-subnet' subnet_reference_model['resource_type'] = 'subnet' @@ -63135,8 +65457,12 @@ def test_instance_group_serialization(self): instance_group_model_json = {} instance_group_model_json['application_port'] = 22 instance_group_model_json['created_at'] = '2019-01-01T12:00:00Z' - instance_group_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::instance-group:1e09281b-f177-46fb-baf1-bc152b2e391a' - instance_group_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instance_groups/1e09281b-f177-46fb-baf1-bc152b2e391a' + instance_group_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::instance-group:1e09281b-f177-46fb-baf1-bc152b2e391a' + ) + instance_group_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instance_groups/1e09281b-f177-46fb-baf1-bc152b2e391a' + ) instance_group_model_json['id'] = '1e09281b-f177-46fb-baf1-bc152b2e391a' instance_group_model_json['instance_template'] = instance_template_reference_model instance_group_model_json['lifecycle_reasons'] = [instance_group_lifecycle_reason_model] @@ -63186,46 +65512,66 @@ def test_instance_group_collection_serialization(self): deleted_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#deleted-resources' instance_template_reference_model = {} # InstanceTemplateReference - instance_template_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::instance-template:1e09281b-f177-46fb-baf1-bc152b2e391a' + instance_template_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::instance-template:1e09281b-f177-46fb-baf1-bc152b2e391a' + ) instance_template_reference_model['deleted'] = deleted_model - instance_template_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instance/templates/1e09281b-f177-46fb-baf1-bc152b2e391a' + instance_template_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instance/templates/1e09281b-f177-46fb-baf1-bc152b2e391a' + ) instance_template_reference_model['id'] = 'a6b1a881-2ce8-41a3-80fc-36316a73f803' instance_template_reference_model['name'] = 'my-instance-template' instance_group_lifecycle_reason_model = {} # InstanceGroupLifecycleReason instance_group_lifecycle_reason_model['code'] = 'resource_suspended_by_provider' - instance_group_lifecycle_reason_model['message'] = 'The resource has been suspended. Contact IBM support with the CRN for next steps.' + instance_group_lifecycle_reason_model['message'] = ( + 'The resource has been suspended. Contact IBM support with the CRN for next steps.' + ) instance_group_lifecycle_reason_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#resource-suspension' load_balancer_pool_reference_model = {} # LoadBalancerPoolReference load_balancer_pool_reference_model['deleted'] = deleted_model - load_balancer_pool_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/pools/70294e14-4e61-11e8-bcf4-0242ac110004' + load_balancer_pool_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/pools/70294e14-4e61-11e8-bcf4-0242ac110004' + ) load_balancer_pool_reference_model['id'] = '70294e14-4e61-11e8-bcf4-0242ac110004' load_balancer_pool_reference_model['name'] = 'my-load-balancer-pool' instance_group_manager_reference_model = {} # InstanceGroupManagerReference instance_group_manager_reference_model['deleted'] = deleted_model - instance_group_manager_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instance_groups/1e09281b-f177-46fb-baf1-bc152b2e391a/managers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727' + instance_group_manager_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instance_groups/1e09281b-f177-46fb-baf1-bc152b2e391a/managers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727' + ) instance_group_manager_reference_model['id'] = '1e09281b-f177-46fb-baf1-bc152b2e391a' instance_group_manager_reference_model['name'] = 'my-instance-group-manager' resource_group_reference_model = {} # ResourceGroupReference - resource_group_reference_model['href'] = 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + resource_group_reference_model['href'] = ( + 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + ) resource_group_reference_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' resource_group_reference_model['name'] = 'my-resource-group' subnet_reference_model = {} # SubnetReference - subnet_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['deleted'] = deleted_model - subnet_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['id'] = '0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' subnet_reference_model['name'] = 'my-subnet' subnet_reference_model['resource_type'] = 'subnet' vpc_reference_model = {} # VPCReference - vpc_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_model['deleted'] = deleted_model - vpc_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_model['id'] = 'r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' vpc_reference_model['name'] = 'my-vpc' vpc_reference_model['resource_type'] = 'vpc' @@ -63233,8 +65579,12 @@ def test_instance_group_collection_serialization(self): instance_group_model = {} # InstanceGroup instance_group_model['application_port'] = 22 instance_group_model['created_at'] = '2019-01-01T12:00:00Z' - instance_group_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::instance-group:1e09281b-f177-46fb-baf1-bc152b2e391a' - instance_group_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instance_groups/1e09281b-f177-46fb-baf1-bc152b2e391a' + instance_group_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::instance-group:1e09281b-f177-46fb-baf1-bc152b2e391a' + ) + instance_group_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instance_groups/1e09281b-f177-46fb-baf1-bc152b2e391a' + ) instance_group_model['id'] = '1e09281b-f177-46fb-baf1-bc152b2e391a' instance_group_model['instance_template'] = instance_template_reference_model instance_group_model['lifecycle_reasons'] = [instance_group_lifecycle_reason_model] @@ -63262,7 +65612,9 @@ def test_instance_group_collection_serialization(self): assert instance_group_collection_model != False # Construct a model instance of InstanceGroupCollection by calling from_dict on the json representation - instance_group_collection_model_dict = InstanceGroupCollection.from_dict(instance_group_collection_model_json).__dict__ + instance_group_collection_model_dict = InstanceGroupCollection.from_dict( + instance_group_collection_model_json + ).__dict__ instance_group_collection_model2 = InstanceGroupCollection(**instance_group_collection_model_dict) # Verify the model instances are equivalent @@ -63286,16 +65638,26 @@ def test_instance_group_lifecycle_reason_serialization(self): # Construct a json representation of a InstanceGroupLifecycleReason model instance_group_lifecycle_reason_model_json = {} instance_group_lifecycle_reason_model_json['code'] = 'resource_suspended_by_provider' - instance_group_lifecycle_reason_model_json['message'] = 'The resource has been suspended. Contact IBM support with the CRN for next steps.' - instance_group_lifecycle_reason_model_json['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#resource-suspension' + instance_group_lifecycle_reason_model_json['message'] = ( + 'The resource has been suspended. Contact IBM support with the CRN for next steps.' + ) + instance_group_lifecycle_reason_model_json['more_info'] = ( + 'https://cloud.ibm.com/apidocs/vpc#resource-suspension' + ) # Construct a model instance of InstanceGroupLifecycleReason by calling from_dict on the json representation - instance_group_lifecycle_reason_model = InstanceGroupLifecycleReason.from_dict(instance_group_lifecycle_reason_model_json) + instance_group_lifecycle_reason_model = InstanceGroupLifecycleReason.from_dict( + instance_group_lifecycle_reason_model_json + ) assert instance_group_lifecycle_reason_model != False # Construct a model instance of InstanceGroupLifecycleReason by calling from_dict on the json representation - instance_group_lifecycle_reason_model_dict = InstanceGroupLifecycleReason.from_dict(instance_group_lifecycle_reason_model_json).__dict__ - instance_group_lifecycle_reason_model2 = InstanceGroupLifecycleReason(**instance_group_lifecycle_reason_model_dict) + instance_group_lifecycle_reason_model_dict = InstanceGroupLifecycleReason.from_dict( + instance_group_lifecycle_reason_model_json + ).__dict__ + instance_group_lifecycle_reason_model2 = InstanceGroupLifecycleReason( + **instance_group_lifecycle_reason_model_dict + ) # Verify the model instances are equivalent assert instance_group_lifecycle_reason_model == instance_group_lifecycle_reason_model2 @@ -63320,19 +65682,30 @@ def test_instance_group_manager_action_group_patch_serialization(self): instance_group_manager_action_group_patch_model_json['membership_count'] = 10 # Construct a model instance of InstanceGroupManagerActionGroupPatch by calling from_dict on the json representation - instance_group_manager_action_group_patch_model = InstanceGroupManagerActionGroupPatch.from_dict(instance_group_manager_action_group_patch_model_json) + instance_group_manager_action_group_patch_model = InstanceGroupManagerActionGroupPatch.from_dict( + instance_group_manager_action_group_patch_model_json + ) assert instance_group_manager_action_group_patch_model != False # Construct a model instance of InstanceGroupManagerActionGroupPatch by calling from_dict on the json representation - instance_group_manager_action_group_patch_model_dict = InstanceGroupManagerActionGroupPatch.from_dict(instance_group_manager_action_group_patch_model_json).__dict__ - instance_group_manager_action_group_patch_model2 = InstanceGroupManagerActionGroupPatch(**instance_group_manager_action_group_patch_model_dict) + instance_group_manager_action_group_patch_model_dict = InstanceGroupManagerActionGroupPatch.from_dict( + instance_group_manager_action_group_patch_model_json + ).__dict__ + instance_group_manager_action_group_patch_model2 = InstanceGroupManagerActionGroupPatch( + **instance_group_manager_action_group_patch_model_dict + ) # Verify the model instances are equivalent assert instance_group_manager_action_group_patch_model == instance_group_manager_action_group_patch_model2 # Convert model instance back to dict and verify no loss of data - instance_group_manager_action_group_patch_model_json2 = instance_group_manager_action_group_patch_model.to_dict() - assert instance_group_manager_action_group_patch_model_json2 == instance_group_manager_action_group_patch_model_json + instance_group_manager_action_group_patch_model_json2 = ( + instance_group_manager_action_group_patch_model.to_dict() + ) + assert ( + instance_group_manager_action_group_patch_model_json2 + == instance_group_manager_action_group_patch_model_json + ) class TestModel_InstanceGroupManagerActionManagerPatch: @@ -63351,19 +65724,30 @@ def test_instance_group_manager_action_manager_patch_serialization(self): instance_group_manager_action_manager_patch_model_json['min_membership_count'] = 10 # Construct a model instance of InstanceGroupManagerActionManagerPatch by calling from_dict on the json representation - instance_group_manager_action_manager_patch_model = InstanceGroupManagerActionManagerPatch.from_dict(instance_group_manager_action_manager_patch_model_json) + instance_group_manager_action_manager_patch_model = InstanceGroupManagerActionManagerPatch.from_dict( + instance_group_manager_action_manager_patch_model_json + ) assert instance_group_manager_action_manager_patch_model != False # Construct a model instance of InstanceGroupManagerActionManagerPatch by calling from_dict on the json representation - instance_group_manager_action_manager_patch_model_dict = InstanceGroupManagerActionManagerPatch.from_dict(instance_group_manager_action_manager_patch_model_json).__dict__ - instance_group_manager_action_manager_patch_model2 = InstanceGroupManagerActionManagerPatch(**instance_group_manager_action_manager_patch_model_dict) + instance_group_manager_action_manager_patch_model_dict = InstanceGroupManagerActionManagerPatch.from_dict( + instance_group_manager_action_manager_patch_model_json + ).__dict__ + instance_group_manager_action_manager_patch_model2 = InstanceGroupManagerActionManagerPatch( + **instance_group_manager_action_manager_patch_model_dict + ) # Verify the model instances are equivalent assert instance_group_manager_action_manager_patch_model == instance_group_manager_action_manager_patch_model2 # Convert model instance back to dict and verify no loss of data - instance_group_manager_action_manager_patch_model_json2 = instance_group_manager_action_manager_patch_model.to_dict() - assert instance_group_manager_action_manager_patch_model_json2 == instance_group_manager_action_manager_patch_model_json + instance_group_manager_action_manager_patch_model_json2 = ( + instance_group_manager_action_manager_patch_model.to_dict() + ) + assert ( + instance_group_manager_action_manager_patch_model_json2 + == instance_group_manager_action_manager_patch_model_json + ) class TestModel_InstanceGroupManagerActionPatch: @@ -63396,12 +65780,18 @@ def test_instance_group_manager_action_patch_serialization(self): instance_group_manager_action_patch_model_json['run_at'] = '2019-01-01T12:00:00Z' # Construct a model instance of InstanceGroupManagerActionPatch by calling from_dict on the json representation - instance_group_manager_action_patch_model = InstanceGroupManagerActionPatch.from_dict(instance_group_manager_action_patch_model_json) + instance_group_manager_action_patch_model = InstanceGroupManagerActionPatch.from_dict( + instance_group_manager_action_patch_model_json + ) assert instance_group_manager_action_patch_model != False # Construct a model instance of InstanceGroupManagerActionPatch by calling from_dict on the json representation - instance_group_manager_action_patch_model_dict = InstanceGroupManagerActionPatch.from_dict(instance_group_manager_action_patch_model_json).__dict__ - instance_group_manager_action_patch_model2 = InstanceGroupManagerActionPatch(**instance_group_manager_action_patch_model_dict) + instance_group_manager_action_patch_model_dict = InstanceGroupManagerActionPatch.from_dict( + instance_group_manager_action_patch_model_json + ).__dict__ + instance_group_manager_action_patch_model2 = InstanceGroupManagerActionPatch( + **instance_group_manager_action_patch_model_dict + ) # Verify the model instances are equivalent assert instance_group_manager_action_patch_model == instance_group_manager_action_patch_model2 @@ -63429,18 +65819,26 @@ def test_instance_group_manager_action_reference_serialization(self): # Construct a json representation of a InstanceGroupManagerActionReference model instance_group_manager_action_reference_model_json = {} instance_group_manager_action_reference_model_json['deleted'] = deleted_model - instance_group_manager_action_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instance_groups/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/managers/4c939b00-601f-11ea-bca2-000c29475bed/actions/1e09281b-f177-46fb-baf1-bc152b2e391a' + instance_group_manager_action_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instance_groups/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/managers/4c939b00-601f-11ea-bca2-000c29475bed/actions/1e09281b-f177-46fb-baf1-bc152b2e391a' + ) instance_group_manager_action_reference_model_json['id'] = '1e09281b-f177-46fb-baf1-bc152b2e391a' instance_group_manager_action_reference_model_json['name'] = 'my-instance-group-manager-action' instance_group_manager_action_reference_model_json['resource_type'] = 'instance_group_manager_action' # Construct a model instance of InstanceGroupManagerActionReference by calling from_dict on the json representation - instance_group_manager_action_reference_model = InstanceGroupManagerActionReference.from_dict(instance_group_manager_action_reference_model_json) + instance_group_manager_action_reference_model = InstanceGroupManagerActionReference.from_dict( + instance_group_manager_action_reference_model_json + ) assert instance_group_manager_action_reference_model != False # Construct a model instance of InstanceGroupManagerActionReference by calling from_dict on the json representation - instance_group_manager_action_reference_model_dict = InstanceGroupManagerActionReference.from_dict(instance_group_manager_action_reference_model_json).__dict__ - instance_group_manager_action_reference_model2 = InstanceGroupManagerActionReference(**instance_group_manager_action_reference_model_dict) + instance_group_manager_action_reference_model_dict = InstanceGroupManagerActionReference.from_dict( + instance_group_manager_action_reference_model_json + ).__dict__ + instance_group_manager_action_reference_model2 = InstanceGroupManagerActionReference( + **instance_group_manager_action_reference_model_dict + ) # Verify the model instances are equivalent assert instance_group_manager_action_reference_model == instance_group_manager_action_reference_model2 @@ -63469,7 +65867,9 @@ def test_instance_group_manager_actions_collection_serialization(self): instance_group_manager_action_model['auto_delete'] = True instance_group_manager_action_model['auto_delete_timeout'] = 24 instance_group_manager_action_model['created_at'] = '2019-01-01T12:00:00Z' - instance_group_manager_action_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instance_groups/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/managers/4c939b00-601f-11ea-bca2-000c29475bed/actions/1e09281b-f177-46fb-baf1-bc152b2e391a' + instance_group_manager_action_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instance_groups/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/managers/4c939b00-601f-11ea-bca2-000c29475bed/actions/1e09281b-f177-46fb-baf1-bc152b2e391a' + ) instance_group_manager_action_model['id'] = '1e09281b-f177-46fb-baf1-bc152b2e391a' instance_group_manager_action_model['name'] = 'my-instance-group-manager-action' instance_group_manager_action_model['resource_type'] = 'instance_group_manager_action' @@ -63482,7 +65882,9 @@ def test_instance_group_manager_actions_collection_serialization(self): instance_group_manager_action_model['group'] = instance_group_manager_scheduled_action_group_model page_link_model = {} # PageLink - page_link_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instance_groups/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/managers/4c939b00-601f-11ea-bca2-000c29475bed/actions?limit=20' + page_link_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instance_groups/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/managers/4c939b00-601f-11ea-bca2-000c29475bed/actions?limit=20' + ) # Construct a json representation of a InstanceGroupManagerActionsCollection model instance_group_manager_actions_collection_model_json = {} @@ -63493,19 +65895,30 @@ def test_instance_group_manager_actions_collection_serialization(self): instance_group_manager_actions_collection_model_json['total_count'] = 132 # Construct a model instance of InstanceGroupManagerActionsCollection by calling from_dict on the json representation - instance_group_manager_actions_collection_model = InstanceGroupManagerActionsCollection.from_dict(instance_group_manager_actions_collection_model_json) + instance_group_manager_actions_collection_model = InstanceGroupManagerActionsCollection.from_dict( + instance_group_manager_actions_collection_model_json + ) assert instance_group_manager_actions_collection_model != False # Construct a model instance of InstanceGroupManagerActionsCollection by calling from_dict on the json representation - instance_group_manager_actions_collection_model_dict = InstanceGroupManagerActionsCollection.from_dict(instance_group_manager_actions_collection_model_json).__dict__ - instance_group_manager_actions_collection_model2 = InstanceGroupManagerActionsCollection(**instance_group_manager_actions_collection_model_dict) + instance_group_manager_actions_collection_model_dict = InstanceGroupManagerActionsCollection.from_dict( + instance_group_manager_actions_collection_model_json + ).__dict__ + instance_group_manager_actions_collection_model2 = InstanceGroupManagerActionsCollection( + **instance_group_manager_actions_collection_model_dict + ) # Verify the model instances are equivalent assert instance_group_manager_actions_collection_model == instance_group_manager_actions_collection_model2 # Convert model instance back to dict and verify no loss of data - instance_group_manager_actions_collection_model_json2 = instance_group_manager_actions_collection_model.to_dict() - assert instance_group_manager_actions_collection_model_json2 == instance_group_manager_actions_collection_model_json + instance_group_manager_actions_collection_model_json2 = ( + instance_group_manager_actions_collection_model.to_dict() + ) + assert ( + instance_group_manager_actions_collection_model_json2 + == instance_group_manager_actions_collection_model_json + ) class TestModel_InstanceGroupManagerCollection: @@ -63521,20 +65934,26 @@ def test_instance_group_manager_collection_serialization(self): # Construct dict forms of any model objects needed in order to build this model. page_link_model = {} # PageLink - page_link_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instance_groups/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/managers?limit=20' + page_link_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instance_groups/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/managers?limit=20' + ) deleted_model = {} # Deleted deleted_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#deleted-resources' instance_group_manager_policy_reference_model = {} # InstanceGroupManagerPolicyReference instance_group_manager_policy_reference_model['deleted'] = deleted_model - instance_group_manager_policy_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instance_groups/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/managers/4c939b00-601f-11ea-bca2-000c29475bed/policies/1e09281b-f177-46fb-baf1-bc152b2e391a' + instance_group_manager_policy_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instance_groups/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/managers/4c939b00-601f-11ea-bca2-000c29475bed/policies/1e09281b-f177-46fb-baf1-bc152b2e391a' + ) instance_group_manager_policy_reference_model['id'] = '1e09281b-f177-46fb-baf1-bc152b2e391a' instance_group_manager_policy_reference_model['name'] = 'my-instance-group-manager-policy' instance_group_manager_model = {} # InstanceGroupManagerAutoScale instance_group_manager_model['created_at'] = '2019-01-01T12:00:00Z' - instance_group_manager_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instance_groups/1e09281b-f177-46fb-baf1-bc152b2e391a/managers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727' + instance_group_manager_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instance_groups/1e09281b-f177-46fb-baf1-bc152b2e391a/managers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727' + ) instance_group_manager_model['id'] = '1e09281b-f177-46fb-baf1-bc152b2e391a' instance_group_manager_model['management_enabled'] = True instance_group_manager_model['name'] = 'my-instance-group-manager' @@ -63555,12 +65974,18 @@ def test_instance_group_manager_collection_serialization(self): instance_group_manager_collection_model_json['total_count'] = 132 # Construct a model instance of InstanceGroupManagerCollection by calling from_dict on the json representation - instance_group_manager_collection_model = InstanceGroupManagerCollection.from_dict(instance_group_manager_collection_model_json) + instance_group_manager_collection_model = InstanceGroupManagerCollection.from_dict( + instance_group_manager_collection_model_json + ) assert instance_group_manager_collection_model != False # Construct a model instance of InstanceGroupManagerCollection by calling from_dict on the json representation - instance_group_manager_collection_model_dict = InstanceGroupManagerCollection.from_dict(instance_group_manager_collection_model_json).__dict__ - instance_group_manager_collection_model2 = InstanceGroupManagerCollection(**instance_group_manager_collection_model_dict) + instance_group_manager_collection_model_dict = InstanceGroupManagerCollection.from_dict( + instance_group_manager_collection_model_json + ).__dict__ + instance_group_manager_collection_model2 = InstanceGroupManagerCollection( + **instance_group_manager_collection_model_dict + ) # Verify the model instances are equivalent assert instance_group_manager_collection_model == instance_group_manager_collection_model2 @@ -63590,11 +66015,15 @@ def test_instance_group_manager_patch_serialization(self): instance_group_manager_patch_model_json['name'] = 'my-instance-group-manager' # Construct a model instance of InstanceGroupManagerPatch by calling from_dict on the json representation - instance_group_manager_patch_model = InstanceGroupManagerPatch.from_dict(instance_group_manager_patch_model_json) + instance_group_manager_patch_model = InstanceGroupManagerPatch.from_dict( + instance_group_manager_patch_model_json + ) assert instance_group_manager_patch_model != False # Construct a model instance of InstanceGroupManagerPatch by calling from_dict on the json representation - instance_group_manager_patch_model_dict = InstanceGroupManagerPatch.from_dict(instance_group_manager_patch_model_json).__dict__ + instance_group_manager_patch_model_dict = InstanceGroupManagerPatch.from_dict( + instance_group_manager_patch_model_json + ).__dict__ instance_group_manager_patch_model2 = InstanceGroupManagerPatch(**instance_group_manager_patch_model_dict) # Verify the model instances are equivalent @@ -63618,11 +66047,15 @@ def test_instance_group_manager_policy_collection_serialization(self): # Construct dict forms of any model objects needed in order to build this model. page_link_model = {} # PageLink - page_link_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instance_groups/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/managers/4c939b00-601f-11ea-bca2-000c29475bed/policies?limit=20' + page_link_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instance_groups/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/managers/4c939b00-601f-11ea-bca2-000c29475bed/policies?limit=20' + ) instance_group_manager_policy_model = {} # InstanceGroupManagerPolicyInstanceGroupManagerTargetPolicy instance_group_manager_policy_model['created_at'] = '2019-01-01T12:00:00Z' - instance_group_manager_policy_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instance_groups/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/managers/4c939b00-601f-11ea-bca2-000c29475bed/policies/1e09281b-f177-46fb-baf1-bc152b2e391a' + instance_group_manager_policy_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instance_groups/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/managers/4c939b00-601f-11ea-bca2-000c29475bed/policies/1e09281b-f177-46fb-baf1-bc152b2e391a' + ) instance_group_manager_policy_model['id'] = '1e09281b-f177-46fb-baf1-bc152b2e391a' instance_group_manager_policy_model['name'] = 'my-instance-group-manager-policy' instance_group_manager_policy_model['updated_at'] = '2019-01-01T12:00:00Z' @@ -63639,19 +66072,27 @@ def test_instance_group_manager_policy_collection_serialization(self): instance_group_manager_policy_collection_model_json['total_count'] = 132 # Construct a model instance of InstanceGroupManagerPolicyCollection by calling from_dict on the json representation - instance_group_manager_policy_collection_model = InstanceGroupManagerPolicyCollection.from_dict(instance_group_manager_policy_collection_model_json) + instance_group_manager_policy_collection_model = InstanceGroupManagerPolicyCollection.from_dict( + instance_group_manager_policy_collection_model_json + ) assert instance_group_manager_policy_collection_model != False # Construct a model instance of InstanceGroupManagerPolicyCollection by calling from_dict on the json representation - instance_group_manager_policy_collection_model_dict = InstanceGroupManagerPolicyCollection.from_dict(instance_group_manager_policy_collection_model_json).__dict__ - instance_group_manager_policy_collection_model2 = InstanceGroupManagerPolicyCollection(**instance_group_manager_policy_collection_model_dict) + instance_group_manager_policy_collection_model_dict = InstanceGroupManagerPolicyCollection.from_dict( + instance_group_manager_policy_collection_model_json + ).__dict__ + instance_group_manager_policy_collection_model2 = InstanceGroupManagerPolicyCollection( + **instance_group_manager_policy_collection_model_dict + ) # Verify the model instances are equivalent assert instance_group_manager_policy_collection_model == instance_group_manager_policy_collection_model2 # Convert model instance back to dict and verify no loss of data instance_group_manager_policy_collection_model_json2 = instance_group_manager_policy_collection_model.to_dict() - assert instance_group_manager_policy_collection_model_json2 == instance_group_manager_policy_collection_model_json + assert ( + instance_group_manager_policy_collection_model_json2 == instance_group_manager_policy_collection_model_json + ) class TestModel_InstanceGroupManagerPolicyPatch: @@ -63671,12 +66112,18 @@ def test_instance_group_manager_policy_patch_serialization(self): instance_group_manager_policy_patch_model_json['name'] = 'my-instance-group-manager-policy' # Construct a model instance of InstanceGroupManagerPolicyPatch by calling from_dict on the json representation - instance_group_manager_policy_patch_model = InstanceGroupManagerPolicyPatch.from_dict(instance_group_manager_policy_patch_model_json) + instance_group_manager_policy_patch_model = InstanceGroupManagerPolicyPatch.from_dict( + instance_group_manager_policy_patch_model_json + ) assert instance_group_manager_policy_patch_model != False # Construct a model instance of InstanceGroupManagerPolicyPatch by calling from_dict on the json representation - instance_group_manager_policy_patch_model_dict = InstanceGroupManagerPolicyPatch.from_dict(instance_group_manager_policy_patch_model_json).__dict__ - instance_group_manager_policy_patch_model2 = InstanceGroupManagerPolicyPatch(**instance_group_manager_policy_patch_model_dict) + instance_group_manager_policy_patch_model_dict = InstanceGroupManagerPolicyPatch.from_dict( + instance_group_manager_policy_patch_model_json + ).__dict__ + instance_group_manager_policy_patch_model2 = InstanceGroupManagerPolicyPatch( + **instance_group_manager_policy_patch_model_dict + ) # Verify the model instances are equivalent assert instance_group_manager_policy_patch_model == instance_group_manager_policy_patch_model2 @@ -63704,17 +66151,25 @@ def test_instance_group_manager_policy_reference_serialization(self): # Construct a json representation of a InstanceGroupManagerPolicyReference model instance_group_manager_policy_reference_model_json = {} instance_group_manager_policy_reference_model_json['deleted'] = deleted_model - instance_group_manager_policy_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instance_groups/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/managers/4c939b00-601f-11ea-bca2-000c29475bed/policies/1e09281b-f177-46fb-baf1-bc152b2e391a' + instance_group_manager_policy_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instance_groups/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/managers/4c939b00-601f-11ea-bca2-000c29475bed/policies/1e09281b-f177-46fb-baf1-bc152b2e391a' + ) instance_group_manager_policy_reference_model_json['id'] = '1e09281b-f177-46fb-baf1-bc152b2e391a' instance_group_manager_policy_reference_model_json['name'] = 'my-instance-group-manager-policy' # Construct a model instance of InstanceGroupManagerPolicyReference by calling from_dict on the json representation - instance_group_manager_policy_reference_model = InstanceGroupManagerPolicyReference.from_dict(instance_group_manager_policy_reference_model_json) + instance_group_manager_policy_reference_model = InstanceGroupManagerPolicyReference.from_dict( + instance_group_manager_policy_reference_model_json + ) assert instance_group_manager_policy_reference_model != False # Construct a model instance of InstanceGroupManagerPolicyReference by calling from_dict on the json representation - instance_group_manager_policy_reference_model_dict = InstanceGroupManagerPolicyReference.from_dict(instance_group_manager_policy_reference_model_json).__dict__ - instance_group_manager_policy_reference_model2 = InstanceGroupManagerPolicyReference(**instance_group_manager_policy_reference_model_dict) + instance_group_manager_policy_reference_model_dict = InstanceGroupManagerPolicyReference.from_dict( + instance_group_manager_policy_reference_model_json + ).__dict__ + instance_group_manager_policy_reference_model2 = InstanceGroupManagerPolicyReference( + **instance_group_manager_policy_reference_model_dict + ) # Verify the model instances are equivalent assert instance_group_manager_policy_reference_model == instance_group_manager_policy_reference_model2 @@ -63742,17 +66197,25 @@ def test_instance_group_manager_reference_serialization(self): # Construct a json representation of a InstanceGroupManagerReference model instance_group_manager_reference_model_json = {} instance_group_manager_reference_model_json['deleted'] = deleted_model - instance_group_manager_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instance_groups/1e09281b-f177-46fb-baf1-bc152b2e391a/managers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727' + instance_group_manager_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instance_groups/1e09281b-f177-46fb-baf1-bc152b2e391a/managers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727' + ) instance_group_manager_reference_model_json['id'] = '1e09281b-f177-46fb-baf1-bc152b2e391a' instance_group_manager_reference_model_json['name'] = 'my-instance-group-manager' # Construct a model instance of InstanceGroupManagerReference by calling from_dict on the json representation - instance_group_manager_reference_model = InstanceGroupManagerReference.from_dict(instance_group_manager_reference_model_json) + instance_group_manager_reference_model = InstanceGroupManagerReference.from_dict( + instance_group_manager_reference_model_json + ) assert instance_group_manager_reference_model != False # Construct a model instance of InstanceGroupManagerReference by calling from_dict on the json representation - instance_group_manager_reference_model_dict = InstanceGroupManagerReference.from_dict(instance_group_manager_reference_model_json).__dict__ - instance_group_manager_reference_model2 = InstanceGroupManagerReference(**instance_group_manager_reference_model_dict) + instance_group_manager_reference_model_dict = InstanceGroupManagerReference.from_dict( + instance_group_manager_reference_model_json + ).__dict__ + instance_group_manager_reference_model2 = InstanceGroupManagerReference( + **instance_group_manager_reference_model_dict + ) # Verify the model instances are equivalent assert instance_group_manager_reference_model == instance_group_manager_reference_model2 @@ -63777,19 +66240,32 @@ def test_instance_group_manager_scheduled_action_group_serialization(self): instance_group_manager_scheduled_action_group_model_json['membership_count'] = 10 # Construct a model instance of InstanceGroupManagerScheduledActionGroup by calling from_dict on the json representation - instance_group_manager_scheduled_action_group_model = InstanceGroupManagerScheduledActionGroup.from_dict(instance_group_manager_scheduled_action_group_model_json) + instance_group_manager_scheduled_action_group_model = InstanceGroupManagerScheduledActionGroup.from_dict( + instance_group_manager_scheduled_action_group_model_json + ) assert instance_group_manager_scheduled_action_group_model != False # Construct a model instance of InstanceGroupManagerScheduledActionGroup by calling from_dict on the json representation - instance_group_manager_scheduled_action_group_model_dict = InstanceGroupManagerScheduledActionGroup.from_dict(instance_group_manager_scheduled_action_group_model_json).__dict__ - instance_group_manager_scheduled_action_group_model2 = InstanceGroupManagerScheduledActionGroup(**instance_group_manager_scheduled_action_group_model_dict) + instance_group_manager_scheduled_action_group_model_dict = InstanceGroupManagerScheduledActionGroup.from_dict( + instance_group_manager_scheduled_action_group_model_json + ).__dict__ + instance_group_manager_scheduled_action_group_model2 = InstanceGroupManagerScheduledActionGroup( + **instance_group_manager_scheduled_action_group_model_dict + ) # Verify the model instances are equivalent - assert instance_group_manager_scheduled_action_group_model == instance_group_manager_scheduled_action_group_model2 + assert ( + instance_group_manager_scheduled_action_group_model == instance_group_manager_scheduled_action_group_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_group_manager_scheduled_action_group_model_json2 = instance_group_manager_scheduled_action_group_model.to_dict() - assert instance_group_manager_scheduled_action_group_model_json2 == instance_group_manager_scheduled_action_group_model_json + instance_group_manager_scheduled_action_group_model_json2 = ( + instance_group_manager_scheduled_action_group_model.to_dict() + ) + assert ( + instance_group_manager_scheduled_action_group_model_json2 + == instance_group_manager_scheduled_action_group_model_json + ) class TestModel_InstanceGroupManagerScheduledActionGroupPrototype: @@ -63807,19 +66283,39 @@ def test_instance_group_manager_scheduled_action_group_prototype_serialization(s instance_group_manager_scheduled_action_group_prototype_model_json['membership_count'] = 10 # Construct a model instance of InstanceGroupManagerScheduledActionGroupPrototype by calling from_dict on the json representation - instance_group_manager_scheduled_action_group_prototype_model = InstanceGroupManagerScheduledActionGroupPrototype.from_dict(instance_group_manager_scheduled_action_group_prototype_model_json) + instance_group_manager_scheduled_action_group_prototype_model = ( + InstanceGroupManagerScheduledActionGroupPrototype.from_dict( + instance_group_manager_scheduled_action_group_prototype_model_json + ) + ) assert instance_group_manager_scheduled_action_group_prototype_model != False # Construct a model instance of InstanceGroupManagerScheduledActionGroupPrototype by calling from_dict on the json representation - instance_group_manager_scheduled_action_group_prototype_model_dict = InstanceGroupManagerScheduledActionGroupPrototype.from_dict(instance_group_manager_scheduled_action_group_prototype_model_json).__dict__ - instance_group_manager_scheduled_action_group_prototype_model2 = InstanceGroupManagerScheduledActionGroupPrototype(**instance_group_manager_scheduled_action_group_prototype_model_dict) + instance_group_manager_scheduled_action_group_prototype_model_dict = ( + InstanceGroupManagerScheduledActionGroupPrototype.from_dict( + instance_group_manager_scheduled_action_group_prototype_model_json + ).__dict__ + ) + instance_group_manager_scheduled_action_group_prototype_model2 = ( + InstanceGroupManagerScheduledActionGroupPrototype( + **instance_group_manager_scheduled_action_group_prototype_model_dict + ) + ) # Verify the model instances are equivalent - assert instance_group_manager_scheduled_action_group_prototype_model == instance_group_manager_scheduled_action_group_prototype_model2 + assert ( + instance_group_manager_scheduled_action_group_prototype_model + == instance_group_manager_scheduled_action_group_prototype_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_group_manager_scheduled_action_group_prototype_model_json2 = instance_group_manager_scheduled_action_group_prototype_model.to_dict() - assert instance_group_manager_scheduled_action_group_prototype_model_json2 == instance_group_manager_scheduled_action_group_prototype_model_json + instance_group_manager_scheduled_action_group_prototype_model_json2 = ( + instance_group_manager_scheduled_action_group_prototype_model.to_dict() + ) + assert ( + instance_group_manager_scheduled_action_group_prototype_model_json2 + == instance_group_manager_scheduled_action_group_prototype_model_json + ) class TestModel_InstanceGroupMembership: @@ -63838,29 +66334,41 @@ def test_instance_group_membership_serialization(self): deleted_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#deleted-resources' instance_reference_model = {} # InstanceReference - instance_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::instance:0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' + instance_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::instance:0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' + ) instance_reference_model['deleted'] = deleted_model - instance_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' + instance_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' + ) instance_reference_model['id'] = '0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' instance_reference_model['name'] = 'my-instance' instance_template_reference_model = {} # InstanceTemplateReference - instance_template_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::instance-template:1e09281b-f177-46fb-baf1-bc152b2e391a' + instance_template_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::instance-template:1e09281b-f177-46fb-baf1-bc152b2e391a' + ) instance_template_reference_model['deleted'] = deleted_model - instance_template_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instance/templates/1e09281b-f177-46fb-baf1-bc152b2e391a' + instance_template_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instance/templates/1e09281b-f177-46fb-baf1-bc152b2e391a' + ) instance_template_reference_model['id'] = 'a6b1a881-2ce8-41a3-80fc-36316a73f803' instance_template_reference_model['name'] = 'my-instance-template' load_balancer_pool_member_reference_model = {} # LoadBalancerPoolMemberReference load_balancer_pool_member_reference_model['deleted'] = deleted_model - load_balancer_pool_member_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/pools/70294e14-4e61-11e8-bcf4-0242ac110004/members/80294e14-4e61-11e8-bcf4-0242ac110004' + load_balancer_pool_member_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/pools/70294e14-4e61-11e8-bcf4-0242ac110004/members/80294e14-4e61-11e8-bcf4-0242ac110004' + ) load_balancer_pool_member_reference_model['id'] = '70294e14-4e61-11e8-bcf4-0242ac110004' # Construct a json representation of a InstanceGroupMembership model instance_group_membership_model_json = {} instance_group_membership_model_json['created_at'] = '2019-01-01T12:00:00Z' instance_group_membership_model_json['delete_instance_on_membership_delete'] = True - instance_group_membership_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instance_groups/1e09281b-f177-46fb-baf1-bc152b2e391a/memberships/8b002d86-601f-11ea-898b-000c29475bed' + instance_group_membership_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instance_groups/1e09281b-f177-46fb-baf1-bc152b2e391a/memberships/8b002d86-601f-11ea-898b-000c29475bed' + ) instance_group_membership_model_json['id'] = '1e09281b-f177-46fb-baf1-bc152b2e391a' instance_group_membership_model_json['instance'] = instance_reference_model instance_group_membership_model_json['instance_template'] = instance_template_reference_model @@ -63874,7 +66382,9 @@ def test_instance_group_membership_serialization(self): assert instance_group_membership_model != False # Construct a model instance of InstanceGroupMembership by calling from_dict on the json representation - instance_group_membership_model_dict = InstanceGroupMembership.from_dict(instance_group_membership_model_json).__dict__ + instance_group_membership_model_dict = InstanceGroupMembership.from_dict( + instance_group_membership_model_json + ).__dict__ instance_group_membership_model2 = InstanceGroupMembership(**instance_group_membership_model_dict) # Verify the model instances are equivalent @@ -63898,34 +66408,48 @@ def test_instance_group_membership_collection_serialization(self): # Construct dict forms of any model objects needed in order to build this model. page_link_model = {} # PageLink - page_link_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instance_groups/7241e2a8-601f-11ea-8503-000c29475bed/memberships?limit=20' + page_link_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instance_groups/7241e2a8-601f-11ea-8503-000c29475bed/memberships?limit=20' + ) deleted_model = {} # Deleted deleted_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#deleted-resources' instance_reference_model = {} # InstanceReference - instance_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::instance:0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' + instance_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::instance:0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' + ) instance_reference_model['deleted'] = deleted_model - instance_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' + instance_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' + ) instance_reference_model['id'] = '0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' instance_reference_model['name'] = 'my-instance' instance_template_reference_model = {} # InstanceTemplateReference - instance_template_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::instance-template:1e09281b-f177-46fb-baf1-bc152b2e391a' + instance_template_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::instance-template:1e09281b-f177-46fb-baf1-bc152b2e391a' + ) instance_template_reference_model['deleted'] = deleted_model - instance_template_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instance/templates/1e09281b-f177-46fb-baf1-bc152b2e391a' + instance_template_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instance/templates/1e09281b-f177-46fb-baf1-bc152b2e391a' + ) instance_template_reference_model['id'] = 'a6b1a881-2ce8-41a3-80fc-36316a73f803' instance_template_reference_model['name'] = 'my-instance-template' load_balancer_pool_member_reference_model = {} # LoadBalancerPoolMemberReference load_balancer_pool_member_reference_model['deleted'] = deleted_model - load_balancer_pool_member_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/pools/70294e14-4e61-11e8-bcf4-0242ac110004/members/80294e14-4e61-11e8-bcf4-0242ac110004' + load_balancer_pool_member_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/pools/70294e14-4e61-11e8-bcf4-0242ac110004/members/80294e14-4e61-11e8-bcf4-0242ac110004' + ) load_balancer_pool_member_reference_model['id'] = '70294e14-4e61-11e8-bcf4-0242ac110004' instance_group_membership_model = {} # InstanceGroupMembership instance_group_membership_model['created_at'] = '2019-01-01T12:00:00Z' instance_group_membership_model['delete_instance_on_membership_delete'] = True - instance_group_membership_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instance_groups/1e09281b-f177-46fb-baf1-bc152b2e391a/memberships/8b002d86-601f-11ea-898b-000c29475bed' + instance_group_membership_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instance_groups/1e09281b-f177-46fb-baf1-bc152b2e391a/memberships/8b002d86-601f-11ea-898b-000c29475bed' + ) instance_group_membership_model['id'] = '1e09281b-f177-46fb-baf1-bc152b2e391a' instance_group_membership_model['instance'] = instance_reference_model instance_group_membership_model['instance_template'] = instance_template_reference_model @@ -63943,12 +66467,18 @@ def test_instance_group_membership_collection_serialization(self): instance_group_membership_collection_model_json['total_count'] = 132 # Construct a model instance of InstanceGroupMembershipCollection by calling from_dict on the json representation - instance_group_membership_collection_model = InstanceGroupMembershipCollection.from_dict(instance_group_membership_collection_model_json) + instance_group_membership_collection_model = InstanceGroupMembershipCollection.from_dict( + instance_group_membership_collection_model_json + ) assert instance_group_membership_collection_model != False # Construct a model instance of InstanceGroupMembershipCollection by calling from_dict on the json representation - instance_group_membership_collection_model_dict = InstanceGroupMembershipCollection.from_dict(instance_group_membership_collection_model_json).__dict__ - instance_group_membership_collection_model2 = InstanceGroupMembershipCollection(**instance_group_membership_collection_model_dict) + instance_group_membership_collection_model_dict = InstanceGroupMembershipCollection.from_dict( + instance_group_membership_collection_model_json + ).__dict__ + instance_group_membership_collection_model2 = InstanceGroupMembershipCollection( + **instance_group_membership_collection_model_dict + ) # Verify the model instances are equivalent assert instance_group_membership_collection_model == instance_group_membership_collection_model2 @@ -63974,12 +66504,18 @@ def test_instance_group_membership_patch_serialization(self): instance_group_membership_patch_model_json['name'] = 'my-instance-group-membership' # Construct a model instance of InstanceGroupMembershipPatch by calling from_dict on the json representation - instance_group_membership_patch_model = InstanceGroupMembershipPatch.from_dict(instance_group_membership_patch_model_json) + instance_group_membership_patch_model = InstanceGroupMembershipPatch.from_dict( + instance_group_membership_patch_model_json + ) assert instance_group_membership_patch_model != False # Construct a model instance of InstanceGroupMembershipPatch by calling from_dict on the json representation - instance_group_membership_patch_model_dict = InstanceGroupMembershipPatch.from_dict(instance_group_membership_patch_model_json).__dict__ - instance_group_membership_patch_model2 = InstanceGroupMembershipPatch(**instance_group_membership_patch_model_dict) + instance_group_membership_patch_model_dict = InstanceGroupMembershipPatch.from_dict( + instance_group_membership_patch_model_json + ).__dict__ + instance_group_membership_patch_model2 = InstanceGroupMembershipPatch( + **instance_group_membership_patch_model_dict + ) # Verify the model instances are equivalent assert instance_group_membership_patch_model == instance_group_membership_patch_model2 @@ -64056,9 +66592,13 @@ def test_instance_group_reference_serialization(self): # Construct a json representation of a InstanceGroupReference model instance_group_reference_model_json = {} - instance_group_reference_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::instance-group:1e09281b-f177-46fb-baf1-bc152b2e391a' + instance_group_reference_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::instance-group:1e09281b-f177-46fb-baf1-bc152b2e391a' + ) instance_group_reference_model_json['deleted'] = deleted_model - instance_group_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instance_groups/1e09281b-f177-46fb-baf1-bc152b2e391a' + instance_group_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instance_groups/1e09281b-f177-46fb-baf1-bc152b2e391a' + ) instance_group_reference_model_json['id'] = '1e09281b-f177-46fb-baf1-bc152b2e391a' instance_group_reference_model_json['name'] = 'my-instance-group' @@ -64067,7 +66607,9 @@ def test_instance_group_reference_serialization(self): assert instance_group_reference_model != False # Construct a model instance of InstanceGroupReference by calling from_dict on the json representation - instance_group_reference_model_dict = InstanceGroupReference.from_dict(instance_group_reference_model_json).__dict__ + instance_group_reference_model_dict = InstanceGroupReference.from_dict( + instance_group_reference_model_json + ).__dict__ instance_group_reference_model2 = InstanceGroupReference(**instance_group_reference_model_dict) # Verify the model instances are equivalent @@ -64092,7 +66634,9 @@ def test_instance_health_reason_serialization(self): instance_health_reason_model_json = {} instance_health_reason_model_json['code'] = 'reservation_expired' instance_health_reason_model_json['message'] = 'The reservation cannot be used because it has expired.' - instance_health_reason_model_json['more_info'] = 'https://cloud.ibm.com/docs/vpc?topic=vpc-server-health-status-reasons' + instance_health_reason_model_json['more_info'] = ( + 'https://cloud.ibm.com/docs/vpc?topic=vpc-server-health-status-reasons' + ) # Construct a model instance of InstanceHealthReason by calling from_dict on the json representation instance_health_reason_model = InstanceHealthReason.from_dict(instance_health_reason_model_json) @@ -64123,7 +66667,9 @@ def test_instance_initialization_serialization(self): # Construct dict forms of any model objects needed in order to build this model. trusted_profile_reference_model = {} # TrustedProfileReference - trusted_profile_reference_model['crn'] = 'crn:v1:bluemix:public:iam-identity::a/aa2432b1fa4d4ace891e9b80fc104e34::profile:Profile-9fd84246-7df4-4667-94e4-8ecde51d5ac5' + trusted_profile_reference_model['crn'] = ( + 'crn:v1:bluemix:public:iam-identity::a/aa2432b1fa4d4ace891e9b80fc104e34::profile:Profile-9fd84246-7df4-4667-94e4-8ecde51d5ac5' + ) trusted_profile_reference_model['id'] = 'Profile-9fd84246-7df4-4667-94e4-8ecde51d5ac5' trusted_profile_reference_model['resource_type'] = 'trusted_profile' @@ -64135,10 +66681,14 @@ def test_instance_initialization_serialization(self): deleted_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#deleted-resources' key_reference_model = {} # KeyReference - key_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::key:r006-82679077-ac3b-4c10-be16-63e9c21f0f45' + key_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::key:r006-82679077-ac3b-4c10-be16-63e9c21f0f45' + ) key_reference_model['deleted'] = deleted_model key_reference_model['fingerprint'] = 'SHA256:RJ+YWs2kupwFGiJuLqY85twmcdLOUcjIc9cA6IR8n8E' - key_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/keys/r006-82679077-ac3b-4c10-be16-63e9c21f0f45' + key_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/keys/r006-82679077-ac3b-4c10-be16-63e9c21f0f45' + ) key_reference_model['id'] = 'r006-82679077-ac3b-4c10-be16-63e9c21f0f45' key_reference_model['name'] = 'my-key-1' @@ -64146,12 +66696,16 @@ def test_instance_initialization_serialization(self): key_identity_by_fingerprint_model['fingerprint'] = 'SHA256:yxavE4CIOL2NlsqcurRO3xGjkP6m/0mp8ugojH5yxlY' instance_initialization_password_model = {} # InstanceInitializationPassword - instance_initialization_password_model['encrypted_password'] = 'qQ+/YEApnl1ZtEgIrfprzb065307thTkzlnLqL5ICpesdbBN03dyCQ==' + instance_initialization_password_model['encrypted_password'] = ( + 'qQ+/YEApnl1ZtEgIrfprzb065307thTkzlnLqL5ICpesdbBN03dyCQ==' + ) instance_initialization_password_model['encryption_key'] = key_identity_by_fingerprint_model # Construct a json representation of a InstanceInitialization model instance_initialization_model_json = {} - instance_initialization_model_json['default_trusted_profile'] = instance_initialization_default_trusted_profile_model + instance_initialization_model_json['default_trusted_profile'] = ( + instance_initialization_default_trusted_profile_model + ) instance_initialization_model_json['keys'] = [key_reference_model] instance_initialization_model_json['password'] = instance_initialization_password_model @@ -64160,7 +66714,9 @@ def test_instance_initialization_serialization(self): assert instance_initialization_model != False # Construct a model instance of InstanceInitialization by calling from_dict on the json representation - instance_initialization_model_dict = InstanceInitialization.from_dict(instance_initialization_model_json).__dict__ + instance_initialization_model_dict = InstanceInitialization.from_dict( + instance_initialization_model_json + ).__dict__ instance_initialization_model2 = InstanceInitialization(**instance_initialization_model_dict) # Verify the model instances are equivalent @@ -64184,7 +66740,9 @@ def test_instance_initialization_default_trusted_profile_serialization(self): # Construct dict forms of any model objects needed in order to build this model. trusted_profile_reference_model = {} # TrustedProfileReference - trusted_profile_reference_model['crn'] = 'crn:v1:bluemix:public:iam-identity::a/aa2432b1fa4d4ace891e9b80fc104e34::profile:Profile-9fd84246-7df4-4667-94e4-8ecde51d5ac5' + trusted_profile_reference_model['crn'] = ( + 'crn:v1:bluemix:public:iam-identity::a/aa2432b1fa4d4ace891e9b80fc104e34::profile:Profile-9fd84246-7df4-4667-94e4-8ecde51d5ac5' + ) trusted_profile_reference_model['id'] = 'Profile-9fd84246-7df4-4667-94e4-8ecde51d5ac5' trusted_profile_reference_model['resource_type'] = 'trusted_profile' @@ -64194,19 +66752,35 @@ def test_instance_initialization_default_trusted_profile_serialization(self): instance_initialization_default_trusted_profile_model_json['target'] = trusted_profile_reference_model # Construct a model instance of InstanceInitializationDefaultTrustedProfile by calling from_dict on the json representation - instance_initialization_default_trusted_profile_model = InstanceInitializationDefaultTrustedProfile.from_dict(instance_initialization_default_trusted_profile_model_json) + instance_initialization_default_trusted_profile_model = InstanceInitializationDefaultTrustedProfile.from_dict( + instance_initialization_default_trusted_profile_model_json + ) assert instance_initialization_default_trusted_profile_model != False # Construct a model instance of InstanceInitializationDefaultTrustedProfile by calling from_dict on the json representation - instance_initialization_default_trusted_profile_model_dict = InstanceInitializationDefaultTrustedProfile.from_dict(instance_initialization_default_trusted_profile_model_json).__dict__ - instance_initialization_default_trusted_profile_model2 = InstanceInitializationDefaultTrustedProfile(**instance_initialization_default_trusted_profile_model_dict) + instance_initialization_default_trusted_profile_model_dict = ( + InstanceInitializationDefaultTrustedProfile.from_dict( + instance_initialization_default_trusted_profile_model_json + ).__dict__ + ) + instance_initialization_default_trusted_profile_model2 = InstanceInitializationDefaultTrustedProfile( + **instance_initialization_default_trusted_profile_model_dict + ) # Verify the model instances are equivalent - assert instance_initialization_default_trusted_profile_model == instance_initialization_default_trusted_profile_model2 + assert ( + instance_initialization_default_trusted_profile_model + == instance_initialization_default_trusted_profile_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_initialization_default_trusted_profile_model_json2 = instance_initialization_default_trusted_profile_model.to_dict() - assert instance_initialization_default_trusted_profile_model_json2 == instance_initialization_default_trusted_profile_model_json + instance_initialization_default_trusted_profile_model_json2 = ( + instance_initialization_default_trusted_profile_model.to_dict() + ) + assert ( + instance_initialization_default_trusted_profile_model_json2 + == instance_initialization_default_trusted_profile_model_json + ) class TestModel_InstanceInitializationPassword: @@ -64226,16 +66800,24 @@ def test_instance_initialization_password_serialization(self): # Construct a json representation of a InstanceInitializationPassword model instance_initialization_password_model_json = {} - instance_initialization_password_model_json['encrypted_password'] = 'qQ+/YEApnl1ZtEgIrfprzb065307thTkzlnLqL5ICpesdbBN03dyCQ==' + instance_initialization_password_model_json['encrypted_password'] = ( + 'qQ+/YEApnl1ZtEgIrfprzb065307thTkzlnLqL5ICpesdbBN03dyCQ==' + ) instance_initialization_password_model_json['encryption_key'] = key_identity_by_fingerprint_model # Construct a model instance of InstanceInitializationPassword by calling from_dict on the json representation - instance_initialization_password_model = InstanceInitializationPassword.from_dict(instance_initialization_password_model_json) + instance_initialization_password_model = InstanceInitializationPassword.from_dict( + instance_initialization_password_model_json + ) assert instance_initialization_password_model != False # Construct a model instance of InstanceInitializationPassword by calling from_dict on the json representation - instance_initialization_password_model_dict = InstanceInitializationPassword.from_dict(instance_initialization_password_model_json).__dict__ - instance_initialization_password_model2 = InstanceInitializationPassword(**instance_initialization_password_model_dict) + instance_initialization_password_model_dict = InstanceInitializationPassword.from_dict( + instance_initialization_password_model_json + ).__dict__ + instance_initialization_password_model2 = InstanceInitializationPassword( + **instance_initialization_password_model_dict + ) # Verify the model instances are equivalent assert instance_initialization_password_model == instance_initialization_password_model2 @@ -64258,7 +66840,9 @@ def test_instance_lifecycle_reason_serialization(self): # Construct a json representation of a InstanceLifecycleReason model instance_lifecycle_reason_model_json = {} instance_lifecycle_reason_model_json['code'] = 'resource_suspended_by_provider' - instance_lifecycle_reason_model_json['message'] = 'The resource has been suspended. Contact IBM support with the CRN for next steps.' + instance_lifecycle_reason_model_json['message'] = ( + 'The resource has been suspended. Contact IBM support with the CRN for next steps.' + ) instance_lifecycle_reason_model_json['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#resource-suspension' # Construct a model instance of InstanceLifecycleReason by calling from_dict on the json representation @@ -64266,7 +66850,9 @@ def test_instance_lifecycle_reason_serialization(self): assert instance_lifecycle_reason_model != False # Construct a model instance of InstanceLifecycleReason by calling from_dict on the json representation - instance_lifecycle_reason_model_dict = InstanceLifecycleReason.from_dict(instance_lifecycle_reason_model_json).__dict__ + instance_lifecycle_reason_model_dict = InstanceLifecycleReason.from_dict( + instance_lifecycle_reason_model_json + ).__dict__ instance_lifecycle_reason_model2 = InstanceLifecycleReason(**instance_lifecycle_reason_model_dict) # Verify the model instances are equivalent @@ -64298,7 +66884,9 @@ def test_instance_metadata_service_serialization(self): assert instance_metadata_service_model != False # Construct a model instance of InstanceMetadataService by calling from_dict on the json representation - instance_metadata_service_model_dict = InstanceMetadataService.from_dict(instance_metadata_service_model_json).__dict__ + instance_metadata_service_model_dict = InstanceMetadataService.from_dict( + instance_metadata_service_model_json + ).__dict__ instance_metadata_service_model2 = InstanceMetadataService(**instance_metadata_service_model_dict) # Verify the model instances are equivalent @@ -64326,12 +66914,18 @@ def test_instance_metadata_service_patch_serialization(self): instance_metadata_service_patch_model_json['response_hop_limit'] = 1 # Construct a model instance of InstanceMetadataServicePatch by calling from_dict on the json representation - instance_metadata_service_patch_model = InstanceMetadataServicePatch.from_dict(instance_metadata_service_patch_model_json) + instance_metadata_service_patch_model = InstanceMetadataServicePatch.from_dict( + instance_metadata_service_patch_model_json + ) assert instance_metadata_service_patch_model != False # Construct a model instance of InstanceMetadataServicePatch by calling from_dict on the json representation - instance_metadata_service_patch_model_dict = InstanceMetadataServicePatch.from_dict(instance_metadata_service_patch_model_json).__dict__ - instance_metadata_service_patch_model2 = InstanceMetadataServicePatch(**instance_metadata_service_patch_model_dict) + instance_metadata_service_patch_model_dict = InstanceMetadataServicePatch.from_dict( + instance_metadata_service_patch_model_json + ).__dict__ + instance_metadata_service_patch_model2 = InstanceMetadataServicePatch( + **instance_metadata_service_patch_model_dict + ) # Verify the model instances are equivalent assert instance_metadata_service_patch_model == instance_metadata_service_patch_model2 @@ -64358,12 +66952,18 @@ def test_instance_metadata_service_prototype_serialization(self): instance_metadata_service_prototype_model_json['response_hop_limit'] = 2 # Construct a model instance of InstanceMetadataServicePrototype by calling from_dict on the json representation - instance_metadata_service_prototype_model = InstanceMetadataServicePrototype.from_dict(instance_metadata_service_prototype_model_json) + instance_metadata_service_prototype_model = InstanceMetadataServicePrototype.from_dict( + instance_metadata_service_prototype_model_json + ) assert instance_metadata_service_prototype_model != False # Construct a model instance of InstanceMetadataServicePrototype by calling from_dict on the json representation - instance_metadata_service_prototype_model_dict = InstanceMetadataServicePrototype.from_dict(instance_metadata_service_prototype_model_json).__dict__ - instance_metadata_service_prototype_model2 = InstanceMetadataServicePrototype(**instance_metadata_service_prototype_model_dict) + instance_metadata_service_prototype_model_dict = InstanceMetadataServicePrototype.from_dict( + instance_metadata_service_prototype_model_json + ).__dict__ + instance_metadata_service_prototype_model2 = InstanceMetadataServicePrototype( + **instance_metadata_service_prototype_model_dict + ) # Verify the model instances are equivalent assert instance_metadata_service_prototype_model == instance_metadata_service_prototype_model2 @@ -64391,22 +66991,34 @@ def test_instance_network_attachment_serialization(self): reserved_ip_reference_model = {} # ReservedIPReference reserved_ip_reference_model['address'] = '10.0.1.5' reserved_ip_reference_model['deleted'] = deleted_model - reserved_ip_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + reserved_ip_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + ) reserved_ip_reference_model['id'] = '0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' reserved_ip_reference_model['name'] = 'my-reserved-ip' reserved_ip_reference_model['resource_type'] = 'subnet_reserved_ip' subnet_reference_model = {} # SubnetReference - subnet_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['deleted'] = deleted_model - subnet_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['id'] = '0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' subnet_reference_model['name'] = 'my-subnet' subnet_reference_model['resource_type'] = 'subnet' - virtual_network_interface_reference_attachment_context_model = {} # VirtualNetworkInterfaceReferenceAttachmentContext - virtual_network_interface_reference_attachment_context_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::virtual-network-interface:0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' - virtual_network_interface_reference_attachment_context_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/virtual_network_interfaces/0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + virtual_network_interface_reference_attachment_context_model = ( + {} + ) # VirtualNetworkInterfaceReferenceAttachmentContext + virtual_network_interface_reference_attachment_context_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::virtual-network-interface:0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + ) + virtual_network_interface_reference_attachment_context_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/virtual_network_interfaces/0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + ) virtual_network_interface_reference_attachment_context_model['id'] = '0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' virtual_network_interface_reference_attachment_context_model['name'] = 'my-virtual-network-interface' virtual_network_interface_reference_attachment_context_model['resource_type'] = 'virtual_network_interface' @@ -64414,7 +67026,9 @@ def test_instance_network_attachment_serialization(self): # Construct a json representation of a InstanceNetworkAttachment model instance_network_attachment_model_json = {} instance_network_attachment_model_json['created_at'] = '2019-01-01T12:00:00Z' - instance_network_attachment_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/network_attachments/0717-d54eb633-98ea-459d-aa00-6a8e780175a7' + instance_network_attachment_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/network_attachments/0717-d54eb633-98ea-459d-aa00-6a8e780175a7' + ) instance_network_attachment_model_json['id'] = '0717-d54eb633-98ea-459d-aa00-6a8e780175a7' instance_network_attachment_model_json['lifecycle_state'] = 'stable' instance_network_attachment_model_json['name'] = 'my-instance-network-attachment' @@ -64423,14 +67037,18 @@ def test_instance_network_attachment_serialization(self): instance_network_attachment_model_json['resource_type'] = 'instance_network_attachment' instance_network_attachment_model_json['subnet'] = subnet_reference_model instance_network_attachment_model_json['type'] = 'primary' - instance_network_attachment_model_json['virtual_network_interface'] = virtual_network_interface_reference_attachment_context_model + instance_network_attachment_model_json['virtual_network_interface'] = ( + virtual_network_interface_reference_attachment_context_model + ) # Construct a model instance of InstanceNetworkAttachment by calling from_dict on the json representation instance_network_attachment_model = InstanceNetworkAttachment.from_dict(instance_network_attachment_model_json) assert instance_network_attachment_model != False # Construct a model instance of InstanceNetworkAttachment by calling from_dict on the json representation - instance_network_attachment_model_dict = InstanceNetworkAttachment.from_dict(instance_network_attachment_model_json).__dict__ + instance_network_attachment_model_dict = InstanceNetworkAttachment.from_dict( + instance_network_attachment_model_json + ).__dict__ instance_network_attachment_model2 = InstanceNetworkAttachment(**instance_network_attachment_model_dict) # Verify the model instances are equivalent @@ -64459,29 +67077,43 @@ def test_instance_network_attachment_collection_serialization(self): reserved_ip_reference_model = {} # ReservedIPReference reserved_ip_reference_model['address'] = '10.0.1.5' reserved_ip_reference_model['deleted'] = deleted_model - reserved_ip_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + reserved_ip_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + ) reserved_ip_reference_model['id'] = '0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' reserved_ip_reference_model['name'] = 'my-reserved-ip' reserved_ip_reference_model['resource_type'] = 'subnet_reserved_ip' subnet_reference_model = {} # SubnetReference - subnet_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['deleted'] = deleted_model - subnet_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['id'] = '0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' subnet_reference_model['name'] = 'my-subnet' subnet_reference_model['resource_type'] = 'subnet' - virtual_network_interface_reference_attachment_context_model = {} # VirtualNetworkInterfaceReferenceAttachmentContext - virtual_network_interface_reference_attachment_context_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::virtual-network-interface:0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' - virtual_network_interface_reference_attachment_context_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/virtual_network_interfaces/0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + virtual_network_interface_reference_attachment_context_model = ( + {} + ) # VirtualNetworkInterfaceReferenceAttachmentContext + virtual_network_interface_reference_attachment_context_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::virtual-network-interface:0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + ) + virtual_network_interface_reference_attachment_context_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/virtual_network_interfaces/0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + ) virtual_network_interface_reference_attachment_context_model['id'] = '0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' virtual_network_interface_reference_attachment_context_model['name'] = 'my-virtual-network-interface' virtual_network_interface_reference_attachment_context_model['resource_type'] = 'virtual_network_interface' instance_network_attachment_model = {} # InstanceNetworkAttachment instance_network_attachment_model['created_at'] = '2023-09-30T23:42:32.993000Z' - instance_network_attachment_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/network_attachments/0717-d54eb633-98ea-459d-aa00-6a8e780175a7' + instance_network_attachment_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/network_attachments/0717-d54eb633-98ea-459d-aa00-6a8e780175a7' + ) instance_network_attachment_model['id'] = '0717-d54eb633-98ea-459d-aa00-6a8e780175a7' instance_network_attachment_model['lifecycle_state'] = 'stable' instance_network_attachment_model['name'] = 'my-instance-network-attachment' @@ -64490,19 +67122,27 @@ def test_instance_network_attachment_collection_serialization(self): instance_network_attachment_model['resource_type'] = 'instance_network_attachment' instance_network_attachment_model['subnet'] = subnet_reference_model instance_network_attachment_model['type'] = 'primary' - instance_network_attachment_model['virtual_network_interface'] = virtual_network_interface_reference_attachment_context_model + instance_network_attachment_model['virtual_network_interface'] = ( + virtual_network_interface_reference_attachment_context_model + ) # Construct a json representation of a InstanceNetworkAttachmentCollection model instance_network_attachment_collection_model_json = {} instance_network_attachment_collection_model_json['network_attachments'] = [instance_network_attachment_model] # Construct a model instance of InstanceNetworkAttachmentCollection by calling from_dict on the json representation - instance_network_attachment_collection_model = InstanceNetworkAttachmentCollection.from_dict(instance_network_attachment_collection_model_json) + instance_network_attachment_collection_model = InstanceNetworkAttachmentCollection.from_dict( + instance_network_attachment_collection_model_json + ) assert instance_network_attachment_collection_model != False # Construct a model instance of InstanceNetworkAttachmentCollection by calling from_dict on the json representation - instance_network_attachment_collection_model_dict = InstanceNetworkAttachmentCollection.from_dict(instance_network_attachment_collection_model_json).__dict__ - instance_network_attachment_collection_model2 = InstanceNetworkAttachmentCollection(**instance_network_attachment_collection_model_dict) + instance_network_attachment_collection_model_dict = InstanceNetworkAttachmentCollection.from_dict( + instance_network_attachment_collection_model_json + ).__dict__ + instance_network_attachment_collection_model2 = InstanceNetworkAttachmentCollection( + **instance_network_attachment_collection_model_dict + ) # Verify the model instances are equivalent assert instance_network_attachment_collection_model == instance_network_attachment_collection_model2 @@ -64527,12 +67167,18 @@ def test_instance_network_attachment_patch_serialization(self): instance_network_attachment_patch_model_json['name'] = 'my-instance-network-attachment-updated' # Construct a model instance of InstanceNetworkAttachmentPatch by calling from_dict on the json representation - instance_network_attachment_patch_model = InstanceNetworkAttachmentPatch.from_dict(instance_network_attachment_patch_model_json) + instance_network_attachment_patch_model = InstanceNetworkAttachmentPatch.from_dict( + instance_network_attachment_patch_model_json + ) assert instance_network_attachment_patch_model != False # Construct a model instance of InstanceNetworkAttachmentPatch by calling from_dict on the json representation - instance_network_attachment_patch_model_dict = InstanceNetworkAttachmentPatch.from_dict(instance_network_attachment_patch_model_json).__dict__ - instance_network_attachment_patch_model2 = InstanceNetworkAttachmentPatch(**instance_network_attachment_patch_model_dict) + instance_network_attachment_patch_model_dict = InstanceNetworkAttachmentPatch.from_dict( + instance_network_attachment_patch_model_json + ).__dict__ + instance_network_attachment_patch_model2 = InstanceNetworkAttachmentPatch( + **instance_network_attachment_patch_model_dict + ) # Verify the model instances are equivalent assert instance_network_attachment_patch_model == instance_network_attachment_patch_model2 @@ -64554,12 +67200,16 @@ def test_instance_network_attachment_prototype_serialization(self): # Construct dict forms of any model objects needed in order to build this model. - virtual_network_interface_ip_prototype_model = {} # VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext + virtual_network_interface_ip_prototype_model = ( + {} + ) # VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext virtual_network_interface_ip_prototype_model['address'] = '10.0.0.5' virtual_network_interface_ip_prototype_model['auto_delete'] = False virtual_network_interface_ip_prototype_model['name'] = 'my-reserved-ip' - virtual_network_interface_primary_ip_prototype_model = {} # VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext + virtual_network_interface_primary_ip_prototype_model = ( + {} + ) # VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext virtual_network_interface_primary_ip_prototype_model['address'] = '10.0.0.5' virtual_network_interface_primary_ip_prototype_model['auto_delete'] = False virtual_network_interface_primary_ip_prototype_model['name'] = 'my-reserved-ip' @@ -64573,30 +67223,48 @@ def test_instance_network_attachment_prototype_serialization(self): subnet_identity_model = {} # SubnetIdentityById subnet_identity_model['id'] = '7ec86020-1c6e-4889-b3f0-a15f2e50f87e' - instance_network_attachment_prototype_virtual_network_interface_model = {} # InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeInstanceNetworkAttachmentContext + instance_network_attachment_prototype_virtual_network_interface_model = ( + {} + ) # InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeInstanceNetworkAttachmentContext instance_network_attachment_prototype_virtual_network_interface_model['allow_ip_spoofing'] = True instance_network_attachment_prototype_virtual_network_interface_model['auto_delete'] = False instance_network_attachment_prototype_virtual_network_interface_model['enable_infrastructure_nat'] = True - instance_network_attachment_prototype_virtual_network_interface_model['ips'] = [virtual_network_interface_ip_prototype_model] + instance_network_attachment_prototype_virtual_network_interface_model['ips'] = [ + virtual_network_interface_ip_prototype_model + ] instance_network_attachment_prototype_virtual_network_interface_model['name'] = 'my-virtual-network-interface' - instance_network_attachment_prototype_virtual_network_interface_model['primary_ip'] = virtual_network_interface_primary_ip_prototype_model + instance_network_attachment_prototype_virtual_network_interface_model['primary_ip'] = ( + virtual_network_interface_primary_ip_prototype_model + ) instance_network_attachment_prototype_virtual_network_interface_model['protocol_state_filtering_mode'] = 'auto' - instance_network_attachment_prototype_virtual_network_interface_model['resource_group'] = resource_group_identity_model - instance_network_attachment_prototype_virtual_network_interface_model['security_groups'] = [security_group_identity_model] + instance_network_attachment_prototype_virtual_network_interface_model['resource_group'] = ( + resource_group_identity_model + ) + instance_network_attachment_prototype_virtual_network_interface_model['security_groups'] = [ + security_group_identity_model + ] instance_network_attachment_prototype_virtual_network_interface_model['subnet'] = subnet_identity_model # Construct a json representation of a InstanceNetworkAttachmentPrototype model instance_network_attachment_prototype_model_json = {} instance_network_attachment_prototype_model_json['name'] = 'my-instance-network-attachment' - instance_network_attachment_prototype_model_json['virtual_network_interface'] = instance_network_attachment_prototype_virtual_network_interface_model + instance_network_attachment_prototype_model_json['virtual_network_interface'] = ( + instance_network_attachment_prototype_virtual_network_interface_model + ) # Construct a model instance of InstanceNetworkAttachmentPrototype by calling from_dict on the json representation - instance_network_attachment_prototype_model = InstanceNetworkAttachmentPrototype.from_dict(instance_network_attachment_prototype_model_json) + instance_network_attachment_prototype_model = InstanceNetworkAttachmentPrototype.from_dict( + instance_network_attachment_prototype_model_json + ) assert instance_network_attachment_prototype_model != False # Construct a model instance of InstanceNetworkAttachmentPrototype by calling from_dict on the json representation - instance_network_attachment_prototype_model_dict = InstanceNetworkAttachmentPrototype.from_dict(instance_network_attachment_prototype_model_json).__dict__ - instance_network_attachment_prototype_model2 = InstanceNetworkAttachmentPrototype(**instance_network_attachment_prototype_model_dict) + instance_network_attachment_prototype_model_dict = InstanceNetworkAttachmentPrototype.from_dict( + instance_network_attachment_prototype_model_json + ).__dict__ + instance_network_attachment_prototype_model2 = InstanceNetworkAttachmentPrototype( + **instance_network_attachment_prototype_model_dict + ) # Verify the model instances are equivalent assert instance_network_attachment_prototype_model == instance_network_attachment_prototype_model2 @@ -64624,22 +67292,34 @@ def test_instance_network_attachment_reference_serialization(self): reserved_ip_reference_model = {} # ReservedIPReference reserved_ip_reference_model['address'] = '10.0.1.5' reserved_ip_reference_model['deleted'] = deleted_model - reserved_ip_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + reserved_ip_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + ) reserved_ip_reference_model['id'] = '0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' reserved_ip_reference_model['name'] = 'my-reserved-ip' reserved_ip_reference_model['resource_type'] = 'subnet_reserved_ip' subnet_reference_model = {} # SubnetReference - subnet_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['deleted'] = deleted_model - subnet_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['id'] = '0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' subnet_reference_model['name'] = 'my-subnet' subnet_reference_model['resource_type'] = 'subnet' - virtual_network_interface_reference_attachment_context_model = {} # VirtualNetworkInterfaceReferenceAttachmentContext - virtual_network_interface_reference_attachment_context_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::virtual-network-interface:0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' - virtual_network_interface_reference_attachment_context_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/virtual_network_interfaces/0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + virtual_network_interface_reference_attachment_context_model = ( + {} + ) # VirtualNetworkInterfaceReferenceAttachmentContext + virtual_network_interface_reference_attachment_context_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::virtual-network-interface:0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + ) + virtual_network_interface_reference_attachment_context_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/virtual_network_interfaces/0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + ) virtual_network_interface_reference_attachment_context_model['id'] = '0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' virtual_network_interface_reference_attachment_context_model['name'] = 'my-virtual-network-interface' virtual_network_interface_reference_attachment_context_model['resource_type'] = 'virtual_network_interface' @@ -64647,21 +67327,31 @@ def test_instance_network_attachment_reference_serialization(self): # Construct a json representation of a InstanceNetworkAttachmentReference model instance_network_attachment_reference_model_json = {} instance_network_attachment_reference_model_json['deleted'] = deleted_model - instance_network_attachment_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/network_attachments/0717-d54eb633-98ea-459d-aa00-6a8e780175a7' + instance_network_attachment_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/network_attachments/0717-d54eb633-98ea-459d-aa00-6a8e780175a7' + ) instance_network_attachment_reference_model_json['id'] = '0717-d54eb633-98ea-459d-aa00-6a8e780175a7' instance_network_attachment_reference_model_json['name'] = 'my-instance-network-attachment' instance_network_attachment_reference_model_json['primary_ip'] = reserved_ip_reference_model instance_network_attachment_reference_model_json['resource_type'] = 'instance_network_attachment' instance_network_attachment_reference_model_json['subnet'] = subnet_reference_model - instance_network_attachment_reference_model_json['virtual_network_interface'] = virtual_network_interface_reference_attachment_context_model + instance_network_attachment_reference_model_json['virtual_network_interface'] = ( + virtual_network_interface_reference_attachment_context_model + ) # Construct a model instance of InstanceNetworkAttachmentReference by calling from_dict on the json representation - instance_network_attachment_reference_model = InstanceNetworkAttachmentReference.from_dict(instance_network_attachment_reference_model_json) + instance_network_attachment_reference_model = InstanceNetworkAttachmentReference.from_dict( + instance_network_attachment_reference_model_json + ) assert instance_network_attachment_reference_model != False # Construct a model instance of InstanceNetworkAttachmentReference by calling from_dict on the json representation - instance_network_attachment_reference_model_dict = InstanceNetworkAttachmentReference.from_dict(instance_network_attachment_reference_model_json).__dict__ - instance_network_attachment_reference_model2 = InstanceNetworkAttachmentReference(**instance_network_attachment_reference_model_dict) + instance_network_attachment_reference_model_dict = InstanceNetworkAttachmentReference.from_dict( + instance_network_attachment_reference_model_json + ).__dict__ + instance_network_attachment_reference_model2 = InstanceNetworkAttachmentReference( + **instance_network_attachment_reference_model_dict + ) # Verify the model instances are equivalent assert instance_network_attachment_reference_model == instance_network_attachment_reference_model2 @@ -64691,7 +67381,9 @@ def test_instance_patch_serialization(self): instance_metadata_service_patch_model['protocol'] = 'http' instance_metadata_service_patch_model['response_hop_limit'] = 1 - instance_placement_target_patch_model = {} # InstancePlacementTargetPatchDedicatedHostIdentityDedicatedHostIdentityById + instance_placement_target_patch_model = ( + {} + ) # InstancePlacementTargetPatchDedicatedHostIdentityDedicatedHostIdentityById instance_placement_target_patch_model['id'] = '0717-1e09281b-f177-46fb-baf1-bc152b2e391a' instance_patch_profile_model = {} # InstancePatchProfileInstanceProfileIdentityByName @@ -64748,10 +67440,14 @@ def test_instance_profile_serialization(self): instance_profile_bandwidth_model['type'] = 'fixed' instance_profile_bandwidth_model['value'] = 20000 - instance_profile_cluster_network_attachment_count_model = {} # InstanceProfileClusterNetworkAttachmentCountDependent + instance_profile_cluster_network_attachment_count_model = ( + {} + ) # InstanceProfileClusterNetworkAttachmentCountDependent instance_profile_cluster_network_attachment_count_model['type'] = 'dependent' - instance_profile_supported_confidential_compute_modes_model = {} # InstanceProfileSupportedConfidentialComputeModes + instance_profile_supported_confidential_compute_modes_model = ( + {} + ) # InstanceProfileSupportedConfidentialComputeModes instance_profile_supported_confidential_compute_modes_model['default'] = 'disabled' instance_profile_supported_confidential_compute_modes_model['type'] = 'enum' instance_profile_supported_confidential_compute_modes_model['values'] = ['disabled', 'sgx'] @@ -64827,7 +67523,9 @@ def test_instance_profile_serialization(self): instance_profile_supported_secure_boot_modes_model['values'] = [True] cluster_network_profile_reference_model = {} # ClusterNetworkProfileReference - cluster_network_profile_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/cluster_network/profiles/h100' + cluster_network_profile_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/cluster_network/profiles/h100' + ) cluster_network_profile_reference_model['name'] = 'h100' cluster_network_profile_reference_model['resource_type'] = 'cluster_network_profile' @@ -64852,8 +67550,12 @@ def test_instance_profile_serialization(self): # Construct a json representation of a InstanceProfile model instance_profile_model_json = {} instance_profile_model_json['bandwidth'] = instance_profile_bandwidth_model - instance_profile_model_json['cluster_network_attachment_count'] = instance_profile_cluster_network_attachment_count_model - instance_profile_model_json['confidential_compute_modes'] = instance_profile_supported_confidential_compute_modes_model + instance_profile_model_json['cluster_network_attachment_count'] = ( + instance_profile_cluster_network_attachment_count_model + ) + instance_profile_model_json['confidential_compute_modes'] = ( + instance_profile_supported_confidential_compute_modes_model + ) instance_profile_model_json['disks'] = [instance_profile_disk_model] instance_profile_model_json['family'] = 'balanced' instance_profile_model_json['gpu_count'] = instance_profile_gpu_model @@ -64910,10 +67612,14 @@ def test_instance_profile_collection_serialization(self): instance_profile_bandwidth_model['type'] = 'fixed' instance_profile_bandwidth_model['value'] = 20000 - instance_profile_cluster_network_attachment_count_model = {} # InstanceProfileClusterNetworkAttachmentCountDependent + instance_profile_cluster_network_attachment_count_model = ( + {} + ) # InstanceProfileClusterNetworkAttachmentCountDependent instance_profile_cluster_network_attachment_count_model['type'] = 'dependent' - instance_profile_supported_confidential_compute_modes_model = {} # InstanceProfileSupportedConfidentialComputeModes + instance_profile_supported_confidential_compute_modes_model = ( + {} + ) # InstanceProfileSupportedConfidentialComputeModes instance_profile_supported_confidential_compute_modes_model['default'] = 'disabled' instance_profile_supported_confidential_compute_modes_model['type'] = 'enum' instance_profile_supported_confidential_compute_modes_model['values'] = ['disabled', 'sgx'] @@ -64989,7 +67695,9 @@ def test_instance_profile_collection_serialization(self): instance_profile_supported_secure_boot_modes_model['values'] = [True] cluster_network_profile_reference_model = {} # ClusterNetworkProfileReference - cluster_network_profile_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/cluster_network/profiles/h100' + cluster_network_profile_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/cluster_network/profiles/h100' + ) cluster_network_profile_reference_model['name'] = 'h100' cluster_network_profile_reference_model['resource_type'] = 'cluster_network_profile' @@ -65013,8 +67721,12 @@ def test_instance_profile_collection_serialization(self): instance_profile_model = {} # InstanceProfile instance_profile_model['bandwidth'] = instance_profile_bandwidth_model - instance_profile_model['cluster_network_attachment_count'] = instance_profile_cluster_network_attachment_count_model - instance_profile_model['confidential_compute_modes'] = instance_profile_supported_confidential_compute_modes_model + instance_profile_model['cluster_network_attachment_count'] = ( + instance_profile_cluster_network_attachment_count_model + ) + instance_profile_model['confidential_compute_modes'] = ( + instance_profile_supported_confidential_compute_modes_model + ) instance_profile_model['disks'] = [instance_profile_disk_model] instance_profile_model['family'] = 'balanced' instance_profile_model['gpu_count'] = instance_profile_gpu_model @@ -65048,7 +67760,9 @@ def test_instance_profile_collection_serialization(self): assert instance_profile_collection_model != False # Construct a model instance of InstanceProfileCollection by calling from_dict on the json representation - instance_profile_collection_model_dict = InstanceProfileCollection.from_dict(instance_profile_collection_model_json).__dict__ + instance_profile_collection_model_dict = InstanceProfileCollection.from_dict( + instance_profile_collection_model_json + ).__dict__ instance_profile_collection_model2 = InstanceProfileCollection(**instance_profile_collection_model_dict) # Verify the model instances are equivalent @@ -65123,19 +67837,30 @@ def test_instance_profile_disk_supported_interfaces_serialization(self): instance_profile_disk_supported_interfaces_model_json['values'] = ['nvme'] # Construct a model instance of InstanceProfileDiskSupportedInterfaces by calling from_dict on the json representation - instance_profile_disk_supported_interfaces_model = InstanceProfileDiskSupportedInterfaces.from_dict(instance_profile_disk_supported_interfaces_model_json) + instance_profile_disk_supported_interfaces_model = InstanceProfileDiskSupportedInterfaces.from_dict( + instance_profile_disk_supported_interfaces_model_json + ) assert instance_profile_disk_supported_interfaces_model != False # Construct a model instance of InstanceProfileDiskSupportedInterfaces by calling from_dict on the json representation - instance_profile_disk_supported_interfaces_model_dict = InstanceProfileDiskSupportedInterfaces.from_dict(instance_profile_disk_supported_interfaces_model_json).__dict__ - instance_profile_disk_supported_interfaces_model2 = InstanceProfileDiskSupportedInterfaces(**instance_profile_disk_supported_interfaces_model_dict) + instance_profile_disk_supported_interfaces_model_dict = InstanceProfileDiskSupportedInterfaces.from_dict( + instance_profile_disk_supported_interfaces_model_json + ).__dict__ + instance_profile_disk_supported_interfaces_model2 = InstanceProfileDiskSupportedInterfaces( + **instance_profile_disk_supported_interfaces_model_dict + ) # Verify the model instances are equivalent assert instance_profile_disk_supported_interfaces_model == instance_profile_disk_supported_interfaces_model2 # Convert model instance back to dict and verify no loss of data - instance_profile_disk_supported_interfaces_model_json2 = instance_profile_disk_supported_interfaces_model.to_dict() - assert instance_profile_disk_supported_interfaces_model_json2 == instance_profile_disk_supported_interfaces_model_json + instance_profile_disk_supported_interfaces_model_json2 = ( + instance_profile_disk_supported_interfaces_model.to_dict() + ) + assert ( + instance_profile_disk_supported_interfaces_model_json2 + == instance_profile_disk_supported_interfaces_model_json + ) class TestModel_InstanceProfileGPUManufacturer: @@ -65154,12 +67879,18 @@ def test_instance_profile_gpu_manufacturer_serialization(self): instance_profile_gpu_manufacturer_model_json['values'] = ['nvidia'] # Construct a model instance of InstanceProfileGPUManufacturer by calling from_dict on the json representation - instance_profile_gpu_manufacturer_model = InstanceProfileGPUManufacturer.from_dict(instance_profile_gpu_manufacturer_model_json) + instance_profile_gpu_manufacturer_model = InstanceProfileGPUManufacturer.from_dict( + instance_profile_gpu_manufacturer_model_json + ) assert instance_profile_gpu_manufacturer_model != False # Construct a model instance of InstanceProfileGPUManufacturer by calling from_dict on the json representation - instance_profile_gpu_manufacturer_model_dict = InstanceProfileGPUManufacturer.from_dict(instance_profile_gpu_manufacturer_model_json).__dict__ - instance_profile_gpu_manufacturer_model2 = InstanceProfileGPUManufacturer(**instance_profile_gpu_manufacturer_model_dict) + instance_profile_gpu_manufacturer_model_dict = InstanceProfileGPUManufacturer.from_dict( + instance_profile_gpu_manufacturer_model_json + ).__dict__ + instance_profile_gpu_manufacturer_model2 = InstanceProfileGPUManufacturer( + **instance_profile_gpu_manufacturer_model_dict + ) # Verify the model instances are equivalent assert instance_profile_gpu_manufacturer_model == instance_profile_gpu_manufacturer_model2 @@ -65189,7 +67920,9 @@ def test_instance_profile_gpu_model_serialization(self): assert instance_profile_gpu_model_model != False # Construct a model instance of InstanceProfileGPUModel by calling from_dict on the json representation - instance_profile_gpu_model_model_dict = InstanceProfileGPUModel.from_dict(instance_profile_gpu_model_model_json).__dict__ + instance_profile_gpu_model_model_dict = InstanceProfileGPUModel.from_dict( + instance_profile_gpu_model_model_json + ).__dict__ instance_profile_gpu_model_model2 = InstanceProfileGPUModel(**instance_profile_gpu_model_model_dict) # Verify the model instances are equivalent @@ -65217,12 +67950,18 @@ def test_instance_profile_os_architecture_serialization(self): instance_profile_os_architecture_model_json['values'] = ['amd64'] # Construct a model instance of InstanceProfileOSArchitecture by calling from_dict on the json representation - instance_profile_os_architecture_model = InstanceProfileOSArchitecture.from_dict(instance_profile_os_architecture_model_json) + instance_profile_os_architecture_model = InstanceProfileOSArchitecture.from_dict( + instance_profile_os_architecture_model_json + ) assert instance_profile_os_architecture_model != False # Construct a model instance of InstanceProfileOSArchitecture by calling from_dict on the json representation - instance_profile_os_architecture_model_dict = InstanceProfileOSArchitecture.from_dict(instance_profile_os_architecture_model_json).__dict__ - instance_profile_os_architecture_model2 = InstanceProfileOSArchitecture(**instance_profile_os_architecture_model_dict) + instance_profile_os_architecture_model_dict = InstanceProfileOSArchitecture.from_dict( + instance_profile_os_architecture_model_json + ).__dict__ + instance_profile_os_architecture_model2 = InstanceProfileOSArchitecture( + **instance_profile_os_architecture_model_dict + ) # Verify the model instances are equivalent assert instance_profile_os_architecture_model == instance_profile_os_architecture_model2 @@ -65244,7 +67983,9 @@ def test_instance_profile_reference_serialization(self): # Construct a json representation of a InstanceProfileReference model instance_profile_reference_model_json = {} - instance_profile_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instance/profiles/bx2-4x16' + instance_profile_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instance/profiles/bx2-4x16' + ) instance_profile_reference_model_json['name'] = 'bx2-4x16' instance_profile_reference_model_json['resource_type'] = 'instance_profile' @@ -65253,7 +67994,9 @@ def test_instance_profile_reference_serialization(self): assert instance_profile_reference_model != False # Construct a model instance of InstanceProfileReference by calling from_dict on the json representation - instance_profile_reference_model_dict = InstanceProfileReference.from_dict(instance_profile_reference_model_json).__dict__ + instance_profile_reference_model_dict = InstanceProfileReference.from_dict( + instance_profile_reference_model_json + ).__dict__ instance_profile_reference_model2 = InstanceProfileReference(**instance_profile_reference_model_dict) # Verify the model instances are equivalent @@ -65280,12 +68023,18 @@ def test_instance_profile_reservation_terms_serialization(self): instance_profile_reservation_terms_model_json['values'] = ['one_year', 'three_year'] # Construct a model instance of InstanceProfileReservationTerms by calling from_dict on the json representation - instance_profile_reservation_terms_model = InstanceProfileReservationTerms.from_dict(instance_profile_reservation_terms_model_json) + instance_profile_reservation_terms_model = InstanceProfileReservationTerms.from_dict( + instance_profile_reservation_terms_model_json + ) assert instance_profile_reservation_terms_model != False # Construct a model instance of InstanceProfileReservationTerms by calling from_dict on the json representation - instance_profile_reservation_terms_model_dict = InstanceProfileReservationTerms.from_dict(instance_profile_reservation_terms_model_json).__dict__ - instance_profile_reservation_terms_model2 = InstanceProfileReservationTerms(**instance_profile_reservation_terms_model_dict) + instance_profile_reservation_terms_model_dict = InstanceProfileReservationTerms.from_dict( + instance_profile_reservation_terms_model_json + ).__dict__ + instance_profile_reservation_terms_model2 = InstanceProfileReservationTerms( + **instance_profile_reservation_terms_model_dict + ) # Verify the model instances are equivalent assert instance_profile_reservation_terms_model == instance_profile_reservation_terms_model2 @@ -65312,19 +68061,37 @@ def test_instance_profile_supported_confidential_compute_modes_serialization(sel instance_profile_supported_confidential_compute_modes_model_json['values'] = ['disabled', 'sgx'] # Construct a model instance of InstanceProfileSupportedConfidentialComputeModes by calling from_dict on the json representation - instance_profile_supported_confidential_compute_modes_model = InstanceProfileSupportedConfidentialComputeModes.from_dict(instance_profile_supported_confidential_compute_modes_model_json) + instance_profile_supported_confidential_compute_modes_model = ( + InstanceProfileSupportedConfidentialComputeModes.from_dict( + instance_profile_supported_confidential_compute_modes_model_json + ) + ) assert instance_profile_supported_confidential_compute_modes_model != False # Construct a model instance of InstanceProfileSupportedConfidentialComputeModes by calling from_dict on the json representation - instance_profile_supported_confidential_compute_modes_model_dict = InstanceProfileSupportedConfidentialComputeModes.from_dict(instance_profile_supported_confidential_compute_modes_model_json).__dict__ - instance_profile_supported_confidential_compute_modes_model2 = InstanceProfileSupportedConfidentialComputeModes(**instance_profile_supported_confidential_compute_modes_model_dict) + instance_profile_supported_confidential_compute_modes_model_dict = ( + InstanceProfileSupportedConfidentialComputeModes.from_dict( + instance_profile_supported_confidential_compute_modes_model_json + ).__dict__ + ) + instance_profile_supported_confidential_compute_modes_model2 = InstanceProfileSupportedConfidentialComputeModes( + **instance_profile_supported_confidential_compute_modes_model_dict + ) # Verify the model instances are equivalent - assert instance_profile_supported_confidential_compute_modes_model == instance_profile_supported_confidential_compute_modes_model2 + assert ( + instance_profile_supported_confidential_compute_modes_model + == instance_profile_supported_confidential_compute_modes_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_profile_supported_confidential_compute_modes_model_json2 = instance_profile_supported_confidential_compute_modes_model.to_dict() - assert instance_profile_supported_confidential_compute_modes_model_json2 == instance_profile_supported_confidential_compute_modes_model_json + instance_profile_supported_confidential_compute_modes_model_json2 = ( + instance_profile_supported_confidential_compute_modes_model.to_dict() + ) + assert ( + instance_profile_supported_confidential_compute_modes_model_json2 + == instance_profile_supported_confidential_compute_modes_model_json + ) class TestModel_InstanceProfileSupportedSecureBootModes: @@ -65344,19 +68111,30 @@ def test_instance_profile_supported_secure_boot_modes_serialization(self): instance_profile_supported_secure_boot_modes_model_json['values'] = [True] # Construct a model instance of InstanceProfileSupportedSecureBootModes by calling from_dict on the json representation - instance_profile_supported_secure_boot_modes_model = InstanceProfileSupportedSecureBootModes.from_dict(instance_profile_supported_secure_boot_modes_model_json) + instance_profile_supported_secure_boot_modes_model = InstanceProfileSupportedSecureBootModes.from_dict( + instance_profile_supported_secure_boot_modes_model_json + ) assert instance_profile_supported_secure_boot_modes_model != False # Construct a model instance of InstanceProfileSupportedSecureBootModes by calling from_dict on the json representation - instance_profile_supported_secure_boot_modes_model_dict = InstanceProfileSupportedSecureBootModes.from_dict(instance_profile_supported_secure_boot_modes_model_json).__dict__ - instance_profile_supported_secure_boot_modes_model2 = InstanceProfileSupportedSecureBootModes(**instance_profile_supported_secure_boot_modes_model_dict) + instance_profile_supported_secure_boot_modes_model_dict = InstanceProfileSupportedSecureBootModes.from_dict( + instance_profile_supported_secure_boot_modes_model_json + ).__dict__ + instance_profile_supported_secure_boot_modes_model2 = InstanceProfileSupportedSecureBootModes( + **instance_profile_supported_secure_boot_modes_model_dict + ) # Verify the model instances are equivalent assert instance_profile_supported_secure_boot_modes_model == instance_profile_supported_secure_boot_modes_model2 # Convert model instance back to dict and verify no loss of data - instance_profile_supported_secure_boot_modes_model_json2 = instance_profile_supported_secure_boot_modes_model.to_dict() - assert instance_profile_supported_secure_boot_modes_model_json2 == instance_profile_supported_secure_boot_modes_model_json + instance_profile_supported_secure_boot_modes_model_json2 = ( + instance_profile_supported_secure_boot_modes_model.to_dict() + ) + assert ( + instance_profile_supported_secure_boot_modes_model_json2 + == instance_profile_supported_secure_boot_modes_model_json + ) class TestModel_InstanceProfileVCPUArchitecture: @@ -65376,12 +68154,18 @@ def test_instance_profile_vcpu_architecture_serialization(self): instance_profile_vcpu_architecture_model_json['value'] = 'amd64' # Construct a model instance of InstanceProfileVCPUArchitecture by calling from_dict on the json representation - instance_profile_vcpu_architecture_model = InstanceProfileVCPUArchitecture.from_dict(instance_profile_vcpu_architecture_model_json) + instance_profile_vcpu_architecture_model = InstanceProfileVCPUArchitecture.from_dict( + instance_profile_vcpu_architecture_model_json + ) assert instance_profile_vcpu_architecture_model != False # Construct a model instance of InstanceProfileVCPUArchitecture by calling from_dict on the json representation - instance_profile_vcpu_architecture_model_dict = InstanceProfileVCPUArchitecture.from_dict(instance_profile_vcpu_architecture_model_json).__dict__ - instance_profile_vcpu_architecture_model2 = InstanceProfileVCPUArchitecture(**instance_profile_vcpu_architecture_model_dict) + instance_profile_vcpu_architecture_model_dict = InstanceProfileVCPUArchitecture.from_dict( + instance_profile_vcpu_architecture_model_json + ).__dict__ + instance_profile_vcpu_architecture_model2 = InstanceProfileVCPUArchitecture( + **instance_profile_vcpu_architecture_model_dict + ) # Verify the model instances are equivalent assert instance_profile_vcpu_architecture_model == instance_profile_vcpu_architecture_model2 @@ -65408,12 +68192,18 @@ def test_instance_profile_vcpu_manufacturer_serialization(self): instance_profile_vcpu_manufacturer_model_json['value'] = 'intel' # Construct a model instance of InstanceProfileVCPUManufacturer by calling from_dict on the json representation - instance_profile_vcpu_manufacturer_model = InstanceProfileVCPUManufacturer.from_dict(instance_profile_vcpu_manufacturer_model_json) + instance_profile_vcpu_manufacturer_model = InstanceProfileVCPUManufacturer.from_dict( + instance_profile_vcpu_manufacturer_model_json + ) assert instance_profile_vcpu_manufacturer_model != False # Construct a model instance of InstanceProfileVCPUManufacturer by calling from_dict on the json representation - instance_profile_vcpu_manufacturer_model_dict = InstanceProfileVCPUManufacturer.from_dict(instance_profile_vcpu_manufacturer_model_json).__dict__ - instance_profile_vcpu_manufacturer_model2 = InstanceProfileVCPUManufacturer(**instance_profile_vcpu_manufacturer_model_dict) + instance_profile_vcpu_manufacturer_model_dict = InstanceProfileVCPUManufacturer.from_dict( + instance_profile_vcpu_manufacturer_model_json + ).__dict__ + instance_profile_vcpu_manufacturer_model2 = InstanceProfileVCPUManufacturer( + **instance_profile_vcpu_manufacturer_model_dict + ) # Verify the model instances are equivalent assert instance_profile_vcpu_manufacturer_model == instance_profile_vcpu_manufacturer_model2 @@ -65440,9 +68230,13 @@ def test_instance_reference_serialization(self): # Construct a json representation of a InstanceReference model instance_reference_model_json = {} - instance_reference_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::instance:0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' + instance_reference_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::instance:0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' + ) instance_reference_model_json['deleted'] = deleted_model - instance_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' + instance_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' + ) instance_reference_model_json['id'] = '0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' instance_reference_model_json['name'] = 'my-instance' @@ -65478,9 +68272,13 @@ def test_instance_reservation_affinity_serialization(self): deleted_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#deleted-resources' reservation_reference_model = {} # ReservationReference - reservation_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::reservation:0717-ba49df72-37b8-43ac-98da-f8e029de0e63' + reservation_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::reservation:0717-ba49df72-37b8-43ac-98da-f8e029de0e63' + ) reservation_reference_model['deleted'] = deleted_model - reservation_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/reservations/0717-ba49df72-37b8-43ac-98da-f8e029de0e63' + reservation_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/reservations/0717-ba49df72-37b8-43ac-98da-f8e029de0e63' + ) reservation_reference_model['id'] = '0717-ba49df72-37b8-43ac-98da-f8e029de0e63' reservation_reference_model['name'] = 'my-reservation' reservation_reference_model['resource_type'] = 'reservation' @@ -65491,11 +68289,15 @@ def test_instance_reservation_affinity_serialization(self): instance_reservation_affinity_model_json['pool'] = [reservation_reference_model] # Construct a model instance of InstanceReservationAffinity by calling from_dict on the json representation - instance_reservation_affinity_model = InstanceReservationAffinity.from_dict(instance_reservation_affinity_model_json) + instance_reservation_affinity_model = InstanceReservationAffinity.from_dict( + instance_reservation_affinity_model_json + ) assert instance_reservation_affinity_model != False # Construct a model instance of InstanceReservationAffinity by calling from_dict on the json representation - instance_reservation_affinity_model_dict = InstanceReservationAffinity.from_dict(instance_reservation_affinity_model_json).__dict__ + instance_reservation_affinity_model_dict = InstanceReservationAffinity.from_dict( + instance_reservation_affinity_model_json + ).__dict__ instance_reservation_affinity_model2 = InstanceReservationAffinity(**instance_reservation_affinity_model_dict) # Verify the model instances are equivalent @@ -65527,12 +68329,18 @@ def test_instance_reservation_affinity_patch_serialization(self): instance_reservation_affinity_patch_model_json['pool'] = [reservation_identity_model] # Construct a model instance of InstanceReservationAffinityPatch by calling from_dict on the json representation - instance_reservation_affinity_patch_model = InstanceReservationAffinityPatch.from_dict(instance_reservation_affinity_patch_model_json) + instance_reservation_affinity_patch_model = InstanceReservationAffinityPatch.from_dict( + instance_reservation_affinity_patch_model_json + ) assert instance_reservation_affinity_patch_model != False # Construct a model instance of InstanceReservationAffinityPatch by calling from_dict on the json representation - instance_reservation_affinity_patch_model_dict = InstanceReservationAffinityPatch.from_dict(instance_reservation_affinity_patch_model_json).__dict__ - instance_reservation_affinity_patch_model2 = InstanceReservationAffinityPatch(**instance_reservation_affinity_patch_model_dict) + instance_reservation_affinity_patch_model_dict = InstanceReservationAffinityPatch.from_dict( + instance_reservation_affinity_patch_model_json + ).__dict__ + instance_reservation_affinity_patch_model2 = InstanceReservationAffinityPatch( + **instance_reservation_affinity_patch_model_dict + ) # Verify the model instances are equivalent assert instance_reservation_affinity_patch_model == instance_reservation_affinity_patch_model2 @@ -65563,12 +68371,18 @@ def test_instance_reservation_affinity_prototype_serialization(self): instance_reservation_affinity_prototype_model_json['pool'] = [reservation_identity_model] # Construct a model instance of InstanceReservationAffinityPrototype by calling from_dict on the json representation - instance_reservation_affinity_prototype_model = InstanceReservationAffinityPrototype.from_dict(instance_reservation_affinity_prototype_model_json) + instance_reservation_affinity_prototype_model = InstanceReservationAffinityPrototype.from_dict( + instance_reservation_affinity_prototype_model_json + ) assert instance_reservation_affinity_prototype_model != False # Construct a model instance of InstanceReservationAffinityPrototype by calling from_dict on the json representation - instance_reservation_affinity_prototype_model_dict = InstanceReservationAffinityPrototype.from_dict(instance_reservation_affinity_prototype_model_json).__dict__ - instance_reservation_affinity_prototype_model2 = InstanceReservationAffinityPrototype(**instance_reservation_affinity_prototype_model_dict) + instance_reservation_affinity_prototype_model_dict = InstanceReservationAffinityPrototype.from_dict( + instance_reservation_affinity_prototype_model_json + ).__dict__ + instance_reservation_affinity_prototype_model2 = InstanceReservationAffinityPrototype( + **instance_reservation_affinity_prototype_model_dict + ) # Verify the model instances are equivalent assert instance_reservation_affinity_prototype_model == instance_reservation_affinity_prototype_model2 @@ -65591,8 +68405,12 @@ def test_instance_status_reason_serialization(self): # Construct a json representation of a InstanceStatusReason model instance_status_reason_model_json = {} instance_status_reason_model_json['code'] = 'cannot_start_storage' - instance_status_reason_model_json['message'] = 'The virtual server instance is unusable because the encryption key for the boot volume\nhas been deleted' - instance_status_reason_model_json['more_info'] = 'https://cloud.ibm.com/docs/key-protect?topic=key-protect-restore-keys' + instance_status_reason_model_json['message'] = ( + 'The virtual server instance is unusable because the encryption key for the boot volume\nhas been deleted' + ) + instance_status_reason_model_json['more_info'] = ( + 'https://cloud.ibm.com/docs/key-protect?topic=key-protect-restore-keys' + ) # Construct a model instance of InstanceStatusReason by calling from_dict on the json representation instance_status_reason_model = InstanceStatusReason.from_dict(instance_status_reason_model_json) @@ -65628,7 +68446,9 @@ def test_instance_template_collection_serialization(self): instance_availability_policy_prototype_model = {} # InstanceAvailabilityPolicyPrototype instance_availability_policy_prototype_model['host_failure'] = 'restart' - cluster_network_interface_primary_ip_prototype_model = {} # ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPPrototypeClusterNetworkInterfacePrimaryIPContext + cluster_network_interface_primary_ip_prototype_model = ( + {} + ) # ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPPrototypeClusterNetworkInterfacePrimaryIPContext cluster_network_interface_primary_ip_prototype_model['address'] = '10.0.0.5' cluster_network_interface_primary_ip_prototype_model['auto_delete'] = False cluster_network_interface_primary_ip_prototype_model['name'] = 'my-cluster-network-subnet-reserved-ip' @@ -65636,14 +68456,26 @@ def test_instance_template_collection_serialization(self): cluster_network_subnet_identity_model = {} # ClusterNetworkSubnetIdentityById cluster_network_subnet_identity_model['id'] = '0717-7931845c-65c4-4b0a-80cd-7d9c1a6d7930' - instance_cluster_network_attachment_prototype_cluster_network_interface_model = {} # InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment + instance_cluster_network_attachment_prototype_cluster_network_interface_model = ( + {} + ) # InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment instance_cluster_network_attachment_prototype_cluster_network_interface_model['auto_delete'] = False - instance_cluster_network_attachment_prototype_cluster_network_interface_model['name'] = 'my-cluster-network-interface' - instance_cluster_network_attachment_prototype_cluster_network_interface_model['primary_ip'] = cluster_network_interface_primary_ip_prototype_model - instance_cluster_network_attachment_prototype_cluster_network_interface_model['subnet'] = cluster_network_subnet_identity_model + instance_cluster_network_attachment_prototype_cluster_network_interface_model['name'] = ( + 'my-cluster-network-interface' + ) + instance_cluster_network_attachment_prototype_cluster_network_interface_model['primary_ip'] = ( + cluster_network_interface_primary_ip_prototype_model + ) + instance_cluster_network_attachment_prototype_cluster_network_interface_model['subnet'] = ( + cluster_network_subnet_identity_model + ) - instance_cluster_network_attachment_prototype_instance_context_model = {} # InstanceClusterNetworkAttachmentPrototypeInstanceContext - instance_cluster_network_attachment_prototype_instance_context_model['cluster_network_interface'] = instance_cluster_network_attachment_prototype_cluster_network_interface_model + instance_cluster_network_attachment_prototype_instance_context_model = ( + {} + ) # InstanceClusterNetworkAttachmentPrototypeInstanceContext + instance_cluster_network_attachment_prototype_instance_context_model['cluster_network_interface'] = ( + instance_cluster_network_attachment_prototype_cluster_network_interface_model + ) instance_cluster_network_attachment_prototype_instance_context_model['name'] = 'my-instance-network-attachment' trusted_profile_identity_model = {} # TrustedProfileIdentityById @@ -65661,7 +68493,9 @@ def test_instance_template_collection_serialization(self): instance_metadata_service_prototype_model['protocol'] = 'https' instance_metadata_service_prototype_model['response_hop_limit'] = 2 - instance_placement_target_prototype_model = {} # InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityById + instance_placement_target_prototype_model = ( + {} + ) # InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityById instance_placement_target_prototype_model['id'] = '0717-1e09281b-f177-46fb-baf1-bc152b2e391a' instance_profile_identity_model = {} # InstanceProfileIdentityByName @@ -65675,7 +68509,9 @@ def test_instance_template_collection_serialization(self): instance_reservation_affinity_prototype_model['pool'] = [reservation_identity_model] resource_group_reference_model = {} # ResourceGroupReference - resource_group_reference_model['href'] = 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + resource_group_reference_model['href'] = ( + 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + ) resource_group_reference_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' resource_group_reference_model['name'] = 'my-resource-group' @@ -65691,7 +68527,9 @@ def test_instance_template_collection_serialization(self): vpc_identity_model['id'] = 'r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' encryption_key_identity_model = {} # EncryptionKeyIdentityByCRN - encryption_key_identity_model['crn'] = 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + encryption_key_identity_model['crn'] = ( + 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + ) volume_profile_identity_model = {} # VolumeProfileIdentityByName volume_profile_identity_model['name'] = 'general-purpose' @@ -65708,10 +68546,14 @@ def test_instance_template_collection_serialization(self): volume_prototype_instance_by_image_context_model['resource_group'] = resource_group_identity_model volume_prototype_instance_by_image_context_model['user_tags'] = [] - volume_attachment_prototype_instance_by_image_context_model = {} # VolumeAttachmentPrototypeInstanceByImageContext + volume_attachment_prototype_instance_by_image_context_model = ( + {} + ) # VolumeAttachmentPrototypeInstanceByImageContext volume_attachment_prototype_instance_by_image_context_model['delete_volume_on_instance_delete'] = True volume_attachment_prototype_instance_by_image_context_model['name'] = 'my-volume-attachment' - volume_attachment_prototype_instance_by_image_context_model['volume'] = volume_prototype_instance_by_image_context_model + volume_attachment_prototype_instance_by_image_context_model['volume'] = ( + volume_prototype_instance_by_image_context_model + ) image_identity_model = {} # ImageIdentityById image_identity_model['id'] = 'r006-02c73baf-9abb-493d-9e41-d0f1866f4051' @@ -65719,12 +68561,16 @@ def test_instance_template_collection_serialization(self): zone_identity_model = {} # ZoneIdentityByName zone_identity_model['name'] = 'us-south-1' - virtual_network_interface_ip_prototype_model = {} # VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext + virtual_network_interface_ip_prototype_model = ( + {} + ) # VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext virtual_network_interface_ip_prototype_model['address'] = '10.0.0.5' virtual_network_interface_ip_prototype_model['auto_delete'] = False virtual_network_interface_ip_prototype_model['name'] = 'my-reserved-ip' - virtual_network_interface_primary_ip_prototype_model = {} # VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext + virtual_network_interface_primary_ip_prototype_model = ( + {} + ) # VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext virtual_network_interface_primary_ip_prototype_model['address'] = '10.0.0.5' virtual_network_interface_primary_ip_prototype_model['auto_delete'] = False virtual_network_interface_primary_ip_prototype_model['name'] = 'my-reserved-ip' @@ -65735,31 +68581,51 @@ def test_instance_template_collection_serialization(self): subnet_identity_model = {} # SubnetIdentityById subnet_identity_model['id'] = '7ec86020-1c6e-4889-b3f0-a15f2e50f87e' - instance_network_attachment_prototype_virtual_network_interface_model = {} # InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeInstanceNetworkAttachmentContext + instance_network_attachment_prototype_virtual_network_interface_model = ( + {} + ) # InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeInstanceNetworkAttachmentContext instance_network_attachment_prototype_virtual_network_interface_model['allow_ip_spoofing'] = True instance_network_attachment_prototype_virtual_network_interface_model['auto_delete'] = False instance_network_attachment_prototype_virtual_network_interface_model['enable_infrastructure_nat'] = True - instance_network_attachment_prototype_virtual_network_interface_model['ips'] = [virtual_network_interface_ip_prototype_model] + instance_network_attachment_prototype_virtual_network_interface_model['ips'] = [ + virtual_network_interface_ip_prototype_model + ] instance_network_attachment_prototype_virtual_network_interface_model['name'] = 'my-virtual-network-interface' - instance_network_attachment_prototype_virtual_network_interface_model['primary_ip'] = virtual_network_interface_primary_ip_prototype_model + instance_network_attachment_prototype_virtual_network_interface_model['primary_ip'] = ( + virtual_network_interface_primary_ip_prototype_model + ) instance_network_attachment_prototype_virtual_network_interface_model['protocol_state_filtering_mode'] = 'auto' - instance_network_attachment_prototype_virtual_network_interface_model['resource_group'] = resource_group_identity_model - instance_network_attachment_prototype_virtual_network_interface_model['security_groups'] = [security_group_identity_model] + instance_network_attachment_prototype_virtual_network_interface_model['resource_group'] = ( + resource_group_identity_model + ) + instance_network_attachment_prototype_virtual_network_interface_model['security_groups'] = [ + security_group_identity_model + ] instance_network_attachment_prototype_virtual_network_interface_model['subnet'] = subnet_identity_model instance_network_attachment_prototype_model = {} # InstanceNetworkAttachmentPrototype instance_network_attachment_prototype_model['name'] = 'my-instance-network-attachment' - instance_network_attachment_prototype_model['virtual_network_interface'] = instance_network_attachment_prototype_virtual_network_interface_model + instance_network_attachment_prototype_model['virtual_network_interface'] = ( + instance_network_attachment_prototype_virtual_network_interface_model + ) - instance_template_model = {} # InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkAttachment + instance_template_model = ( + {} + ) # InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkAttachment instance_template_model['availability_policy'] = instance_availability_policy_prototype_model - instance_template_model['cluster_network_attachments'] = [instance_cluster_network_attachment_prototype_instance_context_model] + instance_template_model['cluster_network_attachments'] = [ + instance_cluster_network_attachment_prototype_instance_context_model + ] instance_template_model['confidential_compute_mode'] = 'disabled' instance_template_model['created_at'] = '2019-01-01T12:00:00Z' - instance_template_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::instance-template:1e09281b-f177-46fb-baf1-bc152b2e391a' + instance_template_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::instance-template:1e09281b-f177-46fb-baf1-bc152b2e391a' + ) instance_template_model['default_trusted_profile'] = instance_default_trusted_profile_prototype_model instance_template_model['enable_secure_boot'] = True - instance_template_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instance/templates/1e09281b-f177-46fb-baf1-bc152b2e391a' + instance_template_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instance/templates/1e09281b-f177-46fb-baf1-bc152b2e391a' + ) instance_template_model['id'] = 'a6b1a881-2ce8-41a3-80fc-36316a73f803' instance_template_model['keys'] = [key_identity_model] instance_template_model['metadata_service'] = instance_metadata_service_prototype_model @@ -65787,11 +68653,15 @@ def test_instance_template_collection_serialization(self): instance_template_collection_model_json['total_count'] = 132 # Construct a model instance of InstanceTemplateCollection by calling from_dict on the json representation - instance_template_collection_model = InstanceTemplateCollection.from_dict(instance_template_collection_model_json) + instance_template_collection_model = InstanceTemplateCollection.from_dict( + instance_template_collection_model_json + ) assert instance_template_collection_model != False # Construct a model instance of InstanceTemplateCollection by calling from_dict on the json representation - instance_template_collection_model_dict = InstanceTemplateCollection.from_dict(instance_template_collection_model_json).__dict__ + instance_template_collection_model_dict = InstanceTemplateCollection.from_dict( + instance_template_collection_model_json + ).__dict__ instance_template_collection_model2 = InstanceTemplateCollection(**instance_template_collection_model_dict) # Verify the model instances are equivalent @@ -65821,7 +68691,9 @@ def test_instance_template_patch_serialization(self): assert instance_template_patch_model != False # Construct a model instance of InstanceTemplatePatch by calling from_dict on the json representation - instance_template_patch_model_dict = InstanceTemplatePatch.from_dict(instance_template_patch_model_json).__dict__ + instance_template_patch_model_dict = InstanceTemplatePatch.from_dict( + instance_template_patch_model_json + ).__dict__ instance_template_patch_model2 = InstanceTemplatePatch(**instance_template_patch_model_dict) # Verify the model instances are equivalent @@ -65849,9 +68721,13 @@ def test_instance_template_reference_serialization(self): # Construct a json representation of a InstanceTemplateReference model instance_template_reference_model_json = {} - instance_template_reference_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::instance-template:1e09281b-f177-46fb-baf1-bc152b2e391a' + instance_template_reference_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::instance-template:1e09281b-f177-46fb-baf1-bc152b2e391a' + ) instance_template_reference_model_json['deleted'] = deleted_model - instance_template_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instance/templates/1e09281b-f177-46fb-baf1-bc152b2e391a' + instance_template_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instance/templates/1e09281b-f177-46fb-baf1-bc152b2e391a' + ) instance_template_reference_model_json['id'] = 'a6b1a881-2ce8-41a3-80fc-36316a73f803' instance_template_reference_model_json['name'] = 'my-instance-template' @@ -65860,7 +68736,9 @@ def test_instance_template_reference_serialization(self): assert instance_template_reference_model != False # Construct a model instance of InstanceTemplateReference by calling from_dict on the json representation - instance_template_reference_model_dict = InstanceTemplateReference.from_dict(instance_template_reference_model_json).__dict__ + instance_template_reference_model_dict = InstanceTemplateReference.from_dict( + instance_template_reference_model_json + ).__dict__ instance_template_reference_model2 = InstanceTemplateReference(**instance_template_reference_model_dict) # Verify the model instances are equivalent @@ -65916,20 +68794,26 @@ def test_key_serialization(self): # Construct dict forms of any model objects needed in order to build this model. resource_group_reference_model = {} # ResourceGroupReference - resource_group_reference_model['href'] = 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + resource_group_reference_model['href'] = ( + 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + ) resource_group_reference_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' resource_group_reference_model['name'] = 'Default' # Construct a json representation of a Key model key_model_json = {} key_model_json['created_at'] = '2019-01-01T12:00:00Z' - key_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::key:r006-82679077-ac3b-4c10-be16-63e9c21f0f45' + key_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::key:r006-82679077-ac3b-4c10-be16-63e9c21f0f45' + ) key_model_json['fingerprint'] = 'SHA256:yxavE4CIOL2NlsqcurRO3xGjkP6m/0mp8ugojH5yxlY' key_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/keys/r006-82679077-ac3b-4c10-be16-63e9c21f0f45' key_model_json['id'] = 'r006-82679077-ac3b-4c10-be16-63e9c21f0f45' key_model_json['length'] = 2048 key_model_json['name'] = 'my-key-1' - key_model_json['public_key'] = 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDDGe50Bxa5T5NDddrrtbx2Y4/VGbiCgXqnBsYToIUKoFSHTQl5IX3PasGnneKanhcLwWz5M5MoCRvhxTp66NKzIfAz7r+FX9rxgR+ZgcM253YAqOVeIpOU408simDZKriTlN8kYsXL7P34tsWuAJf4MgZtJAQxous/2byetpdCv8ddnT4X3ltOg9w+LqSCPYfNivqH00Eh7S1Ldz7I8aw5WOp5a+sQFP/RbwfpwHp+ny7DfeIOokcuI42tJkoBn7UsLTVpCSmXr2EDRlSWe/1M/iHNRBzaT3CK0+SwZWd2AEjePxSnWKNGIEUJDlUYp7hKhiQcgT5ZAnWU121oc5En' + key_model_json['public_key'] = ( + 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDDGe50Bxa5T5NDddrrtbx2Y4/VGbiCgXqnBsYToIUKoFSHTQl5IX3PasGnneKanhcLwWz5M5MoCRvhxTp66NKzIfAz7r+FX9rxgR+ZgcM253YAqOVeIpOU408simDZKriTlN8kYsXL7P34tsWuAJf4MgZtJAQxous/2byetpdCv8ddnT4X3ltOg9w+LqSCPYfNivqH00Eh7S1Ldz7I8aw5WOp5a+sQFP/RbwfpwHp+ny7DfeIOokcuI42tJkoBn7UsLTVpCSmXr2EDRlSWe/1M/iHNRBzaT3CK0+SwZWd2AEjePxSnWKNGIEUJDlUYp7hKhiQcgT5ZAnWU121oc5En' + ) key_model_json['resource_group'] = resource_group_reference_model key_model_json['type'] = 'ed25519' @@ -65965,19 +68849,25 @@ def test_key_collection_serialization(self): page_link_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/keys?limit=50' resource_group_reference_model = {} # ResourceGroupReference - resource_group_reference_model['href'] = 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + resource_group_reference_model['href'] = ( + 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + ) resource_group_reference_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' resource_group_reference_model['name'] = 'Default' key_model = {} # Key key_model['created_at'] = '2019-01-29T03:48:11Z' - key_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::key:r006-82679077-ac3b-4c10-be16-63e9c21f0f45' + key_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::key:r006-82679077-ac3b-4c10-be16-63e9c21f0f45' + ) key_model['fingerprint'] = 'SHA256:RJ+YWs2kupwFGiJuLqY85twmcdLOUcjIc9cA6IR8n8E' key_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/keys/r006-82679077-ac3b-4c10-be16-63e9c21f0f45' key_model['id'] = 'r006-82679077-ac3b-4c10-be16-63e9c21f0f45' key_model['length'] = 2048 key_model['name'] = 'my-key-1' - key_model['public_key'] = 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDDGe50Bxa5T5NDddrrtbx2Y4/VGbiCgXqnBsYToIUKoFSHTQl5IX3PasGnneKanhcLwWz5M5MoCRvhxTp66NKzIfAz7r+FX9rxgR+ZgcM253YAqOVeIpOU408simDZKriTlN8kYsXL7P34tsWuAJf4MgZtJAQxous/2byetpdCv8ddnT4X3ltOg9w+LqSCPYfNivqH00Eh7S1Ldz7I8aw5WOp5a+sQFP/RbwfpwHp+ny7DfeIOokcuI42tJkoBn7UsLTVpCSmXr2EDRlSWe/1M/iHNRBzaT3CK0+SwZWd2AEjePxSnWKNGIEUJDlUYp7hKhiQcgT5ZAnWU121oc5En' + key_model['public_key'] = ( + 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDDGe50Bxa5T5NDddrrtbx2Y4/VGbiCgXqnBsYToIUKoFSHTQl5IX3PasGnneKanhcLwWz5M5MoCRvhxTp66NKzIfAz7r+FX9rxgR+ZgcM253YAqOVeIpOU408simDZKriTlN8kYsXL7P34tsWuAJf4MgZtJAQxous/2byetpdCv8ddnT4X3ltOg9w+LqSCPYfNivqH00Eh7S1Ldz7I8aw5WOp5a+sQFP/RbwfpwHp+ny7DfeIOokcuI42tJkoBn7UsLTVpCSmXr2EDRlSWe/1M/iHNRBzaT3CK0+SwZWd2AEjePxSnWKNGIEUJDlUYp7hKhiQcgT5ZAnWU121oc5En' + ) key_model['resource_group'] = resource_group_reference_model key_model['type'] = 'rsa' @@ -66052,10 +68942,14 @@ def test_key_reference_serialization(self): # Construct a json representation of a KeyReference model key_reference_model_json = {} - key_reference_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::key:r006-82679077-ac3b-4c10-be16-63e9c21f0f45' + key_reference_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::key:r006-82679077-ac3b-4c10-be16-63e9c21f0f45' + ) key_reference_model_json['deleted'] = deleted_model key_reference_model_json['fingerprint'] = 'SHA256:yxavE4CIOL2NlsqcurRO3xGjkP6m/0mp8ugojH5yxlY' - key_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/keys/r006-82679077-ac3b-4c10-be16-63e9c21f0f45' + key_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/keys/r006-82679077-ac3b-4c10-be16-63e9c21f0f45' + ) key_reference_model_json['id'] = 'r006-82679077-ac3b-4c10-be16-63e9c21f0f45' key_reference_model_json['name'] = 'my-key-1' @@ -66090,19 +68984,30 @@ def test_legacy_cloud_object_storage_bucket_reference_serialization(self): legacy_cloud_object_storage_bucket_reference_model_json['name'] = 'bucket-27200-lwx4cfvcue' # Construct a model instance of LegacyCloudObjectStorageBucketReference by calling from_dict on the json representation - legacy_cloud_object_storage_bucket_reference_model = LegacyCloudObjectStorageBucketReference.from_dict(legacy_cloud_object_storage_bucket_reference_model_json) + legacy_cloud_object_storage_bucket_reference_model = LegacyCloudObjectStorageBucketReference.from_dict( + legacy_cloud_object_storage_bucket_reference_model_json + ) assert legacy_cloud_object_storage_bucket_reference_model != False # Construct a model instance of LegacyCloudObjectStorageBucketReference by calling from_dict on the json representation - legacy_cloud_object_storage_bucket_reference_model_dict = LegacyCloudObjectStorageBucketReference.from_dict(legacy_cloud_object_storage_bucket_reference_model_json).__dict__ - legacy_cloud_object_storage_bucket_reference_model2 = LegacyCloudObjectStorageBucketReference(**legacy_cloud_object_storage_bucket_reference_model_dict) + legacy_cloud_object_storage_bucket_reference_model_dict = LegacyCloudObjectStorageBucketReference.from_dict( + legacy_cloud_object_storage_bucket_reference_model_json + ).__dict__ + legacy_cloud_object_storage_bucket_reference_model2 = LegacyCloudObjectStorageBucketReference( + **legacy_cloud_object_storage_bucket_reference_model_dict + ) # Verify the model instances are equivalent assert legacy_cloud_object_storage_bucket_reference_model == legacy_cloud_object_storage_bucket_reference_model2 # Convert model instance back to dict and verify no loss of data - legacy_cloud_object_storage_bucket_reference_model_json2 = legacy_cloud_object_storage_bucket_reference_model.to_dict() - assert legacy_cloud_object_storage_bucket_reference_model_json2 == legacy_cloud_object_storage_bucket_reference_model_json + legacy_cloud_object_storage_bucket_reference_model_json2 = ( + legacy_cloud_object_storage_bucket_reference_model.to_dict() + ) + assert ( + legacy_cloud_object_storage_bucket_reference_model_json2 + == legacy_cloud_object_storage_bucket_reference_model_json + ) class TestModel_LoadBalancer: @@ -66118,7 +69023,9 @@ def test_load_balancer_serialization(self): # Construct dict forms of any model objects needed in order to build this model. dns_instance_reference_load_balancer_dns_context_model = {} # DNSInstanceReferenceLoadBalancerDNSContext - dns_instance_reference_load_balancer_dns_context_model['crn'] = 'crn:v1:bluemix:public:dns-svcs:global:a/bb1b52262f7441a586f49068482f1e60:f761b566-030a-4696-8649-cc9d09889e88::' + dns_instance_reference_load_balancer_dns_context_model['crn'] = ( + 'crn:v1:bluemix:public:dns-svcs:global:a/bb1b52262f7441a586f49068482f1e60:f761b566-030a-4696-8649-cc9d09889e88::' + ) dns_zone_reference_model = {} # DNSZoneReference dns_zone_reference_model['id'] = 'd66662cc-aa23-4fe1-9987-858487a61f45' @@ -66132,7 +69039,9 @@ def test_load_balancer_serialization(self): load_balancer_listener_reference_model = {} # LoadBalancerListenerReference load_balancer_listener_reference_model['deleted'] = deleted_model - load_balancer_listener_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/listeners/70294e14-4e61-11e8-bcf4-0242ac110004' + load_balancer_listener_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/listeners/70294e14-4e61-11e8-bcf4-0242ac110004' + ) load_balancer_listener_reference_model['id'] = '70294e14-4e61-11e8-bcf4-0242ac110004' load_balancer_logging_datapath_model = {} # LoadBalancerLoggingDatapath @@ -66143,42 +69052,58 @@ def test_load_balancer_serialization(self): load_balancer_pool_reference_model = {} # LoadBalancerPoolReference load_balancer_pool_reference_model['deleted'] = deleted_model - load_balancer_pool_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/pools/70294e14-4e61-11e8-bcf4-0242ac110004' + load_balancer_pool_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/pools/70294e14-4e61-11e8-bcf4-0242ac110004' + ) load_balancer_pool_reference_model['id'] = '70294e14-4e61-11e8-bcf4-0242ac110004' load_balancer_pool_reference_model['name'] = 'my-load-balancer-pool' reserved_ip_reference_model = {} # ReservedIPReference reserved_ip_reference_model['address'] = '192.168.3.4' reserved_ip_reference_model['deleted'] = deleted_model - reserved_ip_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-bea6a632-5e13-42a4-b4b8-31dc877abfe4/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + reserved_ip_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-bea6a632-5e13-42a4-b4b8-31dc877abfe4/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + ) reserved_ip_reference_model['id'] = '0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' reserved_ip_reference_model['name'] = 'my-reserved-ip' reserved_ip_reference_model['resource_type'] = 'subnet_reserved_ip' load_balancer_profile_reference_model = {} # LoadBalancerProfileReference load_balancer_profile_reference_model['family'] = 'network' - load_balancer_profile_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/load_balancer/profiles/network-fixed' + load_balancer_profile_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/load_balancer/profiles/network-fixed' + ) load_balancer_profile_reference_model['name'] = 'network-fixed' ip_model = {} # IP ip_model['address'] = '192.168.3.4' resource_group_reference_model = {} # ResourceGroupReference - resource_group_reference_model['href'] = 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + resource_group_reference_model['href'] = ( + 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + ) resource_group_reference_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' resource_group_reference_model['name'] = 'my-resource-group' security_group_reference_model = {} # SecurityGroupReference - security_group_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::security-group:r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + security_group_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::security-group:r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + ) security_group_reference_model['deleted'] = deleted_model - security_group_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + security_group_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + ) security_group_reference_model['id'] = 'r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' security_group_reference_model['name'] = 'my-security-group' subnet_reference_model = {} # SubnetReference - subnet_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['deleted'] = deleted_model - subnet_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['id'] = '0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' subnet_reference_model['name'] = 'my-subnet' subnet_reference_model['resource_type'] = 'subnet' @@ -66188,10 +69113,14 @@ def test_load_balancer_serialization(self): load_balancer_model_json['access_mode'] = 'private' load_balancer_model_json['availability'] = 'region' load_balancer_model_json['created_at'] = '2019-01-01T12:00:00Z' - load_balancer_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::load-balancer:dd754295-e9e0-4c9d-bf6c-58fbc59e5727' + load_balancer_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::load-balancer:dd754295-e9e0-4c9d-bf6c-58fbc59e5727' + ) load_balancer_model_json['dns'] = load_balancer_dns_model load_balancer_model_json['hostname'] = '6b88d615-us-south.lb.appdomain.cloud' - load_balancer_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727' + load_balancer_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727' + ) load_balancer_model_json['id'] = 'dd754295-e9e0-4c9d-bf6c-58fbc59e5727' load_balancer_model_json['instance_groups_supported'] = True load_balancer_model_json['is_private_path'] = True @@ -66246,7 +69175,9 @@ def test_load_balancer_collection_serialization(self): page_link_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers?limit=20' dns_instance_reference_load_balancer_dns_context_model = {} # DNSInstanceReferenceLoadBalancerDNSContext - dns_instance_reference_load_balancer_dns_context_model['crn'] = 'crn:v1:bluemix:public:dns-svcs:global:a/bb1b52262f7441a586f49068482f1e60:f761b566-030a-4696-8649-cc9d09889e88::' + dns_instance_reference_load_balancer_dns_context_model['crn'] = ( + 'crn:v1:bluemix:public:dns-svcs:global:a/bb1b52262f7441a586f49068482f1e60:f761b566-030a-4696-8649-cc9d09889e88::' + ) dns_zone_reference_model = {} # DNSZoneReference dns_zone_reference_model['id'] = 'd66662cc-aa23-4fe1-9987-858487a61f45' @@ -66260,7 +69191,9 @@ def test_load_balancer_collection_serialization(self): load_balancer_listener_reference_model = {} # LoadBalancerListenerReference load_balancer_listener_reference_model['deleted'] = deleted_model - load_balancer_listener_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/listeners/70294e14-4e61-11e8-bcf4-0242ac110004' + load_balancer_listener_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/listeners/70294e14-4e61-11e8-bcf4-0242ac110004' + ) load_balancer_listener_reference_model['id'] = '70294e14-4e61-11e8-bcf4-0242ac110004' load_balancer_logging_datapath_model = {} # LoadBalancerLoggingDatapath @@ -66271,42 +69204,58 @@ def test_load_balancer_collection_serialization(self): load_balancer_pool_reference_model = {} # LoadBalancerPoolReference load_balancer_pool_reference_model['deleted'] = deleted_model - load_balancer_pool_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/pools/70294e14-4e61-11e8-bcf4-0242ac110004' + load_balancer_pool_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/pools/70294e14-4e61-11e8-bcf4-0242ac110004' + ) load_balancer_pool_reference_model['id'] = '70294e14-4e61-11e8-bcf4-0242ac110004' load_balancer_pool_reference_model['name'] = 'my-load-balancer-pool' reserved_ip_reference_model = {} # ReservedIPReference reserved_ip_reference_model['address'] = '192.168.3.4' reserved_ip_reference_model['deleted'] = deleted_model - reserved_ip_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-bea6a632-5e13-42a4-b4b8-31dc877abfe4/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + reserved_ip_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-bea6a632-5e13-42a4-b4b8-31dc877abfe4/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + ) reserved_ip_reference_model['id'] = '0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' reserved_ip_reference_model['name'] = 'my-reserved-ip' reserved_ip_reference_model['resource_type'] = 'subnet_reserved_ip' load_balancer_profile_reference_model = {} # LoadBalancerProfileReference load_balancer_profile_reference_model['family'] = 'network' - load_balancer_profile_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/load_balancer/profiles/network-fixed' + load_balancer_profile_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/load_balancer/profiles/network-fixed' + ) load_balancer_profile_reference_model['name'] = 'network-fixed' ip_model = {} # IP ip_model['address'] = '192.168.3.4' resource_group_reference_model = {} # ResourceGroupReference - resource_group_reference_model['href'] = 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + resource_group_reference_model['href'] = ( + 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + ) resource_group_reference_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' resource_group_reference_model['name'] = 'my-resource-group' security_group_reference_model = {} # SecurityGroupReference - security_group_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::security-group:r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + security_group_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::security-group:r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + ) security_group_reference_model['deleted'] = deleted_model - security_group_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + security_group_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + ) security_group_reference_model['id'] = 'r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' security_group_reference_model['name'] = 'my-security-group' subnet_reference_model = {} # SubnetReference - subnet_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['deleted'] = deleted_model - subnet_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['id'] = '0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' subnet_reference_model['name'] = 'my-subnet' subnet_reference_model['resource_type'] = 'subnet' @@ -66315,10 +69264,14 @@ def test_load_balancer_collection_serialization(self): load_balancer_model['access_mode'] = 'private' load_balancer_model['availability'] = 'region' load_balancer_model['created_at'] = '2019-01-01T12:00:00Z' - load_balancer_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::load-balancer:dd754295-e9e0-4c9d-bf6c-58fbc59e5727' + load_balancer_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::load-balancer:dd754295-e9e0-4c9d-bf6c-58fbc59e5727' + ) load_balancer_model['dns'] = load_balancer_dns_model load_balancer_model['hostname'] = '6b88d615-us-south.lb.appdomain.cloud' - load_balancer_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727' + load_balancer_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727' + ) load_balancer_model['id'] = 'dd754295-e9e0-4c9d-bf6c-58fbc59e5727' load_balancer_model['instance_groups_supported'] = True load_balancer_model['is_private_path'] = True @@ -66354,7 +69307,9 @@ def test_load_balancer_collection_serialization(self): assert load_balancer_collection_model != False # Construct a model instance of LoadBalancerCollection by calling from_dict on the json representation - load_balancer_collection_model_dict = LoadBalancerCollection.from_dict(load_balancer_collection_model_json).__dict__ + load_balancer_collection_model_dict = LoadBalancerCollection.from_dict( + load_balancer_collection_model_json + ).__dict__ load_balancer_collection_model2 = LoadBalancerCollection(**load_balancer_collection_model_dict) # Verify the model instances are equivalent @@ -66378,7 +69333,9 @@ def test_load_balancer_dns_serialization(self): # Construct dict forms of any model objects needed in order to build this model. dns_instance_reference_load_balancer_dns_context_model = {} # DNSInstanceReferenceLoadBalancerDNSContext - dns_instance_reference_load_balancer_dns_context_model['crn'] = 'crn:v1:bluemix:public:dns-svcs:global:a/bb1b52262f7441a586f49068482f1e60:f761b566-030a-4696-8649-cc9d09889e88::' + dns_instance_reference_load_balancer_dns_context_model['crn'] = ( + 'crn:v1:bluemix:public:dns-svcs:global:a/bb1b52262f7441a586f49068482f1e60:f761b566-030a-4696-8649-cc9d09889e88::' + ) dns_zone_reference_model = {} # DNSZoneReference dns_zone_reference_model['id'] = 'd66662cc-aa23-4fe1-9987-858487a61f45' @@ -66417,7 +69374,9 @@ def test_load_balancer_dns_patch_serialization(self): # Construct dict forms of any model objects needed in order to build this model. dns_instance_identity_model = {} # DNSInstanceIdentityByCRN - dns_instance_identity_model['crn'] = 'crn:v1:bluemix:public:dns-svcs:global:a/bb1b52262f7441a586f49068482f1e60:f761b566-030a-4696-8649-cc9d09889e88::' + dns_instance_identity_model['crn'] = ( + 'crn:v1:bluemix:public:dns-svcs:global:a/bb1b52262f7441a586f49068482f1e60:f761b566-030a-4696-8649-cc9d09889e88::' + ) dns_zone_identity_model = {} # DNSZoneIdentityById dns_zone_identity_model['id'] = 'd66662cc-aa23-4fe1-9987-858487a61f45' @@ -66456,7 +69415,9 @@ def test_load_balancer_dns_prototype_serialization(self): # Construct dict forms of any model objects needed in order to build this model. dns_instance_identity_model = {} # DNSInstanceIdentityByCRN - dns_instance_identity_model['crn'] = 'crn:v1:bluemix:public:dns-svcs:global:a/bb1b52262f7441a586f49068482f1e60:f761b566-030a-4696-8649-cc9d09889e88::' + dns_instance_identity_model['crn'] = ( + 'crn:v1:bluemix:public:dns-svcs:global:a/bb1b52262f7441a586f49068482f1e60:f761b566-030a-4696-8649-cc9d09889e88::' + ) dns_zone_identity_model = {} # DNSZoneIdentityById dns_zone_identity_model['id'] = 'd66662cc-aa23-4fe1-9987-858487a61f45' @@ -66471,7 +69432,9 @@ def test_load_balancer_dns_prototype_serialization(self): assert load_balancer_dns_prototype_model != False # Construct a model instance of LoadBalancerDNSPrototype by calling from_dict on the json representation - load_balancer_dns_prototype_model_dict = LoadBalancerDNSPrototype.from_dict(load_balancer_dns_prototype_model_json).__dict__ + load_balancer_dns_prototype_model_dict = LoadBalancerDNSPrototype.from_dict( + load_balancer_dns_prototype_model_json + ).__dict__ load_balancer_dns_prototype_model2 = LoadBalancerDNSPrototype(**load_balancer_dns_prototype_model_dict) # Verify the model instances are equivalent @@ -66495,20 +69458,26 @@ def test_load_balancer_listener_serialization(self): # Construct dict forms of any model objects needed in order to build this model. certificate_instance_reference_model = {} # CertificateInstanceReference - certificate_instance_reference_model['crn'] = 'crn:v1:bluemix:public:secrets-manager:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:36fa422d-080d-4d83-8d2d-86851b4001df:secret:2e786aab-42fa-63ed-14f8-d66d552f4dd5' + certificate_instance_reference_model['crn'] = ( + 'crn:v1:bluemix:public:secrets-manager:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:36fa422d-080d-4d83-8d2d-86851b4001df:secret:2e786aab-42fa-63ed-14f8-d66d552f4dd5' + ) deleted_model = {} # Deleted deleted_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#deleted-resources' load_balancer_pool_reference_model = {} # LoadBalancerPoolReference load_balancer_pool_reference_model['deleted'] = deleted_model - load_balancer_pool_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/pools/70294e14-4e61-11e8-bcf4-0242ac110004' + load_balancer_pool_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/pools/70294e14-4e61-11e8-bcf4-0242ac110004' + ) load_balancer_pool_reference_model['id'] = '70294e14-4e61-11e8-bcf4-0242ac110004' load_balancer_pool_reference_model['name'] = 'my-load-balancer-pool' load_balancer_listener_reference_model = {} # LoadBalancerListenerReference load_balancer_listener_reference_model['deleted'] = deleted_model - load_balancer_listener_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/listeners/70294e14-4e61-11e8-bcf4-0242ac110004' + load_balancer_listener_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/listeners/70294e14-4e61-11e8-bcf4-0242ac110004' + ) load_balancer_listener_reference_model['id'] = '70294e14-4e61-11e8-bcf4-0242ac110004' load_balancer_listener_https_redirect_model = {} # LoadBalancerListenerHTTPSRedirect @@ -66518,7 +69487,9 @@ def test_load_balancer_listener_serialization(self): load_balancer_listener_policy_reference_model = {} # LoadBalancerListenerPolicyReference load_balancer_listener_policy_reference_model['deleted'] = deleted_model - load_balancer_listener_policy_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/listeners/70294e14-4e61-11e8-bcf4-0242ac110004/policies/f3187486-7b27-4c79-990c-47d33c0e2278' + load_balancer_listener_policy_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/listeners/70294e14-4e61-11e8-bcf4-0242ac110004/policies/f3187486-7b27-4c79-990c-47d33c0e2278' + ) load_balancer_listener_policy_reference_model['id'] = '70294e14-4e61-11e8-bcf4-0242ac110004' load_balancer_listener_policy_reference_model['name'] = 'my-policy' @@ -66529,7 +69500,9 @@ def test_load_balancer_listener_serialization(self): load_balancer_listener_model_json['connection_limit'] = 2000 load_balancer_listener_model_json['created_at'] = '2019-01-01T12:00:00Z' load_balancer_listener_model_json['default_pool'] = load_balancer_pool_reference_model - load_balancer_listener_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/listeners/70294e14-4e61-11e8-bcf4-0242ac110004' + load_balancer_listener_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/listeners/70294e14-4e61-11e8-bcf4-0242ac110004' + ) load_balancer_listener_model_json['https_redirect'] = load_balancer_listener_https_redirect_model load_balancer_listener_model_json['id'] = '70294e14-4e61-11e8-bcf4-0242ac110004' load_balancer_listener_model_json['idle_connection_timeout'] = 100 @@ -66569,20 +69542,26 @@ def test_load_balancer_listener_collection_serialization(self): # Construct dict forms of any model objects needed in order to build this model. certificate_instance_reference_model = {} # CertificateInstanceReference - certificate_instance_reference_model['crn'] = 'crn:v1:bluemix:public:secrets-manager:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:36fa422d-080d-4d83-8d2d-86851b4001df:secret:2e786aab-42fa-63ed-14f8-d66d552f4dd5' + certificate_instance_reference_model['crn'] = ( + 'crn:v1:bluemix:public:secrets-manager:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:36fa422d-080d-4d83-8d2d-86851b4001df:secret:2e786aab-42fa-63ed-14f8-d66d552f4dd5' + ) deleted_model = {} # Deleted deleted_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#deleted-resources' load_balancer_pool_reference_model = {} # LoadBalancerPoolReference load_balancer_pool_reference_model['deleted'] = deleted_model - load_balancer_pool_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/pools/70294e14-4e61-11e8-bcf4-0242ac110004' + load_balancer_pool_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/pools/70294e14-4e61-11e8-bcf4-0242ac110004' + ) load_balancer_pool_reference_model['id'] = '70294e14-4e61-11e8-bcf4-0242ac110004' load_balancer_pool_reference_model['name'] = 'my-load-balancer-pool' load_balancer_listener_reference_model = {} # LoadBalancerListenerReference load_balancer_listener_reference_model['deleted'] = deleted_model - load_balancer_listener_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/listeners/70294e14-4e61-11e8-bcf4-0242ac110004' + load_balancer_listener_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/listeners/70294e14-4e61-11e8-bcf4-0242ac110004' + ) load_balancer_listener_reference_model['id'] = '70294e14-4e61-11e8-bcf4-0242ac110004' load_balancer_listener_https_redirect_model = {} # LoadBalancerListenerHTTPSRedirect @@ -66592,7 +69571,9 @@ def test_load_balancer_listener_collection_serialization(self): load_balancer_listener_policy_reference_model = {} # LoadBalancerListenerPolicyReference load_balancer_listener_policy_reference_model['deleted'] = deleted_model - load_balancer_listener_policy_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/listeners/70294e14-4e61-11e8-bcf4-0242ac110004/policies/f3187486-7b27-4c79-990c-47d33c0e2278' + load_balancer_listener_policy_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/listeners/70294e14-4e61-11e8-bcf4-0242ac110004/policies/f3187486-7b27-4c79-990c-47d33c0e2278' + ) load_balancer_listener_policy_reference_model['id'] = '70294e14-4e61-11e8-bcf4-0242ac110004' load_balancer_listener_policy_reference_model['name'] = 'my-policy' @@ -66602,7 +69583,9 @@ def test_load_balancer_listener_collection_serialization(self): load_balancer_listener_model['connection_limit'] = 2000 load_balancer_listener_model['created_at'] = '2019-01-01T12:00:00Z' load_balancer_listener_model['default_pool'] = load_balancer_pool_reference_model - load_balancer_listener_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/listeners/70294e14-4e61-11e8-bcf4-0242ac110004' + load_balancer_listener_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/listeners/70294e14-4e61-11e8-bcf4-0242ac110004' + ) load_balancer_listener_model['https_redirect'] = load_balancer_listener_https_redirect_model load_balancer_listener_model['id'] = '70294e14-4e61-11e8-bcf4-0242ac110004' load_balancer_listener_model['idle_connection_timeout'] = 100 @@ -66618,12 +69601,18 @@ def test_load_balancer_listener_collection_serialization(self): load_balancer_listener_collection_model_json['listeners'] = [load_balancer_listener_model] # Construct a model instance of LoadBalancerListenerCollection by calling from_dict on the json representation - load_balancer_listener_collection_model = LoadBalancerListenerCollection.from_dict(load_balancer_listener_collection_model_json) + load_balancer_listener_collection_model = LoadBalancerListenerCollection.from_dict( + load_balancer_listener_collection_model_json + ) assert load_balancer_listener_collection_model != False # Construct a model instance of LoadBalancerListenerCollection by calling from_dict on the json representation - load_balancer_listener_collection_model_dict = LoadBalancerListenerCollection.from_dict(load_balancer_listener_collection_model_json).__dict__ - load_balancer_listener_collection_model2 = LoadBalancerListenerCollection(**load_balancer_listener_collection_model_dict) + load_balancer_listener_collection_model_dict = LoadBalancerListenerCollection.from_dict( + load_balancer_listener_collection_model_json + ).__dict__ + load_balancer_listener_collection_model2 = LoadBalancerListenerCollection( + **load_balancer_listener_collection_model_dict + ) # Verify the model instances are equivalent assert load_balancer_listener_collection_model == load_balancer_listener_collection_model2 @@ -66650,7 +69639,9 @@ def test_load_balancer_listener_https_redirect_serialization(self): load_balancer_listener_reference_model = {} # LoadBalancerListenerReference load_balancer_listener_reference_model['deleted'] = deleted_model - load_balancer_listener_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/listeners/70294e14-4e61-11e8-bcf4-0242ac110004' + load_balancer_listener_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/listeners/70294e14-4e61-11e8-bcf4-0242ac110004' + ) load_balancer_listener_reference_model['id'] = '70294e14-4e61-11e8-bcf4-0242ac110004' # Construct a json representation of a LoadBalancerListenerHTTPSRedirect model @@ -66660,12 +69651,18 @@ def test_load_balancer_listener_https_redirect_serialization(self): load_balancer_listener_https_redirect_model_json['uri'] = '/example?doc=get' # Construct a model instance of LoadBalancerListenerHTTPSRedirect by calling from_dict on the json representation - load_balancer_listener_https_redirect_model = LoadBalancerListenerHTTPSRedirect.from_dict(load_balancer_listener_https_redirect_model_json) + load_balancer_listener_https_redirect_model = LoadBalancerListenerHTTPSRedirect.from_dict( + load_balancer_listener_https_redirect_model_json + ) assert load_balancer_listener_https_redirect_model != False # Construct a model instance of LoadBalancerListenerHTTPSRedirect by calling from_dict on the json representation - load_balancer_listener_https_redirect_model_dict = LoadBalancerListenerHTTPSRedirect.from_dict(load_balancer_listener_https_redirect_model_json).__dict__ - load_balancer_listener_https_redirect_model2 = LoadBalancerListenerHTTPSRedirect(**load_balancer_listener_https_redirect_model_dict) + load_balancer_listener_https_redirect_model_dict = LoadBalancerListenerHTTPSRedirect.from_dict( + load_balancer_listener_https_redirect_model_json + ).__dict__ + load_balancer_listener_https_redirect_model2 = LoadBalancerListenerHTTPSRedirect( + **load_balancer_listener_https_redirect_model_dict + ) # Verify the model instances are equivalent assert load_balancer_listener_https_redirect_model == load_balancer_listener_https_redirect_model2 @@ -66697,19 +69694,30 @@ def test_load_balancer_listener_https_redirect_patch_serialization(self): load_balancer_listener_https_redirect_patch_model_json['uri'] = '/example?doc=get' # Construct a model instance of LoadBalancerListenerHTTPSRedirectPatch by calling from_dict on the json representation - load_balancer_listener_https_redirect_patch_model = LoadBalancerListenerHTTPSRedirectPatch.from_dict(load_balancer_listener_https_redirect_patch_model_json) + load_balancer_listener_https_redirect_patch_model = LoadBalancerListenerHTTPSRedirectPatch.from_dict( + load_balancer_listener_https_redirect_patch_model_json + ) assert load_balancer_listener_https_redirect_patch_model != False # Construct a model instance of LoadBalancerListenerHTTPSRedirectPatch by calling from_dict on the json representation - load_balancer_listener_https_redirect_patch_model_dict = LoadBalancerListenerHTTPSRedirectPatch.from_dict(load_balancer_listener_https_redirect_patch_model_json).__dict__ - load_balancer_listener_https_redirect_patch_model2 = LoadBalancerListenerHTTPSRedirectPatch(**load_balancer_listener_https_redirect_patch_model_dict) + load_balancer_listener_https_redirect_patch_model_dict = LoadBalancerListenerHTTPSRedirectPatch.from_dict( + load_balancer_listener_https_redirect_patch_model_json + ).__dict__ + load_balancer_listener_https_redirect_patch_model2 = LoadBalancerListenerHTTPSRedirectPatch( + **load_balancer_listener_https_redirect_patch_model_dict + ) # Verify the model instances are equivalent assert load_balancer_listener_https_redirect_patch_model == load_balancer_listener_https_redirect_patch_model2 # Convert model instance back to dict and verify no loss of data - load_balancer_listener_https_redirect_patch_model_json2 = load_balancer_listener_https_redirect_patch_model.to_dict() - assert load_balancer_listener_https_redirect_patch_model_json2 == load_balancer_listener_https_redirect_patch_model_json + load_balancer_listener_https_redirect_patch_model_json2 = ( + load_balancer_listener_https_redirect_patch_model.to_dict() + ) + assert ( + load_balancer_listener_https_redirect_patch_model_json2 + == load_balancer_listener_https_redirect_patch_model_json + ) class TestModel_LoadBalancerListenerHTTPSRedirectPrototype: @@ -66734,19 +69742,35 @@ def test_load_balancer_listener_https_redirect_prototype_serialization(self): load_balancer_listener_https_redirect_prototype_model_json['uri'] = '/example?doc=get' # Construct a model instance of LoadBalancerListenerHTTPSRedirectPrototype by calling from_dict on the json representation - load_balancer_listener_https_redirect_prototype_model = LoadBalancerListenerHTTPSRedirectPrototype.from_dict(load_balancer_listener_https_redirect_prototype_model_json) + load_balancer_listener_https_redirect_prototype_model = LoadBalancerListenerHTTPSRedirectPrototype.from_dict( + load_balancer_listener_https_redirect_prototype_model_json + ) assert load_balancer_listener_https_redirect_prototype_model != False # Construct a model instance of LoadBalancerListenerHTTPSRedirectPrototype by calling from_dict on the json representation - load_balancer_listener_https_redirect_prototype_model_dict = LoadBalancerListenerHTTPSRedirectPrototype.from_dict(load_balancer_listener_https_redirect_prototype_model_json).__dict__ - load_balancer_listener_https_redirect_prototype_model2 = LoadBalancerListenerHTTPSRedirectPrototype(**load_balancer_listener_https_redirect_prototype_model_dict) + load_balancer_listener_https_redirect_prototype_model_dict = ( + LoadBalancerListenerHTTPSRedirectPrototype.from_dict( + load_balancer_listener_https_redirect_prototype_model_json + ).__dict__ + ) + load_balancer_listener_https_redirect_prototype_model2 = LoadBalancerListenerHTTPSRedirectPrototype( + **load_balancer_listener_https_redirect_prototype_model_dict + ) # Verify the model instances are equivalent - assert load_balancer_listener_https_redirect_prototype_model == load_balancer_listener_https_redirect_prototype_model2 + assert ( + load_balancer_listener_https_redirect_prototype_model + == load_balancer_listener_https_redirect_prototype_model2 + ) # Convert model instance back to dict and verify no loss of data - load_balancer_listener_https_redirect_prototype_model_json2 = load_balancer_listener_https_redirect_prototype_model.to_dict() - assert load_balancer_listener_https_redirect_prototype_model_json2 == load_balancer_listener_https_redirect_prototype_model_json + load_balancer_listener_https_redirect_prototype_model_json2 = ( + load_balancer_listener_https_redirect_prototype_model.to_dict() + ) + assert ( + load_balancer_listener_https_redirect_prototype_model_json2 + == load_balancer_listener_https_redirect_prototype_model_json + ) class TestModel_LoadBalancerListenerPatch: @@ -66762,9 +69786,13 @@ def test_load_balancer_listener_patch_serialization(self): # Construct dict forms of any model objects needed in order to build this model. certificate_instance_identity_model = {} # CertificateInstanceIdentityByCRN - certificate_instance_identity_model['crn'] = 'crn:v1:bluemix:public:secrets-manager:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:36fa422d-080d-4d83-8d2d-86851b4001df:secret:2e786aab-42fa-63ed-14f8-d66d552f4dd5' + certificate_instance_identity_model['crn'] = ( + 'crn:v1:bluemix:public:secrets-manager:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:36fa422d-080d-4d83-8d2d-86851b4001df:secret:2e786aab-42fa-63ed-14f8-d66d552f4dd5' + ) - load_balancer_listener_default_pool_patch_model = {} # LoadBalancerListenerDefaultPoolPatchLoadBalancerPoolIdentityById + load_balancer_listener_default_pool_patch_model = ( + {} + ) # LoadBalancerListenerDefaultPoolPatchLoadBalancerPoolIdentityById load_balancer_listener_default_pool_patch_model['id'] = '70294e14-4e61-11e8-bcf4-0242ac110004' load_balancer_listener_identity_model = {} # LoadBalancerListenerIdentityById @@ -66789,11 +69817,15 @@ def test_load_balancer_listener_patch_serialization(self): load_balancer_listener_patch_model_json['protocol'] = 'http' # Construct a model instance of LoadBalancerListenerPatch by calling from_dict on the json representation - load_balancer_listener_patch_model = LoadBalancerListenerPatch.from_dict(load_balancer_listener_patch_model_json) + load_balancer_listener_patch_model = LoadBalancerListenerPatch.from_dict( + load_balancer_listener_patch_model_json + ) assert load_balancer_listener_patch_model != False # Construct a model instance of LoadBalancerListenerPatch by calling from_dict on the json representation - load_balancer_listener_patch_model_dict = LoadBalancerListenerPatch.from_dict(load_balancer_listener_patch_model_json).__dict__ + load_balancer_listener_patch_model_dict = LoadBalancerListenerPatch.from_dict( + load_balancer_listener_patch_model_json + ).__dict__ load_balancer_listener_patch_model2 = LoadBalancerListenerPatch(**load_balancer_listener_patch_model_dict) # Verify the model instances are equivalent @@ -66821,12 +69853,16 @@ def test_load_balancer_listener_policy_serialization(self): load_balancer_listener_policy_rule_reference_model = {} # LoadBalancerListenerPolicyRuleReference load_balancer_listener_policy_rule_reference_model['deleted'] = deleted_model - load_balancer_listener_policy_rule_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/listeners/70294e14-4e61-11e8-bcf4-0242ac110004/policies/f3187486-7b27-4c79-990c-47d33c0e2278/rules/873a84b0-84d6-49c6-8948-1fa527b25762' + load_balancer_listener_policy_rule_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/listeners/70294e14-4e61-11e8-bcf4-0242ac110004/policies/f3187486-7b27-4c79-990c-47d33c0e2278/rules/873a84b0-84d6-49c6-8948-1fa527b25762' + ) load_balancer_listener_policy_rule_reference_model['id'] = '70294e14-4e61-11e8-bcf4-0242ac110004' load_balancer_listener_policy_target_model = {} # LoadBalancerListenerPolicyTargetLoadBalancerPoolReference load_balancer_listener_policy_target_model['deleted'] = deleted_model - load_balancer_listener_policy_target_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/pools/70294e14-4e61-11e8-bcf4-0242ac110004' + load_balancer_listener_policy_target_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/pools/70294e14-4e61-11e8-bcf4-0242ac110004' + ) load_balancer_listener_policy_target_model['id'] = '70294e14-4e61-11e8-bcf4-0242ac110004' load_balancer_listener_policy_target_model['name'] = 'my-load-balancer-pool' @@ -66834,7 +69870,9 @@ def test_load_balancer_listener_policy_serialization(self): load_balancer_listener_policy_model_json = {} load_balancer_listener_policy_model_json['action'] = 'forward' load_balancer_listener_policy_model_json['created_at'] = '2019-01-01T12:00:00Z' - load_balancer_listener_policy_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/listeners/70294e14-4e61-11e8-bcf4-0242ac110004/policies/f3187486-7b27-4c79-990c-47d33c0e2278' + load_balancer_listener_policy_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/listeners/70294e14-4e61-11e8-bcf4-0242ac110004/policies/f3187486-7b27-4c79-990c-47d33c0e2278' + ) load_balancer_listener_policy_model_json['id'] = '70294e14-4e61-11e8-bcf4-0242ac110004' load_balancer_listener_policy_model_json['name'] = 'my-policy' load_balancer_listener_policy_model_json['priority'] = 5 @@ -66843,11 +69881,15 @@ def test_load_balancer_listener_policy_serialization(self): load_balancer_listener_policy_model_json['target'] = load_balancer_listener_policy_target_model # Construct a model instance of LoadBalancerListenerPolicy by calling from_dict on the json representation - load_balancer_listener_policy_model = LoadBalancerListenerPolicy.from_dict(load_balancer_listener_policy_model_json) + load_balancer_listener_policy_model = LoadBalancerListenerPolicy.from_dict( + load_balancer_listener_policy_model_json + ) assert load_balancer_listener_policy_model != False # Construct a model instance of LoadBalancerListenerPolicy by calling from_dict on the json representation - load_balancer_listener_policy_model_dict = LoadBalancerListenerPolicy.from_dict(load_balancer_listener_policy_model_json).__dict__ + load_balancer_listener_policy_model_dict = LoadBalancerListenerPolicy.from_dict( + load_balancer_listener_policy_model_json + ).__dict__ load_balancer_listener_policy_model2 = LoadBalancerListenerPolicy(**load_balancer_listener_policy_model_dict) # Verify the model instances are equivalent @@ -66875,19 +69917,25 @@ def test_load_balancer_listener_policy_collection_serialization(self): load_balancer_listener_policy_rule_reference_model = {} # LoadBalancerListenerPolicyRuleReference load_balancer_listener_policy_rule_reference_model['deleted'] = deleted_model - load_balancer_listener_policy_rule_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/listeners/70294e14-4e61-11e8-bcf4-0242ac110004/policies/f3187486-7b27-4c79-990c-47d33c0e2278/rules/873a84b0-84d6-49c6-8948-1fa527b25762' + load_balancer_listener_policy_rule_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/listeners/70294e14-4e61-11e8-bcf4-0242ac110004/policies/f3187486-7b27-4c79-990c-47d33c0e2278/rules/873a84b0-84d6-49c6-8948-1fa527b25762' + ) load_balancer_listener_policy_rule_reference_model['id'] = '70294e14-4e61-11e8-bcf4-0242ac110004' load_balancer_listener_policy_target_model = {} # LoadBalancerListenerPolicyTargetLoadBalancerPoolReference load_balancer_listener_policy_target_model['deleted'] = deleted_model - load_balancer_listener_policy_target_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/pools/70294e14-4e61-11e8-bcf4-0242ac110004' + load_balancer_listener_policy_target_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/pools/70294e14-4e61-11e8-bcf4-0242ac110004' + ) load_balancer_listener_policy_target_model['id'] = '70294e14-4e61-11e8-bcf4-0242ac110004' load_balancer_listener_policy_target_model['name'] = 'my-load-balancer-pool' load_balancer_listener_policy_model = {} # LoadBalancerListenerPolicy load_balancer_listener_policy_model['action'] = 'forward' load_balancer_listener_policy_model['created_at'] = '2019-01-01T12:00:00Z' - load_balancer_listener_policy_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/listeners/70294e14-4e61-11e8-bcf4-0242ac110004/policies/f3187486-7b27-4c79-990c-47d33c0e2278' + load_balancer_listener_policy_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/listeners/70294e14-4e61-11e8-bcf4-0242ac110004/policies/f3187486-7b27-4c79-990c-47d33c0e2278' + ) load_balancer_listener_policy_model['id'] = '70294e14-4e61-11e8-bcf4-0242ac110004' load_balancer_listener_policy_model['name'] = 'my-policy' load_balancer_listener_policy_model['priority'] = 5 @@ -66900,19 +69948,27 @@ def test_load_balancer_listener_policy_collection_serialization(self): load_balancer_listener_policy_collection_model_json['policies'] = [load_balancer_listener_policy_model] # Construct a model instance of LoadBalancerListenerPolicyCollection by calling from_dict on the json representation - load_balancer_listener_policy_collection_model = LoadBalancerListenerPolicyCollection.from_dict(load_balancer_listener_policy_collection_model_json) + load_balancer_listener_policy_collection_model = LoadBalancerListenerPolicyCollection.from_dict( + load_balancer_listener_policy_collection_model_json + ) assert load_balancer_listener_policy_collection_model != False # Construct a model instance of LoadBalancerListenerPolicyCollection by calling from_dict on the json representation - load_balancer_listener_policy_collection_model_dict = LoadBalancerListenerPolicyCollection.from_dict(load_balancer_listener_policy_collection_model_json).__dict__ - load_balancer_listener_policy_collection_model2 = LoadBalancerListenerPolicyCollection(**load_balancer_listener_policy_collection_model_dict) + load_balancer_listener_policy_collection_model_dict = LoadBalancerListenerPolicyCollection.from_dict( + load_balancer_listener_policy_collection_model_json + ).__dict__ + load_balancer_listener_policy_collection_model2 = LoadBalancerListenerPolicyCollection( + **load_balancer_listener_policy_collection_model_dict + ) # Verify the model instances are equivalent assert load_balancer_listener_policy_collection_model == load_balancer_listener_policy_collection_model2 # Convert model instance back to dict and verify no loss of data load_balancer_listener_policy_collection_model_json2 = load_balancer_listener_policy_collection_model.to_dict() - assert load_balancer_listener_policy_collection_model_json2 == load_balancer_listener_policy_collection_model_json + assert ( + load_balancer_listener_policy_collection_model_json2 == load_balancer_listener_policy_collection_model_json + ) class TestModel_LoadBalancerListenerPolicyPatch: @@ -66927,7 +69983,9 @@ def test_load_balancer_listener_policy_patch_serialization(self): # Construct dict forms of any model objects needed in order to build this model. - load_balancer_listener_policy_target_patch_model = {} # LoadBalancerListenerPolicyTargetPatchLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityById + load_balancer_listener_policy_target_patch_model = ( + {} + ) # LoadBalancerListenerPolicyTargetPatchLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityById load_balancer_listener_policy_target_patch_model['id'] = '70294e14-4e61-11e8-bcf4-0242ac110004' # Construct a json representation of a LoadBalancerListenerPolicyPatch model @@ -66937,12 +69995,18 @@ def test_load_balancer_listener_policy_patch_serialization(self): load_balancer_listener_policy_patch_model_json['target'] = load_balancer_listener_policy_target_patch_model # Construct a model instance of LoadBalancerListenerPolicyPatch by calling from_dict on the json representation - load_balancer_listener_policy_patch_model = LoadBalancerListenerPolicyPatch.from_dict(load_balancer_listener_policy_patch_model_json) + load_balancer_listener_policy_patch_model = LoadBalancerListenerPolicyPatch.from_dict( + load_balancer_listener_policy_patch_model_json + ) assert load_balancer_listener_policy_patch_model != False # Construct a model instance of LoadBalancerListenerPolicyPatch by calling from_dict on the json representation - load_balancer_listener_policy_patch_model_dict = LoadBalancerListenerPolicyPatch.from_dict(load_balancer_listener_policy_patch_model_json).__dict__ - load_balancer_listener_policy_patch_model2 = LoadBalancerListenerPolicyPatch(**load_balancer_listener_policy_patch_model_dict) + load_balancer_listener_policy_patch_model_dict = LoadBalancerListenerPolicyPatch.from_dict( + load_balancer_listener_policy_patch_model_json + ).__dict__ + load_balancer_listener_policy_patch_model2 = LoadBalancerListenerPolicyPatch( + **load_balancer_listener_policy_patch_model_dict + ) # Verify the model instances are equivalent assert load_balancer_listener_policy_patch_model == load_balancer_listener_policy_patch_model2 @@ -66970,7 +70034,9 @@ def test_load_balancer_listener_policy_prototype_serialization(self): load_balancer_listener_policy_rule_prototype_model['type'] = 'body' load_balancer_listener_policy_rule_prototype_model['value'] = 'testString' - load_balancer_listener_policy_target_prototype_model = {} # LoadBalancerListenerPolicyTargetPrototypeLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityById + load_balancer_listener_policy_target_prototype_model = ( + {} + ) # LoadBalancerListenerPolicyTargetPrototypeLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityById load_balancer_listener_policy_target_prototype_model['id'] = '70294e14-4e61-11e8-bcf4-0242ac110004' # Construct a json representation of a LoadBalancerListenerPolicyPrototype model @@ -66978,16 +70044,26 @@ def test_load_balancer_listener_policy_prototype_serialization(self): load_balancer_listener_policy_prototype_model_json['action'] = 'forward' load_balancer_listener_policy_prototype_model_json['name'] = 'my-policy' load_balancer_listener_policy_prototype_model_json['priority'] = 5 - load_balancer_listener_policy_prototype_model_json['rules'] = [load_balancer_listener_policy_rule_prototype_model] - load_balancer_listener_policy_prototype_model_json['target'] = load_balancer_listener_policy_target_prototype_model + load_balancer_listener_policy_prototype_model_json['rules'] = [ + load_balancer_listener_policy_rule_prototype_model + ] + load_balancer_listener_policy_prototype_model_json['target'] = ( + load_balancer_listener_policy_target_prototype_model + ) # Construct a model instance of LoadBalancerListenerPolicyPrototype by calling from_dict on the json representation - load_balancer_listener_policy_prototype_model = LoadBalancerListenerPolicyPrototype.from_dict(load_balancer_listener_policy_prototype_model_json) + load_balancer_listener_policy_prototype_model = LoadBalancerListenerPolicyPrototype.from_dict( + load_balancer_listener_policy_prototype_model_json + ) assert load_balancer_listener_policy_prototype_model != False # Construct a model instance of LoadBalancerListenerPolicyPrototype by calling from_dict on the json representation - load_balancer_listener_policy_prototype_model_dict = LoadBalancerListenerPolicyPrototype.from_dict(load_balancer_listener_policy_prototype_model_json).__dict__ - load_balancer_listener_policy_prototype_model2 = LoadBalancerListenerPolicyPrototype(**load_balancer_listener_policy_prototype_model_dict) + load_balancer_listener_policy_prototype_model_dict = LoadBalancerListenerPolicyPrototype.from_dict( + load_balancer_listener_policy_prototype_model_json + ).__dict__ + load_balancer_listener_policy_prototype_model2 = LoadBalancerListenerPolicyPrototype( + **load_balancer_listener_policy_prototype_model_dict + ) # Verify the model instances are equivalent assert load_balancer_listener_policy_prototype_model == load_balancer_listener_policy_prototype_model2 @@ -67015,17 +70091,25 @@ def test_load_balancer_listener_policy_reference_serialization(self): # Construct a json representation of a LoadBalancerListenerPolicyReference model load_balancer_listener_policy_reference_model_json = {} load_balancer_listener_policy_reference_model_json['deleted'] = deleted_model - load_balancer_listener_policy_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/listeners/70294e14-4e61-11e8-bcf4-0242ac110004/policies/f3187486-7b27-4c79-990c-47d33c0e2278' + load_balancer_listener_policy_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/listeners/70294e14-4e61-11e8-bcf4-0242ac110004/policies/f3187486-7b27-4c79-990c-47d33c0e2278' + ) load_balancer_listener_policy_reference_model_json['id'] = '70294e14-4e61-11e8-bcf4-0242ac110004' load_balancer_listener_policy_reference_model_json['name'] = 'my-policy' # Construct a model instance of LoadBalancerListenerPolicyReference by calling from_dict on the json representation - load_balancer_listener_policy_reference_model = LoadBalancerListenerPolicyReference.from_dict(load_balancer_listener_policy_reference_model_json) + load_balancer_listener_policy_reference_model = LoadBalancerListenerPolicyReference.from_dict( + load_balancer_listener_policy_reference_model_json + ) assert load_balancer_listener_policy_reference_model != False # Construct a model instance of LoadBalancerListenerPolicyReference by calling from_dict on the json representation - load_balancer_listener_policy_reference_model_dict = LoadBalancerListenerPolicyReference.from_dict(load_balancer_listener_policy_reference_model_json).__dict__ - load_balancer_listener_policy_reference_model2 = LoadBalancerListenerPolicyReference(**load_balancer_listener_policy_reference_model_dict) + load_balancer_listener_policy_reference_model_dict = LoadBalancerListenerPolicyReference.from_dict( + load_balancer_listener_policy_reference_model_json + ).__dict__ + load_balancer_listener_policy_reference_model2 = LoadBalancerListenerPolicyReference( + **load_balancer_listener_policy_reference_model_dict + ) # Verify the model instances are equivalent assert load_balancer_listener_policy_reference_model == load_balancer_listener_policy_reference_model2 @@ -67050,19 +70134,27 @@ def test_load_balancer_listener_policy_rule_serialization(self): load_balancer_listener_policy_rule_model_json['condition'] = 'contains' load_balancer_listener_policy_rule_model_json['created_at'] = '2019-01-01T12:00:00Z' load_balancer_listener_policy_rule_model_json['field'] = 'MY-APP-HEADER' - load_balancer_listener_policy_rule_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/listeners/70294e14-4e61-11e8-bcf4-0242ac110004/policies/f3187486-7b27-4c79-990c-47d33c0e2278/rules/873a84b0-84d6-49c6-8948-1fa527b25762' + load_balancer_listener_policy_rule_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/listeners/70294e14-4e61-11e8-bcf4-0242ac110004/policies/f3187486-7b27-4c79-990c-47d33c0e2278/rules/873a84b0-84d6-49c6-8948-1fa527b25762' + ) load_balancer_listener_policy_rule_model_json['id'] = '70294e14-4e61-11e8-bcf4-0242ac110004' load_balancer_listener_policy_rule_model_json['provisioning_status'] = 'active' load_balancer_listener_policy_rule_model_json['type'] = 'body' load_balancer_listener_policy_rule_model_json['value'] = 'testString' # Construct a model instance of LoadBalancerListenerPolicyRule by calling from_dict on the json representation - load_balancer_listener_policy_rule_model = LoadBalancerListenerPolicyRule.from_dict(load_balancer_listener_policy_rule_model_json) + load_balancer_listener_policy_rule_model = LoadBalancerListenerPolicyRule.from_dict( + load_balancer_listener_policy_rule_model_json + ) assert load_balancer_listener_policy_rule_model != False # Construct a model instance of LoadBalancerListenerPolicyRule by calling from_dict on the json representation - load_balancer_listener_policy_rule_model_dict = LoadBalancerListenerPolicyRule.from_dict(load_balancer_listener_policy_rule_model_json).__dict__ - load_balancer_listener_policy_rule_model2 = LoadBalancerListenerPolicyRule(**load_balancer_listener_policy_rule_model_dict) + load_balancer_listener_policy_rule_model_dict = LoadBalancerListenerPolicyRule.from_dict( + load_balancer_listener_policy_rule_model_json + ).__dict__ + load_balancer_listener_policy_rule_model2 = LoadBalancerListenerPolicyRule( + **load_balancer_listener_policy_rule_model_dict + ) # Verify the model instances are equivalent assert load_balancer_listener_policy_rule_model == load_balancer_listener_policy_rule_model2 @@ -67088,7 +70180,9 @@ def test_load_balancer_listener_policy_rule_collection_serialization(self): load_balancer_listener_policy_rule_model['condition'] = 'contains' load_balancer_listener_policy_rule_model['created_at'] = '2019-01-01T12:00:00Z' load_balancer_listener_policy_rule_model['field'] = 'MY-APP-HEADER' - load_balancer_listener_policy_rule_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/listeners/70294e14-4e61-11e8-bcf4-0242ac110004/policies/f3187486-7b27-4c79-990c-47d33c0e2278/rules/873a84b0-84d6-49c6-8948-1fa527b25762' + load_balancer_listener_policy_rule_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/listeners/70294e14-4e61-11e8-bcf4-0242ac110004/policies/f3187486-7b27-4c79-990c-47d33c0e2278/rules/873a84b0-84d6-49c6-8948-1fa527b25762' + ) load_balancer_listener_policy_rule_model['id'] = '70294e14-4e61-11e8-bcf4-0242ac110004' load_balancer_listener_policy_rule_model['provisioning_status'] = 'active' load_balancer_listener_policy_rule_model['type'] = 'body' @@ -67099,19 +70193,32 @@ def test_load_balancer_listener_policy_rule_collection_serialization(self): load_balancer_listener_policy_rule_collection_model_json['rules'] = [load_balancer_listener_policy_rule_model] # Construct a model instance of LoadBalancerListenerPolicyRuleCollection by calling from_dict on the json representation - load_balancer_listener_policy_rule_collection_model = LoadBalancerListenerPolicyRuleCollection.from_dict(load_balancer_listener_policy_rule_collection_model_json) + load_balancer_listener_policy_rule_collection_model = LoadBalancerListenerPolicyRuleCollection.from_dict( + load_balancer_listener_policy_rule_collection_model_json + ) assert load_balancer_listener_policy_rule_collection_model != False # Construct a model instance of LoadBalancerListenerPolicyRuleCollection by calling from_dict on the json representation - load_balancer_listener_policy_rule_collection_model_dict = LoadBalancerListenerPolicyRuleCollection.from_dict(load_balancer_listener_policy_rule_collection_model_json).__dict__ - load_balancer_listener_policy_rule_collection_model2 = LoadBalancerListenerPolicyRuleCollection(**load_balancer_listener_policy_rule_collection_model_dict) + load_balancer_listener_policy_rule_collection_model_dict = LoadBalancerListenerPolicyRuleCollection.from_dict( + load_balancer_listener_policy_rule_collection_model_json + ).__dict__ + load_balancer_listener_policy_rule_collection_model2 = LoadBalancerListenerPolicyRuleCollection( + **load_balancer_listener_policy_rule_collection_model_dict + ) # Verify the model instances are equivalent - assert load_balancer_listener_policy_rule_collection_model == load_balancer_listener_policy_rule_collection_model2 + assert ( + load_balancer_listener_policy_rule_collection_model == load_balancer_listener_policy_rule_collection_model2 + ) # Convert model instance back to dict and verify no loss of data - load_balancer_listener_policy_rule_collection_model_json2 = load_balancer_listener_policy_rule_collection_model.to_dict() - assert load_balancer_listener_policy_rule_collection_model_json2 == load_balancer_listener_policy_rule_collection_model_json + load_balancer_listener_policy_rule_collection_model_json2 = ( + load_balancer_listener_policy_rule_collection_model.to_dict() + ) + assert ( + load_balancer_listener_policy_rule_collection_model_json2 + == load_balancer_listener_policy_rule_collection_model_json + ) class TestModel_LoadBalancerListenerPolicyRulePatch: @@ -67132,19 +70239,27 @@ def test_load_balancer_listener_policy_rule_patch_serialization(self): load_balancer_listener_policy_rule_patch_model_json['value'] = 'testString' # Construct a model instance of LoadBalancerListenerPolicyRulePatch by calling from_dict on the json representation - load_balancer_listener_policy_rule_patch_model = LoadBalancerListenerPolicyRulePatch.from_dict(load_balancer_listener_policy_rule_patch_model_json) + load_balancer_listener_policy_rule_patch_model = LoadBalancerListenerPolicyRulePatch.from_dict( + load_balancer_listener_policy_rule_patch_model_json + ) assert load_balancer_listener_policy_rule_patch_model != False # Construct a model instance of LoadBalancerListenerPolicyRulePatch by calling from_dict on the json representation - load_balancer_listener_policy_rule_patch_model_dict = LoadBalancerListenerPolicyRulePatch.from_dict(load_balancer_listener_policy_rule_patch_model_json).__dict__ - load_balancer_listener_policy_rule_patch_model2 = LoadBalancerListenerPolicyRulePatch(**load_balancer_listener_policy_rule_patch_model_dict) + load_balancer_listener_policy_rule_patch_model_dict = LoadBalancerListenerPolicyRulePatch.from_dict( + load_balancer_listener_policy_rule_patch_model_json + ).__dict__ + load_balancer_listener_policy_rule_patch_model2 = LoadBalancerListenerPolicyRulePatch( + **load_balancer_listener_policy_rule_patch_model_dict + ) # Verify the model instances are equivalent assert load_balancer_listener_policy_rule_patch_model == load_balancer_listener_policy_rule_patch_model2 # Convert model instance back to dict and verify no loss of data load_balancer_listener_policy_rule_patch_model_json2 = load_balancer_listener_policy_rule_patch_model.to_dict() - assert load_balancer_listener_policy_rule_patch_model_json2 == load_balancer_listener_policy_rule_patch_model_json + assert ( + load_balancer_listener_policy_rule_patch_model_json2 == load_balancer_listener_policy_rule_patch_model_json + ) class TestModel_LoadBalancerListenerPolicyRulePrototype: @@ -67165,19 +70280,30 @@ def test_load_balancer_listener_policy_rule_prototype_serialization(self): load_balancer_listener_policy_rule_prototype_model_json['value'] = 'testString' # Construct a model instance of LoadBalancerListenerPolicyRulePrototype by calling from_dict on the json representation - load_balancer_listener_policy_rule_prototype_model = LoadBalancerListenerPolicyRulePrototype.from_dict(load_balancer_listener_policy_rule_prototype_model_json) + load_balancer_listener_policy_rule_prototype_model = LoadBalancerListenerPolicyRulePrototype.from_dict( + load_balancer_listener_policy_rule_prototype_model_json + ) assert load_balancer_listener_policy_rule_prototype_model != False # Construct a model instance of LoadBalancerListenerPolicyRulePrototype by calling from_dict on the json representation - load_balancer_listener_policy_rule_prototype_model_dict = LoadBalancerListenerPolicyRulePrototype.from_dict(load_balancer_listener_policy_rule_prototype_model_json).__dict__ - load_balancer_listener_policy_rule_prototype_model2 = LoadBalancerListenerPolicyRulePrototype(**load_balancer_listener_policy_rule_prototype_model_dict) + load_balancer_listener_policy_rule_prototype_model_dict = LoadBalancerListenerPolicyRulePrototype.from_dict( + load_balancer_listener_policy_rule_prototype_model_json + ).__dict__ + load_balancer_listener_policy_rule_prototype_model2 = LoadBalancerListenerPolicyRulePrototype( + **load_balancer_listener_policy_rule_prototype_model_dict + ) # Verify the model instances are equivalent assert load_balancer_listener_policy_rule_prototype_model == load_balancer_listener_policy_rule_prototype_model2 # Convert model instance back to dict and verify no loss of data - load_balancer_listener_policy_rule_prototype_model_json2 = load_balancer_listener_policy_rule_prototype_model.to_dict() - assert load_balancer_listener_policy_rule_prototype_model_json2 == load_balancer_listener_policy_rule_prototype_model_json + load_balancer_listener_policy_rule_prototype_model_json2 = ( + load_balancer_listener_policy_rule_prototype_model.to_dict() + ) + assert ( + load_balancer_listener_policy_rule_prototype_model_json2 + == load_balancer_listener_policy_rule_prototype_model_json + ) class TestModel_LoadBalancerListenerPolicyRuleReference: @@ -67198,23 +70324,36 @@ def test_load_balancer_listener_policy_rule_reference_serialization(self): # Construct a json representation of a LoadBalancerListenerPolicyRuleReference model load_balancer_listener_policy_rule_reference_model_json = {} load_balancer_listener_policy_rule_reference_model_json['deleted'] = deleted_model - load_balancer_listener_policy_rule_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/listeners/70294e14-4e61-11e8-bcf4-0242ac110004/policies/f3187486-7b27-4c79-990c-47d33c0e2278/rules/873a84b0-84d6-49c6-8948-1fa527b25762' + load_balancer_listener_policy_rule_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/listeners/70294e14-4e61-11e8-bcf4-0242ac110004/policies/f3187486-7b27-4c79-990c-47d33c0e2278/rules/873a84b0-84d6-49c6-8948-1fa527b25762' + ) load_balancer_listener_policy_rule_reference_model_json['id'] = '70294e14-4e61-11e8-bcf4-0242ac110004' # Construct a model instance of LoadBalancerListenerPolicyRuleReference by calling from_dict on the json representation - load_balancer_listener_policy_rule_reference_model = LoadBalancerListenerPolicyRuleReference.from_dict(load_balancer_listener_policy_rule_reference_model_json) + load_balancer_listener_policy_rule_reference_model = LoadBalancerListenerPolicyRuleReference.from_dict( + load_balancer_listener_policy_rule_reference_model_json + ) assert load_balancer_listener_policy_rule_reference_model != False # Construct a model instance of LoadBalancerListenerPolicyRuleReference by calling from_dict on the json representation - load_balancer_listener_policy_rule_reference_model_dict = LoadBalancerListenerPolicyRuleReference.from_dict(load_balancer_listener_policy_rule_reference_model_json).__dict__ - load_balancer_listener_policy_rule_reference_model2 = LoadBalancerListenerPolicyRuleReference(**load_balancer_listener_policy_rule_reference_model_dict) + load_balancer_listener_policy_rule_reference_model_dict = LoadBalancerListenerPolicyRuleReference.from_dict( + load_balancer_listener_policy_rule_reference_model_json + ).__dict__ + load_balancer_listener_policy_rule_reference_model2 = LoadBalancerListenerPolicyRuleReference( + **load_balancer_listener_policy_rule_reference_model_dict + ) # Verify the model instances are equivalent assert load_balancer_listener_policy_rule_reference_model == load_balancer_listener_policy_rule_reference_model2 # Convert model instance back to dict and verify no loss of data - load_balancer_listener_policy_rule_reference_model_json2 = load_balancer_listener_policy_rule_reference_model.to_dict() - assert load_balancer_listener_policy_rule_reference_model_json2 == load_balancer_listener_policy_rule_reference_model_json + load_balancer_listener_policy_rule_reference_model_json2 = ( + load_balancer_listener_policy_rule_reference_model.to_dict() + ) + assert ( + load_balancer_listener_policy_rule_reference_model_json2 + == load_balancer_listener_policy_rule_reference_model_json + ) class TestModel_LoadBalancerListenerPrototypeLoadBalancerContext: @@ -67230,7 +70369,9 @@ def test_load_balancer_listener_prototype_load_balancer_context_serialization(se # Construct dict forms of any model objects needed in order to build this model. certificate_instance_identity_model = {} # CertificateInstanceIdentityByCRN - certificate_instance_identity_model['crn'] = 'crn:v1:bluemix:public:secrets-manager:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:36fa422d-080d-4d83-8d2d-86851b4001df:secret:2e786aab-42fa-63ed-14f8-d66d552f4dd5' + certificate_instance_identity_model['crn'] = ( + 'crn:v1:bluemix:public:secrets-manager:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:36fa422d-080d-4d83-8d2d-86851b4001df:secret:2e786aab-42fa-63ed-14f8-d66d552f4dd5' + ) load_balancer_pool_identity_by_name_model = {} # LoadBalancerPoolIdentityByName load_balancer_pool_identity_by_name_model['name'] = 'my-load-balancer-pool' @@ -67246,10 +70387,16 @@ def test_load_balancer_listener_prototype_load_balancer_context_serialization(se # Construct a json representation of a LoadBalancerListenerPrototypeLoadBalancerContext model load_balancer_listener_prototype_load_balancer_context_model_json = {} load_balancer_listener_prototype_load_balancer_context_model_json['accept_proxy_protocol'] = True - load_balancer_listener_prototype_load_balancer_context_model_json['certificate_instance'] = certificate_instance_identity_model + load_balancer_listener_prototype_load_balancer_context_model_json['certificate_instance'] = ( + certificate_instance_identity_model + ) load_balancer_listener_prototype_load_balancer_context_model_json['connection_limit'] = 2000 - load_balancer_listener_prototype_load_balancer_context_model_json['default_pool'] = load_balancer_pool_identity_by_name_model - load_balancer_listener_prototype_load_balancer_context_model_json['https_redirect'] = load_balancer_listener_https_redirect_prototype_model + load_balancer_listener_prototype_load_balancer_context_model_json['default_pool'] = ( + load_balancer_pool_identity_by_name_model + ) + load_balancer_listener_prototype_load_balancer_context_model_json['https_redirect'] = ( + load_balancer_listener_https_redirect_prototype_model + ) load_balancer_listener_prototype_load_balancer_context_model_json['idle_connection_timeout'] = 100 load_balancer_listener_prototype_load_balancer_context_model_json['port'] = 443 load_balancer_listener_prototype_load_balancer_context_model_json['port_max'] = 499 @@ -67257,19 +70404,39 @@ def test_load_balancer_listener_prototype_load_balancer_context_serialization(se load_balancer_listener_prototype_load_balancer_context_model_json['protocol'] = 'http' # Construct a model instance of LoadBalancerListenerPrototypeLoadBalancerContext by calling from_dict on the json representation - load_balancer_listener_prototype_load_balancer_context_model = LoadBalancerListenerPrototypeLoadBalancerContext.from_dict(load_balancer_listener_prototype_load_balancer_context_model_json) + load_balancer_listener_prototype_load_balancer_context_model = ( + LoadBalancerListenerPrototypeLoadBalancerContext.from_dict( + load_balancer_listener_prototype_load_balancer_context_model_json + ) + ) assert load_balancer_listener_prototype_load_balancer_context_model != False # Construct a model instance of LoadBalancerListenerPrototypeLoadBalancerContext by calling from_dict on the json representation - load_balancer_listener_prototype_load_balancer_context_model_dict = LoadBalancerListenerPrototypeLoadBalancerContext.from_dict(load_balancer_listener_prototype_load_balancer_context_model_json).__dict__ - load_balancer_listener_prototype_load_balancer_context_model2 = LoadBalancerListenerPrototypeLoadBalancerContext(**load_balancer_listener_prototype_load_balancer_context_model_dict) + load_balancer_listener_prototype_load_balancer_context_model_dict = ( + LoadBalancerListenerPrototypeLoadBalancerContext.from_dict( + load_balancer_listener_prototype_load_balancer_context_model_json + ).__dict__ + ) + load_balancer_listener_prototype_load_balancer_context_model2 = ( + LoadBalancerListenerPrototypeLoadBalancerContext( + **load_balancer_listener_prototype_load_balancer_context_model_dict + ) + ) # Verify the model instances are equivalent - assert load_balancer_listener_prototype_load_balancer_context_model == load_balancer_listener_prototype_load_balancer_context_model2 + assert ( + load_balancer_listener_prototype_load_balancer_context_model + == load_balancer_listener_prototype_load_balancer_context_model2 + ) # Convert model instance back to dict and verify no loss of data - load_balancer_listener_prototype_load_balancer_context_model_json2 = load_balancer_listener_prototype_load_balancer_context_model.to_dict() - assert load_balancer_listener_prototype_load_balancer_context_model_json2 == load_balancer_listener_prototype_load_balancer_context_model_json + load_balancer_listener_prototype_load_balancer_context_model_json2 = ( + load_balancer_listener_prototype_load_balancer_context_model.to_dict() + ) + assert ( + load_balancer_listener_prototype_load_balancer_context_model_json2 + == load_balancer_listener_prototype_load_balancer_context_model_json + ) class TestModel_LoadBalancerListenerReference: @@ -67290,16 +70457,24 @@ def test_load_balancer_listener_reference_serialization(self): # Construct a json representation of a LoadBalancerListenerReference model load_balancer_listener_reference_model_json = {} load_balancer_listener_reference_model_json['deleted'] = deleted_model - load_balancer_listener_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/listeners/70294e14-4e61-11e8-bcf4-0242ac110004' + load_balancer_listener_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/listeners/70294e14-4e61-11e8-bcf4-0242ac110004' + ) load_balancer_listener_reference_model_json['id'] = '70294e14-4e61-11e8-bcf4-0242ac110004' # Construct a model instance of LoadBalancerListenerReference by calling from_dict on the json representation - load_balancer_listener_reference_model = LoadBalancerListenerReference.from_dict(load_balancer_listener_reference_model_json) + load_balancer_listener_reference_model = LoadBalancerListenerReference.from_dict( + load_balancer_listener_reference_model_json + ) assert load_balancer_listener_reference_model != False # Construct a model instance of LoadBalancerListenerReference by calling from_dict on the json representation - load_balancer_listener_reference_model_dict = LoadBalancerListenerReference.from_dict(load_balancer_listener_reference_model_json).__dict__ - load_balancer_listener_reference_model2 = LoadBalancerListenerReference(**load_balancer_listener_reference_model_dict) + load_balancer_listener_reference_model_dict = LoadBalancerListenerReference.from_dict( + load_balancer_listener_reference_model_json + ).__dict__ + load_balancer_listener_reference_model2 = LoadBalancerListenerReference( + **load_balancer_listener_reference_model_dict + ) # Verify the model instances are equivalent assert load_balancer_listener_reference_model == load_balancer_listener_reference_model2 @@ -67359,11 +70534,15 @@ def test_load_balancer_logging_datapath_serialization(self): load_balancer_logging_datapath_model_json['active'] = True # Construct a model instance of LoadBalancerLoggingDatapath by calling from_dict on the json representation - load_balancer_logging_datapath_model = LoadBalancerLoggingDatapath.from_dict(load_balancer_logging_datapath_model_json) + load_balancer_logging_datapath_model = LoadBalancerLoggingDatapath.from_dict( + load_balancer_logging_datapath_model_json + ) assert load_balancer_logging_datapath_model != False # Construct a model instance of LoadBalancerLoggingDatapath by calling from_dict on the json representation - load_balancer_logging_datapath_model_dict = LoadBalancerLoggingDatapath.from_dict(load_balancer_logging_datapath_model_json).__dict__ + load_balancer_logging_datapath_model_dict = LoadBalancerLoggingDatapath.from_dict( + load_balancer_logging_datapath_model_json + ).__dict__ load_balancer_logging_datapath_model2 = LoadBalancerLoggingDatapath(**load_balancer_logging_datapath_model_dict) # Verify the model instances are equivalent @@ -67389,12 +70568,18 @@ def test_load_balancer_logging_datapath_patch_serialization(self): load_balancer_logging_datapath_patch_model_json['active'] = True # Construct a model instance of LoadBalancerLoggingDatapathPatch by calling from_dict on the json representation - load_balancer_logging_datapath_patch_model = LoadBalancerLoggingDatapathPatch.from_dict(load_balancer_logging_datapath_patch_model_json) + load_balancer_logging_datapath_patch_model = LoadBalancerLoggingDatapathPatch.from_dict( + load_balancer_logging_datapath_patch_model_json + ) assert load_balancer_logging_datapath_patch_model != False # Construct a model instance of LoadBalancerLoggingDatapathPatch by calling from_dict on the json representation - load_balancer_logging_datapath_patch_model_dict = LoadBalancerLoggingDatapathPatch.from_dict(load_balancer_logging_datapath_patch_model_json).__dict__ - load_balancer_logging_datapath_patch_model2 = LoadBalancerLoggingDatapathPatch(**load_balancer_logging_datapath_patch_model_dict) + load_balancer_logging_datapath_patch_model_dict = LoadBalancerLoggingDatapathPatch.from_dict( + load_balancer_logging_datapath_patch_model_json + ).__dict__ + load_balancer_logging_datapath_patch_model2 = LoadBalancerLoggingDatapathPatch( + **load_balancer_logging_datapath_patch_model_dict + ) # Verify the model instances are equivalent assert load_balancer_logging_datapath_patch_model == load_balancer_logging_datapath_patch_model2 @@ -67419,19 +70604,27 @@ def test_load_balancer_logging_datapath_prototype_serialization(self): load_balancer_logging_datapath_prototype_model_json['active'] = True # Construct a model instance of LoadBalancerLoggingDatapathPrototype by calling from_dict on the json representation - load_balancer_logging_datapath_prototype_model = LoadBalancerLoggingDatapathPrototype.from_dict(load_balancer_logging_datapath_prototype_model_json) + load_balancer_logging_datapath_prototype_model = LoadBalancerLoggingDatapathPrototype.from_dict( + load_balancer_logging_datapath_prototype_model_json + ) assert load_balancer_logging_datapath_prototype_model != False # Construct a model instance of LoadBalancerLoggingDatapathPrototype by calling from_dict on the json representation - load_balancer_logging_datapath_prototype_model_dict = LoadBalancerLoggingDatapathPrototype.from_dict(load_balancer_logging_datapath_prototype_model_json).__dict__ - load_balancer_logging_datapath_prototype_model2 = LoadBalancerLoggingDatapathPrototype(**load_balancer_logging_datapath_prototype_model_dict) + load_balancer_logging_datapath_prototype_model_dict = LoadBalancerLoggingDatapathPrototype.from_dict( + load_balancer_logging_datapath_prototype_model_json + ).__dict__ + load_balancer_logging_datapath_prototype_model2 = LoadBalancerLoggingDatapathPrototype( + **load_balancer_logging_datapath_prototype_model_dict + ) # Verify the model instances are equivalent assert load_balancer_logging_datapath_prototype_model == load_balancer_logging_datapath_prototype_model2 # Convert model instance back to dict and verify no loss of data load_balancer_logging_datapath_prototype_model_json2 = load_balancer_logging_datapath_prototype_model.to_dict() - assert load_balancer_logging_datapath_prototype_model_json2 == load_balancer_logging_datapath_prototype_model_json + assert ( + load_balancer_logging_datapath_prototype_model_json2 == load_balancer_logging_datapath_prototype_model_json + ) class TestModel_LoadBalancerLoggingPatch: @@ -67458,7 +70651,9 @@ def test_load_balancer_logging_patch_serialization(self): assert load_balancer_logging_patch_model != False # Construct a model instance of LoadBalancerLoggingPatch by calling from_dict on the json representation - load_balancer_logging_patch_model_dict = LoadBalancerLoggingPatch.from_dict(load_balancer_logging_patch_model_json).__dict__ + load_balancer_logging_patch_model_dict = LoadBalancerLoggingPatch.from_dict( + load_balancer_logging_patch_model_json + ).__dict__ load_balancer_logging_patch_model2 = LoadBalancerLoggingPatch(**load_balancer_logging_patch_model_dict) # Verify the model instances are equivalent @@ -67489,12 +70684,18 @@ def test_load_balancer_logging_prototype_serialization(self): load_balancer_logging_prototype_model_json['datapath'] = load_balancer_logging_datapath_prototype_model # Construct a model instance of LoadBalancerLoggingPrototype by calling from_dict on the json representation - load_balancer_logging_prototype_model = LoadBalancerLoggingPrototype.from_dict(load_balancer_logging_prototype_model_json) + load_balancer_logging_prototype_model = LoadBalancerLoggingPrototype.from_dict( + load_balancer_logging_prototype_model_json + ) assert load_balancer_logging_prototype_model != False # Construct a model instance of LoadBalancerLoggingPrototype by calling from_dict on the json representation - load_balancer_logging_prototype_model_dict = LoadBalancerLoggingPrototype.from_dict(load_balancer_logging_prototype_model_json).__dict__ - load_balancer_logging_prototype_model2 = LoadBalancerLoggingPrototype(**load_balancer_logging_prototype_model_dict) + load_balancer_logging_prototype_model_dict = LoadBalancerLoggingPrototype.from_dict( + load_balancer_logging_prototype_model_json + ).__dict__ + load_balancer_logging_prototype_model2 = LoadBalancerLoggingPrototype( + **load_balancer_logging_prototype_model_dict + ) # Verify the model instances are equivalent assert load_balancer_logging_prototype_model == load_balancer_logging_prototype_model2 @@ -67517,7 +70718,9 @@ def test_load_balancer_patch_serialization(self): # Construct dict forms of any model objects needed in order to build this model. dns_instance_identity_model = {} # DNSInstanceIdentityByCRN - dns_instance_identity_model['crn'] = 'crn:v1:bluemix:public:dns-svcs:global:a/bb1b52262f7441a586f49068482f1e60:f761b566-030a-4696-8649-cc9d09889e88::' + dns_instance_identity_model['crn'] = ( + 'crn:v1:bluemix:public:dns-svcs:global:a/bb1b52262f7441a586f49068482f1e60:f761b566-030a-4696-8649-cc9d09889e88::' + ) dns_zone_identity_model = {} # DNSZoneIdentityById dns_zone_identity_model['id'] = 'd66662cc-aa23-4fe1-9987-858487a61f45' @@ -67582,15 +70785,21 @@ def test_load_balancer_pool_serialization(self): deleted_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#deleted-resources' instance_group_reference_model = {} # InstanceGroupReference - instance_group_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::instance-group:1e09281b-f177-46fb-baf1-bc152b2e391a' + instance_group_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::instance-group:1e09281b-f177-46fb-baf1-bc152b2e391a' + ) instance_group_reference_model['deleted'] = deleted_model - instance_group_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instance_groups/1e09281b-f177-46fb-baf1-bc152b2e391a' + instance_group_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instance_groups/1e09281b-f177-46fb-baf1-bc152b2e391a' + ) instance_group_reference_model['id'] = '1e09281b-f177-46fb-baf1-bc152b2e391a' instance_group_reference_model['name'] = 'my-instance-group' load_balancer_pool_member_reference_model = {} # LoadBalancerPoolMemberReference load_balancer_pool_member_reference_model['deleted'] = deleted_model - load_balancer_pool_member_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/pools/70294e14-4e61-11e8-bcf4-0242ac110004/members/80294e14-4e61-11e8-bcf4-0242ac110004' + load_balancer_pool_member_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/pools/70294e14-4e61-11e8-bcf4-0242ac110004/members/80294e14-4e61-11e8-bcf4-0242ac110004' + ) load_balancer_pool_member_reference_model['id'] = '70294e14-4e61-11e8-bcf4-0242ac110004' load_balancer_pool_session_persistence_model = {} # LoadBalancerPoolSessionPersistence @@ -67602,7 +70811,9 @@ def test_load_balancer_pool_serialization(self): load_balancer_pool_model_json['algorithm'] = 'least_connections' load_balancer_pool_model_json['created_at'] = '2019-01-01T12:00:00Z' load_balancer_pool_model_json['health_monitor'] = load_balancer_pool_health_monitor_model - load_balancer_pool_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/pools/70294e14-4e61-11e8-bcf4-0242ac110004' + load_balancer_pool_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/pools/70294e14-4e61-11e8-bcf4-0242ac110004' + ) load_balancer_pool_model_json['id'] = '70294e14-4e61-11e8-bcf4-0242ac110004' load_balancer_pool_model_json['instance_group'] = instance_group_reference_model load_balancer_pool_model_json['members'] = [load_balancer_pool_member_reference_model] @@ -67652,15 +70863,21 @@ def test_load_balancer_pool_collection_serialization(self): deleted_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#deleted-resources' instance_group_reference_model = {} # InstanceGroupReference - instance_group_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::instance-group:1e09281b-f177-46fb-baf1-bc152b2e391a' + instance_group_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::instance-group:1e09281b-f177-46fb-baf1-bc152b2e391a' + ) instance_group_reference_model['deleted'] = deleted_model - instance_group_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instance_groups/1e09281b-f177-46fb-baf1-bc152b2e391a' + instance_group_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instance_groups/1e09281b-f177-46fb-baf1-bc152b2e391a' + ) instance_group_reference_model['id'] = '1e09281b-f177-46fb-baf1-bc152b2e391a' instance_group_reference_model['name'] = 'my-instance-group' load_balancer_pool_member_reference_model = {} # LoadBalancerPoolMemberReference load_balancer_pool_member_reference_model['deleted'] = deleted_model - load_balancer_pool_member_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/pools/70294e14-4e61-11e8-bcf4-0242ac110004/members/80294e14-4e61-11e8-bcf4-0242ac110004' + load_balancer_pool_member_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/pools/70294e14-4e61-11e8-bcf4-0242ac110004/members/80294e14-4e61-11e8-bcf4-0242ac110004' + ) load_balancer_pool_member_reference_model['id'] = '70294e14-4e61-11e8-bcf4-0242ac110004' load_balancer_pool_session_persistence_model = {} # LoadBalancerPoolSessionPersistence @@ -67671,7 +70888,9 @@ def test_load_balancer_pool_collection_serialization(self): load_balancer_pool_model['algorithm'] = 'least_connections' load_balancer_pool_model['created_at'] = '2019-01-01T12:00:00Z' load_balancer_pool_model['health_monitor'] = load_balancer_pool_health_monitor_model - load_balancer_pool_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/pools/70294e14-4e61-11e8-bcf4-0242ac110004' + load_balancer_pool_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/pools/70294e14-4e61-11e8-bcf4-0242ac110004' + ) load_balancer_pool_model['id'] = '70294e14-4e61-11e8-bcf4-0242ac110004' load_balancer_pool_model['instance_group'] = instance_group_reference_model load_balancer_pool_model['members'] = [load_balancer_pool_member_reference_model] @@ -67686,11 +70905,15 @@ def test_load_balancer_pool_collection_serialization(self): load_balancer_pool_collection_model_json['pools'] = [load_balancer_pool_model] # Construct a model instance of LoadBalancerPoolCollection by calling from_dict on the json representation - load_balancer_pool_collection_model = LoadBalancerPoolCollection.from_dict(load_balancer_pool_collection_model_json) + load_balancer_pool_collection_model = LoadBalancerPoolCollection.from_dict( + load_balancer_pool_collection_model_json + ) assert load_balancer_pool_collection_model != False # Construct a model instance of LoadBalancerPoolCollection by calling from_dict on the json representation - load_balancer_pool_collection_model_dict = LoadBalancerPoolCollection.from_dict(load_balancer_pool_collection_model_json).__dict__ + load_balancer_pool_collection_model_dict = LoadBalancerPoolCollection.from_dict( + load_balancer_pool_collection_model_json + ).__dict__ load_balancer_pool_collection_model2 = LoadBalancerPoolCollection(**load_balancer_pool_collection_model_dict) # Verify the model instances are equivalent @@ -67721,12 +70944,18 @@ def test_load_balancer_pool_health_monitor_serialization(self): load_balancer_pool_health_monitor_model_json['url_path'] = '/' # Construct a model instance of LoadBalancerPoolHealthMonitor by calling from_dict on the json representation - load_balancer_pool_health_monitor_model = LoadBalancerPoolHealthMonitor.from_dict(load_balancer_pool_health_monitor_model_json) + load_balancer_pool_health_monitor_model = LoadBalancerPoolHealthMonitor.from_dict( + load_balancer_pool_health_monitor_model_json + ) assert load_balancer_pool_health_monitor_model != False # Construct a model instance of LoadBalancerPoolHealthMonitor by calling from_dict on the json representation - load_balancer_pool_health_monitor_model_dict = LoadBalancerPoolHealthMonitor.from_dict(load_balancer_pool_health_monitor_model_json).__dict__ - load_balancer_pool_health_monitor_model2 = LoadBalancerPoolHealthMonitor(**load_balancer_pool_health_monitor_model_dict) + load_balancer_pool_health_monitor_model_dict = LoadBalancerPoolHealthMonitor.from_dict( + load_balancer_pool_health_monitor_model_json + ).__dict__ + load_balancer_pool_health_monitor_model2 = LoadBalancerPoolHealthMonitor( + **load_balancer_pool_health_monitor_model_dict + ) # Verify the model instances are equivalent assert load_balancer_pool_health_monitor_model == load_balancer_pool_health_monitor_model2 @@ -67756,12 +70985,18 @@ def test_load_balancer_pool_health_monitor_patch_serialization(self): load_balancer_pool_health_monitor_patch_model_json['url_path'] = '/' # Construct a model instance of LoadBalancerPoolHealthMonitorPatch by calling from_dict on the json representation - load_balancer_pool_health_monitor_patch_model = LoadBalancerPoolHealthMonitorPatch.from_dict(load_balancer_pool_health_monitor_patch_model_json) + load_balancer_pool_health_monitor_patch_model = LoadBalancerPoolHealthMonitorPatch.from_dict( + load_balancer_pool_health_monitor_patch_model_json + ) assert load_balancer_pool_health_monitor_patch_model != False # Construct a model instance of LoadBalancerPoolHealthMonitorPatch by calling from_dict on the json representation - load_balancer_pool_health_monitor_patch_model_dict = LoadBalancerPoolHealthMonitorPatch.from_dict(load_balancer_pool_health_monitor_patch_model_json).__dict__ - load_balancer_pool_health_monitor_patch_model2 = LoadBalancerPoolHealthMonitorPatch(**load_balancer_pool_health_monitor_patch_model_dict) + load_balancer_pool_health_monitor_patch_model_dict = LoadBalancerPoolHealthMonitorPatch.from_dict( + load_balancer_pool_health_monitor_patch_model_json + ).__dict__ + load_balancer_pool_health_monitor_patch_model2 = LoadBalancerPoolHealthMonitorPatch( + **load_balancer_pool_health_monitor_patch_model_dict + ) # Verify the model instances are equivalent assert load_balancer_pool_health_monitor_patch_model == load_balancer_pool_health_monitor_patch_model2 @@ -67791,19 +71026,30 @@ def test_load_balancer_pool_health_monitor_prototype_serialization(self): load_balancer_pool_health_monitor_prototype_model_json['url_path'] = '/' # Construct a model instance of LoadBalancerPoolHealthMonitorPrototype by calling from_dict on the json representation - load_balancer_pool_health_monitor_prototype_model = LoadBalancerPoolHealthMonitorPrototype.from_dict(load_balancer_pool_health_monitor_prototype_model_json) + load_balancer_pool_health_monitor_prototype_model = LoadBalancerPoolHealthMonitorPrototype.from_dict( + load_balancer_pool_health_monitor_prototype_model_json + ) assert load_balancer_pool_health_monitor_prototype_model != False # Construct a model instance of LoadBalancerPoolHealthMonitorPrototype by calling from_dict on the json representation - load_balancer_pool_health_monitor_prototype_model_dict = LoadBalancerPoolHealthMonitorPrototype.from_dict(load_balancer_pool_health_monitor_prototype_model_json).__dict__ - load_balancer_pool_health_monitor_prototype_model2 = LoadBalancerPoolHealthMonitorPrototype(**load_balancer_pool_health_monitor_prototype_model_dict) + load_balancer_pool_health_monitor_prototype_model_dict = LoadBalancerPoolHealthMonitorPrototype.from_dict( + load_balancer_pool_health_monitor_prototype_model_json + ).__dict__ + load_balancer_pool_health_monitor_prototype_model2 = LoadBalancerPoolHealthMonitorPrototype( + **load_balancer_pool_health_monitor_prototype_model_dict + ) # Verify the model instances are equivalent assert load_balancer_pool_health_monitor_prototype_model == load_balancer_pool_health_monitor_prototype_model2 # Convert model instance back to dict and verify no loss of data - load_balancer_pool_health_monitor_prototype_model_json2 = load_balancer_pool_health_monitor_prototype_model.to_dict() - assert load_balancer_pool_health_monitor_prototype_model_json2 == load_balancer_pool_health_monitor_prototype_model_json + load_balancer_pool_health_monitor_prototype_model_json2 = ( + load_balancer_pool_health_monitor_prototype_model.to_dict() + ) + assert ( + load_balancer_pool_health_monitor_prototype_model_json2 + == load_balancer_pool_health_monitor_prototype_model_json + ) class TestModel_LoadBalancerPoolIdentityByName: @@ -67821,12 +71067,18 @@ def test_load_balancer_pool_identity_by_name_serialization(self): load_balancer_pool_identity_by_name_model_json['name'] = 'my-load-balancer-pool' # Construct a model instance of LoadBalancerPoolIdentityByName by calling from_dict on the json representation - load_balancer_pool_identity_by_name_model = LoadBalancerPoolIdentityByName.from_dict(load_balancer_pool_identity_by_name_model_json) + load_balancer_pool_identity_by_name_model = LoadBalancerPoolIdentityByName.from_dict( + load_balancer_pool_identity_by_name_model_json + ) assert load_balancer_pool_identity_by_name_model != False # Construct a model instance of LoadBalancerPoolIdentityByName by calling from_dict on the json representation - load_balancer_pool_identity_by_name_model_dict = LoadBalancerPoolIdentityByName.from_dict(load_balancer_pool_identity_by_name_model_json).__dict__ - load_balancer_pool_identity_by_name_model2 = LoadBalancerPoolIdentityByName(**load_balancer_pool_identity_by_name_model_dict) + load_balancer_pool_identity_by_name_model_dict = LoadBalancerPoolIdentityByName.from_dict( + load_balancer_pool_identity_by_name_model_json + ).__dict__ + load_balancer_pool_identity_by_name_model2 = LoadBalancerPoolIdentityByName( + **load_balancer_pool_identity_by_name_model_dict + ) # Verify the model instances are equivalent assert load_balancer_pool_identity_by_name_model == load_balancer_pool_identity_by_name_model2 @@ -67852,9 +71104,13 @@ def test_load_balancer_pool_member_serialization(self): deleted_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#deleted-resources' load_balancer_pool_member_target_model = {} # LoadBalancerPoolMemberTargetInstanceReference - load_balancer_pool_member_target_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::instance:0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' + load_balancer_pool_member_target_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::instance:0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' + ) load_balancer_pool_member_target_model['deleted'] = deleted_model - load_balancer_pool_member_target_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' + load_balancer_pool_member_target_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' + ) load_balancer_pool_member_target_model['id'] = '0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' load_balancer_pool_member_target_model['name'] = 'my-instance' @@ -67862,7 +71118,9 @@ def test_load_balancer_pool_member_serialization(self): load_balancer_pool_member_model_json = {} load_balancer_pool_member_model_json['created_at'] = '2019-01-01T12:00:00Z' load_balancer_pool_member_model_json['health'] = 'faulted' - load_balancer_pool_member_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/pools/70294e14-4e61-11e8-bcf4-0242ac110004/members/80294e14-4e61-11e8-bcf4-0242ac110004' + load_balancer_pool_member_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/pools/70294e14-4e61-11e8-bcf4-0242ac110004/members/80294e14-4e61-11e8-bcf4-0242ac110004' + ) load_balancer_pool_member_model_json['id'] = '70294e14-4e61-11e8-bcf4-0242ac110004' load_balancer_pool_member_model_json['port'] = 80 load_balancer_pool_member_model_json['provisioning_status'] = 'active' @@ -67874,7 +71132,9 @@ def test_load_balancer_pool_member_serialization(self): assert load_balancer_pool_member_model != False # Construct a model instance of LoadBalancerPoolMember by calling from_dict on the json representation - load_balancer_pool_member_model_dict = LoadBalancerPoolMember.from_dict(load_balancer_pool_member_model_json).__dict__ + load_balancer_pool_member_model_dict = LoadBalancerPoolMember.from_dict( + load_balancer_pool_member_model_json + ).__dict__ load_balancer_pool_member_model2 = LoadBalancerPoolMember(**load_balancer_pool_member_model_dict) # Verify the model instances are equivalent @@ -67901,16 +71161,22 @@ def test_load_balancer_pool_member_collection_serialization(self): deleted_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#deleted-resources' load_balancer_pool_member_target_model = {} # LoadBalancerPoolMemberTargetInstanceReference - load_balancer_pool_member_target_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::instance:0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' + load_balancer_pool_member_target_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::instance:0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' + ) load_balancer_pool_member_target_model['deleted'] = deleted_model - load_balancer_pool_member_target_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' + load_balancer_pool_member_target_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' + ) load_balancer_pool_member_target_model['id'] = '0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' load_balancer_pool_member_target_model['name'] = 'my-instance' load_balancer_pool_member_model = {} # LoadBalancerPoolMember load_balancer_pool_member_model['created_at'] = '2019-01-01T12:00:00Z' load_balancer_pool_member_model['health'] = 'faulted' - load_balancer_pool_member_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/pools/70294e14-4e61-11e8-bcf4-0242ac110004/members/80294e14-4e61-11e8-bcf4-0242ac110004' + load_balancer_pool_member_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/pools/70294e14-4e61-11e8-bcf4-0242ac110004/members/80294e14-4e61-11e8-bcf4-0242ac110004' + ) load_balancer_pool_member_model['id'] = '70294e14-4e61-11e8-bcf4-0242ac110004' load_balancer_pool_member_model['port'] = 80 load_balancer_pool_member_model['provisioning_status'] = 'active' @@ -67922,12 +71188,18 @@ def test_load_balancer_pool_member_collection_serialization(self): load_balancer_pool_member_collection_model_json['members'] = [load_balancer_pool_member_model] # Construct a model instance of LoadBalancerPoolMemberCollection by calling from_dict on the json representation - load_balancer_pool_member_collection_model = LoadBalancerPoolMemberCollection.from_dict(load_balancer_pool_member_collection_model_json) + load_balancer_pool_member_collection_model = LoadBalancerPoolMemberCollection.from_dict( + load_balancer_pool_member_collection_model_json + ) assert load_balancer_pool_member_collection_model != False # Construct a model instance of LoadBalancerPoolMemberCollection by calling from_dict on the json representation - load_balancer_pool_member_collection_model_dict = LoadBalancerPoolMemberCollection.from_dict(load_balancer_pool_member_collection_model_json).__dict__ - load_balancer_pool_member_collection_model2 = LoadBalancerPoolMemberCollection(**load_balancer_pool_member_collection_model_dict) + load_balancer_pool_member_collection_model_dict = LoadBalancerPoolMemberCollection.from_dict( + load_balancer_pool_member_collection_model_json + ).__dict__ + load_balancer_pool_member_collection_model2 = LoadBalancerPoolMemberCollection( + **load_balancer_pool_member_collection_model_dict + ) # Verify the model instances are equivalent assert load_balancer_pool_member_collection_model == load_balancer_pool_member_collection_model2 @@ -67949,7 +71221,9 @@ def test_load_balancer_pool_member_patch_serialization(self): # Construct dict forms of any model objects needed in order to build this model. - load_balancer_pool_member_target_prototype_model = {} # LoadBalancerPoolMemberTargetPrototypeInstanceIdentityInstanceIdentityById + load_balancer_pool_member_target_prototype_model = ( + {} + ) # LoadBalancerPoolMemberTargetPrototypeInstanceIdentityInstanceIdentityById load_balancer_pool_member_target_prototype_model['id'] = '0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' # Construct a json representation of a LoadBalancerPoolMemberPatch model @@ -67959,12 +71233,18 @@ def test_load_balancer_pool_member_patch_serialization(self): load_balancer_pool_member_patch_model_json['weight'] = 50 # Construct a model instance of LoadBalancerPoolMemberPatch by calling from_dict on the json representation - load_balancer_pool_member_patch_model = LoadBalancerPoolMemberPatch.from_dict(load_balancer_pool_member_patch_model_json) + load_balancer_pool_member_patch_model = LoadBalancerPoolMemberPatch.from_dict( + load_balancer_pool_member_patch_model_json + ) assert load_balancer_pool_member_patch_model != False # Construct a model instance of LoadBalancerPoolMemberPatch by calling from_dict on the json representation - load_balancer_pool_member_patch_model_dict = LoadBalancerPoolMemberPatch.from_dict(load_balancer_pool_member_patch_model_json).__dict__ - load_balancer_pool_member_patch_model2 = LoadBalancerPoolMemberPatch(**load_balancer_pool_member_patch_model_dict) + load_balancer_pool_member_patch_model_dict = LoadBalancerPoolMemberPatch.from_dict( + load_balancer_pool_member_patch_model_json + ).__dict__ + load_balancer_pool_member_patch_model2 = LoadBalancerPoolMemberPatch( + **load_balancer_pool_member_patch_model_dict + ) # Verify the model instances are equivalent assert load_balancer_pool_member_patch_model == load_balancer_pool_member_patch_model2 @@ -67986,7 +71266,9 @@ def test_load_balancer_pool_member_prototype_serialization(self): # Construct dict forms of any model objects needed in order to build this model. - load_balancer_pool_member_target_prototype_model = {} # LoadBalancerPoolMemberTargetPrototypeInstanceIdentityInstanceIdentityById + load_balancer_pool_member_target_prototype_model = ( + {} + ) # LoadBalancerPoolMemberTargetPrototypeInstanceIdentityInstanceIdentityById load_balancer_pool_member_target_prototype_model['id'] = '0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' # Construct a json representation of a LoadBalancerPoolMemberPrototype model @@ -67996,12 +71278,18 @@ def test_load_balancer_pool_member_prototype_serialization(self): load_balancer_pool_member_prototype_model_json['weight'] = 50 # Construct a model instance of LoadBalancerPoolMemberPrototype by calling from_dict on the json representation - load_balancer_pool_member_prototype_model = LoadBalancerPoolMemberPrototype.from_dict(load_balancer_pool_member_prototype_model_json) + load_balancer_pool_member_prototype_model = LoadBalancerPoolMemberPrototype.from_dict( + load_balancer_pool_member_prototype_model_json + ) assert load_balancer_pool_member_prototype_model != False # Construct a model instance of LoadBalancerPoolMemberPrototype by calling from_dict on the json representation - load_balancer_pool_member_prototype_model_dict = LoadBalancerPoolMemberPrototype.from_dict(load_balancer_pool_member_prototype_model_json).__dict__ - load_balancer_pool_member_prototype_model2 = LoadBalancerPoolMemberPrototype(**load_balancer_pool_member_prototype_model_dict) + load_balancer_pool_member_prototype_model_dict = LoadBalancerPoolMemberPrototype.from_dict( + load_balancer_pool_member_prototype_model_json + ).__dict__ + load_balancer_pool_member_prototype_model2 = LoadBalancerPoolMemberPrototype( + **load_balancer_pool_member_prototype_model_dict + ) # Verify the model instances are equivalent assert load_balancer_pool_member_prototype_model == load_balancer_pool_member_prototype_model2 @@ -68029,16 +71317,24 @@ def test_load_balancer_pool_member_reference_serialization(self): # Construct a json representation of a LoadBalancerPoolMemberReference model load_balancer_pool_member_reference_model_json = {} load_balancer_pool_member_reference_model_json['deleted'] = deleted_model - load_balancer_pool_member_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/pools/70294e14-4e61-11e8-bcf4-0242ac110004/members/80294e14-4e61-11e8-bcf4-0242ac110004' + load_balancer_pool_member_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/pools/70294e14-4e61-11e8-bcf4-0242ac110004/members/80294e14-4e61-11e8-bcf4-0242ac110004' + ) load_balancer_pool_member_reference_model_json['id'] = '70294e14-4e61-11e8-bcf4-0242ac110004' # Construct a model instance of LoadBalancerPoolMemberReference by calling from_dict on the json representation - load_balancer_pool_member_reference_model = LoadBalancerPoolMemberReference.from_dict(load_balancer_pool_member_reference_model_json) + load_balancer_pool_member_reference_model = LoadBalancerPoolMemberReference.from_dict( + load_balancer_pool_member_reference_model_json + ) assert load_balancer_pool_member_reference_model != False # Construct a model instance of LoadBalancerPoolMemberReference by calling from_dict on the json representation - load_balancer_pool_member_reference_model_dict = LoadBalancerPoolMemberReference.from_dict(load_balancer_pool_member_reference_model_json).__dict__ - load_balancer_pool_member_reference_model2 = LoadBalancerPoolMemberReference(**load_balancer_pool_member_reference_model_dict) + load_balancer_pool_member_reference_model_dict = LoadBalancerPoolMemberReference.from_dict( + load_balancer_pool_member_reference_model_json + ).__dict__ + load_balancer_pool_member_reference_model2 = LoadBalancerPoolMemberReference( + **load_balancer_pool_member_reference_model_dict + ) # Verify the model instances are equivalent assert load_balancer_pool_member_reference_model == load_balancer_pool_member_reference_model2 @@ -68086,7 +71382,9 @@ def test_load_balancer_pool_patch_serialization(self): assert load_balancer_pool_patch_model != False # Construct a model instance of LoadBalancerPoolPatch by calling from_dict on the json representation - load_balancer_pool_patch_model_dict = LoadBalancerPoolPatch.from_dict(load_balancer_pool_patch_model_json).__dict__ + load_balancer_pool_patch_model_dict = LoadBalancerPoolPatch.from_dict( + load_balancer_pool_patch_model_json + ).__dict__ load_balancer_pool_patch_model2 = LoadBalancerPoolPatch(**load_balancer_pool_patch_model_dict) # Verify the model instances are equivalent @@ -68117,7 +71415,9 @@ def test_load_balancer_pool_prototype_serialization(self): load_balancer_pool_health_monitor_prototype_model['type'] = 'http' load_balancer_pool_health_monitor_prototype_model['url_path'] = '/' - load_balancer_pool_member_target_prototype_model = {} # LoadBalancerPoolMemberTargetPrototypeInstanceIdentityInstanceIdentityById + load_balancer_pool_member_target_prototype_model = ( + {} + ) # LoadBalancerPoolMemberTargetPrototypeInstanceIdentityInstanceIdentityById load_balancer_pool_member_target_prototype_model['id'] = '0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' load_balancer_pool_member_prototype_model = {} # LoadBalancerPoolMemberPrototype @@ -68137,14 +71437,20 @@ def test_load_balancer_pool_prototype_serialization(self): load_balancer_pool_prototype_model_json['name'] = 'my-load-balancer-pool' load_balancer_pool_prototype_model_json['protocol'] = 'http' load_balancer_pool_prototype_model_json['proxy_protocol'] = 'disabled' - load_balancer_pool_prototype_model_json['session_persistence'] = load_balancer_pool_session_persistence_prototype_model + load_balancer_pool_prototype_model_json['session_persistence'] = ( + load_balancer_pool_session_persistence_prototype_model + ) # Construct a model instance of LoadBalancerPoolPrototype by calling from_dict on the json representation - load_balancer_pool_prototype_model = LoadBalancerPoolPrototype.from_dict(load_balancer_pool_prototype_model_json) + load_balancer_pool_prototype_model = LoadBalancerPoolPrototype.from_dict( + load_balancer_pool_prototype_model_json + ) assert load_balancer_pool_prototype_model != False # Construct a model instance of LoadBalancerPoolPrototype by calling from_dict on the json representation - load_balancer_pool_prototype_model_dict = LoadBalancerPoolPrototype.from_dict(load_balancer_pool_prototype_model_json).__dict__ + load_balancer_pool_prototype_model_dict = LoadBalancerPoolPrototype.from_dict( + load_balancer_pool_prototype_model_json + ).__dict__ load_balancer_pool_prototype_model2 = LoadBalancerPoolPrototype(**load_balancer_pool_prototype_model_dict) # Verify the model instances are equivalent @@ -68173,16 +71479,22 @@ def test_load_balancer_pool_reference_serialization(self): # Construct a json representation of a LoadBalancerPoolReference model load_balancer_pool_reference_model_json = {} load_balancer_pool_reference_model_json['deleted'] = deleted_model - load_balancer_pool_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/pools/70294e14-4e61-11e8-bcf4-0242ac110004' + load_balancer_pool_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/pools/70294e14-4e61-11e8-bcf4-0242ac110004' + ) load_balancer_pool_reference_model_json['id'] = '70294e14-4e61-11e8-bcf4-0242ac110004' load_balancer_pool_reference_model_json['name'] = 'my-load-balancer-pool' # Construct a model instance of LoadBalancerPoolReference by calling from_dict on the json representation - load_balancer_pool_reference_model = LoadBalancerPoolReference.from_dict(load_balancer_pool_reference_model_json) + load_balancer_pool_reference_model = LoadBalancerPoolReference.from_dict( + load_balancer_pool_reference_model_json + ) assert load_balancer_pool_reference_model != False # Construct a model instance of LoadBalancerPoolReference by calling from_dict on the json representation - load_balancer_pool_reference_model_dict = LoadBalancerPoolReference.from_dict(load_balancer_pool_reference_model_json).__dict__ + load_balancer_pool_reference_model_dict = LoadBalancerPoolReference.from_dict( + load_balancer_pool_reference_model_json + ).__dict__ load_balancer_pool_reference_model2 = LoadBalancerPoolReference(**load_balancer_pool_reference_model_dict) # Verify the model instances are equivalent @@ -68209,12 +71521,18 @@ def test_load_balancer_pool_session_persistence_serialization(self): load_balancer_pool_session_persistence_model_json['type'] = 'app_cookie' # Construct a model instance of LoadBalancerPoolSessionPersistence by calling from_dict on the json representation - load_balancer_pool_session_persistence_model = LoadBalancerPoolSessionPersistence.from_dict(load_balancer_pool_session_persistence_model_json) + load_balancer_pool_session_persistence_model = LoadBalancerPoolSessionPersistence.from_dict( + load_balancer_pool_session_persistence_model_json + ) assert load_balancer_pool_session_persistence_model != False # Construct a model instance of LoadBalancerPoolSessionPersistence by calling from_dict on the json representation - load_balancer_pool_session_persistence_model_dict = LoadBalancerPoolSessionPersistence.from_dict(load_balancer_pool_session_persistence_model_json).__dict__ - load_balancer_pool_session_persistence_model2 = LoadBalancerPoolSessionPersistence(**load_balancer_pool_session_persistence_model_dict) + load_balancer_pool_session_persistence_model_dict = LoadBalancerPoolSessionPersistence.from_dict( + load_balancer_pool_session_persistence_model_json + ).__dict__ + load_balancer_pool_session_persistence_model2 = LoadBalancerPoolSessionPersistence( + **load_balancer_pool_session_persistence_model_dict + ) # Verify the model instances are equivalent assert load_balancer_pool_session_persistence_model == load_balancer_pool_session_persistence_model2 @@ -68240,19 +71558,30 @@ def test_load_balancer_pool_session_persistence_patch_serialization(self): load_balancer_pool_session_persistence_patch_model_json['type'] = 'app_cookie' # Construct a model instance of LoadBalancerPoolSessionPersistencePatch by calling from_dict on the json representation - load_balancer_pool_session_persistence_patch_model = LoadBalancerPoolSessionPersistencePatch.from_dict(load_balancer_pool_session_persistence_patch_model_json) + load_balancer_pool_session_persistence_patch_model = LoadBalancerPoolSessionPersistencePatch.from_dict( + load_balancer_pool_session_persistence_patch_model_json + ) assert load_balancer_pool_session_persistence_patch_model != False # Construct a model instance of LoadBalancerPoolSessionPersistencePatch by calling from_dict on the json representation - load_balancer_pool_session_persistence_patch_model_dict = LoadBalancerPoolSessionPersistencePatch.from_dict(load_balancer_pool_session_persistence_patch_model_json).__dict__ - load_balancer_pool_session_persistence_patch_model2 = LoadBalancerPoolSessionPersistencePatch(**load_balancer_pool_session_persistence_patch_model_dict) + load_balancer_pool_session_persistence_patch_model_dict = LoadBalancerPoolSessionPersistencePatch.from_dict( + load_balancer_pool_session_persistence_patch_model_json + ).__dict__ + load_balancer_pool_session_persistence_patch_model2 = LoadBalancerPoolSessionPersistencePatch( + **load_balancer_pool_session_persistence_patch_model_dict + ) # Verify the model instances are equivalent assert load_balancer_pool_session_persistence_patch_model == load_balancer_pool_session_persistence_patch_model2 # Convert model instance back to dict and verify no loss of data - load_balancer_pool_session_persistence_patch_model_json2 = load_balancer_pool_session_persistence_patch_model.to_dict() - assert load_balancer_pool_session_persistence_patch_model_json2 == load_balancer_pool_session_persistence_patch_model_json + load_balancer_pool_session_persistence_patch_model_json2 = ( + load_balancer_pool_session_persistence_patch_model.to_dict() + ) + assert ( + load_balancer_pool_session_persistence_patch_model_json2 + == load_balancer_pool_session_persistence_patch_model_json + ) class TestModel_LoadBalancerPoolSessionPersistencePrototype: @@ -68271,19 +71600,35 @@ def test_load_balancer_pool_session_persistence_prototype_serialization(self): load_balancer_pool_session_persistence_prototype_model_json['type'] = 'app_cookie' # Construct a model instance of LoadBalancerPoolSessionPersistencePrototype by calling from_dict on the json representation - load_balancer_pool_session_persistence_prototype_model = LoadBalancerPoolSessionPersistencePrototype.from_dict(load_balancer_pool_session_persistence_prototype_model_json) + load_balancer_pool_session_persistence_prototype_model = LoadBalancerPoolSessionPersistencePrototype.from_dict( + load_balancer_pool_session_persistence_prototype_model_json + ) assert load_balancer_pool_session_persistence_prototype_model != False # Construct a model instance of LoadBalancerPoolSessionPersistencePrototype by calling from_dict on the json representation - load_balancer_pool_session_persistence_prototype_model_dict = LoadBalancerPoolSessionPersistencePrototype.from_dict(load_balancer_pool_session_persistence_prototype_model_json).__dict__ - load_balancer_pool_session_persistence_prototype_model2 = LoadBalancerPoolSessionPersistencePrototype(**load_balancer_pool_session_persistence_prototype_model_dict) + load_balancer_pool_session_persistence_prototype_model_dict = ( + LoadBalancerPoolSessionPersistencePrototype.from_dict( + load_balancer_pool_session_persistence_prototype_model_json + ).__dict__ + ) + load_balancer_pool_session_persistence_prototype_model2 = LoadBalancerPoolSessionPersistencePrototype( + **load_balancer_pool_session_persistence_prototype_model_dict + ) # Verify the model instances are equivalent - assert load_balancer_pool_session_persistence_prototype_model == load_balancer_pool_session_persistence_prototype_model2 + assert ( + load_balancer_pool_session_persistence_prototype_model + == load_balancer_pool_session_persistence_prototype_model2 + ) # Convert model instance back to dict and verify no loss of data - load_balancer_pool_session_persistence_prototype_model_json2 = load_balancer_pool_session_persistence_prototype_model.to_dict() - assert load_balancer_pool_session_persistence_prototype_model_json2 == load_balancer_pool_session_persistence_prototype_model_json + load_balancer_pool_session_persistence_prototype_model_json2 = ( + load_balancer_pool_session_persistence_prototype_model.to_dict() + ) + assert ( + load_balancer_pool_session_persistence_prototype_model_json2 + == load_balancer_pool_session_persistence_prototype_model_json + ) class TestModel_LoadBalancerProfile: @@ -68322,7 +71667,9 @@ def test_load_balancer_profile_serialization(self): load_balancer_profile_security_groups_supported_model['type'] = 'fixed' load_balancer_profile_security_groups_supported_model['value'] = True - load_balancer_profile_source_ip_session_persistence_supported_model = {} # LoadBalancerProfileSourceIPSessionPersistenceSupportedFixed + load_balancer_profile_source_ip_session_persistence_supported_model = ( + {} + ) # LoadBalancerProfileSourceIPSessionPersistenceSupportedFixed load_balancer_profile_source_ip_session_persistence_supported_model['type'] = 'fixed' load_balancer_profile_source_ip_session_persistence_supported_model['value'] = True @@ -68335,13 +71682,21 @@ def test_load_balancer_profile_serialization(self): load_balancer_profile_model_json['access_modes'] = load_balancer_profile_access_modes_model load_balancer_profile_model_json['availability'] = load_balancer_profile_availability_model load_balancer_profile_model_json['family'] = 'network' - load_balancer_profile_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/load_balancer/profiles/network-fixed' - load_balancer_profile_model_json['instance_groups_supported'] = load_balancer_profile_instance_groups_supported_model + load_balancer_profile_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/load_balancer/profiles/network-fixed' + ) + load_balancer_profile_model_json['instance_groups_supported'] = ( + load_balancer_profile_instance_groups_supported_model + ) load_balancer_profile_model_json['logging_supported'] = load_balancer_profile_logging_supported_model load_balancer_profile_model_json['name'] = 'network-fixed' load_balancer_profile_model_json['route_mode_supported'] = load_balancer_profile_route_mode_supported_model - load_balancer_profile_model_json['security_groups_supported'] = load_balancer_profile_security_groups_supported_model - load_balancer_profile_model_json['source_ip_session_persistence_supported'] = load_balancer_profile_source_ip_session_persistence_supported_model + load_balancer_profile_model_json['security_groups_supported'] = ( + load_balancer_profile_security_groups_supported_model + ) + load_balancer_profile_model_json['source_ip_session_persistence_supported'] = ( + load_balancer_profile_source_ip_session_persistence_supported_model + ) load_balancer_profile_model_json['udp_supported'] = load_balancer_profile_udp_supported_model # Construct a model instance of LoadBalancerProfile by calling from_dict on the json representation @@ -68376,12 +71731,18 @@ def test_load_balancer_profile_access_modes_serialization(self): load_balancer_profile_access_modes_model_json['values'] = ['private'] # Construct a model instance of LoadBalancerProfileAccessModes by calling from_dict on the json representation - load_balancer_profile_access_modes_model = LoadBalancerProfileAccessModes.from_dict(load_balancer_profile_access_modes_model_json) + load_balancer_profile_access_modes_model = LoadBalancerProfileAccessModes.from_dict( + load_balancer_profile_access_modes_model_json + ) assert load_balancer_profile_access_modes_model != False # Construct a model instance of LoadBalancerProfileAccessModes by calling from_dict on the json representation - load_balancer_profile_access_modes_model_dict = LoadBalancerProfileAccessModes.from_dict(load_balancer_profile_access_modes_model_json).__dict__ - load_balancer_profile_access_modes_model2 = LoadBalancerProfileAccessModes(**load_balancer_profile_access_modes_model_dict) + load_balancer_profile_access_modes_model_dict = LoadBalancerProfileAccessModes.from_dict( + load_balancer_profile_access_modes_model_json + ).__dict__ + load_balancer_profile_access_modes_model2 = LoadBalancerProfileAccessModes( + **load_balancer_profile_access_modes_model_dict + ) # Verify the model instances are equivalent assert load_balancer_profile_access_modes_model == load_balancer_profile_access_modes_model2 @@ -68430,7 +71791,9 @@ def test_load_balancer_profile_collection_serialization(self): load_balancer_profile_security_groups_supported_model['type'] = 'fixed' load_balancer_profile_security_groups_supported_model['value'] = True - load_balancer_profile_source_ip_session_persistence_supported_model = {} # LoadBalancerProfileSourceIPSessionPersistenceSupportedFixed + load_balancer_profile_source_ip_session_persistence_supported_model = ( + {} + ) # LoadBalancerProfileSourceIPSessionPersistenceSupportedFixed load_balancer_profile_source_ip_session_persistence_supported_model['type'] = 'fixed' load_balancer_profile_source_ip_session_persistence_supported_model['value'] = True @@ -68442,13 +71805,17 @@ def test_load_balancer_profile_collection_serialization(self): load_balancer_profile_model['access_modes'] = load_balancer_profile_access_modes_model load_balancer_profile_model['availability'] = load_balancer_profile_availability_model load_balancer_profile_model['family'] = 'network' - load_balancer_profile_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/load_balancer/profiles/network-fixed' + load_balancer_profile_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/load_balancer/profiles/network-fixed' + ) load_balancer_profile_model['instance_groups_supported'] = load_balancer_profile_instance_groups_supported_model load_balancer_profile_model['logging_supported'] = load_balancer_profile_logging_supported_model load_balancer_profile_model['name'] = 'network-fixed' load_balancer_profile_model['route_mode_supported'] = load_balancer_profile_route_mode_supported_model load_balancer_profile_model['security_groups_supported'] = load_balancer_profile_security_groups_supported_model - load_balancer_profile_model['source_ip_session_persistence_supported'] = load_balancer_profile_source_ip_session_persistence_supported_model + load_balancer_profile_model['source_ip_session_persistence_supported'] = ( + load_balancer_profile_source_ip_session_persistence_supported_model + ) load_balancer_profile_model['udp_supported'] = load_balancer_profile_udp_supported_model # Construct a json representation of a LoadBalancerProfileCollection model @@ -68460,12 +71827,18 @@ def test_load_balancer_profile_collection_serialization(self): load_balancer_profile_collection_model_json['total_count'] = 132 # Construct a model instance of LoadBalancerProfileCollection by calling from_dict on the json representation - load_balancer_profile_collection_model = LoadBalancerProfileCollection.from_dict(load_balancer_profile_collection_model_json) + load_balancer_profile_collection_model = LoadBalancerProfileCollection.from_dict( + load_balancer_profile_collection_model_json + ) assert load_balancer_profile_collection_model != False # Construct a model instance of LoadBalancerProfileCollection by calling from_dict on the json representation - load_balancer_profile_collection_model_dict = LoadBalancerProfileCollection.from_dict(load_balancer_profile_collection_model_json).__dict__ - load_balancer_profile_collection_model2 = LoadBalancerProfileCollection(**load_balancer_profile_collection_model_dict) + load_balancer_profile_collection_model_dict = LoadBalancerProfileCollection.from_dict( + load_balancer_profile_collection_model_json + ).__dict__ + load_balancer_profile_collection_model2 = LoadBalancerProfileCollection( + **load_balancer_profile_collection_model_dict + ) # Verify the model instances are equivalent assert load_balancer_profile_collection_model == load_balancer_profile_collection_model2 @@ -68491,12 +71864,18 @@ def test_load_balancer_profile_logging_supported_serialization(self): load_balancer_profile_logging_supported_model_json['value'] = ['datapath'] # Construct a model instance of LoadBalancerProfileLoggingSupported by calling from_dict on the json representation - load_balancer_profile_logging_supported_model = LoadBalancerProfileLoggingSupported.from_dict(load_balancer_profile_logging_supported_model_json) + load_balancer_profile_logging_supported_model = LoadBalancerProfileLoggingSupported.from_dict( + load_balancer_profile_logging_supported_model_json + ) assert load_balancer_profile_logging_supported_model != False # Construct a model instance of LoadBalancerProfileLoggingSupported by calling from_dict on the json representation - load_balancer_profile_logging_supported_model_dict = LoadBalancerProfileLoggingSupported.from_dict(load_balancer_profile_logging_supported_model_json).__dict__ - load_balancer_profile_logging_supported_model2 = LoadBalancerProfileLoggingSupported(**load_balancer_profile_logging_supported_model_dict) + load_balancer_profile_logging_supported_model_dict = LoadBalancerProfileLoggingSupported.from_dict( + load_balancer_profile_logging_supported_model_json + ).__dict__ + load_balancer_profile_logging_supported_model2 = LoadBalancerProfileLoggingSupported( + **load_balancer_profile_logging_supported_model_dict + ) # Verify the model instances are equivalent assert load_balancer_profile_logging_supported_model == load_balancer_profile_logging_supported_model2 @@ -68519,16 +71898,24 @@ def test_load_balancer_profile_reference_serialization(self): # Construct a json representation of a LoadBalancerProfileReference model load_balancer_profile_reference_model_json = {} load_balancer_profile_reference_model_json['family'] = 'network' - load_balancer_profile_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/load_balancer/profiles/network-fixed' + load_balancer_profile_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/load_balancer/profiles/network-fixed' + ) load_balancer_profile_reference_model_json['name'] = 'network-fixed' # Construct a model instance of LoadBalancerProfileReference by calling from_dict on the json representation - load_balancer_profile_reference_model = LoadBalancerProfileReference.from_dict(load_balancer_profile_reference_model_json) + load_balancer_profile_reference_model = LoadBalancerProfileReference.from_dict( + load_balancer_profile_reference_model_json + ) assert load_balancer_profile_reference_model != False # Construct a model instance of LoadBalancerProfileReference by calling from_dict on the json representation - load_balancer_profile_reference_model_dict = LoadBalancerProfileReference.from_dict(load_balancer_profile_reference_model_json).__dict__ - load_balancer_profile_reference_model2 = LoadBalancerProfileReference(**load_balancer_profile_reference_model_dict) + load_balancer_profile_reference_model_dict = LoadBalancerProfileReference.from_dict( + load_balancer_profile_reference_model_json + ).__dict__ + load_balancer_profile_reference_model2 = LoadBalancerProfileReference( + **load_balancer_profile_reference_model_dict + ) # Verify the model instances are equivalent assert load_balancer_profile_reference_model == load_balancer_profile_reference_model2 @@ -68555,9 +71942,13 @@ def test_load_balancer_reference_serialization(self): # Construct a json representation of a LoadBalancerReference model load_balancer_reference_model_json = {} - load_balancer_reference_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::load-balancer:dd754295-e9e0-4c9d-bf6c-58fbc59e5727' + load_balancer_reference_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::load-balancer:dd754295-e9e0-4c9d-bf6c-58fbc59e5727' + ) load_balancer_reference_model_json['deleted'] = deleted_model - load_balancer_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727' + load_balancer_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727' + ) load_balancer_reference_model_json['id'] = 'dd754295-e9e0-4c9d-bf6c-58fbc59e5727' load_balancer_reference_model_json['name'] = 'my-load-balancer' load_balancer_reference_model_json['resource_type'] = 'load_balancer' @@ -68567,7 +71958,9 @@ def test_load_balancer_reference_serialization(self): assert load_balancer_reference_model != False # Construct a model instance of LoadBalancerReference by calling from_dict on the json representation - load_balancer_reference_model_dict = LoadBalancerReference.from_dict(load_balancer_reference_model_json).__dict__ + load_balancer_reference_model_dict = LoadBalancerReference.from_dict( + load_balancer_reference_model_json + ).__dict__ load_balancer_reference_model2 = LoadBalancerReference(**load_balancer_reference_model_dict) # Verify the model instances are equivalent @@ -68600,7 +71993,9 @@ def test_load_balancer_statistics_serialization(self): assert load_balancer_statistics_model != False # Construct a model instance of LoadBalancerStatistics by calling from_dict on the json representation - load_balancer_statistics_model_dict = LoadBalancerStatistics.from_dict(load_balancer_statistics_model_json).__dict__ + load_balancer_statistics_model_dict = LoadBalancerStatistics.from_dict( + load_balancer_statistics_model_json + ).__dict__ load_balancer_statistics_model2 = LoadBalancerStatistics(**load_balancer_statistics_model_dict) # Verify the model instances are equivalent @@ -68624,7 +72019,9 @@ def test_network_acl_serialization(self): # Construct dict forms of any model objects needed in order to build this model. resource_group_reference_model = {} # ResourceGroupReference - resource_group_reference_model['href'] = 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + resource_group_reference_model['href'] = ( + 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + ) resource_group_reference_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' resource_group_reference_model['name'] = 'my-resource-group' @@ -68633,7 +72030,9 @@ def test_network_acl_serialization(self): network_acl_rule_reference_model = {} # NetworkACLRuleReference network_acl_rule_reference_model['deleted'] = deleted_model - network_acl_rule_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/network_acls/a4e28308-8ee7-46ab-8108-9f881f22bdbf/rules/8daca77a-4980-4d33-8f3e-7038797be8f9' + network_acl_rule_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/network_acls/a4e28308-8ee7-46ab-8108-9f881f22bdbf/rules/8daca77a-4980-4d33-8f3e-7038797be8f9' + ) network_acl_rule_reference_model['id'] = '8daca77a-4980-4d33-8f3e-7038797be8f9' network_acl_rule_reference_model['name'] = 'my-rule-1' @@ -68643,7 +72042,9 @@ def test_network_acl_serialization(self): network_acl_rule_item_model['created_at'] = '2019-01-01T12:00:00Z' network_acl_rule_item_model['destination'] = '192.168.3.0/24' network_acl_rule_item_model['direction'] = 'inbound' - network_acl_rule_item_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/network_acls/a4e28308-8ee7-46ab-8108-9f881f22bdbf/rules/8daca77a-4980-4d33-8f3e-7038797be8f9' + network_acl_rule_item_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/network_acls/a4e28308-8ee7-46ab-8108-9f881f22bdbf/rules/8daca77a-4980-4d33-8f3e-7038797be8f9' + ) network_acl_rule_item_model['id'] = '8daca77a-4980-4d33-8f3e-7038797be8f9' network_acl_rule_item_model['ip_version'] = 'ipv4' network_acl_rule_item_model['name'] = 'my-rule-1' @@ -68655,17 +72056,25 @@ def test_network_acl_serialization(self): network_acl_rule_item_model['source_port_min'] = 49152 subnet_reference_model = {} # SubnetReference - subnet_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['deleted'] = deleted_model - subnet_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['id'] = '0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' subnet_reference_model['name'] = 'my-subnet' subnet_reference_model['resource_type'] = 'subnet' vpc_reference_model = {} # VPCReference - vpc_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_model['deleted'] = deleted_model - vpc_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_model['id'] = 'r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' vpc_reference_model['name'] = 'my-vpc' vpc_reference_model['resource_type'] = 'vpc' @@ -68673,8 +72082,12 @@ def test_network_acl_serialization(self): # Construct a json representation of a NetworkACL model network_acl_model_json = {} network_acl_model_json['created_at'] = '2019-01-01T12:00:00Z' - network_acl_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::network-acl:r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf' - network_acl_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/network_acls/r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf' + network_acl_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::network-acl:r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf' + ) + network_acl_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/network_acls/r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf' + ) network_acl_model_json['id'] = 'r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf' network_acl_model_json['name'] = 'my-network-acl' network_acl_model_json['resource_group'] = resource_group_reference_model @@ -68714,7 +72127,9 @@ def test_network_acl_collection_serialization(self): page_link_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/network_acls?limit=20' resource_group_reference_model = {} # ResourceGroupReference - resource_group_reference_model['href'] = 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + resource_group_reference_model['href'] = ( + 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + ) resource_group_reference_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' resource_group_reference_model['name'] = 'my-resource-group' @@ -68723,7 +72138,9 @@ def test_network_acl_collection_serialization(self): network_acl_rule_reference_model = {} # NetworkACLRuleReference network_acl_rule_reference_model['deleted'] = deleted_model - network_acl_rule_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/network_acls/a4e28308-8ee7-46ab-8108-9f881f22bdbf/rules/8daca77a-4980-4d33-8f3e-7038797be8f9' + network_acl_rule_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/network_acls/a4e28308-8ee7-46ab-8108-9f881f22bdbf/rules/8daca77a-4980-4d33-8f3e-7038797be8f9' + ) network_acl_rule_reference_model['id'] = '8daca77a-4980-4d33-8f3e-7038797be8f9' network_acl_rule_reference_model['name'] = 'my-rule-1' @@ -68733,7 +72150,9 @@ def test_network_acl_collection_serialization(self): network_acl_rule_item_model['created_at'] = '2019-01-01T12:00:00Z' network_acl_rule_item_model['destination'] = '192.168.3.0/24' network_acl_rule_item_model['direction'] = 'inbound' - network_acl_rule_item_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/network_acls/a4e28308-8ee7-46ab-8108-9f881f22bdbf/rules/8daca77a-4980-4d33-8f3e-7038797be8f9' + network_acl_rule_item_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/network_acls/a4e28308-8ee7-46ab-8108-9f881f22bdbf/rules/8daca77a-4980-4d33-8f3e-7038797be8f9' + ) network_acl_rule_item_model['id'] = '8daca77a-4980-4d33-8f3e-7038797be8f9' network_acl_rule_item_model['ip_version'] = 'ipv4' network_acl_rule_item_model['name'] = 'my-rule-1' @@ -68745,25 +72164,37 @@ def test_network_acl_collection_serialization(self): network_acl_rule_item_model['source_port_min'] = 49152 subnet_reference_model = {} # SubnetReference - subnet_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['deleted'] = deleted_model - subnet_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['id'] = '0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' subnet_reference_model['name'] = 'my-subnet' subnet_reference_model['resource_type'] = 'subnet' vpc_reference_model = {} # VPCReference - vpc_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_model['deleted'] = deleted_model - vpc_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_model['id'] = 'r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' vpc_reference_model['name'] = 'my-vpc' vpc_reference_model['resource_type'] = 'vpc' network_acl_model = {} # NetworkACL network_acl_model['created_at'] = '2019-01-01T12:00:00Z' - network_acl_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::network-acl:r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf' - network_acl_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/network_acls/r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf' + network_acl_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::network-acl:r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf' + ) + network_acl_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/network_acls/r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf' + ) network_acl_model['id'] = 'r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf' network_acl_model['name'] = 'my-network-acl' network_acl_model['resource_group'] = resource_group_reference_model @@ -68842,9 +72273,13 @@ def test_network_acl_reference_serialization(self): # Construct a json representation of a NetworkACLReference model network_acl_reference_model_json = {} - network_acl_reference_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::network-acl:r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf' + network_acl_reference_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::network-acl:r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf' + ) network_acl_reference_model_json['deleted'] = deleted_model - network_acl_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/network_acls/r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf' + network_acl_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/network_acls/r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf' + ) network_acl_reference_model_json['id'] = 'r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf' network_acl_reference_model_json['name'] = 'my-network-acl' @@ -68877,14 +72312,18 @@ def test_network_acl_rule_collection_serialization(self): # Construct dict forms of any model objects needed in order to build this model. page_link_model = {} # PageLink - page_link_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/network_acls/a4e28308-8ee7-46ab-8108-9f881f22bdbf/rules?limit=20' + page_link_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/network_acls/a4e28308-8ee7-46ab-8108-9f881f22bdbf/rules?limit=20' + ) deleted_model = {} # Deleted deleted_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#deleted-resources' network_acl_rule_reference_model = {} # NetworkACLRuleReference network_acl_rule_reference_model['deleted'] = deleted_model - network_acl_rule_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/network_acls/a4e28308-8ee7-46ab-8108-9f881f22bdbf/rules/8daca77a-4980-4d33-8f3e-7038797be8f9' + network_acl_rule_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/network_acls/a4e28308-8ee7-46ab-8108-9f881f22bdbf/rules/8daca77a-4980-4d33-8f3e-7038797be8f9' + ) network_acl_rule_reference_model['id'] = '8daca77a-4980-4d33-8f3e-7038797be8f9' network_acl_rule_reference_model['name'] = 'my-rule-1' @@ -68894,7 +72333,9 @@ def test_network_acl_rule_collection_serialization(self): network_acl_rule_item_model['created_at'] = '2019-01-01T12:00:00Z' network_acl_rule_item_model['destination'] = '192.168.3.0/24' network_acl_rule_item_model['direction'] = 'inbound' - network_acl_rule_item_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/network_acls/a4e28308-8ee7-46ab-8108-9f881f22bdbf/rules/8daca77a-4980-4d33-8f3e-7038797be8f9' + network_acl_rule_item_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/network_acls/a4e28308-8ee7-46ab-8108-9f881f22bdbf/rules/8daca77a-4980-4d33-8f3e-7038797be8f9' + ) network_acl_rule_item_model['id'] = '8daca77a-4980-4d33-8f3e-7038797be8f9' network_acl_rule_item_model['ip_version'] = 'ipv4' network_acl_rule_item_model['name'] = 'my-rule-1' @@ -68918,7 +72359,9 @@ def test_network_acl_rule_collection_serialization(self): assert network_acl_rule_collection_model != False # Construct a model instance of NetworkACLRuleCollection by calling from_dict on the json representation - network_acl_rule_collection_model_dict = NetworkACLRuleCollection.from_dict(network_acl_rule_collection_model_json).__dict__ + network_acl_rule_collection_model_dict = NetworkACLRuleCollection.from_dict( + network_acl_rule_collection_model_json + ).__dict__ network_acl_rule_collection_model2 = NetworkACLRuleCollection(**network_acl_rule_collection_model_dict) # Verify the model instances are equivalent @@ -68994,7 +72437,9 @@ def test_network_acl_rule_reference_serialization(self): # Construct a json representation of a NetworkACLRuleReference model network_acl_rule_reference_model_json = {} network_acl_rule_reference_model_json['deleted'] = deleted_model - network_acl_rule_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/network_acls/a4e28308-8ee7-46ab-8108-9f881f22bdbf/rules/8daca77a-4980-4d33-8f3e-7038797be8f9' + network_acl_rule_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/network_acls/a4e28308-8ee7-46ab-8108-9f881f22bdbf/rules/8daca77a-4980-4d33-8f3e-7038797be8f9' + ) network_acl_rule_reference_model_json['id'] = '8daca77a-4980-4d33-8f3e-7038797be8f9' network_acl_rule_reference_model_json['name'] = 'my-rule-1' @@ -69003,7 +72448,9 @@ def test_network_acl_rule_reference_serialization(self): assert network_acl_rule_reference_model != False # Construct a model instance of NetworkACLRuleReference by calling from_dict on the json representation - network_acl_rule_reference_model_dict = NetworkACLRuleReference.from_dict(network_acl_rule_reference_model_json).__dict__ + network_acl_rule_reference_model_dict = NetworkACLRuleReference.from_dict( + network_acl_rule_reference_model_json + ).__dict__ network_acl_rule_reference_model2 = NetworkACLRuleReference(**network_acl_rule_reference_model_dict) # Verify the model instances are equivalent @@ -69031,31 +72478,45 @@ def test_network_interface_serialization(self): floating_ip_reference_model = {} # FloatingIPReference floating_ip_reference_model['address'] = '203.0.113.1' - floating_ip_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::floating-ip:r006-f45e0d90-12a8-4460-8210-290ff2ab75cd' + floating_ip_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::floating-ip:r006-f45e0d90-12a8-4460-8210-290ff2ab75cd' + ) floating_ip_reference_model['deleted'] = deleted_model - floating_ip_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/floating_ips/r006-f45e0d90-12a8-4460-8210-290ff2ab75cd' + floating_ip_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/floating_ips/r006-f45e0d90-12a8-4460-8210-290ff2ab75cd' + ) floating_ip_reference_model['id'] = 'r006-f45e0d90-12a8-4460-8210-290ff2ab75cd' floating_ip_reference_model['name'] = 'my-floating-ip' reserved_ip_reference_model = {} # ReservedIPReference reserved_ip_reference_model['address'] = '10.0.1.5' reserved_ip_reference_model['deleted'] = deleted_model - reserved_ip_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + reserved_ip_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + ) reserved_ip_reference_model['id'] = '0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' reserved_ip_reference_model['name'] = 'my-reserved-ip' reserved_ip_reference_model['resource_type'] = 'subnet_reserved_ip' security_group_reference_model = {} # SecurityGroupReference - security_group_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::security-group:r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + security_group_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::security-group:r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + ) security_group_reference_model['deleted'] = deleted_model - security_group_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + security_group_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + ) security_group_reference_model['id'] = 'r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' security_group_reference_model['name'] = 'my-security-group' subnet_reference_model = {} # SubnetReference - subnet_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['deleted'] = deleted_model - subnet_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['id'] = '0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' subnet_reference_model['name'] = 'my-subnet' subnet_reference_model['resource_type'] = 'subnet' @@ -69065,7 +72526,9 @@ def test_network_interface_serialization(self): network_interface_model_json['allow_ip_spoofing'] = True network_interface_model_json['created_at'] = '2019-01-01T12:00:00Z' network_interface_model_json['floating_ips'] = [floating_ip_reference_model] - network_interface_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/network_interfaces/0717-d54eb633-98ea-459d-aa00-6a8e780175a7' + network_interface_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/network_interfaces/0717-d54eb633-98ea-459d-aa00-6a8e780175a7' + ) network_interface_model_json['id'] = '0717-d54eb633-98ea-459d-aa00-6a8e780175a7' network_interface_model_json['name'] = 'my-instance-network-interface' network_interface_model_json['port_speed'] = 1000 @@ -69110,15 +72573,21 @@ def test_network_interface_bare_metal_server_context_reference_serialization(sel reserved_ip_reference_model = {} # ReservedIPReference reserved_ip_reference_model['address'] = '192.168.3.4' reserved_ip_reference_model['deleted'] = deleted_model - reserved_ip_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-bea6a632-5e13-42a4-b4b8-31dc877abfe4/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + reserved_ip_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-bea6a632-5e13-42a4-b4b8-31dc877abfe4/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + ) reserved_ip_reference_model['id'] = '0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' reserved_ip_reference_model['name'] = 'my-reserved-ip' reserved_ip_reference_model['resource_type'] = 'subnet_reserved_ip' subnet_reference_model = {} # SubnetReference - subnet_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['deleted'] = deleted_model - subnet_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['id'] = '0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' subnet_reference_model['name'] = 'my-subnet' subnet_reference_model['resource_type'] = 'subnet' @@ -69126,27 +72595,51 @@ def test_network_interface_bare_metal_server_context_reference_serialization(sel # Construct a json representation of a NetworkInterfaceBareMetalServerContextReference model network_interface_bare_metal_server_context_reference_model_json = {} network_interface_bare_metal_server_context_reference_model_json['deleted'] = deleted_model - network_interface_bare_metal_server_context_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/bare_metal_servers/0717-aad10fd7-8a02-4f3e-97f3-b18bd82cf304/network_interfaces/0717-da8c43ec-b6ca-4bd2-871e-72e288c66ee6' - network_interface_bare_metal_server_context_reference_model_json['id'] = '0717-da8c43ec-b6ca-4bd2-871e-72e288c66ee6' - network_interface_bare_metal_server_context_reference_model_json['name'] = 'my-bare-metal-server-network-interface' + network_interface_bare_metal_server_context_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/bare_metal_servers/0717-aad10fd7-8a02-4f3e-97f3-b18bd82cf304/network_interfaces/0717-da8c43ec-b6ca-4bd2-871e-72e288c66ee6' + ) + network_interface_bare_metal_server_context_reference_model_json['id'] = ( + '0717-da8c43ec-b6ca-4bd2-871e-72e288c66ee6' + ) + network_interface_bare_metal_server_context_reference_model_json['name'] = ( + 'my-bare-metal-server-network-interface' + ) network_interface_bare_metal_server_context_reference_model_json['primary_ip'] = reserved_ip_reference_model network_interface_bare_metal_server_context_reference_model_json['resource_type'] = 'network_interface' network_interface_bare_metal_server_context_reference_model_json['subnet'] = subnet_reference_model # Construct a model instance of NetworkInterfaceBareMetalServerContextReference by calling from_dict on the json representation - network_interface_bare_metal_server_context_reference_model = NetworkInterfaceBareMetalServerContextReference.from_dict(network_interface_bare_metal_server_context_reference_model_json) + network_interface_bare_metal_server_context_reference_model = ( + NetworkInterfaceBareMetalServerContextReference.from_dict( + network_interface_bare_metal_server_context_reference_model_json + ) + ) assert network_interface_bare_metal_server_context_reference_model != False # Construct a model instance of NetworkInterfaceBareMetalServerContextReference by calling from_dict on the json representation - network_interface_bare_metal_server_context_reference_model_dict = NetworkInterfaceBareMetalServerContextReference.from_dict(network_interface_bare_metal_server_context_reference_model_json).__dict__ - network_interface_bare_metal_server_context_reference_model2 = NetworkInterfaceBareMetalServerContextReference(**network_interface_bare_metal_server_context_reference_model_dict) + network_interface_bare_metal_server_context_reference_model_dict = ( + NetworkInterfaceBareMetalServerContextReference.from_dict( + network_interface_bare_metal_server_context_reference_model_json + ).__dict__ + ) + network_interface_bare_metal_server_context_reference_model2 = NetworkInterfaceBareMetalServerContextReference( + **network_interface_bare_metal_server_context_reference_model_dict + ) # Verify the model instances are equivalent - assert network_interface_bare_metal_server_context_reference_model == network_interface_bare_metal_server_context_reference_model2 + assert ( + network_interface_bare_metal_server_context_reference_model + == network_interface_bare_metal_server_context_reference_model2 + ) # Convert model instance back to dict and verify no loss of data - network_interface_bare_metal_server_context_reference_model_json2 = network_interface_bare_metal_server_context_reference_model.to_dict() - assert network_interface_bare_metal_server_context_reference_model_json2 == network_interface_bare_metal_server_context_reference_model_json + network_interface_bare_metal_server_context_reference_model_json2 = ( + network_interface_bare_metal_server_context_reference_model.to_dict() + ) + assert ( + network_interface_bare_metal_server_context_reference_model_json2 + == network_interface_bare_metal_server_context_reference_model_json + ) class TestModel_NetworkInterfaceInstanceContextReference: @@ -69167,15 +72660,21 @@ def test_network_interface_instance_context_reference_serialization(self): reserved_ip_reference_model = {} # ReservedIPReference reserved_ip_reference_model['address'] = '10.0.1.5' reserved_ip_reference_model['deleted'] = deleted_model - reserved_ip_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + reserved_ip_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + ) reserved_ip_reference_model['id'] = '0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' reserved_ip_reference_model['name'] = 'my-reserved-ip' reserved_ip_reference_model['resource_type'] = 'subnet_reserved_ip' subnet_reference_model = {} # SubnetReference - subnet_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['deleted'] = deleted_model - subnet_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['id'] = '0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' subnet_reference_model['name'] = 'my-subnet' subnet_reference_model['resource_type'] = 'subnet' @@ -69183,7 +72682,9 @@ def test_network_interface_instance_context_reference_serialization(self): # Construct a json representation of a NetworkInterfaceInstanceContextReference model network_interface_instance_context_reference_model_json = {} network_interface_instance_context_reference_model_json['deleted'] = deleted_model - network_interface_instance_context_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/network_interfaces/0717-d54eb633-98ea-459d-aa00-6a8e780175a7' + network_interface_instance_context_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/network_interfaces/0717-d54eb633-98ea-459d-aa00-6a8e780175a7' + ) network_interface_instance_context_reference_model_json['id'] = '0717-d54eb633-98ea-459d-aa00-6a8e780175a7' network_interface_instance_context_reference_model_json['name'] = 'my-instance-network-interface' network_interface_instance_context_reference_model_json['primary_ip'] = reserved_ip_reference_model @@ -69191,19 +72692,30 @@ def test_network_interface_instance_context_reference_serialization(self): network_interface_instance_context_reference_model_json['subnet'] = subnet_reference_model # Construct a model instance of NetworkInterfaceInstanceContextReference by calling from_dict on the json representation - network_interface_instance_context_reference_model = NetworkInterfaceInstanceContextReference.from_dict(network_interface_instance_context_reference_model_json) + network_interface_instance_context_reference_model = NetworkInterfaceInstanceContextReference.from_dict( + network_interface_instance_context_reference_model_json + ) assert network_interface_instance_context_reference_model != False # Construct a model instance of NetworkInterfaceInstanceContextReference by calling from_dict on the json representation - network_interface_instance_context_reference_model_dict = NetworkInterfaceInstanceContextReference.from_dict(network_interface_instance_context_reference_model_json).__dict__ - network_interface_instance_context_reference_model2 = NetworkInterfaceInstanceContextReference(**network_interface_instance_context_reference_model_dict) + network_interface_instance_context_reference_model_dict = NetworkInterfaceInstanceContextReference.from_dict( + network_interface_instance_context_reference_model_json + ).__dict__ + network_interface_instance_context_reference_model2 = NetworkInterfaceInstanceContextReference( + **network_interface_instance_context_reference_model_dict + ) # Verify the model instances are equivalent assert network_interface_instance_context_reference_model == network_interface_instance_context_reference_model2 # Convert model instance back to dict and verify no loss of data - network_interface_instance_context_reference_model_json2 = network_interface_instance_context_reference_model.to_dict() - assert network_interface_instance_context_reference_model_json2 == network_interface_instance_context_reference_model_json + network_interface_instance_context_reference_model_json2 = ( + network_interface_instance_context_reference_model.to_dict() + ) + assert ( + network_interface_instance_context_reference_model_json2 + == network_interface_instance_context_reference_model_json + ) class TestModel_NetworkInterfacePatch: @@ -69226,7 +72738,9 @@ def test_network_interface_patch_serialization(self): assert network_interface_patch_model != False # Construct a model instance of NetworkInterfacePatch by calling from_dict on the json representation - network_interface_patch_model_dict = NetworkInterfacePatch.from_dict(network_interface_patch_model_json).__dict__ + network_interface_patch_model_dict = NetworkInterfacePatch.from_dict( + network_interface_patch_model_json + ).__dict__ network_interface_patch_model2 = NetworkInterfacePatch(**network_interface_patch_model_dict) # Verify the model instances are equivalent @@ -69249,7 +72763,9 @@ def test_network_interface_prototype_serialization(self): # Construct dict forms of any model objects needed in order to build this model. - network_interface_ip_prototype_model = {} # NetworkInterfaceIPPrototypeReservedIPPrototypeNetworkInterfaceContext + network_interface_ip_prototype_model = ( + {} + ) # NetworkInterfaceIPPrototypeReservedIPPrototypeNetworkInterfaceContext network_interface_ip_prototype_model['address'] = '10.0.0.5' network_interface_ip_prototype_model['auto_delete'] = False network_interface_ip_prototype_model['name'] = 'my-reserved-ip' @@ -69273,7 +72789,9 @@ def test_network_interface_prototype_serialization(self): assert network_interface_prototype_model != False # Construct a model instance of NetworkInterfacePrototype by calling from_dict on the json representation - network_interface_prototype_model_dict = NetworkInterfacePrototype.from_dict(network_interface_prototype_model_json).__dict__ + network_interface_prototype_model_dict = NetworkInterfacePrototype.from_dict( + network_interface_prototype_model_json + ).__dict__ network_interface_prototype_model2 = NetworkInterfacePrototype(**network_interface_prototype_model_dict) # Verify the model instances are equivalent @@ -69301,31 +72819,45 @@ def test_network_interface_unpaginated_collection_serialization(self): floating_ip_reference_model = {} # FloatingIPReference floating_ip_reference_model['address'] = '203.0.113.1' - floating_ip_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::floating-ip:r006-f45e0d90-12a8-4460-8210-290ff2ab75cd' + floating_ip_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::floating-ip:r006-f45e0d90-12a8-4460-8210-290ff2ab75cd' + ) floating_ip_reference_model['deleted'] = deleted_model - floating_ip_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/floating_ips/r006-f45e0d90-12a8-4460-8210-290ff2ab75cd' + floating_ip_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/floating_ips/r006-f45e0d90-12a8-4460-8210-290ff2ab75cd' + ) floating_ip_reference_model['id'] = 'r006-f45e0d90-12a8-4460-8210-290ff2ab75cd' floating_ip_reference_model['name'] = 'my-floating-ip' reserved_ip_reference_model = {} # ReservedIPReference reserved_ip_reference_model['address'] = '10.0.1.5' reserved_ip_reference_model['deleted'] = deleted_model - reserved_ip_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + reserved_ip_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + ) reserved_ip_reference_model['id'] = '0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' reserved_ip_reference_model['name'] = 'my-reserved-ip' reserved_ip_reference_model['resource_type'] = 'subnet_reserved_ip' security_group_reference_model = {} # SecurityGroupReference - security_group_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::security-group:r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + security_group_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::security-group:r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + ) security_group_reference_model['deleted'] = deleted_model - security_group_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + security_group_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + ) security_group_reference_model['id'] = 'r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' security_group_reference_model['name'] = 'my-security-group' subnet_reference_model = {} # SubnetReference - subnet_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['deleted'] = deleted_model - subnet_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['id'] = '0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' subnet_reference_model['name'] = 'my-subnet' subnet_reference_model['resource_type'] = 'subnet' @@ -69334,7 +72866,9 @@ def test_network_interface_unpaginated_collection_serialization(self): network_interface_model['allow_ip_spoofing'] = False network_interface_model['created_at'] = '2024-10-15T03:24:32.993000Z' network_interface_model['floating_ips'] = [floating_ip_reference_model] - network_interface_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/network_interfaces/0717-d54eb633-98ea-459d-aa00-6a8e780175a7' + network_interface_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/network_interfaces/0717-d54eb633-98ea-459d-aa00-6a8e780175a7' + ) network_interface_model['id'] = '0717-d54eb633-98ea-459d-aa00-6a8e780175a7' network_interface_model['name'] = 'my-instance-network-interface' network_interface_model['port_speed'] = 1000 @@ -69350,19 +72884,27 @@ def test_network_interface_unpaginated_collection_serialization(self): network_interface_unpaginated_collection_model_json['network_interfaces'] = [network_interface_model] # Construct a model instance of NetworkInterfaceUnpaginatedCollection by calling from_dict on the json representation - network_interface_unpaginated_collection_model = NetworkInterfaceUnpaginatedCollection.from_dict(network_interface_unpaginated_collection_model_json) + network_interface_unpaginated_collection_model = NetworkInterfaceUnpaginatedCollection.from_dict( + network_interface_unpaginated_collection_model_json + ) assert network_interface_unpaginated_collection_model != False # Construct a model instance of NetworkInterfaceUnpaginatedCollection by calling from_dict on the json representation - network_interface_unpaginated_collection_model_dict = NetworkInterfaceUnpaginatedCollection.from_dict(network_interface_unpaginated_collection_model_json).__dict__ - network_interface_unpaginated_collection_model2 = NetworkInterfaceUnpaginatedCollection(**network_interface_unpaginated_collection_model_dict) + network_interface_unpaginated_collection_model_dict = NetworkInterfaceUnpaginatedCollection.from_dict( + network_interface_unpaginated_collection_model_json + ).__dict__ + network_interface_unpaginated_collection_model2 = NetworkInterfaceUnpaginatedCollection( + **network_interface_unpaginated_collection_model_dict + ) # Verify the model instances are equivalent assert network_interface_unpaginated_collection_model == network_interface_unpaginated_collection_model2 # Convert model instance back to dict and verify no loss of data network_interface_unpaginated_collection_model_json2 = network_interface_unpaginated_collection_model.to_dict() - assert network_interface_unpaginated_collection_model_json2 == network_interface_unpaginated_collection_model_json + assert ( + network_interface_unpaginated_collection_model_json2 == network_interface_unpaginated_collection_model_json + ) class TestModel_OperatingSystem: @@ -69382,7 +72924,9 @@ def test_operating_system_serialization(self): operating_system_model_json['dedicated_host_only'] = False operating_system_model_json['display_name'] = 'Ubuntu Server 16.04 LTS amd64' operating_system_model_json['family'] = 'Ubuntu Server' - operating_system_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/operating_systems/ubuntu-24-04-amd64' + operating_system_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/operating_systems/ubuntu-24-04-amd64' + ) operating_system_model_json['name'] = 'ubuntu-24-04-amd64' operating_system_model_json['user_data_format'] = 'cloud_init' operating_system_model_json['vendor'] = 'Canonical' @@ -69444,7 +72988,9 @@ def test_operating_system_collection_serialization(self): assert operating_system_collection_model != False # Construct a model instance of OperatingSystemCollection by calling from_dict on the json representation - operating_system_collection_model_dict = OperatingSystemCollection.from_dict(operating_system_collection_model_json).__dict__ + operating_system_collection_model_dict = OperatingSystemCollection.from_dict( + operating_system_collection_model_json + ).__dict__ operating_system_collection_model2 = OperatingSystemCollection(**operating_system_collection_model_dict) # Verify the model instances are equivalent @@ -69498,15 +73044,21 @@ def test_placement_group_serialization(self): # Construct dict forms of any model objects needed in order to build this model. resource_group_reference_model = {} # ResourceGroupReference - resource_group_reference_model['href'] = 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + resource_group_reference_model['href'] = ( + 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + ) resource_group_reference_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' resource_group_reference_model['name'] = 'Default' # Construct a json representation of a PlacementGroup model placement_group_model_json = {} placement_group_model_json['created_at'] = '2019-01-01T12:00:00Z' - placement_group_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::placement-group:r006-418fe842-a3e9-47b9-a938-1aa5bd632871' - placement_group_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/placement_groups/r006-418fe842-a3e9-47b9-a938-1aa5bd632871' + placement_group_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::placement-group:r006-418fe842-a3e9-47b9-a938-1aa5bd632871' + ) + placement_group_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/placement_groups/r006-418fe842-a3e9-47b9-a938-1aa5bd632871' + ) placement_group_model_json['id'] = 'r006-418fe842-a3e9-47b9-a938-1aa5bd632871' placement_group_model_json['lifecycle_state'] = 'stable' placement_group_model_json['name'] = 'my-placement-group' @@ -69546,14 +73098,20 @@ def test_placement_group_collection_serialization(self): page_link_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/placement_groups?limit=50' resource_group_reference_model = {} # ResourceGroupReference - resource_group_reference_model['href'] = 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + resource_group_reference_model['href'] = ( + 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + ) resource_group_reference_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' resource_group_reference_model['name'] = 'Default' placement_group_model = {} # PlacementGroup placement_group_model['created_at'] = '2020-12-29T19:55:00Z' - placement_group_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::placement-group:r006-418fe842-a3e9-47b9-a938-1aa5bd632871' - placement_group_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/placement_groups/r006-418fe842-a3e9-47b9-a938-1aa5bd632871' + placement_group_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::placement-group:r006-418fe842-a3e9-47b9-a938-1aa5bd632871' + ) + placement_group_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/placement_groups/r006-418fe842-a3e9-47b9-a938-1aa5bd632871' + ) placement_group_model['id'] = 'r006-418fe842-a3e9-47b9-a938-1aa5bd632871' placement_group_model['lifecycle_state'] = 'stable' placement_group_model['name'] = 'my-placement-group' @@ -69574,7 +73132,9 @@ def test_placement_group_collection_serialization(self): assert placement_group_collection_model != False # Construct a model instance of PlacementGroupCollection by calling from_dict on the json representation - placement_group_collection_model_dict = PlacementGroupCollection.from_dict(placement_group_collection_model_json).__dict__ + placement_group_collection_model_dict = PlacementGroupCollection.from_dict( + placement_group_collection_model_json + ).__dict__ placement_group_collection_model2 = PlacementGroupCollection(**placement_group_collection_model_dict) # Verify the model instances are equivalent @@ -69631,22 +73191,32 @@ def test_private_path_service_gateway_serialization(self): deleted_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#deleted-resources' load_balancer_reference_model = {} # LoadBalancerReference - load_balancer_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::load-balancer:dd754295-e9e0-4c9d-bf6c-58fbc59e5727' + load_balancer_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::load-balancer:dd754295-e9e0-4c9d-bf6c-58fbc59e5727' + ) load_balancer_reference_model['deleted'] = deleted_model - load_balancer_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727' + load_balancer_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727' + ) load_balancer_reference_model['id'] = 'dd754295-e9e0-4c9d-bf6c-58fbc59e5727' load_balancer_reference_model['name'] = 'my-load-balancer' load_balancer_reference_model['resource_type'] = 'load_balancer' resource_group_reference_model = {} # ResourceGroupReference - resource_group_reference_model['href'] = 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + resource_group_reference_model['href'] = ( + 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + ) resource_group_reference_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' resource_group_reference_model['name'] = 'my-resource-group' vpc_reference_model = {} # VPCReference - vpc_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_model['deleted'] = deleted_model - vpc_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_model['id'] = 'r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' vpc_reference_model['name'] = 'my-vpc' vpc_reference_model['resource_type'] = 'vpc' @@ -69654,12 +73224,16 @@ def test_private_path_service_gateway_serialization(self): # Construct a json representation of a PrivatePathServiceGateway model private_path_service_gateway_model_json = {} private_path_service_gateway_model_json['created_at'] = '2019-01-01T12:00:00Z' - private_path_service_gateway_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::private-path-service-gateway:r134-fb880975-db45-4459-8548-64e3995ac213' + private_path_service_gateway_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::private-path-service-gateway:r134-fb880975-db45-4459-8548-64e3995ac213' + ) private_path_service_gateway_model_json['default_access_policy'] = 'deny' private_path_service_gateway_model_json['endpoint_gateway_binding_auto_delete'] = True private_path_service_gateway_model_json['endpoint_gateway_binding_auto_delete_timeout'] = 1 private_path_service_gateway_model_json['endpoint_gateway_count'] = 0 - private_path_service_gateway_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/private_path_service_gateways/r134-fb880975-db45-4459-8548-64e3995ac213' + private_path_service_gateway_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/private_path_service_gateways/r134-fb880975-db45-4459-8548-64e3995ac213' + ) private_path_service_gateway_model_json['id'] = 'r134-fb880975-db45-4459-8548-64e3995ac213' private_path_service_gateway_model_json['lifecycle_state'] = 'stable' private_path_service_gateway_model_json['load_balancer'] = load_balancer_reference_model @@ -69672,11 +73246,15 @@ def test_private_path_service_gateway_serialization(self): private_path_service_gateway_model_json['zonal_affinity'] = True # Construct a model instance of PrivatePathServiceGateway by calling from_dict on the json representation - private_path_service_gateway_model = PrivatePathServiceGateway.from_dict(private_path_service_gateway_model_json) + private_path_service_gateway_model = PrivatePathServiceGateway.from_dict( + private_path_service_gateway_model_json + ) assert private_path_service_gateway_model != False # Construct a model instance of PrivatePathServiceGateway by calling from_dict on the json representation - private_path_service_gateway_model_dict = PrivatePathServiceGateway.from_dict(private_path_service_gateway_model_json).__dict__ + private_path_service_gateway_model_dict = PrivatePathServiceGateway.from_dict( + private_path_service_gateway_model_json + ).__dict__ private_path_service_gateway_model2 = PrivatePathServiceGateway(**private_path_service_gateway_model_dict) # Verify the model instances are equivalent @@ -69708,24 +73286,39 @@ def test_private_path_service_gateway_account_policy_serialization(self): private_path_service_gateway_account_policy_model_json['access_policy'] = 'deny' private_path_service_gateway_account_policy_model_json['account'] = account_reference_model private_path_service_gateway_account_policy_model_json['created_at'] = '2019-01-01T12:00:00Z' - private_path_service_gateway_account_policy_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/private_path_service_gateways/r134-fb880975-db45-4459-8548-64e3995ac213/account_policies/dd455384-b019-4242-9453-45fe68b18e4c' + private_path_service_gateway_account_policy_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/private_path_service_gateways/r134-fb880975-db45-4459-8548-64e3995ac213/account_policies/dd455384-b019-4242-9453-45fe68b18e4c' + ) private_path_service_gateway_account_policy_model_json['id'] = 'r134-fb880975-db45-4459-8548-64e3995ac213' - private_path_service_gateway_account_policy_model_json['resource_type'] = 'private_path_service_gateway_account_policy' + private_path_service_gateway_account_policy_model_json['resource_type'] = ( + 'private_path_service_gateway_account_policy' + ) # Construct a model instance of PrivatePathServiceGatewayAccountPolicy by calling from_dict on the json representation - private_path_service_gateway_account_policy_model = PrivatePathServiceGatewayAccountPolicy.from_dict(private_path_service_gateway_account_policy_model_json) + private_path_service_gateway_account_policy_model = PrivatePathServiceGatewayAccountPolicy.from_dict( + private_path_service_gateway_account_policy_model_json + ) assert private_path_service_gateway_account_policy_model != False # Construct a model instance of PrivatePathServiceGatewayAccountPolicy by calling from_dict on the json representation - private_path_service_gateway_account_policy_model_dict = PrivatePathServiceGatewayAccountPolicy.from_dict(private_path_service_gateway_account_policy_model_json).__dict__ - private_path_service_gateway_account_policy_model2 = PrivatePathServiceGatewayAccountPolicy(**private_path_service_gateway_account_policy_model_dict) + private_path_service_gateway_account_policy_model_dict = PrivatePathServiceGatewayAccountPolicy.from_dict( + private_path_service_gateway_account_policy_model_json + ).__dict__ + private_path_service_gateway_account_policy_model2 = PrivatePathServiceGatewayAccountPolicy( + **private_path_service_gateway_account_policy_model_dict + ) # Verify the model instances are equivalent assert private_path_service_gateway_account_policy_model == private_path_service_gateway_account_policy_model2 # Convert model instance back to dict and verify no loss of data - private_path_service_gateway_account_policy_model_json2 = private_path_service_gateway_account_policy_model.to_dict() - assert private_path_service_gateway_account_policy_model_json2 == private_path_service_gateway_account_policy_model_json + private_path_service_gateway_account_policy_model_json2 = ( + private_path_service_gateway_account_policy_model.to_dict() + ) + assert ( + private_path_service_gateway_account_policy_model_json2 + == private_path_service_gateway_account_policy_model_json + ) class TestModel_PrivatePathServiceGatewayAccountPolicyCollection: @@ -69748,35 +73341,63 @@ def test_private_path_service_gateway_account_policy_collection_serialization(se private_path_service_gateway_account_policy_model['access_policy'] = 'deny' private_path_service_gateway_account_policy_model['account'] = account_reference_model private_path_service_gateway_account_policy_model['created_at'] = '2019-01-01T12:00:00Z' - private_path_service_gateway_account_policy_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/private_path_service_gateways/r134-fb880975-db45-4459-8548-64e3995ac213/account_policies/dd455384-b019-4242-9453-45fe68b18e4c' + private_path_service_gateway_account_policy_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/private_path_service_gateways/r134-fb880975-db45-4459-8548-64e3995ac213/account_policies/dd455384-b019-4242-9453-45fe68b18e4c' + ) private_path_service_gateway_account_policy_model['id'] = 'r134-fb880975-db45-4459-8548-64e3995ac213' - private_path_service_gateway_account_policy_model['resource_type'] = 'private_path_service_gateway_account_policy' + private_path_service_gateway_account_policy_model['resource_type'] = ( + 'private_path_service_gateway_account_policy' + ) page_link_model = {} # PageLink - page_link_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/private_path_service_gateways/65f30e48-3074-4eb0-9ec4-51ce2ec968eb/account_policies?limit=20' + page_link_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/private_path_service_gateways/65f30e48-3074-4eb0-9ec4-51ce2ec968eb/account_policies?limit=20' + ) # Construct a json representation of a PrivatePathServiceGatewayAccountPolicyCollection model private_path_service_gateway_account_policy_collection_model_json = {} - private_path_service_gateway_account_policy_collection_model_json['account_policies'] = [private_path_service_gateway_account_policy_model] + private_path_service_gateway_account_policy_collection_model_json['account_policies'] = [ + private_path_service_gateway_account_policy_model + ] private_path_service_gateway_account_policy_collection_model_json['first'] = page_link_model private_path_service_gateway_account_policy_collection_model_json['limit'] = 20 private_path_service_gateway_account_policy_collection_model_json['next'] = page_link_model private_path_service_gateway_account_policy_collection_model_json['total_count'] = 132 # Construct a model instance of PrivatePathServiceGatewayAccountPolicyCollection by calling from_dict on the json representation - private_path_service_gateway_account_policy_collection_model = PrivatePathServiceGatewayAccountPolicyCollection.from_dict(private_path_service_gateway_account_policy_collection_model_json) + private_path_service_gateway_account_policy_collection_model = ( + PrivatePathServiceGatewayAccountPolicyCollection.from_dict( + private_path_service_gateway_account_policy_collection_model_json + ) + ) assert private_path_service_gateway_account_policy_collection_model != False # Construct a model instance of PrivatePathServiceGatewayAccountPolicyCollection by calling from_dict on the json representation - private_path_service_gateway_account_policy_collection_model_dict = PrivatePathServiceGatewayAccountPolicyCollection.from_dict(private_path_service_gateway_account_policy_collection_model_json).__dict__ - private_path_service_gateway_account_policy_collection_model2 = PrivatePathServiceGatewayAccountPolicyCollection(**private_path_service_gateway_account_policy_collection_model_dict) + private_path_service_gateway_account_policy_collection_model_dict = ( + PrivatePathServiceGatewayAccountPolicyCollection.from_dict( + private_path_service_gateway_account_policy_collection_model_json + ).__dict__ + ) + private_path_service_gateway_account_policy_collection_model2 = ( + PrivatePathServiceGatewayAccountPolicyCollection( + **private_path_service_gateway_account_policy_collection_model_dict + ) + ) # Verify the model instances are equivalent - assert private_path_service_gateway_account_policy_collection_model == private_path_service_gateway_account_policy_collection_model2 + assert ( + private_path_service_gateway_account_policy_collection_model + == private_path_service_gateway_account_policy_collection_model2 + ) # Convert model instance back to dict and verify no loss of data - private_path_service_gateway_account_policy_collection_model_json2 = private_path_service_gateway_account_policy_collection_model.to_dict() - assert private_path_service_gateway_account_policy_collection_model_json2 == private_path_service_gateway_account_policy_collection_model_json + private_path_service_gateway_account_policy_collection_model_json2 = ( + private_path_service_gateway_account_policy_collection_model.to_dict() + ) + assert ( + private_path_service_gateway_account_policy_collection_model_json2 + == private_path_service_gateway_account_policy_collection_model_json + ) class TestModel_PrivatePathServiceGatewayAccountPolicyPatch: @@ -69794,19 +73415,35 @@ def test_private_path_service_gateway_account_policy_patch_serialization(self): private_path_service_gateway_account_policy_patch_model_json['access_policy'] = 'deny' # Construct a model instance of PrivatePathServiceGatewayAccountPolicyPatch by calling from_dict on the json representation - private_path_service_gateway_account_policy_patch_model = PrivatePathServiceGatewayAccountPolicyPatch.from_dict(private_path_service_gateway_account_policy_patch_model_json) + private_path_service_gateway_account_policy_patch_model = PrivatePathServiceGatewayAccountPolicyPatch.from_dict( + private_path_service_gateway_account_policy_patch_model_json + ) assert private_path_service_gateway_account_policy_patch_model != False # Construct a model instance of PrivatePathServiceGatewayAccountPolicyPatch by calling from_dict on the json representation - private_path_service_gateway_account_policy_patch_model_dict = PrivatePathServiceGatewayAccountPolicyPatch.from_dict(private_path_service_gateway_account_policy_patch_model_json).__dict__ - private_path_service_gateway_account_policy_patch_model2 = PrivatePathServiceGatewayAccountPolicyPatch(**private_path_service_gateway_account_policy_patch_model_dict) + private_path_service_gateway_account_policy_patch_model_dict = ( + PrivatePathServiceGatewayAccountPolicyPatch.from_dict( + private_path_service_gateway_account_policy_patch_model_json + ).__dict__ + ) + private_path_service_gateway_account_policy_patch_model2 = PrivatePathServiceGatewayAccountPolicyPatch( + **private_path_service_gateway_account_policy_patch_model_dict + ) # Verify the model instances are equivalent - assert private_path_service_gateway_account_policy_patch_model == private_path_service_gateway_account_policy_patch_model2 + assert ( + private_path_service_gateway_account_policy_patch_model + == private_path_service_gateway_account_policy_patch_model2 + ) # Convert model instance back to dict and verify no loss of data - private_path_service_gateway_account_policy_patch_model_json2 = private_path_service_gateway_account_policy_patch_model.to_dict() - assert private_path_service_gateway_account_policy_patch_model_json2 == private_path_service_gateway_account_policy_patch_model_json + private_path_service_gateway_account_policy_patch_model_json2 = ( + private_path_service_gateway_account_policy_patch_model.to_dict() + ) + assert ( + private_path_service_gateway_account_policy_patch_model_json2 + == private_path_service_gateway_account_policy_patch_model_json + ) class TestModel_PrivatePathServiceGatewayCollection: @@ -69828,34 +73465,48 @@ def test_private_path_service_gateway_collection_serialization(self): deleted_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#deleted-resources' load_balancer_reference_model = {} # LoadBalancerReference - load_balancer_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::load-balancer:dd754295-e9e0-4c9d-bf6c-58fbc59e5727' + load_balancer_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::load-balancer:dd754295-e9e0-4c9d-bf6c-58fbc59e5727' + ) load_balancer_reference_model['deleted'] = deleted_model - load_balancer_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727' + load_balancer_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727' + ) load_balancer_reference_model['id'] = 'dd754295-e9e0-4c9d-bf6c-58fbc59e5727' load_balancer_reference_model['name'] = 'my-load-balancer' load_balancer_reference_model['resource_type'] = 'load_balancer' resource_group_reference_model = {} # ResourceGroupReference - resource_group_reference_model['href'] = 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + resource_group_reference_model['href'] = ( + 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + ) resource_group_reference_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' resource_group_reference_model['name'] = 'my-resource-group' vpc_reference_model = {} # VPCReference - vpc_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_model['deleted'] = deleted_model - vpc_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_model['id'] = 'r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' vpc_reference_model['name'] = 'my-vpc' vpc_reference_model['resource_type'] = 'vpc' private_path_service_gateway_model = {} # PrivatePathServiceGateway private_path_service_gateway_model['created_at'] = '2019-01-01T12:00:00Z' - private_path_service_gateway_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::private-path-service-gateway:r134-fb880975-db45-4459-8548-64e3995ac213' + private_path_service_gateway_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::private-path-service-gateway:r134-fb880975-db45-4459-8548-64e3995ac213' + ) private_path_service_gateway_model['default_access_policy'] = 'deny' private_path_service_gateway_model['endpoint_gateway_binding_auto_delete'] = True private_path_service_gateway_model['endpoint_gateway_binding_auto_delete_timeout'] = 1 private_path_service_gateway_model['endpoint_gateway_count'] = 0 - private_path_service_gateway_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/private_path_service_gateways/r134-fb880975-db45-4459-8548-64e3995ac213' + private_path_service_gateway_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/private_path_service_gateways/r134-fb880975-db45-4459-8548-64e3995ac213' + ) private_path_service_gateway_model['id'] = 'r134-fb880975-db45-4459-8548-64e3995ac213' private_path_service_gateway_model['lifecycle_state'] = 'stable' private_path_service_gateway_model['load_balancer'] = load_balancer_reference_model @@ -69872,16 +73523,24 @@ def test_private_path_service_gateway_collection_serialization(self): private_path_service_gateway_collection_model_json['first'] = page_link_model private_path_service_gateway_collection_model_json['limit'] = 20 private_path_service_gateway_collection_model_json['next'] = page_link_model - private_path_service_gateway_collection_model_json['private_path_service_gateways'] = [private_path_service_gateway_model] + private_path_service_gateway_collection_model_json['private_path_service_gateways'] = [ + private_path_service_gateway_model + ] private_path_service_gateway_collection_model_json['total_count'] = 132 # Construct a model instance of PrivatePathServiceGatewayCollection by calling from_dict on the json representation - private_path_service_gateway_collection_model = PrivatePathServiceGatewayCollection.from_dict(private_path_service_gateway_collection_model_json) + private_path_service_gateway_collection_model = PrivatePathServiceGatewayCollection.from_dict( + private_path_service_gateway_collection_model_json + ) assert private_path_service_gateway_collection_model != False # Construct a model instance of PrivatePathServiceGatewayCollection by calling from_dict on the json representation - private_path_service_gateway_collection_model_dict = PrivatePathServiceGatewayCollection.from_dict(private_path_service_gateway_collection_model_json).__dict__ - private_path_service_gateway_collection_model2 = PrivatePathServiceGatewayCollection(**private_path_service_gateway_collection_model_dict) + private_path_service_gateway_collection_model_dict = PrivatePathServiceGatewayCollection.from_dict( + private_path_service_gateway_collection_model_json + ).__dict__ + private_path_service_gateway_collection_model2 = PrivatePathServiceGatewayCollection( + **private_path_service_gateway_collection_model_dict + ) # Verify the model instances are equivalent assert private_path_service_gateway_collection_model == private_path_service_gateway_collection_model2 @@ -69912,26 +73571,50 @@ def test_private_path_service_gateway_endpoint_gateway_binding_serialization(sel private_path_service_gateway_endpoint_gateway_binding_model_json['account'] = account_reference_model private_path_service_gateway_endpoint_gateway_binding_model_json['created_at'] = '2019-01-01T12:00:00Z' private_path_service_gateway_endpoint_gateway_binding_model_json['expiration_at'] = '2019-01-01T12:00:00Z' - private_path_service_gateway_endpoint_gateway_binding_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/private_path_service_gateways/r134-fb880975-db45-4459-8548-64e3995ac213/endpoint_gateway_bindings/r134-ce9dac18-dea0-4392-841c-142d3300674f' - private_path_service_gateway_endpoint_gateway_binding_model_json['id'] = 'r134-ce9dac18-dea0-4392-841c-142d3300674f' + private_path_service_gateway_endpoint_gateway_binding_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/private_path_service_gateways/r134-fb880975-db45-4459-8548-64e3995ac213/endpoint_gateway_bindings/r134-ce9dac18-dea0-4392-841c-142d3300674f' + ) + private_path_service_gateway_endpoint_gateway_binding_model_json['id'] = ( + 'r134-ce9dac18-dea0-4392-841c-142d3300674f' + ) private_path_service_gateway_endpoint_gateway_binding_model_json['lifecycle_state'] = 'stable' - private_path_service_gateway_endpoint_gateway_binding_model_json['resource_type'] = 'private_path_service_gateway_endpoint_gateway_binding' + private_path_service_gateway_endpoint_gateway_binding_model_json['resource_type'] = ( + 'private_path_service_gateway_endpoint_gateway_binding' + ) private_path_service_gateway_endpoint_gateway_binding_model_json['status'] = 'abandoned' # Construct a model instance of PrivatePathServiceGatewayEndpointGatewayBinding by calling from_dict on the json representation - private_path_service_gateway_endpoint_gateway_binding_model = PrivatePathServiceGatewayEndpointGatewayBinding.from_dict(private_path_service_gateway_endpoint_gateway_binding_model_json) + private_path_service_gateway_endpoint_gateway_binding_model = ( + PrivatePathServiceGatewayEndpointGatewayBinding.from_dict( + private_path_service_gateway_endpoint_gateway_binding_model_json + ) + ) assert private_path_service_gateway_endpoint_gateway_binding_model != False # Construct a model instance of PrivatePathServiceGatewayEndpointGatewayBinding by calling from_dict on the json representation - private_path_service_gateway_endpoint_gateway_binding_model_dict = PrivatePathServiceGatewayEndpointGatewayBinding.from_dict(private_path_service_gateway_endpoint_gateway_binding_model_json).__dict__ - private_path_service_gateway_endpoint_gateway_binding_model2 = PrivatePathServiceGatewayEndpointGatewayBinding(**private_path_service_gateway_endpoint_gateway_binding_model_dict) + private_path_service_gateway_endpoint_gateway_binding_model_dict = ( + PrivatePathServiceGatewayEndpointGatewayBinding.from_dict( + private_path_service_gateway_endpoint_gateway_binding_model_json + ).__dict__ + ) + private_path_service_gateway_endpoint_gateway_binding_model2 = PrivatePathServiceGatewayEndpointGatewayBinding( + **private_path_service_gateway_endpoint_gateway_binding_model_dict + ) # Verify the model instances are equivalent - assert private_path_service_gateway_endpoint_gateway_binding_model == private_path_service_gateway_endpoint_gateway_binding_model2 + assert ( + private_path_service_gateway_endpoint_gateway_binding_model + == private_path_service_gateway_endpoint_gateway_binding_model2 + ) # Convert model instance back to dict and verify no loss of data - private_path_service_gateway_endpoint_gateway_binding_model_json2 = private_path_service_gateway_endpoint_gateway_binding_model.to_dict() - assert private_path_service_gateway_endpoint_gateway_binding_model_json2 == private_path_service_gateway_endpoint_gateway_binding_model_json + private_path_service_gateway_endpoint_gateway_binding_model_json2 = ( + private_path_service_gateway_endpoint_gateway_binding_model.to_dict() + ) + assert ( + private_path_service_gateway_endpoint_gateway_binding_model_json2 + == private_path_service_gateway_endpoint_gateway_binding_model_json + ) class TestModel_PrivatePathServiceGatewayEndpointGatewayBindingCollection: @@ -69950,41 +73633,71 @@ def test_private_path_service_gateway_endpoint_gateway_binding_collection_serial account_reference_model['id'] = 'bb1b52262f7441a586f49068482f1e60' account_reference_model['resource_type'] = 'account' - private_path_service_gateway_endpoint_gateway_binding_model = {} # PrivatePathServiceGatewayEndpointGatewayBinding + private_path_service_gateway_endpoint_gateway_binding_model = ( + {} + ) # PrivatePathServiceGatewayEndpointGatewayBinding private_path_service_gateway_endpoint_gateway_binding_model['account'] = account_reference_model private_path_service_gateway_endpoint_gateway_binding_model['created_at'] = '2019-01-01T12:00:00Z' private_path_service_gateway_endpoint_gateway_binding_model['expiration_at'] = '2019-01-01T12:00:00Z' - private_path_service_gateway_endpoint_gateway_binding_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/private_path_service_gateways/r134-fb880975-db45-4459-8548-64e3995ac213/endpoint_gateway_bindings/r134-ce9dac18-dea0-4392-841c-142d3300674f' + private_path_service_gateway_endpoint_gateway_binding_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/private_path_service_gateways/r134-fb880975-db45-4459-8548-64e3995ac213/endpoint_gateway_bindings/r134-ce9dac18-dea0-4392-841c-142d3300674f' + ) private_path_service_gateway_endpoint_gateway_binding_model['id'] = 'r134-ce9dac18-dea0-4392-841c-142d3300674f' private_path_service_gateway_endpoint_gateway_binding_model['lifecycle_state'] = 'stable' - private_path_service_gateway_endpoint_gateway_binding_model['resource_type'] = 'private_path_service_gateway_endpoint_gateway_binding' + private_path_service_gateway_endpoint_gateway_binding_model['resource_type'] = ( + 'private_path_service_gateway_endpoint_gateway_binding' + ) private_path_service_gateway_endpoint_gateway_binding_model['status'] = 'abandoned' page_link_model = {} # PageLink - page_link_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/private_path_service_gateways/65f30e48-3074-4eb0-9ec4-51ce2ec968eb/endpoint_gateway_bindings?limit=20' + page_link_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/private_path_service_gateways/65f30e48-3074-4eb0-9ec4-51ce2ec968eb/endpoint_gateway_bindings?limit=20' + ) # Construct a json representation of a PrivatePathServiceGatewayEndpointGatewayBindingCollection model private_path_service_gateway_endpoint_gateway_binding_collection_model_json = {} - private_path_service_gateway_endpoint_gateway_binding_collection_model_json['endpoint_gateway_bindings'] = [private_path_service_gateway_endpoint_gateway_binding_model] + private_path_service_gateway_endpoint_gateway_binding_collection_model_json['endpoint_gateway_bindings'] = [ + private_path_service_gateway_endpoint_gateway_binding_model + ] private_path_service_gateway_endpoint_gateway_binding_collection_model_json['first'] = page_link_model private_path_service_gateway_endpoint_gateway_binding_collection_model_json['limit'] = 20 private_path_service_gateway_endpoint_gateway_binding_collection_model_json['next'] = page_link_model private_path_service_gateway_endpoint_gateway_binding_collection_model_json['total_count'] = 132 # Construct a model instance of PrivatePathServiceGatewayEndpointGatewayBindingCollection by calling from_dict on the json representation - private_path_service_gateway_endpoint_gateway_binding_collection_model = PrivatePathServiceGatewayEndpointGatewayBindingCollection.from_dict(private_path_service_gateway_endpoint_gateway_binding_collection_model_json) + private_path_service_gateway_endpoint_gateway_binding_collection_model = ( + PrivatePathServiceGatewayEndpointGatewayBindingCollection.from_dict( + private_path_service_gateway_endpoint_gateway_binding_collection_model_json + ) + ) assert private_path_service_gateway_endpoint_gateway_binding_collection_model != False # Construct a model instance of PrivatePathServiceGatewayEndpointGatewayBindingCollection by calling from_dict on the json representation - private_path_service_gateway_endpoint_gateway_binding_collection_model_dict = PrivatePathServiceGatewayEndpointGatewayBindingCollection.from_dict(private_path_service_gateway_endpoint_gateway_binding_collection_model_json).__dict__ - private_path_service_gateway_endpoint_gateway_binding_collection_model2 = PrivatePathServiceGatewayEndpointGatewayBindingCollection(**private_path_service_gateway_endpoint_gateway_binding_collection_model_dict) + private_path_service_gateway_endpoint_gateway_binding_collection_model_dict = ( + PrivatePathServiceGatewayEndpointGatewayBindingCollection.from_dict( + private_path_service_gateway_endpoint_gateway_binding_collection_model_json + ).__dict__ + ) + private_path_service_gateway_endpoint_gateway_binding_collection_model2 = ( + PrivatePathServiceGatewayEndpointGatewayBindingCollection( + **private_path_service_gateway_endpoint_gateway_binding_collection_model_dict + ) + ) # Verify the model instances are equivalent - assert private_path_service_gateway_endpoint_gateway_binding_collection_model == private_path_service_gateway_endpoint_gateway_binding_collection_model2 + assert ( + private_path_service_gateway_endpoint_gateway_binding_collection_model + == private_path_service_gateway_endpoint_gateway_binding_collection_model2 + ) # Convert model instance back to dict and verify no loss of data - private_path_service_gateway_endpoint_gateway_binding_collection_model_json2 = private_path_service_gateway_endpoint_gateway_binding_collection_model.to_dict() - assert private_path_service_gateway_endpoint_gateway_binding_collection_model_json2 == private_path_service_gateway_endpoint_gateway_binding_collection_model_json + private_path_service_gateway_endpoint_gateway_binding_collection_model_json2 = ( + private_path_service_gateway_endpoint_gateway_binding_collection_model.to_dict() + ) + assert ( + private_path_service_gateway_endpoint_gateway_binding_collection_model_json2 + == private_path_service_gateway_endpoint_gateway_binding_collection_model_json + ) class TestModel_PrivatePathServiceGatewayPatch: @@ -70010,12 +73723,18 @@ def test_private_path_service_gateway_patch_serialization(self): private_path_service_gateway_patch_model_json['zonal_affinity'] = True # Construct a model instance of PrivatePathServiceGatewayPatch by calling from_dict on the json representation - private_path_service_gateway_patch_model = PrivatePathServiceGatewayPatch.from_dict(private_path_service_gateway_patch_model_json) + private_path_service_gateway_patch_model = PrivatePathServiceGatewayPatch.from_dict( + private_path_service_gateway_patch_model_json + ) assert private_path_service_gateway_patch_model != False # Construct a model instance of PrivatePathServiceGatewayPatch by calling from_dict on the json representation - private_path_service_gateway_patch_model_dict = PrivatePathServiceGatewayPatch.from_dict(private_path_service_gateway_patch_model_json).__dict__ - private_path_service_gateway_patch_model2 = PrivatePathServiceGatewayPatch(**private_path_service_gateway_patch_model_dict) + private_path_service_gateway_patch_model_dict = PrivatePathServiceGatewayPatch.from_dict( + private_path_service_gateway_patch_model_json + ).__dict__ + private_path_service_gateway_patch_model2 = PrivatePathServiceGatewayPatch( + **private_path_service_gateway_patch_model_dict + ) # Verify the model instances are equivalent assert private_path_service_gateway_patch_model == private_path_service_gateway_patch_model2 @@ -70051,12 +73770,18 @@ def test_private_path_service_gateway_remote_serialization(self): private_path_service_gateway_remote_model_json['region'] = region_reference_model # Construct a model instance of PrivatePathServiceGatewayRemote by calling from_dict on the json representation - private_path_service_gateway_remote_model = PrivatePathServiceGatewayRemote.from_dict(private_path_service_gateway_remote_model_json) + private_path_service_gateway_remote_model = PrivatePathServiceGatewayRemote.from_dict( + private_path_service_gateway_remote_model_json + ) assert private_path_service_gateway_remote_model != False # Construct a model instance of PrivatePathServiceGatewayRemote by calling from_dict on the json representation - private_path_service_gateway_remote_model_dict = PrivatePathServiceGatewayRemote.from_dict(private_path_service_gateway_remote_model_json).__dict__ - private_path_service_gateway_remote_model2 = PrivatePathServiceGatewayRemote(**private_path_service_gateway_remote_model_dict) + private_path_service_gateway_remote_model_dict = PrivatePathServiceGatewayRemote.from_dict( + private_path_service_gateway_remote_model_json + ).__dict__ + private_path_service_gateway_remote_model2 = PrivatePathServiceGatewayRemote( + **private_path_service_gateway_remote_model_dict + ) # Verify the model instances are equivalent assert private_path_service_gateway_remote_model == private_path_service_gateway_remote_model2 @@ -70083,21 +73808,31 @@ def test_public_gateway_serialization(self): public_gateway_floating_ip_model = {} # PublicGatewayFloatingIp public_gateway_floating_ip_model['address'] = '203.0.113.1' - public_gateway_floating_ip_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::floating-ip:r006-f45e0d90-12a8-4460-8210-290ff2ab75cd' + public_gateway_floating_ip_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::floating-ip:r006-f45e0d90-12a8-4460-8210-290ff2ab75cd' + ) public_gateway_floating_ip_model['deleted'] = deleted_model - public_gateway_floating_ip_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/floating_ips/r006-f45e0d90-12a8-4460-8210-290ff2ab75cd' + public_gateway_floating_ip_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/floating_ips/r006-f45e0d90-12a8-4460-8210-290ff2ab75cd' + ) public_gateway_floating_ip_model['id'] = 'r006-f45e0d90-12a8-4460-8210-290ff2ab75cd' public_gateway_floating_ip_model['name'] = 'my-floating-ip' resource_group_reference_model = {} # ResourceGroupReference - resource_group_reference_model['href'] = 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + resource_group_reference_model['href'] = ( + 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + ) resource_group_reference_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' resource_group_reference_model['name'] = 'my-resource-group' vpc_reference_model = {} # VPCReference - vpc_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_model['deleted'] = deleted_model - vpc_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_model['id'] = 'r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' vpc_reference_model['name'] = 'my-vpc' vpc_reference_model['resource_type'] = 'vpc' @@ -70109,9 +73844,13 @@ def test_public_gateway_serialization(self): # Construct a json representation of a PublicGateway model public_gateway_model_json = {} public_gateway_model_json['created_at'] = '2019-01-01T12:00:00Z' - public_gateway_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::public-gateway:dc5431ef-1fc6-4861-adc9-a59d077d1241' + public_gateway_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::public-gateway:dc5431ef-1fc6-4861-adc9-a59d077d1241' + ) public_gateway_model_json['floating_ip'] = public_gateway_floating_ip_model - public_gateway_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/public_gateways/dc5431ef-1fc6-4861-adc9-a59d077d1241' + public_gateway_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/public_gateways/dc5431ef-1fc6-4861-adc9-a59d077d1241' + ) public_gateway_model_json['id'] = 'dc5431ef-1fc6-4861-adc9-a59d077d1241' public_gateway_model_json['name'] = 'my-public-gateway' public_gateway_model_json['resource_group'] = resource_group_reference_model @@ -70156,21 +73895,31 @@ def test_public_gateway_collection_serialization(self): public_gateway_floating_ip_model = {} # PublicGatewayFloatingIp public_gateway_floating_ip_model['address'] = '203.0.113.1' - public_gateway_floating_ip_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::floating-ip:r006-f45e0d90-12a8-4460-8210-290ff2ab75cd' + public_gateway_floating_ip_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::floating-ip:r006-f45e0d90-12a8-4460-8210-290ff2ab75cd' + ) public_gateway_floating_ip_model['deleted'] = deleted_model - public_gateway_floating_ip_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/floating_ips/r006-f45e0d90-12a8-4460-8210-290ff2ab75cd' + public_gateway_floating_ip_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/floating_ips/r006-f45e0d90-12a8-4460-8210-290ff2ab75cd' + ) public_gateway_floating_ip_model['id'] = 'r006-f45e0d90-12a8-4460-8210-290ff2ab75cd' public_gateway_floating_ip_model['name'] = 'my-floating-ip' resource_group_reference_model = {} # ResourceGroupReference - resource_group_reference_model['href'] = 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + resource_group_reference_model['href'] = ( + 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + ) resource_group_reference_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' resource_group_reference_model['name'] = 'my-resource-group' vpc_reference_model = {} # VPCReference - vpc_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_model['deleted'] = deleted_model - vpc_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_model['id'] = 'r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' vpc_reference_model['name'] = 'my-vpc' vpc_reference_model['resource_type'] = 'vpc' @@ -70181,9 +73930,13 @@ def test_public_gateway_collection_serialization(self): public_gateway_model = {} # PublicGateway public_gateway_model['created_at'] = '2019-01-01T12:00:00Z' - public_gateway_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::public-gateway:dc5431ef-1fc6-4861-adc9-a59d077d1241' + public_gateway_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::public-gateway:dc5431ef-1fc6-4861-adc9-a59d077d1241' + ) public_gateway_model['floating_ip'] = public_gateway_floating_ip_model - public_gateway_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/public_gateways/dc5431ef-1fc6-4861-adc9-a59d077d1241' + public_gateway_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/public_gateways/dc5431ef-1fc6-4861-adc9-a59d077d1241' + ) public_gateway_model['id'] = 'dc5431ef-1fc6-4861-adc9-a59d077d1241' public_gateway_model['name'] = 'my-public-gateway' public_gateway_model['resource_group'] = resource_group_reference_model @@ -70205,7 +73958,9 @@ def test_public_gateway_collection_serialization(self): assert public_gateway_collection_model != False # Construct a model instance of PublicGatewayCollection by calling from_dict on the json representation - public_gateway_collection_model_dict = PublicGatewayCollection.from_dict(public_gateway_collection_model_json).__dict__ + public_gateway_collection_model_dict = PublicGatewayCollection.from_dict( + public_gateway_collection_model_json + ).__dict__ public_gateway_collection_model2 = PublicGatewayCollection(**public_gateway_collection_model_dict) # Verify the model instances are equivalent @@ -70234,9 +73989,13 @@ def test_public_gateway_floating_ip_serialization(self): # Construct a json representation of a PublicGatewayFloatingIp model public_gateway_floating_ip_model_json = {} public_gateway_floating_ip_model_json['address'] = '203.0.113.1' - public_gateway_floating_ip_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::floating-ip:r006-f45e0d90-12a8-4460-8210-290ff2ab75cd' + public_gateway_floating_ip_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::floating-ip:r006-f45e0d90-12a8-4460-8210-290ff2ab75cd' + ) public_gateway_floating_ip_model_json['deleted'] = deleted_model - public_gateway_floating_ip_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/floating_ips/r006-f45e0d90-12a8-4460-8210-290ff2ab75cd' + public_gateway_floating_ip_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/floating_ips/r006-f45e0d90-12a8-4460-8210-290ff2ab75cd' + ) public_gateway_floating_ip_model_json['id'] = 'r006-f45e0d90-12a8-4460-8210-290ff2ab75cd' public_gateway_floating_ip_model_json['name'] = 'my-floating-ip' @@ -70245,7 +74004,9 @@ def test_public_gateway_floating_ip_serialization(self): assert public_gateway_floating_ip_model != False # Construct a model instance of PublicGatewayFloatingIp by calling from_dict on the json representation - public_gateway_floating_ip_model_dict = PublicGatewayFloatingIp.from_dict(public_gateway_floating_ip_model_json).__dict__ + public_gateway_floating_ip_model_dict = PublicGatewayFloatingIp.from_dict( + public_gateway_floating_ip_model_json + ).__dict__ public_gateway_floating_ip_model2 = PublicGatewayFloatingIp(**public_gateway_floating_ip_model_dict) # Verify the model instances are equivalent @@ -70303,9 +74064,13 @@ def test_public_gateway_reference_serialization(self): # Construct a json representation of a PublicGatewayReference model public_gateway_reference_model_json = {} - public_gateway_reference_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::public-gateway:dc5431ef-1fc6-4861-adc9-a59d077d1241' + public_gateway_reference_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::public-gateway:dc5431ef-1fc6-4861-adc9-a59d077d1241' + ) public_gateway_reference_model_json['deleted'] = deleted_model - public_gateway_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/public_gateways/dc5431ef-1fc6-4861-adc9-a59d077d1241' + public_gateway_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/public_gateways/dc5431ef-1fc6-4861-adc9-a59d077d1241' + ) public_gateway_reference_model_json['id'] = 'dc5431ef-1fc6-4861-adc9-a59d077d1241' public_gateway_reference_model_json['name'] = 'my-public-gateway' public_gateway_reference_model_json['resource_type'] = 'public_gateway' @@ -70315,7 +74080,9 @@ def test_public_gateway_reference_serialization(self): assert public_gateway_reference_model != False # Construct a model instance of PublicGatewayReference by calling from_dict on the json representation - public_gateway_reference_model_dict = PublicGatewayReference.from_dict(public_gateway_reference_model_json).__dict__ + public_gateway_reference_model_dict = PublicGatewayReference.from_dict( + public_gateway_reference_model_json + ).__dict__ public_gateway_reference_model2 = PublicGatewayReference(**public_gateway_reference_model_dict) # Verify the model instances are equivalent @@ -70458,14 +74225,20 @@ def test_reservation_serialization(self): reservation_profile_model['resource_type'] = 'instance_profile' resource_group_reference_model = {} # ResourceGroupReference - resource_group_reference_model['href'] = 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + resource_group_reference_model['href'] = ( + 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + ) resource_group_reference_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' resource_group_reference_model['name'] = 'Default' reservation_status_reason_model = {} # ReservationStatusReason reservation_status_reason_model['code'] = 'cannot_activate_no_capacity_available' - reservation_status_reason_model['message'] = 'The reservation cannot be activated because capacity is unavailable' - reservation_status_reason_model['more_info'] = 'https://cloud.ibm.com/docs/vpc?topic=vpc-reserved-capacity-status-reasons' + reservation_status_reason_model['message'] = ( + 'The reservation cannot be activated because capacity is unavailable' + ) + reservation_status_reason_model['more_info'] = ( + 'https://cloud.ibm.com/docs/vpc?topic=vpc-reserved-capacity-status-reasons' + ) zone_reference_model = {} # ZoneReference zone_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1' @@ -70477,8 +74250,12 @@ def test_reservation_serialization(self): reservation_model_json['capacity'] = reservation_capacity_model reservation_model_json['committed_use'] = reservation_committed_use_model reservation_model_json['created_at'] = '2019-01-01T12:00:00Z' - reservation_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::reservation:0717-ba49df72-37b8-43ac-98da-f8e029de0e63' - reservation_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/reservations/0717-ba49df72-37b8-43ac-98da-f8e029de0e63' + reservation_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::reservation:0717-ba49df72-37b8-43ac-98da-f8e029de0e63' + ) + reservation_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/reservations/0717-ba49df72-37b8-43ac-98da-f8e029de0e63' + ) reservation_model_json['id'] = '0717-ba49df72-37b8-43ac-98da-f8e029de0e63' reservation_model_json['lifecycle_state'] = 'stable' reservation_model_json['name'] = 'my-reservation' @@ -70558,7 +74335,9 @@ def test_reservation_capacity_patch_serialization(self): assert reservation_capacity_patch_model != False # Construct a model instance of ReservationCapacityPatch by calling from_dict on the json representation - reservation_capacity_patch_model_dict = ReservationCapacityPatch.from_dict(reservation_capacity_patch_model_json).__dict__ + reservation_capacity_patch_model_dict = ReservationCapacityPatch.from_dict( + reservation_capacity_patch_model_json + ).__dict__ reservation_capacity_patch_model2 = ReservationCapacityPatch(**reservation_capacity_patch_model_dict) # Verify the model instances are equivalent @@ -70584,12 +74363,18 @@ def test_reservation_capacity_prototype_serialization(self): reservation_capacity_prototype_model_json['total'] = 10 # Construct a model instance of ReservationCapacityPrototype by calling from_dict on the json representation - reservation_capacity_prototype_model = ReservationCapacityPrototype.from_dict(reservation_capacity_prototype_model_json) + reservation_capacity_prototype_model = ReservationCapacityPrototype.from_dict( + reservation_capacity_prototype_model_json + ) assert reservation_capacity_prototype_model != False # Construct a model instance of ReservationCapacityPrototype by calling from_dict on the json representation - reservation_capacity_prototype_model_dict = ReservationCapacityPrototype.from_dict(reservation_capacity_prototype_model_json).__dict__ - reservation_capacity_prototype_model2 = ReservationCapacityPrototype(**reservation_capacity_prototype_model_dict) + reservation_capacity_prototype_model_dict = ReservationCapacityPrototype.from_dict( + reservation_capacity_prototype_model_json + ).__dict__ + reservation_capacity_prototype_model2 = ReservationCapacityPrototype( + **reservation_capacity_prototype_model_dict + ) # Verify the model instances are equivalent assert reservation_capacity_prototype_model == reservation_capacity_prototype_model2 @@ -70632,14 +74417,20 @@ def test_reservation_collection_serialization(self): reservation_profile_model['resource_type'] = 'instance_profile' resource_group_reference_model = {} # ResourceGroupReference - resource_group_reference_model['href'] = 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + resource_group_reference_model['href'] = ( + 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + ) resource_group_reference_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' resource_group_reference_model['name'] = 'Default' reservation_status_reason_model = {} # ReservationStatusReason reservation_status_reason_model['code'] = 'cannot_activate_no_capacity_available' - reservation_status_reason_model['message'] = 'The reservation cannot be activated because capacity is unavailable' - reservation_status_reason_model['more_info'] = 'https://cloud.ibm.com/docs/vpc?topic=vpc-reserved-capacity-status-reasons' + reservation_status_reason_model['message'] = ( + 'The reservation cannot be activated because capacity is unavailable' + ) + reservation_status_reason_model['more_info'] = ( + 'https://cloud.ibm.com/docs/vpc?topic=vpc-reserved-capacity-status-reasons' + ) zone_reference_model = {} # ZoneReference zone_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1' @@ -70650,8 +74441,12 @@ def test_reservation_collection_serialization(self): reservation_model['capacity'] = reservation_capacity_model reservation_model['committed_use'] = reservation_committed_use_model reservation_model['created_at'] = '2020-12-29T19:55:00Z' - reservation_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::reservation:0717-ba49df72-37b8-43ac-98da-f8e029de0e63' - reservation_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/reservations/0717-ba49df72-37b8-43ac-98da-f8e029de0e63' + reservation_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::reservation:0717-ba49df72-37b8-43ac-98da-f8e029de0e63' + ) + reservation_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/reservations/0717-ba49df72-37b8-43ac-98da-f8e029de0e63' + ) reservation_model['id'] = '0717-ba49df72-37b8-43ac-98da-f8e029de0e63' reservation_model['lifecycle_state'] = 'stable' reservation_model['name'] = 'my-reservation' @@ -70707,7 +74502,9 @@ def test_reservation_committed_use_serialization(self): assert reservation_committed_use_model != False # Construct a model instance of ReservationCommittedUse by calling from_dict on the json representation - reservation_committed_use_model_dict = ReservationCommittedUse.from_dict(reservation_committed_use_model_json).__dict__ + reservation_committed_use_model_dict = ReservationCommittedUse.from_dict( + reservation_committed_use_model_json + ).__dict__ reservation_committed_use_model2 = ReservationCommittedUse(**reservation_committed_use_model_dict) # Verify the model instances are equivalent @@ -70734,12 +74531,18 @@ def test_reservation_committed_use_patch_serialization(self): reservation_committed_use_patch_model_json['term'] = 'testString' # Construct a model instance of ReservationCommittedUsePatch by calling from_dict on the json representation - reservation_committed_use_patch_model = ReservationCommittedUsePatch.from_dict(reservation_committed_use_patch_model_json) + reservation_committed_use_patch_model = ReservationCommittedUsePatch.from_dict( + reservation_committed_use_patch_model_json + ) assert reservation_committed_use_patch_model != False # Construct a model instance of ReservationCommittedUsePatch by calling from_dict on the json representation - reservation_committed_use_patch_model_dict = ReservationCommittedUsePatch.from_dict(reservation_committed_use_patch_model_json).__dict__ - reservation_committed_use_patch_model2 = ReservationCommittedUsePatch(**reservation_committed_use_patch_model_dict) + reservation_committed_use_patch_model_dict = ReservationCommittedUsePatch.from_dict( + reservation_committed_use_patch_model_json + ).__dict__ + reservation_committed_use_patch_model2 = ReservationCommittedUsePatch( + **reservation_committed_use_patch_model_dict + ) # Verify the model instances are equivalent assert reservation_committed_use_patch_model == reservation_committed_use_patch_model2 @@ -70765,12 +74568,18 @@ def test_reservation_committed_use_prototype_serialization(self): reservation_committed_use_prototype_model_json['term'] = 'testString' # Construct a model instance of ReservationCommittedUsePrototype by calling from_dict on the json representation - reservation_committed_use_prototype_model = ReservationCommittedUsePrototype.from_dict(reservation_committed_use_prototype_model_json) + reservation_committed_use_prototype_model = ReservationCommittedUsePrototype.from_dict( + reservation_committed_use_prototype_model_json + ) assert reservation_committed_use_prototype_model != False # Construct a model instance of ReservationCommittedUsePrototype by calling from_dict on the json representation - reservation_committed_use_prototype_model_dict = ReservationCommittedUsePrototype.from_dict(reservation_committed_use_prototype_model_json).__dict__ - reservation_committed_use_prototype_model2 = ReservationCommittedUsePrototype(**reservation_committed_use_prototype_model_dict) + reservation_committed_use_prototype_model_dict = ReservationCommittedUsePrototype.from_dict( + reservation_committed_use_prototype_model_json + ).__dict__ + reservation_committed_use_prototype_model2 = ReservationCommittedUsePrototype( + **reservation_committed_use_prototype_model_dict + ) # Verify the model instances are equivalent assert reservation_committed_use_prototype_model == reservation_committed_use_prototype_model2 @@ -70878,7 +74687,9 @@ def test_reservation_profile_patch_serialization(self): assert reservation_profile_patch_model != False # Construct a model instance of ReservationProfilePatch by calling from_dict on the json representation - reservation_profile_patch_model_dict = ReservationProfilePatch.from_dict(reservation_profile_patch_model_json).__dict__ + reservation_profile_patch_model_dict = ReservationProfilePatch.from_dict( + reservation_profile_patch_model_json + ).__dict__ reservation_profile_patch_model2 = ReservationProfilePatch(**reservation_profile_patch_model_dict) # Verify the model instances are equivalent @@ -70905,11 +74716,15 @@ def test_reservation_profile_prototype_serialization(self): reservation_profile_prototype_model_json['resource_type'] = 'instance_profile' # Construct a model instance of ReservationProfilePrototype by calling from_dict on the json representation - reservation_profile_prototype_model = ReservationProfilePrototype.from_dict(reservation_profile_prototype_model_json) + reservation_profile_prototype_model = ReservationProfilePrototype.from_dict( + reservation_profile_prototype_model_json + ) assert reservation_profile_prototype_model != False # Construct a model instance of ReservationProfilePrototype by calling from_dict on the json representation - reservation_profile_prototype_model_dict = ReservationProfilePrototype.from_dict(reservation_profile_prototype_model_json).__dict__ + reservation_profile_prototype_model_dict = ReservationProfilePrototype.from_dict( + reservation_profile_prototype_model_json + ).__dict__ reservation_profile_prototype_model2 = ReservationProfilePrototype(**reservation_profile_prototype_model_dict) # Verify the model instances are equivalent @@ -70937,9 +74752,13 @@ def test_reservation_reference_serialization(self): # Construct a json representation of a ReservationReference model reservation_reference_model_json = {} - reservation_reference_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::reservation:0717-ba49df72-37b8-43ac-98da-f8e029de0e63' + reservation_reference_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::reservation:0717-ba49df72-37b8-43ac-98da-f8e029de0e63' + ) reservation_reference_model_json['deleted'] = deleted_model - reservation_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/reservations/0717-ba49df72-37b8-43ac-98da-f8e029de0e63' + reservation_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/reservations/0717-ba49df72-37b8-43ac-98da-f8e029de0e63' + ) reservation_reference_model_json['id'] = '0717-ba49df72-37b8-43ac-98da-f8e029de0e63' reservation_reference_model_json['name'] = 'my-reservation' reservation_reference_model_json['resource_type'] = 'reservation' @@ -70973,15 +74792,21 @@ def test_reservation_status_reason_serialization(self): # Construct a json representation of a ReservationStatusReason model reservation_status_reason_model_json = {} reservation_status_reason_model_json['code'] = 'cannot_activate_no_capacity_available' - reservation_status_reason_model_json['message'] = 'The reservation cannot be activated because capacity is unavailable' - reservation_status_reason_model_json['more_info'] = 'https://cloud.ibm.com/docs/vpc?topic=vpc-reserved-capacity-status-reasons' + reservation_status_reason_model_json['message'] = ( + 'The reservation cannot be activated because capacity is unavailable' + ) + reservation_status_reason_model_json['more_info'] = ( + 'https://cloud.ibm.com/docs/vpc?topic=vpc-reserved-capacity-status-reasons' + ) # Construct a model instance of ReservationStatusReason by calling from_dict on the json representation reservation_status_reason_model = ReservationStatusReason.from_dict(reservation_status_reason_model_json) assert reservation_status_reason_model != False # Construct a model instance of ReservationStatusReason by calling from_dict on the json representation - reservation_status_reason_model_dict = ReservationStatusReason.from_dict(reservation_status_reason_model_json).__dict__ + reservation_status_reason_model_dict = ReservationStatusReason.from_dict( + reservation_status_reason_model_json + ).__dict__ reservation_status_reason_model2 = ReservationStatusReason(**reservation_status_reason_model_dict) # Verify the model instances are equivalent @@ -71008,9 +74833,13 @@ def test_reserved_ip_serialization(self): deleted_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#deleted-resources' reserved_ip_target_model = {} # ReservedIPTargetEndpointGatewayReference - reserved_ip_target_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::endpoint-gateway:r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5' + reserved_ip_target_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::endpoint-gateway:r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5' + ) reserved_ip_target_model['deleted'] = deleted_model - reserved_ip_target_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/endpoint_gateways/r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5' + reserved_ip_target_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/endpoint_gateways/r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5' + ) reserved_ip_target_model['id'] = 'r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5' reserved_ip_target_model['name'] = 'my-endpoint-gateway' reserved_ip_target_model['resource_type'] = 'endpoint_gateway' @@ -71020,7 +74849,9 @@ def test_reserved_ip_serialization(self): reserved_ip_model_json['address'] = '192.168.3.4' reserved_ip_model_json['auto_delete'] = False reserved_ip_model_json['created_at'] = '2019-01-01T12:00:00Z' - reserved_ip_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-bea6a632-5e13-42a4-b4b8-31dc877abfe4/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + reserved_ip_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-bea6a632-5e13-42a4-b4b8-31dc877abfe4/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + ) reserved_ip_model_json['id'] = '0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' reserved_ip_model_json['lifecycle_state'] = 'stable' reserved_ip_model_json['name'] = 'my-reserved-ip' @@ -71057,15 +74888,21 @@ def test_reserved_ip_collection_serialization(self): # Construct dict forms of any model objects needed in order to build this model. page_link_model = {} # PageLink - page_link_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0716-b28a7e6d-a66b-4de7-8713-15dcffdce401/reserved_ips?limit=50' + page_link_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0716-b28a7e6d-a66b-4de7-8713-15dcffdce401/reserved_ips?limit=50' + ) deleted_model = {} # Deleted deleted_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#deleted-resources' reserved_ip_target_model = {} # ReservedIPTargetEndpointGatewayReference - reserved_ip_target_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::endpoint-gateway:r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5' + reserved_ip_target_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::endpoint-gateway:r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5' + ) reserved_ip_target_model['deleted'] = deleted_model - reserved_ip_target_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/endpoint_gateways/r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5' + reserved_ip_target_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/endpoint_gateways/r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5' + ) reserved_ip_target_model['id'] = 'r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5' reserved_ip_target_model['name'] = 'my-endpoint-gateway' reserved_ip_target_model['resource_type'] = 'endpoint_gateway' @@ -71074,7 +74911,9 @@ def test_reserved_ip_collection_serialization(self): reserved_ip_model['address'] = '10.0.1.5' reserved_ip_model['auto_delete'] = False reserved_ip_model['created_at'] = '2024-10-15T19:52:13Z' - reserved_ip_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + reserved_ip_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + ) reserved_ip_model['id'] = '0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' reserved_ip_model['lifecycle_state'] = 'stable' reserved_ip_model['name'] = 'my-reserved-ip' @@ -71119,15 +74958,21 @@ def test_reserved_ip_collection_bare_metal_server_network_interface_context_seri # Construct dict forms of any model objects needed in order to build this model. page_link_model = {} # PageLink - page_link_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/bare_metal_servers/0717-aad10fd7-8a02-4f3e-97f3-b18bd82cf304/network_interfaces/0717-da8c43ec-b6ca-4bd2-871e-72e288c66ee6/ips?limit=20' + page_link_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/bare_metal_servers/0717-aad10fd7-8a02-4f3e-97f3-b18bd82cf304/network_interfaces/0717-da8c43ec-b6ca-4bd2-871e-72e288c66ee6/ips?limit=20' + ) deleted_model = {} # Deleted deleted_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#deleted-resources' reserved_ip_target_model = {} # ReservedIPTargetEndpointGatewayReference - reserved_ip_target_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::endpoint-gateway:r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5' + reserved_ip_target_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::endpoint-gateway:r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5' + ) reserved_ip_target_model['deleted'] = deleted_model - reserved_ip_target_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/bare_metal_servers/0717-aad10fd7-8a02-4f3e-97f3-b18bd82cf304/network_interfaces/0717-da8c43ec-b6ca-4bd2-871e-72e288c66ee6' + reserved_ip_target_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/bare_metal_servers/0717-aad10fd7-8a02-4f3e-97f3-b18bd82cf304/network_interfaces/0717-da8c43ec-b6ca-4bd2-871e-72e288c66ee6' + ) reserved_ip_target_model['id'] = '0717-da8c43ec-b6ca-4bd2-871e-72e288c66ee6' reserved_ip_target_model['name'] = 'my-primary-network-interface' reserved_ip_target_model['resource_type'] = 'network_interface' @@ -71136,7 +74981,9 @@ def test_reserved_ip_collection_bare_metal_server_network_interface_context_seri reserved_ip_model['address'] = '10.0.1.5' reserved_ip_model['auto_delete'] = False reserved_ip_model['created_at'] = '2024-10-15T19:52:13Z' - reserved_ip_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + reserved_ip_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + ) reserved_ip_model['id'] = '0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' reserved_ip_model['lifecycle_state'] = 'stable' reserved_ip_model['name'] = 'my-reserved-ip' @@ -71153,19 +75000,39 @@ def test_reserved_ip_collection_bare_metal_server_network_interface_context_seri reserved_ip_collection_bare_metal_server_network_interface_context_model_json['total_count'] = 132 # Construct a model instance of ReservedIPCollectionBareMetalServerNetworkInterfaceContext by calling from_dict on the json representation - reserved_ip_collection_bare_metal_server_network_interface_context_model = ReservedIPCollectionBareMetalServerNetworkInterfaceContext.from_dict(reserved_ip_collection_bare_metal_server_network_interface_context_model_json) + reserved_ip_collection_bare_metal_server_network_interface_context_model = ( + ReservedIPCollectionBareMetalServerNetworkInterfaceContext.from_dict( + reserved_ip_collection_bare_metal_server_network_interface_context_model_json + ) + ) assert reserved_ip_collection_bare_metal_server_network_interface_context_model != False # Construct a model instance of ReservedIPCollectionBareMetalServerNetworkInterfaceContext by calling from_dict on the json representation - reserved_ip_collection_bare_metal_server_network_interface_context_model_dict = ReservedIPCollectionBareMetalServerNetworkInterfaceContext.from_dict(reserved_ip_collection_bare_metal_server_network_interface_context_model_json).__dict__ - reserved_ip_collection_bare_metal_server_network_interface_context_model2 = ReservedIPCollectionBareMetalServerNetworkInterfaceContext(**reserved_ip_collection_bare_metal_server_network_interface_context_model_dict) + reserved_ip_collection_bare_metal_server_network_interface_context_model_dict = ( + ReservedIPCollectionBareMetalServerNetworkInterfaceContext.from_dict( + reserved_ip_collection_bare_metal_server_network_interface_context_model_json + ).__dict__ + ) + reserved_ip_collection_bare_metal_server_network_interface_context_model2 = ( + ReservedIPCollectionBareMetalServerNetworkInterfaceContext( + **reserved_ip_collection_bare_metal_server_network_interface_context_model_dict + ) + ) # Verify the model instances are equivalent - assert reserved_ip_collection_bare_metal_server_network_interface_context_model == reserved_ip_collection_bare_metal_server_network_interface_context_model2 + assert ( + reserved_ip_collection_bare_metal_server_network_interface_context_model + == reserved_ip_collection_bare_metal_server_network_interface_context_model2 + ) # Convert model instance back to dict and verify no loss of data - reserved_ip_collection_bare_metal_server_network_interface_context_model_json2 = reserved_ip_collection_bare_metal_server_network_interface_context_model.to_dict() - assert reserved_ip_collection_bare_metal_server_network_interface_context_model_json2 == reserved_ip_collection_bare_metal_server_network_interface_context_model_json + reserved_ip_collection_bare_metal_server_network_interface_context_model_json2 = ( + reserved_ip_collection_bare_metal_server_network_interface_context_model.to_dict() + ) + assert ( + reserved_ip_collection_bare_metal_server_network_interface_context_model_json2 + == reserved_ip_collection_bare_metal_server_network_interface_context_model_json + ) class TestModel_ReservedIPCollectionEndpointGatewayContext: @@ -71181,15 +75048,21 @@ def test_reserved_ip_collection_endpoint_gateway_context_serialization(self): # Construct dict forms of any model objects needed in order to build this model. page_link_model = {} # PageLink - page_link_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/endpoint_gateways/d7cc5196-9864-48c4-82d8-3f30da41fcc5/ips?limit=20' + page_link_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/endpoint_gateways/d7cc5196-9864-48c4-82d8-3f30da41fcc5/ips?limit=20' + ) deleted_model = {} # Deleted deleted_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#deleted-resources' reserved_ip_target_model = {} # ReservedIPTargetEndpointGatewayReference - reserved_ip_target_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::endpoint-gateway:r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5' + reserved_ip_target_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::endpoint-gateway:r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5' + ) reserved_ip_target_model['deleted'] = deleted_model - reserved_ip_target_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/endpoint_gateways/r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5' + reserved_ip_target_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/endpoint_gateways/r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5' + ) reserved_ip_target_model['id'] = 'r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5' reserved_ip_target_model['name'] = 'my-endpoint-gateway' reserved_ip_target_model['resource_type'] = 'endpoint_gateway' @@ -71198,7 +75071,9 @@ def test_reserved_ip_collection_endpoint_gateway_context_serialization(self): reserved_ip_model['address'] = '192.168.3.4' reserved_ip_model['auto_delete'] = False reserved_ip_model['created_at'] = '2019-01-01T12:00:00Z' - reserved_ip_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-bea6a632-5e13-42a4-b4b8-31dc877abfe4/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + reserved_ip_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-bea6a632-5e13-42a4-b4b8-31dc877abfe4/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + ) reserved_ip_model['id'] = '0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' reserved_ip_model['lifecycle_state'] = 'stable' reserved_ip_model['name'] = 'my-reserved-ip' @@ -71215,19 +75090,35 @@ def test_reserved_ip_collection_endpoint_gateway_context_serialization(self): reserved_ip_collection_endpoint_gateway_context_model_json['total_count'] = 132 # Construct a model instance of ReservedIPCollectionEndpointGatewayContext by calling from_dict on the json representation - reserved_ip_collection_endpoint_gateway_context_model = ReservedIPCollectionEndpointGatewayContext.from_dict(reserved_ip_collection_endpoint_gateway_context_model_json) + reserved_ip_collection_endpoint_gateway_context_model = ReservedIPCollectionEndpointGatewayContext.from_dict( + reserved_ip_collection_endpoint_gateway_context_model_json + ) assert reserved_ip_collection_endpoint_gateway_context_model != False # Construct a model instance of ReservedIPCollectionEndpointGatewayContext by calling from_dict on the json representation - reserved_ip_collection_endpoint_gateway_context_model_dict = ReservedIPCollectionEndpointGatewayContext.from_dict(reserved_ip_collection_endpoint_gateway_context_model_json).__dict__ - reserved_ip_collection_endpoint_gateway_context_model2 = ReservedIPCollectionEndpointGatewayContext(**reserved_ip_collection_endpoint_gateway_context_model_dict) + reserved_ip_collection_endpoint_gateway_context_model_dict = ( + ReservedIPCollectionEndpointGatewayContext.from_dict( + reserved_ip_collection_endpoint_gateway_context_model_json + ).__dict__ + ) + reserved_ip_collection_endpoint_gateway_context_model2 = ReservedIPCollectionEndpointGatewayContext( + **reserved_ip_collection_endpoint_gateway_context_model_dict + ) # Verify the model instances are equivalent - assert reserved_ip_collection_endpoint_gateway_context_model == reserved_ip_collection_endpoint_gateway_context_model2 + assert ( + reserved_ip_collection_endpoint_gateway_context_model + == reserved_ip_collection_endpoint_gateway_context_model2 + ) # Convert model instance back to dict and verify no loss of data - reserved_ip_collection_endpoint_gateway_context_model_json2 = reserved_ip_collection_endpoint_gateway_context_model.to_dict() - assert reserved_ip_collection_endpoint_gateway_context_model_json2 == reserved_ip_collection_endpoint_gateway_context_model_json + reserved_ip_collection_endpoint_gateway_context_model_json2 = ( + reserved_ip_collection_endpoint_gateway_context_model.to_dict() + ) + assert ( + reserved_ip_collection_endpoint_gateway_context_model_json2 + == reserved_ip_collection_endpoint_gateway_context_model_json + ) class TestModel_ReservedIPCollectionInstanceNetworkInterfaceContext: @@ -71243,15 +75134,21 @@ def test_reserved_ip_collection_instance_network_interface_context_serialization # Construct dict forms of any model objects needed in order to build this model. page_link_model = {} # PageLink - page_link_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/network_interfaces/0717-d54eb633-98ea-459d-aa00-6a8e780175a7/ips?limit=20' + page_link_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/network_interfaces/0717-d54eb633-98ea-459d-aa00-6a8e780175a7/ips?limit=20' + ) deleted_model = {} # Deleted deleted_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#deleted-resources' reserved_ip_target_model = {} # ReservedIPTargetEndpointGatewayReference - reserved_ip_target_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::endpoint-gateway:r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5' + reserved_ip_target_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::endpoint-gateway:r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5' + ) reserved_ip_target_model['deleted'] = deleted_model - reserved_ip_target_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/endpoint_gateways/r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5' + reserved_ip_target_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/endpoint_gateways/r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5' + ) reserved_ip_target_model['id'] = 'r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5' reserved_ip_target_model['name'] = 'my-endpoint-gateway' reserved_ip_target_model['resource_type'] = 'endpoint_gateway' @@ -71260,7 +75157,9 @@ def test_reserved_ip_collection_instance_network_interface_context_serialization reserved_ip_model['address'] = '192.168.3.4' reserved_ip_model['auto_delete'] = False reserved_ip_model['created_at'] = '2019-01-01T12:00:00Z' - reserved_ip_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-bea6a632-5e13-42a4-b4b8-31dc877abfe4/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + reserved_ip_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-bea6a632-5e13-42a4-b4b8-31dc877abfe4/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + ) reserved_ip_model['id'] = '0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' reserved_ip_model['lifecycle_state'] = 'stable' reserved_ip_model['name'] = 'my-reserved-ip' @@ -71277,19 +75176,39 @@ def test_reserved_ip_collection_instance_network_interface_context_serialization reserved_ip_collection_instance_network_interface_context_model_json['total_count'] = 132 # Construct a model instance of ReservedIPCollectionInstanceNetworkInterfaceContext by calling from_dict on the json representation - reserved_ip_collection_instance_network_interface_context_model = ReservedIPCollectionInstanceNetworkInterfaceContext.from_dict(reserved_ip_collection_instance_network_interface_context_model_json) + reserved_ip_collection_instance_network_interface_context_model = ( + ReservedIPCollectionInstanceNetworkInterfaceContext.from_dict( + reserved_ip_collection_instance_network_interface_context_model_json + ) + ) assert reserved_ip_collection_instance_network_interface_context_model != False # Construct a model instance of ReservedIPCollectionInstanceNetworkInterfaceContext by calling from_dict on the json representation - reserved_ip_collection_instance_network_interface_context_model_dict = ReservedIPCollectionInstanceNetworkInterfaceContext.from_dict(reserved_ip_collection_instance_network_interface_context_model_json).__dict__ - reserved_ip_collection_instance_network_interface_context_model2 = ReservedIPCollectionInstanceNetworkInterfaceContext(**reserved_ip_collection_instance_network_interface_context_model_dict) + reserved_ip_collection_instance_network_interface_context_model_dict = ( + ReservedIPCollectionInstanceNetworkInterfaceContext.from_dict( + reserved_ip_collection_instance_network_interface_context_model_json + ).__dict__ + ) + reserved_ip_collection_instance_network_interface_context_model2 = ( + ReservedIPCollectionInstanceNetworkInterfaceContext( + **reserved_ip_collection_instance_network_interface_context_model_dict + ) + ) # Verify the model instances are equivalent - assert reserved_ip_collection_instance_network_interface_context_model == reserved_ip_collection_instance_network_interface_context_model2 + assert ( + reserved_ip_collection_instance_network_interface_context_model + == reserved_ip_collection_instance_network_interface_context_model2 + ) # Convert model instance back to dict and verify no loss of data - reserved_ip_collection_instance_network_interface_context_model_json2 = reserved_ip_collection_instance_network_interface_context_model.to_dict() - assert reserved_ip_collection_instance_network_interface_context_model_json2 == reserved_ip_collection_instance_network_interface_context_model_json + reserved_ip_collection_instance_network_interface_context_model_json2 = ( + reserved_ip_collection_instance_network_interface_context_model.to_dict() + ) + assert ( + reserved_ip_collection_instance_network_interface_context_model_json2 + == reserved_ip_collection_instance_network_interface_context_model_json + ) class TestModel_ReservedIPCollectionVirtualNetworkInterfaceContext: @@ -71305,7 +75224,9 @@ def test_reserved_ip_collection_virtual_network_interface_context_serialization( # Construct dict forms of any model objects needed in order to build this model. page_link_model = {} # PageLink - page_link_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/network_interfaces/0717-d54eb633-98ea-459d-aa00-6a8e780175a7/ips?limit=20' + page_link_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/network_interfaces/0717-d54eb633-98ea-459d-aa00-6a8e780175a7/ips?limit=20' + ) deleted_model = {} # Deleted deleted_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#deleted-resources' @@ -71313,7 +75234,9 @@ def test_reserved_ip_collection_virtual_network_interface_context_serialization( reserved_ip_reference_model = {} # ReservedIPReference reserved_ip_reference_model['address'] = '192.168.3.4' reserved_ip_reference_model['deleted'] = deleted_model - reserved_ip_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-bea6a632-5e13-42a4-b4b8-31dc877abfe4/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + reserved_ip_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-bea6a632-5e13-42a4-b4b8-31dc877abfe4/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + ) reserved_ip_reference_model['id'] = '0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' reserved_ip_reference_model['name'] = 'my-reserved-ip' reserved_ip_reference_model['resource_type'] = 'subnet_reserved_ip' @@ -71327,19 +75250,39 @@ def test_reserved_ip_collection_virtual_network_interface_context_serialization( reserved_ip_collection_virtual_network_interface_context_model_json['total_count'] = 132 # Construct a model instance of ReservedIPCollectionVirtualNetworkInterfaceContext by calling from_dict on the json representation - reserved_ip_collection_virtual_network_interface_context_model = ReservedIPCollectionVirtualNetworkInterfaceContext.from_dict(reserved_ip_collection_virtual_network_interface_context_model_json) + reserved_ip_collection_virtual_network_interface_context_model = ( + ReservedIPCollectionVirtualNetworkInterfaceContext.from_dict( + reserved_ip_collection_virtual_network_interface_context_model_json + ) + ) assert reserved_ip_collection_virtual_network_interface_context_model != False # Construct a model instance of ReservedIPCollectionVirtualNetworkInterfaceContext by calling from_dict on the json representation - reserved_ip_collection_virtual_network_interface_context_model_dict = ReservedIPCollectionVirtualNetworkInterfaceContext.from_dict(reserved_ip_collection_virtual_network_interface_context_model_json).__dict__ - reserved_ip_collection_virtual_network_interface_context_model2 = ReservedIPCollectionVirtualNetworkInterfaceContext(**reserved_ip_collection_virtual_network_interface_context_model_dict) + reserved_ip_collection_virtual_network_interface_context_model_dict = ( + ReservedIPCollectionVirtualNetworkInterfaceContext.from_dict( + reserved_ip_collection_virtual_network_interface_context_model_json + ).__dict__ + ) + reserved_ip_collection_virtual_network_interface_context_model2 = ( + ReservedIPCollectionVirtualNetworkInterfaceContext( + **reserved_ip_collection_virtual_network_interface_context_model_dict + ) + ) # Verify the model instances are equivalent - assert reserved_ip_collection_virtual_network_interface_context_model == reserved_ip_collection_virtual_network_interface_context_model2 + assert ( + reserved_ip_collection_virtual_network_interface_context_model + == reserved_ip_collection_virtual_network_interface_context_model2 + ) # Convert model instance back to dict and verify no loss of data - reserved_ip_collection_virtual_network_interface_context_model_json2 = reserved_ip_collection_virtual_network_interface_context_model.to_dict() - assert reserved_ip_collection_virtual_network_interface_context_model_json2 == reserved_ip_collection_virtual_network_interface_context_model_json + reserved_ip_collection_virtual_network_interface_context_model_json2 = ( + reserved_ip_collection_virtual_network_interface_context_model.to_dict() + ) + assert ( + reserved_ip_collection_virtual_network_interface_context_model_json2 + == reserved_ip_collection_virtual_network_interface_context_model_json + ) class TestModel_ReservedIPPatch: @@ -71392,7 +75335,9 @@ def test_reserved_ip_reference_serialization(self): reserved_ip_reference_model_json = {} reserved_ip_reference_model_json['address'] = '192.168.3.4' reserved_ip_reference_model_json['deleted'] = deleted_model - reserved_ip_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-bea6a632-5e13-42a4-b4b8-31dc877abfe4/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + reserved_ip_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-bea6a632-5e13-42a4-b4b8-31dc877abfe4/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + ) reserved_ip_reference_model_json['id'] = '0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' reserved_ip_reference_model_json['name'] = 'my-reserved-ip' reserved_ip_reference_model_json['resource_type'] = 'subnet_reserved_ip' @@ -71455,7 +75400,9 @@ def test_resource_group_reference_serialization(self): # Construct a json representation of a ResourceGroupReference model resource_group_reference_model_json = {} - resource_group_reference_model_json['href'] = 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + resource_group_reference_model_json['href'] = ( + 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + ) resource_group_reference_model_json['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' resource_group_reference_model_json['name'] = 'my-resource-group' @@ -71464,7 +75411,9 @@ def test_resource_group_reference_serialization(self): assert resource_group_reference_model != False # Construct a model instance of ResourceGroupReference by calling from_dict on the json representation - resource_group_reference_model_dict = ResourceGroupReference.from_dict(resource_group_reference_model_json).__dict__ + resource_group_reference_model_dict = ResourceGroupReference.from_dict( + resource_group_reference_model_json + ).__dict__ resource_group_reference_model2 = ResourceGroupReference(**resource_group_reference_model_dict) # Verify the model instances are equivalent @@ -71500,7 +75449,9 @@ def test_route_serialization(self): route_model_json['advertise'] = True route_model_json['created_at'] = '2019-01-01T12:00:00Z' route_model_json['destination'] = '192.168.3.0/24' - route_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/8e454ead-0db7-48ac-9a8b-2698d8c470a7/routing_tables/6885e83f-03b2-4603-8a86-db2a0f55c840/routes/1a15dca5-7e33-45e1-b7c5-bc690e569531' + route_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/8e454ead-0db7-48ac-9a8b-2698d8c470a7/routing_tables/6885e83f-03b2-4603-8a86-db2a0f55c840/routes/1a15dca5-7e33-45e1-b7c5-bc690e569531' + ) route_model_json['id'] = '1a15dca5-7e33-45e1-b7c5-bc690e569531' route_model_json['lifecycle_state'] = 'stable' route_model_json['name'] = 'my-route-1' @@ -71538,7 +75489,9 @@ def test_route_collection_serialization(self): # Construct dict forms of any model objects needed in order to build this model. page_link_model = {} # PageLink - page_link_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/982d72b7-db1b-4606-afb2-ed6bd4b0bed1/routing_tables/1a15dca5-7e33-45e1-b7c5-bc690e569531/routes?limit=20' + page_link_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/982d72b7-db1b-4606-afb2-ed6bd4b0bed1/routing_tables/1a15dca5-7e33-45e1-b7c5-bc690e569531/routes?limit=20' + ) route_next_hop_model = {} # RouteNextHopIP route_next_hop_model['address'] = '192.168.3.4' @@ -71552,7 +75505,9 @@ def test_route_collection_serialization(self): route_model['advertise'] = True route_model['created_at'] = '2019-01-01T12:00:00Z' route_model['destination'] = '192.168.3.0/24' - route_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/8e454ead-0db7-48ac-9a8b-2698d8c470a7/routing_tables/6885e83f-03b2-4603-8a86-db2a0f55c840/routes/1a15dca5-7e33-45e1-b7c5-bc690e569531' + route_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/8e454ead-0db7-48ac-9a8b-2698d8c470a7/routing_tables/6885e83f-03b2-4603-8a86-db2a0f55c840/routes/1a15dca5-7e33-45e1-b7c5-bc690e569531' + ) route_model['id'] = '1a15dca5-7e33-45e1-b7c5-bc690e569531' route_model['lifecycle_state'] = 'stable' route_model['name'] = 'my-route-1' @@ -71598,7 +75553,9 @@ def test_route_collection_vpc_context_serialization(self): # Construct dict forms of any model objects needed in order to build this model. page_link_model = {} # PageLink - page_link_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/8e454ead-0db7-48ac-9a8b-2698d8c470a7/routes/1a15dca5-7e33-45e1-b7c5-bc690e569531' + page_link_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/8e454ead-0db7-48ac-9a8b-2698d8c470a7/routes/1a15dca5-7e33-45e1-b7c5-bc690e569531' + ) route_next_hop_model = {} # RouteNextHopIP route_next_hop_model['address'] = '192.168.3.4' @@ -71612,7 +75569,9 @@ def test_route_collection_vpc_context_serialization(self): route_model['advertise'] = True route_model['created_at'] = '2019-01-01T12:00:00Z' route_model['destination'] = '192.168.3.0/24' - route_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/8e454ead-0db7-48ac-9a8b-2698d8c470a7/routing_tables/6885e83f-03b2-4603-8a86-db2a0f55c840/routes/1a15dca5-7e33-45e1-b7c5-bc690e569531' + route_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/8e454ead-0db7-48ac-9a8b-2698d8c470a7/routing_tables/6885e83f-03b2-4603-8a86-db2a0f55c840/routes/1a15dca5-7e33-45e1-b7c5-bc690e569531' + ) route_model['id'] = '1a15dca5-7e33-45e1-b7c5-bc690e569531' route_model['lifecycle_state'] = 'stable' route_model['name'] = 'my-route-1' @@ -71630,11 +75589,15 @@ def test_route_collection_vpc_context_serialization(self): route_collection_vpc_context_model_json['total_count'] = 132 # Construct a model instance of RouteCollectionVPCContext by calling from_dict on the json representation - route_collection_vpc_context_model = RouteCollectionVPCContext.from_dict(route_collection_vpc_context_model_json) + route_collection_vpc_context_model = RouteCollectionVPCContext.from_dict( + route_collection_vpc_context_model_json + ) assert route_collection_vpc_context_model != False # Construct a model instance of RouteCollectionVPCContext by calling from_dict on the json representation - route_collection_vpc_context_model_dict = RouteCollectionVPCContext.from_dict(route_collection_vpc_context_model_json).__dict__ + route_collection_vpc_context_model_dict = RouteCollectionVPCContext.from_dict( + route_collection_vpc_context_model_json + ).__dict__ route_collection_vpc_context_model2 = RouteCollectionVPCContext(**route_collection_vpc_context_model_dict) # Verify the model instances are equivalent @@ -71745,7 +75708,9 @@ def test_route_reference_serialization(self): # Construct a json representation of a RouteReference model route_reference_model_json = {} route_reference_model_json['deleted'] = deleted_model - route_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/8e454ead-0db7-48ac-9a8b-2698d8c470a7/routing_tables/6885e83f-03b2-4603-8a86-db2a0f55c840/routes/1a15dca5-7e33-45e1-b7c5-bc690e569531' + route_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/8e454ead-0db7-48ac-9a8b-2698d8c470a7/routing_tables/6885e83f-03b2-4603-8a86-db2a0f55c840/routes/1a15dca5-7e33-45e1-b7c5-bc690e569531' + ) route_reference_model_json['id'] = '1a15dca5-7e33-45e1-b7c5-bc690e569531' route_reference_model_json['name'] = 'my-route-1' @@ -71781,7 +75746,9 @@ def test_routing_table_serialization(self): resource_filter_model['resource_type'] = 'vpn_gateway' resource_group_reference_model = {} # ResourceGroupReference - resource_group_reference_model['href'] = 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + resource_group_reference_model['href'] = ( + 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + ) resource_group_reference_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' resource_group_reference_model['name'] = 'Default' @@ -71790,14 +75757,20 @@ def test_routing_table_serialization(self): route_reference_model = {} # RouteReference route_reference_model['deleted'] = deleted_model - route_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b/routing_tables/r006-6885e83f-03b2-4603-8a86-db2a0f55c840/routes/r006-ae54c371-56be-4306-91bd-bb64df239d69' + route_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b/routing_tables/r006-6885e83f-03b2-4603-8a86-db2a0f55c840/routes/r006-ae54c371-56be-4306-91bd-bb64df239d69' + ) route_reference_model['id'] = 'r006-ae54c371-56be-4306-91bd-bb64df239d69' route_reference_model['name'] = 'my-route-1' subnet_reference_model = {} # SubnetReference - subnet_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-8722d01c-9c78-4555-82b5-53ad1266f959' + subnet_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-8722d01c-9c78-4555-82b5-53ad1266f959' + ) subnet_reference_model['deleted'] = deleted_model - subnet_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-8722d01c-9c78-4555-82b5-53ad1266f959' + subnet_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-8722d01c-9c78-4555-82b5-53ad1266f959' + ) subnet_reference_model['id'] = '0717-8722d01c-9c78-4555-82b5-53ad1266f959' subnet_reference_model['name'] = 'my-subnet-1' subnet_reference_model['resource_type'] = 'subnet' @@ -71807,8 +75780,12 @@ def test_routing_table_serialization(self): routing_table_model_json['accept_routes_from'] = [resource_filter_model] routing_table_model_json['advertise_routes_to'] = ['transit_gateway', 'direct_link'] routing_table_model_json['created_at'] = '2019-01-01T12:00:00Z' - routing_table_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc-routing-table:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b/r006-6885e83f-03b2-4603-8a86-db2a0f55c840' - routing_table_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b/routing_tables/r006-6885e83f-03b2-4603-8a86-db2a0f55c840' + routing_table_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc-routing-table:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b/r006-6885e83f-03b2-4603-8a86-db2a0f55c840' + ) + routing_table_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b/routing_tables/r006-6885e83f-03b2-4603-8a86-db2a0f55c840' + ) routing_table_model_json['id'] = 'r006-6885e83f-03b2-4603-8a86-db2a0f55c840' routing_table_model_json['is_default'] = True routing_table_model_json['lifecycle_state'] = 'stable' @@ -71851,13 +75828,17 @@ def test_routing_table_collection_serialization(self): # Construct dict forms of any model objects needed in order to build this model. page_link_model = {} # PageLink - page_link_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b/routing_tables?limit=50' + page_link_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b/routing_tables?limit=50' + ) resource_filter_model = {} # ResourceFilter resource_filter_model['resource_type'] = 'vpn_gateway' resource_group_reference_model = {} # ResourceGroupReference - resource_group_reference_model['href'] = 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + resource_group_reference_model['href'] = ( + 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + ) resource_group_reference_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' resource_group_reference_model['name'] = 'Default' @@ -71866,14 +75847,20 @@ def test_routing_table_collection_serialization(self): route_reference_model = {} # RouteReference route_reference_model['deleted'] = deleted_model - route_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b/routing_tables/r006-6885e83f-03b2-4603-8a86-db2a0f55c840/routes/r006-ae54c371-56be-4306-91bd-bb64df239d69' + route_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b/routing_tables/r006-6885e83f-03b2-4603-8a86-db2a0f55c840/routes/r006-ae54c371-56be-4306-91bd-bb64df239d69' + ) route_reference_model['id'] = 'r006-ae54c371-56be-4306-91bd-bb64df239d69' route_reference_model['name'] = 'my-route-1' subnet_reference_model = {} # SubnetReference - subnet_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-8722d01c-9c78-4555-82b5-53ad1266f959' + subnet_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-8722d01c-9c78-4555-82b5-53ad1266f959' + ) subnet_reference_model['deleted'] = deleted_model - subnet_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-8722d01c-9c78-4555-82b5-53ad1266f959' + subnet_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-8722d01c-9c78-4555-82b5-53ad1266f959' + ) subnet_reference_model['id'] = '0717-8722d01c-9c78-4555-82b5-53ad1266f959' subnet_reference_model['name'] = 'my-subnet-1' subnet_reference_model['resource_type'] = 'subnet' @@ -71882,8 +75869,12 @@ def test_routing_table_collection_serialization(self): routing_table_model['accept_routes_from'] = [resource_filter_model] routing_table_model['advertise_routes_to'] = [] routing_table_model['created_at'] = '2019-01-07T16:56:54Z' - routing_table_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc-routing-table:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b/r006-6885e83f-03b2-4603-8a86-db2a0f55c840' - routing_table_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b/routing_tables/r006-6885e83f-03b2-4603-8a86-db2a0f55c840' + routing_table_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc-routing-table:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b/r006-6885e83f-03b2-4603-8a86-db2a0f55c840' + ) + routing_table_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b/routing_tables/r006-6885e83f-03b2-4603-8a86-db2a0f55c840' + ) routing_table_model['id'] = 'r006-6885e83f-03b2-4603-8a86-db2a0f55c840' routing_table_model['is_default'] = True routing_table_model['lifecycle_state'] = 'stable' @@ -71910,7 +75901,9 @@ def test_routing_table_collection_serialization(self): assert routing_table_collection_model != False # Construct a model instance of RoutingTableCollection by calling from_dict on the json representation - routing_table_collection_model_dict = RoutingTableCollection.from_dict(routing_table_collection_model_json).__dict__ + routing_table_collection_model_dict = RoutingTableCollection.from_dict( + routing_table_collection_model_json + ).__dict__ routing_table_collection_model2 = RoutingTableCollection(**routing_table_collection_model_dict) # Verify the model instances are equivalent @@ -71979,9 +75972,13 @@ def test_routing_table_reference_serialization(self): # Construct a json representation of a RoutingTableReference model routing_table_reference_model_json = {} - routing_table_reference_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc-routing-table:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b/r006-6885e83f-03b2-4603-8a86-db2a0f55c840' + routing_table_reference_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc-routing-table:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b/r006-6885e83f-03b2-4603-8a86-db2a0f55c840' + ) routing_table_reference_model_json['deleted'] = deleted_model - routing_table_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b/routing_tables/r006-6885e83f-03b2-4603-8a86-db2a0f55c840' + routing_table_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b/routing_tables/r006-6885e83f-03b2-4603-8a86-db2a0f55c840' + ) routing_table_reference_model_json['id'] = 'r006-6885e83f-03b2-4603-8a86-db2a0f55c840' routing_table_reference_model_json['name'] = 'my-routing-table-1' routing_table_reference_model_json['resource_type'] = 'routing_table' @@ -71991,7 +75988,9 @@ def test_routing_table_reference_serialization(self): assert routing_table_reference_model != False # Construct a model instance of RoutingTableReference by calling from_dict on the json representation - routing_table_reference_model_dict = RoutingTableReference.from_dict(routing_table_reference_model_json).__dict__ + routing_table_reference_model_dict = RoutingTableReference.from_dict( + routing_table_reference_model_json + ).__dict__ routing_table_reference_model2 = RoutingTableReference(**routing_table_reference_model_dict) # Verify the model instances are equivalent @@ -72015,7 +76014,9 @@ def test_security_group_serialization(self): # Construct dict forms of any model objects needed in order to build this model. resource_group_reference_model = {} # ResourceGroupReference - resource_group_reference_model['href'] = 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + resource_group_reference_model['href'] = ( + 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + ) resource_group_reference_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' resource_group_reference_model['name'] = 'Default' @@ -72027,7 +76028,9 @@ def test_security_group_serialization(self): security_group_rule_model = {} # SecurityGroupRuleSecurityGroupRuleProtocolTCPUDP security_group_rule_model['direction'] = 'inbound' - security_group_rule_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271/rules/r006-b597cff2-38e8-4e6e-999d-000002172691' + security_group_rule_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271/rules/r006-b597cff2-38e8-4e6e-999d-000002172691' + ) security_group_rule_model['id'] = 'r006-b597cff2-38e8-4e6e-999d-000002172691' security_group_rule_model['ip_version'] = 'ipv4' security_group_rule_model['local'] = security_group_rule_local_model @@ -72041,15 +76044,21 @@ def test_security_group_serialization(self): security_group_target_reference_model = {} # SecurityGroupTargetReferenceNetworkInterfaceReferenceTargetContext security_group_target_reference_model['deleted'] = deleted_model - security_group_target_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/network_interfaces/0717-d54eb633-98ea-459d-aa00-6a8e780175a7' + security_group_target_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/network_interfaces/0717-d54eb633-98ea-459d-aa00-6a8e780175a7' + ) security_group_target_reference_model['id'] = '0717-d54eb633-98ea-459d-aa00-6a8e780175a7' security_group_target_reference_model['name'] = 'my-instance-network-interface' security_group_target_reference_model['resource_type'] = 'network_interface' vpc_reference_model = {} # VPCReference - vpc_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_model['deleted'] = deleted_model - vpc_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_model['id'] = 'r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' vpc_reference_model['name'] = 'my-vpc' vpc_reference_model['resource_type'] = 'vpc' @@ -72057,8 +76066,12 @@ def test_security_group_serialization(self): # Construct a json representation of a SecurityGroup model security_group_model_json = {} security_group_model_json['created_at'] = '2019-01-01T12:00:00Z' - security_group_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::security-group:r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' - security_group_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + security_group_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::security-group:r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + ) + security_group_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + ) security_group_model_json['id'] = 'r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' security_group_model_json['name'] = 'my-security-group' security_group_model_json['resource_group'] = resource_group_reference_model @@ -72098,7 +76111,9 @@ def test_security_group_collection_serialization(self): page_link_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/security_groups?limit=20' resource_group_reference_model = {} # ResourceGroupReference - resource_group_reference_model['href'] = 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + resource_group_reference_model['href'] = ( + 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + ) resource_group_reference_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' resource_group_reference_model['name'] = 'Default' @@ -72110,7 +76125,9 @@ def test_security_group_collection_serialization(self): security_group_rule_model = {} # SecurityGroupRuleSecurityGroupRuleProtocolTCPUDP security_group_rule_model['direction'] = 'inbound' - security_group_rule_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271/rules/r006-b597cff2-38e8-4e6e-999d-000002172691' + security_group_rule_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271/rules/r006-b597cff2-38e8-4e6e-999d-000002172691' + ) security_group_rule_model['id'] = 'r006-b597cff2-38e8-4e6e-999d-000002172691' security_group_rule_model['ip_version'] = 'ipv4' security_group_rule_model['local'] = security_group_rule_local_model @@ -72124,23 +76141,33 @@ def test_security_group_collection_serialization(self): security_group_target_reference_model = {} # SecurityGroupTargetReferenceNetworkInterfaceReferenceTargetContext security_group_target_reference_model['deleted'] = deleted_model - security_group_target_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/network_interfaces/0717-d54eb633-98ea-459d-aa00-6a8e780175a7' + security_group_target_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/network_interfaces/0717-d54eb633-98ea-459d-aa00-6a8e780175a7' + ) security_group_target_reference_model['id'] = '0717-d54eb633-98ea-459d-aa00-6a8e780175a7' security_group_target_reference_model['name'] = 'my-instance-network-interface' security_group_target_reference_model['resource_type'] = 'network_interface' vpc_reference_model = {} # VPCReference - vpc_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_model['deleted'] = deleted_model - vpc_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_model['id'] = 'r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' vpc_reference_model['name'] = 'my-vpc' vpc_reference_model['resource_type'] = 'vpc' security_group_model = {} # SecurityGroup security_group_model['created_at'] = '2024-11-04T17:52:13Z' - security_group_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::security-group:r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' - security_group_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + security_group_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::security-group:r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + ) + security_group_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + ) security_group_model['id'] = 'r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' security_group_model['name'] = 'my-security-group' security_group_model['resource_group'] = resource_group_reference_model @@ -72161,7 +76188,9 @@ def test_security_group_collection_serialization(self): assert security_group_collection_model != False # Construct a model instance of SecurityGroupCollection by calling from_dict on the json representation - security_group_collection_model_dict = SecurityGroupCollection.from_dict(security_group_collection_model_json).__dict__ + security_group_collection_model_dict = SecurityGroupCollection.from_dict( + security_group_collection_model_json + ).__dict__ security_group_collection_model2 = SecurityGroupCollection(**security_group_collection_model_dict) # Verify the model instances are equivalent @@ -72219,9 +76248,13 @@ def test_security_group_reference_serialization(self): # Construct a json representation of a SecurityGroupReference model security_group_reference_model_json = {} - security_group_reference_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::security-group:r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + security_group_reference_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::security-group:r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + ) security_group_reference_model_json['deleted'] = deleted_model - security_group_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + security_group_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + ) security_group_reference_model_json['id'] = 'r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' security_group_reference_model_json['name'] = 'my-security-group' @@ -72230,7 +76263,9 @@ def test_security_group_reference_serialization(self): assert security_group_reference_model != False # Construct a model instance of SecurityGroupReference by calling from_dict on the json representation - security_group_reference_model_dict = SecurityGroupReference.from_dict(security_group_reference_model_json).__dict__ + security_group_reference_model_dict = SecurityGroupReference.from_dict( + security_group_reference_model_json + ).__dict__ security_group_reference_model2 = SecurityGroupReference(**security_group_reference_model_dict) # Verify the model instances are equivalent @@ -72261,7 +76296,9 @@ def test_security_group_rule_collection_serialization(self): security_group_rule_model = {} # SecurityGroupRuleSecurityGroupRuleProtocolTCPUDP security_group_rule_model['direction'] = 'inbound' - security_group_rule_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271/rules/r006-b597cff2-38e8-4e6e-999d-000002172691' + security_group_rule_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271/rules/r006-b597cff2-38e8-4e6e-999d-000002172691' + ) security_group_rule_model['id'] = 'r006-b597cff2-38e8-4e6e-999d-000002172691' security_group_rule_model['ip_version'] = 'ipv4' security_group_rule_model['local'] = security_group_rule_local_model @@ -72275,11 +76312,15 @@ def test_security_group_rule_collection_serialization(self): security_group_rule_collection_model_json['rules'] = [security_group_rule_model] # Construct a model instance of SecurityGroupRuleCollection by calling from_dict on the json representation - security_group_rule_collection_model = SecurityGroupRuleCollection.from_dict(security_group_rule_collection_model_json) + security_group_rule_collection_model = SecurityGroupRuleCollection.from_dict( + security_group_rule_collection_model_json + ) assert security_group_rule_collection_model != False # Construct a model instance of SecurityGroupRuleCollection by calling from_dict on the json representation - security_group_rule_collection_model_dict = SecurityGroupRuleCollection.from_dict(security_group_rule_collection_model_json).__dict__ + security_group_rule_collection_model_dict = SecurityGroupRuleCollection.from_dict( + security_group_rule_collection_model_json + ).__dict__ security_group_rule_collection_model2 = SecurityGroupRuleCollection(**security_group_rule_collection_model_dict) # Verify the model instances are equivalent @@ -72324,7 +76365,9 @@ def test_security_group_rule_patch_serialization(self): assert security_group_rule_patch_model != False # Construct a model instance of SecurityGroupRulePatch by calling from_dict on the json representation - security_group_rule_patch_model_dict = SecurityGroupRulePatch.from_dict(security_group_rule_patch_model_json).__dict__ + security_group_rule_patch_model_dict = SecurityGroupRulePatch.from_dict( + security_group_rule_patch_model_json + ).__dict__ security_group_rule_patch_model2 = SecurityGroupRulePatch(**security_group_rule_patch_model_dict) # Verify the model instances are equivalent @@ -72348,14 +76391,18 @@ def test_security_group_target_collection_serialization(self): # Construct dict forms of any model objects needed in order to build this model. page_link_model = {} # PageLink - page_link_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271/targets?limit=20' + page_link_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271/targets?limit=20' + ) deleted_model = {} # Deleted deleted_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#deleted-resources' security_group_target_reference_model = {} # SecurityGroupTargetReferenceNetworkInterfaceReferenceTargetContext security_group_target_reference_model['deleted'] = deleted_model - security_group_target_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/network_interfaces/0717-d54eb633-98ea-459d-aa00-6a8e780175a7' + security_group_target_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/network_interfaces/0717-d54eb633-98ea-459d-aa00-6a8e780175a7' + ) security_group_target_reference_model['id'] = '0717-d54eb633-98ea-459d-aa00-6a8e780175a7' security_group_target_reference_model['name'] = 'my-instance-network-interface' security_group_target_reference_model['resource_type'] = 'network_interface' @@ -72369,12 +76416,18 @@ def test_security_group_target_collection_serialization(self): security_group_target_collection_model_json['total_count'] = 132 # Construct a model instance of SecurityGroupTargetCollection by calling from_dict on the json representation - security_group_target_collection_model = SecurityGroupTargetCollection.from_dict(security_group_target_collection_model_json) + security_group_target_collection_model = SecurityGroupTargetCollection.from_dict( + security_group_target_collection_model_json + ) assert security_group_target_collection_model != False # Construct a model instance of SecurityGroupTargetCollection by calling from_dict on the json representation - security_group_target_collection_model_dict = SecurityGroupTargetCollection.from_dict(security_group_target_collection_model_json).__dict__ - security_group_target_collection_model2 = SecurityGroupTargetCollection(**security_group_target_collection_model_dict) + security_group_target_collection_model_dict = SecurityGroupTargetCollection.from_dict( + security_group_target_collection_model_json + ).__dict__ + security_group_target_collection_model2 = SecurityGroupTargetCollection( + **security_group_target_collection_model_dict + ) # Verify the model instances are equivalent assert security_group_target_collection_model == security_group_target_collection_model2 @@ -72397,16 +76450,22 @@ def test_share_serialization(self): # Construct dict forms of any model objects needed in order to build this model. share_accessor_binding_reference_model = {} # ShareAccessorBindingReference - share_accessor_binding_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/shares/r006-0fe9e5d8-0a4d-4818-96ec-e99708644a58/accessor_bindings/r134-ae9bdc18-aed0-4392-841c-142d3300674f' + share_accessor_binding_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/shares/r006-0fe9e5d8-0a4d-4818-96ec-e99708644a58/accessor_bindings/r134-ae9bdc18-aed0-4392-841c-142d3300674f' + ) share_accessor_binding_reference_model['id'] = 'r134-ce9dac18-dea0-4392-841c-142d3300674f' share_accessor_binding_reference_model['resource_type'] = 'share_accessor_binding' encryption_key_reference_model = {} # EncryptionKeyReference - encryption_key_reference_model['crn'] = 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + encryption_key_reference_model['crn'] = ( + 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + ) share_job_status_reason_model = {} # ShareJobStatusReason share_job_status_reason_model['code'] = 'cannot_reach_source_share' - share_job_status_reason_model['message'] = 'The replication failover failed because the source share cannot be reached.' + share_job_status_reason_model['message'] = ( + 'The replication failover failed because the source share cannot be reached.' + ) share_job_status_reason_model['more_info'] = 'https://cloud.ibm.com/docs/vpc?topic=vpc-file-storage-planning' share_job_model = {} # ShareJob @@ -72421,7 +76480,9 @@ def test_share_serialization(self): share_lifecycle_reason_model = {} # ShareLifecycleReason share_lifecycle_reason_model['code'] = 'origin_share_access_revoked' - share_lifecycle_reason_model['message'] = 'The resource has been suspended. Contact IBM support with the CRN for next steps.' + share_lifecycle_reason_model['message'] = ( + 'The resource has been suspended. Contact IBM support with the CRN for next steps.' + ) share_lifecycle_reason_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#resource-suspension' deleted_model = {} # Deleted @@ -72429,7 +76490,9 @@ def test_share_serialization(self): share_mount_target_reference_model = {} # ShareMountTargetReference share_mount_target_reference_model['deleted'] = deleted_model - share_mount_target_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/shares/r006-0fe9e5d8-0a4d-4818-96ec-e99708644a58/mount_targets/4cf9171a-0043-4434-8727-15b53dbc374c' + share_mount_target_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/shares/r006-0fe9e5d8-0a4d-4818-96ec-e99708644a58/mount_targets/4cf9171a-0043-4434-8727-15b53dbc374c' + ) share_mount_target_reference_model['id'] = '4cf9171a-0043-4434-8727-15b53dbc374c' share_mount_target_reference_model['name'] = 'my-share-mount-target' share_mount_target_reference_model['resource_type'] = 'share_mount_target' @@ -72447,9 +76510,13 @@ def test_share_serialization(self): share_remote_model['region'] = region_reference_model share_reference_model = {} # ShareReference - share_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::share:r006-0fe9e5d8-0a4d-4818-96ec-e99708644a58' + share_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::share:r006-0fe9e5d8-0a4d-4818-96ec-e99708644a58' + ) share_reference_model['deleted'] = deleted_model - share_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/shares/r006-0fe9e5d8-0a4d-4818-96ec-e99708644a58' + share_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/shares/r006-0fe9e5d8-0a4d-4818-96ec-e99708644a58' + ) share_reference_model['id'] = '0fe9e5d8-0a4d-4818-96ec-e99708644a58' share_reference_model['name'] = 'my-share' share_reference_model['remote'] = share_remote_model @@ -72462,11 +76529,17 @@ def test_share_serialization(self): share_replication_status_reason_model = {} # ShareReplicationStatusReason share_replication_status_reason_model['code'] = 'cannot_reach_source_share' - share_replication_status_reason_model['message'] = 'The replication failover failed because the source share cannot be reached.' - share_replication_status_reason_model['more_info'] = 'https://cloud.ibm.com/docs/vpc?topic=vpc-file-storage-planning' + share_replication_status_reason_model['message'] = ( + 'The replication failover failed because the source share cannot be reached.' + ) + share_replication_status_reason_model['more_info'] = ( + 'https://cloud.ibm.com/docs/vpc?topic=vpc-file-storage-planning' + ) resource_group_reference_model = {} # ResourceGroupReference - resource_group_reference_model['href'] = 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + resource_group_reference_model['href'] = ( + 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + ) resource_group_reference_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' resource_group_reference_model['name'] = 'my-resource-group' @@ -72481,10 +76554,14 @@ def test_share_serialization(self): share_model_json['accessor_bindings'] = [share_accessor_binding_reference_model] share_model_json['allowed_transit_encryption_modes'] = ['none'] share_model_json['created_at'] = '2019-01-01T12:00:00Z' - share_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::share:r006-0fe9e5d8-0a4d-4818-96ec-e99708644a58' + share_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::share:r006-0fe9e5d8-0a4d-4818-96ec-e99708644a58' + ) share_model_json['encryption'] = 'provider_managed' share_model_json['encryption_key'] = encryption_key_reference_model - share_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/shares/r006-0fe9e5d8-0a4d-4818-96ec-e99708644a58' + share_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/shares/r006-0fe9e5d8-0a4d-4818-96ec-e99708644a58' + ) share_model_json['id'] = '0fe9e5d8-0a4d-4818-96ec-e99708644a58' share_model_json['iops'] = 100 share_model_json['latest_job'] = share_job_model @@ -72551,9 +76628,13 @@ def test_share_accessor_binding_serialization(self): share_remote_model['region'] = region_reference_model share_accessor_binding_accessor_model = {} # ShareAccessorBindingAccessorShareReference - share_accessor_binding_accessor_model['crn'] = 'crn:v1:bluemix:public:pm-20:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:6500f05d-a5b5-4ecf-91ba-0d12b9dee607::' + share_accessor_binding_accessor_model['crn'] = ( + 'crn:v1:bluemix:public:pm-20:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:6500f05d-a5b5-4ecf-91ba-0d12b9dee607::' + ) share_accessor_binding_accessor_model['deleted'] = deleted_model - share_accessor_binding_accessor_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/shares/r006-0fe9e5d8-0a4d-4818-96ec-e99708644a58' + share_accessor_binding_accessor_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/shares/r006-0fe9e5d8-0a4d-4818-96ec-e99708644a58' + ) share_accessor_binding_accessor_model['id'] = '0fe9e5d8-0a4d-4818-96ec-e99708644a58' share_accessor_binding_accessor_model['name'] = 'my-share' share_accessor_binding_accessor_model['remote'] = share_remote_model @@ -72563,7 +76644,9 @@ def test_share_accessor_binding_serialization(self): share_accessor_binding_model_json = {} share_accessor_binding_model_json['accessor'] = share_accessor_binding_accessor_model share_accessor_binding_model_json['created_at'] = '2019-01-01T12:00:00Z' - share_accessor_binding_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/shares/r006-0fe9e5d8-0a4d-4818-96ec-e99708644a58/accessor_bindings/r134-ae9bdc18-aed0-4392-841c-142d3300674f' + share_accessor_binding_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/shares/r006-0fe9e5d8-0a4d-4818-96ec-e99708644a58/accessor_bindings/r134-ae9bdc18-aed0-4392-841c-142d3300674f' + ) share_accessor_binding_model_json['id'] = 'r134-ce9dac18-dea0-4392-841c-142d3300674f' share_accessor_binding_model_json['lifecycle_state'] = 'stable' share_accessor_binding_model_json['resource_type'] = 'share_accessor_binding' @@ -72612,9 +76695,13 @@ def test_share_accessor_binding_collection_serialization(self): share_remote_model['region'] = region_reference_model share_accessor_binding_accessor_model = {} # ShareAccessorBindingAccessorShareReference - share_accessor_binding_accessor_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::share:r006-0fe9e5d8-0a4d-4818-96ec-e99708644a58' + share_accessor_binding_accessor_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::share:r006-0fe9e5d8-0a4d-4818-96ec-e99708644a58' + ) share_accessor_binding_accessor_model['deleted'] = deleted_model - share_accessor_binding_accessor_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/shares/r006-0fe9e5d8-0a4d-4818-96ec-e99708644a58' + share_accessor_binding_accessor_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/shares/r006-0fe9e5d8-0a4d-4818-96ec-e99708644a58' + ) share_accessor_binding_accessor_model['id'] = '0fe9e5d8-0a4d-4818-96ec-e99708644a58' share_accessor_binding_accessor_model['name'] = 'my-share' share_accessor_binding_accessor_model['remote'] = share_remote_model @@ -72623,13 +76710,17 @@ def test_share_accessor_binding_collection_serialization(self): share_accessor_binding_model = {} # ShareAccessorBinding share_accessor_binding_model['accessor'] = share_accessor_binding_accessor_model share_accessor_binding_model['created_at'] = '2019-01-01T12:00:00Z' - share_accessor_binding_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/shares/r006-0fe9e5d8-0a4d-4818-96ec-e99708644a58/accessor_bindings/r134-ae9bdc18-aed0-4392-841c-142d3300674f' + share_accessor_binding_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/shares/r006-0fe9e5d8-0a4d-4818-96ec-e99708644a58/accessor_bindings/r134-ae9bdc18-aed0-4392-841c-142d3300674f' + ) share_accessor_binding_model['id'] = 'r134-ce9dac18-dea0-4392-841c-142d3300674f' share_accessor_binding_model['lifecycle_state'] = 'stable' share_accessor_binding_model['resource_type'] = 'share_accessor_binding' page_link_model = {} # PageLink - page_link_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/shares/r006-0fe9e5d8-0a4d-4818-96ec-e99708644a58/accessor_bindings?limit=20' + page_link_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/shares/r006-0fe9e5d8-0a4d-4818-96ec-e99708644a58/accessor_bindings?limit=20' + ) # Construct a json representation of a ShareAccessorBindingCollection model share_accessor_binding_collection_model_json = {} @@ -72640,12 +76731,18 @@ def test_share_accessor_binding_collection_serialization(self): share_accessor_binding_collection_model_json['total_count'] = 132 # Construct a model instance of ShareAccessorBindingCollection by calling from_dict on the json representation - share_accessor_binding_collection_model = ShareAccessorBindingCollection.from_dict(share_accessor_binding_collection_model_json) + share_accessor_binding_collection_model = ShareAccessorBindingCollection.from_dict( + share_accessor_binding_collection_model_json + ) assert share_accessor_binding_collection_model != False # Construct a model instance of ShareAccessorBindingCollection by calling from_dict on the json representation - share_accessor_binding_collection_model_dict = ShareAccessorBindingCollection.from_dict(share_accessor_binding_collection_model_json).__dict__ - share_accessor_binding_collection_model2 = ShareAccessorBindingCollection(**share_accessor_binding_collection_model_dict) + share_accessor_binding_collection_model_dict = ShareAccessorBindingCollection.from_dict( + share_accessor_binding_collection_model_json + ).__dict__ + share_accessor_binding_collection_model2 = ShareAccessorBindingCollection( + **share_accessor_binding_collection_model_dict + ) # Verify the model instances are equivalent assert share_accessor_binding_collection_model == share_accessor_binding_collection_model2 @@ -72667,17 +76764,25 @@ def test_share_accessor_binding_reference_serialization(self): # Construct a json representation of a ShareAccessorBindingReference model share_accessor_binding_reference_model_json = {} - share_accessor_binding_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/shares/r006-0fe9e5d8-0a4d-4818-96ec-e99708644a58/accessor_bindings/r134-ae9bdc18-aed0-4392-841c-142d3300674f' + share_accessor_binding_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/shares/r006-0fe9e5d8-0a4d-4818-96ec-e99708644a58/accessor_bindings/r134-ae9bdc18-aed0-4392-841c-142d3300674f' + ) share_accessor_binding_reference_model_json['id'] = 'r134-ce9dac18-dea0-4392-841c-142d3300674f' share_accessor_binding_reference_model_json['resource_type'] = 'share_accessor_binding' # Construct a model instance of ShareAccessorBindingReference by calling from_dict on the json representation - share_accessor_binding_reference_model = ShareAccessorBindingReference.from_dict(share_accessor_binding_reference_model_json) + share_accessor_binding_reference_model = ShareAccessorBindingReference.from_dict( + share_accessor_binding_reference_model_json + ) assert share_accessor_binding_reference_model != False # Construct a model instance of ShareAccessorBindingReference by calling from_dict on the json representation - share_accessor_binding_reference_model_dict = ShareAccessorBindingReference.from_dict(share_accessor_binding_reference_model_json).__dict__ - share_accessor_binding_reference_model2 = ShareAccessorBindingReference(**share_accessor_binding_reference_model_dict) + share_accessor_binding_reference_model_dict = ShareAccessorBindingReference.from_dict( + share_accessor_binding_reference_model_json + ).__dict__ + share_accessor_binding_reference_model2 = ShareAccessorBindingReference( + **share_accessor_binding_reference_model_dict + ) # Verify the model instances are equivalent assert share_accessor_binding_reference_model == share_accessor_binding_reference_model2 @@ -72703,16 +76808,22 @@ def test_share_collection_serialization(self): page_link_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/shares?limit=20' share_accessor_binding_reference_model = {} # ShareAccessorBindingReference - share_accessor_binding_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/shares/r006-0fe9e5d8-0a4d-4818-96ec-e99708644a58/accessor_bindings/r134-ae9bdc18-aed0-4392-841c-142d3300674f' + share_accessor_binding_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/shares/r006-0fe9e5d8-0a4d-4818-96ec-e99708644a58/accessor_bindings/r134-ae9bdc18-aed0-4392-841c-142d3300674f' + ) share_accessor_binding_reference_model['id'] = 'r134-ce9dac18-dea0-4392-841c-142d3300674f' share_accessor_binding_reference_model['resource_type'] = 'share_accessor_binding' encryption_key_reference_model = {} # EncryptionKeyReference - encryption_key_reference_model['crn'] = 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + encryption_key_reference_model['crn'] = ( + 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + ) share_job_status_reason_model = {} # ShareJobStatusReason share_job_status_reason_model['code'] = 'cannot_reach_source_share' - share_job_status_reason_model['message'] = 'The replication failover failed because the source share cannot be reached.' + share_job_status_reason_model['message'] = ( + 'The replication failover failed because the source share cannot be reached.' + ) share_job_status_reason_model['more_info'] = 'https://cloud.ibm.com/docs/vpc?topic=vpc-file-storage-planning' share_job_model = {} # ShareJob @@ -72727,7 +76838,9 @@ def test_share_collection_serialization(self): share_lifecycle_reason_model = {} # ShareLifecycleReason share_lifecycle_reason_model['code'] = 'origin_share_access_revoked' - share_lifecycle_reason_model['message'] = 'The resource has been suspended. Contact IBM support with the CRN for next steps.' + share_lifecycle_reason_model['message'] = ( + 'The resource has been suspended. Contact IBM support with the CRN for next steps.' + ) share_lifecycle_reason_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#resource-suspension' deleted_model = {} # Deleted @@ -72735,7 +76848,9 @@ def test_share_collection_serialization(self): share_mount_target_reference_model = {} # ShareMountTargetReference share_mount_target_reference_model['deleted'] = deleted_model - share_mount_target_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/shares/r006-0fe9e5d8-0a4d-4818-96ec-e99708644a58/mount_targets/4cf9171a-0043-4434-8727-15b53dbc374c' + share_mount_target_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/shares/r006-0fe9e5d8-0a4d-4818-96ec-e99708644a58/mount_targets/4cf9171a-0043-4434-8727-15b53dbc374c' + ) share_mount_target_reference_model['id'] = '4cf9171a-0043-4434-8727-15b53dbc374c' share_mount_target_reference_model['name'] = 'my-share-mount-target' share_mount_target_reference_model['resource_type'] = 'share_mount_target' @@ -72753,9 +76868,13 @@ def test_share_collection_serialization(self): share_remote_model['region'] = region_reference_model share_reference_model = {} # ShareReference - share_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::share:r006-0fe9e5d8-0a4d-4818-96ec-e99708644a58' + share_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::share:r006-0fe9e5d8-0a4d-4818-96ec-e99708644a58' + ) share_reference_model['deleted'] = deleted_model - share_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/shares/r006-0fe9e5d8-0a4d-4818-96ec-e99708644a58' + share_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/shares/r006-0fe9e5d8-0a4d-4818-96ec-e99708644a58' + ) share_reference_model['id'] = '0fe9e5d8-0a4d-4818-96ec-e99708644a58' share_reference_model['name'] = 'my-share' share_reference_model['remote'] = share_remote_model @@ -72768,11 +76887,17 @@ def test_share_collection_serialization(self): share_replication_status_reason_model = {} # ShareReplicationStatusReason share_replication_status_reason_model['code'] = 'cannot_reach_source_share' - share_replication_status_reason_model['message'] = 'The replication failover failed because the source share cannot be reached.' - share_replication_status_reason_model['more_info'] = 'https://cloud.ibm.com/docs/vpc?topic=vpc-file-storage-planning' + share_replication_status_reason_model['message'] = ( + 'The replication failover failed because the source share cannot be reached.' + ) + share_replication_status_reason_model['more_info'] = ( + 'https://cloud.ibm.com/docs/vpc?topic=vpc-file-storage-planning' + ) resource_group_reference_model = {} # ResourceGroupReference - resource_group_reference_model['href'] = 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + resource_group_reference_model['href'] = ( + 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + ) resource_group_reference_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' resource_group_reference_model['name'] = 'my-resource-group' @@ -72786,7 +76911,9 @@ def test_share_collection_serialization(self): share_model['accessor_bindings'] = [share_accessor_binding_reference_model] share_model['allowed_transit_encryption_modes'] = ['none'] share_model['created_at'] = '2019-01-01T12:00:00Z' - share_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::share:r006-0fe9e5d8-0a4d-4818-96ec-e99708644a58' + share_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::share:r006-0fe9e5d8-0a4d-4818-96ec-e99708644a58' + ) share_model['encryption'] = 'provider_managed' share_model['encryption_key'] = encryption_key_reference_model share_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/shares/r006-0fe9e5d8-0a4d-4818-96ec-e99708644a58' @@ -72881,7 +77008,9 @@ def test_share_job_serialization(self): share_job_status_reason_model = {} # ShareJobStatusReason share_job_status_reason_model['code'] = 'cannot_reach_source_share' - share_job_status_reason_model['message'] = 'The replication failover failed because the source share cannot be reached.' + share_job_status_reason_model['message'] = ( + 'The replication failover failed because the source share cannot be reached.' + ) share_job_status_reason_model['more_info'] = 'https://cloud.ibm.com/docs/vpc?topic=vpc-file-storage-planning' # Construct a json representation of a ShareJob model @@ -72919,8 +77048,12 @@ def test_share_job_status_reason_serialization(self): # Construct a json representation of a ShareJobStatusReason model share_job_status_reason_model_json = {} share_job_status_reason_model_json['code'] = 'cannot_reach_source_share' - share_job_status_reason_model_json['message'] = 'The replication failover failed because the source share cannot be reached.' - share_job_status_reason_model_json['more_info'] = 'https://cloud.ibm.com/docs/vpc?topic=vpc-file-storage-planning' + share_job_status_reason_model_json['message'] = ( + 'The replication failover failed because the source share cannot be reached.' + ) + share_job_status_reason_model_json['more_info'] = ( + 'https://cloud.ibm.com/docs/vpc?topic=vpc-file-storage-planning' + ) # Construct a model instance of ShareJobStatusReason by calling from_dict on the json representation share_job_status_reason_model = ShareJobStatusReason.from_dict(share_job_status_reason_model_json) @@ -72983,7 +77116,9 @@ def test_share_lifecycle_reason_serialization(self): # Construct a json representation of a ShareLifecycleReason model share_lifecycle_reason_model_json = {} share_lifecycle_reason_model_json['code'] = 'origin_share_access_revoked' - share_lifecycle_reason_model_json['message'] = 'The resource has been suspended. Contact IBM support with the CRN for next steps.' + share_lifecycle_reason_model_json['message'] = ( + 'The resource has been suspended. Contact IBM support with the CRN for next steps.' + ) share_lifecycle_reason_model_json['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#resource-suspension' # Construct a model instance of ShareLifecycleReason by calling from_dict on the json representation @@ -73020,30 +77155,46 @@ def test_share_mount_target_serialization(self): reserved_ip_reference_model = {} # ReservedIPReference reserved_ip_reference_model['address'] = '192.168.3.4' reserved_ip_reference_model['deleted'] = deleted_model - reserved_ip_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-bea6a632-5e13-42a4-b4b8-31dc877abfe4/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + reserved_ip_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-bea6a632-5e13-42a4-b4b8-31dc877abfe4/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + ) reserved_ip_reference_model['id'] = '0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' reserved_ip_reference_model['name'] = 'my-reserved-ip' reserved_ip_reference_model['resource_type'] = 'subnet_reserved_ip' subnet_reference_model = {} # SubnetReference - subnet_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['deleted'] = deleted_model - subnet_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['id'] = '0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' subnet_reference_model['name'] = 'my-subnet' subnet_reference_model['resource_type'] = 'subnet' - virtual_network_interface_reference_attachment_context_model = {} # VirtualNetworkInterfaceReferenceAttachmentContext - virtual_network_interface_reference_attachment_context_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::virtual-network-interface:0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' - virtual_network_interface_reference_attachment_context_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/virtual_network_interfaces/0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + virtual_network_interface_reference_attachment_context_model = ( + {} + ) # VirtualNetworkInterfaceReferenceAttachmentContext + virtual_network_interface_reference_attachment_context_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::virtual-network-interface:0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + ) + virtual_network_interface_reference_attachment_context_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/virtual_network_interfaces/0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + ) virtual_network_interface_reference_attachment_context_model['id'] = '0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' virtual_network_interface_reference_attachment_context_model['name'] = 'my-virtual-network-interface' virtual_network_interface_reference_attachment_context_model['resource_type'] = 'virtual_network_interface' vpc_reference_model = {} # VPCReference - vpc_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_model['deleted'] = deleted_model - vpc_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_model['id'] = 'r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' vpc_reference_model['name'] = 'my-vpc' vpc_reference_model['resource_type'] = 'vpc' @@ -73052,16 +77203,22 @@ def test_share_mount_target_serialization(self): share_mount_target_model_json = {} share_mount_target_model_json['access_control_mode'] = 'security_group' share_mount_target_model_json['created_at'] = '2019-01-01T12:00:00Z' - share_mount_target_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/shares/r006-0fe9e5d8-0a4d-4818-96ec-e99708644a58/mount_targets/4cf9171a-0043-4434-8727-15b53dbc374c' + share_mount_target_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/shares/r006-0fe9e5d8-0a4d-4818-96ec-e99708644a58/mount_targets/4cf9171a-0043-4434-8727-15b53dbc374c' + ) share_mount_target_model_json['id'] = '4cf9171a-0043-4434-8727-15b53dbc374c' share_mount_target_model_json['lifecycle_state'] = 'stable' - share_mount_target_model_json['mount_path'] = '10.240.1.23:/nxg_s_voll_mz7121_58e7e963_8f4b_4a0c_b71a_8ba8d9cd1e2e' + share_mount_target_model_json['mount_path'] = ( + '10.240.1.23:/nxg_s_voll_mz7121_58e7e963_8f4b_4a0c_b71a_8ba8d9cd1e2e' + ) share_mount_target_model_json['name'] = 'my-share-mount-target' share_mount_target_model_json['primary_ip'] = reserved_ip_reference_model share_mount_target_model_json['resource_type'] = 'share_mount_target' share_mount_target_model_json['subnet'] = subnet_reference_model share_mount_target_model_json['transit_encryption'] = 'none' - share_mount_target_model_json['virtual_network_interface'] = virtual_network_interface_reference_attachment_context_model + share_mount_target_model_json['virtual_network_interface'] = ( + virtual_network_interface_reference_attachment_context_model + ) share_mount_target_model_json['vpc'] = vpc_reference_model # Construct a model instance of ShareMountTarget by calling from_dict on the json representation @@ -73093,7 +77250,9 @@ def test_share_mount_target_collection_serialization(self): # Construct dict forms of any model objects needed in order to build this model. page_link_model = {} # PageLink - page_link_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/shares/r006-0fe9e5d8-0a4d-4818-96ec-e99708644a58/mount_targets?limit=20' + page_link_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/shares/r006-0fe9e5d8-0a4d-4818-96ec-e99708644a58/mount_targets?limit=20' + ) deleted_model = {} # Deleted deleted_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#deleted-resources' @@ -73101,30 +77260,46 @@ def test_share_mount_target_collection_serialization(self): reserved_ip_reference_model = {} # ReservedIPReference reserved_ip_reference_model['address'] = '192.168.3.4' reserved_ip_reference_model['deleted'] = deleted_model - reserved_ip_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-bea6a632-5e13-42a4-b4b8-31dc877abfe4/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + reserved_ip_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-bea6a632-5e13-42a4-b4b8-31dc877abfe4/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + ) reserved_ip_reference_model['id'] = '0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' reserved_ip_reference_model['name'] = 'my-reserved-ip' reserved_ip_reference_model['resource_type'] = 'subnet_reserved_ip' subnet_reference_model = {} # SubnetReference - subnet_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['deleted'] = deleted_model - subnet_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['id'] = '0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' subnet_reference_model['name'] = 'my-subnet' subnet_reference_model['resource_type'] = 'subnet' - virtual_network_interface_reference_attachment_context_model = {} # VirtualNetworkInterfaceReferenceAttachmentContext - virtual_network_interface_reference_attachment_context_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::virtual-network-interface:0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' - virtual_network_interface_reference_attachment_context_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/virtual_network_interfaces/0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + virtual_network_interface_reference_attachment_context_model = ( + {} + ) # VirtualNetworkInterfaceReferenceAttachmentContext + virtual_network_interface_reference_attachment_context_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::virtual-network-interface:0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + ) + virtual_network_interface_reference_attachment_context_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/virtual_network_interfaces/0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + ) virtual_network_interface_reference_attachment_context_model['id'] = '0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' virtual_network_interface_reference_attachment_context_model['name'] = 'my-virtual-network-interface' virtual_network_interface_reference_attachment_context_model['resource_type'] = 'virtual_network_interface' vpc_reference_model = {} # VPCReference - vpc_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_model['deleted'] = deleted_model - vpc_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_model['id'] = 'r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' vpc_reference_model['name'] = 'my-vpc' vpc_reference_model['resource_type'] = 'vpc' @@ -73132,7 +77307,9 @@ def test_share_mount_target_collection_serialization(self): share_mount_target_model = {} # ShareMountTarget share_mount_target_model['access_control_mode'] = 'security_group' share_mount_target_model['created_at'] = '2019-01-01T12:00:00Z' - share_mount_target_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/shares/r006-0fe9e5d8-0a4d-4818-96ec-e99708644a58/mount_targets/4cf9171a-0043-4434-8727-15b53dbc374c' + share_mount_target_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/shares/r006-0fe9e5d8-0a4d-4818-96ec-e99708644a58/mount_targets/4cf9171a-0043-4434-8727-15b53dbc374c' + ) share_mount_target_model['id'] = '4cf9171a-0043-4434-8727-15b53dbc374c' share_mount_target_model['lifecycle_state'] = 'stable' share_mount_target_model['mount_path'] = '10.240.1.23:/nxg_s_voll_mz7121_58e7e963_8f4b_4a0c_b71a_8ba8d9cd1e2e' @@ -73141,7 +77318,9 @@ def test_share_mount_target_collection_serialization(self): share_mount_target_model['resource_type'] = 'share_mount_target' share_mount_target_model['subnet'] = subnet_reference_model share_mount_target_model['transit_encryption'] = 'none' - share_mount_target_model['virtual_network_interface'] = virtual_network_interface_reference_attachment_context_model + share_mount_target_model['virtual_network_interface'] = ( + virtual_network_interface_reference_attachment_context_model + ) share_mount_target_model['vpc'] = vpc_reference_model # Construct a json representation of a ShareMountTargetCollection model @@ -73153,11 +77332,15 @@ def test_share_mount_target_collection_serialization(self): share_mount_target_collection_model_json['total_count'] = 132 # Construct a model instance of ShareMountTargetCollection by calling from_dict on the json representation - share_mount_target_collection_model = ShareMountTargetCollection.from_dict(share_mount_target_collection_model_json) + share_mount_target_collection_model = ShareMountTargetCollection.from_dict( + share_mount_target_collection_model_json + ) assert share_mount_target_collection_model != False # Construct a model instance of ShareMountTargetCollection by calling from_dict on the json representation - share_mount_target_collection_model_dict = ShareMountTargetCollection.from_dict(share_mount_target_collection_model_json).__dict__ + share_mount_target_collection_model_dict = ShareMountTargetCollection.from_dict( + share_mount_target_collection_model_json + ).__dict__ share_mount_target_collection_model2 = ShareMountTargetCollection(**share_mount_target_collection_model_dict) # Verify the model instances are equivalent @@ -73187,7 +77370,9 @@ def test_share_mount_target_patch_serialization(self): assert share_mount_target_patch_model != False # Construct a model instance of ShareMountTargetPatch by calling from_dict on the json representation - share_mount_target_patch_model_dict = ShareMountTargetPatch.from_dict(share_mount_target_patch_model_json).__dict__ + share_mount_target_patch_model_dict = ShareMountTargetPatch.from_dict( + share_mount_target_patch_model_json + ).__dict__ share_mount_target_patch_model2 = ShareMountTargetPatch(**share_mount_target_patch_model_dict) # Verify the model instances are equivalent @@ -73216,17 +77401,23 @@ def test_share_mount_target_reference_serialization(self): # Construct a json representation of a ShareMountTargetReference model share_mount_target_reference_model_json = {} share_mount_target_reference_model_json['deleted'] = deleted_model - share_mount_target_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/shares/r006-0fe9e5d8-0a4d-4818-96ec-e99708644a58/mount_targets/4cf9171a-0043-4434-8727-15b53dbc374c' + share_mount_target_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/shares/r006-0fe9e5d8-0a4d-4818-96ec-e99708644a58/mount_targets/4cf9171a-0043-4434-8727-15b53dbc374c' + ) share_mount_target_reference_model_json['id'] = '4cf9171a-0043-4434-8727-15b53dbc374c' share_mount_target_reference_model_json['name'] = 'my-share-mount-target' share_mount_target_reference_model_json['resource_type'] = 'share_mount_target' # Construct a model instance of ShareMountTargetReference by calling from_dict on the json representation - share_mount_target_reference_model = ShareMountTargetReference.from_dict(share_mount_target_reference_model_json) + share_mount_target_reference_model = ShareMountTargetReference.from_dict( + share_mount_target_reference_model_json + ) assert share_mount_target_reference_model != False # Construct a model instance of ShareMountTargetReference by calling from_dict on the json representation - share_mount_target_reference_model_dict = ShareMountTargetReference.from_dict(share_mount_target_reference_model_json).__dict__ + share_mount_target_reference_model_dict = ShareMountTargetReference.from_dict( + share_mount_target_reference_model_json + ).__dict__ share_mount_target_reference_model2 = ShareMountTargetReference(**share_mount_target_reference_model_dict) # Verify the model instances are equivalent @@ -73368,7 +77559,9 @@ def test_share_profile_collection_serialization(self): assert share_profile_collection_model != False # Construct a model instance of ShareProfileCollection by calling from_dict on the json representation - share_profile_collection_model_dict = ShareProfileCollection.from_dict(share_profile_collection_model_json).__dict__ + share_profile_collection_model_dict = ShareProfileCollection.from_dict( + share_profile_collection_model_json + ).__dict__ share_profile_collection_model2 = ShareProfileCollection(**share_profile_collection_model_dict) # Verify the model instances are equivalent @@ -73400,7 +77593,9 @@ def test_share_profile_reference_serialization(self): assert share_profile_reference_model != False # Construct a model instance of ShareProfileReference by calling from_dict on the json representation - share_profile_reference_model_dict = ShareProfileReference.from_dict(share_profile_reference_model_json).__dict__ + share_profile_reference_model_dict = ShareProfileReference.from_dict( + share_profile_reference_model_json + ).__dict__ share_profile_reference_model2 = ShareProfileReference(**share_profile_reference_model_dict) # Verify the model instances are equivalent @@ -73423,12 +77618,16 @@ def test_share_prototype_share_context_serialization(self): # Construct dict forms of any model objects needed in order to build this model. - virtual_network_interface_ip_prototype_model = {} # VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext + virtual_network_interface_ip_prototype_model = ( + {} + ) # VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext virtual_network_interface_ip_prototype_model['address'] = '10.0.0.5' virtual_network_interface_ip_prototype_model['auto_delete'] = False virtual_network_interface_ip_prototype_model['name'] = 'my-reserved-ip' - virtual_network_interface_primary_ip_prototype_model = {} # VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext + virtual_network_interface_primary_ip_prototype_model = ( + {} + ) # VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext virtual_network_interface_primary_ip_prototype_model['address'] = '10.0.0.5' virtual_network_interface_primary_ip_prototype_model['auto_delete'] = False virtual_network_interface_primary_ip_prototype_model['name'] = 'my-reserved-ip' @@ -73442,22 +77641,34 @@ def test_share_prototype_share_context_serialization(self): subnet_identity_model = {} # SubnetIdentityById subnet_identity_model['id'] = '7ec86020-1c6e-4889-b3f0-a15f2e50f87e' - share_mount_target_virtual_network_interface_prototype_model = {} # ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfacePrototypeShareMountTargetContext + share_mount_target_virtual_network_interface_prototype_model = ( + {} + ) # ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfacePrototypeShareMountTargetContext share_mount_target_virtual_network_interface_prototype_model['allow_ip_spoofing'] = True share_mount_target_virtual_network_interface_prototype_model['auto_delete'] = False share_mount_target_virtual_network_interface_prototype_model['enable_infrastructure_nat'] = True - share_mount_target_virtual_network_interface_prototype_model['ips'] = [virtual_network_interface_ip_prototype_model] + share_mount_target_virtual_network_interface_prototype_model['ips'] = [ + virtual_network_interface_ip_prototype_model + ] share_mount_target_virtual_network_interface_prototype_model['name'] = 'my-virtual-network-interface' - share_mount_target_virtual_network_interface_prototype_model['primary_ip'] = virtual_network_interface_primary_ip_prototype_model + share_mount_target_virtual_network_interface_prototype_model['primary_ip'] = ( + virtual_network_interface_primary_ip_prototype_model + ) share_mount_target_virtual_network_interface_prototype_model['protocol_state_filtering_mode'] = 'auto' share_mount_target_virtual_network_interface_prototype_model['resource_group'] = resource_group_identity_model - share_mount_target_virtual_network_interface_prototype_model['security_groups'] = [security_group_identity_model] + share_mount_target_virtual_network_interface_prototype_model['security_groups'] = [ + security_group_identity_model + ] share_mount_target_virtual_network_interface_prototype_model['subnet'] = subnet_identity_model - share_mount_target_prototype_model = {} # ShareMountTargetPrototypeShareMountTargetByAccessControlModeSecurityGroup + share_mount_target_prototype_model = ( + {} + ) # ShareMountTargetPrototypeShareMountTargetByAccessControlModeSecurityGroup share_mount_target_prototype_model['name'] = 'my-share-mount-target' share_mount_target_prototype_model['transit_encryption'] = 'none' - share_mount_target_prototype_model['virtual_network_interface'] = share_mount_target_virtual_network_interface_prototype_model + share_mount_target_prototype_model['virtual_network_interface'] = ( + share_mount_target_virtual_network_interface_prototype_model + ) share_profile_identity_model = {} # ShareProfileIdentityByName share_profile_identity_model['name'] = 'tier-3iops' @@ -73478,11 +77689,15 @@ def test_share_prototype_share_context_serialization(self): share_prototype_share_context_model_json['zone'] = zone_identity_model # Construct a model instance of SharePrototypeShareContext by calling from_dict on the json representation - share_prototype_share_context_model = SharePrototypeShareContext.from_dict(share_prototype_share_context_model_json) + share_prototype_share_context_model = SharePrototypeShareContext.from_dict( + share_prototype_share_context_model_json + ) assert share_prototype_share_context_model != False # Construct a model instance of SharePrototypeShareContext by calling from_dict on the json representation - share_prototype_share_context_model_dict = SharePrototypeShareContext.from_dict(share_prototype_share_context_model_json).__dict__ + share_prototype_share_context_model_dict = SharePrototypeShareContext.from_dict( + share_prototype_share_context_model_json + ).__dict__ share_prototype_share_context_model2 = SharePrototypeShareContext(**share_prototype_share_context_model_dict) # Verify the model instances are equivalent @@ -73522,9 +77737,13 @@ def test_share_reference_serialization(self): # Construct a json representation of a ShareReference model share_reference_model_json = {} - share_reference_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::share:r006-0fe9e5d8-0a4d-4818-96ec-e99708644a58' + share_reference_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::share:r006-0fe9e5d8-0a4d-4818-96ec-e99708644a58' + ) share_reference_model_json['deleted'] = deleted_model - share_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/shares/r006-0fe9e5d8-0a4d-4818-96ec-e99708644a58' + share_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/shares/r006-0fe9e5d8-0a4d-4818-96ec-e99708644a58' + ) share_reference_model_json['id'] = '0fe9e5d8-0a4d-4818-96ec-e99708644a58' share_reference_model_json['name'] = 'my-share' share_reference_model_json['remote'] = share_remote_model @@ -73600,16 +77819,26 @@ def test_share_replication_status_reason_serialization(self): # Construct a json representation of a ShareReplicationStatusReason model share_replication_status_reason_model_json = {} share_replication_status_reason_model_json['code'] = 'cannot_reach_source_share' - share_replication_status_reason_model_json['message'] = 'The replication failover failed because the source share cannot be reached.' - share_replication_status_reason_model_json['more_info'] = 'https://cloud.ibm.com/docs/vpc?topic=vpc-file-storage-planning' + share_replication_status_reason_model_json['message'] = ( + 'The replication failover failed because the source share cannot be reached.' + ) + share_replication_status_reason_model_json['more_info'] = ( + 'https://cloud.ibm.com/docs/vpc?topic=vpc-file-storage-planning' + ) # Construct a model instance of ShareReplicationStatusReason by calling from_dict on the json representation - share_replication_status_reason_model = ShareReplicationStatusReason.from_dict(share_replication_status_reason_model_json) + share_replication_status_reason_model = ShareReplicationStatusReason.from_dict( + share_replication_status_reason_model_json + ) assert share_replication_status_reason_model != False # Construct a model instance of ShareReplicationStatusReason by calling from_dict on the json representation - share_replication_status_reason_model_dict = ShareReplicationStatusReason.from_dict(share_replication_status_reason_model_json).__dict__ - share_replication_status_reason_model2 = ShareReplicationStatusReason(**share_replication_status_reason_model_dict) + share_replication_status_reason_model_dict = ShareReplicationStatusReason.from_dict( + share_replication_status_reason_model_json + ).__dict__ + share_replication_status_reason_model2 = ShareReplicationStatusReason( + **share_replication_status_reason_model_dict + ) # Verify the model instances are equivalent assert share_replication_status_reason_model == share_replication_status_reason_model2 @@ -73643,18 +77872,24 @@ def test_snapshot_serialization(self): backup_policy_plan_reference_model = {} # BackupPolicyPlanReference backup_policy_plan_reference_model['deleted'] = deleted_model - backup_policy_plan_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/backup_policies/r134-076191ba-49c2-4763-94fd-c70de73ee2e6/plans/r134-6da51cfe-6f7b-4638-a6ba-00e9c327b178' + backup_policy_plan_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/backup_policies/r134-076191ba-49c2-4763-94fd-c70de73ee2e6/plans/r134-6da51cfe-6f7b-4638-a6ba-00e9c327b178' + ) backup_policy_plan_reference_model['id'] = 'r134-6da51cfe-6f7b-4638-a6ba-00e9c327b178' backup_policy_plan_reference_model['name'] = 'my-policy-plan' backup_policy_plan_reference_model['remote'] = backup_policy_plan_remote_model backup_policy_plan_reference_model['resource_type'] = 'backup_policy_plan' catalog_offering_version_plan_reference_model = {} # CatalogOfferingVersionPlanReference - catalog_offering_version_plan_reference_model['crn'] = 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:51c9e0db-2911-45a6-adb0-ac5332d27cf2:plan:sw.51c9e0db-2911-45a6-adb0-ac5332d27cf2.772c0dbe-aa62-482e-adbe-a3fc20101e0e' + catalog_offering_version_plan_reference_model['crn'] = ( + 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:51c9e0db-2911-45a6-adb0-ac5332d27cf2:plan:sw.51c9e0db-2911-45a6-adb0-ac5332d27cf2.772c0dbe-aa62-482e-adbe-a3fc20101e0e' + ) catalog_offering_version_plan_reference_model['deleted'] = deleted_model catalog_offering_version_reference_model = {} # CatalogOfferingVersionReference - catalog_offering_version_reference_model['crn'] = 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:version:00111601-0ec5-41ac-b142-96d1e64e6442/ec66bec2-6a33-42d6-9323-26dd4dc8875d' + catalog_offering_version_reference_model['crn'] = ( + 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:version:00111601-0ec5-41ac-b142-96d1e64e6442/ec66bec2-6a33-42d6-9323-26dd4dc8875d' + ) snapshot_catalog_offering_model = {} # SnapshotCatalogOffering snapshot_catalog_offering_model['plan'] = catalog_offering_version_plan_reference_model @@ -73678,16 +77913,22 @@ def test_snapshot_serialization(self): snapshot_remote_model['region'] = region_reference_model snapshot_copies_item_model = {} # SnapshotCopiesItem - snapshot_copies_item_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::snapshot:r134-f6bfa329-0e36-433f-a3bb-0df632e79263' + snapshot_copies_item_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::snapshot:r134-f6bfa329-0e36-433f-a3bb-0df632e79263' + ) snapshot_copies_item_model['deleted'] = deleted_model - snapshot_copies_item_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/snapshots/r134-f6bfa329-0e36-433f-a3bb-0df632e79263' + snapshot_copies_item_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/snapshots/r134-f6bfa329-0e36-433f-a3bb-0df632e79263' + ) snapshot_copies_item_model['id'] = 'r134-f6bfa329-0e36-433f-a3bb-0df632e79263' snapshot_copies_item_model['name'] = 'my-snapshot' snapshot_copies_item_model['remote'] = snapshot_remote_model snapshot_copies_item_model['resource_type'] = 'snapshot' encryption_key_reference_model = {} # EncryptionKeyReference - encryption_key_reference_model['crn'] = 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + encryption_key_reference_model['crn'] = ( + 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + ) operating_system_model = {} # OperatingSystem operating_system_model['allow_user_image_creation'] = True @@ -73702,14 +77943,20 @@ def test_snapshot_serialization(self): operating_system_model['version'] = '16.04 LTS' resource_group_reference_model = {} # ResourceGroupReference - resource_group_reference_model['href'] = 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + resource_group_reference_model['href'] = ( + 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + ) resource_group_reference_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' resource_group_reference_model['name'] = 'my-resource-group' snapshot_consistency_group_reference_model = {} # SnapshotConsistencyGroupReference - snapshot_consistency_group_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::snapshot-consistency-group:r134-fa329f6b-0e36-433f-a3bb-0df632e79263' + snapshot_consistency_group_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::snapshot-consistency-group:r134-fa329f6b-0e36-433f-a3bb-0df632e79263' + ) snapshot_consistency_group_reference_model['deleted'] = deleted_model - snapshot_consistency_group_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/snapshot_consistency_groups/r134-fa329f6b-0e36-433f-a3bb-0df632e79263' + snapshot_consistency_group_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/snapshot_consistency_groups/r134-fa329f6b-0e36-433f-a3bb-0df632e79263' + ) snapshot_consistency_group_reference_model['id'] = 'r134-fa329f6b-0e36-433f-a3bb-0df632e79263' snapshot_consistency_group_reference_model['name'] = 'my-snapshot-consistency-group' snapshot_consistency_group_reference_model['resource_type'] = 'snapshot_consistency_group' @@ -73719,18 +77966,26 @@ def test_snapshot_serialization(self): image_remote_model['region'] = region_reference_model image_reference_model = {} # ImageReference - image_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::image:r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8' + image_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::image:r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8' + ) image_reference_model['deleted'] = deleted_model - image_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/images/r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8' + image_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/images/r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8' + ) image_reference_model['id'] = 'r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8' image_reference_model['name'] = 'my-image' image_reference_model['remote'] = image_remote_model image_reference_model['resource_type'] = 'image' snapshot_source_snapshot_model = {} # SnapshotSourceSnapshot - snapshot_source_snapshot_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::snapshot:r134-f6bfa329-0e36-433f-a3bb-0df632e79263' + snapshot_source_snapshot_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::snapshot:r134-f6bfa329-0e36-433f-a3bb-0df632e79263' + ) snapshot_source_snapshot_model['deleted'] = deleted_model - snapshot_source_snapshot_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/snapshots/r134-f6bfa329-0e36-433f-a3bb-0df632e79263' + snapshot_source_snapshot_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/snapshots/r134-f6bfa329-0e36-433f-a3bb-0df632e79263' + ) snapshot_source_snapshot_model['id'] = 'r134-f6bfa329-0e36-433f-a3bb-0df632e79263' snapshot_source_snapshot_model['name'] = 'my-snapshot' snapshot_source_snapshot_model['remote'] = snapshot_remote_model @@ -73740,9 +77995,13 @@ def test_snapshot_serialization(self): volume_remote_model['region'] = region_reference_model volume_reference_model = {} # VolumeReference - volume_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::volume:r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' + volume_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::volume:r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' + ) volume_reference_model['deleted'] = deleted_model - volume_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/volumes/r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' + volume_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/volumes/r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' + ) volume_reference_model['id'] = 'r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' volume_reference_model['name'] = 'my-volume' volume_reference_model['remote'] = volume_remote_model @@ -73757,11 +78016,15 @@ def test_snapshot_serialization(self): snapshot_model_json['clones'] = [snapshot_clone_model] snapshot_model_json['copies'] = [snapshot_copies_item_model] snapshot_model_json['created_at'] = '2019-01-01T12:00:00Z' - snapshot_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::snapshot:r134-f6bfa329-0e36-433f-a3bb-0df632e79263' + snapshot_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::snapshot:r134-f6bfa329-0e36-433f-a3bb-0df632e79263' + ) snapshot_model_json['deletable'] = True snapshot_model_json['encryption'] = 'provider_managed' snapshot_model_json['encryption_key'] = encryption_key_reference_model - snapshot_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/snapshots/r134-f6bfa329-0e36-433f-a3bb-0df632e79263' + snapshot_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/snapshots/r134-f6bfa329-0e36-433f-a3bb-0df632e79263' + ) snapshot_model_json['id'] = 'r134-f6bfa329-0e36-433f-a3bb-0df632e79263' snapshot_model_json['lifecycle_state'] = 'stable' snapshot_model_json['minimum_capacity'] = 1 @@ -73810,11 +78073,15 @@ def test_snapshot_catalog_offering_serialization(self): deleted_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#deleted-resources' catalog_offering_version_plan_reference_model = {} # CatalogOfferingVersionPlanReference - catalog_offering_version_plan_reference_model['crn'] = 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:51c9e0db-2911-45a6-adb0-ac5332d27cf2:plan:sw.51c9e0db-2911-45a6-adb0-ac5332d27cf2.772c0dbe-aa62-482e-adbe-a3fc20101e0e' + catalog_offering_version_plan_reference_model['crn'] = ( + 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:51c9e0db-2911-45a6-adb0-ac5332d27cf2:plan:sw.51c9e0db-2911-45a6-adb0-ac5332d27cf2.772c0dbe-aa62-482e-adbe-a3fc20101e0e' + ) catalog_offering_version_plan_reference_model['deleted'] = deleted_model catalog_offering_version_reference_model = {} # CatalogOfferingVersionReference - catalog_offering_version_reference_model['crn'] = 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:version:00111601-0ec5-41ac-b142-96d1e64e6442/ec66bec2-6a33-42d6-9323-26dd4dc8875d' + catalog_offering_version_reference_model['crn'] = ( + 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:version:00111601-0ec5-41ac-b142-96d1e64e6442/ec66bec2-6a33-42d6-9323-26dd4dc8875d' + ) # Construct a json representation of a SnapshotCatalogOffering model snapshot_catalog_offering_model_json = {} @@ -73826,7 +78093,9 @@ def test_snapshot_catalog_offering_serialization(self): assert snapshot_catalog_offering_model != False # Construct a model instance of SnapshotCatalogOffering by calling from_dict on the json representation - snapshot_catalog_offering_model_dict = SnapshotCatalogOffering.from_dict(snapshot_catalog_offering_model_json).__dict__ + snapshot_catalog_offering_model_dict = SnapshotCatalogOffering.from_dict( + snapshot_catalog_offering_model_json + ).__dict__ snapshot_catalog_offering_model2 = SnapshotCatalogOffering(**snapshot_catalog_offering_model_dict) # Verify the model instances are equivalent @@ -73905,7 +78174,9 @@ def test_snapshot_clone_collection_serialization(self): assert snapshot_clone_collection_model != False # Construct a model instance of SnapshotCloneCollection by calling from_dict on the json representation - snapshot_clone_collection_model_dict = SnapshotCloneCollection.from_dict(snapshot_clone_collection_model_json).__dict__ + snapshot_clone_collection_model_dict = SnapshotCloneCollection.from_dict( + snapshot_clone_collection_model_json + ).__dict__ snapshot_clone_collection_model2 = SnapshotCloneCollection(**snapshot_clone_collection_model_dict) # Verify the model instances are equivalent @@ -73940,7 +78211,9 @@ def test_snapshot_clone_prototype_serialization(self): assert snapshot_clone_prototype_model != False # Construct a model instance of SnapshotClonePrototype by calling from_dict on the json representation - snapshot_clone_prototype_model_dict = SnapshotClonePrototype.from_dict(snapshot_clone_prototype_model_json).__dict__ + snapshot_clone_prototype_model_dict = SnapshotClonePrototype.from_dict( + snapshot_clone_prototype_model_json + ).__dict__ snapshot_clone_prototype_model2 = SnapshotClonePrototype(**snapshot_clone_prototype_model_dict) # Verify the model instances are equivalent @@ -73978,18 +78251,24 @@ def test_snapshot_collection_serialization(self): backup_policy_plan_reference_model = {} # BackupPolicyPlanReference backup_policy_plan_reference_model['deleted'] = deleted_model - backup_policy_plan_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/backup_policies/r134-076191ba-49c2-4763-94fd-c70de73ee2e6/plans/r134-6da51cfe-6f7b-4638-a6ba-00e9c327b178' + backup_policy_plan_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/backup_policies/r134-076191ba-49c2-4763-94fd-c70de73ee2e6/plans/r134-6da51cfe-6f7b-4638-a6ba-00e9c327b178' + ) backup_policy_plan_reference_model['id'] = 'r134-6da51cfe-6f7b-4638-a6ba-00e9c327b178' backup_policy_plan_reference_model['name'] = 'my-policy-plan' backup_policy_plan_reference_model['remote'] = backup_policy_plan_remote_model backup_policy_plan_reference_model['resource_type'] = 'backup_policy_plan' catalog_offering_version_plan_reference_model = {} # CatalogOfferingVersionPlanReference - catalog_offering_version_plan_reference_model['crn'] = 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:51c9e0db-2911-45a6-adb0-ac5332d27cf2:plan:sw.51c9e0db-2911-45a6-adb0-ac5332d27cf2.772c0dbe-aa62-482e-adbe-a3fc20101e0e' + catalog_offering_version_plan_reference_model['crn'] = ( + 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:51c9e0db-2911-45a6-adb0-ac5332d27cf2:plan:sw.51c9e0db-2911-45a6-adb0-ac5332d27cf2.772c0dbe-aa62-482e-adbe-a3fc20101e0e' + ) catalog_offering_version_plan_reference_model['deleted'] = deleted_model catalog_offering_version_reference_model = {} # CatalogOfferingVersionReference - catalog_offering_version_reference_model['crn'] = 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:version:00111601-0ec5-41ac-b142-96d1e64e6442/ec66bec2-6a33-42d6-9323-26dd4dc8875d' + catalog_offering_version_reference_model['crn'] = ( + 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:version:00111601-0ec5-41ac-b142-96d1e64e6442/ec66bec2-6a33-42d6-9323-26dd4dc8875d' + ) snapshot_catalog_offering_model = {} # SnapshotCatalogOffering snapshot_catalog_offering_model['plan'] = catalog_offering_version_plan_reference_model @@ -74013,16 +78292,22 @@ def test_snapshot_collection_serialization(self): snapshot_remote_model['region'] = region_reference_model snapshot_copies_item_model = {} # SnapshotCopiesItem - snapshot_copies_item_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::snapshot:r134-f6bfa329-0e36-433f-a3bb-0df632e79263' + snapshot_copies_item_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::snapshot:r134-f6bfa329-0e36-433f-a3bb-0df632e79263' + ) snapshot_copies_item_model['deleted'] = deleted_model - snapshot_copies_item_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/snapshots/r134-f6bfa329-0e36-433f-a3bb-0df632e79263' + snapshot_copies_item_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/snapshots/r134-f6bfa329-0e36-433f-a3bb-0df632e79263' + ) snapshot_copies_item_model['id'] = 'r134-f6bfa329-0e36-433f-a3bb-0df632e79263' snapshot_copies_item_model['name'] = 'my-snapshot' snapshot_copies_item_model['remote'] = snapshot_remote_model snapshot_copies_item_model['resource_type'] = 'snapshot' encryption_key_reference_model = {} # EncryptionKeyReference - encryption_key_reference_model['crn'] = 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + encryption_key_reference_model['crn'] = ( + 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + ) operating_system_model = {} # OperatingSystem operating_system_model['allow_user_image_creation'] = True @@ -74037,14 +78322,20 @@ def test_snapshot_collection_serialization(self): operating_system_model['version'] = '16.04 LTS' resource_group_reference_model = {} # ResourceGroupReference - resource_group_reference_model['href'] = 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + resource_group_reference_model['href'] = ( + 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + ) resource_group_reference_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' resource_group_reference_model['name'] = 'my-resource-group' snapshot_consistency_group_reference_model = {} # SnapshotConsistencyGroupReference - snapshot_consistency_group_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::snapshot-consistency-group:r134-fa329f6b-0e36-433f-a3bb-0df632e79263' + snapshot_consistency_group_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::snapshot-consistency-group:r134-fa329f6b-0e36-433f-a3bb-0df632e79263' + ) snapshot_consistency_group_reference_model['deleted'] = deleted_model - snapshot_consistency_group_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/snapshot_consistency_groups/r134-fa329f6b-0e36-433f-a3bb-0df632e79263' + snapshot_consistency_group_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/snapshot_consistency_groups/r134-fa329f6b-0e36-433f-a3bb-0df632e79263' + ) snapshot_consistency_group_reference_model['id'] = 'r134-fa329f6b-0e36-433f-a3bb-0df632e79263' snapshot_consistency_group_reference_model['name'] = 'my-snapshot-consistency-group' snapshot_consistency_group_reference_model['resource_type'] = 'snapshot_consistency_group' @@ -74054,18 +78345,26 @@ def test_snapshot_collection_serialization(self): image_remote_model['region'] = region_reference_model image_reference_model = {} # ImageReference - image_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::image:r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8' + image_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::image:r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8' + ) image_reference_model['deleted'] = deleted_model - image_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/images/r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8' + image_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/images/r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8' + ) image_reference_model['id'] = 'r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8' image_reference_model['name'] = 'my-image' image_reference_model['remote'] = image_remote_model image_reference_model['resource_type'] = 'image' snapshot_source_snapshot_model = {} # SnapshotSourceSnapshot - snapshot_source_snapshot_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::snapshot:r134-f6bfa329-0e36-433f-a3bb-0df632e79263' + snapshot_source_snapshot_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::snapshot:r134-f6bfa329-0e36-433f-a3bb-0df632e79263' + ) snapshot_source_snapshot_model['deleted'] = deleted_model - snapshot_source_snapshot_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/snapshots/r134-f6bfa329-0e36-433f-a3bb-0df632e79263' + snapshot_source_snapshot_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/snapshots/r134-f6bfa329-0e36-433f-a3bb-0df632e79263' + ) snapshot_source_snapshot_model['id'] = 'r134-f6bfa329-0e36-433f-a3bb-0df632e79263' snapshot_source_snapshot_model['name'] = 'my-snapshot' snapshot_source_snapshot_model['remote'] = snapshot_remote_model @@ -74075,9 +78374,13 @@ def test_snapshot_collection_serialization(self): volume_remote_model['region'] = region_reference_model volume_reference_model = {} # VolumeReference - volume_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::volume:r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' + volume_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::volume:r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' + ) volume_reference_model['deleted'] = deleted_model - volume_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/volumes/r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' + volume_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/volumes/r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' + ) volume_reference_model['id'] = 'r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' volume_reference_model['name'] = 'my-volume' volume_reference_model['remote'] = volume_remote_model @@ -74091,11 +78394,15 @@ def test_snapshot_collection_serialization(self): snapshot_model['clones'] = [snapshot_clone_model] snapshot_model['copies'] = [snapshot_copies_item_model] snapshot_model['created_at'] = '2019-01-01T12:00:00Z' - snapshot_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::snapshot:r134-f6bfa329-0e36-433f-a3bb-0df632e79263' + snapshot_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::snapshot:r134-f6bfa329-0e36-433f-a3bb-0df632e79263' + ) snapshot_model['deletable'] = True snapshot_model['encryption'] = 'provider_managed' snapshot_model['encryption_key'] = encryption_key_reference_model - snapshot_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/snapshots/r134-f6bfa329-0e36-433f-a3bb-0df632e79263' + snapshot_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/snapshots/r134-f6bfa329-0e36-433f-a3bb-0df632e79263' + ) snapshot_model['id'] = 'r134-f6bfa329-0e36-433f-a3bb-0df632e79263' snapshot_model['lifecycle_state'] = 'stable' snapshot_model['minimum_capacity'] = 1 @@ -74160,14 +78467,18 @@ def test_snapshot_consistency_group_serialization(self): backup_policy_plan_reference_model = {} # BackupPolicyPlanReference backup_policy_plan_reference_model['deleted'] = deleted_model - backup_policy_plan_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/backup_policies/r134-076191ba-49c2-4763-94fd-c70de73ee2e6/plans/r134-6da51cfe-6f7b-4638-a6ba-00e9c327b178' + backup_policy_plan_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/backup_policies/r134-076191ba-49c2-4763-94fd-c70de73ee2e6/plans/r134-6da51cfe-6f7b-4638-a6ba-00e9c327b178' + ) backup_policy_plan_reference_model['id'] = 'r134-6da51cfe-6f7b-4638-a6ba-00e9c327b178' backup_policy_plan_reference_model['name'] = 'my-policy-plan' backup_policy_plan_reference_model['remote'] = backup_policy_plan_remote_model backup_policy_plan_reference_model['resource_type'] = 'backup_policy_plan' resource_group_reference_model = {} # ResourceGroupReference - resource_group_reference_model['href'] = 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + resource_group_reference_model['href'] = ( + 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + ) resource_group_reference_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' resource_group_reference_model['name'] = 'my-resource-group' @@ -74180,9 +78491,13 @@ def test_snapshot_consistency_group_serialization(self): snapshot_remote_model['region'] = region_reference_model snapshot_reference_model = {} # SnapshotReference - snapshot_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::snapshot:r134-f6bfa329-0e36-433f-a3bb-0df632e79263' + snapshot_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::snapshot:r134-f6bfa329-0e36-433f-a3bb-0df632e79263' + ) snapshot_reference_model['deleted'] = deleted_model - snapshot_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/snapshots/r134-f6bfa329-0e36-433f-a3bb-0df632e79263' + snapshot_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/snapshots/r134-f6bfa329-0e36-433f-a3bb-0df632e79263' + ) snapshot_reference_model['id'] = 'r134-f6bfa329-0e36-433f-a3bb-0df632e79263' snapshot_reference_model['name'] = 'my-snapshot' snapshot_reference_model['remote'] = snapshot_remote_model @@ -74192,9 +78507,13 @@ def test_snapshot_consistency_group_serialization(self): snapshot_consistency_group_model_json = {} snapshot_consistency_group_model_json['backup_policy_plan'] = backup_policy_plan_reference_model snapshot_consistency_group_model_json['created_at'] = '2019-01-01T12:00:00Z' - snapshot_consistency_group_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::snapshot-consistency-group:r134-fa329f6b-0e36-433f-a3bb-0df632e79263' + snapshot_consistency_group_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::snapshot-consistency-group:r134-fa329f6b-0e36-433f-a3bb-0df632e79263' + ) snapshot_consistency_group_model_json['delete_snapshots_on_delete'] = True - snapshot_consistency_group_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/snapshot_consistency_groups/r134-fa329f6b-0e36-433f-a3bb-0df632e79263' + snapshot_consistency_group_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/snapshot_consistency_groups/r134-fa329f6b-0e36-433f-a3bb-0df632e79263' + ) snapshot_consistency_group_model_json['id'] = 'r134-fa329f6b-0e36-433f-a3bb-0df632e79263' snapshot_consistency_group_model_json['lifecycle_state'] = 'stable' snapshot_consistency_group_model_json['name'] = 'my-snapshot-consistency-group' @@ -74208,7 +78527,9 @@ def test_snapshot_consistency_group_serialization(self): assert snapshot_consistency_group_model != False # Construct a model instance of SnapshotConsistencyGroup by calling from_dict on the json representation - snapshot_consistency_group_model_dict = SnapshotConsistencyGroup.from_dict(snapshot_consistency_group_model_json).__dict__ + snapshot_consistency_group_model_dict = SnapshotConsistencyGroup.from_dict( + snapshot_consistency_group_model_json + ).__dict__ snapshot_consistency_group_model2 = SnapshotConsistencyGroup(**snapshot_consistency_group_model_dict) # Verify the model instances are equivalent @@ -74246,14 +78567,18 @@ def test_snapshot_consistency_group_collection_serialization(self): backup_policy_plan_reference_model = {} # BackupPolicyPlanReference backup_policy_plan_reference_model['deleted'] = deleted_model - backup_policy_plan_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/backup_policies/r134-076191ba-49c2-4763-94fd-c70de73ee2e6/plans/r134-6da51cfe-6f7b-4638-a6ba-00e9c327b178' + backup_policy_plan_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/backup_policies/r134-076191ba-49c2-4763-94fd-c70de73ee2e6/plans/r134-6da51cfe-6f7b-4638-a6ba-00e9c327b178' + ) backup_policy_plan_reference_model['id'] = 'r134-6da51cfe-6f7b-4638-a6ba-00e9c327b178' backup_policy_plan_reference_model['name'] = 'my-policy-plan' backup_policy_plan_reference_model['remote'] = backup_policy_plan_remote_model backup_policy_plan_reference_model['resource_type'] = 'backup_policy_plan' resource_group_reference_model = {} # ResourceGroupReference - resource_group_reference_model['href'] = 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + resource_group_reference_model['href'] = ( + 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + ) resource_group_reference_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' resource_group_reference_model['name'] = 'my-resource-group' @@ -74266,9 +78591,13 @@ def test_snapshot_consistency_group_collection_serialization(self): snapshot_remote_model['region'] = region_reference_model snapshot_reference_model = {} # SnapshotReference - snapshot_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::snapshot:r134-f6bfa329-0e36-433f-a3bb-0df632e79263' + snapshot_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::snapshot:r134-f6bfa329-0e36-433f-a3bb-0df632e79263' + ) snapshot_reference_model['deleted'] = deleted_model - snapshot_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/snapshots/r134-f6bfa329-0e36-433f-a3bb-0df632e79263' + snapshot_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/snapshots/r134-f6bfa329-0e36-433f-a3bb-0df632e79263' + ) snapshot_reference_model['id'] = 'r134-f6bfa329-0e36-433f-a3bb-0df632e79263' snapshot_reference_model['name'] = 'my-snapshot' snapshot_reference_model['remote'] = snapshot_remote_model @@ -74277,9 +78606,13 @@ def test_snapshot_consistency_group_collection_serialization(self): snapshot_consistency_group_model = {} # SnapshotConsistencyGroup snapshot_consistency_group_model['backup_policy_plan'] = backup_policy_plan_reference_model snapshot_consistency_group_model['created_at'] = '2019-01-01T12:00:00Z' - snapshot_consistency_group_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::snapshot-consistency-group:r134-fa329f6b-0e36-433f-a3bb-0df632e79263' + snapshot_consistency_group_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::snapshot-consistency-group:r134-fa329f6b-0e36-433f-a3bb-0df632e79263' + ) snapshot_consistency_group_model['delete_snapshots_on_delete'] = True - snapshot_consistency_group_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/snapshot_consistency_groups/r134-fa329f6b-0e36-433f-a3bb-0df632e79263' + snapshot_consistency_group_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/snapshot_consistency_groups/r134-fa329f6b-0e36-433f-a3bb-0df632e79263' + ) snapshot_consistency_group_model['id'] = 'r134-fa329f6b-0e36-433f-a3bb-0df632e79263' snapshot_consistency_group_model['lifecycle_state'] = 'stable' snapshot_consistency_group_model['name'] = 'my-snapshot-consistency-group' @@ -74293,16 +78626,24 @@ def test_snapshot_consistency_group_collection_serialization(self): snapshot_consistency_group_collection_model_json['first'] = page_link_model snapshot_consistency_group_collection_model_json['limit'] = 20 snapshot_consistency_group_collection_model_json['next'] = page_link_model - snapshot_consistency_group_collection_model_json['snapshot_consistency_groups'] = [snapshot_consistency_group_model] + snapshot_consistency_group_collection_model_json['snapshot_consistency_groups'] = [ + snapshot_consistency_group_model + ] snapshot_consistency_group_collection_model_json['total_count'] = 132 # Construct a model instance of SnapshotConsistencyGroupCollection by calling from_dict on the json representation - snapshot_consistency_group_collection_model = SnapshotConsistencyGroupCollection.from_dict(snapshot_consistency_group_collection_model_json) + snapshot_consistency_group_collection_model = SnapshotConsistencyGroupCollection.from_dict( + snapshot_consistency_group_collection_model_json + ) assert snapshot_consistency_group_collection_model != False # Construct a model instance of SnapshotConsistencyGroupCollection by calling from_dict on the json representation - snapshot_consistency_group_collection_model_dict = SnapshotConsistencyGroupCollection.from_dict(snapshot_consistency_group_collection_model_json).__dict__ - snapshot_consistency_group_collection_model2 = SnapshotConsistencyGroupCollection(**snapshot_consistency_group_collection_model_dict) + snapshot_consistency_group_collection_model_dict = SnapshotConsistencyGroupCollection.from_dict( + snapshot_consistency_group_collection_model_json + ).__dict__ + snapshot_consistency_group_collection_model2 = SnapshotConsistencyGroupCollection( + **snapshot_consistency_group_collection_model_dict + ) # Verify the model instances are equivalent assert snapshot_consistency_group_collection_model == snapshot_consistency_group_collection_model2 @@ -74328,12 +78669,18 @@ def test_snapshot_consistency_group_patch_serialization(self): snapshot_consistency_group_patch_model_json['name'] = 'my-snapshot-consistency-group' # Construct a model instance of SnapshotConsistencyGroupPatch by calling from_dict on the json representation - snapshot_consistency_group_patch_model = SnapshotConsistencyGroupPatch.from_dict(snapshot_consistency_group_patch_model_json) + snapshot_consistency_group_patch_model = SnapshotConsistencyGroupPatch.from_dict( + snapshot_consistency_group_patch_model_json + ) assert snapshot_consistency_group_patch_model != False # Construct a model instance of SnapshotConsistencyGroupPatch by calling from_dict on the json representation - snapshot_consistency_group_patch_model_dict = SnapshotConsistencyGroupPatch.from_dict(snapshot_consistency_group_patch_model_json).__dict__ - snapshot_consistency_group_patch_model2 = SnapshotConsistencyGroupPatch(**snapshot_consistency_group_patch_model_dict) + snapshot_consistency_group_patch_model_dict = SnapshotConsistencyGroupPatch.from_dict( + snapshot_consistency_group_patch_model_json + ).__dict__ + snapshot_consistency_group_patch_model2 = SnapshotConsistencyGroupPatch( + **snapshot_consistency_group_patch_model_dict + ) # Verify the model instances are equivalent assert snapshot_consistency_group_patch_model == snapshot_consistency_group_patch_model2 @@ -74360,20 +78707,30 @@ def test_snapshot_consistency_group_reference_serialization(self): # Construct a json representation of a SnapshotConsistencyGroupReference model snapshot_consistency_group_reference_model_json = {} - snapshot_consistency_group_reference_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::snapshot-consistency-group:r134-fa329f6b-0e36-433f-a3bb-0df632e79263' + snapshot_consistency_group_reference_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::snapshot-consistency-group:r134-fa329f6b-0e36-433f-a3bb-0df632e79263' + ) snapshot_consistency_group_reference_model_json['deleted'] = deleted_model - snapshot_consistency_group_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/snapshot_consistency_groups/r134-fa329f6b-0e36-433f-a3bb-0df632e79263' + snapshot_consistency_group_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/snapshot_consistency_groups/r134-fa329f6b-0e36-433f-a3bb-0df632e79263' + ) snapshot_consistency_group_reference_model_json['id'] = 'r134-fa329f6b-0e36-433f-a3bb-0df632e79263' snapshot_consistency_group_reference_model_json['name'] = 'my-snapshot-consistency-group' snapshot_consistency_group_reference_model_json['resource_type'] = 'snapshot_consistency_group' # Construct a model instance of SnapshotConsistencyGroupReference by calling from_dict on the json representation - snapshot_consistency_group_reference_model = SnapshotConsistencyGroupReference.from_dict(snapshot_consistency_group_reference_model_json) + snapshot_consistency_group_reference_model = SnapshotConsistencyGroupReference.from_dict( + snapshot_consistency_group_reference_model_json + ) assert snapshot_consistency_group_reference_model != False # Construct a model instance of SnapshotConsistencyGroupReference by calling from_dict on the json representation - snapshot_consistency_group_reference_model_dict = SnapshotConsistencyGroupReference.from_dict(snapshot_consistency_group_reference_model_json).__dict__ - snapshot_consistency_group_reference_model2 = SnapshotConsistencyGroupReference(**snapshot_consistency_group_reference_model_dict) + snapshot_consistency_group_reference_model_dict = SnapshotConsistencyGroupReference.from_dict( + snapshot_consistency_group_reference_model_json + ).__dict__ + snapshot_consistency_group_reference_model2 = SnapshotConsistencyGroupReference( + **snapshot_consistency_group_reference_model_dict + ) # Verify the model instances are equivalent assert snapshot_consistency_group_reference_model == snapshot_consistency_group_reference_model2 @@ -74412,9 +78769,13 @@ def test_snapshot_copies_item_serialization(self): # Construct a json representation of a SnapshotCopiesItem model snapshot_copies_item_model_json = {} - snapshot_copies_item_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::snapshot:r134-f6bfa329-0e36-433f-a3bb-0df632e79263' + snapshot_copies_item_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::snapshot:r134-f6bfa329-0e36-433f-a3bb-0df632e79263' + ) snapshot_copies_item_model_json['deleted'] = deleted_model - snapshot_copies_item_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/snapshots/r134-f6bfa329-0e36-433f-a3bb-0df632e79263' + snapshot_copies_item_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/snapshots/r134-f6bfa329-0e36-433f-a3bb-0df632e79263' + ) snapshot_copies_item_model_json['id'] = 'r134-f6bfa329-0e36-433f-a3bb-0df632e79263' snapshot_copies_item_model_json['name'] = 'my-snapshot' snapshot_copies_item_model_json['remote'] = snapshot_remote_model @@ -74489,19 +78850,37 @@ def test_snapshot_prototype_snapshot_consistency_group_context_serialization(sel snapshot_prototype_snapshot_consistency_group_context_model_json['user_tags'] = ['testString'] # Construct a model instance of SnapshotPrototypeSnapshotConsistencyGroupContext by calling from_dict on the json representation - snapshot_prototype_snapshot_consistency_group_context_model = SnapshotPrototypeSnapshotConsistencyGroupContext.from_dict(snapshot_prototype_snapshot_consistency_group_context_model_json) + snapshot_prototype_snapshot_consistency_group_context_model = ( + SnapshotPrototypeSnapshotConsistencyGroupContext.from_dict( + snapshot_prototype_snapshot_consistency_group_context_model_json + ) + ) assert snapshot_prototype_snapshot_consistency_group_context_model != False # Construct a model instance of SnapshotPrototypeSnapshotConsistencyGroupContext by calling from_dict on the json representation - snapshot_prototype_snapshot_consistency_group_context_model_dict = SnapshotPrototypeSnapshotConsistencyGroupContext.from_dict(snapshot_prototype_snapshot_consistency_group_context_model_json).__dict__ - snapshot_prototype_snapshot_consistency_group_context_model2 = SnapshotPrototypeSnapshotConsistencyGroupContext(**snapshot_prototype_snapshot_consistency_group_context_model_dict) + snapshot_prototype_snapshot_consistency_group_context_model_dict = ( + SnapshotPrototypeSnapshotConsistencyGroupContext.from_dict( + snapshot_prototype_snapshot_consistency_group_context_model_json + ).__dict__ + ) + snapshot_prototype_snapshot_consistency_group_context_model2 = SnapshotPrototypeSnapshotConsistencyGroupContext( + **snapshot_prototype_snapshot_consistency_group_context_model_dict + ) # Verify the model instances are equivalent - assert snapshot_prototype_snapshot_consistency_group_context_model == snapshot_prototype_snapshot_consistency_group_context_model2 + assert ( + snapshot_prototype_snapshot_consistency_group_context_model + == snapshot_prototype_snapshot_consistency_group_context_model2 + ) # Convert model instance back to dict and verify no loss of data - snapshot_prototype_snapshot_consistency_group_context_model_json2 = snapshot_prototype_snapshot_consistency_group_context_model.to_dict() - assert snapshot_prototype_snapshot_consistency_group_context_model_json2 == snapshot_prototype_snapshot_consistency_group_context_model_json + snapshot_prototype_snapshot_consistency_group_context_model_json2 = ( + snapshot_prototype_snapshot_consistency_group_context_model.to_dict() + ) + assert ( + snapshot_prototype_snapshot_consistency_group_context_model_json2 + == snapshot_prototype_snapshot_consistency_group_context_model_json + ) class TestModel_SnapshotReference: @@ -74533,9 +78912,13 @@ def test_snapshot_reference_serialization(self): # Construct a json representation of a SnapshotReference model snapshot_reference_model_json = {} - snapshot_reference_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::snapshot:r134-f6bfa329-0e36-433f-a3bb-0df632e79263' + snapshot_reference_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::snapshot:r134-f6bfa329-0e36-433f-a3bb-0df632e79263' + ) snapshot_reference_model_json['deleted'] = deleted_model - snapshot_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/snapshots/r134-f6bfa329-0e36-433f-a3bb-0df632e79263' + snapshot_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/snapshots/r134-f6bfa329-0e36-433f-a3bb-0df632e79263' + ) snapshot_reference_model_json['id'] = 'r134-f6bfa329-0e36-433f-a3bb-0df632e79263' snapshot_reference_model_json['name'] = 'my-snapshot' snapshot_reference_model_json['remote'] = snapshot_remote_model @@ -74627,9 +79010,13 @@ def test_snapshot_source_snapshot_serialization(self): # Construct a json representation of a SnapshotSourceSnapshot model snapshot_source_snapshot_model_json = {} - snapshot_source_snapshot_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::snapshot:r134-f6bfa329-0e36-433f-a3bb-0df632e79263' + snapshot_source_snapshot_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::snapshot:r134-f6bfa329-0e36-433f-a3bb-0df632e79263' + ) snapshot_source_snapshot_model_json['deleted'] = deleted_model - snapshot_source_snapshot_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/snapshots/r134-f6bfa329-0e36-433f-a3bb-0df632e79263' + snapshot_source_snapshot_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/snapshots/r134-f6bfa329-0e36-433f-a3bb-0df632e79263' + ) snapshot_source_snapshot_model_json['id'] = 'r134-f6bfa329-0e36-433f-a3bb-0df632e79263' snapshot_source_snapshot_model_json['name'] = 'my-snapshot' snapshot_source_snapshot_model_json['remote'] = snapshot_remote_model @@ -74640,7 +79027,9 @@ def test_snapshot_source_snapshot_serialization(self): assert snapshot_source_snapshot_model != False # Construct a model instance of SnapshotSourceSnapshot by calling from_dict on the json representation - snapshot_source_snapshot_model_dict = SnapshotSourceSnapshot.from_dict(snapshot_source_snapshot_model_json).__dict__ + snapshot_source_snapshot_model_dict = SnapshotSourceSnapshot.from_dict( + snapshot_source_snapshot_model_json + ).__dict__ snapshot_source_snapshot_model2 = SnapshotSourceSnapshot(**snapshot_source_snapshot_model_dict) # Verify the model instances are equivalent @@ -74667,37 +79056,55 @@ def test_subnet_serialization(self): deleted_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#deleted-resources' network_acl_reference_model = {} # NetworkACLReference - network_acl_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::network-acl:r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf' + network_acl_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::network-acl:r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf' + ) network_acl_reference_model['deleted'] = deleted_model - network_acl_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/network_acls/r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf' + network_acl_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/network_acls/r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf' + ) network_acl_reference_model['id'] = 'r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf' network_acl_reference_model['name'] = 'my-network-acl' public_gateway_reference_model = {} # PublicGatewayReference - public_gateway_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::public-gateway:dc5431ef-1fc6-4861-adc9-a59d077d1241' + public_gateway_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::public-gateway:dc5431ef-1fc6-4861-adc9-a59d077d1241' + ) public_gateway_reference_model['deleted'] = deleted_model - public_gateway_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/public_gateways/dc5431ef-1fc6-4861-adc9-a59d077d1241' + public_gateway_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/public_gateways/dc5431ef-1fc6-4861-adc9-a59d077d1241' + ) public_gateway_reference_model['id'] = 'dc5431ef-1fc6-4861-adc9-a59d077d1241' public_gateway_reference_model['name'] = 'my-public-gateway' public_gateway_reference_model['resource_type'] = 'public_gateway' resource_group_reference_model = {} # ResourceGroupReference - resource_group_reference_model['href'] = 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + resource_group_reference_model['href'] = ( + 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + ) resource_group_reference_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' resource_group_reference_model['name'] = 'Default' routing_table_reference_model = {} # RoutingTableReference - routing_table_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc-routing-table:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b/r006-6885e83f-03b2-4603-8a86-db2a0f55c840' + routing_table_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc-routing-table:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b/r006-6885e83f-03b2-4603-8a86-db2a0f55c840' + ) routing_table_reference_model['deleted'] = deleted_model - routing_table_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b/routing_tables/r006-6885e83f-03b2-4603-8a86-db2a0f55c840' + routing_table_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b/routing_tables/r006-6885e83f-03b2-4603-8a86-db2a0f55c840' + ) routing_table_reference_model['id'] = 'r006-6885e83f-03b2-4603-8a86-db2a0f55c840' routing_table_reference_model['name'] = 'my-routing-table' routing_table_reference_model['resource_type'] = 'routing_table' vpc_reference_model = {} # VPCReference - vpc_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_model['deleted'] = deleted_model - vpc_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_model['id'] = 'r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' vpc_reference_model['name'] = 'my-vpc' vpc_reference_model['resource_type'] = 'vpc' @@ -74710,8 +79117,12 @@ def test_subnet_serialization(self): subnet_model_json = {} subnet_model_json['available_ipv4_address_count'] = 15 subnet_model_json['created_at'] = '2019-01-01T12:00:00Z' - subnet_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' - subnet_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) + subnet_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_model_json['id'] = '0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' subnet_model_json['ip_version'] = 'ipv4' subnet_model_json['ipv4_cidr_block'] = '10.0.0.0/24' @@ -74761,37 +79172,55 @@ def test_subnet_collection_serialization(self): deleted_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#deleted-resources' network_acl_reference_model = {} # NetworkACLReference - network_acl_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::network-acl:r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf' + network_acl_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::network-acl:r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf' + ) network_acl_reference_model['deleted'] = deleted_model - network_acl_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/network_acls/r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf' + network_acl_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/network_acls/r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf' + ) network_acl_reference_model['id'] = 'r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf' network_acl_reference_model['name'] = 'my-network-acl' public_gateway_reference_model = {} # PublicGatewayReference - public_gateway_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::public-gateway:dc5431ef-1fc6-4861-adc9-a59d077d1241' + public_gateway_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::public-gateway:dc5431ef-1fc6-4861-adc9-a59d077d1241' + ) public_gateway_reference_model['deleted'] = deleted_model - public_gateway_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/public_gateways/dc5431ef-1fc6-4861-adc9-a59d077d1241' + public_gateway_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/public_gateways/dc5431ef-1fc6-4861-adc9-a59d077d1241' + ) public_gateway_reference_model['id'] = 'dc5431ef-1fc6-4861-adc9-a59d077d1241' public_gateway_reference_model['name'] = 'my-public-gateway' public_gateway_reference_model['resource_type'] = 'public_gateway' resource_group_reference_model = {} # ResourceGroupReference - resource_group_reference_model['href'] = 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + resource_group_reference_model['href'] = ( + 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + ) resource_group_reference_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' resource_group_reference_model['name'] = 'Default' routing_table_reference_model = {} # RoutingTableReference - routing_table_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc-routing-table:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b/r006-6885e83f-03b2-4603-8a86-db2a0f55c840' + routing_table_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc-routing-table:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b/r006-6885e83f-03b2-4603-8a86-db2a0f55c840' + ) routing_table_reference_model['deleted'] = deleted_model - routing_table_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b/routing_tables/r006-6885e83f-03b2-4603-8a86-db2a0f55c840' + routing_table_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b/routing_tables/r006-6885e83f-03b2-4603-8a86-db2a0f55c840' + ) routing_table_reference_model['id'] = 'r006-6885e83f-03b2-4603-8a86-db2a0f55c840' routing_table_reference_model['name'] = 'my-routing-table' routing_table_reference_model['resource_type'] = 'routing_table' vpc_reference_model = {} # VPCReference - vpc_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_model['deleted'] = deleted_model - vpc_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_model['id'] = 'r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' vpc_reference_model['name'] = 'my-vpc' vpc_reference_model['resource_type'] = 'vpc' @@ -74803,8 +79232,12 @@ def test_subnet_collection_serialization(self): subnet_model = {} # Subnet subnet_model['available_ipv4_address_count'] = 251 subnet_model['created_at'] = '2019-01-28T11:59:46Z' - subnet_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' - subnet_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) + subnet_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_model['id'] = '0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' subnet_model['ip_version'] = 'ipv4' subnet_model['ipv4_cidr_block'] = '10.0.1.0/24' @@ -74904,9 +79337,13 @@ def test_subnet_reference_serialization(self): # Construct a json representation of a SubnetReference model subnet_reference_model_json = {} - subnet_reference_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model_json['deleted'] = deleted_model - subnet_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model_json['id'] = '0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' subnet_reference_model_json['name'] = 'my-subnet' subnet_reference_model_json['resource_type'] = 'subnet' @@ -74939,7 +79376,9 @@ def test_trusted_profile_reference_serialization(self): # Construct a json representation of a TrustedProfileReference model trusted_profile_reference_model_json = {} - trusted_profile_reference_model_json['crn'] = 'crn:v1:bluemix:public:iam-identity::a/aa2432b1fa4d4ace891e9b80fc104e34::profile:Profile-9fd84246-7df4-4667-94e4-8ecde51d5ac5' + trusted_profile_reference_model_json['crn'] = ( + 'crn:v1:bluemix:public:iam-identity::a/aa2432b1fa4d4ace891e9b80fc104e34::profile:Profile-9fd84246-7df4-4667-94e4-8ecde51d5ac5' + ) trusted_profile_reference_model_json['id'] = 'Profile-9fd84246-7df4-4667-94e4-8ecde51d5ac5' trusted_profile_reference_model_json['resource_type'] = 'trusted_profile' @@ -74948,7 +79387,9 @@ def test_trusted_profile_reference_serialization(self): assert trusted_profile_reference_model != False # Construct a model instance of TrustedProfileReference by calling from_dict on the json representation - trusted_profile_reference_model_dict = TrustedProfileReference.from_dict(trusted_profile_reference_model_json).__dict__ + trusted_profile_reference_model_dict = TrustedProfileReference.from_dict( + trusted_profile_reference_model_json + ).__dict__ trusted_profile_reference_model2 = TrustedProfileReference(**trusted_profile_reference_model_dict) # Verify the model instances are equivalent @@ -75018,24 +79459,36 @@ def test_vpc_serialization(self): deleted_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#deleted-resources' network_acl_reference_model = {} # NetworkACLReference - network_acl_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::network-acl:r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf' + network_acl_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::network-acl:r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf' + ) network_acl_reference_model['deleted'] = deleted_model - network_acl_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/network_acls/r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf' + network_acl_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/network_acls/r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf' + ) network_acl_reference_model['id'] = 'r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf' network_acl_reference_model['name'] = 'my-network-acl' routing_table_reference_model = {} # RoutingTableReference - routing_table_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc-routing-table:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b/r006-6885e83f-03b2-4603-8a86-db2a0f55c840' + routing_table_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc-routing-table:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b/r006-6885e83f-03b2-4603-8a86-db2a0f55c840' + ) routing_table_reference_model['deleted'] = deleted_model - routing_table_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b/routing_tables/r006-6885e83f-03b2-4603-8a86-db2a0f55c840' + routing_table_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b/routing_tables/r006-6885e83f-03b2-4603-8a86-db2a0f55c840' + ) routing_table_reference_model['id'] = 'r006-6885e83f-03b2-4603-8a86-db2a0f55c840' routing_table_reference_model['name'] = 'my-routing-table' routing_table_reference_model['resource_type'] = 'routing_table' security_group_reference_model = {} # SecurityGroupReference - security_group_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::security-group:r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + security_group_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::security-group:r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + ) security_group_reference_model['deleted'] = deleted_model - security_group_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + security_group_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + ) security_group_reference_model['id'] = 'r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' security_group_reference_model['name'] = 'my-security-group' @@ -75059,7 +79512,9 @@ def test_vpc_serialization(self): vpc_health_reason_model['more_info'] = 'https://cloud.ibm.com/docs/vpc?topic=vpc-troubleshoot-hub-1' resource_group_reference_model = {} # ResourceGroupReference - resource_group_reference_model['href'] = 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + resource_group_reference_model['href'] = ( + 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + ) resource_group_reference_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' resource_group_reference_model['name'] = 'Default' @@ -75067,7 +79522,9 @@ def test_vpc_serialization(self): vpc_model_json = {} vpc_model_json['classic_access'] = False vpc_model_json['created_at'] = '2019-01-01T12:00:00Z' - vpc_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_model_json['cse_source_ips'] = [vpccse_source_ip_model] vpc_model_json['default_network_acl'] = network_acl_reference_model vpc_model_json['default_routing_table'] = routing_table_reference_model @@ -75168,24 +79625,36 @@ def test_vpc_collection_serialization(self): deleted_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#deleted-resources' network_acl_reference_model = {} # NetworkACLReference - network_acl_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::network-acl:r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf' + network_acl_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::network-acl:r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf' + ) network_acl_reference_model['deleted'] = deleted_model - network_acl_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/network_acls/r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf' + network_acl_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/network_acls/r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf' + ) network_acl_reference_model['id'] = 'r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf' network_acl_reference_model['name'] = 'my-network-acl' routing_table_reference_model = {} # RoutingTableReference - routing_table_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc-routing-table:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b/r006-6885e83f-03b2-4603-8a86-db2a0f55c840' + routing_table_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc-routing-table:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b/r006-6885e83f-03b2-4603-8a86-db2a0f55c840' + ) routing_table_reference_model['deleted'] = deleted_model - routing_table_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b/routing_tables/r006-6885e83f-03b2-4603-8a86-db2a0f55c840' + routing_table_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b/routing_tables/r006-6885e83f-03b2-4603-8a86-db2a0f55c840' + ) routing_table_reference_model['id'] = 'r006-6885e83f-03b2-4603-8a86-db2a0f55c840' routing_table_reference_model['name'] = 'my-routing-table' routing_table_reference_model['resource_type'] = 'routing_table' security_group_reference_model = {} # SecurityGroupReference - security_group_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::security-group:r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + security_group_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::security-group:r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + ) security_group_reference_model['deleted'] = deleted_model - security_group_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + security_group_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + ) security_group_reference_model['id'] = 'r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' security_group_reference_model['name'] = 'my-security-group' @@ -75209,14 +79678,18 @@ def test_vpc_collection_serialization(self): vpc_health_reason_model['more_info'] = 'https://cloud.ibm.com/docs/vpc?topic=vpc-troubleshoot-hub-1' resource_group_reference_model = {} # ResourceGroupReference - resource_group_reference_model['href'] = 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + resource_group_reference_model['href'] = ( + 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + ) resource_group_reference_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' resource_group_reference_model['name'] = 'Default' vpc_model = {} # VPC vpc_model['classic_access'] = False vpc_model['created_at'] = '2019-01-27T14:39:40Z' - vpc_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_model['cse_source_ips'] = [vpccse_source_ip_model] vpc_model['default_network_acl'] = network_acl_reference_model vpc_model['default_routing_table'] = routing_table_reference_model @@ -75291,9 +79764,13 @@ def test_vpcdns_serialization(self): vpc_remote_model['region'] = region_reference_model vpc_reference_dns_resolver_context_model = {} # VPCReferenceDNSResolverContext - vpc_reference_dns_resolver_context_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_dns_resolver_context_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_dns_resolver_context_model['deleted'] = deleted_model - vpc_reference_dns_resolver_context_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_dns_resolver_context_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_dns_resolver_context_model['id'] = 'r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' vpc_reference_dns_resolver_context_model['name'] = 'my-vpc' vpc_reference_dns_resolver_context_model['remote'] = vpc_remote_model @@ -75443,8 +79920,12 @@ def test_vpcdns_resolution_binding_serialization(self): endpoint_gateway_remote_model['region'] = region_reference_model endpoint_gateway_reference_remote_model = {} # EndpointGatewayReferenceRemote - endpoint_gateway_reference_remote_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::endpoint-gateway:r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5' - endpoint_gateway_reference_remote_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/endpoint_gateways/r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5' + endpoint_gateway_reference_remote_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::endpoint-gateway:r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5' + ) + endpoint_gateway_reference_remote_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/endpoint_gateways/r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5' + ) endpoint_gateway_reference_remote_model['id'] = 'r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5' endpoint_gateway_reference_remote_model['name'] = 'my-endpoint-gateway' endpoint_gateway_reference_remote_model['remote'] = endpoint_gateway_remote_model @@ -75452,16 +79933,24 @@ def test_vpcdns_resolution_binding_serialization(self): vpcdns_resolution_binding_health_reason_model = {} # VPCDNSResolutionBindingHealthReason vpcdns_resolution_binding_health_reason_model['code'] = 'disconnected_from_bound_vpc' - vpcdns_resolution_binding_health_reason_model['message'] = 'The VPC specified in the DNS resolution binding has been disconnected.' - vpcdns_resolution_binding_health_reason_model['more_info'] = 'https://cloud.ibm.com/docs/vpc?topic=vpc-troubleshoot-hub-1' + vpcdns_resolution_binding_health_reason_model['message'] = ( + 'The VPC specified in the DNS resolution binding has been disconnected.' + ) + vpcdns_resolution_binding_health_reason_model['more_info'] = ( + 'https://cloud.ibm.com/docs/vpc?topic=vpc-troubleshoot-hub-1' + ) vpc_remote_model = {} # VPCRemote vpc_remote_model['account'] = account_reference_model vpc_remote_model['region'] = region_reference_model vpc_reference_remote_model = {} # VPCReferenceRemote - vpc_reference_remote_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' - vpc_reference_remote_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_remote_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) + vpc_reference_remote_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_remote_model['id'] = 'r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' vpc_reference_remote_model['name'] = 'my-vpc' vpc_reference_remote_model['remote'] = vpc_remote_model @@ -75473,7 +79962,9 @@ def test_vpcdns_resolution_binding_serialization(self): vpcdns_resolution_binding_model_json['endpoint_gateways'] = [endpoint_gateway_reference_remote_model] vpcdns_resolution_binding_model_json['health_reasons'] = [vpcdns_resolution_binding_health_reason_model] vpcdns_resolution_binding_model_json['health_state'] = 'ok' - vpcdns_resolution_binding_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-982d72b7-db1b-4606-afb2-ed6bd4b0bed1/dns_resolution_bindings/r006-8a524686-fcf6-4947-a59b-188c1ed78ad1' + vpcdns_resolution_binding_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-982d72b7-db1b-4606-afb2-ed6bd4b0bed1/dns_resolution_bindings/r006-8a524686-fcf6-4947-a59b-188c1ed78ad1' + ) vpcdns_resolution_binding_model_json['id'] = 'r006-8a524686-fcf6-4947-a59b-188c1ed78ad1' vpcdns_resolution_binding_model_json['lifecycle_state'] = 'stable' vpcdns_resolution_binding_model_json['name'] = 'my-dns-resolution-binding' @@ -75485,7 +79976,9 @@ def test_vpcdns_resolution_binding_serialization(self): assert vpcdns_resolution_binding_model != False # Construct a model instance of VPCDNSResolutionBinding by calling from_dict on the json representation - vpcdns_resolution_binding_model_dict = VPCDNSResolutionBinding.from_dict(vpcdns_resolution_binding_model_json).__dict__ + vpcdns_resolution_binding_model_dict = VPCDNSResolutionBinding.from_dict( + vpcdns_resolution_binding_model_json + ).__dict__ vpcdns_resolution_binding_model2 = VPCDNSResolutionBinding(**vpcdns_resolution_binding_model_dict) # Verify the model instances are equivalent @@ -75521,8 +80014,12 @@ def test_vpcdns_resolution_binding_collection_serialization(self): endpoint_gateway_remote_model['region'] = region_reference_model endpoint_gateway_reference_remote_model = {} # EndpointGatewayReferenceRemote - endpoint_gateway_reference_remote_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::endpoint-gateway:r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5' - endpoint_gateway_reference_remote_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/endpoint_gateways/r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5' + endpoint_gateway_reference_remote_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::endpoint-gateway:r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5' + ) + endpoint_gateway_reference_remote_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/endpoint_gateways/r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5' + ) endpoint_gateway_reference_remote_model['id'] = 'r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5' endpoint_gateway_reference_remote_model['name'] = 'my-endpoint-gateway' endpoint_gateway_reference_remote_model['remote'] = endpoint_gateway_remote_model @@ -75530,16 +80027,24 @@ def test_vpcdns_resolution_binding_collection_serialization(self): vpcdns_resolution_binding_health_reason_model = {} # VPCDNSResolutionBindingHealthReason vpcdns_resolution_binding_health_reason_model['code'] = 'disconnected_from_bound_vpc' - vpcdns_resolution_binding_health_reason_model['message'] = 'The VPC specified in the DNS resolution binding has been disconnected.' - vpcdns_resolution_binding_health_reason_model['more_info'] = 'https://cloud.ibm.com/docs/vpc?topic=vpc-troubleshoot-hub-1' + vpcdns_resolution_binding_health_reason_model['message'] = ( + 'The VPC specified in the DNS resolution binding has been disconnected.' + ) + vpcdns_resolution_binding_health_reason_model['more_info'] = ( + 'https://cloud.ibm.com/docs/vpc?topic=vpc-troubleshoot-hub-1' + ) vpc_remote_model = {} # VPCRemote vpc_remote_model['account'] = account_reference_model vpc_remote_model['region'] = region_reference_model vpc_reference_remote_model = {} # VPCReferenceRemote - vpc_reference_remote_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' - vpc_reference_remote_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_remote_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) + vpc_reference_remote_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_remote_model['id'] = 'r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' vpc_reference_remote_model['name'] = 'my-vpc' vpc_reference_remote_model['remote'] = vpc_remote_model @@ -75550,7 +80055,9 @@ def test_vpcdns_resolution_binding_collection_serialization(self): vpcdns_resolution_binding_model['endpoint_gateways'] = [endpoint_gateway_reference_remote_model] vpcdns_resolution_binding_model['health_reasons'] = [vpcdns_resolution_binding_health_reason_model] vpcdns_resolution_binding_model['health_state'] = 'ok' - vpcdns_resolution_binding_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-982d72b7-db1b-4606-afb2-ed6bd4b0bed1/dns_resolution_bindings/r006-8a524686-fcf6-4947-a59b-188c1ed78ad1' + vpcdns_resolution_binding_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-982d72b7-db1b-4606-afb2-ed6bd4b0bed1/dns_resolution_bindings/r006-8a524686-fcf6-4947-a59b-188c1ed78ad1' + ) vpcdns_resolution_binding_model['id'] = 'r006-8a524686-fcf6-4947-a59b-188c1ed78ad1' vpcdns_resolution_binding_model['lifecycle_state'] = 'stable' vpcdns_resolution_binding_model['name'] = 'my-dns-resolution-binding' @@ -75558,7 +80065,9 @@ def test_vpcdns_resolution_binding_collection_serialization(self): vpcdns_resolution_binding_model['vpc'] = vpc_reference_remote_model page_link_model = {} # PageLink - page_link_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-982d72b7-db1b-4606-afb2-ed6bd4b0bed1/dns_resolution_bindings?limit=20' + page_link_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-982d72b7-db1b-4606-afb2-ed6bd4b0bed1/dns_resolution_bindings?limit=20' + ) # Construct a json representation of a VPCDNSResolutionBindingCollection model vpcdns_resolution_binding_collection_model_json = {} @@ -75569,12 +80078,18 @@ def test_vpcdns_resolution_binding_collection_serialization(self): vpcdns_resolution_binding_collection_model_json['total_count'] = 132 # Construct a model instance of VPCDNSResolutionBindingCollection by calling from_dict on the json representation - vpcdns_resolution_binding_collection_model = VPCDNSResolutionBindingCollection.from_dict(vpcdns_resolution_binding_collection_model_json) + vpcdns_resolution_binding_collection_model = VPCDNSResolutionBindingCollection.from_dict( + vpcdns_resolution_binding_collection_model_json + ) assert vpcdns_resolution_binding_collection_model != False # Construct a model instance of VPCDNSResolutionBindingCollection by calling from_dict on the json representation - vpcdns_resolution_binding_collection_model_dict = VPCDNSResolutionBindingCollection.from_dict(vpcdns_resolution_binding_collection_model_json).__dict__ - vpcdns_resolution_binding_collection_model2 = VPCDNSResolutionBindingCollection(**vpcdns_resolution_binding_collection_model_dict) + vpcdns_resolution_binding_collection_model_dict = VPCDNSResolutionBindingCollection.from_dict( + vpcdns_resolution_binding_collection_model_json + ).__dict__ + vpcdns_resolution_binding_collection_model2 = VPCDNSResolutionBindingCollection( + **vpcdns_resolution_binding_collection_model_dict + ) # Verify the model instances are equivalent assert vpcdns_resolution_binding_collection_model == vpcdns_resolution_binding_collection_model2 @@ -75597,16 +80112,26 @@ def test_vpcdns_resolution_binding_health_reason_serialization(self): # Construct a json representation of a VPCDNSResolutionBindingHealthReason model vpcdns_resolution_binding_health_reason_model_json = {} vpcdns_resolution_binding_health_reason_model_json['code'] = 'disconnected_from_bound_vpc' - vpcdns_resolution_binding_health_reason_model_json['message'] = 'The VPC specified in the DNS resolution binding has been disconnected.' - vpcdns_resolution_binding_health_reason_model_json['more_info'] = 'https://cloud.ibm.com/docs/vpc?topic=vpc-troubleshoot-hub-1' + vpcdns_resolution_binding_health_reason_model_json['message'] = ( + 'The VPC specified in the DNS resolution binding has been disconnected.' + ) + vpcdns_resolution_binding_health_reason_model_json['more_info'] = ( + 'https://cloud.ibm.com/docs/vpc?topic=vpc-troubleshoot-hub-1' + ) # Construct a model instance of VPCDNSResolutionBindingHealthReason by calling from_dict on the json representation - vpcdns_resolution_binding_health_reason_model = VPCDNSResolutionBindingHealthReason.from_dict(vpcdns_resolution_binding_health_reason_model_json) + vpcdns_resolution_binding_health_reason_model = VPCDNSResolutionBindingHealthReason.from_dict( + vpcdns_resolution_binding_health_reason_model_json + ) assert vpcdns_resolution_binding_health_reason_model != False # Construct a model instance of VPCDNSResolutionBindingHealthReason by calling from_dict on the json representation - vpcdns_resolution_binding_health_reason_model_dict = VPCDNSResolutionBindingHealthReason.from_dict(vpcdns_resolution_binding_health_reason_model_json).__dict__ - vpcdns_resolution_binding_health_reason_model2 = VPCDNSResolutionBindingHealthReason(**vpcdns_resolution_binding_health_reason_model_dict) + vpcdns_resolution_binding_health_reason_model_dict = VPCDNSResolutionBindingHealthReason.from_dict( + vpcdns_resolution_binding_health_reason_model_json + ).__dict__ + vpcdns_resolution_binding_health_reason_model2 = VPCDNSResolutionBindingHealthReason( + **vpcdns_resolution_binding_health_reason_model_dict + ) # Verify the model instances are equivalent assert vpcdns_resolution_binding_health_reason_model == vpcdns_resolution_binding_health_reason_model2 @@ -75631,12 +80156,18 @@ def test_vpcdns_resolution_binding_patch_serialization(self): vpcdns_resolution_binding_patch_model_json['name'] = 'my-dns-resolution-binding-updated' # Construct a model instance of VPCDNSResolutionBindingPatch by calling from_dict on the json representation - vpcdns_resolution_binding_patch_model = VPCDNSResolutionBindingPatch.from_dict(vpcdns_resolution_binding_patch_model_json) + vpcdns_resolution_binding_patch_model = VPCDNSResolutionBindingPatch.from_dict( + vpcdns_resolution_binding_patch_model_json + ) assert vpcdns_resolution_binding_patch_model != False # Construct a model instance of VPCDNSResolutionBindingPatch by calling from_dict on the json representation - vpcdns_resolution_binding_patch_model_dict = VPCDNSResolutionBindingPatch.from_dict(vpcdns_resolution_binding_patch_model_json).__dict__ - vpcdns_resolution_binding_patch_model2 = VPCDNSResolutionBindingPatch(**vpcdns_resolution_binding_patch_model_dict) + vpcdns_resolution_binding_patch_model_dict = VPCDNSResolutionBindingPatch.from_dict( + vpcdns_resolution_binding_patch_model_json + ).__dict__ + vpcdns_resolution_binding_patch_model2 = VPCDNSResolutionBindingPatch( + **vpcdns_resolution_binding_patch_model_dict + ) # Verify the model instances are equivalent assert vpcdns_resolution_binding_patch_model == vpcdns_resolution_binding_patch_model2 @@ -75703,7 +80234,9 @@ def test_vpc_health_reason_serialization(self): # Construct a json representation of a VPCHealthReason model vpc_health_reason_model_json = {} vpc_health_reason_model_json['code'] = 'dns_resolution_binding_failed' - vpc_health_reason_model_json['message'] = 'The VPC specified in the DNS resolution binding has been disconnected.' + vpc_health_reason_model_json['message'] = ( + 'The VPC specified in the DNS resolution binding has been disconnected.' + ) vpc_health_reason_model_json['more_info'] = 'https://cloud.ibm.com/docs/vpc?topic=vpc-troubleshoot-hub-1' # Construct a model instance of VPCHealthReason by calling from_dict on the json representation @@ -75791,9 +80324,13 @@ def test_vpc_reference_serialization(self): # Construct a json representation of a VPCReference model vpc_reference_model_json = {} - vpc_reference_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_model_json['deleted'] = deleted_model - vpc_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_model_json['id'] = 'r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' vpc_reference_model_json['name'] = 'my-vpc' vpc_reference_model_json['resource_type'] = 'vpc' @@ -75843,21 +80380,31 @@ def test_vpc_reference_dns_resolver_context_serialization(self): # Construct a json representation of a VPCReferenceDNSResolverContext model vpc_reference_dns_resolver_context_model_json = {} - vpc_reference_dns_resolver_context_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_dns_resolver_context_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_dns_resolver_context_model_json['deleted'] = deleted_model - vpc_reference_dns_resolver_context_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_dns_resolver_context_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_dns_resolver_context_model_json['id'] = 'r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' vpc_reference_dns_resolver_context_model_json['name'] = 'my-vpc' vpc_reference_dns_resolver_context_model_json['remote'] = vpc_remote_model vpc_reference_dns_resolver_context_model_json['resource_type'] = 'vpc' # Construct a model instance of VPCReferenceDNSResolverContext by calling from_dict on the json representation - vpc_reference_dns_resolver_context_model = VPCReferenceDNSResolverContext.from_dict(vpc_reference_dns_resolver_context_model_json) + vpc_reference_dns_resolver_context_model = VPCReferenceDNSResolverContext.from_dict( + vpc_reference_dns_resolver_context_model_json + ) assert vpc_reference_dns_resolver_context_model != False # Construct a model instance of VPCReferenceDNSResolverContext by calling from_dict on the json representation - vpc_reference_dns_resolver_context_model_dict = VPCReferenceDNSResolverContext.from_dict(vpc_reference_dns_resolver_context_model_json).__dict__ - vpc_reference_dns_resolver_context_model2 = VPCReferenceDNSResolverContext(**vpc_reference_dns_resolver_context_model_dict) + vpc_reference_dns_resolver_context_model_dict = VPCReferenceDNSResolverContext.from_dict( + vpc_reference_dns_resolver_context_model_json + ).__dict__ + vpc_reference_dns_resolver_context_model2 = VPCReferenceDNSResolverContext( + **vpc_reference_dns_resolver_context_model_dict + ) # Verify the model instances are equivalent assert vpc_reference_dns_resolver_context_model == vpc_reference_dns_resolver_context_model2 @@ -75893,8 +80440,12 @@ def test_vpc_reference_remote_serialization(self): # Construct a json representation of a VPCReferenceRemote model vpc_reference_remote_model_json = {} - vpc_reference_remote_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' - vpc_reference_remote_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_remote_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) + vpc_reference_remote_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_remote_model_json['id'] = 'r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' vpc_reference_remote_model_json['name'] = 'my-vpc' vpc_reference_remote_model_json['remote'] = vpc_remote_model @@ -75977,7 +80528,9 @@ def test_vpn_gateway_collection_serialization(self): vpn_gateway_connection_reference_model = {} # VPNGatewayConnectionReference vpn_gateway_connection_reference_model['deleted'] = deleted_model - vpn_gateway_connection_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b/connections/93487806-7743-4c46-81d6-72869883ea0b' + vpn_gateway_connection_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b/connections/93487806-7743-4c46-81d6-72869883ea0b' + ) vpn_gateway_connection_reference_model['id'] = 'a10a5771-dc23-442c-8460-c3601d8542f7' vpn_gateway_connection_reference_model['name'] = 'my-vpn-connection' vpn_gateway_connection_reference_model['resource_type'] = 'vpn_gateway_connection' @@ -75989,23 +80542,31 @@ def test_vpn_gateway_collection_serialization(self): vpn_gateway_lifecycle_reason_model = {} # VPNGatewayLifecycleReason vpn_gateway_lifecycle_reason_model['code'] = 'resource_suspended_by_provider' - vpn_gateway_lifecycle_reason_model['message'] = 'The resource has been suspended. Contact IBM support with the CRN for next steps.' + vpn_gateway_lifecycle_reason_model['message'] = ( + 'The resource has been suspended. Contact IBM support with the CRN for next steps.' + ) vpn_gateway_lifecycle_reason_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#resource-suspension' vpn_gateway_member_health_reason_model = {} # VPNGatewayMemberHealthReason vpn_gateway_member_health_reason_model['code'] = 'cannot_reserve_ip_address' - vpn_gateway_member_health_reason_model['message'] = 'IP address exhaustion (release addresses on the VPN\'s subnet).' + vpn_gateway_member_health_reason_model['message'] = ( + 'IP address exhaustion (release addresses on the VPN\'s subnet).' + ) vpn_gateway_member_health_reason_model['more_info'] = 'https://cloud.ibm.com/docs/vpc?topic=vpc-vpn-health' vpn_gateway_member_lifecycle_reason_model = {} # VPNGatewayMemberLifecycleReason vpn_gateway_member_lifecycle_reason_model['code'] = 'resource_suspended_by_provider' - vpn_gateway_member_lifecycle_reason_model['message'] = 'The resource has been suspended. Contact IBM support with the CRN for next steps.' + vpn_gateway_member_lifecycle_reason_model['message'] = ( + 'The resource has been suspended. Contact IBM support with the CRN for next steps.' + ) vpn_gateway_member_lifecycle_reason_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#resource-suspension' reserved_ip_reference_model = {} # ReservedIPReference reserved_ip_reference_model['address'] = '192.168.3.4' reserved_ip_reference_model['deleted'] = deleted_model - reserved_ip_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-bea6a632-5e13-42a4-b4b8-31dc877abfe4/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + reserved_ip_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-bea6a632-5e13-42a4-b4b8-31dc877abfe4/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + ) reserved_ip_reference_model['id'] = '0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' reserved_ip_reference_model['name'] = 'my-reserved-ip' reserved_ip_reference_model['resource_type'] = 'subnet_reserved_ip' @@ -76023,22 +80584,32 @@ def test_vpn_gateway_collection_serialization(self): vpn_gateway_member_model['role'] = 'active' resource_group_reference_model = {} # ResourceGroupReference - resource_group_reference_model['href'] = 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + resource_group_reference_model['href'] = ( + 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + ) resource_group_reference_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' resource_group_reference_model['name'] = 'my-resource-group' subnet_reference_model = {} # SubnetReference - subnet_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['deleted'] = deleted_model - subnet_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['id'] = '0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' subnet_reference_model['name'] = 'my-subnet' subnet_reference_model['resource_type'] = 'subnet' vpc_reference_model = {} # VPCReference - vpc_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_model['deleted'] = deleted_model - vpc_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_model['id'] = 'r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' vpc_reference_model['name'] = 'my-vpc' vpc_reference_model['resource_type'] = 'vpc' @@ -76046,10 +80617,14 @@ def test_vpn_gateway_collection_serialization(self): vpn_gateway_model = {} # VPNGatewayRouteMode vpn_gateway_model['connections'] = [vpn_gateway_connection_reference_model] vpn_gateway_model['created_at'] = '2019-01-01T12:00:00Z' - vpn_gateway_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpn:ddf51bec-3424-11e8-b467-0ed5f89f718b' + vpn_gateway_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpn:ddf51bec-3424-11e8-b467-0ed5f89f718b' + ) vpn_gateway_model['health_reasons'] = [vpn_gateway_health_reason_model] vpn_gateway_model['health_state'] = 'ok' - vpn_gateway_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b' + vpn_gateway_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b' + ) vpn_gateway_model['id'] = 'ddf51bec-3424-11e8-b467-0ed5f89f718b' vpn_gateway_model['lifecycle_reasons'] = [vpn_gateway_lifecycle_reason_model] vpn_gateway_model['lifecycle_state'] = 'stable' @@ -76100,11 +80675,15 @@ def test_vpn_gateway_connection_cid_rs_serialization(self): vpn_gateway_connection_cid_rs_model_json['cidrs'] = ['192.168.1.0/24'] # Construct a model instance of VPNGatewayConnectionCIDRs by calling from_dict on the json representation - vpn_gateway_connection_cid_rs_model = VPNGatewayConnectionCIDRs.from_dict(vpn_gateway_connection_cid_rs_model_json) + vpn_gateway_connection_cid_rs_model = VPNGatewayConnectionCIDRs.from_dict( + vpn_gateway_connection_cid_rs_model_json + ) assert vpn_gateway_connection_cid_rs_model != False # Construct a model instance of VPNGatewayConnectionCIDRs by calling from_dict on the json representation - vpn_gateway_connection_cid_rs_model_dict = VPNGatewayConnectionCIDRs.from_dict(vpn_gateway_connection_cid_rs_model_json).__dict__ + vpn_gateway_connection_cid_rs_model_dict = VPNGatewayConnectionCIDRs.from_dict( + vpn_gateway_connection_cid_rs_model_json + ).__dict__ vpn_gateway_connection_cid_rs_model2 = VPNGatewayConnectionCIDRs(**vpn_gateway_connection_cid_rs_model_dict) # Verify the model instances are equivalent @@ -76137,24 +80716,34 @@ def test_vpn_gateway_connection_collection_serialization(self): ike_policy_reference_model = {} # IKEPolicyReference ike_policy_reference_model['deleted'] = deleted_model - ike_policy_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/ike_policies/ddf51bec-3424-11e8-b467-0ed5f89f718b' + ike_policy_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/ike_policies/ddf51bec-3424-11e8-b467-0ed5f89f718b' + ) ike_policy_reference_model['id'] = 'ddf51bec-3424-11e8-b467-0ed5f89f718b' ike_policy_reference_model['name'] = 'my-ike-policy' ike_policy_reference_model['resource_type'] = 'ike_policy' i_psec_policy_reference_model = {} # IPsecPolicyReference i_psec_policy_reference_model['deleted'] = deleted_model - i_psec_policy_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/ipsec_policies/ddf51bec-3424-11e8-b467-0ed5f89f718b' + i_psec_policy_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/ipsec_policies/ddf51bec-3424-11e8-b467-0ed5f89f718b' + ) i_psec_policy_reference_model['id'] = 'ddf51bec-3424-11e8-b467-0ed5f89f718b' i_psec_policy_reference_model['name'] = 'my-ipsec-policy' i_psec_policy_reference_model['resource_type'] = 'ipsec_policy' vpn_gateway_connection_status_reason_model = {} # VPNGatewayConnectionStatusReason vpn_gateway_connection_status_reason_model['code'] = 'cannot_authenticate_connection' - vpn_gateway_connection_status_reason_model['message'] = 'Failed to authenticate a connection because of mismatched IKE ID and PSK.' - vpn_gateway_connection_status_reason_model['more_info'] = 'https://cloud.ibm.com/docs/vpc?topic=vpc-vpn-health#vpn-connection-health' + vpn_gateway_connection_status_reason_model['message'] = ( + 'Failed to authenticate a connection because of mismatched IKE ID and PSK.' + ) + vpn_gateway_connection_status_reason_model['more_info'] = ( + 'https://cloud.ibm.com/docs/vpc?topic=vpc-vpn-health#vpn-connection-health' + ) - vpn_gateway_connection_ike_identity_model = {} # VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityFQDN + vpn_gateway_connection_ike_identity_model = ( + {} + ) # VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityFQDN vpn_gateway_connection_ike_identity_model['type'] = 'ipv4_address' vpn_gateway_connection_ike_identity_model['value'] = '192.0.2.4' @@ -76162,7 +80751,9 @@ def test_vpn_gateway_connection_collection_serialization(self): vpn_gateway_connection_policy_mode_local_model['cidrs'] = ['192.0.2.0/24'] vpn_gateway_connection_policy_mode_local_model['ike_identities'] = [vpn_gateway_connection_ike_identity_model] - vpn_gateway_connection_policy_mode_peer_model = {} # VPNGatewayConnectionPolicyModePeerVPNGatewayConnectionPeerByAddress + vpn_gateway_connection_policy_mode_peer_model = ( + {} + ) # VPNGatewayConnectionPolicyModePeerVPNGatewayConnectionPeerByAddress vpn_gateway_connection_policy_mode_peer_model['cidrs'] = ['192.0.3.0/24'] vpn_gateway_connection_policy_mode_peer_model['ike_identity'] = vpn_gateway_connection_ike_identity_model vpn_gateway_connection_policy_mode_peer_model['type'] = 'address' @@ -76174,7 +80765,9 @@ def test_vpn_gateway_connection_collection_serialization(self): vpn_gateway_connection_model['created_at'] = '2018-12-13T19:40:12.124000Z' vpn_gateway_connection_model['dead_peer_detection'] = vpn_gateway_connection_dpd_model vpn_gateway_connection_model['establish_mode'] = 'peer_only' - vpn_gateway_connection_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/a7d258d5-be1e-491d-83db-526d8d9a2ce9/connections/52f69dc3-6a5c-4bcf-b264-e7fae279b15c' + vpn_gateway_connection_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/a7d258d5-be1e-491d-83db-526d8d9a2ce9/connections/52f69dc3-6a5c-4bcf-b264-e7fae279b15c' + ) vpn_gateway_connection_model['id'] = '52f69dc3-6a5c-4bcf-b264-e7fae279b15c' vpn_gateway_connection_model['ike_policy'] = ike_policy_reference_model vpn_gateway_connection_model['ipsec_policy'] = i_psec_policy_reference_model @@ -76188,7 +80781,9 @@ def test_vpn_gateway_connection_collection_serialization(self): vpn_gateway_connection_model['peer'] = vpn_gateway_connection_policy_mode_peer_model page_link_model = {} # PageLink - page_link_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/a7d258d5-be1e-491d-83db-526d8d9a2ce9/connections?limit=20' + page_link_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/a7d258d5-be1e-491d-83db-526d8d9a2ce9/connections?limit=20' + ) # Construct a json representation of a VPNGatewayConnectionCollection model vpn_gateway_connection_collection_model_json = {} @@ -76199,12 +80794,18 @@ def test_vpn_gateway_connection_collection_serialization(self): vpn_gateway_connection_collection_model_json['total_count'] = 132 # Construct a model instance of VPNGatewayConnectionCollection by calling from_dict on the json representation - vpn_gateway_connection_collection_model = VPNGatewayConnectionCollection.from_dict(vpn_gateway_connection_collection_model_json) + vpn_gateway_connection_collection_model = VPNGatewayConnectionCollection.from_dict( + vpn_gateway_connection_collection_model_json + ) assert vpn_gateway_connection_collection_model != False # Construct a model instance of VPNGatewayConnectionCollection by calling from_dict on the json representation - vpn_gateway_connection_collection_model_dict = VPNGatewayConnectionCollection.from_dict(vpn_gateway_connection_collection_model_json).__dict__ - vpn_gateway_connection_collection_model2 = VPNGatewayConnectionCollection(**vpn_gateway_connection_collection_model_dict) + vpn_gateway_connection_collection_model_dict = VPNGatewayConnectionCollection.from_dict( + vpn_gateway_connection_collection_model_json + ).__dict__ + vpn_gateway_connection_collection_model2 = VPNGatewayConnectionCollection( + **vpn_gateway_connection_collection_model_dict + ) # Verify the model instances are equivalent assert vpn_gateway_connection_collection_model == vpn_gateway_connection_collection_model2 @@ -76235,7 +80836,9 @@ def test_vpn_gateway_connection_dpd_serialization(self): assert vpn_gateway_connection_dpd_model != False # Construct a model instance of VPNGatewayConnectionDPD by calling from_dict on the json representation - vpn_gateway_connection_dpd_model_dict = VPNGatewayConnectionDPD.from_dict(vpn_gateway_connection_dpd_model_json).__dict__ + vpn_gateway_connection_dpd_model_dict = VPNGatewayConnectionDPD.from_dict( + vpn_gateway_connection_dpd_model_json + ).__dict__ vpn_gateway_connection_dpd_model2 = VPNGatewayConnectionDPD(**vpn_gateway_connection_dpd_model_dict) # Verify the model instances are equivalent @@ -76263,12 +80866,18 @@ def test_vpn_gateway_connection_dpd_patch_serialization(self): vpn_gateway_connection_dpd_patch_model_json['timeout'] = 120 # Construct a model instance of VPNGatewayConnectionDPDPatch by calling from_dict on the json representation - vpn_gateway_connection_dpd_patch_model = VPNGatewayConnectionDPDPatch.from_dict(vpn_gateway_connection_dpd_patch_model_json) + vpn_gateway_connection_dpd_patch_model = VPNGatewayConnectionDPDPatch.from_dict( + vpn_gateway_connection_dpd_patch_model_json + ) assert vpn_gateway_connection_dpd_patch_model != False # Construct a model instance of VPNGatewayConnectionDPDPatch by calling from_dict on the json representation - vpn_gateway_connection_dpd_patch_model_dict = VPNGatewayConnectionDPDPatch.from_dict(vpn_gateway_connection_dpd_patch_model_json).__dict__ - vpn_gateway_connection_dpd_patch_model2 = VPNGatewayConnectionDPDPatch(**vpn_gateway_connection_dpd_patch_model_dict) + vpn_gateway_connection_dpd_patch_model_dict = VPNGatewayConnectionDPDPatch.from_dict( + vpn_gateway_connection_dpd_patch_model_json + ).__dict__ + vpn_gateway_connection_dpd_patch_model2 = VPNGatewayConnectionDPDPatch( + **vpn_gateway_connection_dpd_patch_model_dict + ) # Verify the model instances are equivalent assert vpn_gateway_connection_dpd_patch_model == vpn_gateway_connection_dpd_patch_model2 @@ -76295,12 +80904,18 @@ def test_vpn_gateway_connection_dpd_prototype_serialization(self): vpn_gateway_connection_dpd_prototype_model_json['timeout'] = 120 # Construct a model instance of VPNGatewayConnectionDPDPrototype by calling from_dict on the json representation - vpn_gateway_connection_dpd_prototype_model = VPNGatewayConnectionDPDPrototype.from_dict(vpn_gateway_connection_dpd_prototype_model_json) + vpn_gateway_connection_dpd_prototype_model = VPNGatewayConnectionDPDPrototype.from_dict( + vpn_gateway_connection_dpd_prototype_model_json + ) assert vpn_gateway_connection_dpd_prototype_model != False # Construct a model instance of VPNGatewayConnectionDPDPrototype by calling from_dict on the json representation - vpn_gateway_connection_dpd_prototype_model_dict = VPNGatewayConnectionDPDPrototype.from_dict(vpn_gateway_connection_dpd_prototype_model_json).__dict__ - vpn_gateway_connection_dpd_prototype_model2 = VPNGatewayConnectionDPDPrototype(**vpn_gateway_connection_dpd_prototype_model_dict) + vpn_gateway_connection_dpd_prototype_model_dict = VPNGatewayConnectionDPDPrototype.from_dict( + vpn_gateway_connection_dpd_prototype_model_json + ).__dict__ + vpn_gateway_connection_dpd_prototype_model2 = VPNGatewayConnectionDPDPrototype( + **vpn_gateway_connection_dpd_prototype_model_dict + ) # Verify the model instances are equivalent assert vpn_gateway_connection_dpd_prototype_model == vpn_gateway_connection_dpd_prototype_model2 @@ -76330,10 +80945,14 @@ def test_vpn_gateway_connection_patch_serialization(self): vpn_gateway_connection_ike_policy_patch_model = {} # VPNGatewayConnectionIKEPolicyPatchIKEPolicyIdentityById vpn_gateway_connection_ike_policy_patch_model['id'] = 'ddf51bec-3424-11e8-b467-0ed5f89f718b' - vpn_gateway_connection_i_psec_policy_patch_model = {} # VPNGatewayConnectionIPsecPolicyPatchIPsecPolicyIdentityById + vpn_gateway_connection_i_psec_policy_patch_model = ( + {} + ) # VPNGatewayConnectionIPsecPolicyPatchIPsecPolicyIdentityById vpn_gateway_connection_i_psec_policy_patch_model['id'] = 'ddf51bec-3424-11e8-b467-0ed5f89f718b' - vpn_gateway_connection_peer_patch_model = {} # VPNGatewayConnectionPeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPeerAddressPatch + vpn_gateway_connection_peer_patch_model = ( + {} + ) # VPNGatewayConnectionPeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPeerAddressPatch vpn_gateway_connection_peer_patch_model['address'] = '169.21.50.5' # Construct a json representation of a VPNGatewayConnectionPatch model @@ -76349,11 +80968,15 @@ def test_vpn_gateway_connection_patch_serialization(self): vpn_gateway_connection_patch_model_json['psk'] = 'lkj14b1oi0alcniejkso' # Construct a model instance of VPNGatewayConnectionPatch by calling from_dict on the json representation - vpn_gateway_connection_patch_model = VPNGatewayConnectionPatch.from_dict(vpn_gateway_connection_patch_model_json) + vpn_gateway_connection_patch_model = VPNGatewayConnectionPatch.from_dict( + vpn_gateway_connection_patch_model_json + ) assert vpn_gateway_connection_patch_model != False # Construct a model instance of VPNGatewayConnectionPatch by calling from_dict on the json representation - vpn_gateway_connection_patch_model_dict = VPNGatewayConnectionPatch.from_dict(vpn_gateway_connection_patch_model_json).__dict__ + vpn_gateway_connection_patch_model_dict = VPNGatewayConnectionPatch.from_dict( + vpn_gateway_connection_patch_model_json + ).__dict__ vpn_gateway_connection_patch_model2 = VPNGatewayConnectionPatch(**vpn_gateway_connection_patch_model_dict) # Verify the model instances are equivalent @@ -76376,29 +80999,41 @@ def test_vpn_gateway_connection_policy_mode_local_serialization(self): # Construct dict forms of any model objects needed in order to build this model. - vpn_gateway_connection_ike_identity_model = {} # VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityFQDN + vpn_gateway_connection_ike_identity_model = ( + {} + ) # VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityFQDN vpn_gateway_connection_ike_identity_model['type'] = 'fqdn' vpn_gateway_connection_ike_identity_model['value'] = 'my-service.example.com' # Construct a json representation of a VPNGatewayConnectionPolicyModeLocal model vpn_gateway_connection_policy_mode_local_model_json = {} vpn_gateway_connection_policy_mode_local_model_json['cidrs'] = ['192.168.1.0/24'] - vpn_gateway_connection_policy_mode_local_model_json['ike_identities'] = [vpn_gateway_connection_ike_identity_model] + vpn_gateway_connection_policy_mode_local_model_json['ike_identities'] = [ + vpn_gateway_connection_ike_identity_model + ] # Construct a model instance of VPNGatewayConnectionPolicyModeLocal by calling from_dict on the json representation - vpn_gateway_connection_policy_mode_local_model = VPNGatewayConnectionPolicyModeLocal.from_dict(vpn_gateway_connection_policy_mode_local_model_json) + vpn_gateway_connection_policy_mode_local_model = VPNGatewayConnectionPolicyModeLocal.from_dict( + vpn_gateway_connection_policy_mode_local_model_json + ) assert vpn_gateway_connection_policy_mode_local_model != False # Construct a model instance of VPNGatewayConnectionPolicyModeLocal by calling from_dict on the json representation - vpn_gateway_connection_policy_mode_local_model_dict = VPNGatewayConnectionPolicyModeLocal.from_dict(vpn_gateway_connection_policy_mode_local_model_json).__dict__ - vpn_gateway_connection_policy_mode_local_model2 = VPNGatewayConnectionPolicyModeLocal(**vpn_gateway_connection_policy_mode_local_model_dict) + vpn_gateway_connection_policy_mode_local_model_dict = VPNGatewayConnectionPolicyModeLocal.from_dict( + vpn_gateway_connection_policy_mode_local_model_json + ).__dict__ + vpn_gateway_connection_policy_mode_local_model2 = VPNGatewayConnectionPolicyModeLocal( + **vpn_gateway_connection_policy_mode_local_model_dict + ) # Verify the model instances are equivalent assert vpn_gateway_connection_policy_mode_local_model == vpn_gateway_connection_policy_mode_local_model2 # Convert model instance back to dict and verify no loss of data vpn_gateway_connection_policy_mode_local_model_json2 = vpn_gateway_connection_policy_mode_local_model.to_dict() - assert vpn_gateway_connection_policy_mode_local_model_json2 == vpn_gateway_connection_policy_mode_local_model_json + assert ( + vpn_gateway_connection_policy_mode_local_model_json2 == vpn_gateway_connection_policy_mode_local_model_json + ) class TestModel_VPNGatewayConnectionPolicyModeLocalPrototype: @@ -76413,29 +81048,51 @@ def test_vpn_gateway_connection_policy_mode_local_prototype_serialization(self): # Construct dict forms of any model objects needed in order to build this model. - vpn_gateway_connection_ike_identity_prototype_model = {} # VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityFQDN + vpn_gateway_connection_ike_identity_prototype_model = ( + {} + ) # VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityFQDN vpn_gateway_connection_ike_identity_prototype_model['type'] = 'fqdn' vpn_gateway_connection_ike_identity_prototype_model['value'] = 'my-service.example.com' # Construct a json representation of a VPNGatewayConnectionPolicyModeLocalPrototype model vpn_gateway_connection_policy_mode_local_prototype_model_json = {} vpn_gateway_connection_policy_mode_local_prototype_model_json['cidrs'] = ['192.168.1.0/24'] - vpn_gateway_connection_policy_mode_local_prototype_model_json['ike_identities'] = [vpn_gateway_connection_ike_identity_prototype_model] + vpn_gateway_connection_policy_mode_local_prototype_model_json['ike_identities'] = [ + vpn_gateway_connection_ike_identity_prototype_model + ] # Construct a model instance of VPNGatewayConnectionPolicyModeLocalPrototype by calling from_dict on the json representation - vpn_gateway_connection_policy_mode_local_prototype_model = VPNGatewayConnectionPolicyModeLocalPrototype.from_dict(vpn_gateway_connection_policy_mode_local_prototype_model_json) + vpn_gateway_connection_policy_mode_local_prototype_model = ( + VPNGatewayConnectionPolicyModeLocalPrototype.from_dict( + vpn_gateway_connection_policy_mode_local_prototype_model_json + ) + ) assert vpn_gateway_connection_policy_mode_local_prototype_model != False # Construct a model instance of VPNGatewayConnectionPolicyModeLocalPrototype by calling from_dict on the json representation - vpn_gateway_connection_policy_mode_local_prototype_model_dict = VPNGatewayConnectionPolicyModeLocalPrototype.from_dict(vpn_gateway_connection_policy_mode_local_prototype_model_json).__dict__ - vpn_gateway_connection_policy_mode_local_prototype_model2 = VPNGatewayConnectionPolicyModeLocalPrototype(**vpn_gateway_connection_policy_mode_local_prototype_model_dict) + vpn_gateway_connection_policy_mode_local_prototype_model_dict = ( + VPNGatewayConnectionPolicyModeLocalPrototype.from_dict( + vpn_gateway_connection_policy_mode_local_prototype_model_json + ).__dict__ + ) + vpn_gateway_connection_policy_mode_local_prototype_model2 = VPNGatewayConnectionPolicyModeLocalPrototype( + **vpn_gateway_connection_policy_mode_local_prototype_model_dict + ) # Verify the model instances are equivalent - assert vpn_gateway_connection_policy_mode_local_prototype_model == vpn_gateway_connection_policy_mode_local_prototype_model2 + assert ( + vpn_gateway_connection_policy_mode_local_prototype_model + == vpn_gateway_connection_policy_mode_local_prototype_model2 + ) # Convert model instance back to dict and verify no loss of data - vpn_gateway_connection_policy_mode_local_prototype_model_json2 = vpn_gateway_connection_policy_mode_local_prototype_model.to_dict() - assert vpn_gateway_connection_policy_mode_local_prototype_model_json2 == vpn_gateway_connection_policy_mode_local_prototype_model_json + vpn_gateway_connection_policy_mode_local_prototype_model_json2 = ( + vpn_gateway_connection_policy_mode_local_prototype_model.to_dict() + ) + assert ( + vpn_gateway_connection_policy_mode_local_prototype_model_json2 + == vpn_gateway_connection_policy_mode_local_prototype_model_json + ) class TestModel_VPNGatewayConnectionReference: @@ -76456,18 +81113,26 @@ def test_vpn_gateway_connection_reference_serialization(self): # Construct a json representation of a VPNGatewayConnectionReference model vpn_gateway_connection_reference_model_json = {} vpn_gateway_connection_reference_model_json['deleted'] = deleted_model - vpn_gateway_connection_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b/connections/93487806-7743-4c46-81d6-72869883ea0b' + vpn_gateway_connection_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b/connections/93487806-7743-4c46-81d6-72869883ea0b' + ) vpn_gateway_connection_reference_model_json['id'] = 'a10a5771-dc23-442c-8460-c3601d8542f7' vpn_gateway_connection_reference_model_json['name'] = 'my-vpn-connection' vpn_gateway_connection_reference_model_json['resource_type'] = 'vpn_gateway_connection' # Construct a model instance of VPNGatewayConnectionReference by calling from_dict on the json representation - vpn_gateway_connection_reference_model = VPNGatewayConnectionReference.from_dict(vpn_gateway_connection_reference_model_json) + vpn_gateway_connection_reference_model = VPNGatewayConnectionReference.from_dict( + vpn_gateway_connection_reference_model_json + ) assert vpn_gateway_connection_reference_model != False # Construct a model instance of VPNGatewayConnectionReference by calling from_dict on the json representation - vpn_gateway_connection_reference_model_dict = VPNGatewayConnectionReference.from_dict(vpn_gateway_connection_reference_model_json).__dict__ - vpn_gateway_connection_reference_model2 = VPNGatewayConnectionReference(**vpn_gateway_connection_reference_model_dict) + vpn_gateway_connection_reference_model_dict = VPNGatewayConnectionReference.from_dict( + vpn_gateway_connection_reference_model_json + ).__dict__ + vpn_gateway_connection_reference_model2 = VPNGatewayConnectionReference( + **vpn_gateway_connection_reference_model_dict + ) # Verify the model instances are equivalent assert vpn_gateway_connection_reference_model == vpn_gateway_connection_reference_model2 @@ -76489,28 +81154,46 @@ def test_vpn_gateway_connection_static_route_mode_local_serialization(self): # Construct dict forms of any model objects needed in order to build this model. - vpn_gateway_connection_ike_identity_model = {} # VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityFQDN + vpn_gateway_connection_ike_identity_model = ( + {} + ) # VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityFQDN vpn_gateway_connection_ike_identity_model['type'] = 'fqdn' vpn_gateway_connection_ike_identity_model['value'] = 'my-service.example.com' # Construct a json representation of a VPNGatewayConnectionStaticRouteModeLocal model vpn_gateway_connection_static_route_mode_local_model_json = {} - vpn_gateway_connection_static_route_mode_local_model_json['ike_identities'] = [vpn_gateway_connection_ike_identity_model] + vpn_gateway_connection_static_route_mode_local_model_json['ike_identities'] = [ + vpn_gateway_connection_ike_identity_model + ] # Construct a model instance of VPNGatewayConnectionStaticRouteModeLocal by calling from_dict on the json representation - vpn_gateway_connection_static_route_mode_local_model = VPNGatewayConnectionStaticRouteModeLocal.from_dict(vpn_gateway_connection_static_route_mode_local_model_json) + vpn_gateway_connection_static_route_mode_local_model = VPNGatewayConnectionStaticRouteModeLocal.from_dict( + vpn_gateway_connection_static_route_mode_local_model_json + ) assert vpn_gateway_connection_static_route_mode_local_model != False # Construct a model instance of VPNGatewayConnectionStaticRouteModeLocal by calling from_dict on the json representation - vpn_gateway_connection_static_route_mode_local_model_dict = VPNGatewayConnectionStaticRouteModeLocal.from_dict(vpn_gateway_connection_static_route_mode_local_model_json).__dict__ - vpn_gateway_connection_static_route_mode_local_model2 = VPNGatewayConnectionStaticRouteModeLocal(**vpn_gateway_connection_static_route_mode_local_model_dict) + vpn_gateway_connection_static_route_mode_local_model_dict = VPNGatewayConnectionStaticRouteModeLocal.from_dict( + vpn_gateway_connection_static_route_mode_local_model_json + ).__dict__ + vpn_gateway_connection_static_route_mode_local_model2 = VPNGatewayConnectionStaticRouteModeLocal( + **vpn_gateway_connection_static_route_mode_local_model_dict + ) # Verify the model instances are equivalent - assert vpn_gateway_connection_static_route_mode_local_model == vpn_gateway_connection_static_route_mode_local_model2 + assert ( + vpn_gateway_connection_static_route_mode_local_model + == vpn_gateway_connection_static_route_mode_local_model2 + ) # Convert model instance back to dict and verify no loss of data - vpn_gateway_connection_static_route_mode_local_model_json2 = vpn_gateway_connection_static_route_mode_local_model.to_dict() - assert vpn_gateway_connection_static_route_mode_local_model_json2 == vpn_gateway_connection_static_route_mode_local_model_json + vpn_gateway_connection_static_route_mode_local_model_json2 = ( + vpn_gateway_connection_static_route_mode_local_model.to_dict() + ) + assert ( + vpn_gateway_connection_static_route_mode_local_model_json2 + == vpn_gateway_connection_static_route_mode_local_model_json + ) class TestModel_VPNGatewayConnectionStaticRouteModeLocalPrototype: @@ -76525,28 +81208,52 @@ def test_vpn_gateway_connection_static_route_mode_local_prototype_serialization( # Construct dict forms of any model objects needed in order to build this model. - vpn_gateway_connection_ike_identity_prototype_model = {} # VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityFQDN + vpn_gateway_connection_ike_identity_prototype_model = ( + {} + ) # VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityFQDN vpn_gateway_connection_ike_identity_prototype_model['type'] = 'fqdn' vpn_gateway_connection_ike_identity_prototype_model['value'] = 'my-service.example.com' # Construct a json representation of a VPNGatewayConnectionStaticRouteModeLocalPrototype model vpn_gateway_connection_static_route_mode_local_prototype_model_json = {} - vpn_gateway_connection_static_route_mode_local_prototype_model_json['ike_identities'] = [vpn_gateway_connection_ike_identity_prototype_model] + vpn_gateway_connection_static_route_mode_local_prototype_model_json['ike_identities'] = [ + vpn_gateway_connection_ike_identity_prototype_model + ] # Construct a model instance of VPNGatewayConnectionStaticRouteModeLocalPrototype by calling from_dict on the json representation - vpn_gateway_connection_static_route_mode_local_prototype_model = VPNGatewayConnectionStaticRouteModeLocalPrototype.from_dict(vpn_gateway_connection_static_route_mode_local_prototype_model_json) + vpn_gateway_connection_static_route_mode_local_prototype_model = ( + VPNGatewayConnectionStaticRouteModeLocalPrototype.from_dict( + vpn_gateway_connection_static_route_mode_local_prototype_model_json + ) + ) assert vpn_gateway_connection_static_route_mode_local_prototype_model != False # Construct a model instance of VPNGatewayConnectionStaticRouteModeLocalPrototype by calling from_dict on the json representation - vpn_gateway_connection_static_route_mode_local_prototype_model_dict = VPNGatewayConnectionStaticRouteModeLocalPrototype.from_dict(vpn_gateway_connection_static_route_mode_local_prototype_model_json).__dict__ - vpn_gateway_connection_static_route_mode_local_prototype_model2 = VPNGatewayConnectionStaticRouteModeLocalPrototype(**vpn_gateway_connection_static_route_mode_local_prototype_model_dict) + vpn_gateway_connection_static_route_mode_local_prototype_model_dict = ( + VPNGatewayConnectionStaticRouteModeLocalPrototype.from_dict( + vpn_gateway_connection_static_route_mode_local_prototype_model_json + ).__dict__ + ) + vpn_gateway_connection_static_route_mode_local_prototype_model2 = ( + VPNGatewayConnectionStaticRouteModeLocalPrototype( + **vpn_gateway_connection_static_route_mode_local_prototype_model_dict + ) + ) # Verify the model instances are equivalent - assert vpn_gateway_connection_static_route_mode_local_prototype_model == vpn_gateway_connection_static_route_mode_local_prototype_model2 + assert ( + vpn_gateway_connection_static_route_mode_local_prototype_model + == vpn_gateway_connection_static_route_mode_local_prototype_model2 + ) # Convert model instance back to dict and verify no loss of data - vpn_gateway_connection_static_route_mode_local_prototype_model_json2 = vpn_gateway_connection_static_route_mode_local_prototype_model.to_dict() - assert vpn_gateway_connection_static_route_mode_local_prototype_model_json2 == vpn_gateway_connection_static_route_mode_local_prototype_model_json + vpn_gateway_connection_static_route_mode_local_prototype_model_json2 = ( + vpn_gateway_connection_static_route_mode_local_prototype_model.to_dict() + ) + assert ( + vpn_gateway_connection_static_route_mode_local_prototype_model_json2 + == vpn_gateway_connection_static_route_mode_local_prototype_model_json + ) class TestModel_VPNGatewayConnectionStaticRouteModeTunnel: @@ -76566,29 +81273,51 @@ def test_vpn_gateway_connection_static_route_mode_tunnel_serialization(self): vpn_gateway_connection_tunnel_status_reason_model = {} # VPNGatewayConnectionTunnelStatusReason vpn_gateway_connection_tunnel_status_reason_model['code'] = 'cannot_authenticate_connection' - vpn_gateway_connection_tunnel_status_reason_model['message'] = 'Failed to authenticate a connection because of mismatched IKE ID and PSK.' - vpn_gateway_connection_tunnel_status_reason_model['more_info'] = 'https://cloud.ibm.com/docs/vpc?topic=vpc-vpn-health#vpn-connection-health' + vpn_gateway_connection_tunnel_status_reason_model['message'] = ( + 'Failed to authenticate a connection because of mismatched IKE ID and PSK.' + ) + vpn_gateway_connection_tunnel_status_reason_model['more_info'] = ( + 'https://cloud.ibm.com/docs/vpc?topic=vpc-vpn-health#vpn-connection-health' + ) # Construct a json representation of a VPNGatewayConnectionStaticRouteModeTunnel model vpn_gateway_connection_static_route_mode_tunnel_model_json = {} vpn_gateway_connection_static_route_mode_tunnel_model_json['public_ip'] = ip_model vpn_gateway_connection_static_route_mode_tunnel_model_json['status'] = 'down' - vpn_gateway_connection_static_route_mode_tunnel_model_json['status_reasons'] = [vpn_gateway_connection_tunnel_status_reason_model] + vpn_gateway_connection_static_route_mode_tunnel_model_json['status_reasons'] = [ + vpn_gateway_connection_tunnel_status_reason_model + ] # Construct a model instance of VPNGatewayConnectionStaticRouteModeTunnel by calling from_dict on the json representation - vpn_gateway_connection_static_route_mode_tunnel_model = VPNGatewayConnectionStaticRouteModeTunnel.from_dict(vpn_gateway_connection_static_route_mode_tunnel_model_json) + vpn_gateway_connection_static_route_mode_tunnel_model = VPNGatewayConnectionStaticRouteModeTunnel.from_dict( + vpn_gateway_connection_static_route_mode_tunnel_model_json + ) assert vpn_gateway_connection_static_route_mode_tunnel_model != False # Construct a model instance of VPNGatewayConnectionStaticRouteModeTunnel by calling from_dict on the json representation - vpn_gateway_connection_static_route_mode_tunnel_model_dict = VPNGatewayConnectionStaticRouteModeTunnel.from_dict(vpn_gateway_connection_static_route_mode_tunnel_model_json).__dict__ - vpn_gateway_connection_static_route_mode_tunnel_model2 = VPNGatewayConnectionStaticRouteModeTunnel(**vpn_gateway_connection_static_route_mode_tunnel_model_dict) + vpn_gateway_connection_static_route_mode_tunnel_model_dict = ( + VPNGatewayConnectionStaticRouteModeTunnel.from_dict( + vpn_gateway_connection_static_route_mode_tunnel_model_json + ).__dict__ + ) + vpn_gateway_connection_static_route_mode_tunnel_model2 = VPNGatewayConnectionStaticRouteModeTunnel( + **vpn_gateway_connection_static_route_mode_tunnel_model_dict + ) # Verify the model instances are equivalent - assert vpn_gateway_connection_static_route_mode_tunnel_model == vpn_gateway_connection_static_route_mode_tunnel_model2 + assert ( + vpn_gateway_connection_static_route_mode_tunnel_model + == vpn_gateway_connection_static_route_mode_tunnel_model2 + ) # Convert model instance back to dict and verify no loss of data - vpn_gateway_connection_static_route_mode_tunnel_model_json2 = vpn_gateway_connection_static_route_mode_tunnel_model.to_dict() - assert vpn_gateway_connection_static_route_mode_tunnel_model_json2 == vpn_gateway_connection_static_route_mode_tunnel_model_json + vpn_gateway_connection_static_route_mode_tunnel_model_json2 = ( + vpn_gateway_connection_static_route_mode_tunnel_model.to_dict() + ) + assert ( + vpn_gateway_connection_static_route_mode_tunnel_model_json2 + == vpn_gateway_connection_static_route_mode_tunnel_model_json + ) class TestModel_VPNGatewayConnectionStatusReason: @@ -76604,16 +81333,26 @@ def test_vpn_gateway_connection_status_reason_serialization(self): # Construct a json representation of a VPNGatewayConnectionStatusReason model vpn_gateway_connection_status_reason_model_json = {} vpn_gateway_connection_status_reason_model_json['code'] = 'cannot_authenticate_connection' - vpn_gateway_connection_status_reason_model_json['message'] = 'Failed to authenticate a connection because of mismatched IKE ID and PSK.' - vpn_gateway_connection_status_reason_model_json['more_info'] = 'https://cloud.ibm.com/docs/vpc?topic=vpc-vpn-health#vpn-connection-health' + vpn_gateway_connection_status_reason_model_json['message'] = ( + 'Failed to authenticate a connection because of mismatched IKE ID and PSK.' + ) + vpn_gateway_connection_status_reason_model_json['more_info'] = ( + 'https://cloud.ibm.com/docs/vpc?topic=vpc-vpn-health#vpn-connection-health' + ) # Construct a model instance of VPNGatewayConnectionStatusReason by calling from_dict on the json representation - vpn_gateway_connection_status_reason_model = VPNGatewayConnectionStatusReason.from_dict(vpn_gateway_connection_status_reason_model_json) + vpn_gateway_connection_status_reason_model = VPNGatewayConnectionStatusReason.from_dict( + vpn_gateway_connection_status_reason_model_json + ) assert vpn_gateway_connection_status_reason_model != False # Construct a model instance of VPNGatewayConnectionStatusReason by calling from_dict on the json representation - vpn_gateway_connection_status_reason_model_dict = VPNGatewayConnectionStatusReason.from_dict(vpn_gateway_connection_status_reason_model_json).__dict__ - vpn_gateway_connection_status_reason_model2 = VPNGatewayConnectionStatusReason(**vpn_gateway_connection_status_reason_model_dict) + vpn_gateway_connection_status_reason_model_dict = VPNGatewayConnectionStatusReason.from_dict( + vpn_gateway_connection_status_reason_model_json + ).__dict__ + vpn_gateway_connection_status_reason_model2 = VPNGatewayConnectionStatusReason( + **vpn_gateway_connection_status_reason_model_dict + ) # Verify the model instances are equivalent assert vpn_gateway_connection_status_reason_model == vpn_gateway_connection_status_reason_model2 @@ -76636,23 +81375,38 @@ def test_vpn_gateway_connection_tunnel_status_reason_serialization(self): # Construct a json representation of a VPNGatewayConnectionTunnelStatusReason model vpn_gateway_connection_tunnel_status_reason_model_json = {} vpn_gateway_connection_tunnel_status_reason_model_json['code'] = 'cannot_authenticate_connection' - vpn_gateway_connection_tunnel_status_reason_model_json['message'] = 'Failed to authenticate a connection because of mismatched IKE ID and PSK.' - vpn_gateway_connection_tunnel_status_reason_model_json['more_info'] = 'https://cloud.ibm.com/docs/vpc?topic=vpc-vpn-health#vpn-connection-health' + vpn_gateway_connection_tunnel_status_reason_model_json['message'] = ( + 'Failed to authenticate a connection because of mismatched IKE ID and PSK.' + ) + vpn_gateway_connection_tunnel_status_reason_model_json['more_info'] = ( + 'https://cloud.ibm.com/docs/vpc?topic=vpc-vpn-health#vpn-connection-health' + ) # Construct a model instance of VPNGatewayConnectionTunnelStatusReason by calling from_dict on the json representation - vpn_gateway_connection_tunnel_status_reason_model = VPNGatewayConnectionTunnelStatusReason.from_dict(vpn_gateway_connection_tunnel_status_reason_model_json) + vpn_gateway_connection_tunnel_status_reason_model = VPNGatewayConnectionTunnelStatusReason.from_dict( + vpn_gateway_connection_tunnel_status_reason_model_json + ) assert vpn_gateway_connection_tunnel_status_reason_model != False # Construct a model instance of VPNGatewayConnectionTunnelStatusReason by calling from_dict on the json representation - vpn_gateway_connection_tunnel_status_reason_model_dict = VPNGatewayConnectionTunnelStatusReason.from_dict(vpn_gateway_connection_tunnel_status_reason_model_json).__dict__ - vpn_gateway_connection_tunnel_status_reason_model2 = VPNGatewayConnectionTunnelStatusReason(**vpn_gateway_connection_tunnel_status_reason_model_dict) + vpn_gateway_connection_tunnel_status_reason_model_dict = VPNGatewayConnectionTunnelStatusReason.from_dict( + vpn_gateway_connection_tunnel_status_reason_model_json + ).__dict__ + vpn_gateway_connection_tunnel_status_reason_model2 = VPNGatewayConnectionTunnelStatusReason( + **vpn_gateway_connection_tunnel_status_reason_model_dict + ) # Verify the model instances are equivalent assert vpn_gateway_connection_tunnel_status_reason_model == vpn_gateway_connection_tunnel_status_reason_model2 # Convert model instance back to dict and verify no loss of data - vpn_gateway_connection_tunnel_status_reason_model_json2 = vpn_gateway_connection_tunnel_status_reason_model.to_dict() - assert vpn_gateway_connection_tunnel_status_reason_model_json2 == vpn_gateway_connection_tunnel_status_reason_model_json + vpn_gateway_connection_tunnel_status_reason_model_json2 = ( + vpn_gateway_connection_tunnel_status_reason_model.to_dict() + ) + assert ( + vpn_gateway_connection_tunnel_status_reason_model_json2 + == vpn_gateway_connection_tunnel_status_reason_model_json + ) class TestModel_VPNGatewayHealthReason: @@ -76668,7 +81422,9 @@ def test_vpn_gateway_health_reason_serialization(self): # Construct a json representation of a VPNGatewayHealthReason model vpn_gateway_health_reason_model_json = {} vpn_gateway_health_reason_model_json['code'] = 'cannot_reserve_ip_address' - vpn_gateway_health_reason_model_json['message'] = 'IP address exhaustion (release addresses on the VPN\'s subnet).' + vpn_gateway_health_reason_model_json['message'] = ( + 'IP address exhaustion (release addresses on the VPN\'s subnet).' + ) vpn_gateway_health_reason_model_json['more_info'] = 'https://cloud.ibm.com/docs/vpc?topic=vpc-vpn-health' # Construct a model instance of VPNGatewayHealthReason by calling from_dict on the json representation @@ -76676,7 +81432,9 @@ def test_vpn_gateway_health_reason_serialization(self): assert vpn_gateway_health_reason_model != False # Construct a model instance of VPNGatewayHealthReason by calling from_dict on the json representation - vpn_gateway_health_reason_model_dict = VPNGatewayHealthReason.from_dict(vpn_gateway_health_reason_model_json).__dict__ + vpn_gateway_health_reason_model_dict = VPNGatewayHealthReason.from_dict( + vpn_gateway_health_reason_model_json + ).__dict__ vpn_gateway_health_reason_model2 = VPNGatewayHealthReason(**vpn_gateway_health_reason_model_dict) # Verify the model instances are equivalent @@ -76700,15 +81458,21 @@ def test_vpn_gateway_lifecycle_reason_serialization(self): # Construct a json representation of a VPNGatewayLifecycleReason model vpn_gateway_lifecycle_reason_model_json = {} vpn_gateway_lifecycle_reason_model_json['code'] = 'resource_suspended_by_provider' - vpn_gateway_lifecycle_reason_model_json['message'] = 'The resource has been suspended. Contact IBM support with the CRN for next steps.' + vpn_gateway_lifecycle_reason_model_json['message'] = ( + 'The resource has been suspended. Contact IBM support with the CRN for next steps.' + ) vpn_gateway_lifecycle_reason_model_json['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#resource-suspension' # Construct a model instance of VPNGatewayLifecycleReason by calling from_dict on the json representation - vpn_gateway_lifecycle_reason_model = VPNGatewayLifecycleReason.from_dict(vpn_gateway_lifecycle_reason_model_json) + vpn_gateway_lifecycle_reason_model = VPNGatewayLifecycleReason.from_dict( + vpn_gateway_lifecycle_reason_model_json + ) assert vpn_gateway_lifecycle_reason_model != False # Construct a model instance of VPNGatewayLifecycleReason by calling from_dict on the json representation - vpn_gateway_lifecycle_reason_model_dict = VPNGatewayLifecycleReason.from_dict(vpn_gateway_lifecycle_reason_model_json).__dict__ + vpn_gateway_lifecycle_reason_model_dict = VPNGatewayLifecycleReason.from_dict( + vpn_gateway_lifecycle_reason_model_json + ).__dict__ vpn_gateway_lifecycle_reason_model2 = VPNGatewayLifecycleReason(**vpn_gateway_lifecycle_reason_model_dict) # Verify the model instances are equivalent @@ -76733,12 +81497,16 @@ def test_vpn_gateway_member_serialization(self): vpn_gateway_member_health_reason_model = {} # VPNGatewayMemberHealthReason vpn_gateway_member_health_reason_model['code'] = 'cannot_reserve_ip_address' - vpn_gateway_member_health_reason_model['message'] = 'IP address exhaustion (release addresses on the VPN\'s subnet).' + vpn_gateway_member_health_reason_model['message'] = ( + 'IP address exhaustion (release addresses on the VPN\'s subnet).' + ) vpn_gateway_member_health_reason_model['more_info'] = 'https://cloud.ibm.com/docs/vpc?topic=vpc-vpn-health' vpn_gateway_member_lifecycle_reason_model = {} # VPNGatewayMemberLifecycleReason vpn_gateway_member_lifecycle_reason_model['code'] = 'resource_suspended_by_provider' - vpn_gateway_member_lifecycle_reason_model['message'] = 'The resource has been suspended. Contact IBM support with the CRN for next steps.' + vpn_gateway_member_lifecycle_reason_model['message'] = ( + 'The resource has been suspended. Contact IBM support with the CRN for next steps.' + ) vpn_gateway_member_lifecycle_reason_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#resource-suspension' deleted_model = {} # Deleted @@ -76747,7 +81515,9 @@ def test_vpn_gateway_member_serialization(self): reserved_ip_reference_model = {} # ReservedIPReference reserved_ip_reference_model['address'] = '192.168.3.4' reserved_ip_reference_model['deleted'] = deleted_model - reserved_ip_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-bea6a632-5e13-42a4-b4b8-31dc877abfe4/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + reserved_ip_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-bea6a632-5e13-42a4-b4b8-31dc877abfe4/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + ) reserved_ip_reference_model['id'] = '0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' reserved_ip_reference_model['name'] = 'my-reserved-ip' reserved_ip_reference_model['resource_type'] = 'subnet_reserved_ip' @@ -76794,16 +81564,24 @@ def test_vpn_gateway_member_health_reason_serialization(self): # Construct a json representation of a VPNGatewayMemberHealthReason model vpn_gateway_member_health_reason_model_json = {} vpn_gateway_member_health_reason_model_json['code'] = 'cannot_reserve_ip_address' - vpn_gateway_member_health_reason_model_json['message'] = 'IP address exhaustion (release addresses on the VPN\'s subnet).' + vpn_gateway_member_health_reason_model_json['message'] = ( + 'IP address exhaustion (release addresses on the VPN\'s subnet).' + ) vpn_gateway_member_health_reason_model_json['more_info'] = 'https://cloud.ibm.com/docs/vpc?topic=vpc-vpn-health' # Construct a model instance of VPNGatewayMemberHealthReason by calling from_dict on the json representation - vpn_gateway_member_health_reason_model = VPNGatewayMemberHealthReason.from_dict(vpn_gateway_member_health_reason_model_json) + vpn_gateway_member_health_reason_model = VPNGatewayMemberHealthReason.from_dict( + vpn_gateway_member_health_reason_model_json + ) assert vpn_gateway_member_health_reason_model != False # Construct a model instance of VPNGatewayMemberHealthReason by calling from_dict on the json representation - vpn_gateway_member_health_reason_model_dict = VPNGatewayMemberHealthReason.from_dict(vpn_gateway_member_health_reason_model_json).__dict__ - vpn_gateway_member_health_reason_model2 = VPNGatewayMemberHealthReason(**vpn_gateway_member_health_reason_model_dict) + vpn_gateway_member_health_reason_model_dict = VPNGatewayMemberHealthReason.from_dict( + vpn_gateway_member_health_reason_model_json + ).__dict__ + vpn_gateway_member_health_reason_model2 = VPNGatewayMemberHealthReason( + **vpn_gateway_member_health_reason_model_dict + ) # Verify the model instances are equivalent assert vpn_gateway_member_health_reason_model == vpn_gateway_member_health_reason_model2 @@ -76826,16 +81604,26 @@ def test_vpn_gateway_member_lifecycle_reason_serialization(self): # Construct a json representation of a VPNGatewayMemberLifecycleReason model vpn_gateway_member_lifecycle_reason_model_json = {} vpn_gateway_member_lifecycle_reason_model_json['code'] = 'resource_suspended_by_provider' - vpn_gateway_member_lifecycle_reason_model_json['message'] = 'The resource has been suspended. Contact IBM support with the CRN for next steps.' - vpn_gateway_member_lifecycle_reason_model_json['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#resource-suspension' + vpn_gateway_member_lifecycle_reason_model_json['message'] = ( + 'The resource has been suspended. Contact IBM support with the CRN for next steps.' + ) + vpn_gateway_member_lifecycle_reason_model_json['more_info'] = ( + 'https://cloud.ibm.com/apidocs/vpc#resource-suspension' + ) # Construct a model instance of VPNGatewayMemberLifecycleReason by calling from_dict on the json representation - vpn_gateway_member_lifecycle_reason_model = VPNGatewayMemberLifecycleReason.from_dict(vpn_gateway_member_lifecycle_reason_model_json) + vpn_gateway_member_lifecycle_reason_model = VPNGatewayMemberLifecycleReason.from_dict( + vpn_gateway_member_lifecycle_reason_model_json + ) assert vpn_gateway_member_lifecycle_reason_model != False # Construct a model instance of VPNGatewayMemberLifecycleReason by calling from_dict on the json representation - vpn_gateway_member_lifecycle_reason_model_dict = VPNGatewayMemberLifecycleReason.from_dict(vpn_gateway_member_lifecycle_reason_model_json).__dict__ - vpn_gateway_member_lifecycle_reason_model2 = VPNGatewayMemberLifecycleReason(**vpn_gateway_member_lifecycle_reason_model_dict) + vpn_gateway_member_lifecycle_reason_model_dict = VPNGatewayMemberLifecycleReason.from_dict( + vpn_gateway_member_lifecycle_reason_model_json + ).__dict__ + vpn_gateway_member_lifecycle_reason_model2 = VPNGatewayMemberLifecycleReason( + **vpn_gateway_member_lifecycle_reason_model_dict + ) # Verify the model instances are equivalent assert vpn_gateway_member_lifecycle_reason_model == vpn_gateway_member_lifecycle_reason_model2 @@ -76888,7 +81676,9 @@ def test_vpn_server_serialization(self): # Construct dict forms of any model objects needed in order to build this model. certificate_instance_reference_model = {} # CertificateInstanceReference - certificate_instance_reference_model['crn'] = 'crn:v1:bluemix:public:secrets-manager:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:36fa422d-080d-4d83-8d2d-86851b4001df:secret:2e786aab-42fa-63ed-14f8-d66d552f4dd5' + certificate_instance_reference_model['crn'] = ( + 'crn:v1:bluemix:public:secrets-manager:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:36fa422d-080d-4d83-8d2d-86851b4001df:secret:2e786aab-42fa-63ed-14f8-d66d552f4dd5' + ) vpn_server_authentication_by_username_id_provider_model = {} # VPNServerAuthenticationByUsernameIdProviderByIAM vpn_server_authentication_by_username_id_provider_model['provider_type'] = 'iam' @@ -76902,12 +81692,16 @@ def test_vpn_server_serialization(self): vpn_server_health_reason_model = {} # VPNServerHealthReason vpn_server_health_reason_model['code'] = 'cannot_access_server_certificate' - vpn_server_health_reason_model['message'] = 'Failed to get VPN server\'s server certificate from Secrets Manager.' + vpn_server_health_reason_model['message'] = ( + 'Failed to get VPN server\'s server certificate from Secrets Manager.' + ) vpn_server_health_reason_model['more_info'] = 'https://cloud.ibm.com/docs/vpc?topic=vpc-vpn-server-health' vpn_server_lifecycle_reason_model = {} # VPNServerLifecycleReason vpn_server_lifecycle_reason_model['code'] = 'resource_suspended_by_provider' - vpn_server_lifecycle_reason_model['message'] = 'The resource has been suspended. Contact IBM support with the CRN for next steps.' + vpn_server_lifecycle_reason_model['message'] = ( + 'The resource has been suspended. Contact IBM support with the CRN for next steps.' + ) vpn_server_lifecycle_reason_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#resource-suspension' deleted_model = {} # Deleted @@ -76916,35 +81710,51 @@ def test_vpn_server_serialization(self): reserved_ip_reference_model = {} # ReservedIPReference reserved_ip_reference_model['address'] = '192.168.3.4' reserved_ip_reference_model['deleted'] = deleted_model - reserved_ip_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-bea6a632-5e13-42a4-b4b8-31dc877abfe4/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + reserved_ip_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-bea6a632-5e13-42a4-b4b8-31dc877abfe4/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + ) reserved_ip_reference_model['id'] = '0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' reserved_ip_reference_model['name'] = 'my-reserved-ip' reserved_ip_reference_model['resource_type'] = 'subnet_reserved_ip' resource_group_reference_model = {} # ResourceGroupReference - resource_group_reference_model['href'] = 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + resource_group_reference_model['href'] = ( + 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + ) resource_group_reference_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' resource_group_reference_model['name'] = 'my-resource-group' security_group_reference_model = {} # SecurityGroupReference - security_group_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::security-group:r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + security_group_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::security-group:r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + ) security_group_reference_model['deleted'] = deleted_model - security_group_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + security_group_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + ) security_group_reference_model['id'] = 'r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' security_group_reference_model['name'] = 'my-security-group' subnet_reference_model = {} # SubnetReference - subnet_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['deleted'] = deleted_model - subnet_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['id'] = '0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' subnet_reference_model['name'] = 'my-subnet' subnet_reference_model['resource_type'] = 'subnet' vpc_reference_model = {} # VPCReference - vpc_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_model['deleted'] = deleted_model - vpc_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_model['id'] = 'r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' vpc_reference_model['name'] = 'my-vpc' vpc_reference_model['resource_type'] = 'vpc' @@ -76959,12 +81769,16 @@ def test_vpn_server_serialization(self): vpn_server_model_json['client_idle_timeout'] = 600 vpn_server_model_json['client_ip_pool'] = '172.16.0.0/16' vpn_server_model_json['created_at'] = '2019-01-01T12:00:00Z' - vpn_server_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpn-server:r006-d7cc5196-9864-48c4-82d8-3f30da41fcc5' + vpn_server_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpn-server:r006-d7cc5196-9864-48c4-82d8-3f30da41fcc5' + ) vpn_server_model_json['enable_split_tunneling'] = True vpn_server_model_json['health_reasons'] = [vpn_server_health_reason_model] vpn_server_model_json['health_state'] = 'ok' vpn_server_model_json['hostname'] = 'a8506291.us-south.vpn-server.appdomain.cloud' - vpn_server_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpn_servers/r006-d7cc5196-9864-48c4-82d8-3f30da41fcc5' + vpn_server_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpn_servers/r006-d7cc5196-9864-48c4-82d8-3f30da41fcc5' + ) vpn_server_model_json['id'] = 'r006-d7cc5196-9864-48c4-82d8-3f30da41fcc5' vpn_server_model_json['lifecycle_reasons'] = [vpn_server_lifecycle_reason_model] vpn_server_model_json['lifecycle_state'] = 'stable' @@ -77015,7 +81829,9 @@ def test_vpn_server_client_serialization(self): vpn_server_client_model_json['common_name'] = 'testString' vpn_server_client_model_json['created_at'] = '2019-01-01T12:00:00Z' vpn_server_client_model_json['disconnected_at'] = '2019-01-01T12:00:00Z' - vpn_server_client_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpn_servers/8e454ead-0db7-48ac-9a8b-2698d8c470a7/clients/r006-1a15dca5-7e33-45e1-b7c5-bc690e569531' + vpn_server_client_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpn_servers/8e454ead-0db7-48ac-9a8b-2698d8c470a7/clients/r006-1a15dca5-7e33-45e1-b7c5-bc690e569531' + ) vpn_server_client_model_json['id'] = 'r006-1a15dca5-7e33-45e1-b7c5-bc690e569531' vpn_server_client_model_json['remote_ip'] = ip_model vpn_server_client_model_json['remote_port'] = 22 @@ -77059,7 +81875,9 @@ def test_vpn_server_client_collection_serialization(self): vpn_server_client_model['common_name'] = 'testString' vpn_server_client_model['created_at'] = '2019-01-01T12:00:00Z' vpn_server_client_model['disconnected_at'] = '2019-01-01T12:00:00Z' - vpn_server_client_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpn_servers/8e454ead-0db7-48ac-9a8b-2698d8c470a7/clients/r006-1a15dca5-7e33-45e1-b7c5-bc690e569531' + vpn_server_client_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpn_servers/8e454ead-0db7-48ac-9a8b-2698d8c470a7/clients/r006-1a15dca5-7e33-45e1-b7c5-bc690e569531' + ) vpn_server_client_model['id'] = 'r006-1a15dca5-7e33-45e1-b7c5-bc690e569531' vpn_server_client_model['remote_ip'] = ip_model vpn_server_client_model['remote_port'] = 22 @@ -77068,7 +81886,9 @@ def test_vpn_server_client_collection_serialization(self): vpn_server_client_model['username'] = 'testString' page_link_model = {} # PageLink - page_link_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpn_servers/r006-982d72b7-db1b-4606-afb2-ed6bd4b0bed1/r006-1a15dca5-7e33-45e1-b7c5-bc690e569531/clients?limit=20' + page_link_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpn_servers/r006-982d72b7-db1b-4606-afb2-ed6bd4b0bed1/r006-1a15dca5-7e33-45e1-b7c5-bc690e569531/clients?limit=20' + ) # Construct a json representation of a VPNServerClientCollection model vpn_server_client_collection_model_json = {} @@ -77079,11 +81899,15 @@ def test_vpn_server_client_collection_serialization(self): vpn_server_client_collection_model_json['total_count'] = 132 # Construct a model instance of VPNServerClientCollection by calling from_dict on the json representation - vpn_server_client_collection_model = VPNServerClientCollection.from_dict(vpn_server_client_collection_model_json) + vpn_server_client_collection_model = VPNServerClientCollection.from_dict( + vpn_server_client_collection_model_json + ) assert vpn_server_client_collection_model != False # Construct a model instance of VPNServerClientCollection by calling from_dict on the json representation - vpn_server_client_collection_model_dict = VPNServerClientCollection.from_dict(vpn_server_client_collection_model_json).__dict__ + vpn_server_client_collection_model_dict = VPNServerClientCollection.from_dict( + vpn_server_client_collection_model_json + ).__dict__ vpn_server_client_collection_model2 = VPNServerClientCollection(**vpn_server_client_collection_model_dict) # Verify the model instances are equivalent @@ -77110,7 +81934,9 @@ def test_vpn_server_collection_serialization(self): page_link_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpn_servers?limit=20' certificate_instance_reference_model = {} # CertificateInstanceReference - certificate_instance_reference_model['crn'] = 'crn:v1:bluemix:public:secrets-manager:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:36fa422d-080d-4d83-8d2d-86851b4001df:secret:2e786aab-42fa-63ed-14f8-d66d552f4dd5' + certificate_instance_reference_model['crn'] = ( + 'crn:v1:bluemix:public:secrets-manager:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:36fa422d-080d-4d83-8d2d-86851b4001df:secret:2e786aab-42fa-63ed-14f8-d66d552f4dd5' + ) vpn_server_authentication_by_username_id_provider_model = {} # VPNServerAuthenticationByUsernameIdProviderByIAM vpn_server_authentication_by_username_id_provider_model['provider_type'] = 'iam' @@ -77124,12 +81950,16 @@ def test_vpn_server_collection_serialization(self): vpn_server_health_reason_model = {} # VPNServerHealthReason vpn_server_health_reason_model['code'] = 'cannot_access_server_certificate' - vpn_server_health_reason_model['message'] = 'Failed to get VPN server\'s server certificate from Secrets Manager.' + vpn_server_health_reason_model['message'] = ( + 'Failed to get VPN server\'s server certificate from Secrets Manager.' + ) vpn_server_health_reason_model['more_info'] = 'https://cloud.ibm.com/docs/vpc?topic=vpc-vpn-server-health' vpn_server_lifecycle_reason_model = {} # VPNServerLifecycleReason vpn_server_lifecycle_reason_model['code'] = 'resource_suspended_by_provider' - vpn_server_lifecycle_reason_model['message'] = 'The resource has been suspended. Contact IBM support with the CRN for next steps.' + vpn_server_lifecycle_reason_model['message'] = ( + 'The resource has been suspended. Contact IBM support with the CRN for next steps.' + ) vpn_server_lifecycle_reason_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#resource-suspension' deleted_model = {} # Deleted @@ -77138,35 +81968,51 @@ def test_vpn_server_collection_serialization(self): reserved_ip_reference_model = {} # ReservedIPReference reserved_ip_reference_model['address'] = '192.168.3.4' reserved_ip_reference_model['deleted'] = deleted_model - reserved_ip_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-bea6a632-5e13-42a4-b4b8-31dc877abfe4/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + reserved_ip_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-bea6a632-5e13-42a4-b4b8-31dc877abfe4/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + ) reserved_ip_reference_model['id'] = '0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' reserved_ip_reference_model['name'] = 'my-reserved-ip' reserved_ip_reference_model['resource_type'] = 'subnet_reserved_ip' resource_group_reference_model = {} # ResourceGroupReference - resource_group_reference_model['href'] = 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + resource_group_reference_model['href'] = ( + 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + ) resource_group_reference_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' resource_group_reference_model['name'] = 'my-resource-group' security_group_reference_model = {} # SecurityGroupReference - security_group_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::security-group:r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + security_group_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::security-group:r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + ) security_group_reference_model['deleted'] = deleted_model - security_group_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + security_group_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + ) security_group_reference_model['id'] = 'r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' security_group_reference_model['name'] = 'my-security-group' subnet_reference_model = {} # SubnetReference - subnet_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['deleted'] = deleted_model - subnet_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['id'] = '0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' subnet_reference_model['name'] = 'my-subnet' subnet_reference_model['resource_type'] = 'subnet' vpc_reference_model = {} # VPCReference - vpc_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_model['deleted'] = deleted_model - vpc_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_model['id'] = 'r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' vpc_reference_model['name'] = 'my-vpc' vpc_reference_model['resource_type'] = 'vpc' @@ -77180,12 +82026,16 @@ def test_vpn_server_collection_serialization(self): vpn_server_model['client_idle_timeout'] = 600 vpn_server_model['client_ip_pool'] = '172.16.0.0/16' vpn_server_model['created_at'] = '2019-01-01T12:00:00Z' - vpn_server_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpn-server:r006-d7cc5196-9864-48c4-82d8-3f30da41fcc5' + vpn_server_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpn-server:r006-d7cc5196-9864-48c4-82d8-3f30da41fcc5' + ) vpn_server_model['enable_split_tunneling'] = True vpn_server_model['health_reasons'] = [vpn_server_health_reason_model] vpn_server_model['health_state'] = 'ok' vpn_server_model['hostname'] = 'a8506291.us-south.vpn-server.appdomain.cloud' - vpn_server_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpn_servers/r006-d7cc5196-9864-48c4-82d8-3f30da41fcc5' + vpn_server_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpn_servers/r006-d7cc5196-9864-48c4-82d8-3f30da41fcc5' + ) vpn_server_model['id'] = 'r006-d7cc5196-9864-48c4-82d8-3f30da41fcc5' vpn_server_model['lifecycle_reasons'] = [vpn_server_lifecycle_reason_model] vpn_server_model['lifecycle_state'] = 'stable' @@ -77236,7 +82086,9 @@ def test_vpn_server_health_reason_serialization(self): # Construct a json representation of a VPNServerHealthReason model vpn_server_health_reason_model_json = {} vpn_server_health_reason_model_json['code'] = 'cannot_access_server_certificate' - vpn_server_health_reason_model_json['message'] = 'Failed to get VPN server\'s server certificate from Secrets Manager.' + vpn_server_health_reason_model_json['message'] = ( + 'Failed to get VPN server\'s server certificate from Secrets Manager.' + ) vpn_server_health_reason_model_json['more_info'] = 'https://cloud.ibm.com/docs/vpc?topic=vpc-vpn-server-health' # Construct a model instance of VPNServerHealthReason by calling from_dict on the json representation @@ -77244,7 +82096,9 @@ def test_vpn_server_health_reason_serialization(self): assert vpn_server_health_reason_model != False # Construct a model instance of VPNServerHealthReason by calling from_dict on the json representation - vpn_server_health_reason_model_dict = VPNServerHealthReason.from_dict(vpn_server_health_reason_model_json).__dict__ + vpn_server_health_reason_model_dict = VPNServerHealthReason.from_dict( + vpn_server_health_reason_model_json + ).__dict__ vpn_server_health_reason_model2 = VPNServerHealthReason(**vpn_server_health_reason_model_dict) # Verify the model instances are equivalent @@ -77268,7 +82122,9 @@ def test_vpn_server_lifecycle_reason_serialization(self): # Construct a json representation of a VPNServerLifecycleReason model vpn_server_lifecycle_reason_model_json = {} vpn_server_lifecycle_reason_model_json['code'] = 'resource_suspended_by_provider' - vpn_server_lifecycle_reason_model_json['message'] = 'The resource has been suspended. Contact IBM support with the CRN for next steps.' + vpn_server_lifecycle_reason_model_json['message'] = ( + 'The resource has been suspended. Contact IBM support with the CRN for next steps.' + ) vpn_server_lifecycle_reason_model_json['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#resource-suspension' # Construct a model instance of VPNServerLifecycleReason by calling from_dict on the json representation @@ -77276,7 +82132,9 @@ def test_vpn_server_lifecycle_reason_serialization(self): assert vpn_server_lifecycle_reason_model != False # Construct a model instance of VPNServerLifecycleReason by calling from_dict on the json representation - vpn_server_lifecycle_reason_model_dict = VPNServerLifecycleReason.from_dict(vpn_server_lifecycle_reason_model_json).__dict__ + vpn_server_lifecycle_reason_model_dict = VPNServerLifecycleReason.from_dict( + vpn_server_lifecycle_reason_model_json + ).__dict__ vpn_server_lifecycle_reason_model2 = VPNServerLifecycleReason(**vpn_server_lifecycle_reason_model_dict) # Verify the model instances are equivalent @@ -77300,14 +82158,20 @@ def test_vpn_server_patch_serialization(self): # Construct dict forms of any model objects needed in order to build this model. certificate_instance_identity_model = {} # CertificateInstanceIdentityByCRN - certificate_instance_identity_model['crn'] = 'crn:v1:bluemix:public:secrets-manager:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:36fa422d-080d-4d83-8d2d-86851b4001df:secret:2e786aab-42fa-63ed-14f8-d66d552f4dd5' + certificate_instance_identity_model['crn'] = ( + 'crn:v1:bluemix:public:secrets-manager:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:36fa422d-080d-4d83-8d2d-86851b4001df:secret:2e786aab-42fa-63ed-14f8-d66d552f4dd5' + ) vpn_server_authentication_by_username_id_provider_model = {} # VPNServerAuthenticationByUsernameIdProviderByIAM vpn_server_authentication_by_username_id_provider_model['provider_type'] = 'iam' - vpn_server_authentication_prototype_model = {} # VPNServerAuthenticationPrototypeVPNServerAuthenticationByUsernamePrototype + vpn_server_authentication_prototype_model = ( + {} + ) # VPNServerAuthenticationPrototypeVPNServerAuthenticationByUsernamePrototype vpn_server_authentication_prototype_model['method'] = 'username' - vpn_server_authentication_prototype_model['identity_provider'] = vpn_server_authentication_by_username_id_provider_model + vpn_server_authentication_prototype_model['identity_provider'] = ( + vpn_server_authentication_by_username_id_provider_model + ) ip_model = {} # IP ip_model['address'] = '192.168.3.4' @@ -77359,11 +82223,15 @@ def test_vpn_server_route_serialization(self): vpn_server_route_health_reason_model = {} # VPNServerRouteHealthReason vpn_server_route_health_reason_model['code'] = 'internal_error' vpn_server_route_health_reason_model['message'] = 'Internal error (contact IBM support).' - vpn_server_route_health_reason_model['more_info'] = 'https://cloud.ibm.com/docs/vpc?topic=vpc-vpn-server-route-health' + vpn_server_route_health_reason_model['more_info'] = ( + 'https://cloud.ibm.com/docs/vpc?topic=vpc-vpn-server-route-health' + ) vpn_server_route_lifecycle_reason_model = {} # VPNServerRouteLifecycleReason vpn_server_route_lifecycle_reason_model['code'] = 'resource_suspended_by_provider' - vpn_server_route_lifecycle_reason_model['message'] = 'The resource has been suspended. Contact IBM support with the CRN for next steps.' + vpn_server_route_lifecycle_reason_model['message'] = ( + 'The resource has been suspended. Contact IBM support with the CRN for next steps.' + ) vpn_server_route_lifecycle_reason_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#resource-suspension' # Construct a json representation of a VPNServerRoute model @@ -77373,7 +82241,9 @@ def test_vpn_server_route_serialization(self): vpn_server_route_model_json['destination'] = '192.168.3.0/24' vpn_server_route_model_json['health_reasons'] = [vpn_server_route_health_reason_model] vpn_server_route_model_json['health_state'] = 'ok' - vpn_server_route_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpn_servers/r006-8e454ead-0db7-48ac-9a8b-2698d8c470a7/routes/r006-1a15dca5-7e33-45e1-b7c5-bc690e569531' + vpn_server_route_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpn_servers/r006-8e454ead-0db7-48ac-9a8b-2698d8c470a7/routes/r006-1a15dca5-7e33-45e1-b7c5-bc690e569531' + ) vpn_server_route_model_json['id'] = 'r006-1a15dca5-7e33-45e1-b7c5-bc690e569531' vpn_server_route_model_json['lifecycle_reasons'] = [vpn_server_route_lifecycle_reason_model] vpn_server_route_model_json['lifecycle_state'] = 'stable' @@ -77409,16 +82279,22 @@ def test_vpn_server_route_collection_serialization(self): # Construct dict forms of any model objects needed in order to build this model. page_link_model = {} # PageLink - page_link_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpn_servers/r006-982d72b7-db1b-4606-afb2-ed6bd4b0bed1/routes?limit=20' + page_link_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpn_servers/r006-982d72b7-db1b-4606-afb2-ed6bd4b0bed1/routes?limit=20' + ) vpn_server_route_health_reason_model = {} # VPNServerRouteHealthReason vpn_server_route_health_reason_model['code'] = 'internal_error' vpn_server_route_health_reason_model['message'] = 'Internal error (contact IBM support).' - vpn_server_route_health_reason_model['more_info'] = 'https://cloud.ibm.com/docs/vpc?topic=vpc-vpn-server-route-health' + vpn_server_route_health_reason_model['more_info'] = ( + 'https://cloud.ibm.com/docs/vpc?topic=vpc-vpn-server-route-health' + ) vpn_server_route_lifecycle_reason_model = {} # VPNServerRouteLifecycleReason vpn_server_route_lifecycle_reason_model['code'] = 'resource_suspended_by_provider' - vpn_server_route_lifecycle_reason_model['message'] = 'The resource has been suspended. Contact IBM support with the CRN for next steps.' + vpn_server_route_lifecycle_reason_model['message'] = ( + 'The resource has been suspended. Contact IBM support with the CRN for next steps.' + ) vpn_server_route_lifecycle_reason_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#resource-suspension' vpn_server_route_model = {} # VPNServerRoute @@ -77427,7 +82303,9 @@ def test_vpn_server_route_collection_serialization(self): vpn_server_route_model['destination'] = '192.168.3.0/24' vpn_server_route_model['health_reasons'] = [vpn_server_route_health_reason_model] vpn_server_route_model['health_state'] = 'ok' - vpn_server_route_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpn_servers/r006-8e454ead-0db7-48ac-9a8b-2698d8c470a7/routes/r006-1a15dca5-7e33-45e1-b7c5-bc690e569531' + vpn_server_route_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpn_servers/r006-8e454ead-0db7-48ac-9a8b-2698d8c470a7/routes/r006-1a15dca5-7e33-45e1-b7c5-bc690e569531' + ) vpn_server_route_model['id'] = 'r006-1a15dca5-7e33-45e1-b7c5-bc690e569531' vpn_server_route_model['lifecycle_reasons'] = [vpn_server_route_lifecycle_reason_model] vpn_server_route_model['lifecycle_state'] = 'stable' @@ -77447,7 +82325,9 @@ def test_vpn_server_route_collection_serialization(self): assert vpn_server_route_collection_model != False # Construct a model instance of VPNServerRouteCollection by calling from_dict on the json representation - vpn_server_route_collection_model_dict = VPNServerRouteCollection.from_dict(vpn_server_route_collection_model_json).__dict__ + vpn_server_route_collection_model_dict = VPNServerRouteCollection.from_dict( + vpn_server_route_collection_model_json + ).__dict__ vpn_server_route_collection_model2 = VPNServerRouteCollection(**vpn_server_route_collection_model_dict) # Verify the model instances are equivalent @@ -77472,14 +82352,20 @@ def test_vpn_server_route_health_reason_serialization(self): vpn_server_route_health_reason_model_json = {} vpn_server_route_health_reason_model_json['code'] = 'internal_error' vpn_server_route_health_reason_model_json['message'] = 'Internal error (contact IBM support).' - vpn_server_route_health_reason_model_json['more_info'] = 'https://cloud.ibm.com/docs/vpc?topic=vpc-vpn-server-route-health' + vpn_server_route_health_reason_model_json['more_info'] = ( + 'https://cloud.ibm.com/docs/vpc?topic=vpc-vpn-server-route-health' + ) # Construct a model instance of VPNServerRouteHealthReason by calling from_dict on the json representation - vpn_server_route_health_reason_model = VPNServerRouteHealthReason.from_dict(vpn_server_route_health_reason_model_json) + vpn_server_route_health_reason_model = VPNServerRouteHealthReason.from_dict( + vpn_server_route_health_reason_model_json + ) assert vpn_server_route_health_reason_model != False # Construct a model instance of VPNServerRouteHealthReason by calling from_dict on the json representation - vpn_server_route_health_reason_model_dict = VPNServerRouteHealthReason.from_dict(vpn_server_route_health_reason_model_json).__dict__ + vpn_server_route_health_reason_model_dict = VPNServerRouteHealthReason.from_dict( + vpn_server_route_health_reason_model_json + ).__dict__ vpn_server_route_health_reason_model2 = VPNServerRouteHealthReason(**vpn_server_route_health_reason_model_dict) # Verify the model instances are equivalent @@ -77503,16 +82389,26 @@ def test_vpn_server_route_lifecycle_reason_serialization(self): # Construct a json representation of a VPNServerRouteLifecycleReason model vpn_server_route_lifecycle_reason_model_json = {} vpn_server_route_lifecycle_reason_model_json['code'] = 'resource_suspended_by_provider' - vpn_server_route_lifecycle_reason_model_json['message'] = 'The resource has been suspended. Contact IBM support with the CRN for next steps.' - vpn_server_route_lifecycle_reason_model_json['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#resource-suspension' + vpn_server_route_lifecycle_reason_model_json['message'] = ( + 'The resource has been suspended. Contact IBM support with the CRN for next steps.' + ) + vpn_server_route_lifecycle_reason_model_json['more_info'] = ( + 'https://cloud.ibm.com/apidocs/vpc#resource-suspension' + ) # Construct a model instance of VPNServerRouteLifecycleReason by calling from_dict on the json representation - vpn_server_route_lifecycle_reason_model = VPNServerRouteLifecycleReason.from_dict(vpn_server_route_lifecycle_reason_model_json) + vpn_server_route_lifecycle_reason_model = VPNServerRouteLifecycleReason.from_dict( + vpn_server_route_lifecycle_reason_model_json + ) assert vpn_server_route_lifecycle_reason_model != False # Construct a model instance of VPNServerRouteLifecycleReason by calling from_dict on the json representation - vpn_server_route_lifecycle_reason_model_dict = VPNServerRouteLifecycleReason.from_dict(vpn_server_route_lifecycle_reason_model_json).__dict__ - vpn_server_route_lifecycle_reason_model2 = VPNServerRouteLifecycleReason(**vpn_server_route_lifecycle_reason_model_dict) + vpn_server_route_lifecycle_reason_model_dict = VPNServerRouteLifecycleReason.from_dict( + vpn_server_route_lifecycle_reason_model_json + ).__dict__ + vpn_server_route_lifecycle_reason_model2 = VPNServerRouteLifecycleReason( + **vpn_server_route_lifecycle_reason_model_dict + ) # Verify the model instances are equivalent assert vpn_server_route_lifecycle_reason_model == vpn_server_route_lifecycle_reason_model2 @@ -77570,42 +82466,60 @@ def test_virtual_network_interface_serialization(self): reserved_ip_reference_model = {} # ReservedIPReference reserved_ip_reference_model['address'] = '10.0.1.5' reserved_ip_reference_model['deleted'] = deleted_model - reserved_ip_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + reserved_ip_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + ) reserved_ip_reference_model['id'] = '0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' reserved_ip_reference_model['name'] = 'my-reserved-ip' reserved_ip_reference_model['resource_type'] = 'subnet_reserved_ip' resource_group_reference_model = {} # ResourceGroupReference - resource_group_reference_model['href'] = 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + resource_group_reference_model['href'] = ( + 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + ) resource_group_reference_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' resource_group_reference_model['name'] = 'Default' security_group_reference_model = {} # SecurityGroupReference - security_group_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::security-group:r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + security_group_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::security-group:r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + ) security_group_reference_model['deleted'] = deleted_model - security_group_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + security_group_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + ) security_group_reference_model['id'] = 'r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' security_group_reference_model['name'] = 'my-security-group' subnet_reference_model = {} # SubnetReference - subnet_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['deleted'] = deleted_model - subnet_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['id'] = '0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' subnet_reference_model['name'] = 'my-subnet' subnet_reference_model['resource_type'] = 'subnet' virtual_network_interface_target_model = {} # VirtualNetworkInterfaceTargetShareMountTargetReference virtual_network_interface_target_model['deleted'] = deleted_model - virtual_network_interface_target_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/shares/r006-0fe9e5d8-0a4d-4818-96ec-e99708644a58/mount_targets/4cf9171a-0043-4434-8727-15b53dbc374c' + virtual_network_interface_target_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/shares/r006-0fe9e5d8-0a4d-4818-96ec-e99708644a58/mount_targets/4cf9171a-0043-4434-8727-15b53dbc374c' + ) virtual_network_interface_target_model['id'] = '4cf9171a-0043-4434-8727-15b53dbc374c' virtual_network_interface_target_model['name'] = 'my-share-mount-target' virtual_network_interface_target_model['resource_type'] = 'share_mount_target' vpc_reference_model = {} # VPCReference - vpc_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_model['deleted'] = deleted_model - vpc_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_model['id'] = 'r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' vpc_reference_model['name'] = 'my-vpc' vpc_reference_model['resource_type'] = 'vpc' @@ -77619,9 +82533,13 @@ def test_virtual_network_interface_serialization(self): virtual_network_interface_model_json['allow_ip_spoofing'] = True virtual_network_interface_model_json['auto_delete'] = False virtual_network_interface_model_json['created_at'] = '2019-01-01T12:00:00Z' - virtual_network_interface_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::virtual-network-interface:0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + virtual_network_interface_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::virtual-network-interface:0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + ) virtual_network_interface_model_json['enable_infrastructure_nat'] = True - virtual_network_interface_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/virtual_network_interfaces/0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + virtual_network_interface_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/virtual_network_interfaces/0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + ) virtual_network_interface_model_json['id'] = '0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' virtual_network_interface_model_json['ips'] = [reserved_ip_reference_model] virtual_network_interface_model_json['lifecycle_state'] = 'stable' @@ -77642,7 +82560,9 @@ def test_virtual_network_interface_serialization(self): assert virtual_network_interface_model != False # Construct a model instance of VirtualNetworkInterface by calling from_dict on the json representation - virtual_network_interface_model_dict = VirtualNetworkInterface.from_dict(virtual_network_interface_model_json).__dict__ + virtual_network_interface_model_dict = VirtualNetworkInterface.from_dict( + virtual_network_interface_model_json + ).__dict__ virtual_network_interface_model2 = VirtualNetworkInterface(**virtual_network_interface_model_dict) # Verify the model instances are equivalent @@ -77674,42 +82594,60 @@ def test_virtual_network_interface_collection_serialization(self): reserved_ip_reference_model = {} # ReservedIPReference reserved_ip_reference_model['address'] = '10.0.1.5' reserved_ip_reference_model['deleted'] = deleted_model - reserved_ip_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + reserved_ip_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + ) reserved_ip_reference_model['id'] = '0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' reserved_ip_reference_model['name'] = 'my-reserved-ip' reserved_ip_reference_model['resource_type'] = 'subnet_reserved_ip' resource_group_reference_model = {} # ResourceGroupReference - resource_group_reference_model['href'] = 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + resource_group_reference_model['href'] = ( + 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + ) resource_group_reference_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' resource_group_reference_model['name'] = 'Default' security_group_reference_model = {} # SecurityGroupReference - security_group_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::security-group:r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + security_group_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::security-group:r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + ) security_group_reference_model['deleted'] = deleted_model - security_group_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + security_group_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + ) security_group_reference_model['id'] = 'r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' security_group_reference_model['name'] = 'my-security-group' subnet_reference_model = {} # SubnetReference - subnet_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['deleted'] = deleted_model - subnet_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['id'] = '0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' subnet_reference_model['name'] = 'my-subnet' subnet_reference_model['resource_type'] = 'subnet' virtual_network_interface_target_model = {} # VirtualNetworkInterfaceTargetShareMountTargetReference virtual_network_interface_target_model['deleted'] = deleted_model - virtual_network_interface_target_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/shares/r006-0fe9e5d8-0a4d-4818-96ec-e99708644a58/mount_targets/4cf9171a-0043-4434-8727-15b53dbc374c' + virtual_network_interface_target_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/shares/r006-0fe9e5d8-0a4d-4818-96ec-e99708644a58/mount_targets/4cf9171a-0043-4434-8727-15b53dbc374c' + ) virtual_network_interface_target_model['id'] = '4cf9171a-0043-4434-8727-15b53dbc374c' virtual_network_interface_target_model['name'] = 'my-share-mount-target' virtual_network_interface_target_model['resource_type'] = 'share_mount_target' vpc_reference_model = {} # VPCReference - vpc_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_model['deleted'] = deleted_model - vpc_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_model['id'] = 'r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' vpc_reference_model['name'] = 'my-vpc' vpc_reference_model['resource_type'] = 'vpc' @@ -77722,9 +82660,13 @@ def test_virtual_network_interface_collection_serialization(self): virtual_network_interface_model['allow_ip_spoofing'] = False virtual_network_interface_model['auto_delete'] = True virtual_network_interface_model['created_at'] = '2024-10-15T03:24:32.993000Z' - virtual_network_interface_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::virtual-network-interface:0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + virtual_network_interface_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::virtual-network-interface:0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + ) virtual_network_interface_model['enable_infrastructure_nat'] = False - virtual_network_interface_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/virtual_network_interfaces/0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + virtual_network_interface_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/virtual_network_interfaces/0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + ) virtual_network_interface_model['id'] = '0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' virtual_network_interface_model['ips'] = [reserved_ip_reference_model] virtual_network_interface_model['lifecycle_state'] = 'stable' @@ -77746,15 +82688,23 @@ def test_virtual_network_interface_collection_serialization(self): virtual_network_interface_collection_model_json['limit'] = 20 virtual_network_interface_collection_model_json['next'] = page_link_model virtual_network_interface_collection_model_json['total_count'] = 132 - virtual_network_interface_collection_model_json['virtual_network_interfaces'] = [virtual_network_interface_model] + virtual_network_interface_collection_model_json['virtual_network_interfaces'] = [ + virtual_network_interface_model + ] # Construct a model instance of VirtualNetworkInterfaceCollection by calling from_dict on the json representation - virtual_network_interface_collection_model = VirtualNetworkInterfaceCollection.from_dict(virtual_network_interface_collection_model_json) + virtual_network_interface_collection_model = VirtualNetworkInterfaceCollection.from_dict( + virtual_network_interface_collection_model_json + ) assert virtual_network_interface_collection_model != False # Construct a model instance of VirtualNetworkInterfaceCollection by calling from_dict on the json representation - virtual_network_interface_collection_model_dict = VirtualNetworkInterfaceCollection.from_dict(virtual_network_interface_collection_model_json).__dict__ - virtual_network_interface_collection_model2 = VirtualNetworkInterfaceCollection(**virtual_network_interface_collection_model_dict) + virtual_network_interface_collection_model_dict = VirtualNetworkInterfaceCollection.from_dict( + virtual_network_interface_collection_model_json + ).__dict__ + virtual_network_interface_collection_model2 = VirtualNetworkInterfaceCollection( + **virtual_network_interface_collection_model_dict + ) # Verify the model instances are equivalent assert virtual_network_interface_collection_model == virtual_network_interface_collection_model2 @@ -77783,12 +82733,18 @@ def test_virtual_network_interface_patch_serialization(self): virtual_network_interface_patch_model_json['protocol_state_filtering_mode'] = 'auto' # Construct a model instance of VirtualNetworkInterfacePatch by calling from_dict on the json representation - virtual_network_interface_patch_model = VirtualNetworkInterfacePatch.from_dict(virtual_network_interface_patch_model_json) + virtual_network_interface_patch_model = VirtualNetworkInterfacePatch.from_dict( + virtual_network_interface_patch_model_json + ) assert virtual_network_interface_patch_model != False # Construct a model instance of VirtualNetworkInterfacePatch by calling from_dict on the json representation - virtual_network_interface_patch_model_dict = VirtualNetworkInterfacePatch.from_dict(virtual_network_interface_patch_model_json).__dict__ - virtual_network_interface_patch_model2 = VirtualNetworkInterfacePatch(**virtual_network_interface_patch_model_dict) + virtual_network_interface_patch_model_dict = VirtualNetworkInterfacePatch.from_dict( + virtual_network_interface_patch_model_json + ).__dict__ + virtual_network_interface_patch_model2 = VirtualNetworkInterfacePatch( + **virtual_network_interface_patch_model_dict + ) # Verify the model instances are equivalent assert virtual_network_interface_patch_model == virtual_network_interface_patch_model2 @@ -77810,26 +82766,52 @@ def test_virtual_network_interface_reference_attachment_context_serialization(se # Construct a json representation of a VirtualNetworkInterfaceReferenceAttachmentContext model virtual_network_interface_reference_attachment_context_model_json = {} - virtual_network_interface_reference_attachment_context_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::virtual-network-interface:0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' - virtual_network_interface_reference_attachment_context_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/virtual_network_interfaces/0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' - virtual_network_interface_reference_attachment_context_model_json['id'] = '0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + virtual_network_interface_reference_attachment_context_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::virtual-network-interface:0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + ) + virtual_network_interface_reference_attachment_context_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/virtual_network_interfaces/0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + ) + virtual_network_interface_reference_attachment_context_model_json['id'] = ( + '0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + ) virtual_network_interface_reference_attachment_context_model_json['name'] = 'my-virtual-network-interface' virtual_network_interface_reference_attachment_context_model_json['resource_type'] = 'virtual_network_interface' # Construct a model instance of VirtualNetworkInterfaceReferenceAttachmentContext by calling from_dict on the json representation - virtual_network_interface_reference_attachment_context_model = VirtualNetworkInterfaceReferenceAttachmentContext.from_dict(virtual_network_interface_reference_attachment_context_model_json) + virtual_network_interface_reference_attachment_context_model = ( + VirtualNetworkInterfaceReferenceAttachmentContext.from_dict( + virtual_network_interface_reference_attachment_context_model_json + ) + ) assert virtual_network_interface_reference_attachment_context_model != False # Construct a model instance of VirtualNetworkInterfaceReferenceAttachmentContext by calling from_dict on the json representation - virtual_network_interface_reference_attachment_context_model_dict = VirtualNetworkInterfaceReferenceAttachmentContext.from_dict(virtual_network_interface_reference_attachment_context_model_json).__dict__ - virtual_network_interface_reference_attachment_context_model2 = VirtualNetworkInterfaceReferenceAttachmentContext(**virtual_network_interface_reference_attachment_context_model_dict) + virtual_network_interface_reference_attachment_context_model_dict = ( + VirtualNetworkInterfaceReferenceAttachmentContext.from_dict( + virtual_network_interface_reference_attachment_context_model_json + ).__dict__ + ) + virtual_network_interface_reference_attachment_context_model2 = ( + VirtualNetworkInterfaceReferenceAttachmentContext( + **virtual_network_interface_reference_attachment_context_model_dict + ) + ) # Verify the model instances are equivalent - assert virtual_network_interface_reference_attachment_context_model == virtual_network_interface_reference_attachment_context_model2 + assert ( + virtual_network_interface_reference_attachment_context_model + == virtual_network_interface_reference_attachment_context_model2 + ) # Convert model instance back to dict and verify no loss of data - virtual_network_interface_reference_attachment_context_model_json2 = virtual_network_interface_reference_attachment_context_model.to_dict() - assert virtual_network_interface_reference_attachment_context_model_json2 == virtual_network_interface_reference_attachment_context_model_json + virtual_network_interface_reference_attachment_context_model_json2 = ( + virtual_network_interface_reference_attachment_context_model.to_dict() + ) + assert ( + virtual_network_interface_reference_attachment_context_model_json2 + == virtual_network_interface_reference_attachment_context_model_json + ) class TestModel_Volume: @@ -77848,23 +82830,33 @@ def test_volume_serialization(self): deleted_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#deleted-resources' catalog_offering_version_plan_reference_model = {} # CatalogOfferingVersionPlanReference - catalog_offering_version_plan_reference_model['crn'] = 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:51c9e0db-2911-45a6-adb0-ac5332d27cf2:plan:sw.51c9e0db-2911-45a6-adb0-ac5332d27cf2.772c0dbe-aa62-482e-adbe-a3fc20101e0e' + catalog_offering_version_plan_reference_model['crn'] = ( + 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:51c9e0db-2911-45a6-adb0-ac5332d27cf2:plan:sw.51c9e0db-2911-45a6-adb0-ac5332d27cf2.772c0dbe-aa62-482e-adbe-a3fc20101e0e' + ) catalog_offering_version_plan_reference_model['deleted'] = deleted_model catalog_offering_version_reference_model = {} # CatalogOfferingVersionReference - catalog_offering_version_reference_model['crn'] = 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:version:00111601-0ec5-41ac-b142-96d1e64e6442/ec66bec2-6a33-42d6-9323-26dd4dc8875d' + catalog_offering_version_reference_model['crn'] = ( + 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:version:00111601-0ec5-41ac-b142-96d1e64e6442/ec66bec2-6a33-42d6-9323-26dd4dc8875d' + ) volume_catalog_offering_model = {} # VolumeCatalogOffering volume_catalog_offering_model['plan'] = catalog_offering_version_plan_reference_model volume_catalog_offering_model['version'] = catalog_offering_version_reference_model encryption_key_reference_model = {} # EncryptionKeyReference - encryption_key_reference_model['crn'] = 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + encryption_key_reference_model['crn'] = ( + 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + ) volume_health_reason_model = {} # VolumeHealthReason volume_health_reason_model['code'] = 'initializing_from_snapshot' - volume_health_reason_model['message'] = 'Performance will be degraded while this volume is being initialized from its snapshot' - volume_health_reason_model['more_info'] = 'https://cloud.ibm.com/docs/vpc?topic=vpc-snapshots-vpc-troubleshooting&interface=ui#snapshot_ts_degraded_perf' + volume_health_reason_model['message'] = ( + 'Performance will be degraded while this volume is being initialized from its snapshot' + ) + volume_health_reason_model['more_info'] = ( + 'https://cloud.ibm.com/docs/vpc?topic=vpc-snapshots-vpc-troubleshooting&interface=ui#snapshot_ts_degraded_perf' + ) operating_system_model = {} # OperatingSystem operating_system_model['allow_user_image_creation'] = True @@ -77883,7 +82875,9 @@ def test_volume_serialization(self): volume_profile_reference_model['name'] = 'custom' resource_group_reference_model = {} # ResourceGroupReference - resource_group_reference_model['href'] = 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + resource_group_reference_model['href'] = ( + 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + ) resource_group_reference_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' resource_group_reference_model['name'] = 'Default' @@ -77900,9 +82894,13 @@ def test_volume_serialization(self): image_remote_model['region'] = region_reference_model image_reference_model = {} # ImageReference - image_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::image:r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8' + image_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::image:r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8' + ) image_reference_model['deleted'] = deleted_model - image_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/images/r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8' + image_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/images/r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8' + ) image_reference_model['id'] = 'r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8' image_reference_model['name'] = 'my-image' image_reference_model['remote'] = image_remote_model @@ -77913,9 +82911,13 @@ def test_volume_serialization(self): snapshot_remote_model['region'] = region_reference_model snapshot_reference_model = {} # SnapshotReference - snapshot_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::snapshot:r134-f6bfa329-0e36-433f-a3bb-0df632e79263' + snapshot_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::snapshot:r134-f6bfa329-0e36-433f-a3bb-0df632e79263' + ) snapshot_reference_model['deleted'] = deleted_model - snapshot_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/snapshots/r134-f6bfa329-0e36-433f-a3bb-0df632e79263' + snapshot_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/snapshots/r134-f6bfa329-0e36-433f-a3bb-0df632e79263' + ) snapshot_reference_model['id'] = 'r134-f6bfa329-0e36-433f-a3bb-0df632e79263' snapshot_reference_model['name'] = 'my-snapshot' snapshot_reference_model['remote'] = snapshot_remote_model @@ -77924,15 +82926,21 @@ def test_volume_serialization(self): volume_status_reason_model = {} # VolumeStatusReason volume_status_reason_model['code'] = 'encryption_key_deleted' volume_status_reason_model['message'] = 'testString' - volume_status_reason_model['more_info'] = 'https://cloud.ibm.com/docs/key-protect?topic=key-protect-restore-keys' + volume_status_reason_model['more_info'] = ( + 'https://cloud.ibm.com/docs/key-protect?topic=key-protect-restore-keys' + ) volume_attachment_device_model = {} # VolumeAttachmentDevice volume_attachment_device_model['id'] = 'testString' instance_reference_model = {} # InstanceReference - instance_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::instance:0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' + instance_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::instance:0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' + ) instance_reference_model['deleted'] = deleted_model - instance_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' + instance_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' + ) instance_reference_model['id'] = '0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' instance_reference_model['name'] = 'my-instance' @@ -77940,7 +82948,9 @@ def test_volume_serialization(self): volume_attachment_reference_volume_context_model['delete_volume_on_instance_delete'] = False volume_attachment_reference_volume_context_model['deleted'] = deleted_model volume_attachment_reference_volume_context_model['device'] = volume_attachment_device_model - volume_attachment_reference_volume_context_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/volume_attachments/0717-82cbf856-9cbb-45fb-b62f-d7bcef32399a' + volume_attachment_reference_volume_context_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/volume_attachments/0717-82cbf856-9cbb-45fb-b62f-d7bcef32399a' + ) volume_attachment_reference_volume_context_model['id'] = '0717-82cbf856-9cbb-45fb-b62f-d7bcef32399a' volume_attachment_reference_volume_context_model['instance'] = instance_reference_model volume_attachment_reference_volume_context_model['name'] = 'my-volume-attachment' @@ -77961,12 +82971,16 @@ def test_volume_serialization(self): volume_model_json['capacity'] = 1000 volume_model_json['catalog_offering'] = volume_catalog_offering_model volume_model_json['created_at'] = '2019-01-01T12:00:00Z' - volume_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::volume:r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' + volume_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::volume:r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' + ) volume_model_json['encryption'] = 'provider_managed' volume_model_json['encryption_key'] = encryption_key_reference_model volume_model_json['health_reasons'] = [volume_health_reason_model] volume_model_json['health_state'] = 'ok' - volume_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/volumes/r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' + volume_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/volumes/r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' + ) volume_model_json['id'] = 'r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' volume_model_json['iops'] = 10000 volume_model_json['name'] = 'my-volume' @@ -78017,9 +83031,13 @@ def test_volume_attachment_serialization(self): deleted_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#deleted-resources' volume_reference_volume_attachment_context_model = {} # VolumeReferenceVolumeAttachmentContext - volume_reference_volume_attachment_context_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::volume:r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' + volume_reference_volume_attachment_context_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::volume:r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' + ) volume_reference_volume_attachment_context_model['deleted'] = deleted_model - volume_reference_volume_attachment_context_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/volumes/r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' + volume_reference_volume_attachment_context_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/volumes/r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' + ) volume_reference_volume_attachment_context_model['id'] = 'r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' volume_reference_volume_attachment_context_model['name'] = 'my-volume' volume_reference_volume_attachment_context_model['resource_type'] = 'volume' @@ -78030,7 +83048,9 @@ def test_volume_attachment_serialization(self): volume_attachment_model_json['created_at'] = '2019-01-01T12:00:00Z' volume_attachment_model_json['delete_volume_on_instance_delete'] = True volume_attachment_model_json['device'] = volume_attachment_device_model - volume_attachment_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/volume_attachments/0717-82cbf856-9cbb-45fb-b62f-d7bcef32399a' + volume_attachment_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/volume_attachments/0717-82cbf856-9cbb-45fb-b62f-d7bcef32399a' + ) volume_attachment_model_json['id'] = '0717-82cbf856-9cbb-45fb-b62f-d7bcef32399a' volume_attachment_model_json['name'] = 'my-volume-attachment' volume_attachment_model_json['status'] = 'attached' @@ -78072,9 +83092,13 @@ def test_volume_attachment_collection_serialization(self): deleted_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#deleted-resources' volume_reference_volume_attachment_context_model = {} # VolumeReferenceVolumeAttachmentContext - volume_reference_volume_attachment_context_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::volume:r006-89b05e9a-e635-9464-9747-7ae3f9b03303' + volume_reference_volume_attachment_context_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::volume:r006-89b05e9a-e635-9464-9747-7ae3f9b03303' + ) volume_reference_volume_attachment_context_model['deleted'] = deleted_model - volume_reference_volume_attachment_context_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/volumes/r006-89b05e9a-e635-9464-9747-7ae3f9b03303' + volume_reference_volume_attachment_context_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/volumes/r006-89b05e9a-e635-9464-9747-7ae3f9b03303' + ) volume_reference_volume_attachment_context_model['id'] = 'r006-89b05e9a-e635-9464-9747-7ae3f9b03303' volume_reference_volume_attachment_context_model['name'] = 'my-boot-volume' volume_reference_volume_attachment_context_model['resource_type'] = 'volume' @@ -78084,7 +83108,9 @@ def test_volume_attachment_collection_serialization(self): volume_attachment_model['created_at'] = '2024-10-24T16:32:05Z' volume_attachment_model['delete_volume_on_instance_delete'] = True volume_attachment_model['device'] = volume_attachment_device_model - volume_attachment_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/volume_attachments/0717-fdb3642d-c849-4c29-97a9-03b868616f88' + volume_attachment_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/volume_attachments/0717-fdb3642d-c849-4c29-97a9-03b868616f88' + ) volume_attachment_model['id'] = '0717-fdb3642d-c849-4c29-97a9-03b868616f88' volume_attachment_model['name'] = 'my-boot-volume-attachment' volume_attachment_model['status'] = 'attached' @@ -78096,11 +83122,15 @@ def test_volume_attachment_collection_serialization(self): volume_attachment_collection_model_json['volume_attachments'] = [volume_attachment_model] # Construct a model instance of VolumeAttachmentCollection by calling from_dict on the json representation - volume_attachment_collection_model = VolumeAttachmentCollection.from_dict(volume_attachment_collection_model_json) + volume_attachment_collection_model = VolumeAttachmentCollection.from_dict( + volume_attachment_collection_model_json + ) assert volume_attachment_collection_model != False # Construct a model instance of VolumeAttachmentCollection by calling from_dict on the json representation - volume_attachment_collection_model_dict = VolumeAttachmentCollection.from_dict(volume_attachment_collection_model_json).__dict__ + volume_attachment_collection_model_dict = VolumeAttachmentCollection.from_dict( + volume_attachment_collection_model_json + ).__dict__ volume_attachment_collection_model2 = VolumeAttachmentCollection(**volume_attachment_collection_model_dict) # Verify the model instances are equivalent @@ -78130,7 +83160,9 @@ def test_volume_attachment_device_serialization(self): assert volume_attachment_device_model != False # Construct a model instance of VolumeAttachmentDevice by calling from_dict on the json representation - volume_attachment_device_model_dict = VolumeAttachmentDevice.from_dict(volume_attachment_device_model_json).__dict__ + volume_attachment_device_model_dict = VolumeAttachmentDevice.from_dict( + volume_attachment_device_model_json + ).__dict__ volume_attachment_device_model2 = VolumeAttachmentDevice(**volume_attachment_device_model_dict) # Verify the model instances are equivalent @@ -78161,7 +83193,9 @@ def test_volume_attachment_patch_serialization(self): assert volume_attachment_patch_model != False # Construct a model instance of VolumeAttachmentPatch by calling from_dict on the json representation - volume_attachment_patch_model_dict = VolumeAttachmentPatch.from_dict(volume_attachment_patch_model_json).__dict__ + volume_attachment_patch_model_dict = VolumeAttachmentPatch.from_dict( + volume_attachment_patch_model_json + ).__dict__ volume_attachment_patch_model2 = VolumeAttachmentPatch(**volume_attachment_patch_model_dict) # Verify the model instances are equivalent @@ -78198,7 +83232,9 @@ def test_volume_attachment_prototype_serialization(self): assert volume_attachment_prototype_model != False # Construct a model instance of VolumeAttachmentPrototype by calling from_dict on the json representation - volume_attachment_prototype_model_dict = VolumeAttachmentPrototype.from_dict(volume_attachment_prototype_model_json).__dict__ + volume_attachment_prototype_model_dict = VolumeAttachmentPrototype.from_dict( + volume_attachment_prototype_model_json + ).__dict__ volume_attachment_prototype_model2 = VolumeAttachmentPrototype(**volume_attachment_prototype_model_dict) # Verify the model instances are equivalent @@ -78222,7 +83258,9 @@ def test_volume_attachment_prototype_instance_by_image_context_serialization(sel # Construct dict forms of any model objects needed in order to build this model. encryption_key_identity_model = {} # EncryptionKeyIdentityByCRN - encryption_key_identity_model['crn'] = 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + encryption_key_identity_model['crn'] = ( + 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + ) volume_profile_identity_model = {} # VolumeProfileIdentityByName volume_profile_identity_model['name'] = 'general-purpose' @@ -78243,22 +83281,42 @@ def test_volume_attachment_prototype_instance_by_image_context_serialization(sel volume_attachment_prototype_instance_by_image_context_model_json = {} volume_attachment_prototype_instance_by_image_context_model_json['delete_volume_on_instance_delete'] = True volume_attachment_prototype_instance_by_image_context_model_json['name'] = 'my-volume-attachment' - volume_attachment_prototype_instance_by_image_context_model_json['volume'] = volume_prototype_instance_by_image_context_model + volume_attachment_prototype_instance_by_image_context_model_json['volume'] = ( + volume_prototype_instance_by_image_context_model + ) # Construct a model instance of VolumeAttachmentPrototypeInstanceByImageContext by calling from_dict on the json representation - volume_attachment_prototype_instance_by_image_context_model = VolumeAttachmentPrototypeInstanceByImageContext.from_dict(volume_attachment_prototype_instance_by_image_context_model_json) + volume_attachment_prototype_instance_by_image_context_model = ( + VolumeAttachmentPrototypeInstanceByImageContext.from_dict( + volume_attachment_prototype_instance_by_image_context_model_json + ) + ) assert volume_attachment_prototype_instance_by_image_context_model != False # Construct a model instance of VolumeAttachmentPrototypeInstanceByImageContext by calling from_dict on the json representation - volume_attachment_prototype_instance_by_image_context_model_dict = VolumeAttachmentPrototypeInstanceByImageContext.from_dict(volume_attachment_prototype_instance_by_image_context_model_json).__dict__ - volume_attachment_prototype_instance_by_image_context_model2 = VolumeAttachmentPrototypeInstanceByImageContext(**volume_attachment_prototype_instance_by_image_context_model_dict) + volume_attachment_prototype_instance_by_image_context_model_dict = ( + VolumeAttachmentPrototypeInstanceByImageContext.from_dict( + volume_attachment_prototype_instance_by_image_context_model_json + ).__dict__ + ) + volume_attachment_prototype_instance_by_image_context_model2 = VolumeAttachmentPrototypeInstanceByImageContext( + **volume_attachment_prototype_instance_by_image_context_model_dict + ) # Verify the model instances are equivalent - assert volume_attachment_prototype_instance_by_image_context_model == volume_attachment_prototype_instance_by_image_context_model2 + assert ( + volume_attachment_prototype_instance_by_image_context_model + == volume_attachment_prototype_instance_by_image_context_model2 + ) # Convert model instance back to dict and verify no loss of data - volume_attachment_prototype_instance_by_image_context_model_json2 = volume_attachment_prototype_instance_by_image_context_model.to_dict() - assert volume_attachment_prototype_instance_by_image_context_model_json2 == volume_attachment_prototype_instance_by_image_context_model_json + volume_attachment_prototype_instance_by_image_context_model_json2 = ( + volume_attachment_prototype_instance_by_image_context_model.to_dict() + ) + assert ( + volume_attachment_prototype_instance_by_image_context_model_json2 + == volume_attachment_prototype_instance_by_image_context_model_json + ) class TestModel_VolumeAttachmentPrototypeInstanceBySourceSnapshotContext: @@ -78274,7 +83332,9 @@ def test_volume_attachment_prototype_instance_by_source_snapshot_context_seriali # Construct dict forms of any model objects needed in order to build this model. encryption_key_identity_model = {} # EncryptionKeyIdentityByCRN - encryption_key_identity_model['crn'] = 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + encryption_key_identity_model['crn'] = ( + 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + ) volume_profile_identity_model = {} # VolumeProfileIdentityByName volume_profile_identity_model['name'] = 'general-purpose' @@ -78285,7 +83345,9 @@ def test_volume_attachment_prototype_instance_by_source_snapshot_context_seriali snapshot_identity_model = {} # SnapshotIdentityById snapshot_identity_model['id'] = 'r134-f6bfa329-0e36-433f-a3bb-0df632e79263' - volume_prototype_instance_by_source_snapshot_context_model = {} # VolumePrototypeInstanceBySourceSnapshotContext + volume_prototype_instance_by_source_snapshot_context_model = ( + {} + ) # VolumePrototypeInstanceBySourceSnapshotContext volume_prototype_instance_by_source_snapshot_context_model['capacity'] = 100 volume_prototype_instance_by_source_snapshot_context_model['encryption_key'] = encryption_key_identity_model volume_prototype_instance_by_source_snapshot_context_model['iops'] = 10000 @@ -78297,24 +83359,48 @@ def test_volume_attachment_prototype_instance_by_source_snapshot_context_seriali # Construct a json representation of a VolumeAttachmentPrototypeInstanceBySourceSnapshotContext model volume_attachment_prototype_instance_by_source_snapshot_context_model_json = {} - volume_attachment_prototype_instance_by_source_snapshot_context_model_json['delete_volume_on_instance_delete'] = True + volume_attachment_prototype_instance_by_source_snapshot_context_model_json[ + 'delete_volume_on_instance_delete' + ] = True volume_attachment_prototype_instance_by_source_snapshot_context_model_json['name'] = 'my-volume-attachment' - volume_attachment_prototype_instance_by_source_snapshot_context_model_json['volume'] = volume_prototype_instance_by_source_snapshot_context_model + volume_attachment_prototype_instance_by_source_snapshot_context_model_json['volume'] = ( + volume_prototype_instance_by_source_snapshot_context_model + ) # Construct a model instance of VolumeAttachmentPrototypeInstanceBySourceSnapshotContext by calling from_dict on the json representation - volume_attachment_prototype_instance_by_source_snapshot_context_model = VolumeAttachmentPrototypeInstanceBySourceSnapshotContext.from_dict(volume_attachment_prototype_instance_by_source_snapshot_context_model_json) + volume_attachment_prototype_instance_by_source_snapshot_context_model = ( + VolumeAttachmentPrototypeInstanceBySourceSnapshotContext.from_dict( + volume_attachment_prototype_instance_by_source_snapshot_context_model_json + ) + ) assert volume_attachment_prototype_instance_by_source_snapshot_context_model != False # Construct a model instance of VolumeAttachmentPrototypeInstanceBySourceSnapshotContext by calling from_dict on the json representation - volume_attachment_prototype_instance_by_source_snapshot_context_model_dict = VolumeAttachmentPrototypeInstanceBySourceSnapshotContext.from_dict(volume_attachment_prototype_instance_by_source_snapshot_context_model_json).__dict__ - volume_attachment_prototype_instance_by_source_snapshot_context_model2 = VolumeAttachmentPrototypeInstanceBySourceSnapshotContext(**volume_attachment_prototype_instance_by_source_snapshot_context_model_dict) + volume_attachment_prototype_instance_by_source_snapshot_context_model_dict = ( + VolumeAttachmentPrototypeInstanceBySourceSnapshotContext.from_dict( + volume_attachment_prototype_instance_by_source_snapshot_context_model_json + ).__dict__ + ) + volume_attachment_prototype_instance_by_source_snapshot_context_model2 = ( + VolumeAttachmentPrototypeInstanceBySourceSnapshotContext( + **volume_attachment_prototype_instance_by_source_snapshot_context_model_dict + ) + ) # Verify the model instances are equivalent - assert volume_attachment_prototype_instance_by_source_snapshot_context_model == volume_attachment_prototype_instance_by_source_snapshot_context_model2 + assert ( + volume_attachment_prototype_instance_by_source_snapshot_context_model + == volume_attachment_prototype_instance_by_source_snapshot_context_model2 + ) # Convert model instance back to dict and verify no loss of data - volume_attachment_prototype_instance_by_source_snapshot_context_model_json2 = volume_attachment_prototype_instance_by_source_snapshot_context_model.to_dict() - assert volume_attachment_prototype_instance_by_source_snapshot_context_model_json2 == volume_attachment_prototype_instance_by_source_snapshot_context_model_json + volume_attachment_prototype_instance_by_source_snapshot_context_model_json2 = ( + volume_attachment_prototype_instance_by_source_snapshot_context_model.to_dict() + ) + assert ( + volume_attachment_prototype_instance_by_source_snapshot_context_model_json2 + == volume_attachment_prototype_instance_by_source_snapshot_context_model_json + ) class TestModel_VolumeAttachmentPrototypeInstanceByVolumeContext: @@ -78339,19 +83425,39 @@ def test_volume_attachment_prototype_instance_by_volume_context_serialization(se volume_attachment_prototype_instance_by_volume_context_model_json['volume'] = volume_identity_model # Construct a model instance of VolumeAttachmentPrototypeInstanceByVolumeContext by calling from_dict on the json representation - volume_attachment_prototype_instance_by_volume_context_model = VolumeAttachmentPrototypeInstanceByVolumeContext.from_dict(volume_attachment_prototype_instance_by_volume_context_model_json) + volume_attachment_prototype_instance_by_volume_context_model = ( + VolumeAttachmentPrototypeInstanceByVolumeContext.from_dict( + volume_attachment_prototype_instance_by_volume_context_model_json + ) + ) assert volume_attachment_prototype_instance_by_volume_context_model != False # Construct a model instance of VolumeAttachmentPrototypeInstanceByVolumeContext by calling from_dict on the json representation - volume_attachment_prototype_instance_by_volume_context_model_dict = VolumeAttachmentPrototypeInstanceByVolumeContext.from_dict(volume_attachment_prototype_instance_by_volume_context_model_json).__dict__ - volume_attachment_prototype_instance_by_volume_context_model2 = VolumeAttachmentPrototypeInstanceByVolumeContext(**volume_attachment_prototype_instance_by_volume_context_model_dict) + volume_attachment_prototype_instance_by_volume_context_model_dict = ( + VolumeAttachmentPrototypeInstanceByVolumeContext.from_dict( + volume_attachment_prototype_instance_by_volume_context_model_json + ).__dict__ + ) + volume_attachment_prototype_instance_by_volume_context_model2 = ( + VolumeAttachmentPrototypeInstanceByVolumeContext( + **volume_attachment_prototype_instance_by_volume_context_model_dict + ) + ) # Verify the model instances are equivalent - assert volume_attachment_prototype_instance_by_volume_context_model == volume_attachment_prototype_instance_by_volume_context_model2 + assert ( + volume_attachment_prototype_instance_by_volume_context_model + == volume_attachment_prototype_instance_by_volume_context_model2 + ) # Convert model instance back to dict and verify no loss of data - volume_attachment_prototype_instance_by_volume_context_model_json2 = volume_attachment_prototype_instance_by_volume_context_model.to_dict() - assert volume_attachment_prototype_instance_by_volume_context_model_json2 == volume_attachment_prototype_instance_by_volume_context_model_json + volume_attachment_prototype_instance_by_volume_context_model_json2 = ( + volume_attachment_prototype_instance_by_volume_context_model.to_dict() + ) + assert ( + volume_attachment_prototype_instance_by_volume_context_model_json2 + == volume_attachment_prototype_instance_by_volume_context_model_json + ) class TestModel_VolumeAttachmentReferenceInstanceContext: @@ -78373,9 +83479,13 @@ def test_volume_attachment_reference_instance_context_serialization(self): volume_attachment_device_model['id'] = '0717-80b3e36e-41f4-40e9-bd56-beae81792a68-679qb' volume_reference_volume_attachment_context_model = {} # VolumeReferenceVolumeAttachmentContext - volume_reference_volume_attachment_context_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::volume:r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' + volume_reference_volume_attachment_context_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::volume:r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' + ) volume_reference_volume_attachment_context_model['deleted'] = deleted_model - volume_reference_volume_attachment_context_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/volumes/r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' + volume_reference_volume_attachment_context_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/volumes/r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' + ) volume_reference_volume_attachment_context_model['id'] = 'r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' volume_reference_volume_attachment_context_model['name'] = 'my-volume' volume_reference_volume_attachment_context_model['resource_type'] = 'volume' @@ -78384,25 +83494,40 @@ def test_volume_attachment_reference_instance_context_serialization(self): volume_attachment_reference_instance_context_model_json = {} volume_attachment_reference_instance_context_model_json['deleted'] = deleted_model volume_attachment_reference_instance_context_model_json['device'] = volume_attachment_device_model - volume_attachment_reference_instance_context_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/volume_attachments/0717-82cbf856-9cbb-45fb-b62f-d7bcef32399a' + volume_attachment_reference_instance_context_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/volume_attachments/0717-82cbf856-9cbb-45fb-b62f-d7bcef32399a' + ) volume_attachment_reference_instance_context_model_json['id'] = '0717-82cbf856-9cbb-45fb-b62f-d7bcef32399a' volume_attachment_reference_instance_context_model_json['name'] = 'my-volume-attachment' - volume_attachment_reference_instance_context_model_json['volume'] = volume_reference_volume_attachment_context_model + volume_attachment_reference_instance_context_model_json['volume'] = ( + volume_reference_volume_attachment_context_model + ) # Construct a model instance of VolumeAttachmentReferenceInstanceContext by calling from_dict on the json representation - volume_attachment_reference_instance_context_model = VolumeAttachmentReferenceInstanceContext.from_dict(volume_attachment_reference_instance_context_model_json) + volume_attachment_reference_instance_context_model = VolumeAttachmentReferenceInstanceContext.from_dict( + volume_attachment_reference_instance_context_model_json + ) assert volume_attachment_reference_instance_context_model != False # Construct a model instance of VolumeAttachmentReferenceInstanceContext by calling from_dict on the json representation - volume_attachment_reference_instance_context_model_dict = VolumeAttachmentReferenceInstanceContext.from_dict(volume_attachment_reference_instance_context_model_json).__dict__ - volume_attachment_reference_instance_context_model2 = VolumeAttachmentReferenceInstanceContext(**volume_attachment_reference_instance_context_model_dict) + volume_attachment_reference_instance_context_model_dict = VolumeAttachmentReferenceInstanceContext.from_dict( + volume_attachment_reference_instance_context_model_json + ).__dict__ + volume_attachment_reference_instance_context_model2 = VolumeAttachmentReferenceInstanceContext( + **volume_attachment_reference_instance_context_model_dict + ) # Verify the model instances are equivalent assert volume_attachment_reference_instance_context_model == volume_attachment_reference_instance_context_model2 # Convert model instance back to dict and verify no loss of data - volume_attachment_reference_instance_context_model_json2 = volume_attachment_reference_instance_context_model.to_dict() - assert volume_attachment_reference_instance_context_model_json2 == volume_attachment_reference_instance_context_model_json + volume_attachment_reference_instance_context_model_json2 = ( + volume_attachment_reference_instance_context_model.to_dict() + ) + assert ( + volume_attachment_reference_instance_context_model_json2 + == volume_attachment_reference_instance_context_model_json + ) class TestModel_VolumeAttachmentReferenceVolumeContext: @@ -78424,9 +83549,13 @@ def test_volume_attachment_reference_volume_context_serialization(self): volume_attachment_device_model['id'] = 'testString' instance_reference_model = {} # InstanceReference - instance_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::instance:0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' + instance_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::instance:0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' + ) instance_reference_model['deleted'] = deleted_model - instance_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' + instance_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' + ) instance_reference_model['id'] = '0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' instance_reference_model['name'] = 'my-instance' @@ -78435,26 +83564,39 @@ def test_volume_attachment_reference_volume_context_serialization(self): volume_attachment_reference_volume_context_model_json['delete_volume_on_instance_delete'] = True volume_attachment_reference_volume_context_model_json['deleted'] = deleted_model volume_attachment_reference_volume_context_model_json['device'] = volume_attachment_device_model - volume_attachment_reference_volume_context_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/volume_attachments/0717-82cbf856-9cbb-45fb-b62f-d7bcef32399a' + volume_attachment_reference_volume_context_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/volume_attachments/0717-82cbf856-9cbb-45fb-b62f-d7bcef32399a' + ) volume_attachment_reference_volume_context_model_json['id'] = '0717-82cbf856-9cbb-45fb-b62f-d7bcef32399a' volume_attachment_reference_volume_context_model_json['instance'] = instance_reference_model volume_attachment_reference_volume_context_model_json['name'] = 'my-volume-attachment' volume_attachment_reference_volume_context_model_json['type'] = 'boot' # Construct a model instance of VolumeAttachmentReferenceVolumeContext by calling from_dict on the json representation - volume_attachment_reference_volume_context_model = VolumeAttachmentReferenceVolumeContext.from_dict(volume_attachment_reference_volume_context_model_json) + volume_attachment_reference_volume_context_model = VolumeAttachmentReferenceVolumeContext.from_dict( + volume_attachment_reference_volume_context_model_json + ) assert volume_attachment_reference_volume_context_model != False # Construct a model instance of VolumeAttachmentReferenceVolumeContext by calling from_dict on the json representation - volume_attachment_reference_volume_context_model_dict = VolumeAttachmentReferenceVolumeContext.from_dict(volume_attachment_reference_volume_context_model_json).__dict__ - volume_attachment_reference_volume_context_model2 = VolumeAttachmentReferenceVolumeContext(**volume_attachment_reference_volume_context_model_dict) + volume_attachment_reference_volume_context_model_dict = VolumeAttachmentReferenceVolumeContext.from_dict( + volume_attachment_reference_volume_context_model_json + ).__dict__ + volume_attachment_reference_volume_context_model2 = VolumeAttachmentReferenceVolumeContext( + **volume_attachment_reference_volume_context_model_dict + ) # Verify the model instances are equivalent assert volume_attachment_reference_volume_context_model == volume_attachment_reference_volume_context_model2 # Convert model instance back to dict and verify no loss of data - volume_attachment_reference_volume_context_model_json2 = volume_attachment_reference_volume_context_model.to_dict() - assert volume_attachment_reference_volume_context_model_json2 == volume_attachment_reference_volume_context_model_json + volume_attachment_reference_volume_context_model_json2 = ( + volume_attachment_reference_volume_context_model.to_dict() + ) + assert ( + volume_attachment_reference_volume_context_model_json2 + == volume_attachment_reference_volume_context_model_json + ) class TestModel_VolumeCatalogOffering: @@ -78473,11 +83615,15 @@ def test_volume_catalog_offering_serialization(self): deleted_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#deleted-resources' catalog_offering_version_plan_reference_model = {} # CatalogOfferingVersionPlanReference - catalog_offering_version_plan_reference_model['crn'] = 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:51c9e0db-2911-45a6-adb0-ac5332d27cf2:plan:sw.51c9e0db-2911-45a6-adb0-ac5332d27cf2.772c0dbe-aa62-482e-adbe-a3fc20101e0e' + catalog_offering_version_plan_reference_model['crn'] = ( + 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:51c9e0db-2911-45a6-adb0-ac5332d27cf2:plan:sw.51c9e0db-2911-45a6-adb0-ac5332d27cf2.772c0dbe-aa62-482e-adbe-a3fc20101e0e' + ) catalog_offering_version_plan_reference_model['deleted'] = deleted_model catalog_offering_version_reference_model = {} # CatalogOfferingVersionReference - catalog_offering_version_reference_model['crn'] = 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:version:00111601-0ec5-41ac-b142-96d1e64e6442/ec66bec2-6a33-42d6-9323-26dd4dc8875d' + catalog_offering_version_reference_model['crn'] = ( + 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:version:00111601-0ec5-41ac-b142-96d1e64e6442/ec66bec2-6a33-42d6-9323-26dd4dc8875d' + ) # Construct a json representation of a VolumeCatalogOffering model volume_catalog_offering_model_json = {} @@ -78489,7 +83635,9 @@ def test_volume_catalog_offering_serialization(self): assert volume_catalog_offering_model != False # Construct a model instance of VolumeCatalogOffering by calling from_dict on the json representation - volume_catalog_offering_model_dict = VolumeCatalogOffering.from_dict(volume_catalog_offering_model_json).__dict__ + volume_catalog_offering_model_dict = VolumeCatalogOffering.from_dict( + volume_catalog_offering_model_json + ).__dict__ volume_catalog_offering_model2 = VolumeCatalogOffering(**volume_catalog_offering_model_dict) # Verify the model instances are equivalent @@ -78519,23 +83667,33 @@ def test_volume_collection_serialization(self): deleted_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#deleted-resources' catalog_offering_version_plan_reference_model = {} # CatalogOfferingVersionPlanReference - catalog_offering_version_plan_reference_model['crn'] = 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:51c9e0db-2911-45a6-adb0-ac5332d27cf2:plan:sw.51c9e0db-2911-45a6-adb0-ac5332d27cf2.772c0dbe-aa62-482e-adbe-a3fc20101e0e' + catalog_offering_version_plan_reference_model['crn'] = ( + 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:51c9e0db-2911-45a6-adb0-ac5332d27cf2:plan:sw.51c9e0db-2911-45a6-adb0-ac5332d27cf2.772c0dbe-aa62-482e-adbe-a3fc20101e0e' + ) catalog_offering_version_plan_reference_model['deleted'] = deleted_model catalog_offering_version_reference_model = {} # CatalogOfferingVersionReference - catalog_offering_version_reference_model['crn'] = 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:version:00111601-0ec5-41ac-b142-96d1e64e6442/ec66bec2-6a33-42d6-9323-26dd4dc8875d' + catalog_offering_version_reference_model['crn'] = ( + 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:version:00111601-0ec5-41ac-b142-96d1e64e6442/ec66bec2-6a33-42d6-9323-26dd4dc8875d' + ) volume_catalog_offering_model = {} # VolumeCatalogOffering volume_catalog_offering_model['plan'] = catalog_offering_version_plan_reference_model volume_catalog_offering_model['version'] = catalog_offering_version_reference_model encryption_key_reference_model = {} # EncryptionKeyReference - encryption_key_reference_model['crn'] = 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + encryption_key_reference_model['crn'] = ( + 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + ) volume_health_reason_model = {} # VolumeHealthReason volume_health_reason_model['code'] = 'initializing_from_snapshot' - volume_health_reason_model['message'] = 'Performance will be degraded while this volume is being initialized from its snapshot' - volume_health_reason_model['more_info'] = 'https://cloud.ibm.com/docs/vpc?topic=vpc-snapshots-vpc-troubleshooting&interface=ui#snapshot_ts_degraded_perf' + volume_health_reason_model['message'] = ( + 'Performance will be degraded while this volume is being initialized from its snapshot' + ) + volume_health_reason_model['more_info'] = ( + 'https://cloud.ibm.com/docs/vpc?topic=vpc-snapshots-vpc-troubleshooting&interface=ui#snapshot_ts_degraded_perf' + ) operating_system_model = {} # OperatingSystem operating_system_model['allow_user_image_creation'] = True @@ -78554,7 +83712,9 @@ def test_volume_collection_serialization(self): volume_profile_reference_model['name'] = 'custom' resource_group_reference_model = {} # ResourceGroupReference - resource_group_reference_model['href'] = 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + resource_group_reference_model['href'] = ( + 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + ) resource_group_reference_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' resource_group_reference_model['name'] = 'Default' @@ -78571,9 +83731,13 @@ def test_volume_collection_serialization(self): image_remote_model['region'] = region_reference_model image_reference_model = {} # ImageReference - image_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::image:r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8' + image_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::image:r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8' + ) image_reference_model['deleted'] = deleted_model - image_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/images/r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8' + image_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/images/r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8' + ) image_reference_model['id'] = 'r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8' image_reference_model['name'] = 'my-image' image_reference_model['remote'] = image_remote_model @@ -78584,9 +83748,13 @@ def test_volume_collection_serialization(self): snapshot_remote_model['region'] = region_reference_model snapshot_reference_model = {} # SnapshotReference - snapshot_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::snapshot:r134-f6bfa329-0e36-433f-a3bb-0df632e79263' + snapshot_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::snapshot:r134-f6bfa329-0e36-433f-a3bb-0df632e79263' + ) snapshot_reference_model['deleted'] = deleted_model - snapshot_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/snapshots/r134-f6bfa329-0e36-433f-a3bb-0df632e79263' + snapshot_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/snapshots/r134-f6bfa329-0e36-433f-a3bb-0df632e79263' + ) snapshot_reference_model['id'] = 'r134-f6bfa329-0e36-433f-a3bb-0df632e79263' snapshot_reference_model['name'] = 'my-snapshot' snapshot_reference_model['remote'] = snapshot_remote_model @@ -78595,15 +83763,21 @@ def test_volume_collection_serialization(self): volume_status_reason_model = {} # VolumeStatusReason volume_status_reason_model['code'] = 'encryption_key_deleted' volume_status_reason_model['message'] = 'testString' - volume_status_reason_model['more_info'] = 'https://cloud.ibm.com/docs/key-protect?topic=key-protect-restore-keys' + volume_status_reason_model['more_info'] = ( + 'https://cloud.ibm.com/docs/key-protect?topic=key-protect-restore-keys' + ) volume_attachment_device_model = {} # VolumeAttachmentDevice volume_attachment_device_model['id'] = 'testString' instance_reference_model = {} # InstanceReference - instance_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::instance:0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' + instance_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::instance:0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' + ) instance_reference_model['deleted'] = deleted_model - instance_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' + instance_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' + ) instance_reference_model['id'] = '0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' instance_reference_model['name'] = 'my-instance' @@ -78611,7 +83785,9 @@ def test_volume_collection_serialization(self): volume_attachment_reference_volume_context_model['delete_volume_on_instance_delete'] = False volume_attachment_reference_volume_context_model['deleted'] = deleted_model volume_attachment_reference_volume_context_model['device'] = volume_attachment_device_model - volume_attachment_reference_volume_context_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/volume_attachments/0717-82cbf856-9cbb-45fb-b62f-d7bcef32399a' + volume_attachment_reference_volume_context_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/volume_attachments/0717-82cbf856-9cbb-45fb-b62f-d7bcef32399a' + ) volume_attachment_reference_volume_context_model['id'] = '0717-82cbf856-9cbb-45fb-b62f-d7bcef32399a' volume_attachment_reference_volume_context_model['instance'] = instance_reference_model volume_attachment_reference_volume_context_model['name'] = 'my-volume-attachment' @@ -78631,12 +83807,16 @@ def test_volume_collection_serialization(self): volume_model['capacity'] = 100 volume_model['catalog_offering'] = volume_catalog_offering_model volume_model['created_at'] = '2024-10-07T23:16:53Z' - volume_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::volume:r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' + volume_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::volume:r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' + ) volume_model['encryption'] = 'user_managed' volume_model['encryption_key'] = encryption_key_reference_model volume_model['health_reasons'] = [volume_health_reason_model] volume_model['health_state'] = 'ok' - volume_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/volumes/r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' + volume_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/volumes/r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' + ) volume_model['id'] = 'r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' volume_model['iops'] = 1000 volume_model['name'] = 'my-volume' @@ -78689,8 +83869,12 @@ def test_volume_health_reason_serialization(self): # Construct a json representation of a VolumeHealthReason model volume_health_reason_model_json = {} volume_health_reason_model_json['code'] = 'initializing_from_snapshot' - volume_health_reason_model_json['message'] = 'Performance will be degraded while this volume is being initialized from its snapshot' - volume_health_reason_model_json['more_info'] = 'https://cloud.ibm.com/docs/vpc?topic=vpc-snapshots-vpc-troubleshooting&interface=ui#snapshot_ts_degraded_perf' + volume_health_reason_model_json['message'] = ( + 'Performance will be degraded while this volume is being initialized from its snapshot' + ) + volume_health_reason_model_json['more_info'] = ( + 'https://cloud.ibm.com/docs/vpc?topic=vpc-snapshots-vpc-troubleshooting&interface=ui#snapshot_ts_degraded_perf' + ) # Construct a model instance of VolumeHealthReason by calling from_dict on the json representation volume_health_reason_model = VolumeHealthReason.from_dict(volume_health_reason_model_json) @@ -78831,19 +84015,30 @@ def test_volume_profile_adjustable_capacity_states_serialization(self): volume_profile_adjustable_capacity_states_model_json['values'] = ['attached', 'unattached'] # Construct a model instance of VolumeProfileAdjustableCapacityStates by calling from_dict on the json representation - volume_profile_adjustable_capacity_states_model = VolumeProfileAdjustableCapacityStates.from_dict(volume_profile_adjustable_capacity_states_model_json) + volume_profile_adjustable_capacity_states_model = VolumeProfileAdjustableCapacityStates.from_dict( + volume_profile_adjustable_capacity_states_model_json + ) assert volume_profile_adjustable_capacity_states_model != False # Construct a model instance of VolumeProfileAdjustableCapacityStates by calling from_dict on the json representation - volume_profile_adjustable_capacity_states_model_dict = VolumeProfileAdjustableCapacityStates.from_dict(volume_profile_adjustable_capacity_states_model_json).__dict__ - volume_profile_adjustable_capacity_states_model2 = VolumeProfileAdjustableCapacityStates(**volume_profile_adjustable_capacity_states_model_dict) + volume_profile_adjustable_capacity_states_model_dict = VolumeProfileAdjustableCapacityStates.from_dict( + volume_profile_adjustable_capacity_states_model_json + ).__dict__ + volume_profile_adjustable_capacity_states_model2 = VolumeProfileAdjustableCapacityStates( + **volume_profile_adjustable_capacity_states_model_dict + ) # Verify the model instances are equivalent assert volume_profile_adjustable_capacity_states_model == volume_profile_adjustable_capacity_states_model2 # Convert model instance back to dict and verify no loss of data - volume_profile_adjustable_capacity_states_model_json2 = volume_profile_adjustable_capacity_states_model.to_dict() - assert volume_profile_adjustable_capacity_states_model_json2 == volume_profile_adjustable_capacity_states_model_json + volume_profile_adjustable_capacity_states_model_json2 = ( + volume_profile_adjustable_capacity_states_model.to_dict() + ) + assert ( + volume_profile_adjustable_capacity_states_model_json2 + == volume_profile_adjustable_capacity_states_model_json + ) class TestModel_VolumeProfileAdjustableIOPSStates: @@ -78862,12 +84057,18 @@ def test_volume_profile_adjustable_iops_states_serialization(self): volume_profile_adjustable_iops_states_model_json['values'] = ['attached', 'unattached'] # Construct a model instance of VolumeProfileAdjustableIOPSStates by calling from_dict on the json representation - volume_profile_adjustable_iops_states_model = VolumeProfileAdjustableIOPSStates.from_dict(volume_profile_adjustable_iops_states_model_json) + volume_profile_adjustable_iops_states_model = VolumeProfileAdjustableIOPSStates.from_dict( + volume_profile_adjustable_iops_states_model_json + ) assert volume_profile_adjustable_iops_states_model != False # Construct a model instance of VolumeProfileAdjustableIOPSStates by calling from_dict on the json representation - volume_profile_adjustable_iops_states_model_dict = VolumeProfileAdjustableIOPSStates.from_dict(volume_profile_adjustable_iops_states_model_json).__dict__ - volume_profile_adjustable_iops_states_model2 = VolumeProfileAdjustableIOPSStates(**volume_profile_adjustable_iops_states_model_dict) + volume_profile_adjustable_iops_states_model_dict = VolumeProfileAdjustableIOPSStates.from_dict( + volume_profile_adjustable_iops_states_model_json + ).__dict__ + volume_profile_adjustable_iops_states_model2 = VolumeProfileAdjustableIOPSStates( + **volume_profile_adjustable_iops_states_model_dict + ) # Verify the model instances are equivalent assert volume_profile_adjustable_iops_states_model == volume_profile_adjustable_iops_states_model2 @@ -78944,7 +84145,9 @@ def test_volume_profile_collection_serialization(self): assert volume_profile_collection_model != False # Construct a model instance of VolumeProfileCollection by calling from_dict on the json representation - volume_profile_collection_model_dict = VolumeProfileCollection.from_dict(volume_profile_collection_model_json).__dict__ + volume_profile_collection_model_dict = VolumeProfileCollection.from_dict( + volume_profile_collection_model_json + ).__dict__ volume_profile_collection_model2 = VolumeProfileCollection(**volume_profile_collection_model_dict) # Verify the model instances are equivalent @@ -78967,7 +84170,9 @@ def test_volume_profile_reference_serialization(self): # Construct a json representation of a VolumeProfileReference model volume_profile_reference_model_json = {} - volume_profile_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/volume/profiles/general-purpose' + volume_profile_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/volume/profiles/general-purpose' + ) volume_profile_reference_model_json['name'] = 'general-purpose' # Construct a model instance of VolumeProfileReference by calling from_dict on the json representation @@ -78975,7 +84180,9 @@ def test_volume_profile_reference_serialization(self): assert volume_profile_reference_model != False # Construct a model instance of VolumeProfileReference by calling from_dict on the json representation - volume_profile_reference_model_dict = VolumeProfileReference.from_dict(volume_profile_reference_model_json).__dict__ + volume_profile_reference_model_dict = VolumeProfileReference.from_dict( + volume_profile_reference_model_json + ).__dict__ volume_profile_reference_model2 = VolumeProfileReference(**volume_profile_reference_model_dict) # Verify the model instances are equivalent @@ -78999,7 +84206,9 @@ def test_volume_prototype_instance_by_image_context_serialization(self): # Construct dict forms of any model objects needed in order to build this model. encryption_key_identity_model = {} # EncryptionKeyIdentityByCRN - encryption_key_identity_model['crn'] = 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + encryption_key_identity_model['crn'] = ( + 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + ) volume_profile_identity_model = {} # VolumeProfileIdentityByName volume_profile_identity_model['name'] = 'general-purpose' @@ -79018,19 +84227,30 @@ def test_volume_prototype_instance_by_image_context_serialization(self): volume_prototype_instance_by_image_context_model_json['user_tags'] = [] # Construct a model instance of VolumePrototypeInstanceByImageContext by calling from_dict on the json representation - volume_prototype_instance_by_image_context_model = VolumePrototypeInstanceByImageContext.from_dict(volume_prototype_instance_by_image_context_model_json) + volume_prototype_instance_by_image_context_model = VolumePrototypeInstanceByImageContext.from_dict( + volume_prototype_instance_by_image_context_model_json + ) assert volume_prototype_instance_by_image_context_model != False # Construct a model instance of VolumePrototypeInstanceByImageContext by calling from_dict on the json representation - volume_prototype_instance_by_image_context_model_dict = VolumePrototypeInstanceByImageContext.from_dict(volume_prototype_instance_by_image_context_model_json).__dict__ - volume_prototype_instance_by_image_context_model2 = VolumePrototypeInstanceByImageContext(**volume_prototype_instance_by_image_context_model_dict) + volume_prototype_instance_by_image_context_model_dict = VolumePrototypeInstanceByImageContext.from_dict( + volume_prototype_instance_by_image_context_model_json + ).__dict__ + volume_prototype_instance_by_image_context_model2 = VolumePrototypeInstanceByImageContext( + **volume_prototype_instance_by_image_context_model_dict + ) # Verify the model instances are equivalent assert volume_prototype_instance_by_image_context_model == volume_prototype_instance_by_image_context_model2 # Convert model instance back to dict and verify no loss of data - volume_prototype_instance_by_image_context_model_json2 = volume_prototype_instance_by_image_context_model.to_dict() - assert volume_prototype_instance_by_image_context_model_json2 == volume_prototype_instance_by_image_context_model_json + volume_prototype_instance_by_image_context_model_json2 = ( + volume_prototype_instance_by_image_context_model.to_dict() + ) + assert ( + volume_prototype_instance_by_image_context_model_json2 + == volume_prototype_instance_by_image_context_model_json + ) class TestModel_VolumePrototypeInstanceBySourceSnapshotContext: @@ -79046,7 +84266,9 @@ def test_volume_prototype_instance_by_source_snapshot_context_serialization(self # Construct dict forms of any model objects needed in order to build this model. encryption_key_identity_model = {} # EncryptionKeyIdentityByCRN - encryption_key_identity_model['crn'] = 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + encryption_key_identity_model['crn'] = ( + 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + ) volume_profile_identity_model = {} # VolumeProfileIdentityByName volume_profile_identity_model['name'] = 'general-purpose' @@ -79060,28 +84282,50 @@ def test_volume_prototype_instance_by_source_snapshot_context_serialization(self # Construct a json representation of a VolumePrototypeInstanceBySourceSnapshotContext model volume_prototype_instance_by_source_snapshot_context_model_json = {} volume_prototype_instance_by_source_snapshot_context_model_json['capacity'] = 100 - volume_prototype_instance_by_source_snapshot_context_model_json['encryption_key'] = encryption_key_identity_model + volume_prototype_instance_by_source_snapshot_context_model_json['encryption_key'] = ( + encryption_key_identity_model + ) volume_prototype_instance_by_source_snapshot_context_model_json['iops'] = 10000 volume_prototype_instance_by_source_snapshot_context_model_json['name'] = 'my-volume' volume_prototype_instance_by_source_snapshot_context_model_json['profile'] = volume_profile_identity_model - volume_prototype_instance_by_source_snapshot_context_model_json['resource_group'] = resource_group_identity_model + volume_prototype_instance_by_source_snapshot_context_model_json['resource_group'] = ( + resource_group_identity_model + ) volume_prototype_instance_by_source_snapshot_context_model_json['source_snapshot'] = snapshot_identity_model volume_prototype_instance_by_source_snapshot_context_model_json['user_tags'] = [] # Construct a model instance of VolumePrototypeInstanceBySourceSnapshotContext by calling from_dict on the json representation - volume_prototype_instance_by_source_snapshot_context_model = VolumePrototypeInstanceBySourceSnapshotContext.from_dict(volume_prototype_instance_by_source_snapshot_context_model_json) + volume_prototype_instance_by_source_snapshot_context_model = ( + VolumePrototypeInstanceBySourceSnapshotContext.from_dict( + volume_prototype_instance_by_source_snapshot_context_model_json + ) + ) assert volume_prototype_instance_by_source_snapshot_context_model != False # Construct a model instance of VolumePrototypeInstanceBySourceSnapshotContext by calling from_dict on the json representation - volume_prototype_instance_by_source_snapshot_context_model_dict = VolumePrototypeInstanceBySourceSnapshotContext.from_dict(volume_prototype_instance_by_source_snapshot_context_model_json).__dict__ - volume_prototype_instance_by_source_snapshot_context_model2 = VolumePrototypeInstanceBySourceSnapshotContext(**volume_prototype_instance_by_source_snapshot_context_model_dict) + volume_prototype_instance_by_source_snapshot_context_model_dict = ( + VolumePrototypeInstanceBySourceSnapshotContext.from_dict( + volume_prototype_instance_by_source_snapshot_context_model_json + ).__dict__ + ) + volume_prototype_instance_by_source_snapshot_context_model2 = VolumePrototypeInstanceBySourceSnapshotContext( + **volume_prototype_instance_by_source_snapshot_context_model_dict + ) # Verify the model instances are equivalent - assert volume_prototype_instance_by_source_snapshot_context_model == volume_prototype_instance_by_source_snapshot_context_model2 + assert ( + volume_prototype_instance_by_source_snapshot_context_model + == volume_prototype_instance_by_source_snapshot_context_model2 + ) # Convert model instance back to dict and verify no loss of data - volume_prototype_instance_by_source_snapshot_context_model_json2 = volume_prototype_instance_by_source_snapshot_context_model.to_dict() - assert volume_prototype_instance_by_source_snapshot_context_model_json2 == volume_prototype_instance_by_source_snapshot_context_model_json + volume_prototype_instance_by_source_snapshot_context_model_json2 = ( + volume_prototype_instance_by_source_snapshot_context_model.to_dict() + ) + assert ( + volume_prototype_instance_by_source_snapshot_context_model_json2 + == volume_prototype_instance_by_source_snapshot_context_model_json + ) class TestModel_VolumeReference: @@ -79108,9 +84352,13 @@ def test_volume_reference_serialization(self): # Construct a json representation of a VolumeReference model volume_reference_model_json = {} - volume_reference_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::volume:r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' + volume_reference_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::volume:r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' + ) volume_reference_model_json['deleted'] = deleted_model - volume_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/volumes/r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' + volume_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/volumes/r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' + ) volume_reference_model_json['id'] = 'r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' volume_reference_model_json['name'] = 'my-volume' volume_reference_model_json['remote'] = volume_remote_model @@ -79149,27 +84397,42 @@ def test_volume_reference_volume_attachment_context_serialization(self): # Construct a json representation of a VolumeReferenceVolumeAttachmentContext model volume_reference_volume_attachment_context_model_json = {} - volume_reference_volume_attachment_context_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::volume:r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' + volume_reference_volume_attachment_context_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::volume:r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' + ) volume_reference_volume_attachment_context_model_json['deleted'] = deleted_model - volume_reference_volume_attachment_context_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/volumes/r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' + volume_reference_volume_attachment_context_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/volumes/r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' + ) volume_reference_volume_attachment_context_model_json['id'] = 'r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' volume_reference_volume_attachment_context_model_json['name'] = 'my-volume' volume_reference_volume_attachment_context_model_json['resource_type'] = 'volume' # Construct a model instance of VolumeReferenceVolumeAttachmentContext by calling from_dict on the json representation - volume_reference_volume_attachment_context_model = VolumeReferenceVolumeAttachmentContext.from_dict(volume_reference_volume_attachment_context_model_json) + volume_reference_volume_attachment_context_model = VolumeReferenceVolumeAttachmentContext.from_dict( + volume_reference_volume_attachment_context_model_json + ) assert volume_reference_volume_attachment_context_model != False # Construct a model instance of VolumeReferenceVolumeAttachmentContext by calling from_dict on the json representation - volume_reference_volume_attachment_context_model_dict = VolumeReferenceVolumeAttachmentContext.from_dict(volume_reference_volume_attachment_context_model_json).__dict__ - volume_reference_volume_attachment_context_model2 = VolumeReferenceVolumeAttachmentContext(**volume_reference_volume_attachment_context_model_dict) + volume_reference_volume_attachment_context_model_dict = VolumeReferenceVolumeAttachmentContext.from_dict( + volume_reference_volume_attachment_context_model_json + ).__dict__ + volume_reference_volume_attachment_context_model2 = VolumeReferenceVolumeAttachmentContext( + **volume_reference_volume_attachment_context_model_dict + ) # Verify the model instances are equivalent assert volume_reference_volume_attachment_context_model == volume_reference_volume_attachment_context_model2 # Convert model instance back to dict and verify no loss of data - volume_reference_volume_attachment_context_model_json2 = volume_reference_volume_attachment_context_model.to_dict() - assert volume_reference_volume_attachment_context_model_json2 == volume_reference_volume_attachment_context_model_json + volume_reference_volume_attachment_context_model_json2 = ( + volume_reference_volume_attachment_context_model.to_dict() + ) + assert ( + volume_reference_volume_attachment_context_model_json2 + == volume_reference_volume_attachment_context_model_json + ) class TestModel_VolumeRemote: @@ -79222,7 +84485,9 @@ def test_volume_status_reason_serialization(self): volume_status_reason_model_json = {} volume_status_reason_model_json['code'] = 'encryption_key_deleted' volume_status_reason_model_json['message'] = 'testString' - volume_status_reason_model_json['more_info'] = 'https://cloud.ibm.com/docs/key-protect?topic=key-protect-restore-keys' + volume_status_reason_model_json['more_info'] = ( + 'https://cloud.ibm.com/docs/key-protect?topic=key-protect-restore-keys' + ) # Construct a model instance of VolumeStatusReason by calling from_dict on the json representation volume_status_reason_model = VolumeStatusReason.from_dict(volume_status_reason_model_json) @@ -79403,26 +84668,41 @@ def test_backup_policy_job_source_instance_reference_serialization(self): # Construct a json representation of a BackupPolicyJobSourceInstanceReference model backup_policy_job_source_instance_reference_model_json = {} - backup_policy_job_source_instance_reference_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::instance:0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' + backup_policy_job_source_instance_reference_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::instance:0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' + ) backup_policy_job_source_instance_reference_model_json['deleted'] = deleted_model - backup_policy_job_source_instance_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' + backup_policy_job_source_instance_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' + ) backup_policy_job_source_instance_reference_model_json['id'] = '0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' backup_policy_job_source_instance_reference_model_json['name'] = 'my-instance' # Construct a model instance of BackupPolicyJobSourceInstanceReference by calling from_dict on the json representation - backup_policy_job_source_instance_reference_model = BackupPolicyJobSourceInstanceReference.from_dict(backup_policy_job_source_instance_reference_model_json) + backup_policy_job_source_instance_reference_model = BackupPolicyJobSourceInstanceReference.from_dict( + backup_policy_job_source_instance_reference_model_json + ) assert backup_policy_job_source_instance_reference_model != False # Construct a model instance of BackupPolicyJobSourceInstanceReference by calling from_dict on the json representation - backup_policy_job_source_instance_reference_model_dict = BackupPolicyJobSourceInstanceReference.from_dict(backup_policy_job_source_instance_reference_model_json).__dict__ - backup_policy_job_source_instance_reference_model2 = BackupPolicyJobSourceInstanceReference(**backup_policy_job_source_instance_reference_model_dict) + backup_policy_job_source_instance_reference_model_dict = BackupPolicyJobSourceInstanceReference.from_dict( + backup_policy_job_source_instance_reference_model_json + ).__dict__ + backup_policy_job_source_instance_reference_model2 = BackupPolicyJobSourceInstanceReference( + **backup_policy_job_source_instance_reference_model_dict + ) # Verify the model instances are equivalent assert backup_policy_job_source_instance_reference_model == backup_policy_job_source_instance_reference_model2 # Convert model instance back to dict and verify no loss of data - backup_policy_job_source_instance_reference_model_json2 = backup_policy_job_source_instance_reference_model.to_dict() - assert backup_policy_job_source_instance_reference_model_json2 == backup_policy_job_source_instance_reference_model_json + backup_policy_job_source_instance_reference_model_json2 = ( + backup_policy_job_source_instance_reference_model.to_dict() + ) + assert ( + backup_policy_job_source_instance_reference_model_json2 + == backup_policy_job_source_instance_reference_model_json + ) class TestModel_BackupPolicyJobSourceVolumeReference: @@ -79449,28 +84729,43 @@ def test_backup_policy_job_source_volume_reference_serialization(self): # Construct a json representation of a BackupPolicyJobSourceVolumeReference model backup_policy_job_source_volume_reference_model_json = {} - backup_policy_job_source_volume_reference_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::volume:r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' + backup_policy_job_source_volume_reference_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::volume:r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' + ) backup_policy_job_source_volume_reference_model_json['deleted'] = deleted_model - backup_policy_job_source_volume_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/volumes/r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' + backup_policy_job_source_volume_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/volumes/r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' + ) backup_policy_job_source_volume_reference_model_json['id'] = 'r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' backup_policy_job_source_volume_reference_model_json['name'] = 'my-volume' backup_policy_job_source_volume_reference_model_json['remote'] = volume_remote_model backup_policy_job_source_volume_reference_model_json['resource_type'] = 'volume' # Construct a model instance of BackupPolicyJobSourceVolumeReference by calling from_dict on the json representation - backup_policy_job_source_volume_reference_model = BackupPolicyJobSourceVolumeReference.from_dict(backup_policy_job_source_volume_reference_model_json) + backup_policy_job_source_volume_reference_model = BackupPolicyJobSourceVolumeReference.from_dict( + backup_policy_job_source_volume_reference_model_json + ) assert backup_policy_job_source_volume_reference_model != False # Construct a model instance of BackupPolicyJobSourceVolumeReference by calling from_dict on the json representation - backup_policy_job_source_volume_reference_model_dict = BackupPolicyJobSourceVolumeReference.from_dict(backup_policy_job_source_volume_reference_model_json).__dict__ - backup_policy_job_source_volume_reference_model2 = BackupPolicyJobSourceVolumeReference(**backup_policy_job_source_volume_reference_model_dict) + backup_policy_job_source_volume_reference_model_dict = BackupPolicyJobSourceVolumeReference.from_dict( + backup_policy_job_source_volume_reference_model_json + ).__dict__ + backup_policy_job_source_volume_reference_model2 = BackupPolicyJobSourceVolumeReference( + **backup_policy_job_source_volume_reference_model_dict + ) # Verify the model instances are equivalent assert backup_policy_job_source_volume_reference_model == backup_policy_job_source_volume_reference_model2 # Convert model instance back to dict and verify no loss of data - backup_policy_job_source_volume_reference_model_json2 = backup_policy_job_source_volume_reference_model.to_dict() - assert backup_policy_job_source_volume_reference_model_json2 == backup_policy_job_source_volume_reference_model_json + backup_policy_job_source_volume_reference_model_json2 = ( + backup_policy_job_source_volume_reference_model.to_dict() + ) + assert ( + backup_policy_job_source_volume_reference_model_json2 + == backup_policy_job_source_volume_reference_model_json + ) class TestModel_BackupPolicyMatchResourceTypeInstance: @@ -79488,7 +84783,9 @@ def test_backup_policy_match_resource_type_instance_serialization(self): backup_policy_health_reason_model = {} # BackupPolicyHealthReason backup_policy_health_reason_model['code'] = 'missing_service_authorization_policies' backup_policy_health_reason_model['message'] = 'One or more accounts are missing service authorization policies' - backup_policy_health_reason_model['more_info'] = 'https://cloud.ibm.com/docs/vpc?topic=vpc-backup-service-about&interface=ui' + backup_policy_health_reason_model['more_info'] = ( + 'https://cloud.ibm.com/docs/vpc?topic=vpc-backup-service-about&interface=ui' + ) deleted_model = {} # Deleted deleted_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#deleted-resources' @@ -79502,29 +84799,39 @@ def test_backup_policy_match_resource_type_instance_serialization(self): backup_policy_plan_reference_model = {} # BackupPolicyPlanReference backup_policy_plan_reference_model['deleted'] = deleted_model - backup_policy_plan_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/backup_policies/r134-076191ba-49c2-4763-94fd-c70de73ee2e6/plans/r134-6da51cfe-6f7b-4638-a6ba-00e9c327b178' + backup_policy_plan_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/backup_policies/r134-076191ba-49c2-4763-94fd-c70de73ee2e6/plans/r134-6da51cfe-6f7b-4638-a6ba-00e9c327b178' + ) backup_policy_plan_reference_model['id'] = 'r134-6da51cfe-6f7b-4638-a6ba-00e9c327b178' backup_policy_plan_reference_model['name'] = 'my-policy-plan' backup_policy_plan_reference_model['remote'] = backup_policy_plan_remote_model backup_policy_plan_reference_model['resource_type'] = 'backup_policy_plan' resource_group_reference_model = {} # ResourceGroupReference - resource_group_reference_model['href'] = 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + resource_group_reference_model['href'] = ( + 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + ) resource_group_reference_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' resource_group_reference_model['name'] = 'my-resource-group' backup_policy_scope_model = {} # BackupPolicyScopeEnterpriseReference - backup_policy_scope_model['crn'] = 'crn:v1:bluemix:public:enterprise::a/aa2432b1fa4d4ace891e9b80fc104e34::enterprise:ebc2b430240943458b9e91e1432cfcce' + backup_policy_scope_model['crn'] = ( + 'crn:v1:bluemix:public:enterprise::a/aa2432b1fa4d4ace891e9b80fc104e34::enterprise:ebc2b430240943458b9e91e1432cfcce' + ) backup_policy_scope_model['id'] = 'ebc2b430240943458b9e91e1432cfcce' backup_policy_scope_model['resource_type'] = 'enterprise' # Construct a json representation of a BackupPolicyMatchResourceTypeInstance model backup_policy_match_resource_type_instance_model_json = {} backup_policy_match_resource_type_instance_model_json['created_at'] = '2019-01-01T12:00:00Z' - backup_policy_match_resource_type_instance_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::backup-policy:r134-076191ba-49c2-4763-94fd-c70de73ee2e6' + backup_policy_match_resource_type_instance_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::backup-policy:r134-076191ba-49c2-4763-94fd-c70de73ee2e6' + ) backup_policy_match_resource_type_instance_model_json['health_reasons'] = [backup_policy_health_reason_model] backup_policy_match_resource_type_instance_model_json['health_state'] = 'ok' - backup_policy_match_resource_type_instance_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/backup_policies/r134-076191ba-49c2-4763-94fd-c70de73ee2e6' + backup_policy_match_resource_type_instance_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/backup_policies/r134-076191ba-49c2-4763-94fd-c70de73ee2e6' + ) backup_policy_match_resource_type_instance_model_json['id'] = 'r134-076191ba-49c2-4763-94fd-c70de73ee2e6' backup_policy_match_resource_type_instance_model_json['last_job_completed_at'] = '2019-01-01T12:00:00Z' backup_policy_match_resource_type_instance_model_json['lifecycle_state'] = 'stable' @@ -79538,19 +84845,30 @@ def test_backup_policy_match_resource_type_instance_serialization(self): backup_policy_match_resource_type_instance_model_json['match_resource_type'] = 'instance' # Construct a model instance of BackupPolicyMatchResourceTypeInstance by calling from_dict on the json representation - backup_policy_match_resource_type_instance_model = BackupPolicyMatchResourceTypeInstance.from_dict(backup_policy_match_resource_type_instance_model_json) + backup_policy_match_resource_type_instance_model = BackupPolicyMatchResourceTypeInstance.from_dict( + backup_policy_match_resource_type_instance_model_json + ) assert backup_policy_match_resource_type_instance_model != False # Construct a model instance of BackupPolicyMatchResourceTypeInstance by calling from_dict on the json representation - backup_policy_match_resource_type_instance_model_dict = BackupPolicyMatchResourceTypeInstance.from_dict(backup_policy_match_resource_type_instance_model_json).__dict__ - backup_policy_match_resource_type_instance_model2 = BackupPolicyMatchResourceTypeInstance(**backup_policy_match_resource_type_instance_model_dict) + backup_policy_match_resource_type_instance_model_dict = BackupPolicyMatchResourceTypeInstance.from_dict( + backup_policy_match_resource_type_instance_model_json + ).__dict__ + backup_policy_match_resource_type_instance_model2 = BackupPolicyMatchResourceTypeInstance( + **backup_policy_match_resource_type_instance_model_dict + ) # Verify the model instances are equivalent assert backup_policy_match_resource_type_instance_model == backup_policy_match_resource_type_instance_model2 # Convert model instance back to dict and verify no loss of data - backup_policy_match_resource_type_instance_model_json2 = backup_policy_match_resource_type_instance_model.to_dict() - assert backup_policy_match_resource_type_instance_model_json2 == backup_policy_match_resource_type_instance_model_json + backup_policy_match_resource_type_instance_model_json2 = ( + backup_policy_match_resource_type_instance_model.to_dict() + ) + assert ( + backup_policy_match_resource_type_instance_model_json2 + == backup_policy_match_resource_type_instance_model_json + ) class TestModel_BackupPolicyMatchResourceTypeVolume: @@ -79568,7 +84886,9 @@ def test_backup_policy_match_resource_type_volume_serialization(self): backup_policy_health_reason_model = {} # BackupPolicyHealthReason backup_policy_health_reason_model['code'] = 'missing_service_authorization_policies' backup_policy_health_reason_model['message'] = 'One or more accounts are missing service authorization policies' - backup_policy_health_reason_model['more_info'] = 'https://cloud.ibm.com/docs/vpc?topic=vpc-backup-service-about&interface=ui' + backup_policy_health_reason_model['more_info'] = ( + 'https://cloud.ibm.com/docs/vpc?topic=vpc-backup-service-about&interface=ui' + ) deleted_model = {} # Deleted deleted_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#deleted-resources' @@ -79582,29 +84902,39 @@ def test_backup_policy_match_resource_type_volume_serialization(self): backup_policy_plan_reference_model = {} # BackupPolicyPlanReference backup_policy_plan_reference_model['deleted'] = deleted_model - backup_policy_plan_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/backup_policies/r134-076191ba-49c2-4763-94fd-c70de73ee2e6/plans/r134-6da51cfe-6f7b-4638-a6ba-00e9c327b178' + backup_policy_plan_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/backup_policies/r134-076191ba-49c2-4763-94fd-c70de73ee2e6/plans/r134-6da51cfe-6f7b-4638-a6ba-00e9c327b178' + ) backup_policy_plan_reference_model['id'] = 'r134-6da51cfe-6f7b-4638-a6ba-00e9c327b178' backup_policy_plan_reference_model['name'] = 'my-policy-plan' backup_policy_plan_reference_model['remote'] = backup_policy_plan_remote_model backup_policy_plan_reference_model['resource_type'] = 'backup_policy_plan' resource_group_reference_model = {} # ResourceGroupReference - resource_group_reference_model['href'] = 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + resource_group_reference_model['href'] = ( + 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + ) resource_group_reference_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' resource_group_reference_model['name'] = 'my-resource-group' backup_policy_scope_model = {} # BackupPolicyScopeEnterpriseReference - backup_policy_scope_model['crn'] = 'crn:v1:bluemix:public:enterprise::a/aa2432b1fa4d4ace891e9b80fc104e34::enterprise:ebc2b430240943458b9e91e1432cfcce' + backup_policy_scope_model['crn'] = ( + 'crn:v1:bluemix:public:enterprise::a/aa2432b1fa4d4ace891e9b80fc104e34::enterprise:ebc2b430240943458b9e91e1432cfcce' + ) backup_policy_scope_model['id'] = 'ebc2b430240943458b9e91e1432cfcce' backup_policy_scope_model['resource_type'] = 'enterprise' # Construct a json representation of a BackupPolicyMatchResourceTypeVolume model backup_policy_match_resource_type_volume_model_json = {} backup_policy_match_resource_type_volume_model_json['created_at'] = '2019-01-01T12:00:00Z' - backup_policy_match_resource_type_volume_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::backup-policy:r134-076191ba-49c2-4763-94fd-c70de73ee2e6' + backup_policy_match_resource_type_volume_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::backup-policy:r134-076191ba-49c2-4763-94fd-c70de73ee2e6' + ) backup_policy_match_resource_type_volume_model_json['health_reasons'] = [backup_policy_health_reason_model] backup_policy_match_resource_type_volume_model_json['health_state'] = 'ok' - backup_policy_match_resource_type_volume_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/backup_policies/r134-076191ba-49c2-4763-94fd-c70de73ee2e6' + backup_policy_match_resource_type_volume_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/backup_policies/r134-076191ba-49c2-4763-94fd-c70de73ee2e6' + ) backup_policy_match_resource_type_volume_model_json['id'] = 'r134-076191ba-49c2-4763-94fd-c70de73ee2e6' backup_policy_match_resource_type_volume_model_json['last_job_completed_at'] = '2019-01-01T12:00:00Z' backup_policy_match_resource_type_volume_model_json['lifecycle_state'] = 'stable' @@ -79617,19 +84947,27 @@ def test_backup_policy_match_resource_type_volume_serialization(self): backup_policy_match_resource_type_volume_model_json['match_resource_type'] = 'volume' # Construct a model instance of BackupPolicyMatchResourceTypeVolume by calling from_dict on the json representation - backup_policy_match_resource_type_volume_model = BackupPolicyMatchResourceTypeVolume.from_dict(backup_policy_match_resource_type_volume_model_json) + backup_policy_match_resource_type_volume_model = BackupPolicyMatchResourceTypeVolume.from_dict( + backup_policy_match_resource_type_volume_model_json + ) assert backup_policy_match_resource_type_volume_model != False # Construct a model instance of BackupPolicyMatchResourceTypeVolume by calling from_dict on the json representation - backup_policy_match_resource_type_volume_model_dict = BackupPolicyMatchResourceTypeVolume.from_dict(backup_policy_match_resource_type_volume_model_json).__dict__ - backup_policy_match_resource_type_volume_model2 = BackupPolicyMatchResourceTypeVolume(**backup_policy_match_resource_type_volume_model_dict) + backup_policy_match_resource_type_volume_model_dict = BackupPolicyMatchResourceTypeVolume.from_dict( + backup_policy_match_resource_type_volume_model_json + ).__dict__ + backup_policy_match_resource_type_volume_model2 = BackupPolicyMatchResourceTypeVolume( + **backup_policy_match_resource_type_volume_model_dict + ) # Verify the model instances are equivalent assert backup_policy_match_resource_type_volume_model == backup_policy_match_resource_type_volume_model2 # Convert model instance back to dict and verify no loss of data backup_policy_match_resource_type_volume_model_json2 = backup_policy_match_resource_type_volume_model.to_dict() - assert backup_policy_match_resource_type_volume_model_json2 == backup_policy_match_resource_type_volume_model_json + assert ( + backup_policy_match_resource_type_volume_model_json2 == backup_policy_match_resource_type_volume_model_json + ) class TestModel_BackupPolicyPrototypeBackupPolicyMatchResourceTypeInstancePrototype: @@ -79656,7 +84994,9 @@ def test_backup_policy_prototype_backup_policy_match_resource_type_instance_prot backup_policy_plan_deletion_trigger_prototype_model['delete_over_count'] = 20 encryption_key_identity_model = {} # EncryptionKeyIdentityByCRN - encryption_key_identity_model['crn'] = 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + encryption_key_identity_model['crn'] = ( + 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + ) region_identity_model = {} # RegionIdentityByName region_identity_model['name'] = 'us-south' @@ -79674,38 +85014,77 @@ def test_backup_policy_prototype_backup_policy_match_resource_type_instance_prot backup_policy_plan_prototype_model['cron_spec'] = '30 */2 * * 1-5' backup_policy_plan_prototype_model['deletion_trigger'] = backup_policy_plan_deletion_trigger_prototype_model backup_policy_plan_prototype_model['name'] = 'my-policy-plan' - backup_policy_plan_prototype_model['remote_region_policies'] = [backup_policy_plan_remote_region_policy_prototype_model] + backup_policy_plan_prototype_model['remote_region_policies'] = [ + backup_policy_plan_remote_region_policy_prototype_model + ] resource_group_identity_model = {} # ResourceGroupIdentityById resource_group_identity_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' backup_policy_scope_prototype_model = {} # BackupPolicyScopePrototypeEnterpriseIdentityEnterpriseIdentityByCRN - backup_policy_scope_prototype_model['crn'] = 'crn:v1:bluemix:public:enterprise::a/aa2432b1fa4d4ace891e9b80fc104e34::enterprise:ebc2b430240943458b9e91e1432cfcce' + backup_policy_scope_prototype_model['crn'] = ( + 'crn:v1:bluemix:public:enterprise::a/aa2432b1fa4d4ace891e9b80fc104e34::enterprise:ebc2b430240943458b9e91e1432cfcce' + ) # Construct a json representation of a BackupPolicyPrototypeBackupPolicyMatchResourceTypeInstancePrototype model backup_policy_prototype_backup_policy_match_resource_type_instance_prototype_model_json = {} - backup_policy_prototype_backup_policy_match_resource_type_instance_prototype_model_json['match_user_tags'] = ['my-daily-backup-policy'] - backup_policy_prototype_backup_policy_match_resource_type_instance_prototype_model_json['name'] = 'my-backup-policy' - backup_policy_prototype_backup_policy_match_resource_type_instance_prototype_model_json['plans'] = [backup_policy_plan_prototype_model] - backup_policy_prototype_backup_policy_match_resource_type_instance_prototype_model_json['resource_group'] = resource_group_identity_model - backup_policy_prototype_backup_policy_match_resource_type_instance_prototype_model_json['scope'] = backup_policy_scope_prototype_model - backup_policy_prototype_backup_policy_match_resource_type_instance_prototype_model_json['included_content'] = ['boot_volume', 'data_volumes'] - backup_policy_prototype_backup_policy_match_resource_type_instance_prototype_model_json['match_resource_type'] = 'instance' + backup_policy_prototype_backup_policy_match_resource_type_instance_prototype_model_json['match_user_tags'] = [ + 'my-daily-backup-policy' + ] + backup_policy_prototype_backup_policy_match_resource_type_instance_prototype_model_json['name'] = ( + 'my-backup-policy' + ) + backup_policy_prototype_backup_policy_match_resource_type_instance_prototype_model_json['plans'] = [ + backup_policy_plan_prototype_model + ] + backup_policy_prototype_backup_policy_match_resource_type_instance_prototype_model_json['resource_group'] = ( + resource_group_identity_model + ) + backup_policy_prototype_backup_policy_match_resource_type_instance_prototype_model_json['scope'] = ( + backup_policy_scope_prototype_model + ) + backup_policy_prototype_backup_policy_match_resource_type_instance_prototype_model_json['included_content'] = [ + 'boot_volume', + 'data_volumes', + ] + backup_policy_prototype_backup_policy_match_resource_type_instance_prototype_model_json[ + 'match_resource_type' + ] = 'instance' # Construct a model instance of BackupPolicyPrototypeBackupPolicyMatchResourceTypeInstancePrototype by calling from_dict on the json representation - backup_policy_prototype_backup_policy_match_resource_type_instance_prototype_model = BackupPolicyPrototypeBackupPolicyMatchResourceTypeInstancePrototype.from_dict(backup_policy_prototype_backup_policy_match_resource_type_instance_prototype_model_json) + backup_policy_prototype_backup_policy_match_resource_type_instance_prototype_model = ( + BackupPolicyPrototypeBackupPolicyMatchResourceTypeInstancePrototype.from_dict( + backup_policy_prototype_backup_policy_match_resource_type_instance_prototype_model_json + ) + ) assert backup_policy_prototype_backup_policy_match_resource_type_instance_prototype_model != False # Construct a model instance of BackupPolicyPrototypeBackupPolicyMatchResourceTypeInstancePrototype by calling from_dict on the json representation - backup_policy_prototype_backup_policy_match_resource_type_instance_prototype_model_dict = BackupPolicyPrototypeBackupPolicyMatchResourceTypeInstancePrototype.from_dict(backup_policy_prototype_backup_policy_match_resource_type_instance_prototype_model_json).__dict__ - backup_policy_prototype_backup_policy_match_resource_type_instance_prototype_model2 = BackupPolicyPrototypeBackupPolicyMatchResourceTypeInstancePrototype(**backup_policy_prototype_backup_policy_match_resource_type_instance_prototype_model_dict) + backup_policy_prototype_backup_policy_match_resource_type_instance_prototype_model_dict = ( + BackupPolicyPrototypeBackupPolicyMatchResourceTypeInstancePrototype.from_dict( + backup_policy_prototype_backup_policy_match_resource_type_instance_prototype_model_json + ).__dict__ + ) + backup_policy_prototype_backup_policy_match_resource_type_instance_prototype_model2 = ( + BackupPolicyPrototypeBackupPolicyMatchResourceTypeInstancePrototype( + **backup_policy_prototype_backup_policy_match_resource_type_instance_prototype_model_dict + ) + ) # Verify the model instances are equivalent - assert backup_policy_prototype_backup_policy_match_resource_type_instance_prototype_model == backup_policy_prototype_backup_policy_match_resource_type_instance_prototype_model2 + assert ( + backup_policy_prototype_backup_policy_match_resource_type_instance_prototype_model + == backup_policy_prototype_backup_policy_match_resource_type_instance_prototype_model2 + ) # Convert model instance back to dict and verify no loss of data - backup_policy_prototype_backup_policy_match_resource_type_instance_prototype_model_json2 = backup_policy_prototype_backup_policy_match_resource_type_instance_prototype_model.to_dict() - assert backup_policy_prototype_backup_policy_match_resource_type_instance_prototype_model_json2 == backup_policy_prototype_backup_policy_match_resource_type_instance_prototype_model_json + backup_policy_prototype_backup_policy_match_resource_type_instance_prototype_model_json2 = ( + backup_policy_prototype_backup_policy_match_resource_type_instance_prototype_model.to_dict() + ) + assert ( + backup_policy_prototype_backup_policy_match_resource_type_instance_prototype_model_json2 + == backup_policy_prototype_backup_policy_match_resource_type_instance_prototype_model_json + ) class TestModel_BackupPolicyPrototypeBackupPolicyMatchResourceTypeVolumePrototype: @@ -79732,7 +85111,9 @@ def test_backup_policy_prototype_backup_policy_match_resource_type_volume_protot backup_policy_plan_deletion_trigger_prototype_model['delete_over_count'] = 20 encryption_key_identity_model = {} # EncryptionKeyIdentityByCRN - encryption_key_identity_model['crn'] = 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + encryption_key_identity_model['crn'] = ( + 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + ) region_identity_model = {} # RegionIdentityByName region_identity_model['name'] = 'us-south' @@ -79750,37 +85131,73 @@ def test_backup_policy_prototype_backup_policy_match_resource_type_volume_protot backup_policy_plan_prototype_model['cron_spec'] = '30 */2 * * 1-5' backup_policy_plan_prototype_model['deletion_trigger'] = backup_policy_plan_deletion_trigger_prototype_model backup_policy_plan_prototype_model['name'] = 'my-policy-plan' - backup_policy_plan_prototype_model['remote_region_policies'] = [backup_policy_plan_remote_region_policy_prototype_model] + backup_policy_plan_prototype_model['remote_region_policies'] = [ + backup_policy_plan_remote_region_policy_prototype_model + ] resource_group_identity_model = {} # ResourceGroupIdentityById resource_group_identity_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' backup_policy_scope_prototype_model = {} # BackupPolicyScopePrototypeEnterpriseIdentityEnterpriseIdentityByCRN - backup_policy_scope_prototype_model['crn'] = 'crn:v1:bluemix:public:enterprise::a/aa2432b1fa4d4ace891e9b80fc104e34::enterprise:ebc2b430240943458b9e91e1432cfcce' + backup_policy_scope_prototype_model['crn'] = ( + 'crn:v1:bluemix:public:enterprise::a/aa2432b1fa4d4ace891e9b80fc104e34::enterprise:ebc2b430240943458b9e91e1432cfcce' + ) # Construct a json representation of a BackupPolicyPrototypeBackupPolicyMatchResourceTypeVolumePrototype model backup_policy_prototype_backup_policy_match_resource_type_volume_prototype_model_json = {} - backup_policy_prototype_backup_policy_match_resource_type_volume_prototype_model_json['match_user_tags'] = ['my-daily-backup-policy'] - backup_policy_prototype_backup_policy_match_resource_type_volume_prototype_model_json['name'] = 'my-backup-policy' - backup_policy_prototype_backup_policy_match_resource_type_volume_prototype_model_json['plans'] = [backup_policy_plan_prototype_model] - backup_policy_prototype_backup_policy_match_resource_type_volume_prototype_model_json['resource_group'] = resource_group_identity_model - backup_policy_prototype_backup_policy_match_resource_type_volume_prototype_model_json['scope'] = backup_policy_scope_prototype_model - backup_policy_prototype_backup_policy_match_resource_type_volume_prototype_model_json['match_resource_type'] = 'volume' + backup_policy_prototype_backup_policy_match_resource_type_volume_prototype_model_json['match_user_tags'] = [ + 'my-daily-backup-policy' + ] + backup_policy_prototype_backup_policy_match_resource_type_volume_prototype_model_json['name'] = ( + 'my-backup-policy' + ) + backup_policy_prototype_backup_policy_match_resource_type_volume_prototype_model_json['plans'] = [ + backup_policy_plan_prototype_model + ] + backup_policy_prototype_backup_policy_match_resource_type_volume_prototype_model_json['resource_group'] = ( + resource_group_identity_model + ) + backup_policy_prototype_backup_policy_match_resource_type_volume_prototype_model_json['scope'] = ( + backup_policy_scope_prototype_model + ) + backup_policy_prototype_backup_policy_match_resource_type_volume_prototype_model_json['match_resource_type'] = ( + 'volume' + ) # Construct a model instance of BackupPolicyPrototypeBackupPolicyMatchResourceTypeVolumePrototype by calling from_dict on the json representation - backup_policy_prototype_backup_policy_match_resource_type_volume_prototype_model = BackupPolicyPrototypeBackupPolicyMatchResourceTypeVolumePrototype.from_dict(backup_policy_prototype_backup_policy_match_resource_type_volume_prototype_model_json) + backup_policy_prototype_backup_policy_match_resource_type_volume_prototype_model = ( + BackupPolicyPrototypeBackupPolicyMatchResourceTypeVolumePrototype.from_dict( + backup_policy_prototype_backup_policy_match_resource_type_volume_prototype_model_json + ) + ) assert backup_policy_prototype_backup_policy_match_resource_type_volume_prototype_model != False # Construct a model instance of BackupPolicyPrototypeBackupPolicyMatchResourceTypeVolumePrototype by calling from_dict on the json representation - backup_policy_prototype_backup_policy_match_resource_type_volume_prototype_model_dict = BackupPolicyPrototypeBackupPolicyMatchResourceTypeVolumePrototype.from_dict(backup_policy_prototype_backup_policy_match_resource_type_volume_prototype_model_json).__dict__ - backup_policy_prototype_backup_policy_match_resource_type_volume_prototype_model2 = BackupPolicyPrototypeBackupPolicyMatchResourceTypeVolumePrototype(**backup_policy_prototype_backup_policy_match_resource_type_volume_prototype_model_dict) + backup_policy_prototype_backup_policy_match_resource_type_volume_prototype_model_dict = ( + BackupPolicyPrototypeBackupPolicyMatchResourceTypeVolumePrototype.from_dict( + backup_policy_prototype_backup_policy_match_resource_type_volume_prototype_model_json + ).__dict__ + ) + backup_policy_prototype_backup_policy_match_resource_type_volume_prototype_model2 = ( + BackupPolicyPrototypeBackupPolicyMatchResourceTypeVolumePrototype( + **backup_policy_prototype_backup_policy_match_resource_type_volume_prototype_model_dict + ) + ) # Verify the model instances are equivalent - assert backup_policy_prototype_backup_policy_match_resource_type_volume_prototype_model == backup_policy_prototype_backup_policy_match_resource_type_volume_prototype_model2 + assert ( + backup_policy_prototype_backup_policy_match_resource_type_volume_prototype_model + == backup_policy_prototype_backup_policy_match_resource_type_volume_prototype_model2 + ) # Convert model instance back to dict and verify no loss of data - backup_policy_prototype_backup_policy_match_resource_type_volume_prototype_model_json2 = backup_policy_prototype_backup_policy_match_resource_type_volume_prototype_model.to_dict() - assert backup_policy_prototype_backup_policy_match_resource_type_volume_prototype_model_json2 == backup_policy_prototype_backup_policy_match_resource_type_volume_prototype_model_json + backup_policy_prototype_backup_policy_match_resource_type_volume_prototype_model_json2 = ( + backup_policy_prototype_backup_policy_match_resource_type_volume_prototype_model.to_dict() + ) + assert ( + backup_policy_prototype_backup_policy_match_resource_type_volume_prototype_model_json2 + == backup_policy_prototype_backup_policy_match_resource_type_volume_prototype_model_json + ) class TestModel_BackupPolicyScopeAccountReference: @@ -79799,12 +85216,18 @@ def test_backup_policy_scope_account_reference_serialization(self): backup_policy_scope_account_reference_model_json['resource_type'] = 'account' # Construct a model instance of BackupPolicyScopeAccountReference by calling from_dict on the json representation - backup_policy_scope_account_reference_model = BackupPolicyScopeAccountReference.from_dict(backup_policy_scope_account_reference_model_json) + backup_policy_scope_account_reference_model = BackupPolicyScopeAccountReference.from_dict( + backup_policy_scope_account_reference_model_json + ) assert backup_policy_scope_account_reference_model != False # Construct a model instance of BackupPolicyScopeAccountReference by calling from_dict on the json representation - backup_policy_scope_account_reference_model_dict = BackupPolicyScopeAccountReference.from_dict(backup_policy_scope_account_reference_model_json).__dict__ - backup_policy_scope_account_reference_model2 = BackupPolicyScopeAccountReference(**backup_policy_scope_account_reference_model_dict) + backup_policy_scope_account_reference_model_dict = BackupPolicyScopeAccountReference.from_dict( + backup_policy_scope_account_reference_model_json + ).__dict__ + backup_policy_scope_account_reference_model2 = BackupPolicyScopeAccountReference( + **backup_policy_scope_account_reference_model_dict + ) # Verify the model instances are equivalent assert backup_policy_scope_account_reference_model == backup_policy_scope_account_reference_model2 @@ -79826,24 +85249,34 @@ def test_backup_policy_scope_enterprise_reference_serialization(self): # Construct a json representation of a BackupPolicyScopeEnterpriseReference model backup_policy_scope_enterprise_reference_model_json = {} - backup_policy_scope_enterprise_reference_model_json['crn'] = 'crn:v1:bluemix:public:enterprise::a/aa2432b1fa4d4ace891e9b80fc104e34::enterprise:ebc2b430240943458b9e91e1432cfcce' + backup_policy_scope_enterprise_reference_model_json['crn'] = ( + 'crn:v1:bluemix:public:enterprise::a/aa2432b1fa4d4ace891e9b80fc104e34::enterprise:ebc2b430240943458b9e91e1432cfcce' + ) backup_policy_scope_enterprise_reference_model_json['id'] = 'ebc2b430240943458b9e91e1432cfcce' backup_policy_scope_enterprise_reference_model_json['resource_type'] = 'enterprise' # Construct a model instance of BackupPolicyScopeEnterpriseReference by calling from_dict on the json representation - backup_policy_scope_enterprise_reference_model = BackupPolicyScopeEnterpriseReference.from_dict(backup_policy_scope_enterprise_reference_model_json) + backup_policy_scope_enterprise_reference_model = BackupPolicyScopeEnterpriseReference.from_dict( + backup_policy_scope_enterprise_reference_model_json + ) assert backup_policy_scope_enterprise_reference_model != False # Construct a model instance of BackupPolicyScopeEnterpriseReference by calling from_dict on the json representation - backup_policy_scope_enterprise_reference_model_dict = BackupPolicyScopeEnterpriseReference.from_dict(backup_policy_scope_enterprise_reference_model_json).__dict__ - backup_policy_scope_enterprise_reference_model2 = BackupPolicyScopeEnterpriseReference(**backup_policy_scope_enterprise_reference_model_dict) + backup_policy_scope_enterprise_reference_model_dict = BackupPolicyScopeEnterpriseReference.from_dict( + backup_policy_scope_enterprise_reference_model_json + ).__dict__ + backup_policy_scope_enterprise_reference_model2 = BackupPolicyScopeEnterpriseReference( + **backup_policy_scope_enterprise_reference_model_dict + ) # Verify the model instances are equivalent assert backup_policy_scope_enterprise_reference_model == backup_policy_scope_enterprise_reference_model2 # Convert model instance back to dict and verify no loss of data backup_policy_scope_enterprise_reference_model_json2 = backup_policy_scope_enterprise_reference_model.to_dict() - assert backup_policy_scope_enterprise_reference_model_json2 == backup_policy_scope_enterprise_reference_model_json + assert ( + backup_policy_scope_enterprise_reference_model_json2 == backup_policy_scope_enterprise_reference_model_json + ) class TestModel_BareMetalServerBootTargetBareMetalServerDiskReference: @@ -79864,25 +85297,51 @@ def test_bare_metal_server_boot_target_bare_metal_server_disk_reference_serializ # Construct a json representation of a BareMetalServerBootTargetBareMetalServerDiskReference model bare_metal_server_boot_target_bare_metal_server_disk_reference_model_json = {} bare_metal_server_boot_target_bare_metal_server_disk_reference_model_json['deleted'] = deleted_model - bare_metal_server_boot_target_bare_metal_server_disk_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/bare_metal_servers/0717-aad10fd7-8a02-4f3e-97f3-b18bd82cf304/disks/0717-3744f199-6ccc-4698-8772-bb3937348c96' - bare_metal_server_boot_target_bare_metal_server_disk_reference_model_json['id'] = '10c02d81-0ecb-4dc5-897d-28392913b81e' + bare_metal_server_boot_target_bare_metal_server_disk_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/bare_metal_servers/0717-aad10fd7-8a02-4f3e-97f3-b18bd82cf304/disks/0717-3744f199-6ccc-4698-8772-bb3937348c96' + ) + bare_metal_server_boot_target_bare_metal_server_disk_reference_model_json['id'] = ( + '10c02d81-0ecb-4dc5-897d-28392913b81e' + ) bare_metal_server_boot_target_bare_metal_server_disk_reference_model_json['name'] = 'my-bare-metal-server-disk' - bare_metal_server_boot_target_bare_metal_server_disk_reference_model_json['resource_type'] = 'bare_metal_server_disk' + bare_metal_server_boot_target_bare_metal_server_disk_reference_model_json['resource_type'] = ( + 'bare_metal_server_disk' + ) # Construct a model instance of BareMetalServerBootTargetBareMetalServerDiskReference by calling from_dict on the json representation - bare_metal_server_boot_target_bare_metal_server_disk_reference_model = BareMetalServerBootTargetBareMetalServerDiskReference.from_dict(bare_metal_server_boot_target_bare_metal_server_disk_reference_model_json) + bare_metal_server_boot_target_bare_metal_server_disk_reference_model = ( + BareMetalServerBootTargetBareMetalServerDiskReference.from_dict( + bare_metal_server_boot_target_bare_metal_server_disk_reference_model_json + ) + ) assert bare_metal_server_boot_target_bare_metal_server_disk_reference_model != False # Construct a model instance of BareMetalServerBootTargetBareMetalServerDiskReference by calling from_dict on the json representation - bare_metal_server_boot_target_bare_metal_server_disk_reference_model_dict = BareMetalServerBootTargetBareMetalServerDiskReference.from_dict(bare_metal_server_boot_target_bare_metal_server_disk_reference_model_json).__dict__ - bare_metal_server_boot_target_bare_metal_server_disk_reference_model2 = BareMetalServerBootTargetBareMetalServerDiskReference(**bare_metal_server_boot_target_bare_metal_server_disk_reference_model_dict) + bare_metal_server_boot_target_bare_metal_server_disk_reference_model_dict = ( + BareMetalServerBootTargetBareMetalServerDiskReference.from_dict( + bare_metal_server_boot_target_bare_metal_server_disk_reference_model_json + ).__dict__ + ) + bare_metal_server_boot_target_bare_metal_server_disk_reference_model2 = ( + BareMetalServerBootTargetBareMetalServerDiskReference( + **bare_metal_server_boot_target_bare_metal_server_disk_reference_model_dict + ) + ) # Verify the model instances are equivalent - assert bare_metal_server_boot_target_bare_metal_server_disk_reference_model == bare_metal_server_boot_target_bare_metal_server_disk_reference_model2 + assert ( + bare_metal_server_boot_target_bare_metal_server_disk_reference_model + == bare_metal_server_boot_target_bare_metal_server_disk_reference_model2 + ) # Convert model instance back to dict and verify no loss of data - bare_metal_server_boot_target_bare_metal_server_disk_reference_model_json2 = bare_metal_server_boot_target_bare_metal_server_disk_reference_model.to_dict() - assert bare_metal_server_boot_target_bare_metal_server_disk_reference_model_json2 == bare_metal_server_boot_target_bare_metal_server_disk_reference_model_json + bare_metal_server_boot_target_bare_metal_server_disk_reference_model_json2 = ( + bare_metal_server_boot_target_bare_metal_server_disk_reference_model.to_dict() + ) + assert ( + bare_metal_server_boot_target_bare_metal_server_disk_reference_model_json2 + == bare_metal_server_boot_target_bare_metal_server_disk_reference_model_json + ) class TestModel_BareMetalServerInitializationUserAccountBareMetalServerInitializationHostUserAccount: @@ -79890,7 +85349,9 @@ class TestModel_BareMetalServerInitializationUserAccountBareMetalServerInitializ Test Class for BareMetalServerInitializationUserAccountBareMetalServerInitializationHostUserAccount """ - def test_bare_metal_server_initialization_user_account_bare_metal_server_initialization_host_user_account_serialization(self): + def test_bare_metal_server_initialization_user_account_bare_metal_server_initialization_host_user_account_serialization( + self, + ): """ Test serialization/deserialization for BareMetalServerInitializationUserAccountBareMetalServerInitializationHostUserAccount """ @@ -79901,34 +85362,63 @@ def test_bare_metal_server_initialization_user_account_bare_metal_server_initial deleted_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#deleted-resources' key_reference_model = {} # KeyReference - key_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::key:r006-82679077-ac3b-4c10-be16-63e9c21f0f45' + key_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::key:r006-82679077-ac3b-4c10-be16-63e9c21f0f45' + ) key_reference_model['deleted'] = deleted_model key_reference_model['fingerprint'] = 'SHA256:yxavE4CIOL2NlsqcurRO3xGjkP6m/0mp8ugojH5yxlY' - key_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/keys/r006-82679077-ac3b-4c10-be16-63e9c21f0f45' + key_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/keys/r006-82679077-ac3b-4c10-be16-63e9c21f0f45' + ) key_reference_model['id'] = 'r006-82679077-ac3b-4c10-be16-63e9c21f0f45' key_reference_model['name'] = 'my-key-1' # Construct a json representation of a BareMetalServerInitializationUserAccountBareMetalServerInitializationHostUserAccount model bare_metal_server_initialization_user_account_bare_metal_server_initialization_host_user_account_model_json = {} - bare_metal_server_initialization_user_account_bare_metal_server_initialization_host_user_account_model_json['encrypted_password'] = 'qQ+/YEApnl1ZtEgIrfprzb065307thTkzlnLqL5ICpesdbBN03dyCQ==' - bare_metal_server_initialization_user_account_bare_metal_server_initialization_host_user_account_model_json['encryption_key'] = key_reference_model - bare_metal_server_initialization_user_account_bare_metal_server_initialization_host_user_account_model_json['resource_type'] = 'host_user_account' - bare_metal_server_initialization_user_account_bare_metal_server_initialization_host_user_account_model_json['username'] = 'Administrator' + bare_metal_server_initialization_user_account_bare_metal_server_initialization_host_user_account_model_json[ + 'encrypted_password' + ] = 'qQ+/YEApnl1ZtEgIrfprzb065307thTkzlnLqL5ICpesdbBN03dyCQ==' + bare_metal_server_initialization_user_account_bare_metal_server_initialization_host_user_account_model_json[ + 'encryption_key' + ] = key_reference_model + bare_metal_server_initialization_user_account_bare_metal_server_initialization_host_user_account_model_json[ + 'resource_type' + ] = 'host_user_account' + bare_metal_server_initialization_user_account_bare_metal_server_initialization_host_user_account_model_json[ + 'username' + ] = 'Administrator' # Construct a model instance of BareMetalServerInitializationUserAccountBareMetalServerInitializationHostUserAccount by calling from_dict on the json representation - bare_metal_server_initialization_user_account_bare_metal_server_initialization_host_user_account_model = BareMetalServerInitializationUserAccountBareMetalServerInitializationHostUserAccount.from_dict(bare_metal_server_initialization_user_account_bare_metal_server_initialization_host_user_account_model_json) - assert bare_metal_server_initialization_user_account_bare_metal_server_initialization_host_user_account_model != False + bare_metal_server_initialization_user_account_bare_metal_server_initialization_host_user_account_model = BareMetalServerInitializationUserAccountBareMetalServerInitializationHostUserAccount.from_dict( + bare_metal_server_initialization_user_account_bare_metal_server_initialization_host_user_account_model_json + ) + assert ( + bare_metal_server_initialization_user_account_bare_metal_server_initialization_host_user_account_model + != False + ) # Construct a model instance of BareMetalServerInitializationUserAccountBareMetalServerInitializationHostUserAccount by calling from_dict on the json representation - bare_metal_server_initialization_user_account_bare_metal_server_initialization_host_user_account_model_dict = BareMetalServerInitializationUserAccountBareMetalServerInitializationHostUserAccount.from_dict(bare_metal_server_initialization_user_account_bare_metal_server_initialization_host_user_account_model_json).__dict__ - bare_metal_server_initialization_user_account_bare_metal_server_initialization_host_user_account_model2 = BareMetalServerInitializationUserAccountBareMetalServerInitializationHostUserAccount(**bare_metal_server_initialization_user_account_bare_metal_server_initialization_host_user_account_model_dict) + bare_metal_server_initialization_user_account_bare_metal_server_initialization_host_user_account_model_dict = BareMetalServerInitializationUserAccountBareMetalServerInitializationHostUserAccount.from_dict( + bare_metal_server_initialization_user_account_bare_metal_server_initialization_host_user_account_model_json + ).__dict__ + bare_metal_server_initialization_user_account_bare_metal_server_initialization_host_user_account_model2 = BareMetalServerInitializationUserAccountBareMetalServerInitializationHostUserAccount( + **bare_metal_server_initialization_user_account_bare_metal_server_initialization_host_user_account_model_dict + ) # Verify the model instances are equivalent - assert bare_metal_server_initialization_user_account_bare_metal_server_initialization_host_user_account_model == bare_metal_server_initialization_user_account_bare_metal_server_initialization_host_user_account_model2 + assert ( + bare_metal_server_initialization_user_account_bare_metal_server_initialization_host_user_account_model + == bare_metal_server_initialization_user_account_bare_metal_server_initialization_host_user_account_model2 + ) # Convert model instance back to dict and verify no loss of data - bare_metal_server_initialization_user_account_bare_metal_server_initialization_host_user_account_model_json2 = bare_metal_server_initialization_user_account_bare_metal_server_initialization_host_user_account_model.to_dict() - assert bare_metal_server_initialization_user_account_bare_metal_server_initialization_host_user_account_model_json2 == bare_metal_server_initialization_user_account_bare_metal_server_initialization_host_user_account_model_json + bare_metal_server_initialization_user_account_bare_metal_server_initialization_host_user_account_model_json2 = ( + bare_metal_server_initialization_user_account_bare_metal_server_initialization_host_user_account_model.to_dict() + ) + assert ( + bare_metal_server_initialization_user_account_bare_metal_server_initialization_host_user_account_model_json2 + == bare_metal_server_initialization_user_account_bare_metal_server_initialization_host_user_account_model_json + ) class TestModel_BareMetalServerNetworkAttachmentByPCI: @@ -79949,22 +85439,34 @@ def test_bare_metal_server_network_attachment_by_pci_serialization(self): reserved_ip_reference_model = {} # ReservedIPReference reserved_ip_reference_model['address'] = '192.168.3.4' reserved_ip_reference_model['deleted'] = deleted_model - reserved_ip_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-bea6a632-5e13-42a4-b4b8-31dc877abfe4/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + reserved_ip_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-bea6a632-5e13-42a4-b4b8-31dc877abfe4/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + ) reserved_ip_reference_model['id'] = '0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' reserved_ip_reference_model['name'] = 'my-reserved-ip' reserved_ip_reference_model['resource_type'] = 'subnet_reserved_ip' subnet_reference_model = {} # SubnetReference - subnet_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['deleted'] = deleted_model - subnet_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['id'] = '0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' subnet_reference_model['name'] = 'my-subnet' subnet_reference_model['resource_type'] = 'subnet' - virtual_network_interface_reference_attachment_context_model = {} # VirtualNetworkInterfaceReferenceAttachmentContext - virtual_network_interface_reference_attachment_context_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::virtual-network-interface:0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' - virtual_network_interface_reference_attachment_context_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/virtual_network_interfaces/0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + virtual_network_interface_reference_attachment_context_model = ( + {} + ) # VirtualNetworkInterfaceReferenceAttachmentContext + virtual_network_interface_reference_attachment_context_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::virtual-network-interface:0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + ) + virtual_network_interface_reference_attachment_context_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/virtual_network_interfaces/0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + ) virtual_network_interface_reference_attachment_context_model['id'] = '0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' virtual_network_interface_reference_attachment_context_model['name'] = 'my-virtual-network-interface' virtual_network_interface_reference_attachment_context_model['resource_type'] = 'virtual_network_interface' @@ -79972,7 +85474,9 @@ def test_bare_metal_server_network_attachment_by_pci_serialization(self): # Construct a json representation of a BareMetalServerNetworkAttachmentByPCI model bare_metal_server_network_attachment_by_pci_model_json = {} bare_metal_server_network_attachment_by_pci_model_json['created_at'] = '2019-01-01T12:00:00Z' - bare_metal_server_network_attachment_by_pci_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/bare_metal_servers/0717-aad10fd7-8a02-4f3e-97f3-b18bd82cf304/network_attachments/0717-da8c43ec-b6ca-4bd2-871e-72e288c66ee6' + bare_metal_server_network_attachment_by_pci_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/bare_metal_servers/0717-aad10fd7-8a02-4f3e-97f3-b18bd82cf304/network_attachments/0717-da8c43ec-b6ca-4bd2-871e-72e288c66ee6' + ) bare_metal_server_network_attachment_by_pci_model_json['id'] = '0717-da8c43ec-b6ca-4bd2-871e-72e288c66ee6' bare_metal_server_network_attachment_by_pci_model_json['lifecycle_state'] = 'stable' bare_metal_server_network_attachment_by_pci_model_json['name'] = 'my-bare-metal-server-network-attachment' @@ -79981,24 +85485,37 @@ def test_bare_metal_server_network_attachment_by_pci_serialization(self): bare_metal_server_network_attachment_by_pci_model_json['resource_type'] = 'bare_metal_server_network_attachment' bare_metal_server_network_attachment_by_pci_model_json['subnet'] = subnet_reference_model bare_metal_server_network_attachment_by_pci_model_json['type'] = 'primary' - bare_metal_server_network_attachment_by_pci_model_json['virtual_network_interface'] = virtual_network_interface_reference_attachment_context_model + bare_metal_server_network_attachment_by_pci_model_json['virtual_network_interface'] = ( + virtual_network_interface_reference_attachment_context_model + ) bare_metal_server_network_attachment_by_pci_model_json['allowed_vlans'] = [4] bare_metal_server_network_attachment_by_pci_model_json['interface_type'] = 'pci' # Construct a model instance of BareMetalServerNetworkAttachmentByPCI by calling from_dict on the json representation - bare_metal_server_network_attachment_by_pci_model = BareMetalServerNetworkAttachmentByPCI.from_dict(bare_metal_server_network_attachment_by_pci_model_json) + bare_metal_server_network_attachment_by_pci_model = BareMetalServerNetworkAttachmentByPCI.from_dict( + bare_metal_server_network_attachment_by_pci_model_json + ) assert bare_metal_server_network_attachment_by_pci_model != False # Construct a model instance of BareMetalServerNetworkAttachmentByPCI by calling from_dict on the json representation - bare_metal_server_network_attachment_by_pci_model_dict = BareMetalServerNetworkAttachmentByPCI.from_dict(bare_metal_server_network_attachment_by_pci_model_json).__dict__ - bare_metal_server_network_attachment_by_pci_model2 = BareMetalServerNetworkAttachmentByPCI(**bare_metal_server_network_attachment_by_pci_model_dict) + bare_metal_server_network_attachment_by_pci_model_dict = BareMetalServerNetworkAttachmentByPCI.from_dict( + bare_metal_server_network_attachment_by_pci_model_json + ).__dict__ + bare_metal_server_network_attachment_by_pci_model2 = BareMetalServerNetworkAttachmentByPCI( + **bare_metal_server_network_attachment_by_pci_model_dict + ) # Verify the model instances are equivalent assert bare_metal_server_network_attachment_by_pci_model == bare_metal_server_network_attachment_by_pci_model2 # Convert model instance back to dict and verify no loss of data - bare_metal_server_network_attachment_by_pci_model_json2 = bare_metal_server_network_attachment_by_pci_model.to_dict() - assert bare_metal_server_network_attachment_by_pci_model_json2 == bare_metal_server_network_attachment_by_pci_model_json + bare_metal_server_network_attachment_by_pci_model_json2 = ( + bare_metal_server_network_attachment_by_pci_model.to_dict() + ) + assert ( + bare_metal_server_network_attachment_by_pci_model_json2 + == bare_metal_server_network_attachment_by_pci_model_json + ) class TestModel_BareMetalServerNetworkAttachmentByVLAN: @@ -80019,22 +85536,34 @@ def test_bare_metal_server_network_attachment_by_vlan_serialization(self): reserved_ip_reference_model = {} # ReservedIPReference reserved_ip_reference_model['address'] = '192.168.3.4' reserved_ip_reference_model['deleted'] = deleted_model - reserved_ip_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-bea6a632-5e13-42a4-b4b8-31dc877abfe4/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + reserved_ip_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-bea6a632-5e13-42a4-b4b8-31dc877abfe4/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + ) reserved_ip_reference_model['id'] = '0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' reserved_ip_reference_model['name'] = 'my-reserved-ip' reserved_ip_reference_model['resource_type'] = 'subnet_reserved_ip' subnet_reference_model = {} # SubnetReference - subnet_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['deleted'] = deleted_model - subnet_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['id'] = '0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' subnet_reference_model['name'] = 'my-subnet' subnet_reference_model['resource_type'] = 'subnet' - virtual_network_interface_reference_attachment_context_model = {} # VirtualNetworkInterfaceReferenceAttachmentContext - virtual_network_interface_reference_attachment_context_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::virtual-network-interface:0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' - virtual_network_interface_reference_attachment_context_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/virtual_network_interfaces/0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + virtual_network_interface_reference_attachment_context_model = ( + {} + ) # VirtualNetworkInterfaceReferenceAttachmentContext + virtual_network_interface_reference_attachment_context_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::virtual-network-interface:0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + ) + virtual_network_interface_reference_attachment_context_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/virtual_network_interfaces/0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + ) virtual_network_interface_reference_attachment_context_model['id'] = '0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' virtual_network_interface_reference_attachment_context_model['name'] = 'my-virtual-network-interface' virtual_network_interface_reference_attachment_context_model['resource_type'] = 'virtual_network_interface' @@ -80042,34 +85571,51 @@ def test_bare_metal_server_network_attachment_by_vlan_serialization(self): # Construct a json representation of a BareMetalServerNetworkAttachmentByVLAN model bare_metal_server_network_attachment_by_vlan_model_json = {} bare_metal_server_network_attachment_by_vlan_model_json['created_at'] = '2019-01-01T12:00:00Z' - bare_metal_server_network_attachment_by_vlan_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/bare_metal_servers/0717-aad10fd7-8a02-4f3e-97f3-b18bd82cf304/network_attachments/0717-da8c43ec-b6ca-4bd2-871e-72e288c66ee6' + bare_metal_server_network_attachment_by_vlan_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/bare_metal_servers/0717-aad10fd7-8a02-4f3e-97f3-b18bd82cf304/network_attachments/0717-da8c43ec-b6ca-4bd2-871e-72e288c66ee6' + ) bare_metal_server_network_attachment_by_vlan_model_json['id'] = '0717-da8c43ec-b6ca-4bd2-871e-72e288c66ee6' bare_metal_server_network_attachment_by_vlan_model_json['lifecycle_state'] = 'stable' bare_metal_server_network_attachment_by_vlan_model_json['name'] = 'my-bare-metal-server-network-attachment' bare_metal_server_network_attachment_by_vlan_model_json['port_speed'] = 1000 bare_metal_server_network_attachment_by_vlan_model_json['primary_ip'] = reserved_ip_reference_model - bare_metal_server_network_attachment_by_vlan_model_json['resource_type'] = 'bare_metal_server_network_attachment' + bare_metal_server_network_attachment_by_vlan_model_json['resource_type'] = ( + 'bare_metal_server_network_attachment' + ) bare_metal_server_network_attachment_by_vlan_model_json['subnet'] = subnet_reference_model bare_metal_server_network_attachment_by_vlan_model_json['type'] = 'primary' - bare_metal_server_network_attachment_by_vlan_model_json['virtual_network_interface'] = virtual_network_interface_reference_attachment_context_model + bare_metal_server_network_attachment_by_vlan_model_json['virtual_network_interface'] = ( + virtual_network_interface_reference_attachment_context_model + ) bare_metal_server_network_attachment_by_vlan_model_json['allow_to_float'] = False bare_metal_server_network_attachment_by_vlan_model_json['interface_type'] = 'vlan' bare_metal_server_network_attachment_by_vlan_model_json['vlan'] = 4 # Construct a model instance of BareMetalServerNetworkAttachmentByVLAN by calling from_dict on the json representation - bare_metal_server_network_attachment_by_vlan_model = BareMetalServerNetworkAttachmentByVLAN.from_dict(bare_metal_server_network_attachment_by_vlan_model_json) + bare_metal_server_network_attachment_by_vlan_model = BareMetalServerNetworkAttachmentByVLAN.from_dict( + bare_metal_server_network_attachment_by_vlan_model_json + ) assert bare_metal_server_network_attachment_by_vlan_model != False # Construct a model instance of BareMetalServerNetworkAttachmentByVLAN by calling from_dict on the json representation - bare_metal_server_network_attachment_by_vlan_model_dict = BareMetalServerNetworkAttachmentByVLAN.from_dict(bare_metal_server_network_attachment_by_vlan_model_json).__dict__ - bare_metal_server_network_attachment_by_vlan_model2 = BareMetalServerNetworkAttachmentByVLAN(**bare_metal_server_network_attachment_by_vlan_model_dict) + bare_metal_server_network_attachment_by_vlan_model_dict = BareMetalServerNetworkAttachmentByVLAN.from_dict( + bare_metal_server_network_attachment_by_vlan_model_json + ).__dict__ + bare_metal_server_network_attachment_by_vlan_model2 = BareMetalServerNetworkAttachmentByVLAN( + **bare_metal_server_network_attachment_by_vlan_model_dict + ) # Verify the model instances are equivalent assert bare_metal_server_network_attachment_by_vlan_model == bare_metal_server_network_attachment_by_vlan_model2 # Convert model instance back to dict and verify no loss of data - bare_metal_server_network_attachment_by_vlan_model_json2 = bare_metal_server_network_attachment_by_vlan_model.to_dict() - assert bare_metal_server_network_attachment_by_vlan_model_json2 == bare_metal_server_network_attachment_by_vlan_model_json + bare_metal_server_network_attachment_by_vlan_model_json2 = ( + bare_metal_server_network_attachment_by_vlan_model.to_dict() + ) + assert ( + bare_metal_server_network_attachment_by_vlan_model_json2 + == bare_metal_server_network_attachment_by_vlan_model_json + ) class TestModel_BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeBareMetalServerNetworkAttachmentContext: @@ -80077,19 +85623,25 @@ class TestModel_BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterface Test Class for BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeBareMetalServerNetworkAttachmentContext """ - def test_bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_bare_metal_server_network_attachment_context_serialization(self): + def test_bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_bare_metal_server_network_attachment_context_serialization( + self, + ): """ Test serialization/deserialization for BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeBareMetalServerNetworkAttachmentContext """ # Construct dict forms of any model objects needed in order to build this model. - virtual_network_interface_ip_prototype_model = {} # VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext + virtual_network_interface_ip_prototype_model = ( + {} + ) # VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext virtual_network_interface_ip_prototype_model['address'] = '10.0.0.5' virtual_network_interface_ip_prototype_model['auto_delete'] = False virtual_network_interface_ip_prototype_model['name'] = 'my-reserved-ip' - virtual_network_interface_primary_ip_prototype_model = {} # VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext + virtual_network_interface_primary_ip_prototype_model = ( + {} + ) # VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext virtual_network_interface_primary_ip_prototype_model['address'] = '10.0.0.5' virtual_network_interface_primary_ip_prototype_model['auto_delete'] = False virtual_network_interface_primary_ip_prototype_model['name'] = 'my-reserved-ip' @@ -80104,32 +85656,75 @@ def test_bare_metal_server_network_attachment_prototype_virtual_network_interfac subnet_identity_model['id'] = '2302-ea5fe79f-52c3-4f05-86ae-9540a10489f5' # Construct a json representation of a BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeBareMetalServerNetworkAttachmentContext model - bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_bare_metal_server_network_attachment_context_model_json = {} - bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_bare_metal_server_network_attachment_context_model_json['allow_ip_spoofing'] = True - bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_bare_metal_server_network_attachment_context_model_json['auto_delete'] = False - bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_bare_metal_server_network_attachment_context_model_json['enable_infrastructure_nat'] = True - bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_bare_metal_server_network_attachment_context_model_json['ips'] = [virtual_network_interface_ip_prototype_model] - bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_bare_metal_server_network_attachment_context_model_json['name'] = 'my-virtual-network-interface' - bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_bare_metal_server_network_attachment_context_model_json['primary_ip'] = virtual_network_interface_primary_ip_prototype_model - bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_bare_metal_server_network_attachment_context_model_json['protocol_state_filtering_mode'] = 'auto' - bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_bare_metal_server_network_attachment_context_model_json['resource_group'] = resource_group_identity_model - bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_bare_metal_server_network_attachment_context_model_json['security_groups'] = [security_group_identity_model] - bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_bare_metal_server_network_attachment_context_model_json['subnet'] = subnet_identity_model + bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_bare_metal_server_network_attachment_context_model_json = ( + {} + ) + bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_bare_metal_server_network_attachment_context_model_json[ + 'allow_ip_spoofing' + ] = True + bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_bare_metal_server_network_attachment_context_model_json[ + 'auto_delete' + ] = False + bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_bare_metal_server_network_attachment_context_model_json[ + 'enable_infrastructure_nat' + ] = True + bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_bare_metal_server_network_attachment_context_model_json[ + 'ips' + ] = [ + virtual_network_interface_ip_prototype_model + ] + bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_bare_metal_server_network_attachment_context_model_json[ + 'name' + ] = 'my-virtual-network-interface' + bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_bare_metal_server_network_attachment_context_model_json[ + 'primary_ip' + ] = virtual_network_interface_primary_ip_prototype_model + bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_bare_metal_server_network_attachment_context_model_json[ + 'protocol_state_filtering_mode' + ] = 'auto' + bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_bare_metal_server_network_attachment_context_model_json[ + 'resource_group' + ] = resource_group_identity_model + bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_bare_metal_server_network_attachment_context_model_json[ + 'security_groups' + ] = [ + security_group_identity_model + ] + bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_bare_metal_server_network_attachment_context_model_json[ + 'subnet' + ] = subnet_identity_model # Construct a model instance of BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeBareMetalServerNetworkAttachmentContext by calling from_dict on the json representation - bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_bare_metal_server_network_attachment_context_model = BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeBareMetalServerNetworkAttachmentContext.from_dict(bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_bare_metal_server_network_attachment_context_model_json) - assert bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_bare_metal_server_network_attachment_context_model != False + bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_bare_metal_server_network_attachment_context_model = BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeBareMetalServerNetworkAttachmentContext.from_dict( + bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_bare_metal_server_network_attachment_context_model_json + ) + assert ( + bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_bare_metal_server_network_attachment_context_model + != False + ) # Construct a model instance of BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeBareMetalServerNetworkAttachmentContext by calling from_dict on the json representation - bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_bare_metal_server_network_attachment_context_model_dict = BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeBareMetalServerNetworkAttachmentContext.from_dict(bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_bare_metal_server_network_attachment_context_model_json).__dict__ - bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_bare_metal_server_network_attachment_context_model2 = BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeBareMetalServerNetworkAttachmentContext(**bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_bare_metal_server_network_attachment_context_model_dict) + bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_bare_metal_server_network_attachment_context_model_dict = BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeBareMetalServerNetworkAttachmentContext.from_dict( + bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_bare_metal_server_network_attachment_context_model_json + ).__dict__ + bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_bare_metal_server_network_attachment_context_model2 = BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeBareMetalServerNetworkAttachmentContext( + **bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_bare_metal_server_network_attachment_context_model_dict + ) # Verify the model instances are equivalent - assert bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_bare_metal_server_network_attachment_context_model == bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_bare_metal_server_network_attachment_context_model2 + assert ( + bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_bare_metal_server_network_attachment_context_model + == bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_bare_metal_server_network_attachment_context_model2 + ) # Convert model instance back to dict and verify no loss of data - bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_bare_metal_server_network_attachment_context_model_json2 = bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_bare_metal_server_network_attachment_context_model.to_dict() - assert bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_bare_metal_server_network_attachment_context_model_json2 == bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_bare_metal_server_network_attachment_context_model_json + bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_bare_metal_server_network_attachment_context_model_json2 = ( + bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_bare_metal_server_network_attachment_context_model.to_dict() + ) + assert ( + bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_bare_metal_server_network_attachment_context_model_json2 + == bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_bare_metal_server_network_attachment_context_model_json + ) class TestModel_BareMetalServerNetworkAttachmentPrototypeBareMetalServerNetworkAttachmentByPCIPrototype: @@ -80137,19 +85732,25 @@ class TestModel_BareMetalServerNetworkAttachmentPrototypeBareMetalServerNetworkA Test Class for BareMetalServerNetworkAttachmentPrototypeBareMetalServerNetworkAttachmentByPCIPrototype """ - def test_bare_metal_server_network_attachment_prototype_bare_metal_server_network_attachment_by_pci_prototype_serialization(self): + def test_bare_metal_server_network_attachment_prototype_bare_metal_server_network_attachment_by_pci_prototype_serialization( + self, + ): """ Test serialization/deserialization for BareMetalServerNetworkAttachmentPrototypeBareMetalServerNetworkAttachmentByPCIPrototype """ # Construct dict forms of any model objects needed in order to build this model. - virtual_network_interface_ip_prototype_model = {} # VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext + virtual_network_interface_ip_prototype_model = ( + {} + ) # VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext virtual_network_interface_ip_prototype_model['address'] = '10.0.0.5' virtual_network_interface_ip_prototype_model['auto_delete'] = False virtual_network_interface_ip_prototype_model['name'] = 'my-reserved-ip' - virtual_network_interface_primary_ip_prototype_model = {} # VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext + virtual_network_interface_primary_ip_prototype_model = ( + {} + ) # VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext virtual_network_interface_primary_ip_prototype_model['address'] = '10.0.0.5' virtual_network_interface_primary_ip_prototype_model['auto_delete'] = False virtual_network_interface_primary_ip_prototype_model['name'] = 'my-reserved-ip' @@ -80163,39 +85764,82 @@ def test_bare_metal_server_network_attachment_prototype_bare_metal_server_networ subnet_identity_model = {} # SubnetIdentityById subnet_identity_model['id'] = '7ec86020-1c6e-4889-b3f0-a15f2e50f87e' - bare_metal_server_network_attachment_prototype_virtual_network_interface_model = {} # BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeBareMetalServerNetworkAttachmentContext + bare_metal_server_network_attachment_prototype_virtual_network_interface_model = ( + {} + ) # BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeBareMetalServerNetworkAttachmentContext bare_metal_server_network_attachment_prototype_virtual_network_interface_model['allow_ip_spoofing'] = True bare_metal_server_network_attachment_prototype_virtual_network_interface_model['auto_delete'] = False - bare_metal_server_network_attachment_prototype_virtual_network_interface_model['enable_infrastructure_nat'] = True - bare_metal_server_network_attachment_prototype_virtual_network_interface_model['ips'] = [virtual_network_interface_ip_prototype_model] - bare_metal_server_network_attachment_prototype_virtual_network_interface_model['name'] = 'my-virtual-network-interface' - bare_metal_server_network_attachment_prototype_virtual_network_interface_model['primary_ip'] = virtual_network_interface_primary_ip_prototype_model - bare_metal_server_network_attachment_prototype_virtual_network_interface_model['protocol_state_filtering_mode'] = 'auto' - bare_metal_server_network_attachment_prototype_virtual_network_interface_model['resource_group'] = resource_group_identity_model - bare_metal_server_network_attachment_prototype_virtual_network_interface_model['security_groups'] = [security_group_identity_model] + bare_metal_server_network_attachment_prototype_virtual_network_interface_model['enable_infrastructure_nat'] = ( + True + ) + bare_metal_server_network_attachment_prototype_virtual_network_interface_model['ips'] = [ + virtual_network_interface_ip_prototype_model + ] + bare_metal_server_network_attachment_prototype_virtual_network_interface_model['name'] = ( + 'my-virtual-network-interface' + ) + bare_metal_server_network_attachment_prototype_virtual_network_interface_model['primary_ip'] = ( + virtual_network_interface_primary_ip_prototype_model + ) + bare_metal_server_network_attachment_prototype_virtual_network_interface_model[ + 'protocol_state_filtering_mode' + ] = 'auto' + bare_metal_server_network_attachment_prototype_virtual_network_interface_model['resource_group'] = ( + resource_group_identity_model + ) + bare_metal_server_network_attachment_prototype_virtual_network_interface_model['security_groups'] = [ + security_group_identity_model + ] bare_metal_server_network_attachment_prototype_virtual_network_interface_model['subnet'] = subnet_identity_model # Construct a json representation of a BareMetalServerNetworkAttachmentPrototypeBareMetalServerNetworkAttachmentByPCIPrototype model - bare_metal_server_network_attachment_prototype_bare_metal_server_network_attachment_by_pci_prototype_model_json = {} - bare_metal_server_network_attachment_prototype_bare_metal_server_network_attachment_by_pci_prototype_model_json['name'] = 'my-bare-metal-server-network-attachment' - bare_metal_server_network_attachment_prototype_bare_metal_server_network_attachment_by_pci_prototype_model_json['virtual_network_interface'] = bare_metal_server_network_attachment_prototype_virtual_network_interface_model - bare_metal_server_network_attachment_prototype_bare_metal_server_network_attachment_by_pci_prototype_model_json['allowed_vlans'] = [] - bare_metal_server_network_attachment_prototype_bare_metal_server_network_attachment_by_pci_prototype_model_json['interface_type'] = 'pci' + bare_metal_server_network_attachment_prototype_bare_metal_server_network_attachment_by_pci_prototype_model_json = ( + {} + ) + bare_metal_server_network_attachment_prototype_bare_metal_server_network_attachment_by_pci_prototype_model_json[ + 'name' + ] = 'my-bare-metal-server-network-attachment' + bare_metal_server_network_attachment_prototype_bare_metal_server_network_attachment_by_pci_prototype_model_json[ + 'virtual_network_interface' + ] = bare_metal_server_network_attachment_prototype_virtual_network_interface_model + bare_metal_server_network_attachment_prototype_bare_metal_server_network_attachment_by_pci_prototype_model_json[ + 'allowed_vlans' + ] = [] + bare_metal_server_network_attachment_prototype_bare_metal_server_network_attachment_by_pci_prototype_model_json[ + 'interface_type' + ] = 'pci' # Construct a model instance of BareMetalServerNetworkAttachmentPrototypeBareMetalServerNetworkAttachmentByPCIPrototype by calling from_dict on the json representation - bare_metal_server_network_attachment_prototype_bare_metal_server_network_attachment_by_pci_prototype_model = BareMetalServerNetworkAttachmentPrototypeBareMetalServerNetworkAttachmentByPCIPrototype.from_dict(bare_metal_server_network_attachment_prototype_bare_metal_server_network_attachment_by_pci_prototype_model_json) - assert bare_metal_server_network_attachment_prototype_bare_metal_server_network_attachment_by_pci_prototype_model != False + bare_metal_server_network_attachment_prototype_bare_metal_server_network_attachment_by_pci_prototype_model = BareMetalServerNetworkAttachmentPrototypeBareMetalServerNetworkAttachmentByPCIPrototype.from_dict( + bare_metal_server_network_attachment_prototype_bare_metal_server_network_attachment_by_pci_prototype_model_json + ) + assert ( + bare_metal_server_network_attachment_prototype_bare_metal_server_network_attachment_by_pci_prototype_model + != False + ) # Construct a model instance of BareMetalServerNetworkAttachmentPrototypeBareMetalServerNetworkAttachmentByPCIPrototype by calling from_dict on the json representation - bare_metal_server_network_attachment_prototype_bare_metal_server_network_attachment_by_pci_prototype_model_dict = BareMetalServerNetworkAttachmentPrototypeBareMetalServerNetworkAttachmentByPCIPrototype.from_dict(bare_metal_server_network_attachment_prototype_bare_metal_server_network_attachment_by_pci_prototype_model_json).__dict__ - bare_metal_server_network_attachment_prototype_bare_metal_server_network_attachment_by_pci_prototype_model2 = BareMetalServerNetworkAttachmentPrototypeBareMetalServerNetworkAttachmentByPCIPrototype(**bare_metal_server_network_attachment_prototype_bare_metal_server_network_attachment_by_pci_prototype_model_dict) + bare_metal_server_network_attachment_prototype_bare_metal_server_network_attachment_by_pci_prototype_model_dict = BareMetalServerNetworkAttachmentPrototypeBareMetalServerNetworkAttachmentByPCIPrototype.from_dict( + bare_metal_server_network_attachment_prototype_bare_metal_server_network_attachment_by_pci_prototype_model_json + ).__dict__ + bare_metal_server_network_attachment_prototype_bare_metal_server_network_attachment_by_pci_prototype_model2 = BareMetalServerNetworkAttachmentPrototypeBareMetalServerNetworkAttachmentByPCIPrototype( + **bare_metal_server_network_attachment_prototype_bare_metal_server_network_attachment_by_pci_prototype_model_dict + ) # Verify the model instances are equivalent - assert bare_metal_server_network_attachment_prototype_bare_metal_server_network_attachment_by_pci_prototype_model == bare_metal_server_network_attachment_prototype_bare_metal_server_network_attachment_by_pci_prototype_model2 + assert ( + bare_metal_server_network_attachment_prototype_bare_metal_server_network_attachment_by_pci_prototype_model + == bare_metal_server_network_attachment_prototype_bare_metal_server_network_attachment_by_pci_prototype_model2 + ) # Convert model instance back to dict and verify no loss of data - bare_metal_server_network_attachment_prototype_bare_metal_server_network_attachment_by_pci_prototype_model_json2 = bare_metal_server_network_attachment_prototype_bare_metal_server_network_attachment_by_pci_prototype_model.to_dict() - assert bare_metal_server_network_attachment_prototype_bare_metal_server_network_attachment_by_pci_prototype_model_json2 == bare_metal_server_network_attachment_prototype_bare_metal_server_network_attachment_by_pci_prototype_model_json + bare_metal_server_network_attachment_prototype_bare_metal_server_network_attachment_by_pci_prototype_model_json2 = ( + bare_metal_server_network_attachment_prototype_bare_metal_server_network_attachment_by_pci_prototype_model.to_dict() + ) + assert ( + bare_metal_server_network_attachment_prototype_bare_metal_server_network_attachment_by_pci_prototype_model_json2 + == bare_metal_server_network_attachment_prototype_bare_metal_server_network_attachment_by_pci_prototype_model_json + ) class TestModel_BareMetalServerNetworkAttachmentPrototypeBareMetalServerNetworkAttachmentByVLANPrototype: @@ -80203,19 +85847,25 @@ class TestModel_BareMetalServerNetworkAttachmentPrototypeBareMetalServerNetworkA Test Class for BareMetalServerNetworkAttachmentPrototypeBareMetalServerNetworkAttachmentByVLANPrototype """ - def test_bare_metal_server_network_attachment_prototype_bare_metal_server_network_attachment_by_vlan_prototype_serialization(self): + def test_bare_metal_server_network_attachment_prototype_bare_metal_server_network_attachment_by_vlan_prototype_serialization( + self, + ): """ Test serialization/deserialization for BareMetalServerNetworkAttachmentPrototypeBareMetalServerNetworkAttachmentByVLANPrototype """ # Construct dict forms of any model objects needed in order to build this model. - virtual_network_interface_ip_prototype_model = {} # VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext + virtual_network_interface_ip_prototype_model = ( + {} + ) # VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext virtual_network_interface_ip_prototype_model['address'] = '10.0.0.5' virtual_network_interface_ip_prototype_model['auto_delete'] = False virtual_network_interface_ip_prototype_model['name'] = 'my-reserved-ip' - virtual_network_interface_primary_ip_prototype_model = {} # VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext + virtual_network_interface_primary_ip_prototype_model = ( + {} + ) # VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext virtual_network_interface_primary_ip_prototype_model['address'] = '10.0.0.5' virtual_network_interface_primary_ip_prototype_model['auto_delete'] = False virtual_network_interface_primary_ip_prototype_model['name'] = 'my-reserved-ip' @@ -80229,40 +85879,85 @@ def test_bare_metal_server_network_attachment_prototype_bare_metal_server_networ subnet_identity_model = {} # SubnetIdentityById subnet_identity_model['id'] = '7ec86020-1c6e-4889-b3f0-a15f2e50f87e' - bare_metal_server_network_attachment_prototype_virtual_network_interface_model = {} # BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeBareMetalServerNetworkAttachmentContext + bare_metal_server_network_attachment_prototype_virtual_network_interface_model = ( + {} + ) # BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeBareMetalServerNetworkAttachmentContext bare_metal_server_network_attachment_prototype_virtual_network_interface_model['allow_ip_spoofing'] = True bare_metal_server_network_attachment_prototype_virtual_network_interface_model['auto_delete'] = False - bare_metal_server_network_attachment_prototype_virtual_network_interface_model['enable_infrastructure_nat'] = True - bare_metal_server_network_attachment_prototype_virtual_network_interface_model['ips'] = [virtual_network_interface_ip_prototype_model] - bare_metal_server_network_attachment_prototype_virtual_network_interface_model['name'] = 'my-virtual-network-interface' - bare_metal_server_network_attachment_prototype_virtual_network_interface_model['primary_ip'] = virtual_network_interface_primary_ip_prototype_model - bare_metal_server_network_attachment_prototype_virtual_network_interface_model['protocol_state_filtering_mode'] = 'auto' - bare_metal_server_network_attachment_prototype_virtual_network_interface_model['resource_group'] = resource_group_identity_model - bare_metal_server_network_attachment_prototype_virtual_network_interface_model['security_groups'] = [security_group_identity_model] + bare_metal_server_network_attachment_prototype_virtual_network_interface_model['enable_infrastructure_nat'] = ( + True + ) + bare_metal_server_network_attachment_prototype_virtual_network_interface_model['ips'] = [ + virtual_network_interface_ip_prototype_model + ] + bare_metal_server_network_attachment_prototype_virtual_network_interface_model['name'] = ( + 'my-virtual-network-interface' + ) + bare_metal_server_network_attachment_prototype_virtual_network_interface_model['primary_ip'] = ( + virtual_network_interface_primary_ip_prototype_model + ) + bare_metal_server_network_attachment_prototype_virtual_network_interface_model[ + 'protocol_state_filtering_mode' + ] = 'auto' + bare_metal_server_network_attachment_prototype_virtual_network_interface_model['resource_group'] = ( + resource_group_identity_model + ) + bare_metal_server_network_attachment_prototype_virtual_network_interface_model['security_groups'] = [ + security_group_identity_model + ] bare_metal_server_network_attachment_prototype_virtual_network_interface_model['subnet'] = subnet_identity_model # Construct a json representation of a BareMetalServerNetworkAttachmentPrototypeBareMetalServerNetworkAttachmentByVLANPrototype model - bare_metal_server_network_attachment_prototype_bare_metal_server_network_attachment_by_vlan_prototype_model_json = {} - bare_metal_server_network_attachment_prototype_bare_metal_server_network_attachment_by_vlan_prototype_model_json['name'] = 'my-bare-metal-server-network-attachment' - bare_metal_server_network_attachment_prototype_bare_metal_server_network_attachment_by_vlan_prototype_model_json['virtual_network_interface'] = bare_metal_server_network_attachment_prototype_virtual_network_interface_model - bare_metal_server_network_attachment_prototype_bare_metal_server_network_attachment_by_vlan_prototype_model_json['allow_to_float'] = False - bare_metal_server_network_attachment_prototype_bare_metal_server_network_attachment_by_vlan_prototype_model_json['interface_type'] = 'vlan' - bare_metal_server_network_attachment_prototype_bare_metal_server_network_attachment_by_vlan_prototype_model_json['vlan'] = 4 + bare_metal_server_network_attachment_prototype_bare_metal_server_network_attachment_by_vlan_prototype_model_json = ( + {} + ) + bare_metal_server_network_attachment_prototype_bare_metal_server_network_attachment_by_vlan_prototype_model_json[ + 'name' + ] = 'my-bare-metal-server-network-attachment' + bare_metal_server_network_attachment_prototype_bare_metal_server_network_attachment_by_vlan_prototype_model_json[ + 'virtual_network_interface' + ] = bare_metal_server_network_attachment_prototype_virtual_network_interface_model + bare_metal_server_network_attachment_prototype_bare_metal_server_network_attachment_by_vlan_prototype_model_json[ + 'allow_to_float' + ] = False + bare_metal_server_network_attachment_prototype_bare_metal_server_network_attachment_by_vlan_prototype_model_json[ + 'interface_type' + ] = 'vlan' + bare_metal_server_network_attachment_prototype_bare_metal_server_network_attachment_by_vlan_prototype_model_json[ + 'vlan' + ] = 4 # Construct a model instance of BareMetalServerNetworkAttachmentPrototypeBareMetalServerNetworkAttachmentByVLANPrototype by calling from_dict on the json representation - bare_metal_server_network_attachment_prototype_bare_metal_server_network_attachment_by_vlan_prototype_model = BareMetalServerNetworkAttachmentPrototypeBareMetalServerNetworkAttachmentByVLANPrototype.from_dict(bare_metal_server_network_attachment_prototype_bare_metal_server_network_attachment_by_vlan_prototype_model_json) - assert bare_metal_server_network_attachment_prototype_bare_metal_server_network_attachment_by_vlan_prototype_model != False + bare_metal_server_network_attachment_prototype_bare_metal_server_network_attachment_by_vlan_prototype_model = BareMetalServerNetworkAttachmentPrototypeBareMetalServerNetworkAttachmentByVLANPrototype.from_dict( + bare_metal_server_network_attachment_prototype_bare_metal_server_network_attachment_by_vlan_prototype_model_json + ) + assert ( + bare_metal_server_network_attachment_prototype_bare_metal_server_network_attachment_by_vlan_prototype_model + != False + ) # Construct a model instance of BareMetalServerNetworkAttachmentPrototypeBareMetalServerNetworkAttachmentByVLANPrototype by calling from_dict on the json representation - bare_metal_server_network_attachment_prototype_bare_metal_server_network_attachment_by_vlan_prototype_model_dict = BareMetalServerNetworkAttachmentPrototypeBareMetalServerNetworkAttachmentByVLANPrototype.from_dict(bare_metal_server_network_attachment_prototype_bare_metal_server_network_attachment_by_vlan_prototype_model_json).__dict__ - bare_metal_server_network_attachment_prototype_bare_metal_server_network_attachment_by_vlan_prototype_model2 = BareMetalServerNetworkAttachmentPrototypeBareMetalServerNetworkAttachmentByVLANPrototype(**bare_metal_server_network_attachment_prototype_bare_metal_server_network_attachment_by_vlan_prototype_model_dict) + bare_metal_server_network_attachment_prototype_bare_metal_server_network_attachment_by_vlan_prototype_model_dict = BareMetalServerNetworkAttachmentPrototypeBareMetalServerNetworkAttachmentByVLANPrototype.from_dict( + bare_metal_server_network_attachment_prototype_bare_metal_server_network_attachment_by_vlan_prototype_model_json + ).__dict__ + bare_metal_server_network_attachment_prototype_bare_metal_server_network_attachment_by_vlan_prototype_model2 = BareMetalServerNetworkAttachmentPrototypeBareMetalServerNetworkAttachmentByVLANPrototype( + **bare_metal_server_network_attachment_prototype_bare_metal_server_network_attachment_by_vlan_prototype_model_dict + ) # Verify the model instances are equivalent - assert bare_metal_server_network_attachment_prototype_bare_metal_server_network_attachment_by_vlan_prototype_model == bare_metal_server_network_attachment_prototype_bare_metal_server_network_attachment_by_vlan_prototype_model2 + assert ( + bare_metal_server_network_attachment_prototype_bare_metal_server_network_attachment_by_vlan_prototype_model + == bare_metal_server_network_attachment_prototype_bare_metal_server_network_attachment_by_vlan_prototype_model2 + ) # Convert model instance back to dict and verify no loss of data - bare_metal_server_network_attachment_prototype_bare_metal_server_network_attachment_by_vlan_prototype_model_json2 = bare_metal_server_network_attachment_prototype_bare_metal_server_network_attachment_by_vlan_prototype_model.to_dict() - assert bare_metal_server_network_attachment_prototype_bare_metal_server_network_attachment_by_vlan_prototype_model_json2 == bare_metal_server_network_attachment_prototype_bare_metal_server_network_attachment_by_vlan_prototype_model_json + bare_metal_server_network_attachment_prototype_bare_metal_server_network_attachment_by_vlan_prototype_model_json2 = ( + bare_metal_server_network_attachment_prototype_bare_metal_server_network_attachment_by_vlan_prototype_model.to_dict() + ) + assert ( + bare_metal_server_network_attachment_prototype_bare_metal_server_network_attachment_by_vlan_prototype_model_json2 + == bare_metal_server_network_attachment_prototype_bare_metal_server_network_attachment_by_vlan_prototype_model_json + ) class TestModel_BareMetalServerNetworkInterfaceByHiperSocket: @@ -80282,31 +85977,45 @@ def test_bare_metal_server_network_interface_by_hiper_socket_serialization(self) floating_ip_reference_model = {} # FloatingIPReference floating_ip_reference_model['address'] = '203.0.113.1' - floating_ip_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::floating-ip:r006-f45e0d90-12a8-4460-8210-290ff2ab75cd' + floating_ip_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::floating-ip:r006-f45e0d90-12a8-4460-8210-290ff2ab75cd' + ) floating_ip_reference_model['deleted'] = deleted_model - floating_ip_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/floating_ips/r006-f45e0d90-12a8-4460-8210-290ff2ab75cd' + floating_ip_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/floating_ips/r006-f45e0d90-12a8-4460-8210-290ff2ab75cd' + ) floating_ip_reference_model['id'] = 'r006-f45e0d90-12a8-4460-8210-290ff2ab75cd' floating_ip_reference_model['name'] = 'my-floating-ip' reserved_ip_reference_model = {} # ReservedIPReference reserved_ip_reference_model['address'] = '192.168.3.4' reserved_ip_reference_model['deleted'] = deleted_model - reserved_ip_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-bea6a632-5e13-42a4-b4b8-31dc877abfe4/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + reserved_ip_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-bea6a632-5e13-42a4-b4b8-31dc877abfe4/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + ) reserved_ip_reference_model['id'] = '0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' reserved_ip_reference_model['name'] = 'my-reserved-ip' reserved_ip_reference_model['resource_type'] = 'subnet_reserved_ip' security_group_reference_model = {} # SecurityGroupReference - security_group_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::security-group:r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + security_group_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::security-group:r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + ) security_group_reference_model['deleted'] = deleted_model - security_group_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + security_group_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + ) security_group_reference_model['id'] = 'r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' security_group_reference_model['name'] = 'my-security-group' subnet_reference_model = {} # SubnetReference - subnet_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['deleted'] = deleted_model - subnet_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['id'] = '0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' subnet_reference_model['name'] = 'my-subnet' subnet_reference_model['resource_type'] = 'subnet' @@ -80317,33 +86026,59 @@ def test_bare_metal_server_network_interface_by_hiper_socket_serialization(self) bare_metal_server_network_interface_by_hiper_socket_model_json['created_at'] = '2019-01-01T12:00:00Z' bare_metal_server_network_interface_by_hiper_socket_model_json['enable_infrastructure_nat'] = True bare_metal_server_network_interface_by_hiper_socket_model_json['floating_ips'] = [floating_ip_reference_model] - bare_metal_server_network_interface_by_hiper_socket_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/bare_metal_servers/0717-aad10fd7-8a02-4f3e-97f3-b18bd82cf304/network_interfaces/0717-da8c43ec-b6ca-4bd2-871e-72e288c66ee6' - bare_metal_server_network_interface_by_hiper_socket_model_json['id'] = '0717-da8c43ec-b6ca-4bd2-871e-72e288c66ee6' + bare_metal_server_network_interface_by_hiper_socket_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/bare_metal_servers/0717-aad10fd7-8a02-4f3e-97f3-b18bd82cf304/network_interfaces/0717-da8c43ec-b6ca-4bd2-871e-72e288c66ee6' + ) + bare_metal_server_network_interface_by_hiper_socket_model_json['id'] = ( + '0717-da8c43ec-b6ca-4bd2-871e-72e288c66ee6' + ) bare_metal_server_network_interface_by_hiper_socket_model_json['mac_address'] = '02:00:04:00:C4:6A' - bare_metal_server_network_interface_by_hiper_socket_model_json['name'] = 'my-bare-metal-server-network-interface' + bare_metal_server_network_interface_by_hiper_socket_model_json['name'] = ( + 'my-bare-metal-server-network-interface' + ) bare_metal_server_network_interface_by_hiper_socket_model_json['port_speed'] = 1000 bare_metal_server_network_interface_by_hiper_socket_model_json['primary_ip'] = reserved_ip_reference_model bare_metal_server_network_interface_by_hiper_socket_model_json['resource_type'] = 'network_interface' - bare_metal_server_network_interface_by_hiper_socket_model_json['security_groups'] = [security_group_reference_model] + bare_metal_server_network_interface_by_hiper_socket_model_json['security_groups'] = [ + security_group_reference_model + ] bare_metal_server_network_interface_by_hiper_socket_model_json['status'] = 'available' bare_metal_server_network_interface_by_hiper_socket_model_json['subnet'] = subnet_reference_model bare_metal_server_network_interface_by_hiper_socket_model_json['type'] = 'primary' bare_metal_server_network_interface_by_hiper_socket_model_json['interface_type'] = 'hipersocket' # Construct a model instance of BareMetalServerNetworkInterfaceByHiperSocket by calling from_dict on the json representation - bare_metal_server_network_interface_by_hiper_socket_model = BareMetalServerNetworkInterfaceByHiperSocket.from_dict(bare_metal_server_network_interface_by_hiper_socket_model_json) + bare_metal_server_network_interface_by_hiper_socket_model = ( + BareMetalServerNetworkInterfaceByHiperSocket.from_dict( + bare_metal_server_network_interface_by_hiper_socket_model_json + ) + ) assert bare_metal_server_network_interface_by_hiper_socket_model != False # Construct a model instance of BareMetalServerNetworkInterfaceByHiperSocket by calling from_dict on the json representation - bare_metal_server_network_interface_by_hiper_socket_model_dict = BareMetalServerNetworkInterfaceByHiperSocket.from_dict(bare_metal_server_network_interface_by_hiper_socket_model_json).__dict__ - bare_metal_server_network_interface_by_hiper_socket_model2 = BareMetalServerNetworkInterfaceByHiperSocket(**bare_metal_server_network_interface_by_hiper_socket_model_dict) + bare_metal_server_network_interface_by_hiper_socket_model_dict = ( + BareMetalServerNetworkInterfaceByHiperSocket.from_dict( + bare_metal_server_network_interface_by_hiper_socket_model_json + ).__dict__ + ) + bare_metal_server_network_interface_by_hiper_socket_model2 = BareMetalServerNetworkInterfaceByHiperSocket( + **bare_metal_server_network_interface_by_hiper_socket_model_dict + ) # Verify the model instances are equivalent - assert bare_metal_server_network_interface_by_hiper_socket_model == bare_metal_server_network_interface_by_hiper_socket_model2 + assert ( + bare_metal_server_network_interface_by_hiper_socket_model + == bare_metal_server_network_interface_by_hiper_socket_model2 + ) # Convert model instance back to dict and verify no loss of data - bare_metal_server_network_interface_by_hiper_socket_model_json2 = bare_metal_server_network_interface_by_hiper_socket_model.to_dict() - assert bare_metal_server_network_interface_by_hiper_socket_model_json2 == bare_metal_server_network_interface_by_hiper_socket_model_json + bare_metal_server_network_interface_by_hiper_socket_model_json2 = ( + bare_metal_server_network_interface_by_hiper_socket_model.to_dict() + ) + assert ( + bare_metal_server_network_interface_by_hiper_socket_model_json2 + == bare_metal_server_network_interface_by_hiper_socket_model_json + ) class TestModel_BareMetalServerNetworkInterfaceByPCI: @@ -80363,31 +86098,45 @@ def test_bare_metal_server_network_interface_by_pci_serialization(self): floating_ip_reference_model = {} # FloatingIPReference floating_ip_reference_model['address'] = '203.0.113.1' - floating_ip_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::floating-ip:r006-f45e0d90-12a8-4460-8210-290ff2ab75cd' + floating_ip_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::floating-ip:r006-f45e0d90-12a8-4460-8210-290ff2ab75cd' + ) floating_ip_reference_model['deleted'] = deleted_model - floating_ip_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/floating_ips/r006-f45e0d90-12a8-4460-8210-290ff2ab75cd' + floating_ip_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/floating_ips/r006-f45e0d90-12a8-4460-8210-290ff2ab75cd' + ) floating_ip_reference_model['id'] = 'r006-f45e0d90-12a8-4460-8210-290ff2ab75cd' floating_ip_reference_model['name'] = 'my-floating-ip' reserved_ip_reference_model = {} # ReservedIPReference reserved_ip_reference_model['address'] = '192.168.3.4' reserved_ip_reference_model['deleted'] = deleted_model - reserved_ip_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-bea6a632-5e13-42a4-b4b8-31dc877abfe4/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + reserved_ip_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-bea6a632-5e13-42a4-b4b8-31dc877abfe4/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + ) reserved_ip_reference_model['id'] = '0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' reserved_ip_reference_model['name'] = 'my-reserved-ip' reserved_ip_reference_model['resource_type'] = 'subnet_reserved_ip' security_group_reference_model = {} # SecurityGroupReference - security_group_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::security-group:r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + security_group_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::security-group:r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + ) security_group_reference_model['deleted'] = deleted_model - security_group_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + security_group_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + ) security_group_reference_model['id'] = 'r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' security_group_reference_model['name'] = 'my-security-group' subnet_reference_model = {} # SubnetReference - subnet_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['deleted'] = deleted_model - subnet_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['id'] = '0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' subnet_reference_model['name'] = 'my-subnet' subnet_reference_model['resource_type'] = 'subnet' @@ -80398,7 +86147,9 @@ def test_bare_metal_server_network_interface_by_pci_serialization(self): bare_metal_server_network_interface_by_pci_model_json['created_at'] = '2019-01-01T12:00:00Z' bare_metal_server_network_interface_by_pci_model_json['enable_infrastructure_nat'] = True bare_metal_server_network_interface_by_pci_model_json['floating_ips'] = [floating_ip_reference_model] - bare_metal_server_network_interface_by_pci_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/bare_metal_servers/0717-aad10fd7-8a02-4f3e-97f3-b18bd82cf304/network_interfaces/0717-da8c43ec-b6ca-4bd2-871e-72e288c66ee6' + bare_metal_server_network_interface_by_pci_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/bare_metal_servers/0717-aad10fd7-8a02-4f3e-97f3-b18bd82cf304/network_interfaces/0717-da8c43ec-b6ca-4bd2-871e-72e288c66ee6' + ) bare_metal_server_network_interface_by_pci_model_json['id'] = '0717-da8c43ec-b6ca-4bd2-871e-72e288c66ee6' bare_metal_server_network_interface_by_pci_model_json['mac_address'] = '02:00:04:00:C4:6A' bare_metal_server_network_interface_by_pci_model_json['name'] = 'my-bare-metal-server-network-interface' @@ -80413,19 +86164,30 @@ def test_bare_metal_server_network_interface_by_pci_serialization(self): bare_metal_server_network_interface_by_pci_model_json['interface_type'] = 'pci' # Construct a model instance of BareMetalServerNetworkInterfaceByPCI by calling from_dict on the json representation - bare_metal_server_network_interface_by_pci_model = BareMetalServerNetworkInterfaceByPCI.from_dict(bare_metal_server_network_interface_by_pci_model_json) + bare_metal_server_network_interface_by_pci_model = BareMetalServerNetworkInterfaceByPCI.from_dict( + bare_metal_server_network_interface_by_pci_model_json + ) assert bare_metal_server_network_interface_by_pci_model != False # Construct a model instance of BareMetalServerNetworkInterfaceByPCI by calling from_dict on the json representation - bare_metal_server_network_interface_by_pci_model_dict = BareMetalServerNetworkInterfaceByPCI.from_dict(bare_metal_server_network_interface_by_pci_model_json).__dict__ - bare_metal_server_network_interface_by_pci_model2 = BareMetalServerNetworkInterfaceByPCI(**bare_metal_server_network_interface_by_pci_model_dict) + bare_metal_server_network_interface_by_pci_model_dict = BareMetalServerNetworkInterfaceByPCI.from_dict( + bare_metal_server_network_interface_by_pci_model_json + ).__dict__ + bare_metal_server_network_interface_by_pci_model2 = BareMetalServerNetworkInterfaceByPCI( + **bare_metal_server_network_interface_by_pci_model_dict + ) # Verify the model instances are equivalent assert bare_metal_server_network_interface_by_pci_model == bare_metal_server_network_interface_by_pci_model2 # Convert model instance back to dict and verify no loss of data - bare_metal_server_network_interface_by_pci_model_json2 = bare_metal_server_network_interface_by_pci_model.to_dict() - assert bare_metal_server_network_interface_by_pci_model_json2 == bare_metal_server_network_interface_by_pci_model_json + bare_metal_server_network_interface_by_pci_model_json2 = ( + bare_metal_server_network_interface_by_pci_model.to_dict() + ) + assert ( + bare_metal_server_network_interface_by_pci_model_json2 + == bare_metal_server_network_interface_by_pci_model_json + ) class TestModel_BareMetalServerNetworkInterfaceByVLAN: @@ -80445,31 +86207,45 @@ def test_bare_metal_server_network_interface_by_vlan_serialization(self): floating_ip_reference_model = {} # FloatingIPReference floating_ip_reference_model['address'] = '203.0.113.1' - floating_ip_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::floating-ip:r006-f45e0d90-12a8-4460-8210-290ff2ab75cd' + floating_ip_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::floating-ip:r006-f45e0d90-12a8-4460-8210-290ff2ab75cd' + ) floating_ip_reference_model['deleted'] = deleted_model - floating_ip_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/floating_ips/r006-f45e0d90-12a8-4460-8210-290ff2ab75cd' + floating_ip_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/floating_ips/r006-f45e0d90-12a8-4460-8210-290ff2ab75cd' + ) floating_ip_reference_model['id'] = 'r006-f45e0d90-12a8-4460-8210-290ff2ab75cd' floating_ip_reference_model['name'] = 'my-floating-ip' reserved_ip_reference_model = {} # ReservedIPReference reserved_ip_reference_model['address'] = '192.168.3.4' reserved_ip_reference_model['deleted'] = deleted_model - reserved_ip_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-bea6a632-5e13-42a4-b4b8-31dc877abfe4/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + reserved_ip_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-bea6a632-5e13-42a4-b4b8-31dc877abfe4/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + ) reserved_ip_reference_model['id'] = '0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' reserved_ip_reference_model['name'] = 'my-reserved-ip' reserved_ip_reference_model['resource_type'] = 'subnet_reserved_ip' security_group_reference_model = {} # SecurityGroupReference - security_group_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::security-group:r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + security_group_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::security-group:r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + ) security_group_reference_model['deleted'] = deleted_model - security_group_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + security_group_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + ) security_group_reference_model['id'] = 'r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' security_group_reference_model['name'] = 'my-security-group' subnet_reference_model = {} # SubnetReference - subnet_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['deleted'] = deleted_model - subnet_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['id'] = '0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' subnet_reference_model['name'] = 'my-subnet' subnet_reference_model['resource_type'] = 'subnet' @@ -80480,7 +86256,9 @@ def test_bare_metal_server_network_interface_by_vlan_serialization(self): bare_metal_server_network_interface_by_vlan_model_json['created_at'] = '2019-01-01T12:00:00Z' bare_metal_server_network_interface_by_vlan_model_json['enable_infrastructure_nat'] = True bare_metal_server_network_interface_by_vlan_model_json['floating_ips'] = [floating_ip_reference_model] - bare_metal_server_network_interface_by_vlan_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/bare_metal_servers/0717-aad10fd7-8a02-4f3e-97f3-b18bd82cf304/network_interfaces/0717-da8c43ec-b6ca-4bd2-871e-72e288c66ee6' + bare_metal_server_network_interface_by_vlan_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/bare_metal_servers/0717-aad10fd7-8a02-4f3e-97f3-b18bd82cf304/network_interfaces/0717-da8c43ec-b6ca-4bd2-871e-72e288c66ee6' + ) bare_metal_server_network_interface_by_vlan_model_json['id'] = '0717-da8c43ec-b6ca-4bd2-871e-72e288c66ee6' bare_metal_server_network_interface_by_vlan_model_json['mac_address'] = '02:00:04:00:C4:6A' bare_metal_server_network_interface_by_vlan_model_json['name'] = 'my-bare-metal-server-network-interface' @@ -80496,19 +86274,30 @@ def test_bare_metal_server_network_interface_by_vlan_serialization(self): bare_metal_server_network_interface_by_vlan_model_json['vlan'] = 4 # Construct a model instance of BareMetalServerNetworkInterfaceByVLAN by calling from_dict on the json representation - bare_metal_server_network_interface_by_vlan_model = BareMetalServerNetworkInterfaceByVLAN.from_dict(bare_metal_server_network_interface_by_vlan_model_json) + bare_metal_server_network_interface_by_vlan_model = BareMetalServerNetworkInterfaceByVLAN.from_dict( + bare_metal_server_network_interface_by_vlan_model_json + ) assert bare_metal_server_network_interface_by_vlan_model != False # Construct a model instance of BareMetalServerNetworkInterfaceByVLAN by calling from_dict on the json representation - bare_metal_server_network_interface_by_vlan_model_dict = BareMetalServerNetworkInterfaceByVLAN.from_dict(bare_metal_server_network_interface_by_vlan_model_json).__dict__ - bare_metal_server_network_interface_by_vlan_model2 = BareMetalServerNetworkInterfaceByVLAN(**bare_metal_server_network_interface_by_vlan_model_dict) + bare_metal_server_network_interface_by_vlan_model_dict = BareMetalServerNetworkInterfaceByVLAN.from_dict( + bare_metal_server_network_interface_by_vlan_model_json + ).__dict__ + bare_metal_server_network_interface_by_vlan_model2 = BareMetalServerNetworkInterfaceByVLAN( + **bare_metal_server_network_interface_by_vlan_model_dict + ) # Verify the model instances are equivalent assert bare_metal_server_network_interface_by_vlan_model == bare_metal_server_network_interface_by_vlan_model2 # Convert model instance back to dict and verify no loss of data - bare_metal_server_network_interface_by_vlan_model_json2 = bare_metal_server_network_interface_by_vlan_model.to_dict() - assert bare_metal_server_network_interface_by_vlan_model_json2 == bare_metal_server_network_interface_by_vlan_model_json + bare_metal_server_network_interface_by_vlan_model_json2 = ( + bare_metal_server_network_interface_by_vlan_model.to_dict() + ) + assert ( + bare_metal_server_network_interface_by_vlan_model_json2 + == bare_metal_server_network_interface_by_vlan_model_json + ) class TestModel_BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByHiperSocketPrototype: @@ -80516,14 +86305,18 @@ class TestModel_BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkIn Test Class for BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByHiperSocketPrototype """ - def test_bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_hiper_socket_prototype_serialization(self): + def test_bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_hiper_socket_prototype_serialization( + self, + ): """ Test serialization/deserialization for BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByHiperSocketPrototype """ # Construct dict forms of any model objects needed in order to build this model. - network_interface_ip_prototype_model = {} # NetworkInterfaceIPPrototypeReservedIPPrototypeNetworkInterfaceContext + network_interface_ip_prototype_model = ( + {} + ) # NetworkInterfaceIPPrototypeReservedIPPrototypeNetworkInterfaceContext network_interface_ip_prototype_model['address'] = '10.0.0.5' network_interface_ip_prototype_model['auto_delete'] = False network_interface_ip_prototype_model['name'] = 'my-reserved-ip' @@ -80535,29 +86328,64 @@ def test_bare_metal_server_network_interface_prototype_bare_metal_server_network subnet_identity_model['id'] = '7ec86020-1c6e-4889-b3f0-a15f2e50f87e' # Construct a json representation of a BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByHiperSocketPrototype model - bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_hiper_socket_prototype_model_json = {} - bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_hiper_socket_prototype_model_json['allow_ip_spoofing'] = True - bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_hiper_socket_prototype_model_json['enable_infrastructure_nat'] = True - bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_hiper_socket_prototype_model_json['name'] = 'my-bare-metal-server-network-interface' - bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_hiper_socket_prototype_model_json['primary_ip'] = network_interface_ip_prototype_model - bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_hiper_socket_prototype_model_json['security_groups'] = [security_group_identity_model] - bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_hiper_socket_prototype_model_json['subnet'] = subnet_identity_model - bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_hiper_socket_prototype_model_json['interface_type'] = 'hipersocket' + bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_hiper_socket_prototype_model_json = ( + {} + ) + bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_hiper_socket_prototype_model_json[ + 'allow_ip_spoofing' + ] = True + bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_hiper_socket_prototype_model_json[ + 'enable_infrastructure_nat' + ] = True + bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_hiper_socket_prototype_model_json[ + 'name' + ] = 'my-bare-metal-server-network-interface' + bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_hiper_socket_prototype_model_json[ + 'primary_ip' + ] = network_interface_ip_prototype_model + bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_hiper_socket_prototype_model_json[ + 'security_groups' + ] = [ + security_group_identity_model + ] + bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_hiper_socket_prototype_model_json[ + 'subnet' + ] = subnet_identity_model + bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_hiper_socket_prototype_model_json[ + 'interface_type' + ] = 'hipersocket' # Construct a model instance of BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByHiperSocketPrototype by calling from_dict on the json representation - bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_hiper_socket_prototype_model = BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByHiperSocketPrototype.from_dict(bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_hiper_socket_prototype_model_json) - assert bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_hiper_socket_prototype_model != False + bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_hiper_socket_prototype_model = BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByHiperSocketPrototype.from_dict( + bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_hiper_socket_prototype_model_json + ) + assert ( + bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_hiper_socket_prototype_model + != False + ) # Construct a model instance of BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByHiperSocketPrototype by calling from_dict on the json representation - bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_hiper_socket_prototype_model_dict = BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByHiperSocketPrototype.from_dict(bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_hiper_socket_prototype_model_json).__dict__ - bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_hiper_socket_prototype_model2 = BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByHiperSocketPrototype(**bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_hiper_socket_prototype_model_dict) + bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_hiper_socket_prototype_model_dict = BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByHiperSocketPrototype.from_dict( + bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_hiper_socket_prototype_model_json + ).__dict__ + bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_hiper_socket_prototype_model2 = BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByHiperSocketPrototype( + **bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_hiper_socket_prototype_model_dict + ) # Verify the model instances are equivalent - assert bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_hiper_socket_prototype_model == bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_hiper_socket_prototype_model2 + assert ( + bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_hiper_socket_prototype_model + == bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_hiper_socket_prototype_model2 + ) # Convert model instance back to dict and verify no loss of data - bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_hiper_socket_prototype_model_json2 = bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_hiper_socket_prototype_model.to_dict() - assert bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_hiper_socket_prototype_model_json2 == bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_hiper_socket_prototype_model_json + bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_hiper_socket_prototype_model_json2 = ( + bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_hiper_socket_prototype_model.to_dict() + ) + assert ( + bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_hiper_socket_prototype_model_json2 + == bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_hiper_socket_prototype_model_json + ) class TestModel_BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByPCIPrototype: @@ -80565,14 +86393,18 @@ class TestModel_BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkIn Test Class for BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByPCIPrototype """ - def test_bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_pci_prototype_serialization(self): + def test_bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_pci_prototype_serialization( + self, + ): """ Test serialization/deserialization for BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByPCIPrototype """ # Construct dict forms of any model objects needed in order to build this model. - network_interface_ip_prototype_model = {} # NetworkInterfaceIPPrototypeReservedIPPrototypeNetworkInterfaceContext + network_interface_ip_prototype_model = ( + {} + ) # NetworkInterfaceIPPrototypeReservedIPPrototypeNetworkInterfaceContext network_interface_ip_prototype_model['address'] = '10.0.0.5' network_interface_ip_prototype_model['auto_delete'] = False network_interface_ip_prototype_model['name'] = 'my-reserved-ip' @@ -80584,30 +86416,65 @@ def test_bare_metal_server_network_interface_prototype_bare_metal_server_network subnet_identity_model['id'] = '7ec86020-1c6e-4889-b3f0-a15f2e50f87e' # Construct a json representation of a BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByPCIPrototype model - bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_pci_prototype_model_json = {} - bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_pci_prototype_model_json['allow_ip_spoofing'] = True - bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_pci_prototype_model_json['enable_infrastructure_nat'] = True - bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_pci_prototype_model_json['name'] = 'my-bare-metal-server-network-interface' - bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_pci_prototype_model_json['primary_ip'] = network_interface_ip_prototype_model - bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_pci_prototype_model_json['security_groups'] = [security_group_identity_model] - bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_pci_prototype_model_json['subnet'] = subnet_identity_model - bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_pci_prototype_model_json['allowed_vlans'] = [] - bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_pci_prototype_model_json['interface_type'] = 'pci' + bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_pci_prototype_model_json = ( + {} + ) + bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_pci_prototype_model_json[ + 'allow_ip_spoofing' + ] = True + bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_pci_prototype_model_json[ + 'enable_infrastructure_nat' + ] = True + bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_pci_prototype_model_json[ + 'name' + ] = 'my-bare-metal-server-network-interface' + bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_pci_prototype_model_json[ + 'primary_ip' + ] = network_interface_ip_prototype_model + bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_pci_prototype_model_json[ + 'security_groups' + ] = [security_group_identity_model] + bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_pci_prototype_model_json[ + 'subnet' + ] = subnet_identity_model + bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_pci_prototype_model_json[ + 'allowed_vlans' + ] = [] + bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_pci_prototype_model_json[ + 'interface_type' + ] = 'pci' # Construct a model instance of BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByPCIPrototype by calling from_dict on the json representation - bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_pci_prototype_model = BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByPCIPrototype.from_dict(bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_pci_prototype_model_json) - assert bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_pci_prototype_model != False + bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_pci_prototype_model = BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByPCIPrototype.from_dict( + bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_pci_prototype_model_json + ) + assert ( + bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_pci_prototype_model + != False + ) # Construct a model instance of BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByPCIPrototype by calling from_dict on the json representation - bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_pci_prototype_model_dict = BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByPCIPrototype.from_dict(bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_pci_prototype_model_json).__dict__ - bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_pci_prototype_model2 = BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByPCIPrototype(**bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_pci_prototype_model_dict) + bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_pci_prototype_model_dict = BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByPCIPrototype.from_dict( + bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_pci_prototype_model_json + ).__dict__ + bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_pci_prototype_model2 = BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByPCIPrototype( + **bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_pci_prototype_model_dict + ) # Verify the model instances are equivalent - assert bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_pci_prototype_model == bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_pci_prototype_model2 + assert ( + bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_pci_prototype_model + == bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_pci_prototype_model2 + ) # Convert model instance back to dict and verify no loss of data - bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_pci_prototype_model_json2 = bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_pci_prototype_model.to_dict() - assert bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_pci_prototype_model_json2 == bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_pci_prototype_model_json + bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_pci_prototype_model_json2 = ( + bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_pci_prototype_model.to_dict() + ) + assert ( + bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_pci_prototype_model_json2 + == bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_pci_prototype_model_json + ) class TestModel_BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByVLANPrototype: @@ -80615,14 +86482,18 @@ class TestModel_BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkIn Test Class for BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByVLANPrototype """ - def test_bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_vlan_prototype_serialization(self): + def test_bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_vlan_prototype_serialization( + self, + ): """ Test serialization/deserialization for BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByVLANPrototype """ # Construct dict forms of any model objects needed in order to build this model. - network_interface_ip_prototype_model = {} # NetworkInterfaceIPPrototypeReservedIPPrototypeNetworkInterfaceContext + network_interface_ip_prototype_model = ( + {} + ) # NetworkInterfaceIPPrototypeReservedIPPrototypeNetworkInterfaceContext network_interface_ip_prototype_model['address'] = '10.0.0.5' network_interface_ip_prototype_model['auto_delete'] = False network_interface_ip_prototype_model['name'] = 'my-reserved-ip' @@ -80634,31 +86505,68 @@ def test_bare_metal_server_network_interface_prototype_bare_metal_server_network subnet_identity_model['id'] = '7ec86020-1c6e-4889-b3f0-a15f2e50f87e' # Construct a json representation of a BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByVLANPrototype model - bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_vlan_prototype_model_json = {} - bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_vlan_prototype_model_json['allow_ip_spoofing'] = True - bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_vlan_prototype_model_json['enable_infrastructure_nat'] = True - bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_vlan_prototype_model_json['name'] = 'my-bare-metal-server-network-interface' - bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_vlan_prototype_model_json['primary_ip'] = network_interface_ip_prototype_model - bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_vlan_prototype_model_json['security_groups'] = [security_group_identity_model] - bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_vlan_prototype_model_json['subnet'] = subnet_identity_model - bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_vlan_prototype_model_json['allow_interface_to_float'] = False - bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_vlan_prototype_model_json['interface_type'] = 'vlan' - bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_vlan_prototype_model_json['vlan'] = 4 + bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_vlan_prototype_model_json = ( + {} + ) + bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_vlan_prototype_model_json[ + 'allow_ip_spoofing' + ] = True + bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_vlan_prototype_model_json[ + 'enable_infrastructure_nat' + ] = True + bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_vlan_prototype_model_json[ + 'name' + ] = 'my-bare-metal-server-network-interface' + bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_vlan_prototype_model_json[ + 'primary_ip' + ] = network_interface_ip_prototype_model + bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_vlan_prototype_model_json[ + 'security_groups' + ] = [security_group_identity_model] + bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_vlan_prototype_model_json[ + 'subnet' + ] = subnet_identity_model + bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_vlan_prototype_model_json[ + 'allow_interface_to_float' + ] = False + bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_vlan_prototype_model_json[ + 'interface_type' + ] = 'vlan' + bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_vlan_prototype_model_json[ + 'vlan' + ] = 4 # Construct a model instance of BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByVLANPrototype by calling from_dict on the json representation - bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_vlan_prototype_model = BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByVLANPrototype.from_dict(bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_vlan_prototype_model_json) - assert bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_vlan_prototype_model != False + bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_vlan_prototype_model = BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByVLANPrototype.from_dict( + bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_vlan_prototype_model_json + ) + assert ( + bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_vlan_prototype_model + != False + ) # Construct a model instance of BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByVLANPrototype by calling from_dict on the json representation - bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_vlan_prototype_model_dict = BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByVLANPrototype.from_dict(bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_vlan_prototype_model_json).__dict__ - bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_vlan_prototype_model2 = BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByVLANPrototype(**bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_vlan_prototype_model_dict) + bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_vlan_prototype_model_dict = BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByVLANPrototype.from_dict( + bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_vlan_prototype_model_json + ).__dict__ + bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_vlan_prototype_model2 = BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByVLANPrototype( + **bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_vlan_prototype_model_dict + ) # Verify the model instances are equivalent - assert bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_vlan_prototype_model == bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_vlan_prototype_model2 + assert ( + bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_vlan_prototype_model + == bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_vlan_prototype_model2 + ) # Convert model instance back to dict and verify no loss of data - bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_vlan_prototype_model_json2 = bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_vlan_prototype_model.to_dict() - assert bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_vlan_prototype_model_json2 == bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_vlan_prototype_model_json + bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_vlan_prototype_model_json2 = ( + bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_vlan_prototype_model.to_dict() + ) + assert ( + bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_vlan_prototype_model_json2 + == bare_metal_server_network_interface_prototype_bare_metal_server_network_interface_by_vlan_prototype_model_json + ) class TestModel_BareMetalServerPrimaryNetworkAttachmentPrototypeBareMetalServerPrimaryNetworkAttachmentByPCIPrototype: @@ -80666,19 +86574,25 @@ class TestModel_BareMetalServerPrimaryNetworkAttachmentPrototypeBareMetalServerP Test Class for BareMetalServerPrimaryNetworkAttachmentPrototypeBareMetalServerPrimaryNetworkAttachmentByPCIPrototype """ - def test_bare_metal_server_primary_network_attachment_prototype_bare_metal_server_primary_network_attachment_by_pci_prototype_serialization(self): + def test_bare_metal_server_primary_network_attachment_prototype_bare_metal_server_primary_network_attachment_by_pci_prototype_serialization( + self, + ): """ Test serialization/deserialization for BareMetalServerPrimaryNetworkAttachmentPrototypeBareMetalServerPrimaryNetworkAttachmentByPCIPrototype """ # Construct dict forms of any model objects needed in order to build this model. - virtual_network_interface_ip_prototype_model = {} # VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext + virtual_network_interface_ip_prototype_model = ( + {} + ) # VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext virtual_network_interface_ip_prototype_model['address'] = '10.0.0.5' virtual_network_interface_ip_prototype_model['auto_delete'] = False virtual_network_interface_ip_prototype_model['name'] = 'my-reserved-ip' - virtual_network_interface_primary_ip_prototype_model = {} # VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext + virtual_network_interface_primary_ip_prototype_model = ( + {} + ) # VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext virtual_network_interface_primary_ip_prototype_model['address'] = '10.0.0.5' virtual_network_interface_primary_ip_prototype_model['auto_delete'] = False virtual_network_interface_primary_ip_prototype_model['name'] = 'my-reserved-ip' @@ -80692,39 +86606,82 @@ def test_bare_metal_server_primary_network_attachment_prototype_bare_metal_serve subnet_identity_model = {} # SubnetIdentityById subnet_identity_model['id'] = '7ec86020-1c6e-4889-b3f0-a15f2e50f87e' - bare_metal_server_network_attachment_prototype_virtual_network_interface_model = {} # BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeBareMetalServerNetworkAttachmentContext + bare_metal_server_network_attachment_prototype_virtual_network_interface_model = ( + {} + ) # BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeBareMetalServerNetworkAttachmentContext bare_metal_server_network_attachment_prototype_virtual_network_interface_model['allow_ip_spoofing'] = True bare_metal_server_network_attachment_prototype_virtual_network_interface_model['auto_delete'] = False - bare_metal_server_network_attachment_prototype_virtual_network_interface_model['enable_infrastructure_nat'] = True - bare_metal_server_network_attachment_prototype_virtual_network_interface_model['ips'] = [virtual_network_interface_ip_prototype_model] - bare_metal_server_network_attachment_prototype_virtual_network_interface_model['name'] = 'my-virtual-network-interface' - bare_metal_server_network_attachment_prototype_virtual_network_interface_model['primary_ip'] = virtual_network_interface_primary_ip_prototype_model - bare_metal_server_network_attachment_prototype_virtual_network_interface_model['protocol_state_filtering_mode'] = 'auto' - bare_metal_server_network_attachment_prototype_virtual_network_interface_model['resource_group'] = resource_group_identity_model - bare_metal_server_network_attachment_prototype_virtual_network_interface_model['security_groups'] = [security_group_identity_model] + bare_metal_server_network_attachment_prototype_virtual_network_interface_model['enable_infrastructure_nat'] = ( + True + ) + bare_metal_server_network_attachment_prototype_virtual_network_interface_model['ips'] = [ + virtual_network_interface_ip_prototype_model + ] + bare_metal_server_network_attachment_prototype_virtual_network_interface_model['name'] = ( + 'my-virtual-network-interface' + ) + bare_metal_server_network_attachment_prototype_virtual_network_interface_model['primary_ip'] = ( + virtual_network_interface_primary_ip_prototype_model + ) + bare_metal_server_network_attachment_prototype_virtual_network_interface_model[ + 'protocol_state_filtering_mode' + ] = 'auto' + bare_metal_server_network_attachment_prototype_virtual_network_interface_model['resource_group'] = ( + resource_group_identity_model + ) + bare_metal_server_network_attachment_prototype_virtual_network_interface_model['security_groups'] = [ + security_group_identity_model + ] bare_metal_server_network_attachment_prototype_virtual_network_interface_model['subnet'] = subnet_identity_model # Construct a json representation of a BareMetalServerPrimaryNetworkAttachmentPrototypeBareMetalServerPrimaryNetworkAttachmentByPCIPrototype model - bare_metal_server_primary_network_attachment_prototype_bare_metal_server_primary_network_attachment_by_pci_prototype_model_json = {} - bare_metal_server_primary_network_attachment_prototype_bare_metal_server_primary_network_attachment_by_pci_prototype_model_json['name'] = 'my-bare-metal-server-network-attachment' - bare_metal_server_primary_network_attachment_prototype_bare_metal_server_primary_network_attachment_by_pci_prototype_model_json['virtual_network_interface'] = bare_metal_server_network_attachment_prototype_virtual_network_interface_model - bare_metal_server_primary_network_attachment_prototype_bare_metal_server_primary_network_attachment_by_pci_prototype_model_json['allowed_vlans'] = [] - bare_metal_server_primary_network_attachment_prototype_bare_metal_server_primary_network_attachment_by_pci_prototype_model_json['interface_type'] = 'pci' + bare_metal_server_primary_network_attachment_prototype_bare_metal_server_primary_network_attachment_by_pci_prototype_model_json = ( + {} + ) + bare_metal_server_primary_network_attachment_prototype_bare_metal_server_primary_network_attachment_by_pci_prototype_model_json[ + 'name' + ] = 'my-bare-metal-server-network-attachment' + bare_metal_server_primary_network_attachment_prototype_bare_metal_server_primary_network_attachment_by_pci_prototype_model_json[ + 'virtual_network_interface' + ] = bare_metal_server_network_attachment_prototype_virtual_network_interface_model + bare_metal_server_primary_network_attachment_prototype_bare_metal_server_primary_network_attachment_by_pci_prototype_model_json[ + 'allowed_vlans' + ] = [] + bare_metal_server_primary_network_attachment_prototype_bare_metal_server_primary_network_attachment_by_pci_prototype_model_json[ + 'interface_type' + ] = 'pci' # Construct a model instance of BareMetalServerPrimaryNetworkAttachmentPrototypeBareMetalServerPrimaryNetworkAttachmentByPCIPrototype by calling from_dict on the json representation - bare_metal_server_primary_network_attachment_prototype_bare_metal_server_primary_network_attachment_by_pci_prototype_model = BareMetalServerPrimaryNetworkAttachmentPrototypeBareMetalServerPrimaryNetworkAttachmentByPCIPrototype.from_dict(bare_metal_server_primary_network_attachment_prototype_bare_metal_server_primary_network_attachment_by_pci_prototype_model_json) - assert bare_metal_server_primary_network_attachment_prototype_bare_metal_server_primary_network_attachment_by_pci_prototype_model != False + bare_metal_server_primary_network_attachment_prototype_bare_metal_server_primary_network_attachment_by_pci_prototype_model = BareMetalServerPrimaryNetworkAttachmentPrototypeBareMetalServerPrimaryNetworkAttachmentByPCIPrototype.from_dict( + bare_metal_server_primary_network_attachment_prototype_bare_metal_server_primary_network_attachment_by_pci_prototype_model_json + ) + assert ( + bare_metal_server_primary_network_attachment_prototype_bare_metal_server_primary_network_attachment_by_pci_prototype_model + != False + ) # Construct a model instance of BareMetalServerPrimaryNetworkAttachmentPrototypeBareMetalServerPrimaryNetworkAttachmentByPCIPrototype by calling from_dict on the json representation - bare_metal_server_primary_network_attachment_prototype_bare_metal_server_primary_network_attachment_by_pci_prototype_model_dict = BareMetalServerPrimaryNetworkAttachmentPrototypeBareMetalServerPrimaryNetworkAttachmentByPCIPrototype.from_dict(bare_metal_server_primary_network_attachment_prototype_bare_metal_server_primary_network_attachment_by_pci_prototype_model_json).__dict__ - bare_metal_server_primary_network_attachment_prototype_bare_metal_server_primary_network_attachment_by_pci_prototype_model2 = BareMetalServerPrimaryNetworkAttachmentPrototypeBareMetalServerPrimaryNetworkAttachmentByPCIPrototype(**bare_metal_server_primary_network_attachment_prototype_bare_metal_server_primary_network_attachment_by_pci_prototype_model_dict) + bare_metal_server_primary_network_attachment_prototype_bare_metal_server_primary_network_attachment_by_pci_prototype_model_dict = BareMetalServerPrimaryNetworkAttachmentPrototypeBareMetalServerPrimaryNetworkAttachmentByPCIPrototype.from_dict( + bare_metal_server_primary_network_attachment_prototype_bare_metal_server_primary_network_attachment_by_pci_prototype_model_json + ).__dict__ + bare_metal_server_primary_network_attachment_prototype_bare_metal_server_primary_network_attachment_by_pci_prototype_model2 = BareMetalServerPrimaryNetworkAttachmentPrototypeBareMetalServerPrimaryNetworkAttachmentByPCIPrototype( + **bare_metal_server_primary_network_attachment_prototype_bare_metal_server_primary_network_attachment_by_pci_prototype_model_dict + ) # Verify the model instances are equivalent - assert bare_metal_server_primary_network_attachment_prototype_bare_metal_server_primary_network_attachment_by_pci_prototype_model == bare_metal_server_primary_network_attachment_prototype_bare_metal_server_primary_network_attachment_by_pci_prototype_model2 + assert ( + bare_metal_server_primary_network_attachment_prototype_bare_metal_server_primary_network_attachment_by_pci_prototype_model + == bare_metal_server_primary_network_attachment_prototype_bare_metal_server_primary_network_attachment_by_pci_prototype_model2 + ) # Convert model instance back to dict and verify no loss of data - bare_metal_server_primary_network_attachment_prototype_bare_metal_server_primary_network_attachment_by_pci_prototype_model_json2 = bare_metal_server_primary_network_attachment_prototype_bare_metal_server_primary_network_attachment_by_pci_prototype_model.to_dict() - assert bare_metal_server_primary_network_attachment_prototype_bare_metal_server_primary_network_attachment_by_pci_prototype_model_json2 == bare_metal_server_primary_network_attachment_prototype_bare_metal_server_primary_network_attachment_by_pci_prototype_model_json + bare_metal_server_primary_network_attachment_prototype_bare_metal_server_primary_network_attachment_by_pci_prototype_model_json2 = ( + bare_metal_server_primary_network_attachment_prototype_bare_metal_server_primary_network_attachment_by_pci_prototype_model.to_dict() + ) + assert ( + bare_metal_server_primary_network_attachment_prototype_bare_metal_server_primary_network_attachment_by_pci_prototype_model_json2 + == bare_metal_server_primary_network_attachment_prototype_bare_metal_server_primary_network_attachment_by_pci_prototype_model_json + ) class TestModel_BareMetalServerProfileBandwidthDependent: @@ -80742,19 +86699,32 @@ def test_bare_metal_server_profile_bandwidth_dependent_serialization(self): bare_metal_server_profile_bandwidth_dependent_model_json['type'] = 'dependent' # Construct a model instance of BareMetalServerProfileBandwidthDependent by calling from_dict on the json representation - bare_metal_server_profile_bandwidth_dependent_model = BareMetalServerProfileBandwidthDependent.from_dict(bare_metal_server_profile_bandwidth_dependent_model_json) + bare_metal_server_profile_bandwidth_dependent_model = BareMetalServerProfileBandwidthDependent.from_dict( + bare_metal_server_profile_bandwidth_dependent_model_json + ) assert bare_metal_server_profile_bandwidth_dependent_model != False # Construct a model instance of BareMetalServerProfileBandwidthDependent by calling from_dict on the json representation - bare_metal_server_profile_bandwidth_dependent_model_dict = BareMetalServerProfileBandwidthDependent.from_dict(bare_metal_server_profile_bandwidth_dependent_model_json).__dict__ - bare_metal_server_profile_bandwidth_dependent_model2 = BareMetalServerProfileBandwidthDependent(**bare_metal_server_profile_bandwidth_dependent_model_dict) + bare_metal_server_profile_bandwidth_dependent_model_dict = BareMetalServerProfileBandwidthDependent.from_dict( + bare_metal_server_profile_bandwidth_dependent_model_json + ).__dict__ + bare_metal_server_profile_bandwidth_dependent_model2 = BareMetalServerProfileBandwidthDependent( + **bare_metal_server_profile_bandwidth_dependent_model_dict + ) # Verify the model instances are equivalent - assert bare_metal_server_profile_bandwidth_dependent_model == bare_metal_server_profile_bandwidth_dependent_model2 + assert ( + bare_metal_server_profile_bandwidth_dependent_model == bare_metal_server_profile_bandwidth_dependent_model2 + ) # Convert model instance back to dict and verify no loss of data - bare_metal_server_profile_bandwidth_dependent_model_json2 = bare_metal_server_profile_bandwidth_dependent_model.to_dict() - assert bare_metal_server_profile_bandwidth_dependent_model_json2 == bare_metal_server_profile_bandwidth_dependent_model_json + bare_metal_server_profile_bandwidth_dependent_model_json2 = ( + bare_metal_server_profile_bandwidth_dependent_model.to_dict() + ) + assert ( + bare_metal_server_profile_bandwidth_dependent_model_json2 + == bare_metal_server_profile_bandwidth_dependent_model_json + ) class TestModel_BareMetalServerProfileBandwidthEnum: @@ -80774,19 +86744,27 @@ def test_bare_metal_server_profile_bandwidth_enum_serialization(self): bare_metal_server_profile_bandwidth_enum_model_json['values'] = [16000, 32000, 48000] # Construct a model instance of BareMetalServerProfileBandwidthEnum by calling from_dict on the json representation - bare_metal_server_profile_bandwidth_enum_model = BareMetalServerProfileBandwidthEnum.from_dict(bare_metal_server_profile_bandwidth_enum_model_json) + bare_metal_server_profile_bandwidth_enum_model = BareMetalServerProfileBandwidthEnum.from_dict( + bare_metal_server_profile_bandwidth_enum_model_json + ) assert bare_metal_server_profile_bandwidth_enum_model != False # Construct a model instance of BareMetalServerProfileBandwidthEnum by calling from_dict on the json representation - bare_metal_server_profile_bandwidth_enum_model_dict = BareMetalServerProfileBandwidthEnum.from_dict(bare_metal_server_profile_bandwidth_enum_model_json).__dict__ - bare_metal_server_profile_bandwidth_enum_model2 = BareMetalServerProfileBandwidthEnum(**bare_metal_server_profile_bandwidth_enum_model_dict) + bare_metal_server_profile_bandwidth_enum_model_dict = BareMetalServerProfileBandwidthEnum.from_dict( + bare_metal_server_profile_bandwidth_enum_model_json + ).__dict__ + bare_metal_server_profile_bandwidth_enum_model2 = BareMetalServerProfileBandwidthEnum( + **bare_metal_server_profile_bandwidth_enum_model_dict + ) # Verify the model instances are equivalent assert bare_metal_server_profile_bandwidth_enum_model == bare_metal_server_profile_bandwidth_enum_model2 # Convert model instance back to dict and verify no loss of data bare_metal_server_profile_bandwidth_enum_model_json2 = bare_metal_server_profile_bandwidth_enum_model.to_dict() - assert bare_metal_server_profile_bandwidth_enum_model_json2 == bare_metal_server_profile_bandwidth_enum_model_json + assert ( + bare_metal_server_profile_bandwidth_enum_model_json2 == bare_metal_server_profile_bandwidth_enum_model_json + ) class TestModel_BareMetalServerProfileBandwidthFixed: @@ -80805,19 +86783,30 @@ def test_bare_metal_server_profile_bandwidth_fixed_serialization(self): bare_metal_server_profile_bandwidth_fixed_model_json['value'] = 20000 # Construct a model instance of BareMetalServerProfileBandwidthFixed by calling from_dict on the json representation - bare_metal_server_profile_bandwidth_fixed_model = BareMetalServerProfileBandwidthFixed.from_dict(bare_metal_server_profile_bandwidth_fixed_model_json) + bare_metal_server_profile_bandwidth_fixed_model = BareMetalServerProfileBandwidthFixed.from_dict( + bare_metal_server_profile_bandwidth_fixed_model_json + ) assert bare_metal_server_profile_bandwidth_fixed_model != False # Construct a model instance of BareMetalServerProfileBandwidthFixed by calling from_dict on the json representation - bare_metal_server_profile_bandwidth_fixed_model_dict = BareMetalServerProfileBandwidthFixed.from_dict(bare_metal_server_profile_bandwidth_fixed_model_json).__dict__ - bare_metal_server_profile_bandwidth_fixed_model2 = BareMetalServerProfileBandwidthFixed(**bare_metal_server_profile_bandwidth_fixed_model_dict) + bare_metal_server_profile_bandwidth_fixed_model_dict = BareMetalServerProfileBandwidthFixed.from_dict( + bare_metal_server_profile_bandwidth_fixed_model_json + ).__dict__ + bare_metal_server_profile_bandwidth_fixed_model2 = BareMetalServerProfileBandwidthFixed( + **bare_metal_server_profile_bandwidth_fixed_model_dict + ) # Verify the model instances are equivalent assert bare_metal_server_profile_bandwidth_fixed_model == bare_metal_server_profile_bandwidth_fixed_model2 # Convert model instance back to dict and verify no loss of data - bare_metal_server_profile_bandwidth_fixed_model_json2 = bare_metal_server_profile_bandwidth_fixed_model.to_dict() - assert bare_metal_server_profile_bandwidth_fixed_model_json2 == bare_metal_server_profile_bandwidth_fixed_model_json + bare_metal_server_profile_bandwidth_fixed_model_json2 = ( + bare_metal_server_profile_bandwidth_fixed_model.to_dict() + ) + assert ( + bare_metal_server_profile_bandwidth_fixed_model_json2 + == bare_metal_server_profile_bandwidth_fixed_model_json + ) class TestModel_BareMetalServerProfileBandwidthRange: @@ -80839,19 +86828,30 @@ def test_bare_metal_server_profile_bandwidth_range_serialization(self): bare_metal_server_profile_bandwidth_range_model_json['type'] = 'range' # Construct a model instance of BareMetalServerProfileBandwidthRange by calling from_dict on the json representation - bare_metal_server_profile_bandwidth_range_model = BareMetalServerProfileBandwidthRange.from_dict(bare_metal_server_profile_bandwidth_range_model_json) + bare_metal_server_profile_bandwidth_range_model = BareMetalServerProfileBandwidthRange.from_dict( + bare_metal_server_profile_bandwidth_range_model_json + ) assert bare_metal_server_profile_bandwidth_range_model != False # Construct a model instance of BareMetalServerProfileBandwidthRange by calling from_dict on the json representation - bare_metal_server_profile_bandwidth_range_model_dict = BareMetalServerProfileBandwidthRange.from_dict(bare_metal_server_profile_bandwidth_range_model_json).__dict__ - bare_metal_server_profile_bandwidth_range_model2 = BareMetalServerProfileBandwidthRange(**bare_metal_server_profile_bandwidth_range_model_dict) + bare_metal_server_profile_bandwidth_range_model_dict = BareMetalServerProfileBandwidthRange.from_dict( + bare_metal_server_profile_bandwidth_range_model_json + ).__dict__ + bare_metal_server_profile_bandwidth_range_model2 = BareMetalServerProfileBandwidthRange( + **bare_metal_server_profile_bandwidth_range_model_dict + ) # Verify the model instances are equivalent assert bare_metal_server_profile_bandwidth_range_model == bare_metal_server_profile_bandwidth_range_model2 # Convert model instance back to dict and verify no loss of data - bare_metal_server_profile_bandwidth_range_model_json2 = bare_metal_server_profile_bandwidth_range_model.to_dict() - assert bare_metal_server_profile_bandwidth_range_model_json2 == bare_metal_server_profile_bandwidth_range_model_json + bare_metal_server_profile_bandwidth_range_model_json2 = ( + bare_metal_server_profile_bandwidth_range_model.to_dict() + ) + assert ( + bare_metal_server_profile_bandwidth_range_model_json2 + == bare_metal_server_profile_bandwidth_range_model_json + ) class TestModel_BareMetalServerProfileCPUCoreCountDependent: @@ -80869,19 +86869,37 @@ def test_bare_metal_server_profile_cpu_core_count_dependent_serialization(self): bare_metal_server_profile_cpu_core_count_dependent_model_json['type'] = 'dependent' # Construct a model instance of BareMetalServerProfileCPUCoreCountDependent by calling from_dict on the json representation - bare_metal_server_profile_cpu_core_count_dependent_model = BareMetalServerProfileCPUCoreCountDependent.from_dict(bare_metal_server_profile_cpu_core_count_dependent_model_json) + bare_metal_server_profile_cpu_core_count_dependent_model = ( + BareMetalServerProfileCPUCoreCountDependent.from_dict( + bare_metal_server_profile_cpu_core_count_dependent_model_json + ) + ) assert bare_metal_server_profile_cpu_core_count_dependent_model != False # Construct a model instance of BareMetalServerProfileCPUCoreCountDependent by calling from_dict on the json representation - bare_metal_server_profile_cpu_core_count_dependent_model_dict = BareMetalServerProfileCPUCoreCountDependent.from_dict(bare_metal_server_profile_cpu_core_count_dependent_model_json).__dict__ - bare_metal_server_profile_cpu_core_count_dependent_model2 = BareMetalServerProfileCPUCoreCountDependent(**bare_metal_server_profile_cpu_core_count_dependent_model_dict) + bare_metal_server_profile_cpu_core_count_dependent_model_dict = ( + BareMetalServerProfileCPUCoreCountDependent.from_dict( + bare_metal_server_profile_cpu_core_count_dependent_model_json + ).__dict__ + ) + bare_metal_server_profile_cpu_core_count_dependent_model2 = BareMetalServerProfileCPUCoreCountDependent( + **bare_metal_server_profile_cpu_core_count_dependent_model_dict + ) # Verify the model instances are equivalent - assert bare_metal_server_profile_cpu_core_count_dependent_model == bare_metal_server_profile_cpu_core_count_dependent_model2 + assert ( + bare_metal_server_profile_cpu_core_count_dependent_model + == bare_metal_server_profile_cpu_core_count_dependent_model2 + ) # Convert model instance back to dict and verify no loss of data - bare_metal_server_profile_cpu_core_count_dependent_model_json2 = bare_metal_server_profile_cpu_core_count_dependent_model.to_dict() - assert bare_metal_server_profile_cpu_core_count_dependent_model_json2 == bare_metal_server_profile_cpu_core_count_dependent_model_json + bare_metal_server_profile_cpu_core_count_dependent_model_json2 = ( + bare_metal_server_profile_cpu_core_count_dependent_model.to_dict() + ) + assert ( + bare_metal_server_profile_cpu_core_count_dependent_model_json2 + == bare_metal_server_profile_cpu_core_count_dependent_model_json + ) class TestModel_BareMetalServerProfileCPUCoreCountEnum: @@ -80901,19 +86919,32 @@ def test_bare_metal_server_profile_cpu_core_count_enum_serialization(self): bare_metal_server_profile_cpu_core_count_enum_model_json['values'] = [40, 60, 80] # Construct a model instance of BareMetalServerProfileCPUCoreCountEnum by calling from_dict on the json representation - bare_metal_server_profile_cpu_core_count_enum_model = BareMetalServerProfileCPUCoreCountEnum.from_dict(bare_metal_server_profile_cpu_core_count_enum_model_json) + bare_metal_server_profile_cpu_core_count_enum_model = BareMetalServerProfileCPUCoreCountEnum.from_dict( + bare_metal_server_profile_cpu_core_count_enum_model_json + ) assert bare_metal_server_profile_cpu_core_count_enum_model != False # Construct a model instance of BareMetalServerProfileCPUCoreCountEnum by calling from_dict on the json representation - bare_metal_server_profile_cpu_core_count_enum_model_dict = BareMetalServerProfileCPUCoreCountEnum.from_dict(bare_metal_server_profile_cpu_core_count_enum_model_json).__dict__ - bare_metal_server_profile_cpu_core_count_enum_model2 = BareMetalServerProfileCPUCoreCountEnum(**bare_metal_server_profile_cpu_core_count_enum_model_dict) + bare_metal_server_profile_cpu_core_count_enum_model_dict = BareMetalServerProfileCPUCoreCountEnum.from_dict( + bare_metal_server_profile_cpu_core_count_enum_model_json + ).__dict__ + bare_metal_server_profile_cpu_core_count_enum_model2 = BareMetalServerProfileCPUCoreCountEnum( + **bare_metal_server_profile_cpu_core_count_enum_model_dict + ) # Verify the model instances are equivalent - assert bare_metal_server_profile_cpu_core_count_enum_model == bare_metal_server_profile_cpu_core_count_enum_model2 + assert ( + bare_metal_server_profile_cpu_core_count_enum_model == bare_metal_server_profile_cpu_core_count_enum_model2 + ) # Convert model instance back to dict and verify no loss of data - bare_metal_server_profile_cpu_core_count_enum_model_json2 = bare_metal_server_profile_cpu_core_count_enum_model.to_dict() - assert bare_metal_server_profile_cpu_core_count_enum_model_json2 == bare_metal_server_profile_cpu_core_count_enum_model_json + bare_metal_server_profile_cpu_core_count_enum_model_json2 = ( + bare_metal_server_profile_cpu_core_count_enum_model.to_dict() + ) + assert ( + bare_metal_server_profile_cpu_core_count_enum_model_json2 + == bare_metal_server_profile_cpu_core_count_enum_model_json + ) class TestModel_BareMetalServerProfileCPUCoreCountFixed: @@ -80932,19 +86963,33 @@ def test_bare_metal_server_profile_cpu_core_count_fixed_serialization(self): bare_metal_server_profile_cpu_core_count_fixed_model_json['value'] = 80 # Construct a model instance of BareMetalServerProfileCPUCoreCountFixed by calling from_dict on the json representation - bare_metal_server_profile_cpu_core_count_fixed_model = BareMetalServerProfileCPUCoreCountFixed.from_dict(bare_metal_server_profile_cpu_core_count_fixed_model_json) + bare_metal_server_profile_cpu_core_count_fixed_model = BareMetalServerProfileCPUCoreCountFixed.from_dict( + bare_metal_server_profile_cpu_core_count_fixed_model_json + ) assert bare_metal_server_profile_cpu_core_count_fixed_model != False # Construct a model instance of BareMetalServerProfileCPUCoreCountFixed by calling from_dict on the json representation - bare_metal_server_profile_cpu_core_count_fixed_model_dict = BareMetalServerProfileCPUCoreCountFixed.from_dict(bare_metal_server_profile_cpu_core_count_fixed_model_json).__dict__ - bare_metal_server_profile_cpu_core_count_fixed_model2 = BareMetalServerProfileCPUCoreCountFixed(**bare_metal_server_profile_cpu_core_count_fixed_model_dict) + bare_metal_server_profile_cpu_core_count_fixed_model_dict = BareMetalServerProfileCPUCoreCountFixed.from_dict( + bare_metal_server_profile_cpu_core_count_fixed_model_json + ).__dict__ + bare_metal_server_profile_cpu_core_count_fixed_model2 = BareMetalServerProfileCPUCoreCountFixed( + **bare_metal_server_profile_cpu_core_count_fixed_model_dict + ) # Verify the model instances are equivalent - assert bare_metal_server_profile_cpu_core_count_fixed_model == bare_metal_server_profile_cpu_core_count_fixed_model2 + assert ( + bare_metal_server_profile_cpu_core_count_fixed_model + == bare_metal_server_profile_cpu_core_count_fixed_model2 + ) # Convert model instance back to dict and verify no loss of data - bare_metal_server_profile_cpu_core_count_fixed_model_json2 = bare_metal_server_profile_cpu_core_count_fixed_model.to_dict() - assert bare_metal_server_profile_cpu_core_count_fixed_model_json2 == bare_metal_server_profile_cpu_core_count_fixed_model_json + bare_metal_server_profile_cpu_core_count_fixed_model_json2 = ( + bare_metal_server_profile_cpu_core_count_fixed_model.to_dict() + ) + assert ( + bare_metal_server_profile_cpu_core_count_fixed_model_json2 + == bare_metal_server_profile_cpu_core_count_fixed_model_json + ) class TestModel_BareMetalServerProfileCPUCoreCountRange: @@ -80966,19 +87011,33 @@ def test_bare_metal_server_profile_cpu_core_count_range_serialization(self): bare_metal_server_profile_cpu_core_count_range_model_json['type'] = 'range' # Construct a model instance of BareMetalServerProfileCPUCoreCountRange by calling from_dict on the json representation - bare_metal_server_profile_cpu_core_count_range_model = BareMetalServerProfileCPUCoreCountRange.from_dict(bare_metal_server_profile_cpu_core_count_range_model_json) + bare_metal_server_profile_cpu_core_count_range_model = BareMetalServerProfileCPUCoreCountRange.from_dict( + bare_metal_server_profile_cpu_core_count_range_model_json + ) assert bare_metal_server_profile_cpu_core_count_range_model != False # Construct a model instance of BareMetalServerProfileCPUCoreCountRange by calling from_dict on the json representation - bare_metal_server_profile_cpu_core_count_range_model_dict = BareMetalServerProfileCPUCoreCountRange.from_dict(bare_metal_server_profile_cpu_core_count_range_model_json).__dict__ - bare_metal_server_profile_cpu_core_count_range_model2 = BareMetalServerProfileCPUCoreCountRange(**bare_metal_server_profile_cpu_core_count_range_model_dict) + bare_metal_server_profile_cpu_core_count_range_model_dict = BareMetalServerProfileCPUCoreCountRange.from_dict( + bare_metal_server_profile_cpu_core_count_range_model_json + ).__dict__ + bare_metal_server_profile_cpu_core_count_range_model2 = BareMetalServerProfileCPUCoreCountRange( + **bare_metal_server_profile_cpu_core_count_range_model_dict + ) # Verify the model instances are equivalent - assert bare_metal_server_profile_cpu_core_count_range_model == bare_metal_server_profile_cpu_core_count_range_model2 + assert ( + bare_metal_server_profile_cpu_core_count_range_model + == bare_metal_server_profile_cpu_core_count_range_model2 + ) # Convert model instance back to dict and verify no loss of data - bare_metal_server_profile_cpu_core_count_range_model_json2 = bare_metal_server_profile_cpu_core_count_range_model.to_dict() - assert bare_metal_server_profile_cpu_core_count_range_model_json2 == bare_metal_server_profile_cpu_core_count_range_model_json + bare_metal_server_profile_cpu_core_count_range_model_json2 = ( + bare_metal_server_profile_cpu_core_count_range_model.to_dict() + ) + assert ( + bare_metal_server_profile_cpu_core_count_range_model_json2 + == bare_metal_server_profile_cpu_core_count_range_model_json + ) class TestModel_BareMetalServerProfileCPUSocketCountDependent: @@ -80996,19 +87055,37 @@ def test_bare_metal_server_profile_cpu_socket_count_dependent_serialization(self bare_metal_server_profile_cpu_socket_count_dependent_model_json['type'] = 'dependent' # Construct a model instance of BareMetalServerProfileCPUSocketCountDependent by calling from_dict on the json representation - bare_metal_server_profile_cpu_socket_count_dependent_model = BareMetalServerProfileCPUSocketCountDependent.from_dict(bare_metal_server_profile_cpu_socket_count_dependent_model_json) + bare_metal_server_profile_cpu_socket_count_dependent_model = ( + BareMetalServerProfileCPUSocketCountDependent.from_dict( + bare_metal_server_profile_cpu_socket_count_dependent_model_json + ) + ) assert bare_metal_server_profile_cpu_socket_count_dependent_model != False # Construct a model instance of BareMetalServerProfileCPUSocketCountDependent by calling from_dict on the json representation - bare_metal_server_profile_cpu_socket_count_dependent_model_dict = BareMetalServerProfileCPUSocketCountDependent.from_dict(bare_metal_server_profile_cpu_socket_count_dependent_model_json).__dict__ - bare_metal_server_profile_cpu_socket_count_dependent_model2 = BareMetalServerProfileCPUSocketCountDependent(**bare_metal_server_profile_cpu_socket_count_dependent_model_dict) + bare_metal_server_profile_cpu_socket_count_dependent_model_dict = ( + BareMetalServerProfileCPUSocketCountDependent.from_dict( + bare_metal_server_profile_cpu_socket_count_dependent_model_json + ).__dict__ + ) + bare_metal_server_profile_cpu_socket_count_dependent_model2 = BareMetalServerProfileCPUSocketCountDependent( + **bare_metal_server_profile_cpu_socket_count_dependent_model_dict + ) # Verify the model instances are equivalent - assert bare_metal_server_profile_cpu_socket_count_dependent_model == bare_metal_server_profile_cpu_socket_count_dependent_model2 + assert ( + bare_metal_server_profile_cpu_socket_count_dependent_model + == bare_metal_server_profile_cpu_socket_count_dependent_model2 + ) # Convert model instance back to dict and verify no loss of data - bare_metal_server_profile_cpu_socket_count_dependent_model_json2 = bare_metal_server_profile_cpu_socket_count_dependent_model.to_dict() - assert bare_metal_server_profile_cpu_socket_count_dependent_model_json2 == bare_metal_server_profile_cpu_socket_count_dependent_model_json + bare_metal_server_profile_cpu_socket_count_dependent_model_json2 = ( + bare_metal_server_profile_cpu_socket_count_dependent_model.to_dict() + ) + assert ( + bare_metal_server_profile_cpu_socket_count_dependent_model_json2 + == bare_metal_server_profile_cpu_socket_count_dependent_model_json + ) class TestModel_BareMetalServerProfileCPUSocketCountEnum: @@ -81028,19 +87105,33 @@ def test_bare_metal_server_profile_cpu_socket_count_enum_serialization(self): bare_metal_server_profile_cpu_socket_count_enum_model_json['values'] = [1, 2, 3, 4] # Construct a model instance of BareMetalServerProfileCPUSocketCountEnum by calling from_dict on the json representation - bare_metal_server_profile_cpu_socket_count_enum_model = BareMetalServerProfileCPUSocketCountEnum.from_dict(bare_metal_server_profile_cpu_socket_count_enum_model_json) + bare_metal_server_profile_cpu_socket_count_enum_model = BareMetalServerProfileCPUSocketCountEnum.from_dict( + bare_metal_server_profile_cpu_socket_count_enum_model_json + ) assert bare_metal_server_profile_cpu_socket_count_enum_model != False # Construct a model instance of BareMetalServerProfileCPUSocketCountEnum by calling from_dict on the json representation - bare_metal_server_profile_cpu_socket_count_enum_model_dict = BareMetalServerProfileCPUSocketCountEnum.from_dict(bare_metal_server_profile_cpu_socket_count_enum_model_json).__dict__ - bare_metal_server_profile_cpu_socket_count_enum_model2 = BareMetalServerProfileCPUSocketCountEnum(**bare_metal_server_profile_cpu_socket_count_enum_model_dict) + bare_metal_server_profile_cpu_socket_count_enum_model_dict = BareMetalServerProfileCPUSocketCountEnum.from_dict( + bare_metal_server_profile_cpu_socket_count_enum_model_json + ).__dict__ + bare_metal_server_profile_cpu_socket_count_enum_model2 = BareMetalServerProfileCPUSocketCountEnum( + **bare_metal_server_profile_cpu_socket_count_enum_model_dict + ) # Verify the model instances are equivalent - assert bare_metal_server_profile_cpu_socket_count_enum_model == bare_metal_server_profile_cpu_socket_count_enum_model2 + assert ( + bare_metal_server_profile_cpu_socket_count_enum_model + == bare_metal_server_profile_cpu_socket_count_enum_model2 + ) # Convert model instance back to dict and verify no loss of data - bare_metal_server_profile_cpu_socket_count_enum_model_json2 = bare_metal_server_profile_cpu_socket_count_enum_model.to_dict() - assert bare_metal_server_profile_cpu_socket_count_enum_model_json2 == bare_metal_server_profile_cpu_socket_count_enum_model_json + bare_metal_server_profile_cpu_socket_count_enum_model_json2 = ( + bare_metal_server_profile_cpu_socket_count_enum_model.to_dict() + ) + assert ( + bare_metal_server_profile_cpu_socket_count_enum_model_json2 + == bare_metal_server_profile_cpu_socket_count_enum_model_json + ) class TestModel_BareMetalServerProfileCPUSocketCountFixed: @@ -81059,19 +87150,35 @@ def test_bare_metal_server_profile_cpu_socket_count_fixed_serialization(self): bare_metal_server_profile_cpu_socket_count_fixed_model_json['value'] = 4 # Construct a model instance of BareMetalServerProfileCPUSocketCountFixed by calling from_dict on the json representation - bare_metal_server_profile_cpu_socket_count_fixed_model = BareMetalServerProfileCPUSocketCountFixed.from_dict(bare_metal_server_profile_cpu_socket_count_fixed_model_json) + bare_metal_server_profile_cpu_socket_count_fixed_model = BareMetalServerProfileCPUSocketCountFixed.from_dict( + bare_metal_server_profile_cpu_socket_count_fixed_model_json + ) assert bare_metal_server_profile_cpu_socket_count_fixed_model != False # Construct a model instance of BareMetalServerProfileCPUSocketCountFixed by calling from_dict on the json representation - bare_metal_server_profile_cpu_socket_count_fixed_model_dict = BareMetalServerProfileCPUSocketCountFixed.from_dict(bare_metal_server_profile_cpu_socket_count_fixed_model_json).__dict__ - bare_metal_server_profile_cpu_socket_count_fixed_model2 = BareMetalServerProfileCPUSocketCountFixed(**bare_metal_server_profile_cpu_socket_count_fixed_model_dict) + bare_metal_server_profile_cpu_socket_count_fixed_model_dict = ( + BareMetalServerProfileCPUSocketCountFixed.from_dict( + bare_metal_server_profile_cpu_socket_count_fixed_model_json + ).__dict__ + ) + bare_metal_server_profile_cpu_socket_count_fixed_model2 = BareMetalServerProfileCPUSocketCountFixed( + **bare_metal_server_profile_cpu_socket_count_fixed_model_dict + ) # Verify the model instances are equivalent - assert bare_metal_server_profile_cpu_socket_count_fixed_model == bare_metal_server_profile_cpu_socket_count_fixed_model2 + assert ( + bare_metal_server_profile_cpu_socket_count_fixed_model + == bare_metal_server_profile_cpu_socket_count_fixed_model2 + ) # Convert model instance back to dict and verify no loss of data - bare_metal_server_profile_cpu_socket_count_fixed_model_json2 = bare_metal_server_profile_cpu_socket_count_fixed_model.to_dict() - assert bare_metal_server_profile_cpu_socket_count_fixed_model_json2 == bare_metal_server_profile_cpu_socket_count_fixed_model_json + bare_metal_server_profile_cpu_socket_count_fixed_model_json2 = ( + bare_metal_server_profile_cpu_socket_count_fixed_model.to_dict() + ) + assert ( + bare_metal_server_profile_cpu_socket_count_fixed_model_json2 + == bare_metal_server_profile_cpu_socket_count_fixed_model_json + ) class TestModel_BareMetalServerProfileCPUSocketCountRange: @@ -81093,19 +87200,35 @@ def test_bare_metal_server_profile_cpu_socket_count_range_serialization(self): bare_metal_server_profile_cpu_socket_count_range_model_json['type'] = 'range' # Construct a model instance of BareMetalServerProfileCPUSocketCountRange by calling from_dict on the json representation - bare_metal_server_profile_cpu_socket_count_range_model = BareMetalServerProfileCPUSocketCountRange.from_dict(bare_metal_server_profile_cpu_socket_count_range_model_json) + bare_metal_server_profile_cpu_socket_count_range_model = BareMetalServerProfileCPUSocketCountRange.from_dict( + bare_metal_server_profile_cpu_socket_count_range_model_json + ) assert bare_metal_server_profile_cpu_socket_count_range_model != False # Construct a model instance of BareMetalServerProfileCPUSocketCountRange by calling from_dict on the json representation - bare_metal_server_profile_cpu_socket_count_range_model_dict = BareMetalServerProfileCPUSocketCountRange.from_dict(bare_metal_server_profile_cpu_socket_count_range_model_json).__dict__ - bare_metal_server_profile_cpu_socket_count_range_model2 = BareMetalServerProfileCPUSocketCountRange(**bare_metal_server_profile_cpu_socket_count_range_model_dict) + bare_metal_server_profile_cpu_socket_count_range_model_dict = ( + BareMetalServerProfileCPUSocketCountRange.from_dict( + bare_metal_server_profile_cpu_socket_count_range_model_json + ).__dict__ + ) + bare_metal_server_profile_cpu_socket_count_range_model2 = BareMetalServerProfileCPUSocketCountRange( + **bare_metal_server_profile_cpu_socket_count_range_model_dict + ) # Verify the model instances are equivalent - assert bare_metal_server_profile_cpu_socket_count_range_model == bare_metal_server_profile_cpu_socket_count_range_model2 + assert ( + bare_metal_server_profile_cpu_socket_count_range_model + == bare_metal_server_profile_cpu_socket_count_range_model2 + ) # Convert model instance back to dict and verify no loss of data - bare_metal_server_profile_cpu_socket_count_range_model_json2 = bare_metal_server_profile_cpu_socket_count_range_model.to_dict() - assert bare_metal_server_profile_cpu_socket_count_range_model_json2 == bare_metal_server_profile_cpu_socket_count_range_model_json + bare_metal_server_profile_cpu_socket_count_range_model_json2 = ( + bare_metal_server_profile_cpu_socket_count_range_model.to_dict() + ) + assert ( + bare_metal_server_profile_cpu_socket_count_range_model_json2 + == bare_metal_server_profile_cpu_socket_count_range_model_json + ) class TestModel_BareMetalServerProfileDiskQuantityDependent: @@ -81123,19 +87246,35 @@ def test_bare_metal_server_profile_disk_quantity_dependent_serialization(self): bare_metal_server_profile_disk_quantity_dependent_model_json['type'] = 'dependent' # Construct a model instance of BareMetalServerProfileDiskQuantityDependent by calling from_dict on the json representation - bare_metal_server_profile_disk_quantity_dependent_model = BareMetalServerProfileDiskQuantityDependent.from_dict(bare_metal_server_profile_disk_quantity_dependent_model_json) + bare_metal_server_profile_disk_quantity_dependent_model = BareMetalServerProfileDiskQuantityDependent.from_dict( + bare_metal_server_profile_disk_quantity_dependent_model_json + ) assert bare_metal_server_profile_disk_quantity_dependent_model != False # Construct a model instance of BareMetalServerProfileDiskQuantityDependent by calling from_dict on the json representation - bare_metal_server_profile_disk_quantity_dependent_model_dict = BareMetalServerProfileDiskQuantityDependent.from_dict(bare_metal_server_profile_disk_quantity_dependent_model_json).__dict__ - bare_metal_server_profile_disk_quantity_dependent_model2 = BareMetalServerProfileDiskQuantityDependent(**bare_metal_server_profile_disk_quantity_dependent_model_dict) + bare_metal_server_profile_disk_quantity_dependent_model_dict = ( + BareMetalServerProfileDiskQuantityDependent.from_dict( + bare_metal_server_profile_disk_quantity_dependent_model_json + ).__dict__ + ) + bare_metal_server_profile_disk_quantity_dependent_model2 = BareMetalServerProfileDiskQuantityDependent( + **bare_metal_server_profile_disk_quantity_dependent_model_dict + ) # Verify the model instances are equivalent - assert bare_metal_server_profile_disk_quantity_dependent_model == bare_metal_server_profile_disk_quantity_dependent_model2 + assert ( + bare_metal_server_profile_disk_quantity_dependent_model + == bare_metal_server_profile_disk_quantity_dependent_model2 + ) # Convert model instance back to dict and verify no loss of data - bare_metal_server_profile_disk_quantity_dependent_model_json2 = bare_metal_server_profile_disk_quantity_dependent_model.to_dict() - assert bare_metal_server_profile_disk_quantity_dependent_model_json2 == bare_metal_server_profile_disk_quantity_dependent_model_json + bare_metal_server_profile_disk_quantity_dependent_model_json2 = ( + bare_metal_server_profile_disk_quantity_dependent_model.to_dict() + ) + assert ( + bare_metal_server_profile_disk_quantity_dependent_model_json2 + == bare_metal_server_profile_disk_quantity_dependent_model_json + ) class TestModel_BareMetalServerProfileDiskQuantityEnum: @@ -81155,19 +87294,30 @@ def test_bare_metal_server_profile_disk_quantity_enum_serialization(self): bare_metal_server_profile_disk_quantity_enum_model_json['values'] = [1, 2, 4, 8] # Construct a model instance of BareMetalServerProfileDiskQuantityEnum by calling from_dict on the json representation - bare_metal_server_profile_disk_quantity_enum_model = BareMetalServerProfileDiskQuantityEnum.from_dict(bare_metal_server_profile_disk_quantity_enum_model_json) + bare_metal_server_profile_disk_quantity_enum_model = BareMetalServerProfileDiskQuantityEnum.from_dict( + bare_metal_server_profile_disk_quantity_enum_model_json + ) assert bare_metal_server_profile_disk_quantity_enum_model != False # Construct a model instance of BareMetalServerProfileDiskQuantityEnum by calling from_dict on the json representation - bare_metal_server_profile_disk_quantity_enum_model_dict = BareMetalServerProfileDiskQuantityEnum.from_dict(bare_metal_server_profile_disk_quantity_enum_model_json).__dict__ - bare_metal_server_profile_disk_quantity_enum_model2 = BareMetalServerProfileDiskQuantityEnum(**bare_metal_server_profile_disk_quantity_enum_model_dict) + bare_metal_server_profile_disk_quantity_enum_model_dict = BareMetalServerProfileDiskQuantityEnum.from_dict( + bare_metal_server_profile_disk_quantity_enum_model_json + ).__dict__ + bare_metal_server_profile_disk_quantity_enum_model2 = BareMetalServerProfileDiskQuantityEnum( + **bare_metal_server_profile_disk_quantity_enum_model_dict + ) # Verify the model instances are equivalent assert bare_metal_server_profile_disk_quantity_enum_model == bare_metal_server_profile_disk_quantity_enum_model2 # Convert model instance back to dict and verify no loss of data - bare_metal_server_profile_disk_quantity_enum_model_json2 = bare_metal_server_profile_disk_quantity_enum_model.to_dict() - assert bare_metal_server_profile_disk_quantity_enum_model_json2 == bare_metal_server_profile_disk_quantity_enum_model_json + bare_metal_server_profile_disk_quantity_enum_model_json2 = ( + bare_metal_server_profile_disk_quantity_enum_model.to_dict() + ) + assert ( + bare_metal_server_profile_disk_quantity_enum_model_json2 + == bare_metal_server_profile_disk_quantity_enum_model_json + ) class TestModel_BareMetalServerProfileDiskQuantityFixed: @@ -81186,19 +87336,32 @@ def test_bare_metal_server_profile_disk_quantity_fixed_serialization(self): bare_metal_server_profile_disk_quantity_fixed_model_json['value'] = 4 # Construct a model instance of BareMetalServerProfileDiskQuantityFixed by calling from_dict on the json representation - bare_metal_server_profile_disk_quantity_fixed_model = BareMetalServerProfileDiskQuantityFixed.from_dict(bare_metal_server_profile_disk_quantity_fixed_model_json) + bare_metal_server_profile_disk_quantity_fixed_model = BareMetalServerProfileDiskQuantityFixed.from_dict( + bare_metal_server_profile_disk_quantity_fixed_model_json + ) assert bare_metal_server_profile_disk_quantity_fixed_model != False # Construct a model instance of BareMetalServerProfileDiskQuantityFixed by calling from_dict on the json representation - bare_metal_server_profile_disk_quantity_fixed_model_dict = BareMetalServerProfileDiskQuantityFixed.from_dict(bare_metal_server_profile_disk_quantity_fixed_model_json).__dict__ - bare_metal_server_profile_disk_quantity_fixed_model2 = BareMetalServerProfileDiskQuantityFixed(**bare_metal_server_profile_disk_quantity_fixed_model_dict) + bare_metal_server_profile_disk_quantity_fixed_model_dict = BareMetalServerProfileDiskQuantityFixed.from_dict( + bare_metal_server_profile_disk_quantity_fixed_model_json + ).__dict__ + bare_metal_server_profile_disk_quantity_fixed_model2 = BareMetalServerProfileDiskQuantityFixed( + **bare_metal_server_profile_disk_quantity_fixed_model_dict + ) # Verify the model instances are equivalent - assert bare_metal_server_profile_disk_quantity_fixed_model == bare_metal_server_profile_disk_quantity_fixed_model2 + assert ( + bare_metal_server_profile_disk_quantity_fixed_model == bare_metal_server_profile_disk_quantity_fixed_model2 + ) # Convert model instance back to dict and verify no loss of data - bare_metal_server_profile_disk_quantity_fixed_model_json2 = bare_metal_server_profile_disk_quantity_fixed_model.to_dict() - assert bare_metal_server_profile_disk_quantity_fixed_model_json2 == bare_metal_server_profile_disk_quantity_fixed_model_json + bare_metal_server_profile_disk_quantity_fixed_model_json2 = ( + bare_metal_server_profile_disk_quantity_fixed_model.to_dict() + ) + assert ( + bare_metal_server_profile_disk_quantity_fixed_model_json2 + == bare_metal_server_profile_disk_quantity_fixed_model_json + ) class TestModel_BareMetalServerProfileDiskQuantityRange: @@ -81220,19 +87383,32 @@ def test_bare_metal_server_profile_disk_quantity_range_serialization(self): bare_metal_server_profile_disk_quantity_range_model_json['type'] = 'range' # Construct a model instance of BareMetalServerProfileDiskQuantityRange by calling from_dict on the json representation - bare_metal_server_profile_disk_quantity_range_model = BareMetalServerProfileDiskQuantityRange.from_dict(bare_metal_server_profile_disk_quantity_range_model_json) + bare_metal_server_profile_disk_quantity_range_model = BareMetalServerProfileDiskQuantityRange.from_dict( + bare_metal_server_profile_disk_quantity_range_model_json + ) assert bare_metal_server_profile_disk_quantity_range_model != False # Construct a model instance of BareMetalServerProfileDiskQuantityRange by calling from_dict on the json representation - bare_metal_server_profile_disk_quantity_range_model_dict = BareMetalServerProfileDiskQuantityRange.from_dict(bare_metal_server_profile_disk_quantity_range_model_json).__dict__ - bare_metal_server_profile_disk_quantity_range_model2 = BareMetalServerProfileDiskQuantityRange(**bare_metal_server_profile_disk_quantity_range_model_dict) + bare_metal_server_profile_disk_quantity_range_model_dict = BareMetalServerProfileDiskQuantityRange.from_dict( + bare_metal_server_profile_disk_quantity_range_model_json + ).__dict__ + bare_metal_server_profile_disk_quantity_range_model2 = BareMetalServerProfileDiskQuantityRange( + **bare_metal_server_profile_disk_quantity_range_model_dict + ) # Verify the model instances are equivalent - assert bare_metal_server_profile_disk_quantity_range_model == bare_metal_server_profile_disk_quantity_range_model2 + assert ( + bare_metal_server_profile_disk_quantity_range_model == bare_metal_server_profile_disk_quantity_range_model2 + ) # Convert model instance back to dict and verify no loss of data - bare_metal_server_profile_disk_quantity_range_model_json2 = bare_metal_server_profile_disk_quantity_range_model.to_dict() - assert bare_metal_server_profile_disk_quantity_range_model_json2 == bare_metal_server_profile_disk_quantity_range_model_json + bare_metal_server_profile_disk_quantity_range_model_json2 = ( + bare_metal_server_profile_disk_quantity_range_model.to_dict() + ) + assert ( + bare_metal_server_profile_disk_quantity_range_model_json2 + == bare_metal_server_profile_disk_quantity_range_model_json + ) class TestModel_BareMetalServerProfileDiskSizeDependent: @@ -81250,19 +87426,32 @@ def test_bare_metal_server_profile_disk_size_dependent_serialization(self): bare_metal_server_profile_disk_size_dependent_model_json['type'] = 'dependent' # Construct a model instance of BareMetalServerProfileDiskSizeDependent by calling from_dict on the json representation - bare_metal_server_profile_disk_size_dependent_model = BareMetalServerProfileDiskSizeDependent.from_dict(bare_metal_server_profile_disk_size_dependent_model_json) + bare_metal_server_profile_disk_size_dependent_model = BareMetalServerProfileDiskSizeDependent.from_dict( + bare_metal_server_profile_disk_size_dependent_model_json + ) assert bare_metal_server_profile_disk_size_dependent_model != False # Construct a model instance of BareMetalServerProfileDiskSizeDependent by calling from_dict on the json representation - bare_metal_server_profile_disk_size_dependent_model_dict = BareMetalServerProfileDiskSizeDependent.from_dict(bare_metal_server_profile_disk_size_dependent_model_json).__dict__ - bare_metal_server_profile_disk_size_dependent_model2 = BareMetalServerProfileDiskSizeDependent(**bare_metal_server_profile_disk_size_dependent_model_dict) + bare_metal_server_profile_disk_size_dependent_model_dict = BareMetalServerProfileDiskSizeDependent.from_dict( + bare_metal_server_profile_disk_size_dependent_model_json + ).__dict__ + bare_metal_server_profile_disk_size_dependent_model2 = BareMetalServerProfileDiskSizeDependent( + **bare_metal_server_profile_disk_size_dependent_model_dict + ) # Verify the model instances are equivalent - assert bare_metal_server_profile_disk_size_dependent_model == bare_metal_server_profile_disk_size_dependent_model2 + assert ( + bare_metal_server_profile_disk_size_dependent_model == bare_metal_server_profile_disk_size_dependent_model2 + ) # Convert model instance back to dict and verify no loss of data - bare_metal_server_profile_disk_size_dependent_model_json2 = bare_metal_server_profile_disk_size_dependent_model.to_dict() - assert bare_metal_server_profile_disk_size_dependent_model_json2 == bare_metal_server_profile_disk_size_dependent_model_json + bare_metal_server_profile_disk_size_dependent_model_json2 = ( + bare_metal_server_profile_disk_size_dependent_model.to_dict() + ) + assert ( + bare_metal_server_profile_disk_size_dependent_model_json2 + == bare_metal_server_profile_disk_size_dependent_model_json + ) class TestModel_BareMetalServerProfileDiskSizeEnum: @@ -81282,19 +87471,27 @@ def test_bare_metal_server_profile_disk_size_enum_serialization(self): bare_metal_server_profile_disk_size_enum_model_json['values'] = [1, 2, 4, 8] # Construct a model instance of BareMetalServerProfileDiskSizeEnum by calling from_dict on the json representation - bare_metal_server_profile_disk_size_enum_model = BareMetalServerProfileDiskSizeEnum.from_dict(bare_metal_server_profile_disk_size_enum_model_json) + bare_metal_server_profile_disk_size_enum_model = BareMetalServerProfileDiskSizeEnum.from_dict( + bare_metal_server_profile_disk_size_enum_model_json + ) assert bare_metal_server_profile_disk_size_enum_model != False # Construct a model instance of BareMetalServerProfileDiskSizeEnum by calling from_dict on the json representation - bare_metal_server_profile_disk_size_enum_model_dict = BareMetalServerProfileDiskSizeEnum.from_dict(bare_metal_server_profile_disk_size_enum_model_json).__dict__ - bare_metal_server_profile_disk_size_enum_model2 = BareMetalServerProfileDiskSizeEnum(**bare_metal_server_profile_disk_size_enum_model_dict) + bare_metal_server_profile_disk_size_enum_model_dict = BareMetalServerProfileDiskSizeEnum.from_dict( + bare_metal_server_profile_disk_size_enum_model_json + ).__dict__ + bare_metal_server_profile_disk_size_enum_model2 = BareMetalServerProfileDiskSizeEnum( + **bare_metal_server_profile_disk_size_enum_model_dict + ) # Verify the model instances are equivalent assert bare_metal_server_profile_disk_size_enum_model == bare_metal_server_profile_disk_size_enum_model2 # Convert model instance back to dict and verify no loss of data bare_metal_server_profile_disk_size_enum_model_json2 = bare_metal_server_profile_disk_size_enum_model.to_dict() - assert bare_metal_server_profile_disk_size_enum_model_json2 == bare_metal_server_profile_disk_size_enum_model_json + assert ( + bare_metal_server_profile_disk_size_enum_model_json2 == bare_metal_server_profile_disk_size_enum_model_json + ) class TestModel_BareMetalServerProfileDiskSizeFixed: @@ -81313,19 +87510,30 @@ def test_bare_metal_server_profile_disk_size_fixed_serialization(self): bare_metal_server_profile_disk_size_fixed_model_json['value'] = 100 # Construct a model instance of BareMetalServerProfileDiskSizeFixed by calling from_dict on the json representation - bare_metal_server_profile_disk_size_fixed_model = BareMetalServerProfileDiskSizeFixed.from_dict(bare_metal_server_profile_disk_size_fixed_model_json) + bare_metal_server_profile_disk_size_fixed_model = BareMetalServerProfileDiskSizeFixed.from_dict( + bare_metal_server_profile_disk_size_fixed_model_json + ) assert bare_metal_server_profile_disk_size_fixed_model != False # Construct a model instance of BareMetalServerProfileDiskSizeFixed by calling from_dict on the json representation - bare_metal_server_profile_disk_size_fixed_model_dict = BareMetalServerProfileDiskSizeFixed.from_dict(bare_metal_server_profile_disk_size_fixed_model_json).__dict__ - bare_metal_server_profile_disk_size_fixed_model2 = BareMetalServerProfileDiskSizeFixed(**bare_metal_server_profile_disk_size_fixed_model_dict) + bare_metal_server_profile_disk_size_fixed_model_dict = BareMetalServerProfileDiskSizeFixed.from_dict( + bare_metal_server_profile_disk_size_fixed_model_json + ).__dict__ + bare_metal_server_profile_disk_size_fixed_model2 = BareMetalServerProfileDiskSizeFixed( + **bare_metal_server_profile_disk_size_fixed_model_dict + ) # Verify the model instances are equivalent assert bare_metal_server_profile_disk_size_fixed_model == bare_metal_server_profile_disk_size_fixed_model2 # Convert model instance back to dict and verify no loss of data - bare_metal_server_profile_disk_size_fixed_model_json2 = bare_metal_server_profile_disk_size_fixed_model.to_dict() - assert bare_metal_server_profile_disk_size_fixed_model_json2 == bare_metal_server_profile_disk_size_fixed_model_json + bare_metal_server_profile_disk_size_fixed_model_json2 = ( + bare_metal_server_profile_disk_size_fixed_model.to_dict() + ) + assert ( + bare_metal_server_profile_disk_size_fixed_model_json2 + == bare_metal_server_profile_disk_size_fixed_model_json + ) class TestModel_BareMetalServerProfileDiskSizeRange: @@ -81347,19 +87555,30 @@ def test_bare_metal_server_profile_disk_size_range_serialization(self): bare_metal_server_profile_disk_size_range_model_json['type'] = 'range' # Construct a model instance of BareMetalServerProfileDiskSizeRange by calling from_dict on the json representation - bare_metal_server_profile_disk_size_range_model = BareMetalServerProfileDiskSizeRange.from_dict(bare_metal_server_profile_disk_size_range_model_json) + bare_metal_server_profile_disk_size_range_model = BareMetalServerProfileDiskSizeRange.from_dict( + bare_metal_server_profile_disk_size_range_model_json + ) assert bare_metal_server_profile_disk_size_range_model != False # Construct a model instance of BareMetalServerProfileDiskSizeRange by calling from_dict on the json representation - bare_metal_server_profile_disk_size_range_model_dict = BareMetalServerProfileDiskSizeRange.from_dict(bare_metal_server_profile_disk_size_range_model_json).__dict__ - bare_metal_server_profile_disk_size_range_model2 = BareMetalServerProfileDiskSizeRange(**bare_metal_server_profile_disk_size_range_model_dict) + bare_metal_server_profile_disk_size_range_model_dict = BareMetalServerProfileDiskSizeRange.from_dict( + bare_metal_server_profile_disk_size_range_model_json + ).__dict__ + bare_metal_server_profile_disk_size_range_model2 = BareMetalServerProfileDiskSizeRange( + **bare_metal_server_profile_disk_size_range_model_dict + ) # Verify the model instances are equivalent assert bare_metal_server_profile_disk_size_range_model == bare_metal_server_profile_disk_size_range_model2 # Convert model instance back to dict and verify no loss of data - bare_metal_server_profile_disk_size_range_model_json2 = bare_metal_server_profile_disk_size_range_model.to_dict() - assert bare_metal_server_profile_disk_size_range_model_json2 == bare_metal_server_profile_disk_size_range_model_json + bare_metal_server_profile_disk_size_range_model_json2 = ( + bare_metal_server_profile_disk_size_range_model.to_dict() + ) + assert ( + bare_metal_server_profile_disk_size_range_model_json2 + == bare_metal_server_profile_disk_size_range_model_json + ) class TestModel_BareMetalServerProfileIdentityByHref: @@ -81374,22 +87593,35 @@ def test_bare_metal_server_profile_identity_by_href_serialization(self): # Construct a json representation of a BareMetalServerProfileIdentityByHref model bare_metal_server_profile_identity_by_href_model_json = {} - bare_metal_server_profile_identity_by_href_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/bare_metal_servers/profiles/bx2-metal-192x768' + bare_metal_server_profile_identity_by_href_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/bare_metal_servers/profiles/bx2-metal-192x768' + ) # Construct a model instance of BareMetalServerProfileIdentityByHref by calling from_dict on the json representation - bare_metal_server_profile_identity_by_href_model = BareMetalServerProfileIdentityByHref.from_dict(bare_metal_server_profile_identity_by_href_model_json) + bare_metal_server_profile_identity_by_href_model = BareMetalServerProfileIdentityByHref.from_dict( + bare_metal_server_profile_identity_by_href_model_json + ) assert bare_metal_server_profile_identity_by_href_model != False # Construct a model instance of BareMetalServerProfileIdentityByHref by calling from_dict on the json representation - bare_metal_server_profile_identity_by_href_model_dict = BareMetalServerProfileIdentityByHref.from_dict(bare_metal_server_profile_identity_by_href_model_json).__dict__ - bare_metal_server_profile_identity_by_href_model2 = BareMetalServerProfileIdentityByHref(**bare_metal_server_profile_identity_by_href_model_dict) + bare_metal_server_profile_identity_by_href_model_dict = BareMetalServerProfileIdentityByHref.from_dict( + bare_metal_server_profile_identity_by_href_model_json + ).__dict__ + bare_metal_server_profile_identity_by_href_model2 = BareMetalServerProfileIdentityByHref( + **bare_metal_server_profile_identity_by_href_model_dict + ) # Verify the model instances are equivalent assert bare_metal_server_profile_identity_by_href_model == bare_metal_server_profile_identity_by_href_model2 # Convert model instance back to dict and verify no loss of data - bare_metal_server_profile_identity_by_href_model_json2 = bare_metal_server_profile_identity_by_href_model.to_dict() - assert bare_metal_server_profile_identity_by_href_model_json2 == bare_metal_server_profile_identity_by_href_model_json + bare_metal_server_profile_identity_by_href_model_json2 = ( + bare_metal_server_profile_identity_by_href_model.to_dict() + ) + assert ( + bare_metal_server_profile_identity_by_href_model_json2 + == bare_metal_server_profile_identity_by_href_model_json + ) class TestModel_BareMetalServerProfileIdentityByName: @@ -81407,19 +87639,30 @@ def test_bare_metal_server_profile_identity_by_name_serialization(self): bare_metal_server_profile_identity_by_name_model_json['name'] = 'bx2-metal-192x768' # Construct a model instance of BareMetalServerProfileIdentityByName by calling from_dict on the json representation - bare_metal_server_profile_identity_by_name_model = BareMetalServerProfileIdentityByName.from_dict(bare_metal_server_profile_identity_by_name_model_json) + bare_metal_server_profile_identity_by_name_model = BareMetalServerProfileIdentityByName.from_dict( + bare_metal_server_profile_identity_by_name_model_json + ) assert bare_metal_server_profile_identity_by_name_model != False # Construct a model instance of BareMetalServerProfileIdentityByName by calling from_dict on the json representation - bare_metal_server_profile_identity_by_name_model_dict = BareMetalServerProfileIdentityByName.from_dict(bare_metal_server_profile_identity_by_name_model_json).__dict__ - bare_metal_server_profile_identity_by_name_model2 = BareMetalServerProfileIdentityByName(**bare_metal_server_profile_identity_by_name_model_dict) + bare_metal_server_profile_identity_by_name_model_dict = BareMetalServerProfileIdentityByName.from_dict( + bare_metal_server_profile_identity_by_name_model_json + ).__dict__ + bare_metal_server_profile_identity_by_name_model2 = BareMetalServerProfileIdentityByName( + **bare_metal_server_profile_identity_by_name_model_dict + ) # Verify the model instances are equivalent assert bare_metal_server_profile_identity_by_name_model == bare_metal_server_profile_identity_by_name_model2 # Convert model instance back to dict and verify no loss of data - bare_metal_server_profile_identity_by_name_model_json2 = bare_metal_server_profile_identity_by_name_model.to_dict() - assert bare_metal_server_profile_identity_by_name_model_json2 == bare_metal_server_profile_identity_by_name_model_json + bare_metal_server_profile_identity_by_name_model_json2 = ( + bare_metal_server_profile_identity_by_name_model.to_dict() + ) + assert ( + bare_metal_server_profile_identity_by_name_model_json2 + == bare_metal_server_profile_identity_by_name_model_json + ) class TestModel_BareMetalServerProfileMemoryDependent: @@ -81437,19 +87680,30 @@ def test_bare_metal_server_profile_memory_dependent_serialization(self): bare_metal_server_profile_memory_dependent_model_json['type'] = 'dependent' # Construct a model instance of BareMetalServerProfileMemoryDependent by calling from_dict on the json representation - bare_metal_server_profile_memory_dependent_model = BareMetalServerProfileMemoryDependent.from_dict(bare_metal_server_profile_memory_dependent_model_json) + bare_metal_server_profile_memory_dependent_model = BareMetalServerProfileMemoryDependent.from_dict( + bare_metal_server_profile_memory_dependent_model_json + ) assert bare_metal_server_profile_memory_dependent_model != False # Construct a model instance of BareMetalServerProfileMemoryDependent by calling from_dict on the json representation - bare_metal_server_profile_memory_dependent_model_dict = BareMetalServerProfileMemoryDependent.from_dict(bare_metal_server_profile_memory_dependent_model_json).__dict__ - bare_metal_server_profile_memory_dependent_model2 = BareMetalServerProfileMemoryDependent(**bare_metal_server_profile_memory_dependent_model_dict) + bare_metal_server_profile_memory_dependent_model_dict = BareMetalServerProfileMemoryDependent.from_dict( + bare_metal_server_profile_memory_dependent_model_json + ).__dict__ + bare_metal_server_profile_memory_dependent_model2 = BareMetalServerProfileMemoryDependent( + **bare_metal_server_profile_memory_dependent_model_dict + ) # Verify the model instances are equivalent assert bare_metal_server_profile_memory_dependent_model == bare_metal_server_profile_memory_dependent_model2 # Convert model instance back to dict and verify no loss of data - bare_metal_server_profile_memory_dependent_model_json2 = bare_metal_server_profile_memory_dependent_model.to_dict() - assert bare_metal_server_profile_memory_dependent_model_json2 == bare_metal_server_profile_memory_dependent_model_json + bare_metal_server_profile_memory_dependent_model_json2 = ( + bare_metal_server_profile_memory_dependent_model.to_dict() + ) + assert ( + bare_metal_server_profile_memory_dependent_model_json2 + == bare_metal_server_profile_memory_dependent_model_json + ) class TestModel_BareMetalServerProfileMemoryEnum: @@ -81469,12 +87723,18 @@ def test_bare_metal_server_profile_memory_enum_serialization(self): bare_metal_server_profile_memory_enum_model_json['values'] = [8, 16, 32] # Construct a model instance of BareMetalServerProfileMemoryEnum by calling from_dict on the json representation - bare_metal_server_profile_memory_enum_model = BareMetalServerProfileMemoryEnum.from_dict(bare_metal_server_profile_memory_enum_model_json) + bare_metal_server_profile_memory_enum_model = BareMetalServerProfileMemoryEnum.from_dict( + bare_metal_server_profile_memory_enum_model_json + ) assert bare_metal_server_profile_memory_enum_model != False # Construct a model instance of BareMetalServerProfileMemoryEnum by calling from_dict on the json representation - bare_metal_server_profile_memory_enum_model_dict = BareMetalServerProfileMemoryEnum.from_dict(bare_metal_server_profile_memory_enum_model_json).__dict__ - bare_metal_server_profile_memory_enum_model2 = BareMetalServerProfileMemoryEnum(**bare_metal_server_profile_memory_enum_model_dict) + bare_metal_server_profile_memory_enum_model_dict = BareMetalServerProfileMemoryEnum.from_dict( + bare_metal_server_profile_memory_enum_model_json + ).__dict__ + bare_metal_server_profile_memory_enum_model2 = BareMetalServerProfileMemoryEnum( + **bare_metal_server_profile_memory_enum_model_dict + ) # Verify the model instances are equivalent assert bare_metal_server_profile_memory_enum_model == bare_metal_server_profile_memory_enum_model2 @@ -81500,12 +87760,18 @@ def test_bare_metal_server_profile_memory_fixed_serialization(self): bare_metal_server_profile_memory_fixed_model_json['value'] = 16 # Construct a model instance of BareMetalServerProfileMemoryFixed by calling from_dict on the json representation - bare_metal_server_profile_memory_fixed_model = BareMetalServerProfileMemoryFixed.from_dict(bare_metal_server_profile_memory_fixed_model_json) + bare_metal_server_profile_memory_fixed_model = BareMetalServerProfileMemoryFixed.from_dict( + bare_metal_server_profile_memory_fixed_model_json + ) assert bare_metal_server_profile_memory_fixed_model != False # Construct a model instance of BareMetalServerProfileMemoryFixed by calling from_dict on the json representation - bare_metal_server_profile_memory_fixed_model_dict = BareMetalServerProfileMemoryFixed.from_dict(bare_metal_server_profile_memory_fixed_model_json).__dict__ - bare_metal_server_profile_memory_fixed_model2 = BareMetalServerProfileMemoryFixed(**bare_metal_server_profile_memory_fixed_model_dict) + bare_metal_server_profile_memory_fixed_model_dict = BareMetalServerProfileMemoryFixed.from_dict( + bare_metal_server_profile_memory_fixed_model_json + ).__dict__ + bare_metal_server_profile_memory_fixed_model2 = BareMetalServerProfileMemoryFixed( + **bare_metal_server_profile_memory_fixed_model_dict + ) # Verify the model instances are equivalent assert bare_metal_server_profile_memory_fixed_model == bare_metal_server_profile_memory_fixed_model2 @@ -81534,12 +87800,18 @@ def test_bare_metal_server_profile_memory_range_serialization(self): bare_metal_server_profile_memory_range_model_json['type'] = 'range' # Construct a model instance of BareMetalServerProfileMemoryRange by calling from_dict on the json representation - bare_metal_server_profile_memory_range_model = BareMetalServerProfileMemoryRange.from_dict(bare_metal_server_profile_memory_range_model_json) + bare_metal_server_profile_memory_range_model = BareMetalServerProfileMemoryRange.from_dict( + bare_metal_server_profile_memory_range_model_json + ) assert bare_metal_server_profile_memory_range_model != False # Construct a model instance of BareMetalServerProfileMemoryRange by calling from_dict on the json representation - bare_metal_server_profile_memory_range_model_dict = BareMetalServerProfileMemoryRange.from_dict(bare_metal_server_profile_memory_range_model_json).__dict__ - bare_metal_server_profile_memory_range_model2 = BareMetalServerProfileMemoryRange(**bare_metal_server_profile_memory_range_model_dict) + bare_metal_server_profile_memory_range_model_dict = BareMetalServerProfileMemoryRange.from_dict( + bare_metal_server_profile_memory_range_model_json + ).__dict__ + bare_metal_server_profile_memory_range_model2 = BareMetalServerProfileMemoryRange( + **bare_metal_server_profile_memory_range_model_dict + ) # Verify the model instances are equivalent assert bare_metal_server_profile_memory_range_model == bare_metal_server_profile_memory_range_model2 @@ -81564,19 +87836,39 @@ def test_bare_metal_server_profile_network_attachment_count_dependent_serializat bare_metal_server_profile_network_attachment_count_dependent_model_json['type'] = 'dependent' # Construct a model instance of BareMetalServerProfileNetworkAttachmentCountDependent by calling from_dict on the json representation - bare_metal_server_profile_network_attachment_count_dependent_model = BareMetalServerProfileNetworkAttachmentCountDependent.from_dict(bare_metal_server_profile_network_attachment_count_dependent_model_json) + bare_metal_server_profile_network_attachment_count_dependent_model = ( + BareMetalServerProfileNetworkAttachmentCountDependent.from_dict( + bare_metal_server_profile_network_attachment_count_dependent_model_json + ) + ) assert bare_metal_server_profile_network_attachment_count_dependent_model != False # Construct a model instance of BareMetalServerProfileNetworkAttachmentCountDependent by calling from_dict on the json representation - bare_metal_server_profile_network_attachment_count_dependent_model_dict = BareMetalServerProfileNetworkAttachmentCountDependent.from_dict(bare_metal_server_profile_network_attachment_count_dependent_model_json).__dict__ - bare_metal_server_profile_network_attachment_count_dependent_model2 = BareMetalServerProfileNetworkAttachmentCountDependent(**bare_metal_server_profile_network_attachment_count_dependent_model_dict) + bare_metal_server_profile_network_attachment_count_dependent_model_dict = ( + BareMetalServerProfileNetworkAttachmentCountDependent.from_dict( + bare_metal_server_profile_network_attachment_count_dependent_model_json + ).__dict__ + ) + bare_metal_server_profile_network_attachment_count_dependent_model2 = ( + BareMetalServerProfileNetworkAttachmentCountDependent( + **bare_metal_server_profile_network_attachment_count_dependent_model_dict + ) + ) # Verify the model instances are equivalent - assert bare_metal_server_profile_network_attachment_count_dependent_model == bare_metal_server_profile_network_attachment_count_dependent_model2 + assert ( + bare_metal_server_profile_network_attachment_count_dependent_model + == bare_metal_server_profile_network_attachment_count_dependent_model2 + ) # Convert model instance back to dict and verify no loss of data - bare_metal_server_profile_network_attachment_count_dependent_model_json2 = bare_metal_server_profile_network_attachment_count_dependent_model.to_dict() - assert bare_metal_server_profile_network_attachment_count_dependent_model_json2 == bare_metal_server_profile_network_attachment_count_dependent_model_json + bare_metal_server_profile_network_attachment_count_dependent_model_json2 = ( + bare_metal_server_profile_network_attachment_count_dependent_model.to_dict() + ) + assert ( + bare_metal_server_profile_network_attachment_count_dependent_model_json2 + == bare_metal_server_profile_network_attachment_count_dependent_model_json + ) class TestModel_BareMetalServerProfileNetworkAttachmentCountRange: @@ -81596,19 +87888,39 @@ def test_bare_metal_server_profile_network_attachment_count_range_serialization( bare_metal_server_profile_network_attachment_count_range_model_json['type'] = 'range' # Construct a model instance of BareMetalServerProfileNetworkAttachmentCountRange by calling from_dict on the json representation - bare_metal_server_profile_network_attachment_count_range_model = BareMetalServerProfileNetworkAttachmentCountRange.from_dict(bare_metal_server_profile_network_attachment_count_range_model_json) + bare_metal_server_profile_network_attachment_count_range_model = ( + BareMetalServerProfileNetworkAttachmentCountRange.from_dict( + bare_metal_server_profile_network_attachment_count_range_model_json + ) + ) assert bare_metal_server_profile_network_attachment_count_range_model != False # Construct a model instance of BareMetalServerProfileNetworkAttachmentCountRange by calling from_dict on the json representation - bare_metal_server_profile_network_attachment_count_range_model_dict = BareMetalServerProfileNetworkAttachmentCountRange.from_dict(bare_metal_server_profile_network_attachment_count_range_model_json).__dict__ - bare_metal_server_profile_network_attachment_count_range_model2 = BareMetalServerProfileNetworkAttachmentCountRange(**bare_metal_server_profile_network_attachment_count_range_model_dict) + bare_metal_server_profile_network_attachment_count_range_model_dict = ( + BareMetalServerProfileNetworkAttachmentCountRange.from_dict( + bare_metal_server_profile_network_attachment_count_range_model_json + ).__dict__ + ) + bare_metal_server_profile_network_attachment_count_range_model2 = ( + BareMetalServerProfileNetworkAttachmentCountRange( + **bare_metal_server_profile_network_attachment_count_range_model_dict + ) + ) # Verify the model instances are equivalent - assert bare_metal_server_profile_network_attachment_count_range_model == bare_metal_server_profile_network_attachment_count_range_model2 + assert ( + bare_metal_server_profile_network_attachment_count_range_model + == bare_metal_server_profile_network_attachment_count_range_model2 + ) # Convert model instance back to dict and verify no loss of data - bare_metal_server_profile_network_attachment_count_range_model_json2 = bare_metal_server_profile_network_attachment_count_range_model.to_dict() - assert bare_metal_server_profile_network_attachment_count_range_model_json2 == bare_metal_server_profile_network_attachment_count_range_model_json + bare_metal_server_profile_network_attachment_count_range_model_json2 = ( + bare_metal_server_profile_network_attachment_count_range_model.to_dict() + ) + assert ( + bare_metal_server_profile_network_attachment_count_range_model_json2 + == bare_metal_server_profile_network_attachment_count_range_model_json + ) class TestModel_BareMetalServerProfileNetworkInterfaceCountDependent: @@ -81626,19 +87938,39 @@ def test_bare_metal_server_profile_network_interface_count_dependent_serializati bare_metal_server_profile_network_interface_count_dependent_model_json['type'] = 'dependent' # Construct a model instance of BareMetalServerProfileNetworkInterfaceCountDependent by calling from_dict on the json representation - bare_metal_server_profile_network_interface_count_dependent_model = BareMetalServerProfileNetworkInterfaceCountDependent.from_dict(bare_metal_server_profile_network_interface_count_dependent_model_json) + bare_metal_server_profile_network_interface_count_dependent_model = ( + BareMetalServerProfileNetworkInterfaceCountDependent.from_dict( + bare_metal_server_profile_network_interface_count_dependent_model_json + ) + ) assert bare_metal_server_profile_network_interface_count_dependent_model != False # Construct a model instance of BareMetalServerProfileNetworkInterfaceCountDependent by calling from_dict on the json representation - bare_metal_server_profile_network_interface_count_dependent_model_dict = BareMetalServerProfileNetworkInterfaceCountDependent.from_dict(bare_metal_server_profile_network_interface_count_dependent_model_json).__dict__ - bare_metal_server_profile_network_interface_count_dependent_model2 = BareMetalServerProfileNetworkInterfaceCountDependent(**bare_metal_server_profile_network_interface_count_dependent_model_dict) + bare_metal_server_profile_network_interface_count_dependent_model_dict = ( + BareMetalServerProfileNetworkInterfaceCountDependent.from_dict( + bare_metal_server_profile_network_interface_count_dependent_model_json + ).__dict__ + ) + bare_metal_server_profile_network_interface_count_dependent_model2 = ( + BareMetalServerProfileNetworkInterfaceCountDependent( + **bare_metal_server_profile_network_interface_count_dependent_model_dict + ) + ) # Verify the model instances are equivalent - assert bare_metal_server_profile_network_interface_count_dependent_model == bare_metal_server_profile_network_interface_count_dependent_model2 + assert ( + bare_metal_server_profile_network_interface_count_dependent_model + == bare_metal_server_profile_network_interface_count_dependent_model2 + ) # Convert model instance back to dict and verify no loss of data - bare_metal_server_profile_network_interface_count_dependent_model_json2 = bare_metal_server_profile_network_interface_count_dependent_model.to_dict() - assert bare_metal_server_profile_network_interface_count_dependent_model_json2 == bare_metal_server_profile_network_interface_count_dependent_model_json + bare_metal_server_profile_network_interface_count_dependent_model_json2 = ( + bare_metal_server_profile_network_interface_count_dependent_model.to_dict() + ) + assert ( + bare_metal_server_profile_network_interface_count_dependent_model_json2 + == bare_metal_server_profile_network_interface_count_dependent_model_json + ) class TestModel_BareMetalServerProfileNetworkInterfaceCountRange: @@ -81658,19 +87990,39 @@ def test_bare_metal_server_profile_network_interface_count_range_serialization(s bare_metal_server_profile_network_interface_count_range_model_json['type'] = 'range' # Construct a model instance of BareMetalServerProfileNetworkInterfaceCountRange by calling from_dict on the json representation - bare_metal_server_profile_network_interface_count_range_model = BareMetalServerProfileNetworkInterfaceCountRange.from_dict(bare_metal_server_profile_network_interface_count_range_model_json) + bare_metal_server_profile_network_interface_count_range_model = ( + BareMetalServerProfileNetworkInterfaceCountRange.from_dict( + bare_metal_server_profile_network_interface_count_range_model_json + ) + ) assert bare_metal_server_profile_network_interface_count_range_model != False # Construct a model instance of BareMetalServerProfileNetworkInterfaceCountRange by calling from_dict on the json representation - bare_metal_server_profile_network_interface_count_range_model_dict = BareMetalServerProfileNetworkInterfaceCountRange.from_dict(bare_metal_server_profile_network_interface_count_range_model_json).__dict__ - bare_metal_server_profile_network_interface_count_range_model2 = BareMetalServerProfileNetworkInterfaceCountRange(**bare_metal_server_profile_network_interface_count_range_model_dict) + bare_metal_server_profile_network_interface_count_range_model_dict = ( + BareMetalServerProfileNetworkInterfaceCountRange.from_dict( + bare_metal_server_profile_network_interface_count_range_model_json + ).__dict__ + ) + bare_metal_server_profile_network_interface_count_range_model2 = ( + BareMetalServerProfileNetworkInterfaceCountRange( + **bare_metal_server_profile_network_interface_count_range_model_dict + ) + ) # Verify the model instances are equivalent - assert bare_metal_server_profile_network_interface_count_range_model == bare_metal_server_profile_network_interface_count_range_model2 + assert ( + bare_metal_server_profile_network_interface_count_range_model + == bare_metal_server_profile_network_interface_count_range_model2 + ) # Convert model instance back to dict and verify no loss of data - bare_metal_server_profile_network_interface_count_range_model_json2 = bare_metal_server_profile_network_interface_count_range_model.to_dict() - assert bare_metal_server_profile_network_interface_count_range_model_json2 == bare_metal_server_profile_network_interface_count_range_model_json + bare_metal_server_profile_network_interface_count_range_model_json2 = ( + bare_metal_server_profile_network_interface_count_range_model.to_dict() + ) + assert ( + bare_metal_server_profile_network_interface_count_range_model_json2 + == bare_metal_server_profile_network_interface_count_range_model_json + ) class TestModel_BareMetalServerPrototypeBareMetalServerByNetworkAttachment: @@ -81711,12 +88063,16 @@ def test_bare_metal_server_prototype_bare_metal_server_by_network_attachment_ser zone_identity_model = {} # ZoneIdentityByName zone_identity_model['name'] = 'us-south-1' - virtual_network_interface_ip_prototype_model = {} # VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext + virtual_network_interface_ip_prototype_model = ( + {} + ) # VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext virtual_network_interface_ip_prototype_model['address'] = '10.0.0.5' virtual_network_interface_ip_prototype_model['auto_delete'] = False virtual_network_interface_ip_prototype_model['name'] = 'my-reserved-ip' - virtual_network_interface_primary_ip_prototype_model = {} # VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext + virtual_network_interface_primary_ip_prototype_model = ( + {} + ) # VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext virtual_network_interface_primary_ip_prototype_model['address'] = '10.0.0.5' virtual_network_interface_primary_ip_prototype_model['auto_delete'] = False virtual_network_interface_primary_ip_prototype_model['name'] = 'my-reserved-ip' @@ -81727,27 +88083,51 @@ def test_bare_metal_server_prototype_bare_metal_server_by_network_attachment_ser subnet_identity_model = {} # SubnetIdentityById subnet_identity_model['id'] = '7ec86020-1c6e-4889-b3f0-a15f2e50f87e' - bare_metal_server_network_attachment_prototype_virtual_network_interface_model = {} # BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeBareMetalServerNetworkAttachmentContext + bare_metal_server_network_attachment_prototype_virtual_network_interface_model = ( + {} + ) # BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeBareMetalServerNetworkAttachmentContext bare_metal_server_network_attachment_prototype_virtual_network_interface_model['allow_ip_spoofing'] = True bare_metal_server_network_attachment_prototype_virtual_network_interface_model['auto_delete'] = False - bare_metal_server_network_attachment_prototype_virtual_network_interface_model['enable_infrastructure_nat'] = True - bare_metal_server_network_attachment_prototype_virtual_network_interface_model['ips'] = [virtual_network_interface_ip_prototype_model] - bare_metal_server_network_attachment_prototype_virtual_network_interface_model['name'] = 'my-virtual-network-interface' - bare_metal_server_network_attachment_prototype_virtual_network_interface_model['primary_ip'] = virtual_network_interface_primary_ip_prototype_model - bare_metal_server_network_attachment_prototype_virtual_network_interface_model['protocol_state_filtering_mode'] = 'auto' - bare_metal_server_network_attachment_prototype_virtual_network_interface_model['resource_group'] = resource_group_identity_model - bare_metal_server_network_attachment_prototype_virtual_network_interface_model['security_groups'] = [security_group_identity_model] + bare_metal_server_network_attachment_prototype_virtual_network_interface_model['enable_infrastructure_nat'] = ( + True + ) + bare_metal_server_network_attachment_prototype_virtual_network_interface_model['ips'] = [ + virtual_network_interface_ip_prototype_model + ] + bare_metal_server_network_attachment_prototype_virtual_network_interface_model['name'] = ( + 'my-virtual-network-interface' + ) + bare_metal_server_network_attachment_prototype_virtual_network_interface_model['primary_ip'] = ( + virtual_network_interface_primary_ip_prototype_model + ) + bare_metal_server_network_attachment_prototype_virtual_network_interface_model[ + 'protocol_state_filtering_mode' + ] = 'auto' + bare_metal_server_network_attachment_prototype_virtual_network_interface_model['resource_group'] = ( + resource_group_identity_model + ) + bare_metal_server_network_attachment_prototype_virtual_network_interface_model['security_groups'] = [ + security_group_identity_model + ] bare_metal_server_network_attachment_prototype_virtual_network_interface_model['subnet'] = subnet_identity_model - bare_metal_server_network_attachment_prototype_model = {} # BareMetalServerNetworkAttachmentPrototypeBareMetalServerNetworkAttachmentByPCIPrototype + bare_metal_server_network_attachment_prototype_model = ( + {} + ) # BareMetalServerNetworkAttachmentPrototypeBareMetalServerNetworkAttachmentByPCIPrototype bare_metal_server_network_attachment_prototype_model['name'] = 'my-bare-metal-server-network-attachment' - bare_metal_server_network_attachment_prototype_model['virtual_network_interface'] = bare_metal_server_network_attachment_prototype_virtual_network_interface_model + bare_metal_server_network_attachment_prototype_model['virtual_network_interface'] = ( + bare_metal_server_network_attachment_prototype_virtual_network_interface_model + ) bare_metal_server_network_attachment_prototype_model['allowed_vlans'] = [] bare_metal_server_network_attachment_prototype_model['interface_type'] = 'pci' - bare_metal_server_primary_network_attachment_prototype_model = {} # BareMetalServerPrimaryNetworkAttachmentPrototypeBareMetalServerPrimaryNetworkAttachmentByPCIPrototype + bare_metal_server_primary_network_attachment_prototype_model = ( + {} + ) # BareMetalServerPrimaryNetworkAttachmentPrototypeBareMetalServerPrimaryNetworkAttachmentByPCIPrototype bare_metal_server_primary_network_attachment_prototype_model['name'] = 'my-bare-metal-server-network-attachment' - bare_metal_server_primary_network_attachment_prototype_model['virtual_network_interface'] = bare_metal_server_network_attachment_prototype_virtual_network_interface_model + bare_metal_server_primary_network_attachment_prototype_model['virtual_network_interface'] = ( + bare_metal_server_network_attachment_prototype_virtual_network_interface_model + ) bare_metal_server_primary_network_attachment_prototype_model['allowed_vlans'] = [] bare_metal_server_primary_network_attachment_prototype_model['interface_type'] = 'pci' @@ -81755,30 +88135,62 @@ def test_bare_metal_server_prototype_bare_metal_server_by_network_attachment_ser bare_metal_server_prototype_bare_metal_server_by_network_attachment_model_json = {} bare_metal_server_prototype_bare_metal_server_by_network_attachment_model_json['bandwidth'] = 20000 bare_metal_server_prototype_bare_metal_server_by_network_attachment_model_json['enable_secure_boot'] = False - bare_metal_server_prototype_bare_metal_server_by_network_attachment_model_json['initialization'] = bare_metal_server_initialization_prototype_model + bare_metal_server_prototype_bare_metal_server_by_network_attachment_model_json['initialization'] = ( + bare_metal_server_initialization_prototype_model + ) bare_metal_server_prototype_bare_metal_server_by_network_attachment_model_json['name'] = 'my-bare-metal-server' - bare_metal_server_prototype_bare_metal_server_by_network_attachment_model_json['profile'] = bare_metal_server_profile_identity_model - bare_metal_server_prototype_bare_metal_server_by_network_attachment_model_json['resource_group'] = resource_group_identity_model - bare_metal_server_prototype_bare_metal_server_by_network_attachment_model_json['trusted_platform_module'] = bare_metal_server_trusted_platform_module_prototype_model + bare_metal_server_prototype_bare_metal_server_by_network_attachment_model_json['profile'] = ( + bare_metal_server_profile_identity_model + ) + bare_metal_server_prototype_bare_metal_server_by_network_attachment_model_json['resource_group'] = ( + resource_group_identity_model + ) + bare_metal_server_prototype_bare_metal_server_by_network_attachment_model_json['trusted_platform_module'] = ( + bare_metal_server_trusted_platform_module_prototype_model + ) bare_metal_server_prototype_bare_metal_server_by_network_attachment_model_json['vpc'] = vpc_identity_model bare_metal_server_prototype_bare_metal_server_by_network_attachment_model_json['zone'] = zone_identity_model - bare_metal_server_prototype_bare_metal_server_by_network_attachment_model_json['network_attachments'] = [bare_metal_server_network_attachment_prototype_model] - bare_metal_server_prototype_bare_metal_server_by_network_attachment_model_json['primary_network_attachment'] = bare_metal_server_primary_network_attachment_prototype_model + bare_metal_server_prototype_bare_metal_server_by_network_attachment_model_json['network_attachments'] = [ + bare_metal_server_network_attachment_prototype_model + ] + bare_metal_server_prototype_bare_metal_server_by_network_attachment_model_json['primary_network_attachment'] = ( + bare_metal_server_primary_network_attachment_prototype_model + ) # Construct a model instance of BareMetalServerPrototypeBareMetalServerByNetworkAttachment by calling from_dict on the json representation - bare_metal_server_prototype_bare_metal_server_by_network_attachment_model = BareMetalServerPrototypeBareMetalServerByNetworkAttachment.from_dict(bare_metal_server_prototype_bare_metal_server_by_network_attachment_model_json) + bare_metal_server_prototype_bare_metal_server_by_network_attachment_model = ( + BareMetalServerPrototypeBareMetalServerByNetworkAttachment.from_dict( + bare_metal_server_prototype_bare_metal_server_by_network_attachment_model_json + ) + ) assert bare_metal_server_prototype_bare_metal_server_by_network_attachment_model != False # Construct a model instance of BareMetalServerPrototypeBareMetalServerByNetworkAttachment by calling from_dict on the json representation - bare_metal_server_prototype_bare_metal_server_by_network_attachment_model_dict = BareMetalServerPrototypeBareMetalServerByNetworkAttachment.from_dict(bare_metal_server_prototype_bare_metal_server_by_network_attachment_model_json).__dict__ - bare_metal_server_prototype_bare_metal_server_by_network_attachment_model2 = BareMetalServerPrototypeBareMetalServerByNetworkAttachment(**bare_metal_server_prototype_bare_metal_server_by_network_attachment_model_dict) + bare_metal_server_prototype_bare_metal_server_by_network_attachment_model_dict = ( + BareMetalServerPrototypeBareMetalServerByNetworkAttachment.from_dict( + bare_metal_server_prototype_bare_metal_server_by_network_attachment_model_json + ).__dict__ + ) + bare_metal_server_prototype_bare_metal_server_by_network_attachment_model2 = ( + BareMetalServerPrototypeBareMetalServerByNetworkAttachment( + **bare_metal_server_prototype_bare_metal_server_by_network_attachment_model_dict + ) + ) # Verify the model instances are equivalent - assert bare_metal_server_prototype_bare_metal_server_by_network_attachment_model == bare_metal_server_prototype_bare_metal_server_by_network_attachment_model2 + assert ( + bare_metal_server_prototype_bare_metal_server_by_network_attachment_model + == bare_metal_server_prototype_bare_metal_server_by_network_attachment_model2 + ) # Convert model instance back to dict and verify no loss of data - bare_metal_server_prototype_bare_metal_server_by_network_attachment_model_json2 = bare_metal_server_prototype_bare_metal_server_by_network_attachment_model.to_dict() - assert bare_metal_server_prototype_bare_metal_server_by_network_attachment_model_json2 == bare_metal_server_prototype_bare_metal_server_by_network_attachment_model_json + bare_metal_server_prototype_bare_metal_server_by_network_attachment_model_json2 = ( + bare_metal_server_prototype_bare_metal_server_by_network_attachment_model.to_dict() + ) + assert ( + bare_metal_server_prototype_bare_metal_server_by_network_attachment_model_json2 + == bare_metal_server_prototype_bare_metal_server_by_network_attachment_model_json + ) class TestModel_BareMetalServerPrototypeBareMetalServerByNetworkInterface: @@ -81819,7 +88231,9 @@ def test_bare_metal_server_prototype_bare_metal_server_by_network_interface_seri zone_identity_model = {} # ZoneIdentityByName zone_identity_model['name'] = 'us-south-1' - network_interface_ip_prototype_model = {} # NetworkInterfaceIPPrototypeReservedIPPrototypeNetworkInterfaceContext + network_interface_ip_prototype_model = ( + {} + ) # NetworkInterfaceIPPrototypeReservedIPPrototypeNetworkInterfaceContext network_interface_ip_prototype_model['address'] = '10.0.0.5' network_interface_ip_prototype_model['auto_delete'] = False network_interface_ip_prototype_model['name'] = 'my-reserved-ip' @@ -81830,7 +88244,9 @@ def test_bare_metal_server_prototype_bare_metal_server_by_network_interface_seri subnet_identity_model = {} # SubnetIdentityById subnet_identity_model['id'] = '7ec86020-1c6e-4889-b3f0-a15f2e50f87e' - bare_metal_server_network_interface_prototype_model = {} # BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByHiperSocketPrototype + bare_metal_server_network_interface_prototype_model = ( + {} + ) # BareMetalServerNetworkInterfacePrototypeBareMetalServerNetworkInterfaceByHiperSocketPrototype bare_metal_server_network_interface_prototype_model['allow_ip_spoofing'] = True bare_metal_server_network_interface_prototype_model['enable_infrastructure_nat'] = True bare_metal_server_network_interface_prototype_model['name'] = 'my-bare-metal-server-network-interface' @@ -81839,7 +88255,9 @@ def test_bare_metal_server_prototype_bare_metal_server_by_network_interface_seri bare_metal_server_network_interface_prototype_model['subnet'] = subnet_identity_model bare_metal_server_network_interface_prototype_model['interface_type'] = 'hipersocket' - bare_metal_server_primary_network_interface_prototype_model = {} # BareMetalServerPrimaryNetworkInterfacePrototype + bare_metal_server_primary_network_interface_prototype_model = ( + {} + ) # BareMetalServerPrimaryNetworkInterfacePrototype bare_metal_server_primary_network_interface_prototype_model['allow_ip_spoofing'] = True bare_metal_server_primary_network_interface_prototype_model['allowed_vlans'] = [4] bare_metal_server_primary_network_interface_prototype_model['enable_infrastructure_nat'] = True @@ -81853,30 +88271,62 @@ def test_bare_metal_server_prototype_bare_metal_server_by_network_interface_seri bare_metal_server_prototype_bare_metal_server_by_network_interface_model_json = {} bare_metal_server_prototype_bare_metal_server_by_network_interface_model_json['bandwidth'] = 20000 bare_metal_server_prototype_bare_metal_server_by_network_interface_model_json['enable_secure_boot'] = False - bare_metal_server_prototype_bare_metal_server_by_network_interface_model_json['initialization'] = bare_metal_server_initialization_prototype_model + bare_metal_server_prototype_bare_metal_server_by_network_interface_model_json['initialization'] = ( + bare_metal_server_initialization_prototype_model + ) bare_metal_server_prototype_bare_metal_server_by_network_interface_model_json['name'] = 'my-bare-metal-server' - bare_metal_server_prototype_bare_metal_server_by_network_interface_model_json['profile'] = bare_metal_server_profile_identity_model - bare_metal_server_prototype_bare_metal_server_by_network_interface_model_json['resource_group'] = resource_group_identity_model - bare_metal_server_prototype_bare_metal_server_by_network_interface_model_json['trusted_platform_module'] = bare_metal_server_trusted_platform_module_prototype_model + bare_metal_server_prototype_bare_metal_server_by_network_interface_model_json['profile'] = ( + bare_metal_server_profile_identity_model + ) + bare_metal_server_prototype_bare_metal_server_by_network_interface_model_json['resource_group'] = ( + resource_group_identity_model + ) + bare_metal_server_prototype_bare_metal_server_by_network_interface_model_json['trusted_platform_module'] = ( + bare_metal_server_trusted_platform_module_prototype_model + ) bare_metal_server_prototype_bare_metal_server_by_network_interface_model_json['vpc'] = vpc_identity_model bare_metal_server_prototype_bare_metal_server_by_network_interface_model_json['zone'] = zone_identity_model - bare_metal_server_prototype_bare_metal_server_by_network_interface_model_json['network_interfaces'] = [bare_metal_server_network_interface_prototype_model] - bare_metal_server_prototype_bare_metal_server_by_network_interface_model_json['primary_network_interface'] = bare_metal_server_primary_network_interface_prototype_model + bare_metal_server_prototype_bare_metal_server_by_network_interface_model_json['network_interfaces'] = [ + bare_metal_server_network_interface_prototype_model + ] + bare_metal_server_prototype_bare_metal_server_by_network_interface_model_json['primary_network_interface'] = ( + bare_metal_server_primary_network_interface_prototype_model + ) # Construct a model instance of BareMetalServerPrototypeBareMetalServerByNetworkInterface by calling from_dict on the json representation - bare_metal_server_prototype_bare_metal_server_by_network_interface_model = BareMetalServerPrototypeBareMetalServerByNetworkInterface.from_dict(bare_metal_server_prototype_bare_metal_server_by_network_interface_model_json) + bare_metal_server_prototype_bare_metal_server_by_network_interface_model = ( + BareMetalServerPrototypeBareMetalServerByNetworkInterface.from_dict( + bare_metal_server_prototype_bare_metal_server_by_network_interface_model_json + ) + ) assert bare_metal_server_prototype_bare_metal_server_by_network_interface_model != False # Construct a model instance of BareMetalServerPrototypeBareMetalServerByNetworkInterface by calling from_dict on the json representation - bare_metal_server_prototype_bare_metal_server_by_network_interface_model_dict = BareMetalServerPrototypeBareMetalServerByNetworkInterface.from_dict(bare_metal_server_prototype_bare_metal_server_by_network_interface_model_json).__dict__ - bare_metal_server_prototype_bare_metal_server_by_network_interface_model2 = BareMetalServerPrototypeBareMetalServerByNetworkInterface(**bare_metal_server_prototype_bare_metal_server_by_network_interface_model_dict) + bare_metal_server_prototype_bare_metal_server_by_network_interface_model_dict = ( + BareMetalServerPrototypeBareMetalServerByNetworkInterface.from_dict( + bare_metal_server_prototype_bare_metal_server_by_network_interface_model_json + ).__dict__ + ) + bare_metal_server_prototype_bare_metal_server_by_network_interface_model2 = ( + BareMetalServerPrototypeBareMetalServerByNetworkInterface( + **bare_metal_server_prototype_bare_metal_server_by_network_interface_model_dict + ) + ) # Verify the model instances are equivalent - assert bare_metal_server_prototype_bare_metal_server_by_network_interface_model == bare_metal_server_prototype_bare_metal_server_by_network_interface_model2 + assert ( + bare_metal_server_prototype_bare_metal_server_by_network_interface_model + == bare_metal_server_prototype_bare_metal_server_by_network_interface_model2 + ) # Convert model instance back to dict and verify no loss of data - bare_metal_server_prototype_bare_metal_server_by_network_interface_model_json2 = bare_metal_server_prototype_bare_metal_server_by_network_interface_model.to_dict() - assert bare_metal_server_prototype_bare_metal_server_by_network_interface_model_json2 == bare_metal_server_prototype_bare_metal_server_by_network_interface_model_json + bare_metal_server_prototype_bare_metal_server_by_network_interface_model_json2 = ( + bare_metal_server_prototype_bare_metal_server_by_network_interface_model.to_dict() + ) + assert ( + bare_metal_server_prototype_bare_metal_server_by_network_interface_model_json2 + == bare_metal_server_prototype_bare_metal_server_by_network_interface_model_json + ) class TestModel_CatalogOfferingIdentityCatalogOfferingByCRN: @@ -81891,22 +88341,40 @@ def test_catalog_offering_identity_catalog_offering_by_crn_serialization(self): # Construct a json representation of a CatalogOfferingIdentityCatalogOfferingByCRN model catalog_offering_identity_catalog_offering_by_crn_model_json = {} - catalog_offering_identity_catalog_offering_by_crn_model_json['crn'] = 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:offering:00111601-0ec5-41ac-b142-96d1e64e6442' + catalog_offering_identity_catalog_offering_by_crn_model_json['crn'] = ( + 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:offering:00111601-0ec5-41ac-b142-96d1e64e6442' + ) # Construct a model instance of CatalogOfferingIdentityCatalogOfferingByCRN by calling from_dict on the json representation - catalog_offering_identity_catalog_offering_by_crn_model = CatalogOfferingIdentityCatalogOfferingByCRN.from_dict(catalog_offering_identity_catalog_offering_by_crn_model_json) + catalog_offering_identity_catalog_offering_by_crn_model = CatalogOfferingIdentityCatalogOfferingByCRN.from_dict( + catalog_offering_identity_catalog_offering_by_crn_model_json + ) assert catalog_offering_identity_catalog_offering_by_crn_model != False # Construct a model instance of CatalogOfferingIdentityCatalogOfferingByCRN by calling from_dict on the json representation - catalog_offering_identity_catalog_offering_by_crn_model_dict = CatalogOfferingIdentityCatalogOfferingByCRN.from_dict(catalog_offering_identity_catalog_offering_by_crn_model_json).__dict__ - catalog_offering_identity_catalog_offering_by_crn_model2 = CatalogOfferingIdentityCatalogOfferingByCRN(**catalog_offering_identity_catalog_offering_by_crn_model_dict) + catalog_offering_identity_catalog_offering_by_crn_model_dict = ( + CatalogOfferingIdentityCatalogOfferingByCRN.from_dict( + catalog_offering_identity_catalog_offering_by_crn_model_json + ).__dict__ + ) + catalog_offering_identity_catalog_offering_by_crn_model2 = CatalogOfferingIdentityCatalogOfferingByCRN( + **catalog_offering_identity_catalog_offering_by_crn_model_dict + ) # Verify the model instances are equivalent - assert catalog_offering_identity_catalog_offering_by_crn_model == catalog_offering_identity_catalog_offering_by_crn_model2 + assert ( + catalog_offering_identity_catalog_offering_by_crn_model + == catalog_offering_identity_catalog_offering_by_crn_model2 + ) # Convert model instance back to dict and verify no loss of data - catalog_offering_identity_catalog_offering_by_crn_model_json2 = catalog_offering_identity_catalog_offering_by_crn_model.to_dict() - assert catalog_offering_identity_catalog_offering_by_crn_model_json2 == catalog_offering_identity_catalog_offering_by_crn_model_json + catalog_offering_identity_catalog_offering_by_crn_model_json2 = ( + catalog_offering_identity_catalog_offering_by_crn_model.to_dict() + ) + assert ( + catalog_offering_identity_catalog_offering_by_crn_model_json2 + == catalog_offering_identity_catalog_offering_by_crn_model_json + ) class TestModel_CatalogOfferingVersionIdentityCatalogOfferingVersionByCRN: @@ -81921,22 +88389,44 @@ def test_catalog_offering_version_identity_catalog_offering_version_by_crn_seria # Construct a json representation of a CatalogOfferingVersionIdentityCatalogOfferingVersionByCRN model catalog_offering_version_identity_catalog_offering_version_by_crn_model_json = {} - catalog_offering_version_identity_catalog_offering_version_by_crn_model_json['crn'] = 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:version:00111601-0ec5-41ac-b142-96d1e64e6442/ec66bec2-6a33-42d6-9323-26dd4dc8875d' + catalog_offering_version_identity_catalog_offering_version_by_crn_model_json['crn'] = ( + 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:version:00111601-0ec5-41ac-b142-96d1e64e6442/ec66bec2-6a33-42d6-9323-26dd4dc8875d' + ) # Construct a model instance of CatalogOfferingVersionIdentityCatalogOfferingVersionByCRN by calling from_dict on the json representation - catalog_offering_version_identity_catalog_offering_version_by_crn_model = CatalogOfferingVersionIdentityCatalogOfferingVersionByCRN.from_dict(catalog_offering_version_identity_catalog_offering_version_by_crn_model_json) + catalog_offering_version_identity_catalog_offering_version_by_crn_model = ( + CatalogOfferingVersionIdentityCatalogOfferingVersionByCRN.from_dict( + catalog_offering_version_identity_catalog_offering_version_by_crn_model_json + ) + ) assert catalog_offering_version_identity_catalog_offering_version_by_crn_model != False # Construct a model instance of CatalogOfferingVersionIdentityCatalogOfferingVersionByCRN by calling from_dict on the json representation - catalog_offering_version_identity_catalog_offering_version_by_crn_model_dict = CatalogOfferingVersionIdentityCatalogOfferingVersionByCRN.from_dict(catalog_offering_version_identity_catalog_offering_version_by_crn_model_json).__dict__ - catalog_offering_version_identity_catalog_offering_version_by_crn_model2 = CatalogOfferingVersionIdentityCatalogOfferingVersionByCRN(**catalog_offering_version_identity_catalog_offering_version_by_crn_model_dict) + catalog_offering_version_identity_catalog_offering_version_by_crn_model_dict = ( + CatalogOfferingVersionIdentityCatalogOfferingVersionByCRN.from_dict( + catalog_offering_version_identity_catalog_offering_version_by_crn_model_json + ).__dict__ + ) + catalog_offering_version_identity_catalog_offering_version_by_crn_model2 = ( + CatalogOfferingVersionIdentityCatalogOfferingVersionByCRN( + **catalog_offering_version_identity_catalog_offering_version_by_crn_model_dict + ) + ) # Verify the model instances are equivalent - assert catalog_offering_version_identity_catalog_offering_version_by_crn_model == catalog_offering_version_identity_catalog_offering_version_by_crn_model2 + assert ( + catalog_offering_version_identity_catalog_offering_version_by_crn_model + == catalog_offering_version_identity_catalog_offering_version_by_crn_model2 + ) # Convert model instance back to dict and verify no loss of data - catalog_offering_version_identity_catalog_offering_version_by_crn_model_json2 = catalog_offering_version_identity_catalog_offering_version_by_crn_model.to_dict() - assert catalog_offering_version_identity_catalog_offering_version_by_crn_model_json2 == catalog_offering_version_identity_catalog_offering_version_by_crn_model_json + catalog_offering_version_identity_catalog_offering_version_by_crn_model_json2 = ( + catalog_offering_version_identity_catalog_offering_version_by_crn_model.to_dict() + ) + assert ( + catalog_offering_version_identity_catalog_offering_version_by_crn_model_json2 + == catalog_offering_version_identity_catalog_offering_version_by_crn_model_json + ) class TestModel_CatalogOfferingVersionPlanIdentityCatalogOfferingVersionPlanByCRN: @@ -81951,22 +88441,44 @@ def test_catalog_offering_version_plan_identity_catalog_offering_version_plan_by # Construct a json representation of a CatalogOfferingVersionPlanIdentityCatalogOfferingVersionPlanByCRN model catalog_offering_version_plan_identity_catalog_offering_version_plan_by_crn_model_json = {} - catalog_offering_version_plan_identity_catalog_offering_version_plan_by_crn_model_json['crn'] = 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:51c9e0db-2911-45a6-adb0-ac5332d27cf2:plan:sw.51c9e0db-2911-45a6-adb0-ac5332d27cf2.772c0dbe-aa62-482e-adbe-a3fc20101e0e' + catalog_offering_version_plan_identity_catalog_offering_version_plan_by_crn_model_json['crn'] = ( + 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:51c9e0db-2911-45a6-adb0-ac5332d27cf2:plan:sw.51c9e0db-2911-45a6-adb0-ac5332d27cf2.772c0dbe-aa62-482e-adbe-a3fc20101e0e' + ) # Construct a model instance of CatalogOfferingVersionPlanIdentityCatalogOfferingVersionPlanByCRN by calling from_dict on the json representation - catalog_offering_version_plan_identity_catalog_offering_version_plan_by_crn_model = CatalogOfferingVersionPlanIdentityCatalogOfferingVersionPlanByCRN.from_dict(catalog_offering_version_plan_identity_catalog_offering_version_plan_by_crn_model_json) + catalog_offering_version_plan_identity_catalog_offering_version_plan_by_crn_model = ( + CatalogOfferingVersionPlanIdentityCatalogOfferingVersionPlanByCRN.from_dict( + catalog_offering_version_plan_identity_catalog_offering_version_plan_by_crn_model_json + ) + ) assert catalog_offering_version_plan_identity_catalog_offering_version_plan_by_crn_model != False # Construct a model instance of CatalogOfferingVersionPlanIdentityCatalogOfferingVersionPlanByCRN by calling from_dict on the json representation - catalog_offering_version_plan_identity_catalog_offering_version_plan_by_crn_model_dict = CatalogOfferingVersionPlanIdentityCatalogOfferingVersionPlanByCRN.from_dict(catalog_offering_version_plan_identity_catalog_offering_version_plan_by_crn_model_json).__dict__ - catalog_offering_version_plan_identity_catalog_offering_version_plan_by_crn_model2 = CatalogOfferingVersionPlanIdentityCatalogOfferingVersionPlanByCRN(**catalog_offering_version_plan_identity_catalog_offering_version_plan_by_crn_model_dict) + catalog_offering_version_plan_identity_catalog_offering_version_plan_by_crn_model_dict = ( + CatalogOfferingVersionPlanIdentityCatalogOfferingVersionPlanByCRN.from_dict( + catalog_offering_version_plan_identity_catalog_offering_version_plan_by_crn_model_json + ).__dict__ + ) + catalog_offering_version_plan_identity_catalog_offering_version_plan_by_crn_model2 = ( + CatalogOfferingVersionPlanIdentityCatalogOfferingVersionPlanByCRN( + **catalog_offering_version_plan_identity_catalog_offering_version_plan_by_crn_model_dict + ) + ) # Verify the model instances are equivalent - assert catalog_offering_version_plan_identity_catalog_offering_version_plan_by_crn_model == catalog_offering_version_plan_identity_catalog_offering_version_plan_by_crn_model2 + assert ( + catalog_offering_version_plan_identity_catalog_offering_version_plan_by_crn_model + == catalog_offering_version_plan_identity_catalog_offering_version_plan_by_crn_model2 + ) # Convert model instance back to dict and verify no loss of data - catalog_offering_version_plan_identity_catalog_offering_version_plan_by_crn_model_json2 = catalog_offering_version_plan_identity_catalog_offering_version_plan_by_crn_model.to_dict() - assert catalog_offering_version_plan_identity_catalog_offering_version_plan_by_crn_model_json2 == catalog_offering_version_plan_identity_catalog_offering_version_plan_by_crn_model_json + catalog_offering_version_plan_identity_catalog_offering_version_plan_by_crn_model_json2 = ( + catalog_offering_version_plan_identity_catalog_offering_version_plan_by_crn_model.to_dict() + ) + assert ( + catalog_offering_version_plan_identity_catalog_offering_version_plan_by_crn_model_json2 + == catalog_offering_version_plan_identity_catalog_offering_version_plan_by_crn_model_json + ) class TestModel_CertificateInstanceIdentityByCRN: @@ -81981,15 +88493,23 @@ def test_certificate_instance_identity_by_crn_serialization(self): # Construct a json representation of a CertificateInstanceIdentityByCRN model certificate_instance_identity_by_crn_model_json = {} - certificate_instance_identity_by_crn_model_json['crn'] = 'crn:v1:bluemix:public:secrets-manager:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:36fa422d-080d-4d83-8d2d-86851b4001df:secret:2e786aab-42fa-63ed-14f8-d66d552f4dd5' + certificate_instance_identity_by_crn_model_json['crn'] = ( + 'crn:v1:bluemix:public:secrets-manager:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:36fa422d-080d-4d83-8d2d-86851b4001df:secret:2e786aab-42fa-63ed-14f8-d66d552f4dd5' + ) # Construct a model instance of CertificateInstanceIdentityByCRN by calling from_dict on the json representation - certificate_instance_identity_by_crn_model = CertificateInstanceIdentityByCRN.from_dict(certificate_instance_identity_by_crn_model_json) + certificate_instance_identity_by_crn_model = CertificateInstanceIdentityByCRN.from_dict( + certificate_instance_identity_by_crn_model_json + ) assert certificate_instance_identity_by_crn_model != False # Construct a model instance of CertificateInstanceIdentityByCRN by calling from_dict on the json representation - certificate_instance_identity_by_crn_model_dict = CertificateInstanceIdentityByCRN.from_dict(certificate_instance_identity_by_crn_model_json).__dict__ - certificate_instance_identity_by_crn_model2 = CertificateInstanceIdentityByCRN(**certificate_instance_identity_by_crn_model_dict) + certificate_instance_identity_by_crn_model_dict = CertificateInstanceIdentityByCRN.from_dict( + certificate_instance_identity_by_crn_model_json + ).__dict__ + certificate_instance_identity_by_crn_model2 = CertificateInstanceIdentityByCRN( + **certificate_instance_identity_by_crn_model_dict + ) # Verify the model instances are equivalent assert certificate_instance_identity_by_crn_model == certificate_instance_identity_by_crn_model2 @@ -82011,22 +88531,35 @@ def test_cloud_object_storage_bucket_identity_by_crn_serialization(self): # Construct a json representation of a CloudObjectStorageBucketIdentityByCRN model cloud_object_storage_bucket_identity_by_crn_model_json = {} - cloud_object_storage_bucket_identity_by_crn_model_json['crn'] = 'crn:v1:bluemix:public:cloud-object-storage:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1a0ec336-f391-4091-a6fb-5e084a4c56f4:bucket:my-bucket' + cloud_object_storage_bucket_identity_by_crn_model_json['crn'] = ( + 'crn:v1:bluemix:public:cloud-object-storage:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1a0ec336-f391-4091-a6fb-5e084a4c56f4:bucket:my-bucket' + ) # Construct a model instance of CloudObjectStorageBucketIdentityByCRN by calling from_dict on the json representation - cloud_object_storage_bucket_identity_by_crn_model = CloudObjectStorageBucketIdentityByCRN.from_dict(cloud_object_storage_bucket_identity_by_crn_model_json) + cloud_object_storage_bucket_identity_by_crn_model = CloudObjectStorageBucketIdentityByCRN.from_dict( + cloud_object_storage_bucket_identity_by_crn_model_json + ) assert cloud_object_storage_bucket_identity_by_crn_model != False # Construct a model instance of CloudObjectStorageBucketIdentityByCRN by calling from_dict on the json representation - cloud_object_storage_bucket_identity_by_crn_model_dict = CloudObjectStorageBucketIdentityByCRN.from_dict(cloud_object_storage_bucket_identity_by_crn_model_json).__dict__ - cloud_object_storage_bucket_identity_by_crn_model2 = CloudObjectStorageBucketIdentityByCRN(**cloud_object_storage_bucket_identity_by_crn_model_dict) + cloud_object_storage_bucket_identity_by_crn_model_dict = CloudObjectStorageBucketIdentityByCRN.from_dict( + cloud_object_storage_bucket_identity_by_crn_model_json + ).__dict__ + cloud_object_storage_bucket_identity_by_crn_model2 = CloudObjectStorageBucketIdentityByCRN( + **cloud_object_storage_bucket_identity_by_crn_model_dict + ) # Verify the model instances are equivalent assert cloud_object_storage_bucket_identity_by_crn_model == cloud_object_storage_bucket_identity_by_crn_model2 # Convert model instance back to dict and verify no loss of data - cloud_object_storage_bucket_identity_by_crn_model_json2 = cloud_object_storage_bucket_identity_by_crn_model.to_dict() - assert cloud_object_storage_bucket_identity_by_crn_model_json2 == cloud_object_storage_bucket_identity_by_crn_model_json + cloud_object_storage_bucket_identity_by_crn_model_json2 = ( + cloud_object_storage_bucket_identity_by_crn_model.to_dict() + ) + assert ( + cloud_object_storage_bucket_identity_by_crn_model_json2 + == cloud_object_storage_bucket_identity_by_crn_model_json + ) class TestModel_CloudObjectStorageBucketIdentityCloudObjectStorageBucketIdentityByName: @@ -82041,22 +88574,44 @@ def test_cloud_object_storage_bucket_identity_cloud_object_storage_bucket_identi # Construct a json representation of a CloudObjectStorageBucketIdentityCloudObjectStorageBucketIdentityByName model cloud_object_storage_bucket_identity_cloud_object_storage_bucket_identity_by_name_model_json = {} - cloud_object_storage_bucket_identity_cloud_object_storage_bucket_identity_by_name_model_json['name'] = 'bucket-27200-lwx4cfvcue' + cloud_object_storage_bucket_identity_cloud_object_storage_bucket_identity_by_name_model_json['name'] = ( + 'bucket-27200-lwx4cfvcue' + ) # Construct a model instance of CloudObjectStorageBucketIdentityCloudObjectStorageBucketIdentityByName by calling from_dict on the json representation - cloud_object_storage_bucket_identity_cloud_object_storage_bucket_identity_by_name_model = CloudObjectStorageBucketIdentityCloudObjectStorageBucketIdentityByName.from_dict(cloud_object_storage_bucket_identity_cloud_object_storage_bucket_identity_by_name_model_json) + cloud_object_storage_bucket_identity_cloud_object_storage_bucket_identity_by_name_model = ( + CloudObjectStorageBucketIdentityCloudObjectStorageBucketIdentityByName.from_dict( + cloud_object_storage_bucket_identity_cloud_object_storage_bucket_identity_by_name_model_json + ) + ) assert cloud_object_storage_bucket_identity_cloud_object_storage_bucket_identity_by_name_model != False # Construct a model instance of CloudObjectStorageBucketIdentityCloudObjectStorageBucketIdentityByName by calling from_dict on the json representation - cloud_object_storage_bucket_identity_cloud_object_storage_bucket_identity_by_name_model_dict = CloudObjectStorageBucketIdentityCloudObjectStorageBucketIdentityByName.from_dict(cloud_object_storage_bucket_identity_cloud_object_storage_bucket_identity_by_name_model_json).__dict__ - cloud_object_storage_bucket_identity_cloud_object_storage_bucket_identity_by_name_model2 = CloudObjectStorageBucketIdentityCloudObjectStorageBucketIdentityByName(**cloud_object_storage_bucket_identity_cloud_object_storage_bucket_identity_by_name_model_dict) + cloud_object_storage_bucket_identity_cloud_object_storage_bucket_identity_by_name_model_dict = ( + CloudObjectStorageBucketIdentityCloudObjectStorageBucketIdentityByName.from_dict( + cloud_object_storage_bucket_identity_cloud_object_storage_bucket_identity_by_name_model_json + ).__dict__ + ) + cloud_object_storage_bucket_identity_cloud_object_storage_bucket_identity_by_name_model2 = ( + CloudObjectStorageBucketIdentityCloudObjectStorageBucketIdentityByName( + **cloud_object_storage_bucket_identity_cloud_object_storage_bucket_identity_by_name_model_dict + ) + ) # Verify the model instances are equivalent - assert cloud_object_storage_bucket_identity_cloud_object_storage_bucket_identity_by_name_model == cloud_object_storage_bucket_identity_cloud_object_storage_bucket_identity_by_name_model2 + assert ( + cloud_object_storage_bucket_identity_cloud_object_storage_bucket_identity_by_name_model + == cloud_object_storage_bucket_identity_cloud_object_storage_bucket_identity_by_name_model2 + ) # Convert model instance back to dict and verify no loss of data - cloud_object_storage_bucket_identity_cloud_object_storage_bucket_identity_by_name_model_json2 = cloud_object_storage_bucket_identity_cloud_object_storage_bucket_identity_by_name_model.to_dict() - assert cloud_object_storage_bucket_identity_cloud_object_storage_bucket_identity_by_name_model_json2 == cloud_object_storage_bucket_identity_cloud_object_storage_bucket_identity_by_name_model_json + cloud_object_storage_bucket_identity_cloud_object_storage_bucket_identity_by_name_model_json2 = ( + cloud_object_storage_bucket_identity_cloud_object_storage_bucket_identity_by_name_model.to_dict() + ) + assert ( + cloud_object_storage_bucket_identity_cloud_object_storage_bucket_identity_by_name_model_json2 + == cloud_object_storage_bucket_identity_cloud_object_storage_bucket_identity_by_name_model_json + ) class TestModel_ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPPrototypeClusterNetworkInterfacePrimaryIPContext: @@ -82064,31 +88619,58 @@ class TestModel_ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetRes Test Class for ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPPrototypeClusterNetworkInterfacePrimaryIPContext """ - def test_cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_prototype_cluster_network_interface_primary_ip_context_serialization(self): + def test_cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_prototype_cluster_network_interface_primary_ip_context_serialization( + self, + ): """ Test serialization/deserialization for ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPPrototypeClusterNetworkInterfacePrimaryIPContext """ # Construct a json representation of a ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPPrototypeClusterNetworkInterfacePrimaryIPContext model - cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_prototype_cluster_network_interface_primary_ip_context_model_json = {} - cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_prototype_cluster_network_interface_primary_ip_context_model_json['address'] = '192.168.3.4' - cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_prototype_cluster_network_interface_primary_ip_context_model_json['auto_delete'] = False - cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_prototype_cluster_network_interface_primary_ip_context_model_json['name'] = 'my-cluster-network-subnet-reserved-ip' + cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_prototype_cluster_network_interface_primary_ip_context_model_json = ( + {} + ) + cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_prototype_cluster_network_interface_primary_ip_context_model_json[ + 'address' + ] = '192.168.3.4' + cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_prototype_cluster_network_interface_primary_ip_context_model_json[ + 'auto_delete' + ] = False + cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_prototype_cluster_network_interface_primary_ip_context_model_json[ + 'name' + ] = 'my-cluster-network-subnet-reserved-ip' # Construct a model instance of ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPPrototypeClusterNetworkInterfacePrimaryIPContext by calling from_dict on the json representation - cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_prototype_cluster_network_interface_primary_ip_context_model = ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPPrototypeClusterNetworkInterfacePrimaryIPContext.from_dict(cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_prototype_cluster_network_interface_primary_ip_context_model_json) - assert cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_prototype_cluster_network_interface_primary_ip_context_model != False + cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_prototype_cluster_network_interface_primary_ip_context_model = ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPPrototypeClusterNetworkInterfacePrimaryIPContext.from_dict( + cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_prototype_cluster_network_interface_primary_ip_context_model_json + ) + assert ( + cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_prototype_cluster_network_interface_primary_ip_context_model + != False + ) # Construct a model instance of ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPPrototypeClusterNetworkInterfacePrimaryIPContext by calling from_dict on the json representation - cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_prototype_cluster_network_interface_primary_ip_context_model_dict = ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPPrototypeClusterNetworkInterfacePrimaryIPContext.from_dict(cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_prototype_cluster_network_interface_primary_ip_context_model_json).__dict__ - cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_prototype_cluster_network_interface_primary_ip_context_model2 = ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPPrototypeClusterNetworkInterfacePrimaryIPContext(**cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_prototype_cluster_network_interface_primary_ip_context_model_dict) + cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_prototype_cluster_network_interface_primary_ip_context_model_dict = ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPPrototypeClusterNetworkInterfacePrimaryIPContext.from_dict( + cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_prototype_cluster_network_interface_primary_ip_context_model_json + ).__dict__ + cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_prototype_cluster_network_interface_primary_ip_context_model2 = ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPPrototypeClusterNetworkInterfacePrimaryIPContext( + **cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_prototype_cluster_network_interface_primary_ip_context_model_dict + ) # Verify the model instances are equivalent - assert cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_prototype_cluster_network_interface_primary_ip_context_model == cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_prototype_cluster_network_interface_primary_ip_context_model2 + assert ( + cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_prototype_cluster_network_interface_primary_ip_context_model + == cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_prototype_cluster_network_interface_primary_ip_context_model2 + ) # Convert model instance back to dict and verify no loss of data - cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_prototype_cluster_network_interface_primary_ip_context_model_json2 = cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_prototype_cluster_network_interface_primary_ip_context_model.to_dict() - assert cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_prototype_cluster_network_interface_primary_ip_context_model_json2 == cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_prototype_cluster_network_interface_primary_ip_context_model_json + cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_prototype_cluster_network_interface_primary_ip_context_model_json2 = ( + cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_prototype_cluster_network_interface_primary_ip_context_model.to_dict() + ) + assert ( + cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_prototype_cluster_network_interface_primary_ip_context_model_json2 + == cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_prototype_cluster_network_interface_primary_ip_context_model_json + ) class TestModel_ClusterNetworkInterfaceTargetInstanceClusterNetworkAttachmentReferenceClusterNetworkInterfaceContext: @@ -82096,32 +88678,61 @@ class TestModel_ClusterNetworkInterfaceTargetInstanceClusterNetworkAttachmentRef Test Class for ClusterNetworkInterfaceTargetInstanceClusterNetworkAttachmentReferenceClusterNetworkInterfaceContext """ - def test_cluster_network_interface_target_instance_cluster_network_attachment_reference_cluster_network_interface_context_serialization(self): + def test_cluster_network_interface_target_instance_cluster_network_attachment_reference_cluster_network_interface_context_serialization( + self, + ): """ Test serialization/deserialization for ClusterNetworkInterfaceTargetInstanceClusterNetworkAttachmentReferenceClusterNetworkInterfaceContext """ # Construct a json representation of a ClusterNetworkInterfaceTargetInstanceClusterNetworkAttachmentReferenceClusterNetworkInterfaceContext model - cluster_network_interface_target_instance_cluster_network_attachment_reference_cluster_network_interface_context_model_json = {} - cluster_network_interface_target_instance_cluster_network_attachment_reference_cluster_network_interface_context_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/cluster_network_attachments/0717-fb880975-db45-4459-8548-64e3995ac213' - cluster_network_interface_target_instance_cluster_network_attachment_reference_cluster_network_interface_context_model_json['id'] = '0717-fb880975-db45-4459-8548-64e3995ac213' - cluster_network_interface_target_instance_cluster_network_attachment_reference_cluster_network_interface_context_model_json['name'] = 'my-instance-network-attachment' - cluster_network_interface_target_instance_cluster_network_attachment_reference_cluster_network_interface_context_model_json['resource_type'] = 'instance_cluster_network_attachment' + cluster_network_interface_target_instance_cluster_network_attachment_reference_cluster_network_interface_context_model_json = ( + {} + ) + cluster_network_interface_target_instance_cluster_network_attachment_reference_cluster_network_interface_context_model_json[ + 'href' + ] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/cluster_network_attachments/0717-fb880975-db45-4459-8548-64e3995ac213' + cluster_network_interface_target_instance_cluster_network_attachment_reference_cluster_network_interface_context_model_json[ + 'id' + ] = '0717-fb880975-db45-4459-8548-64e3995ac213' + cluster_network_interface_target_instance_cluster_network_attachment_reference_cluster_network_interface_context_model_json[ + 'name' + ] = 'my-instance-network-attachment' + cluster_network_interface_target_instance_cluster_network_attachment_reference_cluster_network_interface_context_model_json[ + 'resource_type' + ] = 'instance_cluster_network_attachment' # Construct a model instance of ClusterNetworkInterfaceTargetInstanceClusterNetworkAttachmentReferenceClusterNetworkInterfaceContext by calling from_dict on the json representation - cluster_network_interface_target_instance_cluster_network_attachment_reference_cluster_network_interface_context_model = ClusterNetworkInterfaceTargetInstanceClusterNetworkAttachmentReferenceClusterNetworkInterfaceContext.from_dict(cluster_network_interface_target_instance_cluster_network_attachment_reference_cluster_network_interface_context_model_json) - assert cluster_network_interface_target_instance_cluster_network_attachment_reference_cluster_network_interface_context_model != False + cluster_network_interface_target_instance_cluster_network_attachment_reference_cluster_network_interface_context_model = ClusterNetworkInterfaceTargetInstanceClusterNetworkAttachmentReferenceClusterNetworkInterfaceContext.from_dict( + cluster_network_interface_target_instance_cluster_network_attachment_reference_cluster_network_interface_context_model_json + ) + assert ( + cluster_network_interface_target_instance_cluster_network_attachment_reference_cluster_network_interface_context_model + != False + ) # Construct a model instance of ClusterNetworkInterfaceTargetInstanceClusterNetworkAttachmentReferenceClusterNetworkInterfaceContext by calling from_dict on the json representation - cluster_network_interface_target_instance_cluster_network_attachment_reference_cluster_network_interface_context_model_dict = ClusterNetworkInterfaceTargetInstanceClusterNetworkAttachmentReferenceClusterNetworkInterfaceContext.from_dict(cluster_network_interface_target_instance_cluster_network_attachment_reference_cluster_network_interface_context_model_json).__dict__ - cluster_network_interface_target_instance_cluster_network_attachment_reference_cluster_network_interface_context_model2 = ClusterNetworkInterfaceTargetInstanceClusterNetworkAttachmentReferenceClusterNetworkInterfaceContext(**cluster_network_interface_target_instance_cluster_network_attachment_reference_cluster_network_interface_context_model_dict) + cluster_network_interface_target_instance_cluster_network_attachment_reference_cluster_network_interface_context_model_dict = ClusterNetworkInterfaceTargetInstanceClusterNetworkAttachmentReferenceClusterNetworkInterfaceContext.from_dict( + cluster_network_interface_target_instance_cluster_network_attachment_reference_cluster_network_interface_context_model_json + ).__dict__ + cluster_network_interface_target_instance_cluster_network_attachment_reference_cluster_network_interface_context_model2 = ClusterNetworkInterfaceTargetInstanceClusterNetworkAttachmentReferenceClusterNetworkInterfaceContext( + **cluster_network_interface_target_instance_cluster_network_attachment_reference_cluster_network_interface_context_model_dict + ) # Verify the model instances are equivalent - assert cluster_network_interface_target_instance_cluster_network_attachment_reference_cluster_network_interface_context_model == cluster_network_interface_target_instance_cluster_network_attachment_reference_cluster_network_interface_context_model2 + assert ( + cluster_network_interface_target_instance_cluster_network_attachment_reference_cluster_network_interface_context_model + == cluster_network_interface_target_instance_cluster_network_attachment_reference_cluster_network_interface_context_model2 + ) # Convert model instance back to dict and verify no loss of data - cluster_network_interface_target_instance_cluster_network_attachment_reference_cluster_network_interface_context_model_json2 = cluster_network_interface_target_instance_cluster_network_attachment_reference_cluster_network_interface_context_model.to_dict() - assert cluster_network_interface_target_instance_cluster_network_attachment_reference_cluster_network_interface_context_model_json2 == cluster_network_interface_target_instance_cluster_network_attachment_reference_cluster_network_interface_context_model_json + cluster_network_interface_target_instance_cluster_network_attachment_reference_cluster_network_interface_context_model_json2 = ( + cluster_network_interface_target_instance_cluster_network_attachment_reference_cluster_network_interface_context_model.to_dict() + ) + assert ( + cluster_network_interface_target_instance_cluster_network_attachment_reference_cluster_network_interface_context_model_json2 + == cluster_network_interface_target_instance_cluster_network_attachment_reference_cluster_network_interface_context_model_json + ) class TestModel_ClusterNetworkProfileIdentityByHref: @@ -82136,22 +88747,32 @@ def test_cluster_network_profile_identity_by_href_serialization(self): # Construct a json representation of a ClusterNetworkProfileIdentityByHref model cluster_network_profile_identity_by_href_model_json = {} - cluster_network_profile_identity_by_href_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/cluster_network/profiles/h100' + cluster_network_profile_identity_by_href_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/cluster_network/profiles/h100' + ) # Construct a model instance of ClusterNetworkProfileIdentityByHref by calling from_dict on the json representation - cluster_network_profile_identity_by_href_model = ClusterNetworkProfileIdentityByHref.from_dict(cluster_network_profile_identity_by_href_model_json) + cluster_network_profile_identity_by_href_model = ClusterNetworkProfileIdentityByHref.from_dict( + cluster_network_profile_identity_by_href_model_json + ) assert cluster_network_profile_identity_by_href_model != False # Construct a model instance of ClusterNetworkProfileIdentityByHref by calling from_dict on the json representation - cluster_network_profile_identity_by_href_model_dict = ClusterNetworkProfileIdentityByHref.from_dict(cluster_network_profile_identity_by_href_model_json).__dict__ - cluster_network_profile_identity_by_href_model2 = ClusterNetworkProfileIdentityByHref(**cluster_network_profile_identity_by_href_model_dict) + cluster_network_profile_identity_by_href_model_dict = ClusterNetworkProfileIdentityByHref.from_dict( + cluster_network_profile_identity_by_href_model_json + ).__dict__ + cluster_network_profile_identity_by_href_model2 = ClusterNetworkProfileIdentityByHref( + **cluster_network_profile_identity_by_href_model_dict + ) # Verify the model instances are equivalent assert cluster_network_profile_identity_by_href_model == cluster_network_profile_identity_by_href_model2 # Convert model instance back to dict and verify no loss of data cluster_network_profile_identity_by_href_model_json2 = cluster_network_profile_identity_by_href_model.to_dict() - assert cluster_network_profile_identity_by_href_model_json2 == cluster_network_profile_identity_by_href_model_json + assert ( + cluster_network_profile_identity_by_href_model_json2 == cluster_network_profile_identity_by_href_model_json + ) class TestModel_ClusterNetworkProfileIdentityByName: @@ -82169,19 +88790,27 @@ def test_cluster_network_profile_identity_by_name_serialization(self): cluster_network_profile_identity_by_name_model_json['name'] = 'h100' # Construct a model instance of ClusterNetworkProfileIdentityByName by calling from_dict on the json representation - cluster_network_profile_identity_by_name_model = ClusterNetworkProfileIdentityByName.from_dict(cluster_network_profile_identity_by_name_model_json) + cluster_network_profile_identity_by_name_model = ClusterNetworkProfileIdentityByName.from_dict( + cluster_network_profile_identity_by_name_model_json + ) assert cluster_network_profile_identity_by_name_model != False # Construct a model instance of ClusterNetworkProfileIdentityByName by calling from_dict on the json representation - cluster_network_profile_identity_by_name_model_dict = ClusterNetworkProfileIdentityByName.from_dict(cluster_network_profile_identity_by_name_model_json).__dict__ - cluster_network_profile_identity_by_name_model2 = ClusterNetworkProfileIdentityByName(**cluster_network_profile_identity_by_name_model_dict) + cluster_network_profile_identity_by_name_model_dict = ClusterNetworkProfileIdentityByName.from_dict( + cluster_network_profile_identity_by_name_model_json + ).__dict__ + cluster_network_profile_identity_by_name_model2 = ClusterNetworkProfileIdentityByName( + **cluster_network_profile_identity_by_name_model_dict + ) # Verify the model instances are equivalent assert cluster_network_profile_identity_by_name_model == cluster_network_profile_identity_by_name_model2 # Convert model instance back to dict and verify no loss of data cluster_network_profile_identity_by_name_model_json2 = cluster_network_profile_identity_by_name_model.to_dict() - assert cluster_network_profile_identity_by_name_model_json2 == cluster_network_profile_identity_by_name_model_json + assert ( + cluster_network_profile_identity_by_name_model_json2 == cluster_network_profile_identity_by_name_model_json + ) class TestModel_ClusterNetworkSubnetIdentityByHref: @@ -82196,15 +88825,23 @@ def test_cluster_network_subnet_identity_by_href_serialization(self): # Construct a json representation of a ClusterNetworkSubnetIdentityByHref model cluster_network_subnet_identity_by_href_model_json = {} - cluster_network_subnet_identity_by_href_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/cluster_networks/0717-da0df18c-7598-4633-a648-fdaac28a5573/subnets/0717-7931845c-65c4-4b0a-80cd-7d9c1a6d7930' + cluster_network_subnet_identity_by_href_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/cluster_networks/0717-da0df18c-7598-4633-a648-fdaac28a5573/subnets/0717-7931845c-65c4-4b0a-80cd-7d9c1a6d7930' + ) # Construct a model instance of ClusterNetworkSubnetIdentityByHref by calling from_dict on the json representation - cluster_network_subnet_identity_by_href_model = ClusterNetworkSubnetIdentityByHref.from_dict(cluster_network_subnet_identity_by_href_model_json) + cluster_network_subnet_identity_by_href_model = ClusterNetworkSubnetIdentityByHref.from_dict( + cluster_network_subnet_identity_by_href_model_json + ) assert cluster_network_subnet_identity_by_href_model != False # Construct a model instance of ClusterNetworkSubnetIdentityByHref by calling from_dict on the json representation - cluster_network_subnet_identity_by_href_model_dict = ClusterNetworkSubnetIdentityByHref.from_dict(cluster_network_subnet_identity_by_href_model_json).__dict__ - cluster_network_subnet_identity_by_href_model2 = ClusterNetworkSubnetIdentityByHref(**cluster_network_subnet_identity_by_href_model_dict) + cluster_network_subnet_identity_by_href_model_dict = ClusterNetworkSubnetIdentityByHref.from_dict( + cluster_network_subnet_identity_by_href_model_json + ).__dict__ + cluster_network_subnet_identity_by_href_model2 = ClusterNetworkSubnetIdentityByHref( + **cluster_network_subnet_identity_by_href_model_dict + ) # Verify the model instances are equivalent assert cluster_network_subnet_identity_by_href_model == cluster_network_subnet_identity_by_href_model2 @@ -82229,12 +88866,18 @@ def test_cluster_network_subnet_identity_by_id_serialization(self): cluster_network_subnet_identity_by_id_model_json['id'] = '0717-7931845c-65c4-4b0a-80cd-7d9c1a6d7930' # Construct a model instance of ClusterNetworkSubnetIdentityById by calling from_dict on the json representation - cluster_network_subnet_identity_by_id_model = ClusterNetworkSubnetIdentityById.from_dict(cluster_network_subnet_identity_by_id_model_json) + cluster_network_subnet_identity_by_id_model = ClusterNetworkSubnetIdentityById.from_dict( + cluster_network_subnet_identity_by_id_model_json + ) assert cluster_network_subnet_identity_by_id_model != False # Construct a model instance of ClusterNetworkSubnetIdentityById by calling from_dict on the json representation - cluster_network_subnet_identity_by_id_model_dict = ClusterNetworkSubnetIdentityById.from_dict(cluster_network_subnet_identity_by_id_model_json).__dict__ - cluster_network_subnet_identity_by_id_model2 = ClusterNetworkSubnetIdentityById(**cluster_network_subnet_identity_by_id_model_dict) + cluster_network_subnet_identity_by_id_model_dict = ClusterNetworkSubnetIdentityById.from_dict( + cluster_network_subnet_identity_by_id_model_json + ).__dict__ + cluster_network_subnet_identity_by_id_model2 = ClusterNetworkSubnetIdentityById( + **cluster_network_subnet_identity_by_id_model_dict + ) # Verify the model instances are equivalent assert cluster_network_subnet_identity_by_id_model == cluster_network_subnet_identity_by_id_model2 @@ -82256,24 +88899,50 @@ def test_cluster_network_subnet_prototype_cluster_network_subnet_by_i_pv4_cidr_b # Construct a json representation of a ClusterNetworkSubnetPrototypeClusterNetworkSubnetByIPv4CIDRBlockPrototype model cluster_network_subnet_prototype_cluster_network_subnet_by_i_pv4_cidr_block_prototype_model_json = {} - cluster_network_subnet_prototype_cluster_network_subnet_by_i_pv4_cidr_block_prototype_model_json['ip_version'] = 'ipv4' - cluster_network_subnet_prototype_cluster_network_subnet_by_i_pv4_cidr_block_prototype_model_json['name'] = 'my-cluster-network-subnet' - cluster_network_subnet_prototype_cluster_network_subnet_by_i_pv4_cidr_block_prototype_model_json['ipv4_cidr_block'] = '10.0.0.0/24' + cluster_network_subnet_prototype_cluster_network_subnet_by_i_pv4_cidr_block_prototype_model_json[ + 'ip_version' + ] = 'ipv4' + cluster_network_subnet_prototype_cluster_network_subnet_by_i_pv4_cidr_block_prototype_model_json['name'] = ( + 'my-cluster-network-subnet' + ) + cluster_network_subnet_prototype_cluster_network_subnet_by_i_pv4_cidr_block_prototype_model_json[ + 'ipv4_cidr_block' + ] = '10.0.0.0/24' # Construct a model instance of ClusterNetworkSubnetPrototypeClusterNetworkSubnetByIPv4CIDRBlockPrototype by calling from_dict on the json representation - cluster_network_subnet_prototype_cluster_network_subnet_by_i_pv4_cidr_block_prototype_model = ClusterNetworkSubnetPrototypeClusterNetworkSubnetByIPv4CIDRBlockPrototype.from_dict(cluster_network_subnet_prototype_cluster_network_subnet_by_i_pv4_cidr_block_prototype_model_json) + cluster_network_subnet_prototype_cluster_network_subnet_by_i_pv4_cidr_block_prototype_model = ( + ClusterNetworkSubnetPrototypeClusterNetworkSubnetByIPv4CIDRBlockPrototype.from_dict( + cluster_network_subnet_prototype_cluster_network_subnet_by_i_pv4_cidr_block_prototype_model_json + ) + ) assert cluster_network_subnet_prototype_cluster_network_subnet_by_i_pv4_cidr_block_prototype_model != False # Construct a model instance of ClusterNetworkSubnetPrototypeClusterNetworkSubnetByIPv4CIDRBlockPrototype by calling from_dict on the json representation - cluster_network_subnet_prototype_cluster_network_subnet_by_i_pv4_cidr_block_prototype_model_dict = ClusterNetworkSubnetPrototypeClusterNetworkSubnetByIPv4CIDRBlockPrototype.from_dict(cluster_network_subnet_prototype_cluster_network_subnet_by_i_pv4_cidr_block_prototype_model_json).__dict__ - cluster_network_subnet_prototype_cluster_network_subnet_by_i_pv4_cidr_block_prototype_model2 = ClusterNetworkSubnetPrototypeClusterNetworkSubnetByIPv4CIDRBlockPrototype(**cluster_network_subnet_prototype_cluster_network_subnet_by_i_pv4_cidr_block_prototype_model_dict) + cluster_network_subnet_prototype_cluster_network_subnet_by_i_pv4_cidr_block_prototype_model_dict = ( + ClusterNetworkSubnetPrototypeClusterNetworkSubnetByIPv4CIDRBlockPrototype.from_dict( + cluster_network_subnet_prototype_cluster_network_subnet_by_i_pv4_cidr_block_prototype_model_json + ).__dict__ + ) + cluster_network_subnet_prototype_cluster_network_subnet_by_i_pv4_cidr_block_prototype_model2 = ( + ClusterNetworkSubnetPrototypeClusterNetworkSubnetByIPv4CIDRBlockPrototype( + **cluster_network_subnet_prototype_cluster_network_subnet_by_i_pv4_cidr_block_prototype_model_dict + ) + ) # Verify the model instances are equivalent - assert cluster_network_subnet_prototype_cluster_network_subnet_by_i_pv4_cidr_block_prototype_model == cluster_network_subnet_prototype_cluster_network_subnet_by_i_pv4_cidr_block_prototype_model2 + assert ( + cluster_network_subnet_prototype_cluster_network_subnet_by_i_pv4_cidr_block_prototype_model + == cluster_network_subnet_prototype_cluster_network_subnet_by_i_pv4_cidr_block_prototype_model2 + ) # Convert model instance back to dict and verify no loss of data - cluster_network_subnet_prototype_cluster_network_subnet_by_i_pv4_cidr_block_prototype_model_json2 = cluster_network_subnet_prototype_cluster_network_subnet_by_i_pv4_cidr_block_prototype_model.to_dict() - assert cluster_network_subnet_prototype_cluster_network_subnet_by_i_pv4_cidr_block_prototype_model_json2 == cluster_network_subnet_prototype_cluster_network_subnet_by_i_pv4_cidr_block_prototype_model_json + cluster_network_subnet_prototype_cluster_network_subnet_by_i_pv4_cidr_block_prototype_model_json2 = ( + cluster_network_subnet_prototype_cluster_network_subnet_by_i_pv4_cidr_block_prototype_model.to_dict() + ) + assert ( + cluster_network_subnet_prototype_cluster_network_subnet_by_i_pv4_cidr_block_prototype_model_json2 + == cluster_network_subnet_prototype_cluster_network_subnet_by_i_pv4_cidr_block_prototype_model_json + ) class TestModel_ClusterNetworkSubnetPrototypeClusterNetworkSubnetByTotalCountPrototype: @@ -82288,24 +88957,50 @@ def test_cluster_network_subnet_prototype_cluster_network_subnet_by_total_count_ # Construct a json representation of a ClusterNetworkSubnetPrototypeClusterNetworkSubnetByTotalCountPrototype model cluster_network_subnet_prototype_cluster_network_subnet_by_total_count_prototype_model_json = {} - cluster_network_subnet_prototype_cluster_network_subnet_by_total_count_prototype_model_json['ip_version'] = 'ipv4' - cluster_network_subnet_prototype_cluster_network_subnet_by_total_count_prototype_model_json['name'] = 'my-cluster-network-subnet' - cluster_network_subnet_prototype_cluster_network_subnet_by_total_count_prototype_model_json['total_ipv4_address_count'] = 256 + cluster_network_subnet_prototype_cluster_network_subnet_by_total_count_prototype_model_json['ip_version'] = ( + 'ipv4' + ) + cluster_network_subnet_prototype_cluster_network_subnet_by_total_count_prototype_model_json['name'] = ( + 'my-cluster-network-subnet' + ) + cluster_network_subnet_prototype_cluster_network_subnet_by_total_count_prototype_model_json[ + 'total_ipv4_address_count' + ] = 256 # Construct a model instance of ClusterNetworkSubnetPrototypeClusterNetworkSubnetByTotalCountPrototype by calling from_dict on the json representation - cluster_network_subnet_prototype_cluster_network_subnet_by_total_count_prototype_model = ClusterNetworkSubnetPrototypeClusterNetworkSubnetByTotalCountPrototype.from_dict(cluster_network_subnet_prototype_cluster_network_subnet_by_total_count_prototype_model_json) + cluster_network_subnet_prototype_cluster_network_subnet_by_total_count_prototype_model = ( + ClusterNetworkSubnetPrototypeClusterNetworkSubnetByTotalCountPrototype.from_dict( + cluster_network_subnet_prototype_cluster_network_subnet_by_total_count_prototype_model_json + ) + ) assert cluster_network_subnet_prototype_cluster_network_subnet_by_total_count_prototype_model != False # Construct a model instance of ClusterNetworkSubnetPrototypeClusterNetworkSubnetByTotalCountPrototype by calling from_dict on the json representation - cluster_network_subnet_prototype_cluster_network_subnet_by_total_count_prototype_model_dict = ClusterNetworkSubnetPrototypeClusterNetworkSubnetByTotalCountPrototype.from_dict(cluster_network_subnet_prototype_cluster_network_subnet_by_total_count_prototype_model_json).__dict__ - cluster_network_subnet_prototype_cluster_network_subnet_by_total_count_prototype_model2 = ClusterNetworkSubnetPrototypeClusterNetworkSubnetByTotalCountPrototype(**cluster_network_subnet_prototype_cluster_network_subnet_by_total_count_prototype_model_dict) + cluster_network_subnet_prototype_cluster_network_subnet_by_total_count_prototype_model_dict = ( + ClusterNetworkSubnetPrototypeClusterNetworkSubnetByTotalCountPrototype.from_dict( + cluster_network_subnet_prototype_cluster_network_subnet_by_total_count_prototype_model_json + ).__dict__ + ) + cluster_network_subnet_prototype_cluster_network_subnet_by_total_count_prototype_model2 = ( + ClusterNetworkSubnetPrototypeClusterNetworkSubnetByTotalCountPrototype( + **cluster_network_subnet_prototype_cluster_network_subnet_by_total_count_prototype_model_dict + ) + ) # Verify the model instances are equivalent - assert cluster_network_subnet_prototype_cluster_network_subnet_by_total_count_prototype_model == cluster_network_subnet_prototype_cluster_network_subnet_by_total_count_prototype_model2 + assert ( + cluster_network_subnet_prototype_cluster_network_subnet_by_total_count_prototype_model + == cluster_network_subnet_prototype_cluster_network_subnet_by_total_count_prototype_model2 + ) # Convert model instance back to dict and verify no loss of data - cluster_network_subnet_prototype_cluster_network_subnet_by_total_count_prototype_model_json2 = cluster_network_subnet_prototype_cluster_network_subnet_by_total_count_prototype_model.to_dict() - assert cluster_network_subnet_prototype_cluster_network_subnet_by_total_count_prototype_model_json2 == cluster_network_subnet_prototype_cluster_network_subnet_by_total_count_prototype_model_json + cluster_network_subnet_prototype_cluster_network_subnet_by_total_count_prototype_model_json2 = ( + cluster_network_subnet_prototype_cluster_network_subnet_by_total_count_prototype_model.to_dict() + ) + assert ( + cluster_network_subnet_prototype_cluster_network_subnet_by_total_count_prototype_model_json2 + == cluster_network_subnet_prototype_cluster_network_subnet_by_total_count_prototype_model_json + ) class TestModel_ClusterNetworkSubnetReservedIPTargetClusterNetworkInterfaceReferenceClusterNetworkSubnetReservedIPTargetContext: @@ -82313,7 +89008,9 @@ class TestModel_ClusterNetworkSubnetReservedIPTargetClusterNetworkInterfaceRefer Test Class for ClusterNetworkSubnetReservedIPTargetClusterNetworkInterfaceReferenceClusterNetworkSubnetReservedIPTargetContext """ - def test_cluster_network_subnet_reserved_ip_target_cluster_network_interface_reference_cluster_network_subnet_reserved_ip_target_context_serialization(self): + def test_cluster_network_subnet_reserved_ip_target_cluster_network_interface_reference_cluster_network_subnet_reserved_ip_target_context_serialization( + self, + ): """ Test serialization/deserialization for ClusterNetworkSubnetReservedIPTargetClusterNetworkInterfaceReferenceClusterNetworkSubnetReservedIPTargetContext """ @@ -82324,27 +89021,56 @@ def test_cluster_network_subnet_reserved_ip_target_cluster_network_interface_ref deleted_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#deleted-resources' # Construct a json representation of a ClusterNetworkSubnetReservedIPTargetClusterNetworkInterfaceReferenceClusterNetworkSubnetReservedIPTargetContext model - cluster_network_subnet_reserved_ip_target_cluster_network_interface_reference_cluster_network_subnet_reserved_ip_target_context_model_json = {} - cluster_network_subnet_reserved_ip_target_cluster_network_interface_reference_cluster_network_subnet_reserved_ip_target_context_model_json['deleted'] = deleted_model - cluster_network_subnet_reserved_ip_target_cluster_network_interface_reference_cluster_network_subnet_reserved_ip_target_context_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/cluster_networks/0717-da0df18c-7598-4633-a648-fdaac28a5573/interfaces/0717-ffc092f7-5d02-4b93-ab69-26860529b9fb' - cluster_network_subnet_reserved_ip_target_cluster_network_interface_reference_cluster_network_subnet_reserved_ip_target_context_model_json['id'] = '0717-ffc092f7-5d02-4b93-ab69-26860529b9fb' - cluster_network_subnet_reserved_ip_target_cluster_network_interface_reference_cluster_network_subnet_reserved_ip_target_context_model_json['name'] = 'my-cluster-network-interface' - cluster_network_subnet_reserved_ip_target_cluster_network_interface_reference_cluster_network_subnet_reserved_ip_target_context_model_json['resource_type'] = 'cluster_network_interface' + cluster_network_subnet_reserved_ip_target_cluster_network_interface_reference_cluster_network_subnet_reserved_ip_target_context_model_json = ( + {} + ) + cluster_network_subnet_reserved_ip_target_cluster_network_interface_reference_cluster_network_subnet_reserved_ip_target_context_model_json[ + 'deleted' + ] = deleted_model + cluster_network_subnet_reserved_ip_target_cluster_network_interface_reference_cluster_network_subnet_reserved_ip_target_context_model_json[ + 'href' + ] = 'https://us-south.iaas.cloud.ibm.com/v1/cluster_networks/0717-da0df18c-7598-4633-a648-fdaac28a5573/interfaces/0717-ffc092f7-5d02-4b93-ab69-26860529b9fb' + cluster_network_subnet_reserved_ip_target_cluster_network_interface_reference_cluster_network_subnet_reserved_ip_target_context_model_json[ + 'id' + ] = '0717-ffc092f7-5d02-4b93-ab69-26860529b9fb' + cluster_network_subnet_reserved_ip_target_cluster_network_interface_reference_cluster_network_subnet_reserved_ip_target_context_model_json[ + 'name' + ] = 'my-cluster-network-interface' + cluster_network_subnet_reserved_ip_target_cluster_network_interface_reference_cluster_network_subnet_reserved_ip_target_context_model_json[ + 'resource_type' + ] = 'cluster_network_interface' # Construct a model instance of ClusterNetworkSubnetReservedIPTargetClusterNetworkInterfaceReferenceClusterNetworkSubnetReservedIPTargetContext by calling from_dict on the json representation - cluster_network_subnet_reserved_ip_target_cluster_network_interface_reference_cluster_network_subnet_reserved_ip_target_context_model = ClusterNetworkSubnetReservedIPTargetClusterNetworkInterfaceReferenceClusterNetworkSubnetReservedIPTargetContext.from_dict(cluster_network_subnet_reserved_ip_target_cluster_network_interface_reference_cluster_network_subnet_reserved_ip_target_context_model_json) - assert cluster_network_subnet_reserved_ip_target_cluster_network_interface_reference_cluster_network_subnet_reserved_ip_target_context_model != False + cluster_network_subnet_reserved_ip_target_cluster_network_interface_reference_cluster_network_subnet_reserved_ip_target_context_model = ClusterNetworkSubnetReservedIPTargetClusterNetworkInterfaceReferenceClusterNetworkSubnetReservedIPTargetContext.from_dict( + cluster_network_subnet_reserved_ip_target_cluster_network_interface_reference_cluster_network_subnet_reserved_ip_target_context_model_json + ) + assert ( + cluster_network_subnet_reserved_ip_target_cluster_network_interface_reference_cluster_network_subnet_reserved_ip_target_context_model + != False + ) # Construct a model instance of ClusterNetworkSubnetReservedIPTargetClusterNetworkInterfaceReferenceClusterNetworkSubnetReservedIPTargetContext by calling from_dict on the json representation - cluster_network_subnet_reserved_ip_target_cluster_network_interface_reference_cluster_network_subnet_reserved_ip_target_context_model_dict = ClusterNetworkSubnetReservedIPTargetClusterNetworkInterfaceReferenceClusterNetworkSubnetReservedIPTargetContext.from_dict(cluster_network_subnet_reserved_ip_target_cluster_network_interface_reference_cluster_network_subnet_reserved_ip_target_context_model_json).__dict__ - cluster_network_subnet_reserved_ip_target_cluster_network_interface_reference_cluster_network_subnet_reserved_ip_target_context_model2 = ClusterNetworkSubnetReservedIPTargetClusterNetworkInterfaceReferenceClusterNetworkSubnetReservedIPTargetContext(**cluster_network_subnet_reserved_ip_target_cluster_network_interface_reference_cluster_network_subnet_reserved_ip_target_context_model_dict) + cluster_network_subnet_reserved_ip_target_cluster_network_interface_reference_cluster_network_subnet_reserved_ip_target_context_model_dict = ClusterNetworkSubnetReservedIPTargetClusterNetworkInterfaceReferenceClusterNetworkSubnetReservedIPTargetContext.from_dict( + cluster_network_subnet_reserved_ip_target_cluster_network_interface_reference_cluster_network_subnet_reserved_ip_target_context_model_json + ).__dict__ + cluster_network_subnet_reserved_ip_target_cluster_network_interface_reference_cluster_network_subnet_reserved_ip_target_context_model2 = ClusterNetworkSubnetReservedIPTargetClusterNetworkInterfaceReferenceClusterNetworkSubnetReservedIPTargetContext( + **cluster_network_subnet_reserved_ip_target_cluster_network_interface_reference_cluster_network_subnet_reserved_ip_target_context_model_dict + ) # Verify the model instances are equivalent - assert cluster_network_subnet_reserved_ip_target_cluster_network_interface_reference_cluster_network_subnet_reserved_ip_target_context_model == cluster_network_subnet_reserved_ip_target_cluster_network_interface_reference_cluster_network_subnet_reserved_ip_target_context_model2 + assert ( + cluster_network_subnet_reserved_ip_target_cluster_network_interface_reference_cluster_network_subnet_reserved_ip_target_context_model + == cluster_network_subnet_reserved_ip_target_cluster_network_interface_reference_cluster_network_subnet_reserved_ip_target_context_model2 + ) # Convert model instance back to dict and verify no loss of data - cluster_network_subnet_reserved_ip_target_cluster_network_interface_reference_cluster_network_subnet_reserved_ip_target_context_model_json2 = cluster_network_subnet_reserved_ip_target_cluster_network_interface_reference_cluster_network_subnet_reserved_ip_target_context_model.to_dict() - assert cluster_network_subnet_reserved_ip_target_cluster_network_interface_reference_cluster_network_subnet_reserved_ip_target_context_model_json2 == cluster_network_subnet_reserved_ip_target_cluster_network_interface_reference_cluster_network_subnet_reserved_ip_target_context_model_json + cluster_network_subnet_reserved_ip_target_cluster_network_interface_reference_cluster_network_subnet_reserved_ip_target_context_model_json2 = ( + cluster_network_subnet_reserved_ip_target_cluster_network_interface_reference_cluster_network_subnet_reserved_ip_target_context_model.to_dict() + ) + assert ( + cluster_network_subnet_reserved_ip_target_cluster_network_interface_reference_cluster_network_subnet_reserved_ip_target_context_model_json2 + == cluster_network_subnet_reserved_ip_target_cluster_network_interface_reference_cluster_network_subnet_reserved_ip_target_context_model_json + ) class TestModel_DNSInstanceIdentityByCRN: @@ -82359,14 +89085,18 @@ def test_dns_instance_identity_by_crn_serialization(self): # Construct a json representation of a DNSInstanceIdentityByCRN model dns_instance_identity_by_crn_model_json = {} - dns_instance_identity_by_crn_model_json['crn'] = 'crn:v1:bluemix:public:dns-svcs:global:a/bb1b52262f7441a586f49068482f1e60:f761b566-030a-4696-8649-cc9d09889e88::' + dns_instance_identity_by_crn_model_json['crn'] = ( + 'crn:v1:bluemix:public:dns-svcs:global:a/bb1b52262f7441a586f49068482f1e60:f761b566-030a-4696-8649-cc9d09889e88::' + ) # Construct a model instance of DNSInstanceIdentityByCRN by calling from_dict on the json representation dns_instance_identity_by_crn_model = DNSInstanceIdentityByCRN.from_dict(dns_instance_identity_by_crn_model_json) assert dns_instance_identity_by_crn_model != False # Construct a model instance of DNSInstanceIdentityByCRN by calling from_dict on the json representation - dns_instance_identity_by_crn_model_dict = DNSInstanceIdentityByCRN.from_dict(dns_instance_identity_by_crn_model_json).__dict__ + dns_instance_identity_by_crn_model_dict = DNSInstanceIdentityByCRN.from_dict( + dns_instance_identity_by_crn_model_json + ).__dict__ dns_instance_identity_by_crn_model2 = DNSInstanceIdentityByCRN(**dns_instance_identity_by_crn_model_dict) # Verify the model instances are equivalent @@ -82419,15 +89149,23 @@ def test_dedicated_host_group_identity_by_crn_serialization(self): # Construct a json representation of a DedicatedHostGroupIdentityByCRN model dedicated_host_group_identity_by_crn_model_json = {} - dedicated_host_group_identity_by_crn_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host-group:0717-bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0' + dedicated_host_group_identity_by_crn_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host-group:0717-bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0' + ) # Construct a model instance of DedicatedHostGroupIdentityByCRN by calling from_dict on the json representation - dedicated_host_group_identity_by_crn_model = DedicatedHostGroupIdentityByCRN.from_dict(dedicated_host_group_identity_by_crn_model_json) + dedicated_host_group_identity_by_crn_model = DedicatedHostGroupIdentityByCRN.from_dict( + dedicated_host_group_identity_by_crn_model_json + ) assert dedicated_host_group_identity_by_crn_model != False # Construct a model instance of DedicatedHostGroupIdentityByCRN by calling from_dict on the json representation - dedicated_host_group_identity_by_crn_model_dict = DedicatedHostGroupIdentityByCRN.from_dict(dedicated_host_group_identity_by_crn_model_json).__dict__ - dedicated_host_group_identity_by_crn_model2 = DedicatedHostGroupIdentityByCRN(**dedicated_host_group_identity_by_crn_model_dict) + dedicated_host_group_identity_by_crn_model_dict = DedicatedHostGroupIdentityByCRN.from_dict( + dedicated_host_group_identity_by_crn_model_json + ).__dict__ + dedicated_host_group_identity_by_crn_model2 = DedicatedHostGroupIdentityByCRN( + **dedicated_host_group_identity_by_crn_model_dict + ) # Verify the model instances are equivalent assert dedicated_host_group_identity_by_crn_model == dedicated_host_group_identity_by_crn_model2 @@ -82449,15 +89187,23 @@ def test_dedicated_host_group_identity_by_href_serialization(self): # Construct a json representation of a DedicatedHostGroupIdentityByHref model dedicated_host_group_identity_by_href_model_json = {} - dedicated_host_group_identity_by_href_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/dedicated_host/groups/0717-bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0' + dedicated_host_group_identity_by_href_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/dedicated_host/groups/0717-bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0' + ) # Construct a model instance of DedicatedHostGroupIdentityByHref by calling from_dict on the json representation - dedicated_host_group_identity_by_href_model = DedicatedHostGroupIdentityByHref.from_dict(dedicated_host_group_identity_by_href_model_json) + dedicated_host_group_identity_by_href_model = DedicatedHostGroupIdentityByHref.from_dict( + dedicated_host_group_identity_by_href_model_json + ) assert dedicated_host_group_identity_by_href_model != False # Construct a model instance of DedicatedHostGroupIdentityByHref by calling from_dict on the json representation - dedicated_host_group_identity_by_href_model_dict = DedicatedHostGroupIdentityByHref.from_dict(dedicated_host_group_identity_by_href_model_json).__dict__ - dedicated_host_group_identity_by_href_model2 = DedicatedHostGroupIdentityByHref(**dedicated_host_group_identity_by_href_model_dict) + dedicated_host_group_identity_by_href_model_dict = DedicatedHostGroupIdentityByHref.from_dict( + dedicated_host_group_identity_by_href_model_json + ).__dict__ + dedicated_host_group_identity_by_href_model2 = DedicatedHostGroupIdentityByHref( + **dedicated_host_group_identity_by_href_model_dict + ) # Verify the model instances are equivalent assert dedicated_host_group_identity_by_href_model == dedicated_host_group_identity_by_href_model2 @@ -82482,12 +89228,18 @@ def test_dedicated_host_group_identity_by_id_serialization(self): dedicated_host_group_identity_by_id_model_json['id'] = '0717-bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0' # Construct a model instance of DedicatedHostGroupIdentityById by calling from_dict on the json representation - dedicated_host_group_identity_by_id_model = DedicatedHostGroupIdentityById.from_dict(dedicated_host_group_identity_by_id_model_json) + dedicated_host_group_identity_by_id_model = DedicatedHostGroupIdentityById.from_dict( + dedicated_host_group_identity_by_id_model_json + ) assert dedicated_host_group_identity_by_id_model != False # Construct a model instance of DedicatedHostGroupIdentityById by calling from_dict on the json representation - dedicated_host_group_identity_by_id_model_dict = DedicatedHostGroupIdentityById.from_dict(dedicated_host_group_identity_by_id_model_json).__dict__ - dedicated_host_group_identity_by_id_model2 = DedicatedHostGroupIdentityById(**dedicated_host_group_identity_by_id_model_dict) + dedicated_host_group_identity_by_id_model_dict = DedicatedHostGroupIdentityById.from_dict( + dedicated_host_group_identity_by_id_model_json + ).__dict__ + dedicated_host_group_identity_by_id_model2 = DedicatedHostGroupIdentityById( + **dedicated_host_group_identity_by_id_model_dict + ) # Verify the model instances are equivalent assert dedicated_host_group_identity_by_id_model == dedicated_host_group_identity_by_id_model2 @@ -82509,15 +89261,23 @@ def test_dedicated_host_profile_identity_by_href_serialization(self): # Construct a json representation of a DedicatedHostProfileIdentityByHref model dedicated_host_profile_identity_by_href_model_json = {} - dedicated_host_profile_identity_by_href_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/dedicated_host/profiles/mx2-host-152x1216' + dedicated_host_profile_identity_by_href_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/dedicated_host/profiles/mx2-host-152x1216' + ) # Construct a model instance of DedicatedHostProfileIdentityByHref by calling from_dict on the json representation - dedicated_host_profile_identity_by_href_model = DedicatedHostProfileIdentityByHref.from_dict(dedicated_host_profile_identity_by_href_model_json) + dedicated_host_profile_identity_by_href_model = DedicatedHostProfileIdentityByHref.from_dict( + dedicated_host_profile_identity_by_href_model_json + ) assert dedicated_host_profile_identity_by_href_model != False # Construct a model instance of DedicatedHostProfileIdentityByHref by calling from_dict on the json representation - dedicated_host_profile_identity_by_href_model_dict = DedicatedHostProfileIdentityByHref.from_dict(dedicated_host_profile_identity_by_href_model_json).__dict__ - dedicated_host_profile_identity_by_href_model2 = DedicatedHostProfileIdentityByHref(**dedicated_host_profile_identity_by_href_model_dict) + dedicated_host_profile_identity_by_href_model_dict = DedicatedHostProfileIdentityByHref.from_dict( + dedicated_host_profile_identity_by_href_model_json + ).__dict__ + dedicated_host_profile_identity_by_href_model2 = DedicatedHostProfileIdentityByHref( + **dedicated_host_profile_identity_by_href_model_dict + ) # Verify the model instances are equivalent assert dedicated_host_profile_identity_by_href_model == dedicated_host_profile_identity_by_href_model2 @@ -82542,12 +89302,18 @@ def test_dedicated_host_profile_identity_by_name_serialization(self): dedicated_host_profile_identity_by_name_model_json['name'] = 'mx2-host-152x1216' # Construct a model instance of DedicatedHostProfileIdentityByName by calling from_dict on the json representation - dedicated_host_profile_identity_by_name_model = DedicatedHostProfileIdentityByName.from_dict(dedicated_host_profile_identity_by_name_model_json) + dedicated_host_profile_identity_by_name_model = DedicatedHostProfileIdentityByName.from_dict( + dedicated_host_profile_identity_by_name_model_json + ) assert dedicated_host_profile_identity_by_name_model != False # Construct a model instance of DedicatedHostProfileIdentityByName by calling from_dict on the json representation - dedicated_host_profile_identity_by_name_model_dict = DedicatedHostProfileIdentityByName.from_dict(dedicated_host_profile_identity_by_name_model_json).__dict__ - dedicated_host_profile_identity_by_name_model2 = DedicatedHostProfileIdentityByName(**dedicated_host_profile_identity_by_name_model_dict) + dedicated_host_profile_identity_by_name_model_dict = DedicatedHostProfileIdentityByName.from_dict( + dedicated_host_profile_identity_by_name_model_json + ).__dict__ + dedicated_host_profile_identity_by_name_model2 = DedicatedHostProfileIdentityByName( + **dedicated_host_profile_identity_by_name_model_dict + ) # Verify the model instances are equivalent assert dedicated_host_profile_identity_by_name_model == dedicated_host_profile_identity_by_name_model2 @@ -82572,12 +89338,18 @@ def test_dedicated_host_profile_memory_dependent_serialization(self): dedicated_host_profile_memory_dependent_model_json['type'] = 'dependent' # Construct a model instance of DedicatedHostProfileMemoryDependent by calling from_dict on the json representation - dedicated_host_profile_memory_dependent_model = DedicatedHostProfileMemoryDependent.from_dict(dedicated_host_profile_memory_dependent_model_json) + dedicated_host_profile_memory_dependent_model = DedicatedHostProfileMemoryDependent.from_dict( + dedicated_host_profile_memory_dependent_model_json + ) assert dedicated_host_profile_memory_dependent_model != False # Construct a model instance of DedicatedHostProfileMemoryDependent by calling from_dict on the json representation - dedicated_host_profile_memory_dependent_model_dict = DedicatedHostProfileMemoryDependent.from_dict(dedicated_host_profile_memory_dependent_model_json).__dict__ - dedicated_host_profile_memory_dependent_model2 = DedicatedHostProfileMemoryDependent(**dedicated_host_profile_memory_dependent_model_dict) + dedicated_host_profile_memory_dependent_model_dict = DedicatedHostProfileMemoryDependent.from_dict( + dedicated_host_profile_memory_dependent_model_json + ).__dict__ + dedicated_host_profile_memory_dependent_model2 = DedicatedHostProfileMemoryDependent( + **dedicated_host_profile_memory_dependent_model_dict + ) # Verify the model instances are equivalent assert dedicated_host_profile_memory_dependent_model == dedicated_host_profile_memory_dependent_model2 @@ -82604,12 +89376,18 @@ def test_dedicated_host_profile_memory_enum_serialization(self): dedicated_host_profile_memory_enum_model_json['values'] = [8, 16, 32] # Construct a model instance of DedicatedHostProfileMemoryEnum by calling from_dict on the json representation - dedicated_host_profile_memory_enum_model = DedicatedHostProfileMemoryEnum.from_dict(dedicated_host_profile_memory_enum_model_json) + dedicated_host_profile_memory_enum_model = DedicatedHostProfileMemoryEnum.from_dict( + dedicated_host_profile_memory_enum_model_json + ) assert dedicated_host_profile_memory_enum_model != False # Construct a model instance of DedicatedHostProfileMemoryEnum by calling from_dict on the json representation - dedicated_host_profile_memory_enum_model_dict = DedicatedHostProfileMemoryEnum.from_dict(dedicated_host_profile_memory_enum_model_json).__dict__ - dedicated_host_profile_memory_enum_model2 = DedicatedHostProfileMemoryEnum(**dedicated_host_profile_memory_enum_model_dict) + dedicated_host_profile_memory_enum_model_dict = DedicatedHostProfileMemoryEnum.from_dict( + dedicated_host_profile_memory_enum_model_json + ).__dict__ + dedicated_host_profile_memory_enum_model2 = DedicatedHostProfileMemoryEnum( + **dedicated_host_profile_memory_enum_model_dict + ) # Verify the model instances are equivalent assert dedicated_host_profile_memory_enum_model == dedicated_host_profile_memory_enum_model2 @@ -82635,12 +89413,18 @@ def test_dedicated_host_profile_memory_fixed_serialization(self): dedicated_host_profile_memory_fixed_model_json['value'] = 16 # Construct a model instance of DedicatedHostProfileMemoryFixed by calling from_dict on the json representation - dedicated_host_profile_memory_fixed_model = DedicatedHostProfileMemoryFixed.from_dict(dedicated_host_profile_memory_fixed_model_json) + dedicated_host_profile_memory_fixed_model = DedicatedHostProfileMemoryFixed.from_dict( + dedicated_host_profile_memory_fixed_model_json + ) assert dedicated_host_profile_memory_fixed_model != False # Construct a model instance of DedicatedHostProfileMemoryFixed by calling from_dict on the json representation - dedicated_host_profile_memory_fixed_model_dict = DedicatedHostProfileMemoryFixed.from_dict(dedicated_host_profile_memory_fixed_model_json).__dict__ - dedicated_host_profile_memory_fixed_model2 = DedicatedHostProfileMemoryFixed(**dedicated_host_profile_memory_fixed_model_dict) + dedicated_host_profile_memory_fixed_model_dict = DedicatedHostProfileMemoryFixed.from_dict( + dedicated_host_profile_memory_fixed_model_json + ).__dict__ + dedicated_host_profile_memory_fixed_model2 = DedicatedHostProfileMemoryFixed( + **dedicated_host_profile_memory_fixed_model_dict + ) # Verify the model instances are equivalent assert dedicated_host_profile_memory_fixed_model == dedicated_host_profile_memory_fixed_model2 @@ -82669,12 +89453,18 @@ def test_dedicated_host_profile_memory_range_serialization(self): dedicated_host_profile_memory_range_model_json['type'] = 'range' # Construct a model instance of DedicatedHostProfileMemoryRange by calling from_dict on the json representation - dedicated_host_profile_memory_range_model = DedicatedHostProfileMemoryRange.from_dict(dedicated_host_profile_memory_range_model_json) + dedicated_host_profile_memory_range_model = DedicatedHostProfileMemoryRange.from_dict( + dedicated_host_profile_memory_range_model_json + ) assert dedicated_host_profile_memory_range_model != False # Construct a model instance of DedicatedHostProfileMemoryRange by calling from_dict on the json representation - dedicated_host_profile_memory_range_model_dict = DedicatedHostProfileMemoryRange.from_dict(dedicated_host_profile_memory_range_model_json).__dict__ - dedicated_host_profile_memory_range_model2 = DedicatedHostProfileMemoryRange(**dedicated_host_profile_memory_range_model_dict) + dedicated_host_profile_memory_range_model_dict = DedicatedHostProfileMemoryRange.from_dict( + dedicated_host_profile_memory_range_model_json + ).__dict__ + dedicated_host_profile_memory_range_model2 = DedicatedHostProfileMemoryRange( + **dedicated_host_profile_memory_range_model_dict + ) # Verify the model instances are equivalent assert dedicated_host_profile_memory_range_model == dedicated_host_profile_memory_range_model2 @@ -82699,12 +89489,18 @@ def test_dedicated_host_profile_socket_dependent_serialization(self): dedicated_host_profile_socket_dependent_model_json['type'] = 'dependent' # Construct a model instance of DedicatedHostProfileSocketDependent by calling from_dict on the json representation - dedicated_host_profile_socket_dependent_model = DedicatedHostProfileSocketDependent.from_dict(dedicated_host_profile_socket_dependent_model_json) + dedicated_host_profile_socket_dependent_model = DedicatedHostProfileSocketDependent.from_dict( + dedicated_host_profile_socket_dependent_model_json + ) assert dedicated_host_profile_socket_dependent_model != False # Construct a model instance of DedicatedHostProfileSocketDependent by calling from_dict on the json representation - dedicated_host_profile_socket_dependent_model_dict = DedicatedHostProfileSocketDependent.from_dict(dedicated_host_profile_socket_dependent_model_json).__dict__ - dedicated_host_profile_socket_dependent_model2 = DedicatedHostProfileSocketDependent(**dedicated_host_profile_socket_dependent_model_dict) + dedicated_host_profile_socket_dependent_model_dict = DedicatedHostProfileSocketDependent.from_dict( + dedicated_host_profile_socket_dependent_model_json + ).__dict__ + dedicated_host_profile_socket_dependent_model2 = DedicatedHostProfileSocketDependent( + **dedicated_host_profile_socket_dependent_model_dict + ) # Verify the model instances are equivalent assert dedicated_host_profile_socket_dependent_model == dedicated_host_profile_socket_dependent_model2 @@ -82731,12 +89527,18 @@ def test_dedicated_host_profile_socket_enum_serialization(self): dedicated_host_profile_socket_enum_model_json['values'] = [2, 4, 8] # Construct a model instance of DedicatedHostProfileSocketEnum by calling from_dict on the json representation - dedicated_host_profile_socket_enum_model = DedicatedHostProfileSocketEnum.from_dict(dedicated_host_profile_socket_enum_model_json) + dedicated_host_profile_socket_enum_model = DedicatedHostProfileSocketEnum.from_dict( + dedicated_host_profile_socket_enum_model_json + ) assert dedicated_host_profile_socket_enum_model != False # Construct a model instance of DedicatedHostProfileSocketEnum by calling from_dict on the json representation - dedicated_host_profile_socket_enum_model_dict = DedicatedHostProfileSocketEnum.from_dict(dedicated_host_profile_socket_enum_model_json).__dict__ - dedicated_host_profile_socket_enum_model2 = DedicatedHostProfileSocketEnum(**dedicated_host_profile_socket_enum_model_dict) + dedicated_host_profile_socket_enum_model_dict = DedicatedHostProfileSocketEnum.from_dict( + dedicated_host_profile_socket_enum_model_json + ).__dict__ + dedicated_host_profile_socket_enum_model2 = DedicatedHostProfileSocketEnum( + **dedicated_host_profile_socket_enum_model_dict + ) # Verify the model instances are equivalent assert dedicated_host_profile_socket_enum_model == dedicated_host_profile_socket_enum_model2 @@ -82762,12 +89564,18 @@ def test_dedicated_host_profile_socket_fixed_serialization(self): dedicated_host_profile_socket_fixed_model_json['value'] = 2 # Construct a model instance of DedicatedHostProfileSocketFixed by calling from_dict on the json representation - dedicated_host_profile_socket_fixed_model = DedicatedHostProfileSocketFixed.from_dict(dedicated_host_profile_socket_fixed_model_json) + dedicated_host_profile_socket_fixed_model = DedicatedHostProfileSocketFixed.from_dict( + dedicated_host_profile_socket_fixed_model_json + ) assert dedicated_host_profile_socket_fixed_model != False # Construct a model instance of DedicatedHostProfileSocketFixed by calling from_dict on the json representation - dedicated_host_profile_socket_fixed_model_dict = DedicatedHostProfileSocketFixed.from_dict(dedicated_host_profile_socket_fixed_model_json).__dict__ - dedicated_host_profile_socket_fixed_model2 = DedicatedHostProfileSocketFixed(**dedicated_host_profile_socket_fixed_model_dict) + dedicated_host_profile_socket_fixed_model_dict = DedicatedHostProfileSocketFixed.from_dict( + dedicated_host_profile_socket_fixed_model_json + ).__dict__ + dedicated_host_profile_socket_fixed_model2 = DedicatedHostProfileSocketFixed( + **dedicated_host_profile_socket_fixed_model_dict + ) # Verify the model instances are equivalent assert dedicated_host_profile_socket_fixed_model == dedicated_host_profile_socket_fixed_model2 @@ -82796,12 +89604,18 @@ def test_dedicated_host_profile_socket_range_serialization(self): dedicated_host_profile_socket_range_model_json['type'] = 'range' # Construct a model instance of DedicatedHostProfileSocketRange by calling from_dict on the json representation - dedicated_host_profile_socket_range_model = DedicatedHostProfileSocketRange.from_dict(dedicated_host_profile_socket_range_model_json) + dedicated_host_profile_socket_range_model = DedicatedHostProfileSocketRange.from_dict( + dedicated_host_profile_socket_range_model_json + ) assert dedicated_host_profile_socket_range_model != False # Construct a model instance of DedicatedHostProfileSocketRange by calling from_dict on the json representation - dedicated_host_profile_socket_range_model_dict = DedicatedHostProfileSocketRange.from_dict(dedicated_host_profile_socket_range_model_json).__dict__ - dedicated_host_profile_socket_range_model2 = DedicatedHostProfileSocketRange(**dedicated_host_profile_socket_range_model_dict) + dedicated_host_profile_socket_range_model_dict = DedicatedHostProfileSocketRange.from_dict( + dedicated_host_profile_socket_range_model_json + ).__dict__ + dedicated_host_profile_socket_range_model2 = DedicatedHostProfileSocketRange( + **dedicated_host_profile_socket_range_model_dict + ) # Verify the model instances are equivalent assert dedicated_host_profile_socket_range_model == dedicated_host_profile_socket_range_model2 @@ -82826,12 +89640,18 @@ def test_dedicated_host_profile_vcpu_dependent_serialization(self): dedicated_host_profile_vcpu_dependent_model_json['type'] = 'dependent' # Construct a model instance of DedicatedHostProfileVCPUDependent by calling from_dict on the json representation - dedicated_host_profile_vcpu_dependent_model = DedicatedHostProfileVCPUDependent.from_dict(dedicated_host_profile_vcpu_dependent_model_json) + dedicated_host_profile_vcpu_dependent_model = DedicatedHostProfileVCPUDependent.from_dict( + dedicated_host_profile_vcpu_dependent_model_json + ) assert dedicated_host_profile_vcpu_dependent_model != False # Construct a model instance of DedicatedHostProfileVCPUDependent by calling from_dict on the json representation - dedicated_host_profile_vcpu_dependent_model_dict = DedicatedHostProfileVCPUDependent.from_dict(dedicated_host_profile_vcpu_dependent_model_json).__dict__ - dedicated_host_profile_vcpu_dependent_model2 = DedicatedHostProfileVCPUDependent(**dedicated_host_profile_vcpu_dependent_model_dict) + dedicated_host_profile_vcpu_dependent_model_dict = DedicatedHostProfileVCPUDependent.from_dict( + dedicated_host_profile_vcpu_dependent_model_json + ).__dict__ + dedicated_host_profile_vcpu_dependent_model2 = DedicatedHostProfileVCPUDependent( + **dedicated_host_profile_vcpu_dependent_model_dict + ) # Verify the model instances are equivalent assert dedicated_host_profile_vcpu_dependent_model == dedicated_host_profile_vcpu_dependent_model2 @@ -82858,12 +89678,18 @@ def test_dedicated_host_profile_vcpu_enum_serialization(self): dedicated_host_profile_vcpu_enum_model_json['values'] = [2, 4, 16] # Construct a model instance of DedicatedHostProfileVCPUEnum by calling from_dict on the json representation - dedicated_host_profile_vcpu_enum_model = DedicatedHostProfileVCPUEnum.from_dict(dedicated_host_profile_vcpu_enum_model_json) + dedicated_host_profile_vcpu_enum_model = DedicatedHostProfileVCPUEnum.from_dict( + dedicated_host_profile_vcpu_enum_model_json + ) assert dedicated_host_profile_vcpu_enum_model != False # Construct a model instance of DedicatedHostProfileVCPUEnum by calling from_dict on the json representation - dedicated_host_profile_vcpu_enum_model_dict = DedicatedHostProfileVCPUEnum.from_dict(dedicated_host_profile_vcpu_enum_model_json).__dict__ - dedicated_host_profile_vcpu_enum_model2 = DedicatedHostProfileVCPUEnum(**dedicated_host_profile_vcpu_enum_model_dict) + dedicated_host_profile_vcpu_enum_model_dict = DedicatedHostProfileVCPUEnum.from_dict( + dedicated_host_profile_vcpu_enum_model_json + ).__dict__ + dedicated_host_profile_vcpu_enum_model2 = DedicatedHostProfileVCPUEnum( + **dedicated_host_profile_vcpu_enum_model_dict + ) # Verify the model instances are equivalent assert dedicated_host_profile_vcpu_enum_model == dedicated_host_profile_vcpu_enum_model2 @@ -82889,12 +89715,18 @@ def test_dedicated_host_profile_vcpu_fixed_serialization(self): dedicated_host_profile_vcpu_fixed_model_json['value'] = 16 # Construct a model instance of DedicatedHostProfileVCPUFixed by calling from_dict on the json representation - dedicated_host_profile_vcpu_fixed_model = DedicatedHostProfileVCPUFixed.from_dict(dedicated_host_profile_vcpu_fixed_model_json) + dedicated_host_profile_vcpu_fixed_model = DedicatedHostProfileVCPUFixed.from_dict( + dedicated_host_profile_vcpu_fixed_model_json + ) assert dedicated_host_profile_vcpu_fixed_model != False # Construct a model instance of DedicatedHostProfileVCPUFixed by calling from_dict on the json representation - dedicated_host_profile_vcpu_fixed_model_dict = DedicatedHostProfileVCPUFixed.from_dict(dedicated_host_profile_vcpu_fixed_model_json).__dict__ - dedicated_host_profile_vcpu_fixed_model2 = DedicatedHostProfileVCPUFixed(**dedicated_host_profile_vcpu_fixed_model_dict) + dedicated_host_profile_vcpu_fixed_model_dict = DedicatedHostProfileVCPUFixed.from_dict( + dedicated_host_profile_vcpu_fixed_model_json + ).__dict__ + dedicated_host_profile_vcpu_fixed_model2 = DedicatedHostProfileVCPUFixed( + **dedicated_host_profile_vcpu_fixed_model_dict + ) # Verify the model instances are equivalent assert dedicated_host_profile_vcpu_fixed_model == dedicated_host_profile_vcpu_fixed_model2 @@ -82923,12 +89755,18 @@ def test_dedicated_host_profile_vcpu_range_serialization(self): dedicated_host_profile_vcpu_range_model_json['type'] = 'range' # Construct a model instance of DedicatedHostProfileVCPURange by calling from_dict on the json representation - dedicated_host_profile_vcpu_range_model = DedicatedHostProfileVCPURange.from_dict(dedicated_host_profile_vcpu_range_model_json) + dedicated_host_profile_vcpu_range_model = DedicatedHostProfileVCPURange.from_dict( + dedicated_host_profile_vcpu_range_model_json + ) assert dedicated_host_profile_vcpu_range_model != False # Construct a model instance of DedicatedHostProfileVCPURange by calling from_dict on the json representation - dedicated_host_profile_vcpu_range_model_dict = DedicatedHostProfileVCPURange.from_dict(dedicated_host_profile_vcpu_range_model_json).__dict__ - dedicated_host_profile_vcpu_range_model2 = DedicatedHostProfileVCPURange(**dedicated_host_profile_vcpu_range_model_dict) + dedicated_host_profile_vcpu_range_model_dict = DedicatedHostProfileVCPURange.from_dict( + dedicated_host_profile_vcpu_range_model_json + ).__dict__ + dedicated_host_profile_vcpu_range_model2 = DedicatedHostProfileVCPURange( + **dedicated_host_profile_vcpu_range_model_dict + ) # Verify the model instances are equivalent assert dedicated_host_profile_vcpu_range_model == dedicated_host_profile_vcpu_range_model2 @@ -82968,19 +89806,35 @@ def test_dedicated_host_prototype_dedicated_host_by_group_serialization(self): dedicated_host_prototype_dedicated_host_by_group_model_json['group'] = dedicated_host_group_identity_model # Construct a model instance of DedicatedHostPrototypeDedicatedHostByGroup by calling from_dict on the json representation - dedicated_host_prototype_dedicated_host_by_group_model = DedicatedHostPrototypeDedicatedHostByGroup.from_dict(dedicated_host_prototype_dedicated_host_by_group_model_json) + dedicated_host_prototype_dedicated_host_by_group_model = DedicatedHostPrototypeDedicatedHostByGroup.from_dict( + dedicated_host_prototype_dedicated_host_by_group_model_json + ) assert dedicated_host_prototype_dedicated_host_by_group_model != False # Construct a model instance of DedicatedHostPrototypeDedicatedHostByGroup by calling from_dict on the json representation - dedicated_host_prototype_dedicated_host_by_group_model_dict = DedicatedHostPrototypeDedicatedHostByGroup.from_dict(dedicated_host_prototype_dedicated_host_by_group_model_json).__dict__ - dedicated_host_prototype_dedicated_host_by_group_model2 = DedicatedHostPrototypeDedicatedHostByGroup(**dedicated_host_prototype_dedicated_host_by_group_model_dict) + dedicated_host_prototype_dedicated_host_by_group_model_dict = ( + DedicatedHostPrototypeDedicatedHostByGroup.from_dict( + dedicated_host_prototype_dedicated_host_by_group_model_json + ).__dict__ + ) + dedicated_host_prototype_dedicated_host_by_group_model2 = DedicatedHostPrototypeDedicatedHostByGroup( + **dedicated_host_prototype_dedicated_host_by_group_model_dict + ) # Verify the model instances are equivalent - assert dedicated_host_prototype_dedicated_host_by_group_model == dedicated_host_prototype_dedicated_host_by_group_model2 + assert ( + dedicated_host_prototype_dedicated_host_by_group_model + == dedicated_host_prototype_dedicated_host_by_group_model2 + ) # Convert model instance back to dict and verify no loss of data - dedicated_host_prototype_dedicated_host_by_group_model_json2 = dedicated_host_prototype_dedicated_host_by_group_model.to_dict() - assert dedicated_host_prototype_dedicated_host_by_group_model_json2 == dedicated_host_prototype_dedicated_host_by_group_model_json + dedicated_host_prototype_dedicated_host_by_group_model_json2 = ( + dedicated_host_prototype_dedicated_host_by_group_model.to_dict() + ) + assert ( + dedicated_host_prototype_dedicated_host_by_group_model_json2 + == dedicated_host_prototype_dedicated_host_by_group_model_json + ) class TestModel_DedicatedHostPrototypeDedicatedHostByZone: @@ -83001,9 +89855,13 @@ def test_dedicated_host_prototype_dedicated_host_by_zone_serialization(self): resource_group_identity_model = {} # ResourceGroupIdentityById resource_group_identity_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' - dedicated_host_group_prototype_dedicated_host_by_zone_context_model = {} # DedicatedHostGroupPrototypeDedicatedHostByZoneContext + dedicated_host_group_prototype_dedicated_host_by_zone_context_model = ( + {} + ) # DedicatedHostGroupPrototypeDedicatedHostByZoneContext dedicated_host_group_prototype_dedicated_host_by_zone_context_model['name'] = 'my-dedicated-host-group' - dedicated_host_group_prototype_dedicated_host_by_zone_context_model['resource_group'] = resource_group_identity_model + dedicated_host_group_prototype_dedicated_host_by_zone_context_model['resource_group'] = ( + resource_group_identity_model + ) zone_identity_model = {} # ZoneIdentityByName zone_identity_model['name'] = 'us-south-1' @@ -83014,23 +89872,41 @@ def test_dedicated_host_prototype_dedicated_host_by_zone_serialization(self): dedicated_host_prototype_dedicated_host_by_zone_model_json['name'] = 'my-host' dedicated_host_prototype_dedicated_host_by_zone_model_json['profile'] = dedicated_host_profile_identity_model dedicated_host_prototype_dedicated_host_by_zone_model_json['resource_group'] = resource_group_identity_model - dedicated_host_prototype_dedicated_host_by_zone_model_json['group'] = dedicated_host_group_prototype_dedicated_host_by_zone_context_model + dedicated_host_prototype_dedicated_host_by_zone_model_json['group'] = ( + dedicated_host_group_prototype_dedicated_host_by_zone_context_model + ) dedicated_host_prototype_dedicated_host_by_zone_model_json['zone'] = zone_identity_model # Construct a model instance of DedicatedHostPrototypeDedicatedHostByZone by calling from_dict on the json representation - dedicated_host_prototype_dedicated_host_by_zone_model = DedicatedHostPrototypeDedicatedHostByZone.from_dict(dedicated_host_prototype_dedicated_host_by_zone_model_json) + dedicated_host_prototype_dedicated_host_by_zone_model = DedicatedHostPrototypeDedicatedHostByZone.from_dict( + dedicated_host_prototype_dedicated_host_by_zone_model_json + ) assert dedicated_host_prototype_dedicated_host_by_zone_model != False # Construct a model instance of DedicatedHostPrototypeDedicatedHostByZone by calling from_dict on the json representation - dedicated_host_prototype_dedicated_host_by_zone_model_dict = DedicatedHostPrototypeDedicatedHostByZone.from_dict(dedicated_host_prototype_dedicated_host_by_zone_model_json).__dict__ - dedicated_host_prototype_dedicated_host_by_zone_model2 = DedicatedHostPrototypeDedicatedHostByZone(**dedicated_host_prototype_dedicated_host_by_zone_model_dict) + dedicated_host_prototype_dedicated_host_by_zone_model_dict = ( + DedicatedHostPrototypeDedicatedHostByZone.from_dict( + dedicated_host_prototype_dedicated_host_by_zone_model_json + ).__dict__ + ) + dedicated_host_prototype_dedicated_host_by_zone_model2 = DedicatedHostPrototypeDedicatedHostByZone( + **dedicated_host_prototype_dedicated_host_by_zone_model_dict + ) # Verify the model instances are equivalent - assert dedicated_host_prototype_dedicated_host_by_zone_model == dedicated_host_prototype_dedicated_host_by_zone_model2 + assert ( + dedicated_host_prototype_dedicated_host_by_zone_model + == dedicated_host_prototype_dedicated_host_by_zone_model2 + ) # Convert model instance back to dict and verify no loss of data - dedicated_host_prototype_dedicated_host_by_zone_model_json2 = dedicated_host_prototype_dedicated_host_by_zone_model.to_dict() - assert dedicated_host_prototype_dedicated_host_by_zone_model_json2 == dedicated_host_prototype_dedicated_host_by_zone_model_json + dedicated_host_prototype_dedicated_host_by_zone_model_json2 = ( + dedicated_host_prototype_dedicated_host_by_zone_model.to_dict() + ) + assert ( + dedicated_host_prototype_dedicated_host_by_zone_model_json2 + == dedicated_host_prototype_dedicated_host_by_zone_model_json + ) class TestModel_EncryptionKeyIdentityByCRN: @@ -83045,14 +89921,20 @@ def test_encryption_key_identity_by_crn_serialization(self): # Construct a json representation of a EncryptionKeyIdentityByCRN model encryption_key_identity_by_crn_model_json = {} - encryption_key_identity_by_crn_model_json['crn'] = 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + encryption_key_identity_by_crn_model_json['crn'] = ( + 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + ) # Construct a model instance of EncryptionKeyIdentityByCRN by calling from_dict on the json representation - encryption_key_identity_by_crn_model = EncryptionKeyIdentityByCRN.from_dict(encryption_key_identity_by_crn_model_json) + encryption_key_identity_by_crn_model = EncryptionKeyIdentityByCRN.from_dict( + encryption_key_identity_by_crn_model_json + ) assert encryption_key_identity_by_crn_model != False # Construct a model instance of EncryptionKeyIdentityByCRN by calling from_dict on the json representation - encryption_key_identity_by_crn_model_dict = EncryptionKeyIdentityByCRN.from_dict(encryption_key_identity_by_crn_model_json).__dict__ + encryption_key_identity_by_crn_model_dict = EncryptionKeyIdentityByCRN.from_dict( + encryption_key_identity_by_crn_model_json + ).__dict__ encryption_key_identity_by_crn_model2 = EncryptionKeyIdentityByCRN(**encryption_key_identity_by_crn_model_dict) # Verify the model instances are equivalent @@ -83086,19 +89968,39 @@ def test_endpoint_gateway_reserved_ip_reserved_ip_prototype_target_context_seria endpoint_gateway_reserved_ip_reserved_ip_prototype_target_context_model_json['subnet'] = subnet_identity_model # Construct a model instance of EndpointGatewayReservedIPReservedIPPrototypeTargetContext by calling from_dict on the json representation - endpoint_gateway_reserved_ip_reserved_ip_prototype_target_context_model = EndpointGatewayReservedIPReservedIPPrototypeTargetContext.from_dict(endpoint_gateway_reserved_ip_reserved_ip_prototype_target_context_model_json) + endpoint_gateway_reserved_ip_reserved_ip_prototype_target_context_model = ( + EndpointGatewayReservedIPReservedIPPrototypeTargetContext.from_dict( + endpoint_gateway_reserved_ip_reserved_ip_prototype_target_context_model_json + ) + ) assert endpoint_gateway_reserved_ip_reserved_ip_prototype_target_context_model != False # Construct a model instance of EndpointGatewayReservedIPReservedIPPrototypeTargetContext by calling from_dict on the json representation - endpoint_gateway_reserved_ip_reserved_ip_prototype_target_context_model_dict = EndpointGatewayReservedIPReservedIPPrototypeTargetContext.from_dict(endpoint_gateway_reserved_ip_reserved_ip_prototype_target_context_model_json).__dict__ - endpoint_gateway_reserved_ip_reserved_ip_prototype_target_context_model2 = EndpointGatewayReservedIPReservedIPPrototypeTargetContext(**endpoint_gateway_reserved_ip_reserved_ip_prototype_target_context_model_dict) + endpoint_gateway_reserved_ip_reserved_ip_prototype_target_context_model_dict = ( + EndpointGatewayReservedIPReservedIPPrototypeTargetContext.from_dict( + endpoint_gateway_reserved_ip_reserved_ip_prototype_target_context_model_json + ).__dict__ + ) + endpoint_gateway_reserved_ip_reserved_ip_prototype_target_context_model2 = ( + EndpointGatewayReservedIPReservedIPPrototypeTargetContext( + **endpoint_gateway_reserved_ip_reserved_ip_prototype_target_context_model_dict + ) + ) # Verify the model instances are equivalent - assert endpoint_gateway_reserved_ip_reserved_ip_prototype_target_context_model == endpoint_gateway_reserved_ip_reserved_ip_prototype_target_context_model2 + assert ( + endpoint_gateway_reserved_ip_reserved_ip_prototype_target_context_model + == endpoint_gateway_reserved_ip_reserved_ip_prototype_target_context_model2 + ) # Convert model instance back to dict and verify no loss of data - endpoint_gateway_reserved_ip_reserved_ip_prototype_target_context_model_json2 = endpoint_gateway_reserved_ip_reserved_ip_prototype_target_context_model.to_dict() - assert endpoint_gateway_reserved_ip_reserved_ip_prototype_target_context_model_json2 == endpoint_gateway_reserved_ip_reserved_ip_prototype_target_context_model_json + endpoint_gateway_reserved_ip_reserved_ip_prototype_target_context_model_json2 = ( + endpoint_gateway_reserved_ip_reserved_ip_prototype_target_context_model.to_dict() + ) + assert ( + endpoint_gateway_reserved_ip_reserved_ip_prototype_target_context_model_json2 + == endpoint_gateway_reserved_ip_reserved_ip_prototype_target_context_model_json + ) class TestModel_EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypePrivatePathServiceGatewayPrototype: @@ -83106,30 +90008,55 @@ class TestModel_EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypeP Test Class for EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypePrivatePathServiceGatewayPrototype """ - def test_endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_private_path_service_gateway_prototype_serialization(self): + def test_endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_private_path_service_gateway_prototype_serialization( + self, + ): """ Test serialization/deserialization for EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypePrivatePathServiceGatewayPrototype """ # Construct a json representation of a EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypePrivatePathServiceGatewayPrototype model - endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_private_path_service_gateway_prototype_model_json = {} - endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_private_path_service_gateway_prototype_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::private-path-service-gateway:r134-fb880975-db45-4459-8548-64e3995ac213' - endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_private_path_service_gateway_prototype_model_json['resource_type'] = 'private_path_service_gateway' + endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_private_path_service_gateway_prototype_model_json = ( + {} + ) + endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_private_path_service_gateway_prototype_model_json[ + 'crn' + ] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::private-path-service-gateway:r134-fb880975-db45-4459-8548-64e3995ac213' + endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_private_path_service_gateway_prototype_model_json[ + 'resource_type' + ] = 'private_path_service_gateway' # Construct a model instance of EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypePrivatePathServiceGatewayPrototype by calling from_dict on the json representation - endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_private_path_service_gateway_prototype_model = EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypePrivatePathServiceGatewayPrototype.from_dict(endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_private_path_service_gateway_prototype_model_json) - assert endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_private_path_service_gateway_prototype_model != False + endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_private_path_service_gateway_prototype_model = EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypePrivatePathServiceGatewayPrototype.from_dict( + endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_private_path_service_gateway_prototype_model_json + ) + assert ( + endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_private_path_service_gateway_prototype_model + != False + ) # Construct a model instance of EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypePrivatePathServiceGatewayPrototype by calling from_dict on the json representation - endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_private_path_service_gateway_prototype_model_dict = EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypePrivatePathServiceGatewayPrototype.from_dict(endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_private_path_service_gateway_prototype_model_json).__dict__ - endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_private_path_service_gateway_prototype_model2 = EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypePrivatePathServiceGatewayPrototype(**endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_private_path_service_gateway_prototype_model_dict) + endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_private_path_service_gateway_prototype_model_dict = EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypePrivatePathServiceGatewayPrototype.from_dict( + endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_private_path_service_gateway_prototype_model_json + ).__dict__ + endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_private_path_service_gateway_prototype_model2 = EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypePrivatePathServiceGatewayPrototype( + **endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_private_path_service_gateway_prototype_model_dict + ) # Verify the model instances are equivalent - assert endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_private_path_service_gateway_prototype_model == endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_private_path_service_gateway_prototype_model2 + assert ( + endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_private_path_service_gateway_prototype_model + == endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_private_path_service_gateway_prototype_model2 + ) # Convert model instance back to dict and verify no loss of data - endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_private_path_service_gateway_prototype_model_json2 = endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_private_path_service_gateway_prototype_model.to_dict() - assert endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_private_path_service_gateway_prototype_model_json2 == endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_private_path_service_gateway_prototype_model_json + endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_private_path_service_gateway_prototype_model_json2 = ( + endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_private_path_service_gateway_prototype_model.to_dict() + ) + assert ( + endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_private_path_service_gateway_prototype_model_json2 + == endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_private_path_service_gateway_prototype_model_json + ) class TestModel_EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypeProviderCloudServicePrototype: @@ -83137,30 +90064,55 @@ class TestModel_EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypeP Test Class for EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypeProviderCloudServicePrototype """ - def test_endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_provider_cloud_service_prototype_serialization(self): + def test_endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_provider_cloud_service_prototype_serialization( + self, + ): """ Test serialization/deserialization for EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypeProviderCloudServicePrototype """ # Construct a json representation of a EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypeProviderCloudServicePrototype model - endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_provider_cloud_service_prototype_model_json = {} - endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_provider_cloud_service_prototype_model_json['crn'] = 'crn:v1:bluemix:public:cloudant:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:3527280b-9327-4411-8020-591092e60353::' - endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_provider_cloud_service_prototype_model_json['resource_type'] = 'provider_cloud_service' + endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_provider_cloud_service_prototype_model_json = ( + {} + ) + endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_provider_cloud_service_prototype_model_json[ + 'crn' + ] = 'crn:v1:bluemix:public:cloudant:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:3527280b-9327-4411-8020-591092e60353::' + endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_provider_cloud_service_prototype_model_json[ + 'resource_type' + ] = 'provider_cloud_service' # Construct a model instance of EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypeProviderCloudServicePrototype by calling from_dict on the json representation - endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_provider_cloud_service_prototype_model = EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypeProviderCloudServicePrototype.from_dict(endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_provider_cloud_service_prototype_model_json) - assert endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_provider_cloud_service_prototype_model != False + endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_provider_cloud_service_prototype_model = EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypeProviderCloudServicePrototype.from_dict( + endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_provider_cloud_service_prototype_model_json + ) + assert ( + endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_provider_cloud_service_prototype_model + != False + ) # Construct a model instance of EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypeProviderCloudServicePrototype by calling from_dict on the json representation - endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_provider_cloud_service_prototype_model_dict = EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypeProviderCloudServicePrototype.from_dict(endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_provider_cloud_service_prototype_model_json).__dict__ - endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_provider_cloud_service_prototype_model2 = EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypeProviderCloudServicePrototype(**endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_provider_cloud_service_prototype_model_dict) + endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_provider_cloud_service_prototype_model_dict = EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypeProviderCloudServicePrototype.from_dict( + endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_provider_cloud_service_prototype_model_json + ).__dict__ + endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_provider_cloud_service_prototype_model2 = EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypeProviderCloudServicePrototype( + **endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_provider_cloud_service_prototype_model_dict + ) # Verify the model instances are equivalent - assert endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_provider_cloud_service_prototype_model == endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_provider_cloud_service_prototype_model2 + assert ( + endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_provider_cloud_service_prototype_model + == endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_provider_cloud_service_prototype_model2 + ) # Convert model instance back to dict and verify no loss of data - endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_provider_cloud_service_prototype_model_json2 = endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_provider_cloud_service_prototype_model.to_dict() - assert endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_provider_cloud_service_prototype_model_json2 == endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_provider_cloud_service_prototype_model_json + endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_provider_cloud_service_prototype_model_json2 = ( + endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_provider_cloud_service_prototype_model.to_dict() + ) + assert ( + endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_provider_cloud_service_prototype_model_json2 + == endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_provider_cloud_service_prototype_model_json + ) class TestModel_EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypeProviderInfrastructureServicePrototype: @@ -83168,30 +90120,55 @@ class TestModel_EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypeP Test Class for EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypeProviderInfrastructureServicePrototype """ - def test_endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_provider_infrastructure_service_prototype_serialization(self): + def test_endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_provider_infrastructure_service_prototype_serialization( + self, + ): """ Test serialization/deserialization for EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypeProviderInfrastructureServicePrototype """ # Construct a json representation of a EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypeProviderInfrastructureServicePrototype model - endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_provider_infrastructure_service_prototype_model_json = {} - endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_provider_infrastructure_service_prototype_model_json['name'] = 'ibm-ntp-server' - endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_provider_infrastructure_service_prototype_model_json['resource_type'] = 'provider_infrastructure_service' + endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_provider_infrastructure_service_prototype_model_json = ( + {} + ) + endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_provider_infrastructure_service_prototype_model_json[ + 'name' + ] = 'ibm-ntp-server' + endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_provider_infrastructure_service_prototype_model_json[ + 'resource_type' + ] = 'provider_infrastructure_service' # Construct a model instance of EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypeProviderInfrastructureServicePrototype by calling from_dict on the json representation - endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_provider_infrastructure_service_prototype_model = EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypeProviderInfrastructureServicePrototype.from_dict(endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_provider_infrastructure_service_prototype_model_json) - assert endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_provider_infrastructure_service_prototype_model != False + endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_provider_infrastructure_service_prototype_model = EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypeProviderInfrastructureServicePrototype.from_dict( + endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_provider_infrastructure_service_prototype_model_json + ) + assert ( + endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_provider_infrastructure_service_prototype_model + != False + ) # Construct a model instance of EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypeProviderInfrastructureServicePrototype by calling from_dict on the json representation - endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_provider_infrastructure_service_prototype_model_dict = EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypeProviderInfrastructureServicePrototype.from_dict(endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_provider_infrastructure_service_prototype_model_json).__dict__ - endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_provider_infrastructure_service_prototype_model2 = EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypeProviderInfrastructureServicePrototype(**endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_provider_infrastructure_service_prototype_model_dict) + endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_provider_infrastructure_service_prototype_model_dict = EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypeProviderInfrastructureServicePrototype.from_dict( + endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_provider_infrastructure_service_prototype_model_json + ).__dict__ + endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_provider_infrastructure_service_prototype_model2 = EndpointGatewayTargetPrototypeEndpointGatewayTargetResourceTypeProviderInfrastructureServicePrototype( + **endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_provider_infrastructure_service_prototype_model_dict + ) # Verify the model instances are equivalent - assert endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_provider_infrastructure_service_prototype_model == endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_provider_infrastructure_service_prototype_model2 + assert ( + endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_provider_infrastructure_service_prototype_model + == endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_provider_infrastructure_service_prototype_model2 + ) # Convert model instance back to dict and verify no loss of data - endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_provider_infrastructure_service_prototype_model_json2 = endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_provider_infrastructure_service_prototype_model.to_dict() - assert endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_provider_infrastructure_service_prototype_model_json2 == endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_provider_infrastructure_service_prototype_model_json + endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_provider_infrastructure_service_prototype_model_json2 = ( + endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_provider_infrastructure_service_prototype_model.to_dict() + ) + assert ( + endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_provider_infrastructure_service_prototype_model_json2 + == endpoint_gateway_target_prototype_endpoint_gateway_target_resource_type_provider_infrastructure_service_prototype_model_json + ) class TestModel_EndpointGatewayTargetPrivatePathServiceGatewayReference: @@ -83223,28 +90200,60 @@ def test_endpoint_gateway_target_private_path_service_gateway_reference_serializ # Construct a json representation of a EndpointGatewayTargetPrivatePathServiceGatewayReference model endpoint_gateway_target_private_path_service_gateway_reference_model_json = {} - endpoint_gateway_target_private_path_service_gateway_reference_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::private-path-service-gateway:r134-fb880975-db45-4459-8548-64e3995ac213' + endpoint_gateway_target_private_path_service_gateway_reference_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::private-path-service-gateway:r134-fb880975-db45-4459-8548-64e3995ac213' + ) endpoint_gateway_target_private_path_service_gateway_reference_model_json['deleted'] = deleted_model - endpoint_gateway_target_private_path_service_gateway_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/private_path_service_gateways/r134-fb880975-db45-4459-8548-64e3995ac213' - endpoint_gateway_target_private_path_service_gateway_reference_model_json['id'] = 'r134-fb880975-db45-4459-8548-64e3995ac213' - endpoint_gateway_target_private_path_service_gateway_reference_model_json['name'] = 'my-private-path-service-gateway' - endpoint_gateway_target_private_path_service_gateway_reference_model_json['remote'] = private_path_service_gateway_remote_model - endpoint_gateway_target_private_path_service_gateway_reference_model_json['resource_type'] = 'private_path_service_gateway' + endpoint_gateway_target_private_path_service_gateway_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/private_path_service_gateways/r134-fb880975-db45-4459-8548-64e3995ac213' + ) + endpoint_gateway_target_private_path_service_gateway_reference_model_json['id'] = ( + 'r134-fb880975-db45-4459-8548-64e3995ac213' + ) + endpoint_gateway_target_private_path_service_gateway_reference_model_json['name'] = ( + 'my-private-path-service-gateway' + ) + endpoint_gateway_target_private_path_service_gateway_reference_model_json['remote'] = ( + private_path_service_gateway_remote_model + ) + endpoint_gateway_target_private_path_service_gateway_reference_model_json['resource_type'] = ( + 'private_path_service_gateway' + ) # Construct a model instance of EndpointGatewayTargetPrivatePathServiceGatewayReference by calling from_dict on the json representation - endpoint_gateway_target_private_path_service_gateway_reference_model = EndpointGatewayTargetPrivatePathServiceGatewayReference.from_dict(endpoint_gateway_target_private_path_service_gateway_reference_model_json) + endpoint_gateway_target_private_path_service_gateway_reference_model = ( + EndpointGatewayTargetPrivatePathServiceGatewayReference.from_dict( + endpoint_gateway_target_private_path_service_gateway_reference_model_json + ) + ) assert endpoint_gateway_target_private_path_service_gateway_reference_model != False # Construct a model instance of EndpointGatewayTargetPrivatePathServiceGatewayReference by calling from_dict on the json representation - endpoint_gateway_target_private_path_service_gateway_reference_model_dict = EndpointGatewayTargetPrivatePathServiceGatewayReference.from_dict(endpoint_gateway_target_private_path_service_gateway_reference_model_json).__dict__ - endpoint_gateway_target_private_path_service_gateway_reference_model2 = EndpointGatewayTargetPrivatePathServiceGatewayReference(**endpoint_gateway_target_private_path_service_gateway_reference_model_dict) + endpoint_gateway_target_private_path_service_gateway_reference_model_dict = ( + EndpointGatewayTargetPrivatePathServiceGatewayReference.from_dict( + endpoint_gateway_target_private_path_service_gateway_reference_model_json + ).__dict__ + ) + endpoint_gateway_target_private_path_service_gateway_reference_model2 = ( + EndpointGatewayTargetPrivatePathServiceGatewayReference( + **endpoint_gateway_target_private_path_service_gateway_reference_model_dict + ) + ) # Verify the model instances are equivalent - assert endpoint_gateway_target_private_path_service_gateway_reference_model == endpoint_gateway_target_private_path_service_gateway_reference_model2 + assert ( + endpoint_gateway_target_private_path_service_gateway_reference_model + == endpoint_gateway_target_private_path_service_gateway_reference_model2 + ) # Convert model instance back to dict and verify no loss of data - endpoint_gateway_target_private_path_service_gateway_reference_model_json2 = endpoint_gateway_target_private_path_service_gateway_reference_model.to_dict() - assert endpoint_gateway_target_private_path_service_gateway_reference_model_json2 == endpoint_gateway_target_private_path_service_gateway_reference_model_json + endpoint_gateway_target_private_path_service_gateway_reference_model_json2 = ( + endpoint_gateway_target_private_path_service_gateway_reference_model.to_dict() + ) + assert ( + endpoint_gateway_target_private_path_service_gateway_reference_model_json2 + == endpoint_gateway_target_private_path_service_gateway_reference_model_json + ) class TestModel_EndpointGatewayTargetProviderCloudServiceReference: @@ -83259,23 +90268,45 @@ def test_endpoint_gateway_target_provider_cloud_service_reference_serialization( # Construct a json representation of a EndpointGatewayTargetProviderCloudServiceReference model endpoint_gateway_target_provider_cloud_service_reference_model_json = {} - endpoint_gateway_target_provider_cloud_service_reference_model_json['crn'] = 'crn:v1:bluemix:public:cloudant:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:3527280b-9327-4411-8020-591092e60353::' + endpoint_gateway_target_provider_cloud_service_reference_model_json['crn'] = ( + 'crn:v1:bluemix:public:cloudant:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:3527280b-9327-4411-8020-591092e60353::' + ) endpoint_gateway_target_provider_cloud_service_reference_model_json['resource_type'] = 'provider_cloud_service' # Construct a model instance of EndpointGatewayTargetProviderCloudServiceReference by calling from_dict on the json representation - endpoint_gateway_target_provider_cloud_service_reference_model = EndpointGatewayTargetProviderCloudServiceReference.from_dict(endpoint_gateway_target_provider_cloud_service_reference_model_json) + endpoint_gateway_target_provider_cloud_service_reference_model = ( + EndpointGatewayTargetProviderCloudServiceReference.from_dict( + endpoint_gateway_target_provider_cloud_service_reference_model_json + ) + ) assert endpoint_gateway_target_provider_cloud_service_reference_model != False # Construct a model instance of EndpointGatewayTargetProviderCloudServiceReference by calling from_dict on the json representation - endpoint_gateway_target_provider_cloud_service_reference_model_dict = EndpointGatewayTargetProviderCloudServiceReference.from_dict(endpoint_gateway_target_provider_cloud_service_reference_model_json).__dict__ - endpoint_gateway_target_provider_cloud_service_reference_model2 = EndpointGatewayTargetProviderCloudServiceReference(**endpoint_gateway_target_provider_cloud_service_reference_model_dict) + endpoint_gateway_target_provider_cloud_service_reference_model_dict = ( + EndpointGatewayTargetProviderCloudServiceReference.from_dict( + endpoint_gateway_target_provider_cloud_service_reference_model_json + ).__dict__ + ) + endpoint_gateway_target_provider_cloud_service_reference_model2 = ( + EndpointGatewayTargetProviderCloudServiceReference( + **endpoint_gateway_target_provider_cloud_service_reference_model_dict + ) + ) # Verify the model instances are equivalent - assert endpoint_gateway_target_provider_cloud_service_reference_model == endpoint_gateway_target_provider_cloud_service_reference_model2 + assert ( + endpoint_gateway_target_provider_cloud_service_reference_model + == endpoint_gateway_target_provider_cloud_service_reference_model2 + ) # Convert model instance back to dict and verify no loss of data - endpoint_gateway_target_provider_cloud_service_reference_model_json2 = endpoint_gateway_target_provider_cloud_service_reference_model.to_dict() - assert endpoint_gateway_target_provider_cloud_service_reference_model_json2 == endpoint_gateway_target_provider_cloud_service_reference_model_json + endpoint_gateway_target_provider_cloud_service_reference_model_json2 = ( + endpoint_gateway_target_provider_cloud_service_reference_model.to_dict() + ) + assert ( + endpoint_gateway_target_provider_cloud_service_reference_model_json2 + == endpoint_gateway_target_provider_cloud_service_reference_model_json + ) class TestModel_EndpointGatewayTargetProviderInfrastructureServiceReference: @@ -83291,22 +90322,44 @@ def test_endpoint_gateway_target_provider_infrastructure_service_reference_seria # Construct a json representation of a EndpointGatewayTargetProviderInfrastructureServiceReference model endpoint_gateway_target_provider_infrastructure_service_reference_model_json = {} endpoint_gateway_target_provider_infrastructure_service_reference_model_json['name'] = 'ibm-ntp-server' - endpoint_gateway_target_provider_infrastructure_service_reference_model_json['resource_type'] = 'provider_infrastructure_service' + endpoint_gateway_target_provider_infrastructure_service_reference_model_json['resource_type'] = ( + 'provider_infrastructure_service' + ) # Construct a model instance of EndpointGatewayTargetProviderInfrastructureServiceReference by calling from_dict on the json representation - endpoint_gateway_target_provider_infrastructure_service_reference_model = EndpointGatewayTargetProviderInfrastructureServiceReference.from_dict(endpoint_gateway_target_provider_infrastructure_service_reference_model_json) + endpoint_gateway_target_provider_infrastructure_service_reference_model = ( + EndpointGatewayTargetProviderInfrastructureServiceReference.from_dict( + endpoint_gateway_target_provider_infrastructure_service_reference_model_json + ) + ) assert endpoint_gateway_target_provider_infrastructure_service_reference_model != False # Construct a model instance of EndpointGatewayTargetProviderInfrastructureServiceReference by calling from_dict on the json representation - endpoint_gateway_target_provider_infrastructure_service_reference_model_dict = EndpointGatewayTargetProviderInfrastructureServiceReference.from_dict(endpoint_gateway_target_provider_infrastructure_service_reference_model_json).__dict__ - endpoint_gateway_target_provider_infrastructure_service_reference_model2 = EndpointGatewayTargetProviderInfrastructureServiceReference(**endpoint_gateway_target_provider_infrastructure_service_reference_model_dict) + endpoint_gateway_target_provider_infrastructure_service_reference_model_dict = ( + EndpointGatewayTargetProviderInfrastructureServiceReference.from_dict( + endpoint_gateway_target_provider_infrastructure_service_reference_model_json + ).__dict__ + ) + endpoint_gateway_target_provider_infrastructure_service_reference_model2 = ( + EndpointGatewayTargetProviderInfrastructureServiceReference( + **endpoint_gateway_target_provider_infrastructure_service_reference_model_dict + ) + ) # Verify the model instances are equivalent - assert endpoint_gateway_target_provider_infrastructure_service_reference_model == endpoint_gateway_target_provider_infrastructure_service_reference_model2 + assert ( + endpoint_gateway_target_provider_infrastructure_service_reference_model + == endpoint_gateway_target_provider_infrastructure_service_reference_model2 + ) # Convert model instance back to dict and verify no loss of data - endpoint_gateway_target_provider_infrastructure_service_reference_model_json2 = endpoint_gateway_target_provider_infrastructure_service_reference_model.to_dict() - assert endpoint_gateway_target_provider_infrastructure_service_reference_model_json2 == endpoint_gateway_target_provider_infrastructure_service_reference_model_json + endpoint_gateway_target_provider_infrastructure_service_reference_model_json2 = ( + endpoint_gateway_target_provider_infrastructure_service_reference_model.to_dict() + ) + assert ( + endpoint_gateway_target_provider_infrastructure_service_reference_model_json2 + == endpoint_gateway_target_provider_infrastructure_service_reference_model_json + ) class TestModel_FloatingIPPrototypeFloatingIPByTarget: @@ -83324,7 +90377,9 @@ def test_floating_ip_prototype_floating_ip_by_target_serialization(self): resource_group_identity_model = {} # ResourceGroupIdentityById resource_group_identity_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' - floating_ip_target_prototype_model = {} # FloatingIPTargetPrototypeBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityById + floating_ip_target_prototype_model = ( + {} + ) # FloatingIPTargetPrototypeBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityById floating_ip_target_prototype_model['id'] = '0717-da8c43ec-b6ca-4bd2-871e-72e288c66ee6' # Construct a json representation of a FloatingIPPrototypeFloatingIPByTarget model @@ -83334,19 +90389,30 @@ def test_floating_ip_prototype_floating_ip_by_target_serialization(self): floating_ip_prototype_floating_ip_by_target_model_json['target'] = floating_ip_target_prototype_model # Construct a model instance of FloatingIPPrototypeFloatingIPByTarget by calling from_dict on the json representation - floating_ip_prototype_floating_ip_by_target_model = FloatingIPPrototypeFloatingIPByTarget.from_dict(floating_ip_prototype_floating_ip_by_target_model_json) + floating_ip_prototype_floating_ip_by_target_model = FloatingIPPrototypeFloatingIPByTarget.from_dict( + floating_ip_prototype_floating_ip_by_target_model_json + ) assert floating_ip_prototype_floating_ip_by_target_model != False # Construct a model instance of FloatingIPPrototypeFloatingIPByTarget by calling from_dict on the json representation - floating_ip_prototype_floating_ip_by_target_model_dict = FloatingIPPrototypeFloatingIPByTarget.from_dict(floating_ip_prototype_floating_ip_by_target_model_json).__dict__ - floating_ip_prototype_floating_ip_by_target_model2 = FloatingIPPrototypeFloatingIPByTarget(**floating_ip_prototype_floating_ip_by_target_model_dict) + floating_ip_prototype_floating_ip_by_target_model_dict = FloatingIPPrototypeFloatingIPByTarget.from_dict( + floating_ip_prototype_floating_ip_by_target_model_json + ).__dict__ + floating_ip_prototype_floating_ip_by_target_model2 = FloatingIPPrototypeFloatingIPByTarget( + **floating_ip_prototype_floating_ip_by_target_model_dict + ) # Verify the model instances are equivalent assert floating_ip_prototype_floating_ip_by_target_model == floating_ip_prototype_floating_ip_by_target_model2 # Convert model instance back to dict and verify no loss of data - floating_ip_prototype_floating_ip_by_target_model_json2 = floating_ip_prototype_floating_ip_by_target_model.to_dict() - assert floating_ip_prototype_floating_ip_by_target_model_json2 == floating_ip_prototype_floating_ip_by_target_model_json + floating_ip_prototype_floating_ip_by_target_model_json2 = ( + floating_ip_prototype_floating_ip_by_target_model.to_dict() + ) + assert ( + floating_ip_prototype_floating_ip_by_target_model_json2 + == floating_ip_prototype_floating_ip_by_target_model_json + ) class TestModel_FloatingIPPrototypeFloatingIPByZone: @@ -83374,19 +90440,30 @@ def test_floating_ip_prototype_floating_ip_by_zone_serialization(self): floating_ip_prototype_floating_ip_by_zone_model_json['zone'] = zone_identity_model # Construct a model instance of FloatingIPPrototypeFloatingIPByZone by calling from_dict on the json representation - floating_ip_prototype_floating_ip_by_zone_model = FloatingIPPrototypeFloatingIPByZone.from_dict(floating_ip_prototype_floating_ip_by_zone_model_json) + floating_ip_prototype_floating_ip_by_zone_model = FloatingIPPrototypeFloatingIPByZone.from_dict( + floating_ip_prototype_floating_ip_by_zone_model_json + ) assert floating_ip_prototype_floating_ip_by_zone_model != False # Construct a model instance of FloatingIPPrototypeFloatingIPByZone by calling from_dict on the json representation - floating_ip_prototype_floating_ip_by_zone_model_dict = FloatingIPPrototypeFloatingIPByZone.from_dict(floating_ip_prototype_floating_ip_by_zone_model_json).__dict__ - floating_ip_prototype_floating_ip_by_zone_model2 = FloatingIPPrototypeFloatingIPByZone(**floating_ip_prototype_floating_ip_by_zone_model_dict) + floating_ip_prototype_floating_ip_by_zone_model_dict = FloatingIPPrototypeFloatingIPByZone.from_dict( + floating_ip_prototype_floating_ip_by_zone_model_json + ).__dict__ + floating_ip_prototype_floating_ip_by_zone_model2 = FloatingIPPrototypeFloatingIPByZone( + **floating_ip_prototype_floating_ip_by_zone_model_dict + ) # Verify the model instances are equivalent assert floating_ip_prototype_floating_ip_by_zone_model == floating_ip_prototype_floating_ip_by_zone_model2 # Convert model instance back to dict and verify no loss of data - floating_ip_prototype_floating_ip_by_zone_model_json2 = floating_ip_prototype_floating_ip_by_zone_model.to_dict() - assert floating_ip_prototype_floating_ip_by_zone_model_json2 == floating_ip_prototype_floating_ip_by_zone_model_json + floating_ip_prototype_floating_ip_by_zone_model_json2 = ( + floating_ip_prototype_floating_ip_by_zone_model.to_dict() + ) + assert ( + floating_ip_prototype_floating_ip_by_zone_model_json2 + == floating_ip_prototype_floating_ip_by_zone_model_json + ) class TestModel_FloatingIPTargetBareMetalServerNetworkInterfaceReference: @@ -83407,7 +90484,9 @@ def test_floating_ip_target_bare_metal_server_network_interface_reference_serial reserved_ip_reference_model = {} # ReservedIPReference reserved_ip_reference_model['address'] = '10.0.1.5' reserved_ip_reference_model['deleted'] = deleted_model - reserved_ip_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + reserved_ip_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + ) reserved_ip_reference_model['id'] = '0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' reserved_ip_reference_model['name'] = 'my-reserved-ip' reserved_ip_reference_model['resource_type'] = 'subnet_reserved_ip' @@ -83415,26 +90494,56 @@ def test_floating_ip_target_bare_metal_server_network_interface_reference_serial # Construct a json representation of a FloatingIPTargetBareMetalServerNetworkInterfaceReference model floating_ip_target_bare_metal_server_network_interface_reference_model_json = {} floating_ip_target_bare_metal_server_network_interface_reference_model_json['deleted'] = deleted_model - floating_ip_target_bare_metal_server_network_interface_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/bare_metal_servers/0717-aad10fd7-8a02-4f3e-97f3-b18bd82cf304/network_interfaces/0717-da8c43ec-b6ca-4bd2-871e-72e288c66ee6' - floating_ip_target_bare_metal_server_network_interface_reference_model_json['id'] = '0717-da8c43ec-b6ca-4bd2-871e-72e288c66ee6' - floating_ip_target_bare_metal_server_network_interface_reference_model_json['name'] = 'my-bare-metal-server-network-interface' - floating_ip_target_bare_metal_server_network_interface_reference_model_json['primary_ip'] = reserved_ip_reference_model - floating_ip_target_bare_metal_server_network_interface_reference_model_json['resource_type'] = 'network_interface' + floating_ip_target_bare_metal_server_network_interface_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/bare_metal_servers/0717-aad10fd7-8a02-4f3e-97f3-b18bd82cf304/network_interfaces/0717-da8c43ec-b6ca-4bd2-871e-72e288c66ee6' + ) + floating_ip_target_bare_metal_server_network_interface_reference_model_json['id'] = ( + '0717-da8c43ec-b6ca-4bd2-871e-72e288c66ee6' + ) + floating_ip_target_bare_metal_server_network_interface_reference_model_json['name'] = ( + 'my-bare-metal-server-network-interface' + ) + floating_ip_target_bare_metal_server_network_interface_reference_model_json['primary_ip'] = ( + reserved_ip_reference_model + ) + floating_ip_target_bare_metal_server_network_interface_reference_model_json['resource_type'] = ( + 'network_interface' + ) # Construct a model instance of FloatingIPTargetBareMetalServerNetworkInterfaceReference by calling from_dict on the json representation - floating_ip_target_bare_metal_server_network_interface_reference_model = FloatingIPTargetBareMetalServerNetworkInterfaceReference.from_dict(floating_ip_target_bare_metal_server_network_interface_reference_model_json) + floating_ip_target_bare_metal_server_network_interface_reference_model = ( + FloatingIPTargetBareMetalServerNetworkInterfaceReference.from_dict( + floating_ip_target_bare_metal_server_network_interface_reference_model_json + ) + ) assert floating_ip_target_bare_metal_server_network_interface_reference_model != False # Construct a model instance of FloatingIPTargetBareMetalServerNetworkInterfaceReference by calling from_dict on the json representation - floating_ip_target_bare_metal_server_network_interface_reference_model_dict = FloatingIPTargetBareMetalServerNetworkInterfaceReference.from_dict(floating_ip_target_bare_metal_server_network_interface_reference_model_json).__dict__ - floating_ip_target_bare_metal_server_network_interface_reference_model2 = FloatingIPTargetBareMetalServerNetworkInterfaceReference(**floating_ip_target_bare_metal_server_network_interface_reference_model_dict) + floating_ip_target_bare_metal_server_network_interface_reference_model_dict = ( + FloatingIPTargetBareMetalServerNetworkInterfaceReference.from_dict( + floating_ip_target_bare_metal_server_network_interface_reference_model_json + ).__dict__ + ) + floating_ip_target_bare_metal_server_network_interface_reference_model2 = ( + FloatingIPTargetBareMetalServerNetworkInterfaceReference( + **floating_ip_target_bare_metal_server_network_interface_reference_model_dict + ) + ) # Verify the model instances are equivalent - assert floating_ip_target_bare_metal_server_network_interface_reference_model == floating_ip_target_bare_metal_server_network_interface_reference_model2 + assert ( + floating_ip_target_bare_metal_server_network_interface_reference_model + == floating_ip_target_bare_metal_server_network_interface_reference_model2 + ) # Convert model instance back to dict and verify no loss of data - floating_ip_target_bare_metal_server_network_interface_reference_model_json2 = floating_ip_target_bare_metal_server_network_interface_reference_model.to_dict() - assert floating_ip_target_bare_metal_server_network_interface_reference_model_json2 == floating_ip_target_bare_metal_server_network_interface_reference_model_json + floating_ip_target_bare_metal_server_network_interface_reference_model_json2 = ( + floating_ip_target_bare_metal_server_network_interface_reference_model.to_dict() + ) + assert ( + floating_ip_target_bare_metal_server_network_interface_reference_model_json2 + == floating_ip_target_bare_metal_server_network_interface_reference_model_json + ) class TestModel_FloatingIPTargetNetworkInterfaceReference: @@ -83455,7 +90564,9 @@ def test_floating_ip_target_network_interface_reference_serialization(self): reserved_ip_reference_model = {} # ReservedIPReference reserved_ip_reference_model['address'] = '10.0.1.5' reserved_ip_reference_model['deleted'] = deleted_model - reserved_ip_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + reserved_ip_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + ) reserved_ip_reference_model['id'] = '0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' reserved_ip_reference_model['name'] = 'my-reserved-ip' reserved_ip_reference_model['resource_type'] = 'subnet_reserved_ip' @@ -83463,26 +90574,42 @@ def test_floating_ip_target_network_interface_reference_serialization(self): # Construct a json representation of a FloatingIPTargetNetworkInterfaceReference model floating_ip_target_network_interface_reference_model_json = {} floating_ip_target_network_interface_reference_model_json['deleted'] = deleted_model - floating_ip_target_network_interface_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/network_interfaces/0717-d54eb633-98ea-459d-aa00-6a8e780175a7' + floating_ip_target_network_interface_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/network_interfaces/0717-d54eb633-98ea-459d-aa00-6a8e780175a7' + ) floating_ip_target_network_interface_reference_model_json['id'] = '0717-d54eb633-98ea-459d-aa00-6a8e780175a7' floating_ip_target_network_interface_reference_model_json['name'] = 'my-instance-network-interface' floating_ip_target_network_interface_reference_model_json['primary_ip'] = reserved_ip_reference_model floating_ip_target_network_interface_reference_model_json['resource_type'] = 'network_interface' # Construct a model instance of FloatingIPTargetNetworkInterfaceReference by calling from_dict on the json representation - floating_ip_target_network_interface_reference_model = FloatingIPTargetNetworkInterfaceReference.from_dict(floating_ip_target_network_interface_reference_model_json) + floating_ip_target_network_interface_reference_model = FloatingIPTargetNetworkInterfaceReference.from_dict( + floating_ip_target_network_interface_reference_model_json + ) assert floating_ip_target_network_interface_reference_model != False # Construct a model instance of FloatingIPTargetNetworkInterfaceReference by calling from_dict on the json representation - floating_ip_target_network_interface_reference_model_dict = FloatingIPTargetNetworkInterfaceReference.from_dict(floating_ip_target_network_interface_reference_model_json).__dict__ - floating_ip_target_network_interface_reference_model2 = FloatingIPTargetNetworkInterfaceReference(**floating_ip_target_network_interface_reference_model_dict) + floating_ip_target_network_interface_reference_model_dict = FloatingIPTargetNetworkInterfaceReference.from_dict( + floating_ip_target_network_interface_reference_model_json + ).__dict__ + floating_ip_target_network_interface_reference_model2 = FloatingIPTargetNetworkInterfaceReference( + **floating_ip_target_network_interface_reference_model_dict + ) # Verify the model instances are equivalent - assert floating_ip_target_network_interface_reference_model == floating_ip_target_network_interface_reference_model2 + assert ( + floating_ip_target_network_interface_reference_model + == floating_ip_target_network_interface_reference_model2 + ) # Convert model instance back to dict and verify no loss of data - floating_ip_target_network_interface_reference_model_json2 = floating_ip_target_network_interface_reference_model.to_dict() - assert floating_ip_target_network_interface_reference_model_json2 == floating_ip_target_network_interface_reference_model_json + floating_ip_target_network_interface_reference_model_json2 = ( + floating_ip_target_network_interface_reference_model.to_dict() + ) + assert ( + floating_ip_target_network_interface_reference_model_json2 + == floating_ip_target_network_interface_reference_model_json + ) class TestModel_FloatingIPTargetPublicGatewayReference: @@ -83502,27 +90629,42 @@ def test_floating_ip_target_public_gateway_reference_serialization(self): # Construct a json representation of a FloatingIPTargetPublicGatewayReference model floating_ip_target_public_gateway_reference_model_json = {} - floating_ip_target_public_gateway_reference_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::public-gateway:dc5431ef-1fc6-4861-adc9-a59d077d1241' + floating_ip_target_public_gateway_reference_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::public-gateway:dc5431ef-1fc6-4861-adc9-a59d077d1241' + ) floating_ip_target_public_gateway_reference_model_json['deleted'] = deleted_model - floating_ip_target_public_gateway_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/public_gateways/dc5431ef-1fc6-4861-adc9-a59d077d1241' + floating_ip_target_public_gateway_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/public_gateways/dc5431ef-1fc6-4861-adc9-a59d077d1241' + ) floating_ip_target_public_gateway_reference_model_json['id'] = 'dc5431ef-1fc6-4861-adc9-a59d077d1241' floating_ip_target_public_gateway_reference_model_json['name'] = 'my-public-gateway' floating_ip_target_public_gateway_reference_model_json['resource_type'] = 'public_gateway' # Construct a model instance of FloatingIPTargetPublicGatewayReference by calling from_dict on the json representation - floating_ip_target_public_gateway_reference_model = FloatingIPTargetPublicGatewayReference.from_dict(floating_ip_target_public_gateway_reference_model_json) + floating_ip_target_public_gateway_reference_model = FloatingIPTargetPublicGatewayReference.from_dict( + floating_ip_target_public_gateway_reference_model_json + ) assert floating_ip_target_public_gateway_reference_model != False # Construct a model instance of FloatingIPTargetPublicGatewayReference by calling from_dict on the json representation - floating_ip_target_public_gateway_reference_model_dict = FloatingIPTargetPublicGatewayReference.from_dict(floating_ip_target_public_gateway_reference_model_json).__dict__ - floating_ip_target_public_gateway_reference_model2 = FloatingIPTargetPublicGatewayReference(**floating_ip_target_public_gateway_reference_model_dict) + floating_ip_target_public_gateway_reference_model_dict = FloatingIPTargetPublicGatewayReference.from_dict( + floating_ip_target_public_gateway_reference_model_json + ).__dict__ + floating_ip_target_public_gateway_reference_model2 = FloatingIPTargetPublicGatewayReference( + **floating_ip_target_public_gateway_reference_model_dict + ) # Verify the model instances are equivalent assert floating_ip_target_public_gateway_reference_model == floating_ip_target_public_gateway_reference_model2 # Convert model instance back to dict and verify no loss of data - floating_ip_target_public_gateway_reference_model_json2 = floating_ip_target_public_gateway_reference_model.to_dict() - assert floating_ip_target_public_gateway_reference_model_json2 == floating_ip_target_public_gateway_reference_model_json + floating_ip_target_public_gateway_reference_model_json2 = ( + floating_ip_target_public_gateway_reference_model.to_dict() + ) + assert ( + floating_ip_target_public_gateway_reference_model_json2 + == floating_ip_target_public_gateway_reference_model_json + ) class TestModel_FloatingIPTargetVirtualNetworkInterfaceReference: @@ -83543,44 +90685,76 @@ def test_floating_ip_target_virtual_network_interface_reference_serialization(se reserved_ip_reference_model = {} # ReservedIPReference reserved_ip_reference_model['address'] = '10.0.1.5' reserved_ip_reference_model['deleted'] = deleted_model - reserved_ip_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + reserved_ip_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + ) reserved_ip_reference_model['id'] = '0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' reserved_ip_reference_model['name'] = 'my-reserved-ip' reserved_ip_reference_model['resource_type'] = 'subnet_reserved_ip' subnet_reference_model = {} # SubnetReference - subnet_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['deleted'] = deleted_model - subnet_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['id'] = '0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' subnet_reference_model['name'] = 'my-subnet' subnet_reference_model['resource_type'] = 'subnet' # Construct a json representation of a FloatingIPTargetVirtualNetworkInterfaceReference model floating_ip_target_virtual_network_interface_reference_model_json = {} - floating_ip_target_virtual_network_interface_reference_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::virtual-network-interface:0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + floating_ip_target_virtual_network_interface_reference_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::virtual-network-interface:0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + ) floating_ip_target_virtual_network_interface_reference_model_json['deleted'] = deleted_model - floating_ip_target_virtual_network_interface_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/virtual_network_interfaces/0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' - floating_ip_target_virtual_network_interface_reference_model_json['id'] = '0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + floating_ip_target_virtual_network_interface_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/virtual_network_interfaces/0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + ) + floating_ip_target_virtual_network_interface_reference_model_json['id'] = ( + '0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + ) floating_ip_target_virtual_network_interface_reference_model_json['name'] = 'my-virtual-network-interface' floating_ip_target_virtual_network_interface_reference_model_json['primary_ip'] = reserved_ip_reference_model floating_ip_target_virtual_network_interface_reference_model_json['resource_type'] = 'virtual_network_interface' floating_ip_target_virtual_network_interface_reference_model_json['subnet'] = subnet_reference_model # Construct a model instance of FloatingIPTargetVirtualNetworkInterfaceReference by calling from_dict on the json representation - floating_ip_target_virtual_network_interface_reference_model = FloatingIPTargetVirtualNetworkInterfaceReference.from_dict(floating_ip_target_virtual_network_interface_reference_model_json) + floating_ip_target_virtual_network_interface_reference_model = ( + FloatingIPTargetVirtualNetworkInterfaceReference.from_dict( + floating_ip_target_virtual_network_interface_reference_model_json + ) + ) assert floating_ip_target_virtual_network_interface_reference_model != False # Construct a model instance of FloatingIPTargetVirtualNetworkInterfaceReference by calling from_dict on the json representation - floating_ip_target_virtual_network_interface_reference_model_dict = FloatingIPTargetVirtualNetworkInterfaceReference.from_dict(floating_ip_target_virtual_network_interface_reference_model_json).__dict__ - floating_ip_target_virtual_network_interface_reference_model2 = FloatingIPTargetVirtualNetworkInterfaceReference(**floating_ip_target_virtual_network_interface_reference_model_dict) + floating_ip_target_virtual_network_interface_reference_model_dict = ( + FloatingIPTargetVirtualNetworkInterfaceReference.from_dict( + floating_ip_target_virtual_network_interface_reference_model_json + ).__dict__ + ) + floating_ip_target_virtual_network_interface_reference_model2 = ( + FloatingIPTargetVirtualNetworkInterfaceReference( + **floating_ip_target_virtual_network_interface_reference_model_dict + ) + ) # Verify the model instances are equivalent - assert floating_ip_target_virtual_network_interface_reference_model == floating_ip_target_virtual_network_interface_reference_model2 + assert ( + floating_ip_target_virtual_network_interface_reference_model + == floating_ip_target_virtual_network_interface_reference_model2 + ) # Convert model instance back to dict and verify no loss of data - floating_ip_target_virtual_network_interface_reference_model_json2 = floating_ip_target_virtual_network_interface_reference_model.to_dict() - assert floating_ip_target_virtual_network_interface_reference_model_json2 == floating_ip_target_virtual_network_interface_reference_model_json + floating_ip_target_virtual_network_interface_reference_model_json2 = ( + floating_ip_target_virtual_network_interface_reference_model.to_dict() + ) + assert ( + floating_ip_target_virtual_network_interface_reference_model_json2 + == floating_ip_target_virtual_network_interface_reference_model_json + ) class TestModel_FlowLogCollectorTargetInstanceNetworkAttachmentReference: @@ -83601,22 +90775,34 @@ def test_flow_log_collector_target_instance_network_attachment_reference_seriali reserved_ip_reference_model = {} # ReservedIPReference reserved_ip_reference_model['address'] = '10.0.1.5' reserved_ip_reference_model['deleted'] = deleted_model - reserved_ip_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + reserved_ip_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + ) reserved_ip_reference_model['id'] = '0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' reserved_ip_reference_model['name'] = 'my-reserved-ip' reserved_ip_reference_model['resource_type'] = 'subnet_reserved_ip' subnet_reference_model = {} # SubnetReference - subnet_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['deleted'] = deleted_model - subnet_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['id'] = '0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' subnet_reference_model['name'] = 'my-subnet' subnet_reference_model['resource_type'] = 'subnet' - virtual_network_interface_reference_attachment_context_model = {} # VirtualNetworkInterfaceReferenceAttachmentContext - virtual_network_interface_reference_attachment_context_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::virtual-network-interface:0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' - virtual_network_interface_reference_attachment_context_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/virtual_network_interfaces/0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + virtual_network_interface_reference_attachment_context_model = ( + {} + ) # VirtualNetworkInterfaceReferenceAttachmentContext + virtual_network_interface_reference_attachment_context_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::virtual-network-interface:0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + ) + virtual_network_interface_reference_attachment_context_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/virtual_network_interfaces/0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + ) virtual_network_interface_reference_attachment_context_model['id'] = '0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' virtual_network_interface_reference_attachment_context_model['name'] = 'my-virtual-network-interface' virtual_network_interface_reference_attachment_context_model['resource_type'] = 'virtual_network_interface' @@ -83624,28 +90810,60 @@ def test_flow_log_collector_target_instance_network_attachment_reference_seriali # Construct a json representation of a FlowLogCollectorTargetInstanceNetworkAttachmentReference model flow_log_collector_target_instance_network_attachment_reference_model_json = {} flow_log_collector_target_instance_network_attachment_reference_model_json['deleted'] = deleted_model - flow_log_collector_target_instance_network_attachment_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/network_attachments/0717-d54eb633-98ea-459d-aa00-6a8e780175a7' - flow_log_collector_target_instance_network_attachment_reference_model_json['id'] = '0717-d54eb633-98ea-459d-aa00-6a8e780175a7' - flow_log_collector_target_instance_network_attachment_reference_model_json['name'] = 'my-instance-network-attachment' - flow_log_collector_target_instance_network_attachment_reference_model_json['primary_ip'] = reserved_ip_reference_model - flow_log_collector_target_instance_network_attachment_reference_model_json['resource_type'] = 'instance_network_attachment' + flow_log_collector_target_instance_network_attachment_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/network_attachments/0717-d54eb633-98ea-459d-aa00-6a8e780175a7' + ) + flow_log_collector_target_instance_network_attachment_reference_model_json['id'] = ( + '0717-d54eb633-98ea-459d-aa00-6a8e780175a7' + ) + flow_log_collector_target_instance_network_attachment_reference_model_json['name'] = ( + 'my-instance-network-attachment' + ) + flow_log_collector_target_instance_network_attachment_reference_model_json['primary_ip'] = ( + reserved_ip_reference_model + ) + flow_log_collector_target_instance_network_attachment_reference_model_json['resource_type'] = ( + 'instance_network_attachment' + ) flow_log_collector_target_instance_network_attachment_reference_model_json['subnet'] = subnet_reference_model - flow_log_collector_target_instance_network_attachment_reference_model_json['virtual_network_interface'] = virtual_network_interface_reference_attachment_context_model + flow_log_collector_target_instance_network_attachment_reference_model_json['virtual_network_interface'] = ( + virtual_network_interface_reference_attachment_context_model + ) # Construct a model instance of FlowLogCollectorTargetInstanceNetworkAttachmentReference by calling from_dict on the json representation - flow_log_collector_target_instance_network_attachment_reference_model = FlowLogCollectorTargetInstanceNetworkAttachmentReference.from_dict(flow_log_collector_target_instance_network_attachment_reference_model_json) + flow_log_collector_target_instance_network_attachment_reference_model = ( + FlowLogCollectorTargetInstanceNetworkAttachmentReference.from_dict( + flow_log_collector_target_instance_network_attachment_reference_model_json + ) + ) assert flow_log_collector_target_instance_network_attachment_reference_model != False # Construct a model instance of FlowLogCollectorTargetInstanceNetworkAttachmentReference by calling from_dict on the json representation - flow_log_collector_target_instance_network_attachment_reference_model_dict = FlowLogCollectorTargetInstanceNetworkAttachmentReference.from_dict(flow_log_collector_target_instance_network_attachment_reference_model_json).__dict__ - flow_log_collector_target_instance_network_attachment_reference_model2 = FlowLogCollectorTargetInstanceNetworkAttachmentReference(**flow_log_collector_target_instance_network_attachment_reference_model_dict) + flow_log_collector_target_instance_network_attachment_reference_model_dict = ( + FlowLogCollectorTargetInstanceNetworkAttachmentReference.from_dict( + flow_log_collector_target_instance_network_attachment_reference_model_json + ).__dict__ + ) + flow_log_collector_target_instance_network_attachment_reference_model2 = ( + FlowLogCollectorTargetInstanceNetworkAttachmentReference( + **flow_log_collector_target_instance_network_attachment_reference_model_dict + ) + ) # Verify the model instances are equivalent - assert flow_log_collector_target_instance_network_attachment_reference_model == flow_log_collector_target_instance_network_attachment_reference_model2 + assert ( + flow_log_collector_target_instance_network_attachment_reference_model + == flow_log_collector_target_instance_network_attachment_reference_model2 + ) # Convert model instance back to dict and verify no loss of data - flow_log_collector_target_instance_network_attachment_reference_model_json2 = flow_log_collector_target_instance_network_attachment_reference_model.to_dict() - assert flow_log_collector_target_instance_network_attachment_reference_model_json2 == flow_log_collector_target_instance_network_attachment_reference_model_json + flow_log_collector_target_instance_network_attachment_reference_model_json2 = ( + flow_log_collector_target_instance_network_attachment_reference_model.to_dict() + ) + assert ( + flow_log_collector_target_instance_network_attachment_reference_model_json2 + == flow_log_collector_target_instance_network_attachment_reference_model_json + ) class TestModel_FlowLogCollectorTargetInstanceReference: @@ -83665,26 +90883,41 @@ def test_flow_log_collector_target_instance_reference_serialization(self): # Construct a json representation of a FlowLogCollectorTargetInstanceReference model flow_log_collector_target_instance_reference_model_json = {} - flow_log_collector_target_instance_reference_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::instance:0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' + flow_log_collector_target_instance_reference_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::instance:0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' + ) flow_log_collector_target_instance_reference_model_json['deleted'] = deleted_model - flow_log_collector_target_instance_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' + flow_log_collector_target_instance_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' + ) flow_log_collector_target_instance_reference_model_json['id'] = '0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' flow_log_collector_target_instance_reference_model_json['name'] = 'my-instance' # Construct a model instance of FlowLogCollectorTargetInstanceReference by calling from_dict on the json representation - flow_log_collector_target_instance_reference_model = FlowLogCollectorTargetInstanceReference.from_dict(flow_log_collector_target_instance_reference_model_json) + flow_log_collector_target_instance_reference_model = FlowLogCollectorTargetInstanceReference.from_dict( + flow_log_collector_target_instance_reference_model_json + ) assert flow_log_collector_target_instance_reference_model != False # Construct a model instance of FlowLogCollectorTargetInstanceReference by calling from_dict on the json representation - flow_log_collector_target_instance_reference_model_dict = FlowLogCollectorTargetInstanceReference.from_dict(flow_log_collector_target_instance_reference_model_json).__dict__ - flow_log_collector_target_instance_reference_model2 = FlowLogCollectorTargetInstanceReference(**flow_log_collector_target_instance_reference_model_dict) + flow_log_collector_target_instance_reference_model_dict = FlowLogCollectorTargetInstanceReference.from_dict( + flow_log_collector_target_instance_reference_model_json + ).__dict__ + flow_log_collector_target_instance_reference_model2 = FlowLogCollectorTargetInstanceReference( + **flow_log_collector_target_instance_reference_model_dict + ) # Verify the model instances are equivalent assert flow_log_collector_target_instance_reference_model == flow_log_collector_target_instance_reference_model2 # Convert model instance back to dict and verify no loss of data - flow_log_collector_target_instance_reference_model_json2 = flow_log_collector_target_instance_reference_model.to_dict() - assert flow_log_collector_target_instance_reference_model_json2 == flow_log_collector_target_instance_reference_model_json + flow_log_collector_target_instance_reference_model_json2 = ( + flow_log_collector_target_instance_reference_model.to_dict() + ) + assert ( + flow_log_collector_target_instance_reference_model_json2 + == flow_log_collector_target_instance_reference_model_json + ) class TestModel_FlowLogCollectorTargetNetworkInterfaceReferenceTargetContext: @@ -83705,25 +90938,53 @@ def test_flow_log_collector_target_network_interface_reference_target_context_se # Construct a json representation of a FlowLogCollectorTargetNetworkInterfaceReferenceTargetContext model flow_log_collector_target_network_interface_reference_target_context_model_json = {} flow_log_collector_target_network_interface_reference_target_context_model_json['deleted'] = deleted_model - flow_log_collector_target_network_interface_reference_target_context_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/network_interfaces/0717-d54eb633-98ea-459d-aa00-6a8e780175a7' - flow_log_collector_target_network_interface_reference_target_context_model_json['id'] = '0717-d54eb633-98ea-459d-aa00-6a8e780175a7' - flow_log_collector_target_network_interface_reference_target_context_model_json['name'] = 'my-instance-network-interface' - flow_log_collector_target_network_interface_reference_target_context_model_json['resource_type'] = 'network_interface' + flow_log_collector_target_network_interface_reference_target_context_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/network_interfaces/0717-d54eb633-98ea-459d-aa00-6a8e780175a7' + ) + flow_log_collector_target_network_interface_reference_target_context_model_json['id'] = ( + '0717-d54eb633-98ea-459d-aa00-6a8e780175a7' + ) + flow_log_collector_target_network_interface_reference_target_context_model_json['name'] = ( + 'my-instance-network-interface' + ) + flow_log_collector_target_network_interface_reference_target_context_model_json['resource_type'] = ( + 'network_interface' + ) # Construct a model instance of FlowLogCollectorTargetNetworkInterfaceReferenceTargetContext by calling from_dict on the json representation - flow_log_collector_target_network_interface_reference_target_context_model = FlowLogCollectorTargetNetworkInterfaceReferenceTargetContext.from_dict(flow_log_collector_target_network_interface_reference_target_context_model_json) + flow_log_collector_target_network_interface_reference_target_context_model = ( + FlowLogCollectorTargetNetworkInterfaceReferenceTargetContext.from_dict( + flow_log_collector_target_network_interface_reference_target_context_model_json + ) + ) assert flow_log_collector_target_network_interface_reference_target_context_model != False # Construct a model instance of FlowLogCollectorTargetNetworkInterfaceReferenceTargetContext by calling from_dict on the json representation - flow_log_collector_target_network_interface_reference_target_context_model_dict = FlowLogCollectorTargetNetworkInterfaceReferenceTargetContext.from_dict(flow_log_collector_target_network_interface_reference_target_context_model_json).__dict__ - flow_log_collector_target_network_interface_reference_target_context_model2 = FlowLogCollectorTargetNetworkInterfaceReferenceTargetContext(**flow_log_collector_target_network_interface_reference_target_context_model_dict) + flow_log_collector_target_network_interface_reference_target_context_model_dict = ( + FlowLogCollectorTargetNetworkInterfaceReferenceTargetContext.from_dict( + flow_log_collector_target_network_interface_reference_target_context_model_json + ).__dict__ + ) + flow_log_collector_target_network_interface_reference_target_context_model2 = ( + FlowLogCollectorTargetNetworkInterfaceReferenceTargetContext( + **flow_log_collector_target_network_interface_reference_target_context_model_dict + ) + ) # Verify the model instances are equivalent - assert flow_log_collector_target_network_interface_reference_target_context_model == flow_log_collector_target_network_interface_reference_target_context_model2 + assert ( + flow_log_collector_target_network_interface_reference_target_context_model + == flow_log_collector_target_network_interface_reference_target_context_model2 + ) # Convert model instance back to dict and verify no loss of data - flow_log_collector_target_network_interface_reference_target_context_model_json2 = flow_log_collector_target_network_interface_reference_target_context_model.to_dict() - assert flow_log_collector_target_network_interface_reference_target_context_model_json2 == flow_log_collector_target_network_interface_reference_target_context_model_json + flow_log_collector_target_network_interface_reference_target_context_model_json2 = ( + flow_log_collector_target_network_interface_reference_target_context_model.to_dict() + ) + assert ( + flow_log_collector_target_network_interface_reference_target_context_model_json2 + == flow_log_collector_target_network_interface_reference_target_context_model_json + ) class TestModel_FlowLogCollectorTargetSubnetReference: @@ -83743,27 +91004,42 @@ def test_flow_log_collector_target_subnet_reference_serialization(self): # Construct a json representation of a FlowLogCollectorTargetSubnetReference model flow_log_collector_target_subnet_reference_model_json = {} - flow_log_collector_target_subnet_reference_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + flow_log_collector_target_subnet_reference_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) flow_log_collector_target_subnet_reference_model_json['deleted'] = deleted_model - flow_log_collector_target_subnet_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + flow_log_collector_target_subnet_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) flow_log_collector_target_subnet_reference_model_json['id'] = '0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' flow_log_collector_target_subnet_reference_model_json['name'] = 'my-subnet' flow_log_collector_target_subnet_reference_model_json['resource_type'] = 'subnet' # Construct a model instance of FlowLogCollectorTargetSubnetReference by calling from_dict on the json representation - flow_log_collector_target_subnet_reference_model = FlowLogCollectorTargetSubnetReference.from_dict(flow_log_collector_target_subnet_reference_model_json) + flow_log_collector_target_subnet_reference_model = FlowLogCollectorTargetSubnetReference.from_dict( + flow_log_collector_target_subnet_reference_model_json + ) assert flow_log_collector_target_subnet_reference_model != False # Construct a model instance of FlowLogCollectorTargetSubnetReference by calling from_dict on the json representation - flow_log_collector_target_subnet_reference_model_dict = FlowLogCollectorTargetSubnetReference.from_dict(flow_log_collector_target_subnet_reference_model_json).__dict__ - flow_log_collector_target_subnet_reference_model2 = FlowLogCollectorTargetSubnetReference(**flow_log_collector_target_subnet_reference_model_dict) + flow_log_collector_target_subnet_reference_model_dict = FlowLogCollectorTargetSubnetReference.from_dict( + flow_log_collector_target_subnet_reference_model_json + ).__dict__ + flow_log_collector_target_subnet_reference_model2 = FlowLogCollectorTargetSubnetReference( + **flow_log_collector_target_subnet_reference_model_dict + ) # Verify the model instances are equivalent assert flow_log_collector_target_subnet_reference_model == flow_log_collector_target_subnet_reference_model2 # Convert model instance back to dict and verify no loss of data - flow_log_collector_target_subnet_reference_model_json2 = flow_log_collector_target_subnet_reference_model.to_dict() - assert flow_log_collector_target_subnet_reference_model_json2 == flow_log_collector_target_subnet_reference_model_json + flow_log_collector_target_subnet_reference_model_json2 = ( + flow_log_collector_target_subnet_reference_model.to_dict() + ) + assert ( + flow_log_collector_target_subnet_reference_model_json2 + == flow_log_collector_target_subnet_reference_model_json + ) class TestModel_FlowLogCollectorTargetVPCReference: @@ -83783,20 +91059,30 @@ def test_flow_log_collector_target_vpc_reference_serialization(self): # Construct a json representation of a FlowLogCollectorTargetVPCReference model flow_log_collector_target_vpc_reference_model_json = {} - flow_log_collector_target_vpc_reference_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + flow_log_collector_target_vpc_reference_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) flow_log_collector_target_vpc_reference_model_json['deleted'] = deleted_model - flow_log_collector_target_vpc_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + flow_log_collector_target_vpc_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) flow_log_collector_target_vpc_reference_model_json['id'] = 'r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' flow_log_collector_target_vpc_reference_model_json['name'] = 'my-vpc' flow_log_collector_target_vpc_reference_model_json['resource_type'] = 'vpc' # Construct a model instance of FlowLogCollectorTargetVPCReference by calling from_dict on the json representation - flow_log_collector_target_vpc_reference_model = FlowLogCollectorTargetVPCReference.from_dict(flow_log_collector_target_vpc_reference_model_json) + flow_log_collector_target_vpc_reference_model = FlowLogCollectorTargetVPCReference.from_dict( + flow_log_collector_target_vpc_reference_model_json + ) assert flow_log_collector_target_vpc_reference_model != False # Construct a model instance of FlowLogCollectorTargetVPCReference by calling from_dict on the json representation - flow_log_collector_target_vpc_reference_model_dict = FlowLogCollectorTargetVPCReference.from_dict(flow_log_collector_target_vpc_reference_model_json).__dict__ - flow_log_collector_target_vpc_reference_model2 = FlowLogCollectorTargetVPCReference(**flow_log_collector_target_vpc_reference_model_dict) + flow_log_collector_target_vpc_reference_model_dict = FlowLogCollectorTargetVPCReference.from_dict( + flow_log_collector_target_vpc_reference_model_json + ).__dict__ + flow_log_collector_target_vpc_reference_model2 = FlowLogCollectorTargetVPCReference( + **flow_log_collector_target_vpc_reference_model_dict + ) # Verify the model instances are equivalent assert flow_log_collector_target_vpc_reference_model == flow_log_collector_target_vpc_reference_model2 @@ -83818,26 +91104,56 @@ def test_flow_log_collector_target_virtual_network_interface_reference_attachmen # Construct a json representation of a FlowLogCollectorTargetVirtualNetworkInterfaceReferenceAttachmentContext model flow_log_collector_target_virtual_network_interface_reference_attachment_context_model_json = {} - flow_log_collector_target_virtual_network_interface_reference_attachment_context_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::virtual-network-interface:0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' - flow_log_collector_target_virtual_network_interface_reference_attachment_context_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/virtual_network_interfaces/0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' - flow_log_collector_target_virtual_network_interface_reference_attachment_context_model_json['id'] = '0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' - flow_log_collector_target_virtual_network_interface_reference_attachment_context_model_json['name'] = 'my-virtual-network-interface' - flow_log_collector_target_virtual_network_interface_reference_attachment_context_model_json['resource_type'] = 'virtual_network_interface' + flow_log_collector_target_virtual_network_interface_reference_attachment_context_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::virtual-network-interface:0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + ) + flow_log_collector_target_virtual_network_interface_reference_attachment_context_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/virtual_network_interfaces/0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + ) + flow_log_collector_target_virtual_network_interface_reference_attachment_context_model_json['id'] = ( + '0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + ) + flow_log_collector_target_virtual_network_interface_reference_attachment_context_model_json['name'] = ( + 'my-virtual-network-interface' + ) + flow_log_collector_target_virtual_network_interface_reference_attachment_context_model_json['resource_type'] = ( + 'virtual_network_interface' + ) # Construct a model instance of FlowLogCollectorTargetVirtualNetworkInterfaceReferenceAttachmentContext by calling from_dict on the json representation - flow_log_collector_target_virtual_network_interface_reference_attachment_context_model = FlowLogCollectorTargetVirtualNetworkInterfaceReferenceAttachmentContext.from_dict(flow_log_collector_target_virtual_network_interface_reference_attachment_context_model_json) + flow_log_collector_target_virtual_network_interface_reference_attachment_context_model = ( + FlowLogCollectorTargetVirtualNetworkInterfaceReferenceAttachmentContext.from_dict( + flow_log_collector_target_virtual_network_interface_reference_attachment_context_model_json + ) + ) assert flow_log_collector_target_virtual_network_interface_reference_attachment_context_model != False # Construct a model instance of FlowLogCollectorTargetVirtualNetworkInterfaceReferenceAttachmentContext by calling from_dict on the json representation - flow_log_collector_target_virtual_network_interface_reference_attachment_context_model_dict = FlowLogCollectorTargetVirtualNetworkInterfaceReferenceAttachmentContext.from_dict(flow_log_collector_target_virtual_network_interface_reference_attachment_context_model_json).__dict__ - flow_log_collector_target_virtual_network_interface_reference_attachment_context_model2 = FlowLogCollectorTargetVirtualNetworkInterfaceReferenceAttachmentContext(**flow_log_collector_target_virtual_network_interface_reference_attachment_context_model_dict) + flow_log_collector_target_virtual_network_interface_reference_attachment_context_model_dict = ( + FlowLogCollectorTargetVirtualNetworkInterfaceReferenceAttachmentContext.from_dict( + flow_log_collector_target_virtual_network_interface_reference_attachment_context_model_json + ).__dict__ + ) + flow_log_collector_target_virtual_network_interface_reference_attachment_context_model2 = ( + FlowLogCollectorTargetVirtualNetworkInterfaceReferenceAttachmentContext( + **flow_log_collector_target_virtual_network_interface_reference_attachment_context_model_dict + ) + ) # Verify the model instances are equivalent - assert flow_log_collector_target_virtual_network_interface_reference_attachment_context_model == flow_log_collector_target_virtual_network_interface_reference_attachment_context_model2 + assert ( + flow_log_collector_target_virtual_network_interface_reference_attachment_context_model + == flow_log_collector_target_virtual_network_interface_reference_attachment_context_model2 + ) # Convert model instance back to dict and verify no loss of data - flow_log_collector_target_virtual_network_interface_reference_attachment_context_model_json2 = flow_log_collector_target_virtual_network_interface_reference_attachment_context_model.to_dict() - assert flow_log_collector_target_virtual_network_interface_reference_attachment_context_model_json2 == flow_log_collector_target_virtual_network_interface_reference_attachment_context_model_json + flow_log_collector_target_virtual_network_interface_reference_attachment_context_model_json2 = ( + flow_log_collector_target_virtual_network_interface_reference_attachment_context_model.to_dict() + ) + assert ( + flow_log_collector_target_virtual_network_interface_reference_attachment_context_model_json2 + == flow_log_collector_target_virtual_network_interface_reference_attachment_context_model_json + ) class TestModel_ImageIdentityByCRN: @@ -83852,7 +91168,9 @@ def test_image_identity_by_crn_serialization(self): # Construct a json representation of a ImageIdentityByCRN model image_identity_by_crn_model_json = {} - image_identity_by_crn_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::image:r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8' + image_identity_by_crn_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::image:r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8' + ) # Construct a model instance of ImageIdentityByCRN by calling from_dict on the json representation image_identity_by_crn_model = ImageIdentityByCRN.from_dict(image_identity_by_crn_model_json) @@ -83882,7 +91200,9 @@ def test_image_identity_by_href_serialization(self): # Construct a json representation of a ImageIdentityByHref model image_identity_by_href_model_json = {} - image_identity_by_href_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/images/r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8' + image_identity_by_href_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/images/r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8' + ) # Construct a model instance of ImageIdentityByHref by calling from_dict on the json representation image_identity_by_href_model = ImageIdentityByHref.from_dict(image_identity_by_href_model_json) @@ -83946,7 +91266,9 @@ def test_image_prototype_image_by_file_serialization(self): resource_group_identity_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' encryption_key_identity_model = {} # EncryptionKeyIdentityByCRN - encryption_key_identity_model['crn'] = 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + encryption_key_identity_model['crn'] = ( + 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + ) image_file_prototype_model = {} # ImageFilePrototype image_file_prototype_model['href'] = 'cos://us-south/custom-image-vpc-bucket/customImage-0.vhd' @@ -83966,11 +91288,15 @@ def test_image_prototype_image_by_file_serialization(self): image_prototype_image_by_file_model_json['operating_system'] = operating_system_identity_model # Construct a model instance of ImagePrototypeImageByFile by calling from_dict on the json representation - image_prototype_image_by_file_model = ImagePrototypeImageByFile.from_dict(image_prototype_image_by_file_model_json) + image_prototype_image_by_file_model = ImagePrototypeImageByFile.from_dict( + image_prototype_image_by_file_model_json + ) assert image_prototype_image_by_file_model != False # Construct a model instance of ImagePrototypeImageByFile by calling from_dict on the json representation - image_prototype_image_by_file_model_dict = ImagePrototypeImageByFile.from_dict(image_prototype_image_by_file_model_json).__dict__ + image_prototype_image_by_file_model_dict = ImagePrototypeImageByFile.from_dict( + image_prototype_image_by_file_model_json + ).__dict__ image_prototype_image_by_file_model2 = ImagePrototypeImageByFile(**image_prototype_image_by_file_model_dict) # Verify the model instances are equivalent @@ -83997,7 +91323,9 @@ def test_image_prototype_image_by_source_volume_serialization(self): resource_group_identity_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' encryption_key_identity_model = {} # EncryptionKeyIdentityByCRN - encryption_key_identity_model['crn'] = 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + encryption_key_identity_model['crn'] = ( + 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + ) volume_identity_model = {} # VolumeIdentityById volume_identity_model['id'] = '1e09281b-f177-46fb-baf1-bc152b2e391a' @@ -84012,12 +91340,18 @@ def test_image_prototype_image_by_source_volume_serialization(self): image_prototype_image_by_source_volume_model_json['source_volume'] = volume_identity_model # Construct a model instance of ImagePrototypeImageBySourceVolume by calling from_dict on the json representation - image_prototype_image_by_source_volume_model = ImagePrototypeImageBySourceVolume.from_dict(image_prototype_image_by_source_volume_model_json) + image_prototype_image_by_source_volume_model = ImagePrototypeImageBySourceVolume.from_dict( + image_prototype_image_by_source_volume_model_json + ) assert image_prototype_image_by_source_volume_model != False # Construct a model instance of ImagePrototypeImageBySourceVolume by calling from_dict on the json representation - image_prototype_image_by_source_volume_model_dict = ImagePrototypeImageBySourceVolume.from_dict(image_prototype_image_by_source_volume_model_json).__dict__ - image_prototype_image_by_source_volume_model2 = ImagePrototypeImageBySourceVolume(**image_prototype_image_by_source_volume_model_dict) + image_prototype_image_by_source_volume_model_dict = ImagePrototypeImageBySourceVolume.from_dict( + image_prototype_image_by_source_volume_model_json + ).__dict__ + image_prototype_image_by_source_volume_model2 = ImagePrototypeImageBySourceVolume( + **image_prototype_image_by_source_volume_model_dict + ) # Verify the model instances are equivalent assert image_prototype_image_by_source_volume_model == image_prototype_image_by_source_volume_model2 @@ -84039,31 +91373,61 @@ def test_instance_catalog_offering_prototype_catalog_offering_by_offering_serial # Construct dict forms of any model objects needed in order to build this model. - catalog_offering_version_plan_identity_model = {} # CatalogOfferingVersionPlanIdentityCatalogOfferingVersionPlanByCRN - catalog_offering_version_plan_identity_model['crn'] = 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:51c9e0db-2911-45a6-adb0-ac5332d27cf2:plan:sw.51c9e0db-2911-45a6-adb0-ac5332d27cf2.772c0dbe-aa62-482e-adbe-a3fc20101e0e' + catalog_offering_version_plan_identity_model = ( + {} + ) # CatalogOfferingVersionPlanIdentityCatalogOfferingVersionPlanByCRN + catalog_offering_version_plan_identity_model['crn'] = ( + 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:51c9e0db-2911-45a6-adb0-ac5332d27cf2:plan:sw.51c9e0db-2911-45a6-adb0-ac5332d27cf2.772c0dbe-aa62-482e-adbe-a3fc20101e0e' + ) catalog_offering_identity_model = {} # CatalogOfferingIdentityCatalogOfferingByCRN - catalog_offering_identity_model['crn'] = 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:offering:00111601-0ec5-41ac-b142-96d1e64e6442' + catalog_offering_identity_model['crn'] = ( + 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:offering:00111601-0ec5-41ac-b142-96d1e64e6442' + ) # Construct a json representation of a InstanceCatalogOfferingPrototypeCatalogOfferingByOffering model instance_catalog_offering_prototype_catalog_offering_by_offering_model_json = {} - instance_catalog_offering_prototype_catalog_offering_by_offering_model_json['plan'] = catalog_offering_version_plan_identity_model - instance_catalog_offering_prototype_catalog_offering_by_offering_model_json['offering'] = catalog_offering_identity_model + instance_catalog_offering_prototype_catalog_offering_by_offering_model_json['plan'] = ( + catalog_offering_version_plan_identity_model + ) + instance_catalog_offering_prototype_catalog_offering_by_offering_model_json['offering'] = ( + catalog_offering_identity_model + ) # Construct a model instance of InstanceCatalogOfferingPrototypeCatalogOfferingByOffering by calling from_dict on the json representation - instance_catalog_offering_prototype_catalog_offering_by_offering_model = InstanceCatalogOfferingPrototypeCatalogOfferingByOffering.from_dict(instance_catalog_offering_prototype_catalog_offering_by_offering_model_json) + instance_catalog_offering_prototype_catalog_offering_by_offering_model = ( + InstanceCatalogOfferingPrototypeCatalogOfferingByOffering.from_dict( + instance_catalog_offering_prototype_catalog_offering_by_offering_model_json + ) + ) assert instance_catalog_offering_prototype_catalog_offering_by_offering_model != False # Construct a model instance of InstanceCatalogOfferingPrototypeCatalogOfferingByOffering by calling from_dict on the json representation - instance_catalog_offering_prototype_catalog_offering_by_offering_model_dict = InstanceCatalogOfferingPrototypeCatalogOfferingByOffering.from_dict(instance_catalog_offering_prototype_catalog_offering_by_offering_model_json).__dict__ - instance_catalog_offering_prototype_catalog_offering_by_offering_model2 = InstanceCatalogOfferingPrototypeCatalogOfferingByOffering(**instance_catalog_offering_prototype_catalog_offering_by_offering_model_dict) + instance_catalog_offering_prototype_catalog_offering_by_offering_model_dict = ( + InstanceCatalogOfferingPrototypeCatalogOfferingByOffering.from_dict( + instance_catalog_offering_prototype_catalog_offering_by_offering_model_json + ).__dict__ + ) + instance_catalog_offering_prototype_catalog_offering_by_offering_model2 = ( + InstanceCatalogOfferingPrototypeCatalogOfferingByOffering( + **instance_catalog_offering_prototype_catalog_offering_by_offering_model_dict + ) + ) # Verify the model instances are equivalent - assert instance_catalog_offering_prototype_catalog_offering_by_offering_model == instance_catalog_offering_prototype_catalog_offering_by_offering_model2 + assert ( + instance_catalog_offering_prototype_catalog_offering_by_offering_model + == instance_catalog_offering_prototype_catalog_offering_by_offering_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_catalog_offering_prototype_catalog_offering_by_offering_model_json2 = instance_catalog_offering_prototype_catalog_offering_by_offering_model.to_dict() - assert instance_catalog_offering_prototype_catalog_offering_by_offering_model_json2 == instance_catalog_offering_prototype_catalog_offering_by_offering_model_json + instance_catalog_offering_prototype_catalog_offering_by_offering_model_json2 = ( + instance_catalog_offering_prototype_catalog_offering_by_offering_model.to_dict() + ) + assert ( + instance_catalog_offering_prototype_catalog_offering_by_offering_model_json2 + == instance_catalog_offering_prototype_catalog_offering_by_offering_model_json + ) class TestModel_InstanceCatalogOfferingPrototypeCatalogOfferingByVersion: @@ -84078,31 +91442,61 @@ def test_instance_catalog_offering_prototype_catalog_offering_by_version_seriali # Construct dict forms of any model objects needed in order to build this model. - catalog_offering_version_plan_identity_model = {} # CatalogOfferingVersionPlanIdentityCatalogOfferingVersionPlanByCRN - catalog_offering_version_plan_identity_model['crn'] = 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:51c9e0db-2911-45a6-adb0-ac5332d27cf2:plan:sw.51c9e0db-2911-45a6-adb0-ac5332d27cf2.772c0dbe-aa62-482e-adbe-a3fc20101e0e' + catalog_offering_version_plan_identity_model = ( + {} + ) # CatalogOfferingVersionPlanIdentityCatalogOfferingVersionPlanByCRN + catalog_offering_version_plan_identity_model['crn'] = ( + 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:51c9e0db-2911-45a6-adb0-ac5332d27cf2:plan:sw.51c9e0db-2911-45a6-adb0-ac5332d27cf2.772c0dbe-aa62-482e-adbe-a3fc20101e0e' + ) catalog_offering_version_identity_model = {} # CatalogOfferingVersionIdentityCatalogOfferingVersionByCRN - catalog_offering_version_identity_model['crn'] = 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:version:00111601-0ec5-41ac-b142-96d1e64e6442/ec66bec2-6a33-42d6-9323-26dd4dc8875d' + catalog_offering_version_identity_model['crn'] = ( + 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:version:00111601-0ec5-41ac-b142-96d1e64e6442/ec66bec2-6a33-42d6-9323-26dd4dc8875d' + ) # Construct a json representation of a InstanceCatalogOfferingPrototypeCatalogOfferingByVersion model instance_catalog_offering_prototype_catalog_offering_by_version_model_json = {} - instance_catalog_offering_prototype_catalog_offering_by_version_model_json['plan'] = catalog_offering_version_plan_identity_model - instance_catalog_offering_prototype_catalog_offering_by_version_model_json['version'] = catalog_offering_version_identity_model + instance_catalog_offering_prototype_catalog_offering_by_version_model_json['plan'] = ( + catalog_offering_version_plan_identity_model + ) + instance_catalog_offering_prototype_catalog_offering_by_version_model_json['version'] = ( + catalog_offering_version_identity_model + ) # Construct a model instance of InstanceCatalogOfferingPrototypeCatalogOfferingByVersion by calling from_dict on the json representation - instance_catalog_offering_prototype_catalog_offering_by_version_model = InstanceCatalogOfferingPrototypeCatalogOfferingByVersion.from_dict(instance_catalog_offering_prototype_catalog_offering_by_version_model_json) + instance_catalog_offering_prototype_catalog_offering_by_version_model = ( + InstanceCatalogOfferingPrototypeCatalogOfferingByVersion.from_dict( + instance_catalog_offering_prototype_catalog_offering_by_version_model_json + ) + ) assert instance_catalog_offering_prototype_catalog_offering_by_version_model != False # Construct a model instance of InstanceCatalogOfferingPrototypeCatalogOfferingByVersion by calling from_dict on the json representation - instance_catalog_offering_prototype_catalog_offering_by_version_model_dict = InstanceCatalogOfferingPrototypeCatalogOfferingByVersion.from_dict(instance_catalog_offering_prototype_catalog_offering_by_version_model_json).__dict__ - instance_catalog_offering_prototype_catalog_offering_by_version_model2 = InstanceCatalogOfferingPrototypeCatalogOfferingByVersion(**instance_catalog_offering_prototype_catalog_offering_by_version_model_dict) + instance_catalog_offering_prototype_catalog_offering_by_version_model_dict = ( + InstanceCatalogOfferingPrototypeCatalogOfferingByVersion.from_dict( + instance_catalog_offering_prototype_catalog_offering_by_version_model_json + ).__dict__ + ) + instance_catalog_offering_prototype_catalog_offering_by_version_model2 = ( + InstanceCatalogOfferingPrototypeCatalogOfferingByVersion( + **instance_catalog_offering_prototype_catalog_offering_by_version_model_dict + ) + ) # Verify the model instances are equivalent - assert instance_catalog_offering_prototype_catalog_offering_by_version_model == instance_catalog_offering_prototype_catalog_offering_by_version_model2 + assert ( + instance_catalog_offering_prototype_catalog_offering_by_version_model + == instance_catalog_offering_prototype_catalog_offering_by_version_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_catalog_offering_prototype_catalog_offering_by_version_model_json2 = instance_catalog_offering_prototype_catalog_offering_by_version_model.to_dict() - assert instance_catalog_offering_prototype_catalog_offering_by_version_model_json2 == instance_catalog_offering_prototype_catalog_offering_by_version_model_json + instance_catalog_offering_prototype_catalog_offering_by_version_model_json2 = ( + instance_catalog_offering_prototype_catalog_offering_by_version_model.to_dict() + ) + assert ( + instance_catalog_offering_prototype_catalog_offering_by_version_model_json2 + == instance_catalog_offering_prototype_catalog_offering_by_version_model_json + ) class TestModel_InstanceClusterNetworkAttachmentBeforePrototypeInstanceClusterNetworkAttachmentIdentityByHref: @@ -84110,29 +91504,52 @@ class TestModel_InstanceClusterNetworkAttachmentBeforePrototypeInstanceClusterNe Test Class for InstanceClusterNetworkAttachmentBeforePrototypeInstanceClusterNetworkAttachmentIdentityByHref """ - def test_instance_cluster_network_attachment_before_prototype_instance_cluster_network_attachment_identity_by_href_serialization(self): + def test_instance_cluster_network_attachment_before_prototype_instance_cluster_network_attachment_identity_by_href_serialization( + self, + ): """ Test serialization/deserialization for InstanceClusterNetworkAttachmentBeforePrototypeInstanceClusterNetworkAttachmentIdentityByHref """ # Construct a json representation of a InstanceClusterNetworkAttachmentBeforePrototypeInstanceClusterNetworkAttachmentIdentityByHref model - instance_cluster_network_attachment_before_prototype_instance_cluster_network_attachment_identity_by_href_model_json = {} - instance_cluster_network_attachment_before_prototype_instance_cluster_network_attachment_identity_by_href_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/cluster_network_attachments/0717-fb880975-db45-4459-8548-64e3995ac213' + instance_cluster_network_attachment_before_prototype_instance_cluster_network_attachment_identity_by_href_model_json = ( + {} + ) + instance_cluster_network_attachment_before_prototype_instance_cluster_network_attachment_identity_by_href_model_json[ + 'href' + ] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/cluster_network_attachments/0717-fb880975-db45-4459-8548-64e3995ac213' # Construct a model instance of InstanceClusterNetworkAttachmentBeforePrototypeInstanceClusterNetworkAttachmentIdentityByHref by calling from_dict on the json representation - instance_cluster_network_attachment_before_prototype_instance_cluster_network_attachment_identity_by_href_model = InstanceClusterNetworkAttachmentBeforePrototypeInstanceClusterNetworkAttachmentIdentityByHref.from_dict(instance_cluster_network_attachment_before_prototype_instance_cluster_network_attachment_identity_by_href_model_json) - assert instance_cluster_network_attachment_before_prototype_instance_cluster_network_attachment_identity_by_href_model != False + instance_cluster_network_attachment_before_prototype_instance_cluster_network_attachment_identity_by_href_model = InstanceClusterNetworkAttachmentBeforePrototypeInstanceClusterNetworkAttachmentIdentityByHref.from_dict( + instance_cluster_network_attachment_before_prototype_instance_cluster_network_attachment_identity_by_href_model_json + ) + assert ( + instance_cluster_network_attachment_before_prototype_instance_cluster_network_attachment_identity_by_href_model + != False + ) # Construct a model instance of InstanceClusterNetworkAttachmentBeforePrototypeInstanceClusterNetworkAttachmentIdentityByHref by calling from_dict on the json representation - instance_cluster_network_attachment_before_prototype_instance_cluster_network_attachment_identity_by_href_model_dict = InstanceClusterNetworkAttachmentBeforePrototypeInstanceClusterNetworkAttachmentIdentityByHref.from_dict(instance_cluster_network_attachment_before_prototype_instance_cluster_network_attachment_identity_by_href_model_json).__dict__ - instance_cluster_network_attachment_before_prototype_instance_cluster_network_attachment_identity_by_href_model2 = InstanceClusterNetworkAttachmentBeforePrototypeInstanceClusterNetworkAttachmentIdentityByHref(**instance_cluster_network_attachment_before_prototype_instance_cluster_network_attachment_identity_by_href_model_dict) + instance_cluster_network_attachment_before_prototype_instance_cluster_network_attachment_identity_by_href_model_dict = InstanceClusterNetworkAttachmentBeforePrototypeInstanceClusterNetworkAttachmentIdentityByHref.from_dict( + instance_cluster_network_attachment_before_prototype_instance_cluster_network_attachment_identity_by_href_model_json + ).__dict__ + instance_cluster_network_attachment_before_prototype_instance_cluster_network_attachment_identity_by_href_model2 = InstanceClusterNetworkAttachmentBeforePrototypeInstanceClusterNetworkAttachmentIdentityByHref( + **instance_cluster_network_attachment_before_prototype_instance_cluster_network_attachment_identity_by_href_model_dict + ) # Verify the model instances are equivalent - assert instance_cluster_network_attachment_before_prototype_instance_cluster_network_attachment_identity_by_href_model == instance_cluster_network_attachment_before_prototype_instance_cluster_network_attachment_identity_by_href_model2 + assert ( + instance_cluster_network_attachment_before_prototype_instance_cluster_network_attachment_identity_by_href_model + == instance_cluster_network_attachment_before_prototype_instance_cluster_network_attachment_identity_by_href_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_cluster_network_attachment_before_prototype_instance_cluster_network_attachment_identity_by_href_model_json2 = instance_cluster_network_attachment_before_prototype_instance_cluster_network_attachment_identity_by_href_model.to_dict() - assert instance_cluster_network_attachment_before_prototype_instance_cluster_network_attachment_identity_by_href_model_json2 == instance_cluster_network_attachment_before_prototype_instance_cluster_network_attachment_identity_by_href_model_json + instance_cluster_network_attachment_before_prototype_instance_cluster_network_attachment_identity_by_href_model_json2 = ( + instance_cluster_network_attachment_before_prototype_instance_cluster_network_attachment_identity_by_href_model.to_dict() + ) + assert ( + instance_cluster_network_attachment_before_prototype_instance_cluster_network_attachment_identity_by_href_model_json2 + == instance_cluster_network_attachment_before_prototype_instance_cluster_network_attachment_identity_by_href_model_json + ) class TestModel_InstanceClusterNetworkAttachmentBeforePrototypeInstanceClusterNetworkAttachmentIdentityById: @@ -84140,29 +91557,52 @@ class TestModel_InstanceClusterNetworkAttachmentBeforePrototypeInstanceClusterNe Test Class for InstanceClusterNetworkAttachmentBeforePrototypeInstanceClusterNetworkAttachmentIdentityById """ - def test_instance_cluster_network_attachment_before_prototype_instance_cluster_network_attachment_identity_by_id_serialization(self): + def test_instance_cluster_network_attachment_before_prototype_instance_cluster_network_attachment_identity_by_id_serialization( + self, + ): """ Test serialization/deserialization for InstanceClusterNetworkAttachmentBeforePrototypeInstanceClusterNetworkAttachmentIdentityById """ # Construct a json representation of a InstanceClusterNetworkAttachmentBeforePrototypeInstanceClusterNetworkAttachmentIdentityById model - instance_cluster_network_attachment_before_prototype_instance_cluster_network_attachment_identity_by_id_model_json = {} - instance_cluster_network_attachment_before_prototype_instance_cluster_network_attachment_identity_by_id_model_json['id'] = '0717-fb880975-db45-4459-8548-64e3995ac213' + instance_cluster_network_attachment_before_prototype_instance_cluster_network_attachment_identity_by_id_model_json = ( + {} + ) + instance_cluster_network_attachment_before_prototype_instance_cluster_network_attachment_identity_by_id_model_json[ + 'id' + ] = '0717-fb880975-db45-4459-8548-64e3995ac213' # Construct a model instance of InstanceClusterNetworkAttachmentBeforePrototypeInstanceClusterNetworkAttachmentIdentityById by calling from_dict on the json representation - instance_cluster_network_attachment_before_prototype_instance_cluster_network_attachment_identity_by_id_model = InstanceClusterNetworkAttachmentBeforePrototypeInstanceClusterNetworkAttachmentIdentityById.from_dict(instance_cluster_network_attachment_before_prototype_instance_cluster_network_attachment_identity_by_id_model_json) - assert instance_cluster_network_attachment_before_prototype_instance_cluster_network_attachment_identity_by_id_model != False + instance_cluster_network_attachment_before_prototype_instance_cluster_network_attachment_identity_by_id_model = InstanceClusterNetworkAttachmentBeforePrototypeInstanceClusterNetworkAttachmentIdentityById.from_dict( + instance_cluster_network_attachment_before_prototype_instance_cluster_network_attachment_identity_by_id_model_json + ) + assert ( + instance_cluster_network_attachment_before_prototype_instance_cluster_network_attachment_identity_by_id_model + != False + ) # Construct a model instance of InstanceClusterNetworkAttachmentBeforePrototypeInstanceClusterNetworkAttachmentIdentityById by calling from_dict on the json representation - instance_cluster_network_attachment_before_prototype_instance_cluster_network_attachment_identity_by_id_model_dict = InstanceClusterNetworkAttachmentBeforePrototypeInstanceClusterNetworkAttachmentIdentityById.from_dict(instance_cluster_network_attachment_before_prototype_instance_cluster_network_attachment_identity_by_id_model_json).__dict__ - instance_cluster_network_attachment_before_prototype_instance_cluster_network_attachment_identity_by_id_model2 = InstanceClusterNetworkAttachmentBeforePrototypeInstanceClusterNetworkAttachmentIdentityById(**instance_cluster_network_attachment_before_prototype_instance_cluster_network_attachment_identity_by_id_model_dict) + instance_cluster_network_attachment_before_prototype_instance_cluster_network_attachment_identity_by_id_model_dict = InstanceClusterNetworkAttachmentBeforePrototypeInstanceClusterNetworkAttachmentIdentityById.from_dict( + instance_cluster_network_attachment_before_prototype_instance_cluster_network_attachment_identity_by_id_model_json + ).__dict__ + instance_cluster_network_attachment_before_prototype_instance_cluster_network_attachment_identity_by_id_model2 = InstanceClusterNetworkAttachmentBeforePrototypeInstanceClusterNetworkAttachmentIdentityById( + **instance_cluster_network_attachment_before_prototype_instance_cluster_network_attachment_identity_by_id_model_dict + ) # Verify the model instances are equivalent - assert instance_cluster_network_attachment_before_prototype_instance_cluster_network_attachment_identity_by_id_model == instance_cluster_network_attachment_before_prototype_instance_cluster_network_attachment_identity_by_id_model2 + assert ( + instance_cluster_network_attachment_before_prototype_instance_cluster_network_attachment_identity_by_id_model + == instance_cluster_network_attachment_before_prototype_instance_cluster_network_attachment_identity_by_id_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_cluster_network_attachment_before_prototype_instance_cluster_network_attachment_identity_by_id_model_json2 = instance_cluster_network_attachment_before_prototype_instance_cluster_network_attachment_identity_by_id_model.to_dict() - assert instance_cluster_network_attachment_before_prototype_instance_cluster_network_attachment_identity_by_id_model_json2 == instance_cluster_network_attachment_before_prototype_instance_cluster_network_attachment_identity_by_id_model_json + instance_cluster_network_attachment_before_prototype_instance_cluster_network_attachment_identity_by_id_model_json2 = ( + instance_cluster_network_attachment_before_prototype_instance_cluster_network_attachment_identity_by_id_model.to_dict() + ) + assert ( + instance_cluster_network_attachment_before_prototype_instance_cluster_network_attachment_identity_by_id_model_json2 + == instance_cluster_network_attachment_before_prototype_instance_cluster_network_attachment_identity_by_id_model_json + ) class TestModel_InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment: @@ -84170,14 +91610,18 @@ class TestModel_InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterface Test Class for InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment """ - def test_instance_cluster_network_attachment_prototype_cluster_network_interface_instance_cluster_network_interface_prototype_instance_cluster_network_attachment_serialization(self): + def test_instance_cluster_network_attachment_prototype_cluster_network_interface_instance_cluster_network_interface_prototype_instance_cluster_network_attachment_serialization( + self, + ): """ Test serialization/deserialization for InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment """ # Construct dict forms of any model objects needed in order to build this model. - cluster_network_interface_primary_ip_prototype_model = {} # ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPPrototypeClusterNetworkInterfacePrimaryIPContext + cluster_network_interface_primary_ip_prototype_model = ( + {} + ) # ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPPrototypeClusterNetworkInterfacePrimaryIPContext cluster_network_interface_primary_ip_prototype_model['address'] = '10.0.0.5' cluster_network_interface_primary_ip_prototype_model['auto_delete'] = False cluster_network_interface_primary_ip_prototype_model['name'] = 'my-cluster-network-subnet-reserved-ip' @@ -84186,26 +91630,53 @@ def test_instance_cluster_network_attachment_prototype_cluster_network_interface cluster_network_subnet_identity_model['id'] = '0717-7931845c-65c4-4b0a-80cd-7d9c1a6d7930' # Construct a json representation of a InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment model - instance_cluster_network_attachment_prototype_cluster_network_interface_instance_cluster_network_interface_prototype_instance_cluster_network_attachment_model_json = {} - instance_cluster_network_attachment_prototype_cluster_network_interface_instance_cluster_network_interface_prototype_instance_cluster_network_attachment_model_json['auto_delete'] = False - instance_cluster_network_attachment_prototype_cluster_network_interface_instance_cluster_network_interface_prototype_instance_cluster_network_attachment_model_json['name'] = 'my-cluster-network-interface' - instance_cluster_network_attachment_prototype_cluster_network_interface_instance_cluster_network_interface_prototype_instance_cluster_network_attachment_model_json['primary_ip'] = cluster_network_interface_primary_ip_prototype_model - instance_cluster_network_attachment_prototype_cluster_network_interface_instance_cluster_network_interface_prototype_instance_cluster_network_attachment_model_json['subnet'] = cluster_network_subnet_identity_model + instance_cluster_network_attachment_prototype_cluster_network_interface_instance_cluster_network_interface_prototype_instance_cluster_network_attachment_model_json = ( + {} + ) + instance_cluster_network_attachment_prototype_cluster_network_interface_instance_cluster_network_interface_prototype_instance_cluster_network_attachment_model_json[ + 'auto_delete' + ] = False + instance_cluster_network_attachment_prototype_cluster_network_interface_instance_cluster_network_interface_prototype_instance_cluster_network_attachment_model_json[ + 'name' + ] = 'my-cluster-network-interface' + instance_cluster_network_attachment_prototype_cluster_network_interface_instance_cluster_network_interface_prototype_instance_cluster_network_attachment_model_json[ + 'primary_ip' + ] = cluster_network_interface_primary_ip_prototype_model + instance_cluster_network_attachment_prototype_cluster_network_interface_instance_cluster_network_interface_prototype_instance_cluster_network_attachment_model_json[ + 'subnet' + ] = cluster_network_subnet_identity_model # Construct a model instance of InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment by calling from_dict on the json representation - instance_cluster_network_attachment_prototype_cluster_network_interface_instance_cluster_network_interface_prototype_instance_cluster_network_attachment_model = InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment.from_dict(instance_cluster_network_attachment_prototype_cluster_network_interface_instance_cluster_network_interface_prototype_instance_cluster_network_attachment_model_json) - assert instance_cluster_network_attachment_prototype_cluster_network_interface_instance_cluster_network_interface_prototype_instance_cluster_network_attachment_model != False + instance_cluster_network_attachment_prototype_cluster_network_interface_instance_cluster_network_interface_prototype_instance_cluster_network_attachment_model = InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment.from_dict( + instance_cluster_network_attachment_prototype_cluster_network_interface_instance_cluster_network_interface_prototype_instance_cluster_network_attachment_model_json + ) + assert ( + instance_cluster_network_attachment_prototype_cluster_network_interface_instance_cluster_network_interface_prototype_instance_cluster_network_attachment_model + != False + ) # Construct a model instance of InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment by calling from_dict on the json representation - instance_cluster_network_attachment_prototype_cluster_network_interface_instance_cluster_network_interface_prototype_instance_cluster_network_attachment_model_dict = InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment.from_dict(instance_cluster_network_attachment_prototype_cluster_network_interface_instance_cluster_network_interface_prototype_instance_cluster_network_attachment_model_json).__dict__ - instance_cluster_network_attachment_prototype_cluster_network_interface_instance_cluster_network_interface_prototype_instance_cluster_network_attachment_model2 = InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment(**instance_cluster_network_attachment_prototype_cluster_network_interface_instance_cluster_network_interface_prototype_instance_cluster_network_attachment_model_dict) + instance_cluster_network_attachment_prototype_cluster_network_interface_instance_cluster_network_interface_prototype_instance_cluster_network_attachment_model_dict = InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment.from_dict( + instance_cluster_network_attachment_prototype_cluster_network_interface_instance_cluster_network_interface_prototype_instance_cluster_network_attachment_model_json + ).__dict__ + instance_cluster_network_attachment_prototype_cluster_network_interface_instance_cluster_network_interface_prototype_instance_cluster_network_attachment_model2 = InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment( + **instance_cluster_network_attachment_prototype_cluster_network_interface_instance_cluster_network_interface_prototype_instance_cluster_network_attachment_model_dict + ) # Verify the model instances are equivalent - assert instance_cluster_network_attachment_prototype_cluster_network_interface_instance_cluster_network_interface_prototype_instance_cluster_network_attachment_model == instance_cluster_network_attachment_prototype_cluster_network_interface_instance_cluster_network_interface_prototype_instance_cluster_network_attachment_model2 + assert ( + instance_cluster_network_attachment_prototype_cluster_network_interface_instance_cluster_network_interface_prototype_instance_cluster_network_attachment_model + == instance_cluster_network_attachment_prototype_cluster_network_interface_instance_cluster_network_interface_prototype_instance_cluster_network_attachment_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_cluster_network_attachment_prototype_cluster_network_interface_instance_cluster_network_interface_prototype_instance_cluster_network_attachment_model_json2 = instance_cluster_network_attachment_prototype_cluster_network_interface_instance_cluster_network_interface_prototype_instance_cluster_network_attachment_model.to_dict() - assert instance_cluster_network_attachment_prototype_cluster_network_interface_instance_cluster_network_interface_prototype_instance_cluster_network_attachment_model_json2 == instance_cluster_network_attachment_prototype_cluster_network_interface_instance_cluster_network_interface_prototype_instance_cluster_network_attachment_model_json + instance_cluster_network_attachment_prototype_cluster_network_interface_instance_cluster_network_interface_prototype_instance_cluster_network_attachment_model_json2 = ( + instance_cluster_network_attachment_prototype_cluster_network_interface_instance_cluster_network_interface_prototype_instance_cluster_network_attachment_model.to_dict() + ) + assert ( + instance_cluster_network_attachment_prototype_cluster_network_interface_instance_cluster_network_interface_prototype_instance_cluster_network_attachment_model_json2 + == instance_cluster_network_attachment_prototype_cluster_network_interface_instance_cluster_network_interface_prototype_instance_cluster_network_attachment_model_json + ) class TestModel_InstanceGroupManagerAutoScale: @@ -84225,14 +91696,18 @@ def test_instance_group_manager_auto_scale_serialization(self): instance_group_manager_policy_reference_model = {} # InstanceGroupManagerPolicyReference instance_group_manager_policy_reference_model['deleted'] = deleted_model - instance_group_manager_policy_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instance_groups/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/managers/4c939b00-601f-11ea-bca2-000c29475bed/policies/1e09281b-f177-46fb-baf1-bc152b2e391a' + instance_group_manager_policy_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instance_groups/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/managers/4c939b00-601f-11ea-bca2-000c29475bed/policies/1e09281b-f177-46fb-baf1-bc152b2e391a' + ) instance_group_manager_policy_reference_model['id'] = '1e09281b-f177-46fb-baf1-bc152b2e391a' instance_group_manager_policy_reference_model['name'] = 'my-instance-group-manager-policy' # Construct a json representation of a InstanceGroupManagerAutoScale model instance_group_manager_auto_scale_model_json = {} instance_group_manager_auto_scale_model_json['created_at'] = '2019-01-01T12:00:00Z' - instance_group_manager_auto_scale_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instance_groups/1e09281b-f177-46fb-baf1-bc152b2e391a/managers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727' + instance_group_manager_auto_scale_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instance_groups/1e09281b-f177-46fb-baf1-bc152b2e391a/managers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727' + ) instance_group_manager_auto_scale_model_json['id'] = '1e09281b-f177-46fb-baf1-bc152b2e391a' instance_group_manager_auto_scale_model_json['management_enabled'] = True instance_group_manager_auto_scale_model_json['name'] = 'my-instance-group-manager' @@ -84245,12 +91720,18 @@ def test_instance_group_manager_auto_scale_serialization(self): instance_group_manager_auto_scale_model_json['policies'] = [instance_group_manager_policy_reference_model] # Construct a model instance of InstanceGroupManagerAutoScale by calling from_dict on the json representation - instance_group_manager_auto_scale_model = InstanceGroupManagerAutoScale.from_dict(instance_group_manager_auto_scale_model_json) + instance_group_manager_auto_scale_model = InstanceGroupManagerAutoScale.from_dict( + instance_group_manager_auto_scale_model_json + ) assert instance_group_manager_auto_scale_model != False # Construct a model instance of InstanceGroupManagerAutoScale by calling from_dict on the json representation - instance_group_manager_auto_scale_model_dict = InstanceGroupManagerAutoScale.from_dict(instance_group_manager_auto_scale_model_json).__dict__ - instance_group_manager_auto_scale_model2 = InstanceGroupManagerAutoScale(**instance_group_manager_auto_scale_model_dict) + instance_group_manager_auto_scale_model_dict = InstanceGroupManagerAutoScale.from_dict( + instance_group_manager_auto_scale_model_json + ).__dict__ + instance_group_manager_auto_scale_model2 = InstanceGroupManagerAutoScale( + **instance_group_manager_auto_scale_model_dict + ) # Verify the model instances are equivalent assert instance_group_manager_auto_scale_model == instance_group_manager_auto_scale_model2 @@ -84272,25 +91753,53 @@ def test_instance_group_manager_policy_prototype_instance_group_manager_target_p # Construct a json representation of a InstanceGroupManagerPolicyPrototypeInstanceGroupManagerTargetPolicyPrototype model instance_group_manager_policy_prototype_instance_group_manager_target_policy_prototype_model_json = {} - instance_group_manager_policy_prototype_instance_group_manager_target_policy_prototype_model_json['name'] = 'my-instance-group-manager-policy' - instance_group_manager_policy_prototype_instance_group_manager_target_policy_prototype_model_json['metric_type'] = 'cpu' - instance_group_manager_policy_prototype_instance_group_manager_target_policy_prototype_model_json['metric_value'] = 38 - instance_group_manager_policy_prototype_instance_group_manager_target_policy_prototype_model_json['policy_type'] = 'target' + instance_group_manager_policy_prototype_instance_group_manager_target_policy_prototype_model_json['name'] = ( + 'my-instance-group-manager-policy' + ) + instance_group_manager_policy_prototype_instance_group_manager_target_policy_prototype_model_json[ + 'metric_type' + ] = 'cpu' + instance_group_manager_policy_prototype_instance_group_manager_target_policy_prototype_model_json[ + 'metric_value' + ] = 38 + instance_group_manager_policy_prototype_instance_group_manager_target_policy_prototype_model_json[ + 'policy_type' + ] = 'target' # Construct a model instance of InstanceGroupManagerPolicyPrototypeInstanceGroupManagerTargetPolicyPrototype by calling from_dict on the json representation - instance_group_manager_policy_prototype_instance_group_manager_target_policy_prototype_model = InstanceGroupManagerPolicyPrototypeInstanceGroupManagerTargetPolicyPrototype.from_dict(instance_group_manager_policy_prototype_instance_group_manager_target_policy_prototype_model_json) + instance_group_manager_policy_prototype_instance_group_manager_target_policy_prototype_model = ( + InstanceGroupManagerPolicyPrototypeInstanceGroupManagerTargetPolicyPrototype.from_dict( + instance_group_manager_policy_prototype_instance_group_manager_target_policy_prototype_model_json + ) + ) assert instance_group_manager_policy_prototype_instance_group_manager_target_policy_prototype_model != False # Construct a model instance of InstanceGroupManagerPolicyPrototypeInstanceGroupManagerTargetPolicyPrototype by calling from_dict on the json representation - instance_group_manager_policy_prototype_instance_group_manager_target_policy_prototype_model_dict = InstanceGroupManagerPolicyPrototypeInstanceGroupManagerTargetPolicyPrototype.from_dict(instance_group_manager_policy_prototype_instance_group_manager_target_policy_prototype_model_json).__dict__ - instance_group_manager_policy_prototype_instance_group_manager_target_policy_prototype_model2 = InstanceGroupManagerPolicyPrototypeInstanceGroupManagerTargetPolicyPrototype(**instance_group_manager_policy_prototype_instance_group_manager_target_policy_prototype_model_dict) + instance_group_manager_policy_prototype_instance_group_manager_target_policy_prototype_model_dict = ( + InstanceGroupManagerPolicyPrototypeInstanceGroupManagerTargetPolicyPrototype.from_dict( + instance_group_manager_policy_prototype_instance_group_manager_target_policy_prototype_model_json + ).__dict__ + ) + instance_group_manager_policy_prototype_instance_group_manager_target_policy_prototype_model2 = ( + InstanceGroupManagerPolicyPrototypeInstanceGroupManagerTargetPolicyPrototype( + **instance_group_manager_policy_prototype_instance_group_manager_target_policy_prototype_model_dict + ) + ) # Verify the model instances are equivalent - assert instance_group_manager_policy_prototype_instance_group_manager_target_policy_prototype_model == instance_group_manager_policy_prototype_instance_group_manager_target_policy_prototype_model2 + assert ( + instance_group_manager_policy_prototype_instance_group_manager_target_policy_prototype_model + == instance_group_manager_policy_prototype_instance_group_manager_target_policy_prototype_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_group_manager_policy_prototype_instance_group_manager_target_policy_prototype_model_json2 = instance_group_manager_policy_prototype_instance_group_manager_target_policy_prototype_model.to_dict() - assert instance_group_manager_policy_prototype_instance_group_manager_target_policy_prototype_model_json2 == instance_group_manager_policy_prototype_instance_group_manager_target_policy_prototype_model_json + instance_group_manager_policy_prototype_instance_group_manager_target_policy_prototype_model_json2 = ( + instance_group_manager_policy_prototype_instance_group_manager_target_policy_prototype_model.to_dict() + ) + assert ( + instance_group_manager_policy_prototype_instance_group_manager_target_policy_prototype_model_json2 + == instance_group_manager_policy_prototype_instance_group_manager_target_policy_prototype_model_json + ) class TestModel_InstanceGroupManagerPolicyInstanceGroupManagerTargetPolicy: @@ -84305,29 +91814,59 @@ def test_instance_group_manager_policy_instance_group_manager_target_policy_seri # Construct a json representation of a InstanceGroupManagerPolicyInstanceGroupManagerTargetPolicy model instance_group_manager_policy_instance_group_manager_target_policy_model_json = {} - instance_group_manager_policy_instance_group_manager_target_policy_model_json['created_at'] = '2019-01-01T12:00:00Z' - instance_group_manager_policy_instance_group_manager_target_policy_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instance_groups/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/managers/4c939b00-601f-11ea-bca2-000c29475bed/policies/1e09281b-f177-46fb-baf1-bc152b2e391a' - instance_group_manager_policy_instance_group_manager_target_policy_model_json['id'] = '1e09281b-f177-46fb-baf1-bc152b2e391a' - instance_group_manager_policy_instance_group_manager_target_policy_model_json['name'] = 'my-instance-group-manager-policy' - instance_group_manager_policy_instance_group_manager_target_policy_model_json['updated_at'] = '2019-01-01T12:00:00Z' + instance_group_manager_policy_instance_group_manager_target_policy_model_json['created_at'] = ( + '2019-01-01T12:00:00Z' + ) + instance_group_manager_policy_instance_group_manager_target_policy_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instance_groups/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/managers/4c939b00-601f-11ea-bca2-000c29475bed/policies/1e09281b-f177-46fb-baf1-bc152b2e391a' + ) + instance_group_manager_policy_instance_group_manager_target_policy_model_json['id'] = ( + '1e09281b-f177-46fb-baf1-bc152b2e391a' + ) + instance_group_manager_policy_instance_group_manager_target_policy_model_json['name'] = ( + 'my-instance-group-manager-policy' + ) + instance_group_manager_policy_instance_group_manager_target_policy_model_json['updated_at'] = ( + '2019-01-01T12:00:00Z' + ) instance_group_manager_policy_instance_group_manager_target_policy_model_json['metric_type'] = 'cpu' instance_group_manager_policy_instance_group_manager_target_policy_model_json['metric_value'] = 38 instance_group_manager_policy_instance_group_manager_target_policy_model_json['policy_type'] = 'target' # Construct a model instance of InstanceGroupManagerPolicyInstanceGroupManagerTargetPolicy by calling from_dict on the json representation - instance_group_manager_policy_instance_group_manager_target_policy_model = InstanceGroupManagerPolicyInstanceGroupManagerTargetPolicy.from_dict(instance_group_manager_policy_instance_group_manager_target_policy_model_json) + instance_group_manager_policy_instance_group_manager_target_policy_model = ( + InstanceGroupManagerPolicyInstanceGroupManagerTargetPolicy.from_dict( + instance_group_manager_policy_instance_group_manager_target_policy_model_json + ) + ) assert instance_group_manager_policy_instance_group_manager_target_policy_model != False # Construct a model instance of InstanceGroupManagerPolicyInstanceGroupManagerTargetPolicy by calling from_dict on the json representation - instance_group_manager_policy_instance_group_manager_target_policy_model_dict = InstanceGroupManagerPolicyInstanceGroupManagerTargetPolicy.from_dict(instance_group_manager_policy_instance_group_manager_target_policy_model_json).__dict__ - instance_group_manager_policy_instance_group_manager_target_policy_model2 = InstanceGroupManagerPolicyInstanceGroupManagerTargetPolicy(**instance_group_manager_policy_instance_group_manager_target_policy_model_dict) + instance_group_manager_policy_instance_group_manager_target_policy_model_dict = ( + InstanceGroupManagerPolicyInstanceGroupManagerTargetPolicy.from_dict( + instance_group_manager_policy_instance_group_manager_target_policy_model_json + ).__dict__ + ) + instance_group_manager_policy_instance_group_manager_target_policy_model2 = ( + InstanceGroupManagerPolicyInstanceGroupManagerTargetPolicy( + **instance_group_manager_policy_instance_group_manager_target_policy_model_dict + ) + ) # Verify the model instances are equivalent - assert instance_group_manager_policy_instance_group_manager_target_policy_model == instance_group_manager_policy_instance_group_manager_target_policy_model2 + assert ( + instance_group_manager_policy_instance_group_manager_target_policy_model + == instance_group_manager_policy_instance_group_manager_target_policy_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_group_manager_policy_instance_group_manager_target_policy_model_json2 = instance_group_manager_policy_instance_group_manager_target_policy_model.to_dict() - assert instance_group_manager_policy_instance_group_manager_target_policy_model_json2 == instance_group_manager_policy_instance_group_manager_target_policy_model_json + instance_group_manager_policy_instance_group_manager_target_policy_model_json2 = ( + instance_group_manager_policy_instance_group_manager_target_policy_model.to_dict() + ) + assert ( + instance_group_manager_policy_instance_group_manager_target_policy_model_json2 + == instance_group_manager_policy_instance_group_manager_target_policy_model_json + ) class TestModel_InstanceGroupManagerPrototypeInstanceGroupManagerAutoScalePrototype: @@ -84342,28 +91881,60 @@ def test_instance_group_manager_prototype_instance_group_manager_auto_scale_prot # Construct a json representation of a InstanceGroupManagerPrototypeInstanceGroupManagerAutoScalePrototype model instance_group_manager_prototype_instance_group_manager_auto_scale_prototype_model_json = {} - instance_group_manager_prototype_instance_group_manager_auto_scale_prototype_model_json['management_enabled'] = True - instance_group_manager_prototype_instance_group_manager_auto_scale_prototype_model_json['name'] = 'my-instance-group-manager' - instance_group_manager_prototype_instance_group_manager_auto_scale_prototype_model_json['aggregation_window'] = 120 + instance_group_manager_prototype_instance_group_manager_auto_scale_prototype_model_json[ + 'management_enabled' + ] = True + instance_group_manager_prototype_instance_group_manager_auto_scale_prototype_model_json['name'] = ( + 'my-instance-group-manager' + ) + instance_group_manager_prototype_instance_group_manager_auto_scale_prototype_model_json[ + 'aggregation_window' + ] = 120 instance_group_manager_prototype_instance_group_manager_auto_scale_prototype_model_json['cooldown'] = 210 - instance_group_manager_prototype_instance_group_manager_auto_scale_prototype_model_json['manager_type'] = 'autoscale' - instance_group_manager_prototype_instance_group_manager_auto_scale_prototype_model_json['max_membership_count'] = 10 - instance_group_manager_prototype_instance_group_manager_auto_scale_prototype_model_json['min_membership_count'] = 10 + instance_group_manager_prototype_instance_group_manager_auto_scale_prototype_model_json['manager_type'] = ( + 'autoscale' + ) + instance_group_manager_prototype_instance_group_manager_auto_scale_prototype_model_json[ + 'max_membership_count' + ] = 10 + instance_group_manager_prototype_instance_group_manager_auto_scale_prototype_model_json[ + 'min_membership_count' + ] = 10 # Construct a model instance of InstanceGroupManagerPrototypeInstanceGroupManagerAutoScalePrototype by calling from_dict on the json representation - instance_group_manager_prototype_instance_group_manager_auto_scale_prototype_model = InstanceGroupManagerPrototypeInstanceGroupManagerAutoScalePrototype.from_dict(instance_group_manager_prototype_instance_group_manager_auto_scale_prototype_model_json) + instance_group_manager_prototype_instance_group_manager_auto_scale_prototype_model = ( + InstanceGroupManagerPrototypeInstanceGroupManagerAutoScalePrototype.from_dict( + instance_group_manager_prototype_instance_group_manager_auto_scale_prototype_model_json + ) + ) assert instance_group_manager_prototype_instance_group_manager_auto_scale_prototype_model != False # Construct a model instance of InstanceGroupManagerPrototypeInstanceGroupManagerAutoScalePrototype by calling from_dict on the json representation - instance_group_manager_prototype_instance_group_manager_auto_scale_prototype_model_dict = InstanceGroupManagerPrototypeInstanceGroupManagerAutoScalePrototype.from_dict(instance_group_manager_prototype_instance_group_manager_auto_scale_prototype_model_json).__dict__ - instance_group_manager_prototype_instance_group_manager_auto_scale_prototype_model2 = InstanceGroupManagerPrototypeInstanceGroupManagerAutoScalePrototype(**instance_group_manager_prototype_instance_group_manager_auto_scale_prototype_model_dict) + instance_group_manager_prototype_instance_group_manager_auto_scale_prototype_model_dict = ( + InstanceGroupManagerPrototypeInstanceGroupManagerAutoScalePrototype.from_dict( + instance_group_manager_prototype_instance_group_manager_auto_scale_prototype_model_json + ).__dict__ + ) + instance_group_manager_prototype_instance_group_manager_auto_scale_prototype_model2 = ( + InstanceGroupManagerPrototypeInstanceGroupManagerAutoScalePrototype( + **instance_group_manager_prototype_instance_group_manager_auto_scale_prototype_model_dict + ) + ) # Verify the model instances are equivalent - assert instance_group_manager_prototype_instance_group_manager_auto_scale_prototype_model == instance_group_manager_prototype_instance_group_manager_auto_scale_prototype_model2 + assert ( + instance_group_manager_prototype_instance_group_manager_auto_scale_prototype_model + == instance_group_manager_prototype_instance_group_manager_auto_scale_prototype_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_group_manager_prototype_instance_group_manager_auto_scale_prototype_model_json2 = instance_group_manager_prototype_instance_group_manager_auto_scale_prototype_model.to_dict() - assert instance_group_manager_prototype_instance_group_manager_auto_scale_prototype_model_json2 == instance_group_manager_prototype_instance_group_manager_auto_scale_prototype_model_json + instance_group_manager_prototype_instance_group_manager_auto_scale_prototype_model_json2 = ( + instance_group_manager_prototype_instance_group_manager_auto_scale_prototype_model.to_dict() + ) + assert ( + instance_group_manager_prototype_instance_group_manager_auto_scale_prototype_model_json2 + == instance_group_manager_prototype_instance_group_manager_auto_scale_prototype_model_json + ) class TestModel_InstanceGroupManagerPrototypeInstanceGroupManagerScheduledPrototype: @@ -84378,24 +91949,50 @@ def test_instance_group_manager_prototype_instance_group_manager_scheduled_proto # Construct a json representation of a InstanceGroupManagerPrototypeInstanceGroupManagerScheduledPrototype model instance_group_manager_prototype_instance_group_manager_scheduled_prototype_model_json = {} - instance_group_manager_prototype_instance_group_manager_scheduled_prototype_model_json['management_enabled'] = True - instance_group_manager_prototype_instance_group_manager_scheduled_prototype_model_json['name'] = 'my-instance-group-manager' - instance_group_manager_prototype_instance_group_manager_scheduled_prototype_model_json['manager_type'] = 'scheduled' + instance_group_manager_prototype_instance_group_manager_scheduled_prototype_model_json['management_enabled'] = ( + True + ) + instance_group_manager_prototype_instance_group_manager_scheduled_prototype_model_json['name'] = ( + 'my-instance-group-manager' + ) + instance_group_manager_prototype_instance_group_manager_scheduled_prototype_model_json['manager_type'] = ( + 'scheduled' + ) # Construct a model instance of InstanceGroupManagerPrototypeInstanceGroupManagerScheduledPrototype by calling from_dict on the json representation - instance_group_manager_prototype_instance_group_manager_scheduled_prototype_model = InstanceGroupManagerPrototypeInstanceGroupManagerScheduledPrototype.from_dict(instance_group_manager_prototype_instance_group_manager_scheduled_prototype_model_json) + instance_group_manager_prototype_instance_group_manager_scheduled_prototype_model = ( + InstanceGroupManagerPrototypeInstanceGroupManagerScheduledPrototype.from_dict( + instance_group_manager_prototype_instance_group_manager_scheduled_prototype_model_json + ) + ) assert instance_group_manager_prototype_instance_group_manager_scheduled_prototype_model != False # Construct a model instance of InstanceGroupManagerPrototypeInstanceGroupManagerScheduledPrototype by calling from_dict on the json representation - instance_group_manager_prototype_instance_group_manager_scheduled_prototype_model_dict = InstanceGroupManagerPrototypeInstanceGroupManagerScheduledPrototype.from_dict(instance_group_manager_prototype_instance_group_manager_scheduled_prototype_model_json).__dict__ - instance_group_manager_prototype_instance_group_manager_scheduled_prototype_model2 = InstanceGroupManagerPrototypeInstanceGroupManagerScheduledPrototype(**instance_group_manager_prototype_instance_group_manager_scheduled_prototype_model_dict) + instance_group_manager_prototype_instance_group_manager_scheduled_prototype_model_dict = ( + InstanceGroupManagerPrototypeInstanceGroupManagerScheduledPrototype.from_dict( + instance_group_manager_prototype_instance_group_manager_scheduled_prototype_model_json + ).__dict__ + ) + instance_group_manager_prototype_instance_group_manager_scheduled_prototype_model2 = ( + InstanceGroupManagerPrototypeInstanceGroupManagerScheduledPrototype( + **instance_group_manager_prototype_instance_group_manager_scheduled_prototype_model_dict + ) + ) # Verify the model instances are equivalent - assert instance_group_manager_prototype_instance_group_manager_scheduled_prototype_model == instance_group_manager_prototype_instance_group_manager_scheduled_prototype_model2 + assert ( + instance_group_manager_prototype_instance_group_manager_scheduled_prototype_model + == instance_group_manager_prototype_instance_group_manager_scheduled_prototype_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_group_manager_prototype_instance_group_manager_scheduled_prototype_model_json2 = instance_group_manager_prototype_instance_group_manager_scheduled_prototype_model.to_dict() - assert instance_group_manager_prototype_instance_group_manager_scheduled_prototype_model_json2 == instance_group_manager_prototype_instance_group_manager_scheduled_prototype_model_json + instance_group_manager_prototype_instance_group_manager_scheduled_prototype_model_json2 = ( + instance_group_manager_prototype_instance_group_manager_scheduled_prototype_model.to_dict() + ) + assert ( + instance_group_manager_prototype_instance_group_manager_scheduled_prototype_model_json2 + == instance_group_manager_prototype_instance_group_manager_scheduled_prototype_model_json + ) class TestModel_InstanceGroupManagerScheduled: @@ -84415,7 +92012,9 @@ def test_instance_group_manager_scheduled_serialization(self): instance_group_manager_action_reference_model = {} # InstanceGroupManagerActionReference instance_group_manager_action_reference_model['deleted'] = deleted_model - instance_group_manager_action_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instance_groups/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/managers/4c939b00-601f-11ea-bca2-000c29475bed/actions/1e09281b-f177-46fb-baf1-bc152b2e391a' + instance_group_manager_action_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instance_groups/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/managers/4c939b00-601f-11ea-bca2-000c29475bed/actions/1e09281b-f177-46fb-baf1-bc152b2e391a' + ) instance_group_manager_action_reference_model['id'] = '1e09281b-f177-46fb-baf1-bc152b2e391a' instance_group_manager_action_reference_model['name'] = 'my-instance-group-manager-action' instance_group_manager_action_reference_model['resource_type'] = 'instance_group_manager_action' @@ -84423,7 +92022,9 @@ def test_instance_group_manager_scheduled_serialization(self): # Construct a json representation of a InstanceGroupManagerScheduled model instance_group_manager_scheduled_model_json = {} instance_group_manager_scheduled_model_json['created_at'] = '2019-01-01T12:00:00Z' - instance_group_manager_scheduled_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instance_groups/1e09281b-f177-46fb-baf1-bc152b2e391a/managers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727' + instance_group_manager_scheduled_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instance_groups/1e09281b-f177-46fb-baf1-bc152b2e391a/managers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727' + ) instance_group_manager_scheduled_model_json['id'] = '1e09281b-f177-46fb-baf1-bc152b2e391a' instance_group_manager_scheduled_model_json['management_enabled'] = True instance_group_manager_scheduled_model_json['name'] = 'my-instance-group-manager' @@ -84432,12 +92033,18 @@ def test_instance_group_manager_scheduled_serialization(self): instance_group_manager_scheduled_model_json['manager_type'] = 'scheduled' # Construct a model instance of InstanceGroupManagerScheduled by calling from_dict on the json representation - instance_group_manager_scheduled_model = InstanceGroupManagerScheduled.from_dict(instance_group_manager_scheduled_model_json) + instance_group_manager_scheduled_model = InstanceGroupManagerScheduled.from_dict( + instance_group_manager_scheduled_model_json + ) assert instance_group_manager_scheduled_model != False # Construct a model instance of InstanceGroupManagerScheduled by calling from_dict on the json representation - instance_group_manager_scheduled_model_dict = InstanceGroupManagerScheduled.from_dict(instance_group_manager_scheduled_model_json).__dict__ - instance_group_manager_scheduled_model2 = InstanceGroupManagerScheduled(**instance_group_manager_scheduled_model_dict) + instance_group_manager_scheduled_model_dict = InstanceGroupManagerScheduled.from_dict( + instance_group_manager_scheduled_model_json + ).__dict__ + instance_group_manager_scheduled_model2 = InstanceGroupManagerScheduled( + **instance_group_manager_scheduled_model_dict + ) # Verify the model instances are equivalent assert instance_group_manager_scheduled_model == instance_group_manager_scheduled_model2 @@ -84465,26 +92072,50 @@ def test_instance_group_manager_scheduled_action_manager_auto_scale_serializatio # Construct a json representation of a InstanceGroupManagerScheduledActionManagerAutoScale model instance_group_manager_scheduled_action_manager_auto_scale_model_json = {} instance_group_manager_scheduled_action_manager_auto_scale_model_json['deleted'] = deleted_model - instance_group_manager_scheduled_action_manager_auto_scale_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instance_groups/1e09281b-f177-46fb-baf1-bc152b2e391a/managers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727' - instance_group_manager_scheduled_action_manager_auto_scale_model_json['id'] = '1e09281b-f177-46fb-baf1-bc152b2e391a' + instance_group_manager_scheduled_action_manager_auto_scale_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instance_groups/1e09281b-f177-46fb-baf1-bc152b2e391a/managers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727' + ) + instance_group_manager_scheduled_action_manager_auto_scale_model_json['id'] = ( + '1e09281b-f177-46fb-baf1-bc152b2e391a' + ) instance_group_manager_scheduled_action_manager_auto_scale_model_json['name'] = 'my-instance-group-manager' instance_group_manager_scheduled_action_manager_auto_scale_model_json['max_membership_count'] = 10 instance_group_manager_scheduled_action_manager_auto_scale_model_json['min_membership_count'] = 10 # Construct a model instance of InstanceGroupManagerScheduledActionManagerAutoScale by calling from_dict on the json representation - instance_group_manager_scheduled_action_manager_auto_scale_model = InstanceGroupManagerScheduledActionManagerAutoScale.from_dict(instance_group_manager_scheduled_action_manager_auto_scale_model_json) + instance_group_manager_scheduled_action_manager_auto_scale_model = ( + InstanceGroupManagerScheduledActionManagerAutoScale.from_dict( + instance_group_manager_scheduled_action_manager_auto_scale_model_json + ) + ) assert instance_group_manager_scheduled_action_manager_auto_scale_model != False # Construct a model instance of InstanceGroupManagerScheduledActionManagerAutoScale by calling from_dict on the json representation - instance_group_manager_scheduled_action_manager_auto_scale_model_dict = InstanceGroupManagerScheduledActionManagerAutoScale.from_dict(instance_group_manager_scheduled_action_manager_auto_scale_model_json).__dict__ - instance_group_manager_scheduled_action_manager_auto_scale_model2 = InstanceGroupManagerScheduledActionManagerAutoScale(**instance_group_manager_scheduled_action_manager_auto_scale_model_dict) + instance_group_manager_scheduled_action_manager_auto_scale_model_dict = ( + InstanceGroupManagerScheduledActionManagerAutoScale.from_dict( + instance_group_manager_scheduled_action_manager_auto_scale_model_json + ).__dict__ + ) + instance_group_manager_scheduled_action_manager_auto_scale_model2 = ( + InstanceGroupManagerScheduledActionManagerAutoScale( + **instance_group_manager_scheduled_action_manager_auto_scale_model_dict + ) + ) # Verify the model instances are equivalent - assert instance_group_manager_scheduled_action_manager_auto_scale_model == instance_group_manager_scheduled_action_manager_auto_scale_model2 + assert ( + instance_group_manager_scheduled_action_manager_auto_scale_model + == instance_group_manager_scheduled_action_manager_auto_scale_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_group_manager_scheduled_action_manager_auto_scale_model_json2 = instance_group_manager_scheduled_action_manager_auto_scale_model.to_dict() - assert instance_group_manager_scheduled_action_manager_auto_scale_model_json2 == instance_group_manager_scheduled_action_manager_auto_scale_model_json + instance_group_manager_scheduled_action_manager_auto_scale_model_json2 = ( + instance_group_manager_scheduled_action_manager_auto_scale_model.to_dict() + ) + assert ( + instance_group_manager_scheduled_action_manager_auto_scale_model_json2 + == instance_group_manager_scheduled_action_manager_auto_scale_model_json + ) class TestModel_InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeInstanceNetworkAttachmentContext: @@ -84492,19 +92123,25 @@ class TestModel_InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtual Test Class for InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeInstanceNetworkAttachmentContext """ - def test_instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_instance_network_attachment_context_serialization(self): + def test_instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_instance_network_attachment_context_serialization( + self, + ): """ Test serialization/deserialization for InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeInstanceNetworkAttachmentContext """ # Construct dict forms of any model objects needed in order to build this model. - virtual_network_interface_ip_prototype_model = {} # VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext + virtual_network_interface_ip_prototype_model = ( + {} + ) # VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext virtual_network_interface_ip_prototype_model['address'] = '10.0.0.5' virtual_network_interface_ip_prototype_model['auto_delete'] = False virtual_network_interface_ip_prototype_model['name'] = 'my-reserved-ip' - virtual_network_interface_primary_ip_prototype_model = {} # VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext + virtual_network_interface_primary_ip_prototype_model = ( + {} + ) # VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext virtual_network_interface_primary_ip_prototype_model['address'] = '10.0.0.5' virtual_network_interface_primary_ip_prototype_model['auto_delete'] = False virtual_network_interface_primary_ip_prototype_model['name'] = 'my-reserved-ip' @@ -84519,32 +92156,75 @@ def test_instance_network_attachment_prototype_virtual_network_interface_virtual subnet_identity_model['id'] = '2302-ea5fe79f-52c3-4f05-86ae-9540a10489f5' # Construct a json representation of a InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeInstanceNetworkAttachmentContext model - instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_instance_network_attachment_context_model_json = {} - instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_instance_network_attachment_context_model_json['allow_ip_spoofing'] = True - instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_instance_network_attachment_context_model_json['auto_delete'] = False - instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_instance_network_attachment_context_model_json['enable_infrastructure_nat'] = True - instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_instance_network_attachment_context_model_json['ips'] = [virtual_network_interface_ip_prototype_model] - instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_instance_network_attachment_context_model_json['name'] = 'my-virtual-network-interface' - instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_instance_network_attachment_context_model_json['primary_ip'] = virtual_network_interface_primary_ip_prototype_model - instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_instance_network_attachment_context_model_json['protocol_state_filtering_mode'] = 'auto' - instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_instance_network_attachment_context_model_json['resource_group'] = resource_group_identity_model - instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_instance_network_attachment_context_model_json['security_groups'] = [security_group_identity_model] - instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_instance_network_attachment_context_model_json['subnet'] = subnet_identity_model + instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_instance_network_attachment_context_model_json = ( + {} + ) + instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_instance_network_attachment_context_model_json[ + 'allow_ip_spoofing' + ] = True + instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_instance_network_attachment_context_model_json[ + 'auto_delete' + ] = False + instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_instance_network_attachment_context_model_json[ + 'enable_infrastructure_nat' + ] = True + instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_instance_network_attachment_context_model_json[ + 'ips' + ] = [ + virtual_network_interface_ip_prototype_model + ] + instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_instance_network_attachment_context_model_json[ + 'name' + ] = 'my-virtual-network-interface' + instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_instance_network_attachment_context_model_json[ + 'primary_ip' + ] = virtual_network_interface_primary_ip_prototype_model + instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_instance_network_attachment_context_model_json[ + 'protocol_state_filtering_mode' + ] = 'auto' + instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_instance_network_attachment_context_model_json[ + 'resource_group' + ] = resource_group_identity_model + instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_instance_network_attachment_context_model_json[ + 'security_groups' + ] = [ + security_group_identity_model + ] + instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_instance_network_attachment_context_model_json[ + 'subnet' + ] = subnet_identity_model # Construct a model instance of InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeInstanceNetworkAttachmentContext by calling from_dict on the json representation - instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_instance_network_attachment_context_model = InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeInstanceNetworkAttachmentContext.from_dict(instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_instance_network_attachment_context_model_json) - assert instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_instance_network_attachment_context_model != False + instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_instance_network_attachment_context_model = InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeInstanceNetworkAttachmentContext.from_dict( + instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_instance_network_attachment_context_model_json + ) + assert ( + instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_instance_network_attachment_context_model + != False + ) # Construct a model instance of InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeInstanceNetworkAttachmentContext by calling from_dict on the json representation - instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_instance_network_attachment_context_model_dict = InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeInstanceNetworkAttachmentContext.from_dict(instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_instance_network_attachment_context_model_json).__dict__ - instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_instance_network_attachment_context_model2 = InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeInstanceNetworkAttachmentContext(**instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_instance_network_attachment_context_model_dict) + instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_instance_network_attachment_context_model_dict = InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeInstanceNetworkAttachmentContext.from_dict( + instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_instance_network_attachment_context_model_json + ).__dict__ + instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_instance_network_attachment_context_model2 = InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeInstanceNetworkAttachmentContext( + **instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_instance_network_attachment_context_model_dict + ) # Verify the model instances are equivalent - assert instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_instance_network_attachment_context_model == instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_instance_network_attachment_context_model2 + assert ( + instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_instance_network_attachment_context_model + == instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_instance_network_attachment_context_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_instance_network_attachment_context_model_json2 = instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_instance_network_attachment_context_model.to_dict() - assert instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_instance_network_attachment_context_model_json2 == instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_instance_network_attachment_context_model_json + instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_instance_network_attachment_context_model_json2 = ( + instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_instance_network_attachment_context_model.to_dict() + ) + assert ( + instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_instance_network_attachment_context_model_json2 + == instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_prototype_instance_network_attachment_context_model_json + ) class TestModel_InstancePatchProfileInstanceProfileIdentityByHref: @@ -84559,22 +92239,44 @@ def test_instance_patch_profile_instance_profile_identity_by_href_serialization( # Construct a json representation of a InstancePatchProfileInstanceProfileIdentityByHref model instance_patch_profile_instance_profile_identity_by_href_model_json = {} - instance_patch_profile_instance_profile_identity_by_href_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instance/profiles/bx2-4x16' + instance_patch_profile_instance_profile_identity_by_href_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instance/profiles/bx2-4x16' + ) # Construct a model instance of InstancePatchProfileInstanceProfileIdentityByHref by calling from_dict on the json representation - instance_patch_profile_instance_profile_identity_by_href_model = InstancePatchProfileInstanceProfileIdentityByHref.from_dict(instance_patch_profile_instance_profile_identity_by_href_model_json) + instance_patch_profile_instance_profile_identity_by_href_model = ( + InstancePatchProfileInstanceProfileIdentityByHref.from_dict( + instance_patch_profile_instance_profile_identity_by_href_model_json + ) + ) assert instance_patch_profile_instance_profile_identity_by_href_model != False # Construct a model instance of InstancePatchProfileInstanceProfileIdentityByHref by calling from_dict on the json representation - instance_patch_profile_instance_profile_identity_by_href_model_dict = InstancePatchProfileInstanceProfileIdentityByHref.from_dict(instance_patch_profile_instance_profile_identity_by_href_model_json).__dict__ - instance_patch_profile_instance_profile_identity_by_href_model2 = InstancePatchProfileInstanceProfileIdentityByHref(**instance_patch_profile_instance_profile_identity_by_href_model_dict) + instance_patch_profile_instance_profile_identity_by_href_model_dict = ( + InstancePatchProfileInstanceProfileIdentityByHref.from_dict( + instance_patch_profile_instance_profile_identity_by_href_model_json + ).__dict__ + ) + instance_patch_profile_instance_profile_identity_by_href_model2 = ( + InstancePatchProfileInstanceProfileIdentityByHref( + **instance_patch_profile_instance_profile_identity_by_href_model_dict + ) + ) # Verify the model instances are equivalent - assert instance_patch_profile_instance_profile_identity_by_href_model == instance_patch_profile_instance_profile_identity_by_href_model2 + assert ( + instance_patch_profile_instance_profile_identity_by_href_model + == instance_patch_profile_instance_profile_identity_by_href_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_patch_profile_instance_profile_identity_by_href_model_json2 = instance_patch_profile_instance_profile_identity_by_href_model.to_dict() - assert instance_patch_profile_instance_profile_identity_by_href_model_json2 == instance_patch_profile_instance_profile_identity_by_href_model_json + instance_patch_profile_instance_profile_identity_by_href_model_json2 = ( + instance_patch_profile_instance_profile_identity_by_href_model.to_dict() + ) + assert ( + instance_patch_profile_instance_profile_identity_by_href_model_json2 + == instance_patch_profile_instance_profile_identity_by_href_model_json + ) class TestModel_InstancePatchProfileInstanceProfileIdentityByName: @@ -84592,19 +92294,39 @@ def test_instance_patch_profile_instance_profile_identity_by_name_serialization( instance_patch_profile_instance_profile_identity_by_name_model_json['name'] = 'bx2-4x16' # Construct a model instance of InstancePatchProfileInstanceProfileIdentityByName by calling from_dict on the json representation - instance_patch_profile_instance_profile_identity_by_name_model = InstancePatchProfileInstanceProfileIdentityByName.from_dict(instance_patch_profile_instance_profile_identity_by_name_model_json) + instance_patch_profile_instance_profile_identity_by_name_model = ( + InstancePatchProfileInstanceProfileIdentityByName.from_dict( + instance_patch_profile_instance_profile_identity_by_name_model_json + ) + ) assert instance_patch_profile_instance_profile_identity_by_name_model != False # Construct a model instance of InstancePatchProfileInstanceProfileIdentityByName by calling from_dict on the json representation - instance_patch_profile_instance_profile_identity_by_name_model_dict = InstancePatchProfileInstanceProfileIdentityByName.from_dict(instance_patch_profile_instance_profile_identity_by_name_model_json).__dict__ - instance_patch_profile_instance_profile_identity_by_name_model2 = InstancePatchProfileInstanceProfileIdentityByName(**instance_patch_profile_instance_profile_identity_by_name_model_dict) + instance_patch_profile_instance_profile_identity_by_name_model_dict = ( + InstancePatchProfileInstanceProfileIdentityByName.from_dict( + instance_patch_profile_instance_profile_identity_by_name_model_json + ).__dict__ + ) + instance_patch_profile_instance_profile_identity_by_name_model2 = ( + InstancePatchProfileInstanceProfileIdentityByName( + **instance_patch_profile_instance_profile_identity_by_name_model_dict + ) + ) # Verify the model instances are equivalent - assert instance_patch_profile_instance_profile_identity_by_name_model == instance_patch_profile_instance_profile_identity_by_name_model2 + assert ( + instance_patch_profile_instance_profile_identity_by_name_model + == instance_patch_profile_instance_profile_identity_by_name_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_patch_profile_instance_profile_identity_by_name_model_json2 = instance_patch_profile_instance_profile_identity_by_name_model.to_dict() - assert instance_patch_profile_instance_profile_identity_by_name_model_json2 == instance_patch_profile_instance_profile_identity_by_name_model_json + instance_patch_profile_instance_profile_identity_by_name_model_json2 = ( + instance_patch_profile_instance_profile_identity_by_name_model.to_dict() + ) + assert ( + instance_patch_profile_instance_profile_identity_by_name_model_json2 + == instance_patch_profile_instance_profile_identity_by_name_model_json + ) class TestModel_InstancePlacementTargetDedicatedHostGroupReference: @@ -84624,27 +92346,53 @@ def test_instance_placement_target_dedicated_host_group_reference_serialization( # Construct a json representation of a InstancePlacementTargetDedicatedHostGroupReference model instance_placement_target_dedicated_host_group_reference_model_json = {} - instance_placement_target_dedicated_host_group_reference_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host-group:0717-bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0' + instance_placement_target_dedicated_host_group_reference_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host-group:0717-bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0' + ) instance_placement_target_dedicated_host_group_reference_model_json['deleted'] = deleted_model - instance_placement_target_dedicated_host_group_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/dedicated_host/groups/0717-bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0' - instance_placement_target_dedicated_host_group_reference_model_json['id'] = '0717-bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0' + instance_placement_target_dedicated_host_group_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/dedicated_host/groups/0717-bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0' + ) + instance_placement_target_dedicated_host_group_reference_model_json['id'] = ( + '0717-bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0' + ) instance_placement_target_dedicated_host_group_reference_model_json['name'] = 'my-dedicated-host-group' instance_placement_target_dedicated_host_group_reference_model_json['resource_type'] = 'dedicated_host_group' # Construct a model instance of InstancePlacementTargetDedicatedHostGroupReference by calling from_dict on the json representation - instance_placement_target_dedicated_host_group_reference_model = InstancePlacementTargetDedicatedHostGroupReference.from_dict(instance_placement_target_dedicated_host_group_reference_model_json) + instance_placement_target_dedicated_host_group_reference_model = ( + InstancePlacementTargetDedicatedHostGroupReference.from_dict( + instance_placement_target_dedicated_host_group_reference_model_json + ) + ) assert instance_placement_target_dedicated_host_group_reference_model != False # Construct a model instance of InstancePlacementTargetDedicatedHostGroupReference by calling from_dict on the json representation - instance_placement_target_dedicated_host_group_reference_model_dict = InstancePlacementTargetDedicatedHostGroupReference.from_dict(instance_placement_target_dedicated_host_group_reference_model_json).__dict__ - instance_placement_target_dedicated_host_group_reference_model2 = InstancePlacementTargetDedicatedHostGroupReference(**instance_placement_target_dedicated_host_group_reference_model_dict) + instance_placement_target_dedicated_host_group_reference_model_dict = ( + InstancePlacementTargetDedicatedHostGroupReference.from_dict( + instance_placement_target_dedicated_host_group_reference_model_json + ).__dict__ + ) + instance_placement_target_dedicated_host_group_reference_model2 = ( + InstancePlacementTargetDedicatedHostGroupReference( + **instance_placement_target_dedicated_host_group_reference_model_dict + ) + ) # Verify the model instances are equivalent - assert instance_placement_target_dedicated_host_group_reference_model == instance_placement_target_dedicated_host_group_reference_model2 + assert ( + instance_placement_target_dedicated_host_group_reference_model + == instance_placement_target_dedicated_host_group_reference_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_placement_target_dedicated_host_group_reference_model_json2 = instance_placement_target_dedicated_host_group_reference_model.to_dict() - assert instance_placement_target_dedicated_host_group_reference_model_json2 == instance_placement_target_dedicated_host_group_reference_model_json + instance_placement_target_dedicated_host_group_reference_model_json2 = ( + instance_placement_target_dedicated_host_group_reference_model.to_dict() + ) + assert ( + instance_placement_target_dedicated_host_group_reference_model_json2 + == instance_placement_target_dedicated_host_group_reference_model_json + ) class TestModel_InstancePlacementTargetDedicatedHostReference: @@ -84664,27 +92412,51 @@ def test_instance_placement_target_dedicated_host_reference_serialization(self): # Construct a json representation of a InstancePlacementTargetDedicatedHostReference model instance_placement_target_dedicated_host_reference_model_json = {} - instance_placement_target_dedicated_host_reference_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host:0717-1e09281b-f177-46fb-baf1-bc152b2e391a' + instance_placement_target_dedicated_host_reference_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host:0717-1e09281b-f177-46fb-baf1-bc152b2e391a' + ) instance_placement_target_dedicated_host_reference_model_json['deleted'] = deleted_model - instance_placement_target_dedicated_host_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/dedicated_hosts/0717-1e09281b-f177-46fb-baf1-bc152b2e391a' - instance_placement_target_dedicated_host_reference_model_json['id'] = '0717-1e09281b-f177-46fb-baf1-bc152b2e391a' + instance_placement_target_dedicated_host_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/dedicated_hosts/0717-1e09281b-f177-46fb-baf1-bc152b2e391a' + ) + instance_placement_target_dedicated_host_reference_model_json['id'] = ( + '0717-1e09281b-f177-46fb-baf1-bc152b2e391a' + ) instance_placement_target_dedicated_host_reference_model_json['name'] = 'my-host' instance_placement_target_dedicated_host_reference_model_json['resource_type'] = 'dedicated_host' # Construct a model instance of InstancePlacementTargetDedicatedHostReference by calling from_dict on the json representation - instance_placement_target_dedicated_host_reference_model = InstancePlacementTargetDedicatedHostReference.from_dict(instance_placement_target_dedicated_host_reference_model_json) + instance_placement_target_dedicated_host_reference_model = ( + InstancePlacementTargetDedicatedHostReference.from_dict( + instance_placement_target_dedicated_host_reference_model_json + ) + ) assert instance_placement_target_dedicated_host_reference_model != False # Construct a model instance of InstancePlacementTargetDedicatedHostReference by calling from_dict on the json representation - instance_placement_target_dedicated_host_reference_model_dict = InstancePlacementTargetDedicatedHostReference.from_dict(instance_placement_target_dedicated_host_reference_model_json).__dict__ - instance_placement_target_dedicated_host_reference_model2 = InstancePlacementTargetDedicatedHostReference(**instance_placement_target_dedicated_host_reference_model_dict) + instance_placement_target_dedicated_host_reference_model_dict = ( + InstancePlacementTargetDedicatedHostReference.from_dict( + instance_placement_target_dedicated_host_reference_model_json + ).__dict__ + ) + instance_placement_target_dedicated_host_reference_model2 = InstancePlacementTargetDedicatedHostReference( + **instance_placement_target_dedicated_host_reference_model_dict + ) # Verify the model instances are equivalent - assert instance_placement_target_dedicated_host_reference_model == instance_placement_target_dedicated_host_reference_model2 + assert ( + instance_placement_target_dedicated_host_reference_model + == instance_placement_target_dedicated_host_reference_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_placement_target_dedicated_host_reference_model_json2 = instance_placement_target_dedicated_host_reference_model.to_dict() - assert instance_placement_target_dedicated_host_reference_model_json2 == instance_placement_target_dedicated_host_reference_model_json + instance_placement_target_dedicated_host_reference_model_json2 = ( + instance_placement_target_dedicated_host_reference_model.to_dict() + ) + assert ( + instance_placement_target_dedicated_host_reference_model_json2 + == instance_placement_target_dedicated_host_reference_model_json + ) class TestModel_InstancePlacementTargetPlacementGroupReference: @@ -84704,27 +92476,51 @@ def test_instance_placement_target_placement_group_reference_serialization(self) # Construct a json representation of a InstancePlacementTargetPlacementGroupReference model instance_placement_target_placement_group_reference_model_json = {} - instance_placement_target_placement_group_reference_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::placement-group:r006-418fe842-a3e9-47b9-a938-1aa5bd632871' + instance_placement_target_placement_group_reference_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::placement-group:r006-418fe842-a3e9-47b9-a938-1aa5bd632871' + ) instance_placement_target_placement_group_reference_model_json['deleted'] = deleted_model - instance_placement_target_placement_group_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/placement_groups/r006-418fe842-a3e9-47b9-a938-1aa5bd632871' - instance_placement_target_placement_group_reference_model_json['id'] = 'r006-418fe842-a3e9-47b9-a938-1aa5bd632871' + instance_placement_target_placement_group_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/placement_groups/r006-418fe842-a3e9-47b9-a938-1aa5bd632871' + ) + instance_placement_target_placement_group_reference_model_json['id'] = ( + 'r006-418fe842-a3e9-47b9-a938-1aa5bd632871' + ) instance_placement_target_placement_group_reference_model_json['name'] = 'my-placement-group' instance_placement_target_placement_group_reference_model_json['resource_type'] = 'placement_group' # Construct a model instance of InstancePlacementTargetPlacementGroupReference by calling from_dict on the json representation - instance_placement_target_placement_group_reference_model = InstancePlacementTargetPlacementGroupReference.from_dict(instance_placement_target_placement_group_reference_model_json) + instance_placement_target_placement_group_reference_model = ( + InstancePlacementTargetPlacementGroupReference.from_dict( + instance_placement_target_placement_group_reference_model_json + ) + ) assert instance_placement_target_placement_group_reference_model != False # Construct a model instance of InstancePlacementTargetPlacementGroupReference by calling from_dict on the json representation - instance_placement_target_placement_group_reference_model_dict = InstancePlacementTargetPlacementGroupReference.from_dict(instance_placement_target_placement_group_reference_model_json).__dict__ - instance_placement_target_placement_group_reference_model2 = InstancePlacementTargetPlacementGroupReference(**instance_placement_target_placement_group_reference_model_dict) + instance_placement_target_placement_group_reference_model_dict = ( + InstancePlacementTargetPlacementGroupReference.from_dict( + instance_placement_target_placement_group_reference_model_json + ).__dict__ + ) + instance_placement_target_placement_group_reference_model2 = InstancePlacementTargetPlacementGroupReference( + **instance_placement_target_placement_group_reference_model_dict + ) # Verify the model instances are equivalent - assert instance_placement_target_placement_group_reference_model == instance_placement_target_placement_group_reference_model2 + assert ( + instance_placement_target_placement_group_reference_model + == instance_placement_target_placement_group_reference_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_placement_target_placement_group_reference_model_json2 = instance_placement_target_placement_group_reference_model.to_dict() - assert instance_placement_target_placement_group_reference_model_json2 == instance_placement_target_placement_group_reference_model_json + instance_placement_target_placement_group_reference_model_json2 = ( + instance_placement_target_placement_group_reference_model.to_dict() + ) + assert ( + instance_placement_target_placement_group_reference_model_json2 + == instance_placement_target_placement_group_reference_model_json + ) class TestModel_InstanceProfileBandwidthDependent: @@ -84742,12 +92538,18 @@ def test_instance_profile_bandwidth_dependent_serialization(self): instance_profile_bandwidth_dependent_model_json['type'] = 'dependent' # Construct a model instance of InstanceProfileBandwidthDependent by calling from_dict on the json representation - instance_profile_bandwidth_dependent_model = InstanceProfileBandwidthDependent.from_dict(instance_profile_bandwidth_dependent_model_json) + instance_profile_bandwidth_dependent_model = InstanceProfileBandwidthDependent.from_dict( + instance_profile_bandwidth_dependent_model_json + ) assert instance_profile_bandwidth_dependent_model != False # Construct a model instance of InstanceProfileBandwidthDependent by calling from_dict on the json representation - instance_profile_bandwidth_dependent_model_dict = InstanceProfileBandwidthDependent.from_dict(instance_profile_bandwidth_dependent_model_json).__dict__ - instance_profile_bandwidth_dependent_model2 = InstanceProfileBandwidthDependent(**instance_profile_bandwidth_dependent_model_dict) + instance_profile_bandwidth_dependent_model_dict = InstanceProfileBandwidthDependent.from_dict( + instance_profile_bandwidth_dependent_model_json + ).__dict__ + instance_profile_bandwidth_dependent_model2 = InstanceProfileBandwidthDependent( + **instance_profile_bandwidth_dependent_model_dict + ) # Verify the model instances are equivalent assert instance_profile_bandwidth_dependent_model == instance_profile_bandwidth_dependent_model2 @@ -84774,12 +92576,18 @@ def test_instance_profile_bandwidth_enum_serialization(self): instance_profile_bandwidth_enum_model_json['values'] = [16000, 32000, 48000] # Construct a model instance of InstanceProfileBandwidthEnum by calling from_dict on the json representation - instance_profile_bandwidth_enum_model = InstanceProfileBandwidthEnum.from_dict(instance_profile_bandwidth_enum_model_json) + instance_profile_bandwidth_enum_model = InstanceProfileBandwidthEnum.from_dict( + instance_profile_bandwidth_enum_model_json + ) assert instance_profile_bandwidth_enum_model != False # Construct a model instance of InstanceProfileBandwidthEnum by calling from_dict on the json representation - instance_profile_bandwidth_enum_model_dict = InstanceProfileBandwidthEnum.from_dict(instance_profile_bandwidth_enum_model_json).__dict__ - instance_profile_bandwidth_enum_model2 = InstanceProfileBandwidthEnum(**instance_profile_bandwidth_enum_model_dict) + instance_profile_bandwidth_enum_model_dict = InstanceProfileBandwidthEnum.from_dict( + instance_profile_bandwidth_enum_model_json + ).__dict__ + instance_profile_bandwidth_enum_model2 = InstanceProfileBandwidthEnum( + **instance_profile_bandwidth_enum_model_dict + ) # Verify the model instances are equivalent assert instance_profile_bandwidth_enum_model == instance_profile_bandwidth_enum_model2 @@ -84805,12 +92613,18 @@ def test_instance_profile_bandwidth_fixed_serialization(self): instance_profile_bandwidth_fixed_model_json['value'] = 20000 # Construct a model instance of InstanceProfileBandwidthFixed by calling from_dict on the json representation - instance_profile_bandwidth_fixed_model = InstanceProfileBandwidthFixed.from_dict(instance_profile_bandwidth_fixed_model_json) + instance_profile_bandwidth_fixed_model = InstanceProfileBandwidthFixed.from_dict( + instance_profile_bandwidth_fixed_model_json + ) assert instance_profile_bandwidth_fixed_model != False # Construct a model instance of InstanceProfileBandwidthFixed by calling from_dict on the json representation - instance_profile_bandwidth_fixed_model_dict = InstanceProfileBandwidthFixed.from_dict(instance_profile_bandwidth_fixed_model_json).__dict__ - instance_profile_bandwidth_fixed_model2 = InstanceProfileBandwidthFixed(**instance_profile_bandwidth_fixed_model_dict) + instance_profile_bandwidth_fixed_model_dict = InstanceProfileBandwidthFixed.from_dict( + instance_profile_bandwidth_fixed_model_json + ).__dict__ + instance_profile_bandwidth_fixed_model2 = InstanceProfileBandwidthFixed( + **instance_profile_bandwidth_fixed_model_dict + ) # Verify the model instances are equivalent assert instance_profile_bandwidth_fixed_model == instance_profile_bandwidth_fixed_model2 @@ -84839,12 +92653,18 @@ def test_instance_profile_bandwidth_range_serialization(self): instance_profile_bandwidth_range_model_json['type'] = 'range' # Construct a model instance of InstanceProfileBandwidthRange by calling from_dict on the json representation - instance_profile_bandwidth_range_model = InstanceProfileBandwidthRange.from_dict(instance_profile_bandwidth_range_model_json) + instance_profile_bandwidth_range_model = InstanceProfileBandwidthRange.from_dict( + instance_profile_bandwidth_range_model_json + ) assert instance_profile_bandwidth_range_model != False # Construct a model instance of InstanceProfileBandwidthRange by calling from_dict on the json representation - instance_profile_bandwidth_range_model_dict = InstanceProfileBandwidthRange.from_dict(instance_profile_bandwidth_range_model_json).__dict__ - instance_profile_bandwidth_range_model2 = InstanceProfileBandwidthRange(**instance_profile_bandwidth_range_model_dict) + instance_profile_bandwidth_range_model_dict = InstanceProfileBandwidthRange.from_dict( + instance_profile_bandwidth_range_model_json + ).__dict__ + instance_profile_bandwidth_range_model2 = InstanceProfileBandwidthRange( + **instance_profile_bandwidth_range_model_dict + ) # Verify the model instances are equivalent assert instance_profile_bandwidth_range_model == instance_profile_bandwidth_range_model2 @@ -84869,19 +92689,39 @@ def test_instance_profile_cluster_network_attachment_count_dependent_serializati instance_profile_cluster_network_attachment_count_dependent_model_json['type'] = 'dependent' # Construct a model instance of InstanceProfileClusterNetworkAttachmentCountDependent by calling from_dict on the json representation - instance_profile_cluster_network_attachment_count_dependent_model = InstanceProfileClusterNetworkAttachmentCountDependent.from_dict(instance_profile_cluster_network_attachment_count_dependent_model_json) + instance_profile_cluster_network_attachment_count_dependent_model = ( + InstanceProfileClusterNetworkAttachmentCountDependent.from_dict( + instance_profile_cluster_network_attachment_count_dependent_model_json + ) + ) assert instance_profile_cluster_network_attachment_count_dependent_model != False # Construct a model instance of InstanceProfileClusterNetworkAttachmentCountDependent by calling from_dict on the json representation - instance_profile_cluster_network_attachment_count_dependent_model_dict = InstanceProfileClusterNetworkAttachmentCountDependent.from_dict(instance_profile_cluster_network_attachment_count_dependent_model_json).__dict__ - instance_profile_cluster_network_attachment_count_dependent_model2 = InstanceProfileClusterNetworkAttachmentCountDependent(**instance_profile_cluster_network_attachment_count_dependent_model_dict) + instance_profile_cluster_network_attachment_count_dependent_model_dict = ( + InstanceProfileClusterNetworkAttachmentCountDependent.from_dict( + instance_profile_cluster_network_attachment_count_dependent_model_json + ).__dict__ + ) + instance_profile_cluster_network_attachment_count_dependent_model2 = ( + InstanceProfileClusterNetworkAttachmentCountDependent( + **instance_profile_cluster_network_attachment_count_dependent_model_dict + ) + ) # Verify the model instances are equivalent - assert instance_profile_cluster_network_attachment_count_dependent_model == instance_profile_cluster_network_attachment_count_dependent_model2 + assert ( + instance_profile_cluster_network_attachment_count_dependent_model + == instance_profile_cluster_network_attachment_count_dependent_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_profile_cluster_network_attachment_count_dependent_model_json2 = instance_profile_cluster_network_attachment_count_dependent_model.to_dict() - assert instance_profile_cluster_network_attachment_count_dependent_model_json2 == instance_profile_cluster_network_attachment_count_dependent_model_json + instance_profile_cluster_network_attachment_count_dependent_model_json2 = ( + instance_profile_cluster_network_attachment_count_dependent_model.to_dict() + ) + assert ( + instance_profile_cluster_network_attachment_count_dependent_model_json2 + == instance_profile_cluster_network_attachment_count_dependent_model_json + ) class TestModel_InstanceProfileClusterNetworkAttachmentCountEnum: @@ -84901,19 +92741,39 @@ def test_instance_profile_cluster_network_attachment_count_enum_serialization(se instance_profile_cluster_network_attachment_count_enum_model_json['values'] = [0, 8, 16, 32] # Construct a model instance of InstanceProfileClusterNetworkAttachmentCountEnum by calling from_dict on the json representation - instance_profile_cluster_network_attachment_count_enum_model = InstanceProfileClusterNetworkAttachmentCountEnum.from_dict(instance_profile_cluster_network_attachment_count_enum_model_json) + instance_profile_cluster_network_attachment_count_enum_model = ( + InstanceProfileClusterNetworkAttachmentCountEnum.from_dict( + instance_profile_cluster_network_attachment_count_enum_model_json + ) + ) assert instance_profile_cluster_network_attachment_count_enum_model != False # Construct a model instance of InstanceProfileClusterNetworkAttachmentCountEnum by calling from_dict on the json representation - instance_profile_cluster_network_attachment_count_enum_model_dict = InstanceProfileClusterNetworkAttachmentCountEnum.from_dict(instance_profile_cluster_network_attachment_count_enum_model_json).__dict__ - instance_profile_cluster_network_attachment_count_enum_model2 = InstanceProfileClusterNetworkAttachmentCountEnum(**instance_profile_cluster_network_attachment_count_enum_model_dict) + instance_profile_cluster_network_attachment_count_enum_model_dict = ( + InstanceProfileClusterNetworkAttachmentCountEnum.from_dict( + instance_profile_cluster_network_attachment_count_enum_model_json + ).__dict__ + ) + instance_profile_cluster_network_attachment_count_enum_model2 = ( + InstanceProfileClusterNetworkAttachmentCountEnum( + **instance_profile_cluster_network_attachment_count_enum_model_dict + ) + ) # Verify the model instances are equivalent - assert instance_profile_cluster_network_attachment_count_enum_model == instance_profile_cluster_network_attachment_count_enum_model2 + assert ( + instance_profile_cluster_network_attachment_count_enum_model + == instance_profile_cluster_network_attachment_count_enum_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_profile_cluster_network_attachment_count_enum_model_json2 = instance_profile_cluster_network_attachment_count_enum_model.to_dict() - assert instance_profile_cluster_network_attachment_count_enum_model_json2 == instance_profile_cluster_network_attachment_count_enum_model_json + instance_profile_cluster_network_attachment_count_enum_model_json2 = ( + instance_profile_cluster_network_attachment_count_enum_model.to_dict() + ) + assert ( + instance_profile_cluster_network_attachment_count_enum_model_json2 + == instance_profile_cluster_network_attachment_count_enum_model_json + ) class TestModel_InstanceProfileClusterNetworkAttachmentCountRange: @@ -84934,19 +92794,39 @@ def test_instance_profile_cluster_network_attachment_count_range_serialization(s instance_profile_cluster_network_attachment_count_range_model_json['type'] = 'range' # Construct a model instance of InstanceProfileClusterNetworkAttachmentCountRange by calling from_dict on the json representation - instance_profile_cluster_network_attachment_count_range_model = InstanceProfileClusterNetworkAttachmentCountRange.from_dict(instance_profile_cluster_network_attachment_count_range_model_json) + instance_profile_cluster_network_attachment_count_range_model = ( + InstanceProfileClusterNetworkAttachmentCountRange.from_dict( + instance_profile_cluster_network_attachment_count_range_model_json + ) + ) assert instance_profile_cluster_network_attachment_count_range_model != False # Construct a model instance of InstanceProfileClusterNetworkAttachmentCountRange by calling from_dict on the json representation - instance_profile_cluster_network_attachment_count_range_model_dict = InstanceProfileClusterNetworkAttachmentCountRange.from_dict(instance_profile_cluster_network_attachment_count_range_model_json).__dict__ - instance_profile_cluster_network_attachment_count_range_model2 = InstanceProfileClusterNetworkAttachmentCountRange(**instance_profile_cluster_network_attachment_count_range_model_dict) + instance_profile_cluster_network_attachment_count_range_model_dict = ( + InstanceProfileClusterNetworkAttachmentCountRange.from_dict( + instance_profile_cluster_network_attachment_count_range_model_json + ).__dict__ + ) + instance_profile_cluster_network_attachment_count_range_model2 = ( + InstanceProfileClusterNetworkAttachmentCountRange( + **instance_profile_cluster_network_attachment_count_range_model_dict + ) + ) # Verify the model instances are equivalent - assert instance_profile_cluster_network_attachment_count_range_model == instance_profile_cluster_network_attachment_count_range_model2 + assert ( + instance_profile_cluster_network_attachment_count_range_model + == instance_profile_cluster_network_attachment_count_range_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_profile_cluster_network_attachment_count_range_model_json2 = instance_profile_cluster_network_attachment_count_range_model.to_dict() - assert instance_profile_cluster_network_attachment_count_range_model_json2 == instance_profile_cluster_network_attachment_count_range_model_json + instance_profile_cluster_network_attachment_count_range_model_json2 = ( + instance_profile_cluster_network_attachment_count_range_model.to_dict() + ) + assert ( + instance_profile_cluster_network_attachment_count_range_model_json2 + == instance_profile_cluster_network_attachment_count_range_model_json + ) class TestModel_InstanceProfileDiskQuantityDependent: @@ -84964,19 +92844,27 @@ def test_instance_profile_disk_quantity_dependent_serialization(self): instance_profile_disk_quantity_dependent_model_json['type'] = 'dependent' # Construct a model instance of InstanceProfileDiskQuantityDependent by calling from_dict on the json representation - instance_profile_disk_quantity_dependent_model = InstanceProfileDiskQuantityDependent.from_dict(instance_profile_disk_quantity_dependent_model_json) + instance_profile_disk_quantity_dependent_model = InstanceProfileDiskQuantityDependent.from_dict( + instance_profile_disk_quantity_dependent_model_json + ) assert instance_profile_disk_quantity_dependent_model != False # Construct a model instance of InstanceProfileDiskQuantityDependent by calling from_dict on the json representation - instance_profile_disk_quantity_dependent_model_dict = InstanceProfileDiskQuantityDependent.from_dict(instance_profile_disk_quantity_dependent_model_json).__dict__ - instance_profile_disk_quantity_dependent_model2 = InstanceProfileDiskQuantityDependent(**instance_profile_disk_quantity_dependent_model_dict) + instance_profile_disk_quantity_dependent_model_dict = InstanceProfileDiskQuantityDependent.from_dict( + instance_profile_disk_quantity_dependent_model_json + ).__dict__ + instance_profile_disk_quantity_dependent_model2 = InstanceProfileDiskQuantityDependent( + **instance_profile_disk_quantity_dependent_model_dict + ) # Verify the model instances are equivalent assert instance_profile_disk_quantity_dependent_model == instance_profile_disk_quantity_dependent_model2 # Convert model instance back to dict and verify no loss of data instance_profile_disk_quantity_dependent_model_json2 = instance_profile_disk_quantity_dependent_model.to_dict() - assert instance_profile_disk_quantity_dependent_model_json2 == instance_profile_disk_quantity_dependent_model_json + assert ( + instance_profile_disk_quantity_dependent_model_json2 == instance_profile_disk_quantity_dependent_model_json + ) class TestModel_InstanceProfileDiskQuantityEnum: @@ -84996,12 +92884,18 @@ def test_instance_profile_disk_quantity_enum_serialization(self): instance_profile_disk_quantity_enum_model_json['values'] = [1, 2, 4, 8] # Construct a model instance of InstanceProfileDiskQuantityEnum by calling from_dict on the json representation - instance_profile_disk_quantity_enum_model = InstanceProfileDiskQuantityEnum.from_dict(instance_profile_disk_quantity_enum_model_json) + instance_profile_disk_quantity_enum_model = InstanceProfileDiskQuantityEnum.from_dict( + instance_profile_disk_quantity_enum_model_json + ) assert instance_profile_disk_quantity_enum_model != False # Construct a model instance of InstanceProfileDiskQuantityEnum by calling from_dict on the json representation - instance_profile_disk_quantity_enum_model_dict = InstanceProfileDiskQuantityEnum.from_dict(instance_profile_disk_quantity_enum_model_json).__dict__ - instance_profile_disk_quantity_enum_model2 = InstanceProfileDiskQuantityEnum(**instance_profile_disk_quantity_enum_model_dict) + instance_profile_disk_quantity_enum_model_dict = InstanceProfileDiskQuantityEnum.from_dict( + instance_profile_disk_quantity_enum_model_json + ).__dict__ + instance_profile_disk_quantity_enum_model2 = InstanceProfileDiskQuantityEnum( + **instance_profile_disk_quantity_enum_model_dict + ) # Verify the model instances are equivalent assert instance_profile_disk_quantity_enum_model == instance_profile_disk_quantity_enum_model2 @@ -85027,12 +92921,18 @@ def test_instance_profile_disk_quantity_fixed_serialization(self): instance_profile_disk_quantity_fixed_model_json['value'] = 4 # Construct a model instance of InstanceProfileDiskQuantityFixed by calling from_dict on the json representation - instance_profile_disk_quantity_fixed_model = InstanceProfileDiskQuantityFixed.from_dict(instance_profile_disk_quantity_fixed_model_json) + instance_profile_disk_quantity_fixed_model = InstanceProfileDiskQuantityFixed.from_dict( + instance_profile_disk_quantity_fixed_model_json + ) assert instance_profile_disk_quantity_fixed_model != False # Construct a model instance of InstanceProfileDiskQuantityFixed by calling from_dict on the json representation - instance_profile_disk_quantity_fixed_model_dict = InstanceProfileDiskQuantityFixed.from_dict(instance_profile_disk_quantity_fixed_model_json).__dict__ - instance_profile_disk_quantity_fixed_model2 = InstanceProfileDiskQuantityFixed(**instance_profile_disk_quantity_fixed_model_dict) + instance_profile_disk_quantity_fixed_model_dict = InstanceProfileDiskQuantityFixed.from_dict( + instance_profile_disk_quantity_fixed_model_json + ).__dict__ + instance_profile_disk_quantity_fixed_model2 = InstanceProfileDiskQuantityFixed( + **instance_profile_disk_quantity_fixed_model_dict + ) # Verify the model instances are equivalent assert instance_profile_disk_quantity_fixed_model == instance_profile_disk_quantity_fixed_model2 @@ -85061,12 +92961,18 @@ def test_instance_profile_disk_quantity_range_serialization(self): instance_profile_disk_quantity_range_model_json['type'] = 'range' # Construct a model instance of InstanceProfileDiskQuantityRange by calling from_dict on the json representation - instance_profile_disk_quantity_range_model = InstanceProfileDiskQuantityRange.from_dict(instance_profile_disk_quantity_range_model_json) + instance_profile_disk_quantity_range_model = InstanceProfileDiskQuantityRange.from_dict( + instance_profile_disk_quantity_range_model_json + ) assert instance_profile_disk_quantity_range_model != False # Construct a model instance of InstanceProfileDiskQuantityRange by calling from_dict on the json representation - instance_profile_disk_quantity_range_model_dict = InstanceProfileDiskQuantityRange.from_dict(instance_profile_disk_quantity_range_model_json).__dict__ - instance_profile_disk_quantity_range_model2 = InstanceProfileDiskQuantityRange(**instance_profile_disk_quantity_range_model_dict) + instance_profile_disk_quantity_range_model_dict = InstanceProfileDiskQuantityRange.from_dict( + instance_profile_disk_quantity_range_model_json + ).__dict__ + instance_profile_disk_quantity_range_model2 = InstanceProfileDiskQuantityRange( + **instance_profile_disk_quantity_range_model_dict + ) # Verify the model instances are equivalent assert instance_profile_disk_quantity_range_model == instance_profile_disk_quantity_range_model2 @@ -85091,12 +92997,18 @@ def test_instance_profile_disk_size_dependent_serialization(self): instance_profile_disk_size_dependent_model_json['type'] = 'dependent' # Construct a model instance of InstanceProfileDiskSizeDependent by calling from_dict on the json representation - instance_profile_disk_size_dependent_model = InstanceProfileDiskSizeDependent.from_dict(instance_profile_disk_size_dependent_model_json) + instance_profile_disk_size_dependent_model = InstanceProfileDiskSizeDependent.from_dict( + instance_profile_disk_size_dependent_model_json + ) assert instance_profile_disk_size_dependent_model != False # Construct a model instance of InstanceProfileDiskSizeDependent by calling from_dict on the json representation - instance_profile_disk_size_dependent_model_dict = InstanceProfileDiskSizeDependent.from_dict(instance_profile_disk_size_dependent_model_json).__dict__ - instance_profile_disk_size_dependent_model2 = InstanceProfileDiskSizeDependent(**instance_profile_disk_size_dependent_model_dict) + instance_profile_disk_size_dependent_model_dict = InstanceProfileDiskSizeDependent.from_dict( + instance_profile_disk_size_dependent_model_json + ).__dict__ + instance_profile_disk_size_dependent_model2 = InstanceProfileDiskSizeDependent( + **instance_profile_disk_size_dependent_model_dict + ) # Verify the model instances are equivalent assert instance_profile_disk_size_dependent_model == instance_profile_disk_size_dependent_model2 @@ -85123,12 +93035,18 @@ def test_instance_profile_disk_size_enum_serialization(self): instance_profile_disk_size_enum_model_json['values'] = [1, 2, 4, 8] # Construct a model instance of InstanceProfileDiskSizeEnum by calling from_dict on the json representation - instance_profile_disk_size_enum_model = InstanceProfileDiskSizeEnum.from_dict(instance_profile_disk_size_enum_model_json) + instance_profile_disk_size_enum_model = InstanceProfileDiskSizeEnum.from_dict( + instance_profile_disk_size_enum_model_json + ) assert instance_profile_disk_size_enum_model != False # Construct a model instance of InstanceProfileDiskSizeEnum by calling from_dict on the json representation - instance_profile_disk_size_enum_model_dict = InstanceProfileDiskSizeEnum.from_dict(instance_profile_disk_size_enum_model_json).__dict__ - instance_profile_disk_size_enum_model2 = InstanceProfileDiskSizeEnum(**instance_profile_disk_size_enum_model_dict) + instance_profile_disk_size_enum_model_dict = InstanceProfileDiskSizeEnum.from_dict( + instance_profile_disk_size_enum_model_json + ).__dict__ + instance_profile_disk_size_enum_model2 = InstanceProfileDiskSizeEnum( + **instance_profile_disk_size_enum_model_dict + ) # Verify the model instances are equivalent assert instance_profile_disk_size_enum_model == instance_profile_disk_size_enum_model2 @@ -85154,12 +93072,18 @@ def test_instance_profile_disk_size_fixed_serialization(self): instance_profile_disk_size_fixed_model_json['value'] = 100 # Construct a model instance of InstanceProfileDiskSizeFixed by calling from_dict on the json representation - instance_profile_disk_size_fixed_model = InstanceProfileDiskSizeFixed.from_dict(instance_profile_disk_size_fixed_model_json) + instance_profile_disk_size_fixed_model = InstanceProfileDiskSizeFixed.from_dict( + instance_profile_disk_size_fixed_model_json + ) assert instance_profile_disk_size_fixed_model != False # Construct a model instance of InstanceProfileDiskSizeFixed by calling from_dict on the json representation - instance_profile_disk_size_fixed_model_dict = InstanceProfileDiskSizeFixed.from_dict(instance_profile_disk_size_fixed_model_json).__dict__ - instance_profile_disk_size_fixed_model2 = InstanceProfileDiskSizeFixed(**instance_profile_disk_size_fixed_model_dict) + instance_profile_disk_size_fixed_model_dict = InstanceProfileDiskSizeFixed.from_dict( + instance_profile_disk_size_fixed_model_json + ).__dict__ + instance_profile_disk_size_fixed_model2 = InstanceProfileDiskSizeFixed( + **instance_profile_disk_size_fixed_model_dict + ) # Verify the model instances are equivalent assert instance_profile_disk_size_fixed_model == instance_profile_disk_size_fixed_model2 @@ -85188,12 +93112,18 @@ def test_instance_profile_disk_size_range_serialization(self): instance_profile_disk_size_range_model_json['type'] = 'range' # Construct a model instance of InstanceProfileDiskSizeRange by calling from_dict on the json representation - instance_profile_disk_size_range_model = InstanceProfileDiskSizeRange.from_dict(instance_profile_disk_size_range_model_json) + instance_profile_disk_size_range_model = InstanceProfileDiskSizeRange.from_dict( + instance_profile_disk_size_range_model_json + ) assert instance_profile_disk_size_range_model != False # Construct a model instance of InstanceProfileDiskSizeRange by calling from_dict on the json representation - instance_profile_disk_size_range_model_dict = InstanceProfileDiskSizeRange.from_dict(instance_profile_disk_size_range_model_json).__dict__ - instance_profile_disk_size_range_model2 = InstanceProfileDiskSizeRange(**instance_profile_disk_size_range_model_dict) + instance_profile_disk_size_range_model_dict = InstanceProfileDiskSizeRange.from_dict( + instance_profile_disk_size_range_model_json + ).__dict__ + instance_profile_disk_size_range_model2 = InstanceProfileDiskSizeRange( + **instance_profile_disk_size_range_model_dict + ) # Verify the model instances are equivalent assert instance_profile_disk_size_range_model == instance_profile_disk_size_range_model2 @@ -85218,11 +93148,15 @@ def test_instance_profile_gpu_dependent_serialization(self): instance_profile_gpu_dependent_model_json['type'] = 'dependent' # Construct a model instance of InstanceProfileGPUDependent by calling from_dict on the json representation - instance_profile_gpu_dependent_model = InstanceProfileGPUDependent.from_dict(instance_profile_gpu_dependent_model_json) + instance_profile_gpu_dependent_model = InstanceProfileGPUDependent.from_dict( + instance_profile_gpu_dependent_model_json + ) assert instance_profile_gpu_dependent_model != False # Construct a model instance of InstanceProfileGPUDependent by calling from_dict on the json representation - instance_profile_gpu_dependent_model_dict = InstanceProfileGPUDependent.from_dict(instance_profile_gpu_dependent_model_json).__dict__ + instance_profile_gpu_dependent_model_dict = InstanceProfileGPUDependent.from_dict( + instance_profile_gpu_dependent_model_json + ).__dict__ instance_profile_gpu_dependent_model2 = InstanceProfileGPUDependent(**instance_profile_gpu_dependent_model_dict) # Verify the model instances are equivalent @@ -85254,7 +93188,9 @@ def test_instance_profile_gpu_enum_serialization(self): assert instance_profile_gpu_enum_model != False # Construct a model instance of InstanceProfileGPUEnum by calling from_dict on the json representation - instance_profile_gpu_enum_model_dict = InstanceProfileGPUEnum.from_dict(instance_profile_gpu_enum_model_json).__dict__ + instance_profile_gpu_enum_model_dict = InstanceProfileGPUEnum.from_dict( + instance_profile_gpu_enum_model_json + ).__dict__ instance_profile_gpu_enum_model2 = InstanceProfileGPUEnum(**instance_profile_gpu_enum_model_dict) # Verify the model instances are equivalent @@ -85285,7 +93221,9 @@ def test_instance_profile_gpu_fixed_serialization(self): assert instance_profile_gpu_fixed_model != False # Construct a model instance of InstanceProfileGPUFixed by calling from_dict on the json representation - instance_profile_gpu_fixed_model_dict = InstanceProfileGPUFixed.from_dict(instance_profile_gpu_fixed_model_json).__dict__ + instance_profile_gpu_fixed_model_dict = InstanceProfileGPUFixed.from_dict( + instance_profile_gpu_fixed_model_json + ).__dict__ instance_profile_gpu_fixed_model2 = InstanceProfileGPUFixed(**instance_profile_gpu_fixed_model_dict) # Verify the model instances are equivalent @@ -85311,12 +93249,18 @@ def test_instance_profile_gpu_memory_dependent_serialization(self): instance_profile_gpu_memory_dependent_model_json['type'] = 'dependent' # Construct a model instance of InstanceProfileGPUMemoryDependent by calling from_dict on the json representation - instance_profile_gpu_memory_dependent_model = InstanceProfileGPUMemoryDependent.from_dict(instance_profile_gpu_memory_dependent_model_json) + instance_profile_gpu_memory_dependent_model = InstanceProfileGPUMemoryDependent.from_dict( + instance_profile_gpu_memory_dependent_model_json + ) assert instance_profile_gpu_memory_dependent_model != False # Construct a model instance of InstanceProfileGPUMemoryDependent by calling from_dict on the json representation - instance_profile_gpu_memory_dependent_model_dict = InstanceProfileGPUMemoryDependent.from_dict(instance_profile_gpu_memory_dependent_model_json).__dict__ - instance_profile_gpu_memory_dependent_model2 = InstanceProfileGPUMemoryDependent(**instance_profile_gpu_memory_dependent_model_dict) + instance_profile_gpu_memory_dependent_model_dict = InstanceProfileGPUMemoryDependent.from_dict( + instance_profile_gpu_memory_dependent_model_json + ).__dict__ + instance_profile_gpu_memory_dependent_model2 = InstanceProfileGPUMemoryDependent( + **instance_profile_gpu_memory_dependent_model_dict + ) # Verify the model instances are equivalent assert instance_profile_gpu_memory_dependent_model == instance_profile_gpu_memory_dependent_model2 @@ -85343,12 +93287,18 @@ def test_instance_profile_gpu_memory_enum_serialization(self): instance_profile_gpu_memory_enum_model_json['values'] = [16, 32] # Construct a model instance of InstanceProfileGPUMemoryEnum by calling from_dict on the json representation - instance_profile_gpu_memory_enum_model = InstanceProfileGPUMemoryEnum.from_dict(instance_profile_gpu_memory_enum_model_json) + instance_profile_gpu_memory_enum_model = InstanceProfileGPUMemoryEnum.from_dict( + instance_profile_gpu_memory_enum_model_json + ) assert instance_profile_gpu_memory_enum_model != False # Construct a model instance of InstanceProfileGPUMemoryEnum by calling from_dict on the json representation - instance_profile_gpu_memory_enum_model_dict = InstanceProfileGPUMemoryEnum.from_dict(instance_profile_gpu_memory_enum_model_json).__dict__ - instance_profile_gpu_memory_enum_model2 = InstanceProfileGPUMemoryEnum(**instance_profile_gpu_memory_enum_model_dict) + instance_profile_gpu_memory_enum_model_dict = InstanceProfileGPUMemoryEnum.from_dict( + instance_profile_gpu_memory_enum_model_json + ).__dict__ + instance_profile_gpu_memory_enum_model2 = InstanceProfileGPUMemoryEnum( + **instance_profile_gpu_memory_enum_model_dict + ) # Verify the model instances are equivalent assert instance_profile_gpu_memory_enum_model == instance_profile_gpu_memory_enum_model2 @@ -85374,12 +93324,18 @@ def test_instance_profile_gpu_memory_fixed_serialization(self): instance_profile_gpu_memory_fixed_model_json['value'] = 16 # Construct a model instance of InstanceProfileGPUMemoryFixed by calling from_dict on the json representation - instance_profile_gpu_memory_fixed_model = InstanceProfileGPUMemoryFixed.from_dict(instance_profile_gpu_memory_fixed_model_json) + instance_profile_gpu_memory_fixed_model = InstanceProfileGPUMemoryFixed.from_dict( + instance_profile_gpu_memory_fixed_model_json + ) assert instance_profile_gpu_memory_fixed_model != False # Construct a model instance of InstanceProfileGPUMemoryFixed by calling from_dict on the json representation - instance_profile_gpu_memory_fixed_model_dict = InstanceProfileGPUMemoryFixed.from_dict(instance_profile_gpu_memory_fixed_model_json).__dict__ - instance_profile_gpu_memory_fixed_model2 = InstanceProfileGPUMemoryFixed(**instance_profile_gpu_memory_fixed_model_dict) + instance_profile_gpu_memory_fixed_model_dict = InstanceProfileGPUMemoryFixed.from_dict( + instance_profile_gpu_memory_fixed_model_json + ).__dict__ + instance_profile_gpu_memory_fixed_model2 = InstanceProfileGPUMemoryFixed( + **instance_profile_gpu_memory_fixed_model_dict + ) # Verify the model instances are equivalent assert instance_profile_gpu_memory_fixed_model == instance_profile_gpu_memory_fixed_model2 @@ -85408,12 +93364,18 @@ def test_instance_profile_gpu_memory_range_serialization(self): instance_profile_gpu_memory_range_model_json['type'] = 'range' # Construct a model instance of InstanceProfileGPUMemoryRange by calling from_dict on the json representation - instance_profile_gpu_memory_range_model = InstanceProfileGPUMemoryRange.from_dict(instance_profile_gpu_memory_range_model_json) + instance_profile_gpu_memory_range_model = InstanceProfileGPUMemoryRange.from_dict( + instance_profile_gpu_memory_range_model_json + ) assert instance_profile_gpu_memory_range_model != False # Construct a model instance of InstanceProfileGPUMemoryRange by calling from_dict on the json representation - instance_profile_gpu_memory_range_model_dict = InstanceProfileGPUMemoryRange.from_dict(instance_profile_gpu_memory_range_model_json).__dict__ - instance_profile_gpu_memory_range_model2 = InstanceProfileGPUMemoryRange(**instance_profile_gpu_memory_range_model_dict) + instance_profile_gpu_memory_range_model_dict = InstanceProfileGPUMemoryRange.from_dict( + instance_profile_gpu_memory_range_model_json + ).__dict__ + instance_profile_gpu_memory_range_model2 = InstanceProfileGPUMemoryRange( + **instance_profile_gpu_memory_range_model_dict + ) # Verify the model instances are equivalent assert instance_profile_gpu_memory_range_model == instance_profile_gpu_memory_range_model2 @@ -85446,7 +93408,9 @@ def test_instance_profile_gpu_range_serialization(self): assert instance_profile_gpu_range_model != False # Construct a model instance of InstanceProfileGPURange by calling from_dict on the json representation - instance_profile_gpu_range_model_dict = InstanceProfileGPURange.from_dict(instance_profile_gpu_range_model_json).__dict__ + instance_profile_gpu_range_model_dict = InstanceProfileGPURange.from_dict( + instance_profile_gpu_range_model_json + ).__dict__ instance_profile_gpu_range_model2 = InstanceProfileGPURange(**instance_profile_gpu_range_model_dict) # Verify the model instances are equivalent @@ -85469,15 +93433,23 @@ def test_instance_profile_identity_by_href_serialization(self): # Construct a json representation of a InstanceProfileIdentityByHref model instance_profile_identity_by_href_model_json = {} - instance_profile_identity_by_href_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instance/profiles/bx2-4x16' + instance_profile_identity_by_href_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instance/profiles/bx2-4x16' + ) # Construct a model instance of InstanceProfileIdentityByHref by calling from_dict on the json representation - instance_profile_identity_by_href_model = InstanceProfileIdentityByHref.from_dict(instance_profile_identity_by_href_model_json) + instance_profile_identity_by_href_model = InstanceProfileIdentityByHref.from_dict( + instance_profile_identity_by_href_model_json + ) assert instance_profile_identity_by_href_model != False # Construct a model instance of InstanceProfileIdentityByHref by calling from_dict on the json representation - instance_profile_identity_by_href_model_dict = InstanceProfileIdentityByHref.from_dict(instance_profile_identity_by_href_model_json).__dict__ - instance_profile_identity_by_href_model2 = InstanceProfileIdentityByHref(**instance_profile_identity_by_href_model_dict) + instance_profile_identity_by_href_model_dict = InstanceProfileIdentityByHref.from_dict( + instance_profile_identity_by_href_model_json + ).__dict__ + instance_profile_identity_by_href_model2 = InstanceProfileIdentityByHref( + **instance_profile_identity_by_href_model_dict + ) # Verify the model instances are equivalent assert instance_profile_identity_by_href_model == instance_profile_identity_by_href_model2 @@ -85502,12 +93474,18 @@ def test_instance_profile_identity_by_name_serialization(self): instance_profile_identity_by_name_model_json['name'] = 'bx2-4x16' # Construct a model instance of InstanceProfileIdentityByName by calling from_dict on the json representation - instance_profile_identity_by_name_model = InstanceProfileIdentityByName.from_dict(instance_profile_identity_by_name_model_json) + instance_profile_identity_by_name_model = InstanceProfileIdentityByName.from_dict( + instance_profile_identity_by_name_model_json + ) assert instance_profile_identity_by_name_model != False # Construct a model instance of InstanceProfileIdentityByName by calling from_dict on the json representation - instance_profile_identity_by_name_model_dict = InstanceProfileIdentityByName.from_dict(instance_profile_identity_by_name_model_json).__dict__ - instance_profile_identity_by_name_model2 = InstanceProfileIdentityByName(**instance_profile_identity_by_name_model_dict) + instance_profile_identity_by_name_model_dict = InstanceProfileIdentityByName.from_dict( + instance_profile_identity_by_name_model_json + ).__dict__ + instance_profile_identity_by_name_model2 = InstanceProfileIdentityByName( + **instance_profile_identity_by_name_model_dict + ) # Verify the model instances are equivalent assert instance_profile_identity_by_name_model == instance_profile_identity_by_name_model2 @@ -85532,12 +93510,18 @@ def test_instance_profile_memory_dependent_serialization(self): instance_profile_memory_dependent_model_json['type'] = 'dependent' # Construct a model instance of InstanceProfileMemoryDependent by calling from_dict on the json representation - instance_profile_memory_dependent_model = InstanceProfileMemoryDependent.from_dict(instance_profile_memory_dependent_model_json) + instance_profile_memory_dependent_model = InstanceProfileMemoryDependent.from_dict( + instance_profile_memory_dependent_model_json + ) assert instance_profile_memory_dependent_model != False # Construct a model instance of InstanceProfileMemoryDependent by calling from_dict on the json representation - instance_profile_memory_dependent_model_dict = InstanceProfileMemoryDependent.from_dict(instance_profile_memory_dependent_model_json).__dict__ - instance_profile_memory_dependent_model2 = InstanceProfileMemoryDependent(**instance_profile_memory_dependent_model_dict) + instance_profile_memory_dependent_model_dict = InstanceProfileMemoryDependent.from_dict( + instance_profile_memory_dependent_model_json + ).__dict__ + instance_profile_memory_dependent_model2 = InstanceProfileMemoryDependent( + **instance_profile_memory_dependent_model_dict + ) # Verify the model instances are equivalent assert instance_profile_memory_dependent_model == instance_profile_memory_dependent_model2 @@ -85564,11 +93548,15 @@ def test_instance_profile_memory_enum_serialization(self): instance_profile_memory_enum_model_json['values'] = [8, 16, 32] # Construct a model instance of InstanceProfileMemoryEnum by calling from_dict on the json representation - instance_profile_memory_enum_model = InstanceProfileMemoryEnum.from_dict(instance_profile_memory_enum_model_json) + instance_profile_memory_enum_model = InstanceProfileMemoryEnum.from_dict( + instance_profile_memory_enum_model_json + ) assert instance_profile_memory_enum_model != False # Construct a model instance of InstanceProfileMemoryEnum by calling from_dict on the json representation - instance_profile_memory_enum_model_dict = InstanceProfileMemoryEnum.from_dict(instance_profile_memory_enum_model_json).__dict__ + instance_profile_memory_enum_model_dict = InstanceProfileMemoryEnum.from_dict( + instance_profile_memory_enum_model_json + ).__dict__ instance_profile_memory_enum_model2 = InstanceProfileMemoryEnum(**instance_profile_memory_enum_model_dict) # Verify the model instances are equivalent @@ -85595,11 +93583,15 @@ def test_instance_profile_memory_fixed_serialization(self): instance_profile_memory_fixed_model_json['value'] = 16 # Construct a model instance of InstanceProfileMemoryFixed by calling from_dict on the json representation - instance_profile_memory_fixed_model = InstanceProfileMemoryFixed.from_dict(instance_profile_memory_fixed_model_json) + instance_profile_memory_fixed_model = InstanceProfileMemoryFixed.from_dict( + instance_profile_memory_fixed_model_json + ) assert instance_profile_memory_fixed_model != False # Construct a model instance of InstanceProfileMemoryFixed by calling from_dict on the json representation - instance_profile_memory_fixed_model_dict = InstanceProfileMemoryFixed.from_dict(instance_profile_memory_fixed_model_json).__dict__ + instance_profile_memory_fixed_model_dict = InstanceProfileMemoryFixed.from_dict( + instance_profile_memory_fixed_model_json + ).__dict__ instance_profile_memory_fixed_model2 = InstanceProfileMemoryFixed(**instance_profile_memory_fixed_model_dict) # Verify the model instances are equivalent @@ -85629,11 +93621,15 @@ def test_instance_profile_memory_range_serialization(self): instance_profile_memory_range_model_json['type'] = 'range' # Construct a model instance of InstanceProfileMemoryRange by calling from_dict on the json representation - instance_profile_memory_range_model = InstanceProfileMemoryRange.from_dict(instance_profile_memory_range_model_json) + instance_profile_memory_range_model = InstanceProfileMemoryRange.from_dict( + instance_profile_memory_range_model_json + ) assert instance_profile_memory_range_model != False # Construct a model instance of InstanceProfileMemoryRange by calling from_dict on the json representation - instance_profile_memory_range_model_dict = InstanceProfileMemoryRange.from_dict(instance_profile_memory_range_model_json).__dict__ + instance_profile_memory_range_model_dict = InstanceProfileMemoryRange.from_dict( + instance_profile_memory_range_model_json + ).__dict__ instance_profile_memory_range_model2 = InstanceProfileMemoryRange(**instance_profile_memory_range_model_dict) # Verify the model instances are equivalent @@ -85659,12 +93655,18 @@ def test_instance_profile_numa_count_dependent_serialization(self): instance_profile_numa_count_dependent_model_json['type'] = 'dependent' # Construct a model instance of InstanceProfileNUMACountDependent by calling from_dict on the json representation - instance_profile_numa_count_dependent_model = InstanceProfileNUMACountDependent.from_dict(instance_profile_numa_count_dependent_model_json) + instance_profile_numa_count_dependent_model = InstanceProfileNUMACountDependent.from_dict( + instance_profile_numa_count_dependent_model_json + ) assert instance_profile_numa_count_dependent_model != False # Construct a model instance of InstanceProfileNUMACountDependent by calling from_dict on the json representation - instance_profile_numa_count_dependent_model_dict = InstanceProfileNUMACountDependent.from_dict(instance_profile_numa_count_dependent_model_json).__dict__ - instance_profile_numa_count_dependent_model2 = InstanceProfileNUMACountDependent(**instance_profile_numa_count_dependent_model_dict) + instance_profile_numa_count_dependent_model_dict = InstanceProfileNUMACountDependent.from_dict( + instance_profile_numa_count_dependent_model_json + ).__dict__ + instance_profile_numa_count_dependent_model2 = InstanceProfileNUMACountDependent( + **instance_profile_numa_count_dependent_model_dict + ) # Verify the model instances are equivalent assert instance_profile_numa_count_dependent_model == instance_profile_numa_count_dependent_model2 @@ -85690,12 +93692,18 @@ def test_instance_profile_numa_count_fixed_serialization(self): instance_profile_numa_count_fixed_model_json['value'] = 2 # Construct a model instance of InstanceProfileNUMACountFixed by calling from_dict on the json representation - instance_profile_numa_count_fixed_model = InstanceProfileNUMACountFixed.from_dict(instance_profile_numa_count_fixed_model_json) + instance_profile_numa_count_fixed_model = InstanceProfileNUMACountFixed.from_dict( + instance_profile_numa_count_fixed_model_json + ) assert instance_profile_numa_count_fixed_model != False # Construct a model instance of InstanceProfileNUMACountFixed by calling from_dict on the json representation - instance_profile_numa_count_fixed_model_dict = InstanceProfileNUMACountFixed.from_dict(instance_profile_numa_count_fixed_model_json).__dict__ - instance_profile_numa_count_fixed_model2 = InstanceProfileNUMACountFixed(**instance_profile_numa_count_fixed_model_dict) + instance_profile_numa_count_fixed_model_dict = InstanceProfileNUMACountFixed.from_dict( + instance_profile_numa_count_fixed_model_json + ).__dict__ + instance_profile_numa_count_fixed_model2 = InstanceProfileNUMACountFixed( + **instance_profile_numa_count_fixed_model_dict + ) # Verify the model instances are equivalent assert instance_profile_numa_count_fixed_model == instance_profile_numa_count_fixed_model2 @@ -85720,19 +93728,37 @@ def test_instance_profile_network_attachment_count_dependent_serialization(self) instance_profile_network_attachment_count_dependent_model_json['type'] = 'dependent' # Construct a model instance of InstanceProfileNetworkAttachmentCountDependent by calling from_dict on the json representation - instance_profile_network_attachment_count_dependent_model = InstanceProfileNetworkAttachmentCountDependent.from_dict(instance_profile_network_attachment_count_dependent_model_json) + instance_profile_network_attachment_count_dependent_model = ( + InstanceProfileNetworkAttachmentCountDependent.from_dict( + instance_profile_network_attachment_count_dependent_model_json + ) + ) assert instance_profile_network_attachment_count_dependent_model != False # Construct a model instance of InstanceProfileNetworkAttachmentCountDependent by calling from_dict on the json representation - instance_profile_network_attachment_count_dependent_model_dict = InstanceProfileNetworkAttachmentCountDependent.from_dict(instance_profile_network_attachment_count_dependent_model_json).__dict__ - instance_profile_network_attachment_count_dependent_model2 = InstanceProfileNetworkAttachmentCountDependent(**instance_profile_network_attachment_count_dependent_model_dict) + instance_profile_network_attachment_count_dependent_model_dict = ( + InstanceProfileNetworkAttachmentCountDependent.from_dict( + instance_profile_network_attachment_count_dependent_model_json + ).__dict__ + ) + instance_profile_network_attachment_count_dependent_model2 = InstanceProfileNetworkAttachmentCountDependent( + **instance_profile_network_attachment_count_dependent_model_dict + ) # Verify the model instances are equivalent - assert instance_profile_network_attachment_count_dependent_model == instance_profile_network_attachment_count_dependent_model2 + assert ( + instance_profile_network_attachment_count_dependent_model + == instance_profile_network_attachment_count_dependent_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_profile_network_attachment_count_dependent_model_json2 = instance_profile_network_attachment_count_dependent_model.to_dict() - assert instance_profile_network_attachment_count_dependent_model_json2 == instance_profile_network_attachment_count_dependent_model_json + instance_profile_network_attachment_count_dependent_model_json2 = ( + instance_profile_network_attachment_count_dependent_model.to_dict() + ) + assert ( + instance_profile_network_attachment_count_dependent_model_json2 + == instance_profile_network_attachment_count_dependent_model_json + ) class TestModel_InstanceProfileNetworkAttachmentCountRange: @@ -85752,19 +93778,35 @@ def test_instance_profile_network_attachment_count_range_serialization(self): instance_profile_network_attachment_count_range_model_json['type'] = 'range' # Construct a model instance of InstanceProfileNetworkAttachmentCountRange by calling from_dict on the json representation - instance_profile_network_attachment_count_range_model = InstanceProfileNetworkAttachmentCountRange.from_dict(instance_profile_network_attachment_count_range_model_json) + instance_profile_network_attachment_count_range_model = InstanceProfileNetworkAttachmentCountRange.from_dict( + instance_profile_network_attachment_count_range_model_json + ) assert instance_profile_network_attachment_count_range_model != False # Construct a model instance of InstanceProfileNetworkAttachmentCountRange by calling from_dict on the json representation - instance_profile_network_attachment_count_range_model_dict = InstanceProfileNetworkAttachmentCountRange.from_dict(instance_profile_network_attachment_count_range_model_json).__dict__ - instance_profile_network_attachment_count_range_model2 = InstanceProfileNetworkAttachmentCountRange(**instance_profile_network_attachment_count_range_model_dict) + instance_profile_network_attachment_count_range_model_dict = ( + InstanceProfileNetworkAttachmentCountRange.from_dict( + instance_profile_network_attachment_count_range_model_json + ).__dict__ + ) + instance_profile_network_attachment_count_range_model2 = InstanceProfileNetworkAttachmentCountRange( + **instance_profile_network_attachment_count_range_model_dict + ) # Verify the model instances are equivalent - assert instance_profile_network_attachment_count_range_model == instance_profile_network_attachment_count_range_model2 + assert ( + instance_profile_network_attachment_count_range_model + == instance_profile_network_attachment_count_range_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_profile_network_attachment_count_range_model_json2 = instance_profile_network_attachment_count_range_model.to_dict() - assert instance_profile_network_attachment_count_range_model_json2 == instance_profile_network_attachment_count_range_model_json + instance_profile_network_attachment_count_range_model_json2 = ( + instance_profile_network_attachment_count_range_model.to_dict() + ) + assert ( + instance_profile_network_attachment_count_range_model_json2 + == instance_profile_network_attachment_count_range_model_json + ) class TestModel_InstanceProfileNetworkInterfaceCountDependent: @@ -85782,19 +93824,37 @@ def test_instance_profile_network_interface_count_dependent_serialization(self): instance_profile_network_interface_count_dependent_model_json['type'] = 'dependent' # Construct a model instance of InstanceProfileNetworkInterfaceCountDependent by calling from_dict on the json representation - instance_profile_network_interface_count_dependent_model = InstanceProfileNetworkInterfaceCountDependent.from_dict(instance_profile_network_interface_count_dependent_model_json) + instance_profile_network_interface_count_dependent_model = ( + InstanceProfileNetworkInterfaceCountDependent.from_dict( + instance_profile_network_interface_count_dependent_model_json + ) + ) assert instance_profile_network_interface_count_dependent_model != False # Construct a model instance of InstanceProfileNetworkInterfaceCountDependent by calling from_dict on the json representation - instance_profile_network_interface_count_dependent_model_dict = InstanceProfileNetworkInterfaceCountDependent.from_dict(instance_profile_network_interface_count_dependent_model_json).__dict__ - instance_profile_network_interface_count_dependent_model2 = InstanceProfileNetworkInterfaceCountDependent(**instance_profile_network_interface_count_dependent_model_dict) + instance_profile_network_interface_count_dependent_model_dict = ( + InstanceProfileNetworkInterfaceCountDependent.from_dict( + instance_profile_network_interface_count_dependent_model_json + ).__dict__ + ) + instance_profile_network_interface_count_dependent_model2 = InstanceProfileNetworkInterfaceCountDependent( + **instance_profile_network_interface_count_dependent_model_dict + ) # Verify the model instances are equivalent - assert instance_profile_network_interface_count_dependent_model == instance_profile_network_interface_count_dependent_model2 + assert ( + instance_profile_network_interface_count_dependent_model + == instance_profile_network_interface_count_dependent_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_profile_network_interface_count_dependent_model_json2 = instance_profile_network_interface_count_dependent_model.to_dict() - assert instance_profile_network_interface_count_dependent_model_json2 == instance_profile_network_interface_count_dependent_model_json + instance_profile_network_interface_count_dependent_model_json2 = ( + instance_profile_network_interface_count_dependent_model.to_dict() + ) + assert ( + instance_profile_network_interface_count_dependent_model_json2 + == instance_profile_network_interface_count_dependent_model_json + ) class TestModel_InstanceProfileNetworkInterfaceCountRange: @@ -85814,19 +93874,33 @@ def test_instance_profile_network_interface_count_range_serialization(self): instance_profile_network_interface_count_range_model_json['type'] = 'range' # Construct a model instance of InstanceProfileNetworkInterfaceCountRange by calling from_dict on the json representation - instance_profile_network_interface_count_range_model = InstanceProfileNetworkInterfaceCountRange.from_dict(instance_profile_network_interface_count_range_model_json) + instance_profile_network_interface_count_range_model = InstanceProfileNetworkInterfaceCountRange.from_dict( + instance_profile_network_interface_count_range_model_json + ) assert instance_profile_network_interface_count_range_model != False # Construct a model instance of InstanceProfileNetworkInterfaceCountRange by calling from_dict on the json representation - instance_profile_network_interface_count_range_model_dict = InstanceProfileNetworkInterfaceCountRange.from_dict(instance_profile_network_interface_count_range_model_json).__dict__ - instance_profile_network_interface_count_range_model2 = InstanceProfileNetworkInterfaceCountRange(**instance_profile_network_interface_count_range_model_dict) + instance_profile_network_interface_count_range_model_dict = InstanceProfileNetworkInterfaceCountRange.from_dict( + instance_profile_network_interface_count_range_model_json + ).__dict__ + instance_profile_network_interface_count_range_model2 = InstanceProfileNetworkInterfaceCountRange( + **instance_profile_network_interface_count_range_model_dict + ) # Verify the model instances are equivalent - assert instance_profile_network_interface_count_range_model == instance_profile_network_interface_count_range_model2 + assert ( + instance_profile_network_interface_count_range_model + == instance_profile_network_interface_count_range_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_profile_network_interface_count_range_model_json2 = instance_profile_network_interface_count_range_model.to_dict() - assert instance_profile_network_interface_count_range_model_json2 == instance_profile_network_interface_count_range_model_json + instance_profile_network_interface_count_range_model_json2 = ( + instance_profile_network_interface_count_range_model.to_dict() + ) + assert ( + instance_profile_network_interface_count_range_model_json2 + == instance_profile_network_interface_count_range_model_json + ) class TestModel_InstanceProfilePortSpeedDependent: @@ -85844,12 +93918,18 @@ def test_instance_profile_port_speed_dependent_serialization(self): instance_profile_port_speed_dependent_model_json['type'] = 'dependent' # Construct a model instance of InstanceProfilePortSpeedDependent by calling from_dict on the json representation - instance_profile_port_speed_dependent_model = InstanceProfilePortSpeedDependent.from_dict(instance_profile_port_speed_dependent_model_json) + instance_profile_port_speed_dependent_model = InstanceProfilePortSpeedDependent.from_dict( + instance_profile_port_speed_dependent_model_json + ) assert instance_profile_port_speed_dependent_model != False # Construct a model instance of InstanceProfilePortSpeedDependent by calling from_dict on the json representation - instance_profile_port_speed_dependent_model_dict = InstanceProfilePortSpeedDependent.from_dict(instance_profile_port_speed_dependent_model_json).__dict__ - instance_profile_port_speed_dependent_model2 = InstanceProfilePortSpeedDependent(**instance_profile_port_speed_dependent_model_dict) + instance_profile_port_speed_dependent_model_dict = InstanceProfilePortSpeedDependent.from_dict( + instance_profile_port_speed_dependent_model_json + ).__dict__ + instance_profile_port_speed_dependent_model2 = InstanceProfilePortSpeedDependent( + **instance_profile_port_speed_dependent_model_dict + ) # Verify the model instances are equivalent assert instance_profile_port_speed_dependent_model == instance_profile_port_speed_dependent_model2 @@ -85875,12 +93955,18 @@ def test_instance_profile_port_speed_fixed_serialization(self): instance_profile_port_speed_fixed_model_json['value'] = 1000 # Construct a model instance of InstanceProfilePortSpeedFixed by calling from_dict on the json representation - instance_profile_port_speed_fixed_model = InstanceProfilePortSpeedFixed.from_dict(instance_profile_port_speed_fixed_model_json) + instance_profile_port_speed_fixed_model = InstanceProfilePortSpeedFixed.from_dict( + instance_profile_port_speed_fixed_model_json + ) assert instance_profile_port_speed_fixed_model != False # Construct a model instance of InstanceProfilePortSpeedFixed by calling from_dict on the json representation - instance_profile_port_speed_fixed_model_dict = InstanceProfilePortSpeedFixed.from_dict(instance_profile_port_speed_fixed_model_json).__dict__ - instance_profile_port_speed_fixed_model2 = InstanceProfilePortSpeedFixed(**instance_profile_port_speed_fixed_model_dict) + instance_profile_port_speed_fixed_model_dict = InstanceProfilePortSpeedFixed.from_dict( + instance_profile_port_speed_fixed_model_json + ).__dict__ + instance_profile_port_speed_fixed_model2 = InstanceProfilePortSpeedFixed( + **instance_profile_port_speed_fixed_model_dict + ) # Verify the model instances are equivalent assert instance_profile_port_speed_fixed_model == instance_profile_port_speed_fixed_model2 @@ -85905,12 +93991,18 @@ def test_instance_profile_vcpu_dependent_serialization(self): instance_profile_vcpu_dependent_model_json['type'] = 'dependent' # Construct a model instance of InstanceProfileVCPUDependent by calling from_dict on the json representation - instance_profile_vcpu_dependent_model = InstanceProfileVCPUDependent.from_dict(instance_profile_vcpu_dependent_model_json) + instance_profile_vcpu_dependent_model = InstanceProfileVCPUDependent.from_dict( + instance_profile_vcpu_dependent_model_json + ) assert instance_profile_vcpu_dependent_model != False # Construct a model instance of InstanceProfileVCPUDependent by calling from_dict on the json representation - instance_profile_vcpu_dependent_model_dict = InstanceProfileVCPUDependent.from_dict(instance_profile_vcpu_dependent_model_json).__dict__ - instance_profile_vcpu_dependent_model2 = InstanceProfileVCPUDependent(**instance_profile_vcpu_dependent_model_dict) + instance_profile_vcpu_dependent_model_dict = InstanceProfileVCPUDependent.from_dict( + instance_profile_vcpu_dependent_model_json + ).__dict__ + instance_profile_vcpu_dependent_model2 = InstanceProfileVCPUDependent( + **instance_profile_vcpu_dependent_model_dict + ) # Verify the model instances are equivalent assert instance_profile_vcpu_dependent_model == instance_profile_vcpu_dependent_model2 @@ -85941,7 +94033,9 @@ def test_instance_profile_vcpu_enum_serialization(self): assert instance_profile_vcpu_enum_model != False # Construct a model instance of InstanceProfileVCPUEnum by calling from_dict on the json representation - instance_profile_vcpu_enum_model_dict = InstanceProfileVCPUEnum.from_dict(instance_profile_vcpu_enum_model_json).__dict__ + instance_profile_vcpu_enum_model_dict = InstanceProfileVCPUEnum.from_dict( + instance_profile_vcpu_enum_model_json + ).__dict__ instance_profile_vcpu_enum_model2 = InstanceProfileVCPUEnum(**instance_profile_vcpu_enum_model_dict) # Verify the model instances are equivalent @@ -85972,7 +94066,9 @@ def test_instance_profile_vcpu_fixed_serialization(self): assert instance_profile_vcpu_fixed_model != False # Construct a model instance of InstanceProfileVCPUFixed by calling from_dict on the json representation - instance_profile_vcpu_fixed_model_dict = InstanceProfileVCPUFixed.from_dict(instance_profile_vcpu_fixed_model_json).__dict__ + instance_profile_vcpu_fixed_model_dict = InstanceProfileVCPUFixed.from_dict( + instance_profile_vcpu_fixed_model_json + ).__dict__ instance_profile_vcpu_fixed_model2 = InstanceProfileVCPUFixed(**instance_profile_vcpu_fixed_model_dict) # Verify the model instances are equivalent @@ -86006,7 +94102,9 @@ def test_instance_profile_vcpu_range_serialization(self): assert instance_profile_vcpu_range_model != False # Construct a model instance of InstanceProfileVCPURange by calling from_dict on the json representation - instance_profile_vcpu_range_model_dict = InstanceProfileVCPURange.from_dict(instance_profile_vcpu_range_model_json).__dict__ + instance_profile_vcpu_range_model_dict = InstanceProfileVCPURange.from_dict( + instance_profile_vcpu_range_model_json + ).__dict__ instance_profile_vcpu_range_model2 = InstanceProfileVCPURange(**instance_profile_vcpu_range_model_dict) # Verify the model instances are equivalent @@ -86032,19 +94130,30 @@ def test_instance_profile_volume_bandwidth_dependent_serialization(self): instance_profile_volume_bandwidth_dependent_model_json['type'] = 'dependent' # Construct a model instance of InstanceProfileVolumeBandwidthDependent by calling from_dict on the json representation - instance_profile_volume_bandwidth_dependent_model = InstanceProfileVolumeBandwidthDependent.from_dict(instance_profile_volume_bandwidth_dependent_model_json) + instance_profile_volume_bandwidth_dependent_model = InstanceProfileVolumeBandwidthDependent.from_dict( + instance_profile_volume_bandwidth_dependent_model_json + ) assert instance_profile_volume_bandwidth_dependent_model != False # Construct a model instance of InstanceProfileVolumeBandwidthDependent by calling from_dict on the json representation - instance_profile_volume_bandwidth_dependent_model_dict = InstanceProfileVolumeBandwidthDependent.from_dict(instance_profile_volume_bandwidth_dependent_model_json).__dict__ - instance_profile_volume_bandwidth_dependent_model2 = InstanceProfileVolumeBandwidthDependent(**instance_profile_volume_bandwidth_dependent_model_dict) + instance_profile_volume_bandwidth_dependent_model_dict = InstanceProfileVolumeBandwidthDependent.from_dict( + instance_profile_volume_bandwidth_dependent_model_json + ).__dict__ + instance_profile_volume_bandwidth_dependent_model2 = InstanceProfileVolumeBandwidthDependent( + **instance_profile_volume_bandwidth_dependent_model_dict + ) # Verify the model instances are equivalent assert instance_profile_volume_bandwidth_dependent_model == instance_profile_volume_bandwidth_dependent_model2 # Convert model instance back to dict and verify no loss of data - instance_profile_volume_bandwidth_dependent_model_json2 = instance_profile_volume_bandwidth_dependent_model.to_dict() - assert instance_profile_volume_bandwidth_dependent_model_json2 == instance_profile_volume_bandwidth_dependent_model_json + instance_profile_volume_bandwidth_dependent_model_json2 = ( + instance_profile_volume_bandwidth_dependent_model.to_dict() + ) + assert ( + instance_profile_volume_bandwidth_dependent_model_json2 + == instance_profile_volume_bandwidth_dependent_model_json + ) class TestModel_InstanceProfileVolumeBandwidthEnum: @@ -86064,12 +94173,18 @@ def test_instance_profile_volume_bandwidth_enum_serialization(self): instance_profile_volume_bandwidth_enum_model_json['values'] = [16000, 32000, 48000] # Construct a model instance of InstanceProfileVolumeBandwidthEnum by calling from_dict on the json representation - instance_profile_volume_bandwidth_enum_model = InstanceProfileVolumeBandwidthEnum.from_dict(instance_profile_volume_bandwidth_enum_model_json) + instance_profile_volume_bandwidth_enum_model = InstanceProfileVolumeBandwidthEnum.from_dict( + instance_profile_volume_bandwidth_enum_model_json + ) assert instance_profile_volume_bandwidth_enum_model != False # Construct a model instance of InstanceProfileVolumeBandwidthEnum by calling from_dict on the json representation - instance_profile_volume_bandwidth_enum_model_dict = InstanceProfileVolumeBandwidthEnum.from_dict(instance_profile_volume_bandwidth_enum_model_json).__dict__ - instance_profile_volume_bandwidth_enum_model2 = InstanceProfileVolumeBandwidthEnum(**instance_profile_volume_bandwidth_enum_model_dict) + instance_profile_volume_bandwidth_enum_model_dict = InstanceProfileVolumeBandwidthEnum.from_dict( + instance_profile_volume_bandwidth_enum_model_json + ).__dict__ + instance_profile_volume_bandwidth_enum_model2 = InstanceProfileVolumeBandwidthEnum( + **instance_profile_volume_bandwidth_enum_model_dict + ) # Verify the model instances are equivalent assert instance_profile_volume_bandwidth_enum_model == instance_profile_volume_bandwidth_enum_model2 @@ -86095,12 +94210,18 @@ def test_instance_profile_volume_bandwidth_fixed_serialization(self): instance_profile_volume_bandwidth_fixed_model_json['value'] = 20000 # Construct a model instance of InstanceProfileVolumeBandwidthFixed by calling from_dict on the json representation - instance_profile_volume_bandwidth_fixed_model = InstanceProfileVolumeBandwidthFixed.from_dict(instance_profile_volume_bandwidth_fixed_model_json) + instance_profile_volume_bandwidth_fixed_model = InstanceProfileVolumeBandwidthFixed.from_dict( + instance_profile_volume_bandwidth_fixed_model_json + ) assert instance_profile_volume_bandwidth_fixed_model != False # Construct a model instance of InstanceProfileVolumeBandwidthFixed by calling from_dict on the json representation - instance_profile_volume_bandwidth_fixed_model_dict = InstanceProfileVolumeBandwidthFixed.from_dict(instance_profile_volume_bandwidth_fixed_model_json).__dict__ - instance_profile_volume_bandwidth_fixed_model2 = InstanceProfileVolumeBandwidthFixed(**instance_profile_volume_bandwidth_fixed_model_dict) + instance_profile_volume_bandwidth_fixed_model_dict = InstanceProfileVolumeBandwidthFixed.from_dict( + instance_profile_volume_bandwidth_fixed_model_json + ).__dict__ + instance_profile_volume_bandwidth_fixed_model2 = InstanceProfileVolumeBandwidthFixed( + **instance_profile_volume_bandwidth_fixed_model_dict + ) # Verify the model instances are equivalent assert instance_profile_volume_bandwidth_fixed_model == instance_profile_volume_bandwidth_fixed_model2 @@ -86129,12 +94250,18 @@ def test_instance_profile_volume_bandwidth_range_serialization(self): instance_profile_volume_bandwidth_range_model_json['type'] = 'range' # Construct a model instance of InstanceProfileVolumeBandwidthRange by calling from_dict on the json representation - instance_profile_volume_bandwidth_range_model = InstanceProfileVolumeBandwidthRange.from_dict(instance_profile_volume_bandwidth_range_model_json) + instance_profile_volume_bandwidth_range_model = InstanceProfileVolumeBandwidthRange.from_dict( + instance_profile_volume_bandwidth_range_model_json + ) assert instance_profile_volume_bandwidth_range_model != False # Construct a model instance of InstanceProfileVolumeBandwidthRange by calling from_dict on the json representation - instance_profile_volume_bandwidth_range_model_dict = InstanceProfileVolumeBandwidthRange.from_dict(instance_profile_volume_bandwidth_range_model_json).__dict__ - instance_profile_volume_bandwidth_range_model2 = InstanceProfileVolumeBandwidthRange(**instance_profile_volume_bandwidth_range_model_dict) + instance_profile_volume_bandwidth_range_model_dict = InstanceProfileVolumeBandwidthRange.from_dict( + instance_profile_volume_bandwidth_range_model_json + ).__dict__ + instance_profile_volume_bandwidth_range_model2 = InstanceProfileVolumeBandwidthRange( + **instance_profile_volume_bandwidth_range_model_dict + ) # Verify the model instances are equivalent assert instance_profile_volume_bandwidth_range_model == instance_profile_volume_bandwidth_range_model2 @@ -86159,7 +94286,9 @@ def test_instance_prototype_instance_by_source_template_serialization(self): instance_availability_policy_prototype_model = {} # InstanceAvailabilityPolicyPrototype instance_availability_policy_prototype_model['host_failure'] = 'restart' - cluster_network_interface_primary_ip_prototype_model = {} # ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPPrototypeClusterNetworkInterfacePrimaryIPContext + cluster_network_interface_primary_ip_prototype_model = ( + {} + ) # ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPPrototypeClusterNetworkInterfacePrimaryIPContext cluster_network_interface_primary_ip_prototype_model['address'] = '10.0.0.5' cluster_network_interface_primary_ip_prototype_model['auto_delete'] = False cluster_network_interface_primary_ip_prototype_model['name'] = 'my-cluster-network-subnet-reserved-ip' @@ -86167,14 +94296,26 @@ def test_instance_prototype_instance_by_source_template_serialization(self): cluster_network_subnet_identity_model = {} # ClusterNetworkSubnetIdentityById cluster_network_subnet_identity_model['id'] = '0717-7931845c-65c4-4b0a-80cd-7d9c1a6d7930' - instance_cluster_network_attachment_prototype_cluster_network_interface_model = {} # InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment + instance_cluster_network_attachment_prototype_cluster_network_interface_model = ( + {} + ) # InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment instance_cluster_network_attachment_prototype_cluster_network_interface_model['auto_delete'] = False - instance_cluster_network_attachment_prototype_cluster_network_interface_model['name'] = 'my-cluster-network-interface' - instance_cluster_network_attachment_prototype_cluster_network_interface_model['primary_ip'] = cluster_network_interface_primary_ip_prototype_model - instance_cluster_network_attachment_prototype_cluster_network_interface_model['subnet'] = cluster_network_subnet_identity_model + instance_cluster_network_attachment_prototype_cluster_network_interface_model['name'] = ( + 'my-cluster-network-interface' + ) + instance_cluster_network_attachment_prototype_cluster_network_interface_model['primary_ip'] = ( + cluster_network_interface_primary_ip_prototype_model + ) + instance_cluster_network_attachment_prototype_cluster_network_interface_model['subnet'] = ( + cluster_network_subnet_identity_model + ) - instance_cluster_network_attachment_prototype_instance_context_model = {} # InstanceClusterNetworkAttachmentPrototypeInstanceContext - instance_cluster_network_attachment_prototype_instance_context_model['cluster_network_interface'] = instance_cluster_network_attachment_prototype_cluster_network_interface_model + instance_cluster_network_attachment_prototype_instance_context_model = ( + {} + ) # InstanceClusterNetworkAttachmentPrototypeInstanceContext + instance_cluster_network_attachment_prototype_instance_context_model['cluster_network_interface'] = ( + instance_cluster_network_attachment_prototype_cluster_network_interface_model + ) instance_cluster_network_attachment_prototype_instance_context_model['name'] = 'my-instance-network-attachment' trusted_profile_identity_model = {} # TrustedProfileIdentityById @@ -86192,7 +94333,9 @@ def test_instance_prototype_instance_by_source_template_serialization(self): instance_metadata_service_prototype_model['protocol'] = 'https' instance_metadata_service_prototype_model['response_hop_limit'] = 2 - instance_placement_target_prototype_model = {} # InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityById + instance_placement_target_prototype_model = ( + {} + ) # InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityById instance_placement_target_prototype_model['id'] = '0717-1e09281b-f177-46fb-baf1-bc152b2e391a' instance_profile_identity_model = {} # InstanceProfileIdentityByName @@ -86220,7 +94363,9 @@ def test_instance_prototype_instance_by_source_template_serialization(self): vpc_identity_model['id'] = 'r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' encryption_key_identity_model = {} # EncryptionKeyIdentityByCRN - encryption_key_identity_model['crn'] = 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + encryption_key_identity_model['crn'] = ( + 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + ) volume_profile_identity_model = {} # VolumeProfileIdentityByName volume_profile_identity_model['name'] = 'general-purpose' @@ -86234,16 +94379,26 @@ def test_instance_prototype_instance_by_source_template_serialization(self): volume_prototype_instance_by_image_context_model['resource_group'] = resource_group_identity_model volume_prototype_instance_by_image_context_model['user_tags'] = [] - volume_attachment_prototype_instance_by_image_context_model = {} # VolumeAttachmentPrototypeInstanceByImageContext + volume_attachment_prototype_instance_by_image_context_model = ( + {} + ) # VolumeAttachmentPrototypeInstanceByImageContext volume_attachment_prototype_instance_by_image_context_model['delete_volume_on_instance_delete'] = True volume_attachment_prototype_instance_by_image_context_model['name'] = 'my-volume-attachment' - volume_attachment_prototype_instance_by_image_context_model['volume'] = volume_prototype_instance_by_image_context_model + volume_attachment_prototype_instance_by_image_context_model['volume'] = ( + volume_prototype_instance_by_image_context_model + ) - catalog_offering_version_plan_identity_model = {} # CatalogOfferingVersionPlanIdentityCatalogOfferingVersionPlanByCRN - catalog_offering_version_plan_identity_model['crn'] = 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:51c9e0db-2911-45a6-adb0-ac5332d27cf2:plan:sw.51c9e0db-2911-45a6-adb0-ac5332d27cf2.772c0dbe-aa62-482e-adbe-a3fc20101e0e' + catalog_offering_version_plan_identity_model = ( + {} + ) # CatalogOfferingVersionPlanIdentityCatalogOfferingVersionPlanByCRN + catalog_offering_version_plan_identity_model['crn'] = ( + 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:51c9e0db-2911-45a6-adb0-ac5332d27cf2:plan:sw.51c9e0db-2911-45a6-adb0-ac5332d27cf2.772c0dbe-aa62-482e-adbe-a3fc20101e0e' + ) catalog_offering_identity_model = {} # CatalogOfferingIdentityCatalogOfferingByCRN - catalog_offering_identity_model['crn'] = 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:offering:00111601-0ec5-41ac-b142-96d1e64e6442' + catalog_offering_identity_model['crn'] = ( + 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:offering:00111601-0ec5-41ac-b142-96d1e64e6442' + ) instance_catalog_offering_prototype_model = {} # InstanceCatalogOfferingPrototypeCatalogOfferingByOffering instance_catalog_offering_prototype_model['plan'] = catalog_offering_version_plan_identity_model @@ -86252,12 +94407,16 @@ def test_instance_prototype_instance_by_source_template_serialization(self): image_identity_model = {} # ImageIdentityById image_identity_model['id'] = 'r006-02c73baf-9abb-493d-9e41-d0f1866f4051' - virtual_network_interface_ip_prototype_model = {} # VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext + virtual_network_interface_ip_prototype_model = ( + {} + ) # VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext virtual_network_interface_ip_prototype_model['address'] = '10.0.0.5' virtual_network_interface_ip_prototype_model['auto_delete'] = False virtual_network_interface_ip_prototype_model['name'] = 'my-reserved-ip' - virtual_network_interface_primary_ip_prototype_model = {} # VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext + virtual_network_interface_primary_ip_prototype_model = ( + {} + ) # VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext virtual_network_interface_primary_ip_prototype_model['address'] = '10.0.0.5' virtual_network_interface_primary_ip_prototype_model['auto_delete'] = False virtual_network_interface_primary_ip_prototype_model['name'] = 'my-reserved-ip' @@ -86268,23 +94427,37 @@ def test_instance_prototype_instance_by_source_template_serialization(self): subnet_identity_model = {} # SubnetIdentityById subnet_identity_model['id'] = '7ec86020-1c6e-4889-b3f0-a15f2e50f87e' - instance_network_attachment_prototype_virtual_network_interface_model = {} # InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeInstanceNetworkAttachmentContext + instance_network_attachment_prototype_virtual_network_interface_model = ( + {} + ) # InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeInstanceNetworkAttachmentContext instance_network_attachment_prototype_virtual_network_interface_model['allow_ip_spoofing'] = True instance_network_attachment_prototype_virtual_network_interface_model['auto_delete'] = False instance_network_attachment_prototype_virtual_network_interface_model['enable_infrastructure_nat'] = True - instance_network_attachment_prototype_virtual_network_interface_model['ips'] = [virtual_network_interface_ip_prototype_model] + instance_network_attachment_prototype_virtual_network_interface_model['ips'] = [ + virtual_network_interface_ip_prototype_model + ] instance_network_attachment_prototype_virtual_network_interface_model['name'] = 'my-virtual-network-interface' - instance_network_attachment_prototype_virtual_network_interface_model['primary_ip'] = virtual_network_interface_primary_ip_prototype_model + instance_network_attachment_prototype_virtual_network_interface_model['primary_ip'] = ( + virtual_network_interface_primary_ip_prototype_model + ) instance_network_attachment_prototype_virtual_network_interface_model['protocol_state_filtering_mode'] = 'auto' - instance_network_attachment_prototype_virtual_network_interface_model['resource_group'] = resource_group_identity_model - instance_network_attachment_prototype_virtual_network_interface_model['security_groups'] = [security_group_identity_model] + instance_network_attachment_prototype_virtual_network_interface_model['resource_group'] = ( + resource_group_identity_model + ) + instance_network_attachment_prototype_virtual_network_interface_model['security_groups'] = [ + security_group_identity_model + ] instance_network_attachment_prototype_virtual_network_interface_model['subnet'] = subnet_identity_model instance_network_attachment_prototype_model = {} # InstanceNetworkAttachmentPrototype instance_network_attachment_prototype_model['name'] = 'my-instance-network-attachment' - instance_network_attachment_prototype_model['virtual_network_interface'] = instance_network_attachment_prototype_virtual_network_interface_model + instance_network_attachment_prototype_model['virtual_network_interface'] = ( + instance_network_attachment_prototype_virtual_network_interface_model + ) - network_interface_ip_prototype_model = {} # NetworkInterfaceIPPrototypeReservedIPPrototypeNetworkInterfaceContext + network_interface_ip_prototype_model = ( + {} + ) # NetworkInterfaceIPPrototypeReservedIPPrototypeNetworkInterfaceContext network_interface_ip_prototype_model['address'] = '10.0.0.5' network_interface_ip_prototype_model['auto_delete'] = False network_interface_ip_prototype_model['name'] = 'my-reserved-ip' @@ -86304,46 +94477,86 @@ def test_instance_prototype_instance_by_source_template_serialization(self): # Construct a json representation of a InstancePrototypeInstanceBySourceTemplate model instance_prototype_instance_by_source_template_model_json = {} - instance_prototype_instance_by_source_template_model_json['availability_policy'] = instance_availability_policy_prototype_model - instance_prototype_instance_by_source_template_model_json['cluster_network_attachments'] = [instance_cluster_network_attachment_prototype_instance_context_model] + instance_prototype_instance_by_source_template_model_json['availability_policy'] = ( + instance_availability_policy_prototype_model + ) + instance_prototype_instance_by_source_template_model_json['cluster_network_attachments'] = [ + instance_cluster_network_attachment_prototype_instance_context_model + ] instance_prototype_instance_by_source_template_model_json['confidential_compute_mode'] = 'disabled' - instance_prototype_instance_by_source_template_model_json['default_trusted_profile'] = instance_default_trusted_profile_prototype_model + instance_prototype_instance_by_source_template_model_json['default_trusted_profile'] = ( + instance_default_trusted_profile_prototype_model + ) instance_prototype_instance_by_source_template_model_json['enable_secure_boot'] = True instance_prototype_instance_by_source_template_model_json['keys'] = [key_identity_model] - instance_prototype_instance_by_source_template_model_json['metadata_service'] = instance_metadata_service_prototype_model + instance_prototype_instance_by_source_template_model_json['metadata_service'] = ( + instance_metadata_service_prototype_model + ) instance_prototype_instance_by_source_template_model_json['name'] = 'my-instance' - instance_prototype_instance_by_source_template_model_json['placement_target'] = instance_placement_target_prototype_model + instance_prototype_instance_by_source_template_model_json['placement_target'] = ( + instance_placement_target_prototype_model + ) instance_prototype_instance_by_source_template_model_json['profile'] = instance_profile_identity_model - instance_prototype_instance_by_source_template_model_json['reservation_affinity'] = instance_reservation_affinity_prototype_model + instance_prototype_instance_by_source_template_model_json['reservation_affinity'] = ( + instance_reservation_affinity_prototype_model + ) instance_prototype_instance_by_source_template_model_json['resource_group'] = resource_group_identity_model instance_prototype_instance_by_source_template_model_json['total_volume_bandwidth'] = 500 instance_prototype_instance_by_source_template_model_json['user_data'] = 'testString' - instance_prototype_instance_by_source_template_model_json['volume_attachments'] = [volume_attachment_prototype_model] + instance_prototype_instance_by_source_template_model_json['volume_attachments'] = [ + volume_attachment_prototype_model + ] instance_prototype_instance_by_source_template_model_json['vpc'] = vpc_identity_model - instance_prototype_instance_by_source_template_model_json['boot_volume_attachment'] = volume_attachment_prototype_instance_by_image_context_model - instance_prototype_instance_by_source_template_model_json['catalog_offering'] = instance_catalog_offering_prototype_model + instance_prototype_instance_by_source_template_model_json['boot_volume_attachment'] = ( + volume_attachment_prototype_instance_by_image_context_model + ) + instance_prototype_instance_by_source_template_model_json['catalog_offering'] = ( + instance_catalog_offering_prototype_model + ) instance_prototype_instance_by_source_template_model_json['image'] = image_identity_model - instance_prototype_instance_by_source_template_model_json['network_attachments'] = [instance_network_attachment_prototype_model] - instance_prototype_instance_by_source_template_model_json['network_interfaces'] = [network_interface_prototype_model] - instance_prototype_instance_by_source_template_model_json['primary_network_attachment'] = instance_network_attachment_prototype_model - instance_prototype_instance_by_source_template_model_json['primary_network_interface'] = network_interface_prototype_model + instance_prototype_instance_by_source_template_model_json['network_attachments'] = [ + instance_network_attachment_prototype_model + ] + instance_prototype_instance_by_source_template_model_json['network_interfaces'] = [ + network_interface_prototype_model + ] + instance_prototype_instance_by_source_template_model_json['primary_network_attachment'] = ( + instance_network_attachment_prototype_model + ) + instance_prototype_instance_by_source_template_model_json['primary_network_interface'] = ( + network_interface_prototype_model + ) instance_prototype_instance_by_source_template_model_json['source_template'] = instance_template_identity_model instance_prototype_instance_by_source_template_model_json['zone'] = zone_identity_model # Construct a model instance of InstancePrototypeInstanceBySourceTemplate by calling from_dict on the json representation - instance_prototype_instance_by_source_template_model = InstancePrototypeInstanceBySourceTemplate.from_dict(instance_prototype_instance_by_source_template_model_json) + instance_prototype_instance_by_source_template_model = InstancePrototypeInstanceBySourceTemplate.from_dict( + instance_prototype_instance_by_source_template_model_json + ) assert instance_prototype_instance_by_source_template_model != False # Construct a model instance of InstancePrototypeInstanceBySourceTemplate by calling from_dict on the json representation - instance_prototype_instance_by_source_template_model_dict = InstancePrototypeInstanceBySourceTemplate.from_dict(instance_prototype_instance_by_source_template_model_json).__dict__ - instance_prototype_instance_by_source_template_model2 = InstancePrototypeInstanceBySourceTemplate(**instance_prototype_instance_by_source_template_model_dict) + instance_prototype_instance_by_source_template_model_dict = InstancePrototypeInstanceBySourceTemplate.from_dict( + instance_prototype_instance_by_source_template_model_json + ).__dict__ + instance_prototype_instance_by_source_template_model2 = InstancePrototypeInstanceBySourceTemplate( + **instance_prototype_instance_by_source_template_model_dict + ) # Verify the model instances are equivalent - assert instance_prototype_instance_by_source_template_model == instance_prototype_instance_by_source_template_model2 + assert ( + instance_prototype_instance_by_source_template_model + == instance_prototype_instance_by_source_template_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_prototype_instance_by_source_template_model_json2 = instance_prototype_instance_by_source_template_model.to_dict() - assert instance_prototype_instance_by_source_template_model_json2 == instance_prototype_instance_by_source_template_model_json + instance_prototype_instance_by_source_template_model_json2 = ( + instance_prototype_instance_by_source_template_model.to_dict() + ) + assert ( + instance_prototype_instance_by_source_template_model_json2 + == instance_prototype_instance_by_source_template_model_json + ) class TestModel_InstanceTemplateIdentityByCRN: @@ -86358,15 +94571,23 @@ def test_instance_template_identity_by_crn_serialization(self): # Construct a json representation of a InstanceTemplateIdentityByCRN model instance_template_identity_by_crn_model_json = {} - instance_template_identity_by_crn_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::instance-template:1e09281b-f177-46fb-baf1-bc152b2e391a' + instance_template_identity_by_crn_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::instance-template:1e09281b-f177-46fb-baf1-bc152b2e391a' + ) # Construct a model instance of InstanceTemplateIdentityByCRN by calling from_dict on the json representation - instance_template_identity_by_crn_model = InstanceTemplateIdentityByCRN.from_dict(instance_template_identity_by_crn_model_json) + instance_template_identity_by_crn_model = InstanceTemplateIdentityByCRN.from_dict( + instance_template_identity_by_crn_model_json + ) assert instance_template_identity_by_crn_model != False # Construct a model instance of InstanceTemplateIdentityByCRN by calling from_dict on the json representation - instance_template_identity_by_crn_model_dict = InstanceTemplateIdentityByCRN.from_dict(instance_template_identity_by_crn_model_json).__dict__ - instance_template_identity_by_crn_model2 = InstanceTemplateIdentityByCRN(**instance_template_identity_by_crn_model_dict) + instance_template_identity_by_crn_model_dict = InstanceTemplateIdentityByCRN.from_dict( + instance_template_identity_by_crn_model_json + ).__dict__ + instance_template_identity_by_crn_model2 = InstanceTemplateIdentityByCRN( + **instance_template_identity_by_crn_model_dict + ) # Verify the model instances are equivalent assert instance_template_identity_by_crn_model == instance_template_identity_by_crn_model2 @@ -86388,15 +94609,23 @@ def test_instance_template_identity_by_href_serialization(self): # Construct a json representation of a InstanceTemplateIdentityByHref model instance_template_identity_by_href_model_json = {} - instance_template_identity_by_href_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instance/templates/1e09281b-f177-46fb-baf1-bc152b2e391a' + instance_template_identity_by_href_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instance/templates/1e09281b-f177-46fb-baf1-bc152b2e391a' + ) # Construct a model instance of InstanceTemplateIdentityByHref by calling from_dict on the json representation - instance_template_identity_by_href_model = InstanceTemplateIdentityByHref.from_dict(instance_template_identity_by_href_model_json) + instance_template_identity_by_href_model = InstanceTemplateIdentityByHref.from_dict( + instance_template_identity_by_href_model_json + ) assert instance_template_identity_by_href_model != False # Construct a model instance of InstanceTemplateIdentityByHref by calling from_dict on the json representation - instance_template_identity_by_href_model_dict = InstanceTemplateIdentityByHref.from_dict(instance_template_identity_by_href_model_json).__dict__ - instance_template_identity_by_href_model2 = InstanceTemplateIdentityByHref(**instance_template_identity_by_href_model_dict) + instance_template_identity_by_href_model_dict = InstanceTemplateIdentityByHref.from_dict( + instance_template_identity_by_href_model_json + ).__dict__ + instance_template_identity_by_href_model2 = InstanceTemplateIdentityByHref( + **instance_template_identity_by_href_model_dict + ) # Verify the model instances are equivalent assert instance_template_identity_by_href_model == instance_template_identity_by_href_model2 @@ -86421,12 +94650,18 @@ def test_instance_template_identity_by_id_serialization(self): instance_template_identity_by_id_model_json['id'] = 'a6b1a881-2ce8-41a3-80fc-36316a73f803' # Construct a model instance of InstanceTemplateIdentityById by calling from_dict on the json representation - instance_template_identity_by_id_model = InstanceTemplateIdentityById.from_dict(instance_template_identity_by_id_model_json) + instance_template_identity_by_id_model = InstanceTemplateIdentityById.from_dict( + instance_template_identity_by_id_model_json + ) assert instance_template_identity_by_id_model != False # Construct a model instance of InstanceTemplateIdentityById by calling from_dict on the json representation - instance_template_identity_by_id_model_dict = InstanceTemplateIdentityById.from_dict(instance_template_identity_by_id_model_json).__dict__ - instance_template_identity_by_id_model2 = InstanceTemplateIdentityById(**instance_template_identity_by_id_model_dict) + instance_template_identity_by_id_model_dict = InstanceTemplateIdentityById.from_dict( + instance_template_identity_by_id_model_json + ).__dict__ + instance_template_identity_by_id_model2 = InstanceTemplateIdentityById( + **instance_template_identity_by_id_model_dict + ) # Verify the model instances are equivalent assert instance_template_identity_by_id_model == instance_template_identity_by_id_model2 @@ -86451,7 +94686,9 @@ def test_instance_template_prototype_instance_template_by_source_template_serial instance_availability_policy_prototype_model = {} # InstanceAvailabilityPolicyPrototype instance_availability_policy_prototype_model['host_failure'] = 'restart' - cluster_network_interface_primary_ip_prototype_model = {} # ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPPrototypeClusterNetworkInterfacePrimaryIPContext + cluster_network_interface_primary_ip_prototype_model = ( + {} + ) # ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPPrototypeClusterNetworkInterfacePrimaryIPContext cluster_network_interface_primary_ip_prototype_model['address'] = '10.0.0.5' cluster_network_interface_primary_ip_prototype_model['auto_delete'] = False cluster_network_interface_primary_ip_prototype_model['name'] = 'my-cluster-network-subnet-reserved-ip' @@ -86459,14 +94696,26 @@ def test_instance_template_prototype_instance_template_by_source_template_serial cluster_network_subnet_identity_model = {} # ClusterNetworkSubnetIdentityById cluster_network_subnet_identity_model['id'] = '0717-7931845c-65c4-4b0a-80cd-7d9c1a6d7930' - instance_cluster_network_attachment_prototype_cluster_network_interface_model = {} # InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment + instance_cluster_network_attachment_prototype_cluster_network_interface_model = ( + {} + ) # InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment instance_cluster_network_attachment_prototype_cluster_network_interface_model['auto_delete'] = False - instance_cluster_network_attachment_prototype_cluster_network_interface_model['name'] = 'my-cluster-network-interface' - instance_cluster_network_attachment_prototype_cluster_network_interface_model['primary_ip'] = cluster_network_interface_primary_ip_prototype_model - instance_cluster_network_attachment_prototype_cluster_network_interface_model['subnet'] = cluster_network_subnet_identity_model + instance_cluster_network_attachment_prototype_cluster_network_interface_model['name'] = ( + 'my-cluster-network-interface' + ) + instance_cluster_network_attachment_prototype_cluster_network_interface_model['primary_ip'] = ( + cluster_network_interface_primary_ip_prototype_model + ) + instance_cluster_network_attachment_prototype_cluster_network_interface_model['subnet'] = ( + cluster_network_subnet_identity_model + ) - instance_cluster_network_attachment_prototype_instance_context_model = {} # InstanceClusterNetworkAttachmentPrototypeInstanceContext - instance_cluster_network_attachment_prototype_instance_context_model['cluster_network_interface'] = instance_cluster_network_attachment_prototype_cluster_network_interface_model + instance_cluster_network_attachment_prototype_instance_context_model = ( + {} + ) # InstanceClusterNetworkAttachmentPrototypeInstanceContext + instance_cluster_network_attachment_prototype_instance_context_model['cluster_network_interface'] = ( + instance_cluster_network_attachment_prototype_cluster_network_interface_model + ) instance_cluster_network_attachment_prototype_instance_context_model['name'] = 'my-instance-network-attachment' trusted_profile_identity_model = {} # TrustedProfileIdentityById @@ -86484,7 +94733,9 @@ def test_instance_template_prototype_instance_template_by_source_template_serial instance_metadata_service_prototype_model['protocol'] = 'https' instance_metadata_service_prototype_model['response_hop_limit'] = 2 - instance_placement_target_prototype_model = {} # InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityById + instance_placement_target_prototype_model = ( + {} + ) # InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityById instance_placement_target_prototype_model['id'] = '0717-1e09281b-f177-46fb-baf1-bc152b2e391a' instance_profile_identity_model = {} # InstanceProfileIdentityByName @@ -86512,7 +94763,9 @@ def test_instance_template_prototype_instance_template_by_source_template_serial vpc_identity_model['id'] = 'r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' encryption_key_identity_model = {} # EncryptionKeyIdentityByCRN - encryption_key_identity_model['crn'] = 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + encryption_key_identity_model['crn'] = ( + 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + ) volume_profile_identity_model = {} # VolumeProfileIdentityByName volume_profile_identity_model['name'] = 'general-purpose' @@ -86526,16 +94779,26 @@ def test_instance_template_prototype_instance_template_by_source_template_serial volume_prototype_instance_by_image_context_model['resource_group'] = resource_group_identity_model volume_prototype_instance_by_image_context_model['user_tags'] = [] - volume_attachment_prototype_instance_by_image_context_model = {} # VolumeAttachmentPrototypeInstanceByImageContext + volume_attachment_prototype_instance_by_image_context_model = ( + {} + ) # VolumeAttachmentPrototypeInstanceByImageContext volume_attachment_prototype_instance_by_image_context_model['delete_volume_on_instance_delete'] = True volume_attachment_prototype_instance_by_image_context_model['name'] = 'my-volume-attachment' - volume_attachment_prototype_instance_by_image_context_model['volume'] = volume_prototype_instance_by_image_context_model + volume_attachment_prototype_instance_by_image_context_model['volume'] = ( + volume_prototype_instance_by_image_context_model + ) - catalog_offering_version_plan_identity_model = {} # CatalogOfferingVersionPlanIdentityCatalogOfferingVersionPlanByCRN - catalog_offering_version_plan_identity_model['crn'] = 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:51c9e0db-2911-45a6-adb0-ac5332d27cf2:plan:sw.51c9e0db-2911-45a6-adb0-ac5332d27cf2.772c0dbe-aa62-482e-adbe-a3fc20101e0e' + catalog_offering_version_plan_identity_model = ( + {} + ) # CatalogOfferingVersionPlanIdentityCatalogOfferingVersionPlanByCRN + catalog_offering_version_plan_identity_model['crn'] = ( + 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:51c9e0db-2911-45a6-adb0-ac5332d27cf2:plan:sw.51c9e0db-2911-45a6-adb0-ac5332d27cf2.772c0dbe-aa62-482e-adbe-a3fc20101e0e' + ) catalog_offering_identity_model = {} # CatalogOfferingIdentityCatalogOfferingByCRN - catalog_offering_identity_model['crn'] = 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:offering:00111601-0ec5-41ac-b142-96d1e64e6442' + catalog_offering_identity_model['crn'] = ( + 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:offering:00111601-0ec5-41ac-b142-96d1e64e6442' + ) instance_catalog_offering_prototype_model = {} # InstanceCatalogOfferingPrototypeCatalogOfferingByOffering instance_catalog_offering_prototype_model['plan'] = catalog_offering_version_plan_identity_model @@ -86544,12 +94807,16 @@ def test_instance_template_prototype_instance_template_by_source_template_serial image_identity_model = {} # ImageIdentityById image_identity_model['id'] = 'r006-02c73baf-9abb-493d-9e41-d0f1866f4051' - virtual_network_interface_ip_prototype_model = {} # VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext + virtual_network_interface_ip_prototype_model = ( + {} + ) # VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext virtual_network_interface_ip_prototype_model['address'] = '10.0.0.5' virtual_network_interface_ip_prototype_model['auto_delete'] = False virtual_network_interface_ip_prototype_model['name'] = 'my-reserved-ip' - virtual_network_interface_primary_ip_prototype_model = {} # VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext + virtual_network_interface_primary_ip_prototype_model = ( + {} + ) # VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext virtual_network_interface_primary_ip_prototype_model['address'] = '10.0.0.5' virtual_network_interface_primary_ip_prototype_model['auto_delete'] = False virtual_network_interface_primary_ip_prototype_model['name'] = 'my-reserved-ip' @@ -86560,23 +94827,37 @@ def test_instance_template_prototype_instance_template_by_source_template_serial subnet_identity_model = {} # SubnetIdentityById subnet_identity_model['id'] = '7ec86020-1c6e-4889-b3f0-a15f2e50f87e' - instance_network_attachment_prototype_virtual_network_interface_model = {} # InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeInstanceNetworkAttachmentContext + instance_network_attachment_prototype_virtual_network_interface_model = ( + {} + ) # InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeInstanceNetworkAttachmentContext instance_network_attachment_prototype_virtual_network_interface_model['allow_ip_spoofing'] = True instance_network_attachment_prototype_virtual_network_interface_model['auto_delete'] = False instance_network_attachment_prototype_virtual_network_interface_model['enable_infrastructure_nat'] = True - instance_network_attachment_prototype_virtual_network_interface_model['ips'] = [virtual_network_interface_ip_prototype_model] + instance_network_attachment_prototype_virtual_network_interface_model['ips'] = [ + virtual_network_interface_ip_prototype_model + ] instance_network_attachment_prototype_virtual_network_interface_model['name'] = 'my-virtual-network-interface' - instance_network_attachment_prototype_virtual_network_interface_model['primary_ip'] = virtual_network_interface_primary_ip_prototype_model + instance_network_attachment_prototype_virtual_network_interface_model['primary_ip'] = ( + virtual_network_interface_primary_ip_prototype_model + ) instance_network_attachment_prototype_virtual_network_interface_model['protocol_state_filtering_mode'] = 'auto' - instance_network_attachment_prototype_virtual_network_interface_model['resource_group'] = resource_group_identity_model - instance_network_attachment_prototype_virtual_network_interface_model['security_groups'] = [security_group_identity_model] + instance_network_attachment_prototype_virtual_network_interface_model['resource_group'] = ( + resource_group_identity_model + ) + instance_network_attachment_prototype_virtual_network_interface_model['security_groups'] = [ + security_group_identity_model + ] instance_network_attachment_prototype_virtual_network_interface_model['subnet'] = subnet_identity_model instance_network_attachment_prototype_model = {} # InstanceNetworkAttachmentPrototype instance_network_attachment_prototype_model['name'] = 'my-instance-network-attachment' - instance_network_attachment_prototype_model['virtual_network_interface'] = instance_network_attachment_prototype_virtual_network_interface_model + instance_network_attachment_prototype_model['virtual_network_interface'] = ( + instance_network_attachment_prototype_virtual_network_interface_model + ) - network_interface_ip_prototype_model = {} # NetworkInterfaceIPPrototypeReservedIPPrototypeNetworkInterfaceContext + network_interface_ip_prototype_model = ( + {} + ) # NetworkInterfaceIPPrototypeReservedIPPrototypeNetworkInterfaceContext network_interface_ip_prototype_model['address'] = '10.0.0.5' network_interface_ip_prototype_model['auto_delete'] = False network_interface_ip_prototype_model['name'] = 'my-reserved-ip' @@ -86596,46 +94877,100 @@ def test_instance_template_prototype_instance_template_by_source_template_serial # Construct a json representation of a InstanceTemplatePrototypeInstanceTemplateBySourceTemplate model instance_template_prototype_instance_template_by_source_template_model_json = {} - instance_template_prototype_instance_template_by_source_template_model_json['availability_policy'] = instance_availability_policy_prototype_model - instance_template_prototype_instance_template_by_source_template_model_json['cluster_network_attachments'] = [instance_cluster_network_attachment_prototype_instance_context_model] - instance_template_prototype_instance_template_by_source_template_model_json['confidential_compute_mode'] = 'disabled' - instance_template_prototype_instance_template_by_source_template_model_json['default_trusted_profile'] = instance_default_trusted_profile_prototype_model + instance_template_prototype_instance_template_by_source_template_model_json['availability_policy'] = ( + instance_availability_policy_prototype_model + ) + instance_template_prototype_instance_template_by_source_template_model_json['cluster_network_attachments'] = [ + instance_cluster_network_attachment_prototype_instance_context_model + ] + instance_template_prototype_instance_template_by_source_template_model_json['confidential_compute_mode'] = ( + 'disabled' + ) + instance_template_prototype_instance_template_by_source_template_model_json['default_trusted_profile'] = ( + instance_default_trusted_profile_prototype_model + ) instance_template_prototype_instance_template_by_source_template_model_json['enable_secure_boot'] = True instance_template_prototype_instance_template_by_source_template_model_json['keys'] = [key_identity_model] - instance_template_prototype_instance_template_by_source_template_model_json['metadata_service'] = instance_metadata_service_prototype_model + instance_template_prototype_instance_template_by_source_template_model_json['metadata_service'] = ( + instance_metadata_service_prototype_model + ) instance_template_prototype_instance_template_by_source_template_model_json['name'] = 'my-instance' - instance_template_prototype_instance_template_by_source_template_model_json['placement_target'] = instance_placement_target_prototype_model - instance_template_prototype_instance_template_by_source_template_model_json['profile'] = instance_profile_identity_model - instance_template_prototype_instance_template_by_source_template_model_json['reservation_affinity'] = instance_reservation_affinity_prototype_model - instance_template_prototype_instance_template_by_source_template_model_json['resource_group'] = resource_group_identity_model + instance_template_prototype_instance_template_by_source_template_model_json['placement_target'] = ( + instance_placement_target_prototype_model + ) + instance_template_prototype_instance_template_by_source_template_model_json['profile'] = ( + instance_profile_identity_model + ) + instance_template_prototype_instance_template_by_source_template_model_json['reservation_affinity'] = ( + instance_reservation_affinity_prototype_model + ) + instance_template_prototype_instance_template_by_source_template_model_json['resource_group'] = ( + resource_group_identity_model + ) instance_template_prototype_instance_template_by_source_template_model_json['total_volume_bandwidth'] = 500 instance_template_prototype_instance_template_by_source_template_model_json['user_data'] = 'testString' - instance_template_prototype_instance_template_by_source_template_model_json['volume_attachments'] = [volume_attachment_prototype_model] + instance_template_prototype_instance_template_by_source_template_model_json['volume_attachments'] = [ + volume_attachment_prototype_model + ] instance_template_prototype_instance_template_by_source_template_model_json['vpc'] = vpc_identity_model - instance_template_prototype_instance_template_by_source_template_model_json['boot_volume_attachment'] = volume_attachment_prototype_instance_by_image_context_model - instance_template_prototype_instance_template_by_source_template_model_json['catalog_offering'] = instance_catalog_offering_prototype_model + instance_template_prototype_instance_template_by_source_template_model_json['boot_volume_attachment'] = ( + volume_attachment_prototype_instance_by_image_context_model + ) + instance_template_prototype_instance_template_by_source_template_model_json['catalog_offering'] = ( + instance_catalog_offering_prototype_model + ) instance_template_prototype_instance_template_by_source_template_model_json['image'] = image_identity_model - instance_template_prototype_instance_template_by_source_template_model_json['network_attachments'] = [instance_network_attachment_prototype_model] - instance_template_prototype_instance_template_by_source_template_model_json['network_interfaces'] = [network_interface_prototype_model] - instance_template_prototype_instance_template_by_source_template_model_json['primary_network_attachment'] = instance_network_attachment_prototype_model - instance_template_prototype_instance_template_by_source_template_model_json['primary_network_interface'] = network_interface_prototype_model - instance_template_prototype_instance_template_by_source_template_model_json['source_template'] = instance_template_identity_model + instance_template_prototype_instance_template_by_source_template_model_json['network_attachments'] = [ + instance_network_attachment_prototype_model + ] + instance_template_prototype_instance_template_by_source_template_model_json['network_interfaces'] = [ + network_interface_prototype_model + ] + instance_template_prototype_instance_template_by_source_template_model_json['primary_network_attachment'] = ( + instance_network_attachment_prototype_model + ) + instance_template_prototype_instance_template_by_source_template_model_json['primary_network_interface'] = ( + network_interface_prototype_model + ) + instance_template_prototype_instance_template_by_source_template_model_json['source_template'] = ( + instance_template_identity_model + ) instance_template_prototype_instance_template_by_source_template_model_json['zone'] = zone_identity_model # Construct a model instance of InstanceTemplatePrototypeInstanceTemplateBySourceTemplate by calling from_dict on the json representation - instance_template_prototype_instance_template_by_source_template_model = InstanceTemplatePrototypeInstanceTemplateBySourceTemplate.from_dict(instance_template_prototype_instance_template_by_source_template_model_json) + instance_template_prototype_instance_template_by_source_template_model = ( + InstanceTemplatePrototypeInstanceTemplateBySourceTemplate.from_dict( + instance_template_prototype_instance_template_by_source_template_model_json + ) + ) assert instance_template_prototype_instance_template_by_source_template_model != False # Construct a model instance of InstanceTemplatePrototypeInstanceTemplateBySourceTemplate by calling from_dict on the json representation - instance_template_prototype_instance_template_by_source_template_model_dict = InstanceTemplatePrototypeInstanceTemplateBySourceTemplate.from_dict(instance_template_prototype_instance_template_by_source_template_model_json).__dict__ - instance_template_prototype_instance_template_by_source_template_model2 = InstanceTemplatePrototypeInstanceTemplateBySourceTemplate(**instance_template_prototype_instance_template_by_source_template_model_dict) + instance_template_prototype_instance_template_by_source_template_model_dict = ( + InstanceTemplatePrototypeInstanceTemplateBySourceTemplate.from_dict( + instance_template_prototype_instance_template_by_source_template_model_json + ).__dict__ + ) + instance_template_prototype_instance_template_by_source_template_model2 = ( + InstanceTemplatePrototypeInstanceTemplateBySourceTemplate( + **instance_template_prototype_instance_template_by_source_template_model_dict + ) + ) # Verify the model instances are equivalent - assert instance_template_prototype_instance_template_by_source_template_model == instance_template_prototype_instance_template_by_source_template_model2 + assert ( + instance_template_prototype_instance_template_by_source_template_model + == instance_template_prototype_instance_template_by_source_template_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_template_prototype_instance_template_by_source_template_model_json2 = instance_template_prototype_instance_template_by_source_template_model.to_dict() - assert instance_template_prototype_instance_template_by_source_template_model_json2 == instance_template_prototype_instance_template_by_source_template_model_json + instance_template_prototype_instance_template_by_source_template_model_json2 = ( + instance_template_prototype_instance_template_by_source_template_model.to_dict() + ) + assert ( + instance_template_prototype_instance_template_by_source_template_model_json2 + == instance_template_prototype_instance_template_by_source_template_model_json + ) class TestModel_KeyIdentityByCRN: @@ -86650,7 +94985,9 @@ def test_key_identity_by_crn_serialization(self): # Construct a json representation of a KeyIdentityByCRN model key_identity_by_crn_model_json = {} - key_identity_by_crn_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::key:r006-82679077-ac3b-4c10-be16-63e9c21f0f45' + key_identity_by_crn_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::key:r006-82679077-ac3b-4c10-be16-63e9c21f0f45' + ) # Construct a model instance of KeyIdentityByCRN by calling from_dict on the json representation key_identity_by_crn_model = KeyIdentityByCRN.from_dict(key_identity_by_crn_model_json) @@ -86687,7 +95024,9 @@ def test_key_identity_by_fingerprint_serialization(self): assert key_identity_by_fingerprint_model != False # Construct a model instance of KeyIdentityByFingerprint by calling from_dict on the json representation - key_identity_by_fingerprint_model_dict = KeyIdentityByFingerprint.from_dict(key_identity_by_fingerprint_model_json).__dict__ + key_identity_by_fingerprint_model_dict = KeyIdentityByFingerprint.from_dict( + key_identity_by_fingerprint_model_json + ).__dict__ key_identity_by_fingerprint_model2 = KeyIdentityByFingerprint(**key_identity_by_fingerprint_model_dict) # Verify the model instances are equivalent @@ -86710,7 +95049,9 @@ def test_key_identity_by_href_serialization(self): # Construct a json representation of a KeyIdentityByHref model key_identity_by_href_model_json = {} - key_identity_by_href_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/keys/r006-82679077-ac3b-4c10-be16-63e9c21f0f45' + key_identity_by_href_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/keys/r006-82679077-ac3b-4c10-be16-63e9c21f0f45' + ) # Construct a model instance of KeyIdentityByHref by calling from_dict on the json representation key_identity_by_href_model = KeyIdentityByHref.from_dict(key_identity_by_href_model_json) @@ -86763,29 +95104,53 @@ class TestModel_LegacyCloudObjectStorageBucketIdentityCloudObjectStorageBucketId Test Class for LegacyCloudObjectStorageBucketIdentityCloudObjectStorageBucketIdentityByName """ - def test_legacy_cloud_object_storage_bucket_identity_cloud_object_storage_bucket_identity_by_name_serialization(self): + def test_legacy_cloud_object_storage_bucket_identity_cloud_object_storage_bucket_identity_by_name_serialization( + self, + ): """ Test serialization/deserialization for LegacyCloudObjectStorageBucketIdentityCloudObjectStorageBucketIdentityByName """ # Construct a json representation of a LegacyCloudObjectStorageBucketIdentityCloudObjectStorageBucketIdentityByName model legacy_cloud_object_storage_bucket_identity_cloud_object_storage_bucket_identity_by_name_model_json = {} - legacy_cloud_object_storage_bucket_identity_cloud_object_storage_bucket_identity_by_name_model_json['name'] = 'bucket-27200-lwx4cfvcue' + legacy_cloud_object_storage_bucket_identity_cloud_object_storage_bucket_identity_by_name_model_json['name'] = ( + 'bucket-27200-lwx4cfvcue' + ) # Construct a model instance of LegacyCloudObjectStorageBucketIdentityCloudObjectStorageBucketIdentityByName by calling from_dict on the json representation - legacy_cloud_object_storage_bucket_identity_cloud_object_storage_bucket_identity_by_name_model = LegacyCloudObjectStorageBucketIdentityCloudObjectStorageBucketIdentityByName.from_dict(legacy_cloud_object_storage_bucket_identity_cloud_object_storage_bucket_identity_by_name_model_json) + legacy_cloud_object_storage_bucket_identity_cloud_object_storage_bucket_identity_by_name_model = ( + LegacyCloudObjectStorageBucketIdentityCloudObjectStorageBucketIdentityByName.from_dict( + legacy_cloud_object_storage_bucket_identity_cloud_object_storage_bucket_identity_by_name_model_json + ) + ) assert legacy_cloud_object_storage_bucket_identity_cloud_object_storage_bucket_identity_by_name_model != False # Construct a model instance of LegacyCloudObjectStorageBucketIdentityCloudObjectStorageBucketIdentityByName by calling from_dict on the json representation - legacy_cloud_object_storage_bucket_identity_cloud_object_storage_bucket_identity_by_name_model_dict = LegacyCloudObjectStorageBucketIdentityCloudObjectStorageBucketIdentityByName.from_dict(legacy_cloud_object_storage_bucket_identity_cloud_object_storage_bucket_identity_by_name_model_json).__dict__ - legacy_cloud_object_storage_bucket_identity_cloud_object_storage_bucket_identity_by_name_model2 = LegacyCloudObjectStorageBucketIdentityCloudObjectStorageBucketIdentityByName(**legacy_cloud_object_storage_bucket_identity_cloud_object_storage_bucket_identity_by_name_model_dict) + legacy_cloud_object_storage_bucket_identity_cloud_object_storage_bucket_identity_by_name_model_dict = ( + LegacyCloudObjectStorageBucketIdentityCloudObjectStorageBucketIdentityByName.from_dict( + legacy_cloud_object_storage_bucket_identity_cloud_object_storage_bucket_identity_by_name_model_json + ).__dict__ + ) + legacy_cloud_object_storage_bucket_identity_cloud_object_storage_bucket_identity_by_name_model2 = ( + LegacyCloudObjectStorageBucketIdentityCloudObjectStorageBucketIdentityByName( + **legacy_cloud_object_storage_bucket_identity_cloud_object_storage_bucket_identity_by_name_model_dict + ) + ) # Verify the model instances are equivalent - assert legacy_cloud_object_storage_bucket_identity_cloud_object_storage_bucket_identity_by_name_model == legacy_cloud_object_storage_bucket_identity_cloud_object_storage_bucket_identity_by_name_model2 + assert ( + legacy_cloud_object_storage_bucket_identity_cloud_object_storage_bucket_identity_by_name_model + == legacy_cloud_object_storage_bucket_identity_cloud_object_storage_bucket_identity_by_name_model2 + ) # Convert model instance back to dict and verify no loss of data - legacy_cloud_object_storage_bucket_identity_cloud_object_storage_bucket_identity_by_name_model_json2 = legacy_cloud_object_storage_bucket_identity_cloud_object_storage_bucket_identity_by_name_model.to_dict() - assert legacy_cloud_object_storage_bucket_identity_cloud_object_storage_bucket_identity_by_name_model_json2 == legacy_cloud_object_storage_bucket_identity_cloud_object_storage_bucket_identity_by_name_model_json + legacy_cloud_object_storage_bucket_identity_cloud_object_storage_bucket_identity_by_name_model_json2 = ( + legacy_cloud_object_storage_bucket_identity_cloud_object_storage_bucket_identity_by_name_model.to_dict() + ) + assert ( + legacy_cloud_object_storage_bucket_identity_cloud_object_storage_bucket_identity_by_name_model_json2 + == legacy_cloud_object_storage_bucket_identity_cloud_object_storage_bucket_identity_by_name_model_json + ) class TestModel_LoadBalancerIdentityByCRN: @@ -86800,14 +95165,20 @@ def test_load_balancer_identity_by_crn_serialization(self): # Construct a json representation of a LoadBalancerIdentityByCRN model load_balancer_identity_by_crn_model_json = {} - load_balancer_identity_by_crn_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::load-balancer:dd754295-e9e0-4c9d-bf6c-58fbc59e5727' + load_balancer_identity_by_crn_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::load-balancer:dd754295-e9e0-4c9d-bf6c-58fbc59e5727' + ) # Construct a model instance of LoadBalancerIdentityByCRN by calling from_dict on the json representation - load_balancer_identity_by_crn_model = LoadBalancerIdentityByCRN.from_dict(load_balancer_identity_by_crn_model_json) + load_balancer_identity_by_crn_model = LoadBalancerIdentityByCRN.from_dict( + load_balancer_identity_by_crn_model_json + ) assert load_balancer_identity_by_crn_model != False # Construct a model instance of LoadBalancerIdentityByCRN by calling from_dict on the json representation - load_balancer_identity_by_crn_model_dict = LoadBalancerIdentityByCRN.from_dict(load_balancer_identity_by_crn_model_json).__dict__ + load_balancer_identity_by_crn_model_dict = LoadBalancerIdentityByCRN.from_dict( + load_balancer_identity_by_crn_model_json + ).__dict__ load_balancer_identity_by_crn_model2 = LoadBalancerIdentityByCRN(**load_balancer_identity_by_crn_model_dict) # Verify the model instances are equivalent @@ -86830,14 +95201,20 @@ def test_load_balancer_identity_by_href_serialization(self): # Construct a json representation of a LoadBalancerIdentityByHref model load_balancer_identity_by_href_model_json = {} - load_balancer_identity_by_href_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727' + load_balancer_identity_by_href_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727' + ) # Construct a model instance of LoadBalancerIdentityByHref by calling from_dict on the json representation - load_balancer_identity_by_href_model = LoadBalancerIdentityByHref.from_dict(load_balancer_identity_by_href_model_json) + load_balancer_identity_by_href_model = LoadBalancerIdentityByHref.from_dict( + load_balancer_identity_by_href_model_json + ) assert load_balancer_identity_by_href_model != False # Construct a model instance of LoadBalancerIdentityByHref by calling from_dict on the json representation - load_balancer_identity_by_href_model_dict = LoadBalancerIdentityByHref.from_dict(load_balancer_identity_by_href_model_json).__dict__ + load_balancer_identity_by_href_model_dict = LoadBalancerIdentityByHref.from_dict( + load_balancer_identity_by_href_model_json + ).__dict__ load_balancer_identity_by_href_model2 = LoadBalancerIdentityByHref(**load_balancer_identity_by_href_model_dict) # Verify the model instances are equivalent @@ -86867,7 +95244,9 @@ def test_load_balancer_identity_by_id_serialization(self): assert load_balancer_identity_by_id_model != False # Construct a model instance of LoadBalancerIdentityById by calling from_dict on the json representation - load_balancer_identity_by_id_model_dict = LoadBalancerIdentityById.from_dict(load_balancer_identity_by_id_model_json).__dict__ + load_balancer_identity_by_id_model_dict = LoadBalancerIdentityById.from_dict( + load_balancer_identity_by_id_model_json + ).__dict__ load_balancer_identity_by_id_model2 = LoadBalancerIdentityById(**load_balancer_identity_by_id_model_dict) # Verify the model instances are equivalent @@ -86890,22 +95269,44 @@ def test_load_balancer_listener_default_pool_patch_load_balancer_pool_identity_b # Construct a json representation of a LoadBalancerListenerDefaultPoolPatchLoadBalancerPoolIdentityByHref model load_balancer_listener_default_pool_patch_load_balancer_pool_identity_by_href_model_json = {} - load_balancer_listener_default_pool_patch_load_balancer_pool_identity_by_href_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/pools/70294e14-4e61-11e8-bcf4-0242ac110004' + load_balancer_listener_default_pool_patch_load_balancer_pool_identity_by_href_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/pools/70294e14-4e61-11e8-bcf4-0242ac110004' + ) # Construct a model instance of LoadBalancerListenerDefaultPoolPatchLoadBalancerPoolIdentityByHref by calling from_dict on the json representation - load_balancer_listener_default_pool_patch_load_balancer_pool_identity_by_href_model = LoadBalancerListenerDefaultPoolPatchLoadBalancerPoolIdentityByHref.from_dict(load_balancer_listener_default_pool_patch_load_balancer_pool_identity_by_href_model_json) + load_balancer_listener_default_pool_patch_load_balancer_pool_identity_by_href_model = ( + LoadBalancerListenerDefaultPoolPatchLoadBalancerPoolIdentityByHref.from_dict( + load_balancer_listener_default_pool_patch_load_balancer_pool_identity_by_href_model_json + ) + ) assert load_balancer_listener_default_pool_patch_load_balancer_pool_identity_by_href_model != False # Construct a model instance of LoadBalancerListenerDefaultPoolPatchLoadBalancerPoolIdentityByHref by calling from_dict on the json representation - load_balancer_listener_default_pool_patch_load_balancer_pool_identity_by_href_model_dict = LoadBalancerListenerDefaultPoolPatchLoadBalancerPoolIdentityByHref.from_dict(load_balancer_listener_default_pool_patch_load_balancer_pool_identity_by_href_model_json).__dict__ - load_balancer_listener_default_pool_patch_load_balancer_pool_identity_by_href_model2 = LoadBalancerListenerDefaultPoolPatchLoadBalancerPoolIdentityByHref(**load_balancer_listener_default_pool_patch_load_balancer_pool_identity_by_href_model_dict) + load_balancer_listener_default_pool_patch_load_balancer_pool_identity_by_href_model_dict = ( + LoadBalancerListenerDefaultPoolPatchLoadBalancerPoolIdentityByHref.from_dict( + load_balancer_listener_default_pool_patch_load_balancer_pool_identity_by_href_model_json + ).__dict__ + ) + load_balancer_listener_default_pool_patch_load_balancer_pool_identity_by_href_model2 = ( + LoadBalancerListenerDefaultPoolPatchLoadBalancerPoolIdentityByHref( + **load_balancer_listener_default_pool_patch_load_balancer_pool_identity_by_href_model_dict + ) + ) # Verify the model instances are equivalent - assert load_balancer_listener_default_pool_patch_load_balancer_pool_identity_by_href_model == load_balancer_listener_default_pool_patch_load_balancer_pool_identity_by_href_model2 + assert ( + load_balancer_listener_default_pool_patch_load_balancer_pool_identity_by_href_model + == load_balancer_listener_default_pool_patch_load_balancer_pool_identity_by_href_model2 + ) # Convert model instance back to dict and verify no loss of data - load_balancer_listener_default_pool_patch_load_balancer_pool_identity_by_href_model_json2 = load_balancer_listener_default_pool_patch_load_balancer_pool_identity_by_href_model.to_dict() - assert load_balancer_listener_default_pool_patch_load_balancer_pool_identity_by_href_model_json2 == load_balancer_listener_default_pool_patch_load_balancer_pool_identity_by_href_model_json + load_balancer_listener_default_pool_patch_load_balancer_pool_identity_by_href_model_json2 = ( + load_balancer_listener_default_pool_patch_load_balancer_pool_identity_by_href_model.to_dict() + ) + assert ( + load_balancer_listener_default_pool_patch_load_balancer_pool_identity_by_href_model_json2 + == load_balancer_listener_default_pool_patch_load_balancer_pool_identity_by_href_model_json + ) class TestModel_LoadBalancerListenerDefaultPoolPatchLoadBalancerPoolIdentityById: @@ -86920,22 +95321,44 @@ def test_load_balancer_listener_default_pool_patch_load_balancer_pool_identity_b # Construct a json representation of a LoadBalancerListenerDefaultPoolPatchLoadBalancerPoolIdentityById model load_balancer_listener_default_pool_patch_load_balancer_pool_identity_by_id_model_json = {} - load_balancer_listener_default_pool_patch_load_balancer_pool_identity_by_id_model_json['id'] = '70294e14-4e61-11e8-bcf4-0242ac110004' + load_balancer_listener_default_pool_patch_load_balancer_pool_identity_by_id_model_json['id'] = ( + '70294e14-4e61-11e8-bcf4-0242ac110004' + ) # Construct a model instance of LoadBalancerListenerDefaultPoolPatchLoadBalancerPoolIdentityById by calling from_dict on the json representation - load_balancer_listener_default_pool_patch_load_balancer_pool_identity_by_id_model = LoadBalancerListenerDefaultPoolPatchLoadBalancerPoolIdentityById.from_dict(load_balancer_listener_default_pool_patch_load_balancer_pool_identity_by_id_model_json) + load_balancer_listener_default_pool_patch_load_balancer_pool_identity_by_id_model = ( + LoadBalancerListenerDefaultPoolPatchLoadBalancerPoolIdentityById.from_dict( + load_balancer_listener_default_pool_patch_load_balancer_pool_identity_by_id_model_json + ) + ) assert load_balancer_listener_default_pool_patch_load_balancer_pool_identity_by_id_model != False # Construct a model instance of LoadBalancerListenerDefaultPoolPatchLoadBalancerPoolIdentityById by calling from_dict on the json representation - load_balancer_listener_default_pool_patch_load_balancer_pool_identity_by_id_model_dict = LoadBalancerListenerDefaultPoolPatchLoadBalancerPoolIdentityById.from_dict(load_balancer_listener_default_pool_patch_load_balancer_pool_identity_by_id_model_json).__dict__ - load_balancer_listener_default_pool_patch_load_balancer_pool_identity_by_id_model2 = LoadBalancerListenerDefaultPoolPatchLoadBalancerPoolIdentityById(**load_balancer_listener_default_pool_patch_load_balancer_pool_identity_by_id_model_dict) + load_balancer_listener_default_pool_patch_load_balancer_pool_identity_by_id_model_dict = ( + LoadBalancerListenerDefaultPoolPatchLoadBalancerPoolIdentityById.from_dict( + load_balancer_listener_default_pool_patch_load_balancer_pool_identity_by_id_model_json + ).__dict__ + ) + load_balancer_listener_default_pool_patch_load_balancer_pool_identity_by_id_model2 = ( + LoadBalancerListenerDefaultPoolPatchLoadBalancerPoolIdentityById( + **load_balancer_listener_default_pool_patch_load_balancer_pool_identity_by_id_model_dict + ) + ) # Verify the model instances are equivalent - assert load_balancer_listener_default_pool_patch_load_balancer_pool_identity_by_id_model == load_balancer_listener_default_pool_patch_load_balancer_pool_identity_by_id_model2 + assert ( + load_balancer_listener_default_pool_patch_load_balancer_pool_identity_by_id_model + == load_balancer_listener_default_pool_patch_load_balancer_pool_identity_by_id_model2 + ) # Convert model instance back to dict and verify no loss of data - load_balancer_listener_default_pool_patch_load_balancer_pool_identity_by_id_model_json2 = load_balancer_listener_default_pool_patch_load_balancer_pool_identity_by_id_model.to_dict() - assert load_balancer_listener_default_pool_patch_load_balancer_pool_identity_by_id_model_json2 == load_balancer_listener_default_pool_patch_load_balancer_pool_identity_by_id_model_json + load_balancer_listener_default_pool_patch_load_balancer_pool_identity_by_id_model_json2 = ( + load_balancer_listener_default_pool_patch_load_balancer_pool_identity_by_id_model.to_dict() + ) + assert ( + load_balancer_listener_default_pool_patch_load_balancer_pool_identity_by_id_model_json2 + == load_balancer_listener_default_pool_patch_load_balancer_pool_identity_by_id_model_json + ) class TestModel_LoadBalancerListenerIdentityByHref: @@ -86950,15 +95373,23 @@ def test_load_balancer_listener_identity_by_href_serialization(self): # Construct a json representation of a LoadBalancerListenerIdentityByHref model load_balancer_listener_identity_by_href_model_json = {} - load_balancer_listener_identity_by_href_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/listeners/70294e14-4e61-11e8-bcf4-0242ac110004' + load_balancer_listener_identity_by_href_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/listeners/70294e14-4e61-11e8-bcf4-0242ac110004' + ) # Construct a model instance of LoadBalancerListenerIdentityByHref by calling from_dict on the json representation - load_balancer_listener_identity_by_href_model = LoadBalancerListenerIdentityByHref.from_dict(load_balancer_listener_identity_by_href_model_json) + load_balancer_listener_identity_by_href_model = LoadBalancerListenerIdentityByHref.from_dict( + load_balancer_listener_identity_by_href_model_json + ) assert load_balancer_listener_identity_by_href_model != False # Construct a model instance of LoadBalancerListenerIdentityByHref by calling from_dict on the json representation - load_balancer_listener_identity_by_href_model_dict = LoadBalancerListenerIdentityByHref.from_dict(load_balancer_listener_identity_by_href_model_json).__dict__ - load_balancer_listener_identity_by_href_model2 = LoadBalancerListenerIdentityByHref(**load_balancer_listener_identity_by_href_model_dict) + load_balancer_listener_identity_by_href_model_dict = LoadBalancerListenerIdentityByHref.from_dict( + load_balancer_listener_identity_by_href_model_json + ).__dict__ + load_balancer_listener_identity_by_href_model2 = LoadBalancerListenerIdentityByHref( + **load_balancer_listener_identity_by_href_model_dict + ) # Verify the model instances are equivalent assert load_balancer_listener_identity_by_href_model == load_balancer_listener_identity_by_href_model2 @@ -86983,12 +95414,18 @@ def test_load_balancer_listener_identity_by_id_serialization(self): load_balancer_listener_identity_by_id_model_json['id'] = '70294e14-4e61-11e8-bcf4-0242ac110004' # Construct a model instance of LoadBalancerListenerIdentityById by calling from_dict on the json representation - load_balancer_listener_identity_by_id_model = LoadBalancerListenerIdentityById.from_dict(load_balancer_listener_identity_by_id_model_json) + load_balancer_listener_identity_by_id_model = LoadBalancerListenerIdentityById.from_dict( + load_balancer_listener_identity_by_id_model_json + ) assert load_balancer_listener_identity_by_id_model != False # Construct a model instance of LoadBalancerListenerIdentityById by calling from_dict on the json representation - load_balancer_listener_identity_by_id_model_dict = LoadBalancerListenerIdentityById.from_dict(load_balancer_listener_identity_by_id_model_json).__dict__ - load_balancer_listener_identity_by_id_model2 = LoadBalancerListenerIdentityById(**load_balancer_listener_identity_by_id_model_dict) + load_balancer_listener_identity_by_id_model_dict = LoadBalancerListenerIdentityById.from_dict( + load_balancer_listener_identity_by_id_model_json + ).__dict__ + load_balancer_listener_identity_by_id_model2 = LoadBalancerListenerIdentityById( + **load_balancer_listener_identity_by_id_model_dict + ) # Verify the model instances are equivalent assert load_balancer_listener_identity_by_id_model == load_balancer_listener_identity_by_id_model2 @@ -87003,7 +95440,9 @@ class TestModel_LoadBalancerListenerPolicyTargetPatchLoadBalancerListenerPolicyH Test Class for LoadBalancerListenerPolicyTargetPatchLoadBalancerListenerPolicyHTTPSRedirectPatch """ - def test_load_balancer_listener_policy_target_patch_load_balancer_listener_policy_https_redirect_patch_serialization(self): + def test_load_balancer_listener_policy_target_patch_load_balancer_listener_policy_https_redirect_patch_serialization( + self, + ): """ Test serialization/deserialization for LoadBalancerListenerPolicyTargetPatchLoadBalancerListenerPolicyHTTPSRedirectPatch """ @@ -87015,24 +95454,50 @@ def test_load_balancer_listener_policy_target_patch_load_balancer_listener_polic # Construct a json representation of a LoadBalancerListenerPolicyTargetPatchLoadBalancerListenerPolicyHTTPSRedirectPatch model load_balancer_listener_policy_target_patch_load_balancer_listener_policy_https_redirect_patch_model_json = {} - load_balancer_listener_policy_target_patch_load_balancer_listener_policy_https_redirect_patch_model_json['http_status_code'] = 301 - load_balancer_listener_policy_target_patch_load_balancer_listener_policy_https_redirect_patch_model_json['listener'] = load_balancer_listener_identity_model - load_balancer_listener_policy_target_patch_load_balancer_listener_policy_https_redirect_patch_model_json['uri'] = '/example?doc=get' + load_balancer_listener_policy_target_patch_load_balancer_listener_policy_https_redirect_patch_model_json[ + 'http_status_code' + ] = 301 + load_balancer_listener_policy_target_patch_load_balancer_listener_policy_https_redirect_patch_model_json[ + 'listener' + ] = load_balancer_listener_identity_model + load_balancer_listener_policy_target_patch_load_balancer_listener_policy_https_redirect_patch_model_json[ + 'uri' + ] = '/example?doc=get' # Construct a model instance of LoadBalancerListenerPolicyTargetPatchLoadBalancerListenerPolicyHTTPSRedirectPatch by calling from_dict on the json representation - load_balancer_listener_policy_target_patch_load_balancer_listener_policy_https_redirect_patch_model = LoadBalancerListenerPolicyTargetPatchLoadBalancerListenerPolicyHTTPSRedirectPatch.from_dict(load_balancer_listener_policy_target_patch_load_balancer_listener_policy_https_redirect_patch_model_json) - assert load_balancer_listener_policy_target_patch_load_balancer_listener_policy_https_redirect_patch_model != False + load_balancer_listener_policy_target_patch_load_balancer_listener_policy_https_redirect_patch_model = ( + LoadBalancerListenerPolicyTargetPatchLoadBalancerListenerPolicyHTTPSRedirectPatch.from_dict( + load_balancer_listener_policy_target_patch_load_balancer_listener_policy_https_redirect_patch_model_json + ) + ) + assert ( + load_balancer_listener_policy_target_patch_load_balancer_listener_policy_https_redirect_patch_model != False + ) # Construct a model instance of LoadBalancerListenerPolicyTargetPatchLoadBalancerListenerPolicyHTTPSRedirectPatch by calling from_dict on the json representation - load_balancer_listener_policy_target_patch_load_balancer_listener_policy_https_redirect_patch_model_dict = LoadBalancerListenerPolicyTargetPatchLoadBalancerListenerPolicyHTTPSRedirectPatch.from_dict(load_balancer_listener_policy_target_patch_load_balancer_listener_policy_https_redirect_patch_model_json).__dict__ - load_balancer_listener_policy_target_patch_load_balancer_listener_policy_https_redirect_patch_model2 = LoadBalancerListenerPolicyTargetPatchLoadBalancerListenerPolicyHTTPSRedirectPatch(**load_balancer_listener_policy_target_patch_load_balancer_listener_policy_https_redirect_patch_model_dict) + load_balancer_listener_policy_target_patch_load_balancer_listener_policy_https_redirect_patch_model_dict = ( + LoadBalancerListenerPolicyTargetPatchLoadBalancerListenerPolicyHTTPSRedirectPatch.from_dict( + load_balancer_listener_policy_target_patch_load_balancer_listener_policy_https_redirect_patch_model_json + ).__dict__ + ) + load_balancer_listener_policy_target_patch_load_balancer_listener_policy_https_redirect_patch_model2 = LoadBalancerListenerPolicyTargetPatchLoadBalancerListenerPolicyHTTPSRedirectPatch( + **load_balancer_listener_policy_target_patch_load_balancer_listener_policy_https_redirect_patch_model_dict + ) # Verify the model instances are equivalent - assert load_balancer_listener_policy_target_patch_load_balancer_listener_policy_https_redirect_patch_model == load_balancer_listener_policy_target_patch_load_balancer_listener_policy_https_redirect_patch_model2 + assert ( + load_balancer_listener_policy_target_patch_load_balancer_listener_policy_https_redirect_patch_model + == load_balancer_listener_policy_target_patch_load_balancer_listener_policy_https_redirect_patch_model2 + ) # Convert model instance back to dict and verify no loss of data - load_balancer_listener_policy_target_patch_load_balancer_listener_policy_https_redirect_patch_model_json2 = load_balancer_listener_policy_target_patch_load_balancer_listener_policy_https_redirect_patch_model.to_dict() - assert load_balancer_listener_policy_target_patch_load_balancer_listener_policy_https_redirect_patch_model_json2 == load_balancer_listener_policy_target_patch_load_balancer_listener_policy_https_redirect_patch_model_json + load_balancer_listener_policy_target_patch_load_balancer_listener_policy_https_redirect_patch_model_json2 = ( + load_balancer_listener_policy_target_patch_load_balancer_listener_policy_https_redirect_patch_model.to_dict() + ) + assert ( + load_balancer_listener_policy_target_patch_load_balancer_listener_policy_https_redirect_patch_model_json2 + == load_balancer_listener_policy_target_patch_load_balancer_listener_policy_https_redirect_patch_model_json + ) class TestModel_LoadBalancerListenerPolicyTargetPatchLoadBalancerListenerPolicyRedirectURLPatch: @@ -87040,30 +95505,58 @@ class TestModel_LoadBalancerListenerPolicyTargetPatchLoadBalancerListenerPolicyR Test Class for LoadBalancerListenerPolicyTargetPatchLoadBalancerListenerPolicyRedirectURLPatch """ - def test_load_balancer_listener_policy_target_patch_load_balancer_listener_policy_redirect_url_patch_serialization(self): + def test_load_balancer_listener_policy_target_patch_load_balancer_listener_policy_redirect_url_patch_serialization( + self, + ): """ Test serialization/deserialization for LoadBalancerListenerPolicyTargetPatchLoadBalancerListenerPolicyRedirectURLPatch """ # Construct a json representation of a LoadBalancerListenerPolicyTargetPatchLoadBalancerListenerPolicyRedirectURLPatch model load_balancer_listener_policy_target_patch_load_balancer_listener_policy_redirect_url_patch_model_json = {} - load_balancer_listener_policy_target_patch_load_balancer_listener_policy_redirect_url_patch_model_json['http_status_code'] = 301 - load_balancer_listener_policy_target_patch_load_balancer_listener_policy_redirect_url_patch_model_json['url'] = 'https://ibm.com:443/new/{path}?{query}' + load_balancer_listener_policy_target_patch_load_balancer_listener_policy_redirect_url_patch_model_json[ + 'http_status_code' + ] = 301 + load_balancer_listener_policy_target_patch_load_balancer_listener_policy_redirect_url_patch_model_json[ + 'url' + ] = 'https://ibm.com:443/new/{path}?{query}' # Construct a model instance of LoadBalancerListenerPolicyTargetPatchLoadBalancerListenerPolicyRedirectURLPatch by calling from_dict on the json representation - load_balancer_listener_policy_target_patch_load_balancer_listener_policy_redirect_url_patch_model = LoadBalancerListenerPolicyTargetPatchLoadBalancerListenerPolicyRedirectURLPatch.from_dict(load_balancer_listener_policy_target_patch_load_balancer_listener_policy_redirect_url_patch_model_json) - assert load_balancer_listener_policy_target_patch_load_balancer_listener_policy_redirect_url_patch_model != False + load_balancer_listener_policy_target_patch_load_balancer_listener_policy_redirect_url_patch_model = ( + LoadBalancerListenerPolicyTargetPatchLoadBalancerListenerPolicyRedirectURLPatch.from_dict( + load_balancer_listener_policy_target_patch_load_balancer_listener_policy_redirect_url_patch_model_json + ) + ) + assert ( + load_balancer_listener_policy_target_patch_load_balancer_listener_policy_redirect_url_patch_model != False + ) # Construct a model instance of LoadBalancerListenerPolicyTargetPatchLoadBalancerListenerPolicyRedirectURLPatch by calling from_dict on the json representation - load_balancer_listener_policy_target_patch_load_balancer_listener_policy_redirect_url_patch_model_dict = LoadBalancerListenerPolicyTargetPatchLoadBalancerListenerPolicyRedirectURLPatch.from_dict(load_balancer_listener_policy_target_patch_load_balancer_listener_policy_redirect_url_patch_model_json).__dict__ - load_balancer_listener_policy_target_patch_load_balancer_listener_policy_redirect_url_patch_model2 = LoadBalancerListenerPolicyTargetPatchLoadBalancerListenerPolicyRedirectURLPatch(**load_balancer_listener_policy_target_patch_load_balancer_listener_policy_redirect_url_patch_model_dict) + load_balancer_listener_policy_target_patch_load_balancer_listener_policy_redirect_url_patch_model_dict = ( + LoadBalancerListenerPolicyTargetPatchLoadBalancerListenerPolicyRedirectURLPatch.from_dict( + load_balancer_listener_policy_target_patch_load_balancer_listener_policy_redirect_url_patch_model_json + ).__dict__ + ) + load_balancer_listener_policy_target_patch_load_balancer_listener_policy_redirect_url_patch_model2 = ( + LoadBalancerListenerPolicyTargetPatchLoadBalancerListenerPolicyRedirectURLPatch( + **load_balancer_listener_policy_target_patch_load_balancer_listener_policy_redirect_url_patch_model_dict + ) + ) # Verify the model instances are equivalent - assert load_balancer_listener_policy_target_patch_load_balancer_listener_policy_redirect_url_patch_model == load_balancer_listener_policy_target_patch_load_balancer_listener_policy_redirect_url_patch_model2 + assert ( + load_balancer_listener_policy_target_patch_load_balancer_listener_policy_redirect_url_patch_model + == load_balancer_listener_policy_target_patch_load_balancer_listener_policy_redirect_url_patch_model2 + ) # Convert model instance back to dict and verify no loss of data - load_balancer_listener_policy_target_patch_load_balancer_listener_policy_redirect_url_patch_model_json2 = load_balancer_listener_policy_target_patch_load_balancer_listener_policy_redirect_url_patch_model.to_dict() - assert load_balancer_listener_policy_target_patch_load_balancer_listener_policy_redirect_url_patch_model_json2 == load_balancer_listener_policy_target_patch_load_balancer_listener_policy_redirect_url_patch_model_json + load_balancer_listener_policy_target_patch_load_balancer_listener_policy_redirect_url_patch_model_json2 = ( + load_balancer_listener_policy_target_patch_load_balancer_listener_policy_redirect_url_patch_model.to_dict() + ) + assert ( + load_balancer_listener_policy_target_patch_load_balancer_listener_policy_redirect_url_patch_model_json2 + == load_balancer_listener_policy_target_patch_load_balancer_listener_policy_redirect_url_patch_model_json + ) class TestModel_LoadBalancerListenerPolicyTargetPrototypeLoadBalancerListenerPolicyHTTPSRedirectPrototype: @@ -87071,7 +95564,9 @@ class TestModel_LoadBalancerListenerPolicyTargetPrototypeLoadBalancerListenerPol Test Class for LoadBalancerListenerPolicyTargetPrototypeLoadBalancerListenerPolicyHTTPSRedirectPrototype """ - def test_load_balancer_listener_policy_target_prototype_load_balancer_listener_policy_https_redirect_prototype_serialization(self): + def test_load_balancer_listener_policy_target_prototype_load_balancer_listener_policy_https_redirect_prototype_serialization( + self, + ): """ Test serialization/deserialization for LoadBalancerListenerPolicyTargetPrototypeLoadBalancerListenerPolicyHTTPSRedirectPrototype """ @@ -87082,25 +95577,50 @@ def test_load_balancer_listener_policy_target_prototype_load_balancer_listener_p load_balancer_listener_identity_model['id'] = '70294e14-4e61-11e8-bcf4-0242ac110004' # Construct a json representation of a LoadBalancerListenerPolicyTargetPrototypeLoadBalancerListenerPolicyHTTPSRedirectPrototype model - load_balancer_listener_policy_target_prototype_load_balancer_listener_policy_https_redirect_prototype_model_json = {} - load_balancer_listener_policy_target_prototype_load_balancer_listener_policy_https_redirect_prototype_model_json['http_status_code'] = 301 - load_balancer_listener_policy_target_prototype_load_balancer_listener_policy_https_redirect_prototype_model_json['listener'] = load_balancer_listener_identity_model - load_balancer_listener_policy_target_prototype_load_balancer_listener_policy_https_redirect_prototype_model_json['uri'] = '/example?doc=get' + load_balancer_listener_policy_target_prototype_load_balancer_listener_policy_https_redirect_prototype_model_json = ( + {} + ) + load_balancer_listener_policy_target_prototype_load_balancer_listener_policy_https_redirect_prototype_model_json[ + 'http_status_code' + ] = 301 + load_balancer_listener_policy_target_prototype_load_balancer_listener_policy_https_redirect_prototype_model_json[ + 'listener' + ] = load_balancer_listener_identity_model + load_balancer_listener_policy_target_prototype_load_balancer_listener_policy_https_redirect_prototype_model_json[ + 'uri' + ] = '/example?doc=get' # Construct a model instance of LoadBalancerListenerPolicyTargetPrototypeLoadBalancerListenerPolicyHTTPSRedirectPrototype by calling from_dict on the json representation - load_balancer_listener_policy_target_prototype_load_balancer_listener_policy_https_redirect_prototype_model = LoadBalancerListenerPolicyTargetPrototypeLoadBalancerListenerPolicyHTTPSRedirectPrototype.from_dict(load_balancer_listener_policy_target_prototype_load_balancer_listener_policy_https_redirect_prototype_model_json) - assert load_balancer_listener_policy_target_prototype_load_balancer_listener_policy_https_redirect_prototype_model != False + load_balancer_listener_policy_target_prototype_load_balancer_listener_policy_https_redirect_prototype_model = LoadBalancerListenerPolicyTargetPrototypeLoadBalancerListenerPolicyHTTPSRedirectPrototype.from_dict( + load_balancer_listener_policy_target_prototype_load_balancer_listener_policy_https_redirect_prototype_model_json + ) + assert ( + load_balancer_listener_policy_target_prototype_load_balancer_listener_policy_https_redirect_prototype_model + != False + ) # Construct a model instance of LoadBalancerListenerPolicyTargetPrototypeLoadBalancerListenerPolicyHTTPSRedirectPrototype by calling from_dict on the json representation - load_balancer_listener_policy_target_prototype_load_balancer_listener_policy_https_redirect_prototype_model_dict = LoadBalancerListenerPolicyTargetPrototypeLoadBalancerListenerPolicyHTTPSRedirectPrototype.from_dict(load_balancer_listener_policy_target_prototype_load_balancer_listener_policy_https_redirect_prototype_model_json).__dict__ - load_balancer_listener_policy_target_prototype_load_balancer_listener_policy_https_redirect_prototype_model2 = LoadBalancerListenerPolicyTargetPrototypeLoadBalancerListenerPolicyHTTPSRedirectPrototype(**load_balancer_listener_policy_target_prototype_load_balancer_listener_policy_https_redirect_prototype_model_dict) + load_balancer_listener_policy_target_prototype_load_balancer_listener_policy_https_redirect_prototype_model_dict = LoadBalancerListenerPolicyTargetPrototypeLoadBalancerListenerPolicyHTTPSRedirectPrototype.from_dict( + load_balancer_listener_policy_target_prototype_load_balancer_listener_policy_https_redirect_prototype_model_json + ).__dict__ + load_balancer_listener_policy_target_prototype_load_balancer_listener_policy_https_redirect_prototype_model2 = LoadBalancerListenerPolicyTargetPrototypeLoadBalancerListenerPolicyHTTPSRedirectPrototype( + **load_balancer_listener_policy_target_prototype_load_balancer_listener_policy_https_redirect_prototype_model_dict + ) # Verify the model instances are equivalent - assert load_balancer_listener_policy_target_prototype_load_balancer_listener_policy_https_redirect_prototype_model == load_balancer_listener_policy_target_prototype_load_balancer_listener_policy_https_redirect_prototype_model2 + assert ( + load_balancer_listener_policy_target_prototype_load_balancer_listener_policy_https_redirect_prototype_model + == load_balancer_listener_policy_target_prototype_load_balancer_listener_policy_https_redirect_prototype_model2 + ) # Convert model instance back to dict and verify no loss of data - load_balancer_listener_policy_target_prototype_load_balancer_listener_policy_https_redirect_prototype_model_json2 = load_balancer_listener_policy_target_prototype_load_balancer_listener_policy_https_redirect_prototype_model.to_dict() - assert load_balancer_listener_policy_target_prototype_load_balancer_listener_policy_https_redirect_prototype_model_json2 == load_balancer_listener_policy_target_prototype_load_balancer_listener_policy_https_redirect_prototype_model_json + load_balancer_listener_policy_target_prototype_load_balancer_listener_policy_https_redirect_prototype_model_json2 = ( + load_balancer_listener_policy_target_prototype_load_balancer_listener_policy_https_redirect_prototype_model.to_dict() + ) + assert ( + load_balancer_listener_policy_target_prototype_load_balancer_listener_policy_https_redirect_prototype_model_json2 + == load_balancer_listener_policy_target_prototype_load_balancer_listener_policy_https_redirect_prototype_model_json + ) class TestModel_LoadBalancerListenerPolicyTargetPrototypeLoadBalancerListenerPolicyRedirectURLPrototype: @@ -87108,30 +95628,55 @@ class TestModel_LoadBalancerListenerPolicyTargetPrototypeLoadBalancerListenerPol Test Class for LoadBalancerListenerPolicyTargetPrototypeLoadBalancerListenerPolicyRedirectURLPrototype """ - def test_load_balancer_listener_policy_target_prototype_load_balancer_listener_policy_redirect_url_prototype_serialization(self): + def test_load_balancer_listener_policy_target_prototype_load_balancer_listener_policy_redirect_url_prototype_serialization( + self, + ): """ Test serialization/deserialization for LoadBalancerListenerPolicyTargetPrototypeLoadBalancerListenerPolicyRedirectURLPrototype """ # Construct a json representation of a LoadBalancerListenerPolicyTargetPrototypeLoadBalancerListenerPolicyRedirectURLPrototype model - load_balancer_listener_policy_target_prototype_load_balancer_listener_policy_redirect_url_prototype_model_json = {} - load_balancer_listener_policy_target_prototype_load_balancer_listener_policy_redirect_url_prototype_model_json['http_status_code'] = 301 - load_balancer_listener_policy_target_prototype_load_balancer_listener_policy_redirect_url_prototype_model_json['url'] = 'https://ibm.com:443/new/{path}?{query}' + load_balancer_listener_policy_target_prototype_load_balancer_listener_policy_redirect_url_prototype_model_json = ( + {} + ) + load_balancer_listener_policy_target_prototype_load_balancer_listener_policy_redirect_url_prototype_model_json[ + 'http_status_code' + ] = 301 + load_balancer_listener_policy_target_prototype_load_balancer_listener_policy_redirect_url_prototype_model_json[ + 'url' + ] = 'https://ibm.com:443/new/{path}?{query}' # Construct a model instance of LoadBalancerListenerPolicyTargetPrototypeLoadBalancerListenerPolicyRedirectURLPrototype by calling from_dict on the json representation - load_balancer_listener_policy_target_prototype_load_balancer_listener_policy_redirect_url_prototype_model = LoadBalancerListenerPolicyTargetPrototypeLoadBalancerListenerPolicyRedirectURLPrototype.from_dict(load_balancer_listener_policy_target_prototype_load_balancer_listener_policy_redirect_url_prototype_model_json) - assert load_balancer_listener_policy_target_prototype_load_balancer_listener_policy_redirect_url_prototype_model != False + load_balancer_listener_policy_target_prototype_load_balancer_listener_policy_redirect_url_prototype_model = LoadBalancerListenerPolicyTargetPrototypeLoadBalancerListenerPolicyRedirectURLPrototype.from_dict( + load_balancer_listener_policy_target_prototype_load_balancer_listener_policy_redirect_url_prototype_model_json + ) + assert ( + load_balancer_listener_policy_target_prototype_load_balancer_listener_policy_redirect_url_prototype_model + != False + ) # Construct a model instance of LoadBalancerListenerPolicyTargetPrototypeLoadBalancerListenerPolicyRedirectURLPrototype by calling from_dict on the json representation - load_balancer_listener_policy_target_prototype_load_balancer_listener_policy_redirect_url_prototype_model_dict = LoadBalancerListenerPolicyTargetPrototypeLoadBalancerListenerPolicyRedirectURLPrototype.from_dict(load_balancer_listener_policy_target_prototype_load_balancer_listener_policy_redirect_url_prototype_model_json).__dict__ - load_balancer_listener_policy_target_prototype_load_balancer_listener_policy_redirect_url_prototype_model2 = LoadBalancerListenerPolicyTargetPrototypeLoadBalancerListenerPolicyRedirectURLPrototype(**load_balancer_listener_policy_target_prototype_load_balancer_listener_policy_redirect_url_prototype_model_dict) + load_balancer_listener_policy_target_prototype_load_balancer_listener_policy_redirect_url_prototype_model_dict = LoadBalancerListenerPolicyTargetPrototypeLoadBalancerListenerPolicyRedirectURLPrototype.from_dict( + load_balancer_listener_policy_target_prototype_load_balancer_listener_policy_redirect_url_prototype_model_json + ).__dict__ + load_balancer_listener_policy_target_prototype_load_balancer_listener_policy_redirect_url_prototype_model2 = LoadBalancerListenerPolicyTargetPrototypeLoadBalancerListenerPolicyRedirectURLPrototype( + **load_balancer_listener_policy_target_prototype_load_balancer_listener_policy_redirect_url_prototype_model_dict + ) # Verify the model instances are equivalent - assert load_balancer_listener_policy_target_prototype_load_balancer_listener_policy_redirect_url_prototype_model == load_balancer_listener_policy_target_prototype_load_balancer_listener_policy_redirect_url_prototype_model2 + assert ( + load_balancer_listener_policy_target_prototype_load_balancer_listener_policy_redirect_url_prototype_model + == load_balancer_listener_policy_target_prototype_load_balancer_listener_policy_redirect_url_prototype_model2 + ) # Convert model instance back to dict and verify no loss of data - load_balancer_listener_policy_target_prototype_load_balancer_listener_policy_redirect_url_prototype_model_json2 = load_balancer_listener_policy_target_prototype_load_balancer_listener_policy_redirect_url_prototype_model.to_dict() - assert load_balancer_listener_policy_target_prototype_load_balancer_listener_policy_redirect_url_prototype_model_json2 == load_balancer_listener_policy_target_prototype_load_balancer_listener_policy_redirect_url_prototype_model_json + load_balancer_listener_policy_target_prototype_load_balancer_listener_policy_redirect_url_prototype_model_json2 = ( + load_balancer_listener_policy_target_prototype_load_balancer_listener_policy_redirect_url_prototype_model.to_dict() + ) + assert ( + load_balancer_listener_policy_target_prototype_load_balancer_listener_policy_redirect_url_prototype_model_json2 + == load_balancer_listener_policy_target_prototype_load_balancer_listener_policy_redirect_url_prototype_model_json + ) class TestModel_LoadBalancerListenerPolicyTargetLoadBalancerListenerPolicyHTTPSRedirect: @@ -87151,29 +95696,57 @@ def test_load_balancer_listener_policy_target_load_balancer_listener_policy_http load_balancer_listener_reference_model = {} # LoadBalancerListenerReference load_balancer_listener_reference_model['deleted'] = deleted_model - load_balancer_listener_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/listeners/70294e14-4e61-11e8-bcf4-0242ac110004' + load_balancer_listener_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/listeners/70294e14-4e61-11e8-bcf4-0242ac110004' + ) load_balancer_listener_reference_model['id'] = '70294e14-4e61-11e8-bcf4-0242ac110004' # Construct a json representation of a LoadBalancerListenerPolicyTargetLoadBalancerListenerPolicyHTTPSRedirect model load_balancer_listener_policy_target_load_balancer_listener_policy_https_redirect_model_json = {} - load_balancer_listener_policy_target_load_balancer_listener_policy_https_redirect_model_json['http_status_code'] = 301 - load_balancer_listener_policy_target_load_balancer_listener_policy_https_redirect_model_json['listener'] = load_balancer_listener_reference_model - load_balancer_listener_policy_target_load_balancer_listener_policy_https_redirect_model_json['uri'] = '/example?doc=get' + load_balancer_listener_policy_target_load_balancer_listener_policy_https_redirect_model_json[ + 'http_status_code' + ] = 301 + load_balancer_listener_policy_target_load_balancer_listener_policy_https_redirect_model_json['listener'] = ( + load_balancer_listener_reference_model + ) + load_balancer_listener_policy_target_load_balancer_listener_policy_https_redirect_model_json['uri'] = ( + '/example?doc=get' + ) # Construct a model instance of LoadBalancerListenerPolicyTargetLoadBalancerListenerPolicyHTTPSRedirect by calling from_dict on the json representation - load_balancer_listener_policy_target_load_balancer_listener_policy_https_redirect_model = LoadBalancerListenerPolicyTargetLoadBalancerListenerPolicyHTTPSRedirect.from_dict(load_balancer_listener_policy_target_load_balancer_listener_policy_https_redirect_model_json) + load_balancer_listener_policy_target_load_balancer_listener_policy_https_redirect_model = ( + LoadBalancerListenerPolicyTargetLoadBalancerListenerPolicyHTTPSRedirect.from_dict( + load_balancer_listener_policy_target_load_balancer_listener_policy_https_redirect_model_json + ) + ) assert load_balancer_listener_policy_target_load_balancer_listener_policy_https_redirect_model != False # Construct a model instance of LoadBalancerListenerPolicyTargetLoadBalancerListenerPolicyHTTPSRedirect by calling from_dict on the json representation - load_balancer_listener_policy_target_load_balancer_listener_policy_https_redirect_model_dict = LoadBalancerListenerPolicyTargetLoadBalancerListenerPolicyHTTPSRedirect.from_dict(load_balancer_listener_policy_target_load_balancer_listener_policy_https_redirect_model_json).__dict__ - load_balancer_listener_policy_target_load_balancer_listener_policy_https_redirect_model2 = LoadBalancerListenerPolicyTargetLoadBalancerListenerPolicyHTTPSRedirect(**load_balancer_listener_policy_target_load_balancer_listener_policy_https_redirect_model_dict) + load_balancer_listener_policy_target_load_balancer_listener_policy_https_redirect_model_dict = ( + LoadBalancerListenerPolicyTargetLoadBalancerListenerPolicyHTTPSRedirect.from_dict( + load_balancer_listener_policy_target_load_balancer_listener_policy_https_redirect_model_json + ).__dict__ + ) + load_balancer_listener_policy_target_load_balancer_listener_policy_https_redirect_model2 = ( + LoadBalancerListenerPolicyTargetLoadBalancerListenerPolicyHTTPSRedirect( + **load_balancer_listener_policy_target_load_balancer_listener_policy_https_redirect_model_dict + ) + ) # Verify the model instances are equivalent - assert load_balancer_listener_policy_target_load_balancer_listener_policy_https_redirect_model == load_balancer_listener_policy_target_load_balancer_listener_policy_https_redirect_model2 + assert ( + load_balancer_listener_policy_target_load_balancer_listener_policy_https_redirect_model + == load_balancer_listener_policy_target_load_balancer_listener_policy_https_redirect_model2 + ) # Convert model instance back to dict and verify no loss of data - load_balancer_listener_policy_target_load_balancer_listener_policy_https_redirect_model_json2 = load_balancer_listener_policy_target_load_balancer_listener_policy_https_redirect_model.to_dict() - assert load_balancer_listener_policy_target_load_balancer_listener_policy_https_redirect_model_json2 == load_balancer_listener_policy_target_load_balancer_listener_policy_https_redirect_model_json + load_balancer_listener_policy_target_load_balancer_listener_policy_https_redirect_model_json2 = ( + load_balancer_listener_policy_target_load_balancer_listener_policy_https_redirect_model.to_dict() + ) + assert ( + load_balancer_listener_policy_target_load_balancer_listener_policy_https_redirect_model_json2 + == load_balancer_listener_policy_target_load_balancer_listener_policy_https_redirect_model_json + ) class TestModel_LoadBalancerListenerPolicyTargetLoadBalancerListenerPolicyRedirectURL: @@ -87188,23 +95761,47 @@ def test_load_balancer_listener_policy_target_load_balancer_listener_policy_redi # Construct a json representation of a LoadBalancerListenerPolicyTargetLoadBalancerListenerPolicyRedirectURL model load_balancer_listener_policy_target_load_balancer_listener_policy_redirect_url_model_json = {} - load_balancer_listener_policy_target_load_balancer_listener_policy_redirect_url_model_json['http_status_code'] = 301 - load_balancer_listener_policy_target_load_balancer_listener_policy_redirect_url_model_json['url'] = 'https://ibm.com:443/new/{path}?{query}' + load_balancer_listener_policy_target_load_balancer_listener_policy_redirect_url_model_json[ + 'http_status_code' + ] = 301 + load_balancer_listener_policy_target_load_balancer_listener_policy_redirect_url_model_json['url'] = ( + 'https://ibm.com:443/new/{path}?{query}' + ) # Construct a model instance of LoadBalancerListenerPolicyTargetLoadBalancerListenerPolicyRedirectURL by calling from_dict on the json representation - load_balancer_listener_policy_target_load_balancer_listener_policy_redirect_url_model = LoadBalancerListenerPolicyTargetLoadBalancerListenerPolicyRedirectURL.from_dict(load_balancer_listener_policy_target_load_balancer_listener_policy_redirect_url_model_json) + load_balancer_listener_policy_target_load_balancer_listener_policy_redirect_url_model = ( + LoadBalancerListenerPolicyTargetLoadBalancerListenerPolicyRedirectURL.from_dict( + load_balancer_listener_policy_target_load_balancer_listener_policy_redirect_url_model_json + ) + ) assert load_balancer_listener_policy_target_load_balancer_listener_policy_redirect_url_model != False # Construct a model instance of LoadBalancerListenerPolicyTargetLoadBalancerListenerPolicyRedirectURL by calling from_dict on the json representation - load_balancer_listener_policy_target_load_balancer_listener_policy_redirect_url_model_dict = LoadBalancerListenerPolicyTargetLoadBalancerListenerPolicyRedirectURL.from_dict(load_balancer_listener_policy_target_load_balancer_listener_policy_redirect_url_model_json).__dict__ - load_balancer_listener_policy_target_load_balancer_listener_policy_redirect_url_model2 = LoadBalancerListenerPolicyTargetLoadBalancerListenerPolicyRedirectURL(**load_balancer_listener_policy_target_load_balancer_listener_policy_redirect_url_model_dict) + load_balancer_listener_policy_target_load_balancer_listener_policy_redirect_url_model_dict = ( + LoadBalancerListenerPolicyTargetLoadBalancerListenerPolicyRedirectURL.from_dict( + load_balancer_listener_policy_target_load_balancer_listener_policy_redirect_url_model_json + ).__dict__ + ) + load_balancer_listener_policy_target_load_balancer_listener_policy_redirect_url_model2 = ( + LoadBalancerListenerPolicyTargetLoadBalancerListenerPolicyRedirectURL( + **load_balancer_listener_policy_target_load_balancer_listener_policy_redirect_url_model_dict + ) + ) # Verify the model instances are equivalent - assert load_balancer_listener_policy_target_load_balancer_listener_policy_redirect_url_model == load_balancer_listener_policy_target_load_balancer_listener_policy_redirect_url_model2 + assert ( + load_balancer_listener_policy_target_load_balancer_listener_policy_redirect_url_model + == load_balancer_listener_policy_target_load_balancer_listener_policy_redirect_url_model2 + ) # Convert model instance back to dict and verify no loss of data - load_balancer_listener_policy_target_load_balancer_listener_policy_redirect_url_model_json2 = load_balancer_listener_policy_target_load_balancer_listener_policy_redirect_url_model.to_dict() - assert load_balancer_listener_policy_target_load_balancer_listener_policy_redirect_url_model_json2 == load_balancer_listener_policy_target_load_balancer_listener_policy_redirect_url_model_json + load_balancer_listener_policy_target_load_balancer_listener_policy_redirect_url_model_json2 = ( + load_balancer_listener_policy_target_load_balancer_listener_policy_redirect_url_model.to_dict() + ) + assert ( + load_balancer_listener_policy_target_load_balancer_listener_policy_redirect_url_model_json2 + == load_balancer_listener_policy_target_load_balancer_listener_policy_redirect_url_model_json + ) class TestModel_LoadBalancerListenerPolicyTargetLoadBalancerPoolReference: @@ -87225,24 +95822,48 @@ def test_load_balancer_listener_policy_target_load_balancer_pool_reference_seria # Construct a json representation of a LoadBalancerListenerPolicyTargetLoadBalancerPoolReference model load_balancer_listener_policy_target_load_balancer_pool_reference_model_json = {} load_balancer_listener_policy_target_load_balancer_pool_reference_model_json['deleted'] = deleted_model - load_balancer_listener_policy_target_load_balancer_pool_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/pools/70294e14-4e61-11e8-bcf4-0242ac110004' - load_balancer_listener_policy_target_load_balancer_pool_reference_model_json['id'] = '70294e14-4e61-11e8-bcf4-0242ac110004' + load_balancer_listener_policy_target_load_balancer_pool_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/pools/70294e14-4e61-11e8-bcf4-0242ac110004' + ) + load_balancer_listener_policy_target_load_balancer_pool_reference_model_json['id'] = ( + '70294e14-4e61-11e8-bcf4-0242ac110004' + ) load_balancer_listener_policy_target_load_balancer_pool_reference_model_json['name'] = 'my-load-balancer-pool' # Construct a model instance of LoadBalancerListenerPolicyTargetLoadBalancerPoolReference by calling from_dict on the json representation - load_balancer_listener_policy_target_load_balancer_pool_reference_model = LoadBalancerListenerPolicyTargetLoadBalancerPoolReference.from_dict(load_balancer_listener_policy_target_load_balancer_pool_reference_model_json) + load_balancer_listener_policy_target_load_balancer_pool_reference_model = ( + LoadBalancerListenerPolicyTargetLoadBalancerPoolReference.from_dict( + load_balancer_listener_policy_target_load_balancer_pool_reference_model_json + ) + ) assert load_balancer_listener_policy_target_load_balancer_pool_reference_model != False # Construct a model instance of LoadBalancerListenerPolicyTargetLoadBalancerPoolReference by calling from_dict on the json representation - load_balancer_listener_policy_target_load_balancer_pool_reference_model_dict = LoadBalancerListenerPolicyTargetLoadBalancerPoolReference.from_dict(load_balancer_listener_policy_target_load_balancer_pool_reference_model_json).__dict__ - load_balancer_listener_policy_target_load_balancer_pool_reference_model2 = LoadBalancerListenerPolicyTargetLoadBalancerPoolReference(**load_balancer_listener_policy_target_load_balancer_pool_reference_model_dict) + load_balancer_listener_policy_target_load_balancer_pool_reference_model_dict = ( + LoadBalancerListenerPolicyTargetLoadBalancerPoolReference.from_dict( + load_balancer_listener_policy_target_load_balancer_pool_reference_model_json + ).__dict__ + ) + load_balancer_listener_policy_target_load_balancer_pool_reference_model2 = ( + LoadBalancerListenerPolicyTargetLoadBalancerPoolReference( + **load_balancer_listener_policy_target_load_balancer_pool_reference_model_dict + ) + ) # Verify the model instances are equivalent - assert load_balancer_listener_policy_target_load_balancer_pool_reference_model == load_balancer_listener_policy_target_load_balancer_pool_reference_model2 + assert ( + load_balancer_listener_policy_target_load_balancer_pool_reference_model + == load_balancer_listener_policy_target_load_balancer_pool_reference_model2 + ) # Convert model instance back to dict and verify no loss of data - load_balancer_listener_policy_target_load_balancer_pool_reference_model_json2 = load_balancer_listener_policy_target_load_balancer_pool_reference_model.to_dict() - assert load_balancer_listener_policy_target_load_balancer_pool_reference_model_json2 == load_balancer_listener_policy_target_load_balancer_pool_reference_model_json + load_balancer_listener_policy_target_load_balancer_pool_reference_model_json2 = ( + load_balancer_listener_policy_target_load_balancer_pool_reference_model.to_dict() + ) + assert ( + load_balancer_listener_policy_target_load_balancer_pool_reference_model_json2 + == load_balancer_listener_policy_target_load_balancer_pool_reference_model_json + ) class TestModel_LoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref: @@ -87257,22 +95878,44 @@ def test_load_balancer_pool_identity_load_balancer_pool_identity_by_href_seriali # Construct a json representation of a LoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref model load_balancer_pool_identity_load_balancer_pool_identity_by_href_model_json = {} - load_balancer_pool_identity_load_balancer_pool_identity_by_href_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/pools/70294e14-4e61-11e8-bcf4-0242ac110004' + load_balancer_pool_identity_load_balancer_pool_identity_by_href_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/pools/70294e14-4e61-11e8-bcf4-0242ac110004' + ) # Construct a model instance of LoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref by calling from_dict on the json representation - load_balancer_pool_identity_load_balancer_pool_identity_by_href_model = LoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref.from_dict(load_balancer_pool_identity_load_balancer_pool_identity_by_href_model_json) + load_balancer_pool_identity_load_balancer_pool_identity_by_href_model = ( + LoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref.from_dict( + load_balancer_pool_identity_load_balancer_pool_identity_by_href_model_json + ) + ) assert load_balancer_pool_identity_load_balancer_pool_identity_by_href_model != False # Construct a model instance of LoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref by calling from_dict on the json representation - load_balancer_pool_identity_load_balancer_pool_identity_by_href_model_dict = LoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref.from_dict(load_balancer_pool_identity_load_balancer_pool_identity_by_href_model_json).__dict__ - load_balancer_pool_identity_load_balancer_pool_identity_by_href_model2 = LoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref(**load_balancer_pool_identity_load_balancer_pool_identity_by_href_model_dict) + load_balancer_pool_identity_load_balancer_pool_identity_by_href_model_dict = ( + LoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref.from_dict( + load_balancer_pool_identity_load_balancer_pool_identity_by_href_model_json + ).__dict__ + ) + load_balancer_pool_identity_load_balancer_pool_identity_by_href_model2 = ( + LoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref( + **load_balancer_pool_identity_load_balancer_pool_identity_by_href_model_dict + ) + ) # Verify the model instances are equivalent - assert load_balancer_pool_identity_load_balancer_pool_identity_by_href_model == load_balancer_pool_identity_load_balancer_pool_identity_by_href_model2 + assert ( + load_balancer_pool_identity_load_balancer_pool_identity_by_href_model + == load_balancer_pool_identity_load_balancer_pool_identity_by_href_model2 + ) # Convert model instance back to dict and verify no loss of data - load_balancer_pool_identity_load_balancer_pool_identity_by_href_model_json2 = load_balancer_pool_identity_load_balancer_pool_identity_by_href_model.to_dict() - assert load_balancer_pool_identity_load_balancer_pool_identity_by_href_model_json2 == load_balancer_pool_identity_load_balancer_pool_identity_by_href_model_json + load_balancer_pool_identity_load_balancer_pool_identity_by_href_model_json2 = ( + load_balancer_pool_identity_load_balancer_pool_identity_by_href_model.to_dict() + ) + assert ( + load_balancer_pool_identity_load_balancer_pool_identity_by_href_model_json2 + == load_balancer_pool_identity_load_balancer_pool_identity_by_href_model_json + ) class TestModel_LoadBalancerPoolIdentityLoadBalancerPoolIdentityById: @@ -87287,22 +95930,44 @@ def test_load_balancer_pool_identity_load_balancer_pool_identity_by_id_serializa # Construct a json representation of a LoadBalancerPoolIdentityLoadBalancerPoolIdentityById model load_balancer_pool_identity_load_balancer_pool_identity_by_id_model_json = {} - load_balancer_pool_identity_load_balancer_pool_identity_by_id_model_json['id'] = '70294e14-4e61-11e8-bcf4-0242ac110004' + load_balancer_pool_identity_load_balancer_pool_identity_by_id_model_json['id'] = ( + '70294e14-4e61-11e8-bcf4-0242ac110004' + ) # Construct a model instance of LoadBalancerPoolIdentityLoadBalancerPoolIdentityById by calling from_dict on the json representation - load_balancer_pool_identity_load_balancer_pool_identity_by_id_model = LoadBalancerPoolIdentityLoadBalancerPoolIdentityById.from_dict(load_balancer_pool_identity_load_balancer_pool_identity_by_id_model_json) + load_balancer_pool_identity_load_balancer_pool_identity_by_id_model = ( + LoadBalancerPoolIdentityLoadBalancerPoolIdentityById.from_dict( + load_balancer_pool_identity_load_balancer_pool_identity_by_id_model_json + ) + ) assert load_balancer_pool_identity_load_balancer_pool_identity_by_id_model != False # Construct a model instance of LoadBalancerPoolIdentityLoadBalancerPoolIdentityById by calling from_dict on the json representation - load_balancer_pool_identity_load_balancer_pool_identity_by_id_model_dict = LoadBalancerPoolIdentityLoadBalancerPoolIdentityById.from_dict(load_balancer_pool_identity_load_balancer_pool_identity_by_id_model_json).__dict__ - load_balancer_pool_identity_load_balancer_pool_identity_by_id_model2 = LoadBalancerPoolIdentityLoadBalancerPoolIdentityById(**load_balancer_pool_identity_load_balancer_pool_identity_by_id_model_dict) + load_balancer_pool_identity_load_balancer_pool_identity_by_id_model_dict = ( + LoadBalancerPoolIdentityLoadBalancerPoolIdentityById.from_dict( + load_balancer_pool_identity_load_balancer_pool_identity_by_id_model_json + ).__dict__ + ) + load_balancer_pool_identity_load_balancer_pool_identity_by_id_model2 = ( + LoadBalancerPoolIdentityLoadBalancerPoolIdentityById( + **load_balancer_pool_identity_load_balancer_pool_identity_by_id_model_dict + ) + ) # Verify the model instances are equivalent - assert load_balancer_pool_identity_load_balancer_pool_identity_by_id_model == load_balancer_pool_identity_load_balancer_pool_identity_by_id_model2 + assert ( + load_balancer_pool_identity_load_balancer_pool_identity_by_id_model + == load_balancer_pool_identity_load_balancer_pool_identity_by_id_model2 + ) # Convert model instance back to dict and verify no loss of data - load_balancer_pool_identity_load_balancer_pool_identity_by_id_model_json2 = load_balancer_pool_identity_load_balancer_pool_identity_by_id_model.to_dict() - assert load_balancer_pool_identity_load_balancer_pool_identity_by_id_model_json2 == load_balancer_pool_identity_load_balancer_pool_identity_by_id_model_json + load_balancer_pool_identity_load_balancer_pool_identity_by_id_model_json2 = ( + load_balancer_pool_identity_load_balancer_pool_identity_by_id_model.to_dict() + ) + assert ( + load_balancer_pool_identity_load_balancer_pool_identity_by_id_model_json2 + == load_balancer_pool_identity_load_balancer_pool_identity_by_id_model_json + ) class TestModel_LoadBalancerPoolMemberTargetPrototypeIP: @@ -87320,19 +95985,32 @@ def test_load_balancer_pool_member_target_prototype_ip_serialization(self): load_balancer_pool_member_target_prototype_ip_model_json['address'] = '192.168.3.4' # Construct a model instance of LoadBalancerPoolMemberTargetPrototypeIP by calling from_dict on the json representation - load_balancer_pool_member_target_prototype_ip_model = LoadBalancerPoolMemberTargetPrototypeIP.from_dict(load_balancer_pool_member_target_prototype_ip_model_json) + load_balancer_pool_member_target_prototype_ip_model = LoadBalancerPoolMemberTargetPrototypeIP.from_dict( + load_balancer_pool_member_target_prototype_ip_model_json + ) assert load_balancer_pool_member_target_prototype_ip_model != False # Construct a model instance of LoadBalancerPoolMemberTargetPrototypeIP by calling from_dict on the json representation - load_balancer_pool_member_target_prototype_ip_model_dict = LoadBalancerPoolMemberTargetPrototypeIP.from_dict(load_balancer_pool_member_target_prototype_ip_model_json).__dict__ - load_balancer_pool_member_target_prototype_ip_model2 = LoadBalancerPoolMemberTargetPrototypeIP(**load_balancer_pool_member_target_prototype_ip_model_dict) + load_balancer_pool_member_target_prototype_ip_model_dict = LoadBalancerPoolMemberTargetPrototypeIP.from_dict( + load_balancer_pool_member_target_prototype_ip_model_json + ).__dict__ + load_balancer_pool_member_target_prototype_ip_model2 = LoadBalancerPoolMemberTargetPrototypeIP( + **load_balancer_pool_member_target_prototype_ip_model_dict + ) # Verify the model instances are equivalent - assert load_balancer_pool_member_target_prototype_ip_model == load_balancer_pool_member_target_prototype_ip_model2 + assert ( + load_balancer_pool_member_target_prototype_ip_model == load_balancer_pool_member_target_prototype_ip_model2 + ) # Convert model instance back to dict and verify no loss of data - load_balancer_pool_member_target_prototype_ip_model_json2 = load_balancer_pool_member_target_prototype_ip_model.to_dict() - assert load_balancer_pool_member_target_prototype_ip_model_json2 == load_balancer_pool_member_target_prototype_ip_model_json + load_balancer_pool_member_target_prototype_ip_model_json2 = ( + load_balancer_pool_member_target_prototype_ip_model.to_dict() + ) + assert ( + load_balancer_pool_member_target_prototype_ip_model_json2 + == load_balancer_pool_member_target_prototype_ip_model_json + ) class TestModel_LoadBalancerPoolMemberTargetIP: @@ -87350,12 +96028,18 @@ def test_load_balancer_pool_member_target_ip_serialization(self): load_balancer_pool_member_target_ip_model_json['address'] = '192.168.3.4' # Construct a model instance of LoadBalancerPoolMemberTargetIP by calling from_dict on the json representation - load_balancer_pool_member_target_ip_model = LoadBalancerPoolMemberTargetIP.from_dict(load_balancer_pool_member_target_ip_model_json) + load_balancer_pool_member_target_ip_model = LoadBalancerPoolMemberTargetIP.from_dict( + load_balancer_pool_member_target_ip_model_json + ) assert load_balancer_pool_member_target_ip_model != False # Construct a model instance of LoadBalancerPoolMemberTargetIP by calling from_dict on the json representation - load_balancer_pool_member_target_ip_model_dict = LoadBalancerPoolMemberTargetIP.from_dict(load_balancer_pool_member_target_ip_model_json).__dict__ - load_balancer_pool_member_target_ip_model2 = LoadBalancerPoolMemberTargetIP(**load_balancer_pool_member_target_ip_model_dict) + load_balancer_pool_member_target_ip_model_dict = LoadBalancerPoolMemberTargetIP.from_dict( + load_balancer_pool_member_target_ip_model_json + ).__dict__ + load_balancer_pool_member_target_ip_model2 = LoadBalancerPoolMemberTargetIP( + **load_balancer_pool_member_target_ip_model_dict + ) # Verify the model instances are equivalent assert load_balancer_pool_member_target_ip_model == load_balancer_pool_member_target_ip_model2 @@ -87382,26 +96066,50 @@ def test_load_balancer_pool_member_target_instance_reference_serialization(self) # Construct a json representation of a LoadBalancerPoolMemberTargetInstanceReference model load_balancer_pool_member_target_instance_reference_model_json = {} - load_balancer_pool_member_target_instance_reference_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::instance:0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' + load_balancer_pool_member_target_instance_reference_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::instance:0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' + ) load_balancer_pool_member_target_instance_reference_model_json['deleted'] = deleted_model - load_balancer_pool_member_target_instance_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' - load_balancer_pool_member_target_instance_reference_model_json['id'] = '0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' + load_balancer_pool_member_target_instance_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' + ) + load_balancer_pool_member_target_instance_reference_model_json['id'] = ( + '0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' + ) load_balancer_pool_member_target_instance_reference_model_json['name'] = 'my-instance' # Construct a model instance of LoadBalancerPoolMemberTargetInstanceReference by calling from_dict on the json representation - load_balancer_pool_member_target_instance_reference_model = LoadBalancerPoolMemberTargetInstanceReference.from_dict(load_balancer_pool_member_target_instance_reference_model_json) + load_balancer_pool_member_target_instance_reference_model = ( + LoadBalancerPoolMemberTargetInstanceReference.from_dict( + load_balancer_pool_member_target_instance_reference_model_json + ) + ) assert load_balancer_pool_member_target_instance_reference_model != False # Construct a model instance of LoadBalancerPoolMemberTargetInstanceReference by calling from_dict on the json representation - load_balancer_pool_member_target_instance_reference_model_dict = LoadBalancerPoolMemberTargetInstanceReference.from_dict(load_balancer_pool_member_target_instance_reference_model_json).__dict__ - load_balancer_pool_member_target_instance_reference_model2 = LoadBalancerPoolMemberTargetInstanceReference(**load_balancer_pool_member_target_instance_reference_model_dict) + load_balancer_pool_member_target_instance_reference_model_dict = ( + LoadBalancerPoolMemberTargetInstanceReference.from_dict( + load_balancer_pool_member_target_instance_reference_model_json + ).__dict__ + ) + load_balancer_pool_member_target_instance_reference_model2 = LoadBalancerPoolMemberTargetInstanceReference( + **load_balancer_pool_member_target_instance_reference_model_dict + ) # Verify the model instances are equivalent - assert load_balancer_pool_member_target_instance_reference_model == load_balancer_pool_member_target_instance_reference_model2 + assert ( + load_balancer_pool_member_target_instance_reference_model + == load_balancer_pool_member_target_instance_reference_model2 + ) # Convert model instance back to dict and verify no loss of data - load_balancer_pool_member_target_instance_reference_model_json2 = load_balancer_pool_member_target_instance_reference_model.to_dict() - assert load_balancer_pool_member_target_instance_reference_model_json2 == load_balancer_pool_member_target_instance_reference_model_json + load_balancer_pool_member_target_instance_reference_model_json2 = ( + load_balancer_pool_member_target_instance_reference_model.to_dict() + ) + assert ( + load_balancer_pool_member_target_instance_reference_model_json2 + == load_balancer_pool_member_target_instance_reference_model_json + ) class TestModel_LoadBalancerProfileAvailabilityDependent: @@ -87419,19 +96127,30 @@ def test_load_balancer_profile_availability_dependent_serialization(self): load_balancer_profile_availability_dependent_model_json['type'] = 'dependent' # Construct a model instance of LoadBalancerProfileAvailabilityDependent by calling from_dict on the json representation - load_balancer_profile_availability_dependent_model = LoadBalancerProfileAvailabilityDependent.from_dict(load_balancer_profile_availability_dependent_model_json) + load_balancer_profile_availability_dependent_model = LoadBalancerProfileAvailabilityDependent.from_dict( + load_balancer_profile_availability_dependent_model_json + ) assert load_balancer_profile_availability_dependent_model != False # Construct a model instance of LoadBalancerProfileAvailabilityDependent by calling from_dict on the json representation - load_balancer_profile_availability_dependent_model_dict = LoadBalancerProfileAvailabilityDependent.from_dict(load_balancer_profile_availability_dependent_model_json).__dict__ - load_balancer_profile_availability_dependent_model2 = LoadBalancerProfileAvailabilityDependent(**load_balancer_profile_availability_dependent_model_dict) + load_balancer_profile_availability_dependent_model_dict = LoadBalancerProfileAvailabilityDependent.from_dict( + load_balancer_profile_availability_dependent_model_json + ).__dict__ + load_balancer_profile_availability_dependent_model2 = LoadBalancerProfileAvailabilityDependent( + **load_balancer_profile_availability_dependent_model_dict + ) # Verify the model instances are equivalent assert load_balancer_profile_availability_dependent_model == load_balancer_profile_availability_dependent_model2 # Convert model instance back to dict and verify no loss of data - load_balancer_profile_availability_dependent_model_json2 = load_balancer_profile_availability_dependent_model.to_dict() - assert load_balancer_profile_availability_dependent_model_json2 == load_balancer_profile_availability_dependent_model_json + load_balancer_profile_availability_dependent_model_json2 = ( + load_balancer_profile_availability_dependent_model.to_dict() + ) + assert ( + load_balancer_profile_availability_dependent_model_json2 + == load_balancer_profile_availability_dependent_model_json + ) class TestModel_LoadBalancerProfileAvailabilityFixed: @@ -87450,19 +96169,27 @@ def test_load_balancer_profile_availability_fixed_serialization(self): load_balancer_profile_availability_fixed_model_json['value'] = 'region' # Construct a model instance of LoadBalancerProfileAvailabilityFixed by calling from_dict on the json representation - load_balancer_profile_availability_fixed_model = LoadBalancerProfileAvailabilityFixed.from_dict(load_balancer_profile_availability_fixed_model_json) + load_balancer_profile_availability_fixed_model = LoadBalancerProfileAvailabilityFixed.from_dict( + load_balancer_profile_availability_fixed_model_json + ) assert load_balancer_profile_availability_fixed_model != False # Construct a model instance of LoadBalancerProfileAvailabilityFixed by calling from_dict on the json representation - load_balancer_profile_availability_fixed_model_dict = LoadBalancerProfileAvailabilityFixed.from_dict(load_balancer_profile_availability_fixed_model_json).__dict__ - load_balancer_profile_availability_fixed_model2 = LoadBalancerProfileAvailabilityFixed(**load_balancer_profile_availability_fixed_model_dict) + load_balancer_profile_availability_fixed_model_dict = LoadBalancerProfileAvailabilityFixed.from_dict( + load_balancer_profile_availability_fixed_model_json + ).__dict__ + load_balancer_profile_availability_fixed_model2 = LoadBalancerProfileAvailabilityFixed( + **load_balancer_profile_availability_fixed_model_dict + ) # Verify the model instances are equivalent assert load_balancer_profile_availability_fixed_model == load_balancer_profile_availability_fixed_model2 # Convert model instance back to dict and verify no loss of data load_balancer_profile_availability_fixed_model_json2 = load_balancer_profile_availability_fixed_model.to_dict() - assert load_balancer_profile_availability_fixed_model_json2 == load_balancer_profile_availability_fixed_model_json + assert ( + load_balancer_profile_availability_fixed_model_json2 == load_balancer_profile_availability_fixed_model_json + ) class TestModel_LoadBalancerProfileIdentityByHref: @@ -87477,15 +96204,23 @@ def test_load_balancer_profile_identity_by_href_serialization(self): # Construct a json representation of a LoadBalancerProfileIdentityByHref model load_balancer_profile_identity_by_href_model_json = {} - load_balancer_profile_identity_by_href_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/load_balancer/profiles/network-fixed' + load_balancer_profile_identity_by_href_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/load_balancer/profiles/network-fixed' + ) # Construct a model instance of LoadBalancerProfileIdentityByHref by calling from_dict on the json representation - load_balancer_profile_identity_by_href_model = LoadBalancerProfileIdentityByHref.from_dict(load_balancer_profile_identity_by_href_model_json) + load_balancer_profile_identity_by_href_model = LoadBalancerProfileIdentityByHref.from_dict( + load_balancer_profile_identity_by_href_model_json + ) assert load_balancer_profile_identity_by_href_model != False # Construct a model instance of LoadBalancerProfileIdentityByHref by calling from_dict on the json representation - load_balancer_profile_identity_by_href_model_dict = LoadBalancerProfileIdentityByHref.from_dict(load_balancer_profile_identity_by_href_model_json).__dict__ - load_balancer_profile_identity_by_href_model2 = LoadBalancerProfileIdentityByHref(**load_balancer_profile_identity_by_href_model_dict) + load_balancer_profile_identity_by_href_model_dict = LoadBalancerProfileIdentityByHref.from_dict( + load_balancer_profile_identity_by_href_model_json + ).__dict__ + load_balancer_profile_identity_by_href_model2 = LoadBalancerProfileIdentityByHref( + **load_balancer_profile_identity_by_href_model_dict + ) # Verify the model instances are equivalent assert load_balancer_profile_identity_by_href_model == load_balancer_profile_identity_by_href_model2 @@ -87510,12 +96245,18 @@ def test_load_balancer_profile_identity_by_name_serialization(self): load_balancer_profile_identity_by_name_model_json['name'] = 'network-fixed' # Construct a model instance of LoadBalancerProfileIdentityByName by calling from_dict on the json representation - load_balancer_profile_identity_by_name_model = LoadBalancerProfileIdentityByName.from_dict(load_balancer_profile_identity_by_name_model_json) + load_balancer_profile_identity_by_name_model = LoadBalancerProfileIdentityByName.from_dict( + load_balancer_profile_identity_by_name_model_json + ) assert load_balancer_profile_identity_by_name_model != False # Construct a model instance of LoadBalancerProfileIdentityByName by calling from_dict on the json representation - load_balancer_profile_identity_by_name_model_dict = LoadBalancerProfileIdentityByName.from_dict(load_balancer_profile_identity_by_name_model_json).__dict__ - load_balancer_profile_identity_by_name_model2 = LoadBalancerProfileIdentityByName(**load_balancer_profile_identity_by_name_model_dict) + load_balancer_profile_identity_by_name_model_dict = LoadBalancerProfileIdentityByName.from_dict( + load_balancer_profile_identity_by_name_model_json + ).__dict__ + load_balancer_profile_identity_by_name_model2 = LoadBalancerProfileIdentityByName( + **load_balancer_profile_identity_by_name_model_dict + ) # Verify the model instances are equivalent assert load_balancer_profile_identity_by_name_model == load_balancer_profile_identity_by_name_model2 @@ -87540,19 +96281,39 @@ def test_load_balancer_profile_instance_groups_supported_dependent_serialization load_balancer_profile_instance_groups_supported_dependent_model_json['type'] = 'dependent' # Construct a model instance of LoadBalancerProfileInstanceGroupsSupportedDependent by calling from_dict on the json representation - load_balancer_profile_instance_groups_supported_dependent_model = LoadBalancerProfileInstanceGroupsSupportedDependent.from_dict(load_balancer_profile_instance_groups_supported_dependent_model_json) + load_balancer_profile_instance_groups_supported_dependent_model = ( + LoadBalancerProfileInstanceGroupsSupportedDependent.from_dict( + load_balancer_profile_instance_groups_supported_dependent_model_json + ) + ) assert load_balancer_profile_instance_groups_supported_dependent_model != False # Construct a model instance of LoadBalancerProfileInstanceGroupsSupportedDependent by calling from_dict on the json representation - load_balancer_profile_instance_groups_supported_dependent_model_dict = LoadBalancerProfileInstanceGroupsSupportedDependent.from_dict(load_balancer_profile_instance_groups_supported_dependent_model_json).__dict__ - load_balancer_profile_instance_groups_supported_dependent_model2 = LoadBalancerProfileInstanceGroupsSupportedDependent(**load_balancer_profile_instance_groups_supported_dependent_model_dict) + load_balancer_profile_instance_groups_supported_dependent_model_dict = ( + LoadBalancerProfileInstanceGroupsSupportedDependent.from_dict( + load_balancer_profile_instance_groups_supported_dependent_model_json + ).__dict__ + ) + load_balancer_profile_instance_groups_supported_dependent_model2 = ( + LoadBalancerProfileInstanceGroupsSupportedDependent( + **load_balancer_profile_instance_groups_supported_dependent_model_dict + ) + ) # Verify the model instances are equivalent - assert load_balancer_profile_instance_groups_supported_dependent_model == load_balancer_profile_instance_groups_supported_dependent_model2 + assert ( + load_balancer_profile_instance_groups_supported_dependent_model + == load_balancer_profile_instance_groups_supported_dependent_model2 + ) # Convert model instance back to dict and verify no loss of data - load_balancer_profile_instance_groups_supported_dependent_model_json2 = load_balancer_profile_instance_groups_supported_dependent_model.to_dict() - assert load_balancer_profile_instance_groups_supported_dependent_model_json2 == load_balancer_profile_instance_groups_supported_dependent_model_json + load_balancer_profile_instance_groups_supported_dependent_model_json2 = ( + load_balancer_profile_instance_groups_supported_dependent_model.to_dict() + ) + assert ( + load_balancer_profile_instance_groups_supported_dependent_model_json2 + == load_balancer_profile_instance_groups_supported_dependent_model_json + ) class TestModel_LoadBalancerProfileInstanceGroupsSupportedFixed: @@ -87571,19 +96332,37 @@ def test_load_balancer_profile_instance_groups_supported_fixed_serialization(sel load_balancer_profile_instance_groups_supported_fixed_model_json['value'] = True # Construct a model instance of LoadBalancerProfileInstanceGroupsSupportedFixed by calling from_dict on the json representation - load_balancer_profile_instance_groups_supported_fixed_model = LoadBalancerProfileInstanceGroupsSupportedFixed.from_dict(load_balancer_profile_instance_groups_supported_fixed_model_json) + load_balancer_profile_instance_groups_supported_fixed_model = ( + LoadBalancerProfileInstanceGroupsSupportedFixed.from_dict( + load_balancer_profile_instance_groups_supported_fixed_model_json + ) + ) assert load_balancer_profile_instance_groups_supported_fixed_model != False # Construct a model instance of LoadBalancerProfileInstanceGroupsSupportedFixed by calling from_dict on the json representation - load_balancer_profile_instance_groups_supported_fixed_model_dict = LoadBalancerProfileInstanceGroupsSupportedFixed.from_dict(load_balancer_profile_instance_groups_supported_fixed_model_json).__dict__ - load_balancer_profile_instance_groups_supported_fixed_model2 = LoadBalancerProfileInstanceGroupsSupportedFixed(**load_balancer_profile_instance_groups_supported_fixed_model_dict) + load_balancer_profile_instance_groups_supported_fixed_model_dict = ( + LoadBalancerProfileInstanceGroupsSupportedFixed.from_dict( + load_balancer_profile_instance_groups_supported_fixed_model_json + ).__dict__ + ) + load_balancer_profile_instance_groups_supported_fixed_model2 = LoadBalancerProfileInstanceGroupsSupportedFixed( + **load_balancer_profile_instance_groups_supported_fixed_model_dict + ) # Verify the model instances are equivalent - assert load_balancer_profile_instance_groups_supported_fixed_model == load_balancer_profile_instance_groups_supported_fixed_model2 + assert ( + load_balancer_profile_instance_groups_supported_fixed_model + == load_balancer_profile_instance_groups_supported_fixed_model2 + ) # Convert model instance back to dict and verify no loss of data - load_balancer_profile_instance_groups_supported_fixed_model_json2 = load_balancer_profile_instance_groups_supported_fixed_model.to_dict() - assert load_balancer_profile_instance_groups_supported_fixed_model_json2 == load_balancer_profile_instance_groups_supported_fixed_model_json + load_balancer_profile_instance_groups_supported_fixed_model_json2 = ( + load_balancer_profile_instance_groups_supported_fixed_model.to_dict() + ) + assert ( + load_balancer_profile_instance_groups_supported_fixed_model_json2 + == load_balancer_profile_instance_groups_supported_fixed_model_json + ) class TestModel_LoadBalancerProfileRouteModeSupportedDependent: @@ -87601,19 +96380,37 @@ def test_load_balancer_profile_route_mode_supported_dependent_serialization(self load_balancer_profile_route_mode_supported_dependent_model_json['type'] = 'dependent' # Construct a model instance of LoadBalancerProfileRouteModeSupportedDependent by calling from_dict on the json representation - load_balancer_profile_route_mode_supported_dependent_model = LoadBalancerProfileRouteModeSupportedDependent.from_dict(load_balancer_profile_route_mode_supported_dependent_model_json) + load_balancer_profile_route_mode_supported_dependent_model = ( + LoadBalancerProfileRouteModeSupportedDependent.from_dict( + load_balancer_profile_route_mode_supported_dependent_model_json + ) + ) assert load_balancer_profile_route_mode_supported_dependent_model != False # Construct a model instance of LoadBalancerProfileRouteModeSupportedDependent by calling from_dict on the json representation - load_balancer_profile_route_mode_supported_dependent_model_dict = LoadBalancerProfileRouteModeSupportedDependent.from_dict(load_balancer_profile_route_mode_supported_dependent_model_json).__dict__ - load_balancer_profile_route_mode_supported_dependent_model2 = LoadBalancerProfileRouteModeSupportedDependent(**load_balancer_profile_route_mode_supported_dependent_model_dict) + load_balancer_profile_route_mode_supported_dependent_model_dict = ( + LoadBalancerProfileRouteModeSupportedDependent.from_dict( + load_balancer_profile_route_mode_supported_dependent_model_json + ).__dict__ + ) + load_balancer_profile_route_mode_supported_dependent_model2 = LoadBalancerProfileRouteModeSupportedDependent( + **load_balancer_profile_route_mode_supported_dependent_model_dict + ) # Verify the model instances are equivalent - assert load_balancer_profile_route_mode_supported_dependent_model == load_balancer_profile_route_mode_supported_dependent_model2 + assert ( + load_balancer_profile_route_mode_supported_dependent_model + == load_balancer_profile_route_mode_supported_dependent_model2 + ) # Convert model instance back to dict and verify no loss of data - load_balancer_profile_route_mode_supported_dependent_model_json2 = load_balancer_profile_route_mode_supported_dependent_model.to_dict() - assert load_balancer_profile_route_mode_supported_dependent_model_json2 == load_balancer_profile_route_mode_supported_dependent_model_json + load_balancer_profile_route_mode_supported_dependent_model_json2 = ( + load_balancer_profile_route_mode_supported_dependent_model.to_dict() + ) + assert ( + load_balancer_profile_route_mode_supported_dependent_model_json2 + == load_balancer_profile_route_mode_supported_dependent_model_json + ) class TestModel_LoadBalancerProfileRouteModeSupportedFixed: @@ -87632,19 +96429,35 @@ def test_load_balancer_profile_route_mode_supported_fixed_serialization(self): load_balancer_profile_route_mode_supported_fixed_model_json['value'] = True # Construct a model instance of LoadBalancerProfileRouteModeSupportedFixed by calling from_dict on the json representation - load_balancer_profile_route_mode_supported_fixed_model = LoadBalancerProfileRouteModeSupportedFixed.from_dict(load_balancer_profile_route_mode_supported_fixed_model_json) + load_balancer_profile_route_mode_supported_fixed_model = LoadBalancerProfileRouteModeSupportedFixed.from_dict( + load_balancer_profile_route_mode_supported_fixed_model_json + ) assert load_balancer_profile_route_mode_supported_fixed_model != False # Construct a model instance of LoadBalancerProfileRouteModeSupportedFixed by calling from_dict on the json representation - load_balancer_profile_route_mode_supported_fixed_model_dict = LoadBalancerProfileRouteModeSupportedFixed.from_dict(load_balancer_profile_route_mode_supported_fixed_model_json).__dict__ - load_balancer_profile_route_mode_supported_fixed_model2 = LoadBalancerProfileRouteModeSupportedFixed(**load_balancer_profile_route_mode_supported_fixed_model_dict) + load_balancer_profile_route_mode_supported_fixed_model_dict = ( + LoadBalancerProfileRouteModeSupportedFixed.from_dict( + load_balancer_profile_route_mode_supported_fixed_model_json + ).__dict__ + ) + load_balancer_profile_route_mode_supported_fixed_model2 = LoadBalancerProfileRouteModeSupportedFixed( + **load_balancer_profile_route_mode_supported_fixed_model_dict + ) # Verify the model instances are equivalent - assert load_balancer_profile_route_mode_supported_fixed_model == load_balancer_profile_route_mode_supported_fixed_model2 + assert ( + load_balancer_profile_route_mode_supported_fixed_model + == load_balancer_profile_route_mode_supported_fixed_model2 + ) # Convert model instance back to dict and verify no loss of data - load_balancer_profile_route_mode_supported_fixed_model_json2 = load_balancer_profile_route_mode_supported_fixed_model.to_dict() - assert load_balancer_profile_route_mode_supported_fixed_model_json2 == load_balancer_profile_route_mode_supported_fixed_model_json + load_balancer_profile_route_mode_supported_fixed_model_json2 = ( + load_balancer_profile_route_mode_supported_fixed_model.to_dict() + ) + assert ( + load_balancer_profile_route_mode_supported_fixed_model_json2 + == load_balancer_profile_route_mode_supported_fixed_model_json + ) class TestModel_LoadBalancerProfileSecurityGroupsSupportedDependent: @@ -87662,19 +96475,39 @@ def test_load_balancer_profile_security_groups_supported_dependent_serialization load_balancer_profile_security_groups_supported_dependent_model_json['type'] = 'dependent' # Construct a model instance of LoadBalancerProfileSecurityGroupsSupportedDependent by calling from_dict on the json representation - load_balancer_profile_security_groups_supported_dependent_model = LoadBalancerProfileSecurityGroupsSupportedDependent.from_dict(load_balancer_profile_security_groups_supported_dependent_model_json) + load_balancer_profile_security_groups_supported_dependent_model = ( + LoadBalancerProfileSecurityGroupsSupportedDependent.from_dict( + load_balancer_profile_security_groups_supported_dependent_model_json + ) + ) assert load_balancer_profile_security_groups_supported_dependent_model != False # Construct a model instance of LoadBalancerProfileSecurityGroupsSupportedDependent by calling from_dict on the json representation - load_balancer_profile_security_groups_supported_dependent_model_dict = LoadBalancerProfileSecurityGroupsSupportedDependent.from_dict(load_balancer_profile_security_groups_supported_dependent_model_json).__dict__ - load_balancer_profile_security_groups_supported_dependent_model2 = LoadBalancerProfileSecurityGroupsSupportedDependent(**load_balancer_profile_security_groups_supported_dependent_model_dict) + load_balancer_profile_security_groups_supported_dependent_model_dict = ( + LoadBalancerProfileSecurityGroupsSupportedDependent.from_dict( + load_balancer_profile_security_groups_supported_dependent_model_json + ).__dict__ + ) + load_balancer_profile_security_groups_supported_dependent_model2 = ( + LoadBalancerProfileSecurityGroupsSupportedDependent( + **load_balancer_profile_security_groups_supported_dependent_model_dict + ) + ) # Verify the model instances are equivalent - assert load_balancer_profile_security_groups_supported_dependent_model == load_balancer_profile_security_groups_supported_dependent_model2 + assert ( + load_balancer_profile_security_groups_supported_dependent_model + == load_balancer_profile_security_groups_supported_dependent_model2 + ) # Convert model instance back to dict and verify no loss of data - load_balancer_profile_security_groups_supported_dependent_model_json2 = load_balancer_profile_security_groups_supported_dependent_model.to_dict() - assert load_balancer_profile_security_groups_supported_dependent_model_json2 == load_balancer_profile_security_groups_supported_dependent_model_json + load_balancer_profile_security_groups_supported_dependent_model_json2 = ( + load_balancer_profile_security_groups_supported_dependent_model.to_dict() + ) + assert ( + load_balancer_profile_security_groups_supported_dependent_model_json2 + == load_balancer_profile_security_groups_supported_dependent_model_json + ) class TestModel_LoadBalancerProfileSecurityGroupsSupportedFixed: @@ -87693,19 +96526,37 @@ def test_load_balancer_profile_security_groups_supported_fixed_serialization(sel load_balancer_profile_security_groups_supported_fixed_model_json['value'] = True # Construct a model instance of LoadBalancerProfileSecurityGroupsSupportedFixed by calling from_dict on the json representation - load_balancer_profile_security_groups_supported_fixed_model = LoadBalancerProfileSecurityGroupsSupportedFixed.from_dict(load_balancer_profile_security_groups_supported_fixed_model_json) + load_balancer_profile_security_groups_supported_fixed_model = ( + LoadBalancerProfileSecurityGroupsSupportedFixed.from_dict( + load_balancer_profile_security_groups_supported_fixed_model_json + ) + ) assert load_balancer_profile_security_groups_supported_fixed_model != False # Construct a model instance of LoadBalancerProfileSecurityGroupsSupportedFixed by calling from_dict on the json representation - load_balancer_profile_security_groups_supported_fixed_model_dict = LoadBalancerProfileSecurityGroupsSupportedFixed.from_dict(load_balancer_profile_security_groups_supported_fixed_model_json).__dict__ - load_balancer_profile_security_groups_supported_fixed_model2 = LoadBalancerProfileSecurityGroupsSupportedFixed(**load_balancer_profile_security_groups_supported_fixed_model_dict) + load_balancer_profile_security_groups_supported_fixed_model_dict = ( + LoadBalancerProfileSecurityGroupsSupportedFixed.from_dict( + load_balancer_profile_security_groups_supported_fixed_model_json + ).__dict__ + ) + load_balancer_profile_security_groups_supported_fixed_model2 = LoadBalancerProfileSecurityGroupsSupportedFixed( + **load_balancer_profile_security_groups_supported_fixed_model_dict + ) # Verify the model instances are equivalent - assert load_balancer_profile_security_groups_supported_fixed_model == load_balancer_profile_security_groups_supported_fixed_model2 + assert ( + load_balancer_profile_security_groups_supported_fixed_model + == load_balancer_profile_security_groups_supported_fixed_model2 + ) # Convert model instance back to dict and verify no loss of data - load_balancer_profile_security_groups_supported_fixed_model_json2 = load_balancer_profile_security_groups_supported_fixed_model.to_dict() - assert load_balancer_profile_security_groups_supported_fixed_model_json2 == load_balancer_profile_security_groups_supported_fixed_model_json + load_balancer_profile_security_groups_supported_fixed_model_json2 = ( + load_balancer_profile_security_groups_supported_fixed_model.to_dict() + ) + assert ( + load_balancer_profile_security_groups_supported_fixed_model_json2 + == load_balancer_profile_security_groups_supported_fixed_model_json + ) class TestModel_LoadBalancerProfileSourceIPSessionPersistenceSupportedDependent: @@ -87723,19 +96574,39 @@ def test_load_balancer_profile_source_ip_session_persistence_supported_dependent load_balancer_profile_source_ip_session_persistence_supported_dependent_model_json['type'] = 'dependent' # Construct a model instance of LoadBalancerProfileSourceIPSessionPersistenceSupportedDependent by calling from_dict on the json representation - load_balancer_profile_source_ip_session_persistence_supported_dependent_model = LoadBalancerProfileSourceIPSessionPersistenceSupportedDependent.from_dict(load_balancer_profile_source_ip_session_persistence_supported_dependent_model_json) + load_balancer_profile_source_ip_session_persistence_supported_dependent_model = ( + LoadBalancerProfileSourceIPSessionPersistenceSupportedDependent.from_dict( + load_balancer_profile_source_ip_session_persistence_supported_dependent_model_json + ) + ) assert load_balancer_profile_source_ip_session_persistence_supported_dependent_model != False # Construct a model instance of LoadBalancerProfileSourceIPSessionPersistenceSupportedDependent by calling from_dict on the json representation - load_balancer_profile_source_ip_session_persistence_supported_dependent_model_dict = LoadBalancerProfileSourceIPSessionPersistenceSupportedDependent.from_dict(load_balancer_profile_source_ip_session_persistence_supported_dependent_model_json).__dict__ - load_balancer_profile_source_ip_session_persistence_supported_dependent_model2 = LoadBalancerProfileSourceIPSessionPersistenceSupportedDependent(**load_balancer_profile_source_ip_session_persistence_supported_dependent_model_dict) + load_balancer_profile_source_ip_session_persistence_supported_dependent_model_dict = ( + LoadBalancerProfileSourceIPSessionPersistenceSupportedDependent.from_dict( + load_balancer_profile_source_ip_session_persistence_supported_dependent_model_json + ).__dict__ + ) + load_balancer_profile_source_ip_session_persistence_supported_dependent_model2 = ( + LoadBalancerProfileSourceIPSessionPersistenceSupportedDependent( + **load_balancer_profile_source_ip_session_persistence_supported_dependent_model_dict + ) + ) # Verify the model instances are equivalent - assert load_balancer_profile_source_ip_session_persistence_supported_dependent_model == load_balancer_profile_source_ip_session_persistence_supported_dependent_model2 + assert ( + load_balancer_profile_source_ip_session_persistence_supported_dependent_model + == load_balancer_profile_source_ip_session_persistence_supported_dependent_model2 + ) # Convert model instance back to dict and verify no loss of data - load_balancer_profile_source_ip_session_persistence_supported_dependent_model_json2 = load_balancer_profile_source_ip_session_persistence_supported_dependent_model.to_dict() - assert load_balancer_profile_source_ip_session_persistence_supported_dependent_model_json2 == load_balancer_profile_source_ip_session_persistence_supported_dependent_model_json + load_balancer_profile_source_ip_session_persistence_supported_dependent_model_json2 = ( + load_balancer_profile_source_ip_session_persistence_supported_dependent_model.to_dict() + ) + assert ( + load_balancer_profile_source_ip_session_persistence_supported_dependent_model_json2 + == load_balancer_profile_source_ip_session_persistence_supported_dependent_model_json + ) class TestModel_LoadBalancerProfileSourceIPSessionPersistenceSupportedFixed: @@ -87754,19 +96625,39 @@ def test_load_balancer_profile_source_ip_session_persistence_supported_fixed_ser load_balancer_profile_source_ip_session_persistence_supported_fixed_model_json['value'] = True # Construct a model instance of LoadBalancerProfileSourceIPSessionPersistenceSupportedFixed by calling from_dict on the json representation - load_balancer_profile_source_ip_session_persistence_supported_fixed_model = LoadBalancerProfileSourceIPSessionPersistenceSupportedFixed.from_dict(load_balancer_profile_source_ip_session_persistence_supported_fixed_model_json) + load_balancer_profile_source_ip_session_persistence_supported_fixed_model = ( + LoadBalancerProfileSourceIPSessionPersistenceSupportedFixed.from_dict( + load_balancer_profile_source_ip_session_persistence_supported_fixed_model_json + ) + ) assert load_balancer_profile_source_ip_session_persistence_supported_fixed_model != False # Construct a model instance of LoadBalancerProfileSourceIPSessionPersistenceSupportedFixed by calling from_dict on the json representation - load_balancer_profile_source_ip_session_persistence_supported_fixed_model_dict = LoadBalancerProfileSourceIPSessionPersistenceSupportedFixed.from_dict(load_balancer_profile_source_ip_session_persistence_supported_fixed_model_json).__dict__ - load_balancer_profile_source_ip_session_persistence_supported_fixed_model2 = LoadBalancerProfileSourceIPSessionPersistenceSupportedFixed(**load_balancer_profile_source_ip_session_persistence_supported_fixed_model_dict) + load_balancer_profile_source_ip_session_persistence_supported_fixed_model_dict = ( + LoadBalancerProfileSourceIPSessionPersistenceSupportedFixed.from_dict( + load_balancer_profile_source_ip_session_persistence_supported_fixed_model_json + ).__dict__ + ) + load_balancer_profile_source_ip_session_persistence_supported_fixed_model2 = ( + LoadBalancerProfileSourceIPSessionPersistenceSupportedFixed( + **load_balancer_profile_source_ip_session_persistence_supported_fixed_model_dict + ) + ) # Verify the model instances are equivalent - assert load_balancer_profile_source_ip_session_persistence_supported_fixed_model == load_balancer_profile_source_ip_session_persistence_supported_fixed_model2 + assert ( + load_balancer_profile_source_ip_session_persistence_supported_fixed_model + == load_balancer_profile_source_ip_session_persistence_supported_fixed_model2 + ) # Convert model instance back to dict and verify no loss of data - load_balancer_profile_source_ip_session_persistence_supported_fixed_model_json2 = load_balancer_profile_source_ip_session_persistence_supported_fixed_model.to_dict() - assert load_balancer_profile_source_ip_session_persistence_supported_fixed_model_json2 == load_balancer_profile_source_ip_session_persistence_supported_fixed_model_json + load_balancer_profile_source_ip_session_persistence_supported_fixed_model_json2 = ( + load_balancer_profile_source_ip_session_persistence_supported_fixed_model.to_dict() + ) + assert ( + load_balancer_profile_source_ip_session_persistence_supported_fixed_model_json2 + == load_balancer_profile_source_ip_session_persistence_supported_fixed_model_json + ) class TestModel_LoadBalancerProfileUDPSupportedDependent: @@ -87784,19 +96675,32 @@ def test_load_balancer_profile_udp_supported_dependent_serialization(self): load_balancer_profile_udp_supported_dependent_model_json['type'] = 'dependent' # Construct a model instance of LoadBalancerProfileUDPSupportedDependent by calling from_dict on the json representation - load_balancer_profile_udp_supported_dependent_model = LoadBalancerProfileUDPSupportedDependent.from_dict(load_balancer_profile_udp_supported_dependent_model_json) + load_balancer_profile_udp_supported_dependent_model = LoadBalancerProfileUDPSupportedDependent.from_dict( + load_balancer_profile_udp_supported_dependent_model_json + ) assert load_balancer_profile_udp_supported_dependent_model != False # Construct a model instance of LoadBalancerProfileUDPSupportedDependent by calling from_dict on the json representation - load_balancer_profile_udp_supported_dependent_model_dict = LoadBalancerProfileUDPSupportedDependent.from_dict(load_balancer_profile_udp_supported_dependent_model_json).__dict__ - load_balancer_profile_udp_supported_dependent_model2 = LoadBalancerProfileUDPSupportedDependent(**load_balancer_profile_udp_supported_dependent_model_dict) + load_balancer_profile_udp_supported_dependent_model_dict = LoadBalancerProfileUDPSupportedDependent.from_dict( + load_balancer_profile_udp_supported_dependent_model_json + ).__dict__ + load_balancer_profile_udp_supported_dependent_model2 = LoadBalancerProfileUDPSupportedDependent( + **load_balancer_profile_udp_supported_dependent_model_dict + ) # Verify the model instances are equivalent - assert load_balancer_profile_udp_supported_dependent_model == load_balancer_profile_udp_supported_dependent_model2 + assert ( + load_balancer_profile_udp_supported_dependent_model == load_balancer_profile_udp_supported_dependent_model2 + ) # Convert model instance back to dict and verify no loss of data - load_balancer_profile_udp_supported_dependent_model_json2 = load_balancer_profile_udp_supported_dependent_model.to_dict() - assert load_balancer_profile_udp_supported_dependent_model_json2 == load_balancer_profile_udp_supported_dependent_model_json + load_balancer_profile_udp_supported_dependent_model_json2 = ( + load_balancer_profile_udp_supported_dependent_model.to_dict() + ) + assert ( + load_balancer_profile_udp_supported_dependent_model_json2 + == load_balancer_profile_udp_supported_dependent_model_json + ) class TestModel_LoadBalancerProfileUDPSupportedFixed: @@ -87815,19 +96719,30 @@ def test_load_balancer_profile_udp_supported_fixed_serialization(self): load_balancer_profile_udp_supported_fixed_model_json['value'] = True # Construct a model instance of LoadBalancerProfileUDPSupportedFixed by calling from_dict on the json representation - load_balancer_profile_udp_supported_fixed_model = LoadBalancerProfileUDPSupportedFixed.from_dict(load_balancer_profile_udp_supported_fixed_model_json) + load_balancer_profile_udp_supported_fixed_model = LoadBalancerProfileUDPSupportedFixed.from_dict( + load_balancer_profile_udp_supported_fixed_model_json + ) assert load_balancer_profile_udp_supported_fixed_model != False # Construct a model instance of LoadBalancerProfileUDPSupportedFixed by calling from_dict on the json representation - load_balancer_profile_udp_supported_fixed_model_dict = LoadBalancerProfileUDPSupportedFixed.from_dict(load_balancer_profile_udp_supported_fixed_model_json).__dict__ - load_balancer_profile_udp_supported_fixed_model2 = LoadBalancerProfileUDPSupportedFixed(**load_balancer_profile_udp_supported_fixed_model_dict) + load_balancer_profile_udp_supported_fixed_model_dict = LoadBalancerProfileUDPSupportedFixed.from_dict( + load_balancer_profile_udp_supported_fixed_model_json + ).__dict__ + load_balancer_profile_udp_supported_fixed_model2 = LoadBalancerProfileUDPSupportedFixed( + **load_balancer_profile_udp_supported_fixed_model_dict + ) # Verify the model instances are equivalent assert load_balancer_profile_udp_supported_fixed_model == load_balancer_profile_udp_supported_fixed_model2 # Convert model instance back to dict and verify no loss of data - load_balancer_profile_udp_supported_fixed_model_json2 = load_balancer_profile_udp_supported_fixed_model.to_dict() - assert load_balancer_profile_udp_supported_fixed_model_json2 == load_balancer_profile_udp_supported_fixed_model_json + load_balancer_profile_udp_supported_fixed_model_json2 = ( + load_balancer_profile_udp_supported_fixed_model.to_dict() + ) + assert ( + load_balancer_profile_udp_supported_fixed_model_json2 + == load_balancer_profile_udp_supported_fixed_model_json + ) class TestModel_NetworkACLIdentityByCRN: @@ -87842,14 +96757,18 @@ def test_network_acl_identity_by_crn_serialization(self): # Construct a json representation of a NetworkACLIdentityByCRN model network_acl_identity_by_crn_model_json = {} - network_acl_identity_by_crn_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::network-acl:r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf' + network_acl_identity_by_crn_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::network-acl:r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf' + ) # Construct a model instance of NetworkACLIdentityByCRN by calling from_dict on the json representation network_acl_identity_by_crn_model = NetworkACLIdentityByCRN.from_dict(network_acl_identity_by_crn_model_json) assert network_acl_identity_by_crn_model != False # Construct a model instance of NetworkACLIdentityByCRN by calling from_dict on the json representation - network_acl_identity_by_crn_model_dict = NetworkACLIdentityByCRN.from_dict(network_acl_identity_by_crn_model_json).__dict__ + network_acl_identity_by_crn_model_dict = NetworkACLIdentityByCRN.from_dict( + network_acl_identity_by_crn_model_json + ).__dict__ network_acl_identity_by_crn_model2 = NetworkACLIdentityByCRN(**network_acl_identity_by_crn_model_dict) # Verify the model instances are equivalent @@ -87872,14 +96791,18 @@ def test_network_acl_identity_by_href_serialization(self): # Construct a json representation of a NetworkACLIdentityByHref model network_acl_identity_by_href_model_json = {} - network_acl_identity_by_href_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/network_acls/r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf' + network_acl_identity_by_href_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/network_acls/r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf' + ) # Construct a model instance of NetworkACLIdentityByHref by calling from_dict on the json representation network_acl_identity_by_href_model = NetworkACLIdentityByHref.from_dict(network_acl_identity_by_href_model_json) assert network_acl_identity_by_href_model != False # Construct a model instance of NetworkACLIdentityByHref by calling from_dict on the json representation - network_acl_identity_by_href_model_dict = NetworkACLIdentityByHref.from_dict(network_acl_identity_by_href_model_json).__dict__ + network_acl_identity_by_href_model_dict = NetworkACLIdentityByHref.from_dict( + network_acl_identity_by_href_model_json + ).__dict__ network_acl_identity_by_href_model2 = NetworkACLIdentityByHref(**network_acl_identity_by_href_model_dict) # Verify the model instances are equivalent @@ -87909,7 +96832,9 @@ def test_network_acl_identity_by_id_serialization(self): assert network_acl_identity_by_id_model != False # Construct a model instance of NetworkACLIdentityById by calling from_dict on the json representation - network_acl_identity_by_id_model_dict = NetworkACLIdentityById.from_dict(network_acl_identity_by_id_model_json).__dict__ + network_acl_identity_by_id_model_dict = NetworkACLIdentityById.from_dict( + network_acl_identity_by_id_model_json + ).__dict__ network_acl_identity_by_id_model2 = NetworkACLIdentityById(**network_acl_identity_by_id_model_dict) # Verify the model instances are equivalent @@ -87938,7 +96863,9 @@ def test_network_acl_prototype_network_acl_by_rules_serialization(self): vpc_identity_model = {} # VPCIdentityById vpc_identity_model['id'] = 'cf7cd5a-2f30-4336-a495-6addc820cd61' - network_acl_rule_prototype_network_acl_context_model = {} # NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolTCPUDPPrototype + network_acl_rule_prototype_network_acl_context_model = ( + {} + ) # NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolTCPUDPPrototype network_acl_rule_prototype_network_acl_context_model['action'] = 'allow' network_acl_rule_prototype_network_acl_context_model['destination'] = '192.168.3.2/32' network_acl_rule_prototype_network_acl_context_model['direction'] = 'inbound' @@ -87956,22 +96883,35 @@ def test_network_acl_prototype_network_acl_by_rules_serialization(self): network_acl_prototype_network_acl_by_rules_model_json['name'] = 'my-network-acl' network_acl_prototype_network_acl_by_rules_model_json['resource_group'] = resource_group_identity_model network_acl_prototype_network_acl_by_rules_model_json['vpc'] = vpc_identity_model - network_acl_prototype_network_acl_by_rules_model_json['rules'] = [network_acl_rule_prototype_network_acl_context_model] + network_acl_prototype_network_acl_by_rules_model_json['rules'] = [ + network_acl_rule_prototype_network_acl_context_model + ] # Construct a model instance of NetworkACLPrototypeNetworkACLByRules by calling from_dict on the json representation - network_acl_prototype_network_acl_by_rules_model = NetworkACLPrototypeNetworkACLByRules.from_dict(network_acl_prototype_network_acl_by_rules_model_json) + network_acl_prototype_network_acl_by_rules_model = NetworkACLPrototypeNetworkACLByRules.from_dict( + network_acl_prototype_network_acl_by_rules_model_json + ) assert network_acl_prototype_network_acl_by_rules_model != False # Construct a model instance of NetworkACLPrototypeNetworkACLByRules by calling from_dict on the json representation - network_acl_prototype_network_acl_by_rules_model_dict = NetworkACLPrototypeNetworkACLByRules.from_dict(network_acl_prototype_network_acl_by_rules_model_json).__dict__ - network_acl_prototype_network_acl_by_rules_model2 = NetworkACLPrototypeNetworkACLByRules(**network_acl_prototype_network_acl_by_rules_model_dict) + network_acl_prototype_network_acl_by_rules_model_dict = NetworkACLPrototypeNetworkACLByRules.from_dict( + network_acl_prototype_network_acl_by_rules_model_json + ).__dict__ + network_acl_prototype_network_acl_by_rules_model2 = NetworkACLPrototypeNetworkACLByRules( + **network_acl_prototype_network_acl_by_rules_model_dict + ) # Verify the model instances are equivalent assert network_acl_prototype_network_acl_by_rules_model == network_acl_prototype_network_acl_by_rules_model2 # Convert model instance back to dict and verify no loss of data - network_acl_prototype_network_acl_by_rules_model_json2 = network_acl_prototype_network_acl_by_rules_model.to_dict() - assert network_acl_prototype_network_acl_by_rules_model_json2 == network_acl_prototype_network_acl_by_rules_model_json + network_acl_prototype_network_acl_by_rules_model_json2 = ( + network_acl_prototype_network_acl_by_rules_model.to_dict() + ) + assert ( + network_acl_prototype_network_acl_by_rules_model_json2 + == network_acl_prototype_network_acl_by_rules_model_json + ) class TestModel_NetworkACLPrototypeNetworkACLBySourceNetworkACL: @@ -87998,24 +96938,48 @@ def test_network_acl_prototype_network_acl_by_source_network_acl_serialization(s # Construct a json representation of a NetworkACLPrototypeNetworkACLBySourceNetworkACL model network_acl_prototype_network_acl_by_source_network_acl_model_json = {} network_acl_prototype_network_acl_by_source_network_acl_model_json['name'] = 'my-network-acl' - network_acl_prototype_network_acl_by_source_network_acl_model_json['resource_group'] = resource_group_identity_model + network_acl_prototype_network_acl_by_source_network_acl_model_json['resource_group'] = ( + resource_group_identity_model + ) network_acl_prototype_network_acl_by_source_network_acl_model_json['vpc'] = vpc_identity_model - network_acl_prototype_network_acl_by_source_network_acl_model_json['source_network_acl'] = network_acl_identity_model + network_acl_prototype_network_acl_by_source_network_acl_model_json['source_network_acl'] = ( + network_acl_identity_model + ) # Construct a model instance of NetworkACLPrototypeNetworkACLBySourceNetworkACL by calling from_dict on the json representation - network_acl_prototype_network_acl_by_source_network_acl_model = NetworkACLPrototypeNetworkACLBySourceNetworkACL.from_dict(network_acl_prototype_network_acl_by_source_network_acl_model_json) + network_acl_prototype_network_acl_by_source_network_acl_model = ( + NetworkACLPrototypeNetworkACLBySourceNetworkACL.from_dict( + network_acl_prototype_network_acl_by_source_network_acl_model_json + ) + ) assert network_acl_prototype_network_acl_by_source_network_acl_model != False # Construct a model instance of NetworkACLPrototypeNetworkACLBySourceNetworkACL by calling from_dict on the json representation - network_acl_prototype_network_acl_by_source_network_acl_model_dict = NetworkACLPrototypeNetworkACLBySourceNetworkACL.from_dict(network_acl_prototype_network_acl_by_source_network_acl_model_json).__dict__ - network_acl_prototype_network_acl_by_source_network_acl_model2 = NetworkACLPrototypeNetworkACLBySourceNetworkACL(**network_acl_prototype_network_acl_by_source_network_acl_model_dict) + network_acl_prototype_network_acl_by_source_network_acl_model_dict = ( + NetworkACLPrototypeNetworkACLBySourceNetworkACL.from_dict( + network_acl_prototype_network_acl_by_source_network_acl_model_json + ).__dict__ + ) + network_acl_prototype_network_acl_by_source_network_acl_model2 = ( + NetworkACLPrototypeNetworkACLBySourceNetworkACL( + **network_acl_prototype_network_acl_by_source_network_acl_model_dict + ) + ) # Verify the model instances are equivalent - assert network_acl_prototype_network_acl_by_source_network_acl_model == network_acl_prototype_network_acl_by_source_network_acl_model2 + assert ( + network_acl_prototype_network_acl_by_source_network_acl_model + == network_acl_prototype_network_acl_by_source_network_acl_model2 + ) # Convert model instance back to dict and verify no loss of data - network_acl_prototype_network_acl_by_source_network_acl_model_json2 = network_acl_prototype_network_acl_by_source_network_acl_model.to_dict() - assert network_acl_prototype_network_acl_by_source_network_acl_model_json2 == network_acl_prototype_network_acl_by_source_network_acl_model_json + network_acl_prototype_network_acl_by_source_network_acl_model_json2 = ( + network_acl_prototype_network_acl_by_source_network_acl_model.to_dict() + ) + assert ( + network_acl_prototype_network_acl_by_source_network_acl_model_json2 + == network_acl_prototype_network_acl_by_source_network_acl_model_json + ) class TestModel_NetworkACLRuleBeforePatchNetworkACLRuleIdentityByHref: @@ -88030,22 +96994,44 @@ def test_network_acl_rule_before_patch_network_acl_rule_identity_by_href_seriali # Construct a json representation of a NetworkACLRuleBeforePatchNetworkACLRuleIdentityByHref model network_acl_rule_before_patch_network_acl_rule_identity_by_href_model_json = {} - network_acl_rule_before_patch_network_acl_rule_identity_by_href_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/network_acls/a4e28308-8ee7-46ab-8108-9f881f22bdbf/rules/8daca77a-4980-4d33-8f3e-7038797be8f9' + network_acl_rule_before_patch_network_acl_rule_identity_by_href_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/network_acls/a4e28308-8ee7-46ab-8108-9f881f22bdbf/rules/8daca77a-4980-4d33-8f3e-7038797be8f9' + ) # Construct a model instance of NetworkACLRuleBeforePatchNetworkACLRuleIdentityByHref by calling from_dict on the json representation - network_acl_rule_before_patch_network_acl_rule_identity_by_href_model = NetworkACLRuleBeforePatchNetworkACLRuleIdentityByHref.from_dict(network_acl_rule_before_patch_network_acl_rule_identity_by_href_model_json) + network_acl_rule_before_patch_network_acl_rule_identity_by_href_model = ( + NetworkACLRuleBeforePatchNetworkACLRuleIdentityByHref.from_dict( + network_acl_rule_before_patch_network_acl_rule_identity_by_href_model_json + ) + ) assert network_acl_rule_before_patch_network_acl_rule_identity_by_href_model != False # Construct a model instance of NetworkACLRuleBeforePatchNetworkACLRuleIdentityByHref by calling from_dict on the json representation - network_acl_rule_before_patch_network_acl_rule_identity_by_href_model_dict = NetworkACLRuleBeforePatchNetworkACLRuleIdentityByHref.from_dict(network_acl_rule_before_patch_network_acl_rule_identity_by_href_model_json).__dict__ - network_acl_rule_before_patch_network_acl_rule_identity_by_href_model2 = NetworkACLRuleBeforePatchNetworkACLRuleIdentityByHref(**network_acl_rule_before_patch_network_acl_rule_identity_by_href_model_dict) + network_acl_rule_before_patch_network_acl_rule_identity_by_href_model_dict = ( + NetworkACLRuleBeforePatchNetworkACLRuleIdentityByHref.from_dict( + network_acl_rule_before_patch_network_acl_rule_identity_by_href_model_json + ).__dict__ + ) + network_acl_rule_before_patch_network_acl_rule_identity_by_href_model2 = ( + NetworkACLRuleBeforePatchNetworkACLRuleIdentityByHref( + **network_acl_rule_before_patch_network_acl_rule_identity_by_href_model_dict + ) + ) # Verify the model instances are equivalent - assert network_acl_rule_before_patch_network_acl_rule_identity_by_href_model == network_acl_rule_before_patch_network_acl_rule_identity_by_href_model2 + assert ( + network_acl_rule_before_patch_network_acl_rule_identity_by_href_model + == network_acl_rule_before_patch_network_acl_rule_identity_by_href_model2 + ) # Convert model instance back to dict and verify no loss of data - network_acl_rule_before_patch_network_acl_rule_identity_by_href_model_json2 = network_acl_rule_before_patch_network_acl_rule_identity_by_href_model.to_dict() - assert network_acl_rule_before_patch_network_acl_rule_identity_by_href_model_json2 == network_acl_rule_before_patch_network_acl_rule_identity_by_href_model_json + network_acl_rule_before_patch_network_acl_rule_identity_by_href_model_json2 = ( + network_acl_rule_before_patch_network_acl_rule_identity_by_href_model.to_dict() + ) + assert ( + network_acl_rule_before_patch_network_acl_rule_identity_by_href_model_json2 + == network_acl_rule_before_patch_network_acl_rule_identity_by_href_model_json + ) class TestModel_NetworkACLRuleBeforePatchNetworkACLRuleIdentityById: @@ -88060,22 +97046,44 @@ def test_network_acl_rule_before_patch_network_acl_rule_identity_by_id_serializa # Construct a json representation of a NetworkACLRuleBeforePatchNetworkACLRuleIdentityById model network_acl_rule_before_patch_network_acl_rule_identity_by_id_model_json = {} - network_acl_rule_before_patch_network_acl_rule_identity_by_id_model_json['id'] = '8daca77a-4980-4d33-8f3e-7038797be8f9' + network_acl_rule_before_patch_network_acl_rule_identity_by_id_model_json['id'] = ( + '8daca77a-4980-4d33-8f3e-7038797be8f9' + ) # Construct a model instance of NetworkACLRuleBeforePatchNetworkACLRuleIdentityById by calling from_dict on the json representation - network_acl_rule_before_patch_network_acl_rule_identity_by_id_model = NetworkACLRuleBeforePatchNetworkACLRuleIdentityById.from_dict(network_acl_rule_before_patch_network_acl_rule_identity_by_id_model_json) + network_acl_rule_before_patch_network_acl_rule_identity_by_id_model = ( + NetworkACLRuleBeforePatchNetworkACLRuleIdentityById.from_dict( + network_acl_rule_before_patch_network_acl_rule_identity_by_id_model_json + ) + ) assert network_acl_rule_before_patch_network_acl_rule_identity_by_id_model != False # Construct a model instance of NetworkACLRuleBeforePatchNetworkACLRuleIdentityById by calling from_dict on the json representation - network_acl_rule_before_patch_network_acl_rule_identity_by_id_model_dict = NetworkACLRuleBeforePatchNetworkACLRuleIdentityById.from_dict(network_acl_rule_before_patch_network_acl_rule_identity_by_id_model_json).__dict__ - network_acl_rule_before_patch_network_acl_rule_identity_by_id_model2 = NetworkACLRuleBeforePatchNetworkACLRuleIdentityById(**network_acl_rule_before_patch_network_acl_rule_identity_by_id_model_dict) + network_acl_rule_before_patch_network_acl_rule_identity_by_id_model_dict = ( + NetworkACLRuleBeforePatchNetworkACLRuleIdentityById.from_dict( + network_acl_rule_before_patch_network_acl_rule_identity_by_id_model_json + ).__dict__ + ) + network_acl_rule_before_patch_network_acl_rule_identity_by_id_model2 = ( + NetworkACLRuleBeforePatchNetworkACLRuleIdentityById( + **network_acl_rule_before_patch_network_acl_rule_identity_by_id_model_dict + ) + ) # Verify the model instances are equivalent - assert network_acl_rule_before_patch_network_acl_rule_identity_by_id_model == network_acl_rule_before_patch_network_acl_rule_identity_by_id_model2 + assert ( + network_acl_rule_before_patch_network_acl_rule_identity_by_id_model + == network_acl_rule_before_patch_network_acl_rule_identity_by_id_model2 + ) # Convert model instance back to dict and verify no loss of data - network_acl_rule_before_patch_network_acl_rule_identity_by_id_model_json2 = network_acl_rule_before_patch_network_acl_rule_identity_by_id_model.to_dict() - assert network_acl_rule_before_patch_network_acl_rule_identity_by_id_model_json2 == network_acl_rule_before_patch_network_acl_rule_identity_by_id_model_json + network_acl_rule_before_patch_network_acl_rule_identity_by_id_model_json2 = ( + network_acl_rule_before_patch_network_acl_rule_identity_by_id_model.to_dict() + ) + assert ( + network_acl_rule_before_patch_network_acl_rule_identity_by_id_model_json2 + == network_acl_rule_before_patch_network_acl_rule_identity_by_id_model_json + ) class TestModel_NetworkACLRuleBeforePrototypeNetworkACLRuleIdentityByHref: @@ -88090,22 +97098,44 @@ def test_network_acl_rule_before_prototype_network_acl_rule_identity_by_href_ser # Construct a json representation of a NetworkACLRuleBeforePrototypeNetworkACLRuleIdentityByHref model network_acl_rule_before_prototype_network_acl_rule_identity_by_href_model_json = {} - network_acl_rule_before_prototype_network_acl_rule_identity_by_href_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/network_acls/a4e28308-8ee7-46ab-8108-9f881f22bdbf/rules/8daca77a-4980-4d33-8f3e-7038797be8f9' + network_acl_rule_before_prototype_network_acl_rule_identity_by_href_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/network_acls/a4e28308-8ee7-46ab-8108-9f881f22bdbf/rules/8daca77a-4980-4d33-8f3e-7038797be8f9' + ) # Construct a model instance of NetworkACLRuleBeforePrototypeNetworkACLRuleIdentityByHref by calling from_dict on the json representation - network_acl_rule_before_prototype_network_acl_rule_identity_by_href_model = NetworkACLRuleBeforePrototypeNetworkACLRuleIdentityByHref.from_dict(network_acl_rule_before_prototype_network_acl_rule_identity_by_href_model_json) + network_acl_rule_before_prototype_network_acl_rule_identity_by_href_model = ( + NetworkACLRuleBeforePrototypeNetworkACLRuleIdentityByHref.from_dict( + network_acl_rule_before_prototype_network_acl_rule_identity_by_href_model_json + ) + ) assert network_acl_rule_before_prototype_network_acl_rule_identity_by_href_model != False # Construct a model instance of NetworkACLRuleBeforePrototypeNetworkACLRuleIdentityByHref by calling from_dict on the json representation - network_acl_rule_before_prototype_network_acl_rule_identity_by_href_model_dict = NetworkACLRuleBeforePrototypeNetworkACLRuleIdentityByHref.from_dict(network_acl_rule_before_prototype_network_acl_rule_identity_by_href_model_json).__dict__ - network_acl_rule_before_prototype_network_acl_rule_identity_by_href_model2 = NetworkACLRuleBeforePrototypeNetworkACLRuleIdentityByHref(**network_acl_rule_before_prototype_network_acl_rule_identity_by_href_model_dict) + network_acl_rule_before_prototype_network_acl_rule_identity_by_href_model_dict = ( + NetworkACLRuleBeforePrototypeNetworkACLRuleIdentityByHref.from_dict( + network_acl_rule_before_prototype_network_acl_rule_identity_by_href_model_json + ).__dict__ + ) + network_acl_rule_before_prototype_network_acl_rule_identity_by_href_model2 = ( + NetworkACLRuleBeforePrototypeNetworkACLRuleIdentityByHref( + **network_acl_rule_before_prototype_network_acl_rule_identity_by_href_model_dict + ) + ) # Verify the model instances are equivalent - assert network_acl_rule_before_prototype_network_acl_rule_identity_by_href_model == network_acl_rule_before_prototype_network_acl_rule_identity_by_href_model2 + assert ( + network_acl_rule_before_prototype_network_acl_rule_identity_by_href_model + == network_acl_rule_before_prototype_network_acl_rule_identity_by_href_model2 + ) # Convert model instance back to dict and verify no loss of data - network_acl_rule_before_prototype_network_acl_rule_identity_by_href_model_json2 = network_acl_rule_before_prototype_network_acl_rule_identity_by_href_model.to_dict() - assert network_acl_rule_before_prototype_network_acl_rule_identity_by_href_model_json2 == network_acl_rule_before_prototype_network_acl_rule_identity_by_href_model_json + network_acl_rule_before_prototype_network_acl_rule_identity_by_href_model_json2 = ( + network_acl_rule_before_prototype_network_acl_rule_identity_by_href_model.to_dict() + ) + assert ( + network_acl_rule_before_prototype_network_acl_rule_identity_by_href_model_json2 + == network_acl_rule_before_prototype_network_acl_rule_identity_by_href_model_json + ) class TestModel_NetworkACLRuleBeforePrototypeNetworkACLRuleIdentityById: @@ -88120,22 +97150,44 @@ def test_network_acl_rule_before_prototype_network_acl_rule_identity_by_id_seria # Construct a json representation of a NetworkACLRuleBeforePrototypeNetworkACLRuleIdentityById model network_acl_rule_before_prototype_network_acl_rule_identity_by_id_model_json = {} - network_acl_rule_before_prototype_network_acl_rule_identity_by_id_model_json['id'] = '8daca77a-4980-4d33-8f3e-7038797be8f9' + network_acl_rule_before_prototype_network_acl_rule_identity_by_id_model_json['id'] = ( + '8daca77a-4980-4d33-8f3e-7038797be8f9' + ) # Construct a model instance of NetworkACLRuleBeforePrototypeNetworkACLRuleIdentityById by calling from_dict on the json representation - network_acl_rule_before_prototype_network_acl_rule_identity_by_id_model = NetworkACLRuleBeforePrototypeNetworkACLRuleIdentityById.from_dict(network_acl_rule_before_prototype_network_acl_rule_identity_by_id_model_json) + network_acl_rule_before_prototype_network_acl_rule_identity_by_id_model = ( + NetworkACLRuleBeforePrototypeNetworkACLRuleIdentityById.from_dict( + network_acl_rule_before_prototype_network_acl_rule_identity_by_id_model_json + ) + ) assert network_acl_rule_before_prototype_network_acl_rule_identity_by_id_model != False # Construct a model instance of NetworkACLRuleBeforePrototypeNetworkACLRuleIdentityById by calling from_dict on the json representation - network_acl_rule_before_prototype_network_acl_rule_identity_by_id_model_dict = NetworkACLRuleBeforePrototypeNetworkACLRuleIdentityById.from_dict(network_acl_rule_before_prototype_network_acl_rule_identity_by_id_model_json).__dict__ - network_acl_rule_before_prototype_network_acl_rule_identity_by_id_model2 = NetworkACLRuleBeforePrototypeNetworkACLRuleIdentityById(**network_acl_rule_before_prototype_network_acl_rule_identity_by_id_model_dict) + network_acl_rule_before_prototype_network_acl_rule_identity_by_id_model_dict = ( + NetworkACLRuleBeforePrototypeNetworkACLRuleIdentityById.from_dict( + network_acl_rule_before_prototype_network_acl_rule_identity_by_id_model_json + ).__dict__ + ) + network_acl_rule_before_prototype_network_acl_rule_identity_by_id_model2 = ( + NetworkACLRuleBeforePrototypeNetworkACLRuleIdentityById( + **network_acl_rule_before_prototype_network_acl_rule_identity_by_id_model_dict + ) + ) # Verify the model instances are equivalent - assert network_acl_rule_before_prototype_network_acl_rule_identity_by_id_model == network_acl_rule_before_prototype_network_acl_rule_identity_by_id_model2 + assert ( + network_acl_rule_before_prototype_network_acl_rule_identity_by_id_model + == network_acl_rule_before_prototype_network_acl_rule_identity_by_id_model2 + ) # Convert model instance back to dict and verify no loss of data - network_acl_rule_before_prototype_network_acl_rule_identity_by_id_model_json2 = network_acl_rule_before_prototype_network_acl_rule_identity_by_id_model.to_dict() - assert network_acl_rule_before_prototype_network_acl_rule_identity_by_id_model_json2 == network_acl_rule_before_prototype_network_acl_rule_identity_by_id_model_json + network_acl_rule_before_prototype_network_acl_rule_identity_by_id_model_json2 = ( + network_acl_rule_before_prototype_network_acl_rule_identity_by_id_model.to_dict() + ) + assert ( + network_acl_rule_before_prototype_network_acl_rule_identity_by_id_model_json2 + == network_acl_rule_before_prototype_network_acl_rule_identity_by_id_model_json + ) class TestModel_NetworkACLRuleItemNetworkACLRuleProtocolAll: @@ -88155,7 +97207,9 @@ def test_network_acl_rule_item_network_acl_rule_protocol_all_serialization(self) network_acl_rule_reference_model = {} # NetworkACLRuleReference network_acl_rule_reference_model['deleted'] = deleted_model - network_acl_rule_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/network_acls/a4e28308-8ee7-46ab-8108-9f881f22bdbf/rules/8daca77a-4980-4d33-8f3e-7038797be8f9' + network_acl_rule_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/network_acls/a4e28308-8ee7-46ab-8108-9f881f22bdbf/rules/8daca77a-4980-4d33-8f3e-7038797be8f9' + ) network_acl_rule_reference_model['id'] = '8daca77a-4980-4d33-8f3e-7038797be8f9' network_acl_rule_reference_model['name'] = 'my-rule-1' @@ -88166,7 +97220,9 @@ def test_network_acl_rule_item_network_acl_rule_protocol_all_serialization(self) network_acl_rule_item_network_acl_rule_protocol_all_model_json['created_at'] = '2019-01-01T12:00:00Z' network_acl_rule_item_network_acl_rule_protocol_all_model_json['destination'] = '192.168.3.0/24' network_acl_rule_item_network_acl_rule_protocol_all_model_json['direction'] = 'inbound' - network_acl_rule_item_network_acl_rule_protocol_all_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/network_acls/a4e28308-8ee7-46ab-8108-9f881f22bdbf/rules/8daca77a-4980-4d33-8f3e-7038797be8f9' + network_acl_rule_item_network_acl_rule_protocol_all_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/network_acls/a4e28308-8ee7-46ab-8108-9f881f22bdbf/rules/8daca77a-4980-4d33-8f3e-7038797be8f9' + ) network_acl_rule_item_network_acl_rule_protocol_all_model_json['id'] = '8daca77a-4980-4d33-8f3e-7038797be8f9' network_acl_rule_item_network_acl_rule_protocol_all_model_json['ip_version'] = 'ipv4' network_acl_rule_item_network_acl_rule_protocol_all_model_json['name'] = 'my-rule-1' @@ -88174,19 +97230,37 @@ def test_network_acl_rule_item_network_acl_rule_protocol_all_serialization(self) network_acl_rule_item_network_acl_rule_protocol_all_model_json['protocol'] = 'all' # Construct a model instance of NetworkACLRuleItemNetworkACLRuleProtocolAll by calling from_dict on the json representation - network_acl_rule_item_network_acl_rule_protocol_all_model = NetworkACLRuleItemNetworkACLRuleProtocolAll.from_dict(network_acl_rule_item_network_acl_rule_protocol_all_model_json) + network_acl_rule_item_network_acl_rule_protocol_all_model = ( + NetworkACLRuleItemNetworkACLRuleProtocolAll.from_dict( + network_acl_rule_item_network_acl_rule_protocol_all_model_json + ) + ) assert network_acl_rule_item_network_acl_rule_protocol_all_model != False # Construct a model instance of NetworkACLRuleItemNetworkACLRuleProtocolAll by calling from_dict on the json representation - network_acl_rule_item_network_acl_rule_protocol_all_model_dict = NetworkACLRuleItemNetworkACLRuleProtocolAll.from_dict(network_acl_rule_item_network_acl_rule_protocol_all_model_json).__dict__ - network_acl_rule_item_network_acl_rule_protocol_all_model2 = NetworkACLRuleItemNetworkACLRuleProtocolAll(**network_acl_rule_item_network_acl_rule_protocol_all_model_dict) + network_acl_rule_item_network_acl_rule_protocol_all_model_dict = ( + NetworkACLRuleItemNetworkACLRuleProtocolAll.from_dict( + network_acl_rule_item_network_acl_rule_protocol_all_model_json + ).__dict__ + ) + network_acl_rule_item_network_acl_rule_protocol_all_model2 = NetworkACLRuleItemNetworkACLRuleProtocolAll( + **network_acl_rule_item_network_acl_rule_protocol_all_model_dict + ) # Verify the model instances are equivalent - assert network_acl_rule_item_network_acl_rule_protocol_all_model == network_acl_rule_item_network_acl_rule_protocol_all_model2 + assert ( + network_acl_rule_item_network_acl_rule_protocol_all_model + == network_acl_rule_item_network_acl_rule_protocol_all_model2 + ) # Convert model instance back to dict and verify no loss of data - network_acl_rule_item_network_acl_rule_protocol_all_model_json2 = network_acl_rule_item_network_acl_rule_protocol_all_model.to_dict() - assert network_acl_rule_item_network_acl_rule_protocol_all_model_json2 == network_acl_rule_item_network_acl_rule_protocol_all_model_json + network_acl_rule_item_network_acl_rule_protocol_all_model_json2 = ( + network_acl_rule_item_network_acl_rule_protocol_all_model.to_dict() + ) + assert ( + network_acl_rule_item_network_acl_rule_protocol_all_model_json2 + == network_acl_rule_item_network_acl_rule_protocol_all_model_json + ) class TestModel_NetworkACLRuleItemNetworkACLRuleProtocolICMP: @@ -88206,7 +97280,9 @@ def test_network_acl_rule_item_network_acl_rule_protocol_icmp_serialization(self network_acl_rule_reference_model = {} # NetworkACLRuleReference network_acl_rule_reference_model['deleted'] = deleted_model - network_acl_rule_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/network_acls/a4e28308-8ee7-46ab-8108-9f881f22bdbf/rules/8daca77a-4980-4d33-8f3e-7038797be8f9' + network_acl_rule_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/network_acls/a4e28308-8ee7-46ab-8108-9f881f22bdbf/rules/8daca77a-4980-4d33-8f3e-7038797be8f9' + ) network_acl_rule_reference_model['id'] = '8daca77a-4980-4d33-8f3e-7038797be8f9' network_acl_rule_reference_model['name'] = 'my-rule-1' @@ -88217,7 +97293,9 @@ def test_network_acl_rule_item_network_acl_rule_protocol_icmp_serialization(self network_acl_rule_item_network_acl_rule_protocol_icmp_model_json['created_at'] = '2019-01-01T12:00:00Z' network_acl_rule_item_network_acl_rule_protocol_icmp_model_json['destination'] = '192.168.3.0/24' network_acl_rule_item_network_acl_rule_protocol_icmp_model_json['direction'] = 'inbound' - network_acl_rule_item_network_acl_rule_protocol_icmp_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/network_acls/a4e28308-8ee7-46ab-8108-9f881f22bdbf/rules/8daca77a-4980-4d33-8f3e-7038797be8f9' + network_acl_rule_item_network_acl_rule_protocol_icmp_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/network_acls/a4e28308-8ee7-46ab-8108-9f881f22bdbf/rules/8daca77a-4980-4d33-8f3e-7038797be8f9' + ) network_acl_rule_item_network_acl_rule_protocol_icmp_model_json['id'] = '8daca77a-4980-4d33-8f3e-7038797be8f9' network_acl_rule_item_network_acl_rule_protocol_icmp_model_json['ip_version'] = 'ipv4' network_acl_rule_item_network_acl_rule_protocol_icmp_model_json['name'] = 'my-rule-1' @@ -88227,19 +97305,37 @@ def test_network_acl_rule_item_network_acl_rule_protocol_icmp_serialization(self network_acl_rule_item_network_acl_rule_protocol_icmp_model_json['type'] = 8 # Construct a model instance of NetworkACLRuleItemNetworkACLRuleProtocolICMP by calling from_dict on the json representation - network_acl_rule_item_network_acl_rule_protocol_icmp_model = NetworkACLRuleItemNetworkACLRuleProtocolICMP.from_dict(network_acl_rule_item_network_acl_rule_protocol_icmp_model_json) + network_acl_rule_item_network_acl_rule_protocol_icmp_model = ( + NetworkACLRuleItemNetworkACLRuleProtocolICMP.from_dict( + network_acl_rule_item_network_acl_rule_protocol_icmp_model_json + ) + ) assert network_acl_rule_item_network_acl_rule_protocol_icmp_model != False # Construct a model instance of NetworkACLRuleItemNetworkACLRuleProtocolICMP by calling from_dict on the json representation - network_acl_rule_item_network_acl_rule_protocol_icmp_model_dict = NetworkACLRuleItemNetworkACLRuleProtocolICMP.from_dict(network_acl_rule_item_network_acl_rule_protocol_icmp_model_json).__dict__ - network_acl_rule_item_network_acl_rule_protocol_icmp_model2 = NetworkACLRuleItemNetworkACLRuleProtocolICMP(**network_acl_rule_item_network_acl_rule_protocol_icmp_model_dict) + network_acl_rule_item_network_acl_rule_protocol_icmp_model_dict = ( + NetworkACLRuleItemNetworkACLRuleProtocolICMP.from_dict( + network_acl_rule_item_network_acl_rule_protocol_icmp_model_json + ).__dict__ + ) + network_acl_rule_item_network_acl_rule_protocol_icmp_model2 = NetworkACLRuleItemNetworkACLRuleProtocolICMP( + **network_acl_rule_item_network_acl_rule_protocol_icmp_model_dict + ) # Verify the model instances are equivalent - assert network_acl_rule_item_network_acl_rule_protocol_icmp_model == network_acl_rule_item_network_acl_rule_protocol_icmp_model2 + assert ( + network_acl_rule_item_network_acl_rule_protocol_icmp_model + == network_acl_rule_item_network_acl_rule_protocol_icmp_model2 + ) # Convert model instance back to dict and verify no loss of data - network_acl_rule_item_network_acl_rule_protocol_icmp_model_json2 = network_acl_rule_item_network_acl_rule_protocol_icmp_model.to_dict() - assert network_acl_rule_item_network_acl_rule_protocol_icmp_model_json2 == network_acl_rule_item_network_acl_rule_protocol_icmp_model_json + network_acl_rule_item_network_acl_rule_protocol_icmp_model_json2 = ( + network_acl_rule_item_network_acl_rule_protocol_icmp_model.to_dict() + ) + assert ( + network_acl_rule_item_network_acl_rule_protocol_icmp_model_json2 + == network_acl_rule_item_network_acl_rule_protocol_icmp_model_json + ) class TestModel_NetworkACLRuleItemNetworkACLRuleProtocolTCPUDP: @@ -88259,7 +97355,9 @@ def test_network_acl_rule_item_network_acl_rule_protocol_tcpudp_serialization(se network_acl_rule_reference_model = {} # NetworkACLRuleReference network_acl_rule_reference_model['deleted'] = deleted_model - network_acl_rule_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/network_acls/a4e28308-8ee7-46ab-8108-9f881f22bdbf/rules/8daca77a-4980-4d33-8f3e-7038797be8f9' + network_acl_rule_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/network_acls/a4e28308-8ee7-46ab-8108-9f881f22bdbf/rules/8daca77a-4980-4d33-8f3e-7038797be8f9' + ) network_acl_rule_reference_model['id'] = '8daca77a-4980-4d33-8f3e-7038797be8f9' network_acl_rule_reference_model['name'] = 'my-rule-1' @@ -88270,7 +97368,9 @@ def test_network_acl_rule_item_network_acl_rule_protocol_tcpudp_serialization(se network_acl_rule_item_network_acl_rule_protocol_tcpudp_model_json['created_at'] = '2019-01-01T12:00:00Z' network_acl_rule_item_network_acl_rule_protocol_tcpudp_model_json['destination'] = '192.168.3.0/24' network_acl_rule_item_network_acl_rule_protocol_tcpudp_model_json['direction'] = 'inbound' - network_acl_rule_item_network_acl_rule_protocol_tcpudp_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/network_acls/a4e28308-8ee7-46ab-8108-9f881f22bdbf/rules/8daca77a-4980-4d33-8f3e-7038797be8f9' + network_acl_rule_item_network_acl_rule_protocol_tcpudp_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/network_acls/a4e28308-8ee7-46ab-8108-9f881f22bdbf/rules/8daca77a-4980-4d33-8f3e-7038797be8f9' + ) network_acl_rule_item_network_acl_rule_protocol_tcpudp_model_json['id'] = '8daca77a-4980-4d33-8f3e-7038797be8f9' network_acl_rule_item_network_acl_rule_protocol_tcpudp_model_json['ip_version'] = 'ipv4' network_acl_rule_item_network_acl_rule_protocol_tcpudp_model_json['name'] = 'my-rule-1' @@ -88282,19 +97382,37 @@ def test_network_acl_rule_item_network_acl_rule_protocol_tcpudp_serialization(se network_acl_rule_item_network_acl_rule_protocol_tcpudp_model_json['source_port_min'] = 49152 # Construct a model instance of NetworkACLRuleItemNetworkACLRuleProtocolTCPUDP by calling from_dict on the json representation - network_acl_rule_item_network_acl_rule_protocol_tcpudp_model = NetworkACLRuleItemNetworkACLRuleProtocolTCPUDP.from_dict(network_acl_rule_item_network_acl_rule_protocol_tcpudp_model_json) + network_acl_rule_item_network_acl_rule_protocol_tcpudp_model = ( + NetworkACLRuleItemNetworkACLRuleProtocolTCPUDP.from_dict( + network_acl_rule_item_network_acl_rule_protocol_tcpudp_model_json + ) + ) assert network_acl_rule_item_network_acl_rule_protocol_tcpudp_model != False # Construct a model instance of NetworkACLRuleItemNetworkACLRuleProtocolTCPUDP by calling from_dict on the json representation - network_acl_rule_item_network_acl_rule_protocol_tcpudp_model_dict = NetworkACLRuleItemNetworkACLRuleProtocolTCPUDP.from_dict(network_acl_rule_item_network_acl_rule_protocol_tcpudp_model_json).__dict__ - network_acl_rule_item_network_acl_rule_protocol_tcpudp_model2 = NetworkACLRuleItemNetworkACLRuleProtocolTCPUDP(**network_acl_rule_item_network_acl_rule_protocol_tcpudp_model_dict) + network_acl_rule_item_network_acl_rule_protocol_tcpudp_model_dict = ( + NetworkACLRuleItemNetworkACLRuleProtocolTCPUDP.from_dict( + network_acl_rule_item_network_acl_rule_protocol_tcpudp_model_json + ).__dict__ + ) + network_acl_rule_item_network_acl_rule_protocol_tcpudp_model2 = NetworkACLRuleItemNetworkACLRuleProtocolTCPUDP( + **network_acl_rule_item_network_acl_rule_protocol_tcpudp_model_dict + ) # Verify the model instances are equivalent - assert network_acl_rule_item_network_acl_rule_protocol_tcpudp_model == network_acl_rule_item_network_acl_rule_protocol_tcpudp_model2 + assert ( + network_acl_rule_item_network_acl_rule_protocol_tcpudp_model + == network_acl_rule_item_network_acl_rule_protocol_tcpudp_model2 + ) # Convert model instance back to dict and verify no loss of data - network_acl_rule_item_network_acl_rule_protocol_tcpudp_model_json2 = network_acl_rule_item_network_acl_rule_protocol_tcpudp_model.to_dict() - assert network_acl_rule_item_network_acl_rule_protocol_tcpudp_model_json2 == network_acl_rule_item_network_acl_rule_protocol_tcpudp_model_json + network_acl_rule_item_network_acl_rule_protocol_tcpudp_model_json2 = ( + network_acl_rule_item_network_acl_rule_protocol_tcpudp_model.to_dict() + ) + assert ( + network_acl_rule_item_network_acl_rule_protocol_tcpudp_model_json2 + == network_acl_rule_item_network_acl_rule_protocol_tcpudp_model_json + ) class TestModel_NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolAllPrototype: @@ -88309,28 +97427,62 @@ def test_network_acl_rule_prototype_network_acl_context_network_acl_rule_protoco # Construct a json representation of a NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolAllPrototype model network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_all_prototype_model_json = {} - network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_all_prototype_model_json['action'] = 'allow' - network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_all_prototype_model_json['destination'] = '192.168.3.2/32' - network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_all_prototype_model_json['direction'] = 'inbound' - network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_all_prototype_model_json['ip_version'] = 'ipv4' - network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_all_prototype_model_json['name'] = 'my-rule-2' - network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_all_prototype_model_json['source'] = '192.168.3.2/32' - network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_all_prototype_model_json['protocol'] = 'all' + network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_all_prototype_model_json['action'] = ( + 'allow' + ) + network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_all_prototype_model_json[ + 'destination' + ] = '192.168.3.2/32' + network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_all_prototype_model_json[ + 'direction' + ] = 'inbound' + network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_all_prototype_model_json[ + 'ip_version' + ] = 'ipv4' + network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_all_prototype_model_json['name'] = ( + 'my-rule-2' + ) + network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_all_prototype_model_json['source'] = ( + '192.168.3.2/32' + ) + network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_all_prototype_model_json[ + 'protocol' + ] = 'all' # Construct a model instance of NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolAllPrototype by calling from_dict on the json representation - network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_all_prototype_model = NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolAllPrototype.from_dict(network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_all_prototype_model_json) + network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_all_prototype_model = ( + NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolAllPrototype.from_dict( + network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_all_prototype_model_json + ) + ) assert network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_all_prototype_model != False # Construct a model instance of NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolAllPrototype by calling from_dict on the json representation - network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_all_prototype_model_dict = NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolAllPrototype.from_dict(network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_all_prototype_model_json).__dict__ - network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_all_prototype_model2 = NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolAllPrototype(**network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_all_prototype_model_dict) + network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_all_prototype_model_dict = ( + NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolAllPrototype.from_dict( + network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_all_prototype_model_json + ).__dict__ + ) + network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_all_prototype_model2 = ( + NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolAllPrototype( + **network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_all_prototype_model_dict + ) + ) # Verify the model instances are equivalent - assert network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_all_prototype_model == network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_all_prototype_model2 + assert ( + network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_all_prototype_model + == network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_all_prototype_model2 + ) # Convert model instance back to dict and verify no loss of data - network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_all_prototype_model_json2 = network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_all_prototype_model.to_dict() - assert network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_all_prototype_model_json2 == network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_all_prototype_model_json + network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_all_prototype_model_json2 = ( + network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_all_prototype_model.to_dict() + ) + assert ( + network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_all_prototype_model_json2 + == network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_all_prototype_model_json + ) class TestModel_NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolICMPPrototype: @@ -88338,37 +97490,73 @@ class TestModel_NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolIC Test Class for NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolICMPPrototype """ - def test_network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_icmp_prototype_serialization(self): + def test_network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_icmp_prototype_serialization( + self, + ): """ Test serialization/deserialization for NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolICMPPrototype """ # Construct a json representation of a NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolICMPPrototype model network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_icmp_prototype_model_json = {} - network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_icmp_prototype_model_json['action'] = 'allow' - network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_icmp_prototype_model_json['destination'] = '192.168.3.2/32' - network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_icmp_prototype_model_json['direction'] = 'inbound' - network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_icmp_prototype_model_json['ip_version'] = 'ipv4' - network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_icmp_prototype_model_json['name'] = 'my-rule-2' - network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_icmp_prototype_model_json['source'] = '192.168.3.2/32' + network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_icmp_prototype_model_json['action'] = ( + 'allow' + ) + network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_icmp_prototype_model_json[ + 'destination' + ] = '192.168.3.2/32' + network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_icmp_prototype_model_json[ + 'direction' + ] = 'inbound' + network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_icmp_prototype_model_json[ + 'ip_version' + ] = 'ipv4' + network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_icmp_prototype_model_json['name'] = ( + 'my-rule-2' + ) + network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_icmp_prototype_model_json['source'] = ( + '192.168.3.2/32' + ) network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_icmp_prototype_model_json['code'] = 0 - network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_icmp_prototype_model_json['protocol'] = 'icmp' + network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_icmp_prototype_model_json[ + 'protocol' + ] = 'icmp' network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_icmp_prototype_model_json['type'] = 8 # Construct a model instance of NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolICMPPrototype by calling from_dict on the json representation - network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_icmp_prototype_model = NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolICMPPrototype.from_dict(network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_icmp_prototype_model_json) + network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_icmp_prototype_model = ( + NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolICMPPrototype.from_dict( + network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_icmp_prototype_model_json + ) + ) assert network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_icmp_prototype_model != False # Construct a model instance of NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolICMPPrototype by calling from_dict on the json representation - network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_icmp_prototype_model_dict = NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolICMPPrototype.from_dict(network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_icmp_prototype_model_json).__dict__ - network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_icmp_prototype_model2 = NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolICMPPrototype(**network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_icmp_prototype_model_dict) + network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_icmp_prototype_model_dict = ( + NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolICMPPrototype.from_dict( + network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_icmp_prototype_model_json + ).__dict__ + ) + network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_icmp_prototype_model2 = ( + NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolICMPPrototype( + **network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_icmp_prototype_model_dict + ) + ) # Verify the model instances are equivalent - assert network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_icmp_prototype_model == network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_icmp_prototype_model2 + assert ( + network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_icmp_prototype_model + == network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_icmp_prototype_model2 + ) # Convert model instance back to dict and verify no loss of data - network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_icmp_prototype_model_json2 = network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_icmp_prototype_model.to_dict() - assert network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_icmp_prototype_model_json2 == network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_icmp_prototype_model_json + network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_icmp_prototype_model_json2 = ( + network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_icmp_prototype_model.to_dict() + ) + assert ( + network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_icmp_prototype_model_json2 + == network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_icmp_prototype_model_json + ) class TestModel_NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolTCPUDPPrototype: @@ -88376,39 +97564,83 @@ class TestModel_NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolTC Test Class for NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolTCPUDPPrototype """ - def test_network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_tcpudp_prototype_serialization(self): + def test_network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_tcpudp_prototype_serialization( + self, + ): """ Test serialization/deserialization for NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolTCPUDPPrototype """ # Construct a json representation of a NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolTCPUDPPrototype model network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_tcpudp_prototype_model_json = {} - network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_tcpudp_prototype_model_json['action'] = 'allow' - network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_tcpudp_prototype_model_json['destination'] = '192.168.3.2/32' - network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_tcpudp_prototype_model_json['direction'] = 'inbound' - network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_tcpudp_prototype_model_json['ip_version'] = 'ipv4' - network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_tcpudp_prototype_model_json['name'] = 'my-rule-2' - network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_tcpudp_prototype_model_json['source'] = '192.168.3.2/32' - network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_tcpudp_prototype_model_json['destination_port_max'] = 22 - network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_tcpudp_prototype_model_json['destination_port_min'] = 22 - network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_tcpudp_prototype_model_json['protocol'] = 'udp' - network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_tcpudp_prototype_model_json['source_port_max'] = 65535 - network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_tcpudp_prototype_model_json['source_port_min'] = 49152 + network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_tcpudp_prototype_model_json[ + 'action' + ] = 'allow' + network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_tcpudp_prototype_model_json[ + 'destination' + ] = '192.168.3.2/32' + network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_tcpudp_prototype_model_json[ + 'direction' + ] = 'inbound' + network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_tcpudp_prototype_model_json[ + 'ip_version' + ] = 'ipv4' + network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_tcpudp_prototype_model_json['name'] = ( + 'my-rule-2' + ) + network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_tcpudp_prototype_model_json[ + 'source' + ] = '192.168.3.2/32' + network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_tcpudp_prototype_model_json[ + 'destination_port_max' + ] = 22 + network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_tcpudp_prototype_model_json[ + 'destination_port_min' + ] = 22 + network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_tcpudp_prototype_model_json[ + 'protocol' + ] = 'udp' + network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_tcpudp_prototype_model_json[ + 'source_port_max' + ] = 65535 + network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_tcpudp_prototype_model_json[ + 'source_port_min' + ] = 49152 # Construct a model instance of NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolTCPUDPPrototype by calling from_dict on the json representation - network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_tcpudp_prototype_model = NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolTCPUDPPrototype.from_dict(network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_tcpudp_prototype_model_json) + network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_tcpudp_prototype_model = ( + NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolTCPUDPPrototype.from_dict( + network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_tcpudp_prototype_model_json + ) + ) assert network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_tcpudp_prototype_model != False # Construct a model instance of NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolTCPUDPPrototype by calling from_dict on the json representation - network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_tcpudp_prototype_model_dict = NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolTCPUDPPrototype.from_dict(network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_tcpudp_prototype_model_json).__dict__ - network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_tcpudp_prototype_model2 = NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolTCPUDPPrototype(**network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_tcpudp_prototype_model_dict) + network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_tcpudp_prototype_model_dict = ( + NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolTCPUDPPrototype.from_dict( + network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_tcpudp_prototype_model_json + ).__dict__ + ) + network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_tcpudp_prototype_model2 = ( + NetworkACLRulePrototypeNetworkACLContextNetworkACLRuleProtocolTCPUDPPrototype( + **network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_tcpudp_prototype_model_dict + ) + ) # Verify the model instances are equivalent - assert network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_tcpudp_prototype_model == network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_tcpudp_prototype_model2 + assert ( + network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_tcpudp_prototype_model + == network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_tcpudp_prototype_model2 + ) # Convert model instance back to dict and verify no loss of data - network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_tcpudp_prototype_model_json2 = network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_tcpudp_prototype_model.to_dict() - assert network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_tcpudp_prototype_model_json2 == network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_tcpudp_prototype_model_json + network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_tcpudp_prototype_model_json2 = ( + network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_tcpudp_prototype_model.to_dict() + ) + assert ( + network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_tcpudp_prototype_model_json2 + == network_acl_rule_prototype_network_acl_context_network_acl_rule_protocol_tcpudp_prototype_model_json + ) class TestModel_NetworkACLRulePrototypeNetworkACLRuleProtocolAllPrototype: @@ -88429,7 +97661,9 @@ def test_network_acl_rule_prototype_network_acl_rule_protocol_all_prototype_seri # Construct a json representation of a NetworkACLRulePrototypeNetworkACLRuleProtocolAllPrototype model network_acl_rule_prototype_network_acl_rule_protocol_all_prototype_model_json = {} network_acl_rule_prototype_network_acl_rule_protocol_all_prototype_model_json['action'] = 'allow' - network_acl_rule_prototype_network_acl_rule_protocol_all_prototype_model_json['before'] = network_acl_rule_before_prototype_model + network_acl_rule_prototype_network_acl_rule_protocol_all_prototype_model_json['before'] = ( + network_acl_rule_before_prototype_model + ) network_acl_rule_prototype_network_acl_rule_protocol_all_prototype_model_json['destination'] = '192.168.3.2/32' network_acl_rule_prototype_network_acl_rule_protocol_all_prototype_model_json['direction'] = 'inbound' network_acl_rule_prototype_network_acl_rule_protocol_all_prototype_model_json['ip_version'] = 'ipv4' @@ -88438,19 +97672,39 @@ def test_network_acl_rule_prototype_network_acl_rule_protocol_all_prototype_seri network_acl_rule_prototype_network_acl_rule_protocol_all_prototype_model_json['protocol'] = 'all' # Construct a model instance of NetworkACLRulePrototypeNetworkACLRuleProtocolAllPrototype by calling from_dict on the json representation - network_acl_rule_prototype_network_acl_rule_protocol_all_prototype_model = NetworkACLRulePrototypeNetworkACLRuleProtocolAllPrototype.from_dict(network_acl_rule_prototype_network_acl_rule_protocol_all_prototype_model_json) + network_acl_rule_prototype_network_acl_rule_protocol_all_prototype_model = ( + NetworkACLRulePrototypeNetworkACLRuleProtocolAllPrototype.from_dict( + network_acl_rule_prototype_network_acl_rule_protocol_all_prototype_model_json + ) + ) assert network_acl_rule_prototype_network_acl_rule_protocol_all_prototype_model != False # Construct a model instance of NetworkACLRulePrototypeNetworkACLRuleProtocolAllPrototype by calling from_dict on the json representation - network_acl_rule_prototype_network_acl_rule_protocol_all_prototype_model_dict = NetworkACLRulePrototypeNetworkACLRuleProtocolAllPrototype.from_dict(network_acl_rule_prototype_network_acl_rule_protocol_all_prototype_model_json).__dict__ - network_acl_rule_prototype_network_acl_rule_protocol_all_prototype_model2 = NetworkACLRulePrototypeNetworkACLRuleProtocolAllPrototype(**network_acl_rule_prototype_network_acl_rule_protocol_all_prototype_model_dict) + network_acl_rule_prototype_network_acl_rule_protocol_all_prototype_model_dict = ( + NetworkACLRulePrototypeNetworkACLRuleProtocolAllPrototype.from_dict( + network_acl_rule_prototype_network_acl_rule_protocol_all_prototype_model_json + ).__dict__ + ) + network_acl_rule_prototype_network_acl_rule_protocol_all_prototype_model2 = ( + NetworkACLRulePrototypeNetworkACLRuleProtocolAllPrototype( + **network_acl_rule_prototype_network_acl_rule_protocol_all_prototype_model_dict + ) + ) # Verify the model instances are equivalent - assert network_acl_rule_prototype_network_acl_rule_protocol_all_prototype_model == network_acl_rule_prototype_network_acl_rule_protocol_all_prototype_model2 + assert ( + network_acl_rule_prototype_network_acl_rule_protocol_all_prototype_model + == network_acl_rule_prototype_network_acl_rule_protocol_all_prototype_model2 + ) # Convert model instance back to dict and verify no loss of data - network_acl_rule_prototype_network_acl_rule_protocol_all_prototype_model_json2 = network_acl_rule_prototype_network_acl_rule_protocol_all_prototype_model.to_dict() - assert network_acl_rule_prototype_network_acl_rule_protocol_all_prototype_model_json2 == network_acl_rule_prototype_network_acl_rule_protocol_all_prototype_model_json + network_acl_rule_prototype_network_acl_rule_protocol_all_prototype_model_json2 = ( + network_acl_rule_prototype_network_acl_rule_protocol_all_prototype_model.to_dict() + ) + assert ( + network_acl_rule_prototype_network_acl_rule_protocol_all_prototype_model_json2 + == network_acl_rule_prototype_network_acl_rule_protocol_all_prototype_model_json + ) class TestModel_NetworkACLRulePrototypeNetworkACLRuleProtocolICMPPrototype: @@ -88471,7 +97725,9 @@ def test_network_acl_rule_prototype_network_acl_rule_protocol_icmp_prototype_ser # Construct a json representation of a NetworkACLRulePrototypeNetworkACLRuleProtocolICMPPrototype model network_acl_rule_prototype_network_acl_rule_protocol_icmp_prototype_model_json = {} network_acl_rule_prototype_network_acl_rule_protocol_icmp_prototype_model_json['action'] = 'allow' - network_acl_rule_prototype_network_acl_rule_protocol_icmp_prototype_model_json['before'] = network_acl_rule_before_prototype_model + network_acl_rule_prototype_network_acl_rule_protocol_icmp_prototype_model_json['before'] = ( + network_acl_rule_before_prototype_model + ) network_acl_rule_prototype_network_acl_rule_protocol_icmp_prototype_model_json['destination'] = '192.168.3.2/32' network_acl_rule_prototype_network_acl_rule_protocol_icmp_prototype_model_json['direction'] = 'inbound' network_acl_rule_prototype_network_acl_rule_protocol_icmp_prototype_model_json['ip_version'] = 'ipv4' @@ -88482,19 +97738,39 @@ def test_network_acl_rule_prototype_network_acl_rule_protocol_icmp_prototype_ser network_acl_rule_prototype_network_acl_rule_protocol_icmp_prototype_model_json['type'] = 8 # Construct a model instance of NetworkACLRulePrototypeNetworkACLRuleProtocolICMPPrototype by calling from_dict on the json representation - network_acl_rule_prototype_network_acl_rule_protocol_icmp_prototype_model = NetworkACLRulePrototypeNetworkACLRuleProtocolICMPPrototype.from_dict(network_acl_rule_prototype_network_acl_rule_protocol_icmp_prototype_model_json) + network_acl_rule_prototype_network_acl_rule_protocol_icmp_prototype_model = ( + NetworkACLRulePrototypeNetworkACLRuleProtocolICMPPrototype.from_dict( + network_acl_rule_prototype_network_acl_rule_protocol_icmp_prototype_model_json + ) + ) assert network_acl_rule_prototype_network_acl_rule_protocol_icmp_prototype_model != False # Construct a model instance of NetworkACLRulePrototypeNetworkACLRuleProtocolICMPPrototype by calling from_dict on the json representation - network_acl_rule_prototype_network_acl_rule_protocol_icmp_prototype_model_dict = NetworkACLRulePrototypeNetworkACLRuleProtocolICMPPrototype.from_dict(network_acl_rule_prototype_network_acl_rule_protocol_icmp_prototype_model_json).__dict__ - network_acl_rule_prototype_network_acl_rule_protocol_icmp_prototype_model2 = NetworkACLRulePrototypeNetworkACLRuleProtocolICMPPrototype(**network_acl_rule_prototype_network_acl_rule_protocol_icmp_prototype_model_dict) + network_acl_rule_prototype_network_acl_rule_protocol_icmp_prototype_model_dict = ( + NetworkACLRulePrototypeNetworkACLRuleProtocolICMPPrototype.from_dict( + network_acl_rule_prototype_network_acl_rule_protocol_icmp_prototype_model_json + ).__dict__ + ) + network_acl_rule_prototype_network_acl_rule_protocol_icmp_prototype_model2 = ( + NetworkACLRulePrototypeNetworkACLRuleProtocolICMPPrototype( + **network_acl_rule_prototype_network_acl_rule_protocol_icmp_prototype_model_dict + ) + ) # Verify the model instances are equivalent - assert network_acl_rule_prototype_network_acl_rule_protocol_icmp_prototype_model == network_acl_rule_prototype_network_acl_rule_protocol_icmp_prototype_model2 + assert ( + network_acl_rule_prototype_network_acl_rule_protocol_icmp_prototype_model + == network_acl_rule_prototype_network_acl_rule_protocol_icmp_prototype_model2 + ) # Convert model instance back to dict and verify no loss of data - network_acl_rule_prototype_network_acl_rule_protocol_icmp_prototype_model_json2 = network_acl_rule_prototype_network_acl_rule_protocol_icmp_prototype_model.to_dict() - assert network_acl_rule_prototype_network_acl_rule_protocol_icmp_prototype_model_json2 == network_acl_rule_prototype_network_acl_rule_protocol_icmp_prototype_model_json + network_acl_rule_prototype_network_acl_rule_protocol_icmp_prototype_model_json2 = ( + network_acl_rule_prototype_network_acl_rule_protocol_icmp_prototype_model.to_dict() + ) + assert ( + network_acl_rule_prototype_network_acl_rule_protocol_icmp_prototype_model_json2 + == network_acl_rule_prototype_network_acl_rule_protocol_icmp_prototype_model_json + ) class TestModel_NetworkACLRulePrototypeNetworkACLRuleProtocolTCPUDPPrototype: @@ -88515,8 +97791,12 @@ def test_network_acl_rule_prototype_network_acl_rule_protocol_tcpudp_prototype_s # Construct a json representation of a NetworkACLRulePrototypeNetworkACLRuleProtocolTCPUDPPrototype model network_acl_rule_prototype_network_acl_rule_protocol_tcpudp_prototype_model_json = {} network_acl_rule_prototype_network_acl_rule_protocol_tcpudp_prototype_model_json['action'] = 'allow' - network_acl_rule_prototype_network_acl_rule_protocol_tcpudp_prototype_model_json['before'] = network_acl_rule_before_prototype_model - network_acl_rule_prototype_network_acl_rule_protocol_tcpudp_prototype_model_json['destination'] = '192.168.3.2/32' + network_acl_rule_prototype_network_acl_rule_protocol_tcpudp_prototype_model_json['before'] = ( + network_acl_rule_before_prototype_model + ) + network_acl_rule_prototype_network_acl_rule_protocol_tcpudp_prototype_model_json['destination'] = ( + '192.168.3.2/32' + ) network_acl_rule_prototype_network_acl_rule_protocol_tcpudp_prototype_model_json['direction'] = 'inbound' network_acl_rule_prototype_network_acl_rule_protocol_tcpudp_prototype_model_json['ip_version'] = 'ipv4' network_acl_rule_prototype_network_acl_rule_protocol_tcpudp_prototype_model_json['name'] = 'my-rule-2' @@ -88528,19 +97808,39 @@ def test_network_acl_rule_prototype_network_acl_rule_protocol_tcpudp_prototype_s network_acl_rule_prototype_network_acl_rule_protocol_tcpudp_prototype_model_json['source_port_min'] = 49152 # Construct a model instance of NetworkACLRulePrototypeNetworkACLRuleProtocolTCPUDPPrototype by calling from_dict on the json representation - network_acl_rule_prototype_network_acl_rule_protocol_tcpudp_prototype_model = NetworkACLRulePrototypeNetworkACLRuleProtocolTCPUDPPrototype.from_dict(network_acl_rule_prototype_network_acl_rule_protocol_tcpudp_prototype_model_json) + network_acl_rule_prototype_network_acl_rule_protocol_tcpudp_prototype_model = ( + NetworkACLRulePrototypeNetworkACLRuleProtocolTCPUDPPrototype.from_dict( + network_acl_rule_prototype_network_acl_rule_protocol_tcpudp_prototype_model_json + ) + ) assert network_acl_rule_prototype_network_acl_rule_protocol_tcpudp_prototype_model != False # Construct a model instance of NetworkACLRulePrototypeNetworkACLRuleProtocolTCPUDPPrototype by calling from_dict on the json representation - network_acl_rule_prototype_network_acl_rule_protocol_tcpudp_prototype_model_dict = NetworkACLRulePrototypeNetworkACLRuleProtocolTCPUDPPrototype.from_dict(network_acl_rule_prototype_network_acl_rule_protocol_tcpudp_prototype_model_json).__dict__ - network_acl_rule_prototype_network_acl_rule_protocol_tcpudp_prototype_model2 = NetworkACLRulePrototypeNetworkACLRuleProtocolTCPUDPPrototype(**network_acl_rule_prototype_network_acl_rule_protocol_tcpudp_prototype_model_dict) + network_acl_rule_prototype_network_acl_rule_protocol_tcpudp_prototype_model_dict = ( + NetworkACLRulePrototypeNetworkACLRuleProtocolTCPUDPPrototype.from_dict( + network_acl_rule_prototype_network_acl_rule_protocol_tcpudp_prototype_model_json + ).__dict__ + ) + network_acl_rule_prototype_network_acl_rule_protocol_tcpudp_prototype_model2 = ( + NetworkACLRulePrototypeNetworkACLRuleProtocolTCPUDPPrototype( + **network_acl_rule_prototype_network_acl_rule_protocol_tcpudp_prototype_model_dict + ) + ) # Verify the model instances are equivalent - assert network_acl_rule_prototype_network_acl_rule_protocol_tcpudp_prototype_model == network_acl_rule_prototype_network_acl_rule_protocol_tcpudp_prototype_model2 + assert ( + network_acl_rule_prototype_network_acl_rule_protocol_tcpudp_prototype_model + == network_acl_rule_prototype_network_acl_rule_protocol_tcpudp_prototype_model2 + ) # Convert model instance back to dict and verify no loss of data - network_acl_rule_prototype_network_acl_rule_protocol_tcpudp_prototype_model_json2 = network_acl_rule_prototype_network_acl_rule_protocol_tcpudp_prototype_model.to_dict() - assert network_acl_rule_prototype_network_acl_rule_protocol_tcpudp_prototype_model_json2 == network_acl_rule_prototype_network_acl_rule_protocol_tcpudp_prototype_model_json + network_acl_rule_prototype_network_acl_rule_protocol_tcpudp_prototype_model_json2 = ( + network_acl_rule_prototype_network_acl_rule_protocol_tcpudp_prototype_model.to_dict() + ) + assert ( + network_acl_rule_prototype_network_acl_rule_protocol_tcpudp_prototype_model_json2 + == network_acl_rule_prototype_network_acl_rule_protocol_tcpudp_prototype_model_json + ) class TestModel_NetworkACLRuleNetworkACLRuleProtocolAll: @@ -88560,7 +97860,9 @@ def test_network_acl_rule_network_acl_rule_protocol_all_serialization(self): network_acl_rule_reference_model = {} # NetworkACLRuleReference network_acl_rule_reference_model['deleted'] = deleted_model - network_acl_rule_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/network_acls/a4e28308-8ee7-46ab-8108-9f881f22bdbf/rules/8daca77a-4980-4d33-8f3e-7038797be8f9' + network_acl_rule_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/network_acls/a4e28308-8ee7-46ab-8108-9f881f22bdbf/rules/8daca77a-4980-4d33-8f3e-7038797be8f9' + ) network_acl_rule_reference_model['id'] = '8daca77a-4980-4d33-8f3e-7038797be8f9' network_acl_rule_reference_model['name'] = 'my-rule-1' @@ -88571,7 +97873,9 @@ def test_network_acl_rule_network_acl_rule_protocol_all_serialization(self): network_acl_rule_network_acl_rule_protocol_all_model_json['created_at'] = '2019-01-01T12:00:00Z' network_acl_rule_network_acl_rule_protocol_all_model_json['destination'] = '192.168.3.0/24' network_acl_rule_network_acl_rule_protocol_all_model_json['direction'] = 'inbound' - network_acl_rule_network_acl_rule_protocol_all_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/network_acls/a4e28308-8ee7-46ab-8108-9f881f22bdbf/rules/8daca77a-4980-4d33-8f3e-7038797be8f9' + network_acl_rule_network_acl_rule_protocol_all_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/network_acls/a4e28308-8ee7-46ab-8108-9f881f22bdbf/rules/8daca77a-4980-4d33-8f3e-7038797be8f9' + ) network_acl_rule_network_acl_rule_protocol_all_model_json['id'] = '8daca77a-4980-4d33-8f3e-7038797be8f9' network_acl_rule_network_acl_rule_protocol_all_model_json['ip_version'] = 'ipv4' network_acl_rule_network_acl_rule_protocol_all_model_json['name'] = 'my-rule-1' @@ -88579,19 +97883,33 @@ def test_network_acl_rule_network_acl_rule_protocol_all_serialization(self): network_acl_rule_network_acl_rule_protocol_all_model_json['protocol'] = 'all' # Construct a model instance of NetworkACLRuleNetworkACLRuleProtocolAll by calling from_dict on the json representation - network_acl_rule_network_acl_rule_protocol_all_model = NetworkACLRuleNetworkACLRuleProtocolAll.from_dict(network_acl_rule_network_acl_rule_protocol_all_model_json) + network_acl_rule_network_acl_rule_protocol_all_model = NetworkACLRuleNetworkACLRuleProtocolAll.from_dict( + network_acl_rule_network_acl_rule_protocol_all_model_json + ) assert network_acl_rule_network_acl_rule_protocol_all_model != False # Construct a model instance of NetworkACLRuleNetworkACLRuleProtocolAll by calling from_dict on the json representation - network_acl_rule_network_acl_rule_protocol_all_model_dict = NetworkACLRuleNetworkACLRuleProtocolAll.from_dict(network_acl_rule_network_acl_rule_protocol_all_model_json).__dict__ - network_acl_rule_network_acl_rule_protocol_all_model2 = NetworkACLRuleNetworkACLRuleProtocolAll(**network_acl_rule_network_acl_rule_protocol_all_model_dict) + network_acl_rule_network_acl_rule_protocol_all_model_dict = NetworkACLRuleNetworkACLRuleProtocolAll.from_dict( + network_acl_rule_network_acl_rule_protocol_all_model_json + ).__dict__ + network_acl_rule_network_acl_rule_protocol_all_model2 = NetworkACLRuleNetworkACLRuleProtocolAll( + **network_acl_rule_network_acl_rule_protocol_all_model_dict + ) # Verify the model instances are equivalent - assert network_acl_rule_network_acl_rule_protocol_all_model == network_acl_rule_network_acl_rule_protocol_all_model2 + assert ( + network_acl_rule_network_acl_rule_protocol_all_model + == network_acl_rule_network_acl_rule_protocol_all_model2 + ) # Convert model instance back to dict and verify no loss of data - network_acl_rule_network_acl_rule_protocol_all_model_json2 = network_acl_rule_network_acl_rule_protocol_all_model.to_dict() - assert network_acl_rule_network_acl_rule_protocol_all_model_json2 == network_acl_rule_network_acl_rule_protocol_all_model_json + network_acl_rule_network_acl_rule_protocol_all_model_json2 = ( + network_acl_rule_network_acl_rule_protocol_all_model.to_dict() + ) + assert ( + network_acl_rule_network_acl_rule_protocol_all_model_json2 + == network_acl_rule_network_acl_rule_protocol_all_model_json + ) class TestModel_NetworkACLRuleNetworkACLRuleProtocolICMP: @@ -88611,7 +97929,9 @@ def test_network_acl_rule_network_acl_rule_protocol_icmp_serialization(self): network_acl_rule_reference_model = {} # NetworkACLRuleReference network_acl_rule_reference_model['deleted'] = deleted_model - network_acl_rule_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/network_acls/a4e28308-8ee7-46ab-8108-9f881f22bdbf/rules/8daca77a-4980-4d33-8f3e-7038797be8f9' + network_acl_rule_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/network_acls/a4e28308-8ee7-46ab-8108-9f881f22bdbf/rules/8daca77a-4980-4d33-8f3e-7038797be8f9' + ) network_acl_rule_reference_model['id'] = '8daca77a-4980-4d33-8f3e-7038797be8f9' network_acl_rule_reference_model['name'] = 'my-rule-1' @@ -88622,7 +97942,9 @@ def test_network_acl_rule_network_acl_rule_protocol_icmp_serialization(self): network_acl_rule_network_acl_rule_protocol_icmp_model_json['created_at'] = '2019-01-01T12:00:00Z' network_acl_rule_network_acl_rule_protocol_icmp_model_json['destination'] = '192.168.3.0/24' network_acl_rule_network_acl_rule_protocol_icmp_model_json['direction'] = 'inbound' - network_acl_rule_network_acl_rule_protocol_icmp_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/network_acls/a4e28308-8ee7-46ab-8108-9f881f22bdbf/rules/8daca77a-4980-4d33-8f3e-7038797be8f9' + network_acl_rule_network_acl_rule_protocol_icmp_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/network_acls/a4e28308-8ee7-46ab-8108-9f881f22bdbf/rules/8daca77a-4980-4d33-8f3e-7038797be8f9' + ) network_acl_rule_network_acl_rule_protocol_icmp_model_json['id'] = '8daca77a-4980-4d33-8f3e-7038797be8f9' network_acl_rule_network_acl_rule_protocol_icmp_model_json['ip_version'] = 'ipv4' network_acl_rule_network_acl_rule_protocol_icmp_model_json['name'] = 'my-rule-1' @@ -88632,19 +97954,33 @@ def test_network_acl_rule_network_acl_rule_protocol_icmp_serialization(self): network_acl_rule_network_acl_rule_protocol_icmp_model_json['type'] = 8 # Construct a model instance of NetworkACLRuleNetworkACLRuleProtocolICMP by calling from_dict on the json representation - network_acl_rule_network_acl_rule_protocol_icmp_model = NetworkACLRuleNetworkACLRuleProtocolICMP.from_dict(network_acl_rule_network_acl_rule_protocol_icmp_model_json) + network_acl_rule_network_acl_rule_protocol_icmp_model = NetworkACLRuleNetworkACLRuleProtocolICMP.from_dict( + network_acl_rule_network_acl_rule_protocol_icmp_model_json + ) assert network_acl_rule_network_acl_rule_protocol_icmp_model != False # Construct a model instance of NetworkACLRuleNetworkACLRuleProtocolICMP by calling from_dict on the json representation - network_acl_rule_network_acl_rule_protocol_icmp_model_dict = NetworkACLRuleNetworkACLRuleProtocolICMP.from_dict(network_acl_rule_network_acl_rule_protocol_icmp_model_json).__dict__ - network_acl_rule_network_acl_rule_protocol_icmp_model2 = NetworkACLRuleNetworkACLRuleProtocolICMP(**network_acl_rule_network_acl_rule_protocol_icmp_model_dict) + network_acl_rule_network_acl_rule_protocol_icmp_model_dict = NetworkACLRuleNetworkACLRuleProtocolICMP.from_dict( + network_acl_rule_network_acl_rule_protocol_icmp_model_json + ).__dict__ + network_acl_rule_network_acl_rule_protocol_icmp_model2 = NetworkACLRuleNetworkACLRuleProtocolICMP( + **network_acl_rule_network_acl_rule_protocol_icmp_model_dict + ) # Verify the model instances are equivalent - assert network_acl_rule_network_acl_rule_protocol_icmp_model == network_acl_rule_network_acl_rule_protocol_icmp_model2 + assert ( + network_acl_rule_network_acl_rule_protocol_icmp_model + == network_acl_rule_network_acl_rule_protocol_icmp_model2 + ) # Convert model instance back to dict and verify no loss of data - network_acl_rule_network_acl_rule_protocol_icmp_model_json2 = network_acl_rule_network_acl_rule_protocol_icmp_model.to_dict() - assert network_acl_rule_network_acl_rule_protocol_icmp_model_json2 == network_acl_rule_network_acl_rule_protocol_icmp_model_json + network_acl_rule_network_acl_rule_protocol_icmp_model_json2 = ( + network_acl_rule_network_acl_rule_protocol_icmp_model.to_dict() + ) + assert ( + network_acl_rule_network_acl_rule_protocol_icmp_model_json2 + == network_acl_rule_network_acl_rule_protocol_icmp_model_json + ) class TestModel_NetworkACLRuleNetworkACLRuleProtocolTCPUDP: @@ -88664,7 +98000,9 @@ def test_network_acl_rule_network_acl_rule_protocol_tcpudp_serialization(self): network_acl_rule_reference_model = {} # NetworkACLRuleReference network_acl_rule_reference_model['deleted'] = deleted_model - network_acl_rule_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/network_acls/a4e28308-8ee7-46ab-8108-9f881f22bdbf/rules/8daca77a-4980-4d33-8f3e-7038797be8f9' + network_acl_rule_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/network_acls/a4e28308-8ee7-46ab-8108-9f881f22bdbf/rules/8daca77a-4980-4d33-8f3e-7038797be8f9' + ) network_acl_rule_reference_model['id'] = '8daca77a-4980-4d33-8f3e-7038797be8f9' network_acl_rule_reference_model['name'] = 'my-rule-1' @@ -88675,7 +98013,9 @@ def test_network_acl_rule_network_acl_rule_protocol_tcpudp_serialization(self): network_acl_rule_network_acl_rule_protocol_tcpudp_model_json['created_at'] = '2019-01-01T12:00:00Z' network_acl_rule_network_acl_rule_protocol_tcpudp_model_json['destination'] = '192.168.3.0/24' network_acl_rule_network_acl_rule_protocol_tcpudp_model_json['direction'] = 'inbound' - network_acl_rule_network_acl_rule_protocol_tcpudp_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/network_acls/a4e28308-8ee7-46ab-8108-9f881f22bdbf/rules/8daca77a-4980-4d33-8f3e-7038797be8f9' + network_acl_rule_network_acl_rule_protocol_tcpudp_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/network_acls/a4e28308-8ee7-46ab-8108-9f881f22bdbf/rules/8daca77a-4980-4d33-8f3e-7038797be8f9' + ) network_acl_rule_network_acl_rule_protocol_tcpudp_model_json['id'] = '8daca77a-4980-4d33-8f3e-7038797be8f9' network_acl_rule_network_acl_rule_protocol_tcpudp_model_json['ip_version'] = 'ipv4' network_acl_rule_network_acl_rule_protocol_tcpudp_model_json['name'] = 'my-rule-1' @@ -88687,19 +98027,35 @@ def test_network_acl_rule_network_acl_rule_protocol_tcpudp_serialization(self): network_acl_rule_network_acl_rule_protocol_tcpudp_model_json['source_port_min'] = 49152 # Construct a model instance of NetworkACLRuleNetworkACLRuleProtocolTCPUDP by calling from_dict on the json representation - network_acl_rule_network_acl_rule_protocol_tcpudp_model = NetworkACLRuleNetworkACLRuleProtocolTCPUDP.from_dict(network_acl_rule_network_acl_rule_protocol_tcpudp_model_json) + network_acl_rule_network_acl_rule_protocol_tcpudp_model = NetworkACLRuleNetworkACLRuleProtocolTCPUDP.from_dict( + network_acl_rule_network_acl_rule_protocol_tcpudp_model_json + ) assert network_acl_rule_network_acl_rule_protocol_tcpudp_model != False # Construct a model instance of NetworkACLRuleNetworkACLRuleProtocolTCPUDP by calling from_dict on the json representation - network_acl_rule_network_acl_rule_protocol_tcpudp_model_dict = NetworkACLRuleNetworkACLRuleProtocolTCPUDP.from_dict(network_acl_rule_network_acl_rule_protocol_tcpudp_model_json).__dict__ - network_acl_rule_network_acl_rule_protocol_tcpudp_model2 = NetworkACLRuleNetworkACLRuleProtocolTCPUDP(**network_acl_rule_network_acl_rule_protocol_tcpudp_model_dict) + network_acl_rule_network_acl_rule_protocol_tcpudp_model_dict = ( + NetworkACLRuleNetworkACLRuleProtocolTCPUDP.from_dict( + network_acl_rule_network_acl_rule_protocol_tcpudp_model_json + ).__dict__ + ) + network_acl_rule_network_acl_rule_protocol_tcpudp_model2 = NetworkACLRuleNetworkACLRuleProtocolTCPUDP( + **network_acl_rule_network_acl_rule_protocol_tcpudp_model_dict + ) # Verify the model instances are equivalent - assert network_acl_rule_network_acl_rule_protocol_tcpudp_model == network_acl_rule_network_acl_rule_protocol_tcpudp_model2 + assert ( + network_acl_rule_network_acl_rule_protocol_tcpudp_model + == network_acl_rule_network_acl_rule_protocol_tcpudp_model2 + ) # Convert model instance back to dict and verify no loss of data - network_acl_rule_network_acl_rule_protocol_tcpudp_model_json2 = network_acl_rule_network_acl_rule_protocol_tcpudp_model.to_dict() - assert network_acl_rule_network_acl_rule_protocol_tcpudp_model_json2 == network_acl_rule_network_acl_rule_protocol_tcpudp_model_json + network_acl_rule_network_acl_rule_protocol_tcpudp_model_json2 = ( + network_acl_rule_network_acl_rule_protocol_tcpudp_model.to_dict() + ) + assert ( + network_acl_rule_network_acl_rule_protocol_tcpudp_model_json2 + == network_acl_rule_network_acl_rule_protocol_tcpudp_model_json + ) class TestModel_NetworkInterfaceIPPrototypeReservedIPPrototypeNetworkInterfaceContext: @@ -88714,24 +98070,48 @@ def test_network_interface_ip_prototype_reserved_ip_prototype_network_interface_ # Construct a json representation of a NetworkInterfaceIPPrototypeReservedIPPrototypeNetworkInterfaceContext model network_interface_ip_prototype_reserved_ip_prototype_network_interface_context_model_json = {} - network_interface_ip_prototype_reserved_ip_prototype_network_interface_context_model_json['address'] = '192.168.3.4' + network_interface_ip_prototype_reserved_ip_prototype_network_interface_context_model_json['address'] = ( + '192.168.3.4' + ) network_interface_ip_prototype_reserved_ip_prototype_network_interface_context_model_json['auto_delete'] = False - network_interface_ip_prototype_reserved_ip_prototype_network_interface_context_model_json['name'] = 'my-reserved-ip' + network_interface_ip_prototype_reserved_ip_prototype_network_interface_context_model_json['name'] = ( + 'my-reserved-ip' + ) # Construct a model instance of NetworkInterfaceIPPrototypeReservedIPPrototypeNetworkInterfaceContext by calling from_dict on the json representation - network_interface_ip_prototype_reserved_ip_prototype_network_interface_context_model = NetworkInterfaceIPPrototypeReservedIPPrototypeNetworkInterfaceContext.from_dict(network_interface_ip_prototype_reserved_ip_prototype_network_interface_context_model_json) + network_interface_ip_prototype_reserved_ip_prototype_network_interface_context_model = ( + NetworkInterfaceIPPrototypeReservedIPPrototypeNetworkInterfaceContext.from_dict( + network_interface_ip_prototype_reserved_ip_prototype_network_interface_context_model_json + ) + ) assert network_interface_ip_prototype_reserved_ip_prototype_network_interface_context_model != False # Construct a model instance of NetworkInterfaceIPPrototypeReservedIPPrototypeNetworkInterfaceContext by calling from_dict on the json representation - network_interface_ip_prototype_reserved_ip_prototype_network_interface_context_model_dict = NetworkInterfaceIPPrototypeReservedIPPrototypeNetworkInterfaceContext.from_dict(network_interface_ip_prototype_reserved_ip_prototype_network_interface_context_model_json).__dict__ - network_interface_ip_prototype_reserved_ip_prototype_network_interface_context_model2 = NetworkInterfaceIPPrototypeReservedIPPrototypeNetworkInterfaceContext(**network_interface_ip_prototype_reserved_ip_prototype_network_interface_context_model_dict) + network_interface_ip_prototype_reserved_ip_prototype_network_interface_context_model_dict = ( + NetworkInterfaceIPPrototypeReservedIPPrototypeNetworkInterfaceContext.from_dict( + network_interface_ip_prototype_reserved_ip_prototype_network_interface_context_model_json + ).__dict__ + ) + network_interface_ip_prototype_reserved_ip_prototype_network_interface_context_model2 = ( + NetworkInterfaceIPPrototypeReservedIPPrototypeNetworkInterfaceContext( + **network_interface_ip_prototype_reserved_ip_prototype_network_interface_context_model_dict + ) + ) # Verify the model instances are equivalent - assert network_interface_ip_prototype_reserved_ip_prototype_network_interface_context_model == network_interface_ip_prototype_reserved_ip_prototype_network_interface_context_model2 + assert ( + network_interface_ip_prototype_reserved_ip_prototype_network_interface_context_model + == network_interface_ip_prototype_reserved_ip_prototype_network_interface_context_model2 + ) # Convert model instance back to dict and verify no loss of data - network_interface_ip_prototype_reserved_ip_prototype_network_interface_context_model_json2 = network_interface_ip_prototype_reserved_ip_prototype_network_interface_context_model.to_dict() - assert network_interface_ip_prototype_reserved_ip_prototype_network_interface_context_model_json2 == network_interface_ip_prototype_reserved_ip_prototype_network_interface_context_model_json + network_interface_ip_prototype_reserved_ip_prototype_network_interface_context_model_json2 = ( + network_interface_ip_prototype_reserved_ip_prototype_network_interface_context_model.to_dict() + ) + assert ( + network_interface_ip_prototype_reserved_ip_prototype_network_interface_context_model_json2 + == network_interface_ip_prototype_reserved_ip_prototype_network_interface_context_model_json + ) class TestModel_OperatingSystemIdentityByHref: @@ -88746,15 +98126,23 @@ def test_operating_system_identity_by_href_serialization(self): # Construct a json representation of a OperatingSystemIdentityByHref model operating_system_identity_by_href_model_json = {} - operating_system_identity_by_href_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/operating_systems/ubuntu-24-04-amd64' + operating_system_identity_by_href_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/operating_systems/ubuntu-24-04-amd64' + ) # Construct a model instance of OperatingSystemIdentityByHref by calling from_dict on the json representation - operating_system_identity_by_href_model = OperatingSystemIdentityByHref.from_dict(operating_system_identity_by_href_model_json) + operating_system_identity_by_href_model = OperatingSystemIdentityByHref.from_dict( + operating_system_identity_by_href_model_json + ) assert operating_system_identity_by_href_model != False # Construct a model instance of OperatingSystemIdentityByHref by calling from_dict on the json representation - operating_system_identity_by_href_model_dict = OperatingSystemIdentityByHref.from_dict(operating_system_identity_by_href_model_json).__dict__ - operating_system_identity_by_href_model2 = OperatingSystemIdentityByHref(**operating_system_identity_by_href_model_dict) + operating_system_identity_by_href_model_dict = OperatingSystemIdentityByHref.from_dict( + operating_system_identity_by_href_model_json + ).__dict__ + operating_system_identity_by_href_model2 = OperatingSystemIdentityByHref( + **operating_system_identity_by_href_model_dict + ) # Verify the model instances are equivalent assert operating_system_identity_by_href_model == operating_system_identity_by_href_model2 @@ -88779,12 +98167,18 @@ def test_operating_system_identity_by_name_serialization(self): operating_system_identity_by_name_model_json['name'] = 'ubuntu-24-04-amd64' # Construct a model instance of OperatingSystemIdentityByName by calling from_dict on the json representation - operating_system_identity_by_name_model = OperatingSystemIdentityByName.from_dict(operating_system_identity_by_name_model_json) + operating_system_identity_by_name_model = OperatingSystemIdentityByName.from_dict( + operating_system_identity_by_name_model_json + ) assert operating_system_identity_by_name_model != False # Construct a model instance of OperatingSystemIdentityByName by calling from_dict on the json representation - operating_system_identity_by_name_model_dict = OperatingSystemIdentityByName.from_dict(operating_system_identity_by_name_model_json).__dict__ - operating_system_identity_by_name_model2 = OperatingSystemIdentityByName(**operating_system_identity_by_name_model_dict) + operating_system_identity_by_name_model_dict = OperatingSystemIdentityByName.from_dict( + operating_system_identity_by_name_model_json + ).__dict__ + operating_system_identity_by_name_model2 = OperatingSystemIdentityByName( + **operating_system_identity_by_name_model_dict + ) # Verify the model instances are equivalent assert operating_system_identity_by_name_model == operating_system_identity_by_name_model2 @@ -88812,22 +98206,44 @@ def test_public_gateway_floating_ip_prototype_floating_ip_prototype_target_conte # Construct a json representation of a PublicGatewayFloatingIPPrototypeFloatingIPPrototypeTargetContext model public_gateway_floating_ip_prototype_floating_ip_prototype_target_context_model_json = {} public_gateway_floating_ip_prototype_floating_ip_prototype_target_context_model_json['name'] = 'my-floating-ip' - public_gateway_floating_ip_prototype_floating_ip_prototype_target_context_model_json['resource_group'] = resource_group_identity_model + public_gateway_floating_ip_prototype_floating_ip_prototype_target_context_model_json['resource_group'] = ( + resource_group_identity_model + ) # Construct a model instance of PublicGatewayFloatingIPPrototypeFloatingIPPrototypeTargetContext by calling from_dict on the json representation - public_gateway_floating_ip_prototype_floating_ip_prototype_target_context_model = PublicGatewayFloatingIPPrototypeFloatingIPPrototypeTargetContext.from_dict(public_gateway_floating_ip_prototype_floating_ip_prototype_target_context_model_json) + public_gateway_floating_ip_prototype_floating_ip_prototype_target_context_model = ( + PublicGatewayFloatingIPPrototypeFloatingIPPrototypeTargetContext.from_dict( + public_gateway_floating_ip_prototype_floating_ip_prototype_target_context_model_json + ) + ) assert public_gateway_floating_ip_prototype_floating_ip_prototype_target_context_model != False # Construct a model instance of PublicGatewayFloatingIPPrototypeFloatingIPPrototypeTargetContext by calling from_dict on the json representation - public_gateway_floating_ip_prototype_floating_ip_prototype_target_context_model_dict = PublicGatewayFloatingIPPrototypeFloatingIPPrototypeTargetContext.from_dict(public_gateway_floating_ip_prototype_floating_ip_prototype_target_context_model_json).__dict__ - public_gateway_floating_ip_prototype_floating_ip_prototype_target_context_model2 = PublicGatewayFloatingIPPrototypeFloatingIPPrototypeTargetContext(**public_gateway_floating_ip_prototype_floating_ip_prototype_target_context_model_dict) + public_gateway_floating_ip_prototype_floating_ip_prototype_target_context_model_dict = ( + PublicGatewayFloatingIPPrototypeFloatingIPPrototypeTargetContext.from_dict( + public_gateway_floating_ip_prototype_floating_ip_prototype_target_context_model_json + ).__dict__ + ) + public_gateway_floating_ip_prototype_floating_ip_prototype_target_context_model2 = ( + PublicGatewayFloatingIPPrototypeFloatingIPPrototypeTargetContext( + **public_gateway_floating_ip_prototype_floating_ip_prototype_target_context_model_dict + ) + ) # Verify the model instances are equivalent - assert public_gateway_floating_ip_prototype_floating_ip_prototype_target_context_model == public_gateway_floating_ip_prototype_floating_ip_prototype_target_context_model2 + assert ( + public_gateway_floating_ip_prototype_floating_ip_prototype_target_context_model + == public_gateway_floating_ip_prototype_floating_ip_prototype_target_context_model2 + ) # Convert model instance back to dict and verify no loss of data - public_gateway_floating_ip_prototype_floating_ip_prototype_target_context_model_json2 = public_gateway_floating_ip_prototype_floating_ip_prototype_target_context_model.to_dict() - assert public_gateway_floating_ip_prototype_floating_ip_prototype_target_context_model_json2 == public_gateway_floating_ip_prototype_floating_ip_prototype_target_context_model_json + public_gateway_floating_ip_prototype_floating_ip_prototype_target_context_model_json2 = ( + public_gateway_floating_ip_prototype_floating_ip_prototype_target_context_model.to_dict() + ) + assert ( + public_gateway_floating_ip_prototype_floating_ip_prototype_target_context_model_json2 + == public_gateway_floating_ip_prototype_floating_ip_prototype_target_context_model_json + ) class TestModel_PublicGatewayIdentityPublicGatewayIdentityByCRN: @@ -88842,22 +98258,42 @@ def test_public_gateway_identity_public_gateway_identity_by_crn_serialization(se # Construct a json representation of a PublicGatewayIdentityPublicGatewayIdentityByCRN model public_gateway_identity_public_gateway_identity_by_crn_model_json = {} - public_gateway_identity_public_gateway_identity_by_crn_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::public-gateway:dc5431ef-1fc6-4861-adc9-a59d077d1241' + public_gateway_identity_public_gateway_identity_by_crn_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::public-gateway:dc5431ef-1fc6-4861-adc9-a59d077d1241' + ) # Construct a model instance of PublicGatewayIdentityPublicGatewayIdentityByCRN by calling from_dict on the json representation - public_gateway_identity_public_gateway_identity_by_crn_model = PublicGatewayIdentityPublicGatewayIdentityByCRN.from_dict(public_gateway_identity_public_gateway_identity_by_crn_model_json) + public_gateway_identity_public_gateway_identity_by_crn_model = ( + PublicGatewayIdentityPublicGatewayIdentityByCRN.from_dict( + public_gateway_identity_public_gateway_identity_by_crn_model_json + ) + ) assert public_gateway_identity_public_gateway_identity_by_crn_model != False # Construct a model instance of PublicGatewayIdentityPublicGatewayIdentityByCRN by calling from_dict on the json representation - public_gateway_identity_public_gateway_identity_by_crn_model_dict = PublicGatewayIdentityPublicGatewayIdentityByCRN.from_dict(public_gateway_identity_public_gateway_identity_by_crn_model_json).__dict__ - public_gateway_identity_public_gateway_identity_by_crn_model2 = PublicGatewayIdentityPublicGatewayIdentityByCRN(**public_gateway_identity_public_gateway_identity_by_crn_model_dict) + public_gateway_identity_public_gateway_identity_by_crn_model_dict = ( + PublicGatewayIdentityPublicGatewayIdentityByCRN.from_dict( + public_gateway_identity_public_gateway_identity_by_crn_model_json + ).__dict__ + ) + public_gateway_identity_public_gateway_identity_by_crn_model2 = PublicGatewayIdentityPublicGatewayIdentityByCRN( + **public_gateway_identity_public_gateway_identity_by_crn_model_dict + ) # Verify the model instances are equivalent - assert public_gateway_identity_public_gateway_identity_by_crn_model == public_gateway_identity_public_gateway_identity_by_crn_model2 + assert ( + public_gateway_identity_public_gateway_identity_by_crn_model + == public_gateway_identity_public_gateway_identity_by_crn_model2 + ) # Convert model instance back to dict and verify no loss of data - public_gateway_identity_public_gateway_identity_by_crn_model_json2 = public_gateway_identity_public_gateway_identity_by_crn_model.to_dict() - assert public_gateway_identity_public_gateway_identity_by_crn_model_json2 == public_gateway_identity_public_gateway_identity_by_crn_model_json + public_gateway_identity_public_gateway_identity_by_crn_model_json2 = ( + public_gateway_identity_public_gateway_identity_by_crn_model.to_dict() + ) + assert ( + public_gateway_identity_public_gateway_identity_by_crn_model_json2 + == public_gateway_identity_public_gateway_identity_by_crn_model_json + ) class TestModel_PublicGatewayIdentityPublicGatewayIdentityByHref: @@ -88872,22 +98308,44 @@ def test_public_gateway_identity_public_gateway_identity_by_href_serialization(s # Construct a json representation of a PublicGatewayIdentityPublicGatewayIdentityByHref model public_gateway_identity_public_gateway_identity_by_href_model_json = {} - public_gateway_identity_public_gateway_identity_by_href_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/public_gateways/dc5431ef-1fc6-4861-adc9-a59d077d1241' + public_gateway_identity_public_gateway_identity_by_href_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/public_gateways/dc5431ef-1fc6-4861-adc9-a59d077d1241' + ) # Construct a model instance of PublicGatewayIdentityPublicGatewayIdentityByHref by calling from_dict on the json representation - public_gateway_identity_public_gateway_identity_by_href_model = PublicGatewayIdentityPublicGatewayIdentityByHref.from_dict(public_gateway_identity_public_gateway_identity_by_href_model_json) + public_gateway_identity_public_gateway_identity_by_href_model = ( + PublicGatewayIdentityPublicGatewayIdentityByHref.from_dict( + public_gateway_identity_public_gateway_identity_by_href_model_json + ) + ) assert public_gateway_identity_public_gateway_identity_by_href_model != False # Construct a model instance of PublicGatewayIdentityPublicGatewayIdentityByHref by calling from_dict on the json representation - public_gateway_identity_public_gateway_identity_by_href_model_dict = PublicGatewayIdentityPublicGatewayIdentityByHref.from_dict(public_gateway_identity_public_gateway_identity_by_href_model_json).__dict__ - public_gateway_identity_public_gateway_identity_by_href_model2 = PublicGatewayIdentityPublicGatewayIdentityByHref(**public_gateway_identity_public_gateway_identity_by_href_model_dict) + public_gateway_identity_public_gateway_identity_by_href_model_dict = ( + PublicGatewayIdentityPublicGatewayIdentityByHref.from_dict( + public_gateway_identity_public_gateway_identity_by_href_model_json + ).__dict__ + ) + public_gateway_identity_public_gateway_identity_by_href_model2 = ( + PublicGatewayIdentityPublicGatewayIdentityByHref( + **public_gateway_identity_public_gateway_identity_by_href_model_dict + ) + ) # Verify the model instances are equivalent - assert public_gateway_identity_public_gateway_identity_by_href_model == public_gateway_identity_public_gateway_identity_by_href_model2 + assert ( + public_gateway_identity_public_gateway_identity_by_href_model + == public_gateway_identity_public_gateway_identity_by_href_model2 + ) # Convert model instance back to dict and verify no loss of data - public_gateway_identity_public_gateway_identity_by_href_model_json2 = public_gateway_identity_public_gateway_identity_by_href_model.to_dict() - assert public_gateway_identity_public_gateway_identity_by_href_model_json2 == public_gateway_identity_public_gateway_identity_by_href_model_json + public_gateway_identity_public_gateway_identity_by_href_model_json2 = ( + public_gateway_identity_public_gateway_identity_by_href_model.to_dict() + ) + assert ( + public_gateway_identity_public_gateway_identity_by_href_model_json2 + == public_gateway_identity_public_gateway_identity_by_href_model_json + ) class TestModel_PublicGatewayIdentityPublicGatewayIdentityById: @@ -88905,19 +98363,37 @@ def test_public_gateway_identity_public_gateway_identity_by_id_serialization(sel public_gateway_identity_public_gateway_identity_by_id_model_json['id'] = 'dc5431ef-1fc6-4861-adc9-a59d077d1241' # Construct a model instance of PublicGatewayIdentityPublicGatewayIdentityById by calling from_dict on the json representation - public_gateway_identity_public_gateway_identity_by_id_model = PublicGatewayIdentityPublicGatewayIdentityById.from_dict(public_gateway_identity_public_gateway_identity_by_id_model_json) + public_gateway_identity_public_gateway_identity_by_id_model = ( + PublicGatewayIdentityPublicGatewayIdentityById.from_dict( + public_gateway_identity_public_gateway_identity_by_id_model_json + ) + ) assert public_gateway_identity_public_gateway_identity_by_id_model != False # Construct a model instance of PublicGatewayIdentityPublicGatewayIdentityById by calling from_dict on the json representation - public_gateway_identity_public_gateway_identity_by_id_model_dict = PublicGatewayIdentityPublicGatewayIdentityById.from_dict(public_gateway_identity_public_gateway_identity_by_id_model_json).__dict__ - public_gateway_identity_public_gateway_identity_by_id_model2 = PublicGatewayIdentityPublicGatewayIdentityById(**public_gateway_identity_public_gateway_identity_by_id_model_dict) + public_gateway_identity_public_gateway_identity_by_id_model_dict = ( + PublicGatewayIdentityPublicGatewayIdentityById.from_dict( + public_gateway_identity_public_gateway_identity_by_id_model_json + ).__dict__ + ) + public_gateway_identity_public_gateway_identity_by_id_model2 = PublicGatewayIdentityPublicGatewayIdentityById( + **public_gateway_identity_public_gateway_identity_by_id_model_dict + ) # Verify the model instances are equivalent - assert public_gateway_identity_public_gateway_identity_by_id_model == public_gateway_identity_public_gateway_identity_by_id_model2 + assert ( + public_gateway_identity_public_gateway_identity_by_id_model + == public_gateway_identity_public_gateway_identity_by_id_model2 + ) # Convert model instance back to dict and verify no loss of data - public_gateway_identity_public_gateway_identity_by_id_model_json2 = public_gateway_identity_public_gateway_identity_by_id_model.to_dict() - assert public_gateway_identity_public_gateway_identity_by_id_model_json2 == public_gateway_identity_public_gateway_identity_by_id_model_json + public_gateway_identity_public_gateway_identity_by_id_model_json2 = ( + public_gateway_identity_public_gateway_identity_by_id_model.to_dict() + ) + assert ( + public_gateway_identity_public_gateway_identity_by_id_model_json2 + == public_gateway_identity_public_gateway_identity_by_id_model_json + ) class TestModel_RegionIdentityByHref: @@ -88992,14 +98468,18 @@ def test_reservation_identity_by_crn_serialization(self): # Construct a json representation of a ReservationIdentityByCRN model reservation_identity_by_crn_model_json = {} - reservation_identity_by_crn_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::reservation:0717-ba49df72-37b8-43ac-98da-f8e029de0e63' + reservation_identity_by_crn_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::reservation:0717-ba49df72-37b8-43ac-98da-f8e029de0e63' + ) # Construct a model instance of ReservationIdentityByCRN by calling from_dict on the json representation reservation_identity_by_crn_model = ReservationIdentityByCRN.from_dict(reservation_identity_by_crn_model_json) assert reservation_identity_by_crn_model != False # Construct a model instance of ReservationIdentityByCRN by calling from_dict on the json representation - reservation_identity_by_crn_model_dict = ReservationIdentityByCRN.from_dict(reservation_identity_by_crn_model_json).__dict__ + reservation_identity_by_crn_model_dict = ReservationIdentityByCRN.from_dict( + reservation_identity_by_crn_model_json + ).__dict__ reservation_identity_by_crn_model2 = ReservationIdentityByCRN(**reservation_identity_by_crn_model_dict) # Verify the model instances are equivalent @@ -89022,14 +98502,20 @@ def test_reservation_identity_by_href_serialization(self): # Construct a json representation of a ReservationIdentityByHref model reservation_identity_by_href_model_json = {} - reservation_identity_by_href_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/reservations/0717-ba49df72-37b8-43ac-98da-f8e029de0e63' + reservation_identity_by_href_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/reservations/0717-ba49df72-37b8-43ac-98da-f8e029de0e63' + ) # Construct a model instance of ReservationIdentityByHref by calling from_dict on the json representation - reservation_identity_by_href_model = ReservationIdentityByHref.from_dict(reservation_identity_by_href_model_json) + reservation_identity_by_href_model = ReservationIdentityByHref.from_dict( + reservation_identity_by_href_model_json + ) assert reservation_identity_by_href_model != False # Construct a model instance of ReservationIdentityByHref by calling from_dict on the json representation - reservation_identity_by_href_model_dict = ReservationIdentityByHref.from_dict(reservation_identity_by_href_model_json).__dict__ + reservation_identity_by_href_model_dict = ReservationIdentityByHref.from_dict( + reservation_identity_by_href_model_json + ).__dict__ reservation_identity_by_href_model2 = ReservationIdentityByHref(**reservation_identity_by_href_model_dict) # Verify the model instances are equivalent @@ -89059,7 +98545,9 @@ def test_reservation_identity_by_id_serialization(self): assert reservation_identity_by_id_model != False # Construct a model instance of ReservationIdentityById by calling from_dict on the json representation - reservation_identity_by_id_model_dict = ReservationIdentityById.from_dict(reservation_identity_by_id_model_json).__dict__ + reservation_identity_by_id_model_dict = ReservationIdentityById.from_dict( + reservation_identity_by_id_model_json + ).__dict__ reservation_identity_by_id_model2 = ReservationIdentityById(**reservation_identity_by_id_model_dict) # Verify the model instances are equivalent @@ -89087,26 +98575,56 @@ def test_reserved_ip_target_bare_metal_server_network_interface_reference_target # Construct a json representation of a ReservedIPTargetBareMetalServerNetworkInterfaceReferenceTargetContext model reserved_ip_target_bare_metal_server_network_interface_reference_target_context_model_json = {} - reserved_ip_target_bare_metal_server_network_interface_reference_target_context_model_json['deleted'] = deleted_model - reserved_ip_target_bare_metal_server_network_interface_reference_target_context_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/bare_metal_servers/0717-aad10fd7-8a02-4f3e-97f3-b18bd82cf304/network_interfaces/0717-da8c43ec-b6ca-4bd2-871e-72e288c66ee6' - reserved_ip_target_bare_metal_server_network_interface_reference_target_context_model_json['id'] = '0717-da8c43ec-b6ca-4bd2-871e-72e288c66ee6' - reserved_ip_target_bare_metal_server_network_interface_reference_target_context_model_json['name'] = 'my-bare-metal-server-network-interface' - reserved_ip_target_bare_metal_server_network_interface_reference_target_context_model_json['resource_type'] = 'network_interface' + reserved_ip_target_bare_metal_server_network_interface_reference_target_context_model_json['deleted'] = ( + deleted_model + ) + reserved_ip_target_bare_metal_server_network_interface_reference_target_context_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/bare_metal_servers/0717-aad10fd7-8a02-4f3e-97f3-b18bd82cf304/network_interfaces/0717-da8c43ec-b6ca-4bd2-871e-72e288c66ee6' + ) + reserved_ip_target_bare_metal_server_network_interface_reference_target_context_model_json['id'] = ( + '0717-da8c43ec-b6ca-4bd2-871e-72e288c66ee6' + ) + reserved_ip_target_bare_metal_server_network_interface_reference_target_context_model_json['name'] = ( + 'my-bare-metal-server-network-interface' + ) + reserved_ip_target_bare_metal_server_network_interface_reference_target_context_model_json['resource_type'] = ( + 'network_interface' + ) # Construct a model instance of ReservedIPTargetBareMetalServerNetworkInterfaceReferenceTargetContext by calling from_dict on the json representation - reserved_ip_target_bare_metal_server_network_interface_reference_target_context_model = ReservedIPTargetBareMetalServerNetworkInterfaceReferenceTargetContext.from_dict(reserved_ip_target_bare_metal_server_network_interface_reference_target_context_model_json) + reserved_ip_target_bare_metal_server_network_interface_reference_target_context_model = ( + ReservedIPTargetBareMetalServerNetworkInterfaceReferenceTargetContext.from_dict( + reserved_ip_target_bare_metal_server_network_interface_reference_target_context_model_json + ) + ) assert reserved_ip_target_bare_metal_server_network_interface_reference_target_context_model != False # Construct a model instance of ReservedIPTargetBareMetalServerNetworkInterfaceReferenceTargetContext by calling from_dict on the json representation - reserved_ip_target_bare_metal_server_network_interface_reference_target_context_model_dict = ReservedIPTargetBareMetalServerNetworkInterfaceReferenceTargetContext.from_dict(reserved_ip_target_bare_metal_server_network_interface_reference_target_context_model_json).__dict__ - reserved_ip_target_bare_metal_server_network_interface_reference_target_context_model2 = ReservedIPTargetBareMetalServerNetworkInterfaceReferenceTargetContext(**reserved_ip_target_bare_metal_server_network_interface_reference_target_context_model_dict) + reserved_ip_target_bare_metal_server_network_interface_reference_target_context_model_dict = ( + ReservedIPTargetBareMetalServerNetworkInterfaceReferenceTargetContext.from_dict( + reserved_ip_target_bare_metal_server_network_interface_reference_target_context_model_json + ).__dict__ + ) + reserved_ip_target_bare_metal_server_network_interface_reference_target_context_model2 = ( + ReservedIPTargetBareMetalServerNetworkInterfaceReferenceTargetContext( + **reserved_ip_target_bare_metal_server_network_interface_reference_target_context_model_dict + ) + ) # Verify the model instances are equivalent - assert reserved_ip_target_bare_metal_server_network_interface_reference_target_context_model == reserved_ip_target_bare_metal_server_network_interface_reference_target_context_model2 + assert ( + reserved_ip_target_bare_metal_server_network_interface_reference_target_context_model + == reserved_ip_target_bare_metal_server_network_interface_reference_target_context_model2 + ) # Convert model instance back to dict and verify no loss of data - reserved_ip_target_bare_metal_server_network_interface_reference_target_context_model_json2 = reserved_ip_target_bare_metal_server_network_interface_reference_target_context_model.to_dict() - assert reserved_ip_target_bare_metal_server_network_interface_reference_target_context_model_json2 == reserved_ip_target_bare_metal_server_network_interface_reference_target_context_model_json + reserved_ip_target_bare_metal_server_network_interface_reference_target_context_model_json2 = ( + reserved_ip_target_bare_metal_server_network_interface_reference_target_context_model.to_dict() + ) + assert ( + reserved_ip_target_bare_metal_server_network_interface_reference_target_context_model_json2 + == reserved_ip_target_bare_metal_server_network_interface_reference_target_context_model_json + ) class TestModel_ReservedIPTargetEndpointGatewayReference: @@ -89126,27 +98644,44 @@ def test_reserved_ip_target_endpoint_gateway_reference_serialization(self): # Construct a json representation of a ReservedIPTargetEndpointGatewayReference model reserved_ip_target_endpoint_gateway_reference_model_json = {} - reserved_ip_target_endpoint_gateway_reference_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::endpoint-gateway:r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5' + reserved_ip_target_endpoint_gateway_reference_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::endpoint-gateway:r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5' + ) reserved_ip_target_endpoint_gateway_reference_model_json['deleted'] = deleted_model - reserved_ip_target_endpoint_gateway_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/endpoint_gateways/r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5' + reserved_ip_target_endpoint_gateway_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/endpoint_gateways/r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5' + ) reserved_ip_target_endpoint_gateway_reference_model_json['id'] = 'r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5' reserved_ip_target_endpoint_gateway_reference_model_json['name'] = 'my-endpoint-gateway' reserved_ip_target_endpoint_gateway_reference_model_json['resource_type'] = 'endpoint_gateway' # Construct a model instance of ReservedIPTargetEndpointGatewayReference by calling from_dict on the json representation - reserved_ip_target_endpoint_gateway_reference_model = ReservedIPTargetEndpointGatewayReference.from_dict(reserved_ip_target_endpoint_gateway_reference_model_json) + reserved_ip_target_endpoint_gateway_reference_model = ReservedIPTargetEndpointGatewayReference.from_dict( + reserved_ip_target_endpoint_gateway_reference_model_json + ) assert reserved_ip_target_endpoint_gateway_reference_model != False # Construct a model instance of ReservedIPTargetEndpointGatewayReference by calling from_dict on the json representation - reserved_ip_target_endpoint_gateway_reference_model_dict = ReservedIPTargetEndpointGatewayReference.from_dict(reserved_ip_target_endpoint_gateway_reference_model_json).__dict__ - reserved_ip_target_endpoint_gateway_reference_model2 = ReservedIPTargetEndpointGatewayReference(**reserved_ip_target_endpoint_gateway_reference_model_dict) + reserved_ip_target_endpoint_gateway_reference_model_dict = ReservedIPTargetEndpointGatewayReference.from_dict( + reserved_ip_target_endpoint_gateway_reference_model_json + ).__dict__ + reserved_ip_target_endpoint_gateway_reference_model2 = ReservedIPTargetEndpointGatewayReference( + **reserved_ip_target_endpoint_gateway_reference_model_dict + ) # Verify the model instances are equivalent - assert reserved_ip_target_endpoint_gateway_reference_model == reserved_ip_target_endpoint_gateway_reference_model2 + assert ( + reserved_ip_target_endpoint_gateway_reference_model == reserved_ip_target_endpoint_gateway_reference_model2 + ) # Convert model instance back to dict and verify no loss of data - reserved_ip_target_endpoint_gateway_reference_model_json2 = reserved_ip_target_endpoint_gateway_reference_model.to_dict() - assert reserved_ip_target_endpoint_gateway_reference_model_json2 == reserved_ip_target_endpoint_gateway_reference_model_json + reserved_ip_target_endpoint_gateway_reference_model_json2 = ( + reserved_ip_target_endpoint_gateway_reference_model.to_dict() + ) + assert ( + reserved_ip_target_endpoint_gateway_reference_model_json2 + == reserved_ip_target_endpoint_gateway_reference_model_json + ) class TestModel_ReservedIPTargetGenericResourceReference: @@ -89166,24 +98701,39 @@ def test_reserved_ip_target_generic_resource_reference_serialization(self): # Construct a json representation of a ReservedIPTargetGenericResourceReference model reserved_ip_target_generic_resource_reference_model_json = {} - reserved_ip_target_generic_resource_reference_model_json['crn'] = 'crn:v1:bluemix:public:containers-kubernetes:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:9qtrw1peys2spdfs7agb::' + reserved_ip_target_generic_resource_reference_model_json['crn'] = ( + 'crn:v1:bluemix:public:containers-kubernetes:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:9qtrw1peys2spdfs7agb::' + ) reserved_ip_target_generic_resource_reference_model_json['deleted'] = deleted_model reserved_ip_target_generic_resource_reference_model_json['resource_type'] = 'cloud_resource' # Construct a model instance of ReservedIPTargetGenericResourceReference by calling from_dict on the json representation - reserved_ip_target_generic_resource_reference_model = ReservedIPTargetGenericResourceReference.from_dict(reserved_ip_target_generic_resource_reference_model_json) + reserved_ip_target_generic_resource_reference_model = ReservedIPTargetGenericResourceReference.from_dict( + reserved_ip_target_generic_resource_reference_model_json + ) assert reserved_ip_target_generic_resource_reference_model != False # Construct a model instance of ReservedIPTargetGenericResourceReference by calling from_dict on the json representation - reserved_ip_target_generic_resource_reference_model_dict = ReservedIPTargetGenericResourceReference.from_dict(reserved_ip_target_generic_resource_reference_model_json).__dict__ - reserved_ip_target_generic_resource_reference_model2 = ReservedIPTargetGenericResourceReference(**reserved_ip_target_generic_resource_reference_model_dict) + reserved_ip_target_generic_resource_reference_model_dict = ReservedIPTargetGenericResourceReference.from_dict( + reserved_ip_target_generic_resource_reference_model_json + ).__dict__ + reserved_ip_target_generic_resource_reference_model2 = ReservedIPTargetGenericResourceReference( + **reserved_ip_target_generic_resource_reference_model_dict + ) # Verify the model instances are equivalent - assert reserved_ip_target_generic_resource_reference_model == reserved_ip_target_generic_resource_reference_model2 + assert ( + reserved_ip_target_generic_resource_reference_model == reserved_ip_target_generic_resource_reference_model2 + ) # Convert model instance back to dict and verify no loss of data - reserved_ip_target_generic_resource_reference_model_json2 = reserved_ip_target_generic_resource_reference_model.to_dict() - assert reserved_ip_target_generic_resource_reference_model_json2 == reserved_ip_target_generic_resource_reference_model_json + reserved_ip_target_generic_resource_reference_model_json2 = ( + reserved_ip_target_generic_resource_reference_model.to_dict() + ) + assert ( + reserved_ip_target_generic_resource_reference_model_json2 + == reserved_ip_target_generic_resource_reference_model_json + ) class TestModel_ReservedIPTargetLoadBalancerReference: @@ -89203,27 +98753,42 @@ def test_reserved_ip_target_load_balancer_reference_serialization(self): # Construct a json representation of a ReservedIPTargetLoadBalancerReference model reserved_ip_target_load_balancer_reference_model_json = {} - reserved_ip_target_load_balancer_reference_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::load-balancer:dd754295-e9e0-4c9d-bf6c-58fbc59e5727' + reserved_ip_target_load_balancer_reference_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::load-balancer:dd754295-e9e0-4c9d-bf6c-58fbc59e5727' + ) reserved_ip_target_load_balancer_reference_model_json['deleted'] = deleted_model - reserved_ip_target_load_balancer_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727' + reserved_ip_target_load_balancer_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727' + ) reserved_ip_target_load_balancer_reference_model_json['id'] = 'dd754295-e9e0-4c9d-bf6c-58fbc59e5727' reserved_ip_target_load_balancer_reference_model_json['name'] = 'my-load-balancer' reserved_ip_target_load_balancer_reference_model_json['resource_type'] = 'load_balancer' # Construct a model instance of ReservedIPTargetLoadBalancerReference by calling from_dict on the json representation - reserved_ip_target_load_balancer_reference_model = ReservedIPTargetLoadBalancerReference.from_dict(reserved_ip_target_load_balancer_reference_model_json) + reserved_ip_target_load_balancer_reference_model = ReservedIPTargetLoadBalancerReference.from_dict( + reserved_ip_target_load_balancer_reference_model_json + ) assert reserved_ip_target_load_balancer_reference_model != False # Construct a model instance of ReservedIPTargetLoadBalancerReference by calling from_dict on the json representation - reserved_ip_target_load_balancer_reference_model_dict = ReservedIPTargetLoadBalancerReference.from_dict(reserved_ip_target_load_balancer_reference_model_json).__dict__ - reserved_ip_target_load_balancer_reference_model2 = ReservedIPTargetLoadBalancerReference(**reserved_ip_target_load_balancer_reference_model_dict) + reserved_ip_target_load_balancer_reference_model_dict = ReservedIPTargetLoadBalancerReference.from_dict( + reserved_ip_target_load_balancer_reference_model_json + ).__dict__ + reserved_ip_target_load_balancer_reference_model2 = ReservedIPTargetLoadBalancerReference( + **reserved_ip_target_load_balancer_reference_model_dict + ) # Verify the model instances are equivalent assert reserved_ip_target_load_balancer_reference_model == reserved_ip_target_load_balancer_reference_model2 # Convert model instance back to dict and verify no loss of data - reserved_ip_target_load_balancer_reference_model_json2 = reserved_ip_target_load_balancer_reference_model.to_dict() - assert reserved_ip_target_load_balancer_reference_model_json2 == reserved_ip_target_load_balancer_reference_model_json + reserved_ip_target_load_balancer_reference_model_json2 = ( + reserved_ip_target_load_balancer_reference_model.to_dict() + ) + assert ( + reserved_ip_target_load_balancer_reference_model_json2 + == reserved_ip_target_load_balancer_reference_model_json + ) class TestModel_ReservedIPTargetNetworkInterfaceReferenceTargetContext: @@ -89244,25 +98809,51 @@ def test_reserved_ip_target_network_interface_reference_target_context_serializa # Construct a json representation of a ReservedIPTargetNetworkInterfaceReferenceTargetContext model reserved_ip_target_network_interface_reference_target_context_model_json = {} reserved_ip_target_network_interface_reference_target_context_model_json['deleted'] = deleted_model - reserved_ip_target_network_interface_reference_target_context_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/network_interfaces/0717-d54eb633-98ea-459d-aa00-6a8e780175a7' - reserved_ip_target_network_interface_reference_target_context_model_json['id'] = '0717-d54eb633-98ea-459d-aa00-6a8e780175a7' - reserved_ip_target_network_interface_reference_target_context_model_json['name'] = 'my-instance-network-interface' + reserved_ip_target_network_interface_reference_target_context_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/network_interfaces/0717-d54eb633-98ea-459d-aa00-6a8e780175a7' + ) + reserved_ip_target_network_interface_reference_target_context_model_json['id'] = ( + '0717-d54eb633-98ea-459d-aa00-6a8e780175a7' + ) + reserved_ip_target_network_interface_reference_target_context_model_json['name'] = ( + 'my-instance-network-interface' + ) reserved_ip_target_network_interface_reference_target_context_model_json['resource_type'] = 'network_interface' # Construct a model instance of ReservedIPTargetNetworkInterfaceReferenceTargetContext by calling from_dict on the json representation - reserved_ip_target_network_interface_reference_target_context_model = ReservedIPTargetNetworkInterfaceReferenceTargetContext.from_dict(reserved_ip_target_network_interface_reference_target_context_model_json) + reserved_ip_target_network_interface_reference_target_context_model = ( + ReservedIPTargetNetworkInterfaceReferenceTargetContext.from_dict( + reserved_ip_target_network_interface_reference_target_context_model_json + ) + ) assert reserved_ip_target_network_interface_reference_target_context_model != False # Construct a model instance of ReservedIPTargetNetworkInterfaceReferenceTargetContext by calling from_dict on the json representation - reserved_ip_target_network_interface_reference_target_context_model_dict = ReservedIPTargetNetworkInterfaceReferenceTargetContext.from_dict(reserved_ip_target_network_interface_reference_target_context_model_json).__dict__ - reserved_ip_target_network_interface_reference_target_context_model2 = ReservedIPTargetNetworkInterfaceReferenceTargetContext(**reserved_ip_target_network_interface_reference_target_context_model_dict) + reserved_ip_target_network_interface_reference_target_context_model_dict = ( + ReservedIPTargetNetworkInterfaceReferenceTargetContext.from_dict( + reserved_ip_target_network_interface_reference_target_context_model_json + ).__dict__ + ) + reserved_ip_target_network_interface_reference_target_context_model2 = ( + ReservedIPTargetNetworkInterfaceReferenceTargetContext( + **reserved_ip_target_network_interface_reference_target_context_model_dict + ) + ) # Verify the model instances are equivalent - assert reserved_ip_target_network_interface_reference_target_context_model == reserved_ip_target_network_interface_reference_target_context_model2 + assert ( + reserved_ip_target_network_interface_reference_target_context_model + == reserved_ip_target_network_interface_reference_target_context_model2 + ) # Convert model instance back to dict and verify no loss of data - reserved_ip_target_network_interface_reference_target_context_model_json2 = reserved_ip_target_network_interface_reference_target_context_model.to_dict() - assert reserved_ip_target_network_interface_reference_target_context_model_json2 == reserved_ip_target_network_interface_reference_target_context_model_json + reserved_ip_target_network_interface_reference_target_context_model_json2 = ( + reserved_ip_target_network_interface_reference_target_context_model.to_dict() + ) + assert ( + reserved_ip_target_network_interface_reference_target_context_model_json2 + == reserved_ip_target_network_interface_reference_target_context_model_json + ) class TestModel_ReservedIPTargetVPNGatewayReference: @@ -89282,27 +98873,39 @@ def test_reserved_ip_target_vpn_gateway_reference_serialization(self): # Construct a json representation of a ReservedIPTargetVPNGatewayReference model reserved_ip_target_vpn_gateway_reference_model_json = {} - reserved_ip_target_vpn_gateway_reference_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpn:ddf51bec-3424-11e8-b467-0ed5f89f718b' + reserved_ip_target_vpn_gateway_reference_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpn:ddf51bec-3424-11e8-b467-0ed5f89f718b' + ) reserved_ip_target_vpn_gateway_reference_model_json['deleted'] = deleted_model - reserved_ip_target_vpn_gateway_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b' + reserved_ip_target_vpn_gateway_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b' + ) reserved_ip_target_vpn_gateway_reference_model_json['id'] = 'ddf51bec-3424-11e8-b467-0ed5f89f718b' reserved_ip_target_vpn_gateway_reference_model_json['name'] = 'my-vpn-gateway' reserved_ip_target_vpn_gateway_reference_model_json['resource_type'] = 'vpn_gateway' # Construct a model instance of ReservedIPTargetVPNGatewayReference by calling from_dict on the json representation - reserved_ip_target_vpn_gateway_reference_model = ReservedIPTargetVPNGatewayReference.from_dict(reserved_ip_target_vpn_gateway_reference_model_json) + reserved_ip_target_vpn_gateway_reference_model = ReservedIPTargetVPNGatewayReference.from_dict( + reserved_ip_target_vpn_gateway_reference_model_json + ) assert reserved_ip_target_vpn_gateway_reference_model != False # Construct a model instance of ReservedIPTargetVPNGatewayReference by calling from_dict on the json representation - reserved_ip_target_vpn_gateway_reference_model_dict = ReservedIPTargetVPNGatewayReference.from_dict(reserved_ip_target_vpn_gateway_reference_model_json).__dict__ - reserved_ip_target_vpn_gateway_reference_model2 = ReservedIPTargetVPNGatewayReference(**reserved_ip_target_vpn_gateway_reference_model_dict) + reserved_ip_target_vpn_gateway_reference_model_dict = ReservedIPTargetVPNGatewayReference.from_dict( + reserved_ip_target_vpn_gateway_reference_model_json + ).__dict__ + reserved_ip_target_vpn_gateway_reference_model2 = ReservedIPTargetVPNGatewayReference( + **reserved_ip_target_vpn_gateway_reference_model_dict + ) # Verify the model instances are equivalent assert reserved_ip_target_vpn_gateway_reference_model == reserved_ip_target_vpn_gateway_reference_model2 # Convert model instance back to dict and verify no loss of data reserved_ip_target_vpn_gateway_reference_model_json2 = reserved_ip_target_vpn_gateway_reference_model.to_dict() - assert reserved_ip_target_vpn_gateway_reference_model_json2 == reserved_ip_target_vpn_gateway_reference_model_json + assert ( + reserved_ip_target_vpn_gateway_reference_model_json2 == reserved_ip_target_vpn_gateway_reference_model_json + ) class TestModel_ReservedIPTargetVPNServerReference: @@ -89322,20 +98925,30 @@ def test_reserved_ip_target_vpn_server_reference_serialization(self): # Construct a json representation of a ReservedIPTargetVPNServerReference model reserved_ip_target_vpn_server_reference_model_json = {} - reserved_ip_target_vpn_server_reference_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpn-server:r006-d7cc5196-9864-48c4-82d8-3f30da41fcc5' + reserved_ip_target_vpn_server_reference_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpn-server:r006-d7cc5196-9864-48c4-82d8-3f30da41fcc5' + ) reserved_ip_target_vpn_server_reference_model_json['deleted'] = deleted_model - reserved_ip_target_vpn_server_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpn_servers/r006-d7cc5196-9864-48c4-82d8-3f30da41fcc5' + reserved_ip_target_vpn_server_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpn_servers/r006-d7cc5196-9864-48c4-82d8-3f30da41fcc5' + ) reserved_ip_target_vpn_server_reference_model_json['id'] = 'r006-d7cc5196-9864-48c4-82d8-3f30da41fcc5' reserved_ip_target_vpn_server_reference_model_json['name'] = 'my-vpn-server' reserved_ip_target_vpn_server_reference_model_json['resource_type'] = 'vpn_server' # Construct a model instance of ReservedIPTargetVPNServerReference by calling from_dict on the json representation - reserved_ip_target_vpn_server_reference_model = ReservedIPTargetVPNServerReference.from_dict(reserved_ip_target_vpn_server_reference_model_json) + reserved_ip_target_vpn_server_reference_model = ReservedIPTargetVPNServerReference.from_dict( + reserved_ip_target_vpn_server_reference_model_json + ) assert reserved_ip_target_vpn_server_reference_model != False # Construct a model instance of ReservedIPTargetVPNServerReference by calling from_dict on the json representation - reserved_ip_target_vpn_server_reference_model_dict = ReservedIPTargetVPNServerReference.from_dict(reserved_ip_target_vpn_server_reference_model_json).__dict__ - reserved_ip_target_vpn_server_reference_model2 = ReservedIPTargetVPNServerReference(**reserved_ip_target_vpn_server_reference_model_dict) + reserved_ip_target_vpn_server_reference_model_dict = ReservedIPTargetVPNServerReference.from_dict( + reserved_ip_target_vpn_server_reference_model_json + ).__dict__ + reserved_ip_target_vpn_server_reference_model2 = ReservedIPTargetVPNServerReference( + **reserved_ip_target_vpn_server_reference_model_dict + ) # Verify the model instances are equivalent assert reserved_ip_target_vpn_server_reference_model == reserved_ip_target_vpn_server_reference_model2 @@ -89357,26 +98970,56 @@ def test_reserved_ip_target_virtual_network_interface_reference_reserved_ip_targ # Construct a json representation of a ReservedIPTargetVirtualNetworkInterfaceReferenceReservedIPTargetContext model reserved_ip_target_virtual_network_interface_reference_reserved_ip_target_context_model_json = {} - reserved_ip_target_virtual_network_interface_reference_reserved_ip_target_context_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::virtual-network-interface:0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' - reserved_ip_target_virtual_network_interface_reference_reserved_ip_target_context_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/virtual_network_interfaces/0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' - reserved_ip_target_virtual_network_interface_reference_reserved_ip_target_context_model_json['id'] = '0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' - reserved_ip_target_virtual_network_interface_reference_reserved_ip_target_context_model_json['name'] = 'my-virtual-network-interface' - reserved_ip_target_virtual_network_interface_reference_reserved_ip_target_context_model_json['resource_type'] = 'virtual_network_interface' + reserved_ip_target_virtual_network_interface_reference_reserved_ip_target_context_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::virtual-network-interface:0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + ) + reserved_ip_target_virtual_network_interface_reference_reserved_ip_target_context_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/virtual_network_interfaces/0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + ) + reserved_ip_target_virtual_network_interface_reference_reserved_ip_target_context_model_json['id'] = ( + '0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + ) + reserved_ip_target_virtual_network_interface_reference_reserved_ip_target_context_model_json['name'] = ( + 'my-virtual-network-interface' + ) + reserved_ip_target_virtual_network_interface_reference_reserved_ip_target_context_model_json[ + 'resource_type' + ] = 'virtual_network_interface' # Construct a model instance of ReservedIPTargetVirtualNetworkInterfaceReferenceReservedIPTargetContext by calling from_dict on the json representation - reserved_ip_target_virtual_network_interface_reference_reserved_ip_target_context_model = ReservedIPTargetVirtualNetworkInterfaceReferenceReservedIPTargetContext.from_dict(reserved_ip_target_virtual_network_interface_reference_reserved_ip_target_context_model_json) + reserved_ip_target_virtual_network_interface_reference_reserved_ip_target_context_model = ( + ReservedIPTargetVirtualNetworkInterfaceReferenceReservedIPTargetContext.from_dict( + reserved_ip_target_virtual_network_interface_reference_reserved_ip_target_context_model_json + ) + ) assert reserved_ip_target_virtual_network_interface_reference_reserved_ip_target_context_model != False # Construct a model instance of ReservedIPTargetVirtualNetworkInterfaceReferenceReservedIPTargetContext by calling from_dict on the json representation - reserved_ip_target_virtual_network_interface_reference_reserved_ip_target_context_model_dict = ReservedIPTargetVirtualNetworkInterfaceReferenceReservedIPTargetContext.from_dict(reserved_ip_target_virtual_network_interface_reference_reserved_ip_target_context_model_json).__dict__ - reserved_ip_target_virtual_network_interface_reference_reserved_ip_target_context_model2 = ReservedIPTargetVirtualNetworkInterfaceReferenceReservedIPTargetContext(**reserved_ip_target_virtual_network_interface_reference_reserved_ip_target_context_model_dict) + reserved_ip_target_virtual_network_interface_reference_reserved_ip_target_context_model_dict = ( + ReservedIPTargetVirtualNetworkInterfaceReferenceReservedIPTargetContext.from_dict( + reserved_ip_target_virtual_network_interface_reference_reserved_ip_target_context_model_json + ).__dict__ + ) + reserved_ip_target_virtual_network_interface_reference_reserved_ip_target_context_model2 = ( + ReservedIPTargetVirtualNetworkInterfaceReferenceReservedIPTargetContext( + **reserved_ip_target_virtual_network_interface_reference_reserved_ip_target_context_model_dict + ) + ) # Verify the model instances are equivalent - assert reserved_ip_target_virtual_network_interface_reference_reserved_ip_target_context_model == reserved_ip_target_virtual_network_interface_reference_reserved_ip_target_context_model2 + assert ( + reserved_ip_target_virtual_network_interface_reference_reserved_ip_target_context_model + == reserved_ip_target_virtual_network_interface_reference_reserved_ip_target_context_model2 + ) # Convert model instance back to dict and verify no loss of data - reserved_ip_target_virtual_network_interface_reference_reserved_ip_target_context_model_json2 = reserved_ip_target_virtual_network_interface_reference_reserved_ip_target_context_model.to_dict() - assert reserved_ip_target_virtual_network_interface_reference_reserved_ip_target_context_model_json2 == reserved_ip_target_virtual_network_interface_reference_reserved_ip_target_context_model_json + reserved_ip_target_virtual_network_interface_reference_reserved_ip_target_context_model_json2 = ( + reserved_ip_target_virtual_network_interface_reference_reserved_ip_target_context_model.to_dict() + ) + assert ( + reserved_ip_target_virtual_network_interface_reference_reserved_ip_target_context_model_json2 + == reserved_ip_target_virtual_network_interface_reference_reserved_ip_target_context_model_json + ) class TestModel_ResourceGroupIdentityById: @@ -89394,11 +99037,15 @@ def test_resource_group_identity_by_id_serialization(self): resource_group_identity_by_id_model_json['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' # Construct a model instance of ResourceGroupIdentityById by calling from_dict on the json representation - resource_group_identity_by_id_model = ResourceGroupIdentityById.from_dict(resource_group_identity_by_id_model_json) + resource_group_identity_by_id_model = ResourceGroupIdentityById.from_dict( + resource_group_identity_by_id_model_json + ) assert resource_group_identity_by_id_model != False # Construct a model instance of ResourceGroupIdentityById by calling from_dict on the json representation - resource_group_identity_by_id_model_dict = ResourceGroupIdentityById.from_dict(resource_group_identity_by_id_model_json).__dict__ + resource_group_identity_by_id_model_dict = ResourceGroupIdentityById.from_dict( + resource_group_identity_by_id_model_json + ).__dict__ resource_group_identity_by_id_model2 = ResourceGroupIdentityById(**resource_group_identity_by_id_model_dict) # Verify the model instances are equivalent @@ -89426,20 +99073,30 @@ def test_route_creator_vpn_gateway_reference_serialization(self): # Construct a json representation of a RouteCreatorVPNGatewayReference model route_creator_vpn_gateway_reference_model_json = {} - route_creator_vpn_gateway_reference_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpn:ddf51bec-3424-11e8-b467-0ed5f89f718b' + route_creator_vpn_gateway_reference_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpn:ddf51bec-3424-11e8-b467-0ed5f89f718b' + ) route_creator_vpn_gateway_reference_model_json['deleted'] = deleted_model - route_creator_vpn_gateway_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b' + route_creator_vpn_gateway_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b' + ) route_creator_vpn_gateway_reference_model_json['id'] = 'ddf51bec-3424-11e8-b467-0ed5f89f718b' route_creator_vpn_gateway_reference_model_json['name'] = 'my-vpn-gateway' route_creator_vpn_gateway_reference_model_json['resource_type'] = 'vpn_gateway' # Construct a model instance of RouteCreatorVPNGatewayReference by calling from_dict on the json representation - route_creator_vpn_gateway_reference_model = RouteCreatorVPNGatewayReference.from_dict(route_creator_vpn_gateway_reference_model_json) + route_creator_vpn_gateway_reference_model = RouteCreatorVPNGatewayReference.from_dict( + route_creator_vpn_gateway_reference_model_json + ) assert route_creator_vpn_gateway_reference_model != False # Construct a model instance of RouteCreatorVPNGatewayReference by calling from_dict on the json representation - route_creator_vpn_gateway_reference_model_dict = RouteCreatorVPNGatewayReference.from_dict(route_creator_vpn_gateway_reference_model_json).__dict__ - route_creator_vpn_gateway_reference_model2 = RouteCreatorVPNGatewayReference(**route_creator_vpn_gateway_reference_model_dict) + route_creator_vpn_gateway_reference_model_dict = RouteCreatorVPNGatewayReference.from_dict( + route_creator_vpn_gateway_reference_model_json + ).__dict__ + route_creator_vpn_gateway_reference_model2 = RouteCreatorVPNGatewayReference( + **route_creator_vpn_gateway_reference_model_dict + ) # Verify the model instances are equivalent assert route_creator_vpn_gateway_reference_model == route_creator_vpn_gateway_reference_model2 @@ -89466,20 +99123,30 @@ def test_route_creator_vpn_server_reference_serialization(self): # Construct a json representation of a RouteCreatorVPNServerReference model route_creator_vpn_server_reference_model_json = {} - route_creator_vpn_server_reference_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpn-server:r006-d7cc5196-9864-48c4-82d8-3f30da41fcc5' + route_creator_vpn_server_reference_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpn-server:r006-d7cc5196-9864-48c4-82d8-3f30da41fcc5' + ) route_creator_vpn_server_reference_model_json['deleted'] = deleted_model - route_creator_vpn_server_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpn_servers/r006-d7cc5196-9864-48c4-82d8-3f30da41fcc5' + route_creator_vpn_server_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpn_servers/r006-d7cc5196-9864-48c4-82d8-3f30da41fcc5' + ) route_creator_vpn_server_reference_model_json['id'] = 'r006-d7cc5196-9864-48c4-82d8-3f30da41fcc5' route_creator_vpn_server_reference_model_json['name'] = 'my-vpn-server' route_creator_vpn_server_reference_model_json['resource_type'] = 'vpn_server' # Construct a model instance of RouteCreatorVPNServerReference by calling from_dict on the json representation - route_creator_vpn_server_reference_model = RouteCreatorVPNServerReference.from_dict(route_creator_vpn_server_reference_model_json) + route_creator_vpn_server_reference_model = RouteCreatorVPNServerReference.from_dict( + route_creator_vpn_server_reference_model_json + ) assert route_creator_vpn_server_reference_model != False # Construct a model instance of RouteCreatorVPNServerReference by calling from_dict on the json representation - route_creator_vpn_server_reference_model_dict = RouteCreatorVPNServerReference.from_dict(route_creator_vpn_server_reference_model_json).__dict__ - route_creator_vpn_server_reference_model2 = RouteCreatorVPNServerReference(**route_creator_vpn_server_reference_model_dict) + route_creator_vpn_server_reference_model_dict = RouteCreatorVPNServerReference.from_dict( + route_creator_vpn_server_reference_model_json + ).__dict__ + route_creator_vpn_server_reference_model2 = RouteCreatorVPNServerReference( + **route_creator_vpn_server_reference_model_dict + ) # Verify the model instances are equivalent assert route_creator_vpn_server_reference_model == route_creator_vpn_server_reference_model2 @@ -89537,25 +99204,43 @@ def test_route_next_hop_vpn_gateway_connection_reference_serialization(self): # Construct a json representation of a RouteNextHopVPNGatewayConnectionReference model route_next_hop_vpn_gateway_connection_reference_model_json = {} route_next_hop_vpn_gateway_connection_reference_model_json['deleted'] = deleted_model - route_next_hop_vpn_gateway_connection_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b/connections/93487806-7743-4c46-81d6-72869883ea0b' + route_next_hop_vpn_gateway_connection_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b/connections/93487806-7743-4c46-81d6-72869883ea0b' + ) route_next_hop_vpn_gateway_connection_reference_model_json['id'] = 'a10a5771-dc23-442c-8460-c3601d8542f7' route_next_hop_vpn_gateway_connection_reference_model_json['name'] = 'my-vpn-connection' route_next_hop_vpn_gateway_connection_reference_model_json['resource_type'] = 'vpn_gateway_connection' # Construct a model instance of RouteNextHopVPNGatewayConnectionReference by calling from_dict on the json representation - route_next_hop_vpn_gateway_connection_reference_model = RouteNextHopVPNGatewayConnectionReference.from_dict(route_next_hop_vpn_gateway_connection_reference_model_json) + route_next_hop_vpn_gateway_connection_reference_model = RouteNextHopVPNGatewayConnectionReference.from_dict( + route_next_hop_vpn_gateway_connection_reference_model_json + ) assert route_next_hop_vpn_gateway_connection_reference_model != False # Construct a model instance of RouteNextHopVPNGatewayConnectionReference by calling from_dict on the json representation - route_next_hop_vpn_gateway_connection_reference_model_dict = RouteNextHopVPNGatewayConnectionReference.from_dict(route_next_hop_vpn_gateway_connection_reference_model_json).__dict__ - route_next_hop_vpn_gateway_connection_reference_model2 = RouteNextHopVPNGatewayConnectionReference(**route_next_hop_vpn_gateway_connection_reference_model_dict) + route_next_hop_vpn_gateway_connection_reference_model_dict = ( + RouteNextHopVPNGatewayConnectionReference.from_dict( + route_next_hop_vpn_gateway_connection_reference_model_json + ).__dict__ + ) + route_next_hop_vpn_gateway_connection_reference_model2 = RouteNextHopVPNGatewayConnectionReference( + **route_next_hop_vpn_gateway_connection_reference_model_dict + ) # Verify the model instances are equivalent - assert route_next_hop_vpn_gateway_connection_reference_model == route_next_hop_vpn_gateway_connection_reference_model2 + assert ( + route_next_hop_vpn_gateway_connection_reference_model + == route_next_hop_vpn_gateway_connection_reference_model2 + ) # Convert model instance back to dict and verify no loss of data - route_next_hop_vpn_gateway_connection_reference_model_json2 = route_next_hop_vpn_gateway_connection_reference_model.to_dict() - assert route_next_hop_vpn_gateway_connection_reference_model_json2 == route_next_hop_vpn_gateway_connection_reference_model_json + route_next_hop_vpn_gateway_connection_reference_model_json2 = ( + route_next_hop_vpn_gateway_connection_reference_model.to_dict() + ) + assert ( + route_next_hop_vpn_gateway_connection_reference_model_json2 + == route_next_hop_vpn_gateway_connection_reference_model_json + ) class TestModel_RoutingTableIdentityByCRN: @@ -89570,14 +99255,20 @@ def test_routing_table_identity_by_crn_serialization(self): # Construct a json representation of a RoutingTableIdentityByCRN model routing_table_identity_by_crn_model_json = {} - routing_table_identity_by_crn_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc-routing-table:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b/r006-6885e83f-03b2-4603-8a86-db2a0f55c840' + routing_table_identity_by_crn_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc-routing-table:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b/r006-6885e83f-03b2-4603-8a86-db2a0f55c840' + ) # Construct a model instance of RoutingTableIdentityByCRN by calling from_dict on the json representation - routing_table_identity_by_crn_model = RoutingTableIdentityByCRN.from_dict(routing_table_identity_by_crn_model_json) + routing_table_identity_by_crn_model = RoutingTableIdentityByCRN.from_dict( + routing_table_identity_by_crn_model_json + ) assert routing_table_identity_by_crn_model != False # Construct a model instance of RoutingTableIdentityByCRN by calling from_dict on the json representation - routing_table_identity_by_crn_model_dict = RoutingTableIdentityByCRN.from_dict(routing_table_identity_by_crn_model_json).__dict__ + routing_table_identity_by_crn_model_dict = RoutingTableIdentityByCRN.from_dict( + routing_table_identity_by_crn_model_json + ).__dict__ routing_table_identity_by_crn_model2 = RoutingTableIdentityByCRN(**routing_table_identity_by_crn_model_dict) # Verify the model instances are equivalent @@ -89600,14 +99291,20 @@ def test_routing_table_identity_by_href_serialization(self): # Construct a json representation of a RoutingTableIdentityByHref model routing_table_identity_by_href_model_json = {} - routing_table_identity_by_href_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b/routing_tables/r006-6885e83f-03b2-4603-8a86-db2a0f55c840' + routing_table_identity_by_href_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b/routing_tables/r006-6885e83f-03b2-4603-8a86-db2a0f55c840' + ) # Construct a model instance of RoutingTableIdentityByHref by calling from_dict on the json representation - routing_table_identity_by_href_model = RoutingTableIdentityByHref.from_dict(routing_table_identity_by_href_model_json) + routing_table_identity_by_href_model = RoutingTableIdentityByHref.from_dict( + routing_table_identity_by_href_model_json + ) assert routing_table_identity_by_href_model != False # Construct a model instance of RoutingTableIdentityByHref by calling from_dict on the json representation - routing_table_identity_by_href_model_dict = RoutingTableIdentityByHref.from_dict(routing_table_identity_by_href_model_json).__dict__ + routing_table_identity_by_href_model_dict = RoutingTableIdentityByHref.from_dict( + routing_table_identity_by_href_model_json + ).__dict__ routing_table_identity_by_href_model2 = RoutingTableIdentityByHref(**routing_table_identity_by_href_model_dict) # Verify the model instances are equivalent @@ -89637,7 +99334,9 @@ def test_routing_table_identity_by_id_serialization(self): assert routing_table_identity_by_id_model != False # Construct a model instance of RoutingTableIdentityById by calling from_dict on the json representation - routing_table_identity_by_id_model_dict = RoutingTableIdentityById.from_dict(routing_table_identity_by_id_model_json).__dict__ + routing_table_identity_by_id_model_dict = RoutingTableIdentityById.from_dict( + routing_table_identity_by_id_model_json + ).__dict__ routing_table_identity_by_id_model2 = RoutingTableIdentityById(**routing_table_identity_by_id_model_dict) # Verify the model instances are equivalent @@ -89660,14 +99359,20 @@ def test_security_group_identity_by_crn_serialization(self): # Construct a json representation of a SecurityGroupIdentityByCRN model security_group_identity_by_crn_model_json = {} - security_group_identity_by_crn_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::security-group:r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + security_group_identity_by_crn_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::security-group:r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + ) # Construct a model instance of SecurityGroupIdentityByCRN by calling from_dict on the json representation - security_group_identity_by_crn_model = SecurityGroupIdentityByCRN.from_dict(security_group_identity_by_crn_model_json) + security_group_identity_by_crn_model = SecurityGroupIdentityByCRN.from_dict( + security_group_identity_by_crn_model_json + ) assert security_group_identity_by_crn_model != False # Construct a model instance of SecurityGroupIdentityByCRN by calling from_dict on the json representation - security_group_identity_by_crn_model_dict = SecurityGroupIdentityByCRN.from_dict(security_group_identity_by_crn_model_json).__dict__ + security_group_identity_by_crn_model_dict = SecurityGroupIdentityByCRN.from_dict( + security_group_identity_by_crn_model_json + ).__dict__ security_group_identity_by_crn_model2 = SecurityGroupIdentityByCRN(**security_group_identity_by_crn_model_dict) # Verify the model instances are equivalent @@ -89690,15 +99395,23 @@ def test_security_group_identity_by_href_serialization(self): # Construct a json representation of a SecurityGroupIdentityByHref model security_group_identity_by_href_model_json = {} - security_group_identity_by_href_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + security_group_identity_by_href_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + ) # Construct a model instance of SecurityGroupIdentityByHref by calling from_dict on the json representation - security_group_identity_by_href_model = SecurityGroupIdentityByHref.from_dict(security_group_identity_by_href_model_json) + security_group_identity_by_href_model = SecurityGroupIdentityByHref.from_dict( + security_group_identity_by_href_model_json + ) assert security_group_identity_by_href_model != False # Construct a model instance of SecurityGroupIdentityByHref by calling from_dict on the json representation - security_group_identity_by_href_model_dict = SecurityGroupIdentityByHref.from_dict(security_group_identity_by_href_model_json).__dict__ - security_group_identity_by_href_model2 = SecurityGroupIdentityByHref(**security_group_identity_by_href_model_dict) + security_group_identity_by_href_model_dict = SecurityGroupIdentityByHref.from_dict( + security_group_identity_by_href_model_json + ).__dict__ + security_group_identity_by_href_model2 = SecurityGroupIdentityByHref( + **security_group_identity_by_href_model_dict + ) # Verify the model instances are equivalent assert security_group_identity_by_href_model == security_group_identity_by_href_model2 @@ -89723,11 +99436,15 @@ def test_security_group_identity_by_id_serialization(self): security_group_identity_by_id_model_json['id'] = 'r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' # Construct a model instance of SecurityGroupIdentityById by calling from_dict on the json representation - security_group_identity_by_id_model = SecurityGroupIdentityById.from_dict(security_group_identity_by_id_model_json) + security_group_identity_by_id_model = SecurityGroupIdentityById.from_dict( + security_group_identity_by_id_model_json + ) assert security_group_identity_by_id_model != False # Construct a model instance of SecurityGroupIdentityById by calling from_dict on the json representation - security_group_identity_by_id_model_dict = SecurityGroupIdentityById.from_dict(security_group_identity_by_id_model_json).__dict__ + security_group_identity_by_id_model_dict = SecurityGroupIdentityById.from_dict( + security_group_identity_by_id_model_json + ).__dict__ security_group_identity_by_id_model2 = SecurityGroupIdentityById(**security_group_identity_by_id_model_dict) # Verify the model instances are equivalent @@ -89753,12 +99470,18 @@ def test_security_group_rule_local_patch_cidr_serialization(self): security_group_rule_local_patch_cidr_model_json['cidr_block'] = '192.168.3.0/24' # Construct a model instance of SecurityGroupRuleLocalPatchCIDR by calling from_dict on the json representation - security_group_rule_local_patch_cidr_model = SecurityGroupRuleLocalPatchCIDR.from_dict(security_group_rule_local_patch_cidr_model_json) + security_group_rule_local_patch_cidr_model = SecurityGroupRuleLocalPatchCIDR.from_dict( + security_group_rule_local_patch_cidr_model_json + ) assert security_group_rule_local_patch_cidr_model != False # Construct a model instance of SecurityGroupRuleLocalPatchCIDR by calling from_dict on the json representation - security_group_rule_local_patch_cidr_model_dict = SecurityGroupRuleLocalPatchCIDR.from_dict(security_group_rule_local_patch_cidr_model_json).__dict__ - security_group_rule_local_patch_cidr_model2 = SecurityGroupRuleLocalPatchCIDR(**security_group_rule_local_patch_cidr_model_dict) + security_group_rule_local_patch_cidr_model_dict = SecurityGroupRuleLocalPatchCIDR.from_dict( + security_group_rule_local_patch_cidr_model_json + ).__dict__ + security_group_rule_local_patch_cidr_model2 = SecurityGroupRuleLocalPatchCIDR( + **security_group_rule_local_patch_cidr_model_dict + ) # Verify the model instances are equivalent assert security_group_rule_local_patch_cidr_model == security_group_rule_local_patch_cidr_model2 @@ -89783,12 +99506,18 @@ def test_security_group_rule_local_patch_ip_serialization(self): security_group_rule_local_patch_ip_model_json['address'] = '192.168.3.4' # Construct a model instance of SecurityGroupRuleLocalPatchIP by calling from_dict on the json representation - security_group_rule_local_patch_ip_model = SecurityGroupRuleLocalPatchIP.from_dict(security_group_rule_local_patch_ip_model_json) + security_group_rule_local_patch_ip_model = SecurityGroupRuleLocalPatchIP.from_dict( + security_group_rule_local_patch_ip_model_json + ) assert security_group_rule_local_patch_ip_model != False # Construct a model instance of SecurityGroupRuleLocalPatchIP by calling from_dict on the json representation - security_group_rule_local_patch_ip_model_dict = SecurityGroupRuleLocalPatchIP.from_dict(security_group_rule_local_patch_ip_model_json).__dict__ - security_group_rule_local_patch_ip_model2 = SecurityGroupRuleLocalPatchIP(**security_group_rule_local_patch_ip_model_dict) + security_group_rule_local_patch_ip_model_dict = SecurityGroupRuleLocalPatchIP.from_dict( + security_group_rule_local_patch_ip_model_json + ).__dict__ + security_group_rule_local_patch_ip_model2 = SecurityGroupRuleLocalPatchIP( + **security_group_rule_local_patch_ip_model_dict + ) # Verify the model instances are equivalent assert security_group_rule_local_patch_ip_model == security_group_rule_local_patch_ip_model2 @@ -89813,19 +99542,27 @@ def test_security_group_rule_local_prototype_cidr_serialization(self): security_group_rule_local_prototype_cidr_model_json['cidr_block'] = '192.168.3.0/24' # Construct a model instance of SecurityGroupRuleLocalPrototypeCIDR by calling from_dict on the json representation - security_group_rule_local_prototype_cidr_model = SecurityGroupRuleLocalPrototypeCIDR.from_dict(security_group_rule_local_prototype_cidr_model_json) + security_group_rule_local_prototype_cidr_model = SecurityGroupRuleLocalPrototypeCIDR.from_dict( + security_group_rule_local_prototype_cidr_model_json + ) assert security_group_rule_local_prototype_cidr_model != False # Construct a model instance of SecurityGroupRuleLocalPrototypeCIDR by calling from_dict on the json representation - security_group_rule_local_prototype_cidr_model_dict = SecurityGroupRuleLocalPrototypeCIDR.from_dict(security_group_rule_local_prototype_cidr_model_json).__dict__ - security_group_rule_local_prototype_cidr_model2 = SecurityGroupRuleLocalPrototypeCIDR(**security_group_rule_local_prototype_cidr_model_dict) + security_group_rule_local_prototype_cidr_model_dict = SecurityGroupRuleLocalPrototypeCIDR.from_dict( + security_group_rule_local_prototype_cidr_model_json + ).__dict__ + security_group_rule_local_prototype_cidr_model2 = SecurityGroupRuleLocalPrototypeCIDR( + **security_group_rule_local_prototype_cidr_model_dict + ) # Verify the model instances are equivalent assert security_group_rule_local_prototype_cidr_model == security_group_rule_local_prototype_cidr_model2 # Convert model instance back to dict and verify no loss of data security_group_rule_local_prototype_cidr_model_json2 = security_group_rule_local_prototype_cidr_model.to_dict() - assert security_group_rule_local_prototype_cidr_model_json2 == security_group_rule_local_prototype_cidr_model_json + assert ( + security_group_rule_local_prototype_cidr_model_json2 == security_group_rule_local_prototype_cidr_model_json + ) class TestModel_SecurityGroupRuleLocalPrototypeIP: @@ -89843,12 +99580,18 @@ def test_security_group_rule_local_prototype_ip_serialization(self): security_group_rule_local_prototype_ip_model_json['address'] = '192.168.3.4' # Construct a model instance of SecurityGroupRuleLocalPrototypeIP by calling from_dict on the json representation - security_group_rule_local_prototype_ip_model = SecurityGroupRuleLocalPrototypeIP.from_dict(security_group_rule_local_prototype_ip_model_json) + security_group_rule_local_prototype_ip_model = SecurityGroupRuleLocalPrototypeIP.from_dict( + security_group_rule_local_prototype_ip_model_json + ) assert security_group_rule_local_prototype_ip_model != False # Construct a model instance of SecurityGroupRuleLocalPrototypeIP by calling from_dict on the json representation - security_group_rule_local_prototype_ip_model_dict = SecurityGroupRuleLocalPrototypeIP.from_dict(security_group_rule_local_prototype_ip_model_json).__dict__ - security_group_rule_local_prototype_ip_model2 = SecurityGroupRuleLocalPrototypeIP(**security_group_rule_local_prototype_ip_model_dict) + security_group_rule_local_prototype_ip_model_dict = SecurityGroupRuleLocalPrototypeIP.from_dict( + security_group_rule_local_prototype_ip_model_json + ).__dict__ + security_group_rule_local_prototype_ip_model2 = SecurityGroupRuleLocalPrototypeIP( + **security_group_rule_local_prototype_ip_model_dict + ) # Verify the model instances are equivalent assert security_group_rule_local_prototype_ip_model == security_group_rule_local_prototype_ip_model2 @@ -89873,11 +99616,15 @@ def test_security_group_rule_local_cidr_serialization(self): security_group_rule_local_cidr_model_json['cidr_block'] = '192.168.3.0/24' # Construct a model instance of SecurityGroupRuleLocalCIDR by calling from_dict on the json representation - security_group_rule_local_cidr_model = SecurityGroupRuleLocalCIDR.from_dict(security_group_rule_local_cidr_model_json) + security_group_rule_local_cidr_model = SecurityGroupRuleLocalCIDR.from_dict( + security_group_rule_local_cidr_model_json + ) assert security_group_rule_local_cidr_model != False # Construct a model instance of SecurityGroupRuleLocalCIDR by calling from_dict on the json representation - security_group_rule_local_cidr_model_dict = SecurityGroupRuleLocalCIDR.from_dict(security_group_rule_local_cidr_model_json).__dict__ + security_group_rule_local_cidr_model_dict = SecurityGroupRuleLocalCIDR.from_dict( + security_group_rule_local_cidr_model_json + ).__dict__ security_group_rule_local_cidr_model2 = SecurityGroupRuleLocalCIDR(**security_group_rule_local_cidr_model_dict) # Verify the model instances are equivalent @@ -89907,7 +99654,9 @@ def test_security_group_rule_local_ip_serialization(self): assert security_group_rule_local_ip_model != False # Construct a model instance of SecurityGroupRuleLocalIP by calling from_dict on the json representation - security_group_rule_local_ip_model_dict = SecurityGroupRuleLocalIP.from_dict(security_group_rule_local_ip_model_json).__dict__ + security_group_rule_local_ip_model_dict = SecurityGroupRuleLocalIP.from_dict( + security_group_rule_local_ip_model_json + ).__dict__ security_group_rule_local_ip_model2 = SecurityGroupRuleLocalIP(**security_group_rule_local_ip_model_dict) # Verify the model instances are equivalent @@ -89940,24 +99689,48 @@ def test_security_group_rule_prototype_security_group_rule_protocol_all_serializ security_group_rule_prototype_security_group_rule_protocol_all_model_json = {} security_group_rule_prototype_security_group_rule_protocol_all_model_json['direction'] = 'inbound' security_group_rule_prototype_security_group_rule_protocol_all_model_json['ip_version'] = 'ipv4' - security_group_rule_prototype_security_group_rule_protocol_all_model_json['local'] = security_group_rule_local_prototype_model + security_group_rule_prototype_security_group_rule_protocol_all_model_json['local'] = ( + security_group_rule_local_prototype_model + ) security_group_rule_prototype_security_group_rule_protocol_all_model_json['protocol'] = 'all' - security_group_rule_prototype_security_group_rule_protocol_all_model_json['remote'] = security_group_rule_remote_prototype_model + security_group_rule_prototype_security_group_rule_protocol_all_model_json['remote'] = ( + security_group_rule_remote_prototype_model + ) # Construct a model instance of SecurityGroupRulePrototypeSecurityGroupRuleProtocolAll by calling from_dict on the json representation - security_group_rule_prototype_security_group_rule_protocol_all_model = SecurityGroupRulePrototypeSecurityGroupRuleProtocolAll.from_dict(security_group_rule_prototype_security_group_rule_protocol_all_model_json) + security_group_rule_prototype_security_group_rule_protocol_all_model = ( + SecurityGroupRulePrototypeSecurityGroupRuleProtocolAll.from_dict( + security_group_rule_prototype_security_group_rule_protocol_all_model_json + ) + ) assert security_group_rule_prototype_security_group_rule_protocol_all_model != False # Construct a model instance of SecurityGroupRulePrototypeSecurityGroupRuleProtocolAll by calling from_dict on the json representation - security_group_rule_prototype_security_group_rule_protocol_all_model_dict = SecurityGroupRulePrototypeSecurityGroupRuleProtocolAll.from_dict(security_group_rule_prototype_security_group_rule_protocol_all_model_json).__dict__ - security_group_rule_prototype_security_group_rule_protocol_all_model2 = SecurityGroupRulePrototypeSecurityGroupRuleProtocolAll(**security_group_rule_prototype_security_group_rule_protocol_all_model_dict) + security_group_rule_prototype_security_group_rule_protocol_all_model_dict = ( + SecurityGroupRulePrototypeSecurityGroupRuleProtocolAll.from_dict( + security_group_rule_prototype_security_group_rule_protocol_all_model_json + ).__dict__ + ) + security_group_rule_prototype_security_group_rule_protocol_all_model2 = ( + SecurityGroupRulePrototypeSecurityGroupRuleProtocolAll( + **security_group_rule_prototype_security_group_rule_protocol_all_model_dict + ) + ) # Verify the model instances are equivalent - assert security_group_rule_prototype_security_group_rule_protocol_all_model == security_group_rule_prototype_security_group_rule_protocol_all_model2 + assert ( + security_group_rule_prototype_security_group_rule_protocol_all_model + == security_group_rule_prototype_security_group_rule_protocol_all_model2 + ) # Convert model instance back to dict and verify no loss of data - security_group_rule_prototype_security_group_rule_protocol_all_model_json2 = security_group_rule_prototype_security_group_rule_protocol_all_model.to_dict() - assert security_group_rule_prototype_security_group_rule_protocol_all_model_json2 == security_group_rule_prototype_security_group_rule_protocol_all_model_json + security_group_rule_prototype_security_group_rule_protocol_all_model_json2 = ( + security_group_rule_prototype_security_group_rule_protocol_all_model.to_dict() + ) + assert ( + security_group_rule_prototype_security_group_rule_protocol_all_model_json2 + == security_group_rule_prototype_security_group_rule_protocol_all_model_json + ) class TestModel_SecurityGroupRulePrototypeSecurityGroupRuleProtocolICMP: @@ -89983,25 +99756,49 @@ def test_security_group_rule_prototype_security_group_rule_protocol_icmp_seriali security_group_rule_prototype_security_group_rule_protocol_icmp_model_json['code'] = 0 security_group_rule_prototype_security_group_rule_protocol_icmp_model_json['direction'] = 'inbound' security_group_rule_prototype_security_group_rule_protocol_icmp_model_json['ip_version'] = 'ipv4' - security_group_rule_prototype_security_group_rule_protocol_icmp_model_json['local'] = security_group_rule_local_prototype_model + security_group_rule_prototype_security_group_rule_protocol_icmp_model_json['local'] = ( + security_group_rule_local_prototype_model + ) security_group_rule_prototype_security_group_rule_protocol_icmp_model_json['protocol'] = 'icmp' - security_group_rule_prototype_security_group_rule_protocol_icmp_model_json['remote'] = security_group_rule_remote_prototype_model + security_group_rule_prototype_security_group_rule_protocol_icmp_model_json['remote'] = ( + security_group_rule_remote_prototype_model + ) security_group_rule_prototype_security_group_rule_protocol_icmp_model_json['type'] = 8 # Construct a model instance of SecurityGroupRulePrototypeSecurityGroupRuleProtocolICMP by calling from_dict on the json representation - security_group_rule_prototype_security_group_rule_protocol_icmp_model = SecurityGroupRulePrototypeSecurityGroupRuleProtocolICMP.from_dict(security_group_rule_prototype_security_group_rule_protocol_icmp_model_json) + security_group_rule_prototype_security_group_rule_protocol_icmp_model = ( + SecurityGroupRulePrototypeSecurityGroupRuleProtocolICMP.from_dict( + security_group_rule_prototype_security_group_rule_protocol_icmp_model_json + ) + ) assert security_group_rule_prototype_security_group_rule_protocol_icmp_model != False # Construct a model instance of SecurityGroupRulePrototypeSecurityGroupRuleProtocolICMP by calling from_dict on the json representation - security_group_rule_prototype_security_group_rule_protocol_icmp_model_dict = SecurityGroupRulePrototypeSecurityGroupRuleProtocolICMP.from_dict(security_group_rule_prototype_security_group_rule_protocol_icmp_model_json).__dict__ - security_group_rule_prototype_security_group_rule_protocol_icmp_model2 = SecurityGroupRulePrototypeSecurityGroupRuleProtocolICMP(**security_group_rule_prototype_security_group_rule_protocol_icmp_model_dict) + security_group_rule_prototype_security_group_rule_protocol_icmp_model_dict = ( + SecurityGroupRulePrototypeSecurityGroupRuleProtocolICMP.from_dict( + security_group_rule_prototype_security_group_rule_protocol_icmp_model_json + ).__dict__ + ) + security_group_rule_prototype_security_group_rule_protocol_icmp_model2 = ( + SecurityGroupRulePrototypeSecurityGroupRuleProtocolICMP( + **security_group_rule_prototype_security_group_rule_protocol_icmp_model_dict + ) + ) # Verify the model instances are equivalent - assert security_group_rule_prototype_security_group_rule_protocol_icmp_model == security_group_rule_prototype_security_group_rule_protocol_icmp_model2 + assert ( + security_group_rule_prototype_security_group_rule_protocol_icmp_model + == security_group_rule_prototype_security_group_rule_protocol_icmp_model2 + ) # Convert model instance back to dict and verify no loss of data - security_group_rule_prototype_security_group_rule_protocol_icmp_model_json2 = security_group_rule_prototype_security_group_rule_protocol_icmp_model.to_dict() - assert security_group_rule_prototype_security_group_rule_protocol_icmp_model_json2 == security_group_rule_prototype_security_group_rule_protocol_icmp_model_json + security_group_rule_prototype_security_group_rule_protocol_icmp_model_json2 = ( + security_group_rule_prototype_security_group_rule_protocol_icmp_model.to_dict() + ) + assert ( + security_group_rule_prototype_security_group_rule_protocol_icmp_model_json2 + == security_group_rule_prototype_security_group_rule_protocol_icmp_model_json + ) class TestModel_SecurityGroupRulePrototypeSecurityGroupRuleProtocolTCPUDP: @@ -90026,26 +99823,50 @@ def test_security_group_rule_prototype_security_group_rule_protocol_tcpudp_seria security_group_rule_prototype_security_group_rule_protocol_tcpudp_model_json = {} security_group_rule_prototype_security_group_rule_protocol_tcpudp_model_json['direction'] = 'inbound' security_group_rule_prototype_security_group_rule_protocol_tcpudp_model_json['ip_version'] = 'ipv4' - security_group_rule_prototype_security_group_rule_protocol_tcpudp_model_json['local'] = security_group_rule_local_prototype_model + security_group_rule_prototype_security_group_rule_protocol_tcpudp_model_json['local'] = ( + security_group_rule_local_prototype_model + ) security_group_rule_prototype_security_group_rule_protocol_tcpudp_model_json['port_max'] = 22 security_group_rule_prototype_security_group_rule_protocol_tcpudp_model_json['port_min'] = 22 security_group_rule_prototype_security_group_rule_protocol_tcpudp_model_json['protocol'] = 'tcp' - security_group_rule_prototype_security_group_rule_protocol_tcpudp_model_json['remote'] = security_group_rule_remote_prototype_model + security_group_rule_prototype_security_group_rule_protocol_tcpudp_model_json['remote'] = ( + security_group_rule_remote_prototype_model + ) # Construct a model instance of SecurityGroupRulePrototypeSecurityGroupRuleProtocolTCPUDP by calling from_dict on the json representation - security_group_rule_prototype_security_group_rule_protocol_tcpudp_model = SecurityGroupRulePrototypeSecurityGroupRuleProtocolTCPUDP.from_dict(security_group_rule_prototype_security_group_rule_protocol_tcpudp_model_json) + security_group_rule_prototype_security_group_rule_protocol_tcpudp_model = ( + SecurityGroupRulePrototypeSecurityGroupRuleProtocolTCPUDP.from_dict( + security_group_rule_prototype_security_group_rule_protocol_tcpudp_model_json + ) + ) assert security_group_rule_prototype_security_group_rule_protocol_tcpudp_model != False # Construct a model instance of SecurityGroupRulePrototypeSecurityGroupRuleProtocolTCPUDP by calling from_dict on the json representation - security_group_rule_prototype_security_group_rule_protocol_tcpudp_model_dict = SecurityGroupRulePrototypeSecurityGroupRuleProtocolTCPUDP.from_dict(security_group_rule_prototype_security_group_rule_protocol_tcpudp_model_json).__dict__ - security_group_rule_prototype_security_group_rule_protocol_tcpudp_model2 = SecurityGroupRulePrototypeSecurityGroupRuleProtocolTCPUDP(**security_group_rule_prototype_security_group_rule_protocol_tcpudp_model_dict) + security_group_rule_prototype_security_group_rule_protocol_tcpudp_model_dict = ( + SecurityGroupRulePrototypeSecurityGroupRuleProtocolTCPUDP.from_dict( + security_group_rule_prototype_security_group_rule_protocol_tcpudp_model_json + ).__dict__ + ) + security_group_rule_prototype_security_group_rule_protocol_tcpudp_model2 = ( + SecurityGroupRulePrototypeSecurityGroupRuleProtocolTCPUDP( + **security_group_rule_prototype_security_group_rule_protocol_tcpudp_model_dict + ) + ) # Verify the model instances are equivalent - assert security_group_rule_prototype_security_group_rule_protocol_tcpudp_model == security_group_rule_prototype_security_group_rule_protocol_tcpudp_model2 + assert ( + security_group_rule_prototype_security_group_rule_protocol_tcpudp_model + == security_group_rule_prototype_security_group_rule_protocol_tcpudp_model2 + ) # Convert model instance back to dict and verify no loss of data - security_group_rule_prototype_security_group_rule_protocol_tcpudp_model_json2 = security_group_rule_prototype_security_group_rule_protocol_tcpudp_model.to_dict() - assert security_group_rule_prototype_security_group_rule_protocol_tcpudp_model_json2 == security_group_rule_prototype_security_group_rule_protocol_tcpudp_model_json + security_group_rule_prototype_security_group_rule_protocol_tcpudp_model_json2 = ( + security_group_rule_prototype_security_group_rule_protocol_tcpudp_model.to_dict() + ) + assert ( + security_group_rule_prototype_security_group_rule_protocol_tcpudp_model_json2 + == security_group_rule_prototype_security_group_rule_protocol_tcpudp_model_json + ) class TestModel_SecurityGroupRuleRemotePatchCIDR: @@ -90063,12 +99884,18 @@ def test_security_group_rule_remote_patch_cidr_serialization(self): security_group_rule_remote_patch_cidr_model_json['cidr_block'] = '192.168.3.0/24' # Construct a model instance of SecurityGroupRuleRemotePatchCIDR by calling from_dict on the json representation - security_group_rule_remote_patch_cidr_model = SecurityGroupRuleRemotePatchCIDR.from_dict(security_group_rule_remote_patch_cidr_model_json) + security_group_rule_remote_patch_cidr_model = SecurityGroupRuleRemotePatchCIDR.from_dict( + security_group_rule_remote_patch_cidr_model_json + ) assert security_group_rule_remote_patch_cidr_model != False # Construct a model instance of SecurityGroupRuleRemotePatchCIDR by calling from_dict on the json representation - security_group_rule_remote_patch_cidr_model_dict = SecurityGroupRuleRemotePatchCIDR.from_dict(security_group_rule_remote_patch_cidr_model_json).__dict__ - security_group_rule_remote_patch_cidr_model2 = SecurityGroupRuleRemotePatchCIDR(**security_group_rule_remote_patch_cidr_model_dict) + security_group_rule_remote_patch_cidr_model_dict = SecurityGroupRuleRemotePatchCIDR.from_dict( + security_group_rule_remote_patch_cidr_model_json + ).__dict__ + security_group_rule_remote_patch_cidr_model2 = SecurityGroupRuleRemotePatchCIDR( + **security_group_rule_remote_patch_cidr_model_dict + ) # Verify the model instances are equivalent assert security_group_rule_remote_patch_cidr_model == security_group_rule_remote_patch_cidr_model2 @@ -90093,12 +99920,18 @@ def test_security_group_rule_remote_patch_ip_serialization(self): security_group_rule_remote_patch_ip_model_json['address'] = '192.168.3.4' # Construct a model instance of SecurityGroupRuleRemotePatchIP by calling from_dict on the json representation - security_group_rule_remote_patch_ip_model = SecurityGroupRuleRemotePatchIP.from_dict(security_group_rule_remote_patch_ip_model_json) + security_group_rule_remote_patch_ip_model = SecurityGroupRuleRemotePatchIP.from_dict( + security_group_rule_remote_patch_ip_model_json + ) assert security_group_rule_remote_patch_ip_model != False # Construct a model instance of SecurityGroupRuleRemotePatchIP by calling from_dict on the json representation - security_group_rule_remote_patch_ip_model_dict = SecurityGroupRuleRemotePatchIP.from_dict(security_group_rule_remote_patch_ip_model_json).__dict__ - security_group_rule_remote_patch_ip_model2 = SecurityGroupRuleRemotePatchIP(**security_group_rule_remote_patch_ip_model_dict) + security_group_rule_remote_patch_ip_model_dict = SecurityGroupRuleRemotePatchIP.from_dict( + security_group_rule_remote_patch_ip_model_json + ).__dict__ + security_group_rule_remote_patch_ip_model2 = SecurityGroupRuleRemotePatchIP( + **security_group_rule_remote_patch_ip_model_dict + ) # Verify the model instances are equivalent assert security_group_rule_remote_patch_ip_model == security_group_rule_remote_patch_ip_model2 @@ -90123,19 +99956,30 @@ def test_security_group_rule_remote_prototype_cidr_serialization(self): security_group_rule_remote_prototype_cidr_model_json['cidr_block'] = '192.168.3.0/24' # Construct a model instance of SecurityGroupRuleRemotePrototypeCIDR by calling from_dict on the json representation - security_group_rule_remote_prototype_cidr_model = SecurityGroupRuleRemotePrototypeCIDR.from_dict(security_group_rule_remote_prototype_cidr_model_json) + security_group_rule_remote_prototype_cidr_model = SecurityGroupRuleRemotePrototypeCIDR.from_dict( + security_group_rule_remote_prototype_cidr_model_json + ) assert security_group_rule_remote_prototype_cidr_model != False # Construct a model instance of SecurityGroupRuleRemotePrototypeCIDR by calling from_dict on the json representation - security_group_rule_remote_prototype_cidr_model_dict = SecurityGroupRuleRemotePrototypeCIDR.from_dict(security_group_rule_remote_prototype_cidr_model_json).__dict__ - security_group_rule_remote_prototype_cidr_model2 = SecurityGroupRuleRemotePrototypeCIDR(**security_group_rule_remote_prototype_cidr_model_dict) + security_group_rule_remote_prototype_cidr_model_dict = SecurityGroupRuleRemotePrototypeCIDR.from_dict( + security_group_rule_remote_prototype_cidr_model_json + ).__dict__ + security_group_rule_remote_prototype_cidr_model2 = SecurityGroupRuleRemotePrototypeCIDR( + **security_group_rule_remote_prototype_cidr_model_dict + ) # Verify the model instances are equivalent assert security_group_rule_remote_prototype_cidr_model == security_group_rule_remote_prototype_cidr_model2 # Convert model instance back to dict and verify no loss of data - security_group_rule_remote_prototype_cidr_model_json2 = security_group_rule_remote_prototype_cidr_model.to_dict() - assert security_group_rule_remote_prototype_cidr_model_json2 == security_group_rule_remote_prototype_cidr_model_json + security_group_rule_remote_prototype_cidr_model_json2 = ( + security_group_rule_remote_prototype_cidr_model.to_dict() + ) + assert ( + security_group_rule_remote_prototype_cidr_model_json2 + == security_group_rule_remote_prototype_cidr_model_json + ) class TestModel_SecurityGroupRuleRemotePrototypeIP: @@ -90153,12 +99997,18 @@ def test_security_group_rule_remote_prototype_ip_serialization(self): security_group_rule_remote_prototype_ip_model_json['address'] = '192.168.3.4' # Construct a model instance of SecurityGroupRuleRemotePrototypeIP by calling from_dict on the json representation - security_group_rule_remote_prototype_ip_model = SecurityGroupRuleRemotePrototypeIP.from_dict(security_group_rule_remote_prototype_ip_model_json) + security_group_rule_remote_prototype_ip_model = SecurityGroupRuleRemotePrototypeIP.from_dict( + security_group_rule_remote_prototype_ip_model_json + ) assert security_group_rule_remote_prototype_ip_model != False # Construct a model instance of SecurityGroupRuleRemotePrototypeIP by calling from_dict on the json representation - security_group_rule_remote_prototype_ip_model_dict = SecurityGroupRuleRemotePrototypeIP.from_dict(security_group_rule_remote_prototype_ip_model_json).__dict__ - security_group_rule_remote_prototype_ip_model2 = SecurityGroupRuleRemotePrototypeIP(**security_group_rule_remote_prototype_ip_model_dict) + security_group_rule_remote_prototype_ip_model_dict = SecurityGroupRuleRemotePrototypeIP.from_dict( + security_group_rule_remote_prototype_ip_model_json + ).__dict__ + security_group_rule_remote_prototype_ip_model2 = SecurityGroupRuleRemotePrototypeIP( + **security_group_rule_remote_prototype_ip_model_dict + ) # Verify the model instances are equivalent assert security_group_rule_remote_prototype_ip_model == security_group_rule_remote_prototype_ip_model2 @@ -90183,12 +100033,18 @@ def test_security_group_rule_remote_cidr_serialization(self): security_group_rule_remote_cidr_model_json['cidr_block'] = '192.168.3.0/24' # Construct a model instance of SecurityGroupRuleRemoteCIDR by calling from_dict on the json representation - security_group_rule_remote_cidr_model = SecurityGroupRuleRemoteCIDR.from_dict(security_group_rule_remote_cidr_model_json) + security_group_rule_remote_cidr_model = SecurityGroupRuleRemoteCIDR.from_dict( + security_group_rule_remote_cidr_model_json + ) assert security_group_rule_remote_cidr_model != False # Construct a model instance of SecurityGroupRuleRemoteCIDR by calling from_dict on the json representation - security_group_rule_remote_cidr_model_dict = SecurityGroupRuleRemoteCIDR.from_dict(security_group_rule_remote_cidr_model_json).__dict__ - security_group_rule_remote_cidr_model2 = SecurityGroupRuleRemoteCIDR(**security_group_rule_remote_cidr_model_dict) + security_group_rule_remote_cidr_model_dict = SecurityGroupRuleRemoteCIDR.from_dict( + security_group_rule_remote_cidr_model_json + ).__dict__ + security_group_rule_remote_cidr_model2 = SecurityGroupRuleRemoteCIDR( + **security_group_rule_remote_cidr_model_dict + ) # Verify the model instances are equivalent assert security_group_rule_remote_cidr_model == security_group_rule_remote_cidr_model2 @@ -90213,11 +100069,15 @@ def test_security_group_rule_remote_ip_serialization(self): security_group_rule_remote_ip_model_json['address'] = '192.168.3.4' # Construct a model instance of SecurityGroupRuleRemoteIP by calling from_dict on the json representation - security_group_rule_remote_ip_model = SecurityGroupRuleRemoteIP.from_dict(security_group_rule_remote_ip_model_json) + security_group_rule_remote_ip_model = SecurityGroupRuleRemoteIP.from_dict( + security_group_rule_remote_ip_model_json + ) assert security_group_rule_remote_ip_model != False # Construct a model instance of SecurityGroupRuleRemoteIP by calling from_dict on the json representation - security_group_rule_remote_ip_model_dict = SecurityGroupRuleRemoteIP.from_dict(security_group_rule_remote_ip_model_json).__dict__ + security_group_rule_remote_ip_model_dict = SecurityGroupRuleRemoteIP.from_dict( + security_group_rule_remote_ip_model_json + ).__dict__ security_group_rule_remote_ip_model2 = SecurityGroupRuleRemoteIP(**security_group_rule_remote_ip_model_dict) # Verify the model instances are equivalent @@ -90245,26 +100105,50 @@ def test_security_group_rule_remote_security_group_reference_serialization(self) # Construct a json representation of a SecurityGroupRuleRemoteSecurityGroupReference model security_group_rule_remote_security_group_reference_model_json = {} - security_group_rule_remote_security_group_reference_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::security-group:r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + security_group_rule_remote_security_group_reference_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::security-group:r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + ) security_group_rule_remote_security_group_reference_model_json['deleted'] = deleted_model - security_group_rule_remote_security_group_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' - security_group_rule_remote_security_group_reference_model_json['id'] = 'r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + security_group_rule_remote_security_group_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + ) + security_group_rule_remote_security_group_reference_model_json['id'] = ( + 'r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + ) security_group_rule_remote_security_group_reference_model_json['name'] = 'my-security-group' # Construct a model instance of SecurityGroupRuleRemoteSecurityGroupReference by calling from_dict on the json representation - security_group_rule_remote_security_group_reference_model = SecurityGroupRuleRemoteSecurityGroupReference.from_dict(security_group_rule_remote_security_group_reference_model_json) + security_group_rule_remote_security_group_reference_model = ( + SecurityGroupRuleRemoteSecurityGroupReference.from_dict( + security_group_rule_remote_security_group_reference_model_json + ) + ) assert security_group_rule_remote_security_group_reference_model != False # Construct a model instance of SecurityGroupRuleRemoteSecurityGroupReference by calling from_dict on the json representation - security_group_rule_remote_security_group_reference_model_dict = SecurityGroupRuleRemoteSecurityGroupReference.from_dict(security_group_rule_remote_security_group_reference_model_json).__dict__ - security_group_rule_remote_security_group_reference_model2 = SecurityGroupRuleRemoteSecurityGroupReference(**security_group_rule_remote_security_group_reference_model_dict) + security_group_rule_remote_security_group_reference_model_dict = ( + SecurityGroupRuleRemoteSecurityGroupReference.from_dict( + security_group_rule_remote_security_group_reference_model_json + ).__dict__ + ) + security_group_rule_remote_security_group_reference_model2 = SecurityGroupRuleRemoteSecurityGroupReference( + **security_group_rule_remote_security_group_reference_model_dict + ) # Verify the model instances are equivalent - assert security_group_rule_remote_security_group_reference_model == security_group_rule_remote_security_group_reference_model2 + assert ( + security_group_rule_remote_security_group_reference_model + == security_group_rule_remote_security_group_reference_model2 + ) # Convert model instance back to dict and verify no loss of data - security_group_rule_remote_security_group_reference_model_json2 = security_group_rule_remote_security_group_reference_model.to_dict() - assert security_group_rule_remote_security_group_reference_model_json2 == security_group_rule_remote_security_group_reference_model_json + security_group_rule_remote_security_group_reference_model_json2 = ( + security_group_rule_remote_security_group_reference_model.to_dict() + ) + assert ( + security_group_rule_remote_security_group_reference_model_json2 + == security_group_rule_remote_security_group_reference_model_json + ) class TestModel_SecurityGroupRuleSecurityGroupRuleProtocolAll: @@ -90288,27 +100172,49 @@ def test_security_group_rule_security_group_rule_protocol_all_serialization(self # Construct a json representation of a SecurityGroupRuleSecurityGroupRuleProtocolAll model security_group_rule_security_group_rule_protocol_all_model_json = {} security_group_rule_security_group_rule_protocol_all_model_json['direction'] = 'inbound' - security_group_rule_security_group_rule_protocol_all_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271/rules/r006-6f2a6efe-21e2-401c-b237-620aa26ba16a' - security_group_rule_security_group_rule_protocol_all_model_json['id'] = 'r006-6f2a6efe-21e2-401c-b237-620aa26ba16a' + security_group_rule_security_group_rule_protocol_all_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271/rules/r006-6f2a6efe-21e2-401c-b237-620aa26ba16a' + ) + security_group_rule_security_group_rule_protocol_all_model_json['id'] = ( + 'r006-6f2a6efe-21e2-401c-b237-620aa26ba16a' + ) security_group_rule_security_group_rule_protocol_all_model_json['ip_version'] = 'ipv4' security_group_rule_security_group_rule_protocol_all_model_json['local'] = security_group_rule_local_model security_group_rule_security_group_rule_protocol_all_model_json['remote'] = security_group_rule_remote_model security_group_rule_security_group_rule_protocol_all_model_json['protocol'] = 'all' # Construct a model instance of SecurityGroupRuleSecurityGroupRuleProtocolAll by calling from_dict on the json representation - security_group_rule_security_group_rule_protocol_all_model = SecurityGroupRuleSecurityGroupRuleProtocolAll.from_dict(security_group_rule_security_group_rule_protocol_all_model_json) + security_group_rule_security_group_rule_protocol_all_model = ( + SecurityGroupRuleSecurityGroupRuleProtocolAll.from_dict( + security_group_rule_security_group_rule_protocol_all_model_json + ) + ) assert security_group_rule_security_group_rule_protocol_all_model != False # Construct a model instance of SecurityGroupRuleSecurityGroupRuleProtocolAll by calling from_dict on the json representation - security_group_rule_security_group_rule_protocol_all_model_dict = SecurityGroupRuleSecurityGroupRuleProtocolAll.from_dict(security_group_rule_security_group_rule_protocol_all_model_json).__dict__ - security_group_rule_security_group_rule_protocol_all_model2 = SecurityGroupRuleSecurityGroupRuleProtocolAll(**security_group_rule_security_group_rule_protocol_all_model_dict) + security_group_rule_security_group_rule_protocol_all_model_dict = ( + SecurityGroupRuleSecurityGroupRuleProtocolAll.from_dict( + security_group_rule_security_group_rule_protocol_all_model_json + ).__dict__ + ) + security_group_rule_security_group_rule_protocol_all_model2 = SecurityGroupRuleSecurityGroupRuleProtocolAll( + **security_group_rule_security_group_rule_protocol_all_model_dict + ) # Verify the model instances are equivalent - assert security_group_rule_security_group_rule_protocol_all_model == security_group_rule_security_group_rule_protocol_all_model2 + assert ( + security_group_rule_security_group_rule_protocol_all_model + == security_group_rule_security_group_rule_protocol_all_model2 + ) # Convert model instance back to dict and verify no loss of data - security_group_rule_security_group_rule_protocol_all_model_json2 = security_group_rule_security_group_rule_protocol_all_model.to_dict() - assert security_group_rule_security_group_rule_protocol_all_model_json2 == security_group_rule_security_group_rule_protocol_all_model_json + security_group_rule_security_group_rule_protocol_all_model_json2 = ( + security_group_rule_security_group_rule_protocol_all_model.to_dict() + ) + assert ( + security_group_rule_security_group_rule_protocol_all_model_json2 + == security_group_rule_security_group_rule_protocol_all_model_json + ) class TestModel_SecurityGroupRuleSecurityGroupRuleProtocolICMP: @@ -90332,8 +100238,12 @@ def test_security_group_rule_security_group_rule_protocol_icmp_serialization(sel # Construct a json representation of a SecurityGroupRuleSecurityGroupRuleProtocolICMP model security_group_rule_security_group_rule_protocol_icmp_model_json = {} security_group_rule_security_group_rule_protocol_icmp_model_json['direction'] = 'inbound' - security_group_rule_security_group_rule_protocol_icmp_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271/rules/r006-6f2a6efe-21e2-401c-b237-620aa26ba16a' - security_group_rule_security_group_rule_protocol_icmp_model_json['id'] = 'r006-6f2a6efe-21e2-401c-b237-620aa26ba16a' + security_group_rule_security_group_rule_protocol_icmp_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271/rules/r006-6f2a6efe-21e2-401c-b237-620aa26ba16a' + ) + security_group_rule_security_group_rule_protocol_icmp_model_json['id'] = ( + 'r006-6f2a6efe-21e2-401c-b237-620aa26ba16a' + ) security_group_rule_security_group_rule_protocol_icmp_model_json['ip_version'] = 'ipv4' security_group_rule_security_group_rule_protocol_icmp_model_json['local'] = security_group_rule_local_model security_group_rule_security_group_rule_protocol_icmp_model_json['remote'] = security_group_rule_remote_model @@ -90342,19 +100252,37 @@ def test_security_group_rule_security_group_rule_protocol_icmp_serialization(sel security_group_rule_security_group_rule_protocol_icmp_model_json['type'] = 8 # Construct a model instance of SecurityGroupRuleSecurityGroupRuleProtocolICMP by calling from_dict on the json representation - security_group_rule_security_group_rule_protocol_icmp_model = SecurityGroupRuleSecurityGroupRuleProtocolICMP.from_dict(security_group_rule_security_group_rule_protocol_icmp_model_json) + security_group_rule_security_group_rule_protocol_icmp_model = ( + SecurityGroupRuleSecurityGroupRuleProtocolICMP.from_dict( + security_group_rule_security_group_rule_protocol_icmp_model_json + ) + ) assert security_group_rule_security_group_rule_protocol_icmp_model != False # Construct a model instance of SecurityGroupRuleSecurityGroupRuleProtocolICMP by calling from_dict on the json representation - security_group_rule_security_group_rule_protocol_icmp_model_dict = SecurityGroupRuleSecurityGroupRuleProtocolICMP.from_dict(security_group_rule_security_group_rule_protocol_icmp_model_json).__dict__ - security_group_rule_security_group_rule_protocol_icmp_model2 = SecurityGroupRuleSecurityGroupRuleProtocolICMP(**security_group_rule_security_group_rule_protocol_icmp_model_dict) + security_group_rule_security_group_rule_protocol_icmp_model_dict = ( + SecurityGroupRuleSecurityGroupRuleProtocolICMP.from_dict( + security_group_rule_security_group_rule_protocol_icmp_model_json + ).__dict__ + ) + security_group_rule_security_group_rule_protocol_icmp_model2 = SecurityGroupRuleSecurityGroupRuleProtocolICMP( + **security_group_rule_security_group_rule_protocol_icmp_model_dict + ) # Verify the model instances are equivalent - assert security_group_rule_security_group_rule_protocol_icmp_model == security_group_rule_security_group_rule_protocol_icmp_model2 + assert ( + security_group_rule_security_group_rule_protocol_icmp_model + == security_group_rule_security_group_rule_protocol_icmp_model2 + ) # Convert model instance back to dict and verify no loss of data - security_group_rule_security_group_rule_protocol_icmp_model_json2 = security_group_rule_security_group_rule_protocol_icmp_model.to_dict() - assert security_group_rule_security_group_rule_protocol_icmp_model_json2 == security_group_rule_security_group_rule_protocol_icmp_model_json + security_group_rule_security_group_rule_protocol_icmp_model_json2 = ( + security_group_rule_security_group_rule_protocol_icmp_model.to_dict() + ) + assert ( + security_group_rule_security_group_rule_protocol_icmp_model_json2 + == security_group_rule_security_group_rule_protocol_icmp_model_json + ) class TestModel_SecurityGroupRuleSecurityGroupRuleProtocolTCPUDP: @@ -90378,8 +100306,12 @@ def test_security_group_rule_security_group_rule_protocol_tcpudp_serialization(s # Construct a json representation of a SecurityGroupRuleSecurityGroupRuleProtocolTCPUDP model security_group_rule_security_group_rule_protocol_tcpudp_model_json = {} security_group_rule_security_group_rule_protocol_tcpudp_model_json['direction'] = 'inbound' - security_group_rule_security_group_rule_protocol_tcpudp_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271/rules/r006-6f2a6efe-21e2-401c-b237-620aa26ba16a' - security_group_rule_security_group_rule_protocol_tcpudp_model_json['id'] = 'r006-6f2a6efe-21e2-401c-b237-620aa26ba16a' + security_group_rule_security_group_rule_protocol_tcpudp_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271/rules/r006-6f2a6efe-21e2-401c-b237-620aa26ba16a' + ) + security_group_rule_security_group_rule_protocol_tcpudp_model_json['id'] = ( + 'r006-6f2a6efe-21e2-401c-b237-620aa26ba16a' + ) security_group_rule_security_group_rule_protocol_tcpudp_model_json['ip_version'] = 'ipv4' security_group_rule_security_group_rule_protocol_tcpudp_model_json['local'] = security_group_rule_local_model security_group_rule_security_group_rule_protocol_tcpudp_model_json['remote'] = security_group_rule_remote_model @@ -90388,19 +100320,39 @@ def test_security_group_rule_security_group_rule_protocol_tcpudp_serialization(s security_group_rule_security_group_rule_protocol_tcpudp_model_json['protocol'] = 'udp' # Construct a model instance of SecurityGroupRuleSecurityGroupRuleProtocolTCPUDP by calling from_dict on the json representation - security_group_rule_security_group_rule_protocol_tcpudp_model = SecurityGroupRuleSecurityGroupRuleProtocolTCPUDP.from_dict(security_group_rule_security_group_rule_protocol_tcpudp_model_json) + security_group_rule_security_group_rule_protocol_tcpudp_model = ( + SecurityGroupRuleSecurityGroupRuleProtocolTCPUDP.from_dict( + security_group_rule_security_group_rule_protocol_tcpudp_model_json + ) + ) assert security_group_rule_security_group_rule_protocol_tcpudp_model != False # Construct a model instance of SecurityGroupRuleSecurityGroupRuleProtocolTCPUDP by calling from_dict on the json representation - security_group_rule_security_group_rule_protocol_tcpudp_model_dict = SecurityGroupRuleSecurityGroupRuleProtocolTCPUDP.from_dict(security_group_rule_security_group_rule_protocol_tcpudp_model_json).__dict__ - security_group_rule_security_group_rule_protocol_tcpudp_model2 = SecurityGroupRuleSecurityGroupRuleProtocolTCPUDP(**security_group_rule_security_group_rule_protocol_tcpudp_model_dict) + security_group_rule_security_group_rule_protocol_tcpudp_model_dict = ( + SecurityGroupRuleSecurityGroupRuleProtocolTCPUDP.from_dict( + security_group_rule_security_group_rule_protocol_tcpudp_model_json + ).__dict__ + ) + security_group_rule_security_group_rule_protocol_tcpudp_model2 = ( + SecurityGroupRuleSecurityGroupRuleProtocolTCPUDP( + **security_group_rule_security_group_rule_protocol_tcpudp_model_dict + ) + ) # Verify the model instances are equivalent - assert security_group_rule_security_group_rule_protocol_tcpudp_model == security_group_rule_security_group_rule_protocol_tcpudp_model2 + assert ( + security_group_rule_security_group_rule_protocol_tcpudp_model + == security_group_rule_security_group_rule_protocol_tcpudp_model2 + ) # Convert model instance back to dict and verify no loss of data - security_group_rule_security_group_rule_protocol_tcpudp_model_json2 = security_group_rule_security_group_rule_protocol_tcpudp_model.to_dict() - assert security_group_rule_security_group_rule_protocol_tcpudp_model_json2 == security_group_rule_security_group_rule_protocol_tcpudp_model_json + security_group_rule_security_group_rule_protocol_tcpudp_model_json2 = ( + security_group_rule_security_group_rule_protocol_tcpudp_model.to_dict() + ) + assert ( + security_group_rule_security_group_rule_protocol_tcpudp_model_json2 + == security_group_rule_security_group_rule_protocol_tcpudp_model_json + ) class TestModel_SecurityGroupTargetReferenceBareMetalServerNetworkInterfaceReferenceTargetContext: @@ -90408,7 +100360,9 @@ class TestModel_SecurityGroupTargetReferenceBareMetalServerNetworkInterfaceRefer Test Class for SecurityGroupTargetReferenceBareMetalServerNetworkInterfaceReferenceTargetContext """ - def test_security_group_target_reference_bare_metal_server_network_interface_reference_target_context_serialization(self): + def test_security_group_target_reference_bare_metal_server_network_interface_reference_target_context_serialization( + self, + ): """ Test serialization/deserialization for SecurityGroupTargetReferenceBareMetalServerNetworkInterfaceReferenceTargetContext """ @@ -90420,26 +100374,56 @@ def test_security_group_target_reference_bare_metal_server_network_interface_ref # Construct a json representation of a SecurityGroupTargetReferenceBareMetalServerNetworkInterfaceReferenceTargetContext model security_group_target_reference_bare_metal_server_network_interface_reference_target_context_model_json = {} - security_group_target_reference_bare_metal_server_network_interface_reference_target_context_model_json['deleted'] = deleted_model - security_group_target_reference_bare_metal_server_network_interface_reference_target_context_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/bare_metal_servers/0717-aad10fd7-8a02-4f3e-97f3-b18bd82cf304/network_interfaces/0717-da8c43ec-b6ca-4bd2-871e-72e288c66ee6' - security_group_target_reference_bare_metal_server_network_interface_reference_target_context_model_json['id'] = '0717-da8c43ec-b6ca-4bd2-871e-72e288c66ee6' - security_group_target_reference_bare_metal_server_network_interface_reference_target_context_model_json['name'] = 'my-bare-metal-server-network-interface' - security_group_target_reference_bare_metal_server_network_interface_reference_target_context_model_json['resource_type'] = 'network_interface' + security_group_target_reference_bare_metal_server_network_interface_reference_target_context_model_json[ + 'deleted' + ] = deleted_model + security_group_target_reference_bare_metal_server_network_interface_reference_target_context_model_json[ + 'href' + ] = 'https://us-south.iaas.cloud.ibm.com/v1/bare_metal_servers/0717-aad10fd7-8a02-4f3e-97f3-b18bd82cf304/network_interfaces/0717-da8c43ec-b6ca-4bd2-871e-72e288c66ee6' + security_group_target_reference_bare_metal_server_network_interface_reference_target_context_model_json[ + 'id' + ] = '0717-da8c43ec-b6ca-4bd2-871e-72e288c66ee6' + security_group_target_reference_bare_metal_server_network_interface_reference_target_context_model_json[ + 'name' + ] = 'my-bare-metal-server-network-interface' + security_group_target_reference_bare_metal_server_network_interface_reference_target_context_model_json[ + 'resource_type' + ] = 'network_interface' # Construct a model instance of SecurityGroupTargetReferenceBareMetalServerNetworkInterfaceReferenceTargetContext by calling from_dict on the json representation - security_group_target_reference_bare_metal_server_network_interface_reference_target_context_model = SecurityGroupTargetReferenceBareMetalServerNetworkInterfaceReferenceTargetContext.from_dict(security_group_target_reference_bare_metal_server_network_interface_reference_target_context_model_json) - assert security_group_target_reference_bare_metal_server_network_interface_reference_target_context_model != False + security_group_target_reference_bare_metal_server_network_interface_reference_target_context_model = ( + SecurityGroupTargetReferenceBareMetalServerNetworkInterfaceReferenceTargetContext.from_dict( + security_group_target_reference_bare_metal_server_network_interface_reference_target_context_model_json + ) + ) + assert ( + security_group_target_reference_bare_metal_server_network_interface_reference_target_context_model != False + ) # Construct a model instance of SecurityGroupTargetReferenceBareMetalServerNetworkInterfaceReferenceTargetContext by calling from_dict on the json representation - security_group_target_reference_bare_metal_server_network_interface_reference_target_context_model_dict = SecurityGroupTargetReferenceBareMetalServerNetworkInterfaceReferenceTargetContext.from_dict(security_group_target_reference_bare_metal_server_network_interface_reference_target_context_model_json).__dict__ - security_group_target_reference_bare_metal_server_network_interface_reference_target_context_model2 = SecurityGroupTargetReferenceBareMetalServerNetworkInterfaceReferenceTargetContext(**security_group_target_reference_bare_metal_server_network_interface_reference_target_context_model_dict) + security_group_target_reference_bare_metal_server_network_interface_reference_target_context_model_dict = ( + SecurityGroupTargetReferenceBareMetalServerNetworkInterfaceReferenceTargetContext.from_dict( + security_group_target_reference_bare_metal_server_network_interface_reference_target_context_model_json + ).__dict__ + ) + security_group_target_reference_bare_metal_server_network_interface_reference_target_context_model2 = SecurityGroupTargetReferenceBareMetalServerNetworkInterfaceReferenceTargetContext( + **security_group_target_reference_bare_metal_server_network_interface_reference_target_context_model_dict + ) # Verify the model instances are equivalent - assert security_group_target_reference_bare_metal_server_network_interface_reference_target_context_model == security_group_target_reference_bare_metal_server_network_interface_reference_target_context_model2 + assert ( + security_group_target_reference_bare_metal_server_network_interface_reference_target_context_model + == security_group_target_reference_bare_metal_server_network_interface_reference_target_context_model2 + ) # Convert model instance back to dict and verify no loss of data - security_group_target_reference_bare_metal_server_network_interface_reference_target_context_model_json2 = security_group_target_reference_bare_metal_server_network_interface_reference_target_context_model.to_dict() - assert security_group_target_reference_bare_metal_server_network_interface_reference_target_context_model_json2 == security_group_target_reference_bare_metal_server_network_interface_reference_target_context_model_json + security_group_target_reference_bare_metal_server_network_interface_reference_target_context_model_json2 = ( + security_group_target_reference_bare_metal_server_network_interface_reference_target_context_model.to_dict() + ) + assert ( + security_group_target_reference_bare_metal_server_network_interface_reference_target_context_model_json2 + == security_group_target_reference_bare_metal_server_network_interface_reference_target_context_model_json + ) class TestModel_SecurityGroupTargetReferenceEndpointGatewayReference: @@ -90459,27 +100443,53 @@ def test_security_group_target_reference_endpoint_gateway_reference_serializatio # Construct a json representation of a SecurityGroupTargetReferenceEndpointGatewayReference model security_group_target_reference_endpoint_gateway_reference_model_json = {} - security_group_target_reference_endpoint_gateway_reference_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::endpoint-gateway:r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5' + security_group_target_reference_endpoint_gateway_reference_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::endpoint-gateway:r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5' + ) security_group_target_reference_endpoint_gateway_reference_model_json['deleted'] = deleted_model - security_group_target_reference_endpoint_gateway_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/endpoint_gateways/r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5' - security_group_target_reference_endpoint_gateway_reference_model_json['id'] = 'r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5' + security_group_target_reference_endpoint_gateway_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/endpoint_gateways/r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5' + ) + security_group_target_reference_endpoint_gateway_reference_model_json['id'] = ( + 'r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5' + ) security_group_target_reference_endpoint_gateway_reference_model_json['name'] = 'my-endpoint-gateway' security_group_target_reference_endpoint_gateway_reference_model_json['resource_type'] = 'endpoint_gateway' # Construct a model instance of SecurityGroupTargetReferenceEndpointGatewayReference by calling from_dict on the json representation - security_group_target_reference_endpoint_gateway_reference_model = SecurityGroupTargetReferenceEndpointGatewayReference.from_dict(security_group_target_reference_endpoint_gateway_reference_model_json) + security_group_target_reference_endpoint_gateway_reference_model = ( + SecurityGroupTargetReferenceEndpointGatewayReference.from_dict( + security_group_target_reference_endpoint_gateway_reference_model_json + ) + ) assert security_group_target_reference_endpoint_gateway_reference_model != False # Construct a model instance of SecurityGroupTargetReferenceEndpointGatewayReference by calling from_dict on the json representation - security_group_target_reference_endpoint_gateway_reference_model_dict = SecurityGroupTargetReferenceEndpointGatewayReference.from_dict(security_group_target_reference_endpoint_gateway_reference_model_json).__dict__ - security_group_target_reference_endpoint_gateway_reference_model2 = SecurityGroupTargetReferenceEndpointGatewayReference(**security_group_target_reference_endpoint_gateway_reference_model_dict) + security_group_target_reference_endpoint_gateway_reference_model_dict = ( + SecurityGroupTargetReferenceEndpointGatewayReference.from_dict( + security_group_target_reference_endpoint_gateway_reference_model_json + ).__dict__ + ) + security_group_target_reference_endpoint_gateway_reference_model2 = ( + SecurityGroupTargetReferenceEndpointGatewayReference( + **security_group_target_reference_endpoint_gateway_reference_model_dict + ) + ) # Verify the model instances are equivalent - assert security_group_target_reference_endpoint_gateway_reference_model == security_group_target_reference_endpoint_gateway_reference_model2 + assert ( + security_group_target_reference_endpoint_gateway_reference_model + == security_group_target_reference_endpoint_gateway_reference_model2 + ) # Convert model instance back to dict and verify no loss of data - security_group_target_reference_endpoint_gateway_reference_model_json2 = security_group_target_reference_endpoint_gateway_reference_model.to_dict() - assert security_group_target_reference_endpoint_gateway_reference_model_json2 == security_group_target_reference_endpoint_gateway_reference_model_json + security_group_target_reference_endpoint_gateway_reference_model_json2 = ( + security_group_target_reference_endpoint_gateway_reference_model.to_dict() + ) + assert ( + security_group_target_reference_endpoint_gateway_reference_model_json2 + == security_group_target_reference_endpoint_gateway_reference_model_json + ) class TestModel_SecurityGroupTargetReferenceLoadBalancerReference: @@ -90499,27 +100509,53 @@ def test_security_group_target_reference_load_balancer_reference_serialization(s # Construct a json representation of a SecurityGroupTargetReferenceLoadBalancerReference model security_group_target_reference_load_balancer_reference_model_json = {} - security_group_target_reference_load_balancer_reference_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::load-balancer:dd754295-e9e0-4c9d-bf6c-58fbc59e5727' + security_group_target_reference_load_balancer_reference_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::load-balancer:dd754295-e9e0-4c9d-bf6c-58fbc59e5727' + ) security_group_target_reference_load_balancer_reference_model_json['deleted'] = deleted_model - security_group_target_reference_load_balancer_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727' - security_group_target_reference_load_balancer_reference_model_json['id'] = 'dd754295-e9e0-4c9d-bf6c-58fbc59e5727' + security_group_target_reference_load_balancer_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727' + ) + security_group_target_reference_load_balancer_reference_model_json['id'] = ( + 'dd754295-e9e0-4c9d-bf6c-58fbc59e5727' + ) security_group_target_reference_load_balancer_reference_model_json['name'] = 'my-load-balancer' security_group_target_reference_load_balancer_reference_model_json['resource_type'] = 'load_balancer' # Construct a model instance of SecurityGroupTargetReferenceLoadBalancerReference by calling from_dict on the json representation - security_group_target_reference_load_balancer_reference_model = SecurityGroupTargetReferenceLoadBalancerReference.from_dict(security_group_target_reference_load_balancer_reference_model_json) + security_group_target_reference_load_balancer_reference_model = ( + SecurityGroupTargetReferenceLoadBalancerReference.from_dict( + security_group_target_reference_load_balancer_reference_model_json + ) + ) assert security_group_target_reference_load_balancer_reference_model != False # Construct a model instance of SecurityGroupTargetReferenceLoadBalancerReference by calling from_dict on the json representation - security_group_target_reference_load_balancer_reference_model_dict = SecurityGroupTargetReferenceLoadBalancerReference.from_dict(security_group_target_reference_load_balancer_reference_model_json).__dict__ - security_group_target_reference_load_balancer_reference_model2 = SecurityGroupTargetReferenceLoadBalancerReference(**security_group_target_reference_load_balancer_reference_model_dict) + security_group_target_reference_load_balancer_reference_model_dict = ( + SecurityGroupTargetReferenceLoadBalancerReference.from_dict( + security_group_target_reference_load_balancer_reference_model_json + ).__dict__ + ) + security_group_target_reference_load_balancer_reference_model2 = ( + SecurityGroupTargetReferenceLoadBalancerReference( + **security_group_target_reference_load_balancer_reference_model_dict + ) + ) # Verify the model instances are equivalent - assert security_group_target_reference_load_balancer_reference_model == security_group_target_reference_load_balancer_reference_model2 + assert ( + security_group_target_reference_load_balancer_reference_model + == security_group_target_reference_load_balancer_reference_model2 + ) # Convert model instance back to dict and verify no loss of data - security_group_target_reference_load_balancer_reference_model_json2 = security_group_target_reference_load_balancer_reference_model.to_dict() - assert security_group_target_reference_load_balancer_reference_model_json2 == security_group_target_reference_load_balancer_reference_model_json + security_group_target_reference_load_balancer_reference_model_json2 = ( + security_group_target_reference_load_balancer_reference_model.to_dict() + ) + assert ( + security_group_target_reference_load_balancer_reference_model_json2 + == security_group_target_reference_load_balancer_reference_model_json + ) class TestModel_SecurityGroupTargetReferenceNetworkInterfaceReferenceTargetContext: @@ -90540,25 +100576,53 @@ def test_security_group_target_reference_network_interface_reference_target_cont # Construct a json representation of a SecurityGroupTargetReferenceNetworkInterfaceReferenceTargetContext model security_group_target_reference_network_interface_reference_target_context_model_json = {} security_group_target_reference_network_interface_reference_target_context_model_json['deleted'] = deleted_model - security_group_target_reference_network_interface_reference_target_context_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/network_interfaces/0717-d54eb633-98ea-459d-aa00-6a8e780175a7' - security_group_target_reference_network_interface_reference_target_context_model_json['id'] = '0717-d54eb633-98ea-459d-aa00-6a8e780175a7' - security_group_target_reference_network_interface_reference_target_context_model_json['name'] = 'my-instance-network-interface' - security_group_target_reference_network_interface_reference_target_context_model_json['resource_type'] = 'network_interface' + security_group_target_reference_network_interface_reference_target_context_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/network_interfaces/0717-d54eb633-98ea-459d-aa00-6a8e780175a7' + ) + security_group_target_reference_network_interface_reference_target_context_model_json['id'] = ( + '0717-d54eb633-98ea-459d-aa00-6a8e780175a7' + ) + security_group_target_reference_network_interface_reference_target_context_model_json['name'] = ( + 'my-instance-network-interface' + ) + security_group_target_reference_network_interface_reference_target_context_model_json['resource_type'] = ( + 'network_interface' + ) # Construct a model instance of SecurityGroupTargetReferenceNetworkInterfaceReferenceTargetContext by calling from_dict on the json representation - security_group_target_reference_network_interface_reference_target_context_model = SecurityGroupTargetReferenceNetworkInterfaceReferenceTargetContext.from_dict(security_group_target_reference_network_interface_reference_target_context_model_json) + security_group_target_reference_network_interface_reference_target_context_model = ( + SecurityGroupTargetReferenceNetworkInterfaceReferenceTargetContext.from_dict( + security_group_target_reference_network_interface_reference_target_context_model_json + ) + ) assert security_group_target_reference_network_interface_reference_target_context_model != False # Construct a model instance of SecurityGroupTargetReferenceNetworkInterfaceReferenceTargetContext by calling from_dict on the json representation - security_group_target_reference_network_interface_reference_target_context_model_dict = SecurityGroupTargetReferenceNetworkInterfaceReferenceTargetContext.from_dict(security_group_target_reference_network_interface_reference_target_context_model_json).__dict__ - security_group_target_reference_network_interface_reference_target_context_model2 = SecurityGroupTargetReferenceNetworkInterfaceReferenceTargetContext(**security_group_target_reference_network_interface_reference_target_context_model_dict) + security_group_target_reference_network_interface_reference_target_context_model_dict = ( + SecurityGroupTargetReferenceNetworkInterfaceReferenceTargetContext.from_dict( + security_group_target_reference_network_interface_reference_target_context_model_json + ).__dict__ + ) + security_group_target_reference_network_interface_reference_target_context_model2 = ( + SecurityGroupTargetReferenceNetworkInterfaceReferenceTargetContext( + **security_group_target_reference_network_interface_reference_target_context_model_dict + ) + ) # Verify the model instances are equivalent - assert security_group_target_reference_network_interface_reference_target_context_model == security_group_target_reference_network_interface_reference_target_context_model2 + assert ( + security_group_target_reference_network_interface_reference_target_context_model + == security_group_target_reference_network_interface_reference_target_context_model2 + ) # Convert model instance back to dict and verify no loss of data - security_group_target_reference_network_interface_reference_target_context_model_json2 = security_group_target_reference_network_interface_reference_target_context_model.to_dict() - assert security_group_target_reference_network_interface_reference_target_context_model_json2 == security_group_target_reference_network_interface_reference_target_context_model_json + security_group_target_reference_network_interface_reference_target_context_model_json2 = ( + security_group_target_reference_network_interface_reference_target_context_model.to_dict() + ) + assert ( + security_group_target_reference_network_interface_reference_target_context_model_json2 + == security_group_target_reference_network_interface_reference_target_context_model_json + ) class TestModel_SecurityGroupTargetReferenceVPNServerReference: @@ -90578,27 +100642,51 @@ def test_security_group_target_reference_vpn_server_reference_serialization(self # Construct a json representation of a SecurityGroupTargetReferenceVPNServerReference model security_group_target_reference_vpn_server_reference_model_json = {} - security_group_target_reference_vpn_server_reference_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpn-server:r006-d7cc5196-9864-48c4-82d8-3f30da41fcc5' + security_group_target_reference_vpn_server_reference_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpn-server:r006-d7cc5196-9864-48c4-82d8-3f30da41fcc5' + ) security_group_target_reference_vpn_server_reference_model_json['deleted'] = deleted_model - security_group_target_reference_vpn_server_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpn_servers/r006-d7cc5196-9864-48c4-82d8-3f30da41fcc5' - security_group_target_reference_vpn_server_reference_model_json['id'] = 'r006-d7cc5196-9864-48c4-82d8-3f30da41fcc5' + security_group_target_reference_vpn_server_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpn_servers/r006-d7cc5196-9864-48c4-82d8-3f30da41fcc5' + ) + security_group_target_reference_vpn_server_reference_model_json['id'] = ( + 'r006-d7cc5196-9864-48c4-82d8-3f30da41fcc5' + ) security_group_target_reference_vpn_server_reference_model_json['name'] = 'my-vpn-server' security_group_target_reference_vpn_server_reference_model_json['resource_type'] = 'vpn_server' # Construct a model instance of SecurityGroupTargetReferenceVPNServerReference by calling from_dict on the json representation - security_group_target_reference_vpn_server_reference_model = SecurityGroupTargetReferenceVPNServerReference.from_dict(security_group_target_reference_vpn_server_reference_model_json) + security_group_target_reference_vpn_server_reference_model = ( + SecurityGroupTargetReferenceVPNServerReference.from_dict( + security_group_target_reference_vpn_server_reference_model_json + ) + ) assert security_group_target_reference_vpn_server_reference_model != False # Construct a model instance of SecurityGroupTargetReferenceVPNServerReference by calling from_dict on the json representation - security_group_target_reference_vpn_server_reference_model_dict = SecurityGroupTargetReferenceVPNServerReference.from_dict(security_group_target_reference_vpn_server_reference_model_json).__dict__ - security_group_target_reference_vpn_server_reference_model2 = SecurityGroupTargetReferenceVPNServerReference(**security_group_target_reference_vpn_server_reference_model_dict) + security_group_target_reference_vpn_server_reference_model_dict = ( + SecurityGroupTargetReferenceVPNServerReference.from_dict( + security_group_target_reference_vpn_server_reference_model_json + ).__dict__ + ) + security_group_target_reference_vpn_server_reference_model2 = SecurityGroupTargetReferenceVPNServerReference( + **security_group_target_reference_vpn_server_reference_model_dict + ) # Verify the model instances are equivalent - assert security_group_target_reference_vpn_server_reference_model == security_group_target_reference_vpn_server_reference_model2 + assert ( + security_group_target_reference_vpn_server_reference_model + == security_group_target_reference_vpn_server_reference_model2 + ) # Convert model instance back to dict and verify no loss of data - security_group_target_reference_vpn_server_reference_model_json2 = security_group_target_reference_vpn_server_reference_model.to_dict() - assert security_group_target_reference_vpn_server_reference_model_json2 == security_group_target_reference_vpn_server_reference_model_json + security_group_target_reference_vpn_server_reference_model_json2 = ( + security_group_target_reference_vpn_server_reference_model.to_dict() + ) + assert ( + security_group_target_reference_vpn_server_reference_model_json2 + == security_group_target_reference_vpn_server_reference_model_json + ) class TestModel_SecurityGroupTargetReferenceVirtualNetworkInterfaceReference: @@ -90619,44 +100707,84 @@ def test_security_group_target_reference_virtual_network_interface_reference_ser reserved_ip_reference_model = {} # ReservedIPReference reserved_ip_reference_model['address'] = '10.0.1.5' reserved_ip_reference_model['deleted'] = deleted_model - reserved_ip_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + reserved_ip_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + ) reserved_ip_reference_model['id'] = '0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' reserved_ip_reference_model['name'] = 'my-reserved-ip' reserved_ip_reference_model['resource_type'] = 'subnet_reserved_ip' subnet_reference_model = {} # SubnetReference - subnet_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['deleted'] = deleted_model - subnet_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['id'] = '0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' subnet_reference_model['name'] = 'my-subnet' subnet_reference_model['resource_type'] = 'subnet' # Construct a json representation of a SecurityGroupTargetReferenceVirtualNetworkInterfaceReference model security_group_target_reference_virtual_network_interface_reference_model_json = {} - security_group_target_reference_virtual_network_interface_reference_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::virtual-network-interface:0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + security_group_target_reference_virtual_network_interface_reference_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::virtual-network-interface:0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + ) security_group_target_reference_virtual_network_interface_reference_model_json['deleted'] = deleted_model - security_group_target_reference_virtual_network_interface_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/virtual_network_interfaces/0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' - security_group_target_reference_virtual_network_interface_reference_model_json['id'] = '0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' - security_group_target_reference_virtual_network_interface_reference_model_json['name'] = 'my-virtual-network-interface' - security_group_target_reference_virtual_network_interface_reference_model_json['primary_ip'] = reserved_ip_reference_model - security_group_target_reference_virtual_network_interface_reference_model_json['resource_type'] = 'virtual_network_interface' - security_group_target_reference_virtual_network_interface_reference_model_json['subnet'] = subnet_reference_model + security_group_target_reference_virtual_network_interface_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/virtual_network_interfaces/0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + ) + security_group_target_reference_virtual_network_interface_reference_model_json['id'] = ( + '0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + ) + security_group_target_reference_virtual_network_interface_reference_model_json['name'] = ( + 'my-virtual-network-interface' + ) + security_group_target_reference_virtual_network_interface_reference_model_json['primary_ip'] = ( + reserved_ip_reference_model + ) + security_group_target_reference_virtual_network_interface_reference_model_json['resource_type'] = ( + 'virtual_network_interface' + ) + security_group_target_reference_virtual_network_interface_reference_model_json['subnet'] = ( + subnet_reference_model + ) # Construct a model instance of SecurityGroupTargetReferenceVirtualNetworkInterfaceReference by calling from_dict on the json representation - security_group_target_reference_virtual_network_interface_reference_model = SecurityGroupTargetReferenceVirtualNetworkInterfaceReference.from_dict(security_group_target_reference_virtual_network_interface_reference_model_json) + security_group_target_reference_virtual_network_interface_reference_model = ( + SecurityGroupTargetReferenceVirtualNetworkInterfaceReference.from_dict( + security_group_target_reference_virtual_network_interface_reference_model_json + ) + ) assert security_group_target_reference_virtual_network_interface_reference_model != False # Construct a model instance of SecurityGroupTargetReferenceVirtualNetworkInterfaceReference by calling from_dict on the json representation - security_group_target_reference_virtual_network_interface_reference_model_dict = SecurityGroupTargetReferenceVirtualNetworkInterfaceReference.from_dict(security_group_target_reference_virtual_network_interface_reference_model_json).__dict__ - security_group_target_reference_virtual_network_interface_reference_model2 = SecurityGroupTargetReferenceVirtualNetworkInterfaceReference(**security_group_target_reference_virtual_network_interface_reference_model_dict) + security_group_target_reference_virtual_network_interface_reference_model_dict = ( + SecurityGroupTargetReferenceVirtualNetworkInterfaceReference.from_dict( + security_group_target_reference_virtual_network_interface_reference_model_json + ).__dict__ + ) + security_group_target_reference_virtual_network_interface_reference_model2 = ( + SecurityGroupTargetReferenceVirtualNetworkInterfaceReference( + **security_group_target_reference_virtual_network_interface_reference_model_dict + ) + ) # Verify the model instances are equivalent - assert security_group_target_reference_virtual_network_interface_reference_model == security_group_target_reference_virtual_network_interface_reference_model2 + assert ( + security_group_target_reference_virtual_network_interface_reference_model + == security_group_target_reference_virtual_network_interface_reference_model2 + ) # Convert model instance back to dict and verify no loss of data - security_group_target_reference_virtual_network_interface_reference_model_json2 = security_group_target_reference_virtual_network_interface_reference_model.to_dict() - assert security_group_target_reference_virtual_network_interface_reference_model_json2 == security_group_target_reference_virtual_network_interface_reference_model_json + security_group_target_reference_virtual_network_interface_reference_model_json2 = ( + security_group_target_reference_virtual_network_interface_reference_model.to_dict() + ) + assert ( + security_group_target_reference_virtual_network_interface_reference_model_json2 + == security_group_target_reference_virtual_network_interface_reference_model_json + ) class TestModel_ShareAccessorBindingAccessorShareReference: @@ -90688,28 +100816,48 @@ def test_share_accessor_binding_accessor_share_reference_serialization(self): # Construct a json representation of a ShareAccessorBindingAccessorShareReference model share_accessor_binding_accessor_share_reference_model_json = {} - share_accessor_binding_accessor_share_reference_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::share:r006-0fe9e5d8-0a4d-4818-96ec-e99708644a58' + share_accessor_binding_accessor_share_reference_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::share:r006-0fe9e5d8-0a4d-4818-96ec-e99708644a58' + ) share_accessor_binding_accessor_share_reference_model_json['deleted'] = deleted_model - share_accessor_binding_accessor_share_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/shares/r006-0fe9e5d8-0a4d-4818-96ec-e99708644a58' + share_accessor_binding_accessor_share_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/shares/r006-0fe9e5d8-0a4d-4818-96ec-e99708644a58' + ) share_accessor_binding_accessor_share_reference_model_json['id'] = '0fe9e5d8-0a4d-4818-96ec-e99708644a58' share_accessor_binding_accessor_share_reference_model_json['name'] = 'my-share' share_accessor_binding_accessor_share_reference_model_json['remote'] = share_remote_model share_accessor_binding_accessor_share_reference_model_json['resource_type'] = 'share' # Construct a model instance of ShareAccessorBindingAccessorShareReference by calling from_dict on the json representation - share_accessor_binding_accessor_share_reference_model = ShareAccessorBindingAccessorShareReference.from_dict(share_accessor_binding_accessor_share_reference_model_json) + share_accessor_binding_accessor_share_reference_model = ShareAccessorBindingAccessorShareReference.from_dict( + share_accessor_binding_accessor_share_reference_model_json + ) assert share_accessor_binding_accessor_share_reference_model != False # Construct a model instance of ShareAccessorBindingAccessorShareReference by calling from_dict on the json representation - share_accessor_binding_accessor_share_reference_model_dict = ShareAccessorBindingAccessorShareReference.from_dict(share_accessor_binding_accessor_share_reference_model_json).__dict__ - share_accessor_binding_accessor_share_reference_model2 = ShareAccessorBindingAccessorShareReference(**share_accessor_binding_accessor_share_reference_model_dict) + share_accessor_binding_accessor_share_reference_model_dict = ( + ShareAccessorBindingAccessorShareReference.from_dict( + share_accessor_binding_accessor_share_reference_model_json + ).__dict__ + ) + share_accessor_binding_accessor_share_reference_model2 = ShareAccessorBindingAccessorShareReference( + **share_accessor_binding_accessor_share_reference_model_dict + ) # Verify the model instances are equivalent - assert share_accessor_binding_accessor_share_reference_model == share_accessor_binding_accessor_share_reference_model2 + assert ( + share_accessor_binding_accessor_share_reference_model + == share_accessor_binding_accessor_share_reference_model2 + ) # Convert model instance back to dict and verify no loss of data - share_accessor_binding_accessor_share_reference_model_json2 = share_accessor_binding_accessor_share_reference_model.to_dict() - assert share_accessor_binding_accessor_share_reference_model_json2 == share_accessor_binding_accessor_share_reference_model_json + share_accessor_binding_accessor_share_reference_model_json2 = ( + share_accessor_binding_accessor_share_reference_model.to_dict() + ) + assert ( + share_accessor_binding_accessor_share_reference_model_json2 + == share_accessor_binding_accessor_share_reference_model_json + ) class TestModel_ShareAccessorBindingAccessorWatsonxMachineLearningReference: @@ -90724,23 +100872,47 @@ def test_share_accessor_binding_accessor_watsonx_machine_learning_reference_seri # Construct a json representation of a ShareAccessorBindingAccessorWatsonxMachineLearningReference model share_accessor_binding_accessor_watsonx_machine_learning_reference_model_json = {} - share_accessor_binding_accessor_watsonx_machine_learning_reference_model_json['crn'] = 'crn:v1:bluemix:public:pm-20:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:6500f05d-a5b5-4ecf-91ba-0d12b9dee607::' - share_accessor_binding_accessor_watsonx_machine_learning_reference_model_json['resource_type'] = 'watsonx_machine_learning' + share_accessor_binding_accessor_watsonx_machine_learning_reference_model_json['crn'] = ( + 'crn:v1:bluemix:public:pm-20:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:6500f05d-a5b5-4ecf-91ba-0d12b9dee607::' + ) + share_accessor_binding_accessor_watsonx_machine_learning_reference_model_json['resource_type'] = ( + 'watsonx_machine_learning' + ) # Construct a model instance of ShareAccessorBindingAccessorWatsonxMachineLearningReference by calling from_dict on the json representation - share_accessor_binding_accessor_watsonx_machine_learning_reference_model = ShareAccessorBindingAccessorWatsonxMachineLearningReference.from_dict(share_accessor_binding_accessor_watsonx_machine_learning_reference_model_json) + share_accessor_binding_accessor_watsonx_machine_learning_reference_model = ( + ShareAccessorBindingAccessorWatsonxMachineLearningReference.from_dict( + share_accessor_binding_accessor_watsonx_machine_learning_reference_model_json + ) + ) assert share_accessor_binding_accessor_watsonx_machine_learning_reference_model != False # Construct a model instance of ShareAccessorBindingAccessorWatsonxMachineLearningReference by calling from_dict on the json representation - share_accessor_binding_accessor_watsonx_machine_learning_reference_model_dict = ShareAccessorBindingAccessorWatsonxMachineLearningReference.from_dict(share_accessor_binding_accessor_watsonx_machine_learning_reference_model_json).__dict__ - share_accessor_binding_accessor_watsonx_machine_learning_reference_model2 = ShareAccessorBindingAccessorWatsonxMachineLearningReference(**share_accessor_binding_accessor_watsonx_machine_learning_reference_model_dict) + share_accessor_binding_accessor_watsonx_machine_learning_reference_model_dict = ( + ShareAccessorBindingAccessorWatsonxMachineLearningReference.from_dict( + share_accessor_binding_accessor_watsonx_machine_learning_reference_model_json + ).__dict__ + ) + share_accessor_binding_accessor_watsonx_machine_learning_reference_model2 = ( + ShareAccessorBindingAccessorWatsonxMachineLearningReference( + **share_accessor_binding_accessor_watsonx_machine_learning_reference_model_dict + ) + ) # Verify the model instances are equivalent - assert share_accessor_binding_accessor_watsonx_machine_learning_reference_model == share_accessor_binding_accessor_watsonx_machine_learning_reference_model2 + assert ( + share_accessor_binding_accessor_watsonx_machine_learning_reference_model + == share_accessor_binding_accessor_watsonx_machine_learning_reference_model2 + ) # Convert model instance back to dict and verify no loss of data - share_accessor_binding_accessor_watsonx_machine_learning_reference_model_json2 = share_accessor_binding_accessor_watsonx_machine_learning_reference_model.to_dict() - assert share_accessor_binding_accessor_watsonx_machine_learning_reference_model_json2 == share_accessor_binding_accessor_watsonx_machine_learning_reference_model_json + share_accessor_binding_accessor_watsonx_machine_learning_reference_model_json2 = ( + share_accessor_binding_accessor_watsonx_machine_learning_reference_model.to_dict() + ) + assert ( + share_accessor_binding_accessor_watsonx_machine_learning_reference_model_json2 + == share_accessor_binding_accessor_watsonx_machine_learning_reference_model_json + ) class TestModel_ShareIdentityByCRN: @@ -90755,7 +100927,9 @@ def test_share_identity_by_crn_serialization(self): # Construct a json representation of a ShareIdentityByCRN model share_identity_by_crn_model_json = {} - share_identity_by_crn_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::share:r006-0fe9e5d8-0a4d-4818-96ec-e99708644a58' + share_identity_by_crn_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::share:r006-0fe9e5d8-0a4d-4818-96ec-e99708644a58' + ) # Construct a model instance of ShareIdentityByCRN by calling from_dict on the json representation share_identity_by_crn_model = ShareIdentityByCRN.from_dict(share_identity_by_crn_model_json) @@ -90785,7 +100959,9 @@ def test_share_identity_by_href_serialization(self): # Construct a json representation of a ShareIdentityByHref model share_identity_by_href_model_json = {} - share_identity_by_href_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/shares/r006-0fe9e5d8-0a4d-4818-96ec-e99708644a58' + share_identity_by_href_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/shares/r006-0fe9e5d8-0a4d-4818-96ec-e99708644a58' + ) # Construct a model instance of ShareIdentityByHref by calling from_dict on the json representation share_identity_by_href_model = ShareIdentityByHref.from_dict(share_identity_by_href_model_json) @@ -90845,12 +101021,16 @@ def test_share_mount_target_prototype_share_mount_target_by_access_control_mode_ # Construct dict forms of any model objects needed in order to build this model. - virtual_network_interface_ip_prototype_model = {} # VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext + virtual_network_interface_ip_prototype_model = ( + {} + ) # VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext virtual_network_interface_ip_prototype_model['address'] = '10.0.0.5' virtual_network_interface_ip_prototype_model['auto_delete'] = False virtual_network_interface_ip_prototype_model['name'] = 'my-reserved-ip' - virtual_network_interface_primary_ip_prototype_model = {} # VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext + virtual_network_interface_primary_ip_prototype_model = ( + {} + ) # VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext virtual_network_interface_primary_ip_prototype_model['address'] = '10.0.0.5' virtual_network_interface_primary_ip_prototype_model['auto_delete'] = False virtual_network_interface_primary_ip_prototype_model['name'] = 'my-reserved-ip' @@ -90864,38 +101044,72 @@ def test_share_mount_target_prototype_share_mount_target_by_access_control_mode_ subnet_identity_model = {} # SubnetIdentityById subnet_identity_model['id'] = '2302-ea5fe79f-52c3-4f05-86ae-9540a10489f5' - share_mount_target_virtual_network_interface_prototype_model = {} # ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfacePrototypeShareMountTargetContext + share_mount_target_virtual_network_interface_prototype_model = ( + {} + ) # ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfacePrototypeShareMountTargetContext share_mount_target_virtual_network_interface_prototype_model['allow_ip_spoofing'] = True share_mount_target_virtual_network_interface_prototype_model['auto_delete'] = False share_mount_target_virtual_network_interface_prototype_model['enable_infrastructure_nat'] = True - share_mount_target_virtual_network_interface_prototype_model['ips'] = [virtual_network_interface_ip_prototype_model] + share_mount_target_virtual_network_interface_prototype_model['ips'] = [ + virtual_network_interface_ip_prototype_model + ] share_mount_target_virtual_network_interface_prototype_model['name'] = 'my-virtual-network-interface' - share_mount_target_virtual_network_interface_prototype_model['primary_ip'] = virtual_network_interface_primary_ip_prototype_model + share_mount_target_virtual_network_interface_prototype_model['primary_ip'] = ( + virtual_network_interface_primary_ip_prototype_model + ) share_mount_target_virtual_network_interface_prototype_model['protocol_state_filtering_mode'] = 'auto' share_mount_target_virtual_network_interface_prototype_model['resource_group'] = resource_group_identity_model - share_mount_target_virtual_network_interface_prototype_model['security_groups'] = [security_group_identity_model] + share_mount_target_virtual_network_interface_prototype_model['security_groups'] = [ + security_group_identity_model + ] share_mount_target_virtual_network_interface_prototype_model['subnet'] = subnet_identity_model # Construct a json representation of a ShareMountTargetPrototypeShareMountTargetByAccessControlModeSecurityGroup model share_mount_target_prototype_share_mount_target_by_access_control_mode_security_group_model_json = {} - share_mount_target_prototype_share_mount_target_by_access_control_mode_security_group_model_json['name'] = 'my-share-mount-target' - share_mount_target_prototype_share_mount_target_by_access_control_mode_security_group_model_json['transit_encryption'] = 'none' - share_mount_target_prototype_share_mount_target_by_access_control_mode_security_group_model_json['virtual_network_interface'] = share_mount_target_virtual_network_interface_prototype_model + share_mount_target_prototype_share_mount_target_by_access_control_mode_security_group_model_json['name'] = ( + 'my-share-mount-target' + ) + share_mount_target_prototype_share_mount_target_by_access_control_mode_security_group_model_json[ + 'transit_encryption' + ] = 'none' + share_mount_target_prototype_share_mount_target_by_access_control_mode_security_group_model_json[ + 'virtual_network_interface' + ] = share_mount_target_virtual_network_interface_prototype_model # Construct a model instance of ShareMountTargetPrototypeShareMountTargetByAccessControlModeSecurityGroup by calling from_dict on the json representation - share_mount_target_prototype_share_mount_target_by_access_control_mode_security_group_model = ShareMountTargetPrototypeShareMountTargetByAccessControlModeSecurityGroup.from_dict(share_mount_target_prototype_share_mount_target_by_access_control_mode_security_group_model_json) + share_mount_target_prototype_share_mount_target_by_access_control_mode_security_group_model = ( + ShareMountTargetPrototypeShareMountTargetByAccessControlModeSecurityGroup.from_dict( + share_mount_target_prototype_share_mount_target_by_access_control_mode_security_group_model_json + ) + ) assert share_mount_target_prototype_share_mount_target_by_access_control_mode_security_group_model != False # Construct a model instance of ShareMountTargetPrototypeShareMountTargetByAccessControlModeSecurityGroup by calling from_dict on the json representation - share_mount_target_prototype_share_mount_target_by_access_control_mode_security_group_model_dict = ShareMountTargetPrototypeShareMountTargetByAccessControlModeSecurityGroup.from_dict(share_mount_target_prototype_share_mount_target_by_access_control_mode_security_group_model_json).__dict__ - share_mount_target_prototype_share_mount_target_by_access_control_mode_security_group_model2 = ShareMountTargetPrototypeShareMountTargetByAccessControlModeSecurityGroup(**share_mount_target_prototype_share_mount_target_by_access_control_mode_security_group_model_dict) + share_mount_target_prototype_share_mount_target_by_access_control_mode_security_group_model_dict = ( + ShareMountTargetPrototypeShareMountTargetByAccessControlModeSecurityGroup.from_dict( + share_mount_target_prototype_share_mount_target_by_access_control_mode_security_group_model_json + ).__dict__ + ) + share_mount_target_prototype_share_mount_target_by_access_control_mode_security_group_model2 = ( + ShareMountTargetPrototypeShareMountTargetByAccessControlModeSecurityGroup( + **share_mount_target_prototype_share_mount_target_by_access_control_mode_security_group_model_dict + ) + ) # Verify the model instances are equivalent - assert share_mount_target_prototype_share_mount_target_by_access_control_mode_security_group_model == share_mount_target_prototype_share_mount_target_by_access_control_mode_security_group_model2 + assert ( + share_mount_target_prototype_share_mount_target_by_access_control_mode_security_group_model + == share_mount_target_prototype_share_mount_target_by_access_control_mode_security_group_model2 + ) # Convert model instance back to dict and verify no loss of data - share_mount_target_prototype_share_mount_target_by_access_control_mode_security_group_model_json2 = share_mount_target_prototype_share_mount_target_by_access_control_mode_security_group_model.to_dict() - assert share_mount_target_prototype_share_mount_target_by_access_control_mode_security_group_model_json2 == share_mount_target_prototype_share_mount_target_by_access_control_mode_security_group_model_json + share_mount_target_prototype_share_mount_target_by_access_control_mode_security_group_model_json2 = ( + share_mount_target_prototype_share_mount_target_by_access_control_mode_security_group_model.to_dict() + ) + assert ( + share_mount_target_prototype_share_mount_target_by_access_control_mode_security_group_model_json2 + == share_mount_target_prototype_share_mount_target_by_access_control_mode_security_group_model_json + ) class TestModel_ShareMountTargetPrototypeShareMountTargetByAccessControlModeVPC: @@ -90915,24 +101129,50 @@ def test_share_mount_target_prototype_share_mount_target_by_access_control_mode_ # Construct a json representation of a ShareMountTargetPrototypeShareMountTargetByAccessControlModeVPC model share_mount_target_prototype_share_mount_target_by_access_control_mode_vpc_model_json = {} - share_mount_target_prototype_share_mount_target_by_access_control_mode_vpc_model_json['name'] = 'my-share-mount-target' - share_mount_target_prototype_share_mount_target_by_access_control_mode_vpc_model_json['transit_encryption'] = 'none' - share_mount_target_prototype_share_mount_target_by_access_control_mode_vpc_model_json['vpc'] = vpc_identity_model + share_mount_target_prototype_share_mount_target_by_access_control_mode_vpc_model_json['name'] = ( + 'my-share-mount-target' + ) + share_mount_target_prototype_share_mount_target_by_access_control_mode_vpc_model_json['transit_encryption'] = ( + 'none' + ) + share_mount_target_prototype_share_mount_target_by_access_control_mode_vpc_model_json['vpc'] = ( + vpc_identity_model + ) # Construct a model instance of ShareMountTargetPrototypeShareMountTargetByAccessControlModeVPC by calling from_dict on the json representation - share_mount_target_prototype_share_mount_target_by_access_control_mode_vpc_model = ShareMountTargetPrototypeShareMountTargetByAccessControlModeVPC.from_dict(share_mount_target_prototype_share_mount_target_by_access_control_mode_vpc_model_json) + share_mount_target_prototype_share_mount_target_by_access_control_mode_vpc_model = ( + ShareMountTargetPrototypeShareMountTargetByAccessControlModeVPC.from_dict( + share_mount_target_prototype_share_mount_target_by_access_control_mode_vpc_model_json + ) + ) assert share_mount_target_prototype_share_mount_target_by_access_control_mode_vpc_model != False # Construct a model instance of ShareMountTargetPrototypeShareMountTargetByAccessControlModeVPC by calling from_dict on the json representation - share_mount_target_prototype_share_mount_target_by_access_control_mode_vpc_model_dict = ShareMountTargetPrototypeShareMountTargetByAccessControlModeVPC.from_dict(share_mount_target_prototype_share_mount_target_by_access_control_mode_vpc_model_json).__dict__ - share_mount_target_prototype_share_mount_target_by_access_control_mode_vpc_model2 = ShareMountTargetPrototypeShareMountTargetByAccessControlModeVPC(**share_mount_target_prototype_share_mount_target_by_access_control_mode_vpc_model_dict) + share_mount_target_prototype_share_mount_target_by_access_control_mode_vpc_model_dict = ( + ShareMountTargetPrototypeShareMountTargetByAccessControlModeVPC.from_dict( + share_mount_target_prototype_share_mount_target_by_access_control_mode_vpc_model_json + ).__dict__ + ) + share_mount_target_prototype_share_mount_target_by_access_control_mode_vpc_model2 = ( + ShareMountTargetPrototypeShareMountTargetByAccessControlModeVPC( + **share_mount_target_prototype_share_mount_target_by_access_control_mode_vpc_model_dict + ) + ) # Verify the model instances are equivalent - assert share_mount_target_prototype_share_mount_target_by_access_control_mode_vpc_model == share_mount_target_prototype_share_mount_target_by_access_control_mode_vpc_model2 + assert ( + share_mount_target_prototype_share_mount_target_by_access_control_mode_vpc_model + == share_mount_target_prototype_share_mount_target_by_access_control_mode_vpc_model2 + ) # Convert model instance back to dict and verify no loss of data - share_mount_target_prototype_share_mount_target_by_access_control_mode_vpc_model_json2 = share_mount_target_prototype_share_mount_target_by_access_control_mode_vpc_model.to_dict() - assert share_mount_target_prototype_share_mount_target_by_access_control_mode_vpc_model_json2 == share_mount_target_prototype_share_mount_target_by_access_control_mode_vpc_model_json + share_mount_target_prototype_share_mount_target_by_access_control_mode_vpc_model_json2 = ( + share_mount_target_prototype_share_mount_target_by_access_control_mode_vpc_model.to_dict() + ) + assert ( + share_mount_target_prototype_share_mount_target_by_access_control_mode_vpc_model_json2 + == share_mount_target_prototype_share_mount_target_by_access_control_mode_vpc_model_json + ) class TestModel_ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfacePrototypeShareMountTargetContext: @@ -90940,19 +101180,25 @@ class TestModel_ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkIn Test Class for ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfacePrototypeShareMountTargetContext """ - def test_share_mount_target_virtual_network_interface_prototype_virtual_network_interface_prototype_share_mount_target_context_serialization(self): + def test_share_mount_target_virtual_network_interface_prototype_virtual_network_interface_prototype_share_mount_target_context_serialization( + self, + ): """ Test serialization/deserialization for ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfacePrototypeShareMountTargetContext """ # Construct dict forms of any model objects needed in order to build this model. - virtual_network_interface_ip_prototype_model = {} # VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext + virtual_network_interface_ip_prototype_model = ( + {} + ) # VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext virtual_network_interface_ip_prototype_model['address'] = '10.0.0.5' virtual_network_interface_ip_prototype_model['auto_delete'] = False virtual_network_interface_ip_prototype_model['name'] = 'my-reserved-ip' - virtual_network_interface_primary_ip_prototype_model = {} # VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext + virtual_network_interface_primary_ip_prototype_model = ( + {} + ) # VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext virtual_network_interface_primary_ip_prototype_model['address'] = '10.0.0.5' virtual_network_interface_primary_ip_prototype_model['auto_delete'] = False virtual_network_interface_primary_ip_prototype_model['name'] = 'my-reserved-ip' @@ -90967,32 +101213,75 @@ def test_share_mount_target_virtual_network_interface_prototype_virtual_network_ subnet_identity_model['id'] = '2302-ea5fe79f-52c3-4f05-86ae-9540a10489f5' # Construct a json representation of a ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfacePrototypeShareMountTargetContext model - share_mount_target_virtual_network_interface_prototype_virtual_network_interface_prototype_share_mount_target_context_model_json = {} - share_mount_target_virtual_network_interface_prototype_virtual_network_interface_prototype_share_mount_target_context_model_json['allow_ip_spoofing'] = True - share_mount_target_virtual_network_interface_prototype_virtual_network_interface_prototype_share_mount_target_context_model_json['auto_delete'] = False - share_mount_target_virtual_network_interface_prototype_virtual_network_interface_prototype_share_mount_target_context_model_json['enable_infrastructure_nat'] = True - share_mount_target_virtual_network_interface_prototype_virtual_network_interface_prototype_share_mount_target_context_model_json['ips'] = [virtual_network_interface_ip_prototype_model] - share_mount_target_virtual_network_interface_prototype_virtual_network_interface_prototype_share_mount_target_context_model_json['name'] = 'my-virtual-network-interface' - share_mount_target_virtual_network_interface_prototype_virtual_network_interface_prototype_share_mount_target_context_model_json['primary_ip'] = virtual_network_interface_primary_ip_prototype_model - share_mount_target_virtual_network_interface_prototype_virtual_network_interface_prototype_share_mount_target_context_model_json['protocol_state_filtering_mode'] = 'auto' - share_mount_target_virtual_network_interface_prototype_virtual_network_interface_prototype_share_mount_target_context_model_json['resource_group'] = resource_group_identity_model - share_mount_target_virtual_network_interface_prototype_virtual_network_interface_prototype_share_mount_target_context_model_json['security_groups'] = [security_group_identity_model] - share_mount_target_virtual_network_interface_prototype_virtual_network_interface_prototype_share_mount_target_context_model_json['subnet'] = subnet_identity_model + share_mount_target_virtual_network_interface_prototype_virtual_network_interface_prototype_share_mount_target_context_model_json = ( + {} + ) + share_mount_target_virtual_network_interface_prototype_virtual_network_interface_prototype_share_mount_target_context_model_json[ + 'allow_ip_spoofing' + ] = True + share_mount_target_virtual_network_interface_prototype_virtual_network_interface_prototype_share_mount_target_context_model_json[ + 'auto_delete' + ] = False + share_mount_target_virtual_network_interface_prototype_virtual_network_interface_prototype_share_mount_target_context_model_json[ + 'enable_infrastructure_nat' + ] = True + share_mount_target_virtual_network_interface_prototype_virtual_network_interface_prototype_share_mount_target_context_model_json[ + 'ips' + ] = [ + virtual_network_interface_ip_prototype_model + ] + share_mount_target_virtual_network_interface_prototype_virtual_network_interface_prototype_share_mount_target_context_model_json[ + 'name' + ] = 'my-virtual-network-interface' + share_mount_target_virtual_network_interface_prototype_virtual_network_interface_prototype_share_mount_target_context_model_json[ + 'primary_ip' + ] = virtual_network_interface_primary_ip_prototype_model + share_mount_target_virtual_network_interface_prototype_virtual_network_interface_prototype_share_mount_target_context_model_json[ + 'protocol_state_filtering_mode' + ] = 'auto' + share_mount_target_virtual_network_interface_prototype_virtual_network_interface_prototype_share_mount_target_context_model_json[ + 'resource_group' + ] = resource_group_identity_model + share_mount_target_virtual_network_interface_prototype_virtual_network_interface_prototype_share_mount_target_context_model_json[ + 'security_groups' + ] = [ + security_group_identity_model + ] + share_mount_target_virtual_network_interface_prototype_virtual_network_interface_prototype_share_mount_target_context_model_json[ + 'subnet' + ] = subnet_identity_model # Construct a model instance of ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfacePrototypeShareMountTargetContext by calling from_dict on the json representation - share_mount_target_virtual_network_interface_prototype_virtual_network_interface_prototype_share_mount_target_context_model = ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfacePrototypeShareMountTargetContext.from_dict(share_mount_target_virtual_network_interface_prototype_virtual_network_interface_prototype_share_mount_target_context_model_json) - assert share_mount_target_virtual_network_interface_prototype_virtual_network_interface_prototype_share_mount_target_context_model != False + share_mount_target_virtual_network_interface_prototype_virtual_network_interface_prototype_share_mount_target_context_model = ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfacePrototypeShareMountTargetContext.from_dict( + share_mount_target_virtual_network_interface_prototype_virtual_network_interface_prototype_share_mount_target_context_model_json + ) + assert ( + share_mount_target_virtual_network_interface_prototype_virtual_network_interface_prototype_share_mount_target_context_model + != False + ) # Construct a model instance of ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfacePrototypeShareMountTargetContext by calling from_dict on the json representation - share_mount_target_virtual_network_interface_prototype_virtual_network_interface_prototype_share_mount_target_context_model_dict = ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfacePrototypeShareMountTargetContext.from_dict(share_mount_target_virtual_network_interface_prototype_virtual_network_interface_prototype_share_mount_target_context_model_json).__dict__ - share_mount_target_virtual_network_interface_prototype_virtual_network_interface_prototype_share_mount_target_context_model2 = ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfacePrototypeShareMountTargetContext(**share_mount_target_virtual_network_interface_prototype_virtual_network_interface_prototype_share_mount_target_context_model_dict) + share_mount_target_virtual_network_interface_prototype_virtual_network_interface_prototype_share_mount_target_context_model_dict = ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfacePrototypeShareMountTargetContext.from_dict( + share_mount_target_virtual_network_interface_prototype_virtual_network_interface_prototype_share_mount_target_context_model_json + ).__dict__ + share_mount_target_virtual_network_interface_prototype_virtual_network_interface_prototype_share_mount_target_context_model2 = ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfacePrototypeShareMountTargetContext( + **share_mount_target_virtual_network_interface_prototype_virtual_network_interface_prototype_share_mount_target_context_model_dict + ) # Verify the model instances are equivalent - assert share_mount_target_virtual_network_interface_prototype_virtual_network_interface_prototype_share_mount_target_context_model == share_mount_target_virtual_network_interface_prototype_virtual_network_interface_prototype_share_mount_target_context_model2 + assert ( + share_mount_target_virtual_network_interface_prototype_virtual_network_interface_prototype_share_mount_target_context_model + == share_mount_target_virtual_network_interface_prototype_virtual_network_interface_prototype_share_mount_target_context_model2 + ) # Convert model instance back to dict and verify no loss of data - share_mount_target_virtual_network_interface_prototype_virtual_network_interface_prototype_share_mount_target_context_model_json2 = share_mount_target_virtual_network_interface_prototype_virtual_network_interface_prototype_share_mount_target_context_model.to_dict() - assert share_mount_target_virtual_network_interface_prototype_virtual_network_interface_prototype_share_mount_target_context_model_json2 == share_mount_target_virtual_network_interface_prototype_virtual_network_interface_prototype_share_mount_target_context_model_json + share_mount_target_virtual_network_interface_prototype_virtual_network_interface_prototype_share_mount_target_context_model_json2 = ( + share_mount_target_virtual_network_interface_prototype_virtual_network_interface_prototype_share_mount_target_context_model.to_dict() + ) + assert ( + share_mount_target_virtual_network_interface_prototype_virtual_network_interface_prototype_share_mount_target_context_model_json2 + == share_mount_target_virtual_network_interface_prototype_virtual_network_interface_prototype_share_mount_target_context_model_json + ) class TestModel_ShareProfileCapacityDependentRange: @@ -91013,12 +101302,18 @@ def test_share_profile_capacity_dependent_range_serialization(self): share_profile_capacity_dependent_range_model_json['type'] = 'dependent_range' # Construct a model instance of ShareProfileCapacityDependentRange by calling from_dict on the json representation - share_profile_capacity_dependent_range_model = ShareProfileCapacityDependentRange.from_dict(share_profile_capacity_dependent_range_model_json) + share_profile_capacity_dependent_range_model = ShareProfileCapacityDependentRange.from_dict( + share_profile_capacity_dependent_range_model_json + ) assert share_profile_capacity_dependent_range_model != False # Construct a model instance of ShareProfileCapacityDependentRange by calling from_dict on the json representation - share_profile_capacity_dependent_range_model_dict = ShareProfileCapacityDependentRange.from_dict(share_profile_capacity_dependent_range_model_json).__dict__ - share_profile_capacity_dependent_range_model2 = ShareProfileCapacityDependentRange(**share_profile_capacity_dependent_range_model_dict) + share_profile_capacity_dependent_range_model_dict = ShareProfileCapacityDependentRange.from_dict( + share_profile_capacity_dependent_range_model_json + ).__dict__ + share_profile_capacity_dependent_range_model2 = ShareProfileCapacityDependentRange( + **share_profile_capacity_dependent_range_model_dict + ) # Verify the model instances are equivalent assert share_profile_capacity_dependent_range_model == share_profile_capacity_dependent_range_model2 @@ -91048,7 +101343,9 @@ def test_share_profile_capacity_enum_serialization(self): assert share_profile_capacity_enum_model != False # Construct a model instance of ShareProfileCapacityEnum by calling from_dict on the json representation - share_profile_capacity_enum_model_dict = ShareProfileCapacityEnum.from_dict(share_profile_capacity_enum_model_json).__dict__ + share_profile_capacity_enum_model_dict = ShareProfileCapacityEnum.from_dict( + share_profile_capacity_enum_model_json + ).__dict__ share_profile_capacity_enum_model2 = ShareProfileCapacityEnum(**share_profile_capacity_enum_model_dict) # Verify the model instances are equivalent @@ -91075,11 +101372,15 @@ def test_share_profile_capacity_fixed_serialization(self): share_profile_capacity_fixed_model_json['value'] = 4800 # Construct a model instance of ShareProfileCapacityFixed by calling from_dict on the json representation - share_profile_capacity_fixed_model = ShareProfileCapacityFixed.from_dict(share_profile_capacity_fixed_model_json) + share_profile_capacity_fixed_model = ShareProfileCapacityFixed.from_dict( + share_profile_capacity_fixed_model_json + ) assert share_profile_capacity_fixed_model != False # Construct a model instance of ShareProfileCapacityFixed by calling from_dict on the json representation - share_profile_capacity_fixed_model_dict = ShareProfileCapacityFixed.from_dict(share_profile_capacity_fixed_model_json).__dict__ + share_profile_capacity_fixed_model_dict = ShareProfileCapacityFixed.from_dict( + share_profile_capacity_fixed_model_json + ).__dict__ share_profile_capacity_fixed_model2 = ShareProfileCapacityFixed(**share_profile_capacity_fixed_model_dict) # Verify the model instances are equivalent @@ -91109,11 +101410,15 @@ def test_share_profile_capacity_range_serialization(self): share_profile_capacity_range_model_json['type'] = 'range' # Construct a model instance of ShareProfileCapacityRange by calling from_dict on the json representation - share_profile_capacity_range_model = ShareProfileCapacityRange.from_dict(share_profile_capacity_range_model_json) + share_profile_capacity_range_model = ShareProfileCapacityRange.from_dict( + share_profile_capacity_range_model_json + ) assert share_profile_capacity_range_model != False # Construct a model instance of ShareProfileCapacityRange by calling from_dict on the json representation - share_profile_capacity_range_model_dict = ShareProfileCapacityRange.from_dict(share_profile_capacity_range_model_json).__dict__ + share_profile_capacity_range_model_dict = ShareProfileCapacityRange.from_dict( + share_profile_capacity_range_model_json + ).__dict__ share_profile_capacity_range_model2 = ShareProfileCapacityRange(**share_profile_capacity_range_model_dict) # Verify the model instances are equivalent @@ -91142,12 +101447,18 @@ def test_share_profile_iops_dependent_range_serialization(self): share_profile_iops_dependent_range_model_json['type'] = 'dependent_range' # Construct a model instance of ShareProfileIOPSDependentRange by calling from_dict on the json representation - share_profile_iops_dependent_range_model = ShareProfileIOPSDependentRange.from_dict(share_profile_iops_dependent_range_model_json) + share_profile_iops_dependent_range_model = ShareProfileIOPSDependentRange.from_dict( + share_profile_iops_dependent_range_model_json + ) assert share_profile_iops_dependent_range_model != False # Construct a model instance of ShareProfileIOPSDependentRange by calling from_dict on the json representation - share_profile_iops_dependent_range_model_dict = ShareProfileIOPSDependentRange.from_dict(share_profile_iops_dependent_range_model_json).__dict__ - share_profile_iops_dependent_range_model2 = ShareProfileIOPSDependentRange(**share_profile_iops_dependent_range_model_dict) + share_profile_iops_dependent_range_model_dict = ShareProfileIOPSDependentRange.from_dict( + share_profile_iops_dependent_range_model_json + ).__dict__ + share_profile_iops_dependent_range_model2 = ShareProfileIOPSDependentRange( + **share_profile_iops_dependent_range_model_dict + ) # Verify the model instances are equivalent assert share_profile_iops_dependent_range_model == share_profile_iops_dependent_range_model2 @@ -91209,7 +101520,9 @@ def test_share_profile_iops_fixed_serialization(self): assert share_profile_iops_fixed_model != False # Construct a model instance of ShareProfileIOPSFixed by calling from_dict on the json representation - share_profile_iops_fixed_model_dict = ShareProfileIOPSFixed.from_dict(share_profile_iops_fixed_model_json).__dict__ + share_profile_iops_fixed_model_dict = ShareProfileIOPSFixed.from_dict( + share_profile_iops_fixed_model_json + ).__dict__ share_profile_iops_fixed_model2 = ShareProfileIOPSFixed(**share_profile_iops_fixed_model_dict) # Verify the model instances are equivalent @@ -91243,7 +101556,9 @@ def test_share_profile_iops_range_serialization(self): assert share_profile_iops_range_model != False # Construct a model instance of ShareProfileIOPSRange by calling from_dict on the json representation - share_profile_iops_range_model_dict = ShareProfileIOPSRange.from_dict(share_profile_iops_range_model_json).__dict__ + share_profile_iops_range_model_dict = ShareProfileIOPSRange.from_dict( + share_profile_iops_range_model_json + ).__dict__ share_profile_iops_range_model2 = ShareProfileIOPSRange(**share_profile_iops_range_model_dict) # Verify the model instances are equivalent @@ -91266,14 +101581,20 @@ def test_share_profile_identity_by_href_serialization(self): # Construct a json representation of a ShareProfileIdentityByHref model share_profile_identity_by_href_model_json = {} - share_profile_identity_by_href_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/share/profiles/tier-3iops' + share_profile_identity_by_href_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/share/profiles/tier-3iops' + ) # Construct a model instance of ShareProfileIdentityByHref by calling from_dict on the json representation - share_profile_identity_by_href_model = ShareProfileIdentityByHref.from_dict(share_profile_identity_by_href_model_json) + share_profile_identity_by_href_model = ShareProfileIdentityByHref.from_dict( + share_profile_identity_by_href_model_json + ) assert share_profile_identity_by_href_model != False # Construct a model instance of ShareProfileIdentityByHref by calling from_dict on the json representation - share_profile_identity_by_href_model_dict = ShareProfileIdentityByHref.from_dict(share_profile_identity_by_href_model_json).__dict__ + share_profile_identity_by_href_model_dict = ShareProfileIdentityByHref.from_dict( + share_profile_identity_by_href_model_json + ).__dict__ share_profile_identity_by_href_model2 = ShareProfileIdentityByHref(**share_profile_identity_by_href_model_dict) # Verify the model instances are equivalent @@ -91299,11 +101620,15 @@ def test_share_profile_identity_by_name_serialization(self): share_profile_identity_by_name_model_json['name'] = 'tier-3iops' # Construct a model instance of ShareProfileIdentityByName by calling from_dict on the json representation - share_profile_identity_by_name_model = ShareProfileIdentityByName.from_dict(share_profile_identity_by_name_model_json) + share_profile_identity_by_name_model = ShareProfileIdentityByName.from_dict( + share_profile_identity_by_name_model_json + ) assert share_profile_identity_by_name_model != False # Construct a model instance of ShareProfileIdentityByName by calling from_dict on the json representation - share_profile_identity_by_name_model_dict = ShareProfileIdentityByName.from_dict(share_profile_identity_by_name_model_json).__dict__ + share_profile_identity_by_name_model_dict = ShareProfileIdentityByName.from_dict( + share_profile_identity_by_name_model_json + ).__dict__ share_profile_identity_by_name_model2 = ShareProfileIdentityByName(**share_profile_identity_by_name_model_dict) # Verify the model instances are equivalent @@ -91326,12 +101651,16 @@ def test_share_prototype_share_by_origin_share_serialization(self): # Construct dict forms of any model objects needed in order to build this model. - virtual_network_interface_ip_prototype_model = {} # VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext + virtual_network_interface_ip_prototype_model = ( + {} + ) # VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext virtual_network_interface_ip_prototype_model['address'] = '10.0.0.5' virtual_network_interface_ip_prototype_model['auto_delete'] = False virtual_network_interface_ip_prototype_model['name'] = 'my-reserved-ip' - virtual_network_interface_primary_ip_prototype_model = {} # VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext + virtual_network_interface_primary_ip_prototype_model = ( + {} + ) # VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext virtual_network_interface_primary_ip_prototype_model['address'] = '10.0.0.5' virtual_network_interface_primary_ip_prototype_model['auto_delete'] = False virtual_network_interface_primary_ip_prototype_model['name'] = 'my-reserved-ip' @@ -91345,22 +101674,34 @@ def test_share_prototype_share_by_origin_share_serialization(self): subnet_identity_model = {} # SubnetIdentityById subnet_identity_model['id'] = '7ec86020-1c6e-4889-b3f0-a15f2e50f87e' - share_mount_target_virtual_network_interface_prototype_model = {} # ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfacePrototypeShareMountTargetContext + share_mount_target_virtual_network_interface_prototype_model = ( + {} + ) # ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfacePrototypeShareMountTargetContext share_mount_target_virtual_network_interface_prototype_model['allow_ip_spoofing'] = True share_mount_target_virtual_network_interface_prototype_model['auto_delete'] = False share_mount_target_virtual_network_interface_prototype_model['enable_infrastructure_nat'] = True - share_mount_target_virtual_network_interface_prototype_model['ips'] = [virtual_network_interface_ip_prototype_model] + share_mount_target_virtual_network_interface_prototype_model['ips'] = [ + virtual_network_interface_ip_prototype_model + ] share_mount_target_virtual_network_interface_prototype_model['name'] = 'my-virtual-network-interface' - share_mount_target_virtual_network_interface_prototype_model['primary_ip'] = virtual_network_interface_primary_ip_prototype_model + share_mount_target_virtual_network_interface_prototype_model['primary_ip'] = ( + virtual_network_interface_primary_ip_prototype_model + ) share_mount_target_virtual_network_interface_prototype_model['protocol_state_filtering_mode'] = 'auto' share_mount_target_virtual_network_interface_prototype_model['resource_group'] = resource_group_identity_model - share_mount_target_virtual_network_interface_prototype_model['security_groups'] = [security_group_identity_model] + share_mount_target_virtual_network_interface_prototype_model['security_groups'] = [ + security_group_identity_model + ] share_mount_target_virtual_network_interface_prototype_model['subnet'] = subnet_identity_model - share_mount_target_prototype_model = {} # ShareMountTargetPrototypeShareMountTargetByAccessControlModeSecurityGroup + share_mount_target_prototype_model = ( + {} + ) # ShareMountTargetPrototypeShareMountTargetByAccessControlModeSecurityGroup share_mount_target_prototype_model['name'] = 'my-share-mount-target' share_mount_target_prototype_model['transit_encryption'] = 'none' - share_mount_target_prototype_model['virtual_network_interface'] = share_mount_target_virtual_network_interface_prototype_model + share_mount_target_prototype_model['virtual_network_interface'] = ( + share_mount_target_virtual_network_interface_prototype_model + ) share_profile_identity_model = {} # ShareProfileIdentityByName share_profile_identity_model['name'] = 'tier-3iops' @@ -91392,12 +101733,18 @@ def test_share_prototype_share_by_origin_share_serialization(self): share_prototype_share_by_origin_share_model_json['origin_share'] = share_identity_model # Construct a model instance of SharePrototypeShareByOriginShare by calling from_dict on the json representation - share_prototype_share_by_origin_share_model = SharePrototypeShareByOriginShare.from_dict(share_prototype_share_by_origin_share_model_json) + share_prototype_share_by_origin_share_model = SharePrototypeShareByOriginShare.from_dict( + share_prototype_share_by_origin_share_model_json + ) assert share_prototype_share_by_origin_share_model != False # Construct a model instance of SharePrototypeShareByOriginShare by calling from_dict on the json representation - share_prototype_share_by_origin_share_model_dict = SharePrototypeShareByOriginShare.from_dict(share_prototype_share_by_origin_share_model_json).__dict__ - share_prototype_share_by_origin_share_model2 = SharePrototypeShareByOriginShare(**share_prototype_share_by_origin_share_model_dict) + share_prototype_share_by_origin_share_model_dict = SharePrototypeShareByOriginShare.from_dict( + share_prototype_share_by_origin_share_model_json + ).__dict__ + share_prototype_share_by_origin_share_model2 = SharePrototypeShareByOriginShare( + **share_prototype_share_by_origin_share_model_dict + ) # Verify the model instances are equivalent assert share_prototype_share_by_origin_share_model == share_prototype_share_by_origin_share_model2 @@ -91419,12 +101766,16 @@ def test_share_prototype_share_by_size_serialization(self): # Construct dict forms of any model objects needed in order to build this model. - virtual_network_interface_ip_prototype_model = {} # VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext + virtual_network_interface_ip_prototype_model = ( + {} + ) # VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext virtual_network_interface_ip_prototype_model['address'] = '10.0.0.5' virtual_network_interface_ip_prototype_model['auto_delete'] = False virtual_network_interface_ip_prototype_model['name'] = 'my-reserved-ip' - virtual_network_interface_primary_ip_prototype_model = {} # VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext + virtual_network_interface_primary_ip_prototype_model = ( + {} + ) # VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext virtual_network_interface_primary_ip_prototype_model['address'] = '10.0.0.5' virtual_network_interface_primary_ip_prototype_model['auto_delete'] = False virtual_network_interface_primary_ip_prototype_model['name'] = 'my-reserved-ip' @@ -91438,22 +101789,34 @@ def test_share_prototype_share_by_size_serialization(self): subnet_identity_model = {} # SubnetIdentityById subnet_identity_model['id'] = '7ec86020-1c6e-4889-b3f0-a15f2e50f87e' - share_mount_target_virtual_network_interface_prototype_model = {} # ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfacePrototypeShareMountTargetContext + share_mount_target_virtual_network_interface_prototype_model = ( + {} + ) # ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfacePrototypeShareMountTargetContext share_mount_target_virtual_network_interface_prototype_model['allow_ip_spoofing'] = True share_mount_target_virtual_network_interface_prototype_model['auto_delete'] = False share_mount_target_virtual_network_interface_prototype_model['enable_infrastructure_nat'] = True - share_mount_target_virtual_network_interface_prototype_model['ips'] = [virtual_network_interface_ip_prototype_model] + share_mount_target_virtual_network_interface_prototype_model['ips'] = [ + virtual_network_interface_ip_prototype_model + ] share_mount_target_virtual_network_interface_prototype_model['name'] = 'my-virtual-network-interface' - share_mount_target_virtual_network_interface_prototype_model['primary_ip'] = virtual_network_interface_primary_ip_prototype_model + share_mount_target_virtual_network_interface_prototype_model['primary_ip'] = ( + virtual_network_interface_primary_ip_prototype_model + ) share_mount_target_virtual_network_interface_prototype_model['protocol_state_filtering_mode'] = 'auto' share_mount_target_virtual_network_interface_prototype_model['resource_group'] = resource_group_identity_model - share_mount_target_virtual_network_interface_prototype_model['security_groups'] = [security_group_identity_model] + share_mount_target_virtual_network_interface_prototype_model['security_groups'] = [ + security_group_identity_model + ] share_mount_target_virtual_network_interface_prototype_model['subnet'] = subnet_identity_model - share_mount_target_prototype_model = {} # ShareMountTargetPrototypeShareMountTargetByAccessControlModeSecurityGroup + share_mount_target_prototype_model = ( + {} + ) # ShareMountTargetPrototypeShareMountTargetByAccessControlModeSecurityGroup share_mount_target_prototype_model['name'] = 'my-share-mount-target' share_mount_target_prototype_model['transit_encryption'] = 'none' - share_mount_target_prototype_model['virtual_network_interface'] = share_mount_target_virtual_network_interface_prototype_model + share_mount_target_prototype_model['virtual_network_interface'] = ( + share_mount_target_virtual_network_interface_prototype_model + ) share_profile_identity_model = {} # ShareProfileIdentityByName share_profile_identity_model['name'] = 'tier-3iops' @@ -91473,7 +101836,9 @@ def test_share_prototype_share_by_size_serialization(self): share_prototype_share_context_model['zone'] = zone_identity_model encryption_key_identity_model = {} # EncryptionKeyIdentityByCRN - encryption_key_identity_model['crn'] = 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + encryption_key_identity_model['crn'] = ( + 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + ) share_initial_owner_model = {} # ShareInitialOwner share_initial_owner_model['gid'] = 50 @@ -91496,11 +101861,15 @@ def test_share_prototype_share_by_size_serialization(self): share_prototype_share_by_size_model_json['zone'] = zone_identity_model # Construct a model instance of SharePrototypeShareBySize by calling from_dict on the json representation - share_prototype_share_by_size_model = SharePrototypeShareBySize.from_dict(share_prototype_share_by_size_model_json) + share_prototype_share_by_size_model = SharePrototypeShareBySize.from_dict( + share_prototype_share_by_size_model_json + ) assert share_prototype_share_by_size_model != False # Construct a model instance of SharePrototypeShareBySize by calling from_dict on the json representation - share_prototype_share_by_size_model_dict = SharePrototypeShareBySize.from_dict(share_prototype_share_by_size_model_json).__dict__ + share_prototype_share_by_size_model_dict = SharePrototypeShareBySize.from_dict( + share_prototype_share_by_size_model_json + ).__dict__ share_prototype_share_by_size_model2 = SharePrototypeShareBySize(**share_prototype_share_by_size_model_dict) # Verify the model instances are equivalent @@ -91523,12 +101892,16 @@ def test_share_prototype_share_by_source_share_serialization(self): # Construct dict forms of any model objects needed in order to build this model. - virtual_network_interface_ip_prototype_model = {} # VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext + virtual_network_interface_ip_prototype_model = ( + {} + ) # VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext virtual_network_interface_ip_prototype_model['address'] = '10.0.0.5' virtual_network_interface_ip_prototype_model['auto_delete'] = False virtual_network_interface_ip_prototype_model['name'] = 'my-reserved-ip' - virtual_network_interface_primary_ip_prototype_model = {} # VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext + virtual_network_interface_primary_ip_prototype_model = ( + {} + ) # VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext virtual_network_interface_primary_ip_prototype_model['address'] = '10.0.0.5' virtual_network_interface_primary_ip_prototype_model['auto_delete'] = False virtual_network_interface_primary_ip_prototype_model['name'] = 'my-reserved-ip' @@ -91542,22 +101915,34 @@ def test_share_prototype_share_by_source_share_serialization(self): subnet_identity_model = {} # SubnetIdentityById subnet_identity_model['id'] = '7ec86020-1c6e-4889-b3f0-a15f2e50f87e' - share_mount_target_virtual_network_interface_prototype_model = {} # ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfacePrototypeShareMountTargetContext + share_mount_target_virtual_network_interface_prototype_model = ( + {} + ) # ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfacePrototypeShareMountTargetContext share_mount_target_virtual_network_interface_prototype_model['allow_ip_spoofing'] = True share_mount_target_virtual_network_interface_prototype_model['auto_delete'] = False share_mount_target_virtual_network_interface_prototype_model['enable_infrastructure_nat'] = True - share_mount_target_virtual_network_interface_prototype_model['ips'] = [virtual_network_interface_ip_prototype_model] + share_mount_target_virtual_network_interface_prototype_model['ips'] = [ + virtual_network_interface_ip_prototype_model + ] share_mount_target_virtual_network_interface_prototype_model['name'] = 'my-virtual-network-interface' - share_mount_target_virtual_network_interface_prototype_model['primary_ip'] = virtual_network_interface_primary_ip_prototype_model + share_mount_target_virtual_network_interface_prototype_model['primary_ip'] = ( + virtual_network_interface_primary_ip_prototype_model + ) share_mount_target_virtual_network_interface_prototype_model['protocol_state_filtering_mode'] = 'auto' share_mount_target_virtual_network_interface_prototype_model['resource_group'] = resource_group_identity_model - share_mount_target_virtual_network_interface_prototype_model['security_groups'] = [security_group_identity_model] + share_mount_target_virtual_network_interface_prototype_model['security_groups'] = [ + security_group_identity_model + ] share_mount_target_virtual_network_interface_prototype_model['subnet'] = subnet_identity_model - share_mount_target_prototype_model = {} # ShareMountTargetPrototypeShareMountTargetByAccessControlModeSecurityGroup + share_mount_target_prototype_model = ( + {} + ) # ShareMountTargetPrototypeShareMountTargetByAccessControlModeSecurityGroup share_mount_target_prototype_model['name'] = 'my-share-mount-target' share_mount_target_prototype_model['transit_encryption'] = 'none' - share_mount_target_prototype_model['virtual_network_interface'] = share_mount_target_virtual_network_interface_prototype_model + share_mount_target_prototype_model['virtual_network_interface'] = ( + share_mount_target_virtual_network_interface_prototype_model + ) share_profile_identity_model = {} # ShareProfileIdentityByName share_profile_identity_model['name'] = 'tier-3iops' @@ -91577,7 +101962,9 @@ def test_share_prototype_share_by_source_share_serialization(self): share_prototype_share_context_model['zone'] = zone_identity_model encryption_key_identity_model = {} # EncryptionKeyIdentityByCRN - encryption_key_identity_model['crn'] = 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + encryption_key_identity_model['crn'] = ( + 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + ) share_identity_model = {} # ShareIdentityById share_identity_model['id'] = '0fe9e5d8-0a4d-4818-96ec-e99708644a58' @@ -91598,12 +101985,18 @@ def test_share_prototype_share_by_source_share_serialization(self): share_prototype_share_by_source_share_model_json['zone'] = zone_identity_model # Construct a model instance of SharePrototypeShareBySourceShare by calling from_dict on the json representation - share_prototype_share_by_source_share_model = SharePrototypeShareBySourceShare.from_dict(share_prototype_share_by_source_share_model_json) + share_prototype_share_by_source_share_model = SharePrototypeShareBySourceShare.from_dict( + share_prototype_share_by_source_share_model_json + ) assert share_prototype_share_by_source_share_model != False # Construct a model instance of SharePrototypeShareBySourceShare by calling from_dict on the json representation - share_prototype_share_by_source_share_model_dict = SharePrototypeShareBySourceShare.from_dict(share_prototype_share_by_source_share_model_json).__dict__ - share_prototype_share_by_source_share_model2 = SharePrototypeShareBySourceShare(**share_prototype_share_by_source_share_model_dict) + share_prototype_share_by_source_share_model_dict = SharePrototypeShareBySourceShare.from_dict( + share_prototype_share_by_source_share_model_json + ).__dict__ + share_prototype_share_by_source_share_model2 = SharePrototypeShareBySourceShare( + **share_prototype_share_by_source_share_model_dict + ) # Verify the model instances are equivalent assert share_prototype_share_by_source_share_model == share_prototype_share_by_source_share_model2 @@ -91631,32 +102024,62 @@ def test_snapshot_consistency_group_prototype_snapshot_consistency_group_by_snap volume_identity_model = {} # VolumeIdentityById volume_identity_model['id'] = 'r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' - snapshot_prototype_snapshot_consistency_group_context_model = {} # SnapshotPrototypeSnapshotConsistencyGroupContext + snapshot_prototype_snapshot_consistency_group_context_model = ( + {} + ) # SnapshotPrototypeSnapshotConsistencyGroupContext snapshot_prototype_snapshot_consistency_group_context_model['name'] = 'my-snapshot' snapshot_prototype_snapshot_consistency_group_context_model['source_volume'] = volume_identity_model snapshot_prototype_snapshot_consistency_group_context_model['user_tags'] = ['testString'] # Construct a json representation of a SnapshotConsistencyGroupPrototypeSnapshotConsistencyGroupBySnapshots model snapshot_consistency_group_prototype_snapshot_consistency_group_by_snapshots_model_json = {} - snapshot_consistency_group_prototype_snapshot_consistency_group_by_snapshots_model_json['delete_snapshots_on_delete'] = True - snapshot_consistency_group_prototype_snapshot_consistency_group_by_snapshots_model_json['name'] = 'my-snapshot-consistency-group' - snapshot_consistency_group_prototype_snapshot_consistency_group_by_snapshots_model_json['resource_group'] = resource_group_identity_model - snapshot_consistency_group_prototype_snapshot_consistency_group_by_snapshots_model_json['snapshots'] = [snapshot_prototype_snapshot_consistency_group_context_model] + snapshot_consistency_group_prototype_snapshot_consistency_group_by_snapshots_model_json[ + 'delete_snapshots_on_delete' + ] = True + snapshot_consistency_group_prototype_snapshot_consistency_group_by_snapshots_model_json['name'] = ( + 'my-snapshot-consistency-group' + ) + snapshot_consistency_group_prototype_snapshot_consistency_group_by_snapshots_model_json['resource_group'] = ( + resource_group_identity_model + ) + snapshot_consistency_group_prototype_snapshot_consistency_group_by_snapshots_model_json['snapshots'] = [ + snapshot_prototype_snapshot_consistency_group_context_model + ] # Construct a model instance of SnapshotConsistencyGroupPrototypeSnapshotConsistencyGroupBySnapshots by calling from_dict on the json representation - snapshot_consistency_group_prototype_snapshot_consistency_group_by_snapshots_model = SnapshotConsistencyGroupPrototypeSnapshotConsistencyGroupBySnapshots.from_dict(snapshot_consistency_group_prototype_snapshot_consistency_group_by_snapshots_model_json) + snapshot_consistency_group_prototype_snapshot_consistency_group_by_snapshots_model = ( + SnapshotConsistencyGroupPrototypeSnapshotConsistencyGroupBySnapshots.from_dict( + snapshot_consistency_group_prototype_snapshot_consistency_group_by_snapshots_model_json + ) + ) assert snapshot_consistency_group_prototype_snapshot_consistency_group_by_snapshots_model != False # Construct a model instance of SnapshotConsistencyGroupPrototypeSnapshotConsistencyGroupBySnapshots by calling from_dict on the json representation - snapshot_consistency_group_prototype_snapshot_consistency_group_by_snapshots_model_dict = SnapshotConsistencyGroupPrototypeSnapshotConsistencyGroupBySnapshots.from_dict(snapshot_consistency_group_prototype_snapshot_consistency_group_by_snapshots_model_json).__dict__ - snapshot_consistency_group_prototype_snapshot_consistency_group_by_snapshots_model2 = SnapshotConsistencyGroupPrototypeSnapshotConsistencyGroupBySnapshots(**snapshot_consistency_group_prototype_snapshot_consistency_group_by_snapshots_model_dict) + snapshot_consistency_group_prototype_snapshot_consistency_group_by_snapshots_model_dict = ( + SnapshotConsistencyGroupPrototypeSnapshotConsistencyGroupBySnapshots.from_dict( + snapshot_consistency_group_prototype_snapshot_consistency_group_by_snapshots_model_json + ).__dict__ + ) + snapshot_consistency_group_prototype_snapshot_consistency_group_by_snapshots_model2 = ( + SnapshotConsistencyGroupPrototypeSnapshotConsistencyGroupBySnapshots( + **snapshot_consistency_group_prototype_snapshot_consistency_group_by_snapshots_model_dict + ) + ) # Verify the model instances are equivalent - assert snapshot_consistency_group_prototype_snapshot_consistency_group_by_snapshots_model == snapshot_consistency_group_prototype_snapshot_consistency_group_by_snapshots_model2 + assert ( + snapshot_consistency_group_prototype_snapshot_consistency_group_by_snapshots_model + == snapshot_consistency_group_prototype_snapshot_consistency_group_by_snapshots_model2 + ) # Convert model instance back to dict and verify no loss of data - snapshot_consistency_group_prototype_snapshot_consistency_group_by_snapshots_model_json2 = snapshot_consistency_group_prototype_snapshot_consistency_group_by_snapshots_model.to_dict() - assert snapshot_consistency_group_prototype_snapshot_consistency_group_by_snapshots_model_json2 == snapshot_consistency_group_prototype_snapshot_consistency_group_by_snapshots_model_json + snapshot_consistency_group_prototype_snapshot_consistency_group_by_snapshots_model_json2 = ( + snapshot_consistency_group_prototype_snapshot_consistency_group_by_snapshots_model.to_dict() + ) + assert ( + snapshot_consistency_group_prototype_snapshot_consistency_group_by_snapshots_model_json2 + == snapshot_consistency_group_prototype_snapshot_consistency_group_by_snapshots_model_json + ) class TestModel_SnapshotIdentityByCRN: @@ -91671,14 +102094,18 @@ def test_snapshot_identity_by_crn_serialization(self): # Construct a json representation of a SnapshotIdentityByCRN model snapshot_identity_by_crn_model_json = {} - snapshot_identity_by_crn_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::snapshot:r134-f6bfa329-0e36-433f-a3bb-0df632e79263' + snapshot_identity_by_crn_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::snapshot:r134-f6bfa329-0e36-433f-a3bb-0df632e79263' + ) # Construct a model instance of SnapshotIdentityByCRN by calling from_dict on the json representation snapshot_identity_by_crn_model = SnapshotIdentityByCRN.from_dict(snapshot_identity_by_crn_model_json) assert snapshot_identity_by_crn_model != False # Construct a model instance of SnapshotIdentityByCRN by calling from_dict on the json representation - snapshot_identity_by_crn_model_dict = SnapshotIdentityByCRN.from_dict(snapshot_identity_by_crn_model_json).__dict__ + snapshot_identity_by_crn_model_dict = SnapshotIdentityByCRN.from_dict( + snapshot_identity_by_crn_model_json + ).__dict__ snapshot_identity_by_crn_model2 = SnapshotIdentityByCRN(**snapshot_identity_by_crn_model_dict) # Verify the model instances are equivalent @@ -91701,14 +102128,18 @@ def test_snapshot_identity_by_href_serialization(self): # Construct a json representation of a SnapshotIdentityByHref model snapshot_identity_by_href_model_json = {} - snapshot_identity_by_href_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/snapshots/r134-f6bfa329-0e36-433f-a3bb-0df632e79263' + snapshot_identity_by_href_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/snapshots/r134-f6bfa329-0e36-433f-a3bb-0df632e79263' + ) # Construct a model instance of SnapshotIdentityByHref by calling from_dict on the json representation snapshot_identity_by_href_model = SnapshotIdentityByHref.from_dict(snapshot_identity_by_href_model_json) assert snapshot_identity_by_href_model != False # Construct a model instance of SnapshotIdentityByHref by calling from_dict on the json representation - snapshot_identity_by_href_model_dict = SnapshotIdentityByHref.from_dict(snapshot_identity_by_href_model_json).__dict__ + snapshot_identity_by_href_model_dict = SnapshotIdentityByHref.from_dict( + snapshot_identity_by_href_model_json + ).__dict__ snapshot_identity_by_href_model2 = SnapshotIdentityByHref(**snapshot_identity_by_href_model_dict) # Verify the model instances are equivalent @@ -91771,10 +102202,14 @@ def test_snapshot_prototype_snapshot_by_source_snapshot_serialization(self): resource_group_identity_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' encryption_key_identity_model = {} # EncryptionKeyIdentityByCRN - encryption_key_identity_model['crn'] = 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + encryption_key_identity_model['crn'] = ( + 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + ) snapshot_identity_by_crn_model = {} # SnapshotIdentityByCRN - snapshot_identity_by_crn_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::snapshot:r134-f6bfa329-0e36-433f-a3bb-0df632e79263' + snapshot_identity_by_crn_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::snapshot:r134-f6bfa329-0e36-433f-a3bb-0df632e79263' + ) # Construct a json representation of a SnapshotPrototypeSnapshotBySourceSnapshot model snapshot_prototype_snapshot_by_source_snapshot_model_json = {} @@ -91786,19 +102221,33 @@ def test_snapshot_prototype_snapshot_by_source_snapshot_serialization(self): snapshot_prototype_snapshot_by_source_snapshot_model_json['source_snapshot'] = snapshot_identity_by_crn_model # Construct a model instance of SnapshotPrototypeSnapshotBySourceSnapshot by calling from_dict on the json representation - snapshot_prototype_snapshot_by_source_snapshot_model = SnapshotPrototypeSnapshotBySourceSnapshot.from_dict(snapshot_prototype_snapshot_by_source_snapshot_model_json) + snapshot_prototype_snapshot_by_source_snapshot_model = SnapshotPrototypeSnapshotBySourceSnapshot.from_dict( + snapshot_prototype_snapshot_by_source_snapshot_model_json + ) assert snapshot_prototype_snapshot_by_source_snapshot_model != False # Construct a model instance of SnapshotPrototypeSnapshotBySourceSnapshot by calling from_dict on the json representation - snapshot_prototype_snapshot_by_source_snapshot_model_dict = SnapshotPrototypeSnapshotBySourceSnapshot.from_dict(snapshot_prototype_snapshot_by_source_snapshot_model_json).__dict__ - snapshot_prototype_snapshot_by_source_snapshot_model2 = SnapshotPrototypeSnapshotBySourceSnapshot(**snapshot_prototype_snapshot_by_source_snapshot_model_dict) + snapshot_prototype_snapshot_by_source_snapshot_model_dict = SnapshotPrototypeSnapshotBySourceSnapshot.from_dict( + snapshot_prototype_snapshot_by_source_snapshot_model_json + ).__dict__ + snapshot_prototype_snapshot_by_source_snapshot_model2 = SnapshotPrototypeSnapshotBySourceSnapshot( + **snapshot_prototype_snapshot_by_source_snapshot_model_dict + ) # Verify the model instances are equivalent - assert snapshot_prototype_snapshot_by_source_snapshot_model == snapshot_prototype_snapshot_by_source_snapshot_model2 + assert ( + snapshot_prototype_snapshot_by_source_snapshot_model + == snapshot_prototype_snapshot_by_source_snapshot_model2 + ) # Convert model instance back to dict and verify no loss of data - snapshot_prototype_snapshot_by_source_snapshot_model_json2 = snapshot_prototype_snapshot_by_source_snapshot_model.to_dict() - assert snapshot_prototype_snapshot_by_source_snapshot_model_json2 == snapshot_prototype_snapshot_by_source_snapshot_model_json + snapshot_prototype_snapshot_by_source_snapshot_model_json2 = ( + snapshot_prototype_snapshot_by_source_snapshot_model.to_dict() + ) + assert ( + snapshot_prototype_snapshot_by_source_snapshot_model_json2 + == snapshot_prototype_snapshot_by_source_snapshot_model_json + ) class TestModel_SnapshotPrototypeSnapshotBySourceVolume: @@ -91834,19 +102283,30 @@ def test_snapshot_prototype_snapshot_by_source_volume_serialization(self): snapshot_prototype_snapshot_by_source_volume_model_json['source_volume'] = volume_identity_model # Construct a model instance of SnapshotPrototypeSnapshotBySourceVolume by calling from_dict on the json representation - snapshot_prototype_snapshot_by_source_volume_model = SnapshotPrototypeSnapshotBySourceVolume.from_dict(snapshot_prototype_snapshot_by_source_volume_model_json) + snapshot_prototype_snapshot_by_source_volume_model = SnapshotPrototypeSnapshotBySourceVolume.from_dict( + snapshot_prototype_snapshot_by_source_volume_model_json + ) assert snapshot_prototype_snapshot_by_source_volume_model != False # Construct a model instance of SnapshotPrototypeSnapshotBySourceVolume by calling from_dict on the json representation - snapshot_prototype_snapshot_by_source_volume_model_dict = SnapshotPrototypeSnapshotBySourceVolume.from_dict(snapshot_prototype_snapshot_by_source_volume_model_json).__dict__ - snapshot_prototype_snapshot_by_source_volume_model2 = SnapshotPrototypeSnapshotBySourceVolume(**snapshot_prototype_snapshot_by_source_volume_model_dict) + snapshot_prototype_snapshot_by_source_volume_model_dict = SnapshotPrototypeSnapshotBySourceVolume.from_dict( + snapshot_prototype_snapshot_by_source_volume_model_json + ).__dict__ + snapshot_prototype_snapshot_by_source_volume_model2 = SnapshotPrototypeSnapshotBySourceVolume( + **snapshot_prototype_snapshot_by_source_volume_model_dict + ) # Verify the model instances are equivalent assert snapshot_prototype_snapshot_by_source_volume_model == snapshot_prototype_snapshot_by_source_volume_model2 # Convert model instance back to dict and verify no loss of data - snapshot_prototype_snapshot_by_source_volume_model_json2 = snapshot_prototype_snapshot_by_source_volume_model.to_dict() - assert snapshot_prototype_snapshot_by_source_volume_model_json2 == snapshot_prototype_snapshot_by_source_volume_model_json + snapshot_prototype_snapshot_by_source_volume_model_json2 = ( + snapshot_prototype_snapshot_by_source_volume_model.to_dict() + ) + assert ( + snapshot_prototype_snapshot_by_source_volume_model_json2 + == snapshot_prototype_snapshot_by_source_volume_model_json + ) class TestModel_SubnetIdentityByCRN: @@ -91861,7 +102321,9 @@ def test_subnet_identity_by_crn_serialization(self): # Construct a json representation of a SubnetIdentityByCRN model subnet_identity_by_crn_model_json = {} - subnet_identity_by_crn_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_identity_by_crn_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) # Construct a model instance of SubnetIdentityByCRN by calling from_dict on the json representation subnet_identity_by_crn_model = SubnetIdentityByCRN.from_dict(subnet_identity_by_crn_model_json) @@ -91891,7 +102353,9 @@ def test_subnet_identity_by_href_serialization(self): # Construct a json representation of a SubnetIdentityByHref model subnet_identity_by_href_model_json = {} - subnet_identity_by_href_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_identity_by_href_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) # Construct a model instance of SubnetIdentityByHref by calling from_dict on the json representation subnet_identity_by_href_model = SubnetIdentityByHref.from_dict(subnet_identity_by_href_model_json) @@ -91982,12 +102446,18 @@ def test_subnet_prototype_subnet_by_cidr_serialization(self): subnet_prototype_subnet_by_cidr_model_json['zone'] = zone_identity_model # Construct a model instance of SubnetPrototypeSubnetByCIDR by calling from_dict on the json representation - subnet_prototype_subnet_by_cidr_model = SubnetPrototypeSubnetByCIDR.from_dict(subnet_prototype_subnet_by_cidr_model_json) + subnet_prototype_subnet_by_cidr_model = SubnetPrototypeSubnetByCIDR.from_dict( + subnet_prototype_subnet_by_cidr_model_json + ) assert subnet_prototype_subnet_by_cidr_model != False # Construct a model instance of SubnetPrototypeSubnetByCIDR by calling from_dict on the json representation - subnet_prototype_subnet_by_cidr_model_dict = SubnetPrototypeSubnetByCIDR.from_dict(subnet_prototype_subnet_by_cidr_model_json).__dict__ - subnet_prototype_subnet_by_cidr_model2 = SubnetPrototypeSubnetByCIDR(**subnet_prototype_subnet_by_cidr_model_dict) + subnet_prototype_subnet_by_cidr_model_dict = SubnetPrototypeSubnetByCIDR.from_dict( + subnet_prototype_subnet_by_cidr_model_json + ).__dict__ + subnet_prototype_subnet_by_cidr_model2 = SubnetPrototypeSubnetByCIDR( + **subnet_prototype_subnet_by_cidr_model_dict + ) # Verify the model instances are equivalent assert subnet_prototype_subnet_by_cidr_model == subnet_prototype_subnet_by_cidr_model2 @@ -92040,12 +102510,18 @@ def test_subnet_prototype_subnet_by_total_count_serialization(self): subnet_prototype_subnet_by_total_count_model_json['zone'] = zone_identity_model # Construct a model instance of SubnetPrototypeSubnetByTotalCount by calling from_dict on the json representation - subnet_prototype_subnet_by_total_count_model = SubnetPrototypeSubnetByTotalCount.from_dict(subnet_prototype_subnet_by_total_count_model_json) + subnet_prototype_subnet_by_total_count_model = SubnetPrototypeSubnetByTotalCount.from_dict( + subnet_prototype_subnet_by_total_count_model_json + ) assert subnet_prototype_subnet_by_total_count_model != False # Construct a model instance of SubnetPrototypeSubnetByTotalCount by calling from_dict on the json representation - subnet_prototype_subnet_by_total_count_model_dict = SubnetPrototypeSubnetByTotalCount.from_dict(subnet_prototype_subnet_by_total_count_model_json).__dict__ - subnet_prototype_subnet_by_total_count_model2 = SubnetPrototypeSubnetByTotalCount(**subnet_prototype_subnet_by_total_count_model_dict) + subnet_prototype_subnet_by_total_count_model_dict = SubnetPrototypeSubnetByTotalCount.from_dict( + subnet_prototype_subnet_by_total_count_model_json + ).__dict__ + subnet_prototype_subnet_by_total_count_model2 = SubnetPrototypeSubnetByTotalCount( + **subnet_prototype_subnet_by_total_count_model_dict + ) # Verify the model instances are equivalent assert subnet_prototype_subnet_by_total_count_model == subnet_prototype_subnet_by_total_count_model2 @@ -92067,22 +102543,44 @@ def test_subnet_public_gateway_patch_public_gateway_identity_by_crn_serializatio # Construct a json representation of a SubnetPublicGatewayPatchPublicGatewayIdentityByCRN model subnet_public_gateway_patch_public_gateway_identity_by_crn_model_json = {} - subnet_public_gateway_patch_public_gateway_identity_by_crn_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::public-gateway:dc5431ef-1fc6-4861-adc9-a59d077d1241' + subnet_public_gateway_patch_public_gateway_identity_by_crn_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::public-gateway:dc5431ef-1fc6-4861-adc9-a59d077d1241' + ) # Construct a model instance of SubnetPublicGatewayPatchPublicGatewayIdentityByCRN by calling from_dict on the json representation - subnet_public_gateway_patch_public_gateway_identity_by_crn_model = SubnetPublicGatewayPatchPublicGatewayIdentityByCRN.from_dict(subnet_public_gateway_patch_public_gateway_identity_by_crn_model_json) + subnet_public_gateway_patch_public_gateway_identity_by_crn_model = ( + SubnetPublicGatewayPatchPublicGatewayIdentityByCRN.from_dict( + subnet_public_gateway_patch_public_gateway_identity_by_crn_model_json + ) + ) assert subnet_public_gateway_patch_public_gateway_identity_by_crn_model != False # Construct a model instance of SubnetPublicGatewayPatchPublicGatewayIdentityByCRN by calling from_dict on the json representation - subnet_public_gateway_patch_public_gateway_identity_by_crn_model_dict = SubnetPublicGatewayPatchPublicGatewayIdentityByCRN.from_dict(subnet_public_gateway_patch_public_gateway_identity_by_crn_model_json).__dict__ - subnet_public_gateway_patch_public_gateway_identity_by_crn_model2 = SubnetPublicGatewayPatchPublicGatewayIdentityByCRN(**subnet_public_gateway_patch_public_gateway_identity_by_crn_model_dict) + subnet_public_gateway_patch_public_gateway_identity_by_crn_model_dict = ( + SubnetPublicGatewayPatchPublicGatewayIdentityByCRN.from_dict( + subnet_public_gateway_patch_public_gateway_identity_by_crn_model_json + ).__dict__ + ) + subnet_public_gateway_patch_public_gateway_identity_by_crn_model2 = ( + SubnetPublicGatewayPatchPublicGatewayIdentityByCRN( + **subnet_public_gateway_patch_public_gateway_identity_by_crn_model_dict + ) + ) # Verify the model instances are equivalent - assert subnet_public_gateway_patch_public_gateway_identity_by_crn_model == subnet_public_gateway_patch_public_gateway_identity_by_crn_model2 + assert ( + subnet_public_gateway_patch_public_gateway_identity_by_crn_model + == subnet_public_gateway_patch_public_gateway_identity_by_crn_model2 + ) # Convert model instance back to dict and verify no loss of data - subnet_public_gateway_patch_public_gateway_identity_by_crn_model_json2 = subnet_public_gateway_patch_public_gateway_identity_by_crn_model.to_dict() - assert subnet_public_gateway_patch_public_gateway_identity_by_crn_model_json2 == subnet_public_gateway_patch_public_gateway_identity_by_crn_model_json + subnet_public_gateway_patch_public_gateway_identity_by_crn_model_json2 = ( + subnet_public_gateway_patch_public_gateway_identity_by_crn_model.to_dict() + ) + assert ( + subnet_public_gateway_patch_public_gateway_identity_by_crn_model_json2 + == subnet_public_gateway_patch_public_gateway_identity_by_crn_model_json + ) class TestModel_SubnetPublicGatewayPatchPublicGatewayIdentityByHref: @@ -92097,22 +102595,44 @@ def test_subnet_public_gateway_patch_public_gateway_identity_by_href_serializati # Construct a json representation of a SubnetPublicGatewayPatchPublicGatewayIdentityByHref model subnet_public_gateway_patch_public_gateway_identity_by_href_model_json = {} - subnet_public_gateway_patch_public_gateway_identity_by_href_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/public_gateways/dc5431ef-1fc6-4861-adc9-a59d077d1241' + subnet_public_gateway_patch_public_gateway_identity_by_href_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/public_gateways/dc5431ef-1fc6-4861-adc9-a59d077d1241' + ) # Construct a model instance of SubnetPublicGatewayPatchPublicGatewayIdentityByHref by calling from_dict on the json representation - subnet_public_gateway_patch_public_gateway_identity_by_href_model = SubnetPublicGatewayPatchPublicGatewayIdentityByHref.from_dict(subnet_public_gateway_patch_public_gateway_identity_by_href_model_json) + subnet_public_gateway_patch_public_gateway_identity_by_href_model = ( + SubnetPublicGatewayPatchPublicGatewayIdentityByHref.from_dict( + subnet_public_gateway_patch_public_gateway_identity_by_href_model_json + ) + ) assert subnet_public_gateway_patch_public_gateway_identity_by_href_model != False # Construct a model instance of SubnetPublicGatewayPatchPublicGatewayIdentityByHref by calling from_dict on the json representation - subnet_public_gateway_patch_public_gateway_identity_by_href_model_dict = SubnetPublicGatewayPatchPublicGatewayIdentityByHref.from_dict(subnet_public_gateway_patch_public_gateway_identity_by_href_model_json).__dict__ - subnet_public_gateway_patch_public_gateway_identity_by_href_model2 = SubnetPublicGatewayPatchPublicGatewayIdentityByHref(**subnet_public_gateway_patch_public_gateway_identity_by_href_model_dict) + subnet_public_gateway_patch_public_gateway_identity_by_href_model_dict = ( + SubnetPublicGatewayPatchPublicGatewayIdentityByHref.from_dict( + subnet_public_gateway_patch_public_gateway_identity_by_href_model_json + ).__dict__ + ) + subnet_public_gateway_patch_public_gateway_identity_by_href_model2 = ( + SubnetPublicGatewayPatchPublicGatewayIdentityByHref( + **subnet_public_gateway_patch_public_gateway_identity_by_href_model_dict + ) + ) # Verify the model instances are equivalent - assert subnet_public_gateway_patch_public_gateway_identity_by_href_model == subnet_public_gateway_patch_public_gateway_identity_by_href_model2 + assert ( + subnet_public_gateway_patch_public_gateway_identity_by_href_model + == subnet_public_gateway_patch_public_gateway_identity_by_href_model2 + ) # Convert model instance back to dict and verify no loss of data - subnet_public_gateway_patch_public_gateway_identity_by_href_model_json2 = subnet_public_gateway_patch_public_gateway_identity_by_href_model.to_dict() - assert subnet_public_gateway_patch_public_gateway_identity_by_href_model_json2 == subnet_public_gateway_patch_public_gateway_identity_by_href_model_json + subnet_public_gateway_patch_public_gateway_identity_by_href_model_json2 = ( + subnet_public_gateway_patch_public_gateway_identity_by_href_model.to_dict() + ) + assert ( + subnet_public_gateway_patch_public_gateway_identity_by_href_model_json2 + == subnet_public_gateway_patch_public_gateway_identity_by_href_model_json + ) class TestModel_SubnetPublicGatewayPatchPublicGatewayIdentityById: @@ -92127,22 +102647,44 @@ def test_subnet_public_gateway_patch_public_gateway_identity_by_id_serialization # Construct a json representation of a SubnetPublicGatewayPatchPublicGatewayIdentityById model subnet_public_gateway_patch_public_gateway_identity_by_id_model_json = {} - subnet_public_gateway_patch_public_gateway_identity_by_id_model_json['id'] = 'dc5431ef-1fc6-4861-adc9-a59d077d1241' + subnet_public_gateway_patch_public_gateway_identity_by_id_model_json['id'] = ( + 'dc5431ef-1fc6-4861-adc9-a59d077d1241' + ) # Construct a model instance of SubnetPublicGatewayPatchPublicGatewayIdentityById by calling from_dict on the json representation - subnet_public_gateway_patch_public_gateway_identity_by_id_model = SubnetPublicGatewayPatchPublicGatewayIdentityById.from_dict(subnet_public_gateway_patch_public_gateway_identity_by_id_model_json) + subnet_public_gateway_patch_public_gateway_identity_by_id_model = ( + SubnetPublicGatewayPatchPublicGatewayIdentityById.from_dict( + subnet_public_gateway_patch_public_gateway_identity_by_id_model_json + ) + ) assert subnet_public_gateway_patch_public_gateway_identity_by_id_model != False # Construct a model instance of SubnetPublicGatewayPatchPublicGatewayIdentityById by calling from_dict on the json representation - subnet_public_gateway_patch_public_gateway_identity_by_id_model_dict = SubnetPublicGatewayPatchPublicGatewayIdentityById.from_dict(subnet_public_gateway_patch_public_gateway_identity_by_id_model_json).__dict__ - subnet_public_gateway_patch_public_gateway_identity_by_id_model2 = SubnetPublicGatewayPatchPublicGatewayIdentityById(**subnet_public_gateway_patch_public_gateway_identity_by_id_model_dict) + subnet_public_gateway_patch_public_gateway_identity_by_id_model_dict = ( + SubnetPublicGatewayPatchPublicGatewayIdentityById.from_dict( + subnet_public_gateway_patch_public_gateway_identity_by_id_model_json + ).__dict__ + ) + subnet_public_gateway_patch_public_gateway_identity_by_id_model2 = ( + SubnetPublicGatewayPatchPublicGatewayIdentityById( + **subnet_public_gateway_patch_public_gateway_identity_by_id_model_dict + ) + ) # Verify the model instances are equivalent - assert subnet_public_gateway_patch_public_gateway_identity_by_id_model == subnet_public_gateway_patch_public_gateway_identity_by_id_model2 + assert ( + subnet_public_gateway_patch_public_gateway_identity_by_id_model + == subnet_public_gateway_patch_public_gateway_identity_by_id_model2 + ) # Convert model instance back to dict and verify no loss of data - subnet_public_gateway_patch_public_gateway_identity_by_id_model_json2 = subnet_public_gateway_patch_public_gateway_identity_by_id_model.to_dict() - assert subnet_public_gateway_patch_public_gateway_identity_by_id_model_json2 == subnet_public_gateway_patch_public_gateway_identity_by_id_model_json + subnet_public_gateway_patch_public_gateway_identity_by_id_model_json2 = ( + subnet_public_gateway_patch_public_gateway_identity_by_id_model.to_dict() + ) + assert ( + subnet_public_gateway_patch_public_gateway_identity_by_id_model_json2 + == subnet_public_gateway_patch_public_gateway_identity_by_id_model_json + ) class TestModel_TrustedProfileIdentityByCRN: @@ -92157,15 +102699,23 @@ def test_trusted_profile_identity_by_crn_serialization(self): # Construct a json representation of a TrustedProfileIdentityByCRN model trusted_profile_identity_by_crn_model_json = {} - trusted_profile_identity_by_crn_model_json['crn'] = 'crn:v1:bluemix:public:iam-identity::a/aa2432b1fa4d4ace891e9b80fc104e34::profile:Profile-9fd84246-7df4-4667-94e4-8ecde51d5ac5' + trusted_profile_identity_by_crn_model_json['crn'] = ( + 'crn:v1:bluemix:public:iam-identity::a/aa2432b1fa4d4ace891e9b80fc104e34::profile:Profile-9fd84246-7df4-4667-94e4-8ecde51d5ac5' + ) # Construct a model instance of TrustedProfileIdentityByCRN by calling from_dict on the json representation - trusted_profile_identity_by_crn_model = TrustedProfileIdentityByCRN.from_dict(trusted_profile_identity_by_crn_model_json) + trusted_profile_identity_by_crn_model = TrustedProfileIdentityByCRN.from_dict( + trusted_profile_identity_by_crn_model_json + ) assert trusted_profile_identity_by_crn_model != False # Construct a model instance of TrustedProfileIdentityByCRN by calling from_dict on the json representation - trusted_profile_identity_by_crn_model_dict = TrustedProfileIdentityByCRN.from_dict(trusted_profile_identity_by_crn_model_json).__dict__ - trusted_profile_identity_by_crn_model2 = TrustedProfileIdentityByCRN(**trusted_profile_identity_by_crn_model_dict) + trusted_profile_identity_by_crn_model_dict = TrustedProfileIdentityByCRN.from_dict( + trusted_profile_identity_by_crn_model_json + ).__dict__ + trusted_profile_identity_by_crn_model2 = TrustedProfileIdentityByCRN( + **trusted_profile_identity_by_crn_model_dict + ) # Verify the model instances are equivalent assert trusted_profile_identity_by_crn_model == trusted_profile_identity_by_crn_model2 @@ -92190,11 +102740,15 @@ def test_trusted_profile_identity_by_id_serialization(self): trusted_profile_identity_by_id_model_json['id'] = 'Profile-9fd84246-7df4-4667-94e4-8ecde51d5ac5' # Construct a model instance of TrustedProfileIdentityById by calling from_dict on the json representation - trusted_profile_identity_by_id_model = TrustedProfileIdentityById.from_dict(trusted_profile_identity_by_id_model_json) + trusted_profile_identity_by_id_model = TrustedProfileIdentityById.from_dict( + trusted_profile_identity_by_id_model_json + ) assert trusted_profile_identity_by_id_model != False # Construct a model instance of TrustedProfileIdentityById by calling from_dict on the json representation - trusted_profile_identity_by_id_model_dict = TrustedProfileIdentityById.from_dict(trusted_profile_identity_by_id_model_json).__dict__ + trusted_profile_identity_by_id_model_dict = TrustedProfileIdentityById.from_dict( + trusted_profile_identity_by_id_model_json + ).__dict__ trusted_profile_identity_by_id_model2 = TrustedProfileIdentityById(**trusted_profile_identity_by_id_model_dict) # Verify the model instances are equivalent @@ -92226,23 +102780,45 @@ def test_vpcdns_resolver_prototype_vpcdns_resolver_type_manual_prototype_seriali # Construct a json representation of a VPCDNSResolverPrototypeVPCDNSResolverTypeManualPrototype model vpcdns_resolver_prototype_vpcdns_resolver_type_manual_prototype_model_json = {} - vpcdns_resolver_prototype_vpcdns_resolver_type_manual_prototype_model_json['manual_servers'] = [dns_server_prototype_model] + vpcdns_resolver_prototype_vpcdns_resolver_type_manual_prototype_model_json['manual_servers'] = [ + dns_server_prototype_model + ] vpcdns_resolver_prototype_vpcdns_resolver_type_manual_prototype_model_json['type'] = 'manual' # Construct a model instance of VPCDNSResolverPrototypeVPCDNSResolverTypeManualPrototype by calling from_dict on the json representation - vpcdns_resolver_prototype_vpcdns_resolver_type_manual_prototype_model = VPCDNSResolverPrototypeVPCDNSResolverTypeManualPrototype.from_dict(vpcdns_resolver_prototype_vpcdns_resolver_type_manual_prototype_model_json) + vpcdns_resolver_prototype_vpcdns_resolver_type_manual_prototype_model = ( + VPCDNSResolverPrototypeVPCDNSResolverTypeManualPrototype.from_dict( + vpcdns_resolver_prototype_vpcdns_resolver_type_manual_prototype_model_json + ) + ) assert vpcdns_resolver_prototype_vpcdns_resolver_type_manual_prototype_model != False # Construct a model instance of VPCDNSResolverPrototypeVPCDNSResolverTypeManualPrototype by calling from_dict on the json representation - vpcdns_resolver_prototype_vpcdns_resolver_type_manual_prototype_model_dict = VPCDNSResolverPrototypeVPCDNSResolverTypeManualPrototype.from_dict(vpcdns_resolver_prototype_vpcdns_resolver_type_manual_prototype_model_json).__dict__ - vpcdns_resolver_prototype_vpcdns_resolver_type_manual_prototype_model2 = VPCDNSResolverPrototypeVPCDNSResolverTypeManualPrototype(**vpcdns_resolver_prototype_vpcdns_resolver_type_manual_prototype_model_dict) + vpcdns_resolver_prototype_vpcdns_resolver_type_manual_prototype_model_dict = ( + VPCDNSResolverPrototypeVPCDNSResolverTypeManualPrototype.from_dict( + vpcdns_resolver_prototype_vpcdns_resolver_type_manual_prototype_model_json + ).__dict__ + ) + vpcdns_resolver_prototype_vpcdns_resolver_type_manual_prototype_model2 = ( + VPCDNSResolverPrototypeVPCDNSResolverTypeManualPrototype( + **vpcdns_resolver_prototype_vpcdns_resolver_type_manual_prototype_model_dict + ) + ) # Verify the model instances are equivalent - assert vpcdns_resolver_prototype_vpcdns_resolver_type_manual_prototype_model == vpcdns_resolver_prototype_vpcdns_resolver_type_manual_prototype_model2 + assert ( + vpcdns_resolver_prototype_vpcdns_resolver_type_manual_prototype_model + == vpcdns_resolver_prototype_vpcdns_resolver_type_manual_prototype_model2 + ) # Convert model instance back to dict and verify no loss of data - vpcdns_resolver_prototype_vpcdns_resolver_type_manual_prototype_model_json2 = vpcdns_resolver_prototype_vpcdns_resolver_type_manual_prototype_model.to_dict() - assert vpcdns_resolver_prototype_vpcdns_resolver_type_manual_prototype_model_json2 == vpcdns_resolver_prototype_vpcdns_resolver_type_manual_prototype_model_json + vpcdns_resolver_prototype_vpcdns_resolver_type_manual_prototype_model_json2 = ( + vpcdns_resolver_prototype_vpcdns_resolver_type_manual_prototype_model.to_dict() + ) + assert ( + vpcdns_resolver_prototype_vpcdns_resolver_type_manual_prototype_model_json2 + == vpcdns_resolver_prototype_vpcdns_resolver_type_manual_prototype_model_json + ) class TestModel_VPCDNSResolverPrototypeVPCDNSResolverTypeSystemPrototype: @@ -92260,19 +102836,39 @@ def test_vpcdns_resolver_prototype_vpcdns_resolver_type_system_prototype_seriali vpcdns_resolver_prototype_vpcdns_resolver_type_system_prototype_model_json['type'] = 'system' # Construct a model instance of VPCDNSResolverPrototypeVPCDNSResolverTypeSystemPrototype by calling from_dict on the json representation - vpcdns_resolver_prototype_vpcdns_resolver_type_system_prototype_model = VPCDNSResolverPrototypeVPCDNSResolverTypeSystemPrototype.from_dict(vpcdns_resolver_prototype_vpcdns_resolver_type_system_prototype_model_json) + vpcdns_resolver_prototype_vpcdns_resolver_type_system_prototype_model = ( + VPCDNSResolverPrototypeVPCDNSResolverTypeSystemPrototype.from_dict( + vpcdns_resolver_prototype_vpcdns_resolver_type_system_prototype_model_json + ) + ) assert vpcdns_resolver_prototype_vpcdns_resolver_type_system_prototype_model != False # Construct a model instance of VPCDNSResolverPrototypeVPCDNSResolverTypeSystemPrototype by calling from_dict on the json representation - vpcdns_resolver_prototype_vpcdns_resolver_type_system_prototype_model_dict = VPCDNSResolverPrototypeVPCDNSResolverTypeSystemPrototype.from_dict(vpcdns_resolver_prototype_vpcdns_resolver_type_system_prototype_model_json).__dict__ - vpcdns_resolver_prototype_vpcdns_resolver_type_system_prototype_model2 = VPCDNSResolverPrototypeVPCDNSResolverTypeSystemPrototype(**vpcdns_resolver_prototype_vpcdns_resolver_type_system_prototype_model_dict) + vpcdns_resolver_prototype_vpcdns_resolver_type_system_prototype_model_dict = ( + VPCDNSResolverPrototypeVPCDNSResolverTypeSystemPrototype.from_dict( + vpcdns_resolver_prototype_vpcdns_resolver_type_system_prototype_model_json + ).__dict__ + ) + vpcdns_resolver_prototype_vpcdns_resolver_type_system_prototype_model2 = ( + VPCDNSResolverPrototypeVPCDNSResolverTypeSystemPrototype( + **vpcdns_resolver_prototype_vpcdns_resolver_type_system_prototype_model_dict + ) + ) # Verify the model instances are equivalent - assert vpcdns_resolver_prototype_vpcdns_resolver_type_system_prototype_model == vpcdns_resolver_prototype_vpcdns_resolver_type_system_prototype_model2 + assert ( + vpcdns_resolver_prototype_vpcdns_resolver_type_system_prototype_model + == vpcdns_resolver_prototype_vpcdns_resolver_type_system_prototype_model2 + ) # Convert model instance back to dict and verify no loss of data - vpcdns_resolver_prototype_vpcdns_resolver_type_system_prototype_model_json2 = vpcdns_resolver_prototype_vpcdns_resolver_type_system_prototype_model.to_dict() - assert vpcdns_resolver_prototype_vpcdns_resolver_type_system_prototype_model_json2 == vpcdns_resolver_prototype_vpcdns_resolver_type_system_prototype_model_json + vpcdns_resolver_prototype_vpcdns_resolver_type_system_prototype_model_json2 = ( + vpcdns_resolver_prototype_vpcdns_resolver_type_system_prototype_model.to_dict() + ) + assert ( + vpcdns_resolver_prototype_vpcdns_resolver_type_system_prototype_model_json2 + == vpcdns_resolver_prototype_vpcdns_resolver_type_system_prototype_model_json + ) class TestModel_VPCDNSResolverTypeDelegated: @@ -92311,9 +102907,13 @@ def test_vpcdns_resolver_type_delegated_serialization(self): vpc_remote_model['region'] = region_reference_model vpc_reference_dns_resolver_context_model = {} # VPCReferenceDNSResolverContext - vpc_reference_dns_resolver_context_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_dns_resolver_context_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_dns_resolver_context_model['deleted'] = deleted_model - vpc_reference_dns_resolver_context_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_dns_resolver_context_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_dns_resolver_context_model['id'] = 'r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' vpc_reference_dns_resolver_context_model['name'] = 'my-vpc' vpc_reference_dns_resolver_context_model['remote'] = vpc_remote_model @@ -92326,11 +102926,15 @@ def test_vpcdns_resolver_type_delegated_serialization(self): vpcdns_resolver_type_delegated_model_json['vpc'] = vpc_reference_dns_resolver_context_model # Construct a model instance of VPCDNSResolverTypeDelegated by calling from_dict on the json representation - vpcdns_resolver_type_delegated_model = VPCDNSResolverTypeDelegated.from_dict(vpcdns_resolver_type_delegated_model_json) + vpcdns_resolver_type_delegated_model = VPCDNSResolverTypeDelegated.from_dict( + vpcdns_resolver_type_delegated_model_json + ) assert vpcdns_resolver_type_delegated_model != False # Construct a model instance of VPCDNSResolverTypeDelegated by calling from_dict on the json representation - vpcdns_resolver_type_delegated_model_dict = VPCDNSResolverTypeDelegated.from_dict(vpcdns_resolver_type_delegated_model_json).__dict__ + vpcdns_resolver_type_delegated_model_dict = VPCDNSResolverTypeDelegated.from_dict( + vpcdns_resolver_type_delegated_model_json + ).__dict__ vpcdns_resolver_type_delegated_model2 = VPCDNSResolverTypeDelegated(**vpcdns_resolver_type_delegated_model_dict) # Verify the model instances are equivalent @@ -92372,7 +102976,9 @@ def test_vpcdns_resolver_type_manual_serialization(self): assert vpcdns_resolver_type_manual_model != False # Construct a model instance of VPCDNSResolverTypeManual by calling from_dict on the json representation - vpcdns_resolver_type_manual_model_dict = VPCDNSResolverTypeManual.from_dict(vpcdns_resolver_type_manual_model_json).__dict__ + vpcdns_resolver_type_manual_model_dict = VPCDNSResolverTypeManual.from_dict( + vpcdns_resolver_type_manual_model_json + ).__dict__ vpcdns_resolver_type_manual_model2 = VPCDNSResolverTypeManual(**vpcdns_resolver_type_manual_model_dict) # Verify the model instances are equivalent @@ -92414,7 +103020,9 @@ def test_vpcdns_resolver_type_system_serialization(self): assert vpcdns_resolver_type_system_model != False # Construct a model instance of VPCDNSResolverTypeSystem by calling from_dict on the json representation - vpcdns_resolver_type_system_model_dict = VPCDNSResolverTypeSystem.from_dict(vpcdns_resolver_type_system_model_json).__dict__ + vpcdns_resolver_type_system_model_dict = VPCDNSResolverTypeSystem.from_dict( + vpcdns_resolver_type_system_model_json + ).__dict__ vpcdns_resolver_type_system_model2 = VPCDNSResolverTypeSystem(**vpcdns_resolver_type_system_model_dict) # Verify the model instances are equivalent @@ -92437,22 +103045,37 @@ def test_vpcdns_resolver_vpc_patch_vpc_identity_by_crn_serialization(self): # Construct a json representation of a VPCDNSResolverVPCPatchVPCIdentityByCRN model vpcdns_resolver_vpc_patch_vpc_identity_by_crn_model_json = {} - vpcdns_resolver_vpc_patch_vpc_identity_by_crn_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpcdns_resolver_vpc_patch_vpc_identity_by_crn_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) # Construct a model instance of VPCDNSResolverVPCPatchVPCIdentityByCRN by calling from_dict on the json representation - vpcdns_resolver_vpc_patch_vpc_identity_by_crn_model = VPCDNSResolverVPCPatchVPCIdentityByCRN.from_dict(vpcdns_resolver_vpc_patch_vpc_identity_by_crn_model_json) + vpcdns_resolver_vpc_patch_vpc_identity_by_crn_model = VPCDNSResolverVPCPatchVPCIdentityByCRN.from_dict( + vpcdns_resolver_vpc_patch_vpc_identity_by_crn_model_json + ) assert vpcdns_resolver_vpc_patch_vpc_identity_by_crn_model != False # Construct a model instance of VPCDNSResolverVPCPatchVPCIdentityByCRN by calling from_dict on the json representation - vpcdns_resolver_vpc_patch_vpc_identity_by_crn_model_dict = VPCDNSResolverVPCPatchVPCIdentityByCRN.from_dict(vpcdns_resolver_vpc_patch_vpc_identity_by_crn_model_json).__dict__ - vpcdns_resolver_vpc_patch_vpc_identity_by_crn_model2 = VPCDNSResolverVPCPatchVPCIdentityByCRN(**vpcdns_resolver_vpc_patch_vpc_identity_by_crn_model_dict) + vpcdns_resolver_vpc_patch_vpc_identity_by_crn_model_dict = VPCDNSResolverVPCPatchVPCIdentityByCRN.from_dict( + vpcdns_resolver_vpc_patch_vpc_identity_by_crn_model_json + ).__dict__ + vpcdns_resolver_vpc_patch_vpc_identity_by_crn_model2 = VPCDNSResolverVPCPatchVPCIdentityByCRN( + **vpcdns_resolver_vpc_patch_vpc_identity_by_crn_model_dict + ) # Verify the model instances are equivalent - assert vpcdns_resolver_vpc_patch_vpc_identity_by_crn_model == vpcdns_resolver_vpc_patch_vpc_identity_by_crn_model2 + assert ( + vpcdns_resolver_vpc_patch_vpc_identity_by_crn_model == vpcdns_resolver_vpc_patch_vpc_identity_by_crn_model2 + ) # Convert model instance back to dict and verify no loss of data - vpcdns_resolver_vpc_patch_vpc_identity_by_crn_model_json2 = vpcdns_resolver_vpc_patch_vpc_identity_by_crn_model.to_dict() - assert vpcdns_resolver_vpc_patch_vpc_identity_by_crn_model_json2 == vpcdns_resolver_vpc_patch_vpc_identity_by_crn_model_json + vpcdns_resolver_vpc_patch_vpc_identity_by_crn_model_json2 = ( + vpcdns_resolver_vpc_patch_vpc_identity_by_crn_model.to_dict() + ) + assert ( + vpcdns_resolver_vpc_patch_vpc_identity_by_crn_model_json2 + == vpcdns_resolver_vpc_patch_vpc_identity_by_crn_model_json + ) class TestModel_VPCDNSResolverVPCPatchVPCIdentityByHref: @@ -92467,22 +103090,38 @@ def test_vpcdns_resolver_vpc_patch_vpc_identity_by_href_serialization(self): # Construct a json representation of a VPCDNSResolverVPCPatchVPCIdentityByHref model vpcdns_resolver_vpc_patch_vpc_identity_by_href_model_json = {} - vpcdns_resolver_vpc_patch_vpc_identity_by_href_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpcdns_resolver_vpc_patch_vpc_identity_by_href_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) # Construct a model instance of VPCDNSResolverVPCPatchVPCIdentityByHref by calling from_dict on the json representation - vpcdns_resolver_vpc_patch_vpc_identity_by_href_model = VPCDNSResolverVPCPatchVPCIdentityByHref.from_dict(vpcdns_resolver_vpc_patch_vpc_identity_by_href_model_json) + vpcdns_resolver_vpc_patch_vpc_identity_by_href_model = VPCDNSResolverVPCPatchVPCIdentityByHref.from_dict( + vpcdns_resolver_vpc_patch_vpc_identity_by_href_model_json + ) assert vpcdns_resolver_vpc_patch_vpc_identity_by_href_model != False # Construct a model instance of VPCDNSResolverVPCPatchVPCIdentityByHref by calling from_dict on the json representation - vpcdns_resolver_vpc_patch_vpc_identity_by_href_model_dict = VPCDNSResolverVPCPatchVPCIdentityByHref.from_dict(vpcdns_resolver_vpc_patch_vpc_identity_by_href_model_json).__dict__ - vpcdns_resolver_vpc_patch_vpc_identity_by_href_model2 = VPCDNSResolverVPCPatchVPCIdentityByHref(**vpcdns_resolver_vpc_patch_vpc_identity_by_href_model_dict) + vpcdns_resolver_vpc_patch_vpc_identity_by_href_model_dict = VPCDNSResolverVPCPatchVPCIdentityByHref.from_dict( + vpcdns_resolver_vpc_patch_vpc_identity_by_href_model_json + ).__dict__ + vpcdns_resolver_vpc_patch_vpc_identity_by_href_model2 = VPCDNSResolverVPCPatchVPCIdentityByHref( + **vpcdns_resolver_vpc_patch_vpc_identity_by_href_model_dict + ) # Verify the model instances are equivalent - assert vpcdns_resolver_vpc_patch_vpc_identity_by_href_model == vpcdns_resolver_vpc_patch_vpc_identity_by_href_model2 + assert ( + vpcdns_resolver_vpc_patch_vpc_identity_by_href_model + == vpcdns_resolver_vpc_patch_vpc_identity_by_href_model2 + ) # Convert model instance back to dict and verify no loss of data - vpcdns_resolver_vpc_patch_vpc_identity_by_href_model_json2 = vpcdns_resolver_vpc_patch_vpc_identity_by_href_model.to_dict() - assert vpcdns_resolver_vpc_patch_vpc_identity_by_href_model_json2 == vpcdns_resolver_vpc_patch_vpc_identity_by_href_model_json + vpcdns_resolver_vpc_patch_vpc_identity_by_href_model_json2 = ( + vpcdns_resolver_vpc_patch_vpc_identity_by_href_model.to_dict() + ) + assert ( + vpcdns_resolver_vpc_patch_vpc_identity_by_href_model_json2 + == vpcdns_resolver_vpc_patch_vpc_identity_by_href_model_json + ) class TestModel_VPCDNSResolverVPCPatchVPCIdentityById: @@ -92500,19 +103139,30 @@ def test_vpcdns_resolver_vpc_patch_vpc_identity_by_id_serialization(self): vpcdns_resolver_vpc_patch_vpc_identity_by_id_model_json['id'] = 'r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' # Construct a model instance of VPCDNSResolverVPCPatchVPCIdentityById by calling from_dict on the json representation - vpcdns_resolver_vpc_patch_vpc_identity_by_id_model = VPCDNSResolverVPCPatchVPCIdentityById.from_dict(vpcdns_resolver_vpc_patch_vpc_identity_by_id_model_json) + vpcdns_resolver_vpc_patch_vpc_identity_by_id_model = VPCDNSResolverVPCPatchVPCIdentityById.from_dict( + vpcdns_resolver_vpc_patch_vpc_identity_by_id_model_json + ) assert vpcdns_resolver_vpc_patch_vpc_identity_by_id_model != False # Construct a model instance of VPCDNSResolverVPCPatchVPCIdentityById by calling from_dict on the json representation - vpcdns_resolver_vpc_patch_vpc_identity_by_id_model_dict = VPCDNSResolverVPCPatchVPCIdentityById.from_dict(vpcdns_resolver_vpc_patch_vpc_identity_by_id_model_json).__dict__ - vpcdns_resolver_vpc_patch_vpc_identity_by_id_model2 = VPCDNSResolverVPCPatchVPCIdentityById(**vpcdns_resolver_vpc_patch_vpc_identity_by_id_model_dict) + vpcdns_resolver_vpc_patch_vpc_identity_by_id_model_dict = VPCDNSResolverVPCPatchVPCIdentityById.from_dict( + vpcdns_resolver_vpc_patch_vpc_identity_by_id_model_json + ).__dict__ + vpcdns_resolver_vpc_patch_vpc_identity_by_id_model2 = VPCDNSResolverVPCPatchVPCIdentityById( + **vpcdns_resolver_vpc_patch_vpc_identity_by_id_model_dict + ) # Verify the model instances are equivalent assert vpcdns_resolver_vpc_patch_vpc_identity_by_id_model == vpcdns_resolver_vpc_patch_vpc_identity_by_id_model2 # Convert model instance back to dict and verify no loss of data - vpcdns_resolver_vpc_patch_vpc_identity_by_id_model_json2 = vpcdns_resolver_vpc_patch_vpc_identity_by_id_model.to_dict() - assert vpcdns_resolver_vpc_patch_vpc_identity_by_id_model_json2 == vpcdns_resolver_vpc_patch_vpc_identity_by_id_model_json + vpcdns_resolver_vpc_patch_vpc_identity_by_id_model_json2 = ( + vpcdns_resolver_vpc_patch_vpc_identity_by_id_model.to_dict() + ) + assert ( + vpcdns_resolver_vpc_patch_vpc_identity_by_id_model_json2 + == vpcdns_resolver_vpc_patch_vpc_identity_by_id_model_json + ) class TestModel_VPCIdentityByCRN: @@ -92527,7 +103177,9 @@ def test_vpc_identity_by_crn_serialization(self): # Construct a json representation of a VPCIdentityByCRN model vpc_identity_by_crn_model_json = {} - vpc_identity_by_crn_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_identity_by_crn_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) # Construct a model instance of VPCIdentityByCRN by calling from_dict on the json representation vpc_identity_by_crn_model = VPCIdentityByCRN.from_dict(vpc_identity_by_crn_model_json) @@ -92557,7 +103209,9 @@ def test_vpc_identity_by_href_serialization(self): # Construct a json representation of a VPCIdentityByHref model vpc_identity_by_href_model_json = {} - vpc_identity_by_href_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_identity_by_href_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) # Construct a model instance of VPCIdentityByHref by calling from_dict on the json representation vpc_identity_by_href_model = VPCIdentityByHref.from_dict(vpc_identity_by_href_model_json) @@ -92617,23 +103271,47 @@ def test_vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ik # Construct a json representation of a VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityFQDN model vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_fqdn_model_json = {} - vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_fqdn_model_json['type'] = 'fqdn' - vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_fqdn_model_json['value'] = 'my-service.example.com' + vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_fqdn_model_json['type'] = ( + 'fqdn' + ) + vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_fqdn_model_json['value'] = ( + 'my-service.example.com' + ) # Construct a model instance of VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityFQDN by calling from_dict on the json representation - vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_fqdn_model = VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityFQDN.from_dict(vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_fqdn_model_json) + vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_fqdn_model = ( + VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityFQDN.from_dict( + vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_fqdn_model_json + ) + ) assert vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_fqdn_model != False # Construct a model instance of VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityFQDN by calling from_dict on the json representation - vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_fqdn_model_dict = VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityFQDN.from_dict(vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_fqdn_model_json).__dict__ - vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_fqdn_model2 = VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityFQDN(**vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_fqdn_model_dict) + vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_fqdn_model_dict = ( + VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityFQDN.from_dict( + vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_fqdn_model_json + ).__dict__ + ) + vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_fqdn_model2 = ( + VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityFQDN( + **vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_fqdn_model_dict + ) + ) # Verify the model instances are equivalent - assert vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_fqdn_model == vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_fqdn_model2 + assert ( + vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_fqdn_model + == vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_fqdn_model2 + ) # Convert model instance back to dict and verify no loss of data - vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_fqdn_model_json2 = vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_fqdn_model.to_dict() - assert vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_fqdn_model_json2 == vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_fqdn_model_json + vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_fqdn_model_json2 = ( + vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_fqdn_model.to_dict() + ) + assert ( + vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_fqdn_model_json2 + == vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_fqdn_model_json + ) class TestModel_VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityHostname: @@ -92641,30 +103319,56 @@ class TestModel_VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEI Test Class for VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityHostname """ - def test_vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_hostname_serialization(self): + def test_vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_hostname_serialization( + self, + ): """ Test serialization/deserialization for VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityHostname """ # Construct a json representation of a VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityHostname model vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_hostname_model_json = {} - vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_hostname_model_json['type'] = 'fqdn' - vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_hostname_model_json['value'] = 'my-hostname' + vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_hostname_model_json[ + 'type' + ] = 'fqdn' + vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_hostname_model_json[ + 'value' + ] = 'my-hostname' # Construct a model instance of VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityHostname by calling from_dict on the json representation - vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_hostname_model = VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityHostname.from_dict(vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_hostname_model_json) + vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_hostname_model = ( + VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityHostname.from_dict( + vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_hostname_model_json + ) + ) assert vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_hostname_model != False # Construct a model instance of VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityHostname by calling from_dict on the json representation - vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_hostname_model_dict = VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityHostname.from_dict(vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_hostname_model_json).__dict__ - vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_hostname_model2 = VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityHostname(**vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_hostname_model_dict) + vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_hostname_model_dict = ( + VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityHostname.from_dict( + vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_hostname_model_json + ).__dict__ + ) + vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_hostname_model2 = ( + VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityHostname( + **vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_hostname_model_dict + ) + ) # Verify the model instances are equivalent - assert vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_hostname_model == vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_hostname_model2 + assert ( + vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_hostname_model + == vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_hostname_model2 + ) # Convert model instance back to dict and verify no loss of data - vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_hostname_model_json2 = vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_hostname_model.to_dict() - assert vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_hostname_model_json2 == vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_hostname_model_json + vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_hostname_model_json2 = ( + vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_hostname_model.to_dict() + ) + assert ( + vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_hostname_model_json2 + == vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_hostname_model_json + ) class TestModel_VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityIPv4: @@ -92672,30 +103376,56 @@ class TestModel_VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEI Test Class for VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityIPv4 """ - def test_vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_i_pv4_serialization(self): + def test_vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_i_pv4_serialization( + self, + ): """ Test serialization/deserialization for VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityIPv4 """ # Construct a json representation of a VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityIPv4 model vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_i_pv4_model_json = {} - vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_i_pv4_model_json['type'] = 'fqdn' - vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_i_pv4_model_json['value'] = '192.168.3.4' + vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_i_pv4_model_json['type'] = ( + 'fqdn' + ) + vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_i_pv4_model_json['value'] = ( + '192.168.3.4' + ) # Construct a model instance of VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityIPv4 by calling from_dict on the json representation - vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_i_pv4_model = VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityIPv4.from_dict(vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_i_pv4_model_json) + vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_i_pv4_model = ( + VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityIPv4.from_dict( + vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_i_pv4_model_json + ) + ) assert vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_i_pv4_model != False # Construct a model instance of VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityIPv4 by calling from_dict on the json representation - vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_i_pv4_model_dict = VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityIPv4.from_dict(vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_i_pv4_model_json).__dict__ - vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_i_pv4_model2 = VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityIPv4(**vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_i_pv4_model_dict) + vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_i_pv4_model_dict = ( + VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityIPv4.from_dict( + vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_i_pv4_model_json + ).__dict__ + ) + vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_i_pv4_model2 = ( + VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityIPv4( + **vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_i_pv4_model_dict + ) + ) # Verify the model instances are equivalent - assert vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_i_pv4_model == vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_i_pv4_model2 + assert ( + vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_i_pv4_model + == vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_i_pv4_model2 + ) # Convert model instance back to dict and verify no loss of data - vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_i_pv4_model_json2 = vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_i_pv4_model.to_dict() - assert vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_i_pv4_model_json2 == vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_i_pv4_model_json + vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_i_pv4_model_json2 = ( + vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_i_pv4_model.to_dict() + ) + assert ( + vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_i_pv4_model_json2 + == vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_i_pv4_model_json + ) class TestModel_VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityKeyID: @@ -92703,30 +103433,56 @@ class TestModel_VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEI Test Class for VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityKeyID """ - def test_vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_key_id_serialization(self): + def test_vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_key_id_serialization( + self, + ): """ Test serialization/deserialization for VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityKeyID """ # Construct a json representation of a VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityKeyID model vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_key_id_model_json = {} - vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_key_id_model_json['type'] = 'fqdn' - vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_key_id_model_json['value'] = 'qQ+/YEApnl1ZtEgIrfprzb065307thTkzlnLqL5ICpesdbBN03dyCQ==' + vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_key_id_model_json['type'] = ( + 'fqdn' + ) + vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_key_id_model_json['value'] = ( + 'qQ+/YEApnl1ZtEgIrfprzb065307thTkzlnLqL5ICpesdbBN03dyCQ==' + ) # Construct a model instance of VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityKeyID by calling from_dict on the json representation - vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_key_id_model = VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityKeyID.from_dict(vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_key_id_model_json) + vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_key_id_model = ( + VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityKeyID.from_dict( + vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_key_id_model_json + ) + ) assert vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_key_id_model != False # Construct a model instance of VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityKeyID by calling from_dict on the json representation - vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_key_id_model_dict = VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityKeyID.from_dict(vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_key_id_model_json).__dict__ - vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_key_id_model2 = VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityKeyID(**vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_key_id_model_dict) + vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_key_id_model_dict = ( + VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityKeyID.from_dict( + vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_key_id_model_json + ).__dict__ + ) + vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_key_id_model2 = ( + VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityKeyID( + **vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_key_id_model_dict + ) + ) # Verify the model instances are equivalent - assert vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_key_id_model == vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_key_id_model2 + assert ( + vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_key_id_model + == vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_key_id_model2 + ) # Convert model instance back to dict and verify no loss of data - vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_key_id_model_json2 = vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_key_id_model.to_dict() - assert vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_key_id_model_json2 == vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_key_id_model_json + vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_key_id_model_json2 = ( + vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_key_id_model.to_dict() + ) + assert ( + vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_key_id_model_json2 + == vpn_gateway_connection_ike_identity_prototype_vpn_gateway_connection_ike_identity_key_id_model_json + ) class TestModel_VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityFQDN: @@ -92742,22 +103498,44 @@ def test_vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity # Construct a json representation of a VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityFQDN model vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_fqdn_model_json = {} vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_fqdn_model_json['type'] = 'fqdn' - vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_fqdn_model_json['value'] = 'my-service.example.com' + vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_fqdn_model_json['value'] = ( + 'my-service.example.com' + ) # Construct a model instance of VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityFQDN by calling from_dict on the json representation - vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_fqdn_model = VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityFQDN.from_dict(vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_fqdn_model_json) + vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_fqdn_model = ( + VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityFQDN.from_dict( + vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_fqdn_model_json + ) + ) assert vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_fqdn_model != False # Construct a model instance of VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityFQDN by calling from_dict on the json representation - vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_fqdn_model_dict = VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityFQDN.from_dict(vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_fqdn_model_json).__dict__ - vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_fqdn_model2 = VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityFQDN(**vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_fqdn_model_dict) + vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_fqdn_model_dict = ( + VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityFQDN.from_dict( + vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_fqdn_model_json + ).__dict__ + ) + vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_fqdn_model2 = ( + VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityFQDN( + **vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_fqdn_model_dict + ) + ) # Verify the model instances are equivalent - assert vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_fqdn_model == vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_fqdn_model2 + assert ( + vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_fqdn_model + == vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_fqdn_model2 + ) # Convert model instance back to dict and verify no loss of data - vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_fqdn_model_json2 = vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_fqdn_model.to_dict() - assert vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_fqdn_model_json2 == vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_fqdn_model_json + vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_fqdn_model_json2 = ( + vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_fqdn_model.to_dict() + ) + assert ( + vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_fqdn_model_json2 + == vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_fqdn_model_json + ) class TestModel_VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityHostname: @@ -92773,22 +103551,44 @@ def test_vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity # Construct a json representation of a VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityHostname model vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_hostname_model_json = {} vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_hostname_model_json['type'] = 'fqdn' - vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_hostname_model_json['value'] = 'my-hostname' + vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_hostname_model_json['value'] = ( + 'my-hostname' + ) # Construct a model instance of VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityHostname by calling from_dict on the json representation - vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_hostname_model = VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityHostname.from_dict(vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_hostname_model_json) + vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_hostname_model = ( + VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityHostname.from_dict( + vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_hostname_model_json + ) + ) assert vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_hostname_model != False # Construct a model instance of VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityHostname by calling from_dict on the json representation - vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_hostname_model_dict = VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityHostname.from_dict(vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_hostname_model_json).__dict__ - vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_hostname_model2 = VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityHostname(**vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_hostname_model_dict) + vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_hostname_model_dict = ( + VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityHostname.from_dict( + vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_hostname_model_json + ).__dict__ + ) + vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_hostname_model2 = ( + VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityHostname( + **vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_hostname_model_dict + ) + ) # Verify the model instances are equivalent - assert vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_hostname_model == vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_hostname_model2 + assert ( + vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_hostname_model + == vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_hostname_model2 + ) # Convert model instance back to dict and verify no loss of data - vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_hostname_model_json2 = vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_hostname_model.to_dict() - assert vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_hostname_model_json2 == vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_hostname_model_json + vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_hostname_model_json2 = ( + vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_hostname_model.to_dict() + ) + assert ( + vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_hostname_model_json2 + == vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_hostname_model_json + ) class TestModel_VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityIPv4: @@ -92804,22 +103604,44 @@ def test_vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity # Construct a json representation of a VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityIPv4 model vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_i_pv4_model_json = {} vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_i_pv4_model_json['type'] = 'fqdn' - vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_i_pv4_model_json['value'] = '192.168.3.4' + vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_i_pv4_model_json['value'] = ( + '192.168.3.4' + ) # Construct a model instance of VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityIPv4 by calling from_dict on the json representation - vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_i_pv4_model = VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityIPv4.from_dict(vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_i_pv4_model_json) + vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_i_pv4_model = ( + VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityIPv4.from_dict( + vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_i_pv4_model_json + ) + ) assert vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_i_pv4_model != False # Construct a model instance of VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityIPv4 by calling from_dict on the json representation - vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_i_pv4_model_dict = VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityIPv4.from_dict(vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_i_pv4_model_json).__dict__ - vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_i_pv4_model2 = VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityIPv4(**vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_i_pv4_model_dict) + vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_i_pv4_model_dict = ( + VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityIPv4.from_dict( + vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_i_pv4_model_json + ).__dict__ + ) + vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_i_pv4_model2 = ( + VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityIPv4( + **vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_i_pv4_model_dict + ) + ) # Verify the model instances are equivalent - assert vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_i_pv4_model == vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_i_pv4_model2 + assert ( + vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_i_pv4_model + == vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_i_pv4_model2 + ) # Convert model instance back to dict and verify no loss of data - vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_i_pv4_model_json2 = vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_i_pv4_model.to_dict() - assert vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_i_pv4_model_json2 == vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_i_pv4_model_json + vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_i_pv4_model_json2 = ( + vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_i_pv4_model.to_dict() + ) + assert ( + vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_i_pv4_model_json2 + == vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_i_pv4_model_json + ) class TestModel_VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityKeyID: @@ -92835,22 +103657,44 @@ def test_vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity # Construct a json representation of a VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityKeyID model vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_key_id_model_json = {} vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_key_id_model_json['type'] = 'fqdn' - vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_key_id_model_json['value'] = 'qQ+/YEApnl1ZtEgIrfprzb065307thTkzlnLqL5ICpesdbBN03dyCQ==' + vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_key_id_model_json['value'] = ( + 'qQ+/YEApnl1ZtEgIrfprzb065307thTkzlnLqL5ICpesdbBN03dyCQ==' + ) # Construct a model instance of VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityKeyID by calling from_dict on the json representation - vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_key_id_model = VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityKeyID.from_dict(vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_key_id_model_json) + vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_key_id_model = ( + VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityKeyID.from_dict( + vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_key_id_model_json + ) + ) assert vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_key_id_model != False # Construct a model instance of VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityKeyID by calling from_dict on the json representation - vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_key_id_model_dict = VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityKeyID.from_dict(vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_key_id_model_json).__dict__ - vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_key_id_model2 = VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityKeyID(**vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_key_id_model_dict) + vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_key_id_model_dict = ( + VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityKeyID.from_dict( + vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_key_id_model_json + ).__dict__ + ) + vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_key_id_model2 = ( + VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityKeyID( + **vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_key_id_model_dict + ) + ) # Verify the model instances are equivalent - assert vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_key_id_model == vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_key_id_model2 + assert ( + vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_key_id_model + == vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_key_id_model2 + ) # Convert model instance back to dict and verify no loss of data - vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_key_id_model_json2 = vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_key_id_model.to_dict() - assert vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_key_id_model_json2 == vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_key_id_model_json + vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_key_id_model_json2 = ( + vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_key_id_model.to_dict() + ) + assert ( + vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_key_id_model_json2 + == vpn_gateway_connection_ike_identity_vpn_gateway_connection_ike_identity_key_id_model_json + ) class TestModel_VPNGatewayConnectionIKEPolicyPatchIKEPolicyIdentityByHref: @@ -92865,22 +103709,44 @@ def test_vpn_gateway_connection_ike_policy_patch_ike_policy_identity_by_href_ser # Construct a json representation of a VPNGatewayConnectionIKEPolicyPatchIKEPolicyIdentityByHref model vpn_gateway_connection_ike_policy_patch_ike_policy_identity_by_href_model_json = {} - vpn_gateway_connection_ike_policy_patch_ike_policy_identity_by_href_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/ike_policies/ddf51bec-3424-11e8-b467-0ed5f89f718b' + vpn_gateway_connection_ike_policy_patch_ike_policy_identity_by_href_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/ike_policies/ddf51bec-3424-11e8-b467-0ed5f89f718b' + ) # Construct a model instance of VPNGatewayConnectionIKEPolicyPatchIKEPolicyIdentityByHref by calling from_dict on the json representation - vpn_gateway_connection_ike_policy_patch_ike_policy_identity_by_href_model = VPNGatewayConnectionIKEPolicyPatchIKEPolicyIdentityByHref.from_dict(vpn_gateway_connection_ike_policy_patch_ike_policy_identity_by_href_model_json) + vpn_gateway_connection_ike_policy_patch_ike_policy_identity_by_href_model = ( + VPNGatewayConnectionIKEPolicyPatchIKEPolicyIdentityByHref.from_dict( + vpn_gateway_connection_ike_policy_patch_ike_policy_identity_by_href_model_json + ) + ) assert vpn_gateway_connection_ike_policy_patch_ike_policy_identity_by_href_model != False # Construct a model instance of VPNGatewayConnectionIKEPolicyPatchIKEPolicyIdentityByHref by calling from_dict on the json representation - vpn_gateway_connection_ike_policy_patch_ike_policy_identity_by_href_model_dict = VPNGatewayConnectionIKEPolicyPatchIKEPolicyIdentityByHref.from_dict(vpn_gateway_connection_ike_policy_patch_ike_policy_identity_by_href_model_json).__dict__ - vpn_gateway_connection_ike_policy_patch_ike_policy_identity_by_href_model2 = VPNGatewayConnectionIKEPolicyPatchIKEPolicyIdentityByHref(**vpn_gateway_connection_ike_policy_patch_ike_policy_identity_by_href_model_dict) + vpn_gateway_connection_ike_policy_patch_ike_policy_identity_by_href_model_dict = ( + VPNGatewayConnectionIKEPolicyPatchIKEPolicyIdentityByHref.from_dict( + vpn_gateway_connection_ike_policy_patch_ike_policy_identity_by_href_model_json + ).__dict__ + ) + vpn_gateway_connection_ike_policy_patch_ike_policy_identity_by_href_model2 = ( + VPNGatewayConnectionIKEPolicyPatchIKEPolicyIdentityByHref( + **vpn_gateway_connection_ike_policy_patch_ike_policy_identity_by_href_model_dict + ) + ) # Verify the model instances are equivalent - assert vpn_gateway_connection_ike_policy_patch_ike_policy_identity_by_href_model == vpn_gateway_connection_ike_policy_patch_ike_policy_identity_by_href_model2 + assert ( + vpn_gateway_connection_ike_policy_patch_ike_policy_identity_by_href_model + == vpn_gateway_connection_ike_policy_patch_ike_policy_identity_by_href_model2 + ) # Convert model instance back to dict and verify no loss of data - vpn_gateway_connection_ike_policy_patch_ike_policy_identity_by_href_model_json2 = vpn_gateway_connection_ike_policy_patch_ike_policy_identity_by_href_model.to_dict() - assert vpn_gateway_connection_ike_policy_patch_ike_policy_identity_by_href_model_json2 == vpn_gateway_connection_ike_policy_patch_ike_policy_identity_by_href_model_json + vpn_gateway_connection_ike_policy_patch_ike_policy_identity_by_href_model_json2 = ( + vpn_gateway_connection_ike_policy_patch_ike_policy_identity_by_href_model.to_dict() + ) + assert ( + vpn_gateway_connection_ike_policy_patch_ike_policy_identity_by_href_model_json2 + == vpn_gateway_connection_ike_policy_patch_ike_policy_identity_by_href_model_json + ) class TestModel_VPNGatewayConnectionIKEPolicyPatchIKEPolicyIdentityById: @@ -92895,22 +103761,44 @@ def test_vpn_gateway_connection_ike_policy_patch_ike_policy_identity_by_id_seria # Construct a json representation of a VPNGatewayConnectionIKEPolicyPatchIKEPolicyIdentityById model vpn_gateway_connection_ike_policy_patch_ike_policy_identity_by_id_model_json = {} - vpn_gateway_connection_ike_policy_patch_ike_policy_identity_by_id_model_json['id'] = 'ddf51bec-3424-11e8-b467-0ed5f89f718b' + vpn_gateway_connection_ike_policy_patch_ike_policy_identity_by_id_model_json['id'] = ( + 'ddf51bec-3424-11e8-b467-0ed5f89f718b' + ) # Construct a model instance of VPNGatewayConnectionIKEPolicyPatchIKEPolicyIdentityById by calling from_dict on the json representation - vpn_gateway_connection_ike_policy_patch_ike_policy_identity_by_id_model = VPNGatewayConnectionIKEPolicyPatchIKEPolicyIdentityById.from_dict(vpn_gateway_connection_ike_policy_patch_ike_policy_identity_by_id_model_json) + vpn_gateway_connection_ike_policy_patch_ike_policy_identity_by_id_model = ( + VPNGatewayConnectionIKEPolicyPatchIKEPolicyIdentityById.from_dict( + vpn_gateway_connection_ike_policy_patch_ike_policy_identity_by_id_model_json + ) + ) assert vpn_gateway_connection_ike_policy_patch_ike_policy_identity_by_id_model != False # Construct a model instance of VPNGatewayConnectionIKEPolicyPatchIKEPolicyIdentityById by calling from_dict on the json representation - vpn_gateway_connection_ike_policy_patch_ike_policy_identity_by_id_model_dict = VPNGatewayConnectionIKEPolicyPatchIKEPolicyIdentityById.from_dict(vpn_gateway_connection_ike_policy_patch_ike_policy_identity_by_id_model_json).__dict__ - vpn_gateway_connection_ike_policy_patch_ike_policy_identity_by_id_model2 = VPNGatewayConnectionIKEPolicyPatchIKEPolicyIdentityById(**vpn_gateway_connection_ike_policy_patch_ike_policy_identity_by_id_model_dict) + vpn_gateway_connection_ike_policy_patch_ike_policy_identity_by_id_model_dict = ( + VPNGatewayConnectionIKEPolicyPatchIKEPolicyIdentityById.from_dict( + vpn_gateway_connection_ike_policy_patch_ike_policy_identity_by_id_model_json + ).__dict__ + ) + vpn_gateway_connection_ike_policy_patch_ike_policy_identity_by_id_model2 = ( + VPNGatewayConnectionIKEPolicyPatchIKEPolicyIdentityById( + **vpn_gateway_connection_ike_policy_patch_ike_policy_identity_by_id_model_dict + ) + ) # Verify the model instances are equivalent - assert vpn_gateway_connection_ike_policy_patch_ike_policy_identity_by_id_model == vpn_gateway_connection_ike_policy_patch_ike_policy_identity_by_id_model2 + assert ( + vpn_gateway_connection_ike_policy_patch_ike_policy_identity_by_id_model + == vpn_gateway_connection_ike_policy_patch_ike_policy_identity_by_id_model2 + ) # Convert model instance back to dict and verify no loss of data - vpn_gateway_connection_ike_policy_patch_ike_policy_identity_by_id_model_json2 = vpn_gateway_connection_ike_policy_patch_ike_policy_identity_by_id_model.to_dict() - assert vpn_gateway_connection_ike_policy_patch_ike_policy_identity_by_id_model_json2 == vpn_gateway_connection_ike_policy_patch_ike_policy_identity_by_id_model_json + vpn_gateway_connection_ike_policy_patch_ike_policy_identity_by_id_model_json2 = ( + vpn_gateway_connection_ike_policy_patch_ike_policy_identity_by_id_model.to_dict() + ) + assert ( + vpn_gateway_connection_ike_policy_patch_ike_policy_identity_by_id_model_json2 + == vpn_gateway_connection_ike_policy_patch_ike_policy_identity_by_id_model_json + ) class TestModel_VPNGatewayConnectionIKEPolicyPrototypeIKEPolicyIdentityByHref: @@ -92925,22 +103813,44 @@ def test_vpn_gateway_connection_ike_policy_prototype_ike_policy_identity_by_href # Construct a json representation of a VPNGatewayConnectionIKEPolicyPrototypeIKEPolicyIdentityByHref model vpn_gateway_connection_ike_policy_prototype_ike_policy_identity_by_href_model_json = {} - vpn_gateway_connection_ike_policy_prototype_ike_policy_identity_by_href_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/ike_policies/ddf51bec-3424-11e8-b467-0ed5f89f718b' + vpn_gateway_connection_ike_policy_prototype_ike_policy_identity_by_href_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/ike_policies/ddf51bec-3424-11e8-b467-0ed5f89f718b' + ) # Construct a model instance of VPNGatewayConnectionIKEPolicyPrototypeIKEPolicyIdentityByHref by calling from_dict on the json representation - vpn_gateway_connection_ike_policy_prototype_ike_policy_identity_by_href_model = VPNGatewayConnectionIKEPolicyPrototypeIKEPolicyIdentityByHref.from_dict(vpn_gateway_connection_ike_policy_prototype_ike_policy_identity_by_href_model_json) + vpn_gateway_connection_ike_policy_prototype_ike_policy_identity_by_href_model = ( + VPNGatewayConnectionIKEPolicyPrototypeIKEPolicyIdentityByHref.from_dict( + vpn_gateway_connection_ike_policy_prototype_ike_policy_identity_by_href_model_json + ) + ) assert vpn_gateway_connection_ike_policy_prototype_ike_policy_identity_by_href_model != False # Construct a model instance of VPNGatewayConnectionIKEPolicyPrototypeIKEPolicyIdentityByHref by calling from_dict on the json representation - vpn_gateway_connection_ike_policy_prototype_ike_policy_identity_by_href_model_dict = VPNGatewayConnectionIKEPolicyPrototypeIKEPolicyIdentityByHref.from_dict(vpn_gateway_connection_ike_policy_prototype_ike_policy_identity_by_href_model_json).__dict__ - vpn_gateway_connection_ike_policy_prototype_ike_policy_identity_by_href_model2 = VPNGatewayConnectionIKEPolicyPrototypeIKEPolicyIdentityByHref(**vpn_gateway_connection_ike_policy_prototype_ike_policy_identity_by_href_model_dict) + vpn_gateway_connection_ike_policy_prototype_ike_policy_identity_by_href_model_dict = ( + VPNGatewayConnectionIKEPolicyPrototypeIKEPolicyIdentityByHref.from_dict( + vpn_gateway_connection_ike_policy_prototype_ike_policy_identity_by_href_model_json + ).__dict__ + ) + vpn_gateway_connection_ike_policy_prototype_ike_policy_identity_by_href_model2 = ( + VPNGatewayConnectionIKEPolicyPrototypeIKEPolicyIdentityByHref( + **vpn_gateway_connection_ike_policy_prototype_ike_policy_identity_by_href_model_dict + ) + ) # Verify the model instances are equivalent - assert vpn_gateway_connection_ike_policy_prototype_ike_policy_identity_by_href_model == vpn_gateway_connection_ike_policy_prototype_ike_policy_identity_by_href_model2 + assert ( + vpn_gateway_connection_ike_policy_prototype_ike_policy_identity_by_href_model + == vpn_gateway_connection_ike_policy_prototype_ike_policy_identity_by_href_model2 + ) # Convert model instance back to dict and verify no loss of data - vpn_gateway_connection_ike_policy_prototype_ike_policy_identity_by_href_model_json2 = vpn_gateway_connection_ike_policy_prototype_ike_policy_identity_by_href_model.to_dict() - assert vpn_gateway_connection_ike_policy_prototype_ike_policy_identity_by_href_model_json2 == vpn_gateway_connection_ike_policy_prototype_ike_policy_identity_by_href_model_json + vpn_gateway_connection_ike_policy_prototype_ike_policy_identity_by_href_model_json2 = ( + vpn_gateway_connection_ike_policy_prototype_ike_policy_identity_by_href_model.to_dict() + ) + assert ( + vpn_gateway_connection_ike_policy_prototype_ike_policy_identity_by_href_model_json2 + == vpn_gateway_connection_ike_policy_prototype_ike_policy_identity_by_href_model_json + ) class TestModel_VPNGatewayConnectionIKEPolicyPrototypeIKEPolicyIdentityById: @@ -92955,22 +103865,44 @@ def test_vpn_gateway_connection_ike_policy_prototype_ike_policy_identity_by_id_s # Construct a json representation of a VPNGatewayConnectionIKEPolicyPrototypeIKEPolicyIdentityById model vpn_gateway_connection_ike_policy_prototype_ike_policy_identity_by_id_model_json = {} - vpn_gateway_connection_ike_policy_prototype_ike_policy_identity_by_id_model_json['id'] = 'ddf51bec-3424-11e8-b467-0ed5f89f718b' + vpn_gateway_connection_ike_policy_prototype_ike_policy_identity_by_id_model_json['id'] = ( + 'ddf51bec-3424-11e8-b467-0ed5f89f718b' + ) # Construct a model instance of VPNGatewayConnectionIKEPolicyPrototypeIKEPolicyIdentityById by calling from_dict on the json representation - vpn_gateway_connection_ike_policy_prototype_ike_policy_identity_by_id_model = VPNGatewayConnectionIKEPolicyPrototypeIKEPolicyIdentityById.from_dict(vpn_gateway_connection_ike_policy_prototype_ike_policy_identity_by_id_model_json) + vpn_gateway_connection_ike_policy_prototype_ike_policy_identity_by_id_model = ( + VPNGatewayConnectionIKEPolicyPrototypeIKEPolicyIdentityById.from_dict( + vpn_gateway_connection_ike_policy_prototype_ike_policy_identity_by_id_model_json + ) + ) assert vpn_gateway_connection_ike_policy_prototype_ike_policy_identity_by_id_model != False # Construct a model instance of VPNGatewayConnectionIKEPolicyPrototypeIKEPolicyIdentityById by calling from_dict on the json representation - vpn_gateway_connection_ike_policy_prototype_ike_policy_identity_by_id_model_dict = VPNGatewayConnectionIKEPolicyPrototypeIKEPolicyIdentityById.from_dict(vpn_gateway_connection_ike_policy_prototype_ike_policy_identity_by_id_model_json).__dict__ - vpn_gateway_connection_ike_policy_prototype_ike_policy_identity_by_id_model2 = VPNGatewayConnectionIKEPolicyPrototypeIKEPolicyIdentityById(**vpn_gateway_connection_ike_policy_prototype_ike_policy_identity_by_id_model_dict) + vpn_gateway_connection_ike_policy_prototype_ike_policy_identity_by_id_model_dict = ( + VPNGatewayConnectionIKEPolicyPrototypeIKEPolicyIdentityById.from_dict( + vpn_gateway_connection_ike_policy_prototype_ike_policy_identity_by_id_model_json + ).__dict__ + ) + vpn_gateway_connection_ike_policy_prototype_ike_policy_identity_by_id_model2 = ( + VPNGatewayConnectionIKEPolicyPrototypeIKEPolicyIdentityById( + **vpn_gateway_connection_ike_policy_prototype_ike_policy_identity_by_id_model_dict + ) + ) # Verify the model instances are equivalent - assert vpn_gateway_connection_ike_policy_prototype_ike_policy_identity_by_id_model == vpn_gateway_connection_ike_policy_prototype_ike_policy_identity_by_id_model2 + assert ( + vpn_gateway_connection_ike_policy_prototype_ike_policy_identity_by_id_model + == vpn_gateway_connection_ike_policy_prototype_ike_policy_identity_by_id_model2 + ) # Convert model instance back to dict and verify no loss of data - vpn_gateway_connection_ike_policy_prototype_ike_policy_identity_by_id_model_json2 = vpn_gateway_connection_ike_policy_prototype_ike_policy_identity_by_id_model.to_dict() - assert vpn_gateway_connection_ike_policy_prototype_ike_policy_identity_by_id_model_json2 == vpn_gateway_connection_ike_policy_prototype_ike_policy_identity_by_id_model_json + vpn_gateway_connection_ike_policy_prototype_ike_policy_identity_by_id_model_json2 = ( + vpn_gateway_connection_ike_policy_prototype_ike_policy_identity_by_id_model.to_dict() + ) + assert ( + vpn_gateway_connection_ike_policy_prototype_ike_policy_identity_by_id_model_json2 + == vpn_gateway_connection_ike_policy_prototype_ike_policy_identity_by_id_model_json + ) class TestModel_VPNGatewayConnectionIPsecPolicyPatchIPsecPolicyIdentityByHref: @@ -92985,22 +103917,44 @@ def test_vpn_gateway_connection_i_psec_policy_patch_i_psec_policy_identity_by_hr # Construct a json representation of a VPNGatewayConnectionIPsecPolicyPatchIPsecPolicyIdentityByHref model vpn_gateway_connection_i_psec_policy_patch_i_psec_policy_identity_by_href_model_json = {} - vpn_gateway_connection_i_psec_policy_patch_i_psec_policy_identity_by_href_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/ipsec_policies/ddf51bec-3424-11e8-b467-0ed5f89f718b' + vpn_gateway_connection_i_psec_policy_patch_i_psec_policy_identity_by_href_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/ipsec_policies/ddf51bec-3424-11e8-b467-0ed5f89f718b' + ) # Construct a model instance of VPNGatewayConnectionIPsecPolicyPatchIPsecPolicyIdentityByHref by calling from_dict on the json representation - vpn_gateway_connection_i_psec_policy_patch_i_psec_policy_identity_by_href_model = VPNGatewayConnectionIPsecPolicyPatchIPsecPolicyIdentityByHref.from_dict(vpn_gateway_connection_i_psec_policy_patch_i_psec_policy_identity_by_href_model_json) + vpn_gateway_connection_i_psec_policy_patch_i_psec_policy_identity_by_href_model = ( + VPNGatewayConnectionIPsecPolicyPatchIPsecPolicyIdentityByHref.from_dict( + vpn_gateway_connection_i_psec_policy_patch_i_psec_policy_identity_by_href_model_json + ) + ) assert vpn_gateway_connection_i_psec_policy_patch_i_psec_policy_identity_by_href_model != False # Construct a model instance of VPNGatewayConnectionIPsecPolicyPatchIPsecPolicyIdentityByHref by calling from_dict on the json representation - vpn_gateway_connection_i_psec_policy_patch_i_psec_policy_identity_by_href_model_dict = VPNGatewayConnectionIPsecPolicyPatchIPsecPolicyIdentityByHref.from_dict(vpn_gateway_connection_i_psec_policy_patch_i_psec_policy_identity_by_href_model_json).__dict__ - vpn_gateway_connection_i_psec_policy_patch_i_psec_policy_identity_by_href_model2 = VPNGatewayConnectionIPsecPolicyPatchIPsecPolicyIdentityByHref(**vpn_gateway_connection_i_psec_policy_patch_i_psec_policy_identity_by_href_model_dict) + vpn_gateway_connection_i_psec_policy_patch_i_psec_policy_identity_by_href_model_dict = ( + VPNGatewayConnectionIPsecPolicyPatchIPsecPolicyIdentityByHref.from_dict( + vpn_gateway_connection_i_psec_policy_patch_i_psec_policy_identity_by_href_model_json + ).__dict__ + ) + vpn_gateway_connection_i_psec_policy_patch_i_psec_policy_identity_by_href_model2 = ( + VPNGatewayConnectionIPsecPolicyPatchIPsecPolicyIdentityByHref( + **vpn_gateway_connection_i_psec_policy_patch_i_psec_policy_identity_by_href_model_dict + ) + ) # Verify the model instances are equivalent - assert vpn_gateway_connection_i_psec_policy_patch_i_psec_policy_identity_by_href_model == vpn_gateway_connection_i_psec_policy_patch_i_psec_policy_identity_by_href_model2 + assert ( + vpn_gateway_connection_i_psec_policy_patch_i_psec_policy_identity_by_href_model + == vpn_gateway_connection_i_psec_policy_patch_i_psec_policy_identity_by_href_model2 + ) # Convert model instance back to dict and verify no loss of data - vpn_gateway_connection_i_psec_policy_patch_i_psec_policy_identity_by_href_model_json2 = vpn_gateway_connection_i_psec_policy_patch_i_psec_policy_identity_by_href_model.to_dict() - assert vpn_gateway_connection_i_psec_policy_patch_i_psec_policy_identity_by_href_model_json2 == vpn_gateway_connection_i_psec_policy_patch_i_psec_policy_identity_by_href_model_json + vpn_gateway_connection_i_psec_policy_patch_i_psec_policy_identity_by_href_model_json2 = ( + vpn_gateway_connection_i_psec_policy_patch_i_psec_policy_identity_by_href_model.to_dict() + ) + assert ( + vpn_gateway_connection_i_psec_policy_patch_i_psec_policy_identity_by_href_model_json2 + == vpn_gateway_connection_i_psec_policy_patch_i_psec_policy_identity_by_href_model_json + ) class TestModel_VPNGatewayConnectionIPsecPolicyPatchIPsecPolicyIdentityById: @@ -93015,22 +103969,44 @@ def test_vpn_gateway_connection_i_psec_policy_patch_i_psec_policy_identity_by_id # Construct a json representation of a VPNGatewayConnectionIPsecPolicyPatchIPsecPolicyIdentityById model vpn_gateway_connection_i_psec_policy_patch_i_psec_policy_identity_by_id_model_json = {} - vpn_gateway_connection_i_psec_policy_patch_i_psec_policy_identity_by_id_model_json['id'] = 'ddf51bec-3424-11e8-b467-0ed5f89f718b' + vpn_gateway_connection_i_psec_policy_patch_i_psec_policy_identity_by_id_model_json['id'] = ( + 'ddf51bec-3424-11e8-b467-0ed5f89f718b' + ) # Construct a model instance of VPNGatewayConnectionIPsecPolicyPatchIPsecPolicyIdentityById by calling from_dict on the json representation - vpn_gateway_connection_i_psec_policy_patch_i_psec_policy_identity_by_id_model = VPNGatewayConnectionIPsecPolicyPatchIPsecPolicyIdentityById.from_dict(vpn_gateway_connection_i_psec_policy_patch_i_psec_policy_identity_by_id_model_json) + vpn_gateway_connection_i_psec_policy_patch_i_psec_policy_identity_by_id_model = ( + VPNGatewayConnectionIPsecPolicyPatchIPsecPolicyIdentityById.from_dict( + vpn_gateway_connection_i_psec_policy_patch_i_psec_policy_identity_by_id_model_json + ) + ) assert vpn_gateway_connection_i_psec_policy_patch_i_psec_policy_identity_by_id_model != False # Construct a model instance of VPNGatewayConnectionIPsecPolicyPatchIPsecPolicyIdentityById by calling from_dict on the json representation - vpn_gateway_connection_i_psec_policy_patch_i_psec_policy_identity_by_id_model_dict = VPNGatewayConnectionIPsecPolicyPatchIPsecPolicyIdentityById.from_dict(vpn_gateway_connection_i_psec_policy_patch_i_psec_policy_identity_by_id_model_json).__dict__ - vpn_gateway_connection_i_psec_policy_patch_i_psec_policy_identity_by_id_model2 = VPNGatewayConnectionIPsecPolicyPatchIPsecPolicyIdentityById(**vpn_gateway_connection_i_psec_policy_patch_i_psec_policy_identity_by_id_model_dict) + vpn_gateway_connection_i_psec_policy_patch_i_psec_policy_identity_by_id_model_dict = ( + VPNGatewayConnectionIPsecPolicyPatchIPsecPolicyIdentityById.from_dict( + vpn_gateway_connection_i_psec_policy_patch_i_psec_policy_identity_by_id_model_json + ).__dict__ + ) + vpn_gateway_connection_i_psec_policy_patch_i_psec_policy_identity_by_id_model2 = ( + VPNGatewayConnectionIPsecPolicyPatchIPsecPolicyIdentityById( + **vpn_gateway_connection_i_psec_policy_patch_i_psec_policy_identity_by_id_model_dict + ) + ) # Verify the model instances are equivalent - assert vpn_gateway_connection_i_psec_policy_patch_i_psec_policy_identity_by_id_model == vpn_gateway_connection_i_psec_policy_patch_i_psec_policy_identity_by_id_model2 + assert ( + vpn_gateway_connection_i_psec_policy_patch_i_psec_policy_identity_by_id_model + == vpn_gateway_connection_i_psec_policy_patch_i_psec_policy_identity_by_id_model2 + ) # Convert model instance back to dict and verify no loss of data - vpn_gateway_connection_i_psec_policy_patch_i_psec_policy_identity_by_id_model_json2 = vpn_gateway_connection_i_psec_policy_patch_i_psec_policy_identity_by_id_model.to_dict() - assert vpn_gateway_connection_i_psec_policy_patch_i_psec_policy_identity_by_id_model_json2 == vpn_gateway_connection_i_psec_policy_patch_i_psec_policy_identity_by_id_model_json + vpn_gateway_connection_i_psec_policy_patch_i_psec_policy_identity_by_id_model_json2 = ( + vpn_gateway_connection_i_psec_policy_patch_i_psec_policy_identity_by_id_model.to_dict() + ) + assert ( + vpn_gateway_connection_i_psec_policy_patch_i_psec_policy_identity_by_id_model_json2 + == vpn_gateway_connection_i_psec_policy_patch_i_psec_policy_identity_by_id_model_json + ) class TestModel_VPNGatewayConnectionIPsecPolicyPrototypeIPsecPolicyIdentityByHref: @@ -93045,22 +104021,44 @@ def test_vpn_gateway_connection_i_psec_policy_prototype_i_psec_policy_identity_b # Construct a json representation of a VPNGatewayConnectionIPsecPolicyPrototypeIPsecPolicyIdentityByHref model vpn_gateway_connection_i_psec_policy_prototype_i_psec_policy_identity_by_href_model_json = {} - vpn_gateway_connection_i_psec_policy_prototype_i_psec_policy_identity_by_href_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/ipsec_policies/ddf51bec-3424-11e8-b467-0ed5f89f718b' + vpn_gateway_connection_i_psec_policy_prototype_i_psec_policy_identity_by_href_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/ipsec_policies/ddf51bec-3424-11e8-b467-0ed5f89f718b' + ) # Construct a model instance of VPNGatewayConnectionIPsecPolicyPrototypeIPsecPolicyIdentityByHref by calling from_dict on the json representation - vpn_gateway_connection_i_psec_policy_prototype_i_psec_policy_identity_by_href_model = VPNGatewayConnectionIPsecPolicyPrototypeIPsecPolicyIdentityByHref.from_dict(vpn_gateway_connection_i_psec_policy_prototype_i_psec_policy_identity_by_href_model_json) + vpn_gateway_connection_i_psec_policy_prototype_i_psec_policy_identity_by_href_model = ( + VPNGatewayConnectionIPsecPolicyPrototypeIPsecPolicyIdentityByHref.from_dict( + vpn_gateway_connection_i_psec_policy_prototype_i_psec_policy_identity_by_href_model_json + ) + ) assert vpn_gateway_connection_i_psec_policy_prototype_i_psec_policy_identity_by_href_model != False # Construct a model instance of VPNGatewayConnectionIPsecPolicyPrototypeIPsecPolicyIdentityByHref by calling from_dict on the json representation - vpn_gateway_connection_i_psec_policy_prototype_i_psec_policy_identity_by_href_model_dict = VPNGatewayConnectionIPsecPolicyPrototypeIPsecPolicyIdentityByHref.from_dict(vpn_gateway_connection_i_psec_policy_prototype_i_psec_policy_identity_by_href_model_json).__dict__ - vpn_gateway_connection_i_psec_policy_prototype_i_psec_policy_identity_by_href_model2 = VPNGatewayConnectionIPsecPolicyPrototypeIPsecPolicyIdentityByHref(**vpn_gateway_connection_i_psec_policy_prototype_i_psec_policy_identity_by_href_model_dict) + vpn_gateway_connection_i_psec_policy_prototype_i_psec_policy_identity_by_href_model_dict = ( + VPNGatewayConnectionIPsecPolicyPrototypeIPsecPolicyIdentityByHref.from_dict( + vpn_gateway_connection_i_psec_policy_prototype_i_psec_policy_identity_by_href_model_json + ).__dict__ + ) + vpn_gateway_connection_i_psec_policy_prototype_i_psec_policy_identity_by_href_model2 = ( + VPNGatewayConnectionIPsecPolicyPrototypeIPsecPolicyIdentityByHref( + **vpn_gateway_connection_i_psec_policy_prototype_i_psec_policy_identity_by_href_model_dict + ) + ) # Verify the model instances are equivalent - assert vpn_gateway_connection_i_psec_policy_prototype_i_psec_policy_identity_by_href_model == vpn_gateway_connection_i_psec_policy_prototype_i_psec_policy_identity_by_href_model2 + assert ( + vpn_gateway_connection_i_psec_policy_prototype_i_psec_policy_identity_by_href_model + == vpn_gateway_connection_i_psec_policy_prototype_i_psec_policy_identity_by_href_model2 + ) # Convert model instance back to dict and verify no loss of data - vpn_gateway_connection_i_psec_policy_prototype_i_psec_policy_identity_by_href_model_json2 = vpn_gateway_connection_i_psec_policy_prototype_i_psec_policy_identity_by_href_model.to_dict() - assert vpn_gateway_connection_i_psec_policy_prototype_i_psec_policy_identity_by_href_model_json2 == vpn_gateway_connection_i_psec_policy_prototype_i_psec_policy_identity_by_href_model_json + vpn_gateway_connection_i_psec_policy_prototype_i_psec_policy_identity_by_href_model_json2 = ( + vpn_gateway_connection_i_psec_policy_prototype_i_psec_policy_identity_by_href_model.to_dict() + ) + assert ( + vpn_gateway_connection_i_psec_policy_prototype_i_psec_policy_identity_by_href_model_json2 + == vpn_gateway_connection_i_psec_policy_prototype_i_psec_policy_identity_by_href_model_json + ) class TestModel_VPNGatewayConnectionIPsecPolicyPrototypeIPsecPolicyIdentityById: @@ -93075,22 +104073,44 @@ def test_vpn_gateway_connection_i_psec_policy_prototype_i_psec_policy_identity_b # Construct a json representation of a VPNGatewayConnectionIPsecPolicyPrototypeIPsecPolicyIdentityById model vpn_gateway_connection_i_psec_policy_prototype_i_psec_policy_identity_by_id_model_json = {} - vpn_gateway_connection_i_psec_policy_prototype_i_psec_policy_identity_by_id_model_json['id'] = 'ddf51bec-3424-11e8-b467-0ed5f89f718b' + vpn_gateway_connection_i_psec_policy_prototype_i_psec_policy_identity_by_id_model_json['id'] = ( + 'ddf51bec-3424-11e8-b467-0ed5f89f718b' + ) # Construct a model instance of VPNGatewayConnectionIPsecPolicyPrototypeIPsecPolicyIdentityById by calling from_dict on the json representation - vpn_gateway_connection_i_psec_policy_prototype_i_psec_policy_identity_by_id_model = VPNGatewayConnectionIPsecPolicyPrototypeIPsecPolicyIdentityById.from_dict(vpn_gateway_connection_i_psec_policy_prototype_i_psec_policy_identity_by_id_model_json) + vpn_gateway_connection_i_psec_policy_prototype_i_psec_policy_identity_by_id_model = ( + VPNGatewayConnectionIPsecPolicyPrototypeIPsecPolicyIdentityById.from_dict( + vpn_gateway_connection_i_psec_policy_prototype_i_psec_policy_identity_by_id_model_json + ) + ) assert vpn_gateway_connection_i_psec_policy_prototype_i_psec_policy_identity_by_id_model != False # Construct a model instance of VPNGatewayConnectionIPsecPolicyPrototypeIPsecPolicyIdentityById by calling from_dict on the json representation - vpn_gateway_connection_i_psec_policy_prototype_i_psec_policy_identity_by_id_model_dict = VPNGatewayConnectionIPsecPolicyPrototypeIPsecPolicyIdentityById.from_dict(vpn_gateway_connection_i_psec_policy_prototype_i_psec_policy_identity_by_id_model_json).__dict__ - vpn_gateway_connection_i_psec_policy_prototype_i_psec_policy_identity_by_id_model2 = VPNGatewayConnectionIPsecPolicyPrototypeIPsecPolicyIdentityById(**vpn_gateway_connection_i_psec_policy_prototype_i_psec_policy_identity_by_id_model_dict) + vpn_gateway_connection_i_psec_policy_prototype_i_psec_policy_identity_by_id_model_dict = ( + VPNGatewayConnectionIPsecPolicyPrototypeIPsecPolicyIdentityById.from_dict( + vpn_gateway_connection_i_psec_policy_prototype_i_psec_policy_identity_by_id_model_json + ).__dict__ + ) + vpn_gateway_connection_i_psec_policy_prototype_i_psec_policy_identity_by_id_model2 = ( + VPNGatewayConnectionIPsecPolicyPrototypeIPsecPolicyIdentityById( + **vpn_gateway_connection_i_psec_policy_prototype_i_psec_policy_identity_by_id_model_dict + ) + ) # Verify the model instances are equivalent - assert vpn_gateway_connection_i_psec_policy_prototype_i_psec_policy_identity_by_id_model == vpn_gateway_connection_i_psec_policy_prototype_i_psec_policy_identity_by_id_model2 + assert ( + vpn_gateway_connection_i_psec_policy_prototype_i_psec_policy_identity_by_id_model + == vpn_gateway_connection_i_psec_policy_prototype_i_psec_policy_identity_by_id_model2 + ) # Convert model instance back to dict and verify no loss of data - vpn_gateway_connection_i_psec_policy_prototype_i_psec_policy_identity_by_id_model_json2 = vpn_gateway_connection_i_psec_policy_prototype_i_psec_policy_identity_by_id_model.to_dict() - assert vpn_gateway_connection_i_psec_policy_prototype_i_psec_policy_identity_by_id_model_json2 == vpn_gateway_connection_i_psec_policy_prototype_i_psec_policy_identity_by_id_model_json + vpn_gateway_connection_i_psec_policy_prototype_i_psec_policy_identity_by_id_model_json2 = ( + vpn_gateway_connection_i_psec_policy_prototype_i_psec_policy_identity_by_id_model.to_dict() + ) + assert ( + vpn_gateway_connection_i_psec_policy_prototype_i_psec_policy_identity_by_id_model_json2 + == vpn_gateway_connection_i_psec_policy_prototype_i_psec_policy_identity_by_id_model_json + ) class TestModel_VPNGatewayConnectionPolicyMode: @@ -93115,24 +104135,34 @@ def test_vpn_gateway_connection_policy_mode_serialization(self): ike_policy_reference_model = {} # IKEPolicyReference ike_policy_reference_model['deleted'] = deleted_model - ike_policy_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/ike_policies/ddf51bec-3424-11e8-b467-0ed5f89f718b' + ike_policy_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/ike_policies/ddf51bec-3424-11e8-b467-0ed5f89f718b' + ) ike_policy_reference_model['id'] = 'ddf51bec-3424-11e8-b467-0ed5f89f718b' ike_policy_reference_model['name'] = 'my-ike-policy' ike_policy_reference_model['resource_type'] = 'ike_policy' i_psec_policy_reference_model = {} # IPsecPolicyReference i_psec_policy_reference_model['deleted'] = deleted_model - i_psec_policy_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/ipsec_policies/ddf51bec-3424-11e8-b467-0ed5f89f718b' + i_psec_policy_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/ipsec_policies/ddf51bec-3424-11e8-b467-0ed5f89f718b' + ) i_psec_policy_reference_model['id'] = 'ddf51bec-3424-11e8-b467-0ed5f89f718b' i_psec_policy_reference_model['name'] = 'my-ipsec-policy' i_psec_policy_reference_model['resource_type'] = 'ipsec_policy' vpn_gateway_connection_status_reason_model = {} # VPNGatewayConnectionStatusReason vpn_gateway_connection_status_reason_model['code'] = 'cannot_authenticate_connection' - vpn_gateway_connection_status_reason_model['message'] = 'Failed to authenticate a connection because of mismatched IKE ID and PSK.' - vpn_gateway_connection_status_reason_model['more_info'] = 'https://cloud.ibm.com/docs/vpc?topic=vpc-vpn-health#vpn-connection-health' + vpn_gateway_connection_status_reason_model['message'] = ( + 'Failed to authenticate a connection because of mismatched IKE ID and PSK.' + ) + vpn_gateway_connection_status_reason_model['more_info'] = ( + 'https://cloud.ibm.com/docs/vpc?topic=vpc-vpn-health#vpn-connection-health' + ) - vpn_gateway_connection_ike_identity_model = {} # VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityFQDN + vpn_gateway_connection_ike_identity_model = ( + {} + ) # VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityFQDN vpn_gateway_connection_ike_identity_model['type'] = 'fqdn' vpn_gateway_connection_ike_identity_model['value'] = 'my-service.example.com' @@ -93140,7 +104170,9 @@ def test_vpn_gateway_connection_policy_mode_serialization(self): vpn_gateway_connection_policy_mode_local_model['cidrs'] = ['192.168.1.0/24'] vpn_gateway_connection_policy_mode_local_model['ike_identities'] = [vpn_gateway_connection_ike_identity_model] - vpn_gateway_connection_policy_mode_peer_model = {} # VPNGatewayConnectionPolicyModePeerVPNGatewayConnectionPeerByAddress + vpn_gateway_connection_policy_mode_peer_model = ( + {} + ) # VPNGatewayConnectionPolicyModePeerVPNGatewayConnectionPeerByAddress vpn_gateway_connection_policy_mode_peer_model['cidrs'] = ['10.45.1.0/24'] vpn_gateway_connection_policy_mode_peer_model['ike_identity'] = vpn_gateway_connection_ike_identity_model vpn_gateway_connection_policy_mode_peer_model['type'] = 'address' @@ -93153,7 +104185,9 @@ def test_vpn_gateway_connection_policy_mode_serialization(self): vpn_gateway_connection_policy_mode_model_json['created_at'] = '2019-01-01T12:00:00Z' vpn_gateway_connection_policy_mode_model_json['dead_peer_detection'] = vpn_gateway_connection_dpd_model vpn_gateway_connection_policy_mode_model_json['establish_mode'] = 'bidirectional' - vpn_gateway_connection_policy_mode_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b/connections/93487806-7743-4c46-81d6-72869883ea0b' + vpn_gateway_connection_policy_mode_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b/connections/93487806-7743-4c46-81d6-72869883ea0b' + ) vpn_gateway_connection_policy_mode_model_json['id'] = 'a10a5771-dc23-442c-8460-c3601d8542f7' vpn_gateway_connection_policy_mode_model_json['ike_policy'] = ike_policy_reference_model vpn_gateway_connection_policy_mode_model_json['ipsec_policy'] = i_psec_policy_reference_model @@ -93167,12 +104201,18 @@ def test_vpn_gateway_connection_policy_mode_serialization(self): vpn_gateway_connection_policy_mode_model_json['peer'] = vpn_gateway_connection_policy_mode_peer_model # Construct a model instance of VPNGatewayConnectionPolicyMode by calling from_dict on the json representation - vpn_gateway_connection_policy_mode_model = VPNGatewayConnectionPolicyMode.from_dict(vpn_gateway_connection_policy_mode_model_json) + vpn_gateway_connection_policy_mode_model = VPNGatewayConnectionPolicyMode.from_dict( + vpn_gateway_connection_policy_mode_model_json + ) assert vpn_gateway_connection_policy_mode_model != False # Construct a model instance of VPNGatewayConnectionPolicyMode by calling from_dict on the json representation - vpn_gateway_connection_policy_mode_model_dict = VPNGatewayConnectionPolicyMode.from_dict(vpn_gateway_connection_policy_mode_model_json).__dict__ - vpn_gateway_connection_policy_mode_model2 = VPNGatewayConnectionPolicyMode(**vpn_gateway_connection_policy_mode_model_dict) + vpn_gateway_connection_policy_mode_model_dict = VPNGatewayConnectionPolicyMode.from_dict( + vpn_gateway_connection_policy_mode_model_json + ).__dict__ + vpn_gateway_connection_policy_mode_model2 = VPNGatewayConnectionPolicyMode( + **vpn_gateway_connection_policy_mode_model_dict + ) # Verify the model instances are equivalent assert vpn_gateway_connection_policy_mode_model == vpn_gateway_connection_policy_mode_model2 @@ -93187,37 +104227,67 @@ class TestModel_VPNGatewayConnectionPolicyModePeerPrototypeVPNGatewayConnectionP Test Class for VPNGatewayConnectionPolicyModePeerPrototypeVPNGatewayConnectionPeerByAddress """ - def test_vpn_gateway_connection_policy_mode_peer_prototype_vpn_gateway_connection_peer_by_address_serialization(self): + def test_vpn_gateway_connection_policy_mode_peer_prototype_vpn_gateway_connection_peer_by_address_serialization( + self, + ): """ Test serialization/deserialization for VPNGatewayConnectionPolicyModePeerPrototypeVPNGatewayConnectionPeerByAddress """ # Construct dict forms of any model objects needed in order to build this model. - vpn_gateway_connection_ike_identity_prototype_model = {} # VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityFQDN + vpn_gateway_connection_ike_identity_prototype_model = ( + {} + ) # VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityFQDN vpn_gateway_connection_ike_identity_prototype_model['type'] = 'fqdn' vpn_gateway_connection_ike_identity_prototype_model['value'] = 'my-service.example.com' # Construct a json representation of a VPNGatewayConnectionPolicyModePeerPrototypeVPNGatewayConnectionPeerByAddress model vpn_gateway_connection_policy_mode_peer_prototype_vpn_gateway_connection_peer_by_address_model_json = {} - vpn_gateway_connection_policy_mode_peer_prototype_vpn_gateway_connection_peer_by_address_model_json['cidrs'] = ['10.45.1.0/24'] - vpn_gateway_connection_policy_mode_peer_prototype_vpn_gateway_connection_peer_by_address_model_json['ike_identity'] = vpn_gateway_connection_ike_identity_prototype_model - vpn_gateway_connection_policy_mode_peer_prototype_vpn_gateway_connection_peer_by_address_model_json['address'] = '169.21.50.5' + vpn_gateway_connection_policy_mode_peer_prototype_vpn_gateway_connection_peer_by_address_model_json['cidrs'] = [ + '10.45.1.0/24' + ] + vpn_gateway_connection_policy_mode_peer_prototype_vpn_gateway_connection_peer_by_address_model_json[ + 'ike_identity' + ] = vpn_gateway_connection_ike_identity_prototype_model + vpn_gateway_connection_policy_mode_peer_prototype_vpn_gateway_connection_peer_by_address_model_json[ + 'address' + ] = '169.21.50.5' # Construct a model instance of VPNGatewayConnectionPolicyModePeerPrototypeVPNGatewayConnectionPeerByAddress by calling from_dict on the json representation - vpn_gateway_connection_policy_mode_peer_prototype_vpn_gateway_connection_peer_by_address_model = VPNGatewayConnectionPolicyModePeerPrototypeVPNGatewayConnectionPeerByAddress.from_dict(vpn_gateway_connection_policy_mode_peer_prototype_vpn_gateway_connection_peer_by_address_model_json) + vpn_gateway_connection_policy_mode_peer_prototype_vpn_gateway_connection_peer_by_address_model = ( + VPNGatewayConnectionPolicyModePeerPrototypeVPNGatewayConnectionPeerByAddress.from_dict( + vpn_gateway_connection_policy_mode_peer_prototype_vpn_gateway_connection_peer_by_address_model_json + ) + ) assert vpn_gateway_connection_policy_mode_peer_prototype_vpn_gateway_connection_peer_by_address_model != False # Construct a model instance of VPNGatewayConnectionPolicyModePeerPrototypeVPNGatewayConnectionPeerByAddress by calling from_dict on the json representation - vpn_gateway_connection_policy_mode_peer_prototype_vpn_gateway_connection_peer_by_address_model_dict = VPNGatewayConnectionPolicyModePeerPrototypeVPNGatewayConnectionPeerByAddress.from_dict(vpn_gateway_connection_policy_mode_peer_prototype_vpn_gateway_connection_peer_by_address_model_json).__dict__ - vpn_gateway_connection_policy_mode_peer_prototype_vpn_gateway_connection_peer_by_address_model2 = VPNGatewayConnectionPolicyModePeerPrototypeVPNGatewayConnectionPeerByAddress(**vpn_gateway_connection_policy_mode_peer_prototype_vpn_gateway_connection_peer_by_address_model_dict) + vpn_gateway_connection_policy_mode_peer_prototype_vpn_gateway_connection_peer_by_address_model_dict = ( + VPNGatewayConnectionPolicyModePeerPrototypeVPNGatewayConnectionPeerByAddress.from_dict( + vpn_gateway_connection_policy_mode_peer_prototype_vpn_gateway_connection_peer_by_address_model_json + ).__dict__ + ) + vpn_gateway_connection_policy_mode_peer_prototype_vpn_gateway_connection_peer_by_address_model2 = ( + VPNGatewayConnectionPolicyModePeerPrototypeVPNGatewayConnectionPeerByAddress( + **vpn_gateway_connection_policy_mode_peer_prototype_vpn_gateway_connection_peer_by_address_model_dict + ) + ) # Verify the model instances are equivalent - assert vpn_gateway_connection_policy_mode_peer_prototype_vpn_gateway_connection_peer_by_address_model == vpn_gateway_connection_policy_mode_peer_prototype_vpn_gateway_connection_peer_by_address_model2 + assert ( + vpn_gateway_connection_policy_mode_peer_prototype_vpn_gateway_connection_peer_by_address_model + == vpn_gateway_connection_policy_mode_peer_prototype_vpn_gateway_connection_peer_by_address_model2 + ) # Convert model instance back to dict and verify no loss of data - vpn_gateway_connection_policy_mode_peer_prototype_vpn_gateway_connection_peer_by_address_model_json2 = vpn_gateway_connection_policy_mode_peer_prototype_vpn_gateway_connection_peer_by_address_model.to_dict() - assert vpn_gateway_connection_policy_mode_peer_prototype_vpn_gateway_connection_peer_by_address_model_json2 == vpn_gateway_connection_policy_mode_peer_prototype_vpn_gateway_connection_peer_by_address_model_json + vpn_gateway_connection_policy_mode_peer_prototype_vpn_gateway_connection_peer_by_address_model_json2 = ( + vpn_gateway_connection_policy_mode_peer_prototype_vpn_gateway_connection_peer_by_address_model.to_dict() + ) + assert ( + vpn_gateway_connection_policy_mode_peer_prototype_vpn_gateway_connection_peer_by_address_model_json2 + == vpn_gateway_connection_policy_mode_peer_prototype_vpn_gateway_connection_peer_by_address_model_json + ) class TestModel_VPNGatewayConnectionPolicyModePeerPrototypeVPNGatewayConnectionPeerByFQDN: @@ -93232,30 +104302,58 @@ def test_vpn_gateway_connection_policy_mode_peer_prototype_vpn_gateway_connectio # Construct dict forms of any model objects needed in order to build this model. - vpn_gateway_connection_ike_identity_prototype_model = {} # VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityFQDN + vpn_gateway_connection_ike_identity_prototype_model = ( + {} + ) # VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityFQDN vpn_gateway_connection_ike_identity_prototype_model['type'] = 'fqdn' vpn_gateway_connection_ike_identity_prototype_model['value'] = 'my-service.example.com' # Construct a json representation of a VPNGatewayConnectionPolicyModePeerPrototypeVPNGatewayConnectionPeerByFQDN model vpn_gateway_connection_policy_mode_peer_prototype_vpn_gateway_connection_peer_by_fqdn_model_json = {} - vpn_gateway_connection_policy_mode_peer_prototype_vpn_gateway_connection_peer_by_fqdn_model_json['cidrs'] = ['10.45.1.0/24'] - vpn_gateway_connection_policy_mode_peer_prototype_vpn_gateway_connection_peer_by_fqdn_model_json['ike_identity'] = vpn_gateway_connection_ike_identity_prototype_model - vpn_gateway_connection_policy_mode_peer_prototype_vpn_gateway_connection_peer_by_fqdn_model_json['fqdn'] = 'my-service.example.com' + vpn_gateway_connection_policy_mode_peer_prototype_vpn_gateway_connection_peer_by_fqdn_model_json['cidrs'] = [ + '10.45.1.0/24' + ] + vpn_gateway_connection_policy_mode_peer_prototype_vpn_gateway_connection_peer_by_fqdn_model_json[ + 'ike_identity' + ] = vpn_gateway_connection_ike_identity_prototype_model + vpn_gateway_connection_policy_mode_peer_prototype_vpn_gateway_connection_peer_by_fqdn_model_json['fqdn'] = ( + 'my-service.example.com' + ) # Construct a model instance of VPNGatewayConnectionPolicyModePeerPrototypeVPNGatewayConnectionPeerByFQDN by calling from_dict on the json representation - vpn_gateway_connection_policy_mode_peer_prototype_vpn_gateway_connection_peer_by_fqdn_model = VPNGatewayConnectionPolicyModePeerPrototypeVPNGatewayConnectionPeerByFQDN.from_dict(vpn_gateway_connection_policy_mode_peer_prototype_vpn_gateway_connection_peer_by_fqdn_model_json) + vpn_gateway_connection_policy_mode_peer_prototype_vpn_gateway_connection_peer_by_fqdn_model = ( + VPNGatewayConnectionPolicyModePeerPrototypeVPNGatewayConnectionPeerByFQDN.from_dict( + vpn_gateway_connection_policy_mode_peer_prototype_vpn_gateway_connection_peer_by_fqdn_model_json + ) + ) assert vpn_gateway_connection_policy_mode_peer_prototype_vpn_gateway_connection_peer_by_fqdn_model != False # Construct a model instance of VPNGatewayConnectionPolicyModePeerPrototypeVPNGatewayConnectionPeerByFQDN by calling from_dict on the json representation - vpn_gateway_connection_policy_mode_peer_prototype_vpn_gateway_connection_peer_by_fqdn_model_dict = VPNGatewayConnectionPolicyModePeerPrototypeVPNGatewayConnectionPeerByFQDN.from_dict(vpn_gateway_connection_policy_mode_peer_prototype_vpn_gateway_connection_peer_by_fqdn_model_json).__dict__ - vpn_gateway_connection_policy_mode_peer_prototype_vpn_gateway_connection_peer_by_fqdn_model2 = VPNGatewayConnectionPolicyModePeerPrototypeVPNGatewayConnectionPeerByFQDN(**vpn_gateway_connection_policy_mode_peer_prototype_vpn_gateway_connection_peer_by_fqdn_model_dict) + vpn_gateway_connection_policy_mode_peer_prototype_vpn_gateway_connection_peer_by_fqdn_model_dict = ( + VPNGatewayConnectionPolicyModePeerPrototypeVPNGatewayConnectionPeerByFQDN.from_dict( + vpn_gateway_connection_policy_mode_peer_prototype_vpn_gateway_connection_peer_by_fqdn_model_json + ).__dict__ + ) + vpn_gateway_connection_policy_mode_peer_prototype_vpn_gateway_connection_peer_by_fqdn_model2 = ( + VPNGatewayConnectionPolicyModePeerPrototypeVPNGatewayConnectionPeerByFQDN( + **vpn_gateway_connection_policy_mode_peer_prototype_vpn_gateway_connection_peer_by_fqdn_model_dict + ) + ) # Verify the model instances are equivalent - assert vpn_gateway_connection_policy_mode_peer_prototype_vpn_gateway_connection_peer_by_fqdn_model == vpn_gateway_connection_policy_mode_peer_prototype_vpn_gateway_connection_peer_by_fqdn_model2 + assert ( + vpn_gateway_connection_policy_mode_peer_prototype_vpn_gateway_connection_peer_by_fqdn_model + == vpn_gateway_connection_policy_mode_peer_prototype_vpn_gateway_connection_peer_by_fqdn_model2 + ) # Convert model instance back to dict and verify no loss of data - vpn_gateway_connection_policy_mode_peer_prototype_vpn_gateway_connection_peer_by_fqdn_model_json2 = vpn_gateway_connection_policy_mode_peer_prototype_vpn_gateway_connection_peer_by_fqdn_model.to_dict() - assert vpn_gateway_connection_policy_mode_peer_prototype_vpn_gateway_connection_peer_by_fqdn_model_json2 == vpn_gateway_connection_policy_mode_peer_prototype_vpn_gateway_connection_peer_by_fqdn_model_json + vpn_gateway_connection_policy_mode_peer_prototype_vpn_gateway_connection_peer_by_fqdn_model_json2 = ( + vpn_gateway_connection_policy_mode_peer_prototype_vpn_gateway_connection_peer_by_fqdn_model.to_dict() + ) + assert ( + vpn_gateway_connection_policy_mode_peer_prototype_vpn_gateway_connection_peer_by_fqdn_model_json2 + == vpn_gateway_connection_policy_mode_peer_prototype_vpn_gateway_connection_peer_by_fqdn_model_json + ) class TestModel_VPNGatewayConnectionPolicyModePeerVPNGatewayConnectionPeerByAddress: @@ -93270,31 +104368,59 @@ def test_vpn_gateway_connection_policy_mode_peer_vpn_gateway_connection_peer_by_ # Construct dict forms of any model objects needed in order to build this model. - vpn_gateway_connection_ike_identity_model = {} # VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityFQDN + vpn_gateway_connection_ike_identity_model = ( + {} + ) # VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityFQDN vpn_gateway_connection_ike_identity_model['type'] = 'fqdn' vpn_gateway_connection_ike_identity_model['value'] = 'my-service.example.com' # Construct a json representation of a VPNGatewayConnectionPolicyModePeerVPNGatewayConnectionPeerByAddress model vpn_gateway_connection_policy_mode_peer_vpn_gateway_connection_peer_by_address_model_json = {} - vpn_gateway_connection_policy_mode_peer_vpn_gateway_connection_peer_by_address_model_json['cidrs'] = ['10.45.1.0/24'] - vpn_gateway_connection_policy_mode_peer_vpn_gateway_connection_peer_by_address_model_json['ike_identity'] = vpn_gateway_connection_ike_identity_model + vpn_gateway_connection_policy_mode_peer_vpn_gateway_connection_peer_by_address_model_json['cidrs'] = [ + '10.45.1.0/24' + ] + vpn_gateway_connection_policy_mode_peer_vpn_gateway_connection_peer_by_address_model_json['ike_identity'] = ( + vpn_gateway_connection_ike_identity_model + ) vpn_gateway_connection_policy_mode_peer_vpn_gateway_connection_peer_by_address_model_json['type'] = 'address' - vpn_gateway_connection_policy_mode_peer_vpn_gateway_connection_peer_by_address_model_json['address'] = '169.21.50.5' + vpn_gateway_connection_policy_mode_peer_vpn_gateway_connection_peer_by_address_model_json['address'] = ( + '169.21.50.5' + ) # Construct a model instance of VPNGatewayConnectionPolicyModePeerVPNGatewayConnectionPeerByAddress by calling from_dict on the json representation - vpn_gateway_connection_policy_mode_peer_vpn_gateway_connection_peer_by_address_model = VPNGatewayConnectionPolicyModePeerVPNGatewayConnectionPeerByAddress.from_dict(vpn_gateway_connection_policy_mode_peer_vpn_gateway_connection_peer_by_address_model_json) + vpn_gateway_connection_policy_mode_peer_vpn_gateway_connection_peer_by_address_model = ( + VPNGatewayConnectionPolicyModePeerVPNGatewayConnectionPeerByAddress.from_dict( + vpn_gateway_connection_policy_mode_peer_vpn_gateway_connection_peer_by_address_model_json + ) + ) assert vpn_gateway_connection_policy_mode_peer_vpn_gateway_connection_peer_by_address_model != False # Construct a model instance of VPNGatewayConnectionPolicyModePeerVPNGatewayConnectionPeerByAddress by calling from_dict on the json representation - vpn_gateway_connection_policy_mode_peer_vpn_gateway_connection_peer_by_address_model_dict = VPNGatewayConnectionPolicyModePeerVPNGatewayConnectionPeerByAddress.from_dict(vpn_gateway_connection_policy_mode_peer_vpn_gateway_connection_peer_by_address_model_json).__dict__ - vpn_gateway_connection_policy_mode_peer_vpn_gateway_connection_peer_by_address_model2 = VPNGatewayConnectionPolicyModePeerVPNGatewayConnectionPeerByAddress(**vpn_gateway_connection_policy_mode_peer_vpn_gateway_connection_peer_by_address_model_dict) + vpn_gateway_connection_policy_mode_peer_vpn_gateway_connection_peer_by_address_model_dict = ( + VPNGatewayConnectionPolicyModePeerVPNGatewayConnectionPeerByAddress.from_dict( + vpn_gateway_connection_policy_mode_peer_vpn_gateway_connection_peer_by_address_model_json + ).__dict__ + ) + vpn_gateway_connection_policy_mode_peer_vpn_gateway_connection_peer_by_address_model2 = ( + VPNGatewayConnectionPolicyModePeerVPNGatewayConnectionPeerByAddress( + **vpn_gateway_connection_policy_mode_peer_vpn_gateway_connection_peer_by_address_model_dict + ) + ) # Verify the model instances are equivalent - assert vpn_gateway_connection_policy_mode_peer_vpn_gateway_connection_peer_by_address_model == vpn_gateway_connection_policy_mode_peer_vpn_gateway_connection_peer_by_address_model2 + assert ( + vpn_gateway_connection_policy_mode_peer_vpn_gateway_connection_peer_by_address_model + == vpn_gateway_connection_policy_mode_peer_vpn_gateway_connection_peer_by_address_model2 + ) # Convert model instance back to dict and verify no loss of data - vpn_gateway_connection_policy_mode_peer_vpn_gateway_connection_peer_by_address_model_json2 = vpn_gateway_connection_policy_mode_peer_vpn_gateway_connection_peer_by_address_model.to_dict() - assert vpn_gateway_connection_policy_mode_peer_vpn_gateway_connection_peer_by_address_model_json2 == vpn_gateway_connection_policy_mode_peer_vpn_gateway_connection_peer_by_address_model_json + vpn_gateway_connection_policy_mode_peer_vpn_gateway_connection_peer_by_address_model_json2 = ( + vpn_gateway_connection_policy_mode_peer_vpn_gateway_connection_peer_by_address_model.to_dict() + ) + assert ( + vpn_gateway_connection_policy_mode_peer_vpn_gateway_connection_peer_by_address_model_json2 + == vpn_gateway_connection_policy_mode_peer_vpn_gateway_connection_peer_by_address_model_json + ) class TestModel_VPNGatewayConnectionPolicyModePeerVPNGatewayConnectionPeerByFQDN: @@ -93309,31 +104435,59 @@ def test_vpn_gateway_connection_policy_mode_peer_vpn_gateway_connection_peer_by_ # Construct dict forms of any model objects needed in order to build this model. - vpn_gateway_connection_ike_identity_model = {} # VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityFQDN + vpn_gateway_connection_ike_identity_model = ( + {} + ) # VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityFQDN vpn_gateway_connection_ike_identity_model['type'] = 'fqdn' vpn_gateway_connection_ike_identity_model['value'] = 'my-service.example.com' # Construct a json representation of a VPNGatewayConnectionPolicyModePeerVPNGatewayConnectionPeerByFQDN model vpn_gateway_connection_policy_mode_peer_vpn_gateway_connection_peer_by_fqdn_model_json = {} - vpn_gateway_connection_policy_mode_peer_vpn_gateway_connection_peer_by_fqdn_model_json['cidrs'] = ['10.45.1.0/24'] - vpn_gateway_connection_policy_mode_peer_vpn_gateway_connection_peer_by_fqdn_model_json['ike_identity'] = vpn_gateway_connection_ike_identity_model + vpn_gateway_connection_policy_mode_peer_vpn_gateway_connection_peer_by_fqdn_model_json['cidrs'] = [ + '10.45.1.0/24' + ] + vpn_gateway_connection_policy_mode_peer_vpn_gateway_connection_peer_by_fqdn_model_json['ike_identity'] = ( + vpn_gateway_connection_ike_identity_model + ) vpn_gateway_connection_policy_mode_peer_vpn_gateway_connection_peer_by_fqdn_model_json['type'] = 'address' - vpn_gateway_connection_policy_mode_peer_vpn_gateway_connection_peer_by_fqdn_model_json['fqdn'] = 'my-service.example.com' + vpn_gateway_connection_policy_mode_peer_vpn_gateway_connection_peer_by_fqdn_model_json['fqdn'] = ( + 'my-service.example.com' + ) # Construct a model instance of VPNGatewayConnectionPolicyModePeerVPNGatewayConnectionPeerByFQDN by calling from_dict on the json representation - vpn_gateway_connection_policy_mode_peer_vpn_gateway_connection_peer_by_fqdn_model = VPNGatewayConnectionPolicyModePeerVPNGatewayConnectionPeerByFQDN.from_dict(vpn_gateway_connection_policy_mode_peer_vpn_gateway_connection_peer_by_fqdn_model_json) + vpn_gateway_connection_policy_mode_peer_vpn_gateway_connection_peer_by_fqdn_model = ( + VPNGatewayConnectionPolicyModePeerVPNGatewayConnectionPeerByFQDN.from_dict( + vpn_gateway_connection_policy_mode_peer_vpn_gateway_connection_peer_by_fqdn_model_json + ) + ) assert vpn_gateway_connection_policy_mode_peer_vpn_gateway_connection_peer_by_fqdn_model != False # Construct a model instance of VPNGatewayConnectionPolicyModePeerVPNGatewayConnectionPeerByFQDN by calling from_dict on the json representation - vpn_gateway_connection_policy_mode_peer_vpn_gateway_connection_peer_by_fqdn_model_dict = VPNGatewayConnectionPolicyModePeerVPNGatewayConnectionPeerByFQDN.from_dict(vpn_gateway_connection_policy_mode_peer_vpn_gateway_connection_peer_by_fqdn_model_json).__dict__ - vpn_gateway_connection_policy_mode_peer_vpn_gateway_connection_peer_by_fqdn_model2 = VPNGatewayConnectionPolicyModePeerVPNGatewayConnectionPeerByFQDN(**vpn_gateway_connection_policy_mode_peer_vpn_gateway_connection_peer_by_fqdn_model_dict) + vpn_gateway_connection_policy_mode_peer_vpn_gateway_connection_peer_by_fqdn_model_dict = ( + VPNGatewayConnectionPolicyModePeerVPNGatewayConnectionPeerByFQDN.from_dict( + vpn_gateway_connection_policy_mode_peer_vpn_gateway_connection_peer_by_fqdn_model_json + ).__dict__ + ) + vpn_gateway_connection_policy_mode_peer_vpn_gateway_connection_peer_by_fqdn_model2 = ( + VPNGatewayConnectionPolicyModePeerVPNGatewayConnectionPeerByFQDN( + **vpn_gateway_connection_policy_mode_peer_vpn_gateway_connection_peer_by_fqdn_model_dict + ) + ) # Verify the model instances are equivalent - assert vpn_gateway_connection_policy_mode_peer_vpn_gateway_connection_peer_by_fqdn_model == vpn_gateway_connection_policy_mode_peer_vpn_gateway_connection_peer_by_fqdn_model2 + assert ( + vpn_gateway_connection_policy_mode_peer_vpn_gateway_connection_peer_by_fqdn_model + == vpn_gateway_connection_policy_mode_peer_vpn_gateway_connection_peer_by_fqdn_model2 + ) # Convert model instance back to dict and verify no loss of data - vpn_gateway_connection_policy_mode_peer_vpn_gateway_connection_peer_by_fqdn_model_json2 = vpn_gateway_connection_policy_mode_peer_vpn_gateway_connection_peer_by_fqdn_model.to_dict() - assert vpn_gateway_connection_policy_mode_peer_vpn_gateway_connection_peer_by_fqdn_model_json2 == vpn_gateway_connection_policy_mode_peer_vpn_gateway_connection_peer_by_fqdn_model_json + vpn_gateway_connection_policy_mode_peer_vpn_gateway_connection_peer_by_fqdn_model_json2 = ( + vpn_gateway_connection_policy_mode_peer_vpn_gateway_connection_peer_by_fqdn_model.to_dict() + ) + assert ( + vpn_gateway_connection_policy_mode_peer_vpn_gateway_connection_peer_by_fqdn_model_json2 + == vpn_gateway_connection_policy_mode_peer_vpn_gateway_connection_peer_by_fqdn_model_json + ) class TestModel_VPNGatewayConnectionPrototypeVPNGatewayConnectionPolicyModePrototype: @@ -93353,51 +104507,101 @@ def test_vpn_gateway_connection_prototype_vpn_gateway_connection_policy_mode_pro vpn_gateway_connection_dpd_prototype_model['interval'] = 30 vpn_gateway_connection_dpd_prototype_model['timeout'] = 120 - vpn_gateway_connection_ike_policy_prototype_model = {} # VPNGatewayConnectionIKEPolicyPrototypeIKEPolicyIdentityById + vpn_gateway_connection_ike_policy_prototype_model = ( + {} + ) # VPNGatewayConnectionIKEPolicyPrototypeIKEPolicyIdentityById vpn_gateway_connection_ike_policy_prototype_model['id'] = 'ddf51bec-3424-11e8-b467-0ed5f89f718b' - vpn_gateway_connection_i_psec_policy_prototype_model = {} # VPNGatewayConnectionIPsecPolicyPrototypeIPsecPolicyIdentityById + vpn_gateway_connection_i_psec_policy_prototype_model = ( + {} + ) # VPNGatewayConnectionIPsecPolicyPrototypeIPsecPolicyIdentityById vpn_gateway_connection_i_psec_policy_prototype_model['id'] = 'ddf51bec-3424-11e8-b467-0ed5f89f718b' - vpn_gateway_connection_ike_identity_prototype_model = {} # VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityFQDN + vpn_gateway_connection_ike_identity_prototype_model = ( + {} + ) # VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityFQDN vpn_gateway_connection_ike_identity_prototype_model['type'] = 'fqdn' vpn_gateway_connection_ike_identity_prototype_model['value'] = 'my-service.example.com' vpn_gateway_connection_policy_mode_local_prototype_model = {} # VPNGatewayConnectionPolicyModeLocalPrototype vpn_gateway_connection_policy_mode_local_prototype_model['cidrs'] = ['192.168.1.0/24'] - vpn_gateway_connection_policy_mode_local_prototype_model['ike_identities'] = [vpn_gateway_connection_ike_identity_prototype_model] + vpn_gateway_connection_policy_mode_local_prototype_model['ike_identities'] = [ + vpn_gateway_connection_ike_identity_prototype_model + ] - vpn_gateway_connection_policy_mode_peer_prototype_model = {} # VPNGatewayConnectionPolicyModePeerPrototypeVPNGatewayConnectionPeerByAddress + vpn_gateway_connection_policy_mode_peer_prototype_model = ( + {} + ) # VPNGatewayConnectionPolicyModePeerPrototypeVPNGatewayConnectionPeerByAddress vpn_gateway_connection_policy_mode_peer_prototype_model['cidrs'] = ['10.45.1.0/24'] - vpn_gateway_connection_policy_mode_peer_prototype_model['ike_identity'] = vpn_gateway_connection_ike_identity_prototype_model + vpn_gateway_connection_policy_mode_peer_prototype_model['ike_identity'] = ( + vpn_gateway_connection_ike_identity_prototype_model + ) vpn_gateway_connection_policy_mode_peer_prototype_model['address'] = '169.21.50.5' # Construct a json representation of a VPNGatewayConnectionPrototypeVPNGatewayConnectionPolicyModePrototype model vpn_gateway_connection_prototype_vpn_gateway_connection_policy_mode_prototype_model_json = {} - vpn_gateway_connection_prototype_vpn_gateway_connection_policy_mode_prototype_model_json['admin_state_up'] = True - vpn_gateway_connection_prototype_vpn_gateway_connection_policy_mode_prototype_model_json['dead_peer_detection'] = vpn_gateway_connection_dpd_prototype_model - vpn_gateway_connection_prototype_vpn_gateway_connection_policy_mode_prototype_model_json['establish_mode'] = 'bidirectional' - vpn_gateway_connection_prototype_vpn_gateway_connection_policy_mode_prototype_model_json['ike_policy'] = vpn_gateway_connection_ike_policy_prototype_model - vpn_gateway_connection_prototype_vpn_gateway_connection_policy_mode_prototype_model_json['ipsec_policy'] = vpn_gateway_connection_i_psec_policy_prototype_model - vpn_gateway_connection_prototype_vpn_gateway_connection_policy_mode_prototype_model_json['name'] = 'my-vpn-connection' - vpn_gateway_connection_prototype_vpn_gateway_connection_policy_mode_prototype_model_json['psk'] = 'lkj14b1oi0alcniejkso' - vpn_gateway_connection_prototype_vpn_gateway_connection_policy_mode_prototype_model_json['local'] = vpn_gateway_connection_policy_mode_local_prototype_model - vpn_gateway_connection_prototype_vpn_gateway_connection_policy_mode_prototype_model_json['peer'] = vpn_gateway_connection_policy_mode_peer_prototype_model + vpn_gateway_connection_prototype_vpn_gateway_connection_policy_mode_prototype_model_json['admin_state_up'] = ( + True + ) + vpn_gateway_connection_prototype_vpn_gateway_connection_policy_mode_prototype_model_json[ + 'dead_peer_detection' + ] = vpn_gateway_connection_dpd_prototype_model + vpn_gateway_connection_prototype_vpn_gateway_connection_policy_mode_prototype_model_json['establish_mode'] = ( + 'bidirectional' + ) + vpn_gateway_connection_prototype_vpn_gateway_connection_policy_mode_prototype_model_json['ike_policy'] = ( + vpn_gateway_connection_ike_policy_prototype_model + ) + vpn_gateway_connection_prototype_vpn_gateway_connection_policy_mode_prototype_model_json['ipsec_policy'] = ( + vpn_gateway_connection_i_psec_policy_prototype_model + ) + vpn_gateway_connection_prototype_vpn_gateway_connection_policy_mode_prototype_model_json['name'] = ( + 'my-vpn-connection' + ) + vpn_gateway_connection_prototype_vpn_gateway_connection_policy_mode_prototype_model_json['psk'] = ( + 'lkj14b1oi0alcniejkso' + ) + vpn_gateway_connection_prototype_vpn_gateway_connection_policy_mode_prototype_model_json['local'] = ( + vpn_gateway_connection_policy_mode_local_prototype_model + ) + vpn_gateway_connection_prototype_vpn_gateway_connection_policy_mode_prototype_model_json['peer'] = ( + vpn_gateway_connection_policy_mode_peer_prototype_model + ) # Construct a model instance of VPNGatewayConnectionPrototypeVPNGatewayConnectionPolicyModePrototype by calling from_dict on the json representation - vpn_gateway_connection_prototype_vpn_gateway_connection_policy_mode_prototype_model = VPNGatewayConnectionPrototypeVPNGatewayConnectionPolicyModePrototype.from_dict(vpn_gateway_connection_prototype_vpn_gateway_connection_policy_mode_prototype_model_json) + vpn_gateway_connection_prototype_vpn_gateway_connection_policy_mode_prototype_model = ( + VPNGatewayConnectionPrototypeVPNGatewayConnectionPolicyModePrototype.from_dict( + vpn_gateway_connection_prototype_vpn_gateway_connection_policy_mode_prototype_model_json + ) + ) assert vpn_gateway_connection_prototype_vpn_gateway_connection_policy_mode_prototype_model != False # Construct a model instance of VPNGatewayConnectionPrototypeVPNGatewayConnectionPolicyModePrototype by calling from_dict on the json representation - vpn_gateway_connection_prototype_vpn_gateway_connection_policy_mode_prototype_model_dict = VPNGatewayConnectionPrototypeVPNGatewayConnectionPolicyModePrototype.from_dict(vpn_gateway_connection_prototype_vpn_gateway_connection_policy_mode_prototype_model_json).__dict__ - vpn_gateway_connection_prototype_vpn_gateway_connection_policy_mode_prototype_model2 = VPNGatewayConnectionPrototypeVPNGatewayConnectionPolicyModePrototype(**vpn_gateway_connection_prototype_vpn_gateway_connection_policy_mode_prototype_model_dict) + vpn_gateway_connection_prototype_vpn_gateway_connection_policy_mode_prototype_model_dict = ( + VPNGatewayConnectionPrototypeVPNGatewayConnectionPolicyModePrototype.from_dict( + vpn_gateway_connection_prototype_vpn_gateway_connection_policy_mode_prototype_model_json + ).__dict__ + ) + vpn_gateway_connection_prototype_vpn_gateway_connection_policy_mode_prototype_model2 = ( + VPNGatewayConnectionPrototypeVPNGatewayConnectionPolicyModePrototype( + **vpn_gateway_connection_prototype_vpn_gateway_connection_policy_mode_prototype_model_dict + ) + ) # Verify the model instances are equivalent - assert vpn_gateway_connection_prototype_vpn_gateway_connection_policy_mode_prototype_model == vpn_gateway_connection_prototype_vpn_gateway_connection_policy_mode_prototype_model2 + assert ( + vpn_gateway_connection_prototype_vpn_gateway_connection_policy_mode_prototype_model + == vpn_gateway_connection_prototype_vpn_gateway_connection_policy_mode_prototype_model2 + ) # Convert model instance back to dict and verify no loss of data - vpn_gateway_connection_prototype_vpn_gateway_connection_policy_mode_prototype_model_json2 = vpn_gateway_connection_prototype_vpn_gateway_connection_policy_mode_prototype_model.to_dict() - assert vpn_gateway_connection_prototype_vpn_gateway_connection_policy_mode_prototype_model_json2 == vpn_gateway_connection_prototype_vpn_gateway_connection_policy_mode_prototype_model_json + vpn_gateway_connection_prototype_vpn_gateway_connection_policy_mode_prototype_model_json2 = ( + vpn_gateway_connection_prototype_vpn_gateway_connection_policy_mode_prototype_model.to_dict() + ) + assert ( + vpn_gateway_connection_prototype_vpn_gateway_connection_policy_mode_prototype_model_json2 + == vpn_gateway_connection_prototype_vpn_gateway_connection_policy_mode_prototype_model_json + ) class TestModel_VPNGatewayConnectionPrototypeVPNGatewayConnectionStaticRouteModePrototype: @@ -93417,51 +104621,107 @@ def test_vpn_gateway_connection_prototype_vpn_gateway_connection_static_route_mo vpn_gateway_connection_dpd_prototype_model['interval'] = 30 vpn_gateway_connection_dpd_prototype_model['timeout'] = 120 - vpn_gateway_connection_ike_policy_prototype_model = {} # VPNGatewayConnectionIKEPolicyPrototypeIKEPolicyIdentityById + vpn_gateway_connection_ike_policy_prototype_model = ( + {} + ) # VPNGatewayConnectionIKEPolicyPrototypeIKEPolicyIdentityById vpn_gateway_connection_ike_policy_prototype_model['id'] = 'ddf51bec-3424-11e8-b467-0ed5f89f718b' - vpn_gateway_connection_i_psec_policy_prototype_model = {} # VPNGatewayConnectionIPsecPolicyPrototypeIPsecPolicyIdentityById + vpn_gateway_connection_i_psec_policy_prototype_model = ( + {} + ) # VPNGatewayConnectionIPsecPolicyPrototypeIPsecPolicyIdentityById vpn_gateway_connection_i_psec_policy_prototype_model['id'] = 'ddf51bec-3424-11e8-b467-0ed5f89f718b' - vpn_gateway_connection_ike_identity_prototype_model = {} # VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityFQDN + vpn_gateway_connection_ike_identity_prototype_model = ( + {} + ) # VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityFQDN vpn_gateway_connection_ike_identity_prototype_model['type'] = 'fqdn' vpn_gateway_connection_ike_identity_prototype_model['value'] = 'my-service.example.com' - vpn_gateway_connection_static_route_mode_local_prototype_model = {} # VPNGatewayConnectionStaticRouteModeLocalPrototype - vpn_gateway_connection_static_route_mode_local_prototype_model['ike_identities'] = [vpn_gateway_connection_ike_identity_prototype_model] + vpn_gateway_connection_static_route_mode_local_prototype_model = ( + {} + ) # VPNGatewayConnectionStaticRouteModeLocalPrototype + vpn_gateway_connection_static_route_mode_local_prototype_model['ike_identities'] = [ + vpn_gateway_connection_ike_identity_prototype_model + ] - vpn_gateway_connection_static_route_mode_peer_prototype_model = {} # VPNGatewayConnectionStaticRouteModePeerPrototypeVPNGatewayConnectionPeerByAddress - vpn_gateway_connection_static_route_mode_peer_prototype_model['ike_identity'] = vpn_gateway_connection_ike_identity_prototype_model + vpn_gateway_connection_static_route_mode_peer_prototype_model = ( + {} + ) # VPNGatewayConnectionStaticRouteModePeerPrototypeVPNGatewayConnectionPeerByAddress + vpn_gateway_connection_static_route_mode_peer_prototype_model['ike_identity'] = ( + vpn_gateway_connection_ike_identity_prototype_model + ) vpn_gateway_connection_static_route_mode_peer_prototype_model['address'] = '169.21.50.5' # Construct a json representation of a VPNGatewayConnectionPrototypeVPNGatewayConnectionStaticRouteModePrototype model vpn_gateway_connection_prototype_vpn_gateway_connection_static_route_mode_prototype_model_json = {} - vpn_gateway_connection_prototype_vpn_gateway_connection_static_route_mode_prototype_model_json['admin_state_up'] = True - vpn_gateway_connection_prototype_vpn_gateway_connection_static_route_mode_prototype_model_json['dead_peer_detection'] = vpn_gateway_connection_dpd_prototype_model - vpn_gateway_connection_prototype_vpn_gateway_connection_static_route_mode_prototype_model_json['establish_mode'] = 'bidirectional' - vpn_gateway_connection_prototype_vpn_gateway_connection_static_route_mode_prototype_model_json['ike_policy'] = vpn_gateway_connection_ike_policy_prototype_model - vpn_gateway_connection_prototype_vpn_gateway_connection_static_route_mode_prototype_model_json['ipsec_policy'] = vpn_gateway_connection_i_psec_policy_prototype_model - vpn_gateway_connection_prototype_vpn_gateway_connection_static_route_mode_prototype_model_json['name'] = 'my-vpn-connection' - vpn_gateway_connection_prototype_vpn_gateway_connection_static_route_mode_prototype_model_json['psk'] = 'lkj14b1oi0alcniejkso' - vpn_gateway_connection_prototype_vpn_gateway_connection_static_route_mode_prototype_model_json['distribute_traffic'] = False - vpn_gateway_connection_prototype_vpn_gateway_connection_static_route_mode_prototype_model_json['local'] = vpn_gateway_connection_static_route_mode_local_prototype_model - vpn_gateway_connection_prototype_vpn_gateway_connection_static_route_mode_prototype_model_json['peer'] = vpn_gateway_connection_static_route_mode_peer_prototype_model - vpn_gateway_connection_prototype_vpn_gateway_connection_static_route_mode_prototype_model_json['routing_protocol'] = 'none' + vpn_gateway_connection_prototype_vpn_gateway_connection_static_route_mode_prototype_model_json[ + 'admin_state_up' + ] = True + vpn_gateway_connection_prototype_vpn_gateway_connection_static_route_mode_prototype_model_json[ + 'dead_peer_detection' + ] = vpn_gateway_connection_dpd_prototype_model + vpn_gateway_connection_prototype_vpn_gateway_connection_static_route_mode_prototype_model_json[ + 'establish_mode' + ] = 'bidirectional' + vpn_gateway_connection_prototype_vpn_gateway_connection_static_route_mode_prototype_model_json['ike_policy'] = ( + vpn_gateway_connection_ike_policy_prototype_model + ) + vpn_gateway_connection_prototype_vpn_gateway_connection_static_route_mode_prototype_model_json[ + 'ipsec_policy' + ] = vpn_gateway_connection_i_psec_policy_prototype_model + vpn_gateway_connection_prototype_vpn_gateway_connection_static_route_mode_prototype_model_json['name'] = ( + 'my-vpn-connection' + ) + vpn_gateway_connection_prototype_vpn_gateway_connection_static_route_mode_prototype_model_json['psk'] = ( + 'lkj14b1oi0alcniejkso' + ) + vpn_gateway_connection_prototype_vpn_gateway_connection_static_route_mode_prototype_model_json[ + 'distribute_traffic' + ] = False + vpn_gateway_connection_prototype_vpn_gateway_connection_static_route_mode_prototype_model_json['local'] = ( + vpn_gateway_connection_static_route_mode_local_prototype_model + ) + vpn_gateway_connection_prototype_vpn_gateway_connection_static_route_mode_prototype_model_json['peer'] = ( + vpn_gateway_connection_static_route_mode_peer_prototype_model + ) + vpn_gateway_connection_prototype_vpn_gateway_connection_static_route_mode_prototype_model_json[ + 'routing_protocol' + ] = 'none' # Construct a model instance of VPNGatewayConnectionPrototypeVPNGatewayConnectionStaticRouteModePrototype by calling from_dict on the json representation - vpn_gateway_connection_prototype_vpn_gateway_connection_static_route_mode_prototype_model = VPNGatewayConnectionPrototypeVPNGatewayConnectionStaticRouteModePrototype.from_dict(vpn_gateway_connection_prototype_vpn_gateway_connection_static_route_mode_prototype_model_json) + vpn_gateway_connection_prototype_vpn_gateway_connection_static_route_mode_prototype_model = ( + VPNGatewayConnectionPrototypeVPNGatewayConnectionStaticRouteModePrototype.from_dict( + vpn_gateway_connection_prototype_vpn_gateway_connection_static_route_mode_prototype_model_json + ) + ) assert vpn_gateway_connection_prototype_vpn_gateway_connection_static_route_mode_prototype_model != False # Construct a model instance of VPNGatewayConnectionPrototypeVPNGatewayConnectionStaticRouteModePrototype by calling from_dict on the json representation - vpn_gateway_connection_prototype_vpn_gateway_connection_static_route_mode_prototype_model_dict = VPNGatewayConnectionPrototypeVPNGatewayConnectionStaticRouteModePrototype.from_dict(vpn_gateway_connection_prototype_vpn_gateway_connection_static_route_mode_prototype_model_json).__dict__ - vpn_gateway_connection_prototype_vpn_gateway_connection_static_route_mode_prototype_model2 = VPNGatewayConnectionPrototypeVPNGatewayConnectionStaticRouteModePrototype(**vpn_gateway_connection_prototype_vpn_gateway_connection_static_route_mode_prototype_model_dict) + vpn_gateway_connection_prototype_vpn_gateway_connection_static_route_mode_prototype_model_dict = ( + VPNGatewayConnectionPrototypeVPNGatewayConnectionStaticRouteModePrototype.from_dict( + vpn_gateway_connection_prototype_vpn_gateway_connection_static_route_mode_prototype_model_json + ).__dict__ + ) + vpn_gateway_connection_prototype_vpn_gateway_connection_static_route_mode_prototype_model2 = ( + VPNGatewayConnectionPrototypeVPNGatewayConnectionStaticRouteModePrototype( + **vpn_gateway_connection_prototype_vpn_gateway_connection_static_route_mode_prototype_model_dict + ) + ) # Verify the model instances are equivalent - assert vpn_gateway_connection_prototype_vpn_gateway_connection_static_route_mode_prototype_model == vpn_gateway_connection_prototype_vpn_gateway_connection_static_route_mode_prototype_model2 + assert ( + vpn_gateway_connection_prototype_vpn_gateway_connection_static_route_mode_prototype_model + == vpn_gateway_connection_prototype_vpn_gateway_connection_static_route_mode_prototype_model2 + ) # Convert model instance back to dict and verify no loss of data - vpn_gateway_connection_prototype_vpn_gateway_connection_static_route_mode_prototype_model_json2 = vpn_gateway_connection_prototype_vpn_gateway_connection_static_route_mode_prototype_model.to_dict() - assert vpn_gateway_connection_prototype_vpn_gateway_connection_static_route_mode_prototype_model_json2 == vpn_gateway_connection_prototype_vpn_gateway_connection_static_route_mode_prototype_model_json + vpn_gateway_connection_prototype_vpn_gateway_connection_static_route_mode_prototype_model_json2 = ( + vpn_gateway_connection_prototype_vpn_gateway_connection_static_route_mode_prototype_model.to_dict() + ) + assert ( + vpn_gateway_connection_prototype_vpn_gateway_connection_static_route_mode_prototype_model_json2 + == vpn_gateway_connection_prototype_vpn_gateway_connection_static_route_mode_prototype_model_json + ) class TestModel_VPNGatewayConnectionStaticRouteModePeerPrototypeVPNGatewayConnectionPeerByAddress: @@ -93469,36 +104729,61 @@ class TestModel_VPNGatewayConnectionStaticRouteModePeerPrototypeVPNGatewayConnec Test Class for VPNGatewayConnectionStaticRouteModePeerPrototypeVPNGatewayConnectionPeerByAddress """ - def test_vpn_gateway_connection_static_route_mode_peer_prototype_vpn_gateway_connection_peer_by_address_serialization(self): + def test_vpn_gateway_connection_static_route_mode_peer_prototype_vpn_gateway_connection_peer_by_address_serialization( + self, + ): """ Test serialization/deserialization for VPNGatewayConnectionStaticRouteModePeerPrototypeVPNGatewayConnectionPeerByAddress """ # Construct dict forms of any model objects needed in order to build this model. - vpn_gateway_connection_ike_identity_prototype_model = {} # VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityFQDN + vpn_gateway_connection_ike_identity_prototype_model = ( + {} + ) # VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityFQDN vpn_gateway_connection_ike_identity_prototype_model['type'] = 'fqdn' vpn_gateway_connection_ike_identity_prototype_model['value'] = 'my-service.example.com' # Construct a json representation of a VPNGatewayConnectionStaticRouteModePeerPrototypeVPNGatewayConnectionPeerByAddress model vpn_gateway_connection_static_route_mode_peer_prototype_vpn_gateway_connection_peer_by_address_model_json = {} - vpn_gateway_connection_static_route_mode_peer_prototype_vpn_gateway_connection_peer_by_address_model_json['ike_identity'] = vpn_gateway_connection_ike_identity_prototype_model - vpn_gateway_connection_static_route_mode_peer_prototype_vpn_gateway_connection_peer_by_address_model_json['address'] = '169.21.50.5' + vpn_gateway_connection_static_route_mode_peer_prototype_vpn_gateway_connection_peer_by_address_model_json[ + 'ike_identity' + ] = vpn_gateway_connection_ike_identity_prototype_model + vpn_gateway_connection_static_route_mode_peer_prototype_vpn_gateway_connection_peer_by_address_model_json[ + 'address' + ] = '169.21.50.5' # Construct a model instance of VPNGatewayConnectionStaticRouteModePeerPrototypeVPNGatewayConnectionPeerByAddress by calling from_dict on the json representation - vpn_gateway_connection_static_route_mode_peer_prototype_vpn_gateway_connection_peer_by_address_model = VPNGatewayConnectionStaticRouteModePeerPrototypeVPNGatewayConnectionPeerByAddress.from_dict(vpn_gateway_connection_static_route_mode_peer_prototype_vpn_gateway_connection_peer_by_address_model_json) - assert vpn_gateway_connection_static_route_mode_peer_prototype_vpn_gateway_connection_peer_by_address_model != False + vpn_gateway_connection_static_route_mode_peer_prototype_vpn_gateway_connection_peer_by_address_model = VPNGatewayConnectionStaticRouteModePeerPrototypeVPNGatewayConnectionPeerByAddress.from_dict( + vpn_gateway_connection_static_route_mode_peer_prototype_vpn_gateway_connection_peer_by_address_model_json + ) + assert ( + vpn_gateway_connection_static_route_mode_peer_prototype_vpn_gateway_connection_peer_by_address_model + != False + ) # Construct a model instance of VPNGatewayConnectionStaticRouteModePeerPrototypeVPNGatewayConnectionPeerByAddress by calling from_dict on the json representation - vpn_gateway_connection_static_route_mode_peer_prototype_vpn_gateway_connection_peer_by_address_model_dict = VPNGatewayConnectionStaticRouteModePeerPrototypeVPNGatewayConnectionPeerByAddress.from_dict(vpn_gateway_connection_static_route_mode_peer_prototype_vpn_gateway_connection_peer_by_address_model_json).__dict__ - vpn_gateway_connection_static_route_mode_peer_prototype_vpn_gateway_connection_peer_by_address_model2 = VPNGatewayConnectionStaticRouteModePeerPrototypeVPNGatewayConnectionPeerByAddress(**vpn_gateway_connection_static_route_mode_peer_prototype_vpn_gateway_connection_peer_by_address_model_dict) + vpn_gateway_connection_static_route_mode_peer_prototype_vpn_gateway_connection_peer_by_address_model_dict = VPNGatewayConnectionStaticRouteModePeerPrototypeVPNGatewayConnectionPeerByAddress.from_dict( + vpn_gateway_connection_static_route_mode_peer_prototype_vpn_gateway_connection_peer_by_address_model_json + ).__dict__ + vpn_gateway_connection_static_route_mode_peer_prototype_vpn_gateway_connection_peer_by_address_model2 = VPNGatewayConnectionStaticRouteModePeerPrototypeVPNGatewayConnectionPeerByAddress( + **vpn_gateway_connection_static_route_mode_peer_prototype_vpn_gateway_connection_peer_by_address_model_dict + ) # Verify the model instances are equivalent - assert vpn_gateway_connection_static_route_mode_peer_prototype_vpn_gateway_connection_peer_by_address_model == vpn_gateway_connection_static_route_mode_peer_prototype_vpn_gateway_connection_peer_by_address_model2 + assert ( + vpn_gateway_connection_static_route_mode_peer_prototype_vpn_gateway_connection_peer_by_address_model + == vpn_gateway_connection_static_route_mode_peer_prototype_vpn_gateway_connection_peer_by_address_model2 + ) # Convert model instance back to dict and verify no loss of data - vpn_gateway_connection_static_route_mode_peer_prototype_vpn_gateway_connection_peer_by_address_model_json2 = vpn_gateway_connection_static_route_mode_peer_prototype_vpn_gateway_connection_peer_by_address_model.to_dict() - assert vpn_gateway_connection_static_route_mode_peer_prototype_vpn_gateway_connection_peer_by_address_model_json2 == vpn_gateway_connection_static_route_mode_peer_prototype_vpn_gateway_connection_peer_by_address_model_json + vpn_gateway_connection_static_route_mode_peer_prototype_vpn_gateway_connection_peer_by_address_model_json2 = ( + vpn_gateway_connection_static_route_mode_peer_prototype_vpn_gateway_connection_peer_by_address_model.to_dict() + ) + assert ( + vpn_gateway_connection_static_route_mode_peer_prototype_vpn_gateway_connection_peer_by_address_model_json2 + == vpn_gateway_connection_static_route_mode_peer_prototype_vpn_gateway_connection_peer_by_address_model_json + ) class TestModel_VPNGatewayConnectionStaticRouteModePeerPrototypeVPNGatewayConnectionPeerByFQDN: @@ -93506,36 +104791,66 @@ class TestModel_VPNGatewayConnectionStaticRouteModePeerPrototypeVPNGatewayConnec Test Class for VPNGatewayConnectionStaticRouteModePeerPrototypeVPNGatewayConnectionPeerByFQDN """ - def test_vpn_gateway_connection_static_route_mode_peer_prototype_vpn_gateway_connection_peer_by_fqdn_serialization(self): + def test_vpn_gateway_connection_static_route_mode_peer_prototype_vpn_gateway_connection_peer_by_fqdn_serialization( + self, + ): """ Test serialization/deserialization for VPNGatewayConnectionStaticRouteModePeerPrototypeVPNGatewayConnectionPeerByFQDN """ # Construct dict forms of any model objects needed in order to build this model. - vpn_gateway_connection_ike_identity_prototype_model = {} # VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityFQDN + vpn_gateway_connection_ike_identity_prototype_model = ( + {} + ) # VPNGatewayConnectionIKEIdentityPrototypeVPNGatewayConnectionIKEIdentityFQDN vpn_gateway_connection_ike_identity_prototype_model['type'] = 'fqdn' vpn_gateway_connection_ike_identity_prototype_model['value'] = 'my-service.example.com' # Construct a json representation of a VPNGatewayConnectionStaticRouteModePeerPrototypeVPNGatewayConnectionPeerByFQDN model vpn_gateway_connection_static_route_mode_peer_prototype_vpn_gateway_connection_peer_by_fqdn_model_json = {} - vpn_gateway_connection_static_route_mode_peer_prototype_vpn_gateway_connection_peer_by_fqdn_model_json['ike_identity'] = vpn_gateway_connection_ike_identity_prototype_model - vpn_gateway_connection_static_route_mode_peer_prototype_vpn_gateway_connection_peer_by_fqdn_model_json['fqdn'] = 'my-service.example.com' + vpn_gateway_connection_static_route_mode_peer_prototype_vpn_gateway_connection_peer_by_fqdn_model_json[ + 'ike_identity' + ] = vpn_gateway_connection_ike_identity_prototype_model + vpn_gateway_connection_static_route_mode_peer_prototype_vpn_gateway_connection_peer_by_fqdn_model_json[ + 'fqdn' + ] = 'my-service.example.com' # Construct a model instance of VPNGatewayConnectionStaticRouteModePeerPrototypeVPNGatewayConnectionPeerByFQDN by calling from_dict on the json representation - vpn_gateway_connection_static_route_mode_peer_prototype_vpn_gateway_connection_peer_by_fqdn_model = VPNGatewayConnectionStaticRouteModePeerPrototypeVPNGatewayConnectionPeerByFQDN.from_dict(vpn_gateway_connection_static_route_mode_peer_prototype_vpn_gateway_connection_peer_by_fqdn_model_json) - assert vpn_gateway_connection_static_route_mode_peer_prototype_vpn_gateway_connection_peer_by_fqdn_model != False + vpn_gateway_connection_static_route_mode_peer_prototype_vpn_gateway_connection_peer_by_fqdn_model = ( + VPNGatewayConnectionStaticRouteModePeerPrototypeVPNGatewayConnectionPeerByFQDN.from_dict( + vpn_gateway_connection_static_route_mode_peer_prototype_vpn_gateway_connection_peer_by_fqdn_model_json + ) + ) + assert ( + vpn_gateway_connection_static_route_mode_peer_prototype_vpn_gateway_connection_peer_by_fqdn_model != False + ) # Construct a model instance of VPNGatewayConnectionStaticRouteModePeerPrototypeVPNGatewayConnectionPeerByFQDN by calling from_dict on the json representation - vpn_gateway_connection_static_route_mode_peer_prototype_vpn_gateway_connection_peer_by_fqdn_model_dict = VPNGatewayConnectionStaticRouteModePeerPrototypeVPNGatewayConnectionPeerByFQDN.from_dict(vpn_gateway_connection_static_route_mode_peer_prototype_vpn_gateway_connection_peer_by_fqdn_model_json).__dict__ - vpn_gateway_connection_static_route_mode_peer_prototype_vpn_gateway_connection_peer_by_fqdn_model2 = VPNGatewayConnectionStaticRouteModePeerPrototypeVPNGatewayConnectionPeerByFQDN(**vpn_gateway_connection_static_route_mode_peer_prototype_vpn_gateway_connection_peer_by_fqdn_model_dict) + vpn_gateway_connection_static_route_mode_peer_prototype_vpn_gateway_connection_peer_by_fqdn_model_dict = ( + VPNGatewayConnectionStaticRouteModePeerPrototypeVPNGatewayConnectionPeerByFQDN.from_dict( + vpn_gateway_connection_static_route_mode_peer_prototype_vpn_gateway_connection_peer_by_fqdn_model_json + ).__dict__ + ) + vpn_gateway_connection_static_route_mode_peer_prototype_vpn_gateway_connection_peer_by_fqdn_model2 = ( + VPNGatewayConnectionStaticRouteModePeerPrototypeVPNGatewayConnectionPeerByFQDN( + **vpn_gateway_connection_static_route_mode_peer_prototype_vpn_gateway_connection_peer_by_fqdn_model_dict + ) + ) # Verify the model instances are equivalent - assert vpn_gateway_connection_static_route_mode_peer_prototype_vpn_gateway_connection_peer_by_fqdn_model == vpn_gateway_connection_static_route_mode_peer_prototype_vpn_gateway_connection_peer_by_fqdn_model2 + assert ( + vpn_gateway_connection_static_route_mode_peer_prototype_vpn_gateway_connection_peer_by_fqdn_model + == vpn_gateway_connection_static_route_mode_peer_prototype_vpn_gateway_connection_peer_by_fqdn_model2 + ) # Convert model instance back to dict and verify no loss of data - vpn_gateway_connection_static_route_mode_peer_prototype_vpn_gateway_connection_peer_by_fqdn_model_json2 = vpn_gateway_connection_static_route_mode_peer_prototype_vpn_gateway_connection_peer_by_fqdn_model.to_dict() - assert vpn_gateway_connection_static_route_mode_peer_prototype_vpn_gateway_connection_peer_by_fqdn_model_json2 == vpn_gateway_connection_static_route_mode_peer_prototype_vpn_gateway_connection_peer_by_fqdn_model_json + vpn_gateway_connection_static_route_mode_peer_prototype_vpn_gateway_connection_peer_by_fqdn_model_json2 = ( + vpn_gateway_connection_static_route_mode_peer_prototype_vpn_gateway_connection_peer_by_fqdn_model.to_dict() + ) + assert ( + vpn_gateway_connection_static_route_mode_peer_prototype_vpn_gateway_connection_peer_by_fqdn_model_json2 + == vpn_gateway_connection_static_route_mode_peer_prototype_vpn_gateway_connection_peer_by_fqdn_model_json + ) class TestModel_VPNGatewayConnectionStaticRouteModePeerVPNGatewayConnectionPeerByAddress: @@ -93550,30 +104865,58 @@ def test_vpn_gateway_connection_static_route_mode_peer_vpn_gateway_connection_pe # Construct dict forms of any model objects needed in order to build this model. - vpn_gateway_connection_ike_identity_model = {} # VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityFQDN + vpn_gateway_connection_ike_identity_model = ( + {} + ) # VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityFQDN vpn_gateway_connection_ike_identity_model['type'] = 'fqdn' vpn_gateway_connection_ike_identity_model['value'] = 'my-service.example.com' # Construct a json representation of a VPNGatewayConnectionStaticRouteModePeerVPNGatewayConnectionPeerByAddress model vpn_gateway_connection_static_route_mode_peer_vpn_gateway_connection_peer_by_address_model_json = {} - vpn_gateway_connection_static_route_mode_peer_vpn_gateway_connection_peer_by_address_model_json['ike_identity'] = vpn_gateway_connection_ike_identity_model - vpn_gateway_connection_static_route_mode_peer_vpn_gateway_connection_peer_by_address_model_json['type'] = 'address' - vpn_gateway_connection_static_route_mode_peer_vpn_gateway_connection_peer_by_address_model_json['address'] = '169.21.50.5' + vpn_gateway_connection_static_route_mode_peer_vpn_gateway_connection_peer_by_address_model_json[ + 'ike_identity' + ] = vpn_gateway_connection_ike_identity_model + vpn_gateway_connection_static_route_mode_peer_vpn_gateway_connection_peer_by_address_model_json['type'] = ( + 'address' + ) + vpn_gateway_connection_static_route_mode_peer_vpn_gateway_connection_peer_by_address_model_json['address'] = ( + '169.21.50.5' + ) # Construct a model instance of VPNGatewayConnectionStaticRouteModePeerVPNGatewayConnectionPeerByAddress by calling from_dict on the json representation - vpn_gateway_connection_static_route_mode_peer_vpn_gateway_connection_peer_by_address_model = VPNGatewayConnectionStaticRouteModePeerVPNGatewayConnectionPeerByAddress.from_dict(vpn_gateway_connection_static_route_mode_peer_vpn_gateway_connection_peer_by_address_model_json) + vpn_gateway_connection_static_route_mode_peer_vpn_gateway_connection_peer_by_address_model = ( + VPNGatewayConnectionStaticRouteModePeerVPNGatewayConnectionPeerByAddress.from_dict( + vpn_gateway_connection_static_route_mode_peer_vpn_gateway_connection_peer_by_address_model_json + ) + ) assert vpn_gateway_connection_static_route_mode_peer_vpn_gateway_connection_peer_by_address_model != False # Construct a model instance of VPNGatewayConnectionStaticRouteModePeerVPNGatewayConnectionPeerByAddress by calling from_dict on the json representation - vpn_gateway_connection_static_route_mode_peer_vpn_gateway_connection_peer_by_address_model_dict = VPNGatewayConnectionStaticRouteModePeerVPNGatewayConnectionPeerByAddress.from_dict(vpn_gateway_connection_static_route_mode_peer_vpn_gateway_connection_peer_by_address_model_json).__dict__ - vpn_gateway_connection_static_route_mode_peer_vpn_gateway_connection_peer_by_address_model2 = VPNGatewayConnectionStaticRouteModePeerVPNGatewayConnectionPeerByAddress(**vpn_gateway_connection_static_route_mode_peer_vpn_gateway_connection_peer_by_address_model_dict) + vpn_gateway_connection_static_route_mode_peer_vpn_gateway_connection_peer_by_address_model_dict = ( + VPNGatewayConnectionStaticRouteModePeerVPNGatewayConnectionPeerByAddress.from_dict( + vpn_gateway_connection_static_route_mode_peer_vpn_gateway_connection_peer_by_address_model_json + ).__dict__ + ) + vpn_gateway_connection_static_route_mode_peer_vpn_gateway_connection_peer_by_address_model2 = ( + VPNGatewayConnectionStaticRouteModePeerVPNGatewayConnectionPeerByAddress( + **vpn_gateway_connection_static_route_mode_peer_vpn_gateway_connection_peer_by_address_model_dict + ) + ) # Verify the model instances are equivalent - assert vpn_gateway_connection_static_route_mode_peer_vpn_gateway_connection_peer_by_address_model == vpn_gateway_connection_static_route_mode_peer_vpn_gateway_connection_peer_by_address_model2 + assert ( + vpn_gateway_connection_static_route_mode_peer_vpn_gateway_connection_peer_by_address_model + == vpn_gateway_connection_static_route_mode_peer_vpn_gateway_connection_peer_by_address_model2 + ) # Convert model instance back to dict and verify no loss of data - vpn_gateway_connection_static_route_mode_peer_vpn_gateway_connection_peer_by_address_model_json2 = vpn_gateway_connection_static_route_mode_peer_vpn_gateway_connection_peer_by_address_model.to_dict() - assert vpn_gateway_connection_static_route_mode_peer_vpn_gateway_connection_peer_by_address_model_json2 == vpn_gateway_connection_static_route_mode_peer_vpn_gateway_connection_peer_by_address_model_json + vpn_gateway_connection_static_route_mode_peer_vpn_gateway_connection_peer_by_address_model_json2 = ( + vpn_gateway_connection_static_route_mode_peer_vpn_gateway_connection_peer_by_address_model.to_dict() + ) + assert ( + vpn_gateway_connection_static_route_mode_peer_vpn_gateway_connection_peer_by_address_model_json2 + == vpn_gateway_connection_static_route_mode_peer_vpn_gateway_connection_peer_by_address_model_json + ) class TestModel_VPNGatewayConnectionStaticRouteModePeerVPNGatewayConnectionPeerByFQDN: @@ -93588,30 +104931,56 @@ def test_vpn_gateway_connection_static_route_mode_peer_vpn_gateway_connection_pe # Construct dict forms of any model objects needed in order to build this model. - vpn_gateway_connection_ike_identity_model = {} # VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityFQDN + vpn_gateway_connection_ike_identity_model = ( + {} + ) # VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityFQDN vpn_gateway_connection_ike_identity_model['type'] = 'fqdn' vpn_gateway_connection_ike_identity_model['value'] = 'my-service.example.com' # Construct a json representation of a VPNGatewayConnectionStaticRouteModePeerVPNGatewayConnectionPeerByFQDN model vpn_gateway_connection_static_route_mode_peer_vpn_gateway_connection_peer_by_fqdn_model_json = {} - vpn_gateway_connection_static_route_mode_peer_vpn_gateway_connection_peer_by_fqdn_model_json['ike_identity'] = vpn_gateway_connection_ike_identity_model + vpn_gateway_connection_static_route_mode_peer_vpn_gateway_connection_peer_by_fqdn_model_json['ike_identity'] = ( + vpn_gateway_connection_ike_identity_model + ) vpn_gateway_connection_static_route_mode_peer_vpn_gateway_connection_peer_by_fqdn_model_json['type'] = 'address' - vpn_gateway_connection_static_route_mode_peer_vpn_gateway_connection_peer_by_fqdn_model_json['fqdn'] = 'my-service.example.com' + vpn_gateway_connection_static_route_mode_peer_vpn_gateway_connection_peer_by_fqdn_model_json['fqdn'] = ( + 'my-service.example.com' + ) # Construct a model instance of VPNGatewayConnectionStaticRouteModePeerVPNGatewayConnectionPeerByFQDN by calling from_dict on the json representation - vpn_gateway_connection_static_route_mode_peer_vpn_gateway_connection_peer_by_fqdn_model = VPNGatewayConnectionStaticRouteModePeerVPNGatewayConnectionPeerByFQDN.from_dict(vpn_gateway_connection_static_route_mode_peer_vpn_gateway_connection_peer_by_fqdn_model_json) + vpn_gateway_connection_static_route_mode_peer_vpn_gateway_connection_peer_by_fqdn_model = ( + VPNGatewayConnectionStaticRouteModePeerVPNGatewayConnectionPeerByFQDN.from_dict( + vpn_gateway_connection_static_route_mode_peer_vpn_gateway_connection_peer_by_fqdn_model_json + ) + ) assert vpn_gateway_connection_static_route_mode_peer_vpn_gateway_connection_peer_by_fqdn_model != False # Construct a model instance of VPNGatewayConnectionStaticRouteModePeerVPNGatewayConnectionPeerByFQDN by calling from_dict on the json representation - vpn_gateway_connection_static_route_mode_peer_vpn_gateway_connection_peer_by_fqdn_model_dict = VPNGatewayConnectionStaticRouteModePeerVPNGatewayConnectionPeerByFQDN.from_dict(vpn_gateway_connection_static_route_mode_peer_vpn_gateway_connection_peer_by_fqdn_model_json).__dict__ - vpn_gateway_connection_static_route_mode_peer_vpn_gateway_connection_peer_by_fqdn_model2 = VPNGatewayConnectionStaticRouteModePeerVPNGatewayConnectionPeerByFQDN(**vpn_gateway_connection_static_route_mode_peer_vpn_gateway_connection_peer_by_fqdn_model_dict) + vpn_gateway_connection_static_route_mode_peer_vpn_gateway_connection_peer_by_fqdn_model_dict = ( + VPNGatewayConnectionStaticRouteModePeerVPNGatewayConnectionPeerByFQDN.from_dict( + vpn_gateway_connection_static_route_mode_peer_vpn_gateway_connection_peer_by_fqdn_model_json + ).__dict__ + ) + vpn_gateway_connection_static_route_mode_peer_vpn_gateway_connection_peer_by_fqdn_model2 = ( + VPNGatewayConnectionStaticRouteModePeerVPNGatewayConnectionPeerByFQDN( + **vpn_gateway_connection_static_route_mode_peer_vpn_gateway_connection_peer_by_fqdn_model_dict + ) + ) # Verify the model instances are equivalent - assert vpn_gateway_connection_static_route_mode_peer_vpn_gateway_connection_peer_by_fqdn_model == vpn_gateway_connection_static_route_mode_peer_vpn_gateway_connection_peer_by_fqdn_model2 + assert ( + vpn_gateway_connection_static_route_mode_peer_vpn_gateway_connection_peer_by_fqdn_model + == vpn_gateway_connection_static_route_mode_peer_vpn_gateway_connection_peer_by_fqdn_model2 + ) # Convert model instance back to dict and verify no loss of data - vpn_gateway_connection_static_route_mode_peer_vpn_gateway_connection_peer_by_fqdn_model_json2 = vpn_gateway_connection_static_route_mode_peer_vpn_gateway_connection_peer_by_fqdn_model.to_dict() - assert vpn_gateway_connection_static_route_mode_peer_vpn_gateway_connection_peer_by_fqdn_model_json2 == vpn_gateway_connection_static_route_mode_peer_vpn_gateway_connection_peer_by_fqdn_model_json + vpn_gateway_connection_static_route_mode_peer_vpn_gateway_connection_peer_by_fqdn_model_json2 = ( + vpn_gateway_connection_static_route_mode_peer_vpn_gateway_connection_peer_by_fqdn_model.to_dict() + ) + assert ( + vpn_gateway_connection_static_route_mode_peer_vpn_gateway_connection_peer_by_fqdn_model_json2 + == vpn_gateway_connection_static_route_mode_peer_vpn_gateway_connection_peer_by_fqdn_model_json + ) class TestModel_VPNGatewayPolicyMode: @@ -93631,7 +105000,9 @@ def test_vpn_gateway_policy_mode_serialization(self): vpn_gateway_connection_reference_model = {} # VPNGatewayConnectionReference vpn_gateway_connection_reference_model['deleted'] = deleted_model - vpn_gateway_connection_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b/connections/93487806-7743-4c46-81d6-72869883ea0b' + vpn_gateway_connection_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b/connections/93487806-7743-4c46-81d6-72869883ea0b' + ) vpn_gateway_connection_reference_model['id'] = 'a10a5771-dc23-442c-8460-c3601d8542f7' vpn_gateway_connection_reference_model['name'] = 'my-vpn-connection' vpn_gateway_connection_reference_model['resource_type'] = 'vpn_gateway_connection' @@ -93643,23 +105014,31 @@ def test_vpn_gateway_policy_mode_serialization(self): vpn_gateway_lifecycle_reason_model = {} # VPNGatewayLifecycleReason vpn_gateway_lifecycle_reason_model['code'] = 'resource_suspended_by_provider' - vpn_gateway_lifecycle_reason_model['message'] = 'The resource has been suspended. Contact IBM support with the CRN for next steps.' + vpn_gateway_lifecycle_reason_model['message'] = ( + 'The resource has been suspended. Contact IBM support with the CRN for next steps.' + ) vpn_gateway_lifecycle_reason_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#resource-suspension' vpn_gateway_member_health_reason_model = {} # VPNGatewayMemberHealthReason vpn_gateway_member_health_reason_model['code'] = 'cannot_reserve_ip_address' - vpn_gateway_member_health_reason_model['message'] = 'IP address exhaustion (release addresses on the VPN\'s subnet).' + vpn_gateway_member_health_reason_model['message'] = ( + 'IP address exhaustion (release addresses on the VPN\'s subnet).' + ) vpn_gateway_member_health_reason_model['more_info'] = 'https://cloud.ibm.com/docs/vpc?topic=vpc-vpn-health' vpn_gateway_member_lifecycle_reason_model = {} # VPNGatewayMemberLifecycleReason vpn_gateway_member_lifecycle_reason_model['code'] = 'resource_suspended_by_provider' - vpn_gateway_member_lifecycle_reason_model['message'] = 'The resource has been suspended. Contact IBM support with the CRN for next steps.' + vpn_gateway_member_lifecycle_reason_model['message'] = ( + 'The resource has been suspended. Contact IBM support with the CRN for next steps.' + ) vpn_gateway_member_lifecycle_reason_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#resource-suspension' reserved_ip_reference_model = {} # ReservedIPReference reserved_ip_reference_model['address'] = '192.168.3.4' reserved_ip_reference_model['deleted'] = deleted_model - reserved_ip_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-bea6a632-5e13-42a4-b4b8-31dc877abfe4/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + reserved_ip_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-bea6a632-5e13-42a4-b4b8-31dc877abfe4/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + ) reserved_ip_reference_model['id'] = '0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' reserved_ip_reference_model['name'] = 'my-reserved-ip' reserved_ip_reference_model['resource_type'] = 'subnet_reserved_ip' @@ -93677,22 +105056,32 @@ def test_vpn_gateway_policy_mode_serialization(self): vpn_gateway_member_model['role'] = 'active' resource_group_reference_model = {} # ResourceGroupReference - resource_group_reference_model['href'] = 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + resource_group_reference_model['href'] = ( + 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + ) resource_group_reference_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' resource_group_reference_model['name'] = 'my-resource-group' subnet_reference_model = {} # SubnetReference - subnet_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['deleted'] = deleted_model - subnet_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['id'] = '0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' subnet_reference_model['name'] = 'my-subnet' subnet_reference_model['resource_type'] = 'subnet' vpc_reference_model = {} # VPCReference - vpc_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_model['deleted'] = deleted_model - vpc_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_model['id'] = 'r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' vpc_reference_model['name'] = 'my-vpc' vpc_reference_model['resource_type'] = 'vpc' @@ -93701,10 +105090,14 @@ def test_vpn_gateway_policy_mode_serialization(self): vpn_gateway_policy_mode_model_json = {} vpn_gateway_policy_mode_model_json['connections'] = [vpn_gateway_connection_reference_model] vpn_gateway_policy_mode_model_json['created_at'] = '2019-01-01T12:00:00Z' - vpn_gateway_policy_mode_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpn:ddf51bec-3424-11e8-b467-0ed5f89f718b' + vpn_gateway_policy_mode_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpn:ddf51bec-3424-11e8-b467-0ed5f89f718b' + ) vpn_gateway_policy_mode_model_json['health_reasons'] = [vpn_gateway_health_reason_model] vpn_gateway_policy_mode_model_json['health_state'] = 'ok' - vpn_gateway_policy_mode_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b' + vpn_gateway_policy_mode_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b' + ) vpn_gateway_policy_mode_model_json['id'] = 'ddf51bec-3424-11e8-b467-0ed5f89f718b' vpn_gateway_policy_mode_model_json['lifecycle_reasons'] = [vpn_gateway_lifecycle_reason_model] vpn_gateway_policy_mode_model_json['lifecycle_state'] = 'stable' @@ -93753,24 +105146,46 @@ def test_vpn_gateway_prototype_vpn_gateway_policy_mode_prototype_serialization(s # Construct a json representation of a VPNGatewayPrototypeVPNGatewayPolicyModePrototype model vpn_gateway_prototype_vpn_gateway_policy_mode_prototype_model_json = {} vpn_gateway_prototype_vpn_gateway_policy_mode_prototype_model_json['name'] = 'my-vpn-gateway' - vpn_gateway_prototype_vpn_gateway_policy_mode_prototype_model_json['resource_group'] = resource_group_identity_model + vpn_gateway_prototype_vpn_gateway_policy_mode_prototype_model_json['resource_group'] = ( + resource_group_identity_model + ) vpn_gateway_prototype_vpn_gateway_policy_mode_prototype_model_json['subnet'] = subnet_identity_model vpn_gateway_prototype_vpn_gateway_policy_mode_prototype_model_json['mode'] = 'policy' # Construct a model instance of VPNGatewayPrototypeVPNGatewayPolicyModePrototype by calling from_dict on the json representation - vpn_gateway_prototype_vpn_gateway_policy_mode_prototype_model = VPNGatewayPrototypeVPNGatewayPolicyModePrototype.from_dict(vpn_gateway_prototype_vpn_gateway_policy_mode_prototype_model_json) + vpn_gateway_prototype_vpn_gateway_policy_mode_prototype_model = ( + VPNGatewayPrototypeVPNGatewayPolicyModePrototype.from_dict( + vpn_gateway_prototype_vpn_gateway_policy_mode_prototype_model_json + ) + ) assert vpn_gateway_prototype_vpn_gateway_policy_mode_prototype_model != False # Construct a model instance of VPNGatewayPrototypeVPNGatewayPolicyModePrototype by calling from_dict on the json representation - vpn_gateway_prototype_vpn_gateway_policy_mode_prototype_model_dict = VPNGatewayPrototypeVPNGatewayPolicyModePrototype.from_dict(vpn_gateway_prototype_vpn_gateway_policy_mode_prototype_model_json).__dict__ - vpn_gateway_prototype_vpn_gateway_policy_mode_prototype_model2 = VPNGatewayPrototypeVPNGatewayPolicyModePrototype(**vpn_gateway_prototype_vpn_gateway_policy_mode_prototype_model_dict) + vpn_gateway_prototype_vpn_gateway_policy_mode_prototype_model_dict = ( + VPNGatewayPrototypeVPNGatewayPolicyModePrototype.from_dict( + vpn_gateway_prototype_vpn_gateway_policy_mode_prototype_model_json + ).__dict__ + ) + vpn_gateway_prototype_vpn_gateway_policy_mode_prototype_model2 = ( + VPNGatewayPrototypeVPNGatewayPolicyModePrototype( + **vpn_gateway_prototype_vpn_gateway_policy_mode_prototype_model_dict + ) + ) # Verify the model instances are equivalent - assert vpn_gateway_prototype_vpn_gateway_policy_mode_prototype_model == vpn_gateway_prototype_vpn_gateway_policy_mode_prototype_model2 + assert ( + vpn_gateway_prototype_vpn_gateway_policy_mode_prototype_model + == vpn_gateway_prototype_vpn_gateway_policy_mode_prototype_model2 + ) # Convert model instance back to dict and verify no loss of data - vpn_gateway_prototype_vpn_gateway_policy_mode_prototype_model_json2 = vpn_gateway_prototype_vpn_gateway_policy_mode_prototype_model.to_dict() - assert vpn_gateway_prototype_vpn_gateway_policy_mode_prototype_model_json2 == vpn_gateway_prototype_vpn_gateway_policy_mode_prototype_model_json + vpn_gateway_prototype_vpn_gateway_policy_mode_prototype_model_json2 = ( + vpn_gateway_prototype_vpn_gateway_policy_mode_prototype_model.to_dict() + ) + assert ( + vpn_gateway_prototype_vpn_gateway_policy_mode_prototype_model_json2 + == vpn_gateway_prototype_vpn_gateway_policy_mode_prototype_model_json + ) class TestModel_VPNGatewayPrototypeVPNGatewayRouteModePrototype: @@ -93794,24 +105209,44 @@ def test_vpn_gateway_prototype_vpn_gateway_route_mode_prototype_serialization(se # Construct a json representation of a VPNGatewayPrototypeVPNGatewayRouteModePrototype model vpn_gateway_prototype_vpn_gateway_route_mode_prototype_model_json = {} vpn_gateway_prototype_vpn_gateway_route_mode_prototype_model_json['name'] = 'my-vpn-gateway' - vpn_gateway_prototype_vpn_gateway_route_mode_prototype_model_json['resource_group'] = resource_group_identity_model + vpn_gateway_prototype_vpn_gateway_route_mode_prototype_model_json['resource_group'] = ( + resource_group_identity_model + ) vpn_gateway_prototype_vpn_gateway_route_mode_prototype_model_json['subnet'] = subnet_identity_model vpn_gateway_prototype_vpn_gateway_route_mode_prototype_model_json['mode'] = 'route' # Construct a model instance of VPNGatewayPrototypeVPNGatewayRouteModePrototype by calling from_dict on the json representation - vpn_gateway_prototype_vpn_gateway_route_mode_prototype_model = VPNGatewayPrototypeVPNGatewayRouteModePrototype.from_dict(vpn_gateway_prototype_vpn_gateway_route_mode_prototype_model_json) + vpn_gateway_prototype_vpn_gateway_route_mode_prototype_model = ( + VPNGatewayPrototypeVPNGatewayRouteModePrototype.from_dict( + vpn_gateway_prototype_vpn_gateway_route_mode_prototype_model_json + ) + ) assert vpn_gateway_prototype_vpn_gateway_route_mode_prototype_model != False # Construct a model instance of VPNGatewayPrototypeVPNGatewayRouteModePrototype by calling from_dict on the json representation - vpn_gateway_prototype_vpn_gateway_route_mode_prototype_model_dict = VPNGatewayPrototypeVPNGatewayRouteModePrototype.from_dict(vpn_gateway_prototype_vpn_gateway_route_mode_prototype_model_json).__dict__ - vpn_gateway_prototype_vpn_gateway_route_mode_prototype_model2 = VPNGatewayPrototypeVPNGatewayRouteModePrototype(**vpn_gateway_prototype_vpn_gateway_route_mode_prototype_model_dict) + vpn_gateway_prototype_vpn_gateway_route_mode_prototype_model_dict = ( + VPNGatewayPrototypeVPNGatewayRouteModePrototype.from_dict( + vpn_gateway_prototype_vpn_gateway_route_mode_prototype_model_json + ).__dict__ + ) + vpn_gateway_prototype_vpn_gateway_route_mode_prototype_model2 = VPNGatewayPrototypeVPNGatewayRouteModePrototype( + **vpn_gateway_prototype_vpn_gateway_route_mode_prototype_model_dict + ) # Verify the model instances are equivalent - assert vpn_gateway_prototype_vpn_gateway_route_mode_prototype_model == vpn_gateway_prototype_vpn_gateway_route_mode_prototype_model2 + assert ( + vpn_gateway_prototype_vpn_gateway_route_mode_prototype_model + == vpn_gateway_prototype_vpn_gateway_route_mode_prototype_model2 + ) # Convert model instance back to dict and verify no loss of data - vpn_gateway_prototype_vpn_gateway_route_mode_prototype_model_json2 = vpn_gateway_prototype_vpn_gateway_route_mode_prototype_model.to_dict() - assert vpn_gateway_prototype_vpn_gateway_route_mode_prototype_model_json2 == vpn_gateway_prototype_vpn_gateway_route_mode_prototype_model_json + vpn_gateway_prototype_vpn_gateway_route_mode_prototype_model_json2 = ( + vpn_gateway_prototype_vpn_gateway_route_mode_prototype_model.to_dict() + ) + assert ( + vpn_gateway_prototype_vpn_gateway_route_mode_prototype_model_json2 + == vpn_gateway_prototype_vpn_gateway_route_mode_prototype_model_json + ) class TestModel_VPNGatewayRouteMode: @@ -93831,7 +105266,9 @@ def test_vpn_gateway_route_mode_serialization(self): vpn_gateway_connection_reference_model = {} # VPNGatewayConnectionReference vpn_gateway_connection_reference_model['deleted'] = deleted_model - vpn_gateway_connection_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b/connections/93487806-7743-4c46-81d6-72869883ea0b' + vpn_gateway_connection_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b/connections/93487806-7743-4c46-81d6-72869883ea0b' + ) vpn_gateway_connection_reference_model['id'] = 'a10a5771-dc23-442c-8460-c3601d8542f7' vpn_gateway_connection_reference_model['name'] = 'my-vpn-connection' vpn_gateway_connection_reference_model['resource_type'] = 'vpn_gateway_connection' @@ -93843,23 +105280,31 @@ def test_vpn_gateway_route_mode_serialization(self): vpn_gateway_lifecycle_reason_model = {} # VPNGatewayLifecycleReason vpn_gateway_lifecycle_reason_model['code'] = 'resource_suspended_by_provider' - vpn_gateway_lifecycle_reason_model['message'] = 'The resource has been suspended. Contact IBM support with the CRN for next steps.' + vpn_gateway_lifecycle_reason_model['message'] = ( + 'The resource has been suspended. Contact IBM support with the CRN for next steps.' + ) vpn_gateway_lifecycle_reason_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#resource-suspension' vpn_gateway_member_health_reason_model = {} # VPNGatewayMemberHealthReason vpn_gateway_member_health_reason_model['code'] = 'cannot_reserve_ip_address' - vpn_gateway_member_health_reason_model['message'] = 'IP address exhaustion (release addresses on the VPN\'s subnet).' + vpn_gateway_member_health_reason_model['message'] = ( + 'IP address exhaustion (release addresses on the VPN\'s subnet).' + ) vpn_gateway_member_health_reason_model['more_info'] = 'https://cloud.ibm.com/docs/vpc?topic=vpc-vpn-health' vpn_gateway_member_lifecycle_reason_model = {} # VPNGatewayMemberLifecycleReason vpn_gateway_member_lifecycle_reason_model['code'] = 'resource_suspended_by_provider' - vpn_gateway_member_lifecycle_reason_model['message'] = 'The resource has been suspended. Contact IBM support with the CRN for next steps.' + vpn_gateway_member_lifecycle_reason_model['message'] = ( + 'The resource has been suspended. Contact IBM support with the CRN for next steps.' + ) vpn_gateway_member_lifecycle_reason_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#resource-suspension' reserved_ip_reference_model = {} # ReservedIPReference reserved_ip_reference_model['address'] = '192.168.3.4' reserved_ip_reference_model['deleted'] = deleted_model - reserved_ip_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-bea6a632-5e13-42a4-b4b8-31dc877abfe4/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + reserved_ip_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-bea6a632-5e13-42a4-b4b8-31dc877abfe4/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + ) reserved_ip_reference_model['id'] = '0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' reserved_ip_reference_model['name'] = 'my-reserved-ip' reserved_ip_reference_model['resource_type'] = 'subnet_reserved_ip' @@ -93877,22 +105322,32 @@ def test_vpn_gateway_route_mode_serialization(self): vpn_gateway_member_model['role'] = 'active' resource_group_reference_model = {} # ResourceGroupReference - resource_group_reference_model['href'] = 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + resource_group_reference_model['href'] = ( + 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + ) resource_group_reference_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' resource_group_reference_model['name'] = 'my-resource-group' subnet_reference_model = {} # SubnetReference - subnet_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['deleted'] = deleted_model - subnet_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + subnet_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) subnet_reference_model['id'] = '0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' subnet_reference_model['name'] = 'my-subnet' subnet_reference_model['resource_type'] = 'subnet' vpc_reference_model = {} # VPCReference - vpc_reference_model['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_model['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_model['deleted'] = deleted_model - vpc_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + vpc_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) vpc_reference_model['id'] = 'r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' vpc_reference_model['name'] = 'my-vpc' vpc_reference_model['resource_type'] = 'vpc' @@ -93901,10 +105356,14 @@ def test_vpn_gateway_route_mode_serialization(self): vpn_gateway_route_mode_model_json = {} vpn_gateway_route_mode_model_json['connections'] = [vpn_gateway_connection_reference_model] vpn_gateway_route_mode_model_json['created_at'] = '2019-01-01T12:00:00Z' - vpn_gateway_route_mode_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpn:ddf51bec-3424-11e8-b467-0ed5f89f718b' + vpn_gateway_route_mode_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpn:ddf51bec-3424-11e8-b467-0ed5f89f718b' + ) vpn_gateway_route_mode_model_json['health_reasons'] = [vpn_gateway_health_reason_model] vpn_gateway_route_mode_model_json['health_state'] = 'ok' - vpn_gateway_route_mode_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b' + vpn_gateway_route_mode_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b' + ) vpn_gateway_route_mode_model_json['id'] = 'ddf51bec-3424-11e8-b467-0ed5f89f718b' vpn_gateway_route_mode_model_json['lifecycle_reasons'] = [vpn_gateway_lifecycle_reason_model] vpn_gateway_route_mode_model_json['lifecycle_state'] = 'stable' @@ -93945,7 +105404,9 @@ def test_vpn_server_authentication_by_certificate_serialization(self): # Construct dict forms of any model objects needed in order to build this model. certificate_instance_reference_model = {} # CertificateInstanceReference - certificate_instance_reference_model['crn'] = 'crn:v1:bluemix:public:secrets-manager:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:36fa422d-080d-4d83-8d2d-86851b4001df:secret:2e786aab-42fa-63ed-14f8-d66d552f4dd5' + certificate_instance_reference_model['crn'] = ( + 'crn:v1:bluemix:public:secrets-manager:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:36fa422d-080d-4d83-8d2d-86851b4001df:secret:2e786aab-42fa-63ed-14f8-d66d552f4dd5' + ) # Construct a json representation of a VPNServerAuthenticationByCertificate model vpn_server_authentication_by_certificate_model_json = {} @@ -93954,19 +105415,27 @@ def test_vpn_server_authentication_by_certificate_serialization(self): vpn_server_authentication_by_certificate_model_json['crl'] = 'testString' # Construct a model instance of VPNServerAuthenticationByCertificate by calling from_dict on the json representation - vpn_server_authentication_by_certificate_model = VPNServerAuthenticationByCertificate.from_dict(vpn_server_authentication_by_certificate_model_json) + vpn_server_authentication_by_certificate_model = VPNServerAuthenticationByCertificate.from_dict( + vpn_server_authentication_by_certificate_model_json + ) assert vpn_server_authentication_by_certificate_model != False # Construct a model instance of VPNServerAuthenticationByCertificate by calling from_dict on the json representation - vpn_server_authentication_by_certificate_model_dict = VPNServerAuthenticationByCertificate.from_dict(vpn_server_authentication_by_certificate_model_json).__dict__ - vpn_server_authentication_by_certificate_model2 = VPNServerAuthenticationByCertificate(**vpn_server_authentication_by_certificate_model_dict) + vpn_server_authentication_by_certificate_model_dict = VPNServerAuthenticationByCertificate.from_dict( + vpn_server_authentication_by_certificate_model_json + ).__dict__ + vpn_server_authentication_by_certificate_model2 = VPNServerAuthenticationByCertificate( + **vpn_server_authentication_by_certificate_model_dict + ) # Verify the model instances are equivalent assert vpn_server_authentication_by_certificate_model == vpn_server_authentication_by_certificate_model2 # Convert model instance back to dict and verify no loss of data vpn_server_authentication_by_certificate_model_json2 = vpn_server_authentication_by_certificate_model.to_dict() - assert vpn_server_authentication_by_certificate_model_json2 == vpn_server_authentication_by_certificate_model_json + assert ( + vpn_server_authentication_by_certificate_model_json2 == vpn_server_authentication_by_certificate_model_json + ) class TestModel_VPNServerAuthenticationByUsername: @@ -93987,15 +105456,23 @@ def test_vpn_server_authentication_by_username_serialization(self): # Construct a json representation of a VPNServerAuthenticationByUsername model vpn_server_authentication_by_username_model_json = {} vpn_server_authentication_by_username_model_json['method'] = 'certificate' - vpn_server_authentication_by_username_model_json['identity_provider'] = vpn_server_authentication_by_username_id_provider_model + vpn_server_authentication_by_username_model_json['identity_provider'] = ( + vpn_server_authentication_by_username_id_provider_model + ) # Construct a model instance of VPNServerAuthenticationByUsername by calling from_dict on the json representation - vpn_server_authentication_by_username_model = VPNServerAuthenticationByUsername.from_dict(vpn_server_authentication_by_username_model_json) + vpn_server_authentication_by_username_model = VPNServerAuthenticationByUsername.from_dict( + vpn_server_authentication_by_username_model_json + ) assert vpn_server_authentication_by_username_model != False # Construct a model instance of VPNServerAuthenticationByUsername by calling from_dict on the json representation - vpn_server_authentication_by_username_model_dict = VPNServerAuthenticationByUsername.from_dict(vpn_server_authentication_by_username_model_json).__dict__ - vpn_server_authentication_by_username_model2 = VPNServerAuthenticationByUsername(**vpn_server_authentication_by_username_model_dict) + vpn_server_authentication_by_username_model_dict = VPNServerAuthenticationByUsername.from_dict( + vpn_server_authentication_by_username_model_json + ).__dict__ + vpn_server_authentication_by_username_model2 = VPNServerAuthenticationByUsername( + **vpn_server_authentication_by_username_model_dict + ) # Verify the model instances are equivalent assert vpn_server_authentication_by_username_model == vpn_server_authentication_by_username_model2 @@ -94020,19 +105497,39 @@ def test_vpn_server_authentication_by_username_id_provider_by_iam_serialization( vpn_server_authentication_by_username_id_provider_by_iam_model_json['provider_type'] = 'iam' # Construct a model instance of VPNServerAuthenticationByUsernameIdProviderByIAM by calling from_dict on the json representation - vpn_server_authentication_by_username_id_provider_by_iam_model = VPNServerAuthenticationByUsernameIdProviderByIAM.from_dict(vpn_server_authentication_by_username_id_provider_by_iam_model_json) + vpn_server_authentication_by_username_id_provider_by_iam_model = ( + VPNServerAuthenticationByUsernameIdProviderByIAM.from_dict( + vpn_server_authentication_by_username_id_provider_by_iam_model_json + ) + ) assert vpn_server_authentication_by_username_id_provider_by_iam_model != False # Construct a model instance of VPNServerAuthenticationByUsernameIdProviderByIAM by calling from_dict on the json representation - vpn_server_authentication_by_username_id_provider_by_iam_model_dict = VPNServerAuthenticationByUsernameIdProviderByIAM.from_dict(vpn_server_authentication_by_username_id_provider_by_iam_model_json).__dict__ - vpn_server_authentication_by_username_id_provider_by_iam_model2 = VPNServerAuthenticationByUsernameIdProviderByIAM(**vpn_server_authentication_by_username_id_provider_by_iam_model_dict) + vpn_server_authentication_by_username_id_provider_by_iam_model_dict = ( + VPNServerAuthenticationByUsernameIdProviderByIAM.from_dict( + vpn_server_authentication_by_username_id_provider_by_iam_model_json + ).__dict__ + ) + vpn_server_authentication_by_username_id_provider_by_iam_model2 = ( + VPNServerAuthenticationByUsernameIdProviderByIAM( + **vpn_server_authentication_by_username_id_provider_by_iam_model_dict + ) + ) # Verify the model instances are equivalent - assert vpn_server_authentication_by_username_id_provider_by_iam_model == vpn_server_authentication_by_username_id_provider_by_iam_model2 + assert ( + vpn_server_authentication_by_username_id_provider_by_iam_model + == vpn_server_authentication_by_username_id_provider_by_iam_model2 + ) # Convert model instance back to dict and verify no loss of data - vpn_server_authentication_by_username_id_provider_by_iam_model_json2 = vpn_server_authentication_by_username_id_provider_by_iam_model.to_dict() - assert vpn_server_authentication_by_username_id_provider_by_iam_model_json2 == vpn_server_authentication_by_username_id_provider_by_iam_model_json + vpn_server_authentication_by_username_id_provider_by_iam_model_json2 = ( + vpn_server_authentication_by_username_id_provider_by_iam_model.to_dict() + ) + assert ( + vpn_server_authentication_by_username_id_provider_by_iam_model_json2 + == vpn_server_authentication_by_username_id_provider_by_iam_model_json + ) class TestModel_VPNServerAuthenticationPrototypeVPNServerAuthenticationByCertificatePrototype: @@ -94048,28 +105545,56 @@ def test_vpn_server_authentication_prototype_vpn_server_authentication_by_certif # Construct dict forms of any model objects needed in order to build this model. certificate_instance_identity_model = {} # CertificateInstanceIdentityByCRN - certificate_instance_identity_model['crn'] = 'crn:v1:bluemix:public:secrets-manager:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:36fa422d-080d-4d83-8d2d-86851b4001df:secret:2e786aab-42fa-63ed-14f8-d66d552f4dd5' + certificate_instance_identity_model['crn'] = ( + 'crn:v1:bluemix:public:secrets-manager:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:36fa422d-080d-4d83-8d2d-86851b4001df:secret:2e786aab-42fa-63ed-14f8-d66d552f4dd5' + ) # Construct a json representation of a VPNServerAuthenticationPrototypeVPNServerAuthenticationByCertificatePrototype model vpn_server_authentication_prototype_vpn_server_authentication_by_certificate_prototype_model_json = {} - vpn_server_authentication_prototype_vpn_server_authentication_by_certificate_prototype_model_json['method'] = 'certificate' - vpn_server_authentication_prototype_vpn_server_authentication_by_certificate_prototype_model_json['client_ca'] = certificate_instance_identity_model - vpn_server_authentication_prototype_vpn_server_authentication_by_certificate_prototype_model_json['crl'] = 'testString' + vpn_server_authentication_prototype_vpn_server_authentication_by_certificate_prototype_model_json['method'] = ( + 'certificate' + ) + vpn_server_authentication_prototype_vpn_server_authentication_by_certificate_prototype_model_json[ + 'client_ca' + ] = certificate_instance_identity_model + vpn_server_authentication_prototype_vpn_server_authentication_by_certificate_prototype_model_json['crl'] = ( + 'testString' + ) # Construct a model instance of VPNServerAuthenticationPrototypeVPNServerAuthenticationByCertificatePrototype by calling from_dict on the json representation - vpn_server_authentication_prototype_vpn_server_authentication_by_certificate_prototype_model = VPNServerAuthenticationPrototypeVPNServerAuthenticationByCertificatePrototype.from_dict(vpn_server_authentication_prototype_vpn_server_authentication_by_certificate_prototype_model_json) + vpn_server_authentication_prototype_vpn_server_authentication_by_certificate_prototype_model = ( + VPNServerAuthenticationPrototypeVPNServerAuthenticationByCertificatePrototype.from_dict( + vpn_server_authentication_prototype_vpn_server_authentication_by_certificate_prototype_model_json + ) + ) assert vpn_server_authentication_prototype_vpn_server_authentication_by_certificate_prototype_model != False # Construct a model instance of VPNServerAuthenticationPrototypeVPNServerAuthenticationByCertificatePrototype by calling from_dict on the json representation - vpn_server_authentication_prototype_vpn_server_authentication_by_certificate_prototype_model_dict = VPNServerAuthenticationPrototypeVPNServerAuthenticationByCertificatePrototype.from_dict(vpn_server_authentication_prototype_vpn_server_authentication_by_certificate_prototype_model_json).__dict__ - vpn_server_authentication_prototype_vpn_server_authentication_by_certificate_prototype_model2 = VPNServerAuthenticationPrototypeVPNServerAuthenticationByCertificatePrototype(**vpn_server_authentication_prototype_vpn_server_authentication_by_certificate_prototype_model_dict) + vpn_server_authentication_prototype_vpn_server_authentication_by_certificate_prototype_model_dict = ( + VPNServerAuthenticationPrototypeVPNServerAuthenticationByCertificatePrototype.from_dict( + vpn_server_authentication_prototype_vpn_server_authentication_by_certificate_prototype_model_json + ).__dict__ + ) + vpn_server_authentication_prototype_vpn_server_authentication_by_certificate_prototype_model2 = ( + VPNServerAuthenticationPrototypeVPNServerAuthenticationByCertificatePrototype( + **vpn_server_authentication_prototype_vpn_server_authentication_by_certificate_prototype_model_dict + ) + ) # Verify the model instances are equivalent - assert vpn_server_authentication_prototype_vpn_server_authentication_by_certificate_prototype_model == vpn_server_authentication_prototype_vpn_server_authentication_by_certificate_prototype_model2 + assert ( + vpn_server_authentication_prototype_vpn_server_authentication_by_certificate_prototype_model + == vpn_server_authentication_prototype_vpn_server_authentication_by_certificate_prototype_model2 + ) # Convert model instance back to dict and verify no loss of data - vpn_server_authentication_prototype_vpn_server_authentication_by_certificate_prototype_model_json2 = vpn_server_authentication_prototype_vpn_server_authentication_by_certificate_prototype_model.to_dict() - assert vpn_server_authentication_prototype_vpn_server_authentication_by_certificate_prototype_model_json2 == vpn_server_authentication_prototype_vpn_server_authentication_by_certificate_prototype_model_json + vpn_server_authentication_prototype_vpn_server_authentication_by_certificate_prototype_model_json2 = ( + vpn_server_authentication_prototype_vpn_server_authentication_by_certificate_prototype_model.to_dict() + ) + assert ( + vpn_server_authentication_prototype_vpn_server_authentication_by_certificate_prototype_model_json2 + == vpn_server_authentication_prototype_vpn_server_authentication_by_certificate_prototype_model_json + ) class TestModel_VPNServerAuthenticationPrototypeVPNServerAuthenticationByUsernamePrototype: @@ -94089,23 +105614,47 @@ def test_vpn_server_authentication_prototype_vpn_server_authentication_by_userna # Construct a json representation of a VPNServerAuthenticationPrototypeVPNServerAuthenticationByUsernamePrototype model vpn_server_authentication_prototype_vpn_server_authentication_by_username_prototype_model_json = {} - vpn_server_authentication_prototype_vpn_server_authentication_by_username_prototype_model_json['method'] = 'username' - vpn_server_authentication_prototype_vpn_server_authentication_by_username_prototype_model_json['identity_provider'] = vpn_server_authentication_by_username_id_provider_model + vpn_server_authentication_prototype_vpn_server_authentication_by_username_prototype_model_json['method'] = ( + 'username' + ) + vpn_server_authentication_prototype_vpn_server_authentication_by_username_prototype_model_json[ + 'identity_provider' + ] = vpn_server_authentication_by_username_id_provider_model # Construct a model instance of VPNServerAuthenticationPrototypeVPNServerAuthenticationByUsernamePrototype by calling from_dict on the json representation - vpn_server_authentication_prototype_vpn_server_authentication_by_username_prototype_model = VPNServerAuthenticationPrototypeVPNServerAuthenticationByUsernamePrototype.from_dict(vpn_server_authentication_prototype_vpn_server_authentication_by_username_prototype_model_json) + vpn_server_authentication_prototype_vpn_server_authentication_by_username_prototype_model = ( + VPNServerAuthenticationPrototypeVPNServerAuthenticationByUsernamePrototype.from_dict( + vpn_server_authentication_prototype_vpn_server_authentication_by_username_prototype_model_json + ) + ) assert vpn_server_authentication_prototype_vpn_server_authentication_by_username_prototype_model != False # Construct a model instance of VPNServerAuthenticationPrototypeVPNServerAuthenticationByUsernamePrototype by calling from_dict on the json representation - vpn_server_authentication_prototype_vpn_server_authentication_by_username_prototype_model_dict = VPNServerAuthenticationPrototypeVPNServerAuthenticationByUsernamePrototype.from_dict(vpn_server_authentication_prototype_vpn_server_authentication_by_username_prototype_model_json).__dict__ - vpn_server_authentication_prototype_vpn_server_authentication_by_username_prototype_model2 = VPNServerAuthenticationPrototypeVPNServerAuthenticationByUsernamePrototype(**vpn_server_authentication_prototype_vpn_server_authentication_by_username_prototype_model_dict) + vpn_server_authentication_prototype_vpn_server_authentication_by_username_prototype_model_dict = ( + VPNServerAuthenticationPrototypeVPNServerAuthenticationByUsernamePrototype.from_dict( + vpn_server_authentication_prototype_vpn_server_authentication_by_username_prototype_model_json + ).__dict__ + ) + vpn_server_authentication_prototype_vpn_server_authentication_by_username_prototype_model2 = ( + VPNServerAuthenticationPrototypeVPNServerAuthenticationByUsernamePrototype( + **vpn_server_authentication_prototype_vpn_server_authentication_by_username_prototype_model_dict + ) + ) # Verify the model instances are equivalent - assert vpn_server_authentication_prototype_vpn_server_authentication_by_username_prototype_model == vpn_server_authentication_prototype_vpn_server_authentication_by_username_prototype_model2 + assert ( + vpn_server_authentication_prototype_vpn_server_authentication_by_username_prototype_model + == vpn_server_authentication_prototype_vpn_server_authentication_by_username_prototype_model2 + ) # Convert model instance back to dict and verify no loss of data - vpn_server_authentication_prototype_vpn_server_authentication_by_username_prototype_model_json2 = vpn_server_authentication_prototype_vpn_server_authentication_by_username_prototype_model.to_dict() - assert vpn_server_authentication_prototype_vpn_server_authentication_by_username_prototype_model_json2 == vpn_server_authentication_prototype_vpn_server_authentication_by_username_prototype_model_json + vpn_server_authentication_prototype_vpn_server_authentication_by_username_prototype_model_json2 = ( + vpn_server_authentication_prototype_vpn_server_authentication_by_username_prototype_model.to_dict() + ) + assert ( + vpn_server_authentication_prototype_vpn_server_authentication_by_username_prototype_model_json2 + == vpn_server_authentication_prototype_vpn_server_authentication_by_username_prototype_model_json + ) class TestModel_VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext: @@ -94113,31 +105662,58 @@ class TestModel_VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetw Test Class for VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext """ - def test_virtual_network_interface_ip_prototype_reserved_ip_prototype_virtual_network_interface_i_ps_context_serialization(self): + def test_virtual_network_interface_ip_prototype_reserved_ip_prototype_virtual_network_interface_i_ps_context_serialization( + self, + ): """ Test serialization/deserialization for VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext """ # Construct a json representation of a VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext model - virtual_network_interface_ip_prototype_reserved_ip_prototype_virtual_network_interface_i_ps_context_model_json = {} - virtual_network_interface_ip_prototype_reserved_ip_prototype_virtual_network_interface_i_ps_context_model_json['address'] = '192.168.3.4' - virtual_network_interface_ip_prototype_reserved_ip_prototype_virtual_network_interface_i_ps_context_model_json['auto_delete'] = False - virtual_network_interface_ip_prototype_reserved_ip_prototype_virtual_network_interface_i_ps_context_model_json['name'] = 'my-reserved-ip' + virtual_network_interface_ip_prototype_reserved_ip_prototype_virtual_network_interface_i_ps_context_model_json = ( + {} + ) + virtual_network_interface_ip_prototype_reserved_ip_prototype_virtual_network_interface_i_ps_context_model_json[ + 'address' + ] = '192.168.3.4' + virtual_network_interface_ip_prototype_reserved_ip_prototype_virtual_network_interface_i_ps_context_model_json[ + 'auto_delete' + ] = False + virtual_network_interface_ip_prototype_reserved_ip_prototype_virtual_network_interface_i_ps_context_model_json[ + 'name' + ] = 'my-reserved-ip' # Construct a model instance of VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext by calling from_dict on the json representation - virtual_network_interface_ip_prototype_reserved_ip_prototype_virtual_network_interface_i_ps_context_model = VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext.from_dict(virtual_network_interface_ip_prototype_reserved_ip_prototype_virtual_network_interface_i_ps_context_model_json) - assert virtual_network_interface_ip_prototype_reserved_ip_prototype_virtual_network_interface_i_ps_context_model != False + virtual_network_interface_ip_prototype_reserved_ip_prototype_virtual_network_interface_i_ps_context_model = VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext.from_dict( + virtual_network_interface_ip_prototype_reserved_ip_prototype_virtual_network_interface_i_ps_context_model_json + ) + assert ( + virtual_network_interface_ip_prototype_reserved_ip_prototype_virtual_network_interface_i_ps_context_model + != False + ) # Construct a model instance of VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext by calling from_dict on the json representation - virtual_network_interface_ip_prototype_reserved_ip_prototype_virtual_network_interface_i_ps_context_model_dict = VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext.from_dict(virtual_network_interface_ip_prototype_reserved_ip_prototype_virtual_network_interface_i_ps_context_model_json).__dict__ - virtual_network_interface_ip_prototype_reserved_ip_prototype_virtual_network_interface_i_ps_context_model2 = VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext(**virtual_network_interface_ip_prototype_reserved_ip_prototype_virtual_network_interface_i_ps_context_model_dict) + virtual_network_interface_ip_prototype_reserved_ip_prototype_virtual_network_interface_i_ps_context_model_dict = VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext.from_dict( + virtual_network_interface_ip_prototype_reserved_ip_prototype_virtual_network_interface_i_ps_context_model_json + ).__dict__ + virtual_network_interface_ip_prototype_reserved_ip_prototype_virtual_network_interface_i_ps_context_model2 = VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext( + **virtual_network_interface_ip_prototype_reserved_ip_prototype_virtual_network_interface_i_ps_context_model_dict + ) # Verify the model instances are equivalent - assert virtual_network_interface_ip_prototype_reserved_ip_prototype_virtual_network_interface_i_ps_context_model == virtual_network_interface_ip_prototype_reserved_ip_prototype_virtual_network_interface_i_ps_context_model2 + assert ( + virtual_network_interface_ip_prototype_reserved_ip_prototype_virtual_network_interface_i_ps_context_model + == virtual_network_interface_ip_prototype_reserved_ip_prototype_virtual_network_interface_i_ps_context_model2 + ) # Convert model instance back to dict and verify no loss of data - virtual_network_interface_ip_prototype_reserved_ip_prototype_virtual_network_interface_i_ps_context_model_json2 = virtual_network_interface_ip_prototype_reserved_ip_prototype_virtual_network_interface_i_ps_context_model.to_dict() - assert virtual_network_interface_ip_prototype_reserved_ip_prototype_virtual_network_interface_i_ps_context_model_json2 == virtual_network_interface_ip_prototype_reserved_ip_prototype_virtual_network_interface_i_ps_context_model_json + virtual_network_interface_ip_prototype_reserved_ip_prototype_virtual_network_interface_i_ps_context_model_json2 = ( + virtual_network_interface_ip_prototype_reserved_ip_prototype_virtual_network_interface_i_ps_context_model.to_dict() + ) + assert ( + virtual_network_interface_ip_prototype_reserved_ip_prototype_virtual_network_interface_i_ps_context_model_json2 + == virtual_network_interface_ip_prototype_reserved_ip_prototype_virtual_network_interface_i_ps_context_model_json + ) class TestModel_VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext: @@ -94145,31 +105721,58 @@ class TestModel_VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirt Test Class for VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext """ - def test_virtual_network_interface_primary_ip_prototype_reserved_ip_prototype_virtual_network_interface_primary_ip_context_serialization(self): + def test_virtual_network_interface_primary_ip_prototype_reserved_ip_prototype_virtual_network_interface_primary_ip_context_serialization( + self, + ): """ Test serialization/deserialization for VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext """ # Construct a json representation of a VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext model - virtual_network_interface_primary_ip_prototype_reserved_ip_prototype_virtual_network_interface_primary_ip_context_model_json = {} - virtual_network_interface_primary_ip_prototype_reserved_ip_prototype_virtual_network_interface_primary_ip_context_model_json['address'] = '192.168.3.4' - virtual_network_interface_primary_ip_prototype_reserved_ip_prototype_virtual_network_interface_primary_ip_context_model_json['auto_delete'] = False - virtual_network_interface_primary_ip_prototype_reserved_ip_prototype_virtual_network_interface_primary_ip_context_model_json['name'] = 'my-reserved-ip' + virtual_network_interface_primary_ip_prototype_reserved_ip_prototype_virtual_network_interface_primary_ip_context_model_json = ( + {} + ) + virtual_network_interface_primary_ip_prototype_reserved_ip_prototype_virtual_network_interface_primary_ip_context_model_json[ + 'address' + ] = '192.168.3.4' + virtual_network_interface_primary_ip_prototype_reserved_ip_prototype_virtual_network_interface_primary_ip_context_model_json[ + 'auto_delete' + ] = False + virtual_network_interface_primary_ip_prototype_reserved_ip_prototype_virtual_network_interface_primary_ip_context_model_json[ + 'name' + ] = 'my-reserved-ip' # Construct a model instance of VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext by calling from_dict on the json representation - virtual_network_interface_primary_ip_prototype_reserved_ip_prototype_virtual_network_interface_primary_ip_context_model = VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext.from_dict(virtual_network_interface_primary_ip_prototype_reserved_ip_prototype_virtual_network_interface_primary_ip_context_model_json) - assert virtual_network_interface_primary_ip_prototype_reserved_ip_prototype_virtual_network_interface_primary_ip_context_model != False + virtual_network_interface_primary_ip_prototype_reserved_ip_prototype_virtual_network_interface_primary_ip_context_model = VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext.from_dict( + virtual_network_interface_primary_ip_prototype_reserved_ip_prototype_virtual_network_interface_primary_ip_context_model_json + ) + assert ( + virtual_network_interface_primary_ip_prototype_reserved_ip_prototype_virtual_network_interface_primary_ip_context_model + != False + ) # Construct a model instance of VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext by calling from_dict on the json representation - virtual_network_interface_primary_ip_prototype_reserved_ip_prototype_virtual_network_interface_primary_ip_context_model_dict = VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext.from_dict(virtual_network_interface_primary_ip_prototype_reserved_ip_prototype_virtual_network_interface_primary_ip_context_model_json).__dict__ - virtual_network_interface_primary_ip_prototype_reserved_ip_prototype_virtual_network_interface_primary_ip_context_model2 = VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext(**virtual_network_interface_primary_ip_prototype_reserved_ip_prototype_virtual_network_interface_primary_ip_context_model_dict) + virtual_network_interface_primary_ip_prototype_reserved_ip_prototype_virtual_network_interface_primary_ip_context_model_dict = VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext.from_dict( + virtual_network_interface_primary_ip_prototype_reserved_ip_prototype_virtual_network_interface_primary_ip_context_model_json + ).__dict__ + virtual_network_interface_primary_ip_prototype_reserved_ip_prototype_virtual_network_interface_primary_ip_context_model2 = VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext( + **virtual_network_interface_primary_ip_prototype_reserved_ip_prototype_virtual_network_interface_primary_ip_context_model_dict + ) # Verify the model instances are equivalent - assert virtual_network_interface_primary_ip_prototype_reserved_ip_prototype_virtual_network_interface_primary_ip_context_model == virtual_network_interface_primary_ip_prototype_reserved_ip_prototype_virtual_network_interface_primary_ip_context_model2 + assert ( + virtual_network_interface_primary_ip_prototype_reserved_ip_prototype_virtual_network_interface_primary_ip_context_model + == virtual_network_interface_primary_ip_prototype_reserved_ip_prototype_virtual_network_interface_primary_ip_context_model2 + ) # Convert model instance back to dict and verify no loss of data - virtual_network_interface_primary_ip_prototype_reserved_ip_prototype_virtual_network_interface_primary_ip_context_model_json2 = virtual_network_interface_primary_ip_prototype_reserved_ip_prototype_virtual_network_interface_primary_ip_context_model.to_dict() - assert virtual_network_interface_primary_ip_prototype_reserved_ip_prototype_virtual_network_interface_primary_ip_context_model_json2 == virtual_network_interface_primary_ip_prototype_reserved_ip_prototype_virtual_network_interface_primary_ip_context_model_json + virtual_network_interface_primary_ip_prototype_reserved_ip_prototype_virtual_network_interface_primary_ip_context_model_json2 = ( + virtual_network_interface_primary_ip_prototype_reserved_ip_prototype_virtual_network_interface_primary_ip_context_model.to_dict() + ) + assert ( + virtual_network_interface_primary_ip_prototype_reserved_ip_prototype_virtual_network_interface_primary_ip_context_model_json2 + == virtual_network_interface_primary_ip_prototype_reserved_ip_prototype_virtual_network_interface_primary_ip_context_model_json + ) class TestModel_VirtualNetworkInterfaceTargetBareMetalServerNetworkAttachmentReferenceVirtualNetworkInterfaceContext: @@ -94177,32 +105780,61 @@ class TestModel_VirtualNetworkInterfaceTargetBareMetalServerNetworkAttachmentRef Test Class for VirtualNetworkInterfaceTargetBareMetalServerNetworkAttachmentReferenceVirtualNetworkInterfaceContext """ - def test_virtual_network_interface_target_bare_metal_server_network_attachment_reference_virtual_network_interface_context_serialization(self): + def test_virtual_network_interface_target_bare_metal_server_network_attachment_reference_virtual_network_interface_context_serialization( + self, + ): """ Test serialization/deserialization for VirtualNetworkInterfaceTargetBareMetalServerNetworkAttachmentReferenceVirtualNetworkInterfaceContext """ # Construct a json representation of a VirtualNetworkInterfaceTargetBareMetalServerNetworkAttachmentReferenceVirtualNetworkInterfaceContext model - virtual_network_interface_target_bare_metal_server_network_attachment_reference_virtual_network_interface_context_model_json = {} - virtual_network_interface_target_bare_metal_server_network_attachment_reference_virtual_network_interface_context_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/bare_metal_servers/0717-aad10fd7-8a02-4f3e-97f3-b18bd82cf304/network_attachments/0717-da8c43ec-b6ca-4bd2-871e-72e288c66ee6' - virtual_network_interface_target_bare_metal_server_network_attachment_reference_virtual_network_interface_context_model_json['id'] = '0717-da8c43ec-b6ca-4bd2-871e-72e288c66ee6' - virtual_network_interface_target_bare_metal_server_network_attachment_reference_virtual_network_interface_context_model_json['name'] = 'my-bare-metal-server-network-attachment' - virtual_network_interface_target_bare_metal_server_network_attachment_reference_virtual_network_interface_context_model_json['resource_type'] = 'bare_metal_server_network_attachment' + virtual_network_interface_target_bare_metal_server_network_attachment_reference_virtual_network_interface_context_model_json = ( + {} + ) + virtual_network_interface_target_bare_metal_server_network_attachment_reference_virtual_network_interface_context_model_json[ + 'href' + ] = 'https://us-south.iaas.cloud.ibm.com/v1/bare_metal_servers/0717-aad10fd7-8a02-4f3e-97f3-b18bd82cf304/network_attachments/0717-da8c43ec-b6ca-4bd2-871e-72e288c66ee6' + virtual_network_interface_target_bare_metal_server_network_attachment_reference_virtual_network_interface_context_model_json[ + 'id' + ] = '0717-da8c43ec-b6ca-4bd2-871e-72e288c66ee6' + virtual_network_interface_target_bare_metal_server_network_attachment_reference_virtual_network_interface_context_model_json[ + 'name' + ] = 'my-bare-metal-server-network-attachment' + virtual_network_interface_target_bare_metal_server_network_attachment_reference_virtual_network_interface_context_model_json[ + 'resource_type' + ] = 'bare_metal_server_network_attachment' # Construct a model instance of VirtualNetworkInterfaceTargetBareMetalServerNetworkAttachmentReferenceVirtualNetworkInterfaceContext by calling from_dict on the json representation - virtual_network_interface_target_bare_metal_server_network_attachment_reference_virtual_network_interface_context_model = VirtualNetworkInterfaceTargetBareMetalServerNetworkAttachmentReferenceVirtualNetworkInterfaceContext.from_dict(virtual_network_interface_target_bare_metal_server_network_attachment_reference_virtual_network_interface_context_model_json) - assert virtual_network_interface_target_bare_metal_server_network_attachment_reference_virtual_network_interface_context_model != False + virtual_network_interface_target_bare_metal_server_network_attachment_reference_virtual_network_interface_context_model = VirtualNetworkInterfaceTargetBareMetalServerNetworkAttachmentReferenceVirtualNetworkInterfaceContext.from_dict( + virtual_network_interface_target_bare_metal_server_network_attachment_reference_virtual_network_interface_context_model_json + ) + assert ( + virtual_network_interface_target_bare_metal_server_network_attachment_reference_virtual_network_interface_context_model + != False + ) # Construct a model instance of VirtualNetworkInterfaceTargetBareMetalServerNetworkAttachmentReferenceVirtualNetworkInterfaceContext by calling from_dict on the json representation - virtual_network_interface_target_bare_metal_server_network_attachment_reference_virtual_network_interface_context_model_dict = VirtualNetworkInterfaceTargetBareMetalServerNetworkAttachmentReferenceVirtualNetworkInterfaceContext.from_dict(virtual_network_interface_target_bare_metal_server_network_attachment_reference_virtual_network_interface_context_model_json).__dict__ - virtual_network_interface_target_bare_metal_server_network_attachment_reference_virtual_network_interface_context_model2 = VirtualNetworkInterfaceTargetBareMetalServerNetworkAttachmentReferenceVirtualNetworkInterfaceContext(**virtual_network_interface_target_bare_metal_server_network_attachment_reference_virtual_network_interface_context_model_dict) + virtual_network_interface_target_bare_metal_server_network_attachment_reference_virtual_network_interface_context_model_dict = VirtualNetworkInterfaceTargetBareMetalServerNetworkAttachmentReferenceVirtualNetworkInterfaceContext.from_dict( + virtual_network_interface_target_bare_metal_server_network_attachment_reference_virtual_network_interface_context_model_json + ).__dict__ + virtual_network_interface_target_bare_metal_server_network_attachment_reference_virtual_network_interface_context_model2 = VirtualNetworkInterfaceTargetBareMetalServerNetworkAttachmentReferenceVirtualNetworkInterfaceContext( + **virtual_network_interface_target_bare_metal_server_network_attachment_reference_virtual_network_interface_context_model_dict + ) # Verify the model instances are equivalent - assert virtual_network_interface_target_bare_metal_server_network_attachment_reference_virtual_network_interface_context_model == virtual_network_interface_target_bare_metal_server_network_attachment_reference_virtual_network_interface_context_model2 + assert ( + virtual_network_interface_target_bare_metal_server_network_attachment_reference_virtual_network_interface_context_model + == virtual_network_interface_target_bare_metal_server_network_attachment_reference_virtual_network_interface_context_model2 + ) # Convert model instance back to dict and verify no loss of data - virtual_network_interface_target_bare_metal_server_network_attachment_reference_virtual_network_interface_context_model_json2 = virtual_network_interface_target_bare_metal_server_network_attachment_reference_virtual_network_interface_context_model.to_dict() - assert virtual_network_interface_target_bare_metal_server_network_attachment_reference_virtual_network_interface_context_model_json2 == virtual_network_interface_target_bare_metal_server_network_attachment_reference_virtual_network_interface_context_model_json + virtual_network_interface_target_bare_metal_server_network_attachment_reference_virtual_network_interface_context_model_json2 = ( + virtual_network_interface_target_bare_metal_server_network_attachment_reference_virtual_network_interface_context_model.to_dict() + ) + assert ( + virtual_network_interface_target_bare_metal_server_network_attachment_reference_virtual_network_interface_context_model_json2 + == virtual_network_interface_target_bare_metal_server_network_attachment_reference_virtual_network_interface_context_model_json + ) class TestModel_VirtualNetworkInterfaceTargetInstanceNetworkAttachmentReferenceVirtualNetworkInterfaceContext: @@ -94210,32 +105842,61 @@ class TestModel_VirtualNetworkInterfaceTargetInstanceNetworkAttachmentReferenceV Test Class for VirtualNetworkInterfaceTargetInstanceNetworkAttachmentReferenceVirtualNetworkInterfaceContext """ - def test_virtual_network_interface_target_instance_network_attachment_reference_virtual_network_interface_context_serialization(self): + def test_virtual_network_interface_target_instance_network_attachment_reference_virtual_network_interface_context_serialization( + self, + ): """ Test serialization/deserialization for VirtualNetworkInterfaceTargetInstanceNetworkAttachmentReferenceVirtualNetworkInterfaceContext """ # Construct a json representation of a VirtualNetworkInterfaceTargetInstanceNetworkAttachmentReferenceVirtualNetworkInterfaceContext model - virtual_network_interface_target_instance_network_attachment_reference_virtual_network_interface_context_model_json = {} - virtual_network_interface_target_instance_network_attachment_reference_virtual_network_interface_context_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/network_attachments/0717-d54eb633-98ea-459d-aa00-6a8e780175a7' - virtual_network_interface_target_instance_network_attachment_reference_virtual_network_interface_context_model_json['id'] = '0717-d54eb633-98ea-459d-aa00-6a8e780175a7' - virtual_network_interface_target_instance_network_attachment_reference_virtual_network_interface_context_model_json['name'] = 'my-instance-network-attachment' - virtual_network_interface_target_instance_network_attachment_reference_virtual_network_interface_context_model_json['resource_type'] = 'instance_network_attachment' + virtual_network_interface_target_instance_network_attachment_reference_virtual_network_interface_context_model_json = ( + {} + ) + virtual_network_interface_target_instance_network_attachment_reference_virtual_network_interface_context_model_json[ + 'href' + ] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/network_attachments/0717-d54eb633-98ea-459d-aa00-6a8e780175a7' + virtual_network_interface_target_instance_network_attachment_reference_virtual_network_interface_context_model_json[ + 'id' + ] = '0717-d54eb633-98ea-459d-aa00-6a8e780175a7' + virtual_network_interface_target_instance_network_attachment_reference_virtual_network_interface_context_model_json[ + 'name' + ] = 'my-instance-network-attachment' + virtual_network_interface_target_instance_network_attachment_reference_virtual_network_interface_context_model_json[ + 'resource_type' + ] = 'instance_network_attachment' # Construct a model instance of VirtualNetworkInterfaceTargetInstanceNetworkAttachmentReferenceVirtualNetworkInterfaceContext by calling from_dict on the json representation - virtual_network_interface_target_instance_network_attachment_reference_virtual_network_interface_context_model = VirtualNetworkInterfaceTargetInstanceNetworkAttachmentReferenceVirtualNetworkInterfaceContext.from_dict(virtual_network_interface_target_instance_network_attachment_reference_virtual_network_interface_context_model_json) - assert virtual_network_interface_target_instance_network_attachment_reference_virtual_network_interface_context_model != False + virtual_network_interface_target_instance_network_attachment_reference_virtual_network_interface_context_model = VirtualNetworkInterfaceTargetInstanceNetworkAttachmentReferenceVirtualNetworkInterfaceContext.from_dict( + virtual_network_interface_target_instance_network_attachment_reference_virtual_network_interface_context_model_json + ) + assert ( + virtual_network_interface_target_instance_network_attachment_reference_virtual_network_interface_context_model + != False + ) # Construct a model instance of VirtualNetworkInterfaceTargetInstanceNetworkAttachmentReferenceVirtualNetworkInterfaceContext by calling from_dict on the json representation - virtual_network_interface_target_instance_network_attachment_reference_virtual_network_interface_context_model_dict = VirtualNetworkInterfaceTargetInstanceNetworkAttachmentReferenceVirtualNetworkInterfaceContext.from_dict(virtual_network_interface_target_instance_network_attachment_reference_virtual_network_interface_context_model_json).__dict__ - virtual_network_interface_target_instance_network_attachment_reference_virtual_network_interface_context_model2 = VirtualNetworkInterfaceTargetInstanceNetworkAttachmentReferenceVirtualNetworkInterfaceContext(**virtual_network_interface_target_instance_network_attachment_reference_virtual_network_interface_context_model_dict) + virtual_network_interface_target_instance_network_attachment_reference_virtual_network_interface_context_model_dict = VirtualNetworkInterfaceTargetInstanceNetworkAttachmentReferenceVirtualNetworkInterfaceContext.from_dict( + virtual_network_interface_target_instance_network_attachment_reference_virtual_network_interface_context_model_json + ).__dict__ + virtual_network_interface_target_instance_network_attachment_reference_virtual_network_interface_context_model2 = VirtualNetworkInterfaceTargetInstanceNetworkAttachmentReferenceVirtualNetworkInterfaceContext( + **virtual_network_interface_target_instance_network_attachment_reference_virtual_network_interface_context_model_dict + ) # Verify the model instances are equivalent - assert virtual_network_interface_target_instance_network_attachment_reference_virtual_network_interface_context_model == virtual_network_interface_target_instance_network_attachment_reference_virtual_network_interface_context_model2 + assert ( + virtual_network_interface_target_instance_network_attachment_reference_virtual_network_interface_context_model + == virtual_network_interface_target_instance_network_attachment_reference_virtual_network_interface_context_model2 + ) # Convert model instance back to dict and verify no loss of data - virtual_network_interface_target_instance_network_attachment_reference_virtual_network_interface_context_model_json2 = virtual_network_interface_target_instance_network_attachment_reference_virtual_network_interface_context_model.to_dict() - assert virtual_network_interface_target_instance_network_attachment_reference_virtual_network_interface_context_model_json2 == virtual_network_interface_target_instance_network_attachment_reference_virtual_network_interface_context_model_json + virtual_network_interface_target_instance_network_attachment_reference_virtual_network_interface_context_model_json2 = ( + virtual_network_interface_target_instance_network_attachment_reference_virtual_network_interface_context_model.to_dict() + ) + assert ( + virtual_network_interface_target_instance_network_attachment_reference_virtual_network_interface_context_model_json2 + == virtual_network_interface_target_instance_network_attachment_reference_virtual_network_interface_context_model_json + ) class TestModel_VirtualNetworkInterfaceTargetShareMountTargetReference: @@ -94256,25 +105917,49 @@ def test_virtual_network_interface_target_share_mount_target_reference_serializa # Construct a json representation of a VirtualNetworkInterfaceTargetShareMountTargetReference model virtual_network_interface_target_share_mount_target_reference_model_json = {} virtual_network_interface_target_share_mount_target_reference_model_json['deleted'] = deleted_model - virtual_network_interface_target_share_mount_target_reference_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/shares/r006-0fe9e5d8-0a4d-4818-96ec-e99708644a58/mount_targets/4cf9171a-0043-4434-8727-15b53dbc374c' - virtual_network_interface_target_share_mount_target_reference_model_json['id'] = '4cf9171a-0043-4434-8727-15b53dbc374c' + virtual_network_interface_target_share_mount_target_reference_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/shares/r006-0fe9e5d8-0a4d-4818-96ec-e99708644a58/mount_targets/4cf9171a-0043-4434-8727-15b53dbc374c' + ) + virtual_network_interface_target_share_mount_target_reference_model_json['id'] = ( + '4cf9171a-0043-4434-8727-15b53dbc374c' + ) virtual_network_interface_target_share_mount_target_reference_model_json['name'] = 'my-share-mount-target' virtual_network_interface_target_share_mount_target_reference_model_json['resource_type'] = 'share_mount_target' # Construct a model instance of VirtualNetworkInterfaceTargetShareMountTargetReference by calling from_dict on the json representation - virtual_network_interface_target_share_mount_target_reference_model = VirtualNetworkInterfaceTargetShareMountTargetReference.from_dict(virtual_network_interface_target_share_mount_target_reference_model_json) + virtual_network_interface_target_share_mount_target_reference_model = ( + VirtualNetworkInterfaceTargetShareMountTargetReference.from_dict( + virtual_network_interface_target_share_mount_target_reference_model_json + ) + ) assert virtual_network_interface_target_share_mount_target_reference_model != False # Construct a model instance of VirtualNetworkInterfaceTargetShareMountTargetReference by calling from_dict on the json representation - virtual_network_interface_target_share_mount_target_reference_model_dict = VirtualNetworkInterfaceTargetShareMountTargetReference.from_dict(virtual_network_interface_target_share_mount_target_reference_model_json).__dict__ - virtual_network_interface_target_share_mount_target_reference_model2 = VirtualNetworkInterfaceTargetShareMountTargetReference(**virtual_network_interface_target_share_mount_target_reference_model_dict) + virtual_network_interface_target_share_mount_target_reference_model_dict = ( + VirtualNetworkInterfaceTargetShareMountTargetReference.from_dict( + virtual_network_interface_target_share_mount_target_reference_model_json + ).__dict__ + ) + virtual_network_interface_target_share_mount_target_reference_model2 = ( + VirtualNetworkInterfaceTargetShareMountTargetReference( + **virtual_network_interface_target_share_mount_target_reference_model_dict + ) + ) # Verify the model instances are equivalent - assert virtual_network_interface_target_share_mount_target_reference_model == virtual_network_interface_target_share_mount_target_reference_model2 + assert ( + virtual_network_interface_target_share_mount_target_reference_model + == virtual_network_interface_target_share_mount_target_reference_model2 + ) # Convert model instance back to dict and verify no loss of data - virtual_network_interface_target_share_mount_target_reference_model_json2 = virtual_network_interface_target_share_mount_target_reference_model.to_dict() - assert virtual_network_interface_target_share_mount_target_reference_model_json2 == virtual_network_interface_target_share_mount_target_reference_model_json + virtual_network_interface_target_share_mount_target_reference_model_json2 = ( + virtual_network_interface_target_share_mount_target_reference_model.to_dict() + ) + assert ( + virtual_network_interface_target_share_mount_target_reference_model_json2 + == virtual_network_interface_target_share_mount_target_reference_model_json + ) class TestModel_VolumeIdentityByCRN: @@ -94289,7 +105974,9 @@ def test_volume_identity_by_crn_serialization(self): # Construct a json representation of a VolumeIdentityByCRN model volume_identity_by_crn_model_json = {} - volume_identity_by_crn_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::volume:r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' + volume_identity_by_crn_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::volume:r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' + ) # Construct a model instance of VolumeIdentityByCRN by calling from_dict on the json representation volume_identity_by_crn_model = VolumeIdentityByCRN.from_dict(volume_identity_by_crn_model_json) @@ -94319,7 +106006,9 @@ def test_volume_identity_by_href_serialization(self): # Construct a json representation of a VolumeIdentityByHref model volume_identity_by_href_model_json = {} - volume_identity_by_href_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/volumes/r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' + volume_identity_by_href_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/volumes/r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' + ) # Construct a model instance of VolumeIdentityByHref by calling from_dict on the json representation volume_identity_by_href_model = VolumeIdentityByHref.from_dict(volume_identity_by_href_model_json) @@ -94385,19 +106074,30 @@ def test_volume_profile_boot_capacity_dependent_range_serialization(self): volume_profile_boot_capacity_dependent_range_model_json['type'] = 'dependent_range' # Construct a model instance of VolumeProfileBootCapacityDependentRange by calling from_dict on the json representation - volume_profile_boot_capacity_dependent_range_model = VolumeProfileBootCapacityDependentRange.from_dict(volume_profile_boot_capacity_dependent_range_model_json) + volume_profile_boot_capacity_dependent_range_model = VolumeProfileBootCapacityDependentRange.from_dict( + volume_profile_boot_capacity_dependent_range_model_json + ) assert volume_profile_boot_capacity_dependent_range_model != False # Construct a model instance of VolumeProfileBootCapacityDependentRange by calling from_dict on the json representation - volume_profile_boot_capacity_dependent_range_model_dict = VolumeProfileBootCapacityDependentRange.from_dict(volume_profile_boot_capacity_dependent_range_model_json).__dict__ - volume_profile_boot_capacity_dependent_range_model2 = VolumeProfileBootCapacityDependentRange(**volume_profile_boot_capacity_dependent_range_model_dict) + volume_profile_boot_capacity_dependent_range_model_dict = VolumeProfileBootCapacityDependentRange.from_dict( + volume_profile_boot_capacity_dependent_range_model_json + ).__dict__ + volume_profile_boot_capacity_dependent_range_model2 = VolumeProfileBootCapacityDependentRange( + **volume_profile_boot_capacity_dependent_range_model_dict + ) # Verify the model instances are equivalent assert volume_profile_boot_capacity_dependent_range_model == volume_profile_boot_capacity_dependent_range_model2 # Convert model instance back to dict and verify no loss of data - volume_profile_boot_capacity_dependent_range_model_json2 = volume_profile_boot_capacity_dependent_range_model.to_dict() - assert volume_profile_boot_capacity_dependent_range_model_json2 == volume_profile_boot_capacity_dependent_range_model_json + volume_profile_boot_capacity_dependent_range_model_json2 = ( + volume_profile_boot_capacity_dependent_range_model.to_dict() + ) + assert ( + volume_profile_boot_capacity_dependent_range_model_json2 + == volume_profile_boot_capacity_dependent_range_model_json + ) class TestModel_VolumeProfileBootCapacityEnum: @@ -94417,12 +106117,18 @@ def test_volume_profile_boot_capacity_enum_serialization(self): volume_profile_boot_capacity_enum_model_json['values'] = [4800, 9600, 16000, 32000] # Construct a model instance of VolumeProfileBootCapacityEnum by calling from_dict on the json representation - volume_profile_boot_capacity_enum_model = VolumeProfileBootCapacityEnum.from_dict(volume_profile_boot_capacity_enum_model_json) + volume_profile_boot_capacity_enum_model = VolumeProfileBootCapacityEnum.from_dict( + volume_profile_boot_capacity_enum_model_json + ) assert volume_profile_boot_capacity_enum_model != False # Construct a model instance of VolumeProfileBootCapacityEnum by calling from_dict on the json representation - volume_profile_boot_capacity_enum_model_dict = VolumeProfileBootCapacityEnum.from_dict(volume_profile_boot_capacity_enum_model_json).__dict__ - volume_profile_boot_capacity_enum_model2 = VolumeProfileBootCapacityEnum(**volume_profile_boot_capacity_enum_model_dict) + volume_profile_boot_capacity_enum_model_dict = VolumeProfileBootCapacityEnum.from_dict( + volume_profile_boot_capacity_enum_model_json + ).__dict__ + volume_profile_boot_capacity_enum_model2 = VolumeProfileBootCapacityEnum( + **volume_profile_boot_capacity_enum_model_dict + ) # Verify the model instances are equivalent assert volume_profile_boot_capacity_enum_model == volume_profile_boot_capacity_enum_model2 @@ -94448,12 +106154,18 @@ def test_volume_profile_boot_capacity_fixed_serialization(self): volume_profile_boot_capacity_fixed_model_json['value'] = 4800 # Construct a model instance of VolumeProfileBootCapacityFixed by calling from_dict on the json representation - volume_profile_boot_capacity_fixed_model = VolumeProfileBootCapacityFixed.from_dict(volume_profile_boot_capacity_fixed_model_json) + volume_profile_boot_capacity_fixed_model = VolumeProfileBootCapacityFixed.from_dict( + volume_profile_boot_capacity_fixed_model_json + ) assert volume_profile_boot_capacity_fixed_model != False # Construct a model instance of VolumeProfileBootCapacityFixed by calling from_dict on the json representation - volume_profile_boot_capacity_fixed_model_dict = VolumeProfileBootCapacityFixed.from_dict(volume_profile_boot_capacity_fixed_model_json).__dict__ - volume_profile_boot_capacity_fixed_model2 = VolumeProfileBootCapacityFixed(**volume_profile_boot_capacity_fixed_model_dict) + volume_profile_boot_capacity_fixed_model_dict = VolumeProfileBootCapacityFixed.from_dict( + volume_profile_boot_capacity_fixed_model_json + ).__dict__ + volume_profile_boot_capacity_fixed_model2 = VolumeProfileBootCapacityFixed( + **volume_profile_boot_capacity_fixed_model_dict + ) # Verify the model instances are equivalent assert volume_profile_boot_capacity_fixed_model == volume_profile_boot_capacity_fixed_model2 @@ -94482,12 +106194,18 @@ def test_volume_profile_boot_capacity_range_serialization(self): volume_profile_boot_capacity_range_model_json['type'] = 'range' # Construct a model instance of VolumeProfileBootCapacityRange by calling from_dict on the json representation - volume_profile_boot_capacity_range_model = VolumeProfileBootCapacityRange.from_dict(volume_profile_boot_capacity_range_model_json) + volume_profile_boot_capacity_range_model = VolumeProfileBootCapacityRange.from_dict( + volume_profile_boot_capacity_range_model_json + ) assert volume_profile_boot_capacity_range_model != False # Construct a model instance of VolumeProfileBootCapacityRange by calling from_dict on the json representation - volume_profile_boot_capacity_range_model_dict = VolumeProfileBootCapacityRange.from_dict(volume_profile_boot_capacity_range_model_json).__dict__ - volume_profile_boot_capacity_range_model2 = VolumeProfileBootCapacityRange(**volume_profile_boot_capacity_range_model_dict) + volume_profile_boot_capacity_range_model_dict = VolumeProfileBootCapacityRange.from_dict( + volume_profile_boot_capacity_range_model_json + ).__dict__ + volume_profile_boot_capacity_range_model2 = VolumeProfileBootCapacityRange( + **volume_profile_boot_capacity_range_model_dict + ) # Verify the model instances are equivalent assert volume_profile_boot_capacity_range_model == volume_profile_boot_capacity_range_model2 @@ -94515,12 +106233,18 @@ def test_volume_profile_capacity_dependent_range_serialization(self): volume_profile_capacity_dependent_range_model_json['type'] = 'dependent_range' # Construct a model instance of VolumeProfileCapacityDependentRange by calling from_dict on the json representation - volume_profile_capacity_dependent_range_model = VolumeProfileCapacityDependentRange.from_dict(volume_profile_capacity_dependent_range_model_json) + volume_profile_capacity_dependent_range_model = VolumeProfileCapacityDependentRange.from_dict( + volume_profile_capacity_dependent_range_model_json + ) assert volume_profile_capacity_dependent_range_model != False # Construct a model instance of VolumeProfileCapacityDependentRange by calling from_dict on the json representation - volume_profile_capacity_dependent_range_model_dict = VolumeProfileCapacityDependentRange.from_dict(volume_profile_capacity_dependent_range_model_json).__dict__ - volume_profile_capacity_dependent_range_model2 = VolumeProfileCapacityDependentRange(**volume_profile_capacity_dependent_range_model_dict) + volume_profile_capacity_dependent_range_model_dict = VolumeProfileCapacityDependentRange.from_dict( + volume_profile_capacity_dependent_range_model_json + ).__dict__ + volume_profile_capacity_dependent_range_model2 = VolumeProfileCapacityDependentRange( + **volume_profile_capacity_dependent_range_model_dict + ) # Verify the model instances are equivalent assert volume_profile_capacity_dependent_range_model == volume_profile_capacity_dependent_range_model2 @@ -94547,11 +106271,15 @@ def test_volume_profile_capacity_enum_serialization(self): volume_profile_capacity_enum_model_json['values'] = [4800, 9600, 16000, 32000] # Construct a model instance of VolumeProfileCapacityEnum by calling from_dict on the json representation - volume_profile_capacity_enum_model = VolumeProfileCapacityEnum.from_dict(volume_profile_capacity_enum_model_json) + volume_profile_capacity_enum_model = VolumeProfileCapacityEnum.from_dict( + volume_profile_capacity_enum_model_json + ) assert volume_profile_capacity_enum_model != False # Construct a model instance of VolumeProfileCapacityEnum by calling from_dict on the json representation - volume_profile_capacity_enum_model_dict = VolumeProfileCapacityEnum.from_dict(volume_profile_capacity_enum_model_json).__dict__ + volume_profile_capacity_enum_model_dict = VolumeProfileCapacityEnum.from_dict( + volume_profile_capacity_enum_model_json + ).__dict__ volume_profile_capacity_enum_model2 = VolumeProfileCapacityEnum(**volume_profile_capacity_enum_model_dict) # Verify the model instances are equivalent @@ -94578,11 +106306,15 @@ def test_volume_profile_capacity_fixed_serialization(self): volume_profile_capacity_fixed_model_json['value'] = 4800 # Construct a model instance of VolumeProfileCapacityFixed by calling from_dict on the json representation - volume_profile_capacity_fixed_model = VolumeProfileCapacityFixed.from_dict(volume_profile_capacity_fixed_model_json) + volume_profile_capacity_fixed_model = VolumeProfileCapacityFixed.from_dict( + volume_profile_capacity_fixed_model_json + ) assert volume_profile_capacity_fixed_model != False # Construct a model instance of VolumeProfileCapacityFixed by calling from_dict on the json representation - volume_profile_capacity_fixed_model_dict = VolumeProfileCapacityFixed.from_dict(volume_profile_capacity_fixed_model_json).__dict__ + volume_profile_capacity_fixed_model_dict = VolumeProfileCapacityFixed.from_dict( + volume_profile_capacity_fixed_model_json + ).__dict__ volume_profile_capacity_fixed_model2 = VolumeProfileCapacityFixed(**volume_profile_capacity_fixed_model_dict) # Verify the model instances are equivalent @@ -94612,11 +106344,15 @@ def test_volume_profile_capacity_range_serialization(self): volume_profile_capacity_range_model_json['type'] = 'range' # Construct a model instance of VolumeProfileCapacityRange by calling from_dict on the json representation - volume_profile_capacity_range_model = VolumeProfileCapacityRange.from_dict(volume_profile_capacity_range_model_json) + volume_profile_capacity_range_model = VolumeProfileCapacityRange.from_dict( + volume_profile_capacity_range_model_json + ) assert volume_profile_capacity_range_model != False # Construct a model instance of VolumeProfileCapacityRange by calling from_dict on the json representation - volume_profile_capacity_range_model_dict = VolumeProfileCapacityRange.from_dict(volume_profile_capacity_range_model_json).__dict__ + volume_profile_capacity_range_model_dict = VolumeProfileCapacityRange.from_dict( + volume_profile_capacity_range_model_json + ).__dict__ volume_profile_capacity_range_model2 = VolumeProfileCapacityRange(**volume_profile_capacity_range_model_dict) # Verify the model instances are equivalent @@ -94645,12 +106381,18 @@ def test_volume_profile_iops_dependent_range_serialization(self): volume_profile_iops_dependent_range_model_json['type'] = 'dependent_range' # Construct a model instance of VolumeProfileIOPSDependentRange by calling from_dict on the json representation - volume_profile_iops_dependent_range_model = VolumeProfileIOPSDependentRange.from_dict(volume_profile_iops_dependent_range_model_json) + volume_profile_iops_dependent_range_model = VolumeProfileIOPSDependentRange.from_dict( + volume_profile_iops_dependent_range_model_json + ) assert volume_profile_iops_dependent_range_model != False # Construct a model instance of VolumeProfileIOPSDependentRange by calling from_dict on the json representation - volume_profile_iops_dependent_range_model_dict = VolumeProfileIOPSDependentRange.from_dict(volume_profile_iops_dependent_range_model_json).__dict__ - volume_profile_iops_dependent_range_model2 = VolumeProfileIOPSDependentRange(**volume_profile_iops_dependent_range_model_dict) + volume_profile_iops_dependent_range_model_dict = VolumeProfileIOPSDependentRange.from_dict( + volume_profile_iops_dependent_range_model_json + ).__dict__ + volume_profile_iops_dependent_range_model2 = VolumeProfileIOPSDependentRange( + **volume_profile_iops_dependent_range_model_dict + ) # Verify the model instances are equivalent assert volume_profile_iops_dependent_range_model == volume_profile_iops_dependent_range_model2 @@ -94681,7 +106423,9 @@ def test_volume_profile_iops_enum_serialization(self): assert volume_profile_iops_enum_model != False # Construct a model instance of VolumeProfileIOPSEnum by calling from_dict on the json representation - volume_profile_iops_enum_model_dict = VolumeProfileIOPSEnum.from_dict(volume_profile_iops_enum_model_json).__dict__ + volume_profile_iops_enum_model_dict = VolumeProfileIOPSEnum.from_dict( + volume_profile_iops_enum_model_json + ).__dict__ volume_profile_iops_enum_model2 = VolumeProfileIOPSEnum(**volume_profile_iops_enum_model_dict) # Verify the model instances are equivalent @@ -94712,7 +106456,9 @@ def test_volume_profile_iops_fixed_serialization(self): assert volume_profile_iops_fixed_model != False # Construct a model instance of VolumeProfileIOPSFixed by calling from_dict on the json representation - volume_profile_iops_fixed_model_dict = VolumeProfileIOPSFixed.from_dict(volume_profile_iops_fixed_model_json).__dict__ + volume_profile_iops_fixed_model_dict = VolumeProfileIOPSFixed.from_dict( + volume_profile_iops_fixed_model_json + ).__dict__ volume_profile_iops_fixed_model2 = VolumeProfileIOPSFixed(**volume_profile_iops_fixed_model_dict) # Verify the model instances are equivalent @@ -94746,7 +106492,9 @@ def test_volume_profile_iops_range_serialization(self): assert volume_profile_iops_range_model != False # Construct a model instance of VolumeProfileIOPSRange by calling from_dict on the json representation - volume_profile_iops_range_model_dict = VolumeProfileIOPSRange.from_dict(volume_profile_iops_range_model_json).__dict__ + volume_profile_iops_range_model_dict = VolumeProfileIOPSRange.from_dict( + volume_profile_iops_range_model_json + ).__dict__ volume_profile_iops_range_model2 = VolumeProfileIOPSRange(**volume_profile_iops_range_model_dict) # Verify the model instances are equivalent @@ -94769,15 +106517,23 @@ def test_volume_profile_identity_by_href_serialization(self): # Construct a json representation of a VolumeProfileIdentityByHref model volume_profile_identity_by_href_model_json = {} - volume_profile_identity_by_href_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/volume/profiles/general-purpose' + volume_profile_identity_by_href_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/volume/profiles/general-purpose' + ) # Construct a model instance of VolumeProfileIdentityByHref by calling from_dict on the json representation - volume_profile_identity_by_href_model = VolumeProfileIdentityByHref.from_dict(volume_profile_identity_by_href_model_json) + volume_profile_identity_by_href_model = VolumeProfileIdentityByHref.from_dict( + volume_profile_identity_by_href_model_json + ) assert volume_profile_identity_by_href_model != False # Construct a model instance of VolumeProfileIdentityByHref by calling from_dict on the json representation - volume_profile_identity_by_href_model_dict = VolumeProfileIdentityByHref.from_dict(volume_profile_identity_by_href_model_json).__dict__ - volume_profile_identity_by_href_model2 = VolumeProfileIdentityByHref(**volume_profile_identity_by_href_model_dict) + volume_profile_identity_by_href_model_dict = VolumeProfileIdentityByHref.from_dict( + volume_profile_identity_by_href_model_json + ).__dict__ + volume_profile_identity_by_href_model2 = VolumeProfileIdentityByHref( + **volume_profile_identity_by_href_model_dict + ) # Verify the model instances are equivalent assert volume_profile_identity_by_href_model == volume_profile_identity_by_href_model2 @@ -94802,12 +106558,18 @@ def test_volume_profile_identity_by_name_serialization(self): volume_profile_identity_by_name_model_json['name'] = 'general-purpose' # Construct a model instance of VolumeProfileIdentityByName by calling from_dict on the json representation - volume_profile_identity_by_name_model = VolumeProfileIdentityByName.from_dict(volume_profile_identity_by_name_model_json) + volume_profile_identity_by_name_model = VolumeProfileIdentityByName.from_dict( + volume_profile_identity_by_name_model_json + ) assert volume_profile_identity_by_name_model != False # Construct a model instance of VolumeProfileIdentityByName by calling from_dict on the json representation - volume_profile_identity_by_name_model_dict = VolumeProfileIdentityByName.from_dict(volume_profile_identity_by_name_model_json).__dict__ - volume_profile_identity_by_name_model2 = VolumeProfileIdentityByName(**volume_profile_identity_by_name_model_dict) + volume_profile_identity_by_name_model_dict = VolumeProfileIdentityByName.from_dict( + volume_profile_identity_by_name_model_json + ).__dict__ + volume_profile_identity_by_name_model2 = VolumeProfileIdentityByName( + **volume_profile_identity_by_name_model_dict + ) # Verify the model instances are equivalent assert volume_profile_identity_by_name_model == volume_profile_identity_by_name_model2 @@ -94839,7 +106601,9 @@ def test_volume_prototype_volume_by_capacity_serialization(self): zone_identity_model['name'] = 'us-south-1' encryption_key_identity_model = {} # EncryptionKeyIdentityByCRN - encryption_key_identity_model['crn'] = 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + encryption_key_identity_model['crn'] = ( + 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + ) # Construct a json representation of a VolumePrototypeVolumeByCapacity model volume_prototype_volume_by_capacity_model_json = {} @@ -94853,12 +106617,18 @@ def test_volume_prototype_volume_by_capacity_serialization(self): volume_prototype_volume_by_capacity_model_json['encryption_key'] = encryption_key_identity_model # Construct a model instance of VolumePrototypeVolumeByCapacity by calling from_dict on the json representation - volume_prototype_volume_by_capacity_model = VolumePrototypeVolumeByCapacity.from_dict(volume_prototype_volume_by_capacity_model_json) + volume_prototype_volume_by_capacity_model = VolumePrototypeVolumeByCapacity.from_dict( + volume_prototype_volume_by_capacity_model_json + ) assert volume_prototype_volume_by_capacity_model != False # Construct a model instance of VolumePrototypeVolumeByCapacity by calling from_dict on the json representation - volume_prototype_volume_by_capacity_model_dict = VolumePrototypeVolumeByCapacity.from_dict(volume_prototype_volume_by_capacity_model_json).__dict__ - volume_prototype_volume_by_capacity_model2 = VolumePrototypeVolumeByCapacity(**volume_prototype_volume_by_capacity_model_dict) + volume_prototype_volume_by_capacity_model_dict = VolumePrototypeVolumeByCapacity.from_dict( + volume_prototype_volume_by_capacity_model_json + ).__dict__ + volume_prototype_volume_by_capacity_model2 = VolumePrototypeVolumeByCapacity( + **volume_prototype_volume_by_capacity_model_dict + ) # Verify the model instances are equivalent assert volume_prototype_volume_by_capacity_model == volume_prototype_volume_by_capacity_model2 @@ -94890,7 +106660,9 @@ def test_volume_prototype_volume_by_source_snapshot_serialization(self): zone_identity_model['name'] = 'us-south-1' encryption_key_identity_model = {} # EncryptionKeyIdentityByCRN - encryption_key_identity_model['crn'] = 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + encryption_key_identity_model['crn'] = ( + 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + ) snapshot_identity_model = {} # SnapshotIdentityById snapshot_identity_model['id'] = 'r134-f6bfa329-0e36-433f-a3bb-0df632e79263' @@ -94908,19 +106680,30 @@ def test_volume_prototype_volume_by_source_snapshot_serialization(self): volume_prototype_volume_by_source_snapshot_model_json['source_snapshot'] = snapshot_identity_model # Construct a model instance of VolumePrototypeVolumeBySourceSnapshot by calling from_dict on the json representation - volume_prototype_volume_by_source_snapshot_model = VolumePrototypeVolumeBySourceSnapshot.from_dict(volume_prototype_volume_by_source_snapshot_model_json) + volume_prototype_volume_by_source_snapshot_model = VolumePrototypeVolumeBySourceSnapshot.from_dict( + volume_prototype_volume_by_source_snapshot_model_json + ) assert volume_prototype_volume_by_source_snapshot_model != False # Construct a model instance of VolumePrototypeVolumeBySourceSnapshot by calling from_dict on the json representation - volume_prototype_volume_by_source_snapshot_model_dict = VolumePrototypeVolumeBySourceSnapshot.from_dict(volume_prototype_volume_by_source_snapshot_model_json).__dict__ - volume_prototype_volume_by_source_snapshot_model2 = VolumePrototypeVolumeBySourceSnapshot(**volume_prototype_volume_by_source_snapshot_model_dict) + volume_prototype_volume_by_source_snapshot_model_dict = VolumePrototypeVolumeBySourceSnapshot.from_dict( + volume_prototype_volume_by_source_snapshot_model_json + ).__dict__ + volume_prototype_volume_by_source_snapshot_model2 = VolumePrototypeVolumeBySourceSnapshot( + **volume_prototype_volume_by_source_snapshot_model_dict + ) # Verify the model instances are equivalent assert volume_prototype_volume_by_source_snapshot_model == volume_prototype_volume_by_source_snapshot_model2 # Convert model instance back to dict and verify no loss of data - volume_prototype_volume_by_source_snapshot_model_json2 = volume_prototype_volume_by_source_snapshot_model.to_dict() - assert volume_prototype_volume_by_source_snapshot_model_json2 == volume_prototype_volume_by_source_snapshot_model_json + volume_prototype_volume_by_source_snapshot_model_json2 = ( + volume_prototype_volume_by_source_snapshot_model.to_dict() + ) + assert ( + volume_prototype_volume_by_source_snapshot_model_json2 + == volume_prototype_volume_by_source_snapshot_model_json + ) class TestModel_ZoneIdentityByHref: @@ -94935,7 +106718,9 @@ def test_zone_identity_by_href_serialization(self): # Construct a json representation of a ZoneIdentityByHref model zone_identity_by_href_model_json = {} - zone_identity_by_href_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1' + zone_identity_by_href_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1' + ) # Construct a model instance of ZoneIdentityByHref by calling from_dict on the json representation zone_identity_by_href_model = ZoneIdentityByHref.from_dict(zone_identity_by_href_model_json) @@ -94995,22 +106780,44 @@ def test_backup_policy_scope_prototype_enterprise_identity_enterprise_identity_b # Construct a json representation of a BackupPolicyScopePrototypeEnterpriseIdentityEnterpriseIdentityByCRN model backup_policy_scope_prototype_enterprise_identity_enterprise_identity_by_crn_model_json = {} - backup_policy_scope_prototype_enterprise_identity_enterprise_identity_by_crn_model_json['crn'] = 'crn:v1:bluemix:public:enterprise::a/aa2432b1fa4d4ace891e9b80fc104e34::enterprise:ebc2b430240943458b9e91e1432cfcce' + backup_policy_scope_prototype_enterprise_identity_enterprise_identity_by_crn_model_json['crn'] = ( + 'crn:v1:bluemix:public:enterprise::a/aa2432b1fa4d4ace891e9b80fc104e34::enterprise:ebc2b430240943458b9e91e1432cfcce' + ) # Construct a model instance of BackupPolicyScopePrototypeEnterpriseIdentityEnterpriseIdentityByCRN by calling from_dict on the json representation - backup_policy_scope_prototype_enterprise_identity_enterprise_identity_by_crn_model = BackupPolicyScopePrototypeEnterpriseIdentityEnterpriseIdentityByCRN.from_dict(backup_policy_scope_prototype_enterprise_identity_enterprise_identity_by_crn_model_json) + backup_policy_scope_prototype_enterprise_identity_enterprise_identity_by_crn_model = ( + BackupPolicyScopePrototypeEnterpriseIdentityEnterpriseIdentityByCRN.from_dict( + backup_policy_scope_prototype_enterprise_identity_enterprise_identity_by_crn_model_json + ) + ) assert backup_policy_scope_prototype_enterprise_identity_enterprise_identity_by_crn_model != False # Construct a model instance of BackupPolicyScopePrototypeEnterpriseIdentityEnterpriseIdentityByCRN by calling from_dict on the json representation - backup_policy_scope_prototype_enterprise_identity_enterprise_identity_by_crn_model_dict = BackupPolicyScopePrototypeEnterpriseIdentityEnterpriseIdentityByCRN.from_dict(backup_policy_scope_prototype_enterprise_identity_enterprise_identity_by_crn_model_json).__dict__ - backup_policy_scope_prototype_enterprise_identity_enterprise_identity_by_crn_model2 = BackupPolicyScopePrototypeEnterpriseIdentityEnterpriseIdentityByCRN(**backup_policy_scope_prototype_enterprise_identity_enterprise_identity_by_crn_model_dict) + backup_policy_scope_prototype_enterprise_identity_enterprise_identity_by_crn_model_dict = ( + BackupPolicyScopePrototypeEnterpriseIdentityEnterpriseIdentityByCRN.from_dict( + backup_policy_scope_prototype_enterprise_identity_enterprise_identity_by_crn_model_json + ).__dict__ + ) + backup_policy_scope_prototype_enterprise_identity_enterprise_identity_by_crn_model2 = ( + BackupPolicyScopePrototypeEnterpriseIdentityEnterpriseIdentityByCRN( + **backup_policy_scope_prototype_enterprise_identity_enterprise_identity_by_crn_model_dict + ) + ) # Verify the model instances are equivalent - assert backup_policy_scope_prototype_enterprise_identity_enterprise_identity_by_crn_model == backup_policy_scope_prototype_enterprise_identity_enterprise_identity_by_crn_model2 + assert ( + backup_policy_scope_prototype_enterprise_identity_enterprise_identity_by_crn_model + == backup_policy_scope_prototype_enterprise_identity_enterprise_identity_by_crn_model2 + ) # Convert model instance back to dict and verify no loss of data - backup_policy_scope_prototype_enterprise_identity_enterprise_identity_by_crn_model_json2 = backup_policy_scope_prototype_enterprise_identity_enterprise_identity_by_crn_model.to_dict() - assert backup_policy_scope_prototype_enterprise_identity_enterprise_identity_by_crn_model_json2 == backup_policy_scope_prototype_enterprise_identity_enterprise_identity_by_crn_model_json + backup_policy_scope_prototype_enterprise_identity_enterprise_identity_by_crn_model_json2 = ( + backup_policy_scope_prototype_enterprise_identity_enterprise_identity_by_crn_model.to_dict() + ) + assert ( + backup_policy_scope_prototype_enterprise_identity_enterprise_identity_by_crn_model_json2 + == backup_policy_scope_prototype_enterprise_identity_enterprise_identity_by_crn_model_json + ) class TestModel_BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN: @@ -95018,29 +106825,52 @@ class TestModel_BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterface Test Class for BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN """ - def test_bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_serialization(self): + def test_bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_serialization( + self, + ): """ Test serialization/deserialization for BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN """ # Construct a json representation of a BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN model - bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json = {} - bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::virtual-network-interface:0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json = ( + {} + ) + bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json[ + 'crn' + ] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::virtual-network-interface:0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' # Construct a model instance of BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN by calling from_dict on the json representation - bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model = BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN.from_dict(bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json) - assert bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model != False + bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model = BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN.from_dict( + bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json + ) + assert ( + bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model + != False + ) # Construct a model instance of BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN by calling from_dict on the json representation - bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_dict = BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN.from_dict(bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json).__dict__ - bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model2 = BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN(**bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_dict) + bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_dict = BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN.from_dict( + bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json + ).__dict__ + bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model2 = BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN( + **bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_dict + ) # Verify the model instances are equivalent - assert bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model == bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model2 + assert ( + bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model + == bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model2 + ) # Convert model instance back to dict and verify no loss of data - bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json2 = bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model.to_dict() - assert bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json2 == bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json + bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json2 = ( + bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model.to_dict() + ) + assert ( + bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json2 + == bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json + ) class TestModel_BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref: @@ -95048,29 +106878,52 @@ class TestModel_BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterface Test Class for BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref """ - def test_bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_href_serialization(self): + def test_bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_href_serialization( + self, + ): """ Test serialization/deserialization for BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref """ # Construct a json representation of a BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref model - bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json = {} - bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/virtual_network_interfaces/0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json = ( + {} + ) + bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json[ + 'href' + ] = 'https://us-south.iaas.cloud.ibm.com/v1/virtual_network_interfaces/0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' # Construct a model instance of BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref by calling from_dict on the json representation - bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model = BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref.from_dict(bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json) - assert bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model != False + bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model = BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref.from_dict( + bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json + ) + assert ( + bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model + != False + ) # Construct a model instance of BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref by calling from_dict on the json representation - bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_dict = BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref.from_dict(bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json).__dict__ - bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model2 = BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref(**bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_dict) + bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_dict = BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref.from_dict( + bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json + ).__dict__ + bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model2 = BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref( + **bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_dict + ) # Verify the model instances are equivalent - assert bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model == bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model2 + assert ( + bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model + == bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model2 + ) # Convert model instance back to dict and verify no loss of data - bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json2 = bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model.to_dict() - assert bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json2 == bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json + bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json2 = ( + bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model.to_dict() + ) + assert ( + bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json2 + == bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json + ) class TestModel_BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById: @@ -95078,29 +106931,52 @@ class TestModel_BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterface Test Class for BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById """ - def test_bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_id_serialization(self): + def test_bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_id_serialization( + self, + ): """ Test serialization/deserialization for BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById """ # Construct a json representation of a BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById model - bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json = {} - bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json['id'] = '0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json = ( + {} + ) + bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json[ + 'id' + ] = '0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' # Construct a model instance of BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById by calling from_dict on the json representation - bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model = BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById.from_dict(bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json) - assert bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model != False + bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model = BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById.from_dict( + bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json + ) + assert ( + bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model + != False + ) # Construct a model instance of BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById by calling from_dict on the json representation - bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_dict = BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById.from_dict(bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json).__dict__ - bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model2 = BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById(**bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_dict) + bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_dict = BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById.from_dict( + bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json + ).__dict__ + bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model2 = BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById( + **bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_dict + ) # Verify the model instances are equivalent - assert bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model == bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model2 + assert ( + bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model + == bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model2 + ) # Convert model instance back to dict and verify no loss of data - bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json2 = bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model.to_dict() - assert bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json2 == bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json + bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json2 = ( + bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model.to_dict() + ) + assert ( + bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json2 + == bare_metal_server_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json + ) class TestModel_ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPIdentityClusterNetworkInterfacePrimaryIPContextByHref: @@ -95108,29 +106984,52 @@ class TestModel_ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetRes Test Class for ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPIdentityClusterNetworkInterfacePrimaryIPContextByHref """ - def test_cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_identity_cluster_network_interface_primary_ip_context_by_href_serialization(self): + def test_cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_identity_cluster_network_interface_primary_ip_context_by_href_serialization( + self, + ): """ Test serialization/deserialization for ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPIdentityClusterNetworkInterfacePrimaryIPContextByHref """ # Construct a json representation of a ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPIdentityClusterNetworkInterfacePrimaryIPContextByHref model - cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_identity_cluster_network_interface_primary_ip_context_by_href_model_json = {} - cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_identity_cluster_network_interface_primary_ip_context_by_href_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/cluster_networks/0717-da0df18c-7598-4633-a648-fdaac28a5573/subnets/0717-7931845c-65c4-4b0a-80cd-7d9c1a6d7930/reserved_ips/6d353a0f-aeb1-4ae1-832e-1110d10981bb' + cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_identity_cluster_network_interface_primary_ip_context_by_href_model_json = ( + {} + ) + cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_identity_cluster_network_interface_primary_ip_context_by_href_model_json[ + 'href' + ] = 'https://us-south.iaas.cloud.ibm.com/v1/cluster_networks/0717-da0df18c-7598-4633-a648-fdaac28a5573/subnets/0717-7931845c-65c4-4b0a-80cd-7d9c1a6d7930/reserved_ips/6d353a0f-aeb1-4ae1-832e-1110d10981bb' # Construct a model instance of ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPIdentityClusterNetworkInterfacePrimaryIPContextByHref by calling from_dict on the json representation - cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_identity_cluster_network_interface_primary_ip_context_by_href_model = ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPIdentityClusterNetworkInterfacePrimaryIPContextByHref.from_dict(cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_identity_cluster_network_interface_primary_ip_context_by_href_model_json) - assert cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_identity_cluster_network_interface_primary_ip_context_by_href_model != False + cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_identity_cluster_network_interface_primary_ip_context_by_href_model = ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPIdentityClusterNetworkInterfacePrimaryIPContextByHref.from_dict( + cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_identity_cluster_network_interface_primary_ip_context_by_href_model_json + ) + assert ( + cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_identity_cluster_network_interface_primary_ip_context_by_href_model + != False + ) # Construct a model instance of ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPIdentityClusterNetworkInterfacePrimaryIPContextByHref by calling from_dict on the json representation - cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_identity_cluster_network_interface_primary_ip_context_by_href_model_dict = ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPIdentityClusterNetworkInterfacePrimaryIPContextByHref.from_dict(cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_identity_cluster_network_interface_primary_ip_context_by_href_model_json).__dict__ - cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_identity_cluster_network_interface_primary_ip_context_by_href_model2 = ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPIdentityClusterNetworkInterfacePrimaryIPContextByHref(**cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_identity_cluster_network_interface_primary_ip_context_by_href_model_dict) + cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_identity_cluster_network_interface_primary_ip_context_by_href_model_dict = ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPIdentityClusterNetworkInterfacePrimaryIPContextByHref.from_dict( + cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_identity_cluster_network_interface_primary_ip_context_by_href_model_json + ).__dict__ + cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_identity_cluster_network_interface_primary_ip_context_by_href_model2 = ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPIdentityClusterNetworkInterfacePrimaryIPContextByHref( + **cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_identity_cluster_network_interface_primary_ip_context_by_href_model_dict + ) # Verify the model instances are equivalent - assert cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_identity_cluster_network_interface_primary_ip_context_by_href_model == cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_identity_cluster_network_interface_primary_ip_context_by_href_model2 + assert ( + cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_identity_cluster_network_interface_primary_ip_context_by_href_model + == cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_identity_cluster_network_interface_primary_ip_context_by_href_model2 + ) # Convert model instance back to dict and verify no loss of data - cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_identity_cluster_network_interface_primary_ip_context_by_href_model_json2 = cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_identity_cluster_network_interface_primary_ip_context_by_href_model.to_dict() - assert cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_identity_cluster_network_interface_primary_ip_context_by_href_model_json2 == cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_identity_cluster_network_interface_primary_ip_context_by_href_model_json + cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_identity_cluster_network_interface_primary_ip_context_by_href_model_json2 = ( + cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_identity_cluster_network_interface_primary_ip_context_by_href_model.to_dict() + ) + assert ( + cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_identity_cluster_network_interface_primary_ip_context_by_href_model_json2 + == cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_identity_cluster_network_interface_primary_ip_context_by_href_model_json + ) class TestModel_ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPIdentityClusterNetworkInterfacePrimaryIPContextById: @@ -95138,29 +107037,52 @@ class TestModel_ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetRes Test Class for ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPIdentityClusterNetworkInterfacePrimaryIPContextById """ - def test_cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_identity_cluster_network_interface_primary_ip_context_by_id_serialization(self): + def test_cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_identity_cluster_network_interface_primary_ip_context_by_id_serialization( + self, + ): """ Test serialization/deserialization for ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPIdentityClusterNetworkInterfacePrimaryIPContextById """ # Construct a json representation of a ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPIdentityClusterNetworkInterfacePrimaryIPContextById model - cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_identity_cluster_network_interface_primary_ip_context_by_id_model_json = {} - cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_identity_cluster_network_interface_primary_ip_context_by_id_model_json['id'] = '6d353a0f-aeb1-4ae1-832e-1110d10981bb' + cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_identity_cluster_network_interface_primary_ip_context_by_id_model_json = ( + {} + ) + cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_identity_cluster_network_interface_primary_ip_context_by_id_model_json[ + 'id' + ] = '6d353a0f-aeb1-4ae1-832e-1110d10981bb' # Construct a model instance of ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPIdentityClusterNetworkInterfacePrimaryIPContextById by calling from_dict on the json representation - cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_identity_cluster_network_interface_primary_ip_context_by_id_model = ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPIdentityClusterNetworkInterfacePrimaryIPContextById.from_dict(cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_identity_cluster_network_interface_primary_ip_context_by_id_model_json) - assert cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_identity_cluster_network_interface_primary_ip_context_by_id_model != False + cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_identity_cluster_network_interface_primary_ip_context_by_id_model = ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPIdentityClusterNetworkInterfacePrimaryIPContextById.from_dict( + cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_identity_cluster_network_interface_primary_ip_context_by_id_model_json + ) + assert ( + cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_identity_cluster_network_interface_primary_ip_context_by_id_model + != False + ) # Construct a model instance of ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPIdentityClusterNetworkInterfacePrimaryIPContextById by calling from_dict on the json representation - cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_identity_cluster_network_interface_primary_ip_context_by_id_model_dict = ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPIdentityClusterNetworkInterfacePrimaryIPContextById.from_dict(cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_identity_cluster_network_interface_primary_ip_context_by_id_model_json).__dict__ - cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_identity_cluster_network_interface_primary_ip_context_by_id_model2 = ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPIdentityClusterNetworkInterfacePrimaryIPContextById(**cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_identity_cluster_network_interface_primary_ip_context_by_id_model_dict) + cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_identity_cluster_network_interface_primary_ip_context_by_id_model_dict = ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPIdentityClusterNetworkInterfacePrimaryIPContextById.from_dict( + cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_identity_cluster_network_interface_primary_ip_context_by_id_model_json + ).__dict__ + cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_identity_cluster_network_interface_primary_ip_context_by_id_model2 = ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPIdentityClusterNetworkInterfacePrimaryIPContextById( + **cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_identity_cluster_network_interface_primary_ip_context_by_id_model_dict + ) # Verify the model instances are equivalent - assert cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_identity_cluster_network_interface_primary_ip_context_by_id_model == cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_identity_cluster_network_interface_primary_ip_context_by_id_model2 + assert ( + cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_identity_cluster_network_interface_primary_ip_context_by_id_model + == cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_identity_cluster_network_interface_primary_ip_context_by_id_model2 + ) # Convert model instance back to dict and verify no loss of data - cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_identity_cluster_network_interface_primary_ip_context_by_id_model_json2 = cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_identity_cluster_network_interface_primary_ip_context_by_id_model.to_dict() - assert cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_identity_cluster_network_interface_primary_ip_context_by_id_model_json2 == cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_identity_cluster_network_interface_primary_ip_context_by_id_model_json + cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_identity_cluster_network_interface_primary_ip_context_by_id_model_json2 = ( + cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_identity_cluster_network_interface_primary_ip_context_by_id_model.to_dict() + ) + assert ( + cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_identity_cluster_network_interface_primary_ip_context_by_id_model_json2 + == cluster_network_interface_primary_ip_prototype_cluster_network_subnet_reserved_ip_identity_cluster_network_interface_primary_ip_context_by_id_model_json + ) class TestModel_EndpointGatewayReservedIPReservedIPIdentityByHref: @@ -95175,22 +107097,44 @@ def test_endpoint_gateway_reserved_ip_reserved_ip_identity_by_href_serialization # Construct a json representation of a EndpointGatewayReservedIPReservedIPIdentityByHref model endpoint_gateway_reserved_ip_reserved_ip_identity_by_href_model_json = {} - endpoint_gateway_reserved_ip_reserved_ip_identity_by_href_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-bea6a632-5e13-42a4-b4b8-31dc877abfe4/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + endpoint_gateway_reserved_ip_reserved_ip_identity_by_href_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-bea6a632-5e13-42a4-b4b8-31dc877abfe4/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + ) # Construct a model instance of EndpointGatewayReservedIPReservedIPIdentityByHref by calling from_dict on the json representation - endpoint_gateway_reserved_ip_reserved_ip_identity_by_href_model = EndpointGatewayReservedIPReservedIPIdentityByHref.from_dict(endpoint_gateway_reserved_ip_reserved_ip_identity_by_href_model_json) + endpoint_gateway_reserved_ip_reserved_ip_identity_by_href_model = ( + EndpointGatewayReservedIPReservedIPIdentityByHref.from_dict( + endpoint_gateway_reserved_ip_reserved_ip_identity_by_href_model_json + ) + ) assert endpoint_gateway_reserved_ip_reserved_ip_identity_by_href_model != False # Construct a model instance of EndpointGatewayReservedIPReservedIPIdentityByHref by calling from_dict on the json representation - endpoint_gateway_reserved_ip_reserved_ip_identity_by_href_model_dict = EndpointGatewayReservedIPReservedIPIdentityByHref.from_dict(endpoint_gateway_reserved_ip_reserved_ip_identity_by_href_model_json).__dict__ - endpoint_gateway_reserved_ip_reserved_ip_identity_by_href_model2 = EndpointGatewayReservedIPReservedIPIdentityByHref(**endpoint_gateway_reserved_ip_reserved_ip_identity_by_href_model_dict) + endpoint_gateway_reserved_ip_reserved_ip_identity_by_href_model_dict = ( + EndpointGatewayReservedIPReservedIPIdentityByHref.from_dict( + endpoint_gateway_reserved_ip_reserved_ip_identity_by_href_model_json + ).__dict__ + ) + endpoint_gateway_reserved_ip_reserved_ip_identity_by_href_model2 = ( + EndpointGatewayReservedIPReservedIPIdentityByHref( + **endpoint_gateway_reserved_ip_reserved_ip_identity_by_href_model_dict + ) + ) # Verify the model instances are equivalent - assert endpoint_gateway_reserved_ip_reserved_ip_identity_by_href_model == endpoint_gateway_reserved_ip_reserved_ip_identity_by_href_model2 + assert ( + endpoint_gateway_reserved_ip_reserved_ip_identity_by_href_model + == endpoint_gateway_reserved_ip_reserved_ip_identity_by_href_model2 + ) # Convert model instance back to dict and verify no loss of data - endpoint_gateway_reserved_ip_reserved_ip_identity_by_href_model_json2 = endpoint_gateway_reserved_ip_reserved_ip_identity_by_href_model.to_dict() - assert endpoint_gateway_reserved_ip_reserved_ip_identity_by_href_model_json2 == endpoint_gateway_reserved_ip_reserved_ip_identity_by_href_model_json + endpoint_gateway_reserved_ip_reserved_ip_identity_by_href_model_json2 = ( + endpoint_gateway_reserved_ip_reserved_ip_identity_by_href_model.to_dict() + ) + assert ( + endpoint_gateway_reserved_ip_reserved_ip_identity_by_href_model_json2 + == endpoint_gateway_reserved_ip_reserved_ip_identity_by_href_model_json + ) class TestModel_EndpointGatewayReservedIPReservedIPIdentityById: @@ -95205,22 +107149,44 @@ def test_endpoint_gateway_reserved_ip_reserved_ip_identity_by_id_serialization(s # Construct a json representation of a EndpointGatewayReservedIPReservedIPIdentityById model endpoint_gateway_reserved_ip_reserved_ip_identity_by_id_model_json = {} - endpoint_gateway_reserved_ip_reserved_ip_identity_by_id_model_json['id'] = '0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + endpoint_gateway_reserved_ip_reserved_ip_identity_by_id_model_json['id'] = ( + '0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + ) # Construct a model instance of EndpointGatewayReservedIPReservedIPIdentityById by calling from_dict on the json representation - endpoint_gateway_reserved_ip_reserved_ip_identity_by_id_model = EndpointGatewayReservedIPReservedIPIdentityById.from_dict(endpoint_gateway_reserved_ip_reserved_ip_identity_by_id_model_json) + endpoint_gateway_reserved_ip_reserved_ip_identity_by_id_model = ( + EndpointGatewayReservedIPReservedIPIdentityById.from_dict( + endpoint_gateway_reserved_ip_reserved_ip_identity_by_id_model_json + ) + ) assert endpoint_gateway_reserved_ip_reserved_ip_identity_by_id_model != False # Construct a model instance of EndpointGatewayReservedIPReservedIPIdentityById by calling from_dict on the json representation - endpoint_gateway_reserved_ip_reserved_ip_identity_by_id_model_dict = EndpointGatewayReservedIPReservedIPIdentityById.from_dict(endpoint_gateway_reserved_ip_reserved_ip_identity_by_id_model_json).__dict__ - endpoint_gateway_reserved_ip_reserved_ip_identity_by_id_model2 = EndpointGatewayReservedIPReservedIPIdentityById(**endpoint_gateway_reserved_ip_reserved_ip_identity_by_id_model_dict) + endpoint_gateway_reserved_ip_reserved_ip_identity_by_id_model_dict = ( + EndpointGatewayReservedIPReservedIPIdentityById.from_dict( + endpoint_gateway_reserved_ip_reserved_ip_identity_by_id_model_json + ).__dict__ + ) + endpoint_gateway_reserved_ip_reserved_ip_identity_by_id_model2 = ( + EndpointGatewayReservedIPReservedIPIdentityById( + **endpoint_gateway_reserved_ip_reserved_ip_identity_by_id_model_dict + ) + ) # Verify the model instances are equivalent - assert endpoint_gateway_reserved_ip_reserved_ip_identity_by_id_model == endpoint_gateway_reserved_ip_reserved_ip_identity_by_id_model2 + assert ( + endpoint_gateway_reserved_ip_reserved_ip_identity_by_id_model + == endpoint_gateway_reserved_ip_reserved_ip_identity_by_id_model2 + ) # Convert model instance back to dict and verify no loss of data - endpoint_gateway_reserved_ip_reserved_ip_identity_by_id_model_json2 = endpoint_gateway_reserved_ip_reserved_ip_identity_by_id_model.to_dict() - assert endpoint_gateway_reserved_ip_reserved_ip_identity_by_id_model_json2 == endpoint_gateway_reserved_ip_reserved_ip_identity_by_id_model_json + endpoint_gateway_reserved_ip_reserved_ip_identity_by_id_model_json2 = ( + endpoint_gateway_reserved_ip_reserved_ip_identity_by_id_model.to_dict() + ) + assert ( + endpoint_gateway_reserved_ip_reserved_ip_identity_by_id_model_json2 + == endpoint_gateway_reserved_ip_reserved_ip_identity_by_id_model_json + ) class TestModel_FloatingIPTargetPatchBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityByHref: @@ -95228,29 +107194,52 @@ class TestModel_FloatingIPTargetPatchBareMetalServerNetworkInterfaceIdentityBare Test Class for FloatingIPTargetPatchBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityByHref """ - def test_floating_ip_target_patch_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_href_serialization(self): + def test_floating_ip_target_patch_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_href_serialization( + self, + ): """ Test serialization/deserialization for FloatingIPTargetPatchBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityByHref """ # Construct a json representation of a FloatingIPTargetPatchBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityByHref model - floating_ip_target_patch_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_href_model_json = {} - floating_ip_target_patch_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_href_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/bare_metal_servers/0717-aad10fd7-8a02-4f3e-97f3-b18bd82cf304/network_interfaces/0717-da8c43ec-b6ca-4bd2-871e-72e288c66ee6' + floating_ip_target_patch_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_href_model_json = ( + {} + ) + floating_ip_target_patch_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_href_model_json[ + 'href' + ] = 'https://us-south.iaas.cloud.ibm.com/v1/bare_metal_servers/0717-aad10fd7-8a02-4f3e-97f3-b18bd82cf304/network_interfaces/0717-da8c43ec-b6ca-4bd2-871e-72e288c66ee6' # Construct a model instance of FloatingIPTargetPatchBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityByHref by calling from_dict on the json representation - floating_ip_target_patch_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_href_model = FloatingIPTargetPatchBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityByHref.from_dict(floating_ip_target_patch_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_href_model_json) - assert floating_ip_target_patch_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_href_model != False + floating_ip_target_patch_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_href_model = FloatingIPTargetPatchBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityByHref.from_dict( + floating_ip_target_patch_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_href_model_json + ) + assert ( + floating_ip_target_patch_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_href_model + != False + ) # Construct a model instance of FloatingIPTargetPatchBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityByHref by calling from_dict on the json representation - floating_ip_target_patch_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_href_model_dict = FloatingIPTargetPatchBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityByHref.from_dict(floating_ip_target_patch_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_href_model_json).__dict__ - floating_ip_target_patch_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_href_model2 = FloatingIPTargetPatchBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityByHref(**floating_ip_target_patch_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_href_model_dict) + floating_ip_target_patch_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_href_model_dict = FloatingIPTargetPatchBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityByHref.from_dict( + floating_ip_target_patch_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_href_model_json + ).__dict__ + floating_ip_target_patch_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_href_model2 = FloatingIPTargetPatchBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityByHref( + **floating_ip_target_patch_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_href_model_dict + ) # Verify the model instances are equivalent - assert floating_ip_target_patch_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_href_model == floating_ip_target_patch_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_href_model2 + assert ( + floating_ip_target_patch_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_href_model + == floating_ip_target_patch_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_href_model2 + ) # Convert model instance back to dict and verify no loss of data - floating_ip_target_patch_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_href_model_json2 = floating_ip_target_patch_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_href_model.to_dict() - assert floating_ip_target_patch_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_href_model_json2 == floating_ip_target_patch_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_href_model_json + floating_ip_target_patch_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_href_model_json2 = ( + floating_ip_target_patch_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_href_model.to_dict() + ) + assert ( + floating_ip_target_patch_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_href_model_json2 + == floating_ip_target_patch_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_href_model_json + ) class TestModel_FloatingIPTargetPatchBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityById: @@ -95258,29 +107247,52 @@ class TestModel_FloatingIPTargetPatchBareMetalServerNetworkInterfaceIdentityBare Test Class for FloatingIPTargetPatchBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityById """ - def test_floating_ip_target_patch_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_id_serialization(self): + def test_floating_ip_target_patch_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_id_serialization( + self, + ): """ Test serialization/deserialization for FloatingIPTargetPatchBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityById """ # Construct a json representation of a FloatingIPTargetPatchBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityById model - floating_ip_target_patch_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_id_model_json = {} - floating_ip_target_patch_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_id_model_json['id'] = '0717-da8c43ec-b6ca-4bd2-871e-72e288c66ee6' + floating_ip_target_patch_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_id_model_json = ( + {} + ) + floating_ip_target_patch_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_id_model_json[ + 'id' + ] = '0717-da8c43ec-b6ca-4bd2-871e-72e288c66ee6' # Construct a model instance of FloatingIPTargetPatchBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityById by calling from_dict on the json representation - floating_ip_target_patch_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_id_model = FloatingIPTargetPatchBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityById.from_dict(floating_ip_target_patch_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_id_model_json) - assert floating_ip_target_patch_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_id_model != False + floating_ip_target_patch_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_id_model = FloatingIPTargetPatchBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityById.from_dict( + floating_ip_target_patch_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_id_model_json + ) + assert ( + floating_ip_target_patch_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_id_model + != False + ) # Construct a model instance of FloatingIPTargetPatchBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityById by calling from_dict on the json representation - floating_ip_target_patch_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_id_model_dict = FloatingIPTargetPatchBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityById.from_dict(floating_ip_target_patch_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_id_model_json).__dict__ - floating_ip_target_patch_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_id_model2 = FloatingIPTargetPatchBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityById(**floating_ip_target_patch_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_id_model_dict) + floating_ip_target_patch_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_id_model_dict = FloatingIPTargetPatchBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityById.from_dict( + floating_ip_target_patch_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_id_model_json + ).__dict__ + floating_ip_target_patch_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_id_model2 = FloatingIPTargetPatchBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityById( + **floating_ip_target_patch_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_id_model_dict + ) # Verify the model instances are equivalent - assert floating_ip_target_patch_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_id_model == floating_ip_target_patch_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_id_model2 + assert ( + floating_ip_target_patch_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_id_model + == floating_ip_target_patch_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_id_model2 + ) # Convert model instance back to dict and verify no loss of data - floating_ip_target_patch_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_id_model_json2 = floating_ip_target_patch_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_id_model.to_dict() - assert floating_ip_target_patch_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_id_model_json2 == floating_ip_target_patch_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_id_model_json + floating_ip_target_patch_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_id_model_json2 = ( + floating_ip_target_patch_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_id_model.to_dict() + ) + assert ( + floating_ip_target_patch_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_id_model_json2 + == floating_ip_target_patch_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_id_model_json + ) class TestModel_FloatingIPTargetPatchNetworkInterfaceIdentityNetworkInterfaceIdentityByHref: @@ -95295,22 +107307,44 @@ def test_floating_ip_target_patch_network_interface_identity_network_interface_i # Construct a json representation of a FloatingIPTargetPatchNetworkInterfaceIdentityNetworkInterfaceIdentityByHref model floating_ip_target_patch_network_interface_identity_network_interface_identity_by_href_model_json = {} - floating_ip_target_patch_network_interface_identity_network_interface_identity_by_href_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/network_interfaces/0717-d54eb633-98ea-459d-aa00-6a8e780175a7' + floating_ip_target_patch_network_interface_identity_network_interface_identity_by_href_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/network_interfaces/0717-d54eb633-98ea-459d-aa00-6a8e780175a7' + ) # Construct a model instance of FloatingIPTargetPatchNetworkInterfaceIdentityNetworkInterfaceIdentityByHref by calling from_dict on the json representation - floating_ip_target_patch_network_interface_identity_network_interface_identity_by_href_model = FloatingIPTargetPatchNetworkInterfaceIdentityNetworkInterfaceIdentityByHref.from_dict(floating_ip_target_patch_network_interface_identity_network_interface_identity_by_href_model_json) + floating_ip_target_patch_network_interface_identity_network_interface_identity_by_href_model = ( + FloatingIPTargetPatchNetworkInterfaceIdentityNetworkInterfaceIdentityByHref.from_dict( + floating_ip_target_patch_network_interface_identity_network_interface_identity_by_href_model_json + ) + ) assert floating_ip_target_patch_network_interface_identity_network_interface_identity_by_href_model != False # Construct a model instance of FloatingIPTargetPatchNetworkInterfaceIdentityNetworkInterfaceIdentityByHref by calling from_dict on the json representation - floating_ip_target_patch_network_interface_identity_network_interface_identity_by_href_model_dict = FloatingIPTargetPatchNetworkInterfaceIdentityNetworkInterfaceIdentityByHref.from_dict(floating_ip_target_patch_network_interface_identity_network_interface_identity_by_href_model_json).__dict__ - floating_ip_target_patch_network_interface_identity_network_interface_identity_by_href_model2 = FloatingIPTargetPatchNetworkInterfaceIdentityNetworkInterfaceIdentityByHref(**floating_ip_target_patch_network_interface_identity_network_interface_identity_by_href_model_dict) + floating_ip_target_patch_network_interface_identity_network_interface_identity_by_href_model_dict = ( + FloatingIPTargetPatchNetworkInterfaceIdentityNetworkInterfaceIdentityByHref.from_dict( + floating_ip_target_patch_network_interface_identity_network_interface_identity_by_href_model_json + ).__dict__ + ) + floating_ip_target_patch_network_interface_identity_network_interface_identity_by_href_model2 = ( + FloatingIPTargetPatchNetworkInterfaceIdentityNetworkInterfaceIdentityByHref( + **floating_ip_target_patch_network_interface_identity_network_interface_identity_by_href_model_dict + ) + ) # Verify the model instances are equivalent - assert floating_ip_target_patch_network_interface_identity_network_interface_identity_by_href_model == floating_ip_target_patch_network_interface_identity_network_interface_identity_by_href_model2 + assert ( + floating_ip_target_patch_network_interface_identity_network_interface_identity_by_href_model + == floating_ip_target_patch_network_interface_identity_network_interface_identity_by_href_model2 + ) # Convert model instance back to dict and verify no loss of data - floating_ip_target_patch_network_interface_identity_network_interface_identity_by_href_model_json2 = floating_ip_target_patch_network_interface_identity_network_interface_identity_by_href_model.to_dict() - assert floating_ip_target_patch_network_interface_identity_network_interface_identity_by_href_model_json2 == floating_ip_target_patch_network_interface_identity_network_interface_identity_by_href_model_json + floating_ip_target_patch_network_interface_identity_network_interface_identity_by_href_model_json2 = ( + floating_ip_target_patch_network_interface_identity_network_interface_identity_by_href_model.to_dict() + ) + assert ( + floating_ip_target_patch_network_interface_identity_network_interface_identity_by_href_model_json2 + == floating_ip_target_patch_network_interface_identity_network_interface_identity_by_href_model_json + ) class TestModel_FloatingIPTargetPatchNetworkInterfaceIdentityNetworkInterfaceIdentityById: @@ -95325,22 +107359,44 @@ def test_floating_ip_target_patch_network_interface_identity_network_interface_i # Construct a json representation of a FloatingIPTargetPatchNetworkInterfaceIdentityNetworkInterfaceIdentityById model floating_ip_target_patch_network_interface_identity_network_interface_identity_by_id_model_json = {} - floating_ip_target_patch_network_interface_identity_network_interface_identity_by_id_model_json['id'] = '0717-d54eb633-98ea-459d-aa00-6a8e780175a7' + floating_ip_target_patch_network_interface_identity_network_interface_identity_by_id_model_json['id'] = ( + '0717-d54eb633-98ea-459d-aa00-6a8e780175a7' + ) # Construct a model instance of FloatingIPTargetPatchNetworkInterfaceIdentityNetworkInterfaceIdentityById by calling from_dict on the json representation - floating_ip_target_patch_network_interface_identity_network_interface_identity_by_id_model = FloatingIPTargetPatchNetworkInterfaceIdentityNetworkInterfaceIdentityById.from_dict(floating_ip_target_patch_network_interface_identity_network_interface_identity_by_id_model_json) + floating_ip_target_patch_network_interface_identity_network_interface_identity_by_id_model = ( + FloatingIPTargetPatchNetworkInterfaceIdentityNetworkInterfaceIdentityById.from_dict( + floating_ip_target_patch_network_interface_identity_network_interface_identity_by_id_model_json + ) + ) assert floating_ip_target_patch_network_interface_identity_network_interface_identity_by_id_model != False # Construct a model instance of FloatingIPTargetPatchNetworkInterfaceIdentityNetworkInterfaceIdentityById by calling from_dict on the json representation - floating_ip_target_patch_network_interface_identity_network_interface_identity_by_id_model_dict = FloatingIPTargetPatchNetworkInterfaceIdentityNetworkInterfaceIdentityById.from_dict(floating_ip_target_patch_network_interface_identity_network_interface_identity_by_id_model_json).__dict__ - floating_ip_target_patch_network_interface_identity_network_interface_identity_by_id_model2 = FloatingIPTargetPatchNetworkInterfaceIdentityNetworkInterfaceIdentityById(**floating_ip_target_patch_network_interface_identity_network_interface_identity_by_id_model_dict) + floating_ip_target_patch_network_interface_identity_network_interface_identity_by_id_model_dict = ( + FloatingIPTargetPatchNetworkInterfaceIdentityNetworkInterfaceIdentityById.from_dict( + floating_ip_target_patch_network_interface_identity_network_interface_identity_by_id_model_json + ).__dict__ + ) + floating_ip_target_patch_network_interface_identity_network_interface_identity_by_id_model2 = ( + FloatingIPTargetPatchNetworkInterfaceIdentityNetworkInterfaceIdentityById( + **floating_ip_target_patch_network_interface_identity_network_interface_identity_by_id_model_dict + ) + ) # Verify the model instances are equivalent - assert floating_ip_target_patch_network_interface_identity_network_interface_identity_by_id_model == floating_ip_target_patch_network_interface_identity_network_interface_identity_by_id_model2 + assert ( + floating_ip_target_patch_network_interface_identity_network_interface_identity_by_id_model + == floating_ip_target_patch_network_interface_identity_network_interface_identity_by_id_model2 + ) # Convert model instance back to dict and verify no loss of data - floating_ip_target_patch_network_interface_identity_network_interface_identity_by_id_model_json2 = floating_ip_target_patch_network_interface_identity_network_interface_identity_by_id_model.to_dict() - assert floating_ip_target_patch_network_interface_identity_network_interface_identity_by_id_model_json2 == floating_ip_target_patch_network_interface_identity_network_interface_identity_by_id_model_json + floating_ip_target_patch_network_interface_identity_network_interface_identity_by_id_model_json2 = ( + floating_ip_target_patch_network_interface_identity_network_interface_identity_by_id_model.to_dict() + ) + assert ( + floating_ip_target_patch_network_interface_identity_network_interface_identity_by_id_model_json2 + == floating_ip_target_patch_network_interface_identity_network_interface_identity_by_id_model_json + ) class TestModel_FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN: @@ -95348,29 +107404,52 @@ class TestModel_FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetwo Test Class for FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN """ - def test_floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_serialization(self): + def test_floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_serialization( + self, + ): """ Test serialization/deserialization for FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN """ # Construct a json representation of a FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN model - floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json = {} - floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::virtual-network-interface:0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json = ( + {} + ) + floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json[ + 'crn' + ] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::virtual-network-interface:0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' # Construct a model instance of FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN by calling from_dict on the json representation - floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model = FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN.from_dict(floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json) - assert floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model != False + floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model = FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN.from_dict( + floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json + ) + assert ( + floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model + != False + ) # Construct a model instance of FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN by calling from_dict on the json representation - floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_dict = FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN.from_dict(floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json).__dict__ - floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model2 = FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN(**floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_dict) + floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_dict = FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN.from_dict( + floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json + ).__dict__ + floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model2 = FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN( + **floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_dict + ) # Verify the model instances are equivalent - assert floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model == floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model2 + assert ( + floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model + == floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model2 + ) # Convert model instance back to dict and verify no loss of data - floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json2 = floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model.to_dict() - assert floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json2 == floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json + floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json2 = ( + floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model.to_dict() + ) + assert ( + floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json2 + == floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json + ) class TestModel_FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref: @@ -95378,29 +107457,52 @@ class TestModel_FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetwo Test Class for FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref """ - def test_floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_href_serialization(self): + def test_floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_href_serialization( + self, + ): """ Test serialization/deserialization for FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref """ # Construct a json representation of a FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref model - floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json = {} - floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/virtual_network_interfaces/0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json = ( + {} + ) + floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json[ + 'href' + ] = 'https://us-south.iaas.cloud.ibm.com/v1/virtual_network_interfaces/0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' # Construct a model instance of FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref by calling from_dict on the json representation - floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model = FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref.from_dict(floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json) - assert floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model != False + floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model = FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref.from_dict( + floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json + ) + assert ( + floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model + != False + ) # Construct a model instance of FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref by calling from_dict on the json representation - floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_dict = FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref.from_dict(floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json).__dict__ - floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model2 = FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref(**floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_dict) + floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_dict = FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref.from_dict( + floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json + ).__dict__ + floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model2 = FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref( + **floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_dict + ) # Verify the model instances are equivalent - assert floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model == floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model2 + assert ( + floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model + == floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model2 + ) # Convert model instance back to dict and verify no loss of data - floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json2 = floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model.to_dict() - assert floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json2 == floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json + floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json2 = ( + floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model.to_dict() + ) + assert ( + floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json2 + == floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json + ) class TestModel_FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById: @@ -95408,29 +107510,52 @@ class TestModel_FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetwo Test Class for FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById """ - def test_floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_id_serialization(self): + def test_floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_id_serialization( + self, + ): """ Test serialization/deserialization for FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById """ # Construct a json representation of a FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById model - floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json = {} - floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json['id'] = '0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json = ( + {} + ) + floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json[ + 'id' + ] = '0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' # Construct a model instance of FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById by calling from_dict on the json representation - floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model = FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById.from_dict(floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json) - assert floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model != False + floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model = FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById.from_dict( + floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json + ) + assert ( + floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model + != False + ) # Construct a model instance of FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById by calling from_dict on the json representation - floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_dict = FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById.from_dict(floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json).__dict__ - floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model2 = FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById(**floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_dict) + floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_dict = FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById.from_dict( + floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json + ).__dict__ + floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model2 = FloatingIPTargetPatchVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById( + **floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_dict + ) # Verify the model instances are equivalent - assert floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model == floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model2 + assert ( + floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model + == floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model2 + ) # Convert model instance back to dict and verify no loss of data - floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json2 = floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model.to_dict() - assert floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json2 == floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json + floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json2 = ( + floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model.to_dict() + ) + assert ( + floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json2 + == floating_ip_target_patch_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json + ) class TestModel_FloatingIPTargetPrototypeBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityByHref: @@ -95438,29 +107563,52 @@ class TestModel_FloatingIPTargetPrototypeBareMetalServerNetworkInterfaceIdentity Test Class for FloatingIPTargetPrototypeBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityByHref """ - def test_floating_ip_target_prototype_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_href_serialization(self): + def test_floating_ip_target_prototype_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_href_serialization( + self, + ): """ Test serialization/deserialization for FloatingIPTargetPrototypeBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityByHref """ # Construct a json representation of a FloatingIPTargetPrototypeBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityByHref model - floating_ip_target_prototype_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_href_model_json = {} - floating_ip_target_prototype_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_href_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/bare_metal_servers/0717-aad10fd7-8a02-4f3e-97f3-b18bd82cf304/network_interfaces/0717-da8c43ec-b6ca-4bd2-871e-72e288c66ee6' + floating_ip_target_prototype_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_href_model_json = ( + {} + ) + floating_ip_target_prototype_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_href_model_json[ + 'href' + ] = 'https://us-south.iaas.cloud.ibm.com/v1/bare_metal_servers/0717-aad10fd7-8a02-4f3e-97f3-b18bd82cf304/network_interfaces/0717-da8c43ec-b6ca-4bd2-871e-72e288c66ee6' # Construct a model instance of FloatingIPTargetPrototypeBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityByHref by calling from_dict on the json representation - floating_ip_target_prototype_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_href_model = FloatingIPTargetPrototypeBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityByHref.from_dict(floating_ip_target_prototype_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_href_model_json) - assert floating_ip_target_prototype_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_href_model != False + floating_ip_target_prototype_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_href_model = FloatingIPTargetPrototypeBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityByHref.from_dict( + floating_ip_target_prototype_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_href_model_json + ) + assert ( + floating_ip_target_prototype_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_href_model + != False + ) # Construct a model instance of FloatingIPTargetPrototypeBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityByHref by calling from_dict on the json representation - floating_ip_target_prototype_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_href_model_dict = FloatingIPTargetPrototypeBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityByHref.from_dict(floating_ip_target_prototype_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_href_model_json).__dict__ - floating_ip_target_prototype_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_href_model2 = FloatingIPTargetPrototypeBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityByHref(**floating_ip_target_prototype_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_href_model_dict) + floating_ip_target_prototype_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_href_model_dict = FloatingIPTargetPrototypeBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityByHref.from_dict( + floating_ip_target_prototype_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_href_model_json + ).__dict__ + floating_ip_target_prototype_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_href_model2 = FloatingIPTargetPrototypeBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityByHref( + **floating_ip_target_prototype_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_href_model_dict + ) # Verify the model instances are equivalent - assert floating_ip_target_prototype_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_href_model == floating_ip_target_prototype_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_href_model2 + assert ( + floating_ip_target_prototype_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_href_model + == floating_ip_target_prototype_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_href_model2 + ) # Convert model instance back to dict and verify no loss of data - floating_ip_target_prototype_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_href_model_json2 = floating_ip_target_prototype_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_href_model.to_dict() - assert floating_ip_target_prototype_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_href_model_json2 == floating_ip_target_prototype_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_href_model_json + floating_ip_target_prototype_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_href_model_json2 = ( + floating_ip_target_prototype_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_href_model.to_dict() + ) + assert ( + floating_ip_target_prototype_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_href_model_json2 + == floating_ip_target_prototype_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_href_model_json + ) class TestModel_FloatingIPTargetPrototypeBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityById: @@ -95468,29 +107616,52 @@ class TestModel_FloatingIPTargetPrototypeBareMetalServerNetworkInterfaceIdentity Test Class for FloatingIPTargetPrototypeBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityById """ - def test_floating_ip_target_prototype_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_id_serialization(self): + def test_floating_ip_target_prototype_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_id_serialization( + self, + ): """ Test serialization/deserialization for FloatingIPTargetPrototypeBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityById """ # Construct a json representation of a FloatingIPTargetPrototypeBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityById model - floating_ip_target_prototype_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_id_model_json = {} - floating_ip_target_prototype_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_id_model_json['id'] = '0717-da8c43ec-b6ca-4bd2-871e-72e288c66ee6' + floating_ip_target_prototype_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_id_model_json = ( + {} + ) + floating_ip_target_prototype_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_id_model_json[ + 'id' + ] = '0717-da8c43ec-b6ca-4bd2-871e-72e288c66ee6' # Construct a model instance of FloatingIPTargetPrototypeBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityById by calling from_dict on the json representation - floating_ip_target_prototype_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_id_model = FloatingIPTargetPrototypeBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityById.from_dict(floating_ip_target_prototype_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_id_model_json) - assert floating_ip_target_prototype_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_id_model != False + floating_ip_target_prototype_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_id_model = FloatingIPTargetPrototypeBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityById.from_dict( + floating_ip_target_prototype_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_id_model_json + ) + assert ( + floating_ip_target_prototype_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_id_model + != False + ) # Construct a model instance of FloatingIPTargetPrototypeBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityById by calling from_dict on the json representation - floating_ip_target_prototype_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_id_model_dict = FloatingIPTargetPrototypeBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityById.from_dict(floating_ip_target_prototype_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_id_model_json).__dict__ - floating_ip_target_prototype_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_id_model2 = FloatingIPTargetPrototypeBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityById(**floating_ip_target_prototype_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_id_model_dict) + floating_ip_target_prototype_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_id_model_dict = FloatingIPTargetPrototypeBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityById.from_dict( + floating_ip_target_prototype_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_id_model_json + ).__dict__ + floating_ip_target_prototype_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_id_model2 = FloatingIPTargetPrototypeBareMetalServerNetworkInterfaceIdentityBareMetalServerNetworkInterfaceIdentityById( + **floating_ip_target_prototype_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_id_model_dict + ) # Verify the model instances are equivalent - assert floating_ip_target_prototype_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_id_model == floating_ip_target_prototype_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_id_model2 + assert ( + floating_ip_target_prototype_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_id_model + == floating_ip_target_prototype_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_id_model2 + ) # Convert model instance back to dict and verify no loss of data - floating_ip_target_prototype_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_id_model_json2 = floating_ip_target_prototype_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_id_model.to_dict() - assert floating_ip_target_prototype_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_id_model_json2 == floating_ip_target_prototype_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_id_model_json + floating_ip_target_prototype_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_id_model_json2 = ( + floating_ip_target_prototype_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_id_model.to_dict() + ) + assert ( + floating_ip_target_prototype_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_id_model_json2 + == floating_ip_target_prototype_bare_metal_server_network_interface_identity_bare_metal_server_network_interface_identity_by_id_model_json + ) class TestModel_FloatingIPTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityByHref: @@ -95498,29 +107669,53 @@ class TestModel_FloatingIPTargetPrototypeNetworkInterfaceIdentityNetworkInterfac Test Class for FloatingIPTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityByHref """ - def test_floating_ip_target_prototype_network_interface_identity_network_interface_identity_by_href_serialization(self): + def test_floating_ip_target_prototype_network_interface_identity_network_interface_identity_by_href_serialization( + self, + ): """ Test serialization/deserialization for FloatingIPTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityByHref """ # Construct a json representation of a FloatingIPTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityByHref model floating_ip_target_prototype_network_interface_identity_network_interface_identity_by_href_model_json = {} - floating_ip_target_prototype_network_interface_identity_network_interface_identity_by_href_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/network_interfaces/0717-d54eb633-98ea-459d-aa00-6a8e780175a7' + floating_ip_target_prototype_network_interface_identity_network_interface_identity_by_href_model_json[ + 'href' + ] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/network_interfaces/0717-d54eb633-98ea-459d-aa00-6a8e780175a7' # Construct a model instance of FloatingIPTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityByHref by calling from_dict on the json representation - floating_ip_target_prototype_network_interface_identity_network_interface_identity_by_href_model = FloatingIPTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityByHref.from_dict(floating_ip_target_prototype_network_interface_identity_network_interface_identity_by_href_model_json) + floating_ip_target_prototype_network_interface_identity_network_interface_identity_by_href_model = ( + FloatingIPTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityByHref.from_dict( + floating_ip_target_prototype_network_interface_identity_network_interface_identity_by_href_model_json + ) + ) assert floating_ip_target_prototype_network_interface_identity_network_interface_identity_by_href_model != False # Construct a model instance of FloatingIPTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityByHref by calling from_dict on the json representation - floating_ip_target_prototype_network_interface_identity_network_interface_identity_by_href_model_dict = FloatingIPTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityByHref.from_dict(floating_ip_target_prototype_network_interface_identity_network_interface_identity_by_href_model_json).__dict__ - floating_ip_target_prototype_network_interface_identity_network_interface_identity_by_href_model2 = FloatingIPTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityByHref(**floating_ip_target_prototype_network_interface_identity_network_interface_identity_by_href_model_dict) + floating_ip_target_prototype_network_interface_identity_network_interface_identity_by_href_model_dict = ( + FloatingIPTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityByHref.from_dict( + floating_ip_target_prototype_network_interface_identity_network_interface_identity_by_href_model_json + ).__dict__ + ) + floating_ip_target_prototype_network_interface_identity_network_interface_identity_by_href_model2 = ( + FloatingIPTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityByHref( + **floating_ip_target_prototype_network_interface_identity_network_interface_identity_by_href_model_dict + ) + ) # Verify the model instances are equivalent - assert floating_ip_target_prototype_network_interface_identity_network_interface_identity_by_href_model == floating_ip_target_prototype_network_interface_identity_network_interface_identity_by_href_model2 + assert ( + floating_ip_target_prototype_network_interface_identity_network_interface_identity_by_href_model + == floating_ip_target_prototype_network_interface_identity_network_interface_identity_by_href_model2 + ) # Convert model instance back to dict and verify no loss of data - floating_ip_target_prototype_network_interface_identity_network_interface_identity_by_href_model_json2 = floating_ip_target_prototype_network_interface_identity_network_interface_identity_by_href_model.to_dict() - assert floating_ip_target_prototype_network_interface_identity_network_interface_identity_by_href_model_json2 == floating_ip_target_prototype_network_interface_identity_network_interface_identity_by_href_model_json + floating_ip_target_prototype_network_interface_identity_network_interface_identity_by_href_model_json2 = ( + floating_ip_target_prototype_network_interface_identity_network_interface_identity_by_href_model.to_dict() + ) + assert ( + floating_ip_target_prototype_network_interface_identity_network_interface_identity_by_href_model_json2 + == floating_ip_target_prototype_network_interface_identity_network_interface_identity_by_href_model_json + ) class TestModel_FloatingIPTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityById: @@ -95528,29 +107723,53 @@ class TestModel_FloatingIPTargetPrototypeNetworkInterfaceIdentityNetworkInterfac Test Class for FloatingIPTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityById """ - def test_floating_ip_target_prototype_network_interface_identity_network_interface_identity_by_id_serialization(self): + def test_floating_ip_target_prototype_network_interface_identity_network_interface_identity_by_id_serialization( + self, + ): """ Test serialization/deserialization for FloatingIPTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityById """ # Construct a json representation of a FloatingIPTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityById model floating_ip_target_prototype_network_interface_identity_network_interface_identity_by_id_model_json = {} - floating_ip_target_prototype_network_interface_identity_network_interface_identity_by_id_model_json['id'] = '0717-d54eb633-98ea-459d-aa00-6a8e780175a7' + floating_ip_target_prototype_network_interface_identity_network_interface_identity_by_id_model_json['id'] = ( + '0717-d54eb633-98ea-459d-aa00-6a8e780175a7' + ) # Construct a model instance of FloatingIPTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityById by calling from_dict on the json representation - floating_ip_target_prototype_network_interface_identity_network_interface_identity_by_id_model = FloatingIPTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityById.from_dict(floating_ip_target_prototype_network_interface_identity_network_interface_identity_by_id_model_json) + floating_ip_target_prototype_network_interface_identity_network_interface_identity_by_id_model = ( + FloatingIPTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityById.from_dict( + floating_ip_target_prototype_network_interface_identity_network_interface_identity_by_id_model_json + ) + ) assert floating_ip_target_prototype_network_interface_identity_network_interface_identity_by_id_model != False # Construct a model instance of FloatingIPTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityById by calling from_dict on the json representation - floating_ip_target_prototype_network_interface_identity_network_interface_identity_by_id_model_dict = FloatingIPTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityById.from_dict(floating_ip_target_prototype_network_interface_identity_network_interface_identity_by_id_model_json).__dict__ - floating_ip_target_prototype_network_interface_identity_network_interface_identity_by_id_model2 = FloatingIPTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityById(**floating_ip_target_prototype_network_interface_identity_network_interface_identity_by_id_model_dict) + floating_ip_target_prototype_network_interface_identity_network_interface_identity_by_id_model_dict = ( + FloatingIPTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityById.from_dict( + floating_ip_target_prototype_network_interface_identity_network_interface_identity_by_id_model_json + ).__dict__ + ) + floating_ip_target_prototype_network_interface_identity_network_interface_identity_by_id_model2 = ( + FloatingIPTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityById( + **floating_ip_target_prototype_network_interface_identity_network_interface_identity_by_id_model_dict + ) + ) # Verify the model instances are equivalent - assert floating_ip_target_prototype_network_interface_identity_network_interface_identity_by_id_model == floating_ip_target_prototype_network_interface_identity_network_interface_identity_by_id_model2 + assert ( + floating_ip_target_prototype_network_interface_identity_network_interface_identity_by_id_model + == floating_ip_target_prototype_network_interface_identity_network_interface_identity_by_id_model2 + ) # Convert model instance back to dict and verify no loss of data - floating_ip_target_prototype_network_interface_identity_network_interface_identity_by_id_model_json2 = floating_ip_target_prototype_network_interface_identity_network_interface_identity_by_id_model.to_dict() - assert floating_ip_target_prototype_network_interface_identity_network_interface_identity_by_id_model_json2 == floating_ip_target_prototype_network_interface_identity_network_interface_identity_by_id_model_json + floating_ip_target_prototype_network_interface_identity_network_interface_identity_by_id_model_json2 = ( + floating_ip_target_prototype_network_interface_identity_network_interface_identity_by_id_model.to_dict() + ) + assert ( + floating_ip_target_prototype_network_interface_identity_network_interface_identity_by_id_model_json2 + == floating_ip_target_prototype_network_interface_identity_network_interface_identity_by_id_model_json + ) class TestModel_FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN: @@ -95558,29 +107777,52 @@ class TestModel_FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualN Test Class for FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN """ - def test_floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_serialization(self): + def test_floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_serialization( + self, + ): """ Test serialization/deserialization for FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN """ # Construct a json representation of a FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN model - floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json = {} - floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::virtual-network-interface:0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json = ( + {} + ) + floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json[ + 'crn' + ] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::virtual-network-interface:0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' # Construct a model instance of FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN by calling from_dict on the json representation - floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model = FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN.from_dict(floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json) - assert floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model != False + floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model = FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN.from_dict( + floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json + ) + assert ( + floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model + != False + ) # Construct a model instance of FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN by calling from_dict on the json representation - floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_dict = FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN.from_dict(floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json).__dict__ - floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model2 = FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN(**floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_dict) + floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_dict = FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN.from_dict( + floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json + ).__dict__ + floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model2 = FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN( + **floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_dict + ) # Verify the model instances are equivalent - assert floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model == floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model2 + assert ( + floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model + == floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model2 + ) # Convert model instance back to dict and verify no loss of data - floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json2 = floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model.to_dict() - assert floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json2 == floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json + floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json2 = ( + floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model.to_dict() + ) + assert ( + floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json2 + == floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json + ) class TestModel_FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref: @@ -95588,29 +107830,52 @@ class TestModel_FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualN Test Class for FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref """ - def test_floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_serialization(self): + def test_floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_serialization( + self, + ): """ Test serialization/deserialization for FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref """ # Construct a json representation of a FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref model - floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json = {} - floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/virtual_network_interfaces/0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json = ( + {} + ) + floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json[ + 'href' + ] = 'https://us-south.iaas.cloud.ibm.com/v1/virtual_network_interfaces/0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' # Construct a model instance of FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref by calling from_dict on the json representation - floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model = FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref.from_dict(floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json) - assert floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model != False + floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model = FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref.from_dict( + floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json + ) + assert ( + floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model + != False + ) # Construct a model instance of FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref by calling from_dict on the json representation - floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_dict = FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref.from_dict(floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json).__dict__ - floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model2 = FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref(**floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_dict) + floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_dict = FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref.from_dict( + floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json + ).__dict__ + floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model2 = FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref( + **floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_dict + ) # Verify the model instances are equivalent - assert floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model == floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model2 + assert ( + floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model + == floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model2 + ) # Convert model instance back to dict and verify no loss of data - floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json2 = floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model.to_dict() - assert floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json2 == floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json + floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json2 = ( + floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model.to_dict() + ) + assert ( + floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json2 + == floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json + ) class TestModel_FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById: @@ -95618,29 +107883,52 @@ class TestModel_FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualN Test Class for FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById """ - def test_floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_serialization(self): + def test_floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_serialization( + self, + ): """ Test serialization/deserialization for FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById """ # Construct a json representation of a FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById model - floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json = {} - floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json['id'] = '0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json = ( + {} + ) + floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json[ + 'id' + ] = '0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' # Construct a model instance of FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById by calling from_dict on the json representation - floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model = FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById.from_dict(floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json) - assert floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model != False + floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model = FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById.from_dict( + floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json + ) + assert ( + floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model + != False + ) # Construct a model instance of FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById by calling from_dict on the json representation - floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_dict = FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById.from_dict(floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json).__dict__ - floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model2 = FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById(**floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_dict) + floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_dict = FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById.from_dict( + floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json + ).__dict__ + floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model2 = FloatingIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById( + **floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_dict + ) # Verify the model instances are equivalent - assert floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model == floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model2 + assert ( + floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model + == floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model2 + ) # Convert model instance back to dict and verify no loss of data - floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json2 = floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model.to_dict() - assert floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json2 == floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json + floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json2 = ( + floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model.to_dict() + ) + assert ( + floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json2 + == floating_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json + ) class TestModel_FlowLogCollectorTargetPrototypeInstanceIdentityInstanceIdentityByCRN: @@ -95655,22 +107943,44 @@ def test_flow_log_collector_target_prototype_instance_identity_instance_identity # Construct a json representation of a FlowLogCollectorTargetPrototypeInstanceIdentityInstanceIdentityByCRN model flow_log_collector_target_prototype_instance_identity_instance_identity_by_crn_model_json = {} - flow_log_collector_target_prototype_instance_identity_instance_identity_by_crn_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::instance:0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' + flow_log_collector_target_prototype_instance_identity_instance_identity_by_crn_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::instance:0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' + ) # Construct a model instance of FlowLogCollectorTargetPrototypeInstanceIdentityInstanceIdentityByCRN by calling from_dict on the json representation - flow_log_collector_target_prototype_instance_identity_instance_identity_by_crn_model = FlowLogCollectorTargetPrototypeInstanceIdentityInstanceIdentityByCRN.from_dict(flow_log_collector_target_prototype_instance_identity_instance_identity_by_crn_model_json) + flow_log_collector_target_prototype_instance_identity_instance_identity_by_crn_model = ( + FlowLogCollectorTargetPrototypeInstanceIdentityInstanceIdentityByCRN.from_dict( + flow_log_collector_target_prototype_instance_identity_instance_identity_by_crn_model_json + ) + ) assert flow_log_collector_target_prototype_instance_identity_instance_identity_by_crn_model != False # Construct a model instance of FlowLogCollectorTargetPrototypeInstanceIdentityInstanceIdentityByCRN by calling from_dict on the json representation - flow_log_collector_target_prototype_instance_identity_instance_identity_by_crn_model_dict = FlowLogCollectorTargetPrototypeInstanceIdentityInstanceIdentityByCRN.from_dict(flow_log_collector_target_prototype_instance_identity_instance_identity_by_crn_model_json).__dict__ - flow_log_collector_target_prototype_instance_identity_instance_identity_by_crn_model2 = FlowLogCollectorTargetPrototypeInstanceIdentityInstanceIdentityByCRN(**flow_log_collector_target_prototype_instance_identity_instance_identity_by_crn_model_dict) + flow_log_collector_target_prototype_instance_identity_instance_identity_by_crn_model_dict = ( + FlowLogCollectorTargetPrototypeInstanceIdentityInstanceIdentityByCRN.from_dict( + flow_log_collector_target_prototype_instance_identity_instance_identity_by_crn_model_json + ).__dict__ + ) + flow_log_collector_target_prototype_instance_identity_instance_identity_by_crn_model2 = ( + FlowLogCollectorTargetPrototypeInstanceIdentityInstanceIdentityByCRN( + **flow_log_collector_target_prototype_instance_identity_instance_identity_by_crn_model_dict + ) + ) # Verify the model instances are equivalent - assert flow_log_collector_target_prototype_instance_identity_instance_identity_by_crn_model == flow_log_collector_target_prototype_instance_identity_instance_identity_by_crn_model2 + assert ( + flow_log_collector_target_prototype_instance_identity_instance_identity_by_crn_model + == flow_log_collector_target_prototype_instance_identity_instance_identity_by_crn_model2 + ) # Convert model instance back to dict and verify no loss of data - flow_log_collector_target_prototype_instance_identity_instance_identity_by_crn_model_json2 = flow_log_collector_target_prototype_instance_identity_instance_identity_by_crn_model.to_dict() - assert flow_log_collector_target_prototype_instance_identity_instance_identity_by_crn_model_json2 == flow_log_collector_target_prototype_instance_identity_instance_identity_by_crn_model_json + flow_log_collector_target_prototype_instance_identity_instance_identity_by_crn_model_json2 = ( + flow_log_collector_target_prototype_instance_identity_instance_identity_by_crn_model.to_dict() + ) + assert ( + flow_log_collector_target_prototype_instance_identity_instance_identity_by_crn_model_json2 + == flow_log_collector_target_prototype_instance_identity_instance_identity_by_crn_model_json + ) class TestModel_FlowLogCollectorTargetPrototypeInstanceIdentityInstanceIdentityByHref: @@ -95685,22 +107995,44 @@ def test_flow_log_collector_target_prototype_instance_identity_instance_identity # Construct a json representation of a FlowLogCollectorTargetPrototypeInstanceIdentityInstanceIdentityByHref model flow_log_collector_target_prototype_instance_identity_instance_identity_by_href_model_json = {} - flow_log_collector_target_prototype_instance_identity_instance_identity_by_href_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' + flow_log_collector_target_prototype_instance_identity_instance_identity_by_href_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' + ) # Construct a model instance of FlowLogCollectorTargetPrototypeInstanceIdentityInstanceIdentityByHref by calling from_dict on the json representation - flow_log_collector_target_prototype_instance_identity_instance_identity_by_href_model = FlowLogCollectorTargetPrototypeInstanceIdentityInstanceIdentityByHref.from_dict(flow_log_collector_target_prototype_instance_identity_instance_identity_by_href_model_json) + flow_log_collector_target_prototype_instance_identity_instance_identity_by_href_model = ( + FlowLogCollectorTargetPrototypeInstanceIdentityInstanceIdentityByHref.from_dict( + flow_log_collector_target_prototype_instance_identity_instance_identity_by_href_model_json + ) + ) assert flow_log_collector_target_prototype_instance_identity_instance_identity_by_href_model != False # Construct a model instance of FlowLogCollectorTargetPrototypeInstanceIdentityInstanceIdentityByHref by calling from_dict on the json representation - flow_log_collector_target_prototype_instance_identity_instance_identity_by_href_model_dict = FlowLogCollectorTargetPrototypeInstanceIdentityInstanceIdentityByHref.from_dict(flow_log_collector_target_prototype_instance_identity_instance_identity_by_href_model_json).__dict__ - flow_log_collector_target_prototype_instance_identity_instance_identity_by_href_model2 = FlowLogCollectorTargetPrototypeInstanceIdentityInstanceIdentityByHref(**flow_log_collector_target_prototype_instance_identity_instance_identity_by_href_model_dict) + flow_log_collector_target_prototype_instance_identity_instance_identity_by_href_model_dict = ( + FlowLogCollectorTargetPrototypeInstanceIdentityInstanceIdentityByHref.from_dict( + flow_log_collector_target_prototype_instance_identity_instance_identity_by_href_model_json + ).__dict__ + ) + flow_log_collector_target_prototype_instance_identity_instance_identity_by_href_model2 = ( + FlowLogCollectorTargetPrototypeInstanceIdentityInstanceIdentityByHref( + **flow_log_collector_target_prototype_instance_identity_instance_identity_by_href_model_dict + ) + ) # Verify the model instances are equivalent - assert flow_log_collector_target_prototype_instance_identity_instance_identity_by_href_model == flow_log_collector_target_prototype_instance_identity_instance_identity_by_href_model2 + assert ( + flow_log_collector_target_prototype_instance_identity_instance_identity_by_href_model + == flow_log_collector_target_prototype_instance_identity_instance_identity_by_href_model2 + ) # Convert model instance back to dict and verify no loss of data - flow_log_collector_target_prototype_instance_identity_instance_identity_by_href_model_json2 = flow_log_collector_target_prototype_instance_identity_instance_identity_by_href_model.to_dict() - assert flow_log_collector_target_prototype_instance_identity_instance_identity_by_href_model_json2 == flow_log_collector_target_prototype_instance_identity_instance_identity_by_href_model_json + flow_log_collector_target_prototype_instance_identity_instance_identity_by_href_model_json2 = ( + flow_log_collector_target_prototype_instance_identity_instance_identity_by_href_model.to_dict() + ) + assert ( + flow_log_collector_target_prototype_instance_identity_instance_identity_by_href_model_json2 + == flow_log_collector_target_prototype_instance_identity_instance_identity_by_href_model_json + ) class TestModel_FlowLogCollectorTargetPrototypeInstanceIdentityInstanceIdentityById: @@ -95715,22 +108047,44 @@ def test_flow_log_collector_target_prototype_instance_identity_instance_identity # Construct a json representation of a FlowLogCollectorTargetPrototypeInstanceIdentityInstanceIdentityById model flow_log_collector_target_prototype_instance_identity_instance_identity_by_id_model_json = {} - flow_log_collector_target_prototype_instance_identity_instance_identity_by_id_model_json['id'] = '0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' + flow_log_collector_target_prototype_instance_identity_instance_identity_by_id_model_json['id'] = ( + '0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' + ) # Construct a model instance of FlowLogCollectorTargetPrototypeInstanceIdentityInstanceIdentityById by calling from_dict on the json representation - flow_log_collector_target_prototype_instance_identity_instance_identity_by_id_model = FlowLogCollectorTargetPrototypeInstanceIdentityInstanceIdentityById.from_dict(flow_log_collector_target_prototype_instance_identity_instance_identity_by_id_model_json) + flow_log_collector_target_prototype_instance_identity_instance_identity_by_id_model = ( + FlowLogCollectorTargetPrototypeInstanceIdentityInstanceIdentityById.from_dict( + flow_log_collector_target_prototype_instance_identity_instance_identity_by_id_model_json + ) + ) assert flow_log_collector_target_prototype_instance_identity_instance_identity_by_id_model != False # Construct a model instance of FlowLogCollectorTargetPrototypeInstanceIdentityInstanceIdentityById by calling from_dict on the json representation - flow_log_collector_target_prototype_instance_identity_instance_identity_by_id_model_dict = FlowLogCollectorTargetPrototypeInstanceIdentityInstanceIdentityById.from_dict(flow_log_collector_target_prototype_instance_identity_instance_identity_by_id_model_json).__dict__ - flow_log_collector_target_prototype_instance_identity_instance_identity_by_id_model2 = FlowLogCollectorTargetPrototypeInstanceIdentityInstanceIdentityById(**flow_log_collector_target_prototype_instance_identity_instance_identity_by_id_model_dict) + flow_log_collector_target_prototype_instance_identity_instance_identity_by_id_model_dict = ( + FlowLogCollectorTargetPrototypeInstanceIdentityInstanceIdentityById.from_dict( + flow_log_collector_target_prototype_instance_identity_instance_identity_by_id_model_json + ).__dict__ + ) + flow_log_collector_target_prototype_instance_identity_instance_identity_by_id_model2 = ( + FlowLogCollectorTargetPrototypeInstanceIdentityInstanceIdentityById( + **flow_log_collector_target_prototype_instance_identity_instance_identity_by_id_model_dict + ) + ) # Verify the model instances are equivalent - assert flow_log_collector_target_prototype_instance_identity_instance_identity_by_id_model == flow_log_collector_target_prototype_instance_identity_instance_identity_by_id_model2 + assert ( + flow_log_collector_target_prototype_instance_identity_instance_identity_by_id_model + == flow_log_collector_target_prototype_instance_identity_instance_identity_by_id_model2 + ) # Convert model instance back to dict and verify no loss of data - flow_log_collector_target_prototype_instance_identity_instance_identity_by_id_model_json2 = flow_log_collector_target_prototype_instance_identity_instance_identity_by_id_model.to_dict() - assert flow_log_collector_target_prototype_instance_identity_instance_identity_by_id_model_json2 == flow_log_collector_target_prototype_instance_identity_instance_identity_by_id_model_json + flow_log_collector_target_prototype_instance_identity_instance_identity_by_id_model_json2 = ( + flow_log_collector_target_prototype_instance_identity_instance_identity_by_id_model.to_dict() + ) + assert ( + flow_log_collector_target_prototype_instance_identity_instance_identity_by_id_model_json2 + == flow_log_collector_target_prototype_instance_identity_instance_identity_by_id_model_json + ) class TestModel_FlowLogCollectorTargetPrototypeInstanceNetworkAttachmentIdentityInstanceNetworkAttachmentIdentityByHref: @@ -95738,29 +108092,52 @@ class TestModel_FlowLogCollectorTargetPrototypeInstanceNetworkAttachmentIdentity Test Class for FlowLogCollectorTargetPrototypeInstanceNetworkAttachmentIdentityInstanceNetworkAttachmentIdentityByHref """ - def test_flow_log_collector_target_prototype_instance_network_attachment_identity_instance_network_attachment_identity_by_href_serialization(self): + def test_flow_log_collector_target_prototype_instance_network_attachment_identity_instance_network_attachment_identity_by_href_serialization( + self, + ): """ Test serialization/deserialization for FlowLogCollectorTargetPrototypeInstanceNetworkAttachmentIdentityInstanceNetworkAttachmentIdentityByHref """ # Construct a json representation of a FlowLogCollectorTargetPrototypeInstanceNetworkAttachmentIdentityInstanceNetworkAttachmentIdentityByHref model - flow_log_collector_target_prototype_instance_network_attachment_identity_instance_network_attachment_identity_by_href_model_json = {} - flow_log_collector_target_prototype_instance_network_attachment_identity_instance_network_attachment_identity_by_href_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/network_attachments/0717-d54eb633-98ea-459d-aa00-6a8e780175a7' + flow_log_collector_target_prototype_instance_network_attachment_identity_instance_network_attachment_identity_by_href_model_json = ( + {} + ) + flow_log_collector_target_prototype_instance_network_attachment_identity_instance_network_attachment_identity_by_href_model_json[ + 'href' + ] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/network_attachments/0717-d54eb633-98ea-459d-aa00-6a8e780175a7' # Construct a model instance of FlowLogCollectorTargetPrototypeInstanceNetworkAttachmentIdentityInstanceNetworkAttachmentIdentityByHref by calling from_dict on the json representation - flow_log_collector_target_prototype_instance_network_attachment_identity_instance_network_attachment_identity_by_href_model = FlowLogCollectorTargetPrototypeInstanceNetworkAttachmentIdentityInstanceNetworkAttachmentIdentityByHref.from_dict(flow_log_collector_target_prototype_instance_network_attachment_identity_instance_network_attachment_identity_by_href_model_json) - assert flow_log_collector_target_prototype_instance_network_attachment_identity_instance_network_attachment_identity_by_href_model != False + flow_log_collector_target_prototype_instance_network_attachment_identity_instance_network_attachment_identity_by_href_model = FlowLogCollectorTargetPrototypeInstanceNetworkAttachmentIdentityInstanceNetworkAttachmentIdentityByHref.from_dict( + flow_log_collector_target_prototype_instance_network_attachment_identity_instance_network_attachment_identity_by_href_model_json + ) + assert ( + flow_log_collector_target_prototype_instance_network_attachment_identity_instance_network_attachment_identity_by_href_model + != False + ) # Construct a model instance of FlowLogCollectorTargetPrototypeInstanceNetworkAttachmentIdentityInstanceNetworkAttachmentIdentityByHref by calling from_dict on the json representation - flow_log_collector_target_prototype_instance_network_attachment_identity_instance_network_attachment_identity_by_href_model_dict = FlowLogCollectorTargetPrototypeInstanceNetworkAttachmentIdentityInstanceNetworkAttachmentIdentityByHref.from_dict(flow_log_collector_target_prototype_instance_network_attachment_identity_instance_network_attachment_identity_by_href_model_json).__dict__ - flow_log_collector_target_prototype_instance_network_attachment_identity_instance_network_attachment_identity_by_href_model2 = FlowLogCollectorTargetPrototypeInstanceNetworkAttachmentIdentityInstanceNetworkAttachmentIdentityByHref(**flow_log_collector_target_prototype_instance_network_attachment_identity_instance_network_attachment_identity_by_href_model_dict) + flow_log_collector_target_prototype_instance_network_attachment_identity_instance_network_attachment_identity_by_href_model_dict = FlowLogCollectorTargetPrototypeInstanceNetworkAttachmentIdentityInstanceNetworkAttachmentIdentityByHref.from_dict( + flow_log_collector_target_prototype_instance_network_attachment_identity_instance_network_attachment_identity_by_href_model_json + ).__dict__ + flow_log_collector_target_prototype_instance_network_attachment_identity_instance_network_attachment_identity_by_href_model2 = FlowLogCollectorTargetPrototypeInstanceNetworkAttachmentIdentityInstanceNetworkAttachmentIdentityByHref( + **flow_log_collector_target_prototype_instance_network_attachment_identity_instance_network_attachment_identity_by_href_model_dict + ) # Verify the model instances are equivalent - assert flow_log_collector_target_prototype_instance_network_attachment_identity_instance_network_attachment_identity_by_href_model == flow_log_collector_target_prototype_instance_network_attachment_identity_instance_network_attachment_identity_by_href_model2 + assert ( + flow_log_collector_target_prototype_instance_network_attachment_identity_instance_network_attachment_identity_by_href_model + == flow_log_collector_target_prototype_instance_network_attachment_identity_instance_network_attachment_identity_by_href_model2 + ) # Convert model instance back to dict and verify no loss of data - flow_log_collector_target_prototype_instance_network_attachment_identity_instance_network_attachment_identity_by_href_model_json2 = flow_log_collector_target_prototype_instance_network_attachment_identity_instance_network_attachment_identity_by_href_model.to_dict() - assert flow_log_collector_target_prototype_instance_network_attachment_identity_instance_network_attachment_identity_by_href_model_json2 == flow_log_collector_target_prototype_instance_network_attachment_identity_instance_network_attachment_identity_by_href_model_json + flow_log_collector_target_prototype_instance_network_attachment_identity_instance_network_attachment_identity_by_href_model_json2 = ( + flow_log_collector_target_prototype_instance_network_attachment_identity_instance_network_attachment_identity_by_href_model.to_dict() + ) + assert ( + flow_log_collector_target_prototype_instance_network_attachment_identity_instance_network_attachment_identity_by_href_model_json2 + == flow_log_collector_target_prototype_instance_network_attachment_identity_instance_network_attachment_identity_by_href_model_json + ) class TestModel_FlowLogCollectorTargetPrototypeInstanceNetworkAttachmentIdentityInstanceNetworkAttachmentIdentityById: @@ -95768,29 +108145,52 @@ class TestModel_FlowLogCollectorTargetPrototypeInstanceNetworkAttachmentIdentity Test Class for FlowLogCollectorTargetPrototypeInstanceNetworkAttachmentIdentityInstanceNetworkAttachmentIdentityById """ - def test_flow_log_collector_target_prototype_instance_network_attachment_identity_instance_network_attachment_identity_by_id_serialization(self): + def test_flow_log_collector_target_prototype_instance_network_attachment_identity_instance_network_attachment_identity_by_id_serialization( + self, + ): """ Test serialization/deserialization for FlowLogCollectorTargetPrototypeInstanceNetworkAttachmentIdentityInstanceNetworkAttachmentIdentityById """ # Construct a json representation of a FlowLogCollectorTargetPrototypeInstanceNetworkAttachmentIdentityInstanceNetworkAttachmentIdentityById model - flow_log_collector_target_prototype_instance_network_attachment_identity_instance_network_attachment_identity_by_id_model_json = {} - flow_log_collector_target_prototype_instance_network_attachment_identity_instance_network_attachment_identity_by_id_model_json['id'] = '0717-d54eb633-98ea-459d-aa00-6a8e780175a7' + flow_log_collector_target_prototype_instance_network_attachment_identity_instance_network_attachment_identity_by_id_model_json = ( + {} + ) + flow_log_collector_target_prototype_instance_network_attachment_identity_instance_network_attachment_identity_by_id_model_json[ + 'id' + ] = '0717-d54eb633-98ea-459d-aa00-6a8e780175a7' # Construct a model instance of FlowLogCollectorTargetPrototypeInstanceNetworkAttachmentIdentityInstanceNetworkAttachmentIdentityById by calling from_dict on the json representation - flow_log_collector_target_prototype_instance_network_attachment_identity_instance_network_attachment_identity_by_id_model = FlowLogCollectorTargetPrototypeInstanceNetworkAttachmentIdentityInstanceNetworkAttachmentIdentityById.from_dict(flow_log_collector_target_prototype_instance_network_attachment_identity_instance_network_attachment_identity_by_id_model_json) - assert flow_log_collector_target_prototype_instance_network_attachment_identity_instance_network_attachment_identity_by_id_model != False + flow_log_collector_target_prototype_instance_network_attachment_identity_instance_network_attachment_identity_by_id_model = FlowLogCollectorTargetPrototypeInstanceNetworkAttachmentIdentityInstanceNetworkAttachmentIdentityById.from_dict( + flow_log_collector_target_prototype_instance_network_attachment_identity_instance_network_attachment_identity_by_id_model_json + ) + assert ( + flow_log_collector_target_prototype_instance_network_attachment_identity_instance_network_attachment_identity_by_id_model + != False + ) # Construct a model instance of FlowLogCollectorTargetPrototypeInstanceNetworkAttachmentIdentityInstanceNetworkAttachmentIdentityById by calling from_dict on the json representation - flow_log_collector_target_prototype_instance_network_attachment_identity_instance_network_attachment_identity_by_id_model_dict = FlowLogCollectorTargetPrototypeInstanceNetworkAttachmentIdentityInstanceNetworkAttachmentIdentityById.from_dict(flow_log_collector_target_prototype_instance_network_attachment_identity_instance_network_attachment_identity_by_id_model_json).__dict__ - flow_log_collector_target_prototype_instance_network_attachment_identity_instance_network_attachment_identity_by_id_model2 = FlowLogCollectorTargetPrototypeInstanceNetworkAttachmentIdentityInstanceNetworkAttachmentIdentityById(**flow_log_collector_target_prototype_instance_network_attachment_identity_instance_network_attachment_identity_by_id_model_dict) + flow_log_collector_target_prototype_instance_network_attachment_identity_instance_network_attachment_identity_by_id_model_dict = FlowLogCollectorTargetPrototypeInstanceNetworkAttachmentIdentityInstanceNetworkAttachmentIdentityById.from_dict( + flow_log_collector_target_prototype_instance_network_attachment_identity_instance_network_attachment_identity_by_id_model_json + ).__dict__ + flow_log_collector_target_prototype_instance_network_attachment_identity_instance_network_attachment_identity_by_id_model2 = FlowLogCollectorTargetPrototypeInstanceNetworkAttachmentIdentityInstanceNetworkAttachmentIdentityById( + **flow_log_collector_target_prototype_instance_network_attachment_identity_instance_network_attachment_identity_by_id_model_dict + ) # Verify the model instances are equivalent - assert flow_log_collector_target_prototype_instance_network_attachment_identity_instance_network_attachment_identity_by_id_model == flow_log_collector_target_prototype_instance_network_attachment_identity_instance_network_attachment_identity_by_id_model2 + assert ( + flow_log_collector_target_prototype_instance_network_attachment_identity_instance_network_attachment_identity_by_id_model + == flow_log_collector_target_prototype_instance_network_attachment_identity_instance_network_attachment_identity_by_id_model2 + ) # Convert model instance back to dict and verify no loss of data - flow_log_collector_target_prototype_instance_network_attachment_identity_instance_network_attachment_identity_by_id_model_json2 = flow_log_collector_target_prototype_instance_network_attachment_identity_instance_network_attachment_identity_by_id_model.to_dict() - assert flow_log_collector_target_prototype_instance_network_attachment_identity_instance_network_attachment_identity_by_id_model_json2 == flow_log_collector_target_prototype_instance_network_attachment_identity_instance_network_attachment_identity_by_id_model_json + flow_log_collector_target_prototype_instance_network_attachment_identity_instance_network_attachment_identity_by_id_model_json2 = ( + flow_log_collector_target_prototype_instance_network_attachment_identity_instance_network_attachment_identity_by_id_model.to_dict() + ) + assert ( + flow_log_collector_target_prototype_instance_network_attachment_identity_instance_network_attachment_identity_by_id_model_json2 + == flow_log_collector_target_prototype_instance_network_attachment_identity_instance_network_attachment_identity_by_id_model_json + ) class TestModel_FlowLogCollectorTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityByHref: @@ -95798,29 +108198,52 @@ class TestModel_FlowLogCollectorTargetPrototypeNetworkInterfaceIdentityNetworkIn Test Class for FlowLogCollectorTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityByHref """ - def test_flow_log_collector_target_prototype_network_interface_identity_network_interface_identity_by_href_serialization(self): + def test_flow_log_collector_target_prototype_network_interface_identity_network_interface_identity_by_href_serialization( + self, + ): """ Test serialization/deserialization for FlowLogCollectorTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityByHref """ # Construct a json representation of a FlowLogCollectorTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityByHref model - flow_log_collector_target_prototype_network_interface_identity_network_interface_identity_by_href_model_json = {} - flow_log_collector_target_prototype_network_interface_identity_network_interface_identity_by_href_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/network_interfaces/0717-d54eb633-98ea-459d-aa00-6a8e780175a7' + flow_log_collector_target_prototype_network_interface_identity_network_interface_identity_by_href_model_json = ( + {} + ) + flow_log_collector_target_prototype_network_interface_identity_network_interface_identity_by_href_model_json[ + 'href' + ] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0/network_interfaces/0717-d54eb633-98ea-459d-aa00-6a8e780175a7' # Construct a model instance of FlowLogCollectorTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityByHref by calling from_dict on the json representation - flow_log_collector_target_prototype_network_interface_identity_network_interface_identity_by_href_model = FlowLogCollectorTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityByHref.from_dict(flow_log_collector_target_prototype_network_interface_identity_network_interface_identity_by_href_model_json) - assert flow_log_collector_target_prototype_network_interface_identity_network_interface_identity_by_href_model != False + flow_log_collector_target_prototype_network_interface_identity_network_interface_identity_by_href_model = FlowLogCollectorTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityByHref.from_dict( + flow_log_collector_target_prototype_network_interface_identity_network_interface_identity_by_href_model_json + ) + assert ( + flow_log_collector_target_prototype_network_interface_identity_network_interface_identity_by_href_model + != False + ) # Construct a model instance of FlowLogCollectorTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityByHref by calling from_dict on the json representation - flow_log_collector_target_prototype_network_interface_identity_network_interface_identity_by_href_model_dict = FlowLogCollectorTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityByHref.from_dict(flow_log_collector_target_prototype_network_interface_identity_network_interface_identity_by_href_model_json).__dict__ - flow_log_collector_target_prototype_network_interface_identity_network_interface_identity_by_href_model2 = FlowLogCollectorTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityByHref(**flow_log_collector_target_prototype_network_interface_identity_network_interface_identity_by_href_model_dict) + flow_log_collector_target_prototype_network_interface_identity_network_interface_identity_by_href_model_dict = FlowLogCollectorTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityByHref.from_dict( + flow_log_collector_target_prototype_network_interface_identity_network_interface_identity_by_href_model_json + ).__dict__ + flow_log_collector_target_prototype_network_interface_identity_network_interface_identity_by_href_model2 = FlowLogCollectorTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityByHref( + **flow_log_collector_target_prototype_network_interface_identity_network_interface_identity_by_href_model_dict + ) # Verify the model instances are equivalent - assert flow_log_collector_target_prototype_network_interface_identity_network_interface_identity_by_href_model == flow_log_collector_target_prototype_network_interface_identity_network_interface_identity_by_href_model2 + assert ( + flow_log_collector_target_prototype_network_interface_identity_network_interface_identity_by_href_model + == flow_log_collector_target_prototype_network_interface_identity_network_interface_identity_by_href_model2 + ) # Convert model instance back to dict and verify no loss of data - flow_log_collector_target_prototype_network_interface_identity_network_interface_identity_by_href_model_json2 = flow_log_collector_target_prototype_network_interface_identity_network_interface_identity_by_href_model.to_dict() - assert flow_log_collector_target_prototype_network_interface_identity_network_interface_identity_by_href_model_json2 == flow_log_collector_target_prototype_network_interface_identity_network_interface_identity_by_href_model_json + flow_log_collector_target_prototype_network_interface_identity_network_interface_identity_by_href_model_json2 = ( + flow_log_collector_target_prototype_network_interface_identity_network_interface_identity_by_href_model.to_dict() + ) + assert ( + flow_log_collector_target_prototype_network_interface_identity_network_interface_identity_by_href_model_json2 + == flow_log_collector_target_prototype_network_interface_identity_network_interface_identity_by_href_model_json + ) class TestModel_FlowLogCollectorTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityById: @@ -95828,29 +108251,50 @@ class TestModel_FlowLogCollectorTargetPrototypeNetworkInterfaceIdentityNetworkIn Test Class for FlowLogCollectorTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityById """ - def test_flow_log_collector_target_prototype_network_interface_identity_network_interface_identity_by_id_serialization(self): + def test_flow_log_collector_target_prototype_network_interface_identity_network_interface_identity_by_id_serialization( + self, + ): """ Test serialization/deserialization for FlowLogCollectorTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityById """ # Construct a json representation of a FlowLogCollectorTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityById model flow_log_collector_target_prototype_network_interface_identity_network_interface_identity_by_id_model_json = {} - flow_log_collector_target_prototype_network_interface_identity_network_interface_identity_by_id_model_json['id'] = '0717-d54eb633-98ea-459d-aa00-6a8e780175a7' + flow_log_collector_target_prototype_network_interface_identity_network_interface_identity_by_id_model_json[ + 'id' + ] = '0717-d54eb633-98ea-459d-aa00-6a8e780175a7' # Construct a model instance of FlowLogCollectorTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityById by calling from_dict on the json representation - flow_log_collector_target_prototype_network_interface_identity_network_interface_identity_by_id_model = FlowLogCollectorTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityById.from_dict(flow_log_collector_target_prototype_network_interface_identity_network_interface_identity_by_id_model_json) - assert flow_log_collector_target_prototype_network_interface_identity_network_interface_identity_by_id_model != False + flow_log_collector_target_prototype_network_interface_identity_network_interface_identity_by_id_model = FlowLogCollectorTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityById.from_dict( + flow_log_collector_target_prototype_network_interface_identity_network_interface_identity_by_id_model_json + ) + assert ( + flow_log_collector_target_prototype_network_interface_identity_network_interface_identity_by_id_model + != False + ) # Construct a model instance of FlowLogCollectorTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityById by calling from_dict on the json representation - flow_log_collector_target_prototype_network_interface_identity_network_interface_identity_by_id_model_dict = FlowLogCollectorTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityById.from_dict(flow_log_collector_target_prototype_network_interface_identity_network_interface_identity_by_id_model_json).__dict__ - flow_log_collector_target_prototype_network_interface_identity_network_interface_identity_by_id_model2 = FlowLogCollectorTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityById(**flow_log_collector_target_prototype_network_interface_identity_network_interface_identity_by_id_model_dict) + flow_log_collector_target_prototype_network_interface_identity_network_interface_identity_by_id_model_dict = FlowLogCollectorTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityById.from_dict( + flow_log_collector_target_prototype_network_interface_identity_network_interface_identity_by_id_model_json + ).__dict__ + flow_log_collector_target_prototype_network_interface_identity_network_interface_identity_by_id_model2 = FlowLogCollectorTargetPrototypeNetworkInterfaceIdentityNetworkInterfaceIdentityById( + **flow_log_collector_target_prototype_network_interface_identity_network_interface_identity_by_id_model_dict + ) # Verify the model instances are equivalent - assert flow_log_collector_target_prototype_network_interface_identity_network_interface_identity_by_id_model == flow_log_collector_target_prototype_network_interface_identity_network_interface_identity_by_id_model2 + assert ( + flow_log_collector_target_prototype_network_interface_identity_network_interface_identity_by_id_model + == flow_log_collector_target_prototype_network_interface_identity_network_interface_identity_by_id_model2 + ) # Convert model instance back to dict and verify no loss of data - flow_log_collector_target_prototype_network_interface_identity_network_interface_identity_by_id_model_json2 = flow_log_collector_target_prototype_network_interface_identity_network_interface_identity_by_id_model.to_dict() - assert flow_log_collector_target_prototype_network_interface_identity_network_interface_identity_by_id_model_json2 == flow_log_collector_target_prototype_network_interface_identity_network_interface_identity_by_id_model_json + flow_log_collector_target_prototype_network_interface_identity_network_interface_identity_by_id_model_json2 = ( + flow_log_collector_target_prototype_network_interface_identity_network_interface_identity_by_id_model.to_dict() + ) + assert ( + flow_log_collector_target_prototype_network_interface_identity_network_interface_identity_by_id_model_json2 + == flow_log_collector_target_prototype_network_interface_identity_network_interface_identity_by_id_model_json + ) class TestModel_FlowLogCollectorTargetPrototypeSubnetIdentitySubnetIdentityByCRN: @@ -95865,22 +108309,44 @@ def test_flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_ # Construct a json representation of a FlowLogCollectorTargetPrototypeSubnetIdentitySubnetIdentityByCRN model flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_crn_model_json = {} - flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_crn_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_crn_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::subnet:0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) # Construct a model instance of FlowLogCollectorTargetPrototypeSubnetIdentitySubnetIdentityByCRN by calling from_dict on the json representation - flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_crn_model = FlowLogCollectorTargetPrototypeSubnetIdentitySubnetIdentityByCRN.from_dict(flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_crn_model_json) + flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_crn_model = ( + FlowLogCollectorTargetPrototypeSubnetIdentitySubnetIdentityByCRN.from_dict( + flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_crn_model_json + ) + ) assert flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_crn_model != False # Construct a model instance of FlowLogCollectorTargetPrototypeSubnetIdentitySubnetIdentityByCRN by calling from_dict on the json representation - flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_crn_model_dict = FlowLogCollectorTargetPrototypeSubnetIdentitySubnetIdentityByCRN.from_dict(flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_crn_model_json).__dict__ - flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_crn_model2 = FlowLogCollectorTargetPrototypeSubnetIdentitySubnetIdentityByCRN(**flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_crn_model_dict) + flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_crn_model_dict = ( + FlowLogCollectorTargetPrototypeSubnetIdentitySubnetIdentityByCRN.from_dict( + flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_crn_model_json + ).__dict__ + ) + flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_crn_model2 = ( + FlowLogCollectorTargetPrototypeSubnetIdentitySubnetIdentityByCRN( + **flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_crn_model_dict + ) + ) # Verify the model instances are equivalent - assert flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_crn_model == flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_crn_model2 + assert ( + flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_crn_model + == flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_crn_model2 + ) # Convert model instance back to dict and verify no loss of data - flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_crn_model_json2 = flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_crn_model.to_dict() - assert flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_crn_model_json2 == flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_crn_model_json + flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_crn_model_json2 = ( + flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_crn_model.to_dict() + ) + assert ( + flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_crn_model_json2 + == flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_crn_model_json + ) class TestModel_FlowLogCollectorTargetPrototypeSubnetIdentitySubnetIdentityByHref: @@ -95895,22 +108361,44 @@ def test_flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_ # Construct a json representation of a FlowLogCollectorTargetPrototypeSubnetIdentitySubnetIdentityByHref model flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_href_model_json = {} - flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_href_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_href_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) # Construct a model instance of FlowLogCollectorTargetPrototypeSubnetIdentitySubnetIdentityByHref by calling from_dict on the json representation - flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_href_model = FlowLogCollectorTargetPrototypeSubnetIdentitySubnetIdentityByHref.from_dict(flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_href_model_json) + flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_href_model = ( + FlowLogCollectorTargetPrototypeSubnetIdentitySubnetIdentityByHref.from_dict( + flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_href_model_json + ) + ) assert flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_href_model != False # Construct a model instance of FlowLogCollectorTargetPrototypeSubnetIdentitySubnetIdentityByHref by calling from_dict on the json representation - flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_href_model_dict = FlowLogCollectorTargetPrototypeSubnetIdentitySubnetIdentityByHref.from_dict(flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_href_model_json).__dict__ - flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_href_model2 = FlowLogCollectorTargetPrototypeSubnetIdentitySubnetIdentityByHref(**flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_href_model_dict) + flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_href_model_dict = ( + FlowLogCollectorTargetPrototypeSubnetIdentitySubnetIdentityByHref.from_dict( + flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_href_model_json + ).__dict__ + ) + flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_href_model2 = ( + FlowLogCollectorTargetPrototypeSubnetIdentitySubnetIdentityByHref( + **flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_href_model_dict + ) + ) # Verify the model instances are equivalent - assert flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_href_model == flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_href_model2 + assert ( + flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_href_model + == flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_href_model2 + ) # Convert model instance back to dict and verify no loss of data - flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_href_model_json2 = flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_href_model.to_dict() - assert flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_href_model_json2 == flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_href_model_json + flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_href_model_json2 = ( + flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_href_model.to_dict() + ) + assert ( + flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_href_model_json2 + == flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_href_model_json + ) class TestModel_FlowLogCollectorTargetPrototypeSubnetIdentitySubnetIdentityById: @@ -95925,22 +108413,44 @@ def test_flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_ # Construct a json representation of a FlowLogCollectorTargetPrototypeSubnetIdentitySubnetIdentityById model flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_id_model_json = {} - flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_id_model_json['id'] = '0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_id_model_json['id'] = ( + '0717-7ec86020-1c6e-4889-b3f0-a15f2e50f87e' + ) # Construct a model instance of FlowLogCollectorTargetPrototypeSubnetIdentitySubnetIdentityById by calling from_dict on the json representation - flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_id_model = FlowLogCollectorTargetPrototypeSubnetIdentitySubnetIdentityById.from_dict(flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_id_model_json) + flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_id_model = ( + FlowLogCollectorTargetPrototypeSubnetIdentitySubnetIdentityById.from_dict( + flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_id_model_json + ) + ) assert flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_id_model != False # Construct a model instance of FlowLogCollectorTargetPrototypeSubnetIdentitySubnetIdentityById by calling from_dict on the json representation - flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_id_model_dict = FlowLogCollectorTargetPrototypeSubnetIdentitySubnetIdentityById.from_dict(flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_id_model_json).__dict__ - flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_id_model2 = FlowLogCollectorTargetPrototypeSubnetIdentitySubnetIdentityById(**flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_id_model_dict) + flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_id_model_dict = ( + FlowLogCollectorTargetPrototypeSubnetIdentitySubnetIdentityById.from_dict( + flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_id_model_json + ).__dict__ + ) + flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_id_model2 = ( + FlowLogCollectorTargetPrototypeSubnetIdentitySubnetIdentityById( + **flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_id_model_dict + ) + ) # Verify the model instances are equivalent - assert flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_id_model == flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_id_model2 + assert ( + flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_id_model + == flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_id_model2 + ) # Convert model instance back to dict and verify no loss of data - flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_id_model_json2 = flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_id_model.to_dict() - assert flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_id_model_json2 == flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_id_model_json + flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_id_model_json2 = ( + flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_id_model.to_dict() + ) + assert ( + flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_id_model_json2 + == flow_log_collector_target_prototype_subnet_identity_subnet_identity_by_id_model_json + ) class TestModel_FlowLogCollectorTargetPrototypeVPCIdentityVPCIdentityByCRN: @@ -95955,22 +108465,44 @@ def test_flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_crn_se # Construct a json representation of a FlowLogCollectorTargetPrototypeVPCIdentityVPCIdentityByCRN model flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_crn_model_json = {} - flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_crn_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_crn_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) # Construct a model instance of FlowLogCollectorTargetPrototypeVPCIdentityVPCIdentityByCRN by calling from_dict on the json representation - flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_crn_model = FlowLogCollectorTargetPrototypeVPCIdentityVPCIdentityByCRN.from_dict(flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_crn_model_json) + flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_crn_model = ( + FlowLogCollectorTargetPrototypeVPCIdentityVPCIdentityByCRN.from_dict( + flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_crn_model_json + ) + ) assert flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_crn_model != False # Construct a model instance of FlowLogCollectorTargetPrototypeVPCIdentityVPCIdentityByCRN by calling from_dict on the json representation - flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_crn_model_dict = FlowLogCollectorTargetPrototypeVPCIdentityVPCIdentityByCRN.from_dict(flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_crn_model_json).__dict__ - flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_crn_model2 = FlowLogCollectorTargetPrototypeVPCIdentityVPCIdentityByCRN(**flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_crn_model_dict) + flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_crn_model_dict = ( + FlowLogCollectorTargetPrototypeVPCIdentityVPCIdentityByCRN.from_dict( + flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_crn_model_json + ).__dict__ + ) + flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_crn_model2 = ( + FlowLogCollectorTargetPrototypeVPCIdentityVPCIdentityByCRN( + **flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_crn_model_dict + ) + ) # Verify the model instances are equivalent - assert flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_crn_model == flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_crn_model2 + assert ( + flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_crn_model + == flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_crn_model2 + ) # Convert model instance back to dict and verify no loss of data - flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_crn_model_json2 = flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_crn_model.to_dict() - assert flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_crn_model_json2 == flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_crn_model_json + flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_crn_model_json2 = ( + flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_crn_model.to_dict() + ) + assert ( + flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_crn_model_json2 + == flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_crn_model_json + ) class TestModel_FlowLogCollectorTargetPrototypeVPCIdentityVPCIdentityByHref: @@ -95985,22 +108517,44 @@ def test_flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_href_s # Construct a json representation of a FlowLogCollectorTargetPrototypeVPCIdentityVPCIdentityByHref model flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_href_model_json = {} - flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_href_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_href_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) # Construct a model instance of FlowLogCollectorTargetPrototypeVPCIdentityVPCIdentityByHref by calling from_dict on the json representation - flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_href_model = FlowLogCollectorTargetPrototypeVPCIdentityVPCIdentityByHref.from_dict(flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_href_model_json) + flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_href_model = ( + FlowLogCollectorTargetPrototypeVPCIdentityVPCIdentityByHref.from_dict( + flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_href_model_json + ) + ) assert flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_href_model != False # Construct a model instance of FlowLogCollectorTargetPrototypeVPCIdentityVPCIdentityByHref by calling from_dict on the json representation - flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_href_model_dict = FlowLogCollectorTargetPrototypeVPCIdentityVPCIdentityByHref.from_dict(flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_href_model_json).__dict__ - flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_href_model2 = FlowLogCollectorTargetPrototypeVPCIdentityVPCIdentityByHref(**flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_href_model_dict) + flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_href_model_dict = ( + FlowLogCollectorTargetPrototypeVPCIdentityVPCIdentityByHref.from_dict( + flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_href_model_json + ).__dict__ + ) + flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_href_model2 = ( + FlowLogCollectorTargetPrototypeVPCIdentityVPCIdentityByHref( + **flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_href_model_dict + ) + ) # Verify the model instances are equivalent - assert flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_href_model == flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_href_model2 + assert ( + flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_href_model + == flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_href_model2 + ) # Convert model instance back to dict and verify no loss of data - flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_href_model_json2 = flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_href_model.to_dict() - assert flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_href_model_json2 == flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_href_model_json + flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_href_model_json2 = ( + flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_href_model.to_dict() + ) + assert ( + flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_href_model_json2 + == flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_href_model_json + ) class TestModel_FlowLogCollectorTargetPrototypeVPCIdentityVPCIdentityById: @@ -96015,22 +108569,44 @@ def test_flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_id_ser # Construct a json representation of a FlowLogCollectorTargetPrototypeVPCIdentityVPCIdentityById model flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_id_model_json = {} - flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_id_model_json['id'] = 'r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_id_model_json['id'] = ( + 'r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' + ) # Construct a model instance of FlowLogCollectorTargetPrototypeVPCIdentityVPCIdentityById by calling from_dict on the json representation - flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_id_model = FlowLogCollectorTargetPrototypeVPCIdentityVPCIdentityById.from_dict(flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_id_model_json) + flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_id_model = ( + FlowLogCollectorTargetPrototypeVPCIdentityVPCIdentityById.from_dict( + flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_id_model_json + ) + ) assert flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_id_model != False # Construct a model instance of FlowLogCollectorTargetPrototypeVPCIdentityVPCIdentityById by calling from_dict on the json representation - flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_id_model_dict = FlowLogCollectorTargetPrototypeVPCIdentityVPCIdentityById.from_dict(flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_id_model_json).__dict__ - flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_id_model2 = FlowLogCollectorTargetPrototypeVPCIdentityVPCIdentityById(**flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_id_model_dict) + flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_id_model_dict = ( + FlowLogCollectorTargetPrototypeVPCIdentityVPCIdentityById.from_dict( + flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_id_model_json + ).__dict__ + ) + flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_id_model2 = ( + FlowLogCollectorTargetPrototypeVPCIdentityVPCIdentityById( + **flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_id_model_dict + ) + ) # Verify the model instances are equivalent - assert flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_id_model == flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_id_model2 + assert ( + flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_id_model + == flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_id_model2 + ) # Convert model instance back to dict and verify no loss of data - flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_id_model_json2 = flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_id_model.to_dict() - assert flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_id_model_json2 == flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_id_model_json + flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_id_model_json2 = ( + flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_id_model.to_dict() + ) + assert ( + flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_id_model_json2 + == flow_log_collector_target_prototype_vpc_identity_vpc_identity_by_id_model_json + ) class TestModel_FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN: @@ -96038,29 +108614,52 @@ class TestModel_FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVi Test Class for FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN """ - def test_flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_serialization(self): + def test_flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_serialization( + self, + ): """ Test serialization/deserialization for FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN """ # Construct a json representation of a FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN model - flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json = {} - flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::virtual-network-interface:0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json = ( + {} + ) + flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json[ + 'crn' + ] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::virtual-network-interface:0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' # Construct a model instance of FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN by calling from_dict on the json representation - flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model = FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN.from_dict(flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json) - assert flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model != False + flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model = FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN.from_dict( + flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json + ) + assert ( + flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model + != False + ) # Construct a model instance of FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN by calling from_dict on the json representation - flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_dict = FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN.from_dict(flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json).__dict__ - flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model2 = FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN(**flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_dict) + flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_dict = FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN.from_dict( + flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json + ).__dict__ + flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model2 = FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN( + **flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_dict + ) # Verify the model instances are equivalent - assert flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model == flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model2 + assert ( + flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model + == flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model2 + ) # Convert model instance back to dict and verify no loss of data - flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json2 = flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model.to_dict() - assert flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json2 == flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json + flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json2 = ( + flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model.to_dict() + ) + assert ( + flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json2 + == flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json + ) class TestModel_FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref: @@ -96068,29 +108667,52 @@ class TestModel_FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVi Test Class for FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref """ - def test_flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_serialization(self): + def test_flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_serialization( + self, + ): """ Test serialization/deserialization for FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref """ # Construct a json representation of a FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref model - flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json = {} - flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/virtual_network_interfaces/0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json = ( + {} + ) + flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json[ + 'href' + ] = 'https://us-south.iaas.cloud.ibm.com/v1/virtual_network_interfaces/0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' # Construct a model instance of FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref by calling from_dict on the json representation - flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model = FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref.from_dict(flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json) - assert flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model != False + flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model = FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref.from_dict( + flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json + ) + assert ( + flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model + != False + ) # Construct a model instance of FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref by calling from_dict on the json representation - flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_dict = FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref.from_dict(flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json).__dict__ - flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model2 = FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref(**flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_dict) + flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_dict = FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref.from_dict( + flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json + ).__dict__ + flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model2 = FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref( + **flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_dict + ) # Verify the model instances are equivalent - assert flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model == flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model2 + assert ( + flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model + == flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model2 + ) # Convert model instance back to dict and verify no loss of data - flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json2 = flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model.to_dict() - assert flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json2 == flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json + flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json2 = ( + flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model.to_dict() + ) + assert ( + flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json2 + == flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json + ) class TestModel_FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById: @@ -96098,29 +108720,52 @@ class TestModel_FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVi Test Class for FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById """ - def test_flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_serialization(self): + def test_flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_serialization( + self, + ): """ Test serialization/deserialization for FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById """ # Construct a json representation of a FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById model - flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json = {} - flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json['id'] = '0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json = ( + {} + ) + flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json[ + 'id' + ] = '0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' # Construct a model instance of FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById by calling from_dict on the json representation - flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model = FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById.from_dict(flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json) - assert flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model != False + flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model = FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById.from_dict( + flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json + ) + assert ( + flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model + != False + ) # Construct a model instance of FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById by calling from_dict on the json representation - flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_dict = FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById.from_dict(flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json).__dict__ - flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model2 = FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById(**flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_dict) + flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_dict = FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById.from_dict( + flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json + ).__dict__ + flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model2 = FlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById( + **flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_dict + ) # Verify the model instances are equivalent - assert flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model == flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model2 + assert ( + flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model + == flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model2 + ) # Convert model instance back to dict and verify no loss of data - flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json2 = flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model.to_dict() - assert flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json2 == flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json + flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json2 = ( + flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model.to_dict() + ) + assert ( + flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json2 + == flow_log_collector_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json + ) class TestModel_InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceClusterNetworkInterfaceIdentityClusterNetworkInterfaceIdentityByHref: @@ -96128,29 +108773,52 @@ class TestModel_InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterface Test Class for InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceClusterNetworkInterfaceIdentityClusterNetworkInterfaceIdentityByHref """ - def test_instance_cluster_network_attachment_prototype_cluster_network_interface_cluster_network_interface_identity_cluster_network_interface_identity_by_href_serialization(self): + def test_instance_cluster_network_attachment_prototype_cluster_network_interface_cluster_network_interface_identity_cluster_network_interface_identity_by_href_serialization( + self, + ): """ Test serialization/deserialization for InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceClusterNetworkInterfaceIdentityClusterNetworkInterfaceIdentityByHref """ # Construct a json representation of a InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceClusterNetworkInterfaceIdentityClusterNetworkInterfaceIdentityByHref model - instance_cluster_network_attachment_prototype_cluster_network_interface_cluster_network_interface_identity_cluster_network_interface_identity_by_href_model_json = {} - instance_cluster_network_attachment_prototype_cluster_network_interface_cluster_network_interface_identity_cluster_network_interface_identity_by_href_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/cluster_networks/0717-da0df18c-7598-4633-a648-fdaac28a5573/interfaces/0717-ffc092f7-5d02-4b93-ab69-26860529b9fb' + instance_cluster_network_attachment_prototype_cluster_network_interface_cluster_network_interface_identity_cluster_network_interface_identity_by_href_model_json = ( + {} + ) + instance_cluster_network_attachment_prototype_cluster_network_interface_cluster_network_interface_identity_cluster_network_interface_identity_by_href_model_json[ + 'href' + ] = 'https://us-south.iaas.cloud.ibm.com/v1/cluster_networks/0717-da0df18c-7598-4633-a648-fdaac28a5573/interfaces/0717-ffc092f7-5d02-4b93-ab69-26860529b9fb' # Construct a model instance of InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceClusterNetworkInterfaceIdentityClusterNetworkInterfaceIdentityByHref by calling from_dict on the json representation - instance_cluster_network_attachment_prototype_cluster_network_interface_cluster_network_interface_identity_cluster_network_interface_identity_by_href_model = InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceClusterNetworkInterfaceIdentityClusterNetworkInterfaceIdentityByHref.from_dict(instance_cluster_network_attachment_prototype_cluster_network_interface_cluster_network_interface_identity_cluster_network_interface_identity_by_href_model_json) - assert instance_cluster_network_attachment_prototype_cluster_network_interface_cluster_network_interface_identity_cluster_network_interface_identity_by_href_model != False + instance_cluster_network_attachment_prototype_cluster_network_interface_cluster_network_interface_identity_cluster_network_interface_identity_by_href_model = InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceClusterNetworkInterfaceIdentityClusterNetworkInterfaceIdentityByHref.from_dict( + instance_cluster_network_attachment_prototype_cluster_network_interface_cluster_network_interface_identity_cluster_network_interface_identity_by_href_model_json + ) + assert ( + instance_cluster_network_attachment_prototype_cluster_network_interface_cluster_network_interface_identity_cluster_network_interface_identity_by_href_model + != False + ) # Construct a model instance of InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceClusterNetworkInterfaceIdentityClusterNetworkInterfaceIdentityByHref by calling from_dict on the json representation - instance_cluster_network_attachment_prototype_cluster_network_interface_cluster_network_interface_identity_cluster_network_interface_identity_by_href_model_dict = InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceClusterNetworkInterfaceIdentityClusterNetworkInterfaceIdentityByHref.from_dict(instance_cluster_network_attachment_prototype_cluster_network_interface_cluster_network_interface_identity_cluster_network_interface_identity_by_href_model_json).__dict__ - instance_cluster_network_attachment_prototype_cluster_network_interface_cluster_network_interface_identity_cluster_network_interface_identity_by_href_model2 = InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceClusterNetworkInterfaceIdentityClusterNetworkInterfaceIdentityByHref(**instance_cluster_network_attachment_prototype_cluster_network_interface_cluster_network_interface_identity_cluster_network_interface_identity_by_href_model_dict) + instance_cluster_network_attachment_prototype_cluster_network_interface_cluster_network_interface_identity_cluster_network_interface_identity_by_href_model_dict = InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceClusterNetworkInterfaceIdentityClusterNetworkInterfaceIdentityByHref.from_dict( + instance_cluster_network_attachment_prototype_cluster_network_interface_cluster_network_interface_identity_cluster_network_interface_identity_by_href_model_json + ).__dict__ + instance_cluster_network_attachment_prototype_cluster_network_interface_cluster_network_interface_identity_cluster_network_interface_identity_by_href_model2 = InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceClusterNetworkInterfaceIdentityClusterNetworkInterfaceIdentityByHref( + **instance_cluster_network_attachment_prototype_cluster_network_interface_cluster_network_interface_identity_cluster_network_interface_identity_by_href_model_dict + ) # Verify the model instances are equivalent - assert instance_cluster_network_attachment_prototype_cluster_network_interface_cluster_network_interface_identity_cluster_network_interface_identity_by_href_model == instance_cluster_network_attachment_prototype_cluster_network_interface_cluster_network_interface_identity_cluster_network_interface_identity_by_href_model2 + assert ( + instance_cluster_network_attachment_prototype_cluster_network_interface_cluster_network_interface_identity_cluster_network_interface_identity_by_href_model + == instance_cluster_network_attachment_prototype_cluster_network_interface_cluster_network_interface_identity_cluster_network_interface_identity_by_href_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_cluster_network_attachment_prototype_cluster_network_interface_cluster_network_interface_identity_cluster_network_interface_identity_by_href_model_json2 = instance_cluster_network_attachment_prototype_cluster_network_interface_cluster_network_interface_identity_cluster_network_interface_identity_by_href_model.to_dict() - assert instance_cluster_network_attachment_prototype_cluster_network_interface_cluster_network_interface_identity_cluster_network_interface_identity_by_href_model_json2 == instance_cluster_network_attachment_prototype_cluster_network_interface_cluster_network_interface_identity_cluster_network_interface_identity_by_href_model_json + instance_cluster_network_attachment_prototype_cluster_network_interface_cluster_network_interface_identity_cluster_network_interface_identity_by_href_model_json2 = ( + instance_cluster_network_attachment_prototype_cluster_network_interface_cluster_network_interface_identity_cluster_network_interface_identity_by_href_model.to_dict() + ) + assert ( + instance_cluster_network_attachment_prototype_cluster_network_interface_cluster_network_interface_identity_cluster_network_interface_identity_by_href_model_json2 + == instance_cluster_network_attachment_prototype_cluster_network_interface_cluster_network_interface_identity_cluster_network_interface_identity_by_href_model_json + ) class TestModel_InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceClusterNetworkInterfaceIdentityClusterNetworkInterfaceIdentityById: @@ -96158,29 +108826,52 @@ class TestModel_InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterface Test Class for InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceClusterNetworkInterfaceIdentityClusterNetworkInterfaceIdentityById """ - def test_instance_cluster_network_attachment_prototype_cluster_network_interface_cluster_network_interface_identity_cluster_network_interface_identity_by_id_serialization(self): + def test_instance_cluster_network_attachment_prototype_cluster_network_interface_cluster_network_interface_identity_cluster_network_interface_identity_by_id_serialization( + self, + ): """ Test serialization/deserialization for InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceClusterNetworkInterfaceIdentityClusterNetworkInterfaceIdentityById """ # Construct a json representation of a InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceClusterNetworkInterfaceIdentityClusterNetworkInterfaceIdentityById model - instance_cluster_network_attachment_prototype_cluster_network_interface_cluster_network_interface_identity_cluster_network_interface_identity_by_id_model_json = {} - instance_cluster_network_attachment_prototype_cluster_network_interface_cluster_network_interface_identity_cluster_network_interface_identity_by_id_model_json['id'] = '0717-ffc092f7-5d02-4b93-ab69-26860529b9fb' + instance_cluster_network_attachment_prototype_cluster_network_interface_cluster_network_interface_identity_cluster_network_interface_identity_by_id_model_json = ( + {} + ) + instance_cluster_network_attachment_prototype_cluster_network_interface_cluster_network_interface_identity_cluster_network_interface_identity_by_id_model_json[ + 'id' + ] = '0717-ffc092f7-5d02-4b93-ab69-26860529b9fb' # Construct a model instance of InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceClusterNetworkInterfaceIdentityClusterNetworkInterfaceIdentityById by calling from_dict on the json representation - instance_cluster_network_attachment_prototype_cluster_network_interface_cluster_network_interface_identity_cluster_network_interface_identity_by_id_model = InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceClusterNetworkInterfaceIdentityClusterNetworkInterfaceIdentityById.from_dict(instance_cluster_network_attachment_prototype_cluster_network_interface_cluster_network_interface_identity_cluster_network_interface_identity_by_id_model_json) - assert instance_cluster_network_attachment_prototype_cluster_network_interface_cluster_network_interface_identity_cluster_network_interface_identity_by_id_model != False + instance_cluster_network_attachment_prototype_cluster_network_interface_cluster_network_interface_identity_cluster_network_interface_identity_by_id_model = InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceClusterNetworkInterfaceIdentityClusterNetworkInterfaceIdentityById.from_dict( + instance_cluster_network_attachment_prototype_cluster_network_interface_cluster_network_interface_identity_cluster_network_interface_identity_by_id_model_json + ) + assert ( + instance_cluster_network_attachment_prototype_cluster_network_interface_cluster_network_interface_identity_cluster_network_interface_identity_by_id_model + != False + ) # Construct a model instance of InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceClusterNetworkInterfaceIdentityClusterNetworkInterfaceIdentityById by calling from_dict on the json representation - instance_cluster_network_attachment_prototype_cluster_network_interface_cluster_network_interface_identity_cluster_network_interface_identity_by_id_model_dict = InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceClusterNetworkInterfaceIdentityClusterNetworkInterfaceIdentityById.from_dict(instance_cluster_network_attachment_prototype_cluster_network_interface_cluster_network_interface_identity_cluster_network_interface_identity_by_id_model_json).__dict__ - instance_cluster_network_attachment_prototype_cluster_network_interface_cluster_network_interface_identity_cluster_network_interface_identity_by_id_model2 = InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceClusterNetworkInterfaceIdentityClusterNetworkInterfaceIdentityById(**instance_cluster_network_attachment_prototype_cluster_network_interface_cluster_network_interface_identity_cluster_network_interface_identity_by_id_model_dict) + instance_cluster_network_attachment_prototype_cluster_network_interface_cluster_network_interface_identity_cluster_network_interface_identity_by_id_model_dict = InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceClusterNetworkInterfaceIdentityClusterNetworkInterfaceIdentityById.from_dict( + instance_cluster_network_attachment_prototype_cluster_network_interface_cluster_network_interface_identity_cluster_network_interface_identity_by_id_model_json + ).__dict__ + instance_cluster_network_attachment_prototype_cluster_network_interface_cluster_network_interface_identity_cluster_network_interface_identity_by_id_model2 = InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceClusterNetworkInterfaceIdentityClusterNetworkInterfaceIdentityById( + **instance_cluster_network_attachment_prototype_cluster_network_interface_cluster_network_interface_identity_cluster_network_interface_identity_by_id_model_dict + ) # Verify the model instances are equivalent - assert instance_cluster_network_attachment_prototype_cluster_network_interface_cluster_network_interface_identity_cluster_network_interface_identity_by_id_model == instance_cluster_network_attachment_prototype_cluster_network_interface_cluster_network_interface_identity_cluster_network_interface_identity_by_id_model2 + assert ( + instance_cluster_network_attachment_prototype_cluster_network_interface_cluster_network_interface_identity_cluster_network_interface_identity_by_id_model + == instance_cluster_network_attachment_prototype_cluster_network_interface_cluster_network_interface_identity_cluster_network_interface_identity_by_id_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_cluster_network_attachment_prototype_cluster_network_interface_cluster_network_interface_identity_cluster_network_interface_identity_by_id_model_json2 = instance_cluster_network_attachment_prototype_cluster_network_interface_cluster_network_interface_identity_cluster_network_interface_identity_by_id_model.to_dict() - assert instance_cluster_network_attachment_prototype_cluster_network_interface_cluster_network_interface_identity_cluster_network_interface_identity_by_id_model_json2 == instance_cluster_network_attachment_prototype_cluster_network_interface_cluster_network_interface_identity_cluster_network_interface_identity_by_id_model_json + instance_cluster_network_attachment_prototype_cluster_network_interface_cluster_network_interface_identity_cluster_network_interface_identity_by_id_model_json2 = ( + instance_cluster_network_attachment_prototype_cluster_network_interface_cluster_network_interface_identity_cluster_network_interface_identity_by_id_model.to_dict() + ) + assert ( + instance_cluster_network_attachment_prototype_cluster_network_interface_cluster_network_interface_identity_cluster_network_interface_identity_by_id_model_json2 + == instance_cluster_network_attachment_prototype_cluster_network_interface_cluster_network_interface_identity_cluster_network_interface_identity_by_id_model_json + ) class TestModel_InstanceGroupManagerActionScheduledActionGroupTarget: @@ -96203,32 +108894,64 @@ def test_instance_group_manager_action_scheduled_action_group_target_serializati instance_group_manager_action_scheduled_action_group_target_model_json['auto_delete'] = True instance_group_manager_action_scheduled_action_group_target_model_json['auto_delete_timeout'] = 24 instance_group_manager_action_scheduled_action_group_target_model_json['created_at'] = '2019-01-01T12:00:00Z' - instance_group_manager_action_scheduled_action_group_target_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instance_groups/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/managers/4c939b00-601f-11ea-bca2-000c29475bed/actions/1e09281b-f177-46fb-baf1-bc152b2e391a' - instance_group_manager_action_scheduled_action_group_target_model_json['id'] = '1e09281b-f177-46fb-baf1-bc152b2e391a' - instance_group_manager_action_scheduled_action_group_target_model_json['name'] = 'my-instance-group-manager-action' - instance_group_manager_action_scheduled_action_group_target_model_json['resource_type'] = 'instance_group_manager_action' + instance_group_manager_action_scheduled_action_group_target_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instance_groups/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/managers/4c939b00-601f-11ea-bca2-000c29475bed/actions/1e09281b-f177-46fb-baf1-bc152b2e391a' + ) + instance_group_manager_action_scheduled_action_group_target_model_json['id'] = ( + '1e09281b-f177-46fb-baf1-bc152b2e391a' + ) + instance_group_manager_action_scheduled_action_group_target_model_json['name'] = ( + 'my-instance-group-manager-action' + ) + instance_group_manager_action_scheduled_action_group_target_model_json['resource_type'] = ( + 'instance_group_manager_action' + ) instance_group_manager_action_scheduled_action_group_target_model_json['status'] = 'active' instance_group_manager_action_scheduled_action_group_target_model_json['updated_at'] = '2019-01-01T12:00:00Z' instance_group_manager_action_scheduled_action_group_target_model_json['action_type'] = 'scheduled' instance_group_manager_action_scheduled_action_group_target_model_json['cron_spec'] = '30 */2 * * 1-5' - instance_group_manager_action_scheduled_action_group_target_model_json['last_applied_at'] = '2019-01-01T12:00:00Z' + instance_group_manager_action_scheduled_action_group_target_model_json['last_applied_at'] = ( + '2019-01-01T12:00:00Z' + ) instance_group_manager_action_scheduled_action_group_target_model_json['next_run_at'] = '2019-01-01T12:00:00Z' - instance_group_manager_action_scheduled_action_group_target_model_json['group'] = instance_group_manager_scheduled_action_group_model + instance_group_manager_action_scheduled_action_group_target_model_json['group'] = ( + instance_group_manager_scheduled_action_group_model + ) # Construct a model instance of InstanceGroupManagerActionScheduledActionGroupTarget by calling from_dict on the json representation - instance_group_manager_action_scheduled_action_group_target_model = InstanceGroupManagerActionScheduledActionGroupTarget.from_dict(instance_group_manager_action_scheduled_action_group_target_model_json) + instance_group_manager_action_scheduled_action_group_target_model = ( + InstanceGroupManagerActionScheduledActionGroupTarget.from_dict( + instance_group_manager_action_scheduled_action_group_target_model_json + ) + ) assert instance_group_manager_action_scheduled_action_group_target_model != False # Construct a model instance of InstanceGroupManagerActionScheduledActionGroupTarget by calling from_dict on the json representation - instance_group_manager_action_scheduled_action_group_target_model_dict = InstanceGroupManagerActionScheduledActionGroupTarget.from_dict(instance_group_manager_action_scheduled_action_group_target_model_json).__dict__ - instance_group_manager_action_scheduled_action_group_target_model2 = InstanceGroupManagerActionScheduledActionGroupTarget(**instance_group_manager_action_scheduled_action_group_target_model_dict) + instance_group_manager_action_scheduled_action_group_target_model_dict = ( + InstanceGroupManagerActionScheduledActionGroupTarget.from_dict( + instance_group_manager_action_scheduled_action_group_target_model_json + ).__dict__ + ) + instance_group_manager_action_scheduled_action_group_target_model2 = ( + InstanceGroupManagerActionScheduledActionGroupTarget( + **instance_group_manager_action_scheduled_action_group_target_model_dict + ) + ) # Verify the model instances are equivalent - assert instance_group_manager_action_scheduled_action_group_target_model == instance_group_manager_action_scheduled_action_group_target_model2 + assert ( + instance_group_manager_action_scheduled_action_group_target_model + == instance_group_manager_action_scheduled_action_group_target_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_group_manager_action_scheduled_action_group_target_model_json2 = instance_group_manager_action_scheduled_action_group_target_model.to_dict() - assert instance_group_manager_action_scheduled_action_group_target_model_json2 == instance_group_manager_action_scheduled_action_group_target_model_json + instance_group_manager_action_scheduled_action_group_target_model_json2 = ( + instance_group_manager_action_scheduled_action_group_target_model.to_dict() + ) + assert ( + instance_group_manager_action_scheduled_action_group_target_model_json2 + == instance_group_manager_action_scheduled_action_group_target_model_json + ) class TestModel_InstanceGroupManagerActionScheduledActionManagerTarget: @@ -96246,9 +108969,13 @@ def test_instance_group_manager_action_scheduled_action_manager_target_serializa deleted_model = {} # Deleted deleted_model['more_info'] = 'https://cloud.ibm.com/apidocs/vpc#deleted-resources' - instance_group_manager_scheduled_action_manager_model = {} # InstanceGroupManagerScheduledActionManagerAutoScale + instance_group_manager_scheduled_action_manager_model = ( + {} + ) # InstanceGroupManagerScheduledActionManagerAutoScale instance_group_manager_scheduled_action_manager_model['deleted'] = deleted_model - instance_group_manager_scheduled_action_manager_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instance_groups/1e09281b-f177-46fb-baf1-bc152b2e391a/managers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727' + instance_group_manager_scheduled_action_manager_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instance_groups/1e09281b-f177-46fb-baf1-bc152b2e391a/managers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727' + ) instance_group_manager_scheduled_action_manager_model['id'] = '1e09281b-f177-46fb-baf1-bc152b2e391a' instance_group_manager_scheduled_action_manager_model['name'] = 'my-instance-group-manager' instance_group_manager_scheduled_action_manager_model['max_membership_count'] = 10 @@ -96259,32 +108986,64 @@ def test_instance_group_manager_action_scheduled_action_manager_target_serializa instance_group_manager_action_scheduled_action_manager_target_model_json['auto_delete'] = True instance_group_manager_action_scheduled_action_manager_target_model_json['auto_delete_timeout'] = 24 instance_group_manager_action_scheduled_action_manager_target_model_json['created_at'] = '2019-01-01T12:00:00Z' - instance_group_manager_action_scheduled_action_manager_target_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instance_groups/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/managers/4c939b00-601f-11ea-bca2-000c29475bed/actions/1e09281b-f177-46fb-baf1-bc152b2e391a' - instance_group_manager_action_scheduled_action_manager_target_model_json['id'] = '1e09281b-f177-46fb-baf1-bc152b2e391a' - instance_group_manager_action_scheduled_action_manager_target_model_json['name'] = 'my-instance-group-manager-action' - instance_group_manager_action_scheduled_action_manager_target_model_json['resource_type'] = 'instance_group_manager_action' + instance_group_manager_action_scheduled_action_manager_target_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instance_groups/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/managers/4c939b00-601f-11ea-bca2-000c29475bed/actions/1e09281b-f177-46fb-baf1-bc152b2e391a' + ) + instance_group_manager_action_scheduled_action_manager_target_model_json['id'] = ( + '1e09281b-f177-46fb-baf1-bc152b2e391a' + ) + instance_group_manager_action_scheduled_action_manager_target_model_json['name'] = ( + 'my-instance-group-manager-action' + ) + instance_group_manager_action_scheduled_action_manager_target_model_json['resource_type'] = ( + 'instance_group_manager_action' + ) instance_group_manager_action_scheduled_action_manager_target_model_json['status'] = 'active' instance_group_manager_action_scheduled_action_manager_target_model_json['updated_at'] = '2019-01-01T12:00:00Z' instance_group_manager_action_scheduled_action_manager_target_model_json['action_type'] = 'scheduled' instance_group_manager_action_scheduled_action_manager_target_model_json['cron_spec'] = '30 */2 * * 1-5' - instance_group_manager_action_scheduled_action_manager_target_model_json['last_applied_at'] = '2019-01-01T12:00:00Z' + instance_group_manager_action_scheduled_action_manager_target_model_json['last_applied_at'] = ( + '2019-01-01T12:00:00Z' + ) instance_group_manager_action_scheduled_action_manager_target_model_json['next_run_at'] = '2019-01-01T12:00:00Z' - instance_group_manager_action_scheduled_action_manager_target_model_json['manager'] = instance_group_manager_scheduled_action_manager_model + instance_group_manager_action_scheduled_action_manager_target_model_json['manager'] = ( + instance_group_manager_scheduled_action_manager_model + ) # Construct a model instance of InstanceGroupManagerActionScheduledActionManagerTarget by calling from_dict on the json representation - instance_group_manager_action_scheduled_action_manager_target_model = InstanceGroupManagerActionScheduledActionManagerTarget.from_dict(instance_group_manager_action_scheduled_action_manager_target_model_json) + instance_group_manager_action_scheduled_action_manager_target_model = ( + InstanceGroupManagerActionScheduledActionManagerTarget.from_dict( + instance_group_manager_action_scheduled_action_manager_target_model_json + ) + ) assert instance_group_manager_action_scheduled_action_manager_target_model != False # Construct a model instance of InstanceGroupManagerActionScheduledActionManagerTarget by calling from_dict on the json representation - instance_group_manager_action_scheduled_action_manager_target_model_dict = InstanceGroupManagerActionScheduledActionManagerTarget.from_dict(instance_group_manager_action_scheduled_action_manager_target_model_json).__dict__ - instance_group_manager_action_scheduled_action_manager_target_model2 = InstanceGroupManagerActionScheduledActionManagerTarget(**instance_group_manager_action_scheduled_action_manager_target_model_dict) + instance_group_manager_action_scheduled_action_manager_target_model_dict = ( + InstanceGroupManagerActionScheduledActionManagerTarget.from_dict( + instance_group_manager_action_scheduled_action_manager_target_model_json + ).__dict__ + ) + instance_group_manager_action_scheduled_action_manager_target_model2 = ( + InstanceGroupManagerActionScheduledActionManagerTarget( + **instance_group_manager_action_scheduled_action_manager_target_model_dict + ) + ) # Verify the model instances are equivalent - assert instance_group_manager_action_scheduled_action_manager_target_model == instance_group_manager_action_scheduled_action_manager_target_model2 + assert ( + instance_group_manager_action_scheduled_action_manager_target_model + == instance_group_manager_action_scheduled_action_manager_target_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_group_manager_action_scheduled_action_manager_target_model_json2 = instance_group_manager_action_scheduled_action_manager_target_model.to_dict() - assert instance_group_manager_action_scheduled_action_manager_target_model_json2 == instance_group_manager_action_scheduled_action_manager_target_model_json + instance_group_manager_action_scheduled_action_manager_target_model_json2 = ( + instance_group_manager_action_scheduled_action_manager_target_model.to_dict() + ) + assert ( + instance_group_manager_action_scheduled_action_manager_target_model_json2 + == instance_group_manager_action_scheduled_action_manager_target_model_json + ) class TestModel_InstanceGroupManagerScheduledActionManagerPrototypeAutoScalePrototypeByHref: @@ -96299,24 +109058,50 @@ def test_instance_group_manager_scheduled_action_manager_prototype_auto_scale_pr # Construct a json representation of a InstanceGroupManagerScheduledActionManagerPrototypeAutoScalePrototypeByHref model instance_group_manager_scheduled_action_manager_prototype_auto_scale_prototype_by_href_model_json = {} - instance_group_manager_scheduled_action_manager_prototype_auto_scale_prototype_by_href_model_json['max_membership_count'] = 10 - instance_group_manager_scheduled_action_manager_prototype_auto_scale_prototype_by_href_model_json['min_membership_count'] = 10 - instance_group_manager_scheduled_action_manager_prototype_auto_scale_prototype_by_href_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instance_groups/1e09281b-f177-46fb-baf1-bc152b2e391a/managers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727' + instance_group_manager_scheduled_action_manager_prototype_auto_scale_prototype_by_href_model_json[ + 'max_membership_count' + ] = 10 + instance_group_manager_scheduled_action_manager_prototype_auto_scale_prototype_by_href_model_json[ + 'min_membership_count' + ] = 10 + instance_group_manager_scheduled_action_manager_prototype_auto_scale_prototype_by_href_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instance_groups/1e09281b-f177-46fb-baf1-bc152b2e391a/managers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727' + ) # Construct a model instance of InstanceGroupManagerScheduledActionManagerPrototypeAutoScalePrototypeByHref by calling from_dict on the json representation - instance_group_manager_scheduled_action_manager_prototype_auto_scale_prototype_by_href_model = InstanceGroupManagerScheduledActionManagerPrototypeAutoScalePrototypeByHref.from_dict(instance_group_manager_scheduled_action_manager_prototype_auto_scale_prototype_by_href_model_json) + instance_group_manager_scheduled_action_manager_prototype_auto_scale_prototype_by_href_model = ( + InstanceGroupManagerScheduledActionManagerPrototypeAutoScalePrototypeByHref.from_dict( + instance_group_manager_scheduled_action_manager_prototype_auto_scale_prototype_by_href_model_json + ) + ) assert instance_group_manager_scheduled_action_manager_prototype_auto_scale_prototype_by_href_model != False # Construct a model instance of InstanceGroupManagerScheduledActionManagerPrototypeAutoScalePrototypeByHref by calling from_dict on the json representation - instance_group_manager_scheduled_action_manager_prototype_auto_scale_prototype_by_href_model_dict = InstanceGroupManagerScheduledActionManagerPrototypeAutoScalePrototypeByHref.from_dict(instance_group_manager_scheduled_action_manager_prototype_auto_scale_prototype_by_href_model_json).__dict__ - instance_group_manager_scheduled_action_manager_prototype_auto_scale_prototype_by_href_model2 = InstanceGroupManagerScheduledActionManagerPrototypeAutoScalePrototypeByHref(**instance_group_manager_scheduled_action_manager_prototype_auto_scale_prototype_by_href_model_dict) + instance_group_manager_scheduled_action_manager_prototype_auto_scale_prototype_by_href_model_dict = ( + InstanceGroupManagerScheduledActionManagerPrototypeAutoScalePrototypeByHref.from_dict( + instance_group_manager_scheduled_action_manager_prototype_auto_scale_prototype_by_href_model_json + ).__dict__ + ) + instance_group_manager_scheduled_action_manager_prototype_auto_scale_prototype_by_href_model2 = ( + InstanceGroupManagerScheduledActionManagerPrototypeAutoScalePrototypeByHref( + **instance_group_manager_scheduled_action_manager_prototype_auto_scale_prototype_by_href_model_dict + ) + ) # Verify the model instances are equivalent - assert instance_group_manager_scheduled_action_manager_prototype_auto_scale_prototype_by_href_model == instance_group_manager_scheduled_action_manager_prototype_auto_scale_prototype_by_href_model2 + assert ( + instance_group_manager_scheduled_action_manager_prototype_auto_scale_prototype_by_href_model + == instance_group_manager_scheduled_action_manager_prototype_auto_scale_prototype_by_href_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_group_manager_scheduled_action_manager_prototype_auto_scale_prototype_by_href_model_json2 = instance_group_manager_scheduled_action_manager_prototype_auto_scale_prototype_by_href_model.to_dict() - assert instance_group_manager_scheduled_action_manager_prototype_auto_scale_prototype_by_href_model_json2 == instance_group_manager_scheduled_action_manager_prototype_auto_scale_prototype_by_href_model_json + instance_group_manager_scheduled_action_manager_prototype_auto_scale_prototype_by_href_model_json2 = ( + instance_group_manager_scheduled_action_manager_prototype_auto_scale_prototype_by_href_model.to_dict() + ) + assert ( + instance_group_manager_scheduled_action_manager_prototype_auto_scale_prototype_by_href_model_json2 + == instance_group_manager_scheduled_action_manager_prototype_auto_scale_prototype_by_href_model_json + ) class TestModel_InstanceGroupManagerScheduledActionManagerPrototypeAutoScalePrototypeById: @@ -96331,24 +109116,50 @@ def test_instance_group_manager_scheduled_action_manager_prototype_auto_scale_pr # Construct a json representation of a InstanceGroupManagerScheduledActionManagerPrototypeAutoScalePrototypeById model instance_group_manager_scheduled_action_manager_prototype_auto_scale_prototype_by_id_model_json = {} - instance_group_manager_scheduled_action_manager_prototype_auto_scale_prototype_by_id_model_json['max_membership_count'] = 10 - instance_group_manager_scheduled_action_manager_prototype_auto_scale_prototype_by_id_model_json['min_membership_count'] = 10 - instance_group_manager_scheduled_action_manager_prototype_auto_scale_prototype_by_id_model_json['id'] = '1e09281b-f177-46fb-baf1-bc152b2e391a' + instance_group_manager_scheduled_action_manager_prototype_auto_scale_prototype_by_id_model_json[ + 'max_membership_count' + ] = 10 + instance_group_manager_scheduled_action_manager_prototype_auto_scale_prototype_by_id_model_json[ + 'min_membership_count' + ] = 10 + instance_group_manager_scheduled_action_manager_prototype_auto_scale_prototype_by_id_model_json['id'] = ( + '1e09281b-f177-46fb-baf1-bc152b2e391a' + ) # Construct a model instance of InstanceGroupManagerScheduledActionManagerPrototypeAutoScalePrototypeById by calling from_dict on the json representation - instance_group_manager_scheduled_action_manager_prototype_auto_scale_prototype_by_id_model = InstanceGroupManagerScheduledActionManagerPrototypeAutoScalePrototypeById.from_dict(instance_group_manager_scheduled_action_manager_prototype_auto_scale_prototype_by_id_model_json) + instance_group_manager_scheduled_action_manager_prototype_auto_scale_prototype_by_id_model = ( + InstanceGroupManagerScheduledActionManagerPrototypeAutoScalePrototypeById.from_dict( + instance_group_manager_scheduled_action_manager_prototype_auto_scale_prototype_by_id_model_json + ) + ) assert instance_group_manager_scheduled_action_manager_prototype_auto_scale_prototype_by_id_model != False # Construct a model instance of InstanceGroupManagerScheduledActionManagerPrototypeAutoScalePrototypeById by calling from_dict on the json representation - instance_group_manager_scheduled_action_manager_prototype_auto_scale_prototype_by_id_model_dict = InstanceGroupManagerScheduledActionManagerPrototypeAutoScalePrototypeById.from_dict(instance_group_manager_scheduled_action_manager_prototype_auto_scale_prototype_by_id_model_json).__dict__ - instance_group_manager_scheduled_action_manager_prototype_auto_scale_prototype_by_id_model2 = InstanceGroupManagerScheduledActionManagerPrototypeAutoScalePrototypeById(**instance_group_manager_scheduled_action_manager_prototype_auto_scale_prototype_by_id_model_dict) + instance_group_manager_scheduled_action_manager_prototype_auto_scale_prototype_by_id_model_dict = ( + InstanceGroupManagerScheduledActionManagerPrototypeAutoScalePrototypeById.from_dict( + instance_group_manager_scheduled_action_manager_prototype_auto_scale_prototype_by_id_model_json + ).__dict__ + ) + instance_group_manager_scheduled_action_manager_prototype_auto_scale_prototype_by_id_model2 = ( + InstanceGroupManagerScheduledActionManagerPrototypeAutoScalePrototypeById( + **instance_group_manager_scheduled_action_manager_prototype_auto_scale_prototype_by_id_model_dict + ) + ) # Verify the model instances are equivalent - assert instance_group_manager_scheduled_action_manager_prototype_auto_scale_prototype_by_id_model == instance_group_manager_scheduled_action_manager_prototype_auto_scale_prototype_by_id_model2 + assert ( + instance_group_manager_scheduled_action_manager_prototype_auto_scale_prototype_by_id_model + == instance_group_manager_scheduled_action_manager_prototype_auto_scale_prototype_by_id_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_group_manager_scheduled_action_manager_prototype_auto_scale_prototype_by_id_model_json2 = instance_group_manager_scheduled_action_manager_prototype_auto_scale_prototype_by_id_model.to_dict() - assert instance_group_manager_scheduled_action_manager_prototype_auto_scale_prototype_by_id_model_json2 == instance_group_manager_scheduled_action_manager_prototype_auto_scale_prototype_by_id_model_json + instance_group_manager_scheduled_action_manager_prototype_auto_scale_prototype_by_id_model_json2 = ( + instance_group_manager_scheduled_action_manager_prototype_auto_scale_prototype_by_id_model.to_dict() + ) + assert ( + instance_group_manager_scheduled_action_manager_prototype_auto_scale_prototype_by_id_model_json2 + == instance_group_manager_scheduled_action_manager_prototype_auto_scale_prototype_by_id_model_json + ) class TestModel_InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN: @@ -96356,29 +109167,52 @@ class TestModel_InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtual Test Class for InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN """ - def test_instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_serialization(self): + def test_instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_serialization( + self, + ): """ Test serialization/deserialization for InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN """ # Construct a json representation of a InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN model - instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json = {} - instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::virtual-network-interface:0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json = ( + {} + ) + instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json[ + 'crn' + ] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::virtual-network-interface:0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' # Construct a model instance of InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN by calling from_dict on the json representation - instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model = InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN.from_dict(instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json) - assert instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model != False + instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model = InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN.from_dict( + instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json + ) + assert ( + instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model + != False + ) # Construct a model instance of InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN by calling from_dict on the json representation - instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_dict = InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN.from_dict(instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json).__dict__ - instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model2 = InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN(**instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_dict) + instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_dict = InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN.from_dict( + instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json + ).__dict__ + instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model2 = InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN( + **instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_dict + ) # Verify the model instances are equivalent - assert instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model == instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model2 + assert ( + instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model + == instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json2 = instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model.to_dict() - assert instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json2 == instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json + instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json2 = ( + instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model.to_dict() + ) + assert ( + instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json2 + == instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json + ) class TestModel_InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref: @@ -96386,29 +109220,52 @@ class TestModel_InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtual Test Class for InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref """ - def test_instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_href_serialization(self): + def test_instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_href_serialization( + self, + ): """ Test serialization/deserialization for InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref """ # Construct a json representation of a InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref model - instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json = {} - instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/virtual_network_interfaces/0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json = ( + {} + ) + instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json[ + 'href' + ] = 'https://us-south.iaas.cloud.ibm.com/v1/virtual_network_interfaces/0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' # Construct a model instance of InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref by calling from_dict on the json representation - instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model = InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref.from_dict(instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json) - assert instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model != False + instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model = InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref.from_dict( + instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json + ) + assert ( + instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model + != False + ) # Construct a model instance of InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref by calling from_dict on the json representation - instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_dict = InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref.from_dict(instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json).__dict__ - instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model2 = InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref(**instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_dict) + instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_dict = InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref.from_dict( + instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json + ).__dict__ + instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model2 = InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref( + **instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_dict + ) # Verify the model instances are equivalent - assert instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model == instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model2 + assert ( + instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model + == instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json2 = instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model.to_dict() - assert instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json2 == instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json + instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json2 = ( + instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model.to_dict() + ) + assert ( + instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json2 + == instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json + ) class TestModel_InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById: @@ -96416,29 +109273,52 @@ class TestModel_InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtual Test Class for InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById """ - def test_instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_id_serialization(self): + def test_instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_id_serialization( + self, + ): """ Test serialization/deserialization for InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById """ # Construct a json representation of a InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById model - instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json = {} - instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json['id'] = '0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json = ( + {} + ) + instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json[ + 'id' + ] = '0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' # Construct a model instance of InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById by calling from_dict on the json representation - instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model = InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById.from_dict(instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json) - assert instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model != False + instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model = InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById.from_dict( + instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json + ) + assert ( + instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model + != False + ) # Construct a model instance of InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById by calling from_dict on the json representation - instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_dict = InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById.from_dict(instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json).__dict__ - instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model2 = InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById(**instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_dict) + instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_dict = InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById.from_dict( + instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json + ).__dict__ + instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model2 = InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById( + **instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_dict + ) # Verify the model instances are equivalent - assert instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model == instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model2 + assert ( + instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model + == instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json2 = instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model.to_dict() - assert instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json2 == instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json + instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json2 = ( + instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model.to_dict() + ) + assert ( + instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json2 + == instance_network_attachment_prototype_virtual_network_interface_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json + ) class TestModel_InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityByCRN: @@ -96446,29 +109326,52 @@ class TestModel_InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedH Test Class for InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityByCRN """ - def test_instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_crn_serialization(self): + def test_instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_crn_serialization( + self, + ): """ Test serialization/deserialization for InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityByCRN """ # Construct a json representation of a InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityByCRN model - instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_crn_model_json = {} - instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_crn_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host-group:0717-bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0' + instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_crn_model_json = ( + {} + ) + instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_crn_model_json[ + 'crn' + ] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host-group:0717-bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0' # Construct a model instance of InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityByCRN by calling from_dict on the json representation - instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_crn_model = InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityByCRN.from_dict(instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_crn_model_json) - assert instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_crn_model != False + instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_crn_model = InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityByCRN.from_dict( + instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_crn_model_json + ) + assert ( + instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_crn_model + != False + ) # Construct a model instance of InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityByCRN by calling from_dict on the json representation - instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_crn_model_dict = InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityByCRN.from_dict(instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_crn_model_json).__dict__ - instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_crn_model2 = InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityByCRN(**instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_crn_model_dict) + instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_crn_model_dict = InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityByCRN.from_dict( + instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_crn_model_json + ).__dict__ + instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_crn_model2 = InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityByCRN( + **instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_crn_model_dict + ) # Verify the model instances are equivalent - assert instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_crn_model == instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_crn_model2 + assert ( + instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_crn_model + == instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_crn_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_crn_model_json2 = instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_crn_model.to_dict() - assert instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_crn_model_json2 == instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_crn_model_json + instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_crn_model_json2 = ( + instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_crn_model.to_dict() + ) + assert ( + instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_crn_model_json2 + == instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_crn_model_json + ) class TestModel_InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityByHref: @@ -96476,29 +109379,52 @@ class TestModel_InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedH Test Class for InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityByHref """ - def test_instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_href_serialization(self): + def test_instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_href_serialization( + self, + ): """ Test serialization/deserialization for InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityByHref """ # Construct a json representation of a InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityByHref model - instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_href_model_json = {} - instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_href_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/dedicated_host/groups/0717-bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0' + instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_href_model_json = ( + {} + ) + instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_href_model_json[ + 'href' + ] = 'https://us-south.iaas.cloud.ibm.com/v1/dedicated_host/groups/0717-bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0' # Construct a model instance of InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityByHref by calling from_dict on the json representation - instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_href_model = InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityByHref.from_dict(instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_href_model_json) - assert instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_href_model != False + instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_href_model = InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityByHref.from_dict( + instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_href_model_json + ) + assert ( + instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_href_model + != False + ) # Construct a model instance of InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityByHref by calling from_dict on the json representation - instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_href_model_dict = InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityByHref.from_dict(instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_href_model_json).__dict__ - instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_href_model2 = InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityByHref(**instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_href_model_dict) + instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_href_model_dict = InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityByHref.from_dict( + instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_href_model_json + ).__dict__ + instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_href_model2 = InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityByHref( + **instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_href_model_dict + ) # Verify the model instances are equivalent - assert instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_href_model == instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_href_model2 + assert ( + instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_href_model + == instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_href_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_href_model_json2 = instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_href_model.to_dict() - assert instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_href_model_json2 == instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_href_model_json + instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_href_model_json2 = ( + instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_href_model.to_dict() + ) + assert ( + instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_href_model_json2 + == instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_href_model_json + ) class TestModel_InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityById: @@ -96506,29 +109432,52 @@ class TestModel_InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedH Test Class for InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityById """ - def test_instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_id_serialization(self): + def test_instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_id_serialization( + self, + ): """ Test serialization/deserialization for InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityById """ # Construct a json representation of a InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityById model - instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_id_model_json = {} - instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_id_model_json['id'] = '0717-bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0' + instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_id_model_json = ( + {} + ) + instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_id_model_json[ + 'id' + ] = '0717-bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0' # Construct a model instance of InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityById by calling from_dict on the json representation - instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_id_model = InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityById.from_dict(instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_id_model_json) - assert instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_id_model != False + instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_id_model = InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityById.from_dict( + instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_id_model_json + ) + assert ( + instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_id_model + != False + ) # Construct a model instance of InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityById by calling from_dict on the json representation - instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_id_model_dict = InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityById.from_dict(instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_id_model_json).__dict__ - instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_id_model2 = InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityById(**instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_id_model_dict) + instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_id_model_dict = InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityById.from_dict( + instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_id_model_json + ).__dict__ + instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_id_model2 = InstancePlacementTargetPatchDedicatedHostGroupIdentityDedicatedHostGroupIdentityById( + **instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_id_model_dict + ) # Verify the model instances are equivalent - assert instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_id_model == instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_id_model2 + assert ( + instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_id_model + == instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_id_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_id_model_json2 = instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_id_model.to_dict() - assert instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_id_model_json2 == instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_id_model_json + instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_id_model_json2 = ( + instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_id_model.to_dict() + ) + assert ( + instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_id_model_json2 + == instance_placement_target_patch_dedicated_host_group_identity_dedicated_host_group_identity_by_id_model_json + ) class TestModel_InstancePlacementTargetPatchDedicatedHostIdentityDedicatedHostIdentityByCRN: @@ -96543,22 +109492,44 @@ def test_instance_placement_target_patch_dedicated_host_identity_dedicated_host_ # Construct a json representation of a InstancePlacementTargetPatchDedicatedHostIdentityDedicatedHostIdentityByCRN model instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_crn_model_json = {} - instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_crn_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host:0717-1e09281b-f177-46fb-baf1-bc152b2e391a' + instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_crn_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host:0717-1e09281b-f177-46fb-baf1-bc152b2e391a' + ) # Construct a model instance of InstancePlacementTargetPatchDedicatedHostIdentityDedicatedHostIdentityByCRN by calling from_dict on the json representation - instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_crn_model = InstancePlacementTargetPatchDedicatedHostIdentityDedicatedHostIdentityByCRN.from_dict(instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_crn_model_json) + instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_crn_model = ( + InstancePlacementTargetPatchDedicatedHostIdentityDedicatedHostIdentityByCRN.from_dict( + instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_crn_model_json + ) + ) assert instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_crn_model != False # Construct a model instance of InstancePlacementTargetPatchDedicatedHostIdentityDedicatedHostIdentityByCRN by calling from_dict on the json representation - instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_crn_model_dict = InstancePlacementTargetPatchDedicatedHostIdentityDedicatedHostIdentityByCRN.from_dict(instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_crn_model_json).__dict__ - instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_crn_model2 = InstancePlacementTargetPatchDedicatedHostIdentityDedicatedHostIdentityByCRN(**instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_crn_model_dict) + instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_crn_model_dict = ( + InstancePlacementTargetPatchDedicatedHostIdentityDedicatedHostIdentityByCRN.from_dict( + instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_crn_model_json + ).__dict__ + ) + instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_crn_model2 = ( + InstancePlacementTargetPatchDedicatedHostIdentityDedicatedHostIdentityByCRN( + **instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_crn_model_dict + ) + ) # Verify the model instances are equivalent - assert instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_crn_model == instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_crn_model2 + assert ( + instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_crn_model + == instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_crn_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_crn_model_json2 = instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_crn_model.to_dict() - assert instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_crn_model_json2 == instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_crn_model_json + instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_crn_model_json2 = ( + instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_crn_model.to_dict() + ) + assert ( + instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_crn_model_json2 + == instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_crn_model_json + ) class TestModel_InstancePlacementTargetPatchDedicatedHostIdentityDedicatedHostIdentityByHref: @@ -96566,29 +109537,53 @@ class TestModel_InstancePlacementTargetPatchDedicatedHostIdentityDedicatedHostId Test Class for InstancePlacementTargetPatchDedicatedHostIdentityDedicatedHostIdentityByHref """ - def test_instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_href_serialization(self): + def test_instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_href_serialization( + self, + ): """ Test serialization/deserialization for InstancePlacementTargetPatchDedicatedHostIdentityDedicatedHostIdentityByHref """ # Construct a json representation of a InstancePlacementTargetPatchDedicatedHostIdentityDedicatedHostIdentityByHref model instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_href_model_json = {} - instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_href_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/dedicated_hosts/0717-1e09281b-f177-46fb-baf1-bc152b2e391a' + instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_href_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/dedicated_hosts/0717-1e09281b-f177-46fb-baf1-bc152b2e391a' + ) # Construct a model instance of InstancePlacementTargetPatchDedicatedHostIdentityDedicatedHostIdentityByHref by calling from_dict on the json representation - instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_href_model = InstancePlacementTargetPatchDedicatedHostIdentityDedicatedHostIdentityByHref.from_dict(instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_href_model_json) + instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_href_model = ( + InstancePlacementTargetPatchDedicatedHostIdentityDedicatedHostIdentityByHref.from_dict( + instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_href_model_json + ) + ) assert instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_href_model != False # Construct a model instance of InstancePlacementTargetPatchDedicatedHostIdentityDedicatedHostIdentityByHref by calling from_dict on the json representation - instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_href_model_dict = InstancePlacementTargetPatchDedicatedHostIdentityDedicatedHostIdentityByHref.from_dict(instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_href_model_json).__dict__ - instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_href_model2 = InstancePlacementTargetPatchDedicatedHostIdentityDedicatedHostIdentityByHref(**instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_href_model_dict) + instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_href_model_dict = ( + InstancePlacementTargetPatchDedicatedHostIdentityDedicatedHostIdentityByHref.from_dict( + instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_href_model_json + ).__dict__ + ) + instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_href_model2 = ( + InstancePlacementTargetPatchDedicatedHostIdentityDedicatedHostIdentityByHref( + **instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_href_model_dict + ) + ) # Verify the model instances are equivalent - assert instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_href_model == instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_href_model2 + assert ( + instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_href_model + == instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_href_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_href_model_json2 = instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_href_model.to_dict() - assert instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_href_model_json2 == instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_href_model_json + instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_href_model_json2 = ( + instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_href_model.to_dict() + ) + assert ( + instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_href_model_json2 + == instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_href_model_json + ) class TestModel_InstancePlacementTargetPatchDedicatedHostIdentityDedicatedHostIdentityById: @@ -96603,22 +109598,44 @@ def test_instance_placement_target_patch_dedicated_host_identity_dedicated_host_ # Construct a json representation of a InstancePlacementTargetPatchDedicatedHostIdentityDedicatedHostIdentityById model instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_id_model_json = {} - instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_id_model_json['id'] = '0717-1e09281b-f177-46fb-baf1-bc152b2e391a' + instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_id_model_json['id'] = ( + '0717-1e09281b-f177-46fb-baf1-bc152b2e391a' + ) # Construct a model instance of InstancePlacementTargetPatchDedicatedHostIdentityDedicatedHostIdentityById by calling from_dict on the json representation - instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_id_model = InstancePlacementTargetPatchDedicatedHostIdentityDedicatedHostIdentityById.from_dict(instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_id_model_json) + instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_id_model = ( + InstancePlacementTargetPatchDedicatedHostIdentityDedicatedHostIdentityById.from_dict( + instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_id_model_json + ) + ) assert instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_id_model != False # Construct a model instance of InstancePlacementTargetPatchDedicatedHostIdentityDedicatedHostIdentityById by calling from_dict on the json representation - instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_id_model_dict = InstancePlacementTargetPatchDedicatedHostIdentityDedicatedHostIdentityById.from_dict(instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_id_model_json).__dict__ - instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_id_model2 = InstancePlacementTargetPatchDedicatedHostIdentityDedicatedHostIdentityById(**instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_id_model_dict) + instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_id_model_dict = ( + InstancePlacementTargetPatchDedicatedHostIdentityDedicatedHostIdentityById.from_dict( + instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_id_model_json + ).__dict__ + ) + instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_id_model2 = ( + InstancePlacementTargetPatchDedicatedHostIdentityDedicatedHostIdentityById( + **instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_id_model_dict + ) + ) # Verify the model instances are equivalent - assert instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_id_model == instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_id_model2 + assert ( + instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_id_model + == instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_id_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_id_model_json2 = instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_id_model.to_dict() - assert instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_id_model_json2 == instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_id_model_json + instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_id_model_json2 = ( + instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_id_model.to_dict() + ) + assert ( + instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_id_model_json2 + == instance_placement_target_patch_dedicated_host_identity_dedicated_host_identity_by_id_model_json + ) class TestModel_InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityByCRN: @@ -96626,29 +109643,52 @@ class TestModel_InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedica Test Class for InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityByCRN """ - def test_instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_crn_serialization(self): + def test_instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_crn_serialization( + self, + ): """ Test serialization/deserialization for InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityByCRN """ # Construct a json representation of a InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityByCRN model - instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_crn_model_json = {} - instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_crn_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host-group:0717-bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0' + instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_crn_model_json = ( + {} + ) + instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_crn_model_json[ + 'crn' + ] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host-group:0717-bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0' # Construct a model instance of InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityByCRN by calling from_dict on the json representation - instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_crn_model = InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityByCRN.from_dict(instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_crn_model_json) - assert instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_crn_model != False + instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_crn_model = InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityByCRN.from_dict( + instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_crn_model_json + ) + assert ( + instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_crn_model + != False + ) # Construct a model instance of InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityByCRN by calling from_dict on the json representation - instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_crn_model_dict = InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityByCRN.from_dict(instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_crn_model_json).__dict__ - instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_crn_model2 = InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityByCRN(**instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_crn_model_dict) + instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_crn_model_dict = InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityByCRN.from_dict( + instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_crn_model_json + ).__dict__ + instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_crn_model2 = InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityByCRN( + **instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_crn_model_dict + ) # Verify the model instances are equivalent - assert instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_crn_model == instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_crn_model2 + assert ( + instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_crn_model + == instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_crn_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_crn_model_json2 = instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_crn_model.to_dict() - assert instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_crn_model_json2 == instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_crn_model_json + instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_crn_model_json2 = ( + instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_crn_model.to_dict() + ) + assert ( + instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_crn_model_json2 + == instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_crn_model_json + ) class TestModel_InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityByHref: @@ -96656,29 +109696,52 @@ class TestModel_InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedica Test Class for InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityByHref """ - def test_instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_href_serialization(self): + def test_instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_href_serialization( + self, + ): """ Test serialization/deserialization for InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityByHref """ # Construct a json representation of a InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityByHref model - instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_href_model_json = {} - instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_href_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/dedicated_host/groups/0717-bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0' + instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_href_model_json = ( + {} + ) + instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_href_model_json[ + 'href' + ] = 'https://us-south.iaas.cloud.ibm.com/v1/dedicated_host/groups/0717-bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0' # Construct a model instance of InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityByHref by calling from_dict on the json representation - instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_href_model = InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityByHref.from_dict(instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_href_model_json) - assert instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_href_model != False + instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_href_model = InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityByHref.from_dict( + instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_href_model_json + ) + assert ( + instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_href_model + != False + ) # Construct a model instance of InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityByHref by calling from_dict on the json representation - instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_href_model_dict = InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityByHref.from_dict(instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_href_model_json).__dict__ - instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_href_model2 = InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityByHref(**instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_href_model_dict) + instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_href_model_dict = InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityByHref.from_dict( + instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_href_model_json + ).__dict__ + instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_href_model2 = InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityByHref( + **instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_href_model_dict + ) # Verify the model instances are equivalent - assert instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_href_model == instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_href_model2 + assert ( + instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_href_model + == instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_href_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_href_model_json2 = instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_href_model.to_dict() - assert instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_href_model_json2 == instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_href_model_json + instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_href_model_json2 = ( + instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_href_model.to_dict() + ) + assert ( + instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_href_model_json2 + == instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_href_model_json + ) class TestModel_InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityById: @@ -96686,29 +109749,52 @@ class TestModel_InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedica Test Class for InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityById """ - def test_instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_id_serialization(self): + def test_instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_id_serialization( + self, + ): """ Test serialization/deserialization for InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityById """ # Construct a json representation of a InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityById model - instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_id_model_json = {} - instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_id_model_json['id'] = '0717-bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0' + instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_id_model_json = ( + {} + ) + instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_id_model_json[ + 'id' + ] = '0717-bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0' # Construct a model instance of InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityById by calling from_dict on the json representation - instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_id_model = InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityById.from_dict(instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_id_model_json) - assert instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_id_model != False + instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_id_model = InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityById.from_dict( + instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_id_model_json + ) + assert ( + instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_id_model + != False + ) # Construct a model instance of InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityById by calling from_dict on the json representation - instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_id_model_dict = InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityById.from_dict(instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_id_model_json).__dict__ - instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_id_model2 = InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityById(**instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_id_model_dict) + instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_id_model_dict = InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityById.from_dict( + instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_id_model_json + ).__dict__ + instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_id_model2 = InstancePlacementTargetPrototypeDedicatedHostGroupIdentityDedicatedHostGroupIdentityById( + **instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_id_model_dict + ) # Verify the model instances are equivalent - assert instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_id_model == instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_id_model2 + assert ( + instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_id_model + == instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_id_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_id_model_json2 = instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_id_model.to_dict() - assert instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_id_model_json2 == instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_id_model_json + instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_id_model_json2 = ( + instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_id_model.to_dict() + ) + assert ( + instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_id_model_json2 + == instance_placement_target_prototype_dedicated_host_group_identity_dedicated_host_group_identity_by_id_model_json + ) class TestModel_InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityByCRN: @@ -96716,29 +109802,53 @@ class TestModel_InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHo Test Class for InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityByCRN """ - def test_instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_crn_serialization(self): + def test_instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_crn_serialization( + self, + ): """ Test serialization/deserialization for InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityByCRN """ # Construct a json representation of a InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityByCRN model instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_crn_model_json = {} - instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_crn_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host:0717-1e09281b-f177-46fb-baf1-bc152b2e391a' + instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_crn_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host:0717-1e09281b-f177-46fb-baf1-bc152b2e391a' + ) # Construct a model instance of InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityByCRN by calling from_dict on the json representation - instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_crn_model = InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityByCRN.from_dict(instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_crn_model_json) + instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_crn_model = ( + InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityByCRN.from_dict( + instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_crn_model_json + ) + ) assert instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_crn_model != False # Construct a model instance of InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityByCRN by calling from_dict on the json representation - instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_crn_model_dict = InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityByCRN.from_dict(instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_crn_model_json).__dict__ - instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_crn_model2 = InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityByCRN(**instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_crn_model_dict) + instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_crn_model_dict = ( + InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityByCRN.from_dict( + instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_crn_model_json + ).__dict__ + ) + instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_crn_model2 = ( + InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityByCRN( + **instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_crn_model_dict + ) + ) # Verify the model instances are equivalent - assert instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_crn_model == instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_crn_model2 + assert ( + instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_crn_model + == instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_crn_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_crn_model_json2 = instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_crn_model.to_dict() - assert instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_crn_model_json2 == instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_crn_model_json + instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_crn_model_json2 = ( + instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_crn_model.to_dict() + ) + assert ( + instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_crn_model_json2 + == instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_crn_model_json + ) class TestModel_InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityByHref: @@ -96746,29 +109856,55 @@ class TestModel_InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHo Test Class for InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityByHref """ - def test_instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_href_serialization(self): + def test_instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_href_serialization( + self, + ): """ Test serialization/deserialization for InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityByHref """ # Construct a json representation of a InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityByHref model instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_href_model_json = {} - instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_href_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/dedicated_hosts/0717-1e09281b-f177-46fb-baf1-bc152b2e391a' + instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_href_model_json[ + 'href' + ] = 'https://us-south.iaas.cloud.ibm.com/v1/dedicated_hosts/0717-1e09281b-f177-46fb-baf1-bc152b2e391a' # Construct a model instance of InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityByHref by calling from_dict on the json representation - instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_href_model = InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityByHref.from_dict(instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_href_model_json) - assert instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_href_model != False + instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_href_model = ( + InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityByHref.from_dict( + instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_href_model_json + ) + ) + assert ( + instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_href_model != False + ) # Construct a model instance of InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityByHref by calling from_dict on the json representation - instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_href_model_dict = InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityByHref.from_dict(instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_href_model_json).__dict__ - instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_href_model2 = InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityByHref(**instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_href_model_dict) + instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_href_model_dict = ( + InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityByHref.from_dict( + instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_href_model_json + ).__dict__ + ) + instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_href_model2 = ( + InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityByHref( + **instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_href_model_dict + ) + ) # Verify the model instances are equivalent - assert instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_href_model == instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_href_model2 + assert ( + instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_href_model + == instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_href_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_href_model_json2 = instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_href_model.to_dict() - assert instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_href_model_json2 == instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_href_model_json + instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_href_model_json2 = ( + instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_href_model.to_dict() + ) + assert ( + instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_href_model_json2 + == instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_href_model_json + ) class TestModel_InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityById: @@ -96776,29 +109912,53 @@ class TestModel_InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHo Test Class for InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityById """ - def test_instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_id_serialization(self): + def test_instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_id_serialization( + self, + ): """ Test serialization/deserialization for InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityById """ # Construct a json representation of a InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityById model instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_id_model_json = {} - instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_id_model_json['id'] = '0717-1e09281b-f177-46fb-baf1-bc152b2e391a' + instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_id_model_json['id'] = ( + '0717-1e09281b-f177-46fb-baf1-bc152b2e391a' + ) # Construct a model instance of InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityById by calling from_dict on the json representation - instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_id_model = InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityById.from_dict(instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_id_model_json) + instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_id_model = ( + InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityById.from_dict( + instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_id_model_json + ) + ) assert instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_id_model != False # Construct a model instance of InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityById by calling from_dict on the json representation - instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_id_model_dict = InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityById.from_dict(instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_id_model_json).__dict__ - instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_id_model2 = InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityById(**instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_id_model_dict) + instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_id_model_dict = ( + InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityById.from_dict( + instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_id_model_json + ).__dict__ + ) + instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_id_model2 = ( + InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityById( + **instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_id_model_dict + ) + ) # Verify the model instances are equivalent - assert instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_id_model == instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_id_model2 + assert ( + instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_id_model + == instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_id_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_id_model_json2 = instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_id_model.to_dict() - assert instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_id_model_json2 == instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_id_model_json + instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_id_model_json2 = ( + instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_id_model.to_dict() + ) + assert ( + instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_id_model_json2 + == instance_placement_target_prototype_dedicated_host_identity_dedicated_host_identity_by_id_model_json + ) class TestModel_InstancePlacementTargetPrototypePlacementGroupIdentityPlacementGroupIdentityByCRN: @@ -96806,29 +109966,53 @@ class TestModel_InstancePlacementTargetPrototypePlacementGroupIdentityPlacementG Test Class for InstancePlacementTargetPrototypePlacementGroupIdentityPlacementGroupIdentityByCRN """ - def test_instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_crn_serialization(self): + def test_instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_crn_serialization( + self, + ): """ Test serialization/deserialization for InstancePlacementTargetPrototypePlacementGroupIdentityPlacementGroupIdentityByCRN """ # Construct a json representation of a InstancePlacementTargetPrototypePlacementGroupIdentityPlacementGroupIdentityByCRN model instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_crn_model_json = {} - instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_crn_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::placement-group:r006-418fe842-a3e9-47b9-a938-1aa5bd632871' + instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_crn_model_json[ + 'crn' + ] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::placement-group:r006-418fe842-a3e9-47b9-a938-1aa5bd632871' # Construct a model instance of InstancePlacementTargetPrototypePlacementGroupIdentityPlacementGroupIdentityByCRN by calling from_dict on the json representation - instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_crn_model = InstancePlacementTargetPrototypePlacementGroupIdentityPlacementGroupIdentityByCRN.from_dict(instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_crn_model_json) - assert instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_crn_model != False + instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_crn_model = ( + InstancePlacementTargetPrototypePlacementGroupIdentityPlacementGroupIdentityByCRN.from_dict( + instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_crn_model_json + ) + ) + assert ( + instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_crn_model != False + ) # Construct a model instance of InstancePlacementTargetPrototypePlacementGroupIdentityPlacementGroupIdentityByCRN by calling from_dict on the json representation - instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_crn_model_dict = InstancePlacementTargetPrototypePlacementGroupIdentityPlacementGroupIdentityByCRN.from_dict(instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_crn_model_json).__dict__ - instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_crn_model2 = InstancePlacementTargetPrototypePlacementGroupIdentityPlacementGroupIdentityByCRN(**instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_crn_model_dict) + instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_crn_model_dict = ( + InstancePlacementTargetPrototypePlacementGroupIdentityPlacementGroupIdentityByCRN.from_dict( + instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_crn_model_json + ).__dict__ + ) + instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_crn_model2 = InstancePlacementTargetPrototypePlacementGroupIdentityPlacementGroupIdentityByCRN( + **instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_crn_model_dict + ) # Verify the model instances are equivalent - assert instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_crn_model == instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_crn_model2 + assert ( + instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_crn_model + == instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_crn_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_crn_model_json2 = instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_crn_model.to_dict() - assert instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_crn_model_json2 == instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_crn_model_json + instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_crn_model_json2 = ( + instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_crn_model.to_dict() + ) + assert ( + instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_crn_model_json2 + == instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_crn_model_json + ) class TestModel_InstancePlacementTargetPrototypePlacementGroupIdentityPlacementGroupIdentityByHref: @@ -96836,29 +110020,53 @@ class TestModel_InstancePlacementTargetPrototypePlacementGroupIdentityPlacementG Test Class for InstancePlacementTargetPrototypePlacementGroupIdentityPlacementGroupIdentityByHref """ - def test_instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_href_serialization(self): + def test_instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_href_serialization( + self, + ): """ Test serialization/deserialization for InstancePlacementTargetPrototypePlacementGroupIdentityPlacementGroupIdentityByHref """ # Construct a json representation of a InstancePlacementTargetPrototypePlacementGroupIdentityPlacementGroupIdentityByHref model instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_href_model_json = {} - instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_href_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/placement_groups/r006-418fe842-a3e9-47b9-a938-1aa5bd632871' + instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_href_model_json[ + 'href' + ] = 'https://us-south.iaas.cloud.ibm.com/v1/placement_groups/r006-418fe842-a3e9-47b9-a938-1aa5bd632871' # Construct a model instance of InstancePlacementTargetPrototypePlacementGroupIdentityPlacementGroupIdentityByHref by calling from_dict on the json representation - instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_href_model = InstancePlacementTargetPrototypePlacementGroupIdentityPlacementGroupIdentityByHref.from_dict(instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_href_model_json) - assert instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_href_model != False + instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_href_model = ( + InstancePlacementTargetPrototypePlacementGroupIdentityPlacementGroupIdentityByHref.from_dict( + instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_href_model_json + ) + ) + assert ( + instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_href_model != False + ) # Construct a model instance of InstancePlacementTargetPrototypePlacementGroupIdentityPlacementGroupIdentityByHref by calling from_dict on the json representation - instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_href_model_dict = InstancePlacementTargetPrototypePlacementGroupIdentityPlacementGroupIdentityByHref.from_dict(instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_href_model_json).__dict__ - instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_href_model2 = InstancePlacementTargetPrototypePlacementGroupIdentityPlacementGroupIdentityByHref(**instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_href_model_dict) + instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_href_model_dict = ( + InstancePlacementTargetPrototypePlacementGroupIdentityPlacementGroupIdentityByHref.from_dict( + instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_href_model_json + ).__dict__ + ) + instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_href_model2 = InstancePlacementTargetPrototypePlacementGroupIdentityPlacementGroupIdentityByHref( + **instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_href_model_dict + ) # Verify the model instances are equivalent - assert instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_href_model == instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_href_model2 + assert ( + instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_href_model + == instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_href_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_href_model_json2 = instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_href_model.to_dict() - assert instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_href_model_json2 == instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_href_model_json + instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_href_model_json2 = ( + instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_href_model.to_dict() + ) + assert ( + instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_href_model_json2 + == instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_href_model_json + ) class TestModel_InstancePlacementTargetPrototypePlacementGroupIdentityPlacementGroupIdentityById: @@ -96866,29 +110074,55 @@ class TestModel_InstancePlacementTargetPrototypePlacementGroupIdentityPlacementG Test Class for InstancePlacementTargetPrototypePlacementGroupIdentityPlacementGroupIdentityById """ - def test_instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_id_serialization(self): + def test_instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_id_serialization( + self, + ): """ Test serialization/deserialization for InstancePlacementTargetPrototypePlacementGroupIdentityPlacementGroupIdentityById """ # Construct a json representation of a InstancePlacementTargetPrototypePlacementGroupIdentityPlacementGroupIdentityById model instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_id_model_json = {} - instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_id_model_json['id'] = 'r006-418fe842-a3e9-47b9-a938-1aa5bd632871' + instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_id_model_json['id'] = ( + 'r006-418fe842-a3e9-47b9-a938-1aa5bd632871' + ) # Construct a model instance of InstancePlacementTargetPrototypePlacementGroupIdentityPlacementGroupIdentityById by calling from_dict on the json representation - instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_id_model = InstancePlacementTargetPrototypePlacementGroupIdentityPlacementGroupIdentityById.from_dict(instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_id_model_json) - assert instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_id_model != False + instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_id_model = ( + InstancePlacementTargetPrototypePlacementGroupIdentityPlacementGroupIdentityById.from_dict( + instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_id_model_json + ) + ) + assert ( + instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_id_model != False + ) # Construct a model instance of InstancePlacementTargetPrototypePlacementGroupIdentityPlacementGroupIdentityById by calling from_dict on the json representation - instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_id_model_dict = InstancePlacementTargetPrototypePlacementGroupIdentityPlacementGroupIdentityById.from_dict(instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_id_model_json).__dict__ - instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_id_model2 = InstancePlacementTargetPrototypePlacementGroupIdentityPlacementGroupIdentityById(**instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_id_model_dict) + instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_id_model_dict = ( + InstancePlacementTargetPrototypePlacementGroupIdentityPlacementGroupIdentityById.from_dict( + instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_id_model_json + ).__dict__ + ) + instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_id_model2 = ( + InstancePlacementTargetPrototypePlacementGroupIdentityPlacementGroupIdentityById( + **instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_id_model_dict + ) + ) # Verify the model instances are equivalent - assert instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_id_model == instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_id_model2 + assert ( + instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_id_model + == instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_id_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_id_model_json2 = instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_id_model.to_dict() - assert instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_id_model_json2 == instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_id_model_json + instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_id_model_json2 = ( + instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_id_model.to_dict() + ) + assert ( + instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_id_model_json2 + == instance_placement_target_prototype_placement_group_identity_placement_group_identity_by_id_model_json + ) class TestModel_InstancePrototypeInstanceByCatalogOfferingInstanceByCatalogOfferingInstanceByNetworkAttachment: @@ -96896,7 +110130,9 @@ class TestModel_InstancePrototypeInstanceByCatalogOfferingInstanceByCatalogOffer Test Class for InstancePrototypeInstanceByCatalogOfferingInstanceByCatalogOfferingInstanceByNetworkAttachment """ - def test_instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_attachment_serialization(self): + def test_instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_attachment_serialization( + self, + ): """ Test serialization/deserialization for InstancePrototypeInstanceByCatalogOfferingInstanceByCatalogOfferingInstanceByNetworkAttachment """ @@ -96906,7 +110142,9 @@ def test_instance_prototype_instance_by_catalog_offering_instance_by_catalog_off instance_availability_policy_prototype_model = {} # InstanceAvailabilityPolicyPrototype instance_availability_policy_prototype_model['host_failure'] = 'restart' - cluster_network_interface_primary_ip_prototype_model = {} # ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPPrototypeClusterNetworkInterfacePrimaryIPContext + cluster_network_interface_primary_ip_prototype_model = ( + {} + ) # ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPPrototypeClusterNetworkInterfacePrimaryIPContext cluster_network_interface_primary_ip_prototype_model['address'] = '10.0.0.5' cluster_network_interface_primary_ip_prototype_model['auto_delete'] = False cluster_network_interface_primary_ip_prototype_model['name'] = 'my-cluster-network-subnet-reserved-ip' @@ -96914,14 +110152,26 @@ def test_instance_prototype_instance_by_catalog_offering_instance_by_catalog_off cluster_network_subnet_identity_model = {} # ClusterNetworkSubnetIdentityById cluster_network_subnet_identity_model['id'] = '0717-7931845c-65c4-4b0a-80cd-7d9c1a6d7930' - instance_cluster_network_attachment_prototype_cluster_network_interface_model = {} # InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment + instance_cluster_network_attachment_prototype_cluster_network_interface_model = ( + {} + ) # InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment instance_cluster_network_attachment_prototype_cluster_network_interface_model['auto_delete'] = False - instance_cluster_network_attachment_prototype_cluster_network_interface_model['name'] = 'my-cluster-network-interface' - instance_cluster_network_attachment_prototype_cluster_network_interface_model['primary_ip'] = cluster_network_interface_primary_ip_prototype_model - instance_cluster_network_attachment_prototype_cluster_network_interface_model['subnet'] = cluster_network_subnet_identity_model + instance_cluster_network_attachment_prototype_cluster_network_interface_model['name'] = ( + 'my-cluster-network-interface' + ) + instance_cluster_network_attachment_prototype_cluster_network_interface_model['primary_ip'] = ( + cluster_network_interface_primary_ip_prototype_model + ) + instance_cluster_network_attachment_prototype_cluster_network_interface_model['subnet'] = ( + cluster_network_subnet_identity_model + ) - instance_cluster_network_attachment_prototype_instance_context_model = {} # InstanceClusterNetworkAttachmentPrototypeInstanceContext - instance_cluster_network_attachment_prototype_instance_context_model['cluster_network_interface'] = instance_cluster_network_attachment_prototype_cluster_network_interface_model + instance_cluster_network_attachment_prototype_instance_context_model = ( + {} + ) # InstanceClusterNetworkAttachmentPrototypeInstanceContext + instance_cluster_network_attachment_prototype_instance_context_model['cluster_network_interface'] = ( + instance_cluster_network_attachment_prototype_cluster_network_interface_model + ) instance_cluster_network_attachment_prototype_instance_context_model['name'] = 'my-instance-network-attachment' trusted_profile_identity_model = {} # TrustedProfileIdentityById @@ -96939,7 +110189,9 @@ def test_instance_prototype_instance_by_catalog_offering_instance_by_catalog_off instance_metadata_service_prototype_model['protocol'] = 'https' instance_metadata_service_prototype_model['response_hop_limit'] = 2 - instance_placement_target_prototype_model = {} # InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityById + instance_placement_target_prototype_model = ( + {} + ) # InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityById instance_placement_target_prototype_model['id'] = '0717-1e09281b-f177-46fb-baf1-bc152b2e391a' instance_profile_identity_model = {} # InstanceProfileIdentityByName @@ -96967,7 +110219,9 @@ def test_instance_prototype_instance_by_catalog_offering_instance_by_catalog_off vpc_identity_model['id'] = 'r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' encryption_key_identity_model = {} # EncryptionKeyIdentityByCRN - encryption_key_identity_model['crn'] = 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + encryption_key_identity_model['crn'] = ( + 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + ) volume_profile_identity_model = {} # VolumeProfileIdentityByName volume_profile_identity_model['name'] = 'general-purpose' @@ -96981,16 +110235,26 @@ def test_instance_prototype_instance_by_catalog_offering_instance_by_catalog_off volume_prototype_instance_by_image_context_model['resource_group'] = resource_group_identity_model volume_prototype_instance_by_image_context_model['user_tags'] = [] - volume_attachment_prototype_instance_by_image_context_model = {} # VolumeAttachmentPrototypeInstanceByImageContext + volume_attachment_prototype_instance_by_image_context_model = ( + {} + ) # VolumeAttachmentPrototypeInstanceByImageContext volume_attachment_prototype_instance_by_image_context_model['delete_volume_on_instance_delete'] = True volume_attachment_prototype_instance_by_image_context_model['name'] = 'my-volume-attachment' - volume_attachment_prototype_instance_by_image_context_model['volume'] = volume_prototype_instance_by_image_context_model + volume_attachment_prototype_instance_by_image_context_model['volume'] = ( + volume_prototype_instance_by_image_context_model + ) - catalog_offering_version_plan_identity_model = {} # CatalogOfferingVersionPlanIdentityCatalogOfferingVersionPlanByCRN - catalog_offering_version_plan_identity_model['crn'] = 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:51c9e0db-2911-45a6-adb0-ac5332d27cf2:plan:sw.51c9e0db-2911-45a6-adb0-ac5332d27cf2.772c0dbe-aa62-482e-adbe-a3fc20101e0e' + catalog_offering_version_plan_identity_model = ( + {} + ) # CatalogOfferingVersionPlanIdentityCatalogOfferingVersionPlanByCRN + catalog_offering_version_plan_identity_model['crn'] = ( + 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:51c9e0db-2911-45a6-adb0-ac5332d27cf2:plan:sw.51c9e0db-2911-45a6-adb0-ac5332d27cf2.772c0dbe-aa62-482e-adbe-a3fc20101e0e' + ) catalog_offering_identity_model = {} # CatalogOfferingIdentityCatalogOfferingByCRN - catalog_offering_identity_model['crn'] = 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:offering:00111601-0ec5-41ac-b142-96d1e64e6442' + catalog_offering_identity_model['crn'] = ( + 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:offering:00111601-0ec5-41ac-b142-96d1e64e6442' + ) instance_catalog_offering_prototype_model = {} # InstanceCatalogOfferingPrototypeCatalogOfferingByOffering instance_catalog_offering_prototype_model['plan'] = catalog_offering_version_plan_identity_model @@ -96999,12 +110263,16 @@ def test_instance_prototype_instance_by_catalog_offering_instance_by_catalog_off zone_identity_model = {} # ZoneIdentityByName zone_identity_model['name'] = 'us-south-1' - virtual_network_interface_ip_prototype_model = {} # VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext + virtual_network_interface_ip_prototype_model = ( + {} + ) # VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext virtual_network_interface_ip_prototype_model['address'] = '10.0.0.5' virtual_network_interface_ip_prototype_model['auto_delete'] = False virtual_network_interface_ip_prototype_model['name'] = 'my-reserved-ip' - virtual_network_interface_primary_ip_prototype_model = {} # VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext + virtual_network_interface_primary_ip_prototype_model = ( + {} + ) # VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext virtual_network_interface_primary_ip_prototype_model['address'] = '10.0.0.5' virtual_network_interface_primary_ip_prototype_model['auto_delete'] = False virtual_network_interface_primary_ip_prototype_model['name'] = 'my-reserved-ip' @@ -97015,60 +110283,141 @@ def test_instance_prototype_instance_by_catalog_offering_instance_by_catalog_off subnet_identity_model = {} # SubnetIdentityById subnet_identity_model['id'] = '7ec86020-1c6e-4889-b3f0-a15f2e50f87e' - instance_network_attachment_prototype_virtual_network_interface_model = {} # InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeInstanceNetworkAttachmentContext + instance_network_attachment_prototype_virtual_network_interface_model = ( + {} + ) # InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeInstanceNetworkAttachmentContext instance_network_attachment_prototype_virtual_network_interface_model['allow_ip_spoofing'] = True instance_network_attachment_prototype_virtual_network_interface_model['auto_delete'] = False instance_network_attachment_prototype_virtual_network_interface_model['enable_infrastructure_nat'] = True - instance_network_attachment_prototype_virtual_network_interface_model['ips'] = [virtual_network_interface_ip_prototype_model] + instance_network_attachment_prototype_virtual_network_interface_model['ips'] = [ + virtual_network_interface_ip_prototype_model + ] instance_network_attachment_prototype_virtual_network_interface_model['name'] = 'my-virtual-network-interface' - instance_network_attachment_prototype_virtual_network_interface_model['primary_ip'] = virtual_network_interface_primary_ip_prototype_model + instance_network_attachment_prototype_virtual_network_interface_model['primary_ip'] = ( + virtual_network_interface_primary_ip_prototype_model + ) instance_network_attachment_prototype_virtual_network_interface_model['protocol_state_filtering_mode'] = 'auto' - instance_network_attachment_prototype_virtual_network_interface_model['resource_group'] = resource_group_identity_model - instance_network_attachment_prototype_virtual_network_interface_model['security_groups'] = [security_group_identity_model] + instance_network_attachment_prototype_virtual_network_interface_model['resource_group'] = ( + resource_group_identity_model + ) + instance_network_attachment_prototype_virtual_network_interface_model['security_groups'] = [ + security_group_identity_model + ] instance_network_attachment_prototype_virtual_network_interface_model['subnet'] = subnet_identity_model instance_network_attachment_prototype_model = {} # InstanceNetworkAttachmentPrototype instance_network_attachment_prototype_model['name'] = 'my-instance-network-attachment' - instance_network_attachment_prototype_model['virtual_network_interface'] = instance_network_attachment_prototype_virtual_network_interface_model + instance_network_attachment_prototype_model['virtual_network_interface'] = ( + instance_network_attachment_prototype_virtual_network_interface_model + ) # Construct a json representation of a InstancePrototypeInstanceByCatalogOfferingInstanceByCatalogOfferingInstanceByNetworkAttachment model - instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_attachment_model_json = {} - instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_attachment_model_json['availability_policy'] = instance_availability_policy_prototype_model - instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_attachment_model_json['cluster_network_attachments'] = [instance_cluster_network_attachment_prototype_instance_context_model] - instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_attachment_model_json['confidential_compute_mode'] = 'disabled' - instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_attachment_model_json['default_trusted_profile'] = instance_default_trusted_profile_prototype_model - instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_attachment_model_json['enable_secure_boot'] = True - instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_attachment_model_json['keys'] = [key_identity_model] - instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_attachment_model_json['metadata_service'] = instance_metadata_service_prototype_model - instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_attachment_model_json['name'] = 'my-instance' - instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_attachment_model_json['placement_target'] = instance_placement_target_prototype_model - instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_attachment_model_json['profile'] = instance_profile_identity_model - instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_attachment_model_json['reservation_affinity'] = instance_reservation_affinity_prototype_model - instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_attachment_model_json['resource_group'] = resource_group_identity_model - instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_attachment_model_json['total_volume_bandwidth'] = 500 - instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_attachment_model_json['user_data'] = 'testString' - instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_attachment_model_json['volume_attachments'] = [volume_attachment_prototype_model] - instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_attachment_model_json['vpc'] = vpc_identity_model - instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_attachment_model_json['boot_volume_attachment'] = volume_attachment_prototype_instance_by_image_context_model - instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_attachment_model_json['catalog_offering'] = instance_catalog_offering_prototype_model - instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_attachment_model_json['zone'] = zone_identity_model - instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_attachment_model_json['network_attachments'] = [instance_network_attachment_prototype_model] - instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_attachment_model_json['primary_network_attachment'] = instance_network_attachment_prototype_model + instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_attachment_model_json = ( + {} + ) + instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_attachment_model_json[ + 'availability_policy' + ] = instance_availability_policy_prototype_model + instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_attachment_model_json[ + 'cluster_network_attachments' + ] = [ + instance_cluster_network_attachment_prototype_instance_context_model + ] + instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_attachment_model_json[ + 'confidential_compute_mode' + ] = 'disabled' + instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_attachment_model_json[ + 'default_trusted_profile' + ] = instance_default_trusted_profile_prototype_model + instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_attachment_model_json[ + 'enable_secure_boot' + ] = True + instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_attachment_model_json[ + 'keys' + ] = [ + key_identity_model + ] + instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_attachment_model_json[ + 'metadata_service' + ] = instance_metadata_service_prototype_model + instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_attachment_model_json[ + 'name' + ] = 'my-instance' + instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_attachment_model_json[ + 'placement_target' + ] = instance_placement_target_prototype_model + instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_attachment_model_json[ + 'profile' + ] = instance_profile_identity_model + instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_attachment_model_json[ + 'reservation_affinity' + ] = instance_reservation_affinity_prototype_model + instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_attachment_model_json[ + 'resource_group' + ] = resource_group_identity_model + instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_attachment_model_json[ + 'total_volume_bandwidth' + ] = 500 + instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_attachment_model_json[ + 'user_data' + ] = 'testString' + instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_attachment_model_json[ + 'volume_attachments' + ] = [ + volume_attachment_prototype_model + ] + instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_attachment_model_json[ + 'vpc' + ] = vpc_identity_model + instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_attachment_model_json[ + 'boot_volume_attachment' + ] = volume_attachment_prototype_instance_by_image_context_model + instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_attachment_model_json[ + 'catalog_offering' + ] = instance_catalog_offering_prototype_model + instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_attachment_model_json[ + 'zone' + ] = zone_identity_model + instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_attachment_model_json[ + 'network_attachments' + ] = [ + instance_network_attachment_prototype_model + ] + instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_attachment_model_json[ + 'primary_network_attachment' + ] = instance_network_attachment_prototype_model # Construct a model instance of InstancePrototypeInstanceByCatalogOfferingInstanceByCatalogOfferingInstanceByNetworkAttachment by calling from_dict on the json representation - instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_attachment_model = InstancePrototypeInstanceByCatalogOfferingInstanceByCatalogOfferingInstanceByNetworkAttachment.from_dict(instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_attachment_model_json) - assert instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_attachment_model != False + instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_attachment_model = InstancePrototypeInstanceByCatalogOfferingInstanceByCatalogOfferingInstanceByNetworkAttachment.from_dict( + instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_attachment_model_json + ) + assert ( + instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_attachment_model + != False + ) # Construct a model instance of InstancePrototypeInstanceByCatalogOfferingInstanceByCatalogOfferingInstanceByNetworkAttachment by calling from_dict on the json representation - instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_attachment_model_dict = InstancePrototypeInstanceByCatalogOfferingInstanceByCatalogOfferingInstanceByNetworkAttachment.from_dict(instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_attachment_model_json).__dict__ - instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_attachment_model2 = InstancePrototypeInstanceByCatalogOfferingInstanceByCatalogOfferingInstanceByNetworkAttachment(**instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_attachment_model_dict) + instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_attachment_model_dict = InstancePrototypeInstanceByCatalogOfferingInstanceByCatalogOfferingInstanceByNetworkAttachment.from_dict( + instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_attachment_model_json + ).__dict__ + instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_attachment_model2 = InstancePrototypeInstanceByCatalogOfferingInstanceByCatalogOfferingInstanceByNetworkAttachment( + **instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_attachment_model_dict + ) # Verify the model instances are equivalent - assert instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_attachment_model == instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_attachment_model2 + assert ( + instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_attachment_model + == instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_attachment_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_attachment_model_json2 = instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_attachment_model.to_dict() - assert instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_attachment_model_json2 == instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_attachment_model_json + instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_attachment_model_json2 = ( + instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_attachment_model.to_dict() + ) + assert ( + instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_attachment_model_json2 + == instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_attachment_model_json + ) class TestModel_InstancePrototypeInstanceByCatalogOfferingInstanceByCatalogOfferingInstanceByNetworkInterface: @@ -97076,7 +110425,9 @@ class TestModel_InstancePrototypeInstanceByCatalogOfferingInstanceByCatalogOffer Test Class for InstancePrototypeInstanceByCatalogOfferingInstanceByCatalogOfferingInstanceByNetworkInterface """ - def test_instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_interface_serialization(self): + def test_instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_interface_serialization( + self, + ): """ Test serialization/deserialization for InstancePrototypeInstanceByCatalogOfferingInstanceByCatalogOfferingInstanceByNetworkInterface """ @@ -97086,7 +110437,9 @@ def test_instance_prototype_instance_by_catalog_offering_instance_by_catalog_off instance_availability_policy_prototype_model = {} # InstanceAvailabilityPolicyPrototype instance_availability_policy_prototype_model['host_failure'] = 'restart' - cluster_network_interface_primary_ip_prototype_model = {} # ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPPrototypeClusterNetworkInterfacePrimaryIPContext + cluster_network_interface_primary_ip_prototype_model = ( + {} + ) # ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPPrototypeClusterNetworkInterfacePrimaryIPContext cluster_network_interface_primary_ip_prototype_model['address'] = '10.0.0.5' cluster_network_interface_primary_ip_prototype_model['auto_delete'] = False cluster_network_interface_primary_ip_prototype_model['name'] = 'my-cluster-network-subnet-reserved-ip' @@ -97094,14 +110447,26 @@ def test_instance_prototype_instance_by_catalog_offering_instance_by_catalog_off cluster_network_subnet_identity_model = {} # ClusterNetworkSubnetIdentityById cluster_network_subnet_identity_model['id'] = '0717-7931845c-65c4-4b0a-80cd-7d9c1a6d7930' - instance_cluster_network_attachment_prototype_cluster_network_interface_model = {} # InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment + instance_cluster_network_attachment_prototype_cluster_network_interface_model = ( + {} + ) # InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment instance_cluster_network_attachment_prototype_cluster_network_interface_model['auto_delete'] = False - instance_cluster_network_attachment_prototype_cluster_network_interface_model['name'] = 'my-cluster-network-interface' - instance_cluster_network_attachment_prototype_cluster_network_interface_model['primary_ip'] = cluster_network_interface_primary_ip_prototype_model - instance_cluster_network_attachment_prototype_cluster_network_interface_model['subnet'] = cluster_network_subnet_identity_model + instance_cluster_network_attachment_prototype_cluster_network_interface_model['name'] = ( + 'my-cluster-network-interface' + ) + instance_cluster_network_attachment_prototype_cluster_network_interface_model['primary_ip'] = ( + cluster_network_interface_primary_ip_prototype_model + ) + instance_cluster_network_attachment_prototype_cluster_network_interface_model['subnet'] = ( + cluster_network_subnet_identity_model + ) - instance_cluster_network_attachment_prototype_instance_context_model = {} # InstanceClusterNetworkAttachmentPrototypeInstanceContext - instance_cluster_network_attachment_prototype_instance_context_model['cluster_network_interface'] = instance_cluster_network_attachment_prototype_cluster_network_interface_model + instance_cluster_network_attachment_prototype_instance_context_model = ( + {} + ) # InstanceClusterNetworkAttachmentPrototypeInstanceContext + instance_cluster_network_attachment_prototype_instance_context_model['cluster_network_interface'] = ( + instance_cluster_network_attachment_prototype_cluster_network_interface_model + ) instance_cluster_network_attachment_prototype_instance_context_model['name'] = 'my-instance-network-attachment' trusted_profile_identity_model = {} # TrustedProfileIdentityById @@ -97119,7 +110484,9 @@ def test_instance_prototype_instance_by_catalog_offering_instance_by_catalog_off instance_metadata_service_prototype_model['protocol'] = 'https' instance_metadata_service_prototype_model['response_hop_limit'] = 2 - instance_placement_target_prototype_model = {} # InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityById + instance_placement_target_prototype_model = ( + {} + ) # InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityById instance_placement_target_prototype_model['id'] = '0717-1e09281b-f177-46fb-baf1-bc152b2e391a' instance_profile_identity_model = {} # InstanceProfileIdentityByName @@ -97147,7 +110514,9 @@ def test_instance_prototype_instance_by_catalog_offering_instance_by_catalog_off vpc_identity_model['id'] = 'r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' encryption_key_identity_model = {} # EncryptionKeyIdentityByCRN - encryption_key_identity_model['crn'] = 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + encryption_key_identity_model['crn'] = ( + 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + ) volume_profile_identity_model = {} # VolumeProfileIdentityByName volume_profile_identity_model['name'] = 'general-purpose' @@ -97161,16 +110530,26 @@ def test_instance_prototype_instance_by_catalog_offering_instance_by_catalog_off volume_prototype_instance_by_image_context_model['resource_group'] = resource_group_identity_model volume_prototype_instance_by_image_context_model['user_tags'] = [] - volume_attachment_prototype_instance_by_image_context_model = {} # VolumeAttachmentPrototypeInstanceByImageContext + volume_attachment_prototype_instance_by_image_context_model = ( + {} + ) # VolumeAttachmentPrototypeInstanceByImageContext volume_attachment_prototype_instance_by_image_context_model['delete_volume_on_instance_delete'] = True volume_attachment_prototype_instance_by_image_context_model['name'] = 'my-volume-attachment' - volume_attachment_prototype_instance_by_image_context_model['volume'] = volume_prototype_instance_by_image_context_model + volume_attachment_prototype_instance_by_image_context_model['volume'] = ( + volume_prototype_instance_by_image_context_model + ) - catalog_offering_version_plan_identity_model = {} # CatalogOfferingVersionPlanIdentityCatalogOfferingVersionPlanByCRN - catalog_offering_version_plan_identity_model['crn'] = 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:51c9e0db-2911-45a6-adb0-ac5332d27cf2:plan:sw.51c9e0db-2911-45a6-adb0-ac5332d27cf2.772c0dbe-aa62-482e-adbe-a3fc20101e0e' + catalog_offering_version_plan_identity_model = ( + {} + ) # CatalogOfferingVersionPlanIdentityCatalogOfferingVersionPlanByCRN + catalog_offering_version_plan_identity_model['crn'] = ( + 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:51c9e0db-2911-45a6-adb0-ac5332d27cf2:plan:sw.51c9e0db-2911-45a6-adb0-ac5332d27cf2.772c0dbe-aa62-482e-adbe-a3fc20101e0e' + ) catalog_offering_identity_model = {} # CatalogOfferingIdentityCatalogOfferingByCRN - catalog_offering_identity_model['crn'] = 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:offering:00111601-0ec5-41ac-b142-96d1e64e6442' + catalog_offering_identity_model['crn'] = ( + 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:offering:00111601-0ec5-41ac-b142-96d1e64e6442' + ) instance_catalog_offering_prototype_model = {} # InstanceCatalogOfferingPrototypeCatalogOfferingByOffering instance_catalog_offering_prototype_model['plan'] = catalog_offering_version_plan_identity_model @@ -97179,7 +110558,9 @@ def test_instance_prototype_instance_by_catalog_offering_instance_by_catalog_off zone_identity_model = {} # ZoneIdentityByName zone_identity_model['name'] = 'us-south-1' - network_interface_ip_prototype_model = {} # NetworkInterfaceIPPrototypeReservedIPPrototypeNetworkInterfaceContext + network_interface_ip_prototype_model = ( + {} + ) # NetworkInterfaceIPPrototypeReservedIPPrototypeNetworkInterfaceContext network_interface_ip_prototype_model['address'] = '10.0.0.5' network_interface_ip_prototype_model['auto_delete'] = False network_interface_ip_prototype_model['name'] = 'my-reserved-ip' @@ -97198,43 +110579,112 @@ def test_instance_prototype_instance_by_catalog_offering_instance_by_catalog_off network_interface_prototype_model['subnet'] = subnet_identity_model # Construct a json representation of a InstancePrototypeInstanceByCatalogOfferingInstanceByCatalogOfferingInstanceByNetworkInterface model - instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_interface_model_json = {} - instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_interface_model_json['availability_policy'] = instance_availability_policy_prototype_model - instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_interface_model_json['cluster_network_attachments'] = [instance_cluster_network_attachment_prototype_instance_context_model] - instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_interface_model_json['confidential_compute_mode'] = 'disabled' - instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_interface_model_json['default_trusted_profile'] = instance_default_trusted_profile_prototype_model - instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_interface_model_json['enable_secure_boot'] = True - instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_interface_model_json['keys'] = [key_identity_model] - instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_interface_model_json['metadata_service'] = instance_metadata_service_prototype_model - instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_interface_model_json['name'] = 'my-instance' - instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_interface_model_json['placement_target'] = instance_placement_target_prototype_model - instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_interface_model_json['profile'] = instance_profile_identity_model - instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_interface_model_json['reservation_affinity'] = instance_reservation_affinity_prototype_model - instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_interface_model_json['resource_group'] = resource_group_identity_model - instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_interface_model_json['total_volume_bandwidth'] = 500 - instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_interface_model_json['user_data'] = 'testString' - instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_interface_model_json['volume_attachments'] = [volume_attachment_prototype_model] - instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_interface_model_json['vpc'] = vpc_identity_model - instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_interface_model_json['boot_volume_attachment'] = volume_attachment_prototype_instance_by_image_context_model - instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_interface_model_json['catalog_offering'] = instance_catalog_offering_prototype_model - instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_interface_model_json['zone'] = zone_identity_model - instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_interface_model_json['network_interfaces'] = [network_interface_prototype_model] - instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_interface_model_json['primary_network_interface'] = network_interface_prototype_model + instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_interface_model_json = ( + {} + ) + instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_interface_model_json[ + 'availability_policy' + ] = instance_availability_policy_prototype_model + instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_interface_model_json[ + 'cluster_network_attachments' + ] = [ + instance_cluster_network_attachment_prototype_instance_context_model + ] + instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_interface_model_json[ + 'confidential_compute_mode' + ] = 'disabled' + instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_interface_model_json[ + 'default_trusted_profile' + ] = instance_default_trusted_profile_prototype_model + instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_interface_model_json[ + 'enable_secure_boot' + ] = True + instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_interface_model_json[ + 'keys' + ] = [ + key_identity_model + ] + instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_interface_model_json[ + 'metadata_service' + ] = instance_metadata_service_prototype_model + instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_interface_model_json[ + 'name' + ] = 'my-instance' + instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_interface_model_json[ + 'placement_target' + ] = instance_placement_target_prototype_model + instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_interface_model_json[ + 'profile' + ] = instance_profile_identity_model + instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_interface_model_json[ + 'reservation_affinity' + ] = instance_reservation_affinity_prototype_model + instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_interface_model_json[ + 'resource_group' + ] = resource_group_identity_model + instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_interface_model_json[ + 'total_volume_bandwidth' + ] = 500 + instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_interface_model_json[ + 'user_data' + ] = 'testString' + instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_interface_model_json[ + 'volume_attachments' + ] = [ + volume_attachment_prototype_model + ] + instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_interface_model_json[ + 'vpc' + ] = vpc_identity_model + instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_interface_model_json[ + 'boot_volume_attachment' + ] = volume_attachment_prototype_instance_by_image_context_model + instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_interface_model_json[ + 'catalog_offering' + ] = instance_catalog_offering_prototype_model + instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_interface_model_json[ + 'zone' + ] = zone_identity_model + instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_interface_model_json[ + 'network_interfaces' + ] = [ + network_interface_prototype_model + ] + instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_interface_model_json[ + 'primary_network_interface' + ] = network_interface_prototype_model # Construct a model instance of InstancePrototypeInstanceByCatalogOfferingInstanceByCatalogOfferingInstanceByNetworkInterface by calling from_dict on the json representation - instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_interface_model = InstancePrototypeInstanceByCatalogOfferingInstanceByCatalogOfferingInstanceByNetworkInterface.from_dict(instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_interface_model_json) - assert instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_interface_model != False + instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_interface_model = InstancePrototypeInstanceByCatalogOfferingInstanceByCatalogOfferingInstanceByNetworkInterface.from_dict( + instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_interface_model_json + ) + assert ( + instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_interface_model + != False + ) # Construct a model instance of InstancePrototypeInstanceByCatalogOfferingInstanceByCatalogOfferingInstanceByNetworkInterface by calling from_dict on the json representation - instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_interface_model_dict = InstancePrototypeInstanceByCatalogOfferingInstanceByCatalogOfferingInstanceByNetworkInterface.from_dict(instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_interface_model_json).__dict__ - instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_interface_model2 = InstancePrototypeInstanceByCatalogOfferingInstanceByCatalogOfferingInstanceByNetworkInterface(**instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_interface_model_dict) + instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_interface_model_dict = InstancePrototypeInstanceByCatalogOfferingInstanceByCatalogOfferingInstanceByNetworkInterface.from_dict( + instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_interface_model_json + ).__dict__ + instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_interface_model2 = InstancePrototypeInstanceByCatalogOfferingInstanceByCatalogOfferingInstanceByNetworkInterface( + **instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_interface_model_dict + ) # Verify the model instances are equivalent - assert instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_interface_model == instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_interface_model2 + assert ( + instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_interface_model + == instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_interface_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_interface_model_json2 = instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_interface_model.to_dict() - assert instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_interface_model_json2 == instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_interface_model_json + instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_interface_model_json2 = ( + instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_interface_model.to_dict() + ) + assert ( + instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_interface_model_json2 + == instance_prototype_instance_by_catalog_offering_instance_by_catalog_offering_instance_by_network_interface_model_json + ) class TestModel_InstancePrototypeInstanceByImageInstanceByImageInstanceByNetworkAttachment: @@ -97252,7 +110702,9 @@ def test_instance_prototype_instance_by_image_instance_by_image_instance_by_netw instance_availability_policy_prototype_model = {} # InstanceAvailabilityPolicyPrototype instance_availability_policy_prototype_model['host_failure'] = 'restart' - cluster_network_interface_primary_ip_prototype_model = {} # ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPPrototypeClusterNetworkInterfacePrimaryIPContext + cluster_network_interface_primary_ip_prototype_model = ( + {} + ) # ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPPrototypeClusterNetworkInterfacePrimaryIPContext cluster_network_interface_primary_ip_prototype_model['address'] = '10.0.0.5' cluster_network_interface_primary_ip_prototype_model['auto_delete'] = False cluster_network_interface_primary_ip_prototype_model['name'] = 'my-cluster-network-subnet-reserved-ip' @@ -97260,14 +110712,26 @@ def test_instance_prototype_instance_by_image_instance_by_image_instance_by_netw cluster_network_subnet_identity_model = {} # ClusterNetworkSubnetIdentityById cluster_network_subnet_identity_model['id'] = '0717-7931845c-65c4-4b0a-80cd-7d9c1a6d7930' - instance_cluster_network_attachment_prototype_cluster_network_interface_model = {} # InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment + instance_cluster_network_attachment_prototype_cluster_network_interface_model = ( + {} + ) # InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment instance_cluster_network_attachment_prototype_cluster_network_interface_model['auto_delete'] = False - instance_cluster_network_attachment_prototype_cluster_network_interface_model['name'] = 'my-cluster-network-interface' - instance_cluster_network_attachment_prototype_cluster_network_interface_model['primary_ip'] = cluster_network_interface_primary_ip_prototype_model - instance_cluster_network_attachment_prototype_cluster_network_interface_model['subnet'] = cluster_network_subnet_identity_model + instance_cluster_network_attachment_prototype_cluster_network_interface_model['name'] = ( + 'my-cluster-network-interface' + ) + instance_cluster_network_attachment_prototype_cluster_network_interface_model['primary_ip'] = ( + cluster_network_interface_primary_ip_prototype_model + ) + instance_cluster_network_attachment_prototype_cluster_network_interface_model['subnet'] = ( + cluster_network_subnet_identity_model + ) - instance_cluster_network_attachment_prototype_instance_context_model = {} # InstanceClusterNetworkAttachmentPrototypeInstanceContext - instance_cluster_network_attachment_prototype_instance_context_model['cluster_network_interface'] = instance_cluster_network_attachment_prototype_cluster_network_interface_model + instance_cluster_network_attachment_prototype_instance_context_model = ( + {} + ) # InstanceClusterNetworkAttachmentPrototypeInstanceContext + instance_cluster_network_attachment_prototype_instance_context_model['cluster_network_interface'] = ( + instance_cluster_network_attachment_prototype_cluster_network_interface_model + ) instance_cluster_network_attachment_prototype_instance_context_model['name'] = 'my-instance-network-attachment' trusted_profile_identity_model = {} # TrustedProfileIdentityById @@ -97285,7 +110749,9 @@ def test_instance_prototype_instance_by_image_instance_by_image_instance_by_netw instance_metadata_service_prototype_model['protocol'] = 'https' instance_metadata_service_prototype_model['response_hop_limit'] = 2 - instance_placement_target_prototype_model = {} # InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityById + instance_placement_target_prototype_model = ( + {} + ) # InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityById instance_placement_target_prototype_model['id'] = '0717-1e09281b-f177-46fb-baf1-bc152b2e391a' instance_profile_identity_model = {} # InstanceProfileIdentityByName @@ -97313,7 +110779,9 @@ def test_instance_prototype_instance_by_image_instance_by_image_instance_by_netw vpc_identity_model['id'] = 'r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' encryption_key_identity_model = {} # EncryptionKeyIdentityByCRN - encryption_key_identity_model['crn'] = 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + encryption_key_identity_model['crn'] = ( + 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + ) volume_profile_identity_model = {} # VolumeProfileIdentityByName volume_profile_identity_model['name'] = 'general-purpose' @@ -97327,10 +110795,14 @@ def test_instance_prototype_instance_by_image_instance_by_image_instance_by_netw volume_prototype_instance_by_image_context_model['resource_group'] = resource_group_identity_model volume_prototype_instance_by_image_context_model['user_tags'] = [] - volume_attachment_prototype_instance_by_image_context_model = {} # VolumeAttachmentPrototypeInstanceByImageContext + volume_attachment_prototype_instance_by_image_context_model = ( + {} + ) # VolumeAttachmentPrototypeInstanceByImageContext volume_attachment_prototype_instance_by_image_context_model['delete_volume_on_instance_delete'] = True volume_attachment_prototype_instance_by_image_context_model['name'] = 'my-volume-attachment' - volume_attachment_prototype_instance_by_image_context_model['volume'] = volume_prototype_instance_by_image_context_model + volume_attachment_prototype_instance_by_image_context_model['volume'] = ( + volume_prototype_instance_by_image_context_model + ) image_identity_model = {} # ImageIdentityById image_identity_model['id'] = 'r006-02c73baf-9abb-493d-9e41-d0f1866f4051' @@ -97338,12 +110810,16 @@ def test_instance_prototype_instance_by_image_instance_by_image_instance_by_netw zone_identity_model = {} # ZoneIdentityByName zone_identity_model['name'] = 'us-south-1' - virtual_network_interface_ip_prototype_model = {} # VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext + virtual_network_interface_ip_prototype_model = ( + {} + ) # VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext virtual_network_interface_ip_prototype_model['address'] = '10.0.0.5' virtual_network_interface_ip_prototype_model['auto_delete'] = False virtual_network_interface_ip_prototype_model['name'] = 'my-reserved-ip' - virtual_network_interface_primary_ip_prototype_model = {} # VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext + virtual_network_interface_primary_ip_prototype_model = ( + {} + ) # VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext virtual_network_interface_primary_ip_prototype_model['address'] = '10.0.0.5' virtual_network_interface_primary_ip_prototype_model['auto_delete'] = False virtual_network_interface_primary_ip_prototype_model['name'] = 'my-reserved-ip' @@ -97354,60 +110830,134 @@ def test_instance_prototype_instance_by_image_instance_by_image_instance_by_netw subnet_identity_model = {} # SubnetIdentityById subnet_identity_model['id'] = '7ec86020-1c6e-4889-b3f0-a15f2e50f87e' - instance_network_attachment_prototype_virtual_network_interface_model = {} # InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeInstanceNetworkAttachmentContext + instance_network_attachment_prototype_virtual_network_interface_model = ( + {} + ) # InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeInstanceNetworkAttachmentContext instance_network_attachment_prototype_virtual_network_interface_model['allow_ip_spoofing'] = True instance_network_attachment_prototype_virtual_network_interface_model['auto_delete'] = False instance_network_attachment_prototype_virtual_network_interface_model['enable_infrastructure_nat'] = True - instance_network_attachment_prototype_virtual_network_interface_model['ips'] = [virtual_network_interface_ip_prototype_model] + instance_network_attachment_prototype_virtual_network_interface_model['ips'] = [ + virtual_network_interface_ip_prototype_model + ] instance_network_attachment_prototype_virtual_network_interface_model['name'] = 'my-virtual-network-interface' - instance_network_attachment_prototype_virtual_network_interface_model['primary_ip'] = virtual_network_interface_primary_ip_prototype_model + instance_network_attachment_prototype_virtual_network_interface_model['primary_ip'] = ( + virtual_network_interface_primary_ip_prototype_model + ) instance_network_attachment_prototype_virtual_network_interface_model['protocol_state_filtering_mode'] = 'auto' - instance_network_attachment_prototype_virtual_network_interface_model['resource_group'] = resource_group_identity_model - instance_network_attachment_prototype_virtual_network_interface_model['security_groups'] = [security_group_identity_model] + instance_network_attachment_prototype_virtual_network_interface_model['resource_group'] = ( + resource_group_identity_model + ) + instance_network_attachment_prototype_virtual_network_interface_model['security_groups'] = [ + security_group_identity_model + ] instance_network_attachment_prototype_virtual_network_interface_model['subnet'] = subnet_identity_model instance_network_attachment_prototype_model = {} # InstanceNetworkAttachmentPrototype instance_network_attachment_prototype_model['name'] = 'my-instance-network-attachment' - instance_network_attachment_prototype_model['virtual_network_interface'] = instance_network_attachment_prototype_virtual_network_interface_model + instance_network_attachment_prototype_model['virtual_network_interface'] = ( + instance_network_attachment_prototype_virtual_network_interface_model + ) # Construct a json representation of a InstancePrototypeInstanceByImageInstanceByImageInstanceByNetworkAttachment model instance_prototype_instance_by_image_instance_by_image_instance_by_network_attachment_model_json = {} - instance_prototype_instance_by_image_instance_by_image_instance_by_network_attachment_model_json['availability_policy'] = instance_availability_policy_prototype_model - instance_prototype_instance_by_image_instance_by_image_instance_by_network_attachment_model_json['cluster_network_attachments'] = [instance_cluster_network_attachment_prototype_instance_context_model] - instance_prototype_instance_by_image_instance_by_image_instance_by_network_attachment_model_json['confidential_compute_mode'] = 'disabled' - instance_prototype_instance_by_image_instance_by_image_instance_by_network_attachment_model_json['default_trusted_profile'] = instance_default_trusted_profile_prototype_model - instance_prototype_instance_by_image_instance_by_image_instance_by_network_attachment_model_json['enable_secure_boot'] = True - instance_prototype_instance_by_image_instance_by_image_instance_by_network_attachment_model_json['keys'] = [key_identity_model] - instance_prototype_instance_by_image_instance_by_image_instance_by_network_attachment_model_json['metadata_service'] = instance_metadata_service_prototype_model - instance_prototype_instance_by_image_instance_by_image_instance_by_network_attachment_model_json['name'] = 'my-instance' - instance_prototype_instance_by_image_instance_by_image_instance_by_network_attachment_model_json['placement_target'] = instance_placement_target_prototype_model - instance_prototype_instance_by_image_instance_by_image_instance_by_network_attachment_model_json['profile'] = instance_profile_identity_model - instance_prototype_instance_by_image_instance_by_image_instance_by_network_attachment_model_json['reservation_affinity'] = instance_reservation_affinity_prototype_model - instance_prototype_instance_by_image_instance_by_image_instance_by_network_attachment_model_json['resource_group'] = resource_group_identity_model - instance_prototype_instance_by_image_instance_by_image_instance_by_network_attachment_model_json['total_volume_bandwidth'] = 500 - instance_prototype_instance_by_image_instance_by_image_instance_by_network_attachment_model_json['user_data'] = 'testString' - instance_prototype_instance_by_image_instance_by_image_instance_by_network_attachment_model_json['volume_attachments'] = [volume_attachment_prototype_model] - instance_prototype_instance_by_image_instance_by_image_instance_by_network_attachment_model_json['vpc'] = vpc_identity_model - instance_prototype_instance_by_image_instance_by_image_instance_by_network_attachment_model_json['boot_volume_attachment'] = volume_attachment_prototype_instance_by_image_context_model - instance_prototype_instance_by_image_instance_by_image_instance_by_network_attachment_model_json['image'] = image_identity_model - instance_prototype_instance_by_image_instance_by_image_instance_by_network_attachment_model_json['zone'] = zone_identity_model - instance_prototype_instance_by_image_instance_by_image_instance_by_network_attachment_model_json['network_attachments'] = [instance_network_attachment_prototype_model] - instance_prototype_instance_by_image_instance_by_image_instance_by_network_attachment_model_json['primary_network_attachment'] = instance_network_attachment_prototype_model + instance_prototype_instance_by_image_instance_by_image_instance_by_network_attachment_model_json[ + 'availability_policy' + ] = instance_availability_policy_prototype_model + instance_prototype_instance_by_image_instance_by_image_instance_by_network_attachment_model_json[ + 'cluster_network_attachments' + ] = [instance_cluster_network_attachment_prototype_instance_context_model] + instance_prototype_instance_by_image_instance_by_image_instance_by_network_attachment_model_json[ + 'confidential_compute_mode' + ] = 'disabled' + instance_prototype_instance_by_image_instance_by_image_instance_by_network_attachment_model_json[ + 'default_trusted_profile' + ] = instance_default_trusted_profile_prototype_model + instance_prototype_instance_by_image_instance_by_image_instance_by_network_attachment_model_json[ + 'enable_secure_boot' + ] = True + instance_prototype_instance_by_image_instance_by_image_instance_by_network_attachment_model_json['keys'] = [ + key_identity_model + ] + instance_prototype_instance_by_image_instance_by_image_instance_by_network_attachment_model_json[ + 'metadata_service' + ] = instance_metadata_service_prototype_model + instance_prototype_instance_by_image_instance_by_image_instance_by_network_attachment_model_json['name'] = ( + 'my-instance' + ) + instance_prototype_instance_by_image_instance_by_image_instance_by_network_attachment_model_json[ + 'placement_target' + ] = instance_placement_target_prototype_model + instance_prototype_instance_by_image_instance_by_image_instance_by_network_attachment_model_json['profile'] = ( + instance_profile_identity_model + ) + instance_prototype_instance_by_image_instance_by_image_instance_by_network_attachment_model_json[ + 'reservation_affinity' + ] = instance_reservation_affinity_prototype_model + instance_prototype_instance_by_image_instance_by_image_instance_by_network_attachment_model_json[ + 'resource_group' + ] = resource_group_identity_model + instance_prototype_instance_by_image_instance_by_image_instance_by_network_attachment_model_json[ + 'total_volume_bandwidth' + ] = 500 + instance_prototype_instance_by_image_instance_by_image_instance_by_network_attachment_model_json[ + 'user_data' + ] = 'testString' + instance_prototype_instance_by_image_instance_by_image_instance_by_network_attachment_model_json[ + 'volume_attachments' + ] = [volume_attachment_prototype_model] + instance_prototype_instance_by_image_instance_by_image_instance_by_network_attachment_model_json['vpc'] = ( + vpc_identity_model + ) + instance_prototype_instance_by_image_instance_by_image_instance_by_network_attachment_model_json[ + 'boot_volume_attachment' + ] = volume_attachment_prototype_instance_by_image_context_model + instance_prototype_instance_by_image_instance_by_image_instance_by_network_attachment_model_json['image'] = ( + image_identity_model + ) + instance_prototype_instance_by_image_instance_by_image_instance_by_network_attachment_model_json['zone'] = ( + zone_identity_model + ) + instance_prototype_instance_by_image_instance_by_image_instance_by_network_attachment_model_json[ + 'network_attachments' + ] = [instance_network_attachment_prototype_model] + instance_prototype_instance_by_image_instance_by_image_instance_by_network_attachment_model_json[ + 'primary_network_attachment' + ] = instance_network_attachment_prototype_model # Construct a model instance of InstancePrototypeInstanceByImageInstanceByImageInstanceByNetworkAttachment by calling from_dict on the json representation - instance_prototype_instance_by_image_instance_by_image_instance_by_network_attachment_model = InstancePrototypeInstanceByImageInstanceByImageInstanceByNetworkAttachment.from_dict(instance_prototype_instance_by_image_instance_by_image_instance_by_network_attachment_model_json) + instance_prototype_instance_by_image_instance_by_image_instance_by_network_attachment_model = ( + InstancePrototypeInstanceByImageInstanceByImageInstanceByNetworkAttachment.from_dict( + instance_prototype_instance_by_image_instance_by_image_instance_by_network_attachment_model_json + ) + ) assert instance_prototype_instance_by_image_instance_by_image_instance_by_network_attachment_model != False # Construct a model instance of InstancePrototypeInstanceByImageInstanceByImageInstanceByNetworkAttachment by calling from_dict on the json representation - instance_prototype_instance_by_image_instance_by_image_instance_by_network_attachment_model_dict = InstancePrototypeInstanceByImageInstanceByImageInstanceByNetworkAttachment.from_dict(instance_prototype_instance_by_image_instance_by_image_instance_by_network_attachment_model_json).__dict__ - instance_prototype_instance_by_image_instance_by_image_instance_by_network_attachment_model2 = InstancePrototypeInstanceByImageInstanceByImageInstanceByNetworkAttachment(**instance_prototype_instance_by_image_instance_by_image_instance_by_network_attachment_model_dict) + instance_prototype_instance_by_image_instance_by_image_instance_by_network_attachment_model_dict = ( + InstancePrototypeInstanceByImageInstanceByImageInstanceByNetworkAttachment.from_dict( + instance_prototype_instance_by_image_instance_by_image_instance_by_network_attachment_model_json + ).__dict__ + ) + instance_prototype_instance_by_image_instance_by_image_instance_by_network_attachment_model2 = ( + InstancePrototypeInstanceByImageInstanceByImageInstanceByNetworkAttachment( + **instance_prototype_instance_by_image_instance_by_image_instance_by_network_attachment_model_dict + ) + ) # Verify the model instances are equivalent - assert instance_prototype_instance_by_image_instance_by_image_instance_by_network_attachment_model == instance_prototype_instance_by_image_instance_by_image_instance_by_network_attachment_model2 + assert ( + instance_prototype_instance_by_image_instance_by_image_instance_by_network_attachment_model + == instance_prototype_instance_by_image_instance_by_image_instance_by_network_attachment_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_prototype_instance_by_image_instance_by_image_instance_by_network_attachment_model_json2 = instance_prototype_instance_by_image_instance_by_image_instance_by_network_attachment_model.to_dict() - assert instance_prototype_instance_by_image_instance_by_image_instance_by_network_attachment_model_json2 == instance_prototype_instance_by_image_instance_by_image_instance_by_network_attachment_model_json + instance_prototype_instance_by_image_instance_by_image_instance_by_network_attachment_model_json2 = ( + instance_prototype_instance_by_image_instance_by_image_instance_by_network_attachment_model.to_dict() + ) + assert ( + instance_prototype_instance_by_image_instance_by_image_instance_by_network_attachment_model_json2 + == instance_prototype_instance_by_image_instance_by_image_instance_by_network_attachment_model_json + ) class TestModel_InstancePrototypeInstanceByImageInstanceByImageInstanceByNetworkInterface: @@ -97425,7 +110975,9 @@ def test_instance_prototype_instance_by_image_instance_by_image_instance_by_netw instance_availability_policy_prototype_model = {} # InstanceAvailabilityPolicyPrototype instance_availability_policy_prototype_model['host_failure'] = 'restart' - cluster_network_interface_primary_ip_prototype_model = {} # ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPPrototypeClusterNetworkInterfacePrimaryIPContext + cluster_network_interface_primary_ip_prototype_model = ( + {} + ) # ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPPrototypeClusterNetworkInterfacePrimaryIPContext cluster_network_interface_primary_ip_prototype_model['address'] = '10.0.0.5' cluster_network_interface_primary_ip_prototype_model['auto_delete'] = False cluster_network_interface_primary_ip_prototype_model['name'] = 'my-cluster-network-subnet-reserved-ip' @@ -97433,14 +110985,26 @@ def test_instance_prototype_instance_by_image_instance_by_image_instance_by_netw cluster_network_subnet_identity_model = {} # ClusterNetworkSubnetIdentityById cluster_network_subnet_identity_model['id'] = '0717-7931845c-65c4-4b0a-80cd-7d9c1a6d7930' - instance_cluster_network_attachment_prototype_cluster_network_interface_model = {} # InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment + instance_cluster_network_attachment_prototype_cluster_network_interface_model = ( + {} + ) # InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment instance_cluster_network_attachment_prototype_cluster_network_interface_model['auto_delete'] = False - instance_cluster_network_attachment_prototype_cluster_network_interface_model['name'] = 'my-cluster-network-interface' - instance_cluster_network_attachment_prototype_cluster_network_interface_model['primary_ip'] = cluster_network_interface_primary_ip_prototype_model - instance_cluster_network_attachment_prototype_cluster_network_interface_model['subnet'] = cluster_network_subnet_identity_model + instance_cluster_network_attachment_prototype_cluster_network_interface_model['name'] = ( + 'my-cluster-network-interface' + ) + instance_cluster_network_attachment_prototype_cluster_network_interface_model['primary_ip'] = ( + cluster_network_interface_primary_ip_prototype_model + ) + instance_cluster_network_attachment_prototype_cluster_network_interface_model['subnet'] = ( + cluster_network_subnet_identity_model + ) - instance_cluster_network_attachment_prototype_instance_context_model = {} # InstanceClusterNetworkAttachmentPrototypeInstanceContext - instance_cluster_network_attachment_prototype_instance_context_model['cluster_network_interface'] = instance_cluster_network_attachment_prototype_cluster_network_interface_model + instance_cluster_network_attachment_prototype_instance_context_model = ( + {} + ) # InstanceClusterNetworkAttachmentPrototypeInstanceContext + instance_cluster_network_attachment_prototype_instance_context_model['cluster_network_interface'] = ( + instance_cluster_network_attachment_prototype_cluster_network_interface_model + ) instance_cluster_network_attachment_prototype_instance_context_model['name'] = 'my-instance-network-attachment' trusted_profile_identity_model = {} # TrustedProfileIdentityById @@ -97458,7 +111022,9 @@ def test_instance_prototype_instance_by_image_instance_by_image_instance_by_netw instance_metadata_service_prototype_model['protocol'] = 'https' instance_metadata_service_prototype_model['response_hop_limit'] = 2 - instance_placement_target_prototype_model = {} # InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityById + instance_placement_target_prototype_model = ( + {} + ) # InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityById instance_placement_target_prototype_model['id'] = '0717-1e09281b-f177-46fb-baf1-bc152b2e391a' instance_profile_identity_model = {} # InstanceProfileIdentityByName @@ -97486,7 +111052,9 @@ def test_instance_prototype_instance_by_image_instance_by_image_instance_by_netw vpc_identity_model['id'] = 'r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' encryption_key_identity_model = {} # EncryptionKeyIdentityByCRN - encryption_key_identity_model['crn'] = 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + encryption_key_identity_model['crn'] = ( + 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + ) volume_profile_identity_model = {} # VolumeProfileIdentityByName volume_profile_identity_model['name'] = 'general-purpose' @@ -97500,10 +111068,14 @@ def test_instance_prototype_instance_by_image_instance_by_image_instance_by_netw volume_prototype_instance_by_image_context_model['resource_group'] = resource_group_identity_model volume_prototype_instance_by_image_context_model['user_tags'] = [] - volume_attachment_prototype_instance_by_image_context_model = {} # VolumeAttachmentPrototypeInstanceByImageContext + volume_attachment_prototype_instance_by_image_context_model = ( + {} + ) # VolumeAttachmentPrototypeInstanceByImageContext volume_attachment_prototype_instance_by_image_context_model['delete_volume_on_instance_delete'] = True volume_attachment_prototype_instance_by_image_context_model['name'] = 'my-volume-attachment' - volume_attachment_prototype_instance_by_image_context_model['volume'] = volume_prototype_instance_by_image_context_model + volume_attachment_prototype_instance_by_image_context_model['volume'] = ( + volume_prototype_instance_by_image_context_model + ) image_identity_model = {} # ImageIdentityById image_identity_model['id'] = 'r006-02c73baf-9abb-493d-9e41-d0f1866f4051' @@ -97511,7 +111083,9 @@ def test_instance_prototype_instance_by_image_instance_by_image_instance_by_netw zone_identity_model = {} # ZoneIdentityByName zone_identity_model['name'] = 'us-south-1' - network_interface_ip_prototype_model = {} # NetworkInterfaceIPPrototypeReservedIPPrototypeNetworkInterfaceContext + network_interface_ip_prototype_model = ( + {} + ) # NetworkInterfaceIPPrototypeReservedIPPrototypeNetworkInterfaceContext network_interface_ip_prototype_model['address'] = '10.0.0.5' network_interface_ip_prototype_model['auto_delete'] = False network_interface_ip_prototype_model['name'] = 'my-reserved-ip' @@ -97531,42 +111105,104 @@ def test_instance_prototype_instance_by_image_instance_by_image_instance_by_netw # Construct a json representation of a InstancePrototypeInstanceByImageInstanceByImageInstanceByNetworkInterface model instance_prototype_instance_by_image_instance_by_image_instance_by_network_interface_model_json = {} - instance_prototype_instance_by_image_instance_by_image_instance_by_network_interface_model_json['availability_policy'] = instance_availability_policy_prototype_model - instance_prototype_instance_by_image_instance_by_image_instance_by_network_interface_model_json['cluster_network_attachments'] = [instance_cluster_network_attachment_prototype_instance_context_model] - instance_prototype_instance_by_image_instance_by_image_instance_by_network_interface_model_json['confidential_compute_mode'] = 'disabled' - instance_prototype_instance_by_image_instance_by_image_instance_by_network_interface_model_json['default_trusted_profile'] = instance_default_trusted_profile_prototype_model - instance_prototype_instance_by_image_instance_by_image_instance_by_network_interface_model_json['enable_secure_boot'] = True - instance_prototype_instance_by_image_instance_by_image_instance_by_network_interface_model_json['keys'] = [key_identity_model] - instance_prototype_instance_by_image_instance_by_image_instance_by_network_interface_model_json['metadata_service'] = instance_metadata_service_prototype_model - instance_prototype_instance_by_image_instance_by_image_instance_by_network_interface_model_json['name'] = 'my-instance' - instance_prototype_instance_by_image_instance_by_image_instance_by_network_interface_model_json['placement_target'] = instance_placement_target_prototype_model - instance_prototype_instance_by_image_instance_by_image_instance_by_network_interface_model_json['profile'] = instance_profile_identity_model - instance_prototype_instance_by_image_instance_by_image_instance_by_network_interface_model_json['reservation_affinity'] = instance_reservation_affinity_prototype_model - instance_prototype_instance_by_image_instance_by_image_instance_by_network_interface_model_json['resource_group'] = resource_group_identity_model - instance_prototype_instance_by_image_instance_by_image_instance_by_network_interface_model_json['total_volume_bandwidth'] = 500 - instance_prototype_instance_by_image_instance_by_image_instance_by_network_interface_model_json['user_data'] = 'testString' - instance_prototype_instance_by_image_instance_by_image_instance_by_network_interface_model_json['volume_attachments'] = [volume_attachment_prototype_model] - instance_prototype_instance_by_image_instance_by_image_instance_by_network_interface_model_json['vpc'] = vpc_identity_model - instance_prototype_instance_by_image_instance_by_image_instance_by_network_interface_model_json['boot_volume_attachment'] = volume_attachment_prototype_instance_by_image_context_model - instance_prototype_instance_by_image_instance_by_image_instance_by_network_interface_model_json['image'] = image_identity_model - instance_prototype_instance_by_image_instance_by_image_instance_by_network_interface_model_json['zone'] = zone_identity_model - instance_prototype_instance_by_image_instance_by_image_instance_by_network_interface_model_json['network_interfaces'] = [network_interface_prototype_model] - instance_prototype_instance_by_image_instance_by_image_instance_by_network_interface_model_json['primary_network_interface'] = network_interface_prototype_model + instance_prototype_instance_by_image_instance_by_image_instance_by_network_interface_model_json[ + 'availability_policy' + ] = instance_availability_policy_prototype_model + instance_prototype_instance_by_image_instance_by_image_instance_by_network_interface_model_json[ + 'cluster_network_attachments' + ] = [instance_cluster_network_attachment_prototype_instance_context_model] + instance_prototype_instance_by_image_instance_by_image_instance_by_network_interface_model_json[ + 'confidential_compute_mode' + ] = 'disabled' + instance_prototype_instance_by_image_instance_by_image_instance_by_network_interface_model_json[ + 'default_trusted_profile' + ] = instance_default_trusted_profile_prototype_model + instance_prototype_instance_by_image_instance_by_image_instance_by_network_interface_model_json[ + 'enable_secure_boot' + ] = True + instance_prototype_instance_by_image_instance_by_image_instance_by_network_interface_model_json['keys'] = [ + key_identity_model + ] + instance_prototype_instance_by_image_instance_by_image_instance_by_network_interface_model_json[ + 'metadata_service' + ] = instance_metadata_service_prototype_model + instance_prototype_instance_by_image_instance_by_image_instance_by_network_interface_model_json['name'] = ( + 'my-instance' + ) + instance_prototype_instance_by_image_instance_by_image_instance_by_network_interface_model_json[ + 'placement_target' + ] = instance_placement_target_prototype_model + instance_prototype_instance_by_image_instance_by_image_instance_by_network_interface_model_json['profile'] = ( + instance_profile_identity_model + ) + instance_prototype_instance_by_image_instance_by_image_instance_by_network_interface_model_json[ + 'reservation_affinity' + ] = instance_reservation_affinity_prototype_model + instance_prototype_instance_by_image_instance_by_image_instance_by_network_interface_model_json[ + 'resource_group' + ] = resource_group_identity_model + instance_prototype_instance_by_image_instance_by_image_instance_by_network_interface_model_json[ + 'total_volume_bandwidth' + ] = 500 + instance_prototype_instance_by_image_instance_by_image_instance_by_network_interface_model_json['user_data'] = ( + 'testString' + ) + instance_prototype_instance_by_image_instance_by_image_instance_by_network_interface_model_json[ + 'volume_attachments' + ] = [volume_attachment_prototype_model] + instance_prototype_instance_by_image_instance_by_image_instance_by_network_interface_model_json['vpc'] = ( + vpc_identity_model + ) + instance_prototype_instance_by_image_instance_by_image_instance_by_network_interface_model_json[ + 'boot_volume_attachment' + ] = volume_attachment_prototype_instance_by_image_context_model + instance_prototype_instance_by_image_instance_by_image_instance_by_network_interface_model_json['image'] = ( + image_identity_model + ) + instance_prototype_instance_by_image_instance_by_image_instance_by_network_interface_model_json['zone'] = ( + zone_identity_model + ) + instance_prototype_instance_by_image_instance_by_image_instance_by_network_interface_model_json[ + 'network_interfaces' + ] = [network_interface_prototype_model] + instance_prototype_instance_by_image_instance_by_image_instance_by_network_interface_model_json[ + 'primary_network_interface' + ] = network_interface_prototype_model # Construct a model instance of InstancePrototypeInstanceByImageInstanceByImageInstanceByNetworkInterface by calling from_dict on the json representation - instance_prototype_instance_by_image_instance_by_image_instance_by_network_interface_model = InstancePrototypeInstanceByImageInstanceByImageInstanceByNetworkInterface.from_dict(instance_prototype_instance_by_image_instance_by_image_instance_by_network_interface_model_json) + instance_prototype_instance_by_image_instance_by_image_instance_by_network_interface_model = ( + InstancePrototypeInstanceByImageInstanceByImageInstanceByNetworkInterface.from_dict( + instance_prototype_instance_by_image_instance_by_image_instance_by_network_interface_model_json + ) + ) assert instance_prototype_instance_by_image_instance_by_image_instance_by_network_interface_model != False # Construct a model instance of InstancePrototypeInstanceByImageInstanceByImageInstanceByNetworkInterface by calling from_dict on the json representation - instance_prototype_instance_by_image_instance_by_image_instance_by_network_interface_model_dict = InstancePrototypeInstanceByImageInstanceByImageInstanceByNetworkInterface.from_dict(instance_prototype_instance_by_image_instance_by_image_instance_by_network_interface_model_json).__dict__ - instance_prototype_instance_by_image_instance_by_image_instance_by_network_interface_model2 = InstancePrototypeInstanceByImageInstanceByImageInstanceByNetworkInterface(**instance_prototype_instance_by_image_instance_by_image_instance_by_network_interface_model_dict) + instance_prototype_instance_by_image_instance_by_image_instance_by_network_interface_model_dict = ( + InstancePrototypeInstanceByImageInstanceByImageInstanceByNetworkInterface.from_dict( + instance_prototype_instance_by_image_instance_by_image_instance_by_network_interface_model_json + ).__dict__ + ) + instance_prototype_instance_by_image_instance_by_image_instance_by_network_interface_model2 = ( + InstancePrototypeInstanceByImageInstanceByImageInstanceByNetworkInterface( + **instance_prototype_instance_by_image_instance_by_image_instance_by_network_interface_model_dict + ) + ) # Verify the model instances are equivalent - assert instance_prototype_instance_by_image_instance_by_image_instance_by_network_interface_model == instance_prototype_instance_by_image_instance_by_image_instance_by_network_interface_model2 + assert ( + instance_prototype_instance_by_image_instance_by_image_instance_by_network_interface_model + == instance_prototype_instance_by_image_instance_by_image_instance_by_network_interface_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_prototype_instance_by_image_instance_by_image_instance_by_network_interface_model_json2 = instance_prototype_instance_by_image_instance_by_image_instance_by_network_interface_model.to_dict() - assert instance_prototype_instance_by_image_instance_by_image_instance_by_network_interface_model_json2 == instance_prototype_instance_by_image_instance_by_image_instance_by_network_interface_model_json + instance_prototype_instance_by_image_instance_by_image_instance_by_network_interface_model_json2 = ( + instance_prototype_instance_by_image_instance_by_image_instance_by_network_interface_model.to_dict() + ) + assert ( + instance_prototype_instance_by_image_instance_by_image_instance_by_network_interface_model_json2 + == instance_prototype_instance_by_image_instance_by_image_instance_by_network_interface_model_json + ) class TestModel_InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment: @@ -97574,7 +111210,9 @@ class TestModel_InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapsho Test Class for InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment """ - def test_instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_attachment_serialization(self): + def test_instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_attachment_serialization( + self, + ): """ Test serialization/deserialization for InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment """ @@ -97584,7 +111222,9 @@ def test_instance_prototype_instance_by_source_snapshot_instance_by_source_snaps instance_availability_policy_prototype_model = {} # InstanceAvailabilityPolicyPrototype instance_availability_policy_prototype_model['host_failure'] = 'restart' - cluster_network_interface_primary_ip_prototype_model = {} # ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPPrototypeClusterNetworkInterfacePrimaryIPContext + cluster_network_interface_primary_ip_prototype_model = ( + {} + ) # ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPPrototypeClusterNetworkInterfacePrimaryIPContext cluster_network_interface_primary_ip_prototype_model['address'] = '10.0.0.5' cluster_network_interface_primary_ip_prototype_model['auto_delete'] = False cluster_network_interface_primary_ip_prototype_model['name'] = 'my-cluster-network-subnet-reserved-ip' @@ -97592,14 +111232,26 @@ def test_instance_prototype_instance_by_source_snapshot_instance_by_source_snaps cluster_network_subnet_identity_model = {} # ClusterNetworkSubnetIdentityById cluster_network_subnet_identity_model['id'] = '0717-7931845c-65c4-4b0a-80cd-7d9c1a6d7930' - instance_cluster_network_attachment_prototype_cluster_network_interface_model = {} # InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment + instance_cluster_network_attachment_prototype_cluster_network_interface_model = ( + {} + ) # InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment instance_cluster_network_attachment_prototype_cluster_network_interface_model['auto_delete'] = False - instance_cluster_network_attachment_prototype_cluster_network_interface_model['name'] = 'my-cluster-network-interface' - instance_cluster_network_attachment_prototype_cluster_network_interface_model['primary_ip'] = cluster_network_interface_primary_ip_prototype_model - instance_cluster_network_attachment_prototype_cluster_network_interface_model['subnet'] = cluster_network_subnet_identity_model + instance_cluster_network_attachment_prototype_cluster_network_interface_model['name'] = ( + 'my-cluster-network-interface' + ) + instance_cluster_network_attachment_prototype_cluster_network_interface_model['primary_ip'] = ( + cluster_network_interface_primary_ip_prototype_model + ) + instance_cluster_network_attachment_prototype_cluster_network_interface_model['subnet'] = ( + cluster_network_subnet_identity_model + ) - instance_cluster_network_attachment_prototype_instance_context_model = {} # InstanceClusterNetworkAttachmentPrototypeInstanceContext - instance_cluster_network_attachment_prototype_instance_context_model['cluster_network_interface'] = instance_cluster_network_attachment_prototype_cluster_network_interface_model + instance_cluster_network_attachment_prototype_instance_context_model = ( + {} + ) # InstanceClusterNetworkAttachmentPrototypeInstanceContext + instance_cluster_network_attachment_prototype_instance_context_model['cluster_network_interface'] = ( + instance_cluster_network_attachment_prototype_cluster_network_interface_model + ) instance_cluster_network_attachment_prototype_instance_context_model['name'] = 'my-instance-network-attachment' trusted_profile_identity_model = {} # TrustedProfileIdentityById @@ -97617,7 +111269,9 @@ def test_instance_prototype_instance_by_source_snapshot_instance_by_source_snaps instance_metadata_service_prototype_model['protocol'] = 'https' instance_metadata_service_prototype_model['response_hop_limit'] = 2 - instance_placement_target_prototype_model = {} # InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityById + instance_placement_target_prototype_model = ( + {} + ) # InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityById instance_placement_target_prototype_model['id'] = '0717-1e09281b-f177-46fb-baf1-bc152b2e391a' instance_profile_identity_model = {} # InstanceProfileIdentityByName @@ -97645,7 +111299,9 @@ def test_instance_prototype_instance_by_source_snapshot_instance_by_source_snaps vpc_identity_model['id'] = 'r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' encryption_key_identity_model = {} # EncryptionKeyIdentityByCRN - encryption_key_identity_model['crn'] = 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + encryption_key_identity_model['crn'] = ( + 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + ) volume_profile_identity_model = {} # VolumeProfileIdentityByName volume_profile_identity_model['name'] = 'general-purpose' @@ -97653,7 +111309,9 @@ def test_instance_prototype_instance_by_source_snapshot_instance_by_source_snaps snapshot_identity_model = {} # SnapshotIdentityById snapshot_identity_model['id'] = 'r134-f6bfa329-0e36-433f-a3bb-0df632e79263' - volume_prototype_instance_by_source_snapshot_context_model = {} # VolumePrototypeInstanceBySourceSnapshotContext + volume_prototype_instance_by_source_snapshot_context_model = ( + {} + ) # VolumePrototypeInstanceBySourceSnapshotContext volume_prototype_instance_by_source_snapshot_context_model['capacity'] = 100 volume_prototype_instance_by_source_snapshot_context_model['encryption_key'] = encryption_key_identity_model volume_prototype_instance_by_source_snapshot_context_model['iops'] = 10000 @@ -97663,20 +111321,28 @@ def test_instance_prototype_instance_by_source_snapshot_instance_by_source_snaps volume_prototype_instance_by_source_snapshot_context_model['source_snapshot'] = snapshot_identity_model volume_prototype_instance_by_source_snapshot_context_model['user_tags'] = [] - volume_attachment_prototype_instance_by_source_snapshot_context_model = {} # VolumeAttachmentPrototypeInstanceBySourceSnapshotContext + volume_attachment_prototype_instance_by_source_snapshot_context_model = ( + {} + ) # VolumeAttachmentPrototypeInstanceBySourceSnapshotContext volume_attachment_prototype_instance_by_source_snapshot_context_model['delete_volume_on_instance_delete'] = True volume_attachment_prototype_instance_by_source_snapshot_context_model['name'] = 'my-volume-attachment' - volume_attachment_prototype_instance_by_source_snapshot_context_model['volume'] = volume_prototype_instance_by_source_snapshot_context_model + volume_attachment_prototype_instance_by_source_snapshot_context_model['volume'] = ( + volume_prototype_instance_by_source_snapshot_context_model + ) zone_identity_model = {} # ZoneIdentityByName zone_identity_model['name'] = 'us-south-1' - virtual_network_interface_ip_prototype_model = {} # VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext + virtual_network_interface_ip_prototype_model = ( + {} + ) # VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext virtual_network_interface_ip_prototype_model['address'] = '10.0.0.5' virtual_network_interface_ip_prototype_model['auto_delete'] = False virtual_network_interface_ip_prototype_model['name'] = 'my-reserved-ip' - virtual_network_interface_primary_ip_prototype_model = {} # VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext + virtual_network_interface_primary_ip_prototype_model = ( + {} + ) # VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext virtual_network_interface_primary_ip_prototype_model['address'] = '10.0.0.5' virtual_network_interface_primary_ip_prototype_model['auto_delete'] = False virtual_network_interface_primary_ip_prototype_model['name'] = 'my-reserved-ip' @@ -97687,59 +111353,138 @@ def test_instance_prototype_instance_by_source_snapshot_instance_by_source_snaps subnet_identity_model = {} # SubnetIdentityById subnet_identity_model['id'] = '7ec86020-1c6e-4889-b3f0-a15f2e50f87e' - instance_network_attachment_prototype_virtual_network_interface_model = {} # InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeInstanceNetworkAttachmentContext + instance_network_attachment_prototype_virtual_network_interface_model = ( + {} + ) # InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeInstanceNetworkAttachmentContext instance_network_attachment_prototype_virtual_network_interface_model['allow_ip_spoofing'] = True instance_network_attachment_prototype_virtual_network_interface_model['auto_delete'] = False instance_network_attachment_prototype_virtual_network_interface_model['enable_infrastructure_nat'] = True - instance_network_attachment_prototype_virtual_network_interface_model['ips'] = [virtual_network_interface_ip_prototype_model] + instance_network_attachment_prototype_virtual_network_interface_model['ips'] = [ + virtual_network_interface_ip_prototype_model + ] instance_network_attachment_prototype_virtual_network_interface_model['name'] = 'my-virtual-network-interface' - instance_network_attachment_prototype_virtual_network_interface_model['primary_ip'] = virtual_network_interface_primary_ip_prototype_model + instance_network_attachment_prototype_virtual_network_interface_model['primary_ip'] = ( + virtual_network_interface_primary_ip_prototype_model + ) instance_network_attachment_prototype_virtual_network_interface_model['protocol_state_filtering_mode'] = 'auto' - instance_network_attachment_prototype_virtual_network_interface_model['resource_group'] = resource_group_identity_model - instance_network_attachment_prototype_virtual_network_interface_model['security_groups'] = [security_group_identity_model] + instance_network_attachment_prototype_virtual_network_interface_model['resource_group'] = ( + resource_group_identity_model + ) + instance_network_attachment_prototype_virtual_network_interface_model['security_groups'] = [ + security_group_identity_model + ] instance_network_attachment_prototype_virtual_network_interface_model['subnet'] = subnet_identity_model instance_network_attachment_prototype_model = {} # InstanceNetworkAttachmentPrototype instance_network_attachment_prototype_model['name'] = 'my-instance-network-attachment' - instance_network_attachment_prototype_model['virtual_network_interface'] = instance_network_attachment_prototype_virtual_network_interface_model + instance_network_attachment_prototype_model['virtual_network_interface'] = ( + instance_network_attachment_prototype_virtual_network_interface_model + ) # Construct a json representation of a InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment model - instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_attachment_model_json = {} - instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_attachment_model_json['availability_policy'] = instance_availability_policy_prototype_model - instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_attachment_model_json['cluster_network_attachments'] = [instance_cluster_network_attachment_prototype_instance_context_model] - instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_attachment_model_json['confidential_compute_mode'] = 'disabled' - instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_attachment_model_json['default_trusted_profile'] = instance_default_trusted_profile_prototype_model - instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_attachment_model_json['enable_secure_boot'] = True - instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_attachment_model_json['keys'] = [key_identity_model] - instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_attachment_model_json['metadata_service'] = instance_metadata_service_prototype_model - instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_attachment_model_json['name'] = 'my-instance' - instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_attachment_model_json['placement_target'] = instance_placement_target_prototype_model - instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_attachment_model_json['profile'] = instance_profile_identity_model - instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_attachment_model_json['reservation_affinity'] = instance_reservation_affinity_prototype_model - instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_attachment_model_json['resource_group'] = resource_group_identity_model - instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_attachment_model_json['total_volume_bandwidth'] = 500 - instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_attachment_model_json['user_data'] = 'testString' - instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_attachment_model_json['volume_attachments'] = [volume_attachment_prototype_model] - instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_attachment_model_json['vpc'] = vpc_identity_model - instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_attachment_model_json['boot_volume_attachment'] = volume_attachment_prototype_instance_by_source_snapshot_context_model - instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_attachment_model_json['zone'] = zone_identity_model - instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_attachment_model_json['network_attachments'] = [instance_network_attachment_prototype_model] - instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_attachment_model_json['primary_network_attachment'] = instance_network_attachment_prototype_model + instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_attachment_model_json = ( + {} + ) + instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_attachment_model_json[ + 'availability_policy' + ] = instance_availability_policy_prototype_model + instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_attachment_model_json[ + 'cluster_network_attachments' + ] = [ + instance_cluster_network_attachment_prototype_instance_context_model + ] + instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_attachment_model_json[ + 'confidential_compute_mode' + ] = 'disabled' + instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_attachment_model_json[ + 'default_trusted_profile' + ] = instance_default_trusted_profile_prototype_model + instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_attachment_model_json[ + 'enable_secure_boot' + ] = True + instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_attachment_model_json[ + 'keys' + ] = [ + key_identity_model + ] + instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_attachment_model_json[ + 'metadata_service' + ] = instance_metadata_service_prototype_model + instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_attachment_model_json[ + 'name' + ] = 'my-instance' + instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_attachment_model_json[ + 'placement_target' + ] = instance_placement_target_prototype_model + instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_attachment_model_json[ + 'profile' + ] = instance_profile_identity_model + instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_attachment_model_json[ + 'reservation_affinity' + ] = instance_reservation_affinity_prototype_model + instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_attachment_model_json[ + 'resource_group' + ] = resource_group_identity_model + instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_attachment_model_json[ + 'total_volume_bandwidth' + ] = 500 + instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_attachment_model_json[ + 'user_data' + ] = 'testString' + instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_attachment_model_json[ + 'volume_attachments' + ] = [ + volume_attachment_prototype_model + ] + instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_attachment_model_json[ + 'vpc' + ] = vpc_identity_model + instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_attachment_model_json[ + 'boot_volume_attachment' + ] = volume_attachment_prototype_instance_by_source_snapshot_context_model + instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_attachment_model_json[ + 'zone' + ] = zone_identity_model + instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_attachment_model_json[ + 'network_attachments' + ] = [ + instance_network_attachment_prototype_model + ] + instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_attachment_model_json[ + 'primary_network_attachment' + ] = instance_network_attachment_prototype_model # Construct a model instance of InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment by calling from_dict on the json representation - instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_attachment_model = InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment.from_dict(instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_attachment_model_json) - assert instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_attachment_model != False + instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_attachment_model = InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment.from_dict( + instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_attachment_model_json + ) + assert ( + instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_attachment_model + != False + ) # Construct a model instance of InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment by calling from_dict on the json representation - instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_attachment_model_dict = InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment.from_dict(instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_attachment_model_json).__dict__ - instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_attachment_model2 = InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment(**instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_attachment_model_dict) + instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_attachment_model_dict = InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment.from_dict( + instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_attachment_model_json + ).__dict__ + instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_attachment_model2 = InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment( + **instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_attachment_model_dict + ) # Verify the model instances are equivalent - assert instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_attachment_model == instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_attachment_model2 + assert ( + instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_attachment_model + == instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_attachment_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_attachment_model_json2 = instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_attachment_model.to_dict() - assert instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_attachment_model_json2 == instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_attachment_model_json + instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_attachment_model_json2 = ( + instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_attachment_model.to_dict() + ) + assert ( + instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_attachment_model_json2 + == instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_attachment_model_json + ) class TestModel_InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkInterface: @@ -97747,7 +111492,9 @@ class TestModel_InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapsho Test Class for InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkInterface """ - def test_instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_interface_serialization(self): + def test_instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_interface_serialization( + self, + ): """ Test serialization/deserialization for InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkInterface """ @@ -97757,7 +111504,9 @@ def test_instance_prototype_instance_by_source_snapshot_instance_by_source_snaps instance_availability_policy_prototype_model = {} # InstanceAvailabilityPolicyPrototype instance_availability_policy_prototype_model['host_failure'] = 'restart' - cluster_network_interface_primary_ip_prototype_model = {} # ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPPrototypeClusterNetworkInterfacePrimaryIPContext + cluster_network_interface_primary_ip_prototype_model = ( + {} + ) # ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPPrototypeClusterNetworkInterfacePrimaryIPContext cluster_network_interface_primary_ip_prototype_model['address'] = '10.0.0.5' cluster_network_interface_primary_ip_prototype_model['auto_delete'] = False cluster_network_interface_primary_ip_prototype_model['name'] = 'my-cluster-network-subnet-reserved-ip' @@ -97765,14 +111514,26 @@ def test_instance_prototype_instance_by_source_snapshot_instance_by_source_snaps cluster_network_subnet_identity_model = {} # ClusterNetworkSubnetIdentityById cluster_network_subnet_identity_model['id'] = '0717-7931845c-65c4-4b0a-80cd-7d9c1a6d7930' - instance_cluster_network_attachment_prototype_cluster_network_interface_model = {} # InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment + instance_cluster_network_attachment_prototype_cluster_network_interface_model = ( + {} + ) # InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment instance_cluster_network_attachment_prototype_cluster_network_interface_model['auto_delete'] = False - instance_cluster_network_attachment_prototype_cluster_network_interface_model['name'] = 'my-cluster-network-interface' - instance_cluster_network_attachment_prototype_cluster_network_interface_model['primary_ip'] = cluster_network_interface_primary_ip_prototype_model - instance_cluster_network_attachment_prototype_cluster_network_interface_model['subnet'] = cluster_network_subnet_identity_model + instance_cluster_network_attachment_prototype_cluster_network_interface_model['name'] = ( + 'my-cluster-network-interface' + ) + instance_cluster_network_attachment_prototype_cluster_network_interface_model['primary_ip'] = ( + cluster_network_interface_primary_ip_prototype_model + ) + instance_cluster_network_attachment_prototype_cluster_network_interface_model['subnet'] = ( + cluster_network_subnet_identity_model + ) - instance_cluster_network_attachment_prototype_instance_context_model = {} # InstanceClusterNetworkAttachmentPrototypeInstanceContext - instance_cluster_network_attachment_prototype_instance_context_model['cluster_network_interface'] = instance_cluster_network_attachment_prototype_cluster_network_interface_model + instance_cluster_network_attachment_prototype_instance_context_model = ( + {} + ) # InstanceClusterNetworkAttachmentPrototypeInstanceContext + instance_cluster_network_attachment_prototype_instance_context_model['cluster_network_interface'] = ( + instance_cluster_network_attachment_prototype_cluster_network_interface_model + ) instance_cluster_network_attachment_prototype_instance_context_model['name'] = 'my-instance-network-attachment' trusted_profile_identity_model = {} # TrustedProfileIdentityById @@ -97790,7 +111551,9 @@ def test_instance_prototype_instance_by_source_snapshot_instance_by_source_snaps instance_metadata_service_prototype_model['protocol'] = 'https' instance_metadata_service_prototype_model['response_hop_limit'] = 2 - instance_placement_target_prototype_model = {} # InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityById + instance_placement_target_prototype_model = ( + {} + ) # InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityById instance_placement_target_prototype_model['id'] = '0717-1e09281b-f177-46fb-baf1-bc152b2e391a' instance_profile_identity_model = {} # InstanceProfileIdentityByName @@ -97818,7 +111581,9 @@ def test_instance_prototype_instance_by_source_snapshot_instance_by_source_snaps vpc_identity_model['id'] = 'r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' encryption_key_identity_model = {} # EncryptionKeyIdentityByCRN - encryption_key_identity_model['crn'] = 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + encryption_key_identity_model['crn'] = ( + 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + ) volume_profile_identity_model = {} # VolumeProfileIdentityByName volume_profile_identity_model['name'] = 'general-purpose' @@ -97826,7 +111591,9 @@ def test_instance_prototype_instance_by_source_snapshot_instance_by_source_snaps snapshot_identity_model = {} # SnapshotIdentityById snapshot_identity_model['id'] = 'r134-f6bfa329-0e36-433f-a3bb-0df632e79263' - volume_prototype_instance_by_source_snapshot_context_model = {} # VolumePrototypeInstanceBySourceSnapshotContext + volume_prototype_instance_by_source_snapshot_context_model = ( + {} + ) # VolumePrototypeInstanceBySourceSnapshotContext volume_prototype_instance_by_source_snapshot_context_model['capacity'] = 100 volume_prototype_instance_by_source_snapshot_context_model['encryption_key'] = encryption_key_identity_model volume_prototype_instance_by_source_snapshot_context_model['iops'] = 10000 @@ -97836,15 +111603,21 @@ def test_instance_prototype_instance_by_source_snapshot_instance_by_source_snaps volume_prototype_instance_by_source_snapshot_context_model['source_snapshot'] = snapshot_identity_model volume_prototype_instance_by_source_snapshot_context_model['user_tags'] = [] - volume_attachment_prototype_instance_by_source_snapshot_context_model = {} # VolumeAttachmentPrototypeInstanceBySourceSnapshotContext + volume_attachment_prototype_instance_by_source_snapshot_context_model = ( + {} + ) # VolumeAttachmentPrototypeInstanceBySourceSnapshotContext volume_attachment_prototype_instance_by_source_snapshot_context_model['delete_volume_on_instance_delete'] = True volume_attachment_prototype_instance_by_source_snapshot_context_model['name'] = 'my-volume-attachment' - volume_attachment_prototype_instance_by_source_snapshot_context_model['volume'] = volume_prototype_instance_by_source_snapshot_context_model + volume_attachment_prototype_instance_by_source_snapshot_context_model['volume'] = ( + volume_prototype_instance_by_source_snapshot_context_model + ) zone_identity_model = {} # ZoneIdentityByName zone_identity_model['name'] = 'us-south-1' - network_interface_ip_prototype_model = {} # NetworkInterfaceIPPrototypeReservedIPPrototypeNetworkInterfaceContext + network_interface_ip_prototype_model = ( + {} + ) # NetworkInterfaceIPPrototypeReservedIPPrototypeNetworkInterfaceContext network_interface_ip_prototype_model['address'] = '10.0.0.5' network_interface_ip_prototype_model['auto_delete'] = False network_interface_ip_prototype_model['name'] = 'my-reserved-ip' @@ -97863,42 +111636,109 @@ def test_instance_prototype_instance_by_source_snapshot_instance_by_source_snaps network_interface_prototype_model['subnet'] = subnet_identity_model # Construct a json representation of a InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkInterface model - instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_interface_model_json = {} - instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_interface_model_json['availability_policy'] = instance_availability_policy_prototype_model - instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_interface_model_json['cluster_network_attachments'] = [instance_cluster_network_attachment_prototype_instance_context_model] - instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_interface_model_json['confidential_compute_mode'] = 'disabled' - instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_interface_model_json['default_trusted_profile'] = instance_default_trusted_profile_prototype_model - instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_interface_model_json['enable_secure_boot'] = True - instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_interface_model_json['keys'] = [key_identity_model] - instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_interface_model_json['metadata_service'] = instance_metadata_service_prototype_model - instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_interface_model_json['name'] = 'my-instance' - instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_interface_model_json['placement_target'] = instance_placement_target_prototype_model - instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_interface_model_json['profile'] = instance_profile_identity_model - instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_interface_model_json['reservation_affinity'] = instance_reservation_affinity_prototype_model - instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_interface_model_json['resource_group'] = resource_group_identity_model - instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_interface_model_json['total_volume_bandwidth'] = 500 - instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_interface_model_json['user_data'] = 'testString' - instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_interface_model_json['volume_attachments'] = [volume_attachment_prototype_model] - instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_interface_model_json['vpc'] = vpc_identity_model - instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_interface_model_json['boot_volume_attachment'] = volume_attachment_prototype_instance_by_source_snapshot_context_model - instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_interface_model_json['zone'] = zone_identity_model - instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_interface_model_json['network_interfaces'] = [network_interface_prototype_model] - instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_interface_model_json['primary_network_interface'] = network_interface_prototype_model + instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_interface_model_json = ( + {} + ) + instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_interface_model_json[ + 'availability_policy' + ] = instance_availability_policy_prototype_model + instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_interface_model_json[ + 'cluster_network_attachments' + ] = [ + instance_cluster_network_attachment_prototype_instance_context_model + ] + instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_interface_model_json[ + 'confidential_compute_mode' + ] = 'disabled' + instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_interface_model_json[ + 'default_trusted_profile' + ] = instance_default_trusted_profile_prototype_model + instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_interface_model_json[ + 'enable_secure_boot' + ] = True + instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_interface_model_json[ + 'keys' + ] = [ + key_identity_model + ] + instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_interface_model_json[ + 'metadata_service' + ] = instance_metadata_service_prototype_model + instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_interface_model_json[ + 'name' + ] = 'my-instance' + instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_interface_model_json[ + 'placement_target' + ] = instance_placement_target_prototype_model + instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_interface_model_json[ + 'profile' + ] = instance_profile_identity_model + instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_interface_model_json[ + 'reservation_affinity' + ] = instance_reservation_affinity_prototype_model + instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_interface_model_json[ + 'resource_group' + ] = resource_group_identity_model + instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_interface_model_json[ + 'total_volume_bandwidth' + ] = 500 + instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_interface_model_json[ + 'user_data' + ] = 'testString' + instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_interface_model_json[ + 'volume_attachments' + ] = [ + volume_attachment_prototype_model + ] + instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_interface_model_json[ + 'vpc' + ] = vpc_identity_model + instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_interface_model_json[ + 'boot_volume_attachment' + ] = volume_attachment_prototype_instance_by_source_snapshot_context_model + instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_interface_model_json[ + 'zone' + ] = zone_identity_model + instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_interface_model_json[ + 'network_interfaces' + ] = [ + network_interface_prototype_model + ] + instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_interface_model_json[ + 'primary_network_interface' + ] = network_interface_prototype_model # Construct a model instance of InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkInterface by calling from_dict on the json representation - instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_interface_model = InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkInterface.from_dict(instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_interface_model_json) - assert instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_interface_model != False + instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_interface_model = InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkInterface.from_dict( + instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_interface_model_json + ) + assert ( + instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_interface_model + != False + ) # Construct a model instance of InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkInterface by calling from_dict on the json representation - instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_interface_model_dict = InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkInterface.from_dict(instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_interface_model_json).__dict__ - instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_interface_model2 = InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkInterface(**instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_interface_model_dict) + instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_interface_model_dict = InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkInterface.from_dict( + instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_interface_model_json + ).__dict__ + instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_interface_model2 = InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkInterface( + **instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_interface_model_dict + ) # Verify the model instances are equivalent - assert instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_interface_model == instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_interface_model2 + assert ( + instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_interface_model + == instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_interface_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_interface_model_json2 = instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_interface_model.to_dict() - assert instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_interface_model_json2 == instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_interface_model_json + instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_interface_model_json2 = ( + instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_interface_model.to_dict() + ) + assert ( + instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_interface_model_json2 + == instance_prototype_instance_by_source_snapshot_instance_by_source_snapshot_instance_by_network_interface_model_json + ) class TestModel_InstancePrototypeInstanceByVolumeInstanceByVolumeInstanceByNetworkAttachment: @@ -97906,7 +111746,9 @@ class TestModel_InstancePrototypeInstanceByVolumeInstanceByVolumeInstanceByNetwo Test Class for InstancePrototypeInstanceByVolumeInstanceByVolumeInstanceByNetworkAttachment """ - def test_instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_attachment_serialization(self): + def test_instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_attachment_serialization( + self, + ): """ Test serialization/deserialization for InstancePrototypeInstanceByVolumeInstanceByVolumeInstanceByNetworkAttachment """ @@ -97916,7 +111758,9 @@ def test_instance_prototype_instance_by_volume_instance_by_volume_instance_by_ne instance_availability_policy_prototype_model = {} # InstanceAvailabilityPolicyPrototype instance_availability_policy_prototype_model['host_failure'] = 'restart' - cluster_network_interface_primary_ip_prototype_model = {} # ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPPrototypeClusterNetworkInterfacePrimaryIPContext + cluster_network_interface_primary_ip_prototype_model = ( + {} + ) # ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPPrototypeClusterNetworkInterfacePrimaryIPContext cluster_network_interface_primary_ip_prototype_model['address'] = '10.0.0.5' cluster_network_interface_primary_ip_prototype_model['auto_delete'] = False cluster_network_interface_primary_ip_prototype_model['name'] = 'my-cluster-network-subnet-reserved-ip' @@ -97924,14 +111768,26 @@ def test_instance_prototype_instance_by_volume_instance_by_volume_instance_by_ne cluster_network_subnet_identity_model = {} # ClusterNetworkSubnetIdentityById cluster_network_subnet_identity_model['id'] = '0717-7931845c-65c4-4b0a-80cd-7d9c1a6d7930' - instance_cluster_network_attachment_prototype_cluster_network_interface_model = {} # InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment + instance_cluster_network_attachment_prototype_cluster_network_interface_model = ( + {} + ) # InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment instance_cluster_network_attachment_prototype_cluster_network_interface_model['auto_delete'] = False - instance_cluster_network_attachment_prototype_cluster_network_interface_model['name'] = 'my-cluster-network-interface' - instance_cluster_network_attachment_prototype_cluster_network_interface_model['primary_ip'] = cluster_network_interface_primary_ip_prototype_model - instance_cluster_network_attachment_prototype_cluster_network_interface_model['subnet'] = cluster_network_subnet_identity_model + instance_cluster_network_attachment_prototype_cluster_network_interface_model['name'] = ( + 'my-cluster-network-interface' + ) + instance_cluster_network_attachment_prototype_cluster_network_interface_model['primary_ip'] = ( + cluster_network_interface_primary_ip_prototype_model + ) + instance_cluster_network_attachment_prototype_cluster_network_interface_model['subnet'] = ( + cluster_network_subnet_identity_model + ) - instance_cluster_network_attachment_prototype_instance_context_model = {} # InstanceClusterNetworkAttachmentPrototypeInstanceContext - instance_cluster_network_attachment_prototype_instance_context_model['cluster_network_interface'] = instance_cluster_network_attachment_prototype_cluster_network_interface_model + instance_cluster_network_attachment_prototype_instance_context_model = ( + {} + ) # InstanceClusterNetworkAttachmentPrototypeInstanceContext + instance_cluster_network_attachment_prototype_instance_context_model['cluster_network_interface'] = ( + instance_cluster_network_attachment_prototype_cluster_network_interface_model + ) instance_cluster_network_attachment_prototype_instance_context_model['name'] = 'my-instance-network-attachment' trusted_profile_identity_model = {} # TrustedProfileIdentityById @@ -97949,7 +111805,9 @@ def test_instance_prototype_instance_by_volume_instance_by_volume_instance_by_ne instance_metadata_service_prototype_model['protocol'] = 'https' instance_metadata_service_prototype_model['response_hop_limit'] = 2 - instance_placement_target_prototype_model = {} # InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityById + instance_placement_target_prototype_model = ( + {} + ) # InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityById instance_placement_target_prototype_model['id'] = '0717-1e09281b-f177-46fb-baf1-bc152b2e391a' instance_profile_identity_model = {} # InstanceProfileIdentityByName @@ -97979,7 +111837,9 @@ def test_instance_prototype_instance_by_volume_instance_by_volume_instance_by_ne volume_identity_model = {} # VolumeIdentityById volume_identity_model['id'] = 'r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' - volume_attachment_prototype_instance_by_volume_context_model = {} # VolumeAttachmentPrototypeInstanceByVolumeContext + volume_attachment_prototype_instance_by_volume_context_model = ( + {} + ) # VolumeAttachmentPrototypeInstanceByVolumeContext volume_attachment_prototype_instance_by_volume_context_model['delete_volume_on_instance_delete'] = False volume_attachment_prototype_instance_by_volume_context_model['name'] = 'my-volume-attachment' volume_attachment_prototype_instance_by_volume_context_model['volume'] = volume_identity_model @@ -97987,12 +111847,16 @@ def test_instance_prototype_instance_by_volume_instance_by_volume_instance_by_ne zone_identity_model = {} # ZoneIdentityByName zone_identity_model['name'] = 'us-south-1' - virtual_network_interface_ip_prototype_model = {} # VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext + virtual_network_interface_ip_prototype_model = ( + {} + ) # VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext virtual_network_interface_ip_prototype_model['address'] = '10.0.0.5' virtual_network_interface_ip_prototype_model['auto_delete'] = False virtual_network_interface_ip_prototype_model['name'] = 'my-reserved-ip' - virtual_network_interface_primary_ip_prototype_model = {} # VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext + virtual_network_interface_primary_ip_prototype_model = ( + {} + ) # VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext virtual_network_interface_primary_ip_prototype_model['address'] = '10.0.0.5' virtual_network_interface_primary_ip_prototype_model['auto_delete'] = False virtual_network_interface_primary_ip_prototype_model['name'] = 'my-reserved-ip' @@ -98003,59 +111867,131 @@ def test_instance_prototype_instance_by_volume_instance_by_volume_instance_by_ne subnet_identity_model = {} # SubnetIdentityById subnet_identity_model['id'] = '7ec86020-1c6e-4889-b3f0-a15f2e50f87e' - instance_network_attachment_prototype_virtual_network_interface_model = {} # InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeInstanceNetworkAttachmentContext + instance_network_attachment_prototype_virtual_network_interface_model = ( + {} + ) # InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeInstanceNetworkAttachmentContext instance_network_attachment_prototype_virtual_network_interface_model['allow_ip_spoofing'] = True instance_network_attachment_prototype_virtual_network_interface_model['auto_delete'] = False instance_network_attachment_prototype_virtual_network_interface_model['enable_infrastructure_nat'] = True - instance_network_attachment_prototype_virtual_network_interface_model['ips'] = [virtual_network_interface_ip_prototype_model] + instance_network_attachment_prototype_virtual_network_interface_model['ips'] = [ + virtual_network_interface_ip_prototype_model + ] instance_network_attachment_prototype_virtual_network_interface_model['name'] = 'my-virtual-network-interface' - instance_network_attachment_prototype_virtual_network_interface_model['primary_ip'] = virtual_network_interface_primary_ip_prototype_model + instance_network_attachment_prototype_virtual_network_interface_model['primary_ip'] = ( + virtual_network_interface_primary_ip_prototype_model + ) instance_network_attachment_prototype_virtual_network_interface_model['protocol_state_filtering_mode'] = 'auto' - instance_network_attachment_prototype_virtual_network_interface_model['resource_group'] = resource_group_identity_model - instance_network_attachment_prototype_virtual_network_interface_model['security_groups'] = [security_group_identity_model] + instance_network_attachment_prototype_virtual_network_interface_model['resource_group'] = ( + resource_group_identity_model + ) + instance_network_attachment_prototype_virtual_network_interface_model['security_groups'] = [ + security_group_identity_model + ] instance_network_attachment_prototype_virtual_network_interface_model['subnet'] = subnet_identity_model instance_network_attachment_prototype_model = {} # InstanceNetworkAttachmentPrototype instance_network_attachment_prototype_model['name'] = 'my-instance-network-attachment' - instance_network_attachment_prototype_model['virtual_network_interface'] = instance_network_attachment_prototype_virtual_network_interface_model + instance_network_attachment_prototype_model['virtual_network_interface'] = ( + instance_network_attachment_prototype_virtual_network_interface_model + ) # Construct a json representation of a InstancePrototypeInstanceByVolumeInstanceByVolumeInstanceByNetworkAttachment model instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_attachment_model_json = {} - instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_attachment_model_json['availability_policy'] = instance_availability_policy_prototype_model - instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_attachment_model_json['cluster_network_attachments'] = [instance_cluster_network_attachment_prototype_instance_context_model] - instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_attachment_model_json['confidential_compute_mode'] = 'disabled' - instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_attachment_model_json['default_trusted_profile'] = instance_default_trusted_profile_prototype_model - instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_attachment_model_json['enable_secure_boot'] = True - instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_attachment_model_json['keys'] = [key_identity_model] - instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_attachment_model_json['metadata_service'] = instance_metadata_service_prototype_model - instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_attachment_model_json['name'] = 'my-instance' - instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_attachment_model_json['placement_target'] = instance_placement_target_prototype_model - instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_attachment_model_json['profile'] = instance_profile_identity_model - instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_attachment_model_json['reservation_affinity'] = instance_reservation_affinity_prototype_model - instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_attachment_model_json['resource_group'] = resource_group_identity_model - instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_attachment_model_json['total_volume_bandwidth'] = 500 - instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_attachment_model_json['user_data'] = 'testString' - instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_attachment_model_json['volume_attachments'] = [volume_attachment_prototype_model] - instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_attachment_model_json['vpc'] = vpc_identity_model - instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_attachment_model_json['boot_volume_attachment'] = volume_attachment_prototype_instance_by_volume_context_model - instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_attachment_model_json['zone'] = zone_identity_model - instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_attachment_model_json['network_attachments'] = [instance_network_attachment_prototype_model] - instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_attachment_model_json['primary_network_attachment'] = instance_network_attachment_prototype_model + instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_attachment_model_json[ + 'availability_policy' + ] = instance_availability_policy_prototype_model + instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_attachment_model_json[ + 'cluster_network_attachments' + ] = [instance_cluster_network_attachment_prototype_instance_context_model] + instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_attachment_model_json[ + 'confidential_compute_mode' + ] = 'disabled' + instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_attachment_model_json[ + 'default_trusted_profile' + ] = instance_default_trusted_profile_prototype_model + instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_attachment_model_json[ + 'enable_secure_boot' + ] = True + instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_attachment_model_json['keys'] = [ + key_identity_model + ] + instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_attachment_model_json[ + 'metadata_service' + ] = instance_metadata_service_prototype_model + instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_attachment_model_json['name'] = ( + 'my-instance' + ) + instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_attachment_model_json[ + 'placement_target' + ] = instance_placement_target_prototype_model + instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_attachment_model_json[ + 'profile' + ] = instance_profile_identity_model + instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_attachment_model_json[ + 'reservation_affinity' + ] = instance_reservation_affinity_prototype_model + instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_attachment_model_json[ + 'resource_group' + ] = resource_group_identity_model + instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_attachment_model_json[ + 'total_volume_bandwidth' + ] = 500 + instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_attachment_model_json[ + 'user_data' + ] = 'testString' + instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_attachment_model_json[ + 'volume_attachments' + ] = [volume_attachment_prototype_model] + instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_attachment_model_json['vpc'] = ( + vpc_identity_model + ) + instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_attachment_model_json[ + 'boot_volume_attachment' + ] = volume_attachment_prototype_instance_by_volume_context_model + instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_attachment_model_json['zone'] = ( + zone_identity_model + ) + instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_attachment_model_json[ + 'network_attachments' + ] = [instance_network_attachment_prototype_model] + instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_attachment_model_json[ + 'primary_network_attachment' + ] = instance_network_attachment_prototype_model # Construct a model instance of InstancePrototypeInstanceByVolumeInstanceByVolumeInstanceByNetworkAttachment by calling from_dict on the json representation - instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_attachment_model = InstancePrototypeInstanceByVolumeInstanceByVolumeInstanceByNetworkAttachment.from_dict(instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_attachment_model_json) + instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_attachment_model = ( + InstancePrototypeInstanceByVolumeInstanceByVolumeInstanceByNetworkAttachment.from_dict( + instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_attachment_model_json + ) + ) assert instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_attachment_model != False # Construct a model instance of InstancePrototypeInstanceByVolumeInstanceByVolumeInstanceByNetworkAttachment by calling from_dict on the json representation - instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_attachment_model_dict = InstancePrototypeInstanceByVolumeInstanceByVolumeInstanceByNetworkAttachment.from_dict(instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_attachment_model_json).__dict__ - instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_attachment_model2 = InstancePrototypeInstanceByVolumeInstanceByVolumeInstanceByNetworkAttachment(**instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_attachment_model_dict) + instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_attachment_model_dict = ( + InstancePrototypeInstanceByVolumeInstanceByVolumeInstanceByNetworkAttachment.from_dict( + instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_attachment_model_json + ).__dict__ + ) + instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_attachment_model2 = ( + InstancePrototypeInstanceByVolumeInstanceByVolumeInstanceByNetworkAttachment( + **instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_attachment_model_dict + ) + ) # Verify the model instances are equivalent - assert instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_attachment_model == instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_attachment_model2 + assert ( + instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_attachment_model + == instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_attachment_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_attachment_model_json2 = instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_attachment_model.to_dict() - assert instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_attachment_model_json2 == instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_attachment_model_json + instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_attachment_model_json2 = ( + instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_attachment_model.to_dict() + ) + assert ( + instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_attachment_model_json2 + == instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_attachment_model_json + ) class TestModel_InstancePrototypeInstanceByVolumeInstanceByVolumeInstanceByNetworkInterface: @@ -98073,7 +112009,9 @@ def test_instance_prototype_instance_by_volume_instance_by_volume_instance_by_ne instance_availability_policy_prototype_model = {} # InstanceAvailabilityPolicyPrototype instance_availability_policy_prototype_model['host_failure'] = 'restart' - cluster_network_interface_primary_ip_prototype_model = {} # ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPPrototypeClusterNetworkInterfacePrimaryIPContext + cluster_network_interface_primary_ip_prototype_model = ( + {} + ) # ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPPrototypeClusterNetworkInterfacePrimaryIPContext cluster_network_interface_primary_ip_prototype_model['address'] = '10.0.0.5' cluster_network_interface_primary_ip_prototype_model['auto_delete'] = False cluster_network_interface_primary_ip_prototype_model['name'] = 'my-cluster-network-subnet-reserved-ip' @@ -98081,14 +112019,26 @@ def test_instance_prototype_instance_by_volume_instance_by_volume_instance_by_ne cluster_network_subnet_identity_model = {} # ClusterNetworkSubnetIdentityById cluster_network_subnet_identity_model['id'] = '0717-7931845c-65c4-4b0a-80cd-7d9c1a6d7930' - instance_cluster_network_attachment_prototype_cluster_network_interface_model = {} # InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment + instance_cluster_network_attachment_prototype_cluster_network_interface_model = ( + {} + ) # InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment instance_cluster_network_attachment_prototype_cluster_network_interface_model['auto_delete'] = False - instance_cluster_network_attachment_prototype_cluster_network_interface_model['name'] = 'my-cluster-network-interface' - instance_cluster_network_attachment_prototype_cluster_network_interface_model['primary_ip'] = cluster_network_interface_primary_ip_prototype_model - instance_cluster_network_attachment_prototype_cluster_network_interface_model['subnet'] = cluster_network_subnet_identity_model + instance_cluster_network_attachment_prototype_cluster_network_interface_model['name'] = ( + 'my-cluster-network-interface' + ) + instance_cluster_network_attachment_prototype_cluster_network_interface_model['primary_ip'] = ( + cluster_network_interface_primary_ip_prototype_model + ) + instance_cluster_network_attachment_prototype_cluster_network_interface_model['subnet'] = ( + cluster_network_subnet_identity_model + ) - instance_cluster_network_attachment_prototype_instance_context_model = {} # InstanceClusterNetworkAttachmentPrototypeInstanceContext - instance_cluster_network_attachment_prototype_instance_context_model['cluster_network_interface'] = instance_cluster_network_attachment_prototype_cluster_network_interface_model + instance_cluster_network_attachment_prototype_instance_context_model = ( + {} + ) # InstanceClusterNetworkAttachmentPrototypeInstanceContext + instance_cluster_network_attachment_prototype_instance_context_model['cluster_network_interface'] = ( + instance_cluster_network_attachment_prototype_cluster_network_interface_model + ) instance_cluster_network_attachment_prototype_instance_context_model['name'] = 'my-instance-network-attachment' trusted_profile_identity_model = {} # TrustedProfileIdentityById @@ -98106,7 +112056,9 @@ def test_instance_prototype_instance_by_volume_instance_by_volume_instance_by_ne instance_metadata_service_prototype_model['protocol'] = 'https' instance_metadata_service_prototype_model['response_hop_limit'] = 2 - instance_placement_target_prototype_model = {} # InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityById + instance_placement_target_prototype_model = ( + {} + ) # InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityById instance_placement_target_prototype_model['id'] = '0717-1e09281b-f177-46fb-baf1-bc152b2e391a' instance_profile_identity_model = {} # InstanceProfileIdentityByName @@ -98136,7 +112088,9 @@ def test_instance_prototype_instance_by_volume_instance_by_volume_instance_by_ne volume_identity_model = {} # VolumeIdentityById volume_identity_model['id'] = 'r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' - volume_attachment_prototype_instance_by_volume_context_model = {} # VolumeAttachmentPrototypeInstanceByVolumeContext + volume_attachment_prototype_instance_by_volume_context_model = ( + {} + ) # VolumeAttachmentPrototypeInstanceByVolumeContext volume_attachment_prototype_instance_by_volume_context_model['delete_volume_on_instance_delete'] = False volume_attachment_prototype_instance_by_volume_context_model['name'] = 'my-volume-attachment' volume_attachment_prototype_instance_by_volume_context_model['volume'] = volume_identity_model @@ -98144,7 +112098,9 @@ def test_instance_prototype_instance_by_volume_instance_by_volume_instance_by_ne zone_identity_model = {} # ZoneIdentityByName zone_identity_model['name'] = 'us-south-1' - network_interface_ip_prototype_model = {} # NetworkInterfaceIPPrototypeReservedIPPrototypeNetworkInterfaceContext + network_interface_ip_prototype_model = ( + {} + ) # NetworkInterfaceIPPrototypeReservedIPPrototypeNetworkInterfaceContext network_interface_ip_prototype_model['address'] = '10.0.0.5' network_interface_ip_prototype_model['auto_delete'] = False network_interface_ip_prototype_model['name'] = 'my-reserved-ip' @@ -98164,41 +112120,101 @@ def test_instance_prototype_instance_by_volume_instance_by_volume_instance_by_ne # Construct a json representation of a InstancePrototypeInstanceByVolumeInstanceByVolumeInstanceByNetworkInterface model instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_interface_model_json = {} - instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_interface_model_json['availability_policy'] = instance_availability_policy_prototype_model - instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_interface_model_json['cluster_network_attachments'] = [instance_cluster_network_attachment_prototype_instance_context_model] - instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_interface_model_json['confidential_compute_mode'] = 'disabled' - instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_interface_model_json['default_trusted_profile'] = instance_default_trusted_profile_prototype_model - instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_interface_model_json['enable_secure_boot'] = True - instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_interface_model_json['keys'] = [key_identity_model] - instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_interface_model_json['metadata_service'] = instance_metadata_service_prototype_model - instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_interface_model_json['name'] = 'my-instance' - instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_interface_model_json['placement_target'] = instance_placement_target_prototype_model - instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_interface_model_json['profile'] = instance_profile_identity_model - instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_interface_model_json['reservation_affinity'] = instance_reservation_affinity_prototype_model - instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_interface_model_json['resource_group'] = resource_group_identity_model - instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_interface_model_json['total_volume_bandwidth'] = 500 - instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_interface_model_json['user_data'] = 'testString' - instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_interface_model_json['volume_attachments'] = [volume_attachment_prototype_model] - instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_interface_model_json['vpc'] = vpc_identity_model - instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_interface_model_json['boot_volume_attachment'] = volume_attachment_prototype_instance_by_volume_context_model - instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_interface_model_json['zone'] = zone_identity_model - instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_interface_model_json['network_interfaces'] = [network_interface_prototype_model] - instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_interface_model_json['primary_network_interface'] = network_interface_prototype_model + instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_interface_model_json[ + 'availability_policy' + ] = instance_availability_policy_prototype_model + instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_interface_model_json[ + 'cluster_network_attachments' + ] = [instance_cluster_network_attachment_prototype_instance_context_model] + instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_interface_model_json[ + 'confidential_compute_mode' + ] = 'disabled' + instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_interface_model_json[ + 'default_trusted_profile' + ] = instance_default_trusted_profile_prototype_model + instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_interface_model_json[ + 'enable_secure_boot' + ] = True + instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_interface_model_json['keys'] = [ + key_identity_model + ] + instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_interface_model_json[ + 'metadata_service' + ] = instance_metadata_service_prototype_model + instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_interface_model_json['name'] = ( + 'my-instance' + ) + instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_interface_model_json[ + 'placement_target' + ] = instance_placement_target_prototype_model + instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_interface_model_json['profile'] = ( + instance_profile_identity_model + ) + instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_interface_model_json[ + 'reservation_affinity' + ] = instance_reservation_affinity_prototype_model + instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_interface_model_json[ + 'resource_group' + ] = resource_group_identity_model + instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_interface_model_json[ + 'total_volume_bandwidth' + ] = 500 + instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_interface_model_json[ + 'user_data' + ] = 'testString' + instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_interface_model_json[ + 'volume_attachments' + ] = [volume_attachment_prototype_model] + instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_interface_model_json['vpc'] = ( + vpc_identity_model + ) + instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_interface_model_json[ + 'boot_volume_attachment' + ] = volume_attachment_prototype_instance_by_volume_context_model + instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_interface_model_json['zone'] = ( + zone_identity_model + ) + instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_interface_model_json[ + 'network_interfaces' + ] = [network_interface_prototype_model] + instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_interface_model_json[ + 'primary_network_interface' + ] = network_interface_prototype_model # Construct a model instance of InstancePrototypeInstanceByVolumeInstanceByVolumeInstanceByNetworkInterface by calling from_dict on the json representation - instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_interface_model = InstancePrototypeInstanceByVolumeInstanceByVolumeInstanceByNetworkInterface.from_dict(instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_interface_model_json) + instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_interface_model = ( + InstancePrototypeInstanceByVolumeInstanceByVolumeInstanceByNetworkInterface.from_dict( + instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_interface_model_json + ) + ) assert instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_interface_model != False # Construct a model instance of InstancePrototypeInstanceByVolumeInstanceByVolumeInstanceByNetworkInterface by calling from_dict on the json representation - instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_interface_model_dict = InstancePrototypeInstanceByVolumeInstanceByVolumeInstanceByNetworkInterface.from_dict(instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_interface_model_json).__dict__ - instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_interface_model2 = InstancePrototypeInstanceByVolumeInstanceByVolumeInstanceByNetworkInterface(**instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_interface_model_dict) + instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_interface_model_dict = ( + InstancePrototypeInstanceByVolumeInstanceByVolumeInstanceByNetworkInterface.from_dict( + instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_interface_model_json + ).__dict__ + ) + instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_interface_model2 = ( + InstancePrototypeInstanceByVolumeInstanceByVolumeInstanceByNetworkInterface( + **instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_interface_model_dict + ) + ) # Verify the model instances are equivalent - assert instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_interface_model == instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_interface_model2 + assert ( + instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_interface_model + == instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_interface_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_interface_model_json2 = instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_interface_model.to_dict() - assert instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_interface_model_json2 == instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_interface_model_json + instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_interface_model_json2 = ( + instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_interface_model.to_dict() + ) + assert ( + instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_interface_model_json2 + == instance_prototype_instance_by_volume_instance_by_volume_instance_by_network_interface_model_json + ) class TestModel_InstanceTemplatePrototypeInstanceTemplateByCatalogOfferingInstanceTemplateByCatalogOfferingInstanceByNetworkAttachment: @@ -98206,7 +112222,9 @@ class TestModel_InstanceTemplatePrototypeInstanceTemplateByCatalogOfferingInstan Test Class for InstanceTemplatePrototypeInstanceTemplateByCatalogOfferingInstanceTemplateByCatalogOfferingInstanceByNetworkAttachment """ - def test_instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_attachment_serialization(self): + def test_instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_attachment_serialization( + self, + ): """ Test serialization/deserialization for InstanceTemplatePrototypeInstanceTemplateByCatalogOfferingInstanceTemplateByCatalogOfferingInstanceByNetworkAttachment """ @@ -98216,7 +112234,9 @@ def test_instance_template_prototype_instance_template_by_catalog_offering_insta instance_availability_policy_prototype_model = {} # InstanceAvailabilityPolicyPrototype instance_availability_policy_prototype_model['host_failure'] = 'restart' - cluster_network_interface_primary_ip_prototype_model = {} # ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPPrototypeClusterNetworkInterfacePrimaryIPContext + cluster_network_interface_primary_ip_prototype_model = ( + {} + ) # ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPPrototypeClusterNetworkInterfacePrimaryIPContext cluster_network_interface_primary_ip_prototype_model['address'] = '10.0.0.5' cluster_network_interface_primary_ip_prototype_model['auto_delete'] = False cluster_network_interface_primary_ip_prototype_model['name'] = 'my-cluster-network-subnet-reserved-ip' @@ -98224,14 +112244,26 @@ def test_instance_template_prototype_instance_template_by_catalog_offering_insta cluster_network_subnet_identity_model = {} # ClusterNetworkSubnetIdentityById cluster_network_subnet_identity_model['id'] = '0717-7931845c-65c4-4b0a-80cd-7d9c1a6d7930' - instance_cluster_network_attachment_prototype_cluster_network_interface_model = {} # InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment + instance_cluster_network_attachment_prototype_cluster_network_interface_model = ( + {} + ) # InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment instance_cluster_network_attachment_prototype_cluster_network_interface_model['auto_delete'] = False - instance_cluster_network_attachment_prototype_cluster_network_interface_model['name'] = 'my-cluster-network-interface' - instance_cluster_network_attachment_prototype_cluster_network_interface_model['primary_ip'] = cluster_network_interface_primary_ip_prototype_model - instance_cluster_network_attachment_prototype_cluster_network_interface_model['subnet'] = cluster_network_subnet_identity_model + instance_cluster_network_attachment_prototype_cluster_network_interface_model['name'] = ( + 'my-cluster-network-interface' + ) + instance_cluster_network_attachment_prototype_cluster_network_interface_model['primary_ip'] = ( + cluster_network_interface_primary_ip_prototype_model + ) + instance_cluster_network_attachment_prototype_cluster_network_interface_model['subnet'] = ( + cluster_network_subnet_identity_model + ) - instance_cluster_network_attachment_prototype_instance_context_model = {} # InstanceClusterNetworkAttachmentPrototypeInstanceContext - instance_cluster_network_attachment_prototype_instance_context_model['cluster_network_interface'] = instance_cluster_network_attachment_prototype_cluster_network_interface_model + instance_cluster_network_attachment_prototype_instance_context_model = ( + {} + ) # InstanceClusterNetworkAttachmentPrototypeInstanceContext + instance_cluster_network_attachment_prototype_instance_context_model['cluster_network_interface'] = ( + instance_cluster_network_attachment_prototype_cluster_network_interface_model + ) instance_cluster_network_attachment_prototype_instance_context_model['name'] = 'my-instance-network-attachment' trusted_profile_identity_model = {} # TrustedProfileIdentityById @@ -98249,7 +112281,9 @@ def test_instance_template_prototype_instance_template_by_catalog_offering_insta instance_metadata_service_prototype_model['protocol'] = 'https' instance_metadata_service_prototype_model['response_hop_limit'] = 2 - instance_placement_target_prototype_model = {} # InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityById + instance_placement_target_prototype_model = ( + {} + ) # InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityById instance_placement_target_prototype_model['id'] = '0717-1e09281b-f177-46fb-baf1-bc152b2e391a' instance_profile_identity_model = {} # InstanceProfileIdentityByName @@ -98277,7 +112311,9 @@ def test_instance_template_prototype_instance_template_by_catalog_offering_insta vpc_identity_model['id'] = 'r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' encryption_key_identity_model = {} # EncryptionKeyIdentityByCRN - encryption_key_identity_model['crn'] = 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + encryption_key_identity_model['crn'] = ( + 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + ) volume_profile_identity_model = {} # VolumeProfileIdentityByName volume_profile_identity_model['name'] = 'general-purpose' @@ -98291,16 +112327,26 @@ def test_instance_template_prototype_instance_template_by_catalog_offering_insta volume_prototype_instance_by_image_context_model['resource_group'] = resource_group_identity_model volume_prototype_instance_by_image_context_model['user_tags'] = [] - volume_attachment_prototype_instance_by_image_context_model = {} # VolumeAttachmentPrototypeInstanceByImageContext + volume_attachment_prototype_instance_by_image_context_model = ( + {} + ) # VolumeAttachmentPrototypeInstanceByImageContext volume_attachment_prototype_instance_by_image_context_model['delete_volume_on_instance_delete'] = True volume_attachment_prototype_instance_by_image_context_model['name'] = 'my-volume-attachment' - volume_attachment_prototype_instance_by_image_context_model['volume'] = volume_prototype_instance_by_image_context_model + volume_attachment_prototype_instance_by_image_context_model['volume'] = ( + volume_prototype_instance_by_image_context_model + ) - catalog_offering_version_plan_identity_model = {} # CatalogOfferingVersionPlanIdentityCatalogOfferingVersionPlanByCRN - catalog_offering_version_plan_identity_model['crn'] = 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:51c9e0db-2911-45a6-adb0-ac5332d27cf2:plan:sw.51c9e0db-2911-45a6-adb0-ac5332d27cf2.772c0dbe-aa62-482e-adbe-a3fc20101e0e' + catalog_offering_version_plan_identity_model = ( + {} + ) # CatalogOfferingVersionPlanIdentityCatalogOfferingVersionPlanByCRN + catalog_offering_version_plan_identity_model['crn'] = ( + 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:51c9e0db-2911-45a6-adb0-ac5332d27cf2:plan:sw.51c9e0db-2911-45a6-adb0-ac5332d27cf2.772c0dbe-aa62-482e-adbe-a3fc20101e0e' + ) catalog_offering_identity_model = {} # CatalogOfferingIdentityCatalogOfferingByCRN - catalog_offering_identity_model['crn'] = 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:offering:00111601-0ec5-41ac-b142-96d1e64e6442' + catalog_offering_identity_model['crn'] = ( + 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:offering:00111601-0ec5-41ac-b142-96d1e64e6442' + ) instance_catalog_offering_prototype_model = {} # InstanceCatalogOfferingPrototypeCatalogOfferingByOffering instance_catalog_offering_prototype_model['plan'] = catalog_offering_version_plan_identity_model @@ -98309,12 +112355,16 @@ def test_instance_template_prototype_instance_template_by_catalog_offering_insta zone_identity_model = {} # ZoneIdentityByName zone_identity_model['name'] = 'us-south-1' - virtual_network_interface_ip_prototype_model = {} # VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext + virtual_network_interface_ip_prototype_model = ( + {} + ) # VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext virtual_network_interface_ip_prototype_model['address'] = '10.0.0.5' virtual_network_interface_ip_prototype_model['auto_delete'] = False virtual_network_interface_ip_prototype_model['name'] = 'my-reserved-ip' - virtual_network_interface_primary_ip_prototype_model = {} # VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext + virtual_network_interface_primary_ip_prototype_model = ( + {} + ) # VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext virtual_network_interface_primary_ip_prototype_model['address'] = '10.0.0.5' virtual_network_interface_primary_ip_prototype_model['auto_delete'] = False virtual_network_interface_primary_ip_prototype_model['name'] = 'my-reserved-ip' @@ -98325,60 +112375,141 @@ def test_instance_template_prototype_instance_template_by_catalog_offering_insta subnet_identity_model = {} # SubnetIdentityById subnet_identity_model['id'] = '7ec86020-1c6e-4889-b3f0-a15f2e50f87e' - instance_network_attachment_prototype_virtual_network_interface_model = {} # InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeInstanceNetworkAttachmentContext + instance_network_attachment_prototype_virtual_network_interface_model = ( + {} + ) # InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeInstanceNetworkAttachmentContext instance_network_attachment_prototype_virtual_network_interface_model['allow_ip_spoofing'] = True instance_network_attachment_prototype_virtual_network_interface_model['auto_delete'] = False instance_network_attachment_prototype_virtual_network_interface_model['enable_infrastructure_nat'] = True - instance_network_attachment_prototype_virtual_network_interface_model['ips'] = [virtual_network_interface_ip_prototype_model] + instance_network_attachment_prototype_virtual_network_interface_model['ips'] = [ + virtual_network_interface_ip_prototype_model + ] instance_network_attachment_prototype_virtual_network_interface_model['name'] = 'my-virtual-network-interface' - instance_network_attachment_prototype_virtual_network_interface_model['primary_ip'] = virtual_network_interface_primary_ip_prototype_model + instance_network_attachment_prototype_virtual_network_interface_model['primary_ip'] = ( + virtual_network_interface_primary_ip_prototype_model + ) instance_network_attachment_prototype_virtual_network_interface_model['protocol_state_filtering_mode'] = 'auto' - instance_network_attachment_prototype_virtual_network_interface_model['resource_group'] = resource_group_identity_model - instance_network_attachment_prototype_virtual_network_interface_model['security_groups'] = [security_group_identity_model] + instance_network_attachment_prototype_virtual_network_interface_model['resource_group'] = ( + resource_group_identity_model + ) + instance_network_attachment_prototype_virtual_network_interface_model['security_groups'] = [ + security_group_identity_model + ] instance_network_attachment_prototype_virtual_network_interface_model['subnet'] = subnet_identity_model instance_network_attachment_prototype_model = {} # InstanceNetworkAttachmentPrototype instance_network_attachment_prototype_model['name'] = 'my-instance-network-attachment' - instance_network_attachment_prototype_model['virtual_network_interface'] = instance_network_attachment_prototype_virtual_network_interface_model + instance_network_attachment_prototype_model['virtual_network_interface'] = ( + instance_network_attachment_prototype_virtual_network_interface_model + ) # Construct a json representation of a InstanceTemplatePrototypeInstanceTemplateByCatalogOfferingInstanceTemplateByCatalogOfferingInstanceByNetworkAttachment model - instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_attachment_model_json = {} - instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_attachment_model_json['availability_policy'] = instance_availability_policy_prototype_model - instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_attachment_model_json['cluster_network_attachments'] = [instance_cluster_network_attachment_prototype_instance_context_model] - instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_attachment_model_json['confidential_compute_mode'] = 'disabled' - instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_attachment_model_json['default_trusted_profile'] = instance_default_trusted_profile_prototype_model - instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_attachment_model_json['enable_secure_boot'] = True - instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_attachment_model_json['keys'] = [key_identity_model] - instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_attachment_model_json['metadata_service'] = instance_metadata_service_prototype_model - instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_attachment_model_json['name'] = 'my-instance' - instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_attachment_model_json['placement_target'] = instance_placement_target_prototype_model - instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_attachment_model_json['profile'] = instance_profile_identity_model - instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_attachment_model_json['reservation_affinity'] = instance_reservation_affinity_prototype_model - instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_attachment_model_json['resource_group'] = resource_group_identity_model - instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_attachment_model_json['total_volume_bandwidth'] = 500 - instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_attachment_model_json['user_data'] = 'testString' - instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_attachment_model_json['volume_attachments'] = [volume_attachment_prototype_model] - instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_attachment_model_json['vpc'] = vpc_identity_model - instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_attachment_model_json['boot_volume_attachment'] = volume_attachment_prototype_instance_by_image_context_model - instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_attachment_model_json['catalog_offering'] = instance_catalog_offering_prototype_model - instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_attachment_model_json['zone'] = zone_identity_model - instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_attachment_model_json['network_attachments'] = [instance_network_attachment_prototype_model] - instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_attachment_model_json['primary_network_attachment'] = instance_network_attachment_prototype_model + instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_attachment_model_json = ( + {} + ) + instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_attachment_model_json[ + 'availability_policy' + ] = instance_availability_policy_prototype_model + instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_attachment_model_json[ + 'cluster_network_attachments' + ] = [ + instance_cluster_network_attachment_prototype_instance_context_model + ] + instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_attachment_model_json[ + 'confidential_compute_mode' + ] = 'disabled' + instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_attachment_model_json[ + 'default_trusted_profile' + ] = instance_default_trusted_profile_prototype_model + instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_attachment_model_json[ + 'enable_secure_boot' + ] = True + instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_attachment_model_json[ + 'keys' + ] = [ + key_identity_model + ] + instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_attachment_model_json[ + 'metadata_service' + ] = instance_metadata_service_prototype_model + instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_attachment_model_json[ + 'name' + ] = 'my-instance' + instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_attachment_model_json[ + 'placement_target' + ] = instance_placement_target_prototype_model + instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_attachment_model_json[ + 'profile' + ] = instance_profile_identity_model + instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_attachment_model_json[ + 'reservation_affinity' + ] = instance_reservation_affinity_prototype_model + instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_attachment_model_json[ + 'resource_group' + ] = resource_group_identity_model + instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_attachment_model_json[ + 'total_volume_bandwidth' + ] = 500 + instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_attachment_model_json[ + 'user_data' + ] = 'testString' + instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_attachment_model_json[ + 'volume_attachments' + ] = [ + volume_attachment_prototype_model + ] + instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_attachment_model_json[ + 'vpc' + ] = vpc_identity_model + instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_attachment_model_json[ + 'boot_volume_attachment' + ] = volume_attachment_prototype_instance_by_image_context_model + instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_attachment_model_json[ + 'catalog_offering' + ] = instance_catalog_offering_prototype_model + instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_attachment_model_json[ + 'zone' + ] = zone_identity_model + instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_attachment_model_json[ + 'network_attachments' + ] = [ + instance_network_attachment_prototype_model + ] + instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_attachment_model_json[ + 'primary_network_attachment' + ] = instance_network_attachment_prototype_model # Construct a model instance of InstanceTemplatePrototypeInstanceTemplateByCatalogOfferingInstanceTemplateByCatalogOfferingInstanceByNetworkAttachment by calling from_dict on the json representation - instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_attachment_model = InstanceTemplatePrototypeInstanceTemplateByCatalogOfferingInstanceTemplateByCatalogOfferingInstanceByNetworkAttachment.from_dict(instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_attachment_model_json) - assert instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_attachment_model != False + instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_attachment_model = InstanceTemplatePrototypeInstanceTemplateByCatalogOfferingInstanceTemplateByCatalogOfferingInstanceByNetworkAttachment.from_dict( + instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_attachment_model_json + ) + assert ( + instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_attachment_model + != False + ) # Construct a model instance of InstanceTemplatePrototypeInstanceTemplateByCatalogOfferingInstanceTemplateByCatalogOfferingInstanceByNetworkAttachment by calling from_dict on the json representation - instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_attachment_model_dict = InstanceTemplatePrototypeInstanceTemplateByCatalogOfferingInstanceTemplateByCatalogOfferingInstanceByNetworkAttachment.from_dict(instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_attachment_model_json).__dict__ - instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_attachment_model2 = InstanceTemplatePrototypeInstanceTemplateByCatalogOfferingInstanceTemplateByCatalogOfferingInstanceByNetworkAttachment(**instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_attachment_model_dict) + instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_attachment_model_dict = InstanceTemplatePrototypeInstanceTemplateByCatalogOfferingInstanceTemplateByCatalogOfferingInstanceByNetworkAttachment.from_dict( + instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_attachment_model_json + ).__dict__ + instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_attachment_model2 = InstanceTemplatePrototypeInstanceTemplateByCatalogOfferingInstanceTemplateByCatalogOfferingInstanceByNetworkAttachment( + **instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_attachment_model_dict + ) # Verify the model instances are equivalent - assert instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_attachment_model == instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_attachment_model2 + assert ( + instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_attachment_model + == instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_attachment_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_attachment_model_json2 = instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_attachment_model.to_dict() - assert instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_attachment_model_json2 == instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_attachment_model_json + instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_attachment_model_json2 = ( + instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_attachment_model.to_dict() + ) + assert ( + instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_attachment_model_json2 + == instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_attachment_model_json + ) class TestModel_InstanceTemplatePrototypeInstanceTemplateByCatalogOfferingInstanceTemplateByCatalogOfferingInstanceByNetworkInterface: @@ -98386,7 +112517,9 @@ class TestModel_InstanceTemplatePrototypeInstanceTemplateByCatalogOfferingInstan Test Class for InstanceTemplatePrototypeInstanceTemplateByCatalogOfferingInstanceTemplateByCatalogOfferingInstanceByNetworkInterface """ - def test_instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_interface_serialization(self): + def test_instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_interface_serialization( + self, + ): """ Test serialization/deserialization for InstanceTemplatePrototypeInstanceTemplateByCatalogOfferingInstanceTemplateByCatalogOfferingInstanceByNetworkInterface """ @@ -98396,7 +112529,9 @@ def test_instance_template_prototype_instance_template_by_catalog_offering_insta instance_availability_policy_prototype_model = {} # InstanceAvailabilityPolicyPrototype instance_availability_policy_prototype_model['host_failure'] = 'restart' - cluster_network_interface_primary_ip_prototype_model = {} # ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPPrototypeClusterNetworkInterfacePrimaryIPContext + cluster_network_interface_primary_ip_prototype_model = ( + {} + ) # ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPPrototypeClusterNetworkInterfacePrimaryIPContext cluster_network_interface_primary_ip_prototype_model['address'] = '10.0.0.5' cluster_network_interface_primary_ip_prototype_model['auto_delete'] = False cluster_network_interface_primary_ip_prototype_model['name'] = 'my-cluster-network-subnet-reserved-ip' @@ -98404,14 +112539,26 @@ def test_instance_template_prototype_instance_template_by_catalog_offering_insta cluster_network_subnet_identity_model = {} # ClusterNetworkSubnetIdentityById cluster_network_subnet_identity_model['id'] = '0717-7931845c-65c4-4b0a-80cd-7d9c1a6d7930' - instance_cluster_network_attachment_prototype_cluster_network_interface_model = {} # InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment + instance_cluster_network_attachment_prototype_cluster_network_interface_model = ( + {} + ) # InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment instance_cluster_network_attachment_prototype_cluster_network_interface_model['auto_delete'] = False - instance_cluster_network_attachment_prototype_cluster_network_interface_model['name'] = 'my-cluster-network-interface' - instance_cluster_network_attachment_prototype_cluster_network_interface_model['primary_ip'] = cluster_network_interface_primary_ip_prototype_model - instance_cluster_network_attachment_prototype_cluster_network_interface_model['subnet'] = cluster_network_subnet_identity_model + instance_cluster_network_attachment_prototype_cluster_network_interface_model['name'] = ( + 'my-cluster-network-interface' + ) + instance_cluster_network_attachment_prototype_cluster_network_interface_model['primary_ip'] = ( + cluster_network_interface_primary_ip_prototype_model + ) + instance_cluster_network_attachment_prototype_cluster_network_interface_model['subnet'] = ( + cluster_network_subnet_identity_model + ) - instance_cluster_network_attachment_prototype_instance_context_model = {} # InstanceClusterNetworkAttachmentPrototypeInstanceContext - instance_cluster_network_attachment_prototype_instance_context_model['cluster_network_interface'] = instance_cluster_network_attachment_prototype_cluster_network_interface_model + instance_cluster_network_attachment_prototype_instance_context_model = ( + {} + ) # InstanceClusterNetworkAttachmentPrototypeInstanceContext + instance_cluster_network_attachment_prototype_instance_context_model['cluster_network_interface'] = ( + instance_cluster_network_attachment_prototype_cluster_network_interface_model + ) instance_cluster_network_attachment_prototype_instance_context_model['name'] = 'my-instance-network-attachment' trusted_profile_identity_model = {} # TrustedProfileIdentityById @@ -98429,7 +112576,9 @@ def test_instance_template_prototype_instance_template_by_catalog_offering_insta instance_metadata_service_prototype_model['protocol'] = 'https' instance_metadata_service_prototype_model['response_hop_limit'] = 2 - instance_placement_target_prototype_model = {} # InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityById + instance_placement_target_prototype_model = ( + {} + ) # InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityById instance_placement_target_prototype_model['id'] = '0717-1e09281b-f177-46fb-baf1-bc152b2e391a' instance_profile_identity_model = {} # InstanceProfileIdentityByName @@ -98457,7 +112606,9 @@ def test_instance_template_prototype_instance_template_by_catalog_offering_insta vpc_identity_model['id'] = 'r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' encryption_key_identity_model = {} # EncryptionKeyIdentityByCRN - encryption_key_identity_model['crn'] = 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + encryption_key_identity_model['crn'] = ( + 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + ) volume_profile_identity_model = {} # VolumeProfileIdentityByName volume_profile_identity_model['name'] = 'general-purpose' @@ -98471,16 +112622,26 @@ def test_instance_template_prototype_instance_template_by_catalog_offering_insta volume_prototype_instance_by_image_context_model['resource_group'] = resource_group_identity_model volume_prototype_instance_by_image_context_model['user_tags'] = [] - volume_attachment_prototype_instance_by_image_context_model = {} # VolumeAttachmentPrototypeInstanceByImageContext + volume_attachment_prototype_instance_by_image_context_model = ( + {} + ) # VolumeAttachmentPrototypeInstanceByImageContext volume_attachment_prototype_instance_by_image_context_model['delete_volume_on_instance_delete'] = True volume_attachment_prototype_instance_by_image_context_model['name'] = 'my-volume-attachment' - volume_attachment_prototype_instance_by_image_context_model['volume'] = volume_prototype_instance_by_image_context_model + volume_attachment_prototype_instance_by_image_context_model['volume'] = ( + volume_prototype_instance_by_image_context_model + ) - catalog_offering_version_plan_identity_model = {} # CatalogOfferingVersionPlanIdentityCatalogOfferingVersionPlanByCRN - catalog_offering_version_plan_identity_model['crn'] = 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:51c9e0db-2911-45a6-adb0-ac5332d27cf2:plan:sw.51c9e0db-2911-45a6-adb0-ac5332d27cf2.772c0dbe-aa62-482e-adbe-a3fc20101e0e' + catalog_offering_version_plan_identity_model = ( + {} + ) # CatalogOfferingVersionPlanIdentityCatalogOfferingVersionPlanByCRN + catalog_offering_version_plan_identity_model['crn'] = ( + 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:51c9e0db-2911-45a6-adb0-ac5332d27cf2:plan:sw.51c9e0db-2911-45a6-adb0-ac5332d27cf2.772c0dbe-aa62-482e-adbe-a3fc20101e0e' + ) catalog_offering_identity_model = {} # CatalogOfferingIdentityCatalogOfferingByCRN - catalog_offering_identity_model['crn'] = 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:offering:00111601-0ec5-41ac-b142-96d1e64e6442' + catalog_offering_identity_model['crn'] = ( + 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:offering:00111601-0ec5-41ac-b142-96d1e64e6442' + ) instance_catalog_offering_prototype_model = {} # InstanceCatalogOfferingPrototypeCatalogOfferingByOffering instance_catalog_offering_prototype_model['plan'] = catalog_offering_version_plan_identity_model @@ -98489,7 +112650,9 @@ def test_instance_template_prototype_instance_template_by_catalog_offering_insta zone_identity_model = {} # ZoneIdentityByName zone_identity_model['name'] = 'us-south-1' - network_interface_ip_prototype_model = {} # NetworkInterfaceIPPrototypeReservedIPPrototypeNetworkInterfaceContext + network_interface_ip_prototype_model = ( + {} + ) # NetworkInterfaceIPPrototypeReservedIPPrototypeNetworkInterfaceContext network_interface_ip_prototype_model['address'] = '10.0.0.5' network_interface_ip_prototype_model['auto_delete'] = False network_interface_ip_prototype_model['name'] = 'my-reserved-ip' @@ -98508,43 +112671,112 @@ def test_instance_template_prototype_instance_template_by_catalog_offering_insta network_interface_prototype_model['subnet'] = subnet_identity_model # Construct a json representation of a InstanceTemplatePrototypeInstanceTemplateByCatalogOfferingInstanceTemplateByCatalogOfferingInstanceByNetworkInterface model - instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_interface_model_json = {} - instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_interface_model_json['availability_policy'] = instance_availability_policy_prototype_model - instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_interface_model_json['cluster_network_attachments'] = [instance_cluster_network_attachment_prototype_instance_context_model] - instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_interface_model_json['confidential_compute_mode'] = 'disabled' - instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_interface_model_json['default_trusted_profile'] = instance_default_trusted_profile_prototype_model - instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_interface_model_json['enable_secure_boot'] = True - instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_interface_model_json['keys'] = [key_identity_model] - instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_interface_model_json['metadata_service'] = instance_metadata_service_prototype_model - instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_interface_model_json['name'] = 'my-instance' - instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_interface_model_json['placement_target'] = instance_placement_target_prototype_model - instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_interface_model_json['profile'] = instance_profile_identity_model - instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_interface_model_json['reservation_affinity'] = instance_reservation_affinity_prototype_model - instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_interface_model_json['resource_group'] = resource_group_identity_model - instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_interface_model_json['total_volume_bandwidth'] = 500 - instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_interface_model_json['user_data'] = 'testString' - instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_interface_model_json['volume_attachments'] = [volume_attachment_prototype_model] - instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_interface_model_json['vpc'] = vpc_identity_model - instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_interface_model_json['boot_volume_attachment'] = volume_attachment_prototype_instance_by_image_context_model - instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_interface_model_json['catalog_offering'] = instance_catalog_offering_prototype_model - instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_interface_model_json['zone'] = zone_identity_model - instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_interface_model_json['network_interfaces'] = [network_interface_prototype_model] - instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_interface_model_json['primary_network_interface'] = network_interface_prototype_model + instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_interface_model_json = ( + {} + ) + instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_interface_model_json[ + 'availability_policy' + ] = instance_availability_policy_prototype_model + instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_interface_model_json[ + 'cluster_network_attachments' + ] = [ + instance_cluster_network_attachment_prototype_instance_context_model + ] + instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_interface_model_json[ + 'confidential_compute_mode' + ] = 'disabled' + instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_interface_model_json[ + 'default_trusted_profile' + ] = instance_default_trusted_profile_prototype_model + instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_interface_model_json[ + 'enable_secure_boot' + ] = True + instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_interface_model_json[ + 'keys' + ] = [ + key_identity_model + ] + instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_interface_model_json[ + 'metadata_service' + ] = instance_metadata_service_prototype_model + instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_interface_model_json[ + 'name' + ] = 'my-instance' + instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_interface_model_json[ + 'placement_target' + ] = instance_placement_target_prototype_model + instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_interface_model_json[ + 'profile' + ] = instance_profile_identity_model + instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_interface_model_json[ + 'reservation_affinity' + ] = instance_reservation_affinity_prototype_model + instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_interface_model_json[ + 'resource_group' + ] = resource_group_identity_model + instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_interface_model_json[ + 'total_volume_bandwidth' + ] = 500 + instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_interface_model_json[ + 'user_data' + ] = 'testString' + instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_interface_model_json[ + 'volume_attachments' + ] = [ + volume_attachment_prototype_model + ] + instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_interface_model_json[ + 'vpc' + ] = vpc_identity_model + instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_interface_model_json[ + 'boot_volume_attachment' + ] = volume_attachment_prototype_instance_by_image_context_model + instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_interface_model_json[ + 'catalog_offering' + ] = instance_catalog_offering_prototype_model + instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_interface_model_json[ + 'zone' + ] = zone_identity_model + instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_interface_model_json[ + 'network_interfaces' + ] = [ + network_interface_prototype_model + ] + instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_interface_model_json[ + 'primary_network_interface' + ] = network_interface_prototype_model # Construct a model instance of InstanceTemplatePrototypeInstanceTemplateByCatalogOfferingInstanceTemplateByCatalogOfferingInstanceByNetworkInterface by calling from_dict on the json representation - instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_interface_model = InstanceTemplatePrototypeInstanceTemplateByCatalogOfferingInstanceTemplateByCatalogOfferingInstanceByNetworkInterface.from_dict(instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_interface_model_json) - assert instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_interface_model != False + instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_interface_model = InstanceTemplatePrototypeInstanceTemplateByCatalogOfferingInstanceTemplateByCatalogOfferingInstanceByNetworkInterface.from_dict( + instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_interface_model_json + ) + assert ( + instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_interface_model + != False + ) # Construct a model instance of InstanceTemplatePrototypeInstanceTemplateByCatalogOfferingInstanceTemplateByCatalogOfferingInstanceByNetworkInterface by calling from_dict on the json representation - instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_interface_model_dict = InstanceTemplatePrototypeInstanceTemplateByCatalogOfferingInstanceTemplateByCatalogOfferingInstanceByNetworkInterface.from_dict(instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_interface_model_json).__dict__ - instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_interface_model2 = InstanceTemplatePrototypeInstanceTemplateByCatalogOfferingInstanceTemplateByCatalogOfferingInstanceByNetworkInterface(**instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_interface_model_dict) + instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_interface_model_dict = InstanceTemplatePrototypeInstanceTemplateByCatalogOfferingInstanceTemplateByCatalogOfferingInstanceByNetworkInterface.from_dict( + instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_interface_model_json + ).__dict__ + instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_interface_model2 = InstanceTemplatePrototypeInstanceTemplateByCatalogOfferingInstanceTemplateByCatalogOfferingInstanceByNetworkInterface( + **instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_interface_model_dict + ) # Verify the model instances are equivalent - assert instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_interface_model == instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_interface_model2 + assert ( + instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_interface_model + == instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_interface_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_interface_model_json2 = instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_interface_model.to_dict() - assert instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_interface_model_json2 == instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_interface_model_json + instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_interface_model_json2 = ( + instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_interface_model.to_dict() + ) + assert ( + instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_interface_model_json2 + == instance_template_prototype_instance_template_by_catalog_offering_instance_template_by_catalog_offering_instance_by_network_interface_model_json + ) class TestModel_InstanceTemplatePrototypeInstanceTemplateByImageInstanceTemplateByImageInstanceByNetworkAttachment: @@ -98552,7 +112784,9 @@ class TestModel_InstanceTemplatePrototypeInstanceTemplateByImageInstanceTemplate Test Class for InstanceTemplatePrototypeInstanceTemplateByImageInstanceTemplateByImageInstanceByNetworkAttachment """ - def test_instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_attachment_serialization(self): + def test_instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_attachment_serialization( + self, + ): """ Test serialization/deserialization for InstanceTemplatePrototypeInstanceTemplateByImageInstanceTemplateByImageInstanceByNetworkAttachment """ @@ -98562,7 +112796,9 @@ def test_instance_template_prototype_instance_template_by_image_instance_templat instance_availability_policy_prototype_model = {} # InstanceAvailabilityPolicyPrototype instance_availability_policy_prototype_model['host_failure'] = 'restart' - cluster_network_interface_primary_ip_prototype_model = {} # ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPPrototypeClusterNetworkInterfacePrimaryIPContext + cluster_network_interface_primary_ip_prototype_model = ( + {} + ) # ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPPrototypeClusterNetworkInterfacePrimaryIPContext cluster_network_interface_primary_ip_prototype_model['address'] = '10.0.0.5' cluster_network_interface_primary_ip_prototype_model['auto_delete'] = False cluster_network_interface_primary_ip_prototype_model['name'] = 'my-cluster-network-subnet-reserved-ip' @@ -98570,14 +112806,26 @@ def test_instance_template_prototype_instance_template_by_image_instance_templat cluster_network_subnet_identity_model = {} # ClusterNetworkSubnetIdentityById cluster_network_subnet_identity_model['id'] = '0717-7931845c-65c4-4b0a-80cd-7d9c1a6d7930' - instance_cluster_network_attachment_prototype_cluster_network_interface_model = {} # InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment + instance_cluster_network_attachment_prototype_cluster_network_interface_model = ( + {} + ) # InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment instance_cluster_network_attachment_prototype_cluster_network_interface_model['auto_delete'] = False - instance_cluster_network_attachment_prototype_cluster_network_interface_model['name'] = 'my-cluster-network-interface' - instance_cluster_network_attachment_prototype_cluster_network_interface_model['primary_ip'] = cluster_network_interface_primary_ip_prototype_model - instance_cluster_network_attachment_prototype_cluster_network_interface_model['subnet'] = cluster_network_subnet_identity_model + instance_cluster_network_attachment_prototype_cluster_network_interface_model['name'] = ( + 'my-cluster-network-interface' + ) + instance_cluster_network_attachment_prototype_cluster_network_interface_model['primary_ip'] = ( + cluster_network_interface_primary_ip_prototype_model + ) + instance_cluster_network_attachment_prototype_cluster_network_interface_model['subnet'] = ( + cluster_network_subnet_identity_model + ) - instance_cluster_network_attachment_prototype_instance_context_model = {} # InstanceClusterNetworkAttachmentPrototypeInstanceContext - instance_cluster_network_attachment_prototype_instance_context_model['cluster_network_interface'] = instance_cluster_network_attachment_prototype_cluster_network_interface_model + instance_cluster_network_attachment_prototype_instance_context_model = ( + {} + ) # InstanceClusterNetworkAttachmentPrototypeInstanceContext + instance_cluster_network_attachment_prototype_instance_context_model['cluster_network_interface'] = ( + instance_cluster_network_attachment_prototype_cluster_network_interface_model + ) instance_cluster_network_attachment_prototype_instance_context_model['name'] = 'my-instance-network-attachment' trusted_profile_identity_model = {} # TrustedProfileIdentityById @@ -98595,7 +112843,9 @@ def test_instance_template_prototype_instance_template_by_image_instance_templat instance_metadata_service_prototype_model['protocol'] = 'https' instance_metadata_service_prototype_model['response_hop_limit'] = 2 - instance_placement_target_prototype_model = {} # InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityById + instance_placement_target_prototype_model = ( + {} + ) # InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityById instance_placement_target_prototype_model['id'] = '0717-1e09281b-f177-46fb-baf1-bc152b2e391a' instance_profile_identity_model = {} # InstanceProfileIdentityByName @@ -98623,7 +112873,9 @@ def test_instance_template_prototype_instance_template_by_image_instance_templat vpc_identity_model['id'] = 'r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' encryption_key_identity_model = {} # EncryptionKeyIdentityByCRN - encryption_key_identity_model['crn'] = 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + encryption_key_identity_model['crn'] = ( + 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + ) volume_profile_identity_model = {} # VolumeProfileIdentityByName volume_profile_identity_model['name'] = 'general-purpose' @@ -98637,10 +112889,14 @@ def test_instance_template_prototype_instance_template_by_image_instance_templat volume_prototype_instance_by_image_context_model['resource_group'] = resource_group_identity_model volume_prototype_instance_by_image_context_model['user_tags'] = [] - volume_attachment_prototype_instance_by_image_context_model = {} # VolumeAttachmentPrototypeInstanceByImageContext + volume_attachment_prototype_instance_by_image_context_model = ( + {} + ) # VolumeAttachmentPrototypeInstanceByImageContext volume_attachment_prototype_instance_by_image_context_model['delete_volume_on_instance_delete'] = True volume_attachment_prototype_instance_by_image_context_model['name'] = 'my-volume-attachment' - volume_attachment_prototype_instance_by_image_context_model['volume'] = volume_prototype_instance_by_image_context_model + volume_attachment_prototype_instance_by_image_context_model['volume'] = ( + volume_prototype_instance_by_image_context_model + ) image_identity_model = {} # ImageIdentityById image_identity_model['id'] = 'r006-02c73baf-9abb-493d-9e41-d0f1866f4051' @@ -98648,12 +112904,16 @@ def test_instance_template_prototype_instance_template_by_image_instance_templat zone_identity_model = {} # ZoneIdentityByName zone_identity_model['name'] = 'us-south-1' - virtual_network_interface_ip_prototype_model = {} # VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext + virtual_network_interface_ip_prototype_model = ( + {} + ) # VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext virtual_network_interface_ip_prototype_model['address'] = '10.0.0.5' virtual_network_interface_ip_prototype_model['auto_delete'] = False virtual_network_interface_ip_prototype_model['name'] = 'my-reserved-ip' - virtual_network_interface_primary_ip_prototype_model = {} # VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext + virtual_network_interface_primary_ip_prototype_model = ( + {} + ) # VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext virtual_network_interface_primary_ip_prototype_model['address'] = '10.0.0.5' virtual_network_interface_primary_ip_prototype_model['auto_delete'] = False virtual_network_interface_primary_ip_prototype_model['name'] = 'my-reserved-ip' @@ -98664,60 +112924,141 @@ def test_instance_template_prototype_instance_template_by_image_instance_templat subnet_identity_model = {} # SubnetIdentityById subnet_identity_model['id'] = '7ec86020-1c6e-4889-b3f0-a15f2e50f87e' - instance_network_attachment_prototype_virtual_network_interface_model = {} # InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeInstanceNetworkAttachmentContext + instance_network_attachment_prototype_virtual_network_interface_model = ( + {} + ) # InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeInstanceNetworkAttachmentContext instance_network_attachment_prototype_virtual_network_interface_model['allow_ip_spoofing'] = True instance_network_attachment_prototype_virtual_network_interface_model['auto_delete'] = False instance_network_attachment_prototype_virtual_network_interface_model['enable_infrastructure_nat'] = True - instance_network_attachment_prototype_virtual_network_interface_model['ips'] = [virtual_network_interface_ip_prototype_model] + instance_network_attachment_prototype_virtual_network_interface_model['ips'] = [ + virtual_network_interface_ip_prototype_model + ] instance_network_attachment_prototype_virtual_network_interface_model['name'] = 'my-virtual-network-interface' - instance_network_attachment_prototype_virtual_network_interface_model['primary_ip'] = virtual_network_interface_primary_ip_prototype_model + instance_network_attachment_prototype_virtual_network_interface_model['primary_ip'] = ( + virtual_network_interface_primary_ip_prototype_model + ) instance_network_attachment_prototype_virtual_network_interface_model['protocol_state_filtering_mode'] = 'auto' - instance_network_attachment_prototype_virtual_network_interface_model['resource_group'] = resource_group_identity_model - instance_network_attachment_prototype_virtual_network_interface_model['security_groups'] = [security_group_identity_model] + instance_network_attachment_prototype_virtual_network_interface_model['resource_group'] = ( + resource_group_identity_model + ) + instance_network_attachment_prototype_virtual_network_interface_model['security_groups'] = [ + security_group_identity_model + ] instance_network_attachment_prototype_virtual_network_interface_model['subnet'] = subnet_identity_model instance_network_attachment_prototype_model = {} # InstanceNetworkAttachmentPrototype instance_network_attachment_prototype_model['name'] = 'my-instance-network-attachment' - instance_network_attachment_prototype_model['virtual_network_interface'] = instance_network_attachment_prototype_virtual_network_interface_model + instance_network_attachment_prototype_model['virtual_network_interface'] = ( + instance_network_attachment_prototype_virtual_network_interface_model + ) # Construct a json representation of a InstanceTemplatePrototypeInstanceTemplateByImageInstanceTemplateByImageInstanceByNetworkAttachment model - instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_attachment_model_json = {} - instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_attachment_model_json['availability_policy'] = instance_availability_policy_prototype_model - instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_attachment_model_json['cluster_network_attachments'] = [instance_cluster_network_attachment_prototype_instance_context_model] - instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_attachment_model_json['confidential_compute_mode'] = 'disabled' - instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_attachment_model_json['default_trusted_profile'] = instance_default_trusted_profile_prototype_model - instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_attachment_model_json['enable_secure_boot'] = True - instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_attachment_model_json['keys'] = [key_identity_model] - instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_attachment_model_json['metadata_service'] = instance_metadata_service_prototype_model - instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_attachment_model_json['name'] = 'my-instance' - instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_attachment_model_json['placement_target'] = instance_placement_target_prototype_model - instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_attachment_model_json['profile'] = instance_profile_identity_model - instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_attachment_model_json['reservation_affinity'] = instance_reservation_affinity_prototype_model - instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_attachment_model_json['resource_group'] = resource_group_identity_model - instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_attachment_model_json['total_volume_bandwidth'] = 500 - instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_attachment_model_json['user_data'] = 'testString' - instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_attachment_model_json['volume_attachments'] = [volume_attachment_prototype_model] - instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_attachment_model_json['vpc'] = vpc_identity_model - instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_attachment_model_json['boot_volume_attachment'] = volume_attachment_prototype_instance_by_image_context_model - instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_attachment_model_json['image'] = image_identity_model - instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_attachment_model_json['zone'] = zone_identity_model - instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_attachment_model_json['network_attachments'] = [instance_network_attachment_prototype_model] - instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_attachment_model_json['primary_network_attachment'] = instance_network_attachment_prototype_model + instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_attachment_model_json = ( + {} + ) + instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_attachment_model_json[ + 'availability_policy' + ] = instance_availability_policy_prototype_model + instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_attachment_model_json[ + 'cluster_network_attachments' + ] = [ + instance_cluster_network_attachment_prototype_instance_context_model + ] + instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_attachment_model_json[ + 'confidential_compute_mode' + ] = 'disabled' + instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_attachment_model_json[ + 'default_trusted_profile' + ] = instance_default_trusted_profile_prototype_model + instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_attachment_model_json[ + 'enable_secure_boot' + ] = True + instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_attachment_model_json[ + 'keys' + ] = [ + key_identity_model + ] + instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_attachment_model_json[ + 'metadata_service' + ] = instance_metadata_service_prototype_model + instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_attachment_model_json[ + 'name' + ] = 'my-instance' + instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_attachment_model_json[ + 'placement_target' + ] = instance_placement_target_prototype_model + instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_attachment_model_json[ + 'profile' + ] = instance_profile_identity_model + instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_attachment_model_json[ + 'reservation_affinity' + ] = instance_reservation_affinity_prototype_model + instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_attachment_model_json[ + 'resource_group' + ] = resource_group_identity_model + instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_attachment_model_json[ + 'total_volume_bandwidth' + ] = 500 + instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_attachment_model_json[ + 'user_data' + ] = 'testString' + instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_attachment_model_json[ + 'volume_attachments' + ] = [ + volume_attachment_prototype_model + ] + instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_attachment_model_json[ + 'vpc' + ] = vpc_identity_model + instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_attachment_model_json[ + 'boot_volume_attachment' + ] = volume_attachment_prototype_instance_by_image_context_model + instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_attachment_model_json[ + 'image' + ] = image_identity_model + instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_attachment_model_json[ + 'zone' + ] = zone_identity_model + instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_attachment_model_json[ + 'network_attachments' + ] = [ + instance_network_attachment_prototype_model + ] + instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_attachment_model_json[ + 'primary_network_attachment' + ] = instance_network_attachment_prototype_model # Construct a model instance of InstanceTemplatePrototypeInstanceTemplateByImageInstanceTemplateByImageInstanceByNetworkAttachment by calling from_dict on the json representation - instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_attachment_model = InstanceTemplatePrototypeInstanceTemplateByImageInstanceTemplateByImageInstanceByNetworkAttachment.from_dict(instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_attachment_model_json) - assert instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_attachment_model != False + instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_attachment_model = InstanceTemplatePrototypeInstanceTemplateByImageInstanceTemplateByImageInstanceByNetworkAttachment.from_dict( + instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_attachment_model_json + ) + assert ( + instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_attachment_model + != False + ) # Construct a model instance of InstanceTemplatePrototypeInstanceTemplateByImageInstanceTemplateByImageInstanceByNetworkAttachment by calling from_dict on the json representation - instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_attachment_model_dict = InstanceTemplatePrototypeInstanceTemplateByImageInstanceTemplateByImageInstanceByNetworkAttachment.from_dict(instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_attachment_model_json).__dict__ - instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_attachment_model2 = InstanceTemplatePrototypeInstanceTemplateByImageInstanceTemplateByImageInstanceByNetworkAttachment(**instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_attachment_model_dict) + instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_attachment_model_dict = InstanceTemplatePrototypeInstanceTemplateByImageInstanceTemplateByImageInstanceByNetworkAttachment.from_dict( + instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_attachment_model_json + ).__dict__ + instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_attachment_model2 = InstanceTemplatePrototypeInstanceTemplateByImageInstanceTemplateByImageInstanceByNetworkAttachment( + **instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_attachment_model_dict + ) # Verify the model instances are equivalent - assert instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_attachment_model == instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_attachment_model2 + assert ( + instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_attachment_model + == instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_attachment_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_attachment_model_json2 = instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_attachment_model.to_dict() - assert instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_attachment_model_json2 == instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_attachment_model_json + instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_attachment_model_json2 = ( + instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_attachment_model.to_dict() + ) + assert ( + instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_attachment_model_json2 + == instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_attachment_model_json + ) class TestModel_InstanceTemplatePrototypeInstanceTemplateByImageInstanceTemplateByImageInstanceByNetworkInterface: @@ -98725,7 +113066,9 @@ class TestModel_InstanceTemplatePrototypeInstanceTemplateByImageInstanceTemplate Test Class for InstanceTemplatePrototypeInstanceTemplateByImageInstanceTemplateByImageInstanceByNetworkInterface """ - def test_instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_interface_serialization(self): + def test_instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_interface_serialization( + self, + ): """ Test serialization/deserialization for InstanceTemplatePrototypeInstanceTemplateByImageInstanceTemplateByImageInstanceByNetworkInterface """ @@ -98735,7 +113078,9 @@ def test_instance_template_prototype_instance_template_by_image_instance_templat instance_availability_policy_prototype_model = {} # InstanceAvailabilityPolicyPrototype instance_availability_policy_prototype_model['host_failure'] = 'restart' - cluster_network_interface_primary_ip_prototype_model = {} # ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPPrototypeClusterNetworkInterfacePrimaryIPContext + cluster_network_interface_primary_ip_prototype_model = ( + {} + ) # ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPPrototypeClusterNetworkInterfacePrimaryIPContext cluster_network_interface_primary_ip_prototype_model['address'] = '10.0.0.5' cluster_network_interface_primary_ip_prototype_model['auto_delete'] = False cluster_network_interface_primary_ip_prototype_model['name'] = 'my-cluster-network-subnet-reserved-ip' @@ -98743,14 +113088,26 @@ def test_instance_template_prototype_instance_template_by_image_instance_templat cluster_network_subnet_identity_model = {} # ClusterNetworkSubnetIdentityById cluster_network_subnet_identity_model['id'] = '0717-7931845c-65c4-4b0a-80cd-7d9c1a6d7930' - instance_cluster_network_attachment_prototype_cluster_network_interface_model = {} # InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment + instance_cluster_network_attachment_prototype_cluster_network_interface_model = ( + {} + ) # InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment instance_cluster_network_attachment_prototype_cluster_network_interface_model['auto_delete'] = False - instance_cluster_network_attachment_prototype_cluster_network_interface_model['name'] = 'my-cluster-network-interface' - instance_cluster_network_attachment_prototype_cluster_network_interface_model['primary_ip'] = cluster_network_interface_primary_ip_prototype_model - instance_cluster_network_attachment_prototype_cluster_network_interface_model['subnet'] = cluster_network_subnet_identity_model + instance_cluster_network_attachment_prototype_cluster_network_interface_model['name'] = ( + 'my-cluster-network-interface' + ) + instance_cluster_network_attachment_prototype_cluster_network_interface_model['primary_ip'] = ( + cluster_network_interface_primary_ip_prototype_model + ) + instance_cluster_network_attachment_prototype_cluster_network_interface_model['subnet'] = ( + cluster_network_subnet_identity_model + ) - instance_cluster_network_attachment_prototype_instance_context_model = {} # InstanceClusterNetworkAttachmentPrototypeInstanceContext - instance_cluster_network_attachment_prototype_instance_context_model['cluster_network_interface'] = instance_cluster_network_attachment_prototype_cluster_network_interface_model + instance_cluster_network_attachment_prototype_instance_context_model = ( + {} + ) # InstanceClusterNetworkAttachmentPrototypeInstanceContext + instance_cluster_network_attachment_prototype_instance_context_model['cluster_network_interface'] = ( + instance_cluster_network_attachment_prototype_cluster_network_interface_model + ) instance_cluster_network_attachment_prototype_instance_context_model['name'] = 'my-instance-network-attachment' trusted_profile_identity_model = {} # TrustedProfileIdentityById @@ -98768,7 +113125,9 @@ def test_instance_template_prototype_instance_template_by_image_instance_templat instance_metadata_service_prototype_model['protocol'] = 'https' instance_metadata_service_prototype_model['response_hop_limit'] = 2 - instance_placement_target_prototype_model = {} # InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityById + instance_placement_target_prototype_model = ( + {} + ) # InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityById instance_placement_target_prototype_model['id'] = '0717-1e09281b-f177-46fb-baf1-bc152b2e391a' instance_profile_identity_model = {} # InstanceProfileIdentityByName @@ -98796,7 +113155,9 @@ def test_instance_template_prototype_instance_template_by_image_instance_templat vpc_identity_model['id'] = 'r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' encryption_key_identity_model = {} # EncryptionKeyIdentityByCRN - encryption_key_identity_model['crn'] = 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + encryption_key_identity_model['crn'] = ( + 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + ) volume_profile_identity_model = {} # VolumeProfileIdentityByName volume_profile_identity_model['name'] = 'general-purpose' @@ -98810,10 +113171,14 @@ def test_instance_template_prototype_instance_template_by_image_instance_templat volume_prototype_instance_by_image_context_model['resource_group'] = resource_group_identity_model volume_prototype_instance_by_image_context_model['user_tags'] = [] - volume_attachment_prototype_instance_by_image_context_model = {} # VolumeAttachmentPrototypeInstanceByImageContext + volume_attachment_prototype_instance_by_image_context_model = ( + {} + ) # VolumeAttachmentPrototypeInstanceByImageContext volume_attachment_prototype_instance_by_image_context_model['delete_volume_on_instance_delete'] = True volume_attachment_prototype_instance_by_image_context_model['name'] = 'my-volume-attachment' - volume_attachment_prototype_instance_by_image_context_model['volume'] = volume_prototype_instance_by_image_context_model + volume_attachment_prototype_instance_by_image_context_model['volume'] = ( + volume_prototype_instance_by_image_context_model + ) image_identity_model = {} # ImageIdentityById image_identity_model['id'] = 'r006-02c73baf-9abb-493d-9e41-d0f1866f4051' @@ -98821,7 +113186,9 @@ def test_instance_template_prototype_instance_template_by_image_instance_templat zone_identity_model = {} # ZoneIdentityByName zone_identity_model['name'] = 'us-south-1' - network_interface_ip_prototype_model = {} # NetworkInterfaceIPPrototypeReservedIPPrototypeNetworkInterfaceContext + network_interface_ip_prototype_model = ( + {} + ) # NetworkInterfaceIPPrototypeReservedIPPrototypeNetworkInterfaceContext network_interface_ip_prototype_model['address'] = '10.0.0.5' network_interface_ip_prototype_model['auto_delete'] = False network_interface_ip_prototype_model['name'] = 'my-reserved-ip' @@ -98840,43 +113207,112 @@ def test_instance_template_prototype_instance_template_by_image_instance_templat network_interface_prototype_model['subnet'] = subnet_identity_model # Construct a json representation of a InstanceTemplatePrototypeInstanceTemplateByImageInstanceTemplateByImageInstanceByNetworkInterface model - instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_interface_model_json = {} - instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_interface_model_json['availability_policy'] = instance_availability_policy_prototype_model - instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_interface_model_json['cluster_network_attachments'] = [instance_cluster_network_attachment_prototype_instance_context_model] - instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_interface_model_json['confidential_compute_mode'] = 'disabled' - instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_interface_model_json['default_trusted_profile'] = instance_default_trusted_profile_prototype_model - instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_interface_model_json['enable_secure_boot'] = True - instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_interface_model_json['keys'] = [key_identity_model] - instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_interface_model_json['metadata_service'] = instance_metadata_service_prototype_model - instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_interface_model_json['name'] = 'my-instance' - instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_interface_model_json['placement_target'] = instance_placement_target_prototype_model - instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_interface_model_json['profile'] = instance_profile_identity_model - instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_interface_model_json['reservation_affinity'] = instance_reservation_affinity_prototype_model - instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_interface_model_json['resource_group'] = resource_group_identity_model - instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_interface_model_json['total_volume_bandwidth'] = 500 - instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_interface_model_json['user_data'] = 'testString' - instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_interface_model_json['volume_attachments'] = [volume_attachment_prototype_model] - instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_interface_model_json['vpc'] = vpc_identity_model - instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_interface_model_json['boot_volume_attachment'] = volume_attachment_prototype_instance_by_image_context_model - instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_interface_model_json['image'] = image_identity_model - instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_interface_model_json['zone'] = zone_identity_model - instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_interface_model_json['network_interfaces'] = [network_interface_prototype_model] - instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_interface_model_json['primary_network_interface'] = network_interface_prototype_model + instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_interface_model_json = ( + {} + ) + instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_interface_model_json[ + 'availability_policy' + ] = instance_availability_policy_prototype_model + instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_interface_model_json[ + 'cluster_network_attachments' + ] = [ + instance_cluster_network_attachment_prototype_instance_context_model + ] + instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_interface_model_json[ + 'confidential_compute_mode' + ] = 'disabled' + instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_interface_model_json[ + 'default_trusted_profile' + ] = instance_default_trusted_profile_prototype_model + instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_interface_model_json[ + 'enable_secure_boot' + ] = True + instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_interface_model_json[ + 'keys' + ] = [ + key_identity_model + ] + instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_interface_model_json[ + 'metadata_service' + ] = instance_metadata_service_prototype_model + instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_interface_model_json[ + 'name' + ] = 'my-instance' + instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_interface_model_json[ + 'placement_target' + ] = instance_placement_target_prototype_model + instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_interface_model_json[ + 'profile' + ] = instance_profile_identity_model + instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_interface_model_json[ + 'reservation_affinity' + ] = instance_reservation_affinity_prototype_model + instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_interface_model_json[ + 'resource_group' + ] = resource_group_identity_model + instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_interface_model_json[ + 'total_volume_bandwidth' + ] = 500 + instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_interface_model_json[ + 'user_data' + ] = 'testString' + instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_interface_model_json[ + 'volume_attachments' + ] = [ + volume_attachment_prototype_model + ] + instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_interface_model_json[ + 'vpc' + ] = vpc_identity_model + instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_interface_model_json[ + 'boot_volume_attachment' + ] = volume_attachment_prototype_instance_by_image_context_model + instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_interface_model_json[ + 'image' + ] = image_identity_model + instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_interface_model_json[ + 'zone' + ] = zone_identity_model + instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_interface_model_json[ + 'network_interfaces' + ] = [ + network_interface_prototype_model + ] + instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_interface_model_json[ + 'primary_network_interface' + ] = network_interface_prototype_model # Construct a model instance of InstanceTemplatePrototypeInstanceTemplateByImageInstanceTemplateByImageInstanceByNetworkInterface by calling from_dict on the json representation - instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_interface_model = InstanceTemplatePrototypeInstanceTemplateByImageInstanceTemplateByImageInstanceByNetworkInterface.from_dict(instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_interface_model_json) - assert instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_interface_model != False + instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_interface_model = InstanceTemplatePrototypeInstanceTemplateByImageInstanceTemplateByImageInstanceByNetworkInterface.from_dict( + instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_interface_model_json + ) + assert ( + instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_interface_model + != False + ) # Construct a model instance of InstanceTemplatePrototypeInstanceTemplateByImageInstanceTemplateByImageInstanceByNetworkInterface by calling from_dict on the json representation - instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_interface_model_dict = InstanceTemplatePrototypeInstanceTemplateByImageInstanceTemplateByImageInstanceByNetworkInterface.from_dict(instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_interface_model_json).__dict__ - instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_interface_model2 = InstanceTemplatePrototypeInstanceTemplateByImageInstanceTemplateByImageInstanceByNetworkInterface(**instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_interface_model_dict) + instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_interface_model_dict = InstanceTemplatePrototypeInstanceTemplateByImageInstanceTemplateByImageInstanceByNetworkInterface.from_dict( + instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_interface_model_json + ).__dict__ + instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_interface_model2 = InstanceTemplatePrototypeInstanceTemplateByImageInstanceTemplateByImageInstanceByNetworkInterface( + **instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_interface_model_dict + ) # Verify the model instances are equivalent - assert instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_interface_model == instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_interface_model2 + assert ( + instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_interface_model + == instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_interface_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_interface_model_json2 = instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_interface_model.to_dict() - assert instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_interface_model_json2 == instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_interface_model_json + instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_interface_model_json2 = ( + instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_interface_model.to_dict() + ) + assert ( + instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_interface_model_json2 + == instance_template_prototype_instance_template_by_image_instance_template_by_image_instance_by_network_interface_model_json + ) class TestModel_InstanceTemplatePrototypeInstanceTemplateBySourceSnapshotInstanceTemplateBySourceSnapshotInstanceByNetworkAttachment: @@ -98884,7 +113320,9 @@ class TestModel_InstanceTemplatePrototypeInstanceTemplateBySourceSnapshotInstanc Test Class for InstanceTemplatePrototypeInstanceTemplateBySourceSnapshotInstanceTemplateBySourceSnapshotInstanceByNetworkAttachment """ - def test_instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_attachment_serialization(self): + def test_instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_attachment_serialization( + self, + ): """ Test serialization/deserialization for InstanceTemplatePrototypeInstanceTemplateBySourceSnapshotInstanceTemplateBySourceSnapshotInstanceByNetworkAttachment """ @@ -98894,7 +113332,9 @@ def test_instance_template_prototype_instance_template_by_source_snapshot_instan instance_availability_policy_prototype_model = {} # InstanceAvailabilityPolicyPrototype instance_availability_policy_prototype_model['host_failure'] = 'restart' - cluster_network_interface_primary_ip_prototype_model = {} # ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPPrototypeClusterNetworkInterfacePrimaryIPContext + cluster_network_interface_primary_ip_prototype_model = ( + {} + ) # ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPPrototypeClusterNetworkInterfacePrimaryIPContext cluster_network_interface_primary_ip_prototype_model['address'] = '10.0.0.5' cluster_network_interface_primary_ip_prototype_model['auto_delete'] = False cluster_network_interface_primary_ip_prototype_model['name'] = 'my-cluster-network-subnet-reserved-ip' @@ -98902,14 +113342,26 @@ def test_instance_template_prototype_instance_template_by_source_snapshot_instan cluster_network_subnet_identity_model = {} # ClusterNetworkSubnetIdentityById cluster_network_subnet_identity_model['id'] = '0717-7931845c-65c4-4b0a-80cd-7d9c1a6d7930' - instance_cluster_network_attachment_prototype_cluster_network_interface_model = {} # InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment + instance_cluster_network_attachment_prototype_cluster_network_interface_model = ( + {} + ) # InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment instance_cluster_network_attachment_prototype_cluster_network_interface_model['auto_delete'] = False - instance_cluster_network_attachment_prototype_cluster_network_interface_model['name'] = 'my-cluster-network-interface' - instance_cluster_network_attachment_prototype_cluster_network_interface_model['primary_ip'] = cluster_network_interface_primary_ip_prototype_model - instance_cluster_network_attachment_prototype_cluster_network_interface_model['subnet'] = cluster_network_subnet_identity_model + instance_cluster_network_attachment_prototype_cluster_network_interface_model['name'] = ( + 'my-cluster-network-interface' + ) + instance_cluster_network_attachment_prototype_cluster_network_interface_model['primary_ip'] = ( + cluster_network_interface_primary_ip_prototype_model + ) + instance_cluster_network_attachment_prototype_cluster_network_interface_model['subnet'] = ( + cluster_network_subnet_identity_model + ) - instance_cluster_network_attachment_prototype_instance_context_model = {} # InstanceClusterNetworkAttachmentPrototypeInstanceContext - instance_cluster_network_attachment_prototype_instance_context_model['cluster_network_interface'] = instance_cluster_network_attachment_prototype_cluster_network_interface_model + instance_cluster_network_attachment_prototype_instance_context_model = ( + {} + ) # InstanceClusterNetworkAttachmentPrototypeInstanceContext + instance_cluster_network_attachment_prototype_instance_context_model['cluster_network_interface'] = ( + instance_cluster_network_attachment_prototype_cluster_network_interface_model + ) instance_cluster_network_attachment_prototype_instance_context_model['name'] = 'my-instance-network-attachment' trusted_profile_identity_model = {} # TrustedProfileIdentityById @@ -98927,7 +113379,9 @@ def test_instance_template_prototype_instance_template_by_source_snapshot_instan instance_metadata_service_prototype_model['protocol'] = 'https' instance_metadata_service_prototype_model['response_hop_limit'] = 2 - instance_placement_target_prototype_model = {} # InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityById + instance_placement_target_prototype_model = ( + {} + ) # InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityById instance_placement_target_prototype_model['id'] = '0717-1e09281b-f177-46fb-baf1-bc152b2e391a' instance_profile_identity_model = {} # InstanceProfileIdentityByName @@ -98955,7 +113409,9 @@ def test_instance_template_prototype_instance_template_by_source_snapshot_instan vpc_identity_model['id'] = 'r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' encryption_key_identity_model = {} # EncryptionKeyIdentityByCRN - encryption_key_identity_model['crn'] = 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + encryption_key_identity_model['crn'] = ( + 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + ) volume_profile_identity_model = {} # VolumeProfileIdentityByName volume_profile_identity_model['name'] = 'general-purpose' @@ -98963,7 +113419,9 @@ def test_instance_template_prototype_instance_template_by_source_snapshot_instan snapshot_identity_model = {} # SnapshotIdentityById snapshot_identity_model['id'] = 'r134-f6bfa329-0e36-433f-a3bb-0df632e79263' - volume_prototype_instance_by_source_snapshot_context_model = {} # VolumePrototypeInstanceBySourceSnapshotContext + volume_prototype_instance_by_source_snapshot_context_model = ( + {} + ) # VolumePrototypeInstanceBySourceSnapshotContext volume_prototype_instance_by_source_snapshot_context_model['capacity'] = 100 volume_prototype_instance_by_source_snapshot_context_model['encryption_key'] = encryption_key_identity_model volume_prototype_instance_by_source_snapshot_context_model['iops'] = 10000 @@ -98973,20 +113431,28 @@ def test_instance_template_prototype_instance_template_by_source_snapshot_instan volume_prototype_instance_by_source_snapshot_context_model['source_snapshot'] = snapshot_identity_model volume_prototype_instance_by_source_snapshot_context_model['user_tags'] = [] - volume_attachment_prototype_instance_by_source_snapshot_context_model = {} # VolumeAttachmentPrototypeInstanceBySourceSnapshotContext + volume_attachment_prototype_instance_by_source_snapshot_context_model = ( + {} + ) # VolumeAttachmentPrototypeInstanceBySourceSnapshotContext volume_attachment_prototype_instance_by_source_snapshot_context_model['delete_volume_on_instance_delete'] = True volume_attachment_prototype_instance_by_source_snapshot_context_model['name'] = 'my-volume-attachment' - volume_attachment_prototype_instance_by_source_snapshot_context_model['volume'] = volume_prototype_instance_by_source_snapshot_context_model + volume_attachment_prototype_instance_by_source_snapshot_context_model['volume'] = ( + volume_prototype_instance_by_source_snapshot_context_model + ) zone_identity_model = {} # ZoneIdentityByName zone_identity_model['name'] = 'us-south-1' - virtual_network_interface_ip_prototype_model = {} # VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext + virtual_network_interface_ip_prototype_model = ( + {} + ) # VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext virtual_network_interface_ip_prototype_model['address'] = '10.0.0.5' virtual_network_interface_ip_prototype_model['auto_delete'] = False virtual_network_interface_ip_prototype_model['name'] = 'my-reserved-ip' - virtual_network_interface_primary_ip_prototype_model = {} # VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext + virtual_network_interface_primary_ip_prototype_model = ( + {} + ) # VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext virtual_network_interface_primary_ip_prototype_model['address'] = '10.0.0.5' virtual_network_interface_primary_ip_prototype_model['auto_delete'] = False virtual_network_interface_primary_ip_prototype_model['name'] = 'my-reserved-ip' @@ -98997,59 +113463,138 @@ def test_instance_template_prototype_instance_template_by_source_snapshot_instan subnet_identity_model = {} # SubnetIdentityById subnet_identity_model['id'] = '7ec86020-1c6e-4889-b3f0-a15f2e50f87e' - instance_network_attachment_prototype_virtual_network_interface_model = {} # InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeInstanceNetworkAttachmentContext + instance_network_attachment_prototype_virtual_network_interface_model = ( + {} + ) # InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeInstanceNetworkAttachmentContext instance_network_attachment_prototype_virtual_network_interface_model['allow_ip_spoofing'] = True instance_network_attachment_prototype_virtual_network_interface_model['auto_delete'] = False instance_network_attachment_prototype_virtual_network_interface_model['enable_infrastructure_nat'] = True - instance_network_attachment_prototype_virtual_network_interface_model['ips'] = [virtual_network_interface_ip_prototype_model] + instance_network_attachment_prototype_virtual_network_interface_model['ips'] = [ + virtual_network_interface_ip_prototype_model + ] instance_network_attachment_prototype_virtual_network_interface_model['name'] = 'my-virtual-network-interface' - instance_network_attachment_prototype_virtual_network_interface_model['primary_ip'] = virtual_network_interface_primary_ip_prototype_model + instance_network_attachment_prototype_virtual_network_interface_model['primary_ip'] = ( + virtual_network_interface_primary_ip_prototype_model + ) instance_network_attachment_prototype_virtual_network_interface_model['protocol_state_filtering_mode'] = 'auto' - instance_network_attachment_prototype_virtual_network_interface_model['resource_group'] = resource_group_identity_model - instance_network_attachment_prototype_virtual_network_interface_model['security_groups'] = [security_group_identity_model] + instance_network_attachment_prototype_virtual_network_interface_model['resource_group'] = ( + resource_group_identity_model + ) + instance_network_attachment_prototype_virtual_network_interface_model['security_groups'] = [ + security_group_identity_model + ] instance_network_attachment_prototype_virtual_network_interface_model['subnet'] = subnet_identity_model instance_network_attachment_prototype_model = {} # InstanceNetworkAttachmentPrototype instance_network_attachment_prototype_model['name'] = 'my-instance-network-attachment' - instance_network_attachment_prototype_model['virtual_network_interface'] = instance_network_attachment_prototype_virtual_network_interface_model + instance_network_attachment_prototype_model['virtual_network_interface'] = ( + instance_network_attachment_prototype_virtual_network_interface_model + ) # Construct a json representation of a InstanceTemplatePrototypeInstanceTemplateBySourceSnapshotInstanceTemplateBySourceSnapshotInstanceByNetworkAttachment model - instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_attachment_model_json = {} - instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_attachment_model_json['availability_policy'] = instance_availability_policy_prototype_model - instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_attachment_model_json['cluster_network_attachments'] = [instance_cluster_network_attachment_prototype_instance_context_model] - instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_attachment_model_json['confidential_compute_mode'] = 'disabled' - instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_attachment_model_json['default_trusted_profile'] = instance_default_trusted_profile_prototype_model - instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_attachment_model_json['enable_secure_boot'] = True - instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_attachment_model_json['keys'] = [key_identity_model] - instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_attachment_model_json['metadata_service'] = instance_metadata_service_prototype_model - instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_attachment_model_json['name'] = 'my-instance' - instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_attachment_model_json['placement_target'] = instance_placement_target_prototype_model - instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_attachment_model_json['profile'] = instance_profile_identity_model - instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_attachment_model_json['reservation_affinity'] = instance_reservation_affinity_prototype_model - instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_attachment_model_json['resource_group'] = resource_group_identity_model - instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_attachment_model_json['total_volume_bandwidth'] = 500 - instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_attachment_model_json['user_data'] = 'testString' - instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_attachment_model_json['volume_attachments'] = [volume_attachment_prototype_model] - instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_attachment_model_json['vpc'] = vpc_identity_model - instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_attachment_model_json['boot_volume_attachment'] = volume_attachment_prototype_instance_by_source_snapshot_context_model - instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_attachment_model_json['zone'] = zone_identity_model - instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_attachment_model_json['network_attachments'] = [instance_network_attachment_prototype_model] - instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_attachment_model_json['primary_network_attachment'] = instance_network_attachment_prototype_model + instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_attachment_model_json = ( + {} + ) + instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_attachment_model_json[ + 'availability_policy' + ] = instance_availability_policy_prototype_model + instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_attachment_model_json[ + 'cluster_network_attachments' + ] = [ + instance_cluster_network_attachment_prototype_instance_context_model + ] + instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_attachment_model_json[ + 'confidential_compute_mode' + ] = 'disabled' + instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_attachment_model_json[ + 'default_trusted_profile' + ] = instance_default_trusted_profile_prototype_model + instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_attachment_model_json[ + 'enable_secure_boot' + ] = True + instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_attachment_model_json[ + 'keys' + ] = [ + key_identity_model + ] + instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_attachment_model_json[ + 'metadata_service' + ] = instance_metadata_service_prototype_model + instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_attachment_model_json[ + 'name' + ] = 'my-instance' + instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_attachment_model_json[ + 'placement_target' + ] = instance_placement_target_prototype_model + instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_attachment_model_json[ + 'profile' + ] = instance_profile_identity_model + instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_attachment_model_json[ + 'reservation_affinity' + ] = instance_reservation_affinity_prototype_model + instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_attachment_model_json[ + 'resource_group' + ] = resource_group_identity_model + instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_attachment_model_json[ + 'total_volume_bandwidth' + ] = 500 + instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_attachment_model_json[ + 'user_data' + ] = 'testString' + instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_attachment_model_json[ + 'volume_attachments' + ] = [ + volume_attachment_prototype_model + ] + instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_attachment_model_json[ + 'vpc' + ] = vpc_identity_model + instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_attachment_model_json[ + 'boot_volume_attachment' + ] = volume_attachment_prototype_instance_by_source_snapshot_context_model + instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_attachment_model_json[ + 'zone' + ] = zone_identity_model + instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_attachment_model_json[ + 'network_attachments' + ] = [ + instance_network_attachment_prototype_model + ] + instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_attachment_model_json[ + 'primary_network_attachment' + ] = instance_network_attachment_prototype_model # Construct a model instance of InstanceTemplatePrototypeInstanceTemplateBySourceSnapshotInstanceTemplateBySourceSnapshotInstanceByNetworkAttachment by calling from_dict on the json representation - instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_attachment_model = InstanceTemplatePrototypeInstanceTemplateBySourceSnapshotInstanceTemplateBySourceSnapshotInstanceByNetworkAttachment.from_dict(instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_attachment_model_json) - assert instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_attachment_model != False + instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_attachment_model = InstanceTemplatePrototypeInstanceTemplateBySourceSnapshotInstanceTemplateBySourceSnapshotInstanceByNetworkAttachment.from_dict( + instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_attachment_model_json + ) + assert ( + instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_attachment_model + != False + ) # Construct a model instance of InstanceTemplatePrototypeInstanceTemplateBySourceSnapshotInstanceTemplateBySourceSnapshotInstanceByNetworkAttachment by calling from_dict on the json representation - instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_attachment_model_dict = InstanceTemplatePrototypeInstanceTemplateBySourceSnapshotInstanceTemplateBySourceSnapshotInstanceByNetworkAttachment.from_dict(instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_attachment_model_json).__dict__ - instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_attachment_model2 = InstanceTemplatePrototypeInstanceTemplateBySourceSnapshotInstanceTemplateBySourceSnapshotInstanceByNetworkAttachment(**instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_attachment_model_dict) + instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_attachment_model_dict = InstanceTemplatePrototypeInstanceTemplateBySourceSnapshotInstanceTemplateBySourceSnapshotInstanceByNetworkAttachment.from_dict( + instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_attachment_model_json + ).__dict__ + instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_attachment_model2 = InstanceTemplatePrototypeInstanceTemplateBySourceSnapshotInstanceTemplateBySourceSnapshotInstanceByNetworkAttachment( + **instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_attachment_model_dict + ) # Verify the model instances are equivalent - assert instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_attachment_model == instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_attachment_model2 + assert ( + instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_attachment_model + == instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_attachment_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_attachment_model_json2 = instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_attachment_model.to_dict() - assert instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_attachment_model_json2 == instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_attachment_model_json + instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_attachment_model_json2 = ( + instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_attachment_model.to_dict() + ) + assert ( + instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_attachment_model_json2 + == instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_attachment_model_json + ) class TestModel_InstanceTemplatePrototypeInstanceTemplateBySourceSnapshotInstanceTemplateBySourceSnapshotInstanceByNetworkInterface: @@ -99057,7 +113602,9 @@ class TestModel_InstanceTemplatePrototypeInstanceTemplateBySourceSnapshotInstanc Test Class for InstanceTemplatePrototypeInstanceTemplateBySourceSnapshotInstanceTemplateBySourceSnapshotInstanceByNetworkInterface """ - def test_instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_interface_serialization(self): + def test_instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_interface_serialization( + self, + ): """ Test serialization/deserialization for InstanceTemplatePrototypeInstanceTemplateBySourceSnapshotInstanceTemplateBySourceSnapshotInstanceByNetworkInterface """ @@ -99067,7 +113614,9 @@ def test_instance_template_prototype_instance_template_by_source_snapshot_instan instance_availability_policy_prototype_model = {} # InstanceAvailabilityPolicyPrototype instance_availability_policy_prototype_model['host_failure'] = 'restart' - cluster_network_interface_primary_ip_prototype_model = {} # ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPPrototypeClusterNetworkInterfacePrimaryIPContext + cluster_network_interface_primary_ip_prototype_model = ( + {} + ) # ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPPrototypeClusterNetworkInterfacePrimaryIPContext cluster_network_interface_primary_ip_prototype_model['address'] = '10.0.0.5' cluster_network_interface_primary_ip_prototype_model['auto_delete'] = False cluster_network_interface_primary_ip_prototype_model['name'] = 'my-cluster-network-subnet-reserved-ip' @@ -99075,14 +113624,26 @@ def test_instance_template_prototype_instance_template_by_source_snapshot_instan cluster_network_subnet_identity_model = {} # ClusterNetworkSubnetIdentityById cluster_network_subnet_identity_model['id'] = '0717-7931845c-65c4-4b0a-80cd-7d9c1a6d7930' - instance_cluster_network_attachment_prototype_cluster_network_interface_model = {} # InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment + instance_cluster_network_attachment_prototype_cluster_network_interface_model = ( + {} + ) # InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment instance_cluster_network_attachment_prototype_cluster_network_interface_model['auto_delete'] = False - instance_cluster_network_attachment_prototype_cluster_network_interface_model['name'] = 'my-cluster-network-interface' - instance_cluster_network_attachment_prototype_cluster_network_interface_model['primary_ip'] = cluster_network_interface_primary_ip_prototype_model - instance_cluster_network_attachment_prototype_cluster_network_interface_model['subnet'] = cluster_network_subnet_identity_model + instance_cluster_network_attachment_prototype_cluster_network_interface_model['name'] = ( + 'my-cluster-network-interface' + ) + instance_cluster_network_attachment_prototype_cluster_network_interface_model['primary_ip'] = ( + cluster_network_interface_primary_ip_prototype_model + ) + instance_cluster_network_attachment_prototype_cluster_network_interface_model['subnet'] = ( + cluster_network_subnet_identity_model + ) - instance_cluster_network_attachment_prototype_instance_context_model = {} # InstanceClusterNetworkAttachmentPrototypeInstanceContext - instance_cluster_network_attachment_prototype_instance_context_model['cluster_network_interface'] = instance_cluster_network_attachment_prototype_cluster_network_interface_model + instance_cluster_network_attachment_prototype_instance_context_model = ( + {} + ) # InstanceClusterNetworkAttachmentPrototypeInstanceContext + instance_cluster_network_attachment_prototype_instance_context_model['cluster_network_interface'] = ( + instance_cluster_network_attachment_prototype_cluster_network_interface_model + ) instance_cluster_network_attachment_prototype_instance_context_model['name'] = 'my-instance-network-attachment' trusted_profile_identity_model = {} # TrustedProfileIdentityById @@ -99100,7 +113661,9 @@ def test_instance_template_prototype_instance_template_by_source_snapshot_instan instance_metadata_service_prototype_model['protocol'] = 'https' instance_metadata_service_prototype_model['response_hop_limit'] = 2 - instance_placement_target_prototype_model = {} # InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityById + instance_placement_target_prototype_model = ( + {} + ) # InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityById instance_placement_target_prototype_model['id'] = '0717-1e09281b-f177-46fb-baf1-bc152b2e391a' instance_profile_identity_model = {} # InstanceProfileIdentityByName @@ -99128,7 +113691,9 @@ def test_instance_template_prototype_instance_template_by_source_snapshot_instan vpc_identity_model['id'] = 'r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' encryption_key_identity_model = {} # EncryptionKeyIdentityByCRN - encryption_key_identity_model['crn'] = 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + encryption_key_identity_model['crn'] = ( + 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + ) volume_profile_identity_model = {} # VolumeProfileIdentityByName volume_profile_identity_model['name'] = 'general-purpose' @@ -99136,7 +113701,9 @@ def test_instance_template_prototype_instance_template_by_source_snapshot_instan snapshot_identity_model = {} # SnapshotIdentityById snapshot_identity_model['id'] = 'r134-f6bfa329-0e36-433f-a3bb-0df632e79263' - volume_prototype_instance_by_source_snapshot_context_model = {} # VolumePrototypeInstanceBySourceSnapshotContext + volume_prototype_instance_by_source_snapshot_context_model = ( + {} + ) # VolumePrototypeInstanceBySourceSnapshotContext volume_prototype_instance_by_source_snapshot_context_model['capacity'] = 100 volume_prototype_instance_by_source_snapshot_context_model['encryption_key'] = encryption_key_identity_model volume_prototype_instance_by_source_snapshot_context_model['iops'] = 10000 @@ -99146,15 +113713,21 @@ def test_instance_template_prototype_instance_template_by_source_snapshot_instan volume_prototype_instance_by_source_snapshot_context_model['source_snapshot'] = snapshot_identity_model volume_prototype_instance_by_source_snapshot_context_model['user_tags'] = [] - volume_attachment_prototype_instance_by_source_snapshot_context_model = {} # VolumeAttachmentPrototypeInstanceBySourceSnapshotContext + volume_attachment_prototype_instance_by_source_snapshot_context_model = ( + {} + ) # VolumeAttachmentPrototypeInstanceBySourceSnapshotContext volume_attachment_prototype_instance_by_source_snapshot_context_model['delete_volume_on_instance_delete'] = True volume_attachment_prototype_instance_by_source_snapshot_context_model['name'] = 'my-volume-attachment' - volume_attachment_prototype_instance_by_source_snapshot_context_model['volume'] = volume_prototype_instance_by_source_snapshot_context_model + volume_attachment_prototype_instance_by_source_snapshot_context_model['volume'] = ( + volume_prototype_instance_by_source_snapshot_context_model + ) zone_identity_model = {} # ZoneIdentityByName zone_identity_model['name'] = 'us-south-1' - network_interface_ip_prototype_model = {} # NetworkInterfaceIPPrototypeReservedIPPrototypeNetworkInterfaceContext + network_interface_ip_prototype_model = ( + {} + ) # NetworkInterfaceIPPrototypeReservedIPPrototypeNetworkInterfaceContext network_interface_ip_prototype_model['address'] = '10.0.0.5' network_interface_ip_prototype_model['auto_delete'] = False network_interface_ip_prototype_model['name'] = 'my-reserved-ip' @@ -99173,42 +113746,109 @@ def test_instance_template_prototype_instance_template_by_source_snapshot_instan network_interface_prototype_model['subnet'] = subnet_identity_model # Construct a json representation of a InstanceTemplatePrototypeInstanceTemplateBySourceSnapshotInstanceTemplateBySourceSnapshotInstanceByNetworkInterface model - instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_interface_model_json = {} - instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_interface_model_json['availability_policy'] = instance_availability_policy_prototype_model - instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_interface_model_json['cluster_network_attachments'] = [instance_cluster_network_attachment_prototype_instance_context_model] - instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_interface_model_json['confidential_compute_mode'] = 'disabled' - instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_interface_model_json['default_trusted_profile'] = instance_default_trusted_profile_prototype_model - instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_interface_model_json['enable_secure_boot'] = True - instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_interface_model_json['keys'] = [key_identity_model] - instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_interface_model_json['metadata_service'] = instance_metadata_service_prototype_model - instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_interface_model_json['name'] = 'my-instance' - instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_interface_model_json['placement_target'] = instance_placement_target_prototype_model - instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_interface_model_json['profile'] = instance_profile_identity_model - instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_interface_model_json['reservation_affinity'] = instance_reservation_affinity_prototype_model - instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_interface_model_json['resource_group'] = resource_group_identity_model - instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_interface_model_json['total_volume_bandwidth'] = 500 - instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_interface_model_json['user_data'] = 'testString' - instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_interface_model_json['volume_attachments'] = [volume_attachment_prototype_model] - instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_interface_model_json['vpc'] = vpc_identity_model - instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_interface_model_json['boot_volume_attachment'] = volume_attachment_prototype_instance_by_source_snapshot_context_model - instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_interface_model_json['zone'] = zone_identity_model - instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_interface_model_json['network_interfaces'] = [network_interface_prototype_model] - instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_interface_model_json['primary_network_interface'] = network_interface_prototype_model + instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_interface_model_json = ( + {} + ) + instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_interface_model_json[ + 'availability_policy' + ] = instance_availability_policy_prototype_model + instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_interface_model_json[ + 'cluster_network_attachments' + ] = [ + instance_cluster_network_attachment_prototype_instance_context_model + ] + instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_interface_model_json[ + 'confidential_compute_mode' + ] = 'disabled' + instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_interface_model_json[ + 'default_trusted_profile' + ] = instance_default_trusted_profile_prototype_model + instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_interface_model_json[ + 'enable_secure_boot' + ] = True + instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_interface_model_json[ + 'keys' + ] = [ + key_identity_model + ] + instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_interface_model_json[ + 'metadata_service' + ] = instance_metadata_service_prototype_model + instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_interface_model_json[ + 'name' + ] = 'my-instance' + instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_interface_model_json[ + 'placement_target' + ] = instance_placement_target_prototype_model + instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_interface_model_json[ + 'profile' + ] = instance_profile_identity_model + instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_interface_model_json[ + 'reservation_affinity' + ] = instance_reservation_affinity_prototype_model + instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_interface_model_json[ + 'resource_group' + ] = resource_group_identity_model + instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_interface_model_json[ + 'total_volume_bandwidth' + ] = 500 + instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_interface_model_json[ + 'user_data' + ] = 'testString' + instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_interface_model_json[ + 'volume_attachments' + ] = [ + volume_attachment_prototype_model + ] + instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_interface_model_json[ + 'vpc' + ] = vpc_identity_model + instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_interface_model_json[ + 'boot_volume_attachment' + ] = volume_attachment_prototype_instance_by_source_snapshot_context_model + instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_interface_model_json[ + 'zone' + ] = zone_identity_model + instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_interface_model_json[ + 'network_interfaces' + ] = [ + network_interface_prototype_model + ] + instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_interface_model_json[ + 'primary_network_interface' + ] = network_interface_prototype_model # Construct a model instance of InstanceTemplatePrototypeInstanceTemplateBySourceSnapshotInstanceTemplateBySourceSnapshotInstanceByNetworkInterface by calling from_dict on the json representation - instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_interface_model = InstanceTemplatePrototypeInstanceTemplateBySourceSnapshotInstanceTemplateBySourceSnapshotInstanceByNetworkInterface.from_dict(instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_interface_model_json) - assert instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_interface_model != False + instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_interface_model = InstanceTemplatePrototypeInstanceTemplateBySourceSnapshotInstanceTemplateBySourceSnapshotInstanceByNetworkInterface.from_dict( + instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_interface_model_json + ) + assert ( + instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_interface_model + != False + ) # Construct a model instance of InstanceTemplatePrototypeInstanceTemplateBySourceSnapshotInstanceTemplateBySourceSnapshotInstanceByNetworkInterface by calling from_dict on the json representation - instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_interface_model_dict = InstanceTemplatePrototypeInstanceTemplateBySourceSnapshotInstanceTemplateBySourceSnapshotInstanceByNetworkInterface.from_dict(instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_interface_model_json).__dict__ - instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_interface_model2 = InstanceTemplatePrototypeInstanceTemplateBySourceSnapshotInstanceTemplateBySourceSnapshotInstanceByNetworkInterface(**instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_interface_model_dict) + instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_interface_model_dict = InstanceTemplatePrototypeInstanceTemplateBySourceSnapshotInstanceTemplateBySourceSnapshotInstanceByNetworkInterface.from_dict( + instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_interface_model_json + ).__dict__ + instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_interface_model2 = InstanceTemplatePrototypeInstanceTemplateBySourceSnapshotInstanceTemplateBySourceSnapshotInstanceByNetworkInterface( + **instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_interface_model_dict + ) # Verify the model instances are equivalent - assert instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_interface_model == instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_interface_model2 + assert ( + instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_interface_model + == instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_interface_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_interface_model_json2 = instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_interface_model.to_dict() - assert instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_interface_model_json2 == instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_interface_model_json + instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_interface_model_json2 = ( + instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_interface_model.to_dict() + ) + assert ( + instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_interface_model_json2 + == instance_template_prototype_instance_template_by_source_snapshot_instance_template_by_source_snapshot_instance_by_network_interface_model_json + ) class TestModel_InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkAttachment: @@ -99216,7 +113856,9 @@ class TestModel_InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContext Test Class for InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkAttachment """ - def test_instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_serialization(self): + def test_instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_serialization( + self, + ): """ Test serialization/deserialization for InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkAttachment """ @@ -99226,7 +113868,9 @@ def test_instance_template_instance_by_catalog_offering_instance_template_contex instance_availability_policy_prototype_model = {} # InstanceAvailabilityPolicyPrototype instance_availability_policy_prototype_model['host_failure'] = 'restart' - cluster_network_interface_primary_ip_prototype_model = {} # ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPPrototypeClusterNetworkInterfacePrimaryIPContext + cluster_network_interface_primary_ip_prototype_model = ( + {} + ) # ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPPrototypeClusterNetworkInterfacePrimaryIPContext cluster_network_interface_primary_ip_prototype_model['address'] = '10.0.0.5' cluster_network_interface_primary_ip_prototype_model['auto_delete'] = False cluster_network_interface_primary_ip_prototype_model['name'] = 'my-cluster-network-subnet-reserved-ip' @@ -99234,14 +113878,26 @@ def test_instance_template_instance_by_catalog_offering_instance_template_contex cluster_network_subnet_identity_model = {} # ClusterNetworkSubnetIdentityById cluster_network_subnet_identity_model['id'] = '0717-7931845c-65c4-4b0a-80cd-7d9c1a6d7930' - instance_cluster_network_attachment_prototype_cluster_network_interface_model = {} # InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment + instance_cluster_network_attachment_prototype_cluster_network_interface_model = ( + {} + ) # InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment instance_cluster_network_attachment_prototype_cluster_network_interface_model['auto_delete'] = False - instance_cluster_network_attachment_prototype_cluster_network_interface_model['name'] = 'my-cluster-network-interface' - instance_cluster_network_attachment_prototype_cluster_network_interface_model['primary_ip'] = cluster_network_interface_primary_ip_prototype_model - instance_cluster_network_attachment_prototype_cluster_network_interface_model['subnet'] = cluster_network_subnet_identity_model + instance_cluster_network_attachment_prototype_cluster_network_interface_model['name'] = ( + 'my-cluster-network-interface' + ) + instance_cluster_network_attachment_prototype_cluster_network_interface_model['primary_ip'] = ( + cluster_network_interface_primary_ip_prototype_model + ) + instance_cluster_network_attachment_prototype_cluster_network_interface_model['subnet'] = ( + cluster_network_subnet_identity_model + ) - instance_cluster_network_attachment_prototype_instance_context_model = {} # InstanceClusterNetworkAttachmentPrototypeInstanceContext - instance_cluster_network_attachment_prototype_instance_context_model['cluster_network_interface'] = instance_cluster_network_attachment_prototype_cluster_network_interface_model + instance_cluster_network_attachment_prototype_instance_context_model = ( + {} + ) # InstanceClusterNetworkAttachmentPrototypeInstanceContext + instance_cluster_network_attachment_prototype_instance_context_model['cluster_network_interface'] = ( + instance_cluster_network_attachment_prototype_cluster_network_interface_model + ) instance_cluster_network_attachment_prototype_instance_context_model['name'] = 'my-instance-network-attachment' trusted_profile_identity_model = {} # TrustedProfileIdentityById @@ -99259,7 +113915,9 @@ def test_instance_template_instance_by_catalog_offering_instance_template_contex instance_metadata_service_prototype_model['protocol'] = 'https' instance_metadata_service_prototype_model['response_hop_limit'] = 2 - instance_placement_target_prototype_model = {} # InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityById + instance_placement_target_prototype_model = ( + {} + ) # InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityById instance_placement_target_prototype_model['id'] = '0717-1e09281b-f177-46fb-baf1-bc152b2e391a' instance_profile_identity_model = {} # InstanceProfileIdentityByName @@ -99273,7 +113931,9 @@ def test_instance_template_instance_by_catalog_offering_instance_template_contex instance_reservation_affinity_prototype_model['pool'] = [reservation_identity_model] resource_group_reference_model = {} # ResourceGroupReference - resource_group_reference_model['href'] = 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + resource_group_reference_model['href'] = ( + 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + ) resource_group_reference_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' resource_group_reference_model['name'] = 'my-resource-group' @@ -99289,7 +113949,9 @@ def test_instance_template_instance_by_catalog_offering_instance_template_contex vpc_identity_model['id'] = 'r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' encryption_key_identity_model = {} # EncryptionKeyIdentityByCRN - encryption_key_identity_model['crn'] = 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + encryption_key_identity_model['crn'] = ( + 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + ) volume_profile_identity_model = {} # VolumeProfileIdentityByName volume_profile_identity_model['name'] = 'general-purpose' @@ -99306,16 +113968,26 @@ def test_instance_template_instance_by_catalog_offering_instance_template_contex volume_prototype_instance_by_image_context_model['resource_group'] = resource_group_identity_model volume_prototype_instance_by_image_context_model['user_tags'] = [] - volume_attachment_prototype_instance_by_image_context_model = {} # VolumeAttachmentPrototypeInstanceByImageContext + volume_attachment_prototype_instance_by_image_context_model = ( + {} + ) # VolumeAttachmentPrototypeInstanceByImageContext volume_attachment_prototype_instance_by_image_context_model['delete_volume_on_instance_delete'] = True volume_attachment_prototype_instance_by_image_context_model['name'] = 'my-volume-attachment' - volume_attachment_prototype_instance_by_image_context_model['volume'] = volume_prototype_instance_by_image_context_model + volume_attachment_prototype_instance_by_image_context_model['volume'] = ( + volume_prototype_instance_by_image_context_model + ) - catalog_offering_version_plan_identity_model = {} # CatalogOfferingVersionPlanIdentityCatalogOfferingVersionPlanByCRN - catalog_offering_version_plan_identity_model['crn'] = 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:51c9e0db-2911-45a6-adb0-ac5332d27cf2:plan:sw.51c9e0db-2911-45a6-adb0-ac5332d27cf2.772c0dbe-aa62-482e-adbe-a3fc20101e0e' + catalog_offering_version_plan_identity_model = ( + {} + ) # CatalogOfferingVersionPlanIdentityCatalogOfferingVersionPlanByCRN + catalog_offering_version_plan_identity_model['crn'] = ( + 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:51c9e0db-2911-45a6-adb0-ac5332d27cf2:plan:sw.51c9e0db-2911-45a6-adb0-ac5332d27cf2.772c0dbe-aa62-482e-adbe-a3fc20101e0e' + ) catalog_offering_identity_model = {} # CatalogOfferingIdentityCatalogOfferingByCRN - catalog_offering_identity_model['crn'] = 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:offering:00111601-0ec5-41ac-b142-96d1e64e6442' + catalog_offering_identity_model['crn'] = ( + 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:offering:00111601-0ec5-41ac-b142-96d1e64e6442' + ) instance_catalog_offering_prototype_model = {} # InstanceCatalogOfferingPrototypeCatalogOfferingByOffering instance_catalog_offering_prototype_model['plan'] = catalog_offering_version_plan_identity_model @@ -99324,12 +113996,16 @@ def test_instance_template_instance_by_catalog_offering_instance_template_contex zone_identity_model = {} # ZoneIdentityByName zone_identity_model['name'] = 'us-south-1' - virtual_network_interface_ip_prototype_model = {} # VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext + virtual_network_interface_ip_prototype_model = ( + {} + ) # VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext virtual_network_interface_ip_prototype_model['address'] = '10.0.0.5' virtual_network_interface_ip_prototype_model['auto_delete'] = False virtual_network_interface_ip_prototype_model['name'] = 'my-reserved-ip' - virtual_network_interface_primary_ip_prototype_model = {} # VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext + virtual_network_interface_primary_ip_prototype_model = ( + {} + ) # VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext virtual_network_interface_primary_ip_prototype_model['address'] = '10.0.0.5' virtual_network_interface_primary_ip_prototype_model['auto_delete'] = False virtual_network_interface_primary_ip_prototype_model['name'] = 'my-reserved-ip' @@ -99340,64 +114016,153 @@ def test_instance_template_instance_by_catalog_offering_instance_template_contex subnet_identity_model = {} # SubnetIdentityById subnet_identity_model['id'] = '7ec86020-1c6e-4889-b3f0-a15f2e50f87e' - instance_network_attachment_prototype_virtual_network_interface_model = {} # InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeInstanceNetworkAttachmentContext + instance_network_attachment_prototype_virtual_network_interface_model = ( + {} + ) # InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeInstanceNetworkAttachmentContext instance_network_attachment_prototype_virtual_network_interface_model['allow_ip_spoofing'] = True instance_network_attachment_prototype_virtual_network_interface_model['auto_delete'] = False instance_network_attachment_prototype_virtual_network_interface_model['enable_infrastructure_nat'] = True - instance_network_attachment_prototype_virtual_network_interface_model['ips'] = [virtual_network_interface_ip_prototype_model] + instance_network_attachment_prototype_virtual_network_interface_model['ips'] = [ + virtual_network_interface_ip_prototype_model + ] instance_network_attachment_prototype_virtual_network_interface_model['name'] = 'my-virtual-network-interface' - instance_network_attachment_prototype_virtual_network_interface_model['primary_ip'] = virtual_network_interface_primary_ip_prototype_model + instance_network_attachment_prototype_virtual_network_interface_model['primary_ip'] = ( + virtual_network_interface_primary_ip_prototype_model + ) instance_network_attachment_prototype_virtual_network_interface_model['protocol_state_filtering_mode'] = 'auto' - instance_network_attachment_prototype_virtual_network_interface_model['resource_group'] = resource_group_identity_model - instance_network_attachment_prototype_virtual_network_interface_model['security_groups'] = [security_group_identity_model] + instance_network_attachment_prototype_virtual_network_interface_model['resource_group'] = ( + resource_group_identity_model + ) + instance_network_attachment_prototype_virtual_network_interface_model['security_groups'] = [ + security_group_identity_model + ] instance_network_attachment_prototype_virtual_network_interface_model['subnet'] = subnet_identity_model instance_network_attachment_prototype_model = {} # InstanceNetworkAttachmentPrototype instance_network_attachment_prototype_model['name'] = 'my-instance-network-attachment' - instance_network_attachment_prototype_model['virtual_network_interface'] = instance_network_attachment_prototype_virtual_network_interface_model + instance_network_attachment_prototype_model['virtual_network_interface'] = ( + instance_network_attachment_prototype_virtual_network_interface_model + ) # Construct a json representation of a InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkAttachment model - instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_model_json = {} - instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_model_json['availability_policy'] = instance_availability_policy_prototype_model - instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_model_json['cluster_network_attachments'] = [instance_cluster_network_attachment_prototype_instance_context_model] - instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_model_json['confidential_compute_mode'] = 'disabled' - instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_model_json['created_at'] = '2019-01-01T12:00:00Z' - instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::instance-template:1e09281b-f177-46fb-baf1-bc152b2e391a' - instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_model_json['default_trusted_profile'] = instance_default_trusted_profile_prototype_model - instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_model_json['enable_secure_boot'] = True - instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instance/templates/1e09281b-f177-46fb-baf1-bc152b2e391a' - instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_model_json['id'] = 'a6b1a881-2ce8-41a3-80fc-36316a73f803' - instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_model_json['keys'] = [key_identity_model] - instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_model_json['metadata_service'] = instance_metadata_service_prototype_model - instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_model_json['name'] = 'my-instance-template' - instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_model_json['placement_target'] = instance_placement_target_prototype_model - instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_model_json['profile'] = instance_profile_identity_model - instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_model_json['reservation_affinity'] = instance_reservation_affinity_prototype_model - instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_model_json['resource_group'] = resource_group_reference_model - instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_model_json['total_volume_bandwidth'] = 500 - instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_model_json['user_data'] = 'testString' - instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_model_json['volume_attachments'] = [volume_attachment_prototype_model] - instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_model_json['vpc'] = vpc_identity_model - instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_model_json['boot_volume_attachment'] = volume_attachment_prototype_instance_by_image_context_model - instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_model_json['catalog_offering'] = instance_catalog_offering_prototype_model - instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_model_json['zone'] = zone_identity_model - instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_model_json['network_attachments'] = [instance_network_attachment_prototype_model] - instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_model_json['primary_network_attachment'] = instance_network_attachment_prototype_model + instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_model_json = ( + {} + ) + instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_model_json[ + 'availability_policy' + ] = instance_availability_policy_prototype_model + instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_model_json[ + 'cluster_network_attachments' + ] = [ + instance_cluster_network_attachment_prototype_instance_context_model + ] + instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_model_json[ + 'confidential_compute_mode' + ] = 'disabled' + instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_model_json[ + 'created_at' + ] = '2019-01-01T12:00:00Z' + instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_model_json[ + 'crn' + ] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::instance-template:1e09281b-f177-46fb-baf1-bc152b2e391a' + instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_model_json[ + 'default_trusted_profile' + ] = instance_default_trusted_profile_prototype_model + instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_model_json[ + 'enable_secure_boot' + ] = True + instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_model_json[ + 'href' + ] = 'https://us-south.iaas.cloud.ibm.com/v1/instance/templates/1e09281b-f177-46fb-baf1-bc152b2e391a' + instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_model_json[ + 'id' + ] = 'a6b1a881-2ce8-41a3-80fc-36316a73f803' + instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_model_json[ + 'keys' + ] = [ + key_identity_model + ] + instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_model_json[ + 'metadata_service' + ] = instance_metadata_service_prototype_model + instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_model_json[ + 'name' + ] = 'my-instance-template' + instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_model_json[ + 'placement_target' + ] = instance_placement_target_prototype_model + instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_model_json[ + 'profile' + ] = instance_profile_identity_model + instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_model_json[ + 'reservation_affinity' + ] = instance_reservation_affinity_prototype_model + instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_model_json[ + 'resource_group' + ] = resource_group_reference_model + instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_model_json[ + 'total_volume_bandwidth' + ] = 500 + instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_model_json[ + 'user_data' + ] = 'testString' + instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_model_json[ + 'volume_attachments' + ] = [ + volume_attachment_prototype_model + ] + instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_model_json[ + 'vpc' + ] = vpc_identity_model + instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_model_json[ + 'boot_volume_attachment' + ] = volume_attachment_prototype_instance_by_image_context_model + instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_model_json[ + 'catalog_offering' + ] = instance_catalog_offering_prototype_model + instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_model_json[ + 'zone' + ] = zone_identity_model + instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_model_json[ + 'network_attachments' + ] = [ + instance_network_attachment_prototype_model + ] + instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_model_json[ + 'primary_network_attachment' + ] = instance_network_attachment_prototype_model # Construct a model instance of InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkAttachment by calling from_dict on the json representation - instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_model = InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkAttachment.from_dict(instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_model_json) - assert instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_model != False + instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_model = InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkAttachment.from_dict( + instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_model_json + ) + assert ( + instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_model + != False + ) # Construct a model instance of InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkAttachment by calling from_dict on the json representation - instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_model_dict = InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkAttachment.from_dict(instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_model_json).__dict__ - instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_model2 = InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkAttachment(**instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_model_dict) + instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_model_dict = InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkAttachment.from_dict( + instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_model_json + ).__dict__ + instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_model2 = InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkAttachment( + **instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_model_dict + ) # Verify the model instances are equivalent - assert instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_model == instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_model2 + assert ( + instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_model + == instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_model_json2 = instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_model.to_dict() - assert instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_model_json2 == instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_model_json + instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_model_json2 = ( + instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_model.to_dict() + ) + assert ( + instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_model_json2 + == instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_attachment_model_json + ) class TestModel_InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkInterface: @@ -99405,7 +114170,9 @@ class TestModel_InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContext Test Class for InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkInterface """ - def test_instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_serialization(self): + def test_instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_serialization( + self, + ): """ Test serialization/deserialization for InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkInterface """ @@ -99415,7 +114182,9 @@ def test_instance_template_instance_by_catalog_offering_instance_template_contex instance_availability_policy_prototype_model = {} # InstanceAvailabilityPolicyPrototype instance_availability_policy_prototype_model['host_failure'] = 'restart' - cluster_network_interface_primary_ip_prototype_model = {} # ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPPrototypeClusterNetworkInterfacePrimaryIPContext + cluster_network_interface_primary_ip_prototype_model = ( + {} + ) # ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPPrototypeClusterNetworkInterfacePrimaryIPContext cluster_network_interface_primary_ip_prototype_model['address'] = '10.0.0.5' cluster_network_interface_primary_ip_prototype_model['auto_delete'] = False cluster_network_interface_primary_ip_prototype_model['name'] = 'my-cluster-network-subnet-reserved-ip' @@ -99423,14 +114192,26 @@ def test_instance_template_instance_by_catalog_offering_instance_template_contex cluster_network_subnet_identity_model = {} # ClusterNetworkSubnetIdentityById cluster_network_subnet_identity_model['id'] = '0717-7931845c-65c4-4b0a-80cd-7d9c1a6d7930' - instance_cluster_network_attachment_prototype_cluster_network_interface_model = {} # InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment + instance_cluster_network_attachment_prototype_cluster_network_interface_model = ( + {} + ) # InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment instance_cluster_network_attachment_prototype_cluster_network_interface_model['auto_delete'] = False - instance_cluster_network_attachment_prototype_cluster_network_interface_model['name'] = 'my-cluster-network-interface' - instance_cluster_network_attachment_prototype_cluster_network_interface_model['primary_ip'] = cluster_network_interface_primary_ip_prototype_model - instance_cluster_network_attachment_prototype_cluster_network_interface_model['subnet'] = cluster_network_subnet_identity_model + instance_cluster_network_attachment_prototype_cluster_network_interface_model['name'] = ( + 'my-cluster-network-interface' + ) + instance_cluster_network_attachment_prototype_cluster_network_interface_model['primary_ip'] = ( + cluster_network_interface_primary_ip_prototype_model + ) + instance_cluster_network_attachment_prototype_cluster_network_interface_model['subnet'] = ( + cluster_network_subnet_identity_model + ) - instance_cluster_network_attachment_prototype_instance_context_model = {} # InstanceClusterNetworkAttachmentPrototypeInstanceContext - instance_cluster_network_attachment_prototype_instance_context_model['cluster_network_interface'] = instance_cluster_network_attachment_prototype_cluster_network_interface_model + instance_cluster_network_attachment_prototype_instance_context_model = ( + {} + ) # InstanceClusterNetworkAttachmentPrototypeInstanceContext + instance_cluster_network_attachment_prototype_instance_context_model['cluster_network_interface'] = ( + instance_cluster_network_attachment_prototype_cluster_network_interface_model + ) instance_cluster_network_attachment_prototype_instance_context_model['name'] = 'my-instance-network-attachment' trusted_profile_identity_model = {} # TrustedProfileIdentityById @@ -99448,7 +114229,9 @@ def test_instance_template_instance_by_catalog_offering_instance_template_contex instance_metadata_service_prototype_model['protocol'] = 'https' instance_metadata_service_prototype_model['response_hop_limit'] = 2 - instance_placement_target_prototype_model = {} # InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityById + instance_placement_target_prototype_model = ( + {} + ) # InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityById instance_placement_target_prototype_model['id'] = '0717-1e09281b-f177-46fb-baf1-bc152b2e391a' instance_profile_identity_model = {} # InstanceProfileIdentityByName @@ -99462,7 +114245,9 @@ def test_instance_template_instance_by_catalog_offering_instance_template_contex instance_reservation_affinity_prototype_model['pool'] = [reservation_identity_model] resource_group_reference_model = {} # ResourceGroupReference - resource_group_reference_model['href'] = 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + resource_group_reference_model['href'] = ( + 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + ) resource_group_reference_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' resource_group_reference_model['name'] = 'my-resource-group' @@ -99478,7 +114263,9 @@ def test_instance_template_instance_by_catalog_offering_instance_template_contex vpc_identity_model['id'] = 'r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' encryption_key_identity_model = {} # EncryptionKeyIdentityByCRN - encryption_key_identity_model['crn'] = 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + encryption_key_identity_model['crn'] = ( + 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + ) volume_profile_identity_model = {} # VolumeProfileIdentityByName volume_profile_identity_model['name'] = 'general-purpose' @@ -99495,16 +114282,26 @@ def test_instance_template_instance_by_catalog_offering_instance_template_contex volume_prototype_instance_by_image_context_model['resource_group'] = resource_group_identity_model volume_prototype_instance_by_image_context_model['user_tags'] = [] - volume_attachment_prototype_instance_by_image_context_model = {} # VolumeAttachmentPrototypeInstanceByImageContext + volume_attachment_prototype_instance_by_image_context_model = ( + {} + ) # VolumeAttachmentPrototypeInstanceByImageContext volume_attachment_prototype_instance_by_image_context_model['delete_volume_on_instance_delete'] = True volume_attachment_prototype_instance_by_image_context_model['name'] = 'my-volume-attachment' - volume_attachment_prototype_instance_by_image_context_model['volume'] = volume_prototype_instance_by_image_context_model + volume_attachment_prototype_instance_by_image_context_model['volume'] = ( + volume_prototype_instance_by_image_context_model + ) - catalog_offering_version_plan_identity_model = {} # CatalogOfferingVersionPlanIdentityCatalogOfferingVersionPlanByCRN - catalog_offering_version_plan_identity_model['crn'] = 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:51c9e0db-2911-45a6-adb0-ac5332d27cf2:plan:sw.51c9e0db-2911-45a6-adb0-ac5332d27cf2.772c0dbe-aa62-482e-adbe-a3fc20101e0e' + catalog_offering_version_plan_identity_model = ( + {} + ) # CatalogOfferingVersionPlanIdentityCatalogOfferingVersionPlanByCRN + catalog_offering_version_plan_identity_model['crn'] = ( + 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:51c9e0db-2911-45a6-adb0-ac5332d27cf2:plan:sw.51c9e0db-2911-45a6-adb0-ac5332d27cf2.772c0dbe-aa62-482e-adbe-a3fc20101e0e' + ) catalog_offering_identity_model = {} # CatalogOfferingIdentityCatalogOfferingByCRN - catalog_offering_identity_model['crn'] = 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:offering:00111601-0ec5-41ac-b142-96d1e64e6442' + catalog_offering_identity_model['crn'] = ( + 'crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:offering:00111601-0ec5-41ac-b142-96d1e64e6442' + ) instance_catalog_offering_prototype_model = {} # InstanceCatalogOfferingPrototypeCatalogOfferingByOffering instance_catalog_offering_prototype_model['plan'] = catalog_offering_version_plan_identity_model @@ -99513,7 +114310,9 @@ def test_instance_template_instance_by_catalog_offering_instance_template_contex zone_identity_model = {} # ZoneIdentityByName zone_identity_model['name'] = 'us-south-1' - network_interface_ip_prototype_model = {} # NetworkInterfaceIPPrototypeReservedIPPrototypeNetworkInterfaceContext + network_interface_ip_prototype_model = ( + {} + ) # NetworkInterfaceIPPrototypeReservedIPPrototypeNetworkInterfaceContext network_interface_ip_prototype_model['address'] = '10.0.0.5' network_interface_ip_prototype_model['auto_delete'] = False network_interface_ip_prototype_model['name'] = 'my-reserved-ip' @@ -99532,47 +114331,124 @@ def test_instance_template_instance_by_catalog_offering_instance_template_contex network_interface_prototype_model['subnet'] = subnet_identity_model # Construct a json representation of a InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkInterface model - instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_model_json = {} - instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_model_json['availability_policy'] = instance_availability_policy_prototype_model - instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_model_json['cluster_network_attachments'] = [instance_cluster_network_attachment_prototype_instance_context_model] - instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_model_json['confidential_compute_mode'] = 'disabled' - instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_model_json['created_at'] = '2019-01-01T12:00:00Z' - instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::instance-template:1e09281b-f177-46fb-baf1-bc152b2e391a' - instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_model_json['default_trusted_profile'] = instance_default_trusted_profile_prototype_model - instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_model_json['enable_secure_boot'] = True - instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instance/templates/1e09281b-f177-46fb-baf1-bc152b2e391a' - instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_model_json['id'] = 'a6b1a881-2ce8-41a3-80fc-36316a73f803' - instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_model_json['keys'] = [key_identity_model] - instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_model_json['metadata_service'] = instance_metadata_service_prototype_model - instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_model_json['name'] = 'my-instance-template' - instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_model_json['placement_target'] = instance_placement_target_prototype_model - instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_model_json['profile'] = instance_profile_identity_model - instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_model_json['reservation_affinity'] = instance_reservation_affinity_prototype_model - instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_model_json['resource_group'] = resource_group_reference_model - instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_model_json['total_volume_bandwidth'] = 500 - instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_model_json['user_data'] = 'testString' - instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_model_json['volume_attachments'] = [volume_attachment_prototype_model] - instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_model_json['vpc'] = vpc_identity_model - instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_model_json['boot_volume_attachment'] = volume_attachment_prototype_instance_by_image_context_model - instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_model_json['catalog_offering'] = instance_catalog_offering_prototype_model - instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_model_json['zone'] = zone_identity_model - instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_model_json['network_interfaces'] = [network_interface_prototype_model] - instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_model_json['primary_network_interface'] = network_interface_prototype_model + instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_model_json = ( + {} + ) + instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_model_json[ + 'availability_policy' + ] = instance_availability_policy_prototype_model + instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_model_json[ + 'cluster_network_attachments' + ] = [ + instance_cluster_network_attachment_prototype_instance_context_model + ] + instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_model_json[ + 'confidential_compute_mode' + ] = 'disabled' + instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_model_json[ + 'created_at' + ] = '2019-01-01T12:00:00Z' + instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_model_json[ + 'crn' + ] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::instance-template:1e09281b-f177-46fb-baf1-bc152b2e391a' + instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_model_json[ + 'default_trusted_profile' + ] = instance_default_trusted_profile_prototype_model + instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_model_json[ + 'enable_secure_boot' + ] = True + instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_model_json[ + 'href' + ] = 'https://us-south.iaas.cloud.ibm.com/v1/instance/templates/1e09281b-f177-46fb-baf1-bc152b2e391a' + instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_model_json[ + 'id' + ] = 'a6b1a881-2ce8-41a3-80fc-36316a73f803' + instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_model_json[ + 'keys' + ] = [ + key_identity_model + ] + instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_model_json[ + 'metadata_service' + ] = instance_metadata_service_prototype_model + instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_model_json[ + 'name' + ] = 'my-instance-template' + instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_model_json[ + 'placement_target' + ] = instance_placement_target_prototype_model + instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_model_json[ + 'profile' + ] = instance_profile_identity_model + instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_model_json[ + 'reservation_affinity' + ] = instance_reservation_affinity_prototype_model + instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_model_json[ + 'resource_group' + ] = resource_group_reference_model + instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_model_json[ + 'total_volume_bandwidth' + ] = 500 + instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_model_json[ + 'user_data' + ] = 'testString' + instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_model_json[ + 'volume_attachments' + ] = [ + volume_attachment_prototype_model + ] + instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_model_json[ + 'vpc' + ] = vpc_identity_model + instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_model_json[ + 'boot_volume_attachment' + ] = volume_attachment_prototype_instance_by_image_context_model + instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_model_json[ + 'catalog_offering' + ] = instance_catalog_offering_prototype_model + instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_model_json[ + 'zone' + ] = zone_identity_model + instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_model_json[ + 'network_interfaces' + ] = [ + network_interface_prototype_model + ] + instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_model_json[ + 'primary_network_interface' + ] = network_interface_prototype_model # Construct a model instance of InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkInterface by calling from_dict on the json representation - instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_model = InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkInterface.from_dict(instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_model_json) - assert instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_model != False + instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_model = InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkInterface.from_dict( + instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_model_json + ) + assert ( + instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_model + != False + ) # Construct a model instance of InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkInterface by calling from_dict on the json representation - instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_model_dict = InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkInterface.from_dict(instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_model_json).__dict__ - instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_model2 = InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkInterface(**instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_model_dict) + instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_model_dict = InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkInterface.from_dict( + instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_model_json + ).__dict__ + instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_model2 = InstanceTemplateInstanceByCatalogOfferingInstanceTemplateContextInstanceByCatalogOfferingInstanceTemplateContextInstanceByNetworkInterface( + **instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_model_dict + ) # Verify the model instances are equivalent - assert instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_model == instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_model2 + assert ( + instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_model + == instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_model_json2 = instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_model.to_dict() - assert instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_model_json2 == instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_model_json + instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_model_json2 = ( + instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_model.to_dict() + ) + assert ( + instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_model_json2 + == instance_template_instance_by_catalog_offering_instance_template_context_instance_by_catalog_offering_instance_template_context_instance_by_network_interface_model_json + ) class TestModel_InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkAttachment: @@ -99580,7 +114456,9 @@ class TestModel_InstanceTemplateInstanceByImageInstanceTemplateContextInstanceBy Test Class for InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkAttachment """ - def test_instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_serialization(self): + def test_instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_serialization( + self, + ): """ Test serialization/deserialization for InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkAttachment """ @@ -99590,7 +114468,9 @@ def test_instance_template_instance_by_image_instance_template_context_instance_ instance_availability_policy_prototype_model = {} # InstanceAvailabilityPolicyPrototype instance_availability_policy_prototype_model['host_failure'] = 'restart' - cluster_network_interface_primary_ip_prototype_model = {} # ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPPrototypeClusterNetworkInterfacePrimaryIPContext + cluster_network_interface_primary_ip_prototype_model = ( + {} + ) # ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPPrototypeClusterNetworkInterfacePrimaryIPContext cluster_network_interface_primary_ip_prototype_model['address'] = '10.0.0.5' cluster_network_interface_primary_ip_prototype_model['auto_delete'] = False cluster_network_interface_primary_ip_prototype_model['name'] = 'my-cluster-network-subnet-reserved-ip' @@ -99598,14 +114478,26 @@ def test_instance_template_instance_by_image_instance_template_context_instance_ cluster_network_subnet_identity_model = {} # ClusterNetworkSubnetIdentityById cluster_network_subnet_identity_model['id'] = '0717-7931845c-65c4-4b0a-80cd-7d9c1a6d7930' - instance_cluster_network_attachment_prototype_cluster_network_interface_model = {} # InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment + instance_cluster_network_attachment_prototype_cluster_network_interface_model = ( + {} + ) # InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment instance_cluster_network_attachment_prototype_cluster_network_interface_model['auto_delete'] = False - instance_cluster_network_attachment_prototype_cluster_network_interface_model['name'] = 'my-cluster-network-interface' - instance_cluster_network_attachment_prototype_cluster_network_interface_model['primary_ip'] = cluster_network_interface_primary_ip_prototype_model - instance_cluster_network_attachment_prototype_cluster_network_interface_model['subnet'] = cluster_network_subnet_identity_model + instance_cluster_network_attachment_prototype_cluster_network_interface_model['name'] = ( + 'my-cluster-network-interface' + ) + instance_cluster_network_attachment_prototype_cluster_network_interface_model['primary_ip'] = ( + cluster_network_interface_primary_ip_prototype_model + ) + instance_cluster_network_attachment_prototype_cluster_network_interface_model['subnet'] = ( + cluster_network_subnet_identity_model + ) - instance_cluster_network_attachment_prototype_instance_context_model = {} # InstanceClusterNetworkAttachmentPrototypeInstanceContext - instance_cluster_network_attachment_prototype_instance_context_model['cluster_network_interface'] = instance_cluster_network_attachment_prototype_cluster_network_interface_model + instance_cluster_network_attachment_prototype_instance_context_model = ( + {} + ) # InstanceClusterNetworkAttachmentPrototypeInstanceContext + instance_cluster_network_attachment_prototype_instance_context_model['cluster_network_interface'] = ( + instance_cluster_network_attachment_prototype_cluster_network_interface_model + ) instance_cluster_network_attachment_prototype_instance_context_model['name'] = 'my-instance-network-attachment' trusted_profile_identity_model = {} # TrustedProfileIdentityById @@ -99623,7 +114515,9 @@ def test_instance_template_instance_by_image_instance_template_context_instance_ instance_metadata_service_prototype_model['protocol'] = 'https' instance_metadata_service_prototype_model['response_hop_limit'] = 2 - instance_placement_target_prototype_model = {} # InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityById + instance_placement_target_prototype_model = ( + {} + ) # InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityById instance_placement_target_prototype_model['id'] = '0717-1e09281b-f177-46fb-baf1-bc152b2e391a' instance_profile_identity_model = {} # InstanceProfileIdentityByName @@ -99637,7 +114531,9 @@ def test_instance_template_instance_by_image_instance_template_context_instance_ instance_reservation_affinity_prototype_model['pool'] = [reservation_identity_model] resource_group_reference_model = {} # ResourceGroupReference - resource_group_reference_model['href'] = 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + resource_group_reference_model['href'] = ( + 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + ) resource_group_reference_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' resource_group_reference_model['name'] = 'my-resource-group' @@ -99653,7 +114549,9 @@ def test_instance_template_instance_by_image_instance_template_context_instance_ vpc_identity_model['id'] = 'r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' encryption_key_identity_model = {} # EncryptionKeyIdentityByCRN - encryption_key_identity_model['crn'] = 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + encryption_key_identity_model['crn'] = ( + 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + ) volume_profile_identity_model = {} # VolumeProfileIdentityByName volume_profile_identity_model['name'] = 'general-purpose' @@ -99670,10 +114568,14 @@ def test_instance_template_instance_by_image_instance_template_context_instance_ volume_prototype_instance_by_image_context_model['resource_group'] = resource_group_identity_model volume_prototype_instance_by_image_context_model['user_tags'] = [] - volume_attachment_prototype_instance_by_image_context_model = {} # VolumeAttachmentPrototypeInstanceByImageContext + volume_attachment_prototype_instance_by_image_context_model = ( + {} + ) # VolumeAttachmentPrototypeInstanceByImageContext volume_attachment_prototype_instance_by_image_context_model['delete_volume_on_instance_delete'] = True volume_attachment_prototype_instance_by_image_context_model['name'] = 'my-volume-attachment' - volume_attachment_prototype_instance_by_image_context_model['volume'] = volume_prototype_instance_by_image_context_model + volume_attachment_prototype_instance_by_image_context_model['volume'] = ( + volume_prototype_instance_by_image_context_model + ) image_identity_model = {} # ImageIdentityById image_identity_model['id'] = 'r006-02c73baf-9abb-493d-9e41-d0f1866f4051' @@ -99681,12 +114583,16 @@ def test_instance_template_instance_by_image_instance_template_context_instance_ zone_identity_model = {} # ZoneIdentityByName zone_identity_model['name'] = 'us-south-1' - virtual_network_interface_ip_prototype_model = {} # VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext + virtual_network_interface_ip_prototype_model = ( + {} + ) # VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext virtual_network_interface_ip_prototype_model['address'] = '10.0.0.5' virtual_network_interface_ip_prototype_model['auto_delete'] = False virtual_network_interface_ip_prototype_model['name'] = 'my-reserved-ip' - virtual_network_interface_primary_ip_prototype_model = {} # VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext + virtual_network_interface_primary_ip_prototype_model = ( + {} + ) # VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext virtual_network_interface_primary_ip_prototype_model['address'] = '10.0.0.5' virtual_network_interface_primary_ip_prototype_model['auto_delete'] = False virtual_network_interface_primary_ip_prototype_model['name'] = 'my-reserved-ip' @@ -99697,64 +114603,153 @@ def test_instance_template_instance_by_image_instance_template_context_instance_ subnet_identity_model = {} # SubnetIdentityById subnet_identity_model['id'] = '7ec86020-1c6e-4889-b3f0-a15f2e50f87e' - instance_network_attachment_prototype_virtual_network_interface_model = {} # InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeInstanceNetworkAttachmentContext + instance_network_attachment_prototype_virtual_network_interface_model = ( + {} + ) # InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeInstanceNetworkAttachmentContext instance_network_attachment_prototype_virtual_network_interface_model['allow_ip_spoofing'] = True instance_network_attachment_prototype_virtual_network_interface_model['auto_delete'] = False instance_network_attachment_prototype_virtual_network_interface_model['enable_infrastructure_nat'] = True - instance_network_attachment_prototype_virtual_network_interface_model['ips'] = [virtual_network_interface_ip_prototype_model] + instance_network_attachment_prototype_virtual_network_interface_model['ips'] = [ + virtual_network_interface_ip_prototype_model + ] instance_network_attachment_prototype_virtual_network_interface_model['name'] = 'my-virtual-network-interface' - instance_network_attachment_prototype_virtual_network_interface_model['primary_ip'] = virtual_network_interface_primary_ip_prototype_model + instance_network_attachment_prototype_virtual_network_interface_model['primary_ip'] = ( + virtual_network_interface_primary_ip_prototype_model + ) instance_network_attachment_prototype_virtual_network_interface_model['protocol_state_filtering_mode'] = 'auto' - instance_network_attachment_prototype_virtual_network_interface_model['resource_group'] = resource_group_identity_model - instance_network_attachment_prototype_virtual_network_interface_model['security_groups'] = [security_group_identity_model] + instance_network_attachment_prototype_virtual_network_interface_model['resource_group'] = ( + resource_group_identity_model + ) + instance_network_attachment_prototype_virtual_network_interface_model['security_groups'] = [ + security_group_identity_model + ] instance_network_attachment_prototype_virtual_network_interface_model['subnet'] = subnet_identity_model instance_network_attachment_prototype_model = {} # InstanceNetworkAttachmentPrototype instance_network_attachment_prototype_model['name'] = 'my-instance-network-attachment' - instance_network_attachment_prototype_model['virtual_network_interface'] = instance_network_attachment_prototype_virtual_network_interface_model + instance_network_attachment_prototype_model['virtual_network_interface'] = ( + instance_network_attachment_prototype_virtual_network_interface_model + ) # Construct a json representation of a InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkAttachment model - instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_model_json = {} - instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_model_json['availability_policy'] = instance_availability_policy_prototype_model - instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_model_json['cluster_network_attachments'] = [instance_cluster_network_attachment_prototype_instance_context_model] - instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_model_json['confidential_compute_mode'] = 'disabled' - instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_model_json['created_at'] = '2019-01-01T12:00:00Z' - instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::instance-template:1e09281b-f177-46fb-baf1-bc152b2e391a' - instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_model_json['default_trusted_profile'] = instance_default_trusted_profile_prototype_model - instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_model_json['enable_secure_boot'] = True - instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instance/templates/1e09281b-f177-46fb-baf1-bc152b2e391a' - instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_model_json['id'] = 'a6b1a881-2ce8-41a3-80fc-36316a73f803' - instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_model_json['keys'] = [key_identity_model] - instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_model_json['metadata_service'] = instance_metadata_service_prototype_model - instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_model_json['name'] = 'my-instance-template' - instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_model_json['placement_target'] = instance_placement_target_prototype_model - instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_model_json['profile'] = instance_profile_identity_model - instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_model_json['reservation_affinity'] = instance_reservation_affinity_prototype_model - instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_model_json['resource_group'] = resource_group_reference_model - instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_model_json['total_volume_bandwidth'] = 500 - instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_model_json['user_data'] = 'testString' - instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_model_json['volume_attachments'] = [volume_attachment_prototype_model] - instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_model_json['vpc'] = vpc_identity_model - instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_model_json['boot_volume_attachment'] = volume_attachment_prototype_instance_by_image_context_model - instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_model_json['image'] = image_identity_model - instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_model_json['zone'] = zone_identity_model - instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_model_json['network_attachments'] = [instance_network_attachment_prototype_model] - instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_model_json['primary_network_attachment'] = instance_network_attachment_prototype_model + instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_model_json = ( + {} + ) + instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_model_json[ + 'availability_policy' + ] = instance_availability_policy_prototype_model + instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_model_json[ + 'cluster_network_attachments' + ] = [ + instance_cluster_network_attachment_prototype_instance_context_model + ] + instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_model_json[ + 'confidential_compute_mode' + ] = 'disabled' + instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_model_json[ + 'created_at' + ] = '2019-01-01T12:00:00Z' + instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_model_json[ + 'crn' + ] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::instance-template:1e09281b-f177-46fb-baf1-bc152b2e391a' + instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_model_json[ + 'default_trusted_profile' + ] = instance_default_trusted_profile_prototype_model + instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_model_json[ + 'enable_secure_boot' + ] = True + instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_model_json[ + 'href' + ] = 'https://us-south.iaas.cloud.ibm.com/v1/instance/templates/1e09281b-f177-46fb-baf1-bc152b2e391a' + instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_model_json[ + 'id' + ] = 'a6b1a881-2ce8-41a3-80fc-36316a73f803' + instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_model_json[ + 'keys' + ] = [ + key_identity_model + ] + instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_model_json[ + 'metadata_service' + ] = instance_metadata_service_prototype_model + instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_model_json[ + 'name' + ] = 'my-instance-template' + instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_model_json[ + 'placement_target' + ] = instance_placement_target_prototype_model + instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_model_json[ + 'profile' + ] = instance_profile_identity_model + instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_model_json[ + 'reservation_affinity' + ] = instance_reservation_affinity_prototype_model + instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_model_json[ + 'resource_group' + ] = resource_group_reference_model + instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_model_json[ + 'total_volume_bandwidth' + ] = 500 + instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_model_json[ + 'user_data' + ] = 'testString' + instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_model_json[ + 'volume_attachments' + ] = [ + volume_attachment_prototype_model + ] + instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_model_json[ + 'vpc' + ] = vpc_identity_model + instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_model_json[ + 'boot_volume_attachment' + ] = volume_attachment_prototype_instance_by_image_context_model + instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_model_json[ + 'image' + ] = image_identity_model + instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_model_json[ + 'zone' + ] = zone_identity_model + instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_model_json[ + 'network_attachments' + ] = [ + instance_network_attachment_prototype_model + ] + instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_model_json[ + 'primary_network_attachment' + ] = instance_network_attachment_prototype_model # Construct a model instance of InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkAttachment by calling from_dict on the json representation - instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_model = InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkAttachment.from_dict(instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_model_json) - assert instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_model != False + instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_model = InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkAttachment.from_dict( + instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_model_json + ) + assert ( + instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_model + != False + ) # Construct a model instance of InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkAttachment by calling from_dict on the json representation - instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_model_dict = InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkAttachment.from_dict(instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_model_json).__dict__ - instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_model2 = InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkAttachment(**instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_model_dict) + instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_model_dict = InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkAttachment.from_dict( + instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_model_json + ).__dict__ + instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_model2 = InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkAttachment( + **instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_model_dict + ) # Verify the model instances are equivalent - assert instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_model == instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_model2 + assert ( + instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_model + == instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_model_json2 = instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_model.to_dict() - assert instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_model_json2 == instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_model_json + instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_model_json2 = ( + instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_model.to_dict() + ) + assert ( + instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_model_json2 + == instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_attachment_model_json + ) class TestModel_InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkInterface: @@ -99762,7 +114757,9 @@ class TestModel_InstanceTemplateInstanceByImageInstanceTemplateContextInstanceBy Test Class for InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkInterface """ - def test_instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_serialization(self): + def test_instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_serialization( + self, + ): """ Test serialization/deserialization for InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkInterface """ @@ -99772,7 +114769,9 @@ def test_instance_template_instance_by_image_instance_template_context_instance_ instance_availability_policy_prototype_model = {} # InstanceAvailabilityPolicyPrototype instance_availability_policy_prototype_model['host_failure'] = 'restart' - cluster_network_interface_primary_ip_prototype_model = {} # ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPPrototypeClusterNetworkInterfacePrimaryIPContext + cluster_network_interface_primary_ip_prototype_model = ( + {} + ) # ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPPrototypeClusterNetworkInterfacePrimaryIPContext cluster_network_interface_primary_ip_prototype_model['address'] = '10.0.0.5' cluster_network_interface_primary_ip_prototype_model['auto_delete'] = False cluster_network_interface_primary_ip_prototype_model['name'] = 'my-cluster-network-subnet-reserved-ip' @@ -99780,14 +114779,26 @@ def test_instance_template_instance_by_image_instance_template_context_instance_ cluster_network_subnet_identity_model = {} # ClusterNetworkSubnetIdentityById cluster_network_subnet_identity_model['id'] = '0717-7931845c-65c4-4b0a-80cd-7d9c1a6d7930' - instance_cluster_network_attachment_prototype_cluster_network_interface_model = {} # InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment + instance_cluster_network_attachment_prototype_cluster_network_interface_model = ( + {} + ) # InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment instance_cluster_network_attachment_prototype_cluster_network_interface_model['auto_delete'] = False - instance_cluster_network_attachment_prototype_cluster_network_interface_model['name'] = 'my-cluster-network-interface' - instance_cluster_network_attachment_prototype_cluster_network_interface_model['primary_ip'] = cluster_network_interface_primary_ip_prototype_model - instance_cluster_network_attachment_prototype_cluster_network_interface_model['subnet'] = cluster_network_subnet_identity_model + instance_cluster_network_attachment_prototype_cluster_network_interface_model['name'] = ( + 'my-cluster-network-interface' + ) + instance_cluster_network_attachment_prototype_cluster_network_interface_model['primary_ip'] = ( + cluster_network_interface_primary_ip_prototype_model + ) + instance_cluster_network_attachment_prototype_cluster_network_interface_model['subnet'] = ( + cluster_network_subnet_identity_model + ) - instance_cluster_network_attachment_prototype_instance_context_model = {} # InstanceClusterNetworkAttachmentPrototypeInstanceContext - instance_cluster_network_attachment_prototype_instance_context_model['cluster_network_interface'] = instance_cluster_network_attachment_prototype_cluster_network_interface_model + instance_cluster_network_attachment_prototype_instance_context_model = ( + {} + ) # InstanceClusterNetworkAttachmentPrototypeInstanceContext + instance_cluster_network_attachment_prototype_instance_context_model['cluster_network_interface'] = ( + instance_cluster_network_attachment_prototype_cluster_network_interface_model + ) instance_cluster_network_attachment_prototype_instance_context_model['name'] = 'my-instance-network-attachment' trusted_profile_identity_model = {} # TrustedProfileIdentityById @@ -99805,7 +114816,9 @@ def test_instance_template_instance_by_image_instance_template_context_instance_ instance_metadata_service_prototype_model['protocol'] = 'https' instance_metadata_service_prototype_model['response_hop_limit'] = 2 - instance_placement_target_prototype_model = {} # InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityById + instance_placement_target_prototype_model = ( + {} + ) # InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityById instance_placement_target_prototype_model['id'] = '0717-1e09281b-f177-46fb-baf1-bc152b2e391a' instance_profile_identity_model = {} # InstanceProfileIdentityByName @@ -99819,7 +114832,9 @@ def test_instance_template_instance_by_image_instance_template_context_instance_ instance_reservation_affinity_prototype_model['pool'] = [reservation_identity_model] resource_group_reference_model = {} # ResourceGroupReference - resource_group_reference_model['href'] = 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + resource_group_reference_model['href'] = ( + 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + ) resource_group_reference_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' resource_group_reference_model['name'] = 'my-resource-group' @@ -99835,7 +114850,9 @@ def test_instance_template_instance_by_image_instance_template_context_instance_ vpc_identity_model['id'] = 'r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' encryption_key_identity_model = {} # EncryptionKeyIdentityByCRN - encryption_key_identity_model['crn'] = 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + encryption_key_identity_model['crn'] = ( + 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + ) volume_profile_identity_model = {} # VolumeProfileIdentityByName volume_profile_identity_model['name'] = 'general-purpose' @@ -99852,10 +114869,14 @@ def test_instance_template_instance_by_image_instance_template_context_instance_ volume_prototype_instance_by_image_context_model['resource_group'] = resource_group_identity_model volume_prototype_instance_by_image_context_model['user_tags'] = [] - volume_attachment_prototype_instance_by_image_context_model = {} # VolumeAttachmentPrototypeInstanceByImageContext + volume_attachment_prototype_instance_by_image_context_model = ( + {} + ) # VolumeAttachmentPrototypeInstanceByImageContext volume_attachment_prototype_instance_by_image_context_model['delete_volume_on_instance_delete'] = True volume_attachment_prototype_instance_by_image_context_model['name'] = 'my-volume-attachment' - volume_attachment_prototype_instance_by_image_context_model['volume'] = volume_prototype_instance_by_image_context_model + volume_attachment_prototype_instance_by_image_context_model['volume'] = ( + volume_prototype_instance_by_image_context_model + ) image_identity_model = {} # ImageIdentityById image_identity_model['id'] = 'r006-02c73baf-9abb-493d-9e41-d0f1866f4051' @@ -99863,7 +114884,9 @@ def test_instance_template_instance_by_image_instance_template_context_instance_ zone_identity_model = {} # ZoneIdentityByName zone_identity_model['name'] = 'us-south-1' - network_interface_ip_prototype_model = {} # NetworkInterfaceIPPrototypeReservedIPPrototypeNetworkInterfaceContext + network_interface_ip_prototype_model = ( + {} + ) # NetworkInterfaceIPPrototypeReservedIPPrototypeNetworkInterfaceContext network_interface_ip_prototype_model['address'] = '10.0.0.5' network_interface_ip_prototype_model['auto_delete'] = False network_interface_ip_prototype_model['name'] = 'my-reserved-ip' @@ -99882,47 +114905,124 @@ def test_instance_template_instance_by_image_instance_template_context_instance_ network_interface_prototype_model['subnet'] = subnet_identity_model # Construct a json representation of a InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkInterface model - instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_model_json = {} - instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_model_json['availability_policy'] = instance_availability_policy_prototype_model - instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_model_json['cluster_network_attachments'] = [instance_cluster_network_attachment_prototype_instance_context_model] - instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_model_json['confidential_compute_mode'] = 'disabled' - instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_model_json['created_at'] = '2019-01-01T12:00:00Z' - instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::instance-template:1e09281b-f177-46fb-baf1-bc152b2e391a' - instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_model_json['default_trusted_profile'] = instance_default_trusted_profile_prototype_model - instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_model_json['enable_secure_boot'] = True - instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instance/templates/1e09281b-f177-46fb-baf1-bc152b2e391a' - instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_model_json['id'] = 'a6b1a881-2ce8-41a3-80fc-36316a73f803' - instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_model_json['keys'] = [key_identity_model] - instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_model_json['metadata_service'] = instance_metadata_service_prototype_model - instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_model_json['name'] = 'my-instance-template' - instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_model_json['placement_target'] = instance_placement_target_prototype_model - instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_model_json['profile'] = instance_profile_identity_model - instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_model_json['reservation_affinity'] = instance_reservation_affinity_prototype_model - instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_model_json['resource_group'] = resource_group_reference_model - instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_model_json['total_volume_bandwidth'] = 500 - instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_model_json['user_data'] = 'testString' - instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_model_json['volume_attachments'] = [volume_attachment_prototype_model] - instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_model_json['vpc'] = vpc_identity_model - instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_model_json['boot_volume_attachment'] = volume_attachment_prototype_instance_by_image_context_model - instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_model_json['image'] = image_identity_model - instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_model_json['zone'] = zone_identity_model - instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_model_json['network_interfaces'] = [network_interface_prototype_model] - instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_model_json['primary_network_interface'] = network_interface_prototype_model + instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_model_json = ( + {} + ) + instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_model_json[ + 'availability_policy' + ] = instance_availability_policy_prototype_model + instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_model_json[ + 'cluster_network_attachments' + ] = [ + instance_cluster_network_attachment_prototype_instance_context_model + ] + instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_model_json[ + 'confidential_compute_mode' + ] = 'disabled' + instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_model_json[ + 'created_at' + ] = '2019-01-01T12:00:00Z' + instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_model_json[ + 'crn' + ] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::instance-template:1e09281b-f177-46fb-baf1-bc152b2e391a' + instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_model_json[ + 'default_trusted_profile' + ] = instance_default_trusted_profile_prototype_model + instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_model_json[ + 'enable_secure_boot' + ] = True + instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_model_json[ + 'href' + ] = 'https://us-south.iaas.cloud.ibm.com/v1/instance/templates/1e09281b-f177-46fb-baf1-bc152b2e391a' + instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_model_json[ + 'id' + ] = 'a6b1a881-2ce8-41a3-80fc-36316a73f803' + instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_model_json[ + 'keys' + ] = [ + key_identity_model + ] + instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_model_json[ + 'metadata_service' + ] = instance_metadata_service_prototype_model + instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_model_json[ + 'name' + ] = 'my-instance-template' + instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_model_json[ + 'placement_target' + ] = instance_placement_target_prototype_model + instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_model_json[ + 'profile' + ] = instance_profile_identity_model + instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_model_json[ + 'reservation_affinity' + ] = instance_reservation_affinity_prototype_model + instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_model_json[ + 'resource_group' + ] = resource_group_reference_model + instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_model_json[ + 'total_volume_bandwidth' + ] = 500 + instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_model_json[ + 'user_data' + ] = 'testString' + instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_model_json[ + 'volume_attachments' + ] = [ + volume_attachment_prototype_model + ] + instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_model_json[ + 'vpc' + ] = vpc_identity_model + instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_model_json[ + 'boot_volume_attachment' + ] = volume_attachment_prototype_instance_by_image_context_model + instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_model_json[ + 'image' + ] = image_identity_model + instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_model_json[ + 'zone' + ] = zone_identity_model + instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_model_json[ + 'network_interfaces' + ] = [ + network_interface_prototype_model + ] + instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_model_json[ + 'primary_network_interface' + ] = network_interface_prototype_model # Construct a model instance of InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkInterface by calling from_dict on the json representation - instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_model = InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkInterface.from_dict(instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_model_json) - assert instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_model != False + instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_model = InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkInterface.from_dict( + instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_model_json + ) + assert ( + instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_model + != False + ) # Construct a model instance of InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkInterface by calling from_dict on the json representation - instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_model_dict = InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkInterface.from_dict(instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_model_json).__dict__ - instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_model2 = InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkInterface(**instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_model_dict) + instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_model_dict = InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkInterface.from_dict( + instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_model_json + ).__dict__ + instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_model2 = InstanceTemplateInstanceByImageInstanceTemplateContextInstanceByImageInstanceTemplateContextInstanceByNetworkInterface( + **instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_model_dict + ) # Verify the model instances are equivalent - assert instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_model == instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_model2 + assert ( + instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_model + == instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_model_json2 = instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_model.to_dict() - assert instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_model_json2 == instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_model_json + instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_model_json2 = ( + instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_model.to_dict() + ) + assert ( + instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_model_json2 + == instance_template_instance_by_image_instance_template_context_instance_by_image_instance_template_context_instance_by_network_interface_model_json + ) class TestModel_InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkAttachment: @@ -99930,7 +115030,9 @@ class TestModel_InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextI Test Class for InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkAttachment """ - def test_instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_serialization(self): + def test_instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_serialization( + self, + ): """ Test serialization/deserialization for InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkAttachment """ @@ -99940,7 +115042,9 @@ def test_instance_template_instance_by_source_snapshot_instance_template_context instance_availability_policy_prototype_model = {} # InstanceAvailabilityPolicyPrototype instance_availability_policy_prototype_model['host_failure'] = 'restart' - cluster_network_interface_primary_ip_prototype_model = {} # ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPPrototypeClusterNetworkInterfacePrimaryIPContext + cluster_network_interface_primary_ip_prototype_model = ( + {} + ) # ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPPrototypeClusterNetworkInterfacePrimaryIPContext cluster_network_interface_primary_ip_prototype_model['address'] = '10.0.0.5' cluster_network_interface_primary_ip_prototype_model['auto_delete'] = False cluster_network_interface_primary_ip_prototype_model['name'] = 'my-cluster-network-subnet-reserved-ip' @@ -99948,14 +115052,26 @@ def test_instance_template_instance_by_source_snapshot_instance_template_context cluster_network_subnet_identity_model = {} # ClusterNetworkSubnetIdentityById cluster_network_subnet_identity_model['id'] = '0717-7931845c-65c4-4b0a-80cd-7d9c1a6d7930' - instance_cluster_network_attachment_prototype_cluster_network_interface_model = {} # InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment + instance_cluster_network_attachment_prototype_cluster_network_interface_model = ( + {} + ) # InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment instance_cluster_network_attachment_prototype_cluster_network_interface_model['auto_delete'] = False - instance_cluster_network_attachment_prototype_cluster_network_interface_model['name'] = 'my-cluster-network-interface' - instance_cluster_network_attachment_prototype_cluster_network_interface_model['primary_ip'] = cluster_network_interface_primary_ip_prototype_model - instance_cluster_network_attachment_prototype_cluster_network_interface_model['subnet'] = cluster_network_subnet_identity_model + instance_cluster_network_attachment_prototype_cluster_network_interface_model['name'] = ( + 'my-cluster-network-interface' + ) + instance_cluster_network_attachment_prototype_cluster_network_interface_model['primary_ip'] = ( + cluster_network_interface_primary_ip_prototype_model + ) + instance_cluster_network_attachment_prototype_cluster_network_interface_model['subnet'] = ( + cluster_network_subnet_identity_model + ) - instance_cluster_network_attachment_prototype_instance_context_model = {} # InstanceClusterNetworkAttachmentPrototypeInstanceContext - instance_cluster_network_attachment_prototype_instance_context_model['cluster_network_interface'] = instance_cluster_network_attachment_prototype_cluster_network_interface_model + instance_cluster_network_attachment_prototype_instance_context_model = ( + {} + ) # InstanceClusterNetworkAttachmentPrototypeInstanceContext + instance_cluster_network_attachment_prototype_instance_context_model['cluster_network_interface'] = ( + instance_cluster_network_attachment_prototype_cluster_network_interface_model + ) instance_cluster_network_attachment_prototype_instance_context_model['name'] = 'my-instance-network-attachment' trusted_profile_identity_model = {} # TrustedProfileIdentityById @@ -99973,7 +115089,9 @@ def test_instance_template_instance_by_source_snapshot_instance_template_context instance_metadata_service_prototype_model['protocol'] = 'https' instance_metadata_service_prototype_model['response_hop_limit'] = 2 - instance_placement_target_prototype_model = {} # InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityById + instance_placement_target_prototype_model = ( + {} + ) # InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityById instance_placement_target_prototype_model['id'] = '0717-1e09281b-f177-46fb-baf1-bc152b2e391a' instance_profile_identity_model = {} # InstanceProfileIdentityByName @@ -99987,7 +115105,9 @@ def test_instance_template_instance_by_source_snapshot_instance_template_context instance_reservation_affinity_prototype_model['pool'] = [reservation_identity_model] resource_group_reference_model = {} # ResourceGroupReference - resource_group_reference_model['href'] = 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + resource_group_reference_model['href'] = ( + 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + ) resource_group_reference_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' resource_group_reference_model['name'] = 'my-resource-group' @@ -100003,7 +115123,9 @@ def test_instance_template_instance_by_source_snapshot_instance_template_context vpc_identity_model['id'] = 'r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' encryption_key_identity_model = {} # EncryptionKeyIdentityByCRN - encryption_key_identity_model['crn'] = 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + encryption_key_identity_model['crn'] = ( + 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + ) volume_profile_identity_model = {} # VolumeProfileIdentityByName volume_profile_identity_model['name'] = 'general-purpose' @@ -100014,7 +115136,9 @@ def test_instance_template_instance_by_source_snapshot_instance_template_context snapshot_identity_model = {} # SnapshotIdentityById snapshot_identity_model['id'] = 'r134-f6bfa329-0e36-433f-a3bb-0df632e79263' - volume_prototype_instance_by_source_snapshot_context_model = {} # VolumePrototypeInstanceBySourceSnapshotContext + volume_prototype_instance_by_source_snapshot_context_model = ( + {} + ) # VolumePrototypeInstanceBySourceSnapshotContext volume_prototype_instance_by_source_snapshot_context_model['capacity'] = 100 volume_prototype_instance_by_source_snapshot_context_model['encryption_key'] = encryption_key_identity_model volume_prototype_instance_by_source_snapshot_context_model['iops'] = 10000 @@ -100024,12 +115148,18 @@ def test_instance_template_instance_by_source_snapshot_instance_template_context volume_prototype_instance_by_source_snapshot_context_model['source_snapshot'] = snapshot_identity_model volume_prototype_instance_by_source_snapshot_context_model['user_tags'] = [] - volume_attachment_prototype_instance_by_source_snapshot_context_model = {} # VolumeAttachmentPrototypeInstanceBySourceSnapshotContext + volume_attachment_prototype_instance_by_source_snapshot_context_model = ( + {} + ) # VolumeAttachmentPrototypeInstanceBySourceSnapshotContext volume_attachment_prototype_instance_by_source_snapshot_context_model['delete_volume_on_instance_delete'] = True volume_attachment_prototype_instance_by_source_snapshot_context_model['name'] = 'my-volume-attachment' - volume_attachment_prototype_instance_by_source_snapshot_context_model['volume'] = volume_prototype_instance_by_source_snapshot_context_model + volume_attachment_prototype_instance_by_source_snapshot_context_model['volume'] = ( + volume_prototype_instance_by_source_snapshot_context_model + ) - network_interface_ip_prototype_model = {} # NetworkInterfaceIPPrototypeReservedIPPrototypeNetworkInterfaceContext + network_interface_ip_prototype_model = ( + {} + ) # NetworkInterfaceIPPrototypeReservedIPPrototypeNetworkInterfaceContext network_interface_ip_prototype_model['address'] = '10.0.0.5' network_interface_ip_prototype_model['auto_delete'] = False network_interface_ip_prototype_model['name'] = 'my-reserved-ip' @@ -100050,74 +115180,169 @@ def test_instance_template_instance_by_source_snapshot_instance_template_context zone_identity_model = {} # ZoneIdentityByName zone_identity_model['name'] = 'us-south-1' - virtual_network_interface_ip_prototype_model = {} # VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext + virtual_network_interface_ip_prototype_model = ( + {} + ) # VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext virtual_network_interface_ip_prototype_model['address'] = '10.0.0.5' virtual_network_interface_ip_prototype_model['auto_delete'] = False virtual_network_interface_ip_prototype_model['name'] = 'my-reserved-ip' - virtual_network_interface_primary_ip_prototype_model = {} # VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext + virtual_network_interface_primary_ip_prototype_model = ( + {} + ) # VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext virtual_network_interface_primary_ip_prototype_model['address'] = '10.0.0.5' virtual_network_interface_primary_ip_prototype_model['auto_delete'] = False virtual_network_interface_primary_ip_prototype_model['name'] = 'my-reserved-ip' - instance_network_attachment_prototype_virtual_network_interface_model = {} # InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeInstanceNetworkAttachmentContext + instance_network_attachment_prototype_virtual_network_interface_model = ( + {} + ) # InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeInstanceNetworkAttachmentContext instance_network_attachment_prototype_virtual_network_interface_model['allow_ip_spoofing'] = True instance_network_attachment_prototype_virtual_network_interface_model['auto_delete'] = False instance_network_attachment_prototype_virtual_network_interface_model['enable_infrastructure_nat'] = True - instance_network_attachment_prototype_virtual_network_interface_model['ips'] = [virtual_network_interface_ip_prototype_model] + instance_network_attachment_prototype_virtual_network_interface_model['ips'] = [ + virtual_network_interface_ip_prototype_model + ] instance_network_attachment_prototype_virtual_network_interface_model['name'] = 'my-virtual-network-interface' - instance_network_attachment_prototype_virtual_network_interface_model['primary_ip'] = virtual_network_interface_primary_ip_prototype_model + instance_network_attachment_prototype_virtual_network_interface_model['primary_ip'] = ( + virtual_network_interface_primary_ip_prototype_model + ) instance_network_attachment_prototype_virtual_network_interface_model['protocol_state_filtering_mode'] = 'auto' - instance_network_attachment_prototype_virtual_network_interface_model['resource_group'] = resource_group_identity_model - instance_network_attachment_prototype_virtual_network_interface_model['security_groups'] = [security_group_identity_model] + instance_network_attachment_prototype_virtual_network_interface_model['resource_group'] = ( + resource_group_identity_model + ) + instance_network_attachment_prototype_virtual_network_interface_model['security_groups'] = [ + security_group_identity_model + ] instance_network_attachment_prototype_virtual_network_interface_model['subnet'] = subnet_identity_model instance_network_attachment_prototype_model = {} # InstanceNetworkAttachmentPrototype instance_network_attachment_prototype_model['name'] = 'my-instance-network-attachment' - instance_network_attachment_prototype_model['virtual_network_interface'] = instance_network_attachment_prototype_virtual_network_interface_model + instance_network_attachment_prototype_model['virtual_network_interface'] = ( + instance_network_attachment_prototype_virtual_network_interface_model + ) # Construct a json representation of a InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkAttachment model - instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_model_json = {} - instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_model_json['availability_policy'] = instance_availability_policy_prototype_model - instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_model_json['cluster_network_attachments'] = [instance_cluster_network_attachment_prototype_instance_context_model] - instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_model_json['confidential_compute_mode'] = 'disabled' - instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_model_json['created_at'] = '2019-01-01T12:00:00Z' - instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::instance-template:1e09281b-f177-46fb-baf1-bc152b2e391a' - instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_model_json['default_trusted_profile'] = instance_default_trusted_profile_prototype_model - instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_model_json['enable_secure_boot'] = True - instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instance/templates/1e09281b-f177-46fb-baf1-bc152b2e391a' - instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_model_json['id'] = 'a6b1a881-2ce8-41a3-80fc-36316a73f803' - instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_model_json['keys'] = [key_identity_model] - instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_model_json['metadata_service'] = instance_metadata_service_prototype_model - instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_model_json['name'] = 'my-instance-template' - instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_model_json['placement_target'] = instance_placement_target_prototype_model - instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_model_json['profile'] = instance_profile_identity_model - instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_model_json['reservation_affinity'] = instance_reservation_affinity_prototype_model - instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_model_json['resource_group'] = resource_group_reference_model - instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_model_json['total_volume_bandwidth'] = 500 - instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_model_json['user_data'] = 'testString' - instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_model_json['volume_attachments'] = [volume_attachment_prototype_model] - instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_model_json['vpc'] = vpc_identity_model - instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_model_json['boot_volume_attachment'] = volume_attachment_prototype_instance_by_source_snapshot_context_model - instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_model_json['network_interfaces'] = [network_interface_prototype_model] - instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_model_json['zone'] = zone_identity_model - instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_model_json['network_attachments'] = [instance_network_attachment_prototype_model] - instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_model_json['primary_network_attachment'] = instance_network_attachment_prototype_model + instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_model_json = ( + {} + ) + instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_model_json[ + 'availability_policy' + ] = instance_availability_policy_prototype_model + instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_model_json[ + 'cluster_network_attachments' + ] = [ + instance_cluster_network_attachment_prototype_instance_context_model + ] + instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_model_json[ + 'confidential_compute_mode' + ] = 'disabled' + instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_model_json[ + 'created_at' + ] = '2019-01-01T12:00:00Z' + instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_model_json[ + 'crn' + ] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::instance-template:1e09281b-f177-46fb-baf1-bc152b2e391a' + instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_model_json[ + 'default_trusted_profile' + ] = instance_default_trusted_profile_prototype_model + instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_model_json[ + 'enable_secure_boot' + ] = True + instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_model_json[ + 'href' + ] = 'https://us-south.iaas.cloud.ibm.com/v1/instance/templates/1e09281b-f177-46fb-baf1-bc152b2e391a' + instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_model_json[ + 'id' + ] = 'a6b1a881-2ce8-41a3-80fc-36316a73f803' + instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_model_json[ + 'keys' + ] = [ + key_identity_model + ] + instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_model_json[ + 'metadata_service' + ] = instance_metadata_service_prototype_model + instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_model_json[ + 'name' + ] = 'my-instance-template' + instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_model_json[ + 'placement_target' + ] = instance_placement_target_prototype_model + instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_model_json[ + 'profile' + ] = instance_profile_identity_model + instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_model_json[ + 'reservation_affinity' + ] = instance_reservation_affinity_prototype_model + instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_model_json[ + 'resource_group' + ] = resource_group_reference_model + instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_model_json[ + 'total_volume_bandwidth' + ] = 500 + instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_model_json[ + 'user_data' + ] = 'testString' + instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_model_json[ + 'volume_attachments' + ] = [ + volume_attachment_prototype_model + ] + instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_model_json[ + 'vpc' + ] = vpc_identity_model + instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_model_json[ + 'boot_volume_attachment' + ] = volume_attachment_prototype_instance_by_source_snapshot_context_model + instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_model_json[ + 'network_interfaces' + ] = [ + network_interface_prototype_model + ] + instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_model_json[ + 'zone' + ] = zone_identity_model + instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_model_json[ + 'network_attachments' + ] = [ + instance_network_attachment_prototype_model + ] + instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_model_json[ + 'primary_network_attachment' + ] = instance_network_attachment_prototype_model # Construct a model instance of InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkAttachment by calling from_dict on the json representation - instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_model = InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkAttachment.from_dict(instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_model_json) - assert instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_model != False + instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_model = InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkAttachment.from_dict( + instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_model_json + ) + assert ( + instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_model + != False + ) # Construct a model instance of InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkAttachment by calling from_dict on the json representation - instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_model_dict = InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkAttachment.from_dict(instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_model_json).__dict__ - instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_model2 = InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkAttachment(**instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_model_dict) + instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_model_dict = InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkAttachment.from_dict( + instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_model_json + ).__dict__ + instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_model2 = InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkAttachment( + **instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_model_dict + ) # Verify the model instances are equivalent - assert instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_model == instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_model2 + assert ( + instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_model + == instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_model_json2 = instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_model.to_dict() - assert instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_model_json2 == instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_model_json + instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_model_json2 = ( + instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_model.to_dict() + ) + assert ( + instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_model_json2 + == instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_attachment_model_json + ) class TestModel_InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkInterface: @@ -100125,7 +115350,9 @@ class TestModel_InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextI Test Class for InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkInterface """ - def test_instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_serialization(self): + def test_instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_serialization( + self, + ): """ Test serialization/deserialization for InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkInterface """ @@ -100135,7 +115362,9 @@ def test_instance_template_instance_by_source_snapshot_instance_template_context instance_availability_policy_prototype_model = {} # InstanceAvailabilityPolicyPrototype instance_availability_policy_prototype_model['host_failure'] = 'restart' - cluster_network_interface_primary_ip_prototype_model = {} # ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPPrototypeClusterNetworkInterfacePrimaryIPContext + cluster_network_interface_primary_ip_prototype_model = ( + {} + ) # ClusterNetworkInterfacePrimaryIPPrototypeClusterNetworkSubnetReservedIPPrototypeClusterNetworkInterfacePrimaryIPContext cluster_network_interface_primary_ip_prototype_model['address'] = '10.0.0.5' cluster_network_interface_primary_ip_prototype_model['auto_delete'] = False cluster_network_interface_primary_ip_prototype_model['name'] = 'my-cluster-network-subnet-reserved-ip' @@ -100143,14 +115372,26 @@ def test_instance_template_instance_by_source_snapshot_instance_template_context cluster_network_subnet_identity_model = {} # ClusterNetworkSubnetIdentityById cluster_network_subnet_identity_model['id'] = '0717-7931845c-65c4-4b0a-80cd-7d9c1a6d7930' - instance_cluster_network_attachment_prototype_cluster_network_interface_model = {} # InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment + instance_cluster_network_attachment_prototype_cluster_network_interface_model = ( + {} + ) # InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterfaceInstanceClusterNetworkInterfacePrototypeInstanceClusterNetworkAttachment instance_cluster_network_attachment_prototype_cluster_network_interface_model['auto_delete'] = False - instance_cluster_network_attachment_prototype_cluster_network_interface_model['name'] = 'my-cluster-network-interface' - instance_cluster_network_attachment_prototype_cluster_network_interface_model['primary_ip'] = cluster_network_interface_primary_ip_prototype_model - instance_cluster_network_attachment_prototype_cluster_network_interface_model['subnet'] = cluster_network_subnet_identity_model + instance_cluster_network_attachment_prototype_cluster_network_interface_model['name'] = ( + 'my-cluster-network-interface' + ) + instance_cluster_network_attachment_prototype_cluster_network_interface_model['primary_ip'] = ( + cluster_network_interface_primary_ip_prototype_model + ) + instance_cluster_network_attachment_prototype_cluster_network_interface_model['subnet'] = ( + cluster_network_subnet_identity_model + ) - instance_cluster_network_attachment_prototype_instance_context_model = {} # InstanceClusterNetworkAttachmentPrototypeInstanceContext - instance_cluster_network_attachment_prototype_instance_context_model['cluster_network_interface'] = instance_cluster_network_attachment_prototype_cluster_network_interface_model + instance_cluster_network_attachment_prototype_instance_context_model = ( + {} + ) # InstanceClusterNetworkAttachmentPrototypeInstanceContext + instance_cluster_network_attachment_prototype_instance_context_model['cluster_network_interface'] = ( + instance_cluster_network_attachment_prototype_cluster_network_interface_model + ) instance_cluster_network_attachment_prototype_instance_context_model['name'] = 'my-instance-network-attachment' trusted_profile_identity_model = {} # TrustedProfileIdentityById @@ -100168,7 +115409,9 @@ def test_instance_template_instance_by_source_snapshot_instance_template_context instance_metadata_service_prototype_model['protocol'] = 'https' instance_metadata_service_prototype_model['response_hop_limit'] = 2 - instance_placement_target_prototype_model = {} # InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityById + instance_placement_target_prototype_model = ( + {} + ) # InstancePlacementTargetPrototypeDedicatedHostIdentityDedicatedHostIdentityById instance_placement_target_prototype_model['id'] = '0717-1e09281b-f177-46fb-baf1-bc152b2e391a' instance_profile_identity_model = {} # InstanceProfileIdentityByName @@ -100182,7 +115425,9 @@ def test_instance_template_instance_by_source_snapshot_instance_template_context instance_reservation_affinity_prototype_model['pool'] = [reservation_identity_model] resource_group_reference_model = {} # ResourceGroupReference - resource_group_reference_model['href'] = 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + resource_group_reference_model['href'] = ( + 'https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345' + ) resource_group_reference_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' resource_group_reference_model['name'] = 'my-resource-group' @@ -100198,7 +115443,9 @@ def test_instance_template_instance_by_source_snapshot_instance_template_context vpc_identity_model['id'] = 'r006-4727d842-f94f-4a2d-824a-9bc9b02c523b' encryption_key_identity_model = {} # EncryptionKeyIdentityByCRN - encryption_key_identity_model['crn'] = 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + encryption_key_identity_model['crn'] = ( + 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + ) volume_profile_identity_model = {} # VolumeProfileIdentityByName volume_profile_identity_model['name'] = 'general-purpose' @@ -100209,7 +115456,9 @@ def test_instance_template_instance_by_source_snapshot_instance_template_context snapshot_identity_model = {} # SnapshotIdentityById snapshot_identity_model['id'] = 'r134-f6bfa329-0e36-433f-a3bb-0df632e79263' - volume_prototype_instance_by_source_snapshot_context_model = {} # VolumePrototypeInstanceBySourceSnapshotContext + volume_prototype_instance_by_source_snapshot_context_model = ( + {} + ) # VolumePrototypeInstanceBySourceSnapshotContext volume_prototype_instance_by_source_snapshot_context_model['capacity'] = 100 volume_prototype_instance_by_source_snapshot_context_model['encryption_key'] = encryption_key_identity_model volume_prototype_instance_by_source_snapshot_context_model['iops'] = 10000 @@ -100219,17 +115468,25 @@ def test_instance_template_instance_by_source_snapshot_instance_template_context volume_prototype_instance_by_source_snapshot_context_model['source_snapshot'] = snapshot_identity_model volume_prototype_instance_by_source_snapshot_context_model['user_tags'] = [] - volume_attachment_prototype_instance_by_source_snapshot_context_model = {} # VolumeAttachmentPrototypeInstanceBySourceSnapshotContext + volume_attachment_prototype_instance_by_source_snapshot_context_model = ( + {} + ) # VolumeAttachmentPrototypeInstanceBySourceSnapshotContext volume_attachment_prototype_instance_by_source_snapshot_context_model['delete_volume_on_instance_delete'] = True volume_attachment_prototype_instance_by_source_snapshot_context_model['name'] = 'my-volume-attachment' - volume_attachment_prototype_instance_by_source_snapshot_context_model['volume'] = volume_prototype_instance_by_source_snapshot_context_model + volume_attachment_prototype_instance_by_source_snapshot_context_model['volume'] = ( + volume_prototype_instance_by_source_snapshot_context_model + ) - virtual_network_interface_ip_prototype_model = {} # VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext + virtual_network_interface_ip_prototype_model = ( + {} + ) # VirtualNetworkInterfaceIPPrototypeReservedIPPrototypeVirtualNetworkInterfaceIPsContext virtual_network_interface_ip_prototype_model['address'] = '10.0.0.5' virtual_network_interface_ip_prototype_model['auto_delete'] = False virtual_network_interface_ip_prototype_model['name'] = 'my-reserved-ip' - virtual_network_interface_primary_ip_prototype_model = {} # VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext + virtual_network_interface_primary_ip_prototype_model = ( + {} + ) # VirtualNetworkInterfacePrimaryIPPrototypeReservedIPPrototypeVirtualNetworkInterfacePrimaryIPContext virtual_network_interface_primary_ip_prototype_model['address'] = '10.0.0.5' virtual_network_interface_primary_ip_prototype_model['auto_delete'] = False virtual_network_interface_primary_ip_prototype_model['name'] = 'my-reserved-ip' @@ -100240,26 +115497,40 @@ def test_instance_template_instance_by_source_snapshot_instance_template_context subnet_identity_model = {} # SubnetIdentityById subnet_identity_model['id'] = '7ec86020-1c6e-4889-b3f0-a15f2e50f87e' - instance_network_attachment_prototype_virtual_network_interface_model = {} # InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeInstanceNetworkAttachmentContext + instance_network_attachment_prototype_virtual_network_interface_model = ( + {} + ) # InstanceNetworkAttachmentPrototypeVirtualNetworkInterfaceVirtualNetworkInterfacePrototypeInstanceNetworkAttachmentContext instance_network_attachment_prototype_virtual_network_interface_model['allow_ip_spoofing'] = True instance_network_attachment_prototype_virtual_network_interface_model['auto_delete'] = False instance_network_attachment_prototype_virtual_network_interface_model['enable_infrastructure_nat'] = True - instance_network_attachment_prototype_virtual_network_interface_model['ips'] = [virtual_network_interface_ip_prototype_model] + instance_network_attachment_prototype_virtual_network_interface_model['ips'] = [ + virtual_network_interface_ip_prototype_model + ] instance_network_attachment_prototype_virtual_network_interface_model['name'] = 'my-virtual-network-interface' - instance_network_attachment_prototype_virtual_network_interface_model['primary_ip'] = virtual_network_interface_primary_ip_prototype_model + instance_network_attachment_prototype_virtual_network_interface_model['primary_ip'] = ( + virtual_network_interface_primary_ip_prototype_model + ) instance_network_attachment_prototype_virtual_network_interface_model['protocol_state_filtering_mode'] = 'auto' - instance_network_attachment_prototype_virtual_network_interface_model['resource_group'] = resource_group_identity_model - instance_network_attachment_prototype_virtual_network_interface_model['security_groups'] = [security_group_identity_model] + instance_network_attachment_prototype_virtual_network_interface_model['resource_group'] = ( + resource_group_identity_model + ) + instance_network_attachment_prototype_virtual_network_interface_model['security_groups'] = [ + security_group_identity_model + ] instance_network_attachment_prototype_virtual_network_interface_model['subnet'] = subnet_identity_model instance_network_attachment_prototype_model = {} # InstanceNetworkAttachmentPrototype instance_network_attachment_prototype_model['name'] = 'my-instance-network-attachment' - instance_network_attachment_prototype_model['virtual_network_interface'] = instance_network_attachment_prototype_virtual_network_interface_model + instance_network_attachment_prototype_model['virtual_network_interface'] = ( + instance_network_attachment_prototype_virtual_network_interface_model + ) zone_identity_model = {} # ZoneIdentityByName zone_identity_model['name'] = 'us-south-1' - network_interface_ip_prototype_model = {} # NetworkInterfaceIPPrototypeReservedIPPrototypeNetworkInterfaceContext + network_interface_ip_prototype_model = ( + {} + ) # NetworkInterfaceIPPrototypeReservedIPPrototypeNetworkInterfaceContext network_interface_ip_prototype_model['address'] = '10.0.0.5' network_interface_ip_prototype_model['auto_delete'] = False network_interface_ip_prototype_model['name'] = 'my-reserved-ip' @@ -100272,48 +115543,129 @@ def test_instance_template_instance_by_source_snapshot_instance_template_context network_interface_prototype_model['subnet'] = subnet_identity_model # Construct a json representation of a InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkInterface model - instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model_json = {} - instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model_json['availability_policy'] = instance_availability_policy_prototype_model - instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model_json['cluster_network_attachments'] = [instance_cluster_network_attachment_prototype_instance_context_model] - instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model_json['confidential_compute_mode'] = 'disabled' - instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model_json['created_at'] = '2019-01-01T12:00:00Z' - instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::instance-template:1e09281b-f177-46fb-baf1-bc152b2e391a' - instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model_json['default_trusted_profile'] = instance_default_trusted_profile_prototype_model - instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model_json['enable_secure_boot'] = True - instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instance/templates/1e09281b-f177-46fb-baf1-bc152b2e391a' - instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model_json['id'] = 'a6b1a881-2ce8-41a3-80fc-36316a73f803' - instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model_json['keys'] = [key_identity_model] - instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model_json['metadata_service'] = instance_metadata_service_prototype_model - instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model_json['name'] = 'my-instance-template' - instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model_json['placement_target'] = instance_placement_target_prototype_model - instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model_json['profile'] = instance_profile_identity_model - instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model_json['reservation_affinity'] = instance_reservation_affinity_prototype_model - instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model_json['resource_group'] = resource_group_reference_model - instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model_json['total_volume_bandwidth'] = 500 - instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model_json['user_data'] = 'testString' - instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model_json['volume_attachments'] = [volume_attachment_prototype_model] - instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model_json['vpc'] = vpc_identity_model - instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model_json['boot_volume_attachment'] = volume_attachment_prototype_instance_by_source_snapshot_context_model - instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model_json['network_attachments'] = [instance_network_attachment_prototype_model] - instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model_json['primary_network_attachment'] = instance_network_attachment_prototype_model - instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model_json['zone'] = zone_identity_model - instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model_json['network_interfaces'] = [network_interface_prototype_model] - instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model_json['primary_network_interface'] = network_interface_prototype_model + instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model_json = ( + {} + ) + instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model_json[ + 'availability_policy' + ] = instance_availability_policy_prototype_model + instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model_json[ + 'cluster_network_attachments' + ] = [ + instance_cluster_network_attachment_prototype_instance_context_model + ] + instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model_json[ + 'confidential_compute_mode' + ] = 'disabled' + instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model_json[ + 'created_at' + ] = '2019-01-01T12:00:00Z' + instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model_json[ + 'crn' + ] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::instance-template:1e09281b-f177-46fb-baf1-bc152b2e391a' + instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model_json[ + 'default_trusted_profile' + ] = instance_default_trusted_profile_prototype_model + instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model_json[ + 'enable_secure_boot' + ] = True + instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model_json[ + 'href' + ] = 'https://us-south.iaas.cloud.ibm.com/v1/instance/templates/1e09281b-f177-46fb-baf1-bc152b2e391a' + instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model_json[ + 'id' + ] = 'a6b1a881-2ce8-41a3-80fc-36316a73f803' + instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model_json[ + 'keys' + ] = [ + key_identity_model + ] + instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model_json[ + 'metadata_service' + ] = instance_metadata_service_prototype_model + instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model_json[ + 'name' + ] = 'my-instance-template' + instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model_json[ + 'placement_target' + ] = instance_placement_target_prototype_model + instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model_json[ + 'profile' + ] = instance_profile_identity_model + instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model_json[ + 'reservation_affinity' + ] = instance_reservation_affinity_prototype_model + instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model_json[ + 'resource_group' + ] = resource_group_reference_model + instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model_json[ + 'total_volume_bandwidth' + ] = 500 + instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model_json[ + 'user_data' + ] = 'testString' + instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model_json[ + 'volume_attachments' + ] = [ + volume_attachment_prototype_model + ] + instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model_json[ + 'vpc' + ] = vpc_identity_model + instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model_json[ + 'boot_volume_attachment' + ] = volume_attachment_prototype_instance_by_source_snapshot_context_model + instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model_json[ + 'network_attachments' + ] = [ + instance_network_attachment_prototype_model + ] + instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model_json[ + 'primary_network_attachment' + ] = instance_network_attachment_prototype_model + instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model_json[ + 'zone' + ] = zone_identity_model + instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model_json[ + 'network_interfaces' + ] = [ + network_interface_prototype_model + ] + instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model_json[ + 'primary_network_interface' + ] = network_interface_prototype_model # Construct a model instance of InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkInterface by calling from_dict on the json representation - instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model = InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkInterface.from_dict(instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model_json) - assert instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model != False + instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model = InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkInterface.from_dict( + instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model_json + ) + assert ( + instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model + != False + ) # Construct a model instance of InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkInterface by calling from_dict on the json representation - instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model_dict = InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkInterface.from_dict(instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model_json).__dict__ - instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model2 = InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkInterface(**instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model_dict) + instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model_dict = InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkInterface.from_dict( + instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model_json + ).__dict__ + instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model2 = InstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextInstanceBySourceSnapshotInstanceTemplateContextInstanceByNetworkInterface( + **instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model_dict + ) # Verify the model instances are equivalent - assert instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model == instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model2 + assert ( + instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model + == instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model_json2 = instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model.to_dict() - assert instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model_json2 == instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model_json + instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model_json2 = ( + instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model.to_dict() + ) + assert ( + instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model_json2 + == instance_template_instance_by_source_snapshot_instance_template_context_instance_by_source_snapshot_instance_template_context_instance_by_network_interface_model_json + ) class TestModel_LoadBalancerListenerPolicyTargetPatchLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref: @@ -100321,29 +115673,52 @@ class TestModel_LoadBalancerListenerPolicyTargetPatchLoadBalancerPoolIdentityLoa Test Class for LoadBalancerListenerPolicyTargetPatchLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref """ - def test_load_balancer_listener_policy_target_patch_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_href_serialization(self): + def test_load_balancer_listener_policy_target_patch_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_href_serialization( + self, + ): """ Test serialization/deserialization for LoadBalancerListenerPolicyTargetPatchLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref """ # Construct a json representation of a LoadBalancerListenerPolicyTargetPatchLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref model - load_balancer_listener_policy_target_patch_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_href_model_json = {} - load_balancer_listener_policy_target_patch_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_href_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/pools/70294e14-4e61-11e8-bcf4-0242ac110004' + load_balancer_listener_policy_target_patch_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_href_model_json = ( + {} + ) + load_balancer_listener_policy_target_patch_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_href_model_json[ + 'href' + ] = 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/pools/70294e14-4e61-11e8-bcf4-0242ac110004' # Construct a model instance of LoadBalancerListenerPolicyTargetPatchLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref by calling from_dict on the json representation - load_balancer_listener_policy_target_patch_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_href_model = LoadBalancerListenerPolicyTargetPatchLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref.from_dict(load_balancer_listener_policy_target_patch_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_href_model_json) - assert load_balancer_listener_policy_target_patch_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_href_model != False + load_balancer_listener_policy_target_patch_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_href_model = LoadBalancerListenerPolicyTargetPatchLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref.from_dict( + load_balancer_listener_policy_target_patch_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_href_model_json + ) + assert ( + load_balancer_listener_policy_target_patch_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_href_model + != False + ) # Construct a model instance of LoadBalancerListenerPolicyTargetPatchLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref by calling from_dict on the json representation - load_balancer_listener_policy_target_patch_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_href_model_dict = LoadBalancerListenerPolicyTargetPatchLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref.from_dict(load_balancer_listener_policy_target_patch_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_href_model_json).__dict__ - load_balancer_listener_policy_target_patch_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_href_model2 = LoadBalancerListenerPolicyTargetPatchLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref(**load_balancer_listener_policy_target_patch_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_href_model_dict) + load_balancer_listener_policy_target_patch_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_href_model_dict = LoadBalancerListenerPolicyTargetPatchLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref.from_dict( + load_balancer_listener_policy_target_patch_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_href_model_json + ).__dict__ + load_balancer_listener_policy_target_patch_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_href_model2 = LoadBalancerListenerPolicyTargetPatchLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref( + **load_balancer_listener_policy_target_patch_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_href_model_dict + ) # Verify the model instances are equivalent - assert load_balancer_listener_policy_target_patch_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_href_model == load_balancer_listener_policy_target_patch_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_href_model2 + assert ( + load_balancer_listener_policy_target_patch_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_href_model + == load_balancer_listener_policy_target_patch_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_href_model2 + ) # Convert model instance back to dict and verify no loss of data - load_balancer_listener_policy_target_patch_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_href_model_json2 = load_balancer_listener_policy_target_patch_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_href_model.to_dict() - assert load_balancer_listener_policy_target_patch_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_href_model_json2 == load_balancer_listener_policy_target_patch_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_href_model_json + load_balancer_listener_policy_target_patch_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_href_model_json2 = ( + load_balancer_listener_policy_target_patch_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_href_model.to_dict() + ) + assert ( + load_balancer_listener_policy_target_patch_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_href_model_json2 + == load_balancer_listener_policy_target_patch_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_href_model_json + ) class TestModel_LoadBalancerListenerPolicyTargetPatchLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityById: @@ -100351,29 +115726,52 @@ class TestModel_LoadBalancerListenerPolicyTargetPatchLoadBalancerPoolIdentityLoa Test Class for LoadBalancerListenerPolicyTargetPatchLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityById """ - def test_load_balancer_listener_policy_target_patch_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_id_serialization(self): + def test_load_balancer_listener_policy_target_patch_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_id_serialization( + self, + ): """ Test serialization/deserialization for LoadBalancerListenerPolicyTargetPatchLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityById """ # Construct a json representation of a LoadBalancerListenerPolicyTargetPatchLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityById model - load_balancer_listener_policy_target_patch_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_id_model_json = {} - load_balancer_listener_policy_target_patch_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_id_model_json['id'] = '70294e14-4e61-11e8-bcf4-0242ac110004' + load_balancer_listener_policy_target_patch_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_id_model_json = ( + {} + ) + load_balancer_listener_policy_target_patch_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_id_model_json[ + 'id' + ] = '70294e14-4e61-11e8-bcf4-0242ac110004' # Construct a model instance of LoadBalancerListenerPolicyTargetPatchLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityById by calling from_dict on the json representation - load_balancer_listener_policy_target_patch_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_id_model = LoadBalancerListenerPolicyTargetPatchLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityById.from_dict(load_balancer_listener_policy_target_patch_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_id_model_json) - assert load_balancer_listener_policy_target_patch_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_id_model != False + load_balancer_listener_policy_target_patch_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_id_model = LoadBalancerListenerPolicyTargetPatchLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityById.from_dict( + load_balancer_listener_policy_target_patch_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_id_model_json + ) + assert ( + load_balancer_listener_policy_target_patch_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_id_model + != False + ) # Construct a model instance of LoadBalancerListenerPolicyTargetPatchLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityById by calling from_dict on the json representation - load_balancer_listener_policy_target_patch_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_id_model_dict = LoadBalancerListenerPolicyTargetPatchLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityById.from_dict(load_balancer_listener_policy_target_patch_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_id_model_json).__dict__ - load_balancer_listener_policy_target_patch_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_id_model2 = LoadBalancerListenerPolicyTargetPatchLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityById(**load_balancer_listener_policy_target_patch_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_id_model_dict) + load_balancer_listener_policy_target_patch_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_id_model_dict = LoadBalancerListenerPolicyTargetPatchLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityById.from_dict( + load_balancer_listener_policy_target_patch_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_id_model_json + ).__dict__ + load_balancer_listener_policy_target_patch_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_id_model2 = LoadBalancerListenerPolicyTargetPatchLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityById( + **load_balancer_listener_policy_target_patch_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_id_model_dict + ) # Verify the model instances are equivalent - assert load_balancer_listener_policy_target_patch_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_id_model == load_balancer_listener_policy_target_patch_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_id_model2 + assert ( + load_balancer_listener_policy_target_patch_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_id_model + == load_balancer_listener_policy_target_patch_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_id_model2 + ) # Convert model instance back to dict and verify no loss of data - load_balancer_listener_policy_target_patch_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_id_model_json2 = load_balancer_listener_policy_target_patch_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_id_model.to_dict() - assert load_balancer_listener_policy_target_patch_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_id_model_json2 == load_balancer_listener_policy_target_patch_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_id_model_json + load_balancer_listener_policy_target_patch_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_id_model_json2 = ( + load_balancer_listener_policy_target_patch_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_id_model.to_dict() + ) + assert ( + load_balancer_listener_policy_target_patch_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_id_model_json2 + == load_balancer_listener_policy_target_patch_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_id_model_json + ) class TestModel_LoadBalancerListenerPolicyTargetPrototypeLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref: @@ -100381,29 +115779,52 @@ class TestModel_LoadBalancerListenerPolicyTargetPrototypeLoadBalancerPoolIdentit Test Class for LoadBalancerListenerPolicyTargetPrototypeLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref """ - def test_load_balancer_listener_policy_target_prototype_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_href_serialization(self): + def test_load_balancer_listener_policy_target_prototype_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_href_serialization( + self, + ): """ Test serialization/deserialization for LoadBalancerListenerPolicyTargetPrototypeLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref """ # Construct a json representation of a LoadBalancerListenerPolicyTargetPrototypeLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref model - load_balancer_listener_policy_target_prototype_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_href_model_json = {} - load_balancer_listener_policy_target_prototype_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_href_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/pools/70294e14-4e61-11e8-bcf4-0242ac110004' + load_balancer_listener_policy_target_prototype_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_href_model_json = ( + {} + ) + load_balancer_listener_policy_target_prototype_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_href_model_json[ + 'href' + ] = 'https://us-south.iaas.cloud.ibm.com/v1/load_balancers/dd754295-e9e0-4c9d-bf6c-58fbc59e5727/pools/70294e14-4e61-11e8-bcf4-0242ac110004' # Construct a model instance of LoadBalancerListenerPolicyTargetPrototypeLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref by calling from_dict on the json representation - load_balancer_listener_policy_target_prototype_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_href_model = LoadBalancerListenerPolicyTargetPrototypeLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref.from_dict(load_balancer_listener_policy_target_prototype_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_href_model_json) - assert load_balancer_listener_policy_target_prototype_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_href_model != False + load_balancer_listener_policy_target_prototype_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_href_model = LoadBalancerListenerPolicyTargetPrototypeLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref.from_dict( + load_balancer_listener_policy_target_prototype_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_href_model_json + ) + assert ( + load_balancer_listener_policy_target_prototype_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_href_model + != False + ) # Construct a model instance of LoadBalancerListenerPolicyTargetPrototypeLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref by calling from_dict on the json representation - load_balancer_listener_policy_target_prototype_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_href_model_dict = LoadBalancerListenerPolicyTargetPrototypeLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref.from_dict(load_balancer_listener_policy_target_prototype_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_href_model_json).__dict__ - load_balancer_listener_policy_target_prototype_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_href_model2 = LoadBalancerListenerPolicyTargetPrototypeLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref(**load_balancer_listener_policy_target_prototype_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_href_model_dict) + load_balancer_listener_policy_target_prototype_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_href_model_dict = LoadBalancerListenerPolicyTargetPrototypeLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref.from_dict( + load_balancer_listener_policy_target_prototype_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_href_model_json + ).__dict__ + load_balancer_listener_policy_target_prototype_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_href_model2 = LoadBalancerListenerPolicyTargetPrototypeLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref( + **load_balancer_listener_policy_target_prototype_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_href_model_dict + ) # Verify the model instances are equivalent - assert load_balancer_listener_policy_target_prototype_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_href_model == load_balancer_listener_policy_target_prototype_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_href_model2 + assert ( + load_balancer_listener_policy_target_prototype_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_href_model + == load_balancer_listener_policy_target_prototype_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_href_model2 + ) # Convert model instance back to dict and verify no loss of data - load_balancer_listener_policy_target_prototype_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_href_model_json2 = load_balancer_listener_policy_target_prototype_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_href_model.to_dict() - assert load_balancer_listener_policy_target_prototype_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_href_model_json2 == load_balancer_listener_policy_target_prototype_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_href_model_json + load_balancer_listener_policy_target_prototype_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_href_model_json2 = ( + load_balancer_listener_policy_target_prototype_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_href_model.to_dict() + ) + assert ( + load_balancer_listener_policy_target_prototype_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_href_model_json2 + == load_balancer_listener_policy_target_prototype_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_href_model_json + ) class TestModel_LoadBalancerListenerPolicyTargetPrototypeLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityById: @@ -100411,29 +115832,52 @@ class TestModel_LoadBalancerListenerPolicyTargetPrototypeLoadBalancerPoolIdentit Test Class for LoadBalancerListenerPolicyTargetPrototypeLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityById """ - def test_load_balancer_listener_policy_target_prototype_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_id_serialization(self): + def test_load_balancer_listener_policy_target_prototype_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_id_serialization( + self, + ): """ Test serialization/deserialization for LoadBalancerListenerPolicyTargetPrototypeLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityById """ # Construct a json representation of a LoadBalancerListenerPolicyTargetPrototypeLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityById model - load_balancer_listener_policy_target_prototype_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_id_model_json = {} - load_balancer_listener_policy_target_prototype_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_id_model_json['id'] = '70294e14-4e61-11e8-bcf4-0242ac110004' + load_balancer_listener_policy_target_prototype_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_id_model_json = ( + {} + ) + load_balancer_listener_policy_target_prototype_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_id_model_json[ + 'id' + ] = '70294e14-4e61-11e8-bcf4-0242ac110004' # Construct a model instance of LoadBalancerListenerPolicyTargetPrototypeLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityById by calling from_dict on the json representation - load_balancer_listener_policy_target_prototype_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_id_model = LoadBalancerListenerPolicyTargetPrototypeLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityById.from_dict(load_balancer_listener_policy_target_prototype_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_id_model_json) - assert load_balancer_listener_policy_target_prototype_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_id_model != False + load_balancer_listener_policy_target_prototype_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_id_model = LoadBalancerListenerPolicyTargetPrototypeLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityById.from_dict( + load_balancer_listener_policy_target_prototype_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_id_model_json + ) + assert ( + load_balancer_listener_policy_target_prototype_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_id_model + != False + ) # Construct a model instance of LoadBalancerListenerPolicyTargetPrototypeLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityById by calling from_dict on the json representation - load_balancer_listener_policy_target_prototype_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_id_model_dict = LoadBalancerListenerPolicyTargetPrototypeLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityById.from_dict(load_balancer_listener_policy_target_prototype_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_id_model_json).__dict__ - load_balancer_listener_policy_target_prototype_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_id_model2 = LoadBalancerListenerPolicyTargetPrototypeLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityById(**load_balancer_listener_policy_target_prototype_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_id_model_dict) + load_balancer_listener_policy_target_prototype_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_id_model_dict = LoadBalancerListenerPolicyTargetPrototypeLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityById.from_dict( + load_balancer_listener_policy_target_prototype_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_id_model_json + ).__dict__ + load_balancer_listener_policy_target_prototype_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_id_model2 = LoadBalancerListenerPolicyTargetPrototypeLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityById( + **load_balancer_listener_policy_target_prototype_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_id_model_dict + ) # Verify the model instances are equivalent - assert load_balancer_listener_policy_target_prototype_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_id_model == load_balancer_listener_policy_target_prototype_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_id_model2 + assert ( + load_balancer_listener_policy_target_prototype_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_id_model + == load_balancer_listener_policy_target_prototype_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_id_model2 + ) # Convert model instance back to dict and verify no loss of data - load_balancer_listener_policy_target_prototype_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_id_model_json2 = load_balancer_listener_policy_target_prototype_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_id_model.to_dict() - assert load_balancer_listener_policy_target_prototype_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_id_model_json2 == load_balancer_listener_policy_target_prototype_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_id_model_json + load_balancer_listener_policy_target_prototype_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_id_model_json2 = ( + load_balancer_listener_policy_target_prototype_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_id_model.to_dict() + ) + assert ( + load_balancer_listener_policy_target_prototype_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_id_model_json2 + == load_balancer_listener_policy_target_prototype_load_balancer_pool_identity_load_balancer_pool_identity_load_balancer_pool_identity_by_id_model_json + ) class TestModel_LoadBalancerPoolMemberTargetPrototypeInstanceIdentityInstanceIdentityByCRN: @@ -100448,22 +115892,44 @@ def test_load_balancer_pool_member_target_prototype_instance_identity_instance_i # Construct a json representation of a LoadBalancerPoolMemberTargetPrototypeInstanceIdentityInstanceIdentityByCRN model load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_crn_model_json = {} - load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_crn_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::instance:0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' + load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_crn_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::instance:0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' + ) # Construct a model instance of LoadBalancerPoolMemberTargetPrototypeInstanceIdentityInstanceIdentityByCRN by calling from_dict on the json representation - load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_crn_model = LoadBalancerPoolMemberTargetPrototypeInstanceIdentityInstanceIdentityByCRN.from_dict(load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_crn_model_json) + load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_crn_model = ( + LoadBalancerPoolMemberTargetPrototypeInstanceIdentityInstanceIdentityByCRN.from_dict( + load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_crn_model_json + ) + ) assert load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_crn_model != False # Construct a model instance of LoadBalancerPoolMemberTargetPrototypeInstanceIdentityInstanceIdentityByCRN by calling from_dict on the json representation - load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_crn_model_dict = LoadBalancerPoolMemberTargetPrototypeInstanceIdentityInstanceIdentityByCRN.from_dict(load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_crn_model_json).__dict__ - load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_crn_model2 = LoadBalancerPoolMemberTargetPrototypeInstanceIdentityInstanceIdentityByCRN(**load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_crn_model_dict) + load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_crn_model_dict = ( + LoadBalancerPoolMemberTargetPrototypeInstanceIdentityInstanceIdentityByCRN.from_dict( + load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_crn_model_json + ).__dict__ + ) + load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_crn_model2 = ( + LoadBalancerPoolMemberTargetPrototypeInstanceIdentityInstanceIdentityByCRN( + **load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_crn_model_dict + ) + ) # Verify the model instances are equivalent - assert load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_crn_model == load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_crn_model2 + assert ( + load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_crn_model + == load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_crn_model2 + ) # Convert model instance back to dict and verify no loss of data - load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_crn_model_json2 = load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_crn_model.to_dict() - assert load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_crn_model_json2 == load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_crn_model_json + load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_crn_model_json2 = ( + load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_crn_model.to_dict() + ) + assert ( + load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_crn_model_json2 + == load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_crn_model_json + ) class TestModel_LoadBalancerPoolMemberTargetPrototypeInstanceIdentityInstanceIdentityByHref: @@ -100478,22 +115944,44 @@ def test_load_balancer_pool_member_target_prototype_instance_identity_instance_i # Construct a json representation of a LoadBalancerPoolMemberTargetPrototypeInstanceIdentityInstanceIdentityByHref model load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_href_model_json = {} - load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_href_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' + load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_href_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/instances/0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' + ) # Construct a model instance of LoadBalancerPoolMemberTargetPrototypeInstanceIdentityInstanceIdentityByHref by calling from_dict on the json representation - load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_href_model = LoadBalancerPoolMemberTargetPrototypeInstanceIdentityInstanceIdentityByHref.from_dict(load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_href_model_json) + load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_href_model = ( + LoadBalancerPoolMemberTargetPrototypeInstanceIdentityInstanceIdentityByHref.from_dict( + load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_href_model_json + ) + ) assert load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_href_model != False # Construct a model instance of LoadBalancerPoolMemberTargetPrototypeInstanceIdentityInstanceIdentityByHref by calling from_dict on the json representation - load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_href_model_dict = LoadBalancerPoolMemberTargetPrototypeInstanceIdentityInstanceIdentityByHref.from_dict(load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_href_model_json).__dict__ - load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_href_model2 = LoadBalancerPoolMemberTargetPrototypeInstanceIdentityInstanceIdentityByHref(**load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_href_model_dict) + load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_href_model_dict = ( + LoadBalancerPoolMemberTargetPrototypeInstanceIdentityInstanceIdentityByHref.from_dict( + load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_href_model_json + ).__dict__ + ) + load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_href_model2 = ( + LoadBalancerPoolMemberTargetPrototypeInstanceIdentityInstanceIdentityByHref( + **load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_href_model_dict + ) + ) # Verify the model instances are equivalent - assert load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_href_model == load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_href_model2 + assert ( + load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_href_model + == load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_href_model2 + ) # Convert model instance back to dict and verify no loss of data - load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_href_model_json2 = load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_href_model.to_dict() - assert load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_href_model_json2 == load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_href_model_json + load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_href_model_json2 = ( + load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_href_model.to_dict() + ) + assert ( + load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_href_model_json2 + == load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_href_model_json + ) class TestModel_LoadBalancerPoolMemberTargetPrototypeInstanceIdentityInstanceIdentityById: @@ -100508,22 +115996,44 @@ def test_load_balancer_pool_member_target_prototype_instance_identity_instance_i # Construct a json representation of a LoadBalancerPoolMemberTargetPrototypeInstanceIdentityInstanceIdentityById model load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_id_model_json = {} - load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_id_model_json['id'] = '0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' + load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_id_model_json['id'] = ( + '0717_e21b7391-2ca2-4ab5-84a8-b92157a633b0' + ) # Construct a model instance of LoadBalancerPoolMemberTargetPrototypeInstanceIdentityInstanceIdentityById by calling from_dict on the json representation - load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_id_model = LoadBalancerPoolMemberTargetPrototypeInstanceIdentityInstanceIdentityById.from_dict(load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_id_model_json) + load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_id_model = ( + LoadBalancerPoolMemberTargetPrototypeInstanceIdentityInstanceIdentityById.from_dict( + load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_id_model_json + ) + ) assert load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_id_model != False # Construct a model instance of LoadBalancerPoolMemberTargetPrototypeInstanceIdentityInstanceIdentityById by calling from_dict on the json representation - load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_id_model_dict = LoadBalancerPoolMemberTargetPrototypeInstanceIdentityInstanceIdentityById.from_dict(load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_id_model_json).__dict__ - load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_id_model2 = LoadBalancerPoolMemberTargetPrototypeInstanceIdentityInstanceIdentityById(**load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_id_model_dict) + load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_id_model_dict = ( + LoadBalancerPoolMemberTargetPrototypeInstanceIdentityInstanceIdentityById.from_dict( + load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_id_model_json + ).__dict__ + ) + load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_id_model2 = ( + LoadBalancerPoolMemberTargetPrototypeInstanceIdentityInstanceIdentityById( + **load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_id_model_dict + ) + ) # Verify the model instances are equivalent - assert load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_id_model == load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_id_model2 + assert ( + load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_id_model + == load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_id_model2 + ) # Convert model instance back to dict and verify no loss of data - load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_id_model_json2 = load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_id_model.to_dict() - assert load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_id_model_json2 == load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_id_model_json + load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_id_model_json2 = ( + load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_id_model.to_dict() + ) + assert ( + load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_id_model_json2 + == load_balancer_pool_member_target_prototype_instance_identity_instance_identity_by_id_model_json + ) class TestModel_NetworkInterfaceIPPrototypeReservedIPIdentityByHref: @@ -100538,22 +116048,44 @@ def test_network_interface_ip_prototype_reserved_ip_identity_by_href_serializati # Construct a json representation of a NetworkInterfaceIPPrototypeReservedIPIdentityByHref model network_interface_ip_prototype_reserved_ip_identity_by_href_model_json = {} - network_interface_ip_prototype_reserved_ip_identity_by_href_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-bea6a632-5e13-42a4-b4b8-31dc877abfe4/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + network_interface_ip_prototype_reserved_ip_identity_by_href_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-bea6a632-5e13-42a4-b4b8-31dc877abfe4/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + ) # Construct a model instance of NetworkInterfaceIPPrototypeReservedIPIdentityByHref by calling from_dict on the json representation - network_interface_ip_prototype_reserved_ip_identity_by_href_model = NetworkInterfaceIPPrototypeReservedIPIdentityByHref.from_dict(network_interface_ip_prototype_reserved_ip_identity_by_href_model_json) + network_interface_ip_prototype_reserved_ip_identity_by_href_model = ( + NetworkInterfaceIPPrototypeReservedIPIdentityByHref.from_dict( + network_interface_ip_prototype_reserved_ip_identity_by_href_model_json + ) + ) assert network_interface_ip_prototype_reserved_ip_identity_by_href_model != False # Construct a model instance of NetworkInterfaceIPPrototypeReservedIPIdentityByHref by calling from_dict on the json representation - network_interface_ip_prototype_reserved_ip_identity_by_href_model_dict = NetworkInterfaceIPPrototypeReservedIPIdentityByHref.from_dict(network_interface_ip_prototype_reserved_ip_identity_by_href_model_json).__dict__ - network_interface_ip_prototype_reserved_ip_identity_by_href_model2 = NetworkInterfaceIPPrototypeReservedIPIdentityByHref(**network_interface_ip_prototype_reserved_ip_identity_by_href_model_dict) + network_interface_ip_prototype_reserved_ip_identity_by_href_model_dict = ( + NetworkInterfaceIPPrototypeReservedIPIdentityByHref.from_dict( + network_interface_ip_prototype_reserved_ip_identity_by_href_model_json + ).__dict__ + ) + network_interface_ip_prototype_reserved_ip_identity_by_href_model2 = ( + NetworkInterfaceIPPrototypeReservedIPIdentityByHref( + **network_interface_ip_prototype_reserved_ip_identity_by_href_model_dict + ) + ) # Verify the model instances are equivalent - assert network_interface_ip_prototype_reserved_ip_identity_by_href_model == network_interface_ip_prototype_reserved_ip_identity_by_href_model2 + assert ( + network_interface_ip_prototype_reserved_ip_identity_by_href_model + == network_interface_ip_prototype_reserved_ip_identity_by_href_model2 + ) # Convert model instance back to dict and verify no loss of data - network_interface_ip_prototype_reserved_ip_identity_by_href_model_json2 = network_interface_ip_prototype_reserved_ip_identity_by_href_model.to_dict() - assert network_interface_ip_prototype_reserved_ip_identity_by_href_model_json2 == network_interface_ip_prototype_reserved_ip_identity_by_href_model_json + network_interface_ip_prototype_reserved_ip_identity_by_href_model_json2 = ( + network_interface_ip_prototype_reserved_ip_identity_by_href_model.to_dict() + ) + assert ( + network_interface_ip_prototype_reserved_ip_identity_by_href_model_json2 + == network_interface_ip_prototype_reserved_ip_identity_by_href_model_json + ) class TestModel_NetworkInterfaceIPPrototypeReservedIPIdentityById: @@ -100568,22 +116100,44 @@ def test_network_interface_ip_prototype_reserved_ip_identity_by_id_serialization # Construct a json representation of a NetworkInterfaceIPPrototypeReservedIPIdentityById model network_interface_ip_prototype_reserved_ip_identity_by_id_model_json = {} - network_interface_ip_prototype_reserved_ip_identity_by_id_model_json['id'] = '0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + network_interface_ip_prototype_reserved_ip_identity_by_id_model_json['id'] = ( + '0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + ) # Construct a model instance of NetworkInterfaceIPPrototypeReservedIPIdentityById by calling from_dict on the json representation - network_interface_ip_prototype_reserved_ip_identity_by_id_model = NetworkInterfaceIPPrototypeReservedIPIdentityById.from_dict(network_interface_ip_prototype_reserved_ip_identity_by_id_model_json) + network_interface_ip_prototype_reserved_ip_identity_by_id_model = ( + NetworkInterfaceIPPrototypeReservedIPIdentityById.from_dict( + network_interface_ip_prototype_reserved_ip_identity_by_id_model_json + ) + ) assert network_interface_ip_prototype_reserved_ip_identity_by_id_model != False # Construct a model instance of NetworkInterfaceIPPrototypeReservedIPIdentityById by calling from_dict on the json representation - network_interface_ip_prototype_reserved_ip_identity_by_id_model_dict = NetworkInterfaceIPPrototypeReservedIPIdentityById.from_dict(network_interface_ip_prototype_reserved_ip_identity_by_id_model_json).__dict__ - network_interface_ip_prototype_reserved_ip_identity_by_id_model2 = NetworkInterfaceIPPrototypeReservedIPIdentityById(**network_interface_ip_prototype_reserved_ip_identity_by_id_model_dict) + network_interface_ip_prototype_reserved_ip_identity_by_id_model_dict = ( + NetworkInterfaceIPPrototypeReservedIPIdentityById.from_dict( + network_interface_ip_prototype_reserved_ip_identity_by_id_model_json + ).__dict__ + ) + network_interface_ip_prototype_reserved_ip_identity_by_id_model2 = ( + NetworkInterfaceIPPrototypeReservedIPIdentityById( + **network_interface_ip_prototype_reserved_ip_identity_by_id_model_dict + ) + ) # Verify the model instances are equivalent - assert network_interface_ip_prototype_reserved_ip_identity_by_id_model == network_interface_ip_prototype_reserved_ip_identity_by_id_model2 + assert ( + network_interface_ip_prototype_reserved_ip_identity_by_id_model + == network_interface_ip_prototype_reserved_ip_identity_by_id_model2 + ) # Convert model instance back to dict and verify no loss of data - network_interface_ip_prototype_reserved_ip_identity_by_id_model_json2 = network_interface_ip_prototype_reserved_ip_identity_by_id_model.to_dict() - assert network_interface_ip_prototype_reserved_ip_identity_by_id_model_json2 == network_interface_ip_prototype_reserved_ip_identity_by_id_model_json + network_interface_ip_prototype_reserved_ip_identity_by_id_model_json2 = ( + network_interface_ip_prototype_reserved_ip_identity_by_id_model.to_dict() + ) + assert ( + network_interface_ip_prototype_reserved_ip_identity_by_id_model_json2 + == network_interface_ip_prototype_reserved_ip_identity_by_id_model_json + ) class TestModel_PublicGatewayFloatingIPPrototypeFloatingIPIdentityFloatingIPIdentityByAddress: @@ -100591,29 +116145,53 @@ class TestModel_PublicGatewayFloatingIPPrototypeFloatingIPIdentityFloatingIPIden Test Class for PublicGatewayFloatingIPPrototypeFloatingIPIdentityFloatingIPIdentityByAddress """ - def test_public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_address_serialization(self): + def test_public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_address_serialization( + self, + ): """ Test serialization/deserialization for PublicGatewayFloatingIPPrototypeFloatingIPIdentityFloatingIPIdentityByAddress """ # Construct a json representation of a PublicGatewayFloatingIPPrototypeFloatingIPIdentityFloatingIPIdentityByAddress model public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_address_model_json = {} - public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_address_model_json['address'] = '203.0.113.1' + public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_address_model_json[ + 'address' + ] = '203.0.113.1' # Construct a model instance of PublicGatewayFloatingIPPrototypeFloatingIPIdentityFloatingIPIdentityByAddress by calling from_dict on the json representation - public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_address_model = PublicGatewayFloatingIPPrototypeFloatingIPIdentityFloatingIPIdentityByAddress.from_dict(public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_address_model_json) + public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_address_model = ( + PublicGatewayFloatingIPPrototypeFloatingIPIdentityFloatingIPIdentityByAddress.from_dict( + public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_address_model_json + ) + ) assert public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_address_model != False # Construct a model instance of PublicGatewayFloatingIPPrototypeFloatingIPIdentityFloatingIPIdentityByAddress by calling from_dict on the json representation - public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_address_model_dict = PublicGatewayFloatingIPPrototypeFloatingIPIdentityFloatingIPIdentityByAddress.from_dict(public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_address_model_json).__dict__ - public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_address_model2 = PublicGatewayFloatingIPPrototypeFloatingIPIdentityFloatingIPIdentityByAddress(**public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_address_model_dict) + public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_address_model_dict = ( + PublicGatewayFloatingIPPrototypeFloatingIPIdentityFloatingIPIdentityByAddress.from_dict( + public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_address_model_json + ).__dict__ + ) + public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_address_model2 = ( + PublicGatewayFloatingIPPrototypeFloatingIPIdentityFloatingIPIdentityByAddress( + **public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_address_model_dict + ) + ) # Verify the model instances are equivalent - assert public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_address_model == public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_address_model2 + assert ( + public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_address_model + == public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_address_model2 + ) # Convert model instance back to dict and verify no loss of data - public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_address_model_json2 = public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_address_model.to_dict() - assert public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_address_model_json2 == public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_address_model_json + public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_address_model_json2 = ( + public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_address_model.to_dict() + ) + assert ( + public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_address_model_json2 + == public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_address_model_json + ) class TestModel_PublicGatewayFloatingIPPrototypeFloatingIPIdentityFloatingIPIdentityByCRN: @@ -100628,22 +116206,44 @@ def test_public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_i # Construct a json representation of a PublicGatewayFloatingIPPrototypeFloatingIPIdentityFloatingIPIdentityByCRN model public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_crn_model_json = {} - public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_crn_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::floating-ip:r006-f45e0d90-12a8-4460-8210-290ff2ab75cd' + public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_crn_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::floating-ip:r006-f45e0d90-12a8-4460-8210-290ff2ab75cd' + ) # Construct a model instance of PublicGatewayFloatingIPPrototypeFloatingIPIdentityFloatingIPIdentityByCRN by calling from_dict on the json representation - public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_crn_model = PublicGatewayFloatingIPPrototypeFloatingIPIdentityFloatingIPIdentityByCRN.from_dict(public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_crn_model_json) + public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_crn_model = ( + PublicGatewayFloatingIPPrototypeFloatingIPIdentityFloatingIPIdentityByCRN.from_dict( + public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_crn_model_json + ) + ) assert public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_crn_model != False # Construct a model instance of PublicGatewayFloatingIPPrototypeFloatingIPIdentityFloatingIPIdentityByCRN by calling from_dict on the json representation - public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_crn_model_dict = PublicGatewayFloatingIPPrototypeFloatingIPIdentityFloatingIPIdentityByCRN.from_dict(public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_crn_model_json).__dict__ - public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_crn_model2 = PublicGatewayFloatingIPPrototypeFloatingIPIdentityFloatingIPIdentityByCRN(**public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_crn_model_dict) + public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_crn_model_dict = ( + PublicGatewayFloatingIPPrototypeFloatingIPIdentityFloatingIPIdentityByCRN.from_dict( + public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_crn_model_json + ).__dict__ + ) + public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_crn_model2 = ( + PublicGatewayFloatingIPPrototypeFloatingIPIdentityFloatingIPIdentityByCRN( + **public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_crn_model_dict + ) + ) # Verify the model instances are equivalent - assert public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_crn_model == public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_crn_model2 + assert ( + public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_crn_model + == public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_crn_model2 + ) # Convert model instance back to dict and verify no loss of data - public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_crn_model_json2 = public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_crn_model.to_dict() - assert public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_crn_model_json2 == public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_crn_model_json + public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_crn_model_json2 = ( + public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_crn_model.to_dict() + ) + assert ( + public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_crn_model_json2 + == public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_crn_model_json + ) class TestModel_PublicGatewayFloatingIPPrototypeFloatingIPIdentityFloatingIPIdentityByHref: @@ -100658,22 +116258,44 @@ def test_public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_i # Construct a json representation of a PublicGatewayFloatingIPPrototypeFloatingIPIdentityFloatingIPIdentityByHref model public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_href_model_json = {} - public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_href_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/floating_ips/r006-f45e0d90-12a8-4460-8210-290ff2ab75cd' + public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_href_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/floating_ips/r006-f45e0d90-12a8-4460-8210-290ff2ab75cd' + ) # Construct a model instance of PublicGatewayFloatingIPPrototypeFloatingIPIdentityFloatingIPIdentityByHref by calling from_dict on the json representation - public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_href_model = PublicGatewayFloatingIPPrototypeFloatingIPIdentityFloatingIPIdentityByHref.from_dict(public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_href_model_json) + public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_href_model = ( + PublicGatewayFloatingIPPrototypeFloatingIPIdentityFloatingIPIdentityByHref.from_dict( + public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_href_model_json + ) + ) assert public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_href_model != False # Construct a model instance of PublicGatewayFloatingIPPrototypeFloatingIPIdentityFloatingIPIdentityByHref by calling from_dict on the json representation - public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_href_model_dict = PublicGatewayFloatingIPPrototypeFloatingIPIdentityFloatingIPIdentityByHref.from_dict(public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_href_model_json).__dict__ - public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_href_model2 = PublicGatewayFloatingIPPrototypeFloatingIPIdentityFloatingIPIdentityByHref(**public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_href_model_dict) + public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_href_model_dict = ( + PublicGatewayFloatingIPPrototypeFloatingIPIdentityFloatingIPIdentityByHref.from_dict( + public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_href_model_json + ).__dict__ + ) + public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_href_model2 = ( + PublicGatewayFloatingIPPrototypeFloatingIPIdentityFloatingIPIdentityByHref( + **public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_href_model_dict + ) + ) # Verify the model instances are equivalent - assert public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_href_model == public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_href_model2 + assert ( + public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_href_model + == public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_href_model2 + ) # Convert model instance back to dict and verify no loss of data - public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_href_model_json2 = public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_href_model.to_dict() - assert public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_href_model_json2 == public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_href_model_json + public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_href_model_json2 = ( + public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_href_model.to_dict() + ) + assert ( + public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_href_model_json2 + == public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_href_model_json + ) class TestModel_PublicGatewayFloatingIPPrototypeFloatingIPIdentityFloatingIPIdentityById: @@ -100688,22 +116310,44 @@ def test_public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_i # Construct a json representation of a PublicGatewayFloatingIPPrototypeFloatingIPIdentityFloatingIPIdentityById model public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_id_model_json = {} - public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_id_model_json['id'] = 'r006-f45e0d90-12a8-4460-8210-290ff2ab75cd' + public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_id_model_json['id'] = ( + 'r006-f45e0d90-12a8-4460-8210-290ff2ab75cd' + ) # Construct a model instance of PublicGatewayFloatingIPPrototypeFloatingIPIdentityFloatingIPIdentityById by calling from_dict on the json representation - public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_id_model = PublicGatewayFloatingIPPrototypeFloatingIPIdentityFloatingIPIdentityById.from_dict(public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_id_model_json) + public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_id_model = ( + PublicGatewayFloatingIPPrototypeFloatingIPIdentityFloatingIPIdentityById.from_dict( + public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_id_model_json + ) + ) assert public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_id_model != False # Construct a model instance of PublicGatewayFloatingIPPrototypeFloatingIPIdentityFloatingIPIdentityById by calling from_dict on the json representation - public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_id_model_dict = PublicGatewayFloatingIPPrototypeFloatingIPIdentityFloatingIPIdentityById.from_dict(public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_id_model_json).__dict__ - public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_id_model2 = PublicGatewayFloatingIPPrototypeFloatingIPIdentityFloatingIPIdentityById(**public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_id_model_dict) + public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_id_model_dict = ( + PublicGatewayFloatingIPPrototypeFloatingIPIdentityFloatingIPIdentityById.from_dict( + public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_id_model_json + ).__dict__ + ) + public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_id_model2 = ( + PublicGatewayFloatingIPPrototypeFloatingIPIdentityFloatingIPIdentityById( + **public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_id_model_dict + ) + ) # Verify the model instances are equivalent - assert public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_id_model == public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_id_model2 + assert ( + public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_id_model + == public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_id_model2 + ) # Convert model instance back to dict and verify no loss of data - public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_id_model_json2 = public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_id_model.to_dict() - assert public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_id_model_json2 == public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_id_model_json + public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_id_model_json2 = ( + public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_id_model.to_dict() + ) + assert ( + public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_id_model_json2 + == public_gateway_floating_ip_prototype_floating_ip_identity_floating_ip_identity_by_id_model_json + ) class TestModel_ReservedIPTargetPrototypeEndpointGatewayIdentityEndpointGatewayIdentityByCRN: @@ -100711,29 +116355,53 @@ class TestModel_ReservedIPTargetPrototypeEndpointGatewayIdentityEndpointGatewayI Test Class for ReservedIPTargetPrototypeEndpointGatewayIdentityEndpointGatewayIdentityByCRN """ - def test_reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_crn_serialization(self): + def test_reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_crn_serialization( + self, + ): """ Test serialization/deserialization for ReservedIPTargetPrototypeEndpointGatewayIdentityEndpointGatewayIdentityByCRN """ # Construct a json representation of a ReservedIPTargetPrototypeEndpointGatewayIdentityEndpointGatewayIdentityByCRN model reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_crn_model_json = {} - reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_crn_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::endpoint-gateway:r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5' + reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_crn_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::endpoint-gateway:r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5' + ) # Construct a model instance of ReservedIPTargetPrototypeEndpointGatewayIdentityEndpointGatewayIdentityByCRN by calling from_dict on the json representation - reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_crn_model = ReservedIPTargetPrototypeEndpointGatewayIdentityEndpointGatewayIdentityByCRN.from_dict(reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_crn_model_json) + reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_crn_model = ( + ReservedIPTargetPrototypeEndpointGatewayIdentityEndpointGatewayIdentityByCRN.from_dict( + reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_crn_model_json + ) + ) assert reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_crn_model != False # Construct a model instance of ReservedIPTargetPrototypeEndpointGatewayIdentityEndpointGatewayIdentityByCRN by calling from_dict on the json representation - reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_crn_model_dict = ReservedIPTargetPrototypeEndpointGatewayIdentityEndpointGatewayIdentityByCRN.from_dict(reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_crn_model_json).__dict__ - reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_crn_model2 = ReservedIPTargetPrototypeEndpointGatewayIdentityEndpointGatewayIdentityByCRN(**reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_crn_model_dict) + reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_crn_model_dict = ( + ReservedIPTargetPrototypeEndpointGatewayIdentityEndpointGatewayIdentityByCRN.from_dict( + reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_crn_model_json + ).__dict__ + ) + reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_crn_model2 = ( + ReservedIPTargetPrototypeEndpointGatewayIdentityEndpointGatewayIdentityByCRN( + **reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_crn_model_dict + ) + ) # Verify the model instances are equivalent - assert reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_crn_model == reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_crn_model2 + assert ( + reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_crn_model + == reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_crn_model2 + ) # Convert model instance back to dict and verify no loss of data - reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_crn_model_json2 = reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_crn_model.to_dict() - assert reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_crn_model_json2 == reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_crn_model_json + reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_crn_model_json2 = ( + reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_crn_model.to_dict() + ) + assert ( + reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_crn_model_json2 + == reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_crn_model_json + ) class TestModel_ReservedIPTargetPrototypeEndpointGatewayIdentityEndpointGatewayIdentityByHref: @@ -100741,29 +116409,53 @@ class TestModel_ReservedIPTargetPrototypeEndpointGatewayIdentityEndpointGatewayI Test Class for ReservedIPTargetPrototypeEndpointGatewayIdentityEndpointGatewayIdentityByHref """ - def test_reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_href_serialization(self): + def test_reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_href_serialization( + self, + ): """ Test serialization/deserialization for ReservedIPTargetPrototypeEndpointGatewayIdentityEndpointGatewayIdentityByHref """ # Construct a json representation of a ReservedIPTargetPrototypeEndpointGatewayIdentityEndpointGatewayIdentityByHref model reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_href_model_json = {} - reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_href_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/endpoint_gateways/r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5' + reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_href_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/endpoint_gateways/r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5' + ) # Construct a model instance of ReservedIPTargetPrototypeEndpointGatewayIdentityEndpointGatewayIdentityByHref by calling from_dict on the json representation - reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_href_model = ReservedIPTargetPrototypeEndpointGatewayIdentityEndpointGatewayIdentityByHref.from_dict(reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_href_model_json) + reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_href_model = ( + ReservedIPTargetPrototypeEndpointGatewayIdentityEndpointGatewayIdentityByHref.from_dict( + reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_href_model_json + ) + ) assert reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_href_model != False # Construct a model instance of ReservedIPTargetPrototypeEndpointGatewayIdentityEndpointGatewayIdentityByHref by calling from_dict on the json representation - reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_href_model_dict = ReservedIPTargetPrototypeEndpointGatewayIdentityEndpointGatewayIdentityByHref.from_dict(reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_href_model_json).__dict__ - reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_href_model2 = ReservedIPTargetPrototypeEndpointGatewayIdentityEndpointGatewayIdentityByHref(**reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_href_model_dict) + reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_href_model_dict = ( + ReservedIPTargetPrototypeEndpointGatewayIdentityEndpointGatewayIdentityByHref.from_dict( + reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_href_model_json + ).__dict__ + ) + reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_href_model2 = ( + ReservedIPTargetPrototypeEndpointGatewayIdentityEndpointGatewayIdentityByHref( + **reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_href_model_dict + ) + ) # Verify the model instances are equivalent - assert reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_href_model == reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_href_model2 + assert ( + reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_href_model + == reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_href_model2 + ) # Convert model instance back to dict and verify no loss of data - reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_href_model_json2 = reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_href_model.to_dict() - assert reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_href_model_json2 == reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_href_model_json + reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_href_model_json2 = ( + reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_href_model.to_dict() + ) + assert ( + reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_href_model_json2 + == reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_href_model_json + ) class TestModel_ReservedIPTargetPrototypeEndpointGatewayIdentityEndpointGatewayIdentityById: @@ -100778,22 +116470,44 @@ def test_reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway # Construct a json representation of a ReservedIPTargetPrototypeEndpointGatewayIdentityEndpointGatewayIdentityById model reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_id_model_json = {} - reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_id_model_json['id'] = 'r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5' + reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_id_model_json['id'] = ( + 'r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5' + ) # Construct a model instance of ReservedIPTargetPrototypeEndpointGatewayIdentityEndpointGatewayIdentityById by calling from_dict on the json representation - reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_id_model = ReservedIPTargetPrototypeEndpointGatewayIdentityEndpointGatewayIdentityById.from_dict(reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_id_model_json) + reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_id_model = ( + ReservedIPTargetPrototypeEndpointGatewayIdentityEndpointGatewayIdentityById.from_dict( + reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_id_model_json + ) + ) assert reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_id_model != False # Construct a model instance of ReservedIPTargetPrototypeEndpointGatewayIdentityEndpointGatewayIdentityById by calling from_dict on the json representation - reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_id_model_dict = ReservedIPTargetPrototypeEndpointGatewayIdentityEndpointGatewayIdentityById.from_dict(reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_id_model_json).__dict__ - reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_id_model2 = ReservedIPTargetPrototypeEndpointGatewayIdentityEndpointGatewayIdentityById(**reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_id_model_dict) + reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_id_model_dict = ( + ReservedIPTargetPrototypeEndpointGatewayIdentityEndpointGatewayIdentityById.from_dict( + reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_id_model_json + ).__dict__ + ) + reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_id_model2 = ( + ReservedIPTargetPrototypeEndpointGatewayIdentityEndpointGatewayIdentityById( + **reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_id_model_dict + ) + ) # Verify the model instances are equivalent - assert reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_id_model == reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_id_model2 + assert ( + reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_id_model + == reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_id_model2 + ) # Convert model instance back to dict and verify no loss of data - reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_id_model_json2 = reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_id_model.to_dict() - assert reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_id_model_json2 == reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_id_model_json + reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_id_model_json2 = ( + reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_id_model.to_dict() + ) + assert ( + reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_id_model_json2 + == reserved_ip_target_prototype_endpoint_gateway_identity_endpoint_gateway_identity_by_id_model_json + ) class TestModel_ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN: @@ -100801,29 +116515,52 @@ class TestModel_ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualN Test Class for ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN """ - def test_reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_serialization(self): + def test_reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_serialization( + self, + ): """ Test serialization/deserialization for ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN """ # Construct a json representation of a ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN model - reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json = {} - reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::virtual-network-interface:0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json = ( + {} + ) + reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json[ + 'crn' + ] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::virtual-network-interface:0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' # Construct a model instance of ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN by calling from_dict on the json representation - reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model = ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN.from_dict(reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json) - assert reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model != False + reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model = ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN.from_dict( + reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json + ) + assert ( + reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model + != False + ) # Construct a model instance of ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN by calling from_dict on the json representation - reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_dict = ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN.from_dict(reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json).__dict__ - reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model2 = ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN(**reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_dict) + reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_dict = ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN.from_dict( + reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json + ).__dict__ + reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model2 = ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN( + **reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_dict + ) # Verify the model instances are equivalent - assert reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model == reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model2 + assert ( + reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model + == reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model2 + ) # Convert model instance back to dict and verify no loss of data - reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json2 = reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model.to_dict() - assert reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json2 == reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json + reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json2 = ( + reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model.to_dict() + ) + assert ( + reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json2 + == reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json + ) class TestModel_ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref: @@ -100831,29 +116568,52 @@ class TestModel_ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualN Test Class for ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref """ - def test_reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_serialization(self): + def test_reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_serialization( + self, + ): """ Test serialization/deserialization for ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref """ # Construct a json representation of a ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref model - reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json = {} - reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/virtual_network_interfaces/0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json = ( + {} + ) + reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json[ + 'href' + ] = 'https://us-south.iaas.cloud.ibm.com/v1/virtual_network_interfaces/0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' # Construct a model instance of ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref by calling from_dict on the json representation - reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model = ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref.from_dict(reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json) - assert reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model != False + reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model = ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref.from_dict( + reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json + ) + assert ( + reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model + != False + ) # Construct a model instance of ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref by calling from_dict on the json representation - reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_dict = ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref.from_dict(reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json).__dict__ - reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model2 = ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref(**reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_dict) + reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_dict = ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref.from_dict( + reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json + ).__dict__ + reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model2 = ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref( + **reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_dict + ) # Verify the model instances are equivalent - assert reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model == reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model2 + assert ( + reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model + == reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model2 + ) # Convert model instance back to dict and verify no loss of data - reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json2 = reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model.to_dict() - assert reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json2 == reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json + reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json2 = ( + reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model.to_dict() + ) + assert ( + reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json2 + == reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json + ) class TestModel_ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById: @@ -100861,29 +116621,52 @@ class TestModel_ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualN Test Class for ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById """ - def test_reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_serialization(self): + def test_reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_serialization( + self, + ): """ Test serialization/deserialization for ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById """ # Construct a json representation of a ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById model - reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json = {} - reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json['id'] = '0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json = ( + {} + ) + reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json[ + 'id' + ] = '0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' # Construct a model instance of ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById by calling from_dict on the json representation - reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model = ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById.from_dict(reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json) - assert reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model != False + reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model = ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById.from_dict( + reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json + ) + assert ( + reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model + != False + ) # Construct a model instance of ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById by calling from_dict on the json representation - reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_dict = ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById.from_dict(reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json).__dict__ - reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model2 = ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById(**reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_dict) + reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_dict = ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById.from_dict( + reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json + ).__dict__ + reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model2 = ReservedIPTargetPrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById( + **reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_dict + ) # Verify the model instances are equivalent - assert reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model == reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model2 + assert ( + reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model + == reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model2 + ) # Convert model instance back to dict and verify no loss of data - reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json2 = reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model.to_dict() - assert reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json2 == reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json + reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json2 = ( + reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model.to_dict() + ) + assert ( + reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json2 + == reserved_ip_target_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json + ) class TestModel_RouteNextHopPatchRouteNextHopIPRouteNextHopIPSentinelIP: @@ -100901,19 +116684,39 @@ def test_route_next_hop_patch_route_next_hop_ip_route_next_hop_ip_sentinel_ip_se route_next_hop_patch_route_next_hop_ip_route_next_hop_ip_sentinel_ip_model_json['address'] = '0.0.0.0' # Construct a model instance of RouteNextHopPatchRouteNextHopIPRouteNextHopIPSentinelIP by calling from_dict on the json representation - route_next_hop_patch_route_next_hop_ip_route_next_hop_ip_sentinel_ip_model = RouteNextHopPatchRouteNextHopIPRouteNextHopIPSentinelIP.from_dict(route_next_hop_patch_route_next_hop_ip_route_next_hop_ip_sentinel_ip_model_json) + route_next_hop_patch_route_next_hop_ip_route_next_hop_ip_sentinel_ip_model = ( + RouteNextHopPatchRouteNextHopIPRouteNextHopIPSentinelIP.from_dict( + route_next_hop_patch_route_next_hop_ip_route_next_hop_ip_sentinel_ip_model_json + ) + ) assert route_next_hop_patch_route_next_hop_ip_route_next_hop_ip_sentinel_ip_model != False # Construct a model instance of RouteNextHopPatchRouteNextHopIPRouteNextHopIPSentinelIP by calling from_dict on the json representation - route_next_hop_patch_route_next_hop_ip_route_next_hop_ip_sentinel_ip_model_dict = RouteNextHopPatchRouteNextHopIPRouteNextHopIPSentinelIP.from_dict(route_next_hop_patch_route_next_hop_ip_route_next_hop_ip_sentinel_ip_model_json).__dict__ - route_next_hop_patch_route_next_hop_ip_route_next_hop_ip_sentinel_ip_model2 = RouteNextHopPatchRouteNextHopIPRouteNextHopIPSentinelIP(**route_next_hop_patch_route_next_hop_ip_route_next_hop_ip_sentinel_ip_model_dict) + route_next_hop_patch_route_next_hop_ip_route_next_hop_ip_sentinel_ip_model_dict = ( + RouteNextHopPatchRouteNextHopIPRouteNextHopIPSentinelIP.from_dict( + route_next_hop_patch_route_next_hop_ip_route_next_hop_ip_sentinel_ip_model_json + ).__dict__ + ) + route_next_hop_patch_route_next_hop_ip_route_next_hop_ip_sentinel_ip_model2 = ( + RouteNextHopPatchRouteNextHopIPRouteNextHopIPSentinelIP( + **route_next_hop_patch_route_next_hop_ip_route_next_hop_ip_sentinel_ip_model_dict + ) + ) # Verify the model instances are equivalent - assert route_next_hop_patch_route_next_hop_ip_route_next_hop_ip_sentinel_ip_model == route_next_hop_patch_route_next_hop_ip_route_next_hop_ip_sentinel_ip_model2 + assert ( + route_next_hop_patch_route_next_hop_ip_route_next_hop_ip_sentinel_ip_model + == route_next_hop_patch_route_next_hop_ip_route_next_hop_ip_sentinel_ip_model2 + ) # Convert model instance back to dict and verify no loss of data - route_next_hop_patch_route_next_hop_ip_route_next_hop_ip_sentinel_ip_model_json2 = route_next_hop_patch_route_next_hop_ip_route_next_hop_ip_sentinel_ip_model.to_dict() - assert route_next_hop_patch_route_next_hop_ip_route_next_hop_ip_sentinel_ip_model_json2 == route_next_hop_patch_route_next_hop_ip_route_next_hop_ip_sentinel_ip_model_json + route_next_hop_patch_route_next_hop_ip_route_next_hop_ip_sentinel_ip_model_json2 = ( + route_next_hop_patch_route_next_hop_ip_route_next_hop_ip_sentinel_ip_model.to_dict() + ) + assert ( + route_next_hop_patch_route_next_hop_ip_route_next_hop_ip_sentinel_ip_model_json2 + == route_next_hop_patch_route_next_hop_ip_route_next_hop_ip_sentinel_ip_model_json + ) class TestModel_RouteNextHopPatchRouteNextHopIPRouteNextHopIPUnicastIP: @@ -100931,19 +116734,39 @@ def test_route_next_hop_patch_route_next_hop_ip_route_next_hop_ip_unicast_ip_ser route_next_hop_patch_route_next_hop_ip_route_next_hop_ip_unicast_ip_model_json['address'] = '192.168.3.4' # Construct a model instance of RouteNextHopPatchRouteNextHopIPRouteNextHopIPUnicastIP by calling from_dict on the json representation - route_next_hop_patch_route_next_hop_ip_route_next_hop_ip_unicast_ip_model = RouteNextHopPatchRouteNextHopIPRouteNextHopIPUnicastIP.from_dict(route_next_hop_patch_route_next_hop_ip_route_next_hop_ip_unicast_ip_model_json) + route_next_hop_patch_route_next_hop_ip_route_next_hop_ip_unicast_ip_model = ( + RouteNextHopPatchRouteNextHopIPRouteNextHopIPUnicastIP.from_dict( + route_next_hop_patch_route_next_hop_ip_route_next_hop_ip_unicast_ip_model_json + ) + ) assert route_next_hop_patch_route_next_hop_ip_route_next_hop_ip_unicast_ip_model != False # Construct a model instance of RouteNextHopPatchRouteNextHopIPRouteNextHopIPUnicastIP by calling from_dict on the json representation - route_next_hop_patch_route_next_hop_ip_route_next_hop_ip_unicast_ip_model_dict = RouteNextHopPatchRouteNextHopIPRouteNextHopIPUnicastIP.from_dict(route_next_hop_patch_route_next_hop_ip_route_next_hop_ip_unicast_ip_model_json).__dict__ - route_next_hop_patch_route_next_hop_ip_route_next_hop_ip_unicast_ip_model2 = RouteNextHopPatchRouteNextHopIPRouteNextHopIPUnicastIP(**route_next_hop_patch_route_next_hop_ip_route_next_hop_ip_unicast_ip_model_dict) + route_next_hop_patch_route_next_hop_ip_route_next_hop_ip_unicast_ip_model_dict = ( + RouteNextHopPatchRouteNextHopIPRouteNextHopIPUnicastIP.from_dict( + route_next_hop_patch_route_next_hop_ip_route_next_hop_ip_unicast_ip_model_json + ).__dict__ + ) + route_next_hop_patch_route_next_hop_ip_route_next_hop_ip_unicast_ip_model2 = ( + RouteNextHopPatchRouteNextHopIPRouteNextHopIPUnicastIP( + **route_next_hop_patch_route_next_hop_ip_route_next_hop_ip_unicast_ip_model_dict + ) + ) # Verify the model instances are equivalent - assert route_next_hop_patch_route_next_hop_ip_route_next_hop_ip_unicast_ip_model == route_next_hop_patch_route_next_hop_ip_route_next_hop_ip_unicast_ip_model2 + assert ( + route_next_hop_patch_route_next_hop_ip_route_next_hop_ip_unicast_ip_model + == route_next_hop_patch_route_next_hop_ip_route_next_hop_ip_unicast_ip_model2 + ) # Convert model instance back to dict and verify no loss of data - route_next_hop_patch_route_next_hop_ip_route_next_hop_ip_unicast_ip_model_json2 = route_next_hop_patch_route_next_hop_ip_route_next_hop_ip_unicast_ip_model.to_dict() - assert route_next_hop_patch_route_next_hop_ip_route_next_hop_ip_unicast_ip_model_json2 == route_next_hop_patch_route_next_hop_ip_route_next_hop_ip_unicast_ip_model_json + route_next_hop_patch_route_next_hop_ip_route_next_hop_ip_unicast_ip_model_json2 = ( + route_next_hop_patch_route_next_hop_ip_route_next_hop_ip_unicast_ip_model.to_dict() + ) + assert ( + route_next_hop_patch_route_next_hop_ip_route_next_hop_ip_unicast_ip_model_json2 + == route_next_hop_patch_route_next_hop_ip_route_next_hop_ip_unicast_ip_model_json + ) class TestModel_RouteNextHopPatchVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref: @@ -100951,29 +116774,53 @@ class TestModel_RouteNextHopPatchVPNGatewayConnectionIdentityVPNGatewayConnectio Test Class for RouteNextHopPatchVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref """ - def test_route_next_hop_patch_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_href_serialization(self): + def test_route_next_hop_patch_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_href_serialization( + self, + ): """ Test serialization/deserialization for RouteNextHopPatchVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref """ # Construct a json representation of a RouteNextHopPatchVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref model route_next_hop_patch_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_href_model_json = {} - route_next_hop_patch_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_href_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b/connections/93487806-7743-4c46-81d6-72869883ea0b' + route_next_hop_patch_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_href_model_json[ + 'href' + ] = 'https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b/connections/93487806-7743-4c46-81d6-72869883ea0b' # Construct a model instance of RouteNextHopPatchVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref by calling from_dict on the json representation - route_next_hop_patch_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_href_model = RouteNextHopPatchVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref.from_dict(route_next_hop_patch_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_href_model_json) - assert route_next_hop_patch_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_href_model != False + route_next_hop_patch_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_href_model = ( + RouteNextHopPatchVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref.from_dict( + route_next_hop_patch_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_href_model_json + ) + ) + assert ( + route_next_hop_patch_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_href_model != False + ) # Construct a model instance of RouteNextHopPatchVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref by calling from_dict on the json representation - route_next_hop_patch_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_href_model_dict = RouteNextHopPatchVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref.from_dict(route_next_hop_patch_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_href_model_json).__dict__ - route_next_hop_patch_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_href_model2 = RouteNextHopPatchVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref(**route_next_hop_patch_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_href_model_dict) + route_next_hop_patch_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_href_model_dict = ( + RouteNextHopPatchVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref.from_dict( + route_next_hop_patch_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_href_model_json + ).__dict__ + ) + route_next_hop_patch_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_href_model2 = RouteNextHopPatchVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref( + **route_next_hop_patch_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_href_model_dict + ) # Verify the model instances are equivalent - assert route_next_hop_patch_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_href_model == route_next_hop_patch_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_href_model2 + assert ( + route_next_hop_patch_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_href_model + == route_next_hop_patch_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_href_model2 + ) # Convert model instance back to dict and verify no loss of data - route_next_hop_patch_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_href_model_json2 = route_next_hop_patch_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_href_model.to_dict() - assert route_next_hop_patch_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_href_model_json2 == route_next_hop_patch_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_href_model_json + route_next_hop_patch_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_href_model_json2 = ( + route_next_hop_patch_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_href_model.to_dict() + ) + assert ( + route_next_hop_patch_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_href_model_json2 + == route_next_hop_patch_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_href_model_json + ) class TestModel_RouteNextHopPatchVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityById: @@ -100981,29 +116828,53 @@ class TestModel_RouteNextHopPatchVPNGatewayConnectionIdentityVPNGatewayConnectio Test Class for RouteNextHopPatchVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityById """ - def test_route_next_hop_patch_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_id_serialization(self): + def test_route_next_hop_patch_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_id_serialization( + self, + ): """ Test serialization/deserialization for RouteNextHopPatchVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityById """ # Construct a json representation of a RouteNextHopPatchVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityById model route_next_hop_patch_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_id_model_json = {} - route_next_hop_patch_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_id_model_json['id'] = 'a10a5771-dc23-442c-8460-c3601d8542f7' + route_next_hop_patch_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_id_model_json['id'] = ( + 'a10a5771-dc23-442c-8460-c3601d8542f7' + ) # Construct a model instance of RouteNextHopPatchVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityById by calling from_dict on the json representation - route_next_hop_patch_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_id_model = RouteNextHopPatchVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityById.from_dict(route_next_hop_patch_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_id_model_json) + route_next_hop_patch_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_id_model = ( + RouteNextHopPatchVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityById.from_dict( + route_next_hop_patch_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_id_model_json + ) + ) assert route_next_hop_patch_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_id_model != False # Construct a model instance of RouteNextHopPatchVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityById by calling from_dict on the json representation - route_next_hop_patch_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_id_model_dict = RouteNextHopPatchVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityById.from_dict(route_next_hop_patch_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_id_model_json).__dict__ - route_next_hop_patch_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_id_model2 = RouteNextHopPatchVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityById(**route_next_hop_patch_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_id_model_dict) + route_next_hop_patch_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_id_model_dict = ( + RouteNextHopPatchVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityById.from_dict( + route_next_hop_patch_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_id_model_json + ).__dict__ + ) + route_next_hop_patch_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_id_model2 = ( + RouteNextHopPatchVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityById( + **route_next_hop_patch_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_id_model_dict + ) + ) # Verify the model instances are equivalent - assert route_next_hop_patch_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_id_model == route_next_hop_patch_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_id_model2 + assert ( + route_next_hop_patch_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_id_model + == route_next_hop_patch_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_id_model2 + ) # Convert model instance back to dict and verify no loss of data - route_next_hop_patch_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_id_model_json2 = route_next_hop_patch_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_id_model.to_dict() - assert route_next_hop_patch_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_id_model_json2 == route_next_hop_patch_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_id_model_json + route_next_hop_patch_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_id_model_json2 = ( + route_next_hop_patch_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_id_model.to_dict() + ) + assert ( + route_next_hop_patch_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_id_model_json2 + == route_next_hop_patch_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_id_model_json + ) class TestModel_RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP: @@ -101021,19 +116892,39 @@ def test_route_next_hop_prototype_route_next_hop_ip_route_next_hop_ip_sentinel_i route_next_hop_prototype_route_next_hop_ip_route_next_hop_ip_sentinel_ip_model_json['address'] = '0.0.0.0' # Construct a model instance of RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP by calling from_dict on the json representation - route_next_hop_prototype_route_next_hop_ip_route_next_hop_ip_sentinel_ip_model = RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP.from_dict(route_next_hop_prototype_route_next_hop_ip_route_next_hop_ip_sentinel_ip_model_json) + route_next_hop_prototype_route_next_hop_ip_route_next_hop_ip_sentinel_ip_model = ( + RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP.from_dict( + route_next_hop_prototype_route_next_hop_ip_route_next_hop_ip_sentinel_ip_model_json + ) + ) assert route_next_hop_prototype_route_next_hop_ip_route_next_hop_ip_sentinel_ip_model != False # Construct a model instance of RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP by calling from_dict on the json representation - route_next_hop_prototype_route_next_hop_ip_route_next_hop_ip_sentinel_ip_model_dict = RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP.from_dict(route_next_hop_prototype_route_next_hop_ip_route_next_hop_ip_sentinel_ip_model_json).__dict__ - route_next_hop_prototype_route_next_hop_ip_route_next_hop_ip_sentinel_ip_model2 = RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP(**route_next_hop_prototype_route_next_hop_ip_route_next_hop_ip_sentinel_ip_model_dict) + route_next_hop_prototype_route_next_hop_ip_route_next_hop_ip_sentinel_ip_model_dict = ( + RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP.from_dict( + route_next_hop_prototype_route_next_hop_ip_route_next_hop_ip_sentinel_ip_model_json + ).__dict__ + ) + route_next_hop_prototype_route_next_hop_ip_route_next_hop_ip_sentinel_ip_model2 = ( + RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP( + **route_next_hop_prototype_route_next_hop_ip_route_next_hop_ip_sentinel_ip_model_dict + ) + ) # Verify the model instances are equivalent - assert route_next_hop_prototype_route_next_hop_ip_route_next_hop_ip_sentinel_ip_model == route_next_hop_prototype_route_next_hop_ip_route_next_hop_ip_sentinel_ip_model2 + assert ( + route_next_hop_prototype_route_next_hop_ip_route_next_hop_ip_sentinel_ip_model + == route_next_hop_prototype_route_next_hop_ip_route_next_hop_ip_sentinel_ip_model2 + ) # Convert model instance back to dict and verify no loss of data - route_next_hop_prototype_route_next_hop_ip_route_next_hop_ip_sentinel_ip_model_json2 = route_next_hop_prototype_route_next_hop_ip_route_next_hop_ip_sentinel_ip_model.to_dict() - assert route_next_hop_prototype_route_next_hop_ip_route_next_hop_ip_sentinel_ip_model_json2 == route_next_hop_prototype_route_next_hop_ip_route_next_hop_ip_sentinel_ip_model_json + route_next_hop_prototype_route_next_hop_ip_route_next_hop_ip_sentinel_ip_model_json2 = ( + route_next_hop_prototype_route_next_hop_ip_route_next_hop_ip_sentinel_ip_model.to_dict() + ) + assert ( + route_next_hop_prototype_route_next_hop_ip_route_next_hop_ip_sentinel_ip_model_json2 + == route_next_hop_prototype_route_next_hop_ip_route_next_hop_ip_sentinel_ip_model_json + ) class TestModel_RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP: @@ -101051,19 +116942,39 @@ def test_route_next_hop_prototype_route_next_hop_ip_route_next_hop_ip_unicast_ip route_next_hop_prototype_route_next_hop_ip_route_next_hop_ip_unicast_ip_model_json['address'] = '192.168.3.4' # Construct a model instance of RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP by calling from_dict on the json representation - route_next_hop_prototype_route_next_hop_ip_route_next_hop_ip_unicast_ip_model = RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP.from_dict(route_next_hop_prototype_route_next_hop_ip_route_next_hop_ip_unicast_ip_model_json) + route_next_hop_prototype_route_next_hop_ip_route_next_hop_ip_unicast_ip_model = ( + RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP.from_dict( + route_next_hop_prototype_route_next_hop_ip_route_next_hop_ip_unicast_ip_model_json + ) + ) assert route_next_hop_prototype_route_next_hop_ip_route_next_hop_ip_unicast_ip_model != False # Construct a model instance of RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP by calling from_dict on the json representation - route_next_hop_prototype_route_next_hop_ip_route_next_hop_ip_unicast_ip_model_dict = RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP.from_dict(route_next_hop_prototype_route_next_hop_ip_route_next_hop_ip_unicast_ip_model_json).__dict__ - route_next_hop_prototype_route_next_hop_ip_route_next_hop_ip_unicast_ip_model2 = RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP(**route_next_hop_prototype_route_next_hop_ip_route_next_hop_ip_unicast_ip_model_dict) + route_next_hop_prototype_route_next_hop_ip_route_next_hop_ip_unicast_ip_model_dict = ( + RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP.from_dict( + route_next_hop_prototype_route_next_hop_ip_route_next_hop_ip_unicast_ip_model_json + ).__dict__ + ) + route_next_hop_prototype_route_next_hop_ip_route_next_hop_ip_unicast_ip_model2 = ( + RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP( + **route_next_hop_prototype_route_next_hop_ip_route_next_hop_ip_unicast_ip_model_dict + ) + ) # Verify the model instances are equivalent - assert route_next_hop_prototype_route_next_hop_ip_route_next_hop_ip_unicast_ip_model == route_next_hop_prototype_route_next_hop_ip_route_next_hop_ip_unicast_ip_model2 + assert ( + route_next_hop_prototype_route_next_hop_ip_route_next_hop_ip_unicast_ip_model + == route_next_hop_prototype_route_next_hop_ip_route_next_hop_ip_unicast_ip_model2 + ) # Convert model instance back to dict and verify no loss of data - route_next_hop_prototype_route_next_hop_ip_route_next_hop_ip_unicast_ip_model_json2 = route_next_hop_prototype_route_next_hop_ip_route_next_hop_ip_unicast_ip_model.to_dict() - assert route_next_hop_prototype_route_next_hop_ip_route_next_hop_ip_unicast_ip_model_json2 == route_next_hop_prototype_route_next_hop_ip_route_next_hop_ip_unicast_ip_model_json + route_next_hop_prototype_route_next_hop_ip_route_next_hop_ip_unicast_ip_model_json2 = ( + route_next_hop_prototype_route_next_hop_ip_route_next_hop_ip_unicast_ip_model.to_dict() + ) + assert ( + route_next_hop_prototype_route_next_hop_ip_route_next_hop_ip_unicast_ip_model_json2 + == route_next_hop_prototype_route_next_hop_ip_route_next_hop_ip_unicast_ip_model_json + ) class TestModel_RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref: @@ -101071,29 +116982,50 @@ class TestModel_RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConne Test Class for RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref """ - def test_route_next_hop_prototype_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_href_serialization(self): + def test_route_next_hop_prototype_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_href_serialization( + self, + ): """ Test serialization/deserialization for RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref """ # Construct a json representation of a RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref model route_next_hop_prototype_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_href_model_json = {} - route_next_hop_prototype_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_href_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b/connections/93487806-7743-4c46-81d6-72869883ea0b' + route_next_hop_prototype_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_href_model_json[ + 'href' + ] = 'https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b/connections/93487806-7743-4c46-81d6-72869883ea0b' # Construct a model instance of RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref by calling from_dict on the json representation - route_next_hop_prototype_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_href_model = RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref.from_dict(route_next_hop_prototype_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_href_model_json) - assert route_next_hop_prototype_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_href_model != False + route_next_hop_prototype_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_href_model = RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref.from_dict( + route_next_hop_prototype_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_href_model_json + ) + assert ( + route_next_hop_prototype_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_href_model + != False + ) # Construct a model instance of RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref by calling from_dict on the json representation - route_next_hop_prototype_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_href_model_dict = RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref.from_dict(route_next_hop_prototype_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_href_model_json).__dict__ - route_next_hop_prototype_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_href_model2 = RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref(**route_next_hop_prototype_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_href_model_dict) + route_next_hop_prototype_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_href_model_dict = RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref.from_dict( + route_next_hop_prototype_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_href_model_json + ).__dict__ + route_next_hop_prototype_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_href_model2 = RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref( + **route_next_hop_prototype_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_href_model_dict + ) # Verify the model instances are equivalent - assert route_next_hop_prototype_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_href_model == route_next_hop_prototype_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_href_model2 + assert ( + route_next_hop_prototype_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_href_model + == route_next_hop_prototype_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_href_model2 + ) # Convert model instance back to dict and verify no loss of data - route_next_hop_prototype_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_href_model_json2 = route_next_hop_prototype_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_href_model.to_dict() - assert route_next_hop_prototype_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_href_model_json2 == route_next_hop_prototype_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_href_model_json + route_next_hop_prototype_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_href_model_json2 = ( + route_next_hop_prototype_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_href_model.to_dict() + ) + assert ( + route_next_hop_prototype_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_href_model_json2 + == route_next_hop_prototype_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_href_model_json + ) class TestModel_RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityById: @@ -101101,29 +117033,50 @@ class TestModel_RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConne Test Class for RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityById """ - def test_route_next_hop_prototype_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_id_serialization(self): + def test_route_next_hop_prototype_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_id_serialization( + self, + ): """ Test serialization/deserialization for RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityById """ # Construct a json representation of a RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityById model route_next_hop_prototype_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_id_model_json = {} - route_next_hop_prototype_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_id_model_json['id'] = 'a10a5771-dc23-442c-8460-c3601d8542f7' + route_next_hop_prototype_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_id_model_json[ + 'id' + ] = 'a10a5771-dc23-442c-8460-c3601d8542f7' # Construct a model instance of RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityById by calling from_dict on the json representation - route_next_hop_prototype_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_id_model = RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityById.from_dict(route_next_hop_prototype_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_id_model_json) - assert route_next_hop_prototype_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_id_model != False + route_next_hop_prototype_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_id_model = RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityById.from_dict( + route_next_hop_prototype_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_id_model_json + ) + assert ( + route_next_hop_prototype_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_id_model + != False + ) # Construct a model instance of RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityById by calling from_dict on the json representation - route_next_hop_prototype_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_id_model_dict = RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityById.from_dict(route_next_hop_prototype_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_id_model_json).__dict__ - route_next_hop_prototype_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_id_model2 = RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityById(**route_next_hop_prototype_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_id_model_dict) + route_next_hop_prototype_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_id_model_dict = RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityById.from_dict( + route_next_hop_prototype_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_id_model_json + ).__dict__ + route_next_hop_prototype_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_id_model2 = RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityById( + **route_next_hop_prototype_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_id_model_dict + ) # Verify the model instances are equivalent - assert route_next_hop_prototype_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_id_model == route_next_hop_prototype_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_id_model2 + assert ( + route_next_hop_prototype_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_id_model + == route_next_hop_prototype_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_id_model2 + ) # Convert model instance back to dict and verify no loss of data - route_next_hop_prototype_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_id_model_json2 = route_next_hop_prototype_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_id_model.to_dict() - assert route_next_hop_prototype_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_id_model_json2 == route_next_hop_prototype_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_id_model_json + route_next_hop_prototype_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_id_model_json2 = ( + route_next_hop_prototype_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_id_model.to_dict() + ) + assert ( + route_next_hop_prototype_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_id_model_json2 + == route_next_hop_prototype_vpn_gateway_connection_identity_vpn_gateway_connection_identity_by_id_model_json + ) class TestModel_SecurityGroupRuleRemotePatchSecurityGroupIdentitySecurityGroupIdentityByCRN: @@ -101131,29 +117084,53 @@ class TestModel_SecurityGroupRuleRemotePatchSecurityGroupIdentitySecurityGroupId Test Class for SecurityGroupRuleRemotePatchSecurityGroupIdentitySecurityGroupIdentityByCRN """ - def test_security_group_rule_remote_patch_security_group_identity_security_group_identity_by_crn_serialization(self): + def test_security_group_rule_remote_patch_security_group_identity_security_group_identity_by_crn_serialization( + self, + ): """ Test serialization/deserialization for SecurityGroupRuleRemotePatchSecurityGroupIdentitySecurityGroupIdentityByCRN """ # Construct a json representation of a SecurityGroupRuleRemotePatchSecurityGroupIdentitySecurityGroupIdentityByCRN model security_group_rule_remote_patch_security_group_identity_security_group_identity_by_crn_model_json = {} - security_group_rule_remote_patch_security_group_identity_security_group_identity_by_crn_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::security-group:r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + security_group_rule_remote_patch_security_group_identity_security_group_identity_by_crn_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::security-group:r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + ) # Construct a model instance of SecurityGroupRuleRemotePatchSecurityGroupIdentitySecurityGroupIdentityByCRN by calling from_dict on the json representation - security_group_rule_remote_patch_security_group_identity_security_group_identity_by_crn_model = SecurityGroupRuleRemotePatchSecurityGroupIdentitySecurityGroupIdentityByCRN.from_dict(security_group_rule_remote_patch_security_group_identity_security_group_identity_by_crn_model_json) + security_group_rule_remote_patch_security_group_identity_security_group_identity_by_crn_model = ( + SecurityGroupRuleRemotePatchSecurityGroupIdentitySecurityGroupIdentityByCRN.from_dict( + security_group_rule_remote_patch_security_group_identity_security_group_identity_by_crn_model_json + ) + ) assert security_group_rule_remote_patch_security_group_identity_security_group_identity_by_crn_model != False # Construct a model instance of SecurityGroupRuleRemotePatchSecurityGroupIdentitySecurityGroupIdentityByCRN by calling from_dict on the json representation - security_group_rule_remote_patch_security_group_identity_security_group_identity_by_crn_model_dict = SecurityGroupRuleRemotePatchSecurityGroupIdentitySecurityGroupIdentityByCRN.from_dict(security_group_rule_remote_patch_security_group_identity_security_group_identity_by_crn_model_json).__dict__ - security_group_rule_remote_patch_security_group_identity_security_group_identity_by_crn_model2 = SecurityGroupRuleRemotePatchSecurityGroupIdentitySecurityGroupIdentityByCRN(**security_group_rule_remote_patch_security_group_identity_security_group_identity_by_crn_model_dict) + security_group_rule_remote_patch_security_group_identity_security_group_identity_by_crn_model_dict = ( + SecurityGroupRuleRemotePatchSecurityGroupIdentitySecurityGroupIdentityByCRN.from_dict( + security_group_rule_remote_patch_security_group_identity_security_group_identity_by_crn_model_json + ).__dict__ + ) + security_group_rule_remote_patch_security_group_identity_security_group_identity_by_crn_model2 = ( + SecurityGroupRuleRemotePatchSecurityGroupIdentitySecurityGroupIdentityByCRN( + **security_group_rule_remote_patch_security_group_identity_security_group_identity_by_crn_model_dict + ) + ) # Verify the model instances are equivalent - assert security_group_rule_remote_patch_security_group_identity_security_group_identity_by_crn_model == security_group_rule_remote_patch_security_group_identity_security_group_identity_by_crn_model2 + assert ( + security_group_rule_remote_patch_security_group_identity_security_group_identity_by_crn_model + == security_group_rule_remote_patch_security_group_identity_security_group_identity_by_crn_model2 + ) # Convert model instance back to dict and verify no loss of data - security_group_rule_remote_patch_security_group_identity_security_group_identity_by_crn_model_json2 = security_group_rule_remote_patch_security_group_identity_security_group_identity_by_crn_model.to_dict() - assert security_group_rule_remote_patch_security_group_identity_security_group_identity_by_crn_model_json2 == security_group_rule_remote_patch_security_group_identity_security_group_identity_by_crn_model_json + security_group_rule_remote_patch_security_group_identity_security_group_identity_by_crn_model_json2 = ( + security_group_rule_remote_patch_security_group_identity_security_group_identity_by_crn_model.to_dict() + ) + assert ( + security_group_rule_remote_patch_security_group_identity_security_group_identity_by_crn_model_json2 + == security_group_rule_remote_patch_security_group_identity_security_group_identity_by_crn_model_json + ) class TestModel_SecurityGroupRuleRemotePatchSecurityGroupIdentitySecurityGroupIdentityByHref: @@ -101161,29 +117138,53 @@ class TestModel_SecurityGroupRuleRemotePatchSecurityGroupIdentitySecurityGroupId Test Class for SecurityGroupRuleRemotePatchSecurityGroupIdentitySecurityGroupIdentityByHref """ - def test_security_group_rule_remote_patch_security_group_identity_security_group_identity_by_href_serialization(self): + def test_security_group_rule_remote_patch_security_group_identity_security_group_identity_by_href_serialization( + self, + ): """ Test serialization/deserialization for SecurityGroupRuleRemotePatchSecurityGroupIdentitySecurityGroupIdentityByHref """ # Construct a json representation of a SecurityGroupRuleRemotePatchSecurityGroupIdentitySecurityGroupIdentityByHref model security_group_rule_remote_patch_security_group_identity_security_group_identity_by_href_model_json = {} - security_group_rule_remote_patch_security_group_identity_security_group_identity_by_href_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + security_group_rule_remote_patch_security_group_identity_security_group_identity_by_href_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + ) # Construct a model instance of SecurityGroupRuleRemotePatchSecurityGroupIdentitySecurityGroupIdentityByHref by calling from_dict on the json representation - security_group_rule_remote_patch_security_group_identity_security_group_identity_by_href_model = SecurityGroupRuleRemotePatchSecurityGroupIdentitySecurityGroupIdentityByHref.from_dict(security_group_rule_remote_patch_security_group_identity_security_group_identity_by_href_model_json) + security_group_rule_remote_patch_security_group_identity_security_group_identity_by_href_model = ( + SecurityGroupRuleRemotePatchSecurityGroupIdentitySecurityGroupIdentityByHref.from_dict( + security_group_rule_remote_patch_security_group_identity_security_group_identity_by_href_model_json + ) + ) assert security_group_rule_remote_patch_security_group_identity_security_group_identity_by_href_model != False # Construct a model instance of SecurityGroupRuleRemotePatchSecurityGroupIdentitySecurityGroupIdentityByHref by calling from_dict on the json representation - security_group_rule_remote_patch_security_group_identity_security_group_identity_by_href_model_dict = SecurityGroupRuleRemotePatchSecurityGroupIdentitySecurityGroupIdentityByHref.from_dict(security_group_rule_remote_patch_security_group_identity_security_group_identity_by_href_model_json).__dict__ - security_group_rule_remote_patch_security_group_identity_security_group_identity_by_href_model2 = SecurityGroupRuleRemotePatchSecurityGroupIdentitySecurityGroupIdentityByHref(**security_group_rule_remote_patch_security_group_identity_security_group_identity_by_href_model_dict) + security_group_rule_remote_patch_security_group_identity_security_group_identity_by_href_model_dict = ( + SecurityGroupRuleRemotePatchSecurityGroupIdentitySecurityGroupIdentityByHref.from_dict( + security_group_rule_remote_patch_security_group_identity_security_group_identity_by_href_model_json + ).__dict__ + ) + security_group_rule_remote_patch_security_group_identity_security_group_identity_by_href_model2 = ( + SecurityGroupRuleRemotePatchSecurityGroupIdentitySecurityGroupIdentityByHref( + **security_group_rule_remote_patch_security_group_identity_security_group_identity_by_href_model_dict + ) + ) # Verify the model instances are equivalent - assert security_group_rule_remote_patch_security_group_identity_security_group_identity_by_href_model == security_group_rule_remote_patch_security_group_identity_security_group_identity_by_href_model2 + assert ( + security_group_rule_remote_patch_security_group_identity_security_group_identity_by_href_model + == security_group_rule_remote_patch_security_group_identity_security_group_identity_by_href_model2 + ) # Convert model instance back to dict and verify no loss of data - security_group_rule_remote_patch_security_group_identity_security_group_identity_by_href_model_json2 = security_group_rule_remote_patch_security_group_identity_security_group_identity_by_href_model.to_dict() - assert security_group_rule_remote_patch_security_group_identity_security_group_identity_by_href_model_json2 == security_group_rule_remote_patch_security_group_identity_security_group_identity_by_href_model_json + security_group_rule_remote_patch_security_group_identity_security_group_identity_by_href_model_json2 = ( + security_group_rule_remote_patch_security_group_identity_security_group_identity_by_href_model.to_dict() + ) + assert ( + security_group_rule_remote_patch_security_group_identity_security_group_identity_by_href_model_json2 + == security_group_rule_remote_patch_security_group_identity_security_group_identity_by_href_model_json + ) class TestModel_SecurityGroupRuleRemotePatchSecurityGroupIdentitySecurityGroupIdentityById: @@ -101198,22 +117199,44 @@ def test_security_group_rule_remote_patch_security_group_identity_security_group # Construct a json representation of a SecurityGroupRuleRemotePatchSecurityGroupIdentitySecurityGroupIdentityById model security_group_rule_remote_patch_security_group_identity_security_group_identity_by_id_model_json = {} - security_group_rule_remote_patch_security_group_identity_security_group_identity_by_id_model_json['id'] = 'r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + security_group_rule_remote_patch_security_group_identity_security_group_identity_by_id_model_json['id'] = ( + 'r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + ) # Construct a model instance of SecurityGroupRuleRemotePatchSecurityGroupIdentitySecurityGroupIdentityById by calling from_dict on the json representation - security_group_rule_remote_patch_security_group_identity_security_group_identity_by_id_model = SecurityGroupRuleRemotePatchSecurityGroupIdentitySecurityGroupIdentityById.from_dict(security_group_rule_remote_patch_security_group_identity_security_group_identity_by_id_model_json) + security_group_rule_remote_patch_security_group_identity_security_group_identity_by_id_model = ( + SecurityGroupRuleRemotePatchSecurityGroupIdentitySecurityGroupIdentityById.from_dict( + security_group_rule_remote_patch_security_group_identity_security_group_identity_by_id_model_json + ) + ) assert security_group_rule_remote_patch_security_group_identity_security_group_identity_by_id_model != False # Construct a model instance of SecurityGroupRuleRemotePatchSecurityGroupIdentitySecurityGroupIdentityById by calling from_dict on the json representation - security_group_rule_remote_patch_security_group_identity_security_group_identity_by_id_model_dict = SecurityGroupRuleRemotePatchSecurityGroupIdentitySecurityGroupIdentityById.from_dict(security_group_rule_remote_patch_security_group_identity_security_group_identity_by_id_model_json).__dict__ - security_group_rule_remote_patch_security_group_identity_security_group_identity_by_id_model2 = SecurityGroupRuleRemotePatchSecurityGroupIdentitySecurityGroupIdentityById(**security_group_rule_remote_patch_security_group_identity_security_group_identity_by_id_model_dict) + security_group_rule_remote_patch_security_group_identity_security_group_identity_by_id_model_dict = ( + SecurityGroupRuleRemotePatchSecurityGroupIdentitySecurityGroupIdentityById.from_dict( + security_group_rule_remote_patch_security_group_identity_security_group_identity_by_id_model_json + ).__dict__ + ) + security_group_rule_remote_patch_security_group_identity_security_group_identity_by_id_model2 = ( + SecurityGroupRuleRemotePatchSecurityGroupIdentitySecurityGroupIdentityById( + **security_group_rule_remote_patch_security_group_identity_security_group_identity_by_id_model_dict + ) + ) # Verify the model instances are equivalent - assert security_group_rule_remote_patch_security_group_identity_security_group_identity_by_id_model == security_group_rule_remote_patch_security_group_identity_security_group_identity_by_id_model2 + assert ( + security_group_rule_remote_patch_security_group_identity_security_group_identity_by_id_model + == security_group_rule_remote_patch_security_group_identity_security_group_identity_by_id_model2 + ) # Convert model instance back to dict and verify no loss of data - security_group_rule_remote_patch_security_group_identity_security_group_identity_by_id_model_json2 = security_group_rule_remote_patch_security_group_identity_security_group_identity_by_id_model.to_dict() - assert security_group_rule_remote_patch_security_group_identity_security_group_identity_by_id_model_json2 == security_group_rule_remote_patch_security_group_identity_security_group_identity_by_id_model_json + security_group_rule_remote_patch_security_group_identity_security_group_identity_by_id_model_json2 = ( + security_group_rule_remote_patch_security_group_identity_security_group_identity_by_id_model.to_dict() + ) + assert ( + security_group_rule_remote_patch_security_group_identity_security_group_identity_by_id_model_json2 + == security_group_rule_remote_patch_security_group_identity_security_group_identity_by_id_model_json + ) class TestModel_SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGroupIdentityByCRN: @@ -101221,29 +117244,55 @@ class TestModel_SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGro Test Class for SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGroupIdentityByCRN """ - def test_security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_crn_serialization(self): + def test_security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_crn_serialization( + self, + ): """ Test serialization/deserialization for SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGroupIdentityByCRN """ # Construct a json representation of a SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGroupIdentityByCRN model security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_crn_model_json = {} - security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_crn_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::security-group:r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_crn_model_json[ + 'crn' + ] = 'crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::security-group:r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' # Construct a model instance of SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGroupIdentityByCRN by calling from_dict on the json representation - security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_crn_model = SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGroupIdentityByCRN.from_dict(security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_crn_model_json) - assert security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_crn_model != False + security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_crn_model = ( + SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGroupIdentityByCRN.from_dict( + security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_crn_model_json + ) + ) + assert ( + security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_crn_model != False + ) # Construct a model instance of SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGroupIdentityByCRN by calling from_dict on the json representation - security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_crn_model_dict = SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGroupIdentityByCRN.from_dict(security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_crn_model_json).__dict__ - security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_crn_model2 = SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGroupIdentityByCRN(**security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_crn_model_dict) + security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_crn_model_dict = ( + SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGroupIdentityByCRN.from_dict( + security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_crn_model_json + ).__dict__ + ) + security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_crn_model2 = ( + SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGroupIdentityByCRN( + **security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_crn_model_dict + ) + ) # Verify the model instances are equivalent - assert security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_crn_model == security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_crn_model2 + assert ( + security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_crn_model + == security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_crn_model2 + ) # Convert model instance back to dict and verify no loss of data - security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_crn_model_json2 = security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_crn_model.to_dict() - assert security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_crn_model_json2 == security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_crn_model_json + security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_crn_model_json2 = ( + security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_crn_model.to_dict() + ) + assert ( + security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_crn_model_json2 + == security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_crn_model_json + ) class TestModel_SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGroupIdentityByHref: @@ -101251,29 +117300,53 @@ class TestModel_SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGro Test Class for SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGroupIdentityByHref """ - def test_security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_href_serialization(self): + def test_security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_href_serialization( + self, + ): """ Test serialization/deserialization for SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGroupIdentityByHref """ # Construct a json representation of a SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGroupIdentityByHref model security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_href_model_json = {} - security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_href_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_href_model_json[ + 'href' + ] = 'https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' # Construct a model instance of SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGroupIdentityByHref by calling from_dict on the json representation - security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_href_model = SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGroupIdentityByHref.from_dict(security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_href_model_json) - assert security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_href_model != False + security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_href_model = ( + SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGroupIdentityByHref.from_dict( + security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_href_model_json + ) + ) + assert ( + security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_href_model != False + ) # Construct a model instance of SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGroupIdentityByHref by calling from_dict on the json representation - security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_href_model_dict = SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGroupIdentityByHref.from_dict(security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_href_model_json).__dict__ - security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_href_model2 = SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGroupIdentityByHref(**security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_href_model_dict) + security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_href_model_dict = ( + SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGroupIdentityByHref.from_dict( + security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_href_model_json + ).__dict__ + ) + security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_href_model2 = SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGroupIdentityByHref( + **security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_href_model_dict + ) # Verify the model instances are equivalent - assert security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_href_model == security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_href_model2 + assert ( + security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_href_model + == security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_href_model2 + ) # Convert model instance back to dict and verify no loss of data - security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_href_model_json2 = security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_href_model.to_dict() - assert security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_href_model_json2 == security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_href_model_json + security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_href_model_json2 = ( + security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_href_model.to_dict() + ) + assert ( + security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_href_model_json2 + == security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_href_model_json + ) class TestModel_SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGroupIdentityById: @@ -101281,29 +117354,53 @@ class TestModel_SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGro Test Class for SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGroupIdentityById """ - def test_security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_id_serialization(self): + def test_security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_id_serialization( + self, + ): """ Test serialization/deserialization for SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGroupIdentityById """ # Construct a json representation of a SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGroupIdentityById model security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_id_model_json = {} - security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_id_model_json['id'] = 'r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_id_model_json['id'] = ( + 'r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271' + ) # Construct a model instance of SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGroupIdentityById by calling from_dict on the json representation - security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_id_model = SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGroupIdentityById.from_dict(security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_id_model_json) + security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_id_model = ( + SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGroupIdentityById.from_dict( + security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_id_model_json + ) + ) assert security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_id_model != False # Construct a model instance of SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGroupIdentityById by calling from_dict on the json representation - security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_id_model_dict = SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGroupIdentityById.from_dict(security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_id_model_json).__dict__ - security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_id_model2 = SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGroupIdentityById(**security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_id_model_dict) + security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_id_model_dict = ( + SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGroupIdentityById.from_dict( + security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_id_model_json + ).__dict__ + ) + security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_id_model2 = ( + SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGroupIdentityById( + **security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_id_model_dict + ) + ) # Verify the model instances are equivalent - assert security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_id_model == security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_id_model2 + assert ( + security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_id_model + == security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_id_model2 + ) # Convert model instance back to dict and verify no loss of data - security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_id_model_json2 = security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_id_model.to_dict() - assert security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_id_model_json2 == security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_id_model_json + security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_id_model_json2 = ( + security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_id_model.to_dict() + ) + assert ( + security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_id_model_json2 + == security_group_rule_remote_prototype_security_group_identity_security_group_identity_by_id_model_json + ) class TestModel_ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN: @@ -101311,29 +117408,52 @@ class TestModel_ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkIn Test Class for ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN """ - def test_share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_serialization(self): + def test_share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_serialization( + self, + ): """ Test serialization/deserialization for ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN """ # Construct a json representation of a ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN model - share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json = {} - share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::virtual-network-interface:0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json = ( + {} + ) + share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json[ + 'crn' + ] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::virtual-network-interface:0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' # Construct a model instance of ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN by calling from_dict on the json representation - share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model = ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN.from_dict(share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json) - assert share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model != False + share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model = ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN.from_dict( + share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json + ) + assert ( + share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model + != False + ) # Construct a model instance of ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN by calling from_dict on the json representation - share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_dict = ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN.from_dict(share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json).__dict__ - share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model2 = ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN(**share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_dict) + share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_dict = ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN.from_dict( + share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json + ).__dict__ + share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model2 = ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByCRN( + **share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_dict + ) # Verify the model instances are equivalent - assert share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model == share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model2 + assert ( + share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model + == share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model2 + ) # Convert model instance back to dict and verify no loss of data - share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json2 = share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model.to_dict() - assert share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json2 == share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json + share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json2 = ( + share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model.to_dict() + ) + assert ( + share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json2 + == share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_crn_model_json + ) class TestModel_ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref: @@ -101341,29 +117461,52 @@ class TestModel_ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkIn Test Class for ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref """ - def test_share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_serialization(self): + def test_share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_serialization( + self, + ): """ Test serialization/deserialization for ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref """ # Construct a json representation of a ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref model - share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json = {} - share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/virtual_network_interfaces/0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json = ( + {} + ) + share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json[ + 'href' + ] = 'https://us-south.iaas.cloud.ibm.com/v1/virtual_network_interfaces/0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' # Construct a model instance of ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref by calling from_dict on the json representation - share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model = ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref.from_dict(share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json) - assert share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model != False + share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model = ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref.from_dict( + share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json + ) + assert ( + share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model + != False + ) # Construct a model instance of ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref by calling from_dict on the json representation - share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_dict = ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref.from_dict(share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json).__dict__ - share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model2 = ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref(**share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_dict) + share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_dict = ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref.from_dict( + share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json + ).__dict__ + share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model2 = ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityByHref( + **share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_dict + ) # Verify the model instances are equivalent - assert share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model == share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model2 + assert ( + share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model + == share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model2 + ) # Convert model instance back to dict and verify no loss of data - share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json2 = share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model.to_dict() - assert share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json2 == share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json + share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json2 = ( + share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model.to_dict() + ) + assert ( + share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json2 + == share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_href_model_json + ) class TestModel_ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById: @@ -101371,29 +117514,52 @@ class TestModel_ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkIn Test Class for ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById """ - def test_share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_serialization(self): + def test_share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_serialization( + self, + ): """ Test serialization/deserialization for ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById """ # Construct a json representation of a ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById model - share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json = {} - share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json['id'] = '0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' + share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json = ( + {} + ) + share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json[ + 'id' + ] = '0717-54eb57ee-86f2-4796-90bb-d7874e0831ef' # Construct a model instance of ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById by calling from_dict on the json representation - share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model = ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById.from_dict(share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json) - assert share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model != False + share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model = ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById.from_dict( + share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json + ) + assert ( + share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model + != False + ) # Construct a model instance of ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById by calling from_dict on the json representation - share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_dict = ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById.from_dict(share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json).__dict__ - share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model2 = ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById(**share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_dict) + share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_dict = ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById.from_dict( + share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json + ).__dict__ + share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model2 = ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfaceIdentityVirtualNetworkInterfaceIdentityById( + **share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_dict + ) # Verify the model instances are equivalent - assert share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model == share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model2 + assert ( + share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model + == share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model2 + ) # Convert model instance back to dict and verify no loss of data - share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json2 = share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model.to_dict() - assert share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json2 == share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json + share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json2 = ( + share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model.to_dict() + ) + assert ( + share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json2 + == share_mount_target_virtual_network_interface_prototype_virtual_network_interface_identity_virtual_network_interface_identity_by_id_model_json + ) class TestModel_VPNGatewayConnectionPeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPeerAddressPatch: @@ -101401,29 +117567,52 @@ class TestModel_VPNGatewayConnectionPeerPatchVPNGatewayConnectionPolicyModePeerP Test Class for VPNGatewayConnectionPeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPeerAddressPatch """ - def test_vpn_gateway_connection_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_peer_address_patch_serialization(self): + def test_vpn_gateway_connection_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_peer_address_patch_serialization( + self, + ): """ Test serialization/deserialization for VPNGatewayConnectionPeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPeerAddressPatch """ # Construct a json representation of a VPNGatewayConnectionPeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPeerAddressPatch model - vpn_gateway_connection_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_peer_address_patch_model_json = {} - vpn_gateway_connection_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_peer_address_patch_model_json['address'] = '169.21.50.5' + vpn_gateway_connection_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_peer_address_patch_model_json = ( + {} + ) + vpn_gateway_connection_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_peer_address_patch_model_json[ + 'address' + ] = '169.21.50.5' # Construct a model instance of VPNGatewayConnectionPeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPeerAddressPatch by calling from_dict on the json representation - vpn_gateway_connection_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_peer_address_patch_model = VPNGatewayConnectionPeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPeerAddressPatch.from_dict(vpn_gateway_connection_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_peer_address_patch_model_json) - assert vpn_gateway_connection_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_peer_address_patch_model != False + vpn_gateway_connection_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_peer_address_patch_model = VPNGatewayConnectionPeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPeerAddressPatch.from_dict( + vpn_gateway_connection_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_peer_address_patch_model_json + ) + assert ( + vpn_gateway_connection_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_peer_address_patch_model + != False + ) # Construct a model instance of VPNGatewayConnectionPeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPeerAddressPatch by calling from_dict on the json representation - vpn_gateway_connection_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_peer_address_patch_model_dict = VPNGatewayConnectionPeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPeerAddressPatch.from_dict(vpn_gateway_connection_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_peer_address_patch_model_json).__dict__ - vpn_gateway_connection_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_peer_address_patch_model2 = VPNGatewayConnectionPeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPeerAddressPatch(**vpn_gateway_connection_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_peer_address_patch_model_dict) + vpn_gateway_connection_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_peer_address_patch_model_dict = VPNGatewayConnectionPeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPeerAddressPatch.from_dict( + vpn_gateway_connection_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_peer_address_patch_model_json + ).__dict__ + vpn_gateway_connection_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_peer_address_patch_model2 = VPNGatewayConnectionPeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPeerAddressPatch( + **vpn_gateway_connection_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_peer_address_patch_model_dict + ) # Verify the model instances are equivalent - assert vpn_gateway_connection_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_peer_address_patch_model == vpn_gateway_connection_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_peer_address_patch_model2 + assert ( + vpn_gateway_connection_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_peer_address_patch_model + == vpn_gateway_connection_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_peer_address_patch_model2 + ) # Convert model instance back to dict and verify no loss of data - vpn_gateway_connection_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_peer_address_patch_model_json2 = vpn_gateway_connection_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_peer_address_patch_model.to_dict() - assert vpn_gateway_connection_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_peer_address_patch_model_json2 == vpn_gateway_connection_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_peer_address_patch_model_json + vpn_gateway_connection_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_peer_address_patch_model_json2 = ( + vpn_gateway_connection_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_peer_address_patch_model.to_dict() + ) + assert ( + vpn_gateway_connection_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_peer_address_patch_model_json2 + == vpn_gateway_connection_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_peer_address_patch_model_json + ) class TestModel_VPNGatewayConnectionPeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPeerFQDNPatch: @@ -101431,29 +117620,52 @@ class TestModel_VPNGatewayConnectionPeerPatchVPNGatewayConnectionPolicyModePeerP Test Class for VPNGatewayConnectionPeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPeerFQDNPatch """ - def test_vpn_gateway_connection_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_peer_fqdn_patch_serialization(self): + def test_vpn_gateway_connection_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_peer_fqdn_patch_serialization( + self, + ): """ Test serialization/deserialization for VPNGatewayConnectionPeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPeerFQDNPatch """ # Construct a json representation of a VPNGatewayConnectionPeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPeerFQDNPatch model - vpn_gateway_connection_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_peer_fqdn_patch_model_json = {} - vpn_gateway_connection_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_peer_fqdn_patch_model_json['fqdn'] = 'my-service.example.com' + vpn_gateway_connection_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_peer_fqdn_patch_model_json = ( + {} + ) + vpn_gateway_connection_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_peer_fqdn_patch_model_json[ + 'fqdn' + ] = 'my-service.example.com' # Construct a model instance of VPNGatewayConnectionPeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPeerFQDNPatch by calling from_dict on the json representation - vpn_gateway_connection_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_peer_fqdn_patch_model = VPNGatewayConnectionPeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPeerFQDNPatch.from_dict(vpn_gateway_connection_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_peer_fqdn_patch_model_json) - assert vpn_gateway_connection_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_peer_fqdn_patch_model != False + vpn_gateway_connection_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_peer_fqdn_patch_model = VPNGatewayConnectionPeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPeerFQDNPatch.from_dict( + vpn_gateway_connection_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_peer_fqdn_patch_model_json + ) + assert ( + vpn_gateway_connection_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_peer_fqdn_patch_model + != False + ) # Construct a model instance of VPNGatewayConnectionPeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPeerFQDNPatch by calling from_dict on the json representation - vpn_gateway_connection_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_peer_fqdn_patch_model_dict = VPNGatewayConnectionPeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPeerFQDNPatch.from_dict(vpn_gateway_connection_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_peer_fqdn_patch_model_json).__dict__ - vpn_gateway_connection_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_peer_fqdn_patch_model2 = VPNGatewayConnectionPeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPeerFQDNPatch(**vpn_gateway_connection_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_peer_fqdn_patch_model_dict) + vpn_gateway_connection_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_peer_fqdn_patch_model_dict = VPNGatewayConnectionPeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPeerFQDNPatch.from_dict( + vpn_gateway_connection_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_peer_fqdn_patch_model_json + ).__dict__ + vpn_gateway_connection_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_peer_fqdn_patch_model2 = VPNGatewayConnectionPeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPolicyModePeerPatchVPNGatewayConnectionPeerFQDNPatch( + **vpn_gateway_connection_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_peer_fqdn_patch_model_dict + ) # Verify the model instances are equivalent - assert vpn_gateway_connection_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_peer_fqdn_patch_model == vpn_gateway_connection_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_peer_fqdn_patch_model2 + assert ( + vpn_gateway_connection_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_peer_fqdn_patch_model + == vpn_gateway_connection_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_peer_fqdn_patch_model2 + ) # Convert model instance back to dict and verify no loss of data - vpn_gateway_connection_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_peer_fqdn_patch_model_json2 = vpn_gateway_connection_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_peer_fqdn_patch_model.to_dict() - assert vpn_gateway_connection_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_peer_fqdn_patch_model_json2 == vpn_gateway_connection_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_peer_fqdn_patch_model_json + vpn_gateway_connection_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_peer_fqdn_patch_model_json2 = ( + vpn_gateway_connection_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_peer_fqdn_patch_model.to_dict() + ) + assert ( + vpn_gateway_connection_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_peer_fqdn_patch_model_json2 + == vpn_gateway_connection_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_policy_mode_peer_patch_vpn_gateway_connection_peer_fqdn_patch_model_json + ) class TestModel_VPNGatewayConnectionPeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionPeerAddressPatch: @@ -101461,29 +117673,52 @@ class TestModel_VPNGatewayConnectionPeerPatchVPNGatewayConnectionStaticRouteMode Test Class for VPNGatewayConnectionPeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionPeerAddressPatch """ - def test_vpn_gateway_connection_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_peer_address_patch_serialization(self): + def test_vpn_gateway_connection_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_peer_address_patch_serialization( + self, + ): """ Test serialization/deserialization for VPNGatewayConnectionPeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionPeerAddressPatch """ # Construct a json representation of a VPNGatewayConnectionPeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionPeerAddressPatch model - vpn_gateway_connection_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_peer_address_patch_model_json = {} - vpn_gateway_connection_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_peer_address_patch_model_json['address'] = '169.21.50.5' + vpn_gateway_connection_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_peer_address_patch_model_json = ( + {} + ) + vpn_gateway_connection_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_peer_address_patch_model_json[ + 'address' + ] = '169.21.50.5' # Construct a model instance of VPNGatewayConnectionPeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionPeerAddressPatch by calling from_dict on the json representation - vpn_gateway_connection_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_peer_address_patch_model = VPNGatewayConnectionPeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionPeerAddressPatch.from_dict(vpn_gateway_connection_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_peer_address_patch_model_json) - assert vpn_gateway_connection_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_peer_address_patch_model != False + vpn_gateway_connection_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_peer_address_patch_model = VPNGatewayConnectionPeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionPeerAddressPatch.from_dict( + vpn_gateway_connection_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_peer_address_patch_model_json + ) + assert ( + vpn_gateway_connection_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_peer_address_patch_model + != False + ) # Construct a model instance of VPNGatewayConnectionPeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionPeerAddressPatch by calling from_dict on the json representation - vpn_gateway_connection_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_peer_address_patch_model_dict = VPNGatewayConnectionPeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionPeerAddressPatch.from_dict(vpn_gateway_connection_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_peer_address_patch_model_json).__dict__ - vpn_gateway_connection_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_peer_address_patch_model2 = VPNGatewayConnectionPeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionPeerAddressPatch(**vpn_gateway_connection_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_peer_address_patch_model_dict) + vpn_gateway_connection_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_peer_address_patch_model_dict = VPNGatewayConnectionPeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionPeerAddressPatch.from_dict( + vpn_gateway_connection_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_peer_address_patch_model_json + ).__dict__ + vpn_gateway_connection_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_peer_address_patch_model2 = VPNGatewayConnectionPeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionPeerAddressPatch( + **vpn_gateway_connection_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_peer_address_patch_model_dict + ) # Verify the model instances are equivalent - assert vpn_gateway_connection_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_peer_address_patch_model == vpn_gateway_connection_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_peer_address_patch_model2 + assert ( + vpn_gateway_connection_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_peer_address_patch_model + == vpn_gateway_connection_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_peer_address_patch_model2 + ) # Convert model instance back to dict and verify no loss of data - vpn_gateway_connection_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_peer_address_patch_model_json2 = vpn_gateway_connection_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_peer_address_patch_model.to_dict() - assert vpn_gateway_connection_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_peer_address_patch_model_json2 == vpn_gateway_connection_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_peer_address_patch_model_json + vpn_gateway_connection_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_peer_address_patch_model_json2 = ( + vpn_gateway_connection_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_peer_address_patch_model.to_dict() + ) + assert ( + vpn_gateway_connection_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_peer_address_patch_model_json2 + == vpn_gateway_connection_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_peer_address_patch_model_json + ) class TestModel_VPNGatewayConnectionPeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionPeerFQDNPatch: @@ -101491,29 +117726,52 @@ class TestModel_VPNGatewayConnectionPeerPatchVPNGatewayConnectionStaticRouteMode Test Class for VPNGatewayConnectionPeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionPeerFQDNPatch """ - def test_vpn_gateway_connection_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_peer_fqdn_patch_serialization(self): + def test_vpn_gateway_connection_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_peer_fqdn_patch_serialization( + self, + ): """ Test serialization/deserialization for VPNGatewayConnectionPeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionPeerFQDNPatch """ # Construct a json representation of a VPNGatewayConnectionPeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionPeerFQDNPatch model - vpn_gateway_connection_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_peer_fqdn_patch_model_json = {} - vpn_gateway_connection_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_peer_fqdn_patch_model_json['fqdn'] = 'my-service.example.com' + vpn_gateway_connection_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_peer_fqdn_patch_model_json = ( + {} + ) + vpn_gateway_connection_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_peer_fqdn_patch_model_json[ + 'fqdn' + ] = 'my-service.example.com' # Construct a model instance of VPNGatewayConnectionPeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionPeerFQDNPatch by calling from_dict on the json representation - vpn_gateway_connection_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_peer_fqdn_patch_model = VPNGatewayConnectionPeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionPeerFQDNPatch.from_dict(vpn_gateway_connection_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_peer_fqdn_patch_model_json) - assert vpn_gateway_connection_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_peer_fqdn_patch_model != False + vpn_gateway_connection_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_peer_fqdn_patch_model = VPNGatewayConnectionPeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionPeerFQDNPatch.from_dict( + vpn_gateway_connection_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_peer_fqdn_patch_model_json + ) + assert ( + vpn_gateway_connection_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_peer_fqdn_patch_model + != False + ) # Construct a model instance of VPNGatewayConnectionPeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionPeerFQDNPatch by calling from_dict on the json representation - vpn_gateway_connection_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_peer_fqdn_patch_model_dict = VPNGatewayConnectionPeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionPeerFQDNPatch.from_dict(vpn_gateway_connection_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_peer_fqdn_patch_model_json).__dict__ - vpn_gateway_connection_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_peer_fqdn_patch_model2 = VPNGatewayConnectionPeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionPeerFQDNPatch(**vpn_gateway_connection_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_peer_fqdn_patch_model_dict) + vpn_gateway_connection_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_peer_fqdn_patch_model_dict = VPNGatewayConnectionPeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionPeerFQDNPatch.from_dict( + vpn_gateway_connection_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_peer_fqdn_patch_model_json + ).__dict__ + vpn_gateway_connection_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_peer_fqdn_patch_model2 = VPNGatewayConnectionPeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionStaticRouteModePeerPatchVPNGatewayConnectionPeerFQDNPatch( + **vpn_gateway_connection_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_peer_fqdn_patch_model_dict + ) # Verify the model instances are equivalent - assert vpn_gateway_connection_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_peer_fqdn_patch_model == vpn_gateway_connection_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_peer_fqdn_patch_model2 + assert ( + vpn_gateway_connection_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_peer_fqdn_patch_model + == vpn_gateway_connection_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_peer_fqdn_patch_model2 + ) # Convert model instance back to dict and verify no loss of data - vpn_gateway_connection_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_peer_fqdn_patch_model_json2 = vpn_gateway_connection_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_peer_fqdn_patch_model.to_dict() - assert vpn_gateway_connection_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_peer_fqdn_patch_model_json2 == vpn_gateway_connection_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_peer_fqdn_patch_model_json + vpn_gateway_connection_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_peer_fqdn_patch_model_json2 = ( + vpn_gateway_connection_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_peer_fqdn_patch_model.to_dict() + ) + assert ( + vpn_gateway_connection_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_peer_fqdn_patch_model_json2 + == vpn_gateway_connection_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_static_route_mode_peer_patch_vpn_gateway_connection_peer_fqdn_patch_model_json + ) class TestModel_VPNGatewayConnectionRouteModeVPNGatewayConnectionStaticRouteMode: @@ -101538,31 +117796,45 @@ def test_vpn_gateway_connection_route_mode_vpn_gateway_connection_static_route_m ike_policy_reference_model = {} # IKEPolicyReference ike_policy_reference_model['deleted'] = deleted_model - ike_policy_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/ike_policies/ddf51bec-3424-11e8-b467-0ed5f89f718b' + ike_policy_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/ike_policies/ddf51bec-3424-11e8-b467-0ed5f89f718b' + ) ike_policy_reference_model['id'] = 'ddf51bec-3424-11e8-b467-0ed5f89f718b' ike_policy_reference_model['name'] = 'my-ike-policy' ike_policy_reference_model['resource_type'] = 'ike_policy' i_psec_policy_reference_model = {} # IPsecPolicyReference i_psec_policy_reference_model['deleted'] = deleted_model - i_psec_policy_reference_model['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/ipsec_policies/ddf51bec-3424-11e8-b467-0ed5f89f718b' + i_psec_policy_reference_model['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/ipsec_policies/ddf51bec-3424-11e8-b467-0ed5f89f718b' + ) i_psec_policy_reference_model['id'] = 'ddf51bec-3424-11e8-b467-0ed5f89f718b' i_psec_policy_reference_model['name'] = 'my-ipsec-policy' i_psec_policy_reference_model['resource_type'] = 'ipsec_policy' vpn_gateway_connection_status_reason_model = {} # VPNGatewayConnectionStatusReason vpn_gateway_connection_status_reason_model['code'] = 'cannot_authenticate_connection' - vpn_gateway_connection_status_reason_model['message'] = 'Failed to authenticate a connection because of mismatched IKE ID and PSK.' - vpn_gateway_connection_status_reason_model['more_info'] = 'https://cloud.ibm.com/docs/vpc?topic=vpc-vpn-health#vpn-connection-health' + vpn_gateway_connection_status_reason_model['message'] = ( + 'Failed to authenticate a connection because of mismatched IKE ID and PSK.' + ) + vpn_gateway_connection_status_reason_model['more_info'] = ( + 'https://cloud.ibm.com/docs/vpc?topic=vpc-vpn-health#vpn-connection-health' + ) - vpn_gateway_connection_ike_identity_model = {} # VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityFQDN + vpn_gateway_connection_ike_identity_model = ( + {} + ) # VPNGatewayConnectionIKEIdentityVPNGatewayConnectionIKEIdentityFQDN vpn_gateway_connection_ike_identity_model['type'] = 'fqdn' vpn_gateway_connection_ike_identity_model['value'] = 'my-service.example.com' vpn_gateway_connection_static_route_mode_local_model = {} # VPNGatewayConnectionStaticRouteModeLocal - vpn_gateway_connection_static_route_mode_local_model['ike_identities'] = [vpn_gateway_connection_ike_identity_model] + vpn_gateway_connection_static_route_mode_local_model['ike_identities'] = [ + vpn_gateway_connection_ike_identity_model + ] - vpn_gateway_connection_static_route_mode_peer_model = {} # VPNGatewayConnectionStaticRouteModePeerVPNGatewayConnectionPeerByAddress + vpn_gateway_connection_static_route_mode_peer_model = ( + {} + ) # VPNGatewayConnectionStaticRouteModePeerVPNGatewayConnectionPeerByAddress vpn_gateway_connection_static_route_mode_peer_model['ike_identity'] = vpn_gateway_connection_ike_identity_model vpn_gateway_connection_static_route_mode_peer_model['type'] = 'address' vpn_gateway_connection_static_route_mode_peer_model['address'] = '169.21.50.5' @@ -101572,51 +117844,111 @@ def test_vpn_gateway_connection_route_mode_vpn_gateway_connection_static_route_m vpn_gateway_connection_tunnel_status_reason_model = {} # VPNGatewayConnectionTunnelStatusReason vpn_gateway_connection_tunnel_status_reason_model['code'] = 'cannot_authenticate_connection' - vpn_gateway_connection_tunnel_status_reason_model['message'] = 'Failed to authenticate a connection because of mismatched IKE ID and PSK.' - vpn_gateway_connection_tunnel_status_reason_model['more_info'] = 'https://cloud.ibm.com/docs/vpc?topic=vpc-vpn-health#vpn-connection-health' + vpn_gateway_connection_tunnel_status_reason_model['message'] = ( + 'Failed to authenticate a connection because of mismatched IKE ID and PSK.' + ) + vpn_gateway_connection_tunnel_status_reason_model['more_info'] = ( + 'https://cloud.ibm.com/docs/vpc?topic=vpc-vpn-health#vpn-connection-health' + ) vpn_gateway_connection_static_route_mode_tunnel_model = {} # VPNGatewayConnectionStaticRouteModeTunnel vpn_gateway_connection_static_route_mode_tunnel_model['public_ip'] = ip_model vpn_gateway_connection_static_route_mode_tunnel_model['status'] = 'down' - vpn_gateway_connection_static_route_mode_tunnel_model['status_reasons'] = [vpn_gateway_connection_tunnel_status_reason_model] + vpn_gateway_connection_static_route_mode_tunnel_model['status_reasons'] = [ + vpn_gateway_connection_tunnel_status_reason_model + ] # Construct a json representation of a VPNGatewayConnectionRouteModeVPNGatewayConnectionStaticRouteMode model vpn_gateway_connection_route_mode_vpn_gateway_connection_static_route_mode_model_json = {} vpn_gateway_connection_route_mode_vpn_gateway_connection_static_route_mode_model_json['admin_state_up'] = True - vpn_gateway_connection_route_mode_vpn_gateway_connection_static_route_mode_model_json['authentication_mode'] = 'psk' - vpn_gateway_connection_route_mode_vpn_gateway_connection_static_route_mode_model_json['created_at'] = '2019-01-01T12:00:00Z' - vpn_gateway_connection_route_mode_vpn_gateway_connection_static_route_mode_model_json['dead_peer_detection'] = vpn_gateway_connection_dpd_model - vpn_gateway_connection_route_mode_vpn_gateway_connection_static_route_mode_model_json['establish_mode'] = 'bidirectional' - vpn_gateway_connection_route_mode_vpn_gateway_connection_static_route_mode_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b/connections/93487806-7743-4c46-81d6-72869883ea0b' - vpn_gateway_connection_route_mode_vpn_gateway_connection_static_route_mode_model_json['id'] = 'a10a5771-dc23-442c-8460-c3601d8542f7' - vpn_gateway_connection_route_mode_vpn_gateway_connection_static_route_mode_model_json['ike_policy'] = ike_policy_reference_model - vpn_gateway_connection_route_mode_vpn_gateway_connection_static_route_mode_model_json['ipsec_policy'] = i_psec_policy_reference_model + vpn_gateway_connection_route_mode_vpn_gateway_connection_static_route_mode_model_json['authentication_mode'] = ( + 'psk' + ) + vpn_gateway_connection_route_mode_vpn_gateway_connection_static_route_mode_model_json['created_at'] = ( + '2019-01-01T12:00:00Z' + ) + vpn_gateway_connection_route_mode_vpn_gateway_connection_static_route_mode_model_json['dead_peer_detection'] = ( + vpn_gateway_connection_dpd_model + ) + vpn_gateway_connection_route_mode_vpn_gateway_connection_static_route_mode_model_json['establish_mode'] = ( + 'bidirectional' + ) + vpn_gateway_connection_route_mode_vpn_gateway_connection_static_route_mode_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b/connections/93487806-7743-4c46-81d6-72869883ea0b' + ) + vpn_gateway_connection_route_mode_vpn_gateway_connection_static_route_mode_model_json['id'] = ( + 'a10a5771-dc23-442c-8460-c3601d8542f7' + ) + vpn_gateway_connection_route_mode_vpn_gateway_connection_static_route_mode_model_json['ike_policy'] = ( + ike_policy_reference_model + ) + vpn_gateway_connection_route_mode_vpn_gateway_connection_static_route_mode_model_json['ipsec_policy'] = ( + i_psec_policy_reference_model + ) vpn_gateway_connection_route_mode_vpn_gateway_connection_static_route_mode_model_json['mode'] = 'policy' - vpn_gateway_connection_route_mode_vpn_gateway_connection_static_route_mode_model_json['name'] = 'my-vpn-connection' - vpn_gateway_connection_route_mode_vpn_gateway_connection_static_route_mode_model_json['psk'] = 'lkj14b1oi0alcniejkso' - vpn_gateway_connection_route_mode_vpn_gateway_connection_static_route_mode_model_json['resource_type'] = 'vpn_gateway_connection' + vpn_gateway_connection_route_mode_vpn_gateway_connection_static_route_mode_model_json['name'] = ( + 'my-vpn-connection' + ) + vpn_gateway_connection_route_mode_vpn_gateway_connection_static_route_mode_model_json['psk'] = ( + 'lkj14b1oi0alcniejkso' + ) + vpn_gateway_connection_route_mode_vpn_gateway_connection_static_route_mode_model_json['resource_type'] = ( + 'vpn_gateway_connection' + ) vpn_gateway_connection_route_mode_vpn_gateway_connection_static_route_mode_model_json['status'] = 'down' - vpn_gateway_connection_route_mode_vpn_gateway_connection_static_route_mode_model_json['status_reasons'] = [vpn_gateway_connection_status_reason_model] - vpn_gateway_connection_route_mode_vpn_gateway_connection_static_route_mode_model_json['distribute_traffic'] = True - vpn_gateway_connection_route_mode_vpn_gateway_connection_static_route_mode_model_json['local'] = vpn_gateway_connection_static_route_mode_local_model - vpn_gateway_connection_route_mode_vpn_gateway_connection_static_route_mode_model_json['peer'] = vpn_gateway_connection_static_route_mode_peer_model - vpn_gateway_connection_route_mode_vpn_gateway_connection_static_route_mode_model_json['routing_protocol'] = 'none' - vpn_gateway_connection_route_mode_vpn_gateway_connection_static_route_mode_model_json['tunnels'] = [vpn_gateway_connection_static_route_mode_tunnel_model] + vpn_gateway_connection_route_mode_vpn_gateway_connection_static_route_mode_model_json['status_reasons'] = [ + vpn_gateway_connection_status_reason_model + ] + vpn_gateway_connection_route_mode_vpn_gateway_connection_static_route_mode_model_json['distribute_traffic'] = ( + True + ) + vpn_gateway_connection_route_mode_vpn_gateway_connection_static_route_mode_model_json['local'] = ( + vpn_gateway_connection_static_route_mode_local_model + ) + vpn_gateway_connection_route_mode_vpn_gateway_connection_static_route_mode_model_json['peer'] = ( + vpn_gateway_connection_static_route_mode_peer_model + ) + vpn_gateway_connection_route_mode_vpn_gateway_connection_static_route_mode_model_json['routing_protocol'] = ( + 'none' + ) + vpn_gateway_connection_route_mode_vpn_gateway_connection_static_route_mode_model_json['tunnels'] = [ + vpn_gateway_connection_static_route_mode_tunnel_model + ] # Construct a model instance of VPNGatewayConnectionRouteModeVPNGatewayConnectionStaticRouteMode by calling from_dict on the json representation - vpn_gateway_connection_route_mode_vpn_gateway_connection_static_route_mode_model = VPNGatewayConnectionRouteModeVPNGatewayConnectionStaticRouteMode.from_dict(vpn_gateway_connection_route_mode_vpn_gateway_connection_static_route_mode_model_json) + vpn_gateway_connection_route_mode_vpn_gateway_connection_static_route_mode_model = ( + VPNGatewayConnectionRouteModeVPNGatewayConnectionStaticRouteMode.from_dict( + vpn_gateway_connection_route_mode_vpn_gateway_connection_static_route_mode_model_json + ) + ) assert vpn_gateway_connection_route_mode_vpn_gateway_connection_static_route_mode_model != False # Construct a model instance of VPNGatewayConnectionRouteModeVPNGatewayConnectionStaticRouteMode by calling from_dict on the json representation - vpn_gateway_connection_route_mode_vpn_gateway_connection_static_route_mode_model_dict = VPNGatewayConnectionRouteModeVPNGatewayConnectionStaticRouteMode.from_dict(vpn_gateway_connection_route_mode_vpn_gateway_connection_static_route_mode_model_json).__dict__ - vpn_gateway_connection_route_mode_vpn_gateway_connection_static_route_mode_model2 = VPNGatewayConnectionRouteModeVPNGatewayConnectionStaticRouteMode(**vpn_gateway_connection_route_mode_vpn_gateway_connection_static_route_mode_model_dict) + vpn_gateway_connection_route_mode_vpn_gateway_connection_static_route_mode_model_dict = ( + VPNGatewayConnectionRouteModeVPNGatewayConnectionStaticRouteMode.from_dict( + vpn_gateway_connection_route_mode_vpn_gateway_connection_static_route_mode_model_json + ).__dict__ + ) + vpn_gateway_connection_route_mode_vpn_gateway_connection_static_route_mode_model2 = ( + VPNGatewayConnectionRouteModeVPNGatewayConnectionStaticRouteMode( + **vpn_gateway_connection_route_mode_vpn_gateway_connection_static_route_mode_model_dict + ) + ) # Verify the model instances are equivalent - assert vpn_gateway_connection_route_mode_vpn_gateway_connection_static_route_mode_model == vpn_gateway_connection_route_mode_vpn_gateway_connection_static_route_mode_model2 + assert ( + vpn_gateway_connection_route_mode_vpn_gateway_connection_static_route_mode_model + == vpn_gateway_connection_route_mode_vpn_gateway_connection_static_route_mode_model2 + ) # Convert model instance back to dict and verify no loss of data - vpn_gateway_connection_route_mode_vpn_gateway_connection_static_route_mode_model_json2 = vpn_gateway_connection_route_mode_vpn_gateway_connection_static_route_mode_model.to_dict() - assert vpn_gateway_connection_route_mode_vpn_gateway_connection_static_route_mode_model_json2 == vpn_gateway_connection_route_mode_vpn_gateway_connection_static_route_mode_model_json + vpn_gateway_connection_route_mode_vpn_gateway_connection_static_route_mode_model_json2 = ( + vpn_gateway_connection_route_mode_vpn_gateway_connection_static_route_mode_model.to_dict() + ) + assert ( + vpn_gateway_connection_route_mode_vpn_gateway_connection_static_route_mode_model_json2 + == vpn_gateway_connection_route_mode_vpn_gateway_connection_static_route_mode_model_json + ) class TestModel_VirtualNetworkInterfaceIPPrototypeReservedIPIdentityVirtualNetworkInterfaceIPsContextByHref: @@ -101624,29 +117956,52 @@ class TestModel_VirtualNetworkInterfaceIPPrototypeReservedIPIdentityVirtualNetwo Test Class for VirtualNetworkInterfaceIPPrototypeReservedIPIdentityVirtualNetworkInterfaceIPsContextByHref """ - def test_virtual_network_interface_ip_prototype_reserved_ip_identity_virtual_network_interface_i_ps_context_by_href_serialization(self): + def test_virtual_network_interface_ip_prototype_reserved_ip_identity_virtual_network_interface_i_ps_context_by_href_serialization( + self, + ): """ Test serialization/deserialization for VirtualNetworkInterfaceIPPrototypeReservedIPIdentityVirtualNetworkInterfaceIPsContextByHref """ # Construct a json representation of a VirtualNetworkInterfaceIPPrototypeReservedIPIdentityVirtualNetworkInterfaceIPsContextByHref model - virtual_network_interface_ip_prototype_reserved_ip_identity_virtual_network_interface_i_ps_context_by_href_model_json = {} - virtual_network_interface_ip_prototype_reserved_ip_identity_virtual_network_interface_i_ps_context_by_href_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-bea6a632-5e13-42a4-b4b8-31dc877abfe4/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + virtual_network_interface_ip_prototype_reserved_ip_identity_virtual_network_interface_i_ps_context_by_href_model_json = ( + {} + ) + virtual_network_interface_ip_prototype_reserved_ip_identity_virtual_network_interface_i_ps_context_by_href_model_json[ + 'href' + ] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-bea6a632-5e13-42a4-b4b8-31dc877abfe4/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' # Construct a model instance of VirtualNetworkInterfaceIPPrototypeReservedIPIdentityVirtualNetworkInterfaceIPsContextByHref by calling from_dict on the json representation - virtual_network_interface_ip_prototype_reserved_ip_identity_virtual_network_interface_i_ps_context_by_href_model = VirtualNetworkInterfaceIPPrototypeReservedIPIdentityVirtualNetworkInterfaceIPsContextByHref.from_dict(virtual_network_interface_ip_prototype_reserved_ip_identity_virtual_network_interface_i_ps_context_by_href_model_json) - assert virtual_network_interface_ip_prototype_reserved_ip_identity_virtual_network_interface_i_ps_context_by_href_model != False + virtual_network_interface_ip_prototype_reserved_ip_identity_virtual_network_interface_i_ps_context_by_href_model = VirtualNetworkInterfaceIPPrototypeReservedIPIdentityVirtualNetworkInterfaceIPsContextByHref.from_dict( + virtual_network_interface_ip_prototype_reserved_ip_identity_virtual_network_interface_i_ps_context_by_href_model_json + ) + assert ( + virtual_network_interface_ip_prototype_reserved_ip_identity_virtual_network_interface_i_ps_context_by_href_model + != False + ) # Construct a model instance of VirtualNetworkInterfaceIPPrototypeReservedIPIdentityVirtualNetworkInterfaceIPsContextByHref by calling from_dict on the json representation - virtual_network_interface_ip_prototype_reserved_ip_identity_virtual_network_interface_i_ps_context_by_href_model_dict = VirtualNetworkInterfaceIPPrototypeReservedIPIdentityVirtualNetworkInterfaceIPsContextByHref.from_dict(virtual_network_interface_ip_prototype_reserved_ip_identity_virtual_network_interface_i_ps_context_by_href_model_json).__dict__ - virtual_network_interface_ip_prototype_reserved_ip_identity_virtual_network_interface_i_ps_context_by_href_model2 = VirtualNetworkInterfaceIPPrototypeReservedIPIdentityVirtualNetworkInterfaceIPsContextByHref(**virtual_network_interface_ip_prototype_reserved_ip_identity_virtual_network_interface_i_ps_context_by_href_model_dict) + virtual_network_interface_ip_prototype_reserved_ip_identity_virtual_network_interface_i_ps_context_by_href_model_dict = VirtualNetworkInterfaceIPPrototypeReservedIPIdentityVirtualNetworkInterfaceIPsContextByHref.from_dict( + virtual_network_interface_ip_prototype_reserved_ip_identity_virtual_network_interface_i_ps_context_by_href_model_json + ).__dict__ + virtual_network_interface_ip_prototype_reserved_ip_identity_virtual_network_interface_i_ps_context_by_href_model2 = VirtualNetworkInterfaceIPPrototypeReservedIPIdentityVirtualNetworkInterfaceIPsContextByHref( + **virtual_network_interface_ip_prototype_reserved_ip_identity_virtual_network_interface_i_ps_context_by_href_model_dict + ) # Verify the model instances are equivalent - assert virtual_network_interface_ip_prototype_reserved_ip_identity_virtual_network_interface_i_ps_context_by_href_model == virtual_network_interface_ip_prototype_reserved_ip_identity_virtual_network_interface_i_ps_context_by_href_model2 + assert ( + virtual_network_interface_ip_prototype_reserved_ip_identity_virtual_network_interface_i_ps_context_by_href_model + == virtual_network_interface_ip_prototype_reserved_ip_identity_virtual_network_interface_i_ps_context_by_href_model2 + ) # Convert model instance back to dict and verify no loss of data - virtual_network_interface_ip_prototype_reserved_ip_identity_virtual_network_interface_i_ps_context_by_href_model_json2 = virtual_network_interface_ip_prototype_reserved_ip_identity_virtual_network_interface_i_ps_context_by_href_model.to_dict() - assert virtual_network_interface_ip_prototype_reserved_ip_identity_virtual_network_interface_i_ps_context_by_href_model_json2 == virtual_network_interface_ip_prototype_reserved_ip_identity_virtual_network_interface_i_ps_context_by_href_model_json + virtual_network_interface_ip_prototype_reserved_ip_identity_virtual_network_interface_i_ps_context_by_href_model_json2 = ( + virtual_network_interface_ip_prototype_reserved_ip_identity_virtual_network_interface_i_ps_context_by_href_model.to_dict() + ) + assert ( + virtual_network_interface_ip_prototype_reserved_ip_identity_virtual_network_interface_i_ps_context_by_href_model_json2 + == virtual_network_interface_ip_prototype_reserved_ip_identity_virtual_network_interface_i_ps_context_by_href_model_json + ) class TestModel_VirtualNetworkInterfaceIPPrototypeReservedIPIdentityVirtualNetworkInterfaceIPsContextById: @@ -101654,29 +118009,52 @@ class TestModel_VirtualNetworkInterfaceIPPrototypeReservedIPIdentityVirtualNetwo Test Class for VirtualNetworkInterfaceIPPrototypeReservedIPIdentityVirtualNetworkInterfaceIPsContextById """ - def test_virtual_network_interface_ip_prototype_reserved_ip_identity_virtual_network_interface_i_ps_context_by_id_serialization(self): + def test_virtual_network_interface_ip_prototype_reserved_ip_identity_virtual_network_interface_i_ps_context_by_id_serialization( + self, + ): """ Test serialization/deserialization for VirtualNetworkInterfaceIPPrototypeReservedIPIdentityVirtualNetworkInterfaceIPsContextById """ # Construct a json representation of a VirtualNetworkInterfaceIPPrototypeReservedIPIdentityVirtualNetworkInterfaceIPsContextById model - virtual_network_interface_ip_prototype_reserved_ip_identity_virtual_network_interface_i_ps_context_by_id_model_json = {} - virtual_network_interface_ip_prototype_reserved_ip_identity_virtual_network_interface_i_ps_context_by_id_model_json['id'] = '0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + virtual_network_interface_ip_prototype_reserved_ip_identity_virtual_network_interface_i_ps_context_by_id_model_json = ( + {} + ) + virtual_network_interface_ip_prototype_reserved_ip_identity_virtual_network_interface_i_ps_context_by_id_model_json[ + 'id' + ] = '0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' # Construct a model instance of VirtualNetworkInterfaceIPPrototypeReservedIPIdentityVirtualNetworkInterfaceIPsContextById by calling from_dict on the json representation - virtual_network_interface_ip_prototype_reserved_ip_identity_virtual_network_interface_i_ps_context_by_id_model = VirtualNetworkInterfaceIPPrototypeReservedIPIdentityVirtualNetworkInterfaceIPsContextById.from_dict(virtual_network_interface_ip_prototype_reserved_ip_identity_virtual_network_interface_i_ps_context_by_id_model_json) - assert virtual_network_interface_ip_prototype_reserved_ip_identity_virtual_network_interface_i_ps_context_by_id_model != False + virtual_network_interface_ip_prototype_reserved_ip_identity_virtual_network_interface_i_ps_context_by_id_model = VirtualNetworkInterfaceIPPrototypeReservedIPIdentityVirtualNetworkInterfaceIPsContextById.from_dict( + virtual_network_interface_ip_prototype_reserved_ip_identity_virtual_network_interface_i_ps_context_by_id_model_json + ) + assert ( + virtual_network_interface_ip_prototype_reserved_ip_identity_virtual_network_interface_i_ps_context_by_id_model + != False + ) # Construct a model instance of VirtualNetworkInterfaceIPPrototypeReservedIPIdentityVirtualNetworkInterfaceIPsContextById by calling from_dict on the json representation - virtual_network_interface_ip_prototype_reserved_ip_identity_virtual_network_interface_i_ps_context_by_id_model_dict = VirtualNetworkInterfaceIPPrototypeReservedIPIdentityVirtualNetworkInterfaceIPsContextById.from_dict(virtual_network_interface_ip_prototype_reserved_ip_identity_virtual_network_interface_i_ps_context_by_id_model_json).__dict__ - virtual_network_interface_ip_prototype_reserved_ip_identity_virtual_network_interface_i_ps_context_by_id_model2 = VirtualNetworkInterfaceIPPrototypeReservedIPIdentityVirtualNetworkInterfaceIPsContextById(**virtual_network_interface_ip_prototype_reserved_ip_identity_virtual_network_interface_i_ps_context_by_id_model_dict) + virtual_network_interface_ip_prototype_reserved_ip_identity_virtual_network_interface_i_ps_context_by_id_model_dict = VirtualNetworkInterfaceIPPrototypeReservedIPIdentityVirtualNetworkInterfaceIPsContextById.from_dict( + virtual_network_interface_ip_prototype_reserved_ip_identity_virtual_network_interface_i_ps_context_by_id_model_json + ).__dict__ + virtual_network_interface_ip_prototype_reserved_ip_identity_virtual_network_interface_i_ps_context_by_id_model2 = VirtualNetworkInterfaceIPPrototypeReservedIPIdentityVirtualNetworkInterfaceIPsContextById( + **virtual_network_interface_ip_prototype_reserved_ip_identity_virtual_network_interface_i_ps_context_by_id_model_dict + ) # Verify the model instances are equivalent - assert virtual_network_interface_ip_prototype_reserved_ip_identity_virtual_network_interface_i_ps_context_by_id_model == virtual_network_interface_ip_prototype_reserved_ip_identity_virtual_network_interface_i_ps_context_by_id_model2 + assert ( + virtual_network_interface_ip_prototype_reserved_ip_identity_virtual_network_interface_i_ps_context_by_id_model + == virtual_network_interface_ip_prototype_reserved_ip_identity_virtual_network_interface_i_ps_context_by_id_model2 + ) # Convert model instance back to dict and verify no loss of data - virtual_network_interface_ip_prototype_reserved_ip_identity_virtual_network_interface_i_ps_context_by_id_model_json2 = virtual_network_interface_ip_prototype_reserved_ip_identity_virtual_network_interface_i_ps_context_by_id_model.to_dict() - assert virtual_network_interface_ip_prototype_reserved_ip_identity_virtual_network_interface_i_ps_context_by_id_model_json2 == virtual_network_interface_ip_prototype_reserved_ip_identity_virtual_network_interface_i_ps_context_by_id_model_json + virtual_network_interface_ip_prototype_reserved_ip_identity_virtual_network_interface_i_ps_context_by_id_model_json2 = ( + virtual_network_interface_ip_prototype_reserved_ip_identity_virtual_network_interface_i_ps_context_by_id_model.to_dict() + ) + assert ( + virtual_network_interface_ip_prototype_reserved_ip_identity_virtual_network_interface_i_ps_context_by_id_model_json2 + == virtual_network_interface_ip_prototype_reserved_ip_identity_virtual_network_interface_i_ps_context_by_id_model_json + ) class TestModel_VirtualNetworkInterfacePrimaryIPPrototypeReservedIPIdentityVirtualNetworkInterfacePrimaryIPContextByHref: @@ -101684,29 +118062,52 @@ class TestModel_VirtualNetworkInterfacePrimaryIPPrototypeReservedIPIdentityVirtu Test Class for VirtualNetworkInterfacePrimaryIPPrototypeReservedIPIdentityVirtualNetworkInterfacePrimaryIPContextByHref """ - def test_virtual_network_interface_primary_ip_prototype_reserved_ip_identity_virtual_network_interface_primary_ip_context_by_href_serialization(self): + def test_virtual_network_interface_primary_ip_prototype_reserved_ip_identity_virtual_network_interface_primary_ip_context_by_href_serialization( + self, + ): """ Test serialization/deserialization for VirtualNetworkInterfacePrimaryIPPrototypeReservedIPIdentityVirtualNetworkInterfacePrimaryIPContextByHref """ # Construct a json representation of a VirtualNetworkInterfacePrimaryIPPrototypeReservedIPIdentityVirtualNetworkInterfacePrimaryIPContextByHref model - virtual_network_interface_primary_ip_prototype_reserved_ip_identity_virtual_network_interface_primary_ip_context_by_href_model_json = {} - virtual_network_interface_primary_ip_prototype_reserved_ip_identity_virtual_network_interface_primary_ip_context_by_href_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-bea6a632-5e13-42a4-b4b8-31dc877abfe4/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + virtual_network_interface_primary_ip_prototype_reserved_ip_identity_virtual_network_interface_primary_ip_context_by_href_model_json = ( + {} + ) + virtual_network_interface_primary_ip_prototype_reserved_ip_identity_virtual_network_interface_primary_ip_context_by_href_model_json[ + 'href' + ] = 'https://us-south.iaas.cloud.ibm.com/v1/subnets/0717-bea6a632-5e13-42a4-b4b8-31dc877abfe4/reserved_ips/0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' # Construct a model instance of VirtualNetworkInterfacePrimaryIPPrototypeReservedIPIdentityVirtualNetworkInterfacePrimaryIPContextByHref by calling from_dict on the json representation - virtual_network_interface_primary_ip_prototype_reserved_ip_identity_virtual_network_interface_primary_ip_context_by_href_model = VirtualNetworkInterfacePrimaryIPPrototypeReservedIPIdentityVirtualNetworkInterfacePrimaryIPContextByHref.from_dict(virtual_network_interface_primary_ip_prototype_reserved_ip_identity_virtual_network_interface_primary_ip_context_by_href_model_json) - assert virtual_network_interface_primary_ip_prototype_reserved_ip_identity_virtual_network_interface_primary_ip_context_by_href_model != False + virtual_network_interface_primary_ip_prototype_reserved_ip_identity_virtual_network_interface_primary_ip_context_by_href_model = VirtualNetworkInterfacePrimaryIPPrototypeReservedIPIdentityVirtualNetworkInterfacePrimaryIPContextByHref.from_dict( + virtual_network_interface_primary_ip_prototype_reserved_ip_identity_virtual_network_interface_primary_ip_context_by_href_model_json + ) + assert ( + virtual_network_interface_primary_ip_prototype_reserved_ip_identity_virtual_network_interface_primary_ip_context_by_href_model + != False + ) # Construct a model instance of VirtualNetworkInterfacePrimaryIPPrototypeReservedIPIdentityVirtualNetworkInterfacePrimaryIPContextByHref by calling from_dict on the json representation - virtual_network_interface_primary_ip_prototype_reserved_ip_identity_virtual_network_interface_primary_ip_context_by_href_model_dict = VirtualNetworkInterfacePrimaryIPPrototypeReservedIPIdentityVirtualNetworkInterfacePrimaryIPContextByHref.from_dict(virtual_network_interface_primary_ip_prototype_reserved_ip_identity_virtual_network_interface_primary_ip_context_by_href_model_json).__dict__ - virtual_network_interface_primary_ip_prototype_reserved_ip_identity_virtual_network_interface_primary_ip_context_by_href_model2 = VirtualNetworkInterfacePrimaryIPPrototypeReservedIPIdentityVirtualNetworkInterfacePrimaryIPContextByHref(**virtual_network_interface_primary_ip_prototype_reserved_ip_identity_virtual_network_interface_primary_ip_context_by_href_model_dict) + virtual_network_interface_primary_ip_prototype_reserved_ip_identity_virtual_network_interface_primary_ip_context_by_href_model_dict = VirtualNetworkInterfacePrimaryIPPrototypeReservedIPIdentityVirtualNetworkInterfacePrimaryIPContextByHref.from_dict( + virtual_network_interface_primary_ip_prototype_reserved_ip_identity_virtual_network_interface_primary_ip_context_by_href_model_json + ).__dict__ + virtual_network_interface_primary_ip_prototype_reserved_ip_identity_virtual_network_interface_primary_ip_context_by_href_model2 = VirtualNetworkInterfacePrimaryIPPrototypeReservedIPIdentityVirtualNetworkInterfacePrimaryIPContextByHref( + **virtual_network_interface_primary_ip_prototype_reserved_ip_identity_virtual_network_interface_primary_ip_context_by_href_model_dict + ) # Verify the model instances are equivalent - assert virtual_network_interface_primary_ip_prototype_reserved_ip_identity_virtual_network_interface_primary_ip_context_by_href_model == virtual_network_interface_primary_ip_prototype_reserved_ip_identity_virtual_network_interface_primary_ip_context_by_href_model2 + assert ( + virtual_network_interface_primary_ip_prototype_reserved_ip_identity_virtual_network_interface_primary_ip_context_by_href_model + == virtual_network_interface_primary_ip_prototype_reserved_ip_identity_virtual_network_interface_primary_ip_context_by_href_model2 + ) # Convert model instance back to dict and verify no loss of data - virtual_network_interface_primary_ip_prototype_reserved_ip_identity_virtual_network_interface_primary_ip_context_by_href_model_json2 = virtual_network_interface_primary_ip_prototype_reserved_ip_identity_virtual_network_interface_primary_ip_context_by_href_model.to_dict() - assert virtual_network_interface_primary_ip_prototype_reserved_ip_identity_virtual_network_interface_primary_ip_context_by_href_model_json2 == virtual_network_interface_primary_ip_prototype_reserved_ip_identity_virtual_network_interface_primary_ip_context_by_href_model_json + virtual_network_interface_primary_ip_prototype_reserved_ip_identity_virtual_network_interface_primary_ip_context_by_href_model_json2 = ( + virtual_network_interface_primary_ip_prototype_reserved_ip_identity_virtual_network_interface_primary_ip_context_by_href_model.to_dict() + ) + assert ( + virtual_network_interface_primary_ip_prototype_reserved_ip_identity_virtual_network_interface_primary_ip_context_by_href_model_json2 + == virtual_network_interface_primary_ip_prototype_reserved_ip_identity_virtual_network_interface_primary_ip_context_by_href_model_json + ) class TestModel_VirtualNetworkInterfacePrimaryIPPrototypeReservedIPIdentityVirtualNetworkInterfacePrimaryIPContextById: @@ -101714,29 +118115,52 @@ class TestModel_VirtualNetworkInterfacePrimaryIPPrototypeReservedIPIdentityVirtu Test Class for VirtualNetworkInterfacePrimaryIPPrototypeReservedIPIdentityVirtualNetworkInterfacePrimaryIPContextById """ - def test_virtual_network_interface_primary_ip_prototype_reserved_ip_identity_virtual_network_interface_primary_ip_context_by_id_serialization(self): + def test_virtual_network_interface_primary_ip_prototype_reserved_ip_identity_virtual_network_interface_primary_ip_context_by_id_serialization( + self, + ): """ Test serialization/deserialization for VirtualNetworkInterfacePrimaryIPPrototypeReservedIPIdentityVirtualNetworkInterfacePrimaryIPContextById """ # Construct a json representation of a VirtualNetworkInterfacePrimaryIPPrototypeReservedIPIdentityVirtualNetworkInterfacePrimaryIPContextById model - virtual_network_interface_primary_ip_prototype_reserved_ip_identity_virtual_network_interface_primary_ip_context_by_id_model_json = {} - virtual_network_interface_primary_ip_prototype_reserved_ip_identity_virtual_network_interface_primary_ip_context_by_id_model_json['id'] = '0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' + virtual_network_interface_primary_ip_prototype_reserved_ip_identity_virtual_network_interface_primary_ip_context_by_id_model_json = ( + {} + ) + virtual_network_interface_primary_ip_prototype_reserved_ip_identity_virtual_network_interface_primary_ip_context_by_id_model_json[ + 'id' + ] = '0717-6d353a0f-aeb1-4ae1-832e-1110d10981bb' # Construct a model instance of VirtualNetworkInterfacePrimaryIPPrototypeReservedIPIdentityVirtualNetworkInterfacePrimaryIPContextById by calling from_dict on the json representation - virtual_network_interface_primary_ip_prototype_reserved_ip_identity_virtual_network_interface_primary_ip_context_by_id_model = VirtualNetworkInterfacePrimaryIPPrototypeReservedIPIdentityVirtualNetworkInterfacePrimaryIPContextById.from_dict(virtual_network_interface_primary_ip_prototype_reserved_ip_identity_virtual_network_interface_primary_ip_context_by_id_model_json) - assert virtual_network_interface_primary_ip_prototype_reserved_ip_identity_virtual_network_interface_primary_ip_context_by_id_model != False + virtual_network_interface_primary_ip_prototype_reserved_ip_identity_virtual_network_interface_primary_ip_context_by_id_model = VirtualNetworkInterfacePrimaryIPPrototypeReservedIPIdentityVirtualNetworkInterfacePrimaryIPContextById.from_dict( + virtual_network_interface_primary_ip_prototype_reserved_ip_identity_virtual_network_interface_primary_ip_context_by_id_model_json + ) + assert ( + virtual_network_interface_primary_ip_prototype_reserved_ip_identity_virtual_network_interface_primary_ip_context_by_id_model + != False + ) # Construct a model instance of VirtualNetworkInterfacePrimaryIPPrototypeReservedIPIdentityVirtualNetworkInterfacePrimaryIPContextById by calling from_dict on the json representation - virtual_network_interface_primary_ip_prototype_reserved_ip_identity_virtual_network_interface_primary_ip_context_by_id_model_dict = VirtualNetworkInterfacePrimaryIPPrototypeReservedIPIdentityVirtualNetworkInterfacePrimaryIPContextById.from_dict(virtual_network_interface_primary_ip_prototype_reserved_ip_identity_virtual_network_interface_primary_ip_context_by_id_model_json).__dict__ - virtual_network_interface_primary_ip_prototype_reserved_ip_identity_virtual_network_interface_primary_ip_context_by_id_model2 = VirtualNetworkInterfacePrimaryIPPrototypeReservedIPIdentityVirtualNetworkInterfacePrimaryIPContextById(**virtual_network_interface_primary_ip_prototype_reserved_ip_identity_virtual_network_interface_primary_ip_context_by_id_model_dict) + virtual_network_interface_primary_ip_prototype_reserved_ip_identity_virtual_network_interface_primary_ip_context_by_id_model_dict = VirtualNetworkInterfacePrimaryIPPrototypeReservedIPIdentityVirtualNetworkInterfacePrimaryIPContextById.from_dict( + virtual_network_interface_primary_ip_prototype_reserved_ip_identity_virtual_network_interface_primary_ip_context_by_id_model_json + ).__dict__ + virtual_network_interface_primary_ip_prototype_reserved_ip_identity_virtual_network_interface_primary_ip_context_by_id_model2 = VirtualNetworkInterfacePrimaryIPPrototypeReservedIPIdentityVirtualNetworkInterfacePrimaryIPContextById( + **virtual_network_interface_primary_ip_prototype_reserved_ip_identity_virtual_network_interface_primary_ip_context_by_id_model_dict + ) # Verify the model instances are equivalent - assert virtual_network_interface_primary_ip_prototype_reserved_ip_identity_virtual_network_interface_primary_ip_context_by_id_model == virtual_network_interface_primary_ip_prototype_reserved_ip_identity_virtual_network_interface_primary_ip_context_by_id_model2 + assert ( + virtual_network_interface_primary_ip_prototype_reserved_ip_identity_virtual_network_interface_primary_ip_context_by_id_model + == virtual_network_interface_primary_ip_prototype_reserved_ip_identity_virtual_network_interface_primary_ip_context_by_id_model2 + ) # Convert model instance back to dict and verify no loss of data - virtual_network_interface_primary_ip_prototype_reserved_ip_identity_virtual_network_interface_primary_ip_context_by_id_model_json2 = virtual_network_interface_primary_ip_prototype_reserved_ip_identity_virtual_network_interface_primary_ip_context_by_id_model.to_dict() - assert virtual_network_interface_primary_ip_prototype_reserved_ip_identity_virtual_network_interface_primary_ip_context_by_id_model_json2 == virtual_network_interface_primary_ip_prototype_reserved_ip_identity_virtual_network_interface_primary_ip_context_by_id_model_json + virtual_network_interface_primary_ip_prototype_reserved_ip_identity_virtual_network_interface_primary_ip_context_by_id_model_json2 = ( + virtual_network_interface_primary_ip_prototype_reserved_ip_identity_virtual_network_interface_primary_ip_context_by_id_model.to_dict() + ) + assert ( + virtual_network_interface_primary_ip_prototype_reserved_ip_identity_virtual_network_interface_primary_ip_context_by_id_model_json2 + == virtual_network_interface_primary_ip_prototype_reserved_ip_identity_virtual_network_interface_primary_ip_context_by_id_model_json + ) class TestModel_VolumeAttachmentPrototypeVolumeVolumeIdentityVolumeIdentityByCRN: @@ -101751,22 +118175,44 @@ def test_volume_attachment_prototype_volume_volume_identity_volume_identity_by_c # Construct a json representation of a VolumeAttachmentPrototypeVolumeVolumeIdentityVolumeIdentityByCRN model volume_attachment_prototype_volume_volume_identity_volume_identity_by_crn_model_json = {} - volume_attachment_prototype_volume_volume_identity_volume_identity_by_crn_model_json['crn'] = 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::volume:r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' + volume_attachment_prototype_volume_volume_identity_volume_identity_by_crn_model_json['crn'] = ( + 'crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::volume:r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' + ) # Construct a model instance of VolumeAttachmentPrototypeVolumeVolumeIdentityVolumeIdentityByCRN by calling from_dict on the json representation - volume_attachment_prototype_volume_volume_identity_volume_identity_by_crn_model = VolumeAttachmentPrototypeVolumeVolumeIdentityVolumeIdentityByCRN.from_dict(volume_attachment_prototype_volume_volume_identity_volume_identity_by_crn_model_json) + volume_attachment_prototype_volume_volume_identity_volume_identity_by_crn_model = ( + VolumeAttachmentPrototypeVolumeVolumeIdentityVolumeIdentityByCRN.from_dict( + volume_attachment_prototype_volume_volume_identity_volume_identity_by_crn_model_json + ) + ) assert volume_attachment_prototype_volume_volume_identity_volume_identity_by_crn_model != False # Construct a model instance of VolumeAttachmentPrototypeVolumeVolumeIdentityVolumeIdentityByCRN by calling from_dict on the json representation - volume_attachment_prototype_volume_volume_identity_volume_identity_by_crn_model_dict = VolumeAttachmentPrototypeVolumeVolumeIdentityVolumeIdentityByCRN.from_dict(volume_attachment_prototype_volume_volume_identity_volume_identity_by_crn_model_json).__dict__ - volume_attachment_prototype_volume_volume_identity_volume_identity_by_crn_model2 = VolumeAttachmentPrototypeVolumeVolumeIdentityVolumeIdentityByCRN(**volume_attachment_prototype_volume_volume_identity_volume_identity_by_crn_model_dict) + volume_attachment_prototype_volume_volume_identity_volume_identity_by_crn_model_dict = ( + VolumeAttachmentPrototypeVolumeVolumeIdentityVolumeIdentityByCRN.from_dict( + volume_attachment_prototype_volume_volume_identity_volume_identity_by_crn_model_json + ).__dict__ + ) + volume_attachment_prototype_volume_volume_identity_volume_identity_by_crn_model2 = ( + VolumeAttachmentPrototypeVolumeVolumeIdentityVolumeIdentityByCRN( + **volume_attachment_prototype_volume_volume_identity_volume_identity_by_crn_model_dict + ) + ) # Verify the model instances are equivalent - assert volume_attachment_prototype_volume_volume_identity_volume_identity_by_crn_model == volume_attachment_prototype_volume_volume_identity_volume_identity_by_crn_model2 + assert ( + volume_attachment_prototype_volume_volume_identity_volume_identity_by_crn_model + == volume_attachment_prototype_volume_volume_identity_volume_identity_by_crn_model2 + ) # Convert model instance back to dict and verify no loss of data - volume_attachment_prototype_volume_volume_identity_volume_identity_by_crn_model_json2 = volume_attachment_prototype_volume_volume_identity_volume_identity_by_crn_model.to_dict() - assert volume_attachment_prototype_volume_volume_identity_volume_identity_by_crn_model_json2 == volume_attachment_prototype_volume_volume_identity_volume_identity_by_crn_model_json + volume_attachment_prototype_volume_volume_identity_volume_identity_by_crn_model_json2 = ( + volume_attachment_prototype_volume_volume_identity_volume_identity_by_crn_model.to_dict() + ) + assert ( + volume_attachment_prototype_volume_volume_identity_volume_identity_by_crn_model_json2 + == volume_attachment_prototype_volume_volume_identity_volume_identity_by_crn_model_json + ) class TestModel_VolumeAttachmentPrototypeVolumeVolumeIdentityVolumeIdentityByHref: @@ -101781,22 +118227,44 @@ def test_volume_attachment_prototype_volume_volume_identity_volume_identity_by_h # Construct a json representation of a VolumeAttachmentPrototypeVolumeVolumeIdentityVolumeIdentityByHref model volume_attachment_prototype_volume_volume_identity_volume_identity_by_href_model_json = {} - volume_attachment_prototype_volume_volume_identity_volume_identity_by_href_model_json['href'] = 'https://us-south.iaas.cloud.ibm.com/v1/volumes/r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' + volume_attachment_prototype_volume_volume_identity_volume_identity_by_href_model_json['href'] = ( + 'https://us-south.iaas.cloud.ibm.com/v1/volumes/r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' + ) # Construct a model instance of VolumeAttachmentPrototypeVolumeVolumeIdentityVolumeIdentityByHref by calling from_dict on the json representation - volume_attachment_prototype_volume_volume_identity_volume_identity_by_href_model = VolumeAttachmentPrototypeVolumeVolumeIdentityVolumeIdentityByHref.from_dict(volume_attachment_prototype_volume_volume_identity_volume_identity_by_href_model_json) + volume_attachment_prototype_volume_volume_identity_volume_identity_by_href_model = ( + VolumeAttachmentPrototypeVolumeVolumeIdentityVolumeIdentityByHref.from_dict( + volume_attachment_prototype_volume_volume_identity_volume_identity_by_href_model_json + ) + ) assert volume_attachment_prototype_volume_volume_identity_volume_identity_by_href_model != False # Construct a model instance of VolumeAttachmentPrototypeVolumeVolumeIdentityVolumeIdentityByHref by calling from_dict on the json representation - volume_attachment_prototype_volume_volume_identity_volume_identity_by_href_model_dict = VolumeAttachmentPrototypeVolumeVolumeIdentityVolumeIdentityByHref.from_dict(volume_attachment_prototype_volume_volume_identity_volume_identity_by_href_model_json).__dict__ - volume_attachment_prototype_volume_volume_identity_volume_identity_by_href_model2 = VolumeAttachmentPrototypeVolumeVolumeIdentityVolumeIdentityByHref(**volume_attachment_prototype_volume_volume_identity_volume_identity_by_href_model_dict) + volume_attachment_prototype_volume_volume_identity_volume_identity_by_href_model_dict = ( + VolumeAttachmentPrototypeVolumeVolumeIdentityVolumeIdentityByHref.from_dict( + volume_attachment_prototype_volume_volume_identity_volume_identity_by_href_model_json + ).__dict__ + ) + volume_attachment_prototype_volume_volume_identity_volume_identity_by_href_model2 = ( + VolumeAttachmentPrototypeVolumeVolumeIdentityVolumeIdentityByHref( + **volume_attachment_prototype_volume_volume_identity_volume_identity_by_href_model_dict + ) + ) # Verify the model instances are equivalent - assert volume_attachment_prototype_volume_volume_identity_volume_identity_by_href_model == volume_attachment_prototype_volume_volume_identity_volume_identity_by_href_model2 + assert ( + volume_attachment_prototype_volume_volume_identity_volume_identity_by_href_model + == volume_attachment_prototype_volume_volume_identity_volume_identity_by_href_model2 + ) # Convert model instance back to dict and verify no loss of data - volume_attachment_prototype_volume_volume_identity_volume_identity_by_href_model_json2 = volume_attachment_prototype_volume_volume_identity_volume_identity_by_href_model.to_dict() - assert volume_attachment_prototype_volume_volume_identity_volume_identity_by_href_model_json2 == volume_attachment_prototype_volume_volume_identity_volume_identity_by_href_model_json + volume_attachment_prototype_volume_volume_identity_volume_identity_by_href_model_json2 = ( + volume_attachment_prototype_volume_volume_identity_volume_identity_by_href_model.to_dict() + ) + assert ( + volume_attachment_prototype_volume_volume_identity_volume_identity_by_href_model_json2 + == volume_attachment_prototype_volume_volume_identity_volume_identity_by_href_model_json + ) class TestModel_VolumeAttachmentPrototypeVolumeVolumeIdentityVolumeIdentityById: @@ -101811,22 +118279,44 @@ def test_volume_attachment_prototype_volume_volume_identity_volume_identity_by_i # Construct a json representation of a VolumeAttachmentPrototypeVolumeVolumeIdentityVolumeIdentityById model volume_attachment_prototype_volume_volume_identity_volume_identity_by_id_model_json = {} - volume_attachment_prototype_volume_volume_identity_volume_identity_by_id_model_json['id'] = 'r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' + volume_attachment_prototype_volume_volume_identity_volume_identity_by_id_model_json['id'] = ( + 'r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5' + ) # Construct a model instance of VolumeAttachmentPrototypeVolumeVolumeIdentityVolumeIdentityById by calling from_dict on the json representation - volume_attachment_prototype_volume_volume_identity_volume_identity_by_id_model = VolumeAttachmentPrototypeVolumeVolumeIdentityVolumeIdentityById.from_dict(volume_attachment_prototype_volume_volume_identity_volume_identity_by_id_model_json) + volume_attachment_prototype_volume_volume_identity_volume_identity_by_id_model = ( + VolumeAttachmentPrototypeVolumeVolumeIdentityVolumeIdentityById.from_dict( + volume_attachment_prototype_volume_volume_identity_volume_identity_by_id_model_json + ) + ) assert volume_attachment_prototype_volume_volume_identity_volume_identity_by_id_model != False # Construct a model instance of VolumeAttachmentPrototypeVolumeVolumeIdentityVolumeIdentityById by calling from_dict on the json representation - volume_attachment_prototype_volume_volume_identity_volume_identity_by_id_model_dict = VolumeAttachmentPrototypeVolumeVolumeIdentityVolumeIdentityById.from_dict(volume_attachment_prototype_volume_volume_identity_volume_identity_by_id_model_json).__dict__ - volume_attachment_prototype_volume_volume_identity_volume_identity_by_id_model2 = VolumeAttachmentPrototypeVolumeVolumeIdentityVolumeIdentityById(**volume_attachment_prototype_volume_volume_identity_volume_identity_by_id_model_dict) + volume_attachment_prototype_volume_volume_identity_volume_identity_by_id_model_dict = ( + VolumeAttachmentPrototypeVolumeVolumeIdentityVolumeIdentityById.from_dict( + volume_attachment_prototype_volume_volume_identity_volume_identity_by_id_model_json + ).__dict__ + ) + volume_attachment_prototype_volume_volume_identity_volume_identity_by_id_model2 = ( + VolumeAttachmentPrototypeVolumeVolumeIdentityVolumeIdentityById( + **volume_attachment_prototype_volume_volume_identity_volume_identity_by_id_model_dict + ) + ) # Verify the model instances are equivalent - assert volume_attachment_prototype_volume_volume_identity_volume_identity_by_id_model == volume_attachment_prototype_volume_volume_identity_volume_identity_by_id_model2 + assert ( + volume_attachment_prototype_volume_volume_identity_volume_identity_by_id_model + == volume_attachment_prototype_volume_volume_identity_volume_identity_by_id_model2 + ) # Convert model instance back to dict and verify no loss of data - volume_attachment_prototype_volume_volume_identity_volume_identity_by_id_model_json2 = volume_attachment_prototype_volume_volume_identity_volume_identity_by_id_model.to_dict() - assert volume_attachment_prototype_volume_volume_identity_volume_identity_by_id_model_json2 == volume_attachment_prototype_volume_volume_identity_volume_identity_by_id_model_json + volume_attachment_prototype_volume_volume_identity_volume_identity_by_id_model_json2 = ( + volume_attachment_prototype_volume_volume_identity_volume_identity_by_id_model.to_dict() + ) + assert ( + volume_attachment_prototype_volume_volume_identity_volume_identity_by_id_model_json2 + == volume_attachment_prototype_volume_volume_identity_volume_identity_by_id_model_json + ) class TestModel_VolumeAttachmentPrototypeVolumeVolumePrototypeInstanceContextVolumePrototypeInstanceContextVolumeByCapacity: @@ -101834,7 +118324,9 @@ class TestModel_VolumeAttachmentPrototypeVolumeVolumePrototypeInstanceContextVol Test Class for VolumeAttachmentPrototypeVolumeVolumePrototypeInstanceContextVolumePrototypeInstanceContextVolumeByCapacity """ - def test_volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_capacity_serialization(self): + def test_volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_capacity_serialization( + self, + ): """ Test serialization/deserialization for VolumeAttachmentPrototypeVolumeVolumePrototypeInstanceContextVolumePrototypeInstanceContextVolumeByCapacity """ @@ -101848,32 +118340,67 @@ def test_volume_attachment_prototype_volume_volume_prototype_instance_context_vo resource_group_identity_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' encryption_key_identity_model = {} # EncryptionKeyIdentityByCRN - encryption_key_identity_model['crn'] = 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + encryption_key_identity_model['crn'] = ( + 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + ) # Construct a json representation of a VolumeAttachmentPrototypeVolumeVolumePrototypeInstanceContextVolumePrototypeInstanceContextVolumeByCapacity model - volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_capacity_model_json = {} - volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_capacity_model_json['iops'] = 10000 - volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_capacity_model_json['name'] = 'my-volume' - volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_capacity_model_json['profile'] = volume_profile_identity_model - volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_capacity_model_json['resource_group'] = resource_group_identity_model - volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_capacity_model_json['user_tags'] = [] - volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_capacity_model_json['capacity'] = 100 - volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_capacity_model_json['encryption_key'] = encryption_key_identity_model + volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_capacity_model_json = ( + {} + ) + volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_capacity_model_json[ + 'iops' + ] = 10000 + volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_capacity_model_json[ + 'name' + ] = 'my-volume' + volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_capacity_model_json[ + 'profile' + ] = volume_profile_identity_model + volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_capacity_model_json[ + 'resource_group' + ] = resource_group_identity_model + volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_capacity_model_json[ + 'user_tags' + ] = [] + volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_capacity_model_json[ + 'capacity' + ] = 100 + volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_capacity_model_json[ + 'encryption_key' + ] = encryption_key_identity_model # Construct a model instance of VolumeAttachmentPrototypeVolumeVolumePrototypeInstanceContextVolumePrototypeInstanceContextVolumeByCapacity by calling from_dict on the json representation - volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_capacity_model = VolumeAttachmentPrototypeVolumeVolumePrototypeInstanceContextVolumePrototypeInstanceContextVolumeByCapacity.from_dict(volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_capacity_model_json) - assert volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_capacity_model != False + volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_capacity_model = VolumeAttachmentPrototypeVolumeVolumePrototypeInstanceContextVolumePrototypeInstanceContextVolumeByCapacity.from_dict( + volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_capacity_model_json + ) + assert ( + volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_capacity_model + != False + ) # Construct a model instance of VolumeAttachmentPrototypeVolumeVolumePrototypeInstanceContextVolumePrototypeInstanceContextVolumeByCapacity by calling from_dict on the json representation - volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_capacity_model_dict = VolumeAttachmentPrototypeVolumeVolumePrototypeInstanceContextVolumePrototypeInstanceContextVolumeByCapacity.from_dict(volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_capacity_model_json).__dict__ - volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_capacity_model2 = VolumeAttachmentPrototypeVolumeVolumePrototypeInstanceContextVolumePrototypeInstanceContextVolumeByCapacity(**volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_capacity_model_dict) + volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_capacity_model_dict = VolumeAttachmentPrototypeVolumeVolumePrototypeInstanceContextVolumePrototypeInstanceContextVolumeByCapacity.from_dict( + volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_capacity_model_json + ).__dict__ + volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_capacity_model2 = VolumeAttachmentPrototypeVolumeVolumePrototypeInstanceContextVolumePrototypeInstanceContextVolumeByCapacity( + **volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_capacity_model_dict + ) # Verify the model instances are equivalent - assert volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_capacity_model == volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_capacity_model2 + assert ( + volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_capacity_model + == volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_capacity_model2 + ) # Convert model instance back to dict and verify no loss of data - volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_capacity_model_json2 = volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_capacity_model.to_dict() - assert volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_capacity_model_json2 == volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_capacity_model_json + volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_capacity_model_json2 = ( + volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_capacity_model.to_dict() + ) + assert ( + volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_capacity_model_json2 + == volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_capacity_model_json + ) class TestModel_VolumeAttachmentPrototypeVolumeVolumePrototypeInstanceContextVolumePrototypeInstanceContextVolumeBySourceSnapshot: @@ -101881,7 +118408,9 @@ class TestModel_VolumeAttachmentPrototypeVolumeVolumePrototypeInstanceContextVol Test Class for VolumeAttachmentPrototypeVolumeVolumePrototypeInstanceContextVolumePrototypeInstanceContextVolumeBySourceSnapshot """ - def test_volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_source_snapshot_serialization(self): + def test_volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_source_snapshot_serialization( + self, + ): """ Test serialization/deserialization for VolumeAttachmentPrototypeVolumeVolumePrototypeInstanceContextVolumePrototypeInstanceContextVolumeBySourceSnapshot """ @@ -101895,36 +118424,73 @@ def test_volume_attachment_prototype_volume_volume_prototype_instance_context_vo resource_group_identity_model['id'] = 'fee82deba12e4c0fb69c3b09d1f12345' encryption_key_identity_model = {} # EncryptionKeyIdentityByCRN - encryption_key_identity_model['crn'] = 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + encryption_key_identity_model['crn'] = ( + 'crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179' + ) snapshot_identity_model = {} # SnapshotIdentityById snapshot_identity_model['id'] = 'r134-f6bfa329-0e36-433f-a3bb-0df632e79263' # Construct a json representation of a VolumeAttachmentPrototypeVolumeVolumePrototypeInstanceContextVolumePrototypeInstanceContextVolumeBySourceSnapshot model - volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_source_snapshot_model_json = {} - volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_source_snapshot_model_json['iops'] = 10000 - volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_source_snapshot_model_json['name'] = 'my-volume' - volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_source_snapshot_model_json['profile'] = volume_profile_identity_model - volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_source_snapshot_model_json['resource_group'] = resource_group_identity_model - volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_source_snapshot_model_json['user_tags'] = [] - volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_source_snapshot_model_json['capacity'] = 100 - volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_source_snapshot_model_json['encryption_key'] = encryption_key_identity_model - volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_source_snapshot_model_json['source_snapshot'] = snapshot_identity_model + volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_source_snapshot_model_json = ( + {} + ) + volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_source_snapshot_model_json[ + 'iops' + ] = 10000 + volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_source_snapshot_model_json[ + 'name' + ] = 'my-volume' + volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_source_snapshot_model_json[ + 'profile' + ] = volume_profile_identity_model + volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_source_snapshot_model_json[ + 'resource_group' + ] = resource_group_identity_model + volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_source_snapshot_model_json[ + 'user_tags' + ] = [] + volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_source_snapshot_model_json[ + 'capacity' + ] = 100 + volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_source_snapshot_model_json[ + 'encryption_key' + ] = encryption_key_identity_model + volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_source_snapshot_model_json[ + 'source_snapshot' + ] = snapshot_identity_model # Construct a model instance of VolumeAttachmentPrototypeVolumeVolumePrototypeInstanceContextVolumePrototypeInstanceContextVolumeBySourceSnapshot by calling from_dict on the json representation - volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_source_snapshot_model = VolumeAttachmentPrototypeVolumeVolumePrototypeInstanceContextVolumePrototypeInstanceContextVolumeBySourceSnapshot.from_dict(volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_source_snapshot_model_json) - assert volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_source_snapshot_model != False + volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_source_snapshot_model = VolumeAttachmentPrototypeVolumeVolumePrototypeInstanceContextVolumePrototypeInstanceContextVolumeBySourceSnapshot.from_dict( + volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_source_snapshot_model_json + ) + assert ( + volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_source_snapshot_model + != False + ) # Construct a model instance of VolumeAttachmentPrototypeVolumeVolumePrototypeInstanceContextVolumePrototypeInstanceContextVolumeBySourceSnapshot by calling from_dict on the json representation - volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_source_snapshot_model_dict = VolumeAttachmentPrototypeVolumeVolumePrototypeInstanceContextVolumePrototypeInstanceContextVolumeBySourceSnapshot.from_dict(volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_source_snapshot_model_json).__dict__ - volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_source_snapshot_model2 = VolumeAttachmentPrototypeVolumeVolumePrototypeInstanceContextVolumePrototypeInstanceContextVolumeBySourceSnapshot(**volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_source_snapshot_model_dict) + volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_source_snapshot_model_dict = VolumeAttachmentPrototypeVolumeVolumePrototypeInstanceContextVolumePrototypeInstanceContextVolumeBySourceSnapshot.from_dict( + volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_source_snapshot_model_json + ).__dict__ + volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_source_snapshot_model2 = VolumeAttachmentPrototypeVolumeVolumePrototypeInstanceContextVolumePrototypeInstanceContextVolumeBySourceSnapshot( + **volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_source_snapshot_model_dict + ) # Verify the model instances are equivalent - assert volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_source_snapshot_model == volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_source_snapshot_model2 + assert ( + volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_source_snapshot_model + == volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_source_snapshot_model2 + ) # Convert model instance back to dict and verify no loss of data - volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_source_snapshot_model_json2 = volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_source_snapshot_model.to_dict() - assert volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_source_snapshot_model_json2 == volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_source_snapshot_model_json + volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_source_snapshot_model_json2 = ( + volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_source_snapshot_model.to_dict() + ) + assert ( + volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_source_snapshot_model_json2 + == volume_attachment_prototype_volume_volume_prototype_instance_context_volume_prototype_instance_context_volume_by_source_snapshot_model_json + ) class TestModel_InstanceGroupManagerActionPrototypeScheduledActionPrototypeByCronSpecByGroup: @@ -101932,36 +118498,66 @@ class TestModel_InstanceGroupManagerActionPrototypeScheduledActionPrototypeByCro Test Class for InstanceGroupManagerActionPrototypeScheduledActionPrototypeByCronSpecByGroup """ - def test_instance_group_manager_action_prototype_scheduled_action_prototype_by_cron_spec_by_group_serialization(self): + def test_instance_group_manager_action_prototype_scheduled_action_prototype_by_cron_spec_by_group_serialization( + self, + ): """ Test serialization/deserialization for InstanceGroupManagerActionPrototypeScheduledActionPrototypeByCronSpecByGroup """ # Construct dict forms of any model objects needed in order to build this model. - instance_group_manager_scheduled_action_group_prototype_model = {} # InstanceGroupManagerScheduledActionGroupPrototype + instance_group_manager_scheduled_action_group_prototype_model = ( + {} + ) # InstanceGroupManagerScheduledActionGroupPrototype instance_group_manager_scheduled_action_group_prototype_model['membership_count'] = 10 # Construct a json representation of a InstanceGroupManagerActionPrototypeScheduledActionPrototypeByCronSpecByGroup model instance_group_manager_action_prototype_scheduled_action_prototype_by_cron_spec_by_group_model_json = {} - instance_group_manager_action_prototype_scheduled_action_prototype_by_cron_spec_by_group_model_json['name'] = 'my-instance-group-manager-action' - instance_group_manager_action_prototype_scheduled_action_prototype_by_cron_spec_by_group_model_json['cron_spec'] = '30 */2 * * 1-5' - instance_group_manager_action_prototype_scheduled_action_prototype_by_cron_spec_by_group_model_json['group'] = instance_group_manager_scheduled_action_group_prototype_model + instance_group_manager_action_prototype_scheduled_action_prototype_by_cron_spec_by_group_model_json['name'] = ( + 'my-instance-group-manager-action' + ) + instance_group_manager_action_prototype_scheduled_action_prototype_by_cron_spec_by_group_model_json[ + 'cron_spec' + ] = '30 */2 * * 1-5' + instance_group_manager_action_prototype_scheduled_action_prototype_by_cron_spec_by_group_model_json['group'] = ( + instance_group_manager_scheduled_action_group_prototype_model + ) # Construct a model instance of InstanceGroupManagerActionPrototypeScheduledActionPrototypeByCronSpecByGroup by calling from_dict on the json representation - instance_group_manager_action_prototype_scheduled_action_prototype_by_cron_spec_by_group_model = InstanceGroupManagerActionPrototypeScheduledActionPrototypeByCronSpecByGroup.from_dict(instance_group_manager_action_prototype_scheduled_action_prototype_by_cron_spec_by_group_model_json) + instance_group_manager_action_prototype_scheduled_action_prototype_by_cron_spec_by_group_model = ( + InstanceGroupManagerActionPrototypeScheduledActionPrototypeByCronSpecByGroup.from_dict( + instance_group_manager_action_prototype_scheduled_action_prototype_by_cron_spec_by_group_model_json + ) + ) assert instance_group_manager_action_prototype_scheduled_action_prototype_by_cron_spec_by_group_model != False # Construct a model instance of InstanceGroupManagerActionPrototypeScheduledActionPrototypeByCronSpecByGroup by calling from_dict on the json representation - instance_group_manager_action_prototype_scheduled_action_prototype_by_cron_spec_by_group_model_dict = InstanceGroupManagerActionPrototypeScheduledActionPrototypeByCronSpecByGroup.from_dict(instance_group_manager_action_prototype_scheduled_action_prototype_by_cron_spec_by_group_model_json).__dict__ - instance_group_manager_action_prototype_scheduled_action_prototype_by_cron_spec_by_group_model2 = InstanceGroupManagerActionPrototypeScheduledActionPrototypeByCronSpecByGroup(**instance_group_manager_action_prototype_scheduled_action_prototype_by_cron_spec_by_group_model_dict) + instance_group_manager_action_prototype_scheduled_action_prototype_by_cron_spec_by_group_model_dict = ( + InstanceGroupManagerActionPrototypeScheduledActionPrototypeByCronSpecByGroup.from_dict( + instance_group_manager_action_prototype_scheduled_action_prototype_by_cron_spec_by_group_model_json + ).__dict__ + ) + instance_group_manager_action_prototype_scheduled_action_prototype_by_cron_spec_by_group_model2 = ( + InstanceGroupManagerActionPrototypeScheduledActionPrototypeByCronSpecByGroup( + **instance_group_manager_action_prototype_scheduled_action_prototype_by_cron_spec_by_group_model_dict + ) + ) # Verify the model instances are equivalent - assert instance_group_manager_action_prototype_scheduled_action_prototype_by_cron_spec_by_group_model == instance_group_manager_action_prototype_scheduled_action_prototype_by_cron_spec_by_group_model2 + assert ( + instance_group_manager_action_prototype_scheduled_action_prototype_by_cron_spec_by_group_model + == instance_group_manager_action_prototype_scheduled_action_prototype_by_cron_spec_by_group_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_group_manager_action_prototype_scheduled_action_prototype_by_cron_spec_by_group_model_json2 = instance_group_manager_action_prototype_scheduled_action_prototype_by_cron_spec_by_group_model.to_dict() - assert instance_group_manager_action_prototype_scheduled_action_prototype_by_cron_spec_by_group_model_json2 == instance_group_manager_action_prototype_scheduled_action_prototype_by_cron_spec_by_group_model_json + instance_group_manager_action_prototype_scheduled_action_prototype_by_cron_spec_by_group_model_json2 = ( + instance_group_manager_action_prototype_scheduled_action_prototype_by_cron_spec_by_group_model.to_dict() + ) + assert ( + instance_group_manager_action_prototype_scheduled_action_prototype_by_cron_spec_by_group_model_json2 + == instance_group_manager_action_prototype_scheduled_action_prototype_by_cron_spec_by_group_model_json + ) class TestModel_InstanceGroupManagerActionPrototypeScheduledActionPrototypeByCronSpecByManager: @@ -101969,38 +118565,68 @@ class TestModel_InstanceGroupManagerActionPrototypeScheduledActionPrototypeByCro Test Class for InstanceGroupManagerActionPrototypeScheduledActionPrototypeByCronSpecByManager """ - def test_instance_group_manager_action_prototype_scheduled_action_prototype_by_cron_spec_by_manager_serialization(self): + def test_instance_group_manager_action_prototype_scheduled_action_prototype_by_cron_spec_by_manager_serialization( + self, + ): """ Test serialization/deserialization for InstanceGroupManagerActionPrototypeScheduledActionPrototypeByCronSpecByManager """ # Construct dict forms of any model objects needed in order to build this model. - instance_group_manager_scheduled_action_manager_prototype_model = {} # InstanceGroupManagerScheduledActionManagerPrototypeAutoScalePrototypeById + instance_group_manager_scheduled_action_manager_prototype_model = ( + {} + ) # InstanceGroupManagerScheduledActionManagerPrototypeAutoScalePrototypeById instance_group_manager_scheduled_action_manager_prototype_model['max_membership_count'] = 10 instance_group_manager_scheduled_action_manager_prototype_model['min_membership_count'] = 10 instance_group_manager_scheduled_action_manager_prototype_model['id'] = '1e09281b-f177-46fb-baf1-bc152b2e391a' # Construct a json representation of a InstanceGroupManagerActionPrototypeScheduledActionPrototypeByCronSpecByManager model instance_group_manager_action_prototype_scheduled_action_prototype_by_cron_spec_by_manager_model_json = {} - instance_group_manager_action_prototype_scheduled_action_prototype_by_cron_spec_by_manager_model_json['name'] = 'my-instance-group-manager-action' - instance_group_manager_action_prototype_scheduled_action_prototype_by_cron_spec_by_manager_model_json['cron_spec'] = '30 */2 * * 1-5' - instance_group_manager_action_prototype_scheduled_action_prototype_by_cron_spec_by_manager_model_json['manager'] = instance_group_manager_scheduled_action_manager_prototype_model + instance_group_manager_action_prototype_scheduled_action_prototype_by_cron_spec_by_manager_model_json[ + 'name' + ] = 'my-instance-group-manager-action' + instance_group_manager_action_prototype_scheduled_action_prototype_by_cron_spec_by_manager_model_json[ + 'cron_spec' + ] = '30 */2 * * 1-5' + instance_group_manager_action_prototype_scheduled_action_prototype_by_cron_spec_by_manager_model_json[ + 'manager' + ] = instance_group_manager_scheduled_action_manager_prototype_model # Construct a model instance of InstanceGroupManagerActionPrototypeScheduledActionPrototypeByCronSpecByManager by calling from_dict on the json representation - instance_group_manager_action_prototype_scheduled_action_prototype_by_cron_spec_by_manager_model = InstanceGroupManagerActionPrototypeScheduledActionPrototypeByCronSpecByManager.from_dict(instance_group_manager_action_prototype_scheduled_action_prototype_by_cron_spec_by_manager_model_json) + instance_group_manager_action_prototype_scheduled_action_prototype_by_cron_spec_by_manager_model = ( + InstanceGroupManagerActionPrototypeScheduledActionPrototypeByCronSpecByManager.from_dict( + instance_group_manager_action_prototype_scheduled_action_prototype_by_cron_spec_by_manager_model_json + ) + ) assert instance_group_manager_action_prototype_scheduled_action_prototype_by_cron_spec_by_manager_model != False # Construct a model instance of InstanceGroupManagerActionPrototypeScheduledActionPrototypeByCronSpecByManager by calling from_dict on the json representation - instance_group_manager_action_prototype_scheduled_action_prototype_by_cron_spec_by_manager_model_dict = InstanceGroupManagerActionPrototypeScheduledActionPrototypeByCronSpecByManager.from_dict(instance_group_manager_action_prototype_scheduled_action_prototype_by_cron_spec_by_manager_model_json).__dict__ - instance_group_manager_action_prototype_scheduled_action_prototype_by_cron_spec_by_manager_model2 = InstanceGroupManagerActionPrototypeScheduledActionPrototypeByCronSpecByManager(**instance_group_manager_action_prototype_scheduled_action_prototype_by_cron_spec_by_manager_model_dict) + instance_group_manager_action_prototype_scheduled_action_prototype_by_cron_spec_by_manager_model_dict = ( + InstanceGroupManagerActionPrototypeScheduledActionPrototypeByCronSpecByManager.from_dict( + instance_group_manager_action_prototype_scheduled_action_prototype_by_cron_spec_by_manager_model_json + ).__dict__ + ) + instance_group_manager_action_prototype_scheduled_action_prototype_by_cron_spec_by_manager_model2 = ( + InstanceGroupManagerActionPrototypeScheduledActionPrototypeByCronSpecByManager( + **instance_group_manager_action_prototype_scheduled_action_prototype_by_cron_spec_by_manager_model_dict + ) + ) # Verify the model instances are equivalent - assert instance_group_manager_action_prototype_scheduled_action_prototype_by_cron_spec_by_manager_model == instance_group_manager_action_prototype_scheduled_action_prototype_by_cron_spec_by_manager_model2 + assert ( + instance_group_manager_action_prototype_scheduled_action_prototype_by_cron_spec_by_manager_model + == instance_group_manager_action_prototype_scheduled_action_prototype_by_cron_spec_by_manager_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_group_manager_action_prototype_scheduled_action_prototype_by_cron_spec_by_manager_model_json2 = instance_group_manager_action_prototype_scheduled_action_prototype_by_cron_spec_by_manager_model.to_dict() - assert instance_group_manager_action_prototype_scheduled_action_prototype_by_cron_spec_by_manager_model_json2 == instance_group_manager_action_prototype_scheduled_action_prototype_by_cron_spec_by_manager_model_json + instance_group_manager_action_prototype_scheduled_action_prototype_by_cron_spec_by_manager_model_json2 = ( + instance_group_manager_action_prototype_scheduled_action_prototype_by_cron_spec_by_manager_model.to_dict() + ) + assert ( + instance_group_manager_action_prototype_scheduled_action_prototype_by_cron_spec_by_manager_model_json2 + == instance_group_manager_action_prototype_scheduled_action_prototype_by_cron_spec_by_manager_model_json + ) class TestModel_InstanceGroupManagerActionPrototypeScheduledActionPrototypeByRunAtByGroup: @@ -102015,29 +118641,57 @@ def test_instance_group_manager_action_prototype_scheduled_action_prototype_by_r # Construct dict forms of any model objects needed in order to build this model. - instance_group_manager_scheduled_action_group_prototype_model = {} # InstanceGroupManagerScheduledActionGroupPrototype + instance_group_manager_scheduled_action_group_prototype_model = ( + {} + ) # InstanceGroupManagerScheduledActionGroupPrototype instance_group_manager_scheduled_action_group_prototype_model['membership_count'] = 10 # Construct a json representation of a InstanceGroupManagerActionPrototypeScheduledActionPrototypeByRunAtByGroup model instance_group_manager_action_prototype_scheduled_action_prototype_by_run_at_by_group_model_json = {} - instance_group_manager_action_prototype_scheduled_action_prototype_by_run_at_by_group_model_json['name'] = 'my-instance-group-manager-action' - instance_group_manager_action_prototype_scheduled_action_prototype_by_run_at_by_group_model_json['run_at'] = '2019-01-01T12:00:00Z' - instance_group_manager_action_prototype_scheduled_action_prototype_by_run_at_by_group_model_json['group'] = instance_group_manager_scheduled_action_group_prototype_model + instance_group_manager_action_prototype_scheduled_action_prototype_by_run_at_by_group_model_json['name'] = ( + 'my-instance-group-manager-action' + ) + instance_group_manager_action_prototype_scheduled_action_prototype_by_run_at_by_group_model_json['run_at'] = ( + '2019-01-01T12:00:00Z' + ) + instance_group_manager_action_prototype_scheduled_action_prototype_by_run_at_by_group_model_json['group'] = ( + instance_group_manager_scheduled_action_group_prototype_model + ) # Construct a model instance of InstanceGroupManagerActionPrototypeScheduledActionPrototypeByRunAtByGroup by calling from_dict on the json representation - instance_group_manager_action_prototype_scheduled_action_prototype_by_run_at_by_group_model = InstanceGroupManagerActionPrototypeScheduledActionPrototypeByRunAtByGroup.from_dict(instance_group_manager_action_prototype_scheduled_action_prototype_by_run_at_by_group_model_json) + instance_group_manager_action_prototype_scheduled_action_prototype_by_run_at_by_group_model = ( + InstanceGroupManagerActionPrototypeScheduledActionPrototypeByRunAtByGroup.from_dict( + instance_group_manager_action_prototype_scheduled_action_prototype_by_run_at_by_group_model_json + ) + ) assert instance_group_manager_action_prototype_scheduled_action_prototype_by_run_at_by_group_model != False # Construct a model instance of InstanceGroupManagerActionPrototypeScheduledActionPrototypeByRunAtByGroup by calling from_dict on the json representation - instance_group_manager_action_prototype_scheduled_action_prototype_by_run_at_by_group_model_dict = InstanceGroupManagerActionPrototypeScheduledActionPrototypeByRunAtByGroup.from_dict(instance_group_manager_action_prototype_scheduled_action_prototype_by_run_at_by_group_model_json).__dict__ - instance_group_manager_action_prototype_scheduled_action_prototype_by_run_at_by_group_model2 = InstanceGroupManagerActionPrototypeScheduledActionPrototypeByRunAtByGroup(**instance_group_manager_action_prototype_scheduled_action_prototype_by_run_at_by_group_model_dict) + instance_group_manager_action_prototype_scheduled_action_prototype_by_run_at_by_group_model_dict = ( + InstanceGroupManagerActionPrototypeScheduledActionPrototypeByRunAtByGroup.from_dict( + instance_group_manager_action_prototype_scheduled_action_prototype_by_run_at_by_group_model_json + ).__dict__ + ) + instance_group_manager_action_prototype_scheduled_action_prototype_by_run_at_by_group_model2 = ( + InstanceGroupManagerActionPrototypeScheduledActionPrototypeByRunAtByGroup( + **instance_group_manager_action_prototype_scheduled_action_prototype_by_run_at_by_group_model_dict + ) + ) # Verify the model instances are equivalent - assert instance_group_manager_action_prototype_scheduled_action_prototype_by_run_at_by_group_model == instance_group_manager_action_prototype_scheduled_action_prototype_by_run_at_by_group_model2 + assert ( + instance_group_manager_action_prototype_scheduled_action_prototype_by_run_at_by_group_model + == instance_group_manager_action_prototype_scheduled_action_prototype_by_run_at_by_group_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_group_manager_action_prototype_scheduled_action_prototype_by_run_at_by_group_model_json2 = instance_group_manager_action_prototype_scheduled_action_prototype_by_run_at_by_group_model.to_dict() - assert instance_group_manager_action_prototype_scheduled_action_prototype_by_run_at_by_group_model_json2 == instance_group_manager_action_prototype_scheduled_action_prototype_by_run_at_by_group_model_json + instance_group_manager_action_prototype_scheduled_action_prototype_by_run_at_by_group_model_json2 = ( + instance_group_manager_action_prototype_scheduled_action_prototype_by_run_at_by_group_model.to_dict() + ) + assert ( + instance_group_manager_action_prototype_scheduled_action_prototype_by_run_at_by_group_model_json2 + == instance_group_manager_action_prototype_scheduled_action_prototype_by_run_at_by_group_model_json + ) class TestModel_InstanceGroupManagerActionPrototypeScheduledActionPrototypeByRunAtByManager: @@ -102045,38 +118699,68 @@ class TestModel_InstanceGroupManagerActionPrototypeScheduledActionPrototypeByRun Test Class for InstanceGroupManagerActionPrototypeScheduledActionPrototypeByRunAtByManager """ - def test_instance_group_manager_action_prototype_scheduled_action_prototype_by_run_at_by_manager_serialization(self): + def test_instance_group_manager_action_prototype_scheduled_action_prototype_by_run_at_by_manager_serialization( + self, + ): """ Test serialization/deserialization for InstanceGroupManagerActionPrototypeScheduledActionPrototypeByRunAtByManager """ # Construct dict forms of any model objects needed in order to build this model. - instance_group_manager_scheduled_action_manager_prototype_model = {} # InstanceGroupManagerScheduledActionManagerPrototypeAutoScalePrototypeById + instance_group_manager_scheduled_action_manager_prototype_model = ( + {} + ) # InstanceGroupManagerScheduledActionManagerPrototypeAutoScalePrototypeById instance_group_manager_scheduled_action_manager_prototype_model['max_membership_count'] = 10 instance_group_manager_scheduled_action_manager_prototype_model['min_membership_count'] = 10 instance_group_manager_scheduled_action_manager_prototype_model['id'] = '1e09281b-f177-46fb-baf1-bc152b2e391a' # Construct a json representation of a InstanceGroupManagerActionPrototypeScheduledActionPrototypeByRunAtByManager model instance_group_manager_action_prototype_scheduled_action_prototype_by_run_at_by_manager_model_json = {} - instance_group_manager_action_prototype_scheduled_action_prototype_by_run_at_by_manager_model_json['name'] = 'my-instance-group-manager-action' - instance_group_manager_action_prototype_scheduled_action_prototype_by_run_at_by_manager_model_json['run_at'] = '2019-01-01T12:00:00Z' - instance_group_manager_action_prototype_scheduled_action_prototype_by_run_at_by_manager_model_json['manager'] = instance_group_manager_scheduled_action_manager_prototype_model + instance_group_manager_action_prototype_scheduled_action_prototype_by_run_at_by_manager_model_json['name'] = ( + 'my-instance-group-manager-action' + ) + instance_group_manager_action_prototype_scheduled_action_prototype_by_run_at_by_manager_model_json['run_at'] = ( + '2019-01-01T12:00:00Z' + ) + instance_group_manager_action_prototype_scheduled_action_prototype_by_run_at_by_manager_model_json[ + 'manager' + ] = instance_group_manager_scheduled_action_manager_prototype_model # Construct a model instance of InstanceGroupManagerActionPrototypeScheduledActionPrototypeByRunAtByManager by calling from_dict on the json representation - instance_group_manager_action_prototype_scheduled_action_prototype_by_run_at_by_manager_model = InstanceGroupManagerActionPrototypeScheduledActionPrototypeByRunAtByManager.from_dict(instance_group_manager_action_prototype_scheduled_action_prototype_by_run_at_by_manager_model_json) + instance_group_manager_action_prototype_scheduled_action_prototype_by_run_at_by_manager_model = ( + InstanceGroupManagerActionPrototypeScheduledActionPrototypeByRunAtByManager.from_dict( + instance_group_manager_action_prototype_scheduled_action_prototype_by_run_at_by_manager_model_json + ) + ) assert instance_group_manager_action_prototype_scheduled_action_prototype_by_run_at_by_manager_model != False # Construct a model instance of InstanceGroupManagerActionPrototypeScheduledActionPrototypeByRunAtByManager by calling from_dict on the json representation - instance_group_manager_action_prototype_scheduled_action_prototype_by_run_at_by_manager_model_dict = InstanceGroupManagerActionPrototypeScheduledActionPrototypeByRunAtByManager.from_dict(instance_group_manager_action_prototype_scheduled_action_prototype_by_run_at_by_manager_model_json).__dict__ - instance_group_manager_action_prototype_scheduled_action_prototype_by_run_at_by_manager_model2 = InstanceGroupManagerActionPrototypeScheduledActionPrototypeByRunAtByManager(**instance_group_manager_action_prototype_scheduled_action_prototype_by_run_at_by_manager_model_dict) + instance_group_manager_action_prototype_scheduled_action_prototype_by_run_at_by_manager_model_dict = ( + InstanceGroupManagerActionPrototypeScheduledActionPrototypeByRunAtByManager.from_dict( + instance_group_manager_action_prototype_scheduled_action_prototype_by_run_at_by_manager_model_json + ).__dict__ + ) + instance_group_manager_action_prototype_scheduled_action_prototype_by_run_at_by_manager_model2 = ( + InstanceGroupManagerActionPrototypeScheduledActionPrototypeByRunAtByManager( + **instance_group_manager_action_prototype_scheduled_action_prototype_by_run_at_by_manager_model_dict + ) + ) # Verify the model instances are equivalent - assert instance_group_manager_action_prototype_scheduled_action_prototype_by_run_at_by_manager_model == instance_group_manager_action_prototype_scheduled_action_prototype_by_run_at_by_manager_model2 + assert ( + instance_group_manager_action_prototype_scheduled_action_prototype_by_run_at_by_manager_model + == instance_group_manager_action_prototype_scheduled_action_prototype_by_run_at_by_manager_model2 + ) # Convert model instance back to dict and verify no loss of data - instance_group_manager_action_prototype_scheduled_action_prototype_by_run_at_by_manager_model_json2 = instance_group_manager_action_prototype_scheduled_action_prototype_by_run_at_by_manager_model.to_dict() - assert instance_group_manager_action_prototype_scheduled_action_prototype_by_run_at_by_manager_model_json2 == instance_group_manager_action_prototype_scheduled_action_prototype_by_run_at_by_manager_model_json + instance_group_manager_action_prototype_scheduled_action_prototype_by_run_at_by_manager_model_json2 = ( + instance_group_manager_action_prototype_scheduled_action_prototype_by_run_at_by_manager_model.to_dict() + ) + assert ( + instance_group_manager_action_prototype_scheduled_action_prototype_by_run_at_by_manager_model_json2 + == instance_group_manager_action_prototype_scheduled_action_prototype_by_run_at_by_manager_model_json + ) # endregion