twilio.rest.supersim.v1.network_access_profile package

Submodules

twilio.rest.supersim.v1.network_access_profile.network_access_profile_network module

This code was generated by / _ _ _| _ _

(_)/(_)(_|/| |(/_ v1.0.0 / /
class twilio.rest.supersim.v1.network_access_profile.network_access_profile_network.NetworkAccessProfileNetworkContext(version, network_access_profile_sid, sid)[source]

Bases: twilio.base.instance_context.InstanceContext

PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.

delete()[source]

Deletes the NetworkAccessProfileNetworkInstance

Returns:True if delete succeeds, False otherwise
Return type:bool
fetch()[source]

Fetch the NetworkAccessProfileNetworkInstance

Returns:The fetched NetworkAccessProfileNetworkInstance
Return type:twilio.rest.supersim.v1.network_access_profile.network_access_profile_network.NetworkAccessProfileNetworkInstance
class twilio.rest.supersim.v1.network_access_profile.network_access_profile_network.NetworkAccessProfileNetworkInstance(version, payload, network_access_profile_sid, sid=None)[source]

Bases: twilio.base.instance_resource.InstanceResource

PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.

delete()[source]

Deletes the NetworkAccessProfileNetworkInstance

Returns:True if delete succeeds, False otherwise
Return type:bool
fetch()[source]

Fetch the NetworkAccessProfileNetworkInstance

Returns:The fetched NetworkAccessProfileNetworkInstance
Return type:twilio.rest.supersim.v1.network_access_profile.network_access_profile_network.NetworkAccessProfileNetworkInstance
friendly_name
Returns:A human readable identifier of this resource
Return type:unicode
identifiers
Returns:The MCC/MNCs included in the resource
Return type:list[dict]
iso_country
Returns:The ISO country code of the Network resource
Return type:unicode
network_access_profile_sid
Returns:The unique string that identifies the Network Access Profile resource
Return type:unicode
sid
Returns:The unique string that identifies the resource
Return type:unicode
url
Returns:The absolute URL of the resource
Return type:unicode
class twilio.rest.supersim.v1.network_access_profile.network_access_profile_network.NetworkAccessProfileNetworkList(version, network_access_profile_sid)[source]

Bases: twilio.base.list_resource.ListResource

PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.

create(network)[source]

Create the NetworkAccessProfileNetworkInstance

Parameters:network (unicode) – The SID that identifies the Network resource
Returns:The created NetworkAccessProfileNetworkInstance
Return type:twilio.rest.supersim.v1.network_access_profile.network_access_profile_network.NetworkAccessProfileNetworkInstance
get(sid)[source]

Constructs a NetworkAccessProfileNetworkContext

Parameters:sid – The SID of the resource to fetch
Returns:twilio.rest.supersim.v1.network_access_profile.network_access_profile_network.NetworkAccessProfileNetworkContext
Return type:twilio.rest.supersim.v1.network_access_profile.network_access_profile_network.NetworkAccessProfileNetworkContext
get_page(target_url)[source]

Retrieve a specific page of NetworkAccessProfileNetworkInstance records from the API. Request is executed immediately

Parameters:target_url (str) – API-generated URL for the requested results page
Returns:Page of NetworkAccessProfileNetworkInstance
Return type:twilio.rest.supersim.v1.network_access_profile.network_access_profile_network.NetworkAccessProfileNetworkPage
list(limit=None, page_size=None)[source]

Lists NetworkAccessProfileNetworkInstance records from the API as a list. Unlike stream(), this operation is eager and will load limit records into memory before returning.

Parameters:
  • limit (int) – Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit
  • page_size (int) – Number of records to fetch per request, when not set will use the default value of 50 records. If no page_size is defined but a limit is defined, list() will attempt to read the limit with the most efficient page size, i.e. min(limit, 1000)
Returns:

Generator that will yield up to limit results

Return type:

list[twilio.rest.supersim.v1.network_access_profile.network_access_profile_network.NetworkAccessProfileNetworkInstance]

page(page_token=<object object>, page_number=<object object>, page_size=<object object>)[source]

Retrieve a single page of NetworkAccessProfileNetworkInstance records from the API. Request is executed immediately

Parameters:
  • page_token (str) – PageToken provided by the API
  • page_number (int) – Page Number, this value is simply for client state
  • page_size (int) – Number of records to return, defaults to 50
Returns:

Page of NetworkAccessProfileNetworkInstance

Return type:

twilio.rest.supersim.v1.network_access_profile.network_access_profile_network.NetworkAccessProfileNetworkPage

stream(limit=None, page_size=None)[source]

Streams NetworkAccessProfileNetworkInstance records from the API as a generator stream. This operation lazily loads records as efficiently as possible until the limit is reached. The results are returned as a generator, so this operation is memory efficient.

Parameters:
  • limit (int) – Upper limit for the number of records to return. stream() guarantees to never return more than limit. Default is no limit
  • page_size (int) – Number of records to fetch per request, when not set will use the default value of 50 records. If no page_size is defined but a limit is defined, stream() will attempt to read the limit with the most efficient page size, i.e. min(limit, 1000)
Returns:

Generator that will yield up to limit results

Return type:

list[twilio.rest.supersim.v1.network_access_profile.network_access_profile_network.NetworkAccessProfileNetworkInstance]

class twilio.rest.supersim.v1.network_access_profile.network_access_profile_network.NetworkAccessProfileNetworkPage(version, response, solution)[source]

Bases: twilio.base.page.Page

PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.

get_instance(payload)[source]

Build an instance of NetworkAccessProfileNetworkInstance

Parameters:payload (dict) – Payload response from the API
Returns:twilio.rest.supersim.v1.network_access_profile.network_access_profile_network.NetworkAccessProfileNetworkInstance
Return type:twilio.rest.supersim.v1.network_access_profile.network_access_profile_network.NetworkAccessProfileNetworkInstance

Module contents

This code was generated by / _ _ _| _ _

(_)/(_)(_|/| |(/_ v1.0.0 / /
class twilio.rest.supersim.v1.network_access_profile.NetworkAccessProfileContext(version, sid)[source]

Bases: twilio.base.instance_context.InstanceContext

PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.

fetch()[source]

Fetch the NetworkAccessProfileInstance

Returns:The fetched NetworkAccessProfileInstance
Return type:twilio.rest.supersim.v1.network_access_profile.NetworkAccessProfileInstance
networks

Access the networks

Returns:twilio.rest.supersim.v1.network_access_profile.network_access_profile_network.NetworkAccessProfileNetworkList
Return type:twilio.rest.supersim.v1.network_access_profile.network_access_profile_network.NetworkAccessProfileNetworkList
update(unique_name=<object object>)[source]

Update the NetworkAccessProfileInstance

Parameters:unique_name (unicode) – The new unique name of the resource
Returns:The updated NetworkAccessProfileInstance
Return type:twilio.rest.supersim.v1.network_access_profile.NetworkAccessProfileInstance
class twilio.rest.supersim.v1.network_access_profile.NetworkAccessProfileInstance(version, payload, sid=None)[source]

Bases: twilio.base.instance_resource.InstanceResource

PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.

account_sid
Returns:The SID of the Account that the Network Access Profile belongs to
Return type:unicode
date_created
Returns:The ISO 8601 date and time in GMT when the resource was created
Return type:datetime
date_updated
Returns:The ISO 8601 date and time in GMT when the resource was last updated
Return type:datetime
fetch()[source]

Fetch the NetworkAccessProfileInstance

Returns:The fetched NetworkAccessProfileInstance
Return type:twilio.rest.supersim.v1.network_access_profile.NetworkAccessProfileInstance
Returns:The links
Return type:unicode
networks

Access the networks

Returns:twilio.rest.supersim.v1.network_access_profile.network_access_profile_network.NetworkAccessProfileNetworkList
Return type:twilio.rest.supersim.v1.network_access_profile.network_access_profile_network.NetworkAccessProfileNetworkList
sid
Returns:The unique string that identifies the resource
Return type:unicode
unique_name
Returns:An application-defined string that uniquely identifies the resource
Return type:unicode
update(unique_name=<object object>)[source]

Update the NetworkAccessProfileInstance

Parameters:unique_name (unicode) – The new unique name of the resource
Returns:The updated NetworkAccessProfileInstance
Return type:twilio.rest.supersim.v1.network_access_profile.NetworkAccessProfileInstance
url
Returns:The absolute URL of the resource
Return type:unicode
class twilio.rest.supersim.v1.network_access_profile.NetworkAccessProfileList(version)[source]

Bases: twilio.base.list_resource.ListResource

PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.

create(unique_name=<object object>, networks=<object object>)[source]

Create the NetworkAccessProfileInstance

Parameters:
  • unique_name (unicode) – An application-defined string that uniquely identifies the resource
  • networks (list[unicode]) – List of Network SIDs that this Network Access Profile will allow connections to
Returns:

The created NetworkAccessProfileInstance

Return type:

twilio.rest.supersim.v1.network_access_profile.NetworkAccessProfileInstance

get(sid)[source]

Constructs a NetworkAccessProfileContext

Parameters:sid – The SID that identifies the resource to fetch
Returns:twilio.rest.supersim.v1.network_access_profile.NetworkAccessProfileContext
Return type:twilio.rest.supersim.v1.network_access_profile.NetworkAccessProfileContext
get_page(target_url)[source]

Retrieve a specific page of NetworkAccessProfileInstance records from the API. Request is executed immediately

Parameters:target_url (str) – API-generated URL for the requested results page
Returns:Page of NetworkAccessProfileInstance
Return type:twilio.rest.supersim.v1.network_access_profile.NetworkAccessProfilePage
list(limit=None, page_size=None)[source]

Lists NetworkAccessProfileInstance records from the API as a list. Unlike stream(), this operation is eager and will load limit records into memory before returning.

Parameters:
  • limit (int) – Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit
  • page_size (int) – Number of records to fetch per request, when not set will use the default value of 50 records. If no page_size is defined but a limit is defined, list() will attempt to read the limit with the most efficient page size, i.e. min(limit, 1000)
Returns:

Generator that will yield up to limit results

Return type:

list[twilio.rest.supersim.v1.network_access_profile.NetworkAccessProfileInstance]

page(page_token=<object object>, page_number=<object object>, page_size=<object object>)[source]

Retrieve a single page of NetworkAccessProfileInstance records from the API. Request is executed immediately

Parameters:
  • page_token (str) – PageToken provided by the API
  • page_number (int) – Page Number, this value is simply for client state
  • page_size (int) – Number of records to return, defaults to 50
Returns:

Page of NetworkAccessProfileInstance

Return type:

twilio.rest.supersim.v1.network_access_profile.NetworkAccessProfilePage

stream(limit=None, page_size=None)[source]

Streams NetworkAccessProfileInstance records from the API as a generator stream. This operation lazily loads records as efficiently as possible until the limit is reached. The results are returned as a generator, so this operation is memory efficient.

Parameters:
  • limit (int) – Upper limit for the number of records to return. stream() guarantees to never return more than limit. Default is no limit
  • page_size (int) – Number of records to fetch per request, when not set will use the default value of 50 records. If no page_size is defined but a limit is defined, stream() will attempt to read the limit with the most efficient page size, i.e. min(limit, 1000)
Returns:

Generator that will yield up to limit results

Return type:

list[twilio.rest.supersim.v1.network_access_profile.NetworkAccessProfileInstance]

class twilio.rest.supersim.v1.network_access_profile.NetworkAccessProfilePage(version, response, solution)[source]

Bases: twilio.base.page.Page

PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.

get_instance(payload)[source]

Build an instance of NetworkAccessProfileInstance

Parameters:payload (dict) – Payload response from the API
Returns:twilio.rest.supersim.v1.network_access_profile.NetworkAccessProfileInstance
Return type:twilio.rest.supersim.v1.network_access_profile.NetworkAccessProfileInstance