repository_name
stringlengths
5
67
func_path_in_repository
stringlengths
4
234
func_name
stringlengths
0
314
whole_func_string
stringlengths
52
3.87M
language
stringclasses
6 values
func_code_string
stringlengths
52
3.87M
func_documentation_string
stringlengths
1
47.2k
func_code_url
stringlengths
85
339
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/external_ca/apis/certificate_issuers_api.py
CertificateIssuersApi.verify_certificate_issuer
def verify_certificate_issuer(self, certificate_issuer_id, **kwargs): # noqa: E501 """Verify certificate issuer. # noqa: E501 A utility API that can be used to validate the user configuration before activating a certificate issuer. Verifies that the certificate issuer is accessible and can be used to...
python
def verify_certificate_issuer(self, certificate_issuer_id, **kwargs): # noqa: E501 """Verify certificate issuer. # noqa: E501 A utility API that can be used to validate the user configuration before activating a certificate issuer. Verifies that the certificate issuer is accessible and can be used to...
Verify certificate issuer. # noqa: E501 A utility API that can be used to validate the user configuration before activating a certificate issuer. Verifies that the certificate issuer is accessible and can be used to generate certificates by Device Management. <br> **Note:** The API requests the 3rd party CA t...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/external_ca/apis/certificate_issuers_api.py#L527-L547
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/update_service/models/campaign_device_metadata.py
CampaignDeviceMetadata.deployment_state
def deployment_state(self, deployment_state): """ Sets the deployment_state of this CampaignDeviceMetadata. The state of the update campaign on the device :param deployment_state: The deployment_state of this CampaignDeviceMetadata. :type: str """ allowed_values ...
python
def deployment_state(self, deployment_state): """ Sets the deployment_state of this CampaignDeviceMetadata. The state of the update campaign on the device :param deployment_state: The deployment_state of this CampaignDeviceMetadata. :type: str """ allowed_values ...
Sets the deployment_state of this CampaignDeviceMetadata. The state of the update campaign on the device :param deployment_state: The deployment_state of this CampaignDeviceMetadata. :type: str
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/update_service/models/campaign_device_metadata.py#L140-L155
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/certificates/certificates.py
CertificatesAPI.list_certificates
def list_certificates(self, **kwargs): """List certificates registered to organisation. Currently returns partially populated certificates. To obtain the full certificate object: `[get_certificate(certificate_id=cert['id']) for cert in list_certificates]` :param int limit: The number o...
python
def list_certificates(self, **kwargs): """List certificates registered to organisation. Currently returns partially populated certificates. To obtain the full certificate object: `[get_certificate(certificate_id=cert['id']) for cert in list_certificates]` :param int limit: The number o...
List certificates registered to organisation. Currently returns partially populated certificates. To obtain the full certificate object: `[get_certificate(certificate_id=cert['id']) for cert in list_certificates]` :param int limit: The number of certificates to retrieve. :param str ord...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/certificates/certificates.py#L52-L84
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/certificates/certificates.py
CertificatesAPI.get_certificate
def get_certificate(self, certificate_id): """Get certificate by id. :param str certificate_id: The certificate id (Required) :returns: Certificate object :rtype: Certificate """ api = self._get_api(iam.DeveloperApi) certificate = Certificate(api.get_certificate(...
python
def get_certificate(self, certificate_id): """Get certificate by id. :param str certificate_id: The certificate id (Required) :returns: Certificate object :rtype: Certificate """ api = self._get_api(iam.DeveloperApi) certificate = Certificate(api.get_certificate(...
Get certificate by id. :param str certificate_id: The certificate id (Required) :returns: Certificate object :rtype: Certificate
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/certificates/certificates.py#L87-L97
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/certificates/certificates.py
CertificatesAPI.delete_certificate
def delete_certificate(self, certificate_id): """Delete a certificate. :param str certificate_id: The certificate id (Required) :returns: void """ api = self._get_api(iam.DeveloperApi) api.delete_certificate(certificate_id) return
python
def delete_certificate(self, certificate_id): """Delete a certificate. :param str certificate_id: The certificate id (Required) :returns: void """ api = self._get_api(iam.DeveloperApi) api.delete_certificate(certificate_id) return
Delete a certificate. :param str certificate_id: The certificate id (Required) :returns: void
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/certificates/certificates.py#L115-L123
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/certificates/certificates.py
CertificatesAPI.add_certificate
def add_certificate(self, name, type, certificate_data, signature=None, **kwargs): """Add a new BYOC certificate. :param str name: name of the certificate (Required) :param str type: type of the certificate. Values: lwm2m or bootstrap (Required) :param str certificate_data: X509.v3 trus...
python
def add_certificate(self, name, type, certificate_data, signature=None, **kwargs): """Add a new BYOC certificate. :param str name: name of the certificate (Required) :param str type: type of the certificate. Values: lwm2m or bootstrap (Required) :param str certificate_data: X509.v3 trus...
Add a new BYOC certificate. :param str name: name of the certificate (Required) :param str type: type of the certificate. Values: lwm2m or bootstrap (Required) :param str certificate_data: X509.v3 trusted certificate in PEM format. (Required) :param str signature: This parameter has be...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/certificates/certificates.py#L126-L151
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/certificates/certificates.py
CertificatesAPI.add_developer_certificate
def add_developer_certificate(self, name, **kwargs): """Add a new developer certificate. :param str name: name of the certificate (Required) :param str description: Human readable description of this certificate, not longer than 500 characters. :returns: Certificate object ...
python
def add_developer_certificate(self, name, **kwargs): """Add a new developer certificate. :param str name: name of the certificate (Required) :param str description: Human readable description of this certificate, not longer than 500 characters. :returns: Certificate object ...
Add a new developer certificate. :param str name: name of the certificate (Required) :param str description: Human readable description of this certificate, not longer than 500 characters. :returns: Certificate object :rtype: Certificate
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/certificates/certificates.py#L154-L173
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/certificates/certificates.py
CertificatesAPI.update_certificate
def update_certificate(self, certificate_id, **kwargs): """Update a certificate. :param str certificate_id: The certificate id (Required) :param str certificate_data: X509.v3 trusted certificate in PEM format. :param str signature: This parameter has been DEPRECATED in the API and does ...
python
def update_certificate(self, certificate_id, **kwargs): """Update a certificate. :param str certificate_id: The certificate id (Required) :param str certificate_data: X509.v3 trusted certificate in PEM format. :param str signature: This parameter has been DEPRECATED in the API and does ...
Update a certificate. :param str certificate_id: The certificate id (Required) :param str certificate_data: X509.v3 trusted certificate in PEM format. :param str signature: This parameter has been DEPRECATED in the API and does not need to be provided. :param str type: type ...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/certificates/certificates.py#L176-L195
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/certificates/certificates.py
Certificate._create_request_map
def _create_request_map(cls, input_map): """Create request map.""" mapped = super(Certificate, cls)._create_request_map(input_map) if mapped.get('service') == CertificateType.developer: mapped['service'] = CertificateType.bootstrap return mapped
python
def _create_request_map(cls, input_map): """Create request map.""" mapped = super(Certificate, cls)._create_request_map(input_map) if mapped.get('service') == CertificateType.developer: mapped['service'] = CertificateType.bootstrap return mapped
Create request map.
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/certificates/certificates.py#L249-L254
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/certificates/certificates.py
Certificate.type
def type(self): """Certificate type. :return: The type of the certificate. :rtype: CertificateType """ if self._device_mode == 1 or self._type == CertificateType.developer: return CertificateType.developer elif self._type == CertificateType.bootstrap: ...
python
def type(self): """Certificate type. :return: The type of the certificate. :rtype: CertificateType """ if self._device_mode == 1 or self._type == CertificateType.developer: return CertificateType.developer elif self._type == CertificateType.bootstrap: ...
Certificate type. :return: The type of the certificate. :rtype: CertificateType
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/certificates/certificates.py#L321-L332
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/connector_ca/apis/server_credentials_api.py
ServerCredentialsApi.get_all_server_credentials
def get_all_server_credentials(self, authorization, **kwargs): # noqa: E501 """Fetch all (Bootstrap and LwM2M) server credentials. # noqa: E501 This REST API is intended to be used by customers to fetch all (Bootstrap and LwM2M) server credentials that they will need to use with their clients to conn...
python
def get_all_server_credentials(self, authorization, **kwargs): # noqa: E501 """Fetch all (Bootstrap and LwM2M) server credentials. # noqa: E501 This REST API is intended to be used by customers to fetch all (Bootstrap and LwM2M) server credentials that they will need to use with their clients to conn...
Fetch all (Bootstrap and LwM2M) server credentials. # noqa: E501 This REST API is intended to be used by customers to fetch all (Bootstrap and LwM2M) server credentials that they will need to use with their clients to connect to bootstrap or LwM2M server. **Example usage:** curl -X GET \"http://api.us-east-1...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/connector_ca/apis/server_credentials_api.py#L36-L56
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/connector_ca/apis/server_credentials_api.py
ServerCredentialsApi.get_bootstrap_server_credentials
def get_bootstrap_server_credentials(self, authorization, **kwargs): # noqa: E501 """Fetch bootstrap server credentials. # noqa: E501 This REST API is intended to be used by customers to fetch bootstrap server credentials that they will need to use with their clients to connect to bootstrap server. ...
python
def get_bootstrap_server_credentials(self, authorization, **kwargs): # noqa: E501 """Fetch bootstrap server credentials. # noqa: E501 This REST API is intended to be used by customers to fetch bootstrap server credentials that they will need to use with their clients to connect to bootstrap server. ...
Fetch bootstrap server credentials. # noqa: E501 This REST API is intended to be used by customers to fetch bootstrap server credentials that they will need to use with their clients to connect to bootstrap server. **Example usage:** curl -X GET \"http://api.us-east-1.mbedcloud.com/v3/server-credentials/boot...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/connector_ca/apis/server_credentials_api.py#L131-L151
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/connector_ca/apis/server_credentials_api.py
ServerCredentialsApi.get_l2_m2_m_server_credentials
def get_l2_m2_m_server_credentials(self, authorization, **kwargs): # noqa: E501 """Fetch LwM2M server credentials. # noqa: E501 This REST API is intended to be used by customers to fetch LwM2M server credentials that they will need to use with their clients to connect to LwM2M server. **Example usag...
python
def get_l2_m2_m_server_credentials(self, authorization, **kwargs): # noqa: E501 """Fetch LwM2M server credentials. # noqa: E501 This REST API is intended to be used by customers to fetch LwM2M server credentials that they will need to use with their clients to connect to LwM2M server. **Example usag...
Fetch LwM2M server credentials. # noqa: E501 This REST API is intended to be used by customers to fetch LwM2M server credentials that they will need to use with their clients to connect to LwM2M server. **Example usage:** curl -X GET \"http://api.us-east-1.mbedcloud.com/v3/server-credentials/lwm2m\" -H \"acc...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/connector_ca/apis/server_credentials_api.py#L226-L246
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/enrollment/enrollment.py
EnrollmentAPI.add_enrollment_claim
def add_enrollment_claim(self, **kwargs): """Add""" api = self._get_api(enrollment.PublicAPIApi) item = EnrollmentClaim._create_request_map(kwargs) item = models.EnrollmentIdentity(**item) return EnrollmentClaim(api.create_device_enrollment(item))
python
def add_enrollment_claim(self, **kwargs): """Add""" api = self._get_api(enrollment.PublicAPIApi) item = EnrollmentClaim._create_request_map(kwargs) item = models.EnrollmentIdentity(**item) return EnrollmentClaim(api.create_device_enrollment(item))
Add
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/enrollment/enrollment.py#L43-L48
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/enrollment/enrollment.py
EnrollmentAPI.get_enrollment_claim
def get_enrollment_claim(self, id, **kwargs): """Get""" api = self._get_api(enrollment.PublicAPIApi) return EnrollmentClaim(api.get_device_enrollment(id=id))
python
def get_enrollment_claim(self, id, **kwargs): """Get""" api = self._get_api(enrollment.PublicAPIApi) return EnrollmentClaim(api.get_device_enrollment(id=id))
Get
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/enrollment/enrollment.py#L51-L54
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/enrollment/enrollment.py
EnrollmentAPI.list_enrollment_claims
def list_enrollment_claims(self, **kwargs): """List""" kwargs = self._verify_sort_options(kwargs) kwargs = self._verify_filters(kwargs, EnrollmentClaim) api = self._get_api(enrollment.PublicAPIApi) return PaginatedResponse( api.get_device_enrollments, lwra...
python
def list_enrollment_claims(self, **kwargs): """List""" kwargs = self._verify_sort_options(kwargs) kwargs = self._verify_filters(kwargs, EnrollmentClaim) api = self._get_api(enrollment.PublicAPIApi) return PaginatedResponse( api.get_device_enrollments, lwra...
List
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/enrollment/enrollment.py#L57-L66
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/enrollment/enrollment.py
EnrollmentAPI.delete_enrollment_claim
def delete_enrollment_claim(self, id, **kwargs): """Delete""" api = self._get_api(enrollment.PublicAPIApi) return api.delete_device_enrollment(id=id)
python
def delete_enrollment_claim(self, id, **kwargs): """Delete""" api = self._get_api(enrollment.PublicAPIApi) return api.delete_device_enrollment(id=id)
Delete
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/enrollment/enrollment.py#L69-L72
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/connect/notifications.py
handle_channel_message
def handle_channel_message(db, queues, b64decode, notification_object): """Handler for notification channels Given a NotificationMessage object, update internal state, notify any subscribers and resolve async deferred tasks. :param db: :param queues: :param b64decode: :param notification_o...
python
def handle_channel_message(db, queues, b64decode, notification_object): """Handler for notification channels Given a NotificationMessage object, update internal state, notify any subscribers and resolve async deferred tasks. :param db: :param queues: :param b64decode: :param notification_o...
Handler for notification channels Given a NotificationMessage object, update internal state, notify any subscribers and resolve async deferred tasks. :param db: :param queues: :param b64decode: :param notification_object: :return:
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/connect/notifications.py#L167-L207
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/connect/notifications.py
AsyncConsumer.wait
def wait(self, timeout=0): """Blocks until timeout (seconds) or forever :param timeout: time to wait, in seconds :return: """ start_time = time.time() # We return synchronously, so we block in a busy loop waiting for the # request to be done. while not s...
python
def wait(self, timeout=0): """Blocks until timeout (seconds) or forever :param timeout: time to wait, in seconds :return: """ start_time = time.time() # We return synchronously, so we block in a busy loop waiting for the # request to be done. while not s...
Blocks until timeout (seconds) or forever :param timeout: time to wait, in seconds :return:
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/connect/notifications.py#L62-L91
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/connect/notifications.py
AsyncConsumer.check_error
def check_error(self): """Check if the async response is an error. Take care to call `is_done` before calling `error`. Note that the error messages are always encoded as strings. :raises CloudUnhandledError: When not checking `is_done` first :return: status_code, error_msg, pay...
python
def check_error(self): """Check if the async response is an error. Take care to call `is_done` before calling `error`. Note that the error messages are always encoded as strings. :raises CloudUnhandledError: When not checking `is_done` first :return: status_code, error_msg, pay...
Check if the async response is an error. Take care to call `is_done` before calling `error`. Note that the error messages are always encoded as strings. :raises CloudUnhandledError: When not checking `is_done` first :return: status_code, error_msg, payload :rtype: tuple
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/connect/notifications.py#L107-L123
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/connect/notifications.py
AsyncConsumer.error
def error(self): """Check if the async response is an error. Take care to call `is_done` before calling `error`. Note that the error messages are always encoded as strings. :raises CloudUnhandledError: When not checking `is_done` first :return: the error value/payload, if found...
python
def error(self): """Check if the async response is an error. Take care to call `is_done` before calling `error`. Note that the error messages are always encoded as strings. :raises CloudUnhandledError: When not checking `is_done` first :return: the error value/payload, if found...
Check if the async response is an error. Take care to call `is_done` before calling `error`. Note that the error messages are always encoded as strings. :raises CloudUnhandledError: When not checking `is_done` first :return: the error value/payload, if found. :rtype: str
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/connect/notifications.py#L126-L140
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/connect/notifications.py
AsyncConsumer.value
def value(self): """Get the value of the finished async request, if it is available. :raises CloudUnhandledError: When not checking value of `error` or `is_done` first :return: the payload value :rtype: str """ status_code, error_msg, payload = self.check_error() ...
python
def value(self): """Get the value of the finished async request, if it is available. :raises CloudUnhandledError: When not checking value of `error` or `is_done` first :return: the payload value :rtype: str """ status_code, error_msg, payload = self.check_error() ...
Get the value of the finished async request, if it is available. :raises CloudUnhandledError: When not checking value of `error` or `is_done` first :return: the payload value :rtype: str
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/connect/notifications.py#L143-L156
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/connect/notifications.py
NotificationsThread.run
def run(self): """Thread main loop""" retries = 0 try: while not self._stopping: try: data = self.notifications_api.long_poll_notifications() except mds.rest.ApiException as e: # An HTTP 410 can be raised when st...
python
def run(self): """Thread main loop""" retries = 0 try: while not self._stopping: try: data = self.notifications_api.long_poll_notifications() except mds.rest.ApiException as e: # An HTTP 410 can be raised when st...
Thread main loop
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/connect/notifications.py#L230-L257
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/iam/apis/account_admin_api.py
AccountAdminApi.add_api_key_to_groups
def add_api_key_to_groups(self, api_key, body, **kwargs): # noqa: E501 """Add API key to a list of groups. # noqa: E501 An endpoint for adding API key to groups. **Example usage:** `curl -X POST https://api.us-east-1.mbedcloud.com/v3/api-keys/{apikey-id}/groups -d '[0162056a9a1586f30242590700000000...
python
def add_api_key_to_groups(self, api_key, body, **kwargs): # noqa: E501 """Add API key to a list of groups. # noqa: E501 An endpoint for adding API key to groups. **Example usage:** `curl -X POST https://api.us-east-1.mbedcloud.com/v3/api-keys/{apikey-id}/groups -d '[0162056a9a1586f30242590700000000...
Add API key to a list of groups. # noqa: E501 An endpoint for adding API key to groups. **Example usage:** `curl -X POST https://api.us-east-1.mbedcloud.com/v3/api-keys/{apikey-id}/groups -d '[0162056a9a1586f30242590700000000,0117056a9a1586f30242590700000000]' -H 'content-type: application/json' -H 'Authori...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/iam/apis/account_admin_api.py#L36-L57
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/iam/apis/account_admin_api.py
AccountAdminApi.add_certificate
def add_certificate(self, body, **kwargs): # noqa: E501 """Upload a new trusted certificate. # noqa: E501 An endpoint for uploading new trusted certificates. **Example usage:** `curl -X POST https://api.us-east-1.mbedcloud.com/v3/trusted-certificates -d {\"name\": \"myCert1\", \"description\": \"ve...
python
def add_certificate(self, body, **kwargs): # noqa: E501 """Upload a new trusted certificate. # noqa: E501 An endpoint for uploading new trusted certificates. **Example usage:** `curl -X POST https://api.us-east-1.mbedcloud.com/v3/trusted-certificates -d {\"name\": \"myCert1\", \"description\": \"ve...
Upload a new trusted certificate. # noqa: E501 An endpoint for uploading new trusted certificates. **Example usage:** `curl -X POST https://api.us-east-1.mbedcloud.com/v3/trusted-certificates -d {\"name\": \"myCert1\", \"description\": \"very important cert\", \"certificate\": \"certificate_data\", \"servic...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/iam/apis/account_admin_api.py#L143-L163
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/iam/apis/account_admin_api.py
AccountAdminApi.add_subjects_to_group
def add_subjects_to_group(self, group_id, body, **kwargs): # noqa: E501 """Add members to a group. # noqa: E501 An endpoint for adding users and API keys to a group. **Example usage:** `curl -X POST https://api.us-east-1.mbedcloud.com/v3/policy-groups/{group-id} -d '{\"users\": [0162056a9a1586f3024...
python
def add_subjects_to_group(self, group_id, body, **kwargs): # noqa: E501 """Add members to a group. # noqa: E501 An endpoint for adding users and API keys to a group. **Example usage:** `curl -X POST https://api.us-east-1.mbedcloud.com/v3/policy-groups/{group-id} -d '{\"users\": [0162056a9a1586f3024...
Add members to a group. # noqa: E501 An endpoint for adding users and API keys to a group. **Example usage:** `curl -X POST https://api.us-east-1.mbedcloud.com/v3/policy-groups/{group-id} -d '{\"users\": [0162056a9a1586f30242590700000000,0117056a9a1586f30242590700000000]\"}' -H 'content-type: application/js...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/iam/apis/account_admin_api.py#L242-L263
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/iam/apis/account_admin_api.py
AccountAdminApi.add_user_to_groups
def add_user_to_groups(self, user_id, body, **kwargs): # noqa: E501 """Add user to a list of groups. # noqa: E501 An endpoint for adding user to groups. **Example usage:** `curl -X POST https://api.us-east-1.mbedcloud.com/v3/users/{user-id}/groups -d '[0162056a9a1586f30242590700000000,0117056a9a158...
python
def add_user_to_groups(self, user_id, body, **kwargs): # noqa: E501 """Add user to a list of groups. # noqa: E501 An endpoint for adding user to groups. **Example usage:** `curl -X POST https://api.us-east-1.mbedcloud.com/v3/users/{user-id}/groups -d '[0162056a9a1586f30242590700000000,0117056a9a158...
Add user to a list of groups. # noqa: E501 An endpoint for adding user to groups. **Example usage:** `curl -X POST https://api.us-east-1.mbedcloud.com/v3/users/{user-id}/groups -d '[0162056a9a1586f30242590700000000,0117056a9a1586f30242590700000000]' -H 'content-type: application/json' -H 'Authorization: Bea...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/iam/apis/account_admin_api.py#L349-L370
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/iam/apis/account_admin_api.py
AccountAdminApi.create_group
def create_group(self, body, **kwargs): # noqa: E501 """Create a new group. # noqa: E501 An endpoint for creating a new group. **Example usage:** `curl -X POST https://api.us-east-1.mbedcloud.com/v3/policy-groups -d '{\"name\": \"MyGroup1\"}' -H 'content-type: application/json' -H 'Authorization: B...
python
def create_group(self, body, **kwargs): # noqa: E501 """Create a new group. # noqa: E501 An endpoint for creating a new group. **Example usage:** `curl -X POST https://api.us-east-1.mbedcloud.com/v3/policy-groups -d '{\"name\": \"MyGroup1\"}' -H 'content-type: application/json' -H 'Authorization: B...
Create a new group. # noqa: E501 An endpoint for creating a new group. **Example usage:** `curl -X POST https://api.us-east-1.mbedcloud.com/v3/policy-groups -d '{\"name\": \"MyGroup1\"}' -H 'content-type: application/json' -H 'Authorization: Bearer API_KEY'` # noqa: E501 This method makes a synchro...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/iam/apis/account_admin_api.py#L456-L476
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/iam/apis/account_admin_api.py
AccountAdminApi.create_invitation
def create_invitation(self, body, **kwargs): # noqa: E501 """Create a user invitation. # noqa: E501 An endpoint for inviting a new or an existing user to join the account. **Example usage:** `curl -X POST https://api.us-east-1.mbedcloud.com/v3/user-invitations -d {\"email\": \"myemail@company.com\"...
python
def create_invitation(self, body, **kwargs): # noqa: E501 """Create a user invitation. # noqa: E501 An endpoint for inviting a new or an existing user to join the account. **Example usage:** `curl -X POST https://api.us-east-1.mbedcloud.com/v3/user-invitations -d {\"email\": \"myemail@company.com\"...
Create a user invitation. # noqa: E501 An endpoint for inviting a new or an existing user to join the account. **Example usage:** `curl -X POST https://api.us-east-1.mbedcloud.com/v3/user-invitations -d {\"email\": \"myemail@company.com\"} -H 'content-type: application/json' -H 'Authorization: Bearer API_KE...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/iam/apis/account_admin_api.py#L555-L575
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/iam/apis/account_admin_api.py
AccountAdminApi.create_user
def create_user(self, body, **kwargs): # noqa: E501 """Create a new user. # noqa: E501 An endpoint for creating or inviting a new user to the account. In case of invitation email address is used only, other attributes are set in the 2nd step. **Example usage:** `curl -X POST https://api.us-east-1.m...
python
def create_user(self, body, **kwargs): # noqa: E501 """Create a new user. # noqa: E501 An endpoint for creating or inviting a new user to the account. In case of invitation email address is used only, other attributes are set in the 2nd step. **Example usage:** `curl -X POST https://api.us-east-1.m...
Create a new user. # noqa: E501 An endpoint for creating or inviting a new user to the account. In case of invitation email address is used only, other attributes are set in the 2nd step. **Example usage:** `curl -X POST https://api.us-east-1.mbedcloud.com/v3/users?action=invite -d {\"email\": \"myemail@com...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/iam/apis/account_admin_api.py#L654-L675
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/iam/apis/account_admin_api.py
AccountAdminApi.delete_group
def delete_group(self, group_id, **kwargs): # noqa: E501 """Delete a group. # noqa: E501 An endpoint for deleting a group. **Example usage:** `curl -X DELETE https://api.us-east-1.mbedcloud.com/v3/policy-groups/{group-id} -H 'Authorization: Bearer API_KEY'` # noqa: E501 This method makes a...
python
def delete_group(self, group_id, **kwargs): # noqa: E501 """Delete a group. # noqa: E501 An endpoint for deleting a group. **Example usage:** `curl -X DELETE https://api.us-east-1.mbedcloud.com/v3/policy-groups/{group-id} -H 'Authorization: Bearer API_KEY'` # noqa: E501 This method makes a...
Delete a group. # noqa: E501 An endpoint for deleting a group. **Example usage:** `curl -X DELETE https://api.us-east-1.mbedcloud.com/v3/policy-groups/{group-id} -H 'Authorization: Bearer API_KEY'` # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/iam/apis/account_admin_api.py#L757-L777
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/iam/apis/account_admin_api.py
AccountAdminApi.delete_invitation
def delete_invitation(self, invitation_id, **kwargs): # noqa: E501 """Delete a user invitation. # noqa: E501 An endpoint for deleting an active user invitation which has been sent for a new or an existing user to join the account. **Example usage:** `curl -X DELETE https://api.us-east-1.mbedcloud.c...
python
def delete_invitation(self, invitation_id, **kwargs): # noqa: E501 """Delete a user invitation. # noqa: E501 An endpoint for deleting an active user invitation which has been sent for a new or an existing user to join the account. **Example usage:** `curl -X DELETE https://api.us-east-1.mbedcloud.c...
Delete a user invitation. # noqa: E501 An endpoint for deleting an active user invitation which has been sent for a new or an existing user to join the account. **Example usage:** `curl -X DELETE https://api.us-east-1.mbedcloud.com/v3/user-invitations/{invitation-id} -H 'Authorization: Bearer API_KEY'` # n...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/iam/apis/account_admin_api.py#L852-L872
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/iam/apis/account_admin_api.py
AccountAdminApi.delete_user
def delete_user(self, user_id, **kwargs): # noqa: E501 """Delete a user. # noqa: E501 An endpoint for deleting a user. **Example usage:** `curl -X DELETE https://api.us-east-1.mbedcloud.com/v3/users/{user-id} -H 'Authorization: Bearer API_KEY'` # noqa: E501 This method makes a synchronous ...
python
def delete_user(self, user_id, **kwargs): # noqa: E501 """Delete a user. # noqa: E501 An endpoint for deleting a user. **Example usage:** `curl -X DELETE https://api.us-east-1.mbedcloud.com/v3/users/{user-id} -H 'Authorization: Bearer API_KEY'` # noqa: E501 This method makes a synchronous ...
Delete a user. # noqa: E501 An endpoint for deleting a user. **Example usage:** `curl -X DELETE https://api.us-east-1.mbedcloud.com/v3/users/{user-id} -H 'Authorization: Bearer API_KEY'` # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP reque...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/iam/apis/account_admin_api.py#L947-L967
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/iam/apis/account_admin_api.py
AccountAdminApi.get_all_invitations
def get_all_invitations(self, **kwargs): # noqa: E501 """Get the details of all the user invitations. # noqa: E501 An endpoint for retrieving the details of all the active user invitations sent for new or existing users to join the account. **Example usage:** `curl https://api.us-east-1.mbedcloud.c...
python
def get_all_invitations(self, **kwargs): # noqa: E501 """Get the details of all the user invitations. # noqa: E501 An endpoint for retrieving the details of all the active user invitations sent for new or existing users to join the account. **Example usage:** `curl https://api.us-east-1.mbedcloud.c...
Get the details of all the user invitations. # noqa: E501 An endpoint for retrieving the details of all the active user invitations sent for new or existing users to join the account. **Example usage:** `curl https://api.us-east-1.mbedcloud.com/v3/user-invitations -H 'Authorization: Bearer API_KEY'` # noqa...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/iam/apis/account_admin_api.py#L1042-L1064
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/iam/apis/account_admin_api.py
AccountAdminApi.get_all_users
def get_all_users(self, **kwargs): # noqa: E501 """Get the details of all users. # noqa: E501 An endpoint for retrieving the details of all users. **Example usage:** `curl https://api.us-east-1.mbedcloud.com/v3/users -H 'Authorization: Bearer API_KEY'` # noqa: E501 This method makes a sync...
python
def get_all_users(self, **kwargs): # noqa: E501 """Get the details of all users. # noqa: E501 An endpoint for retrieving the details of all users. **Example usage:** `curl https://api.us-east-1.mbedcloud.com/v3/users -H 'Authorization: Bearer API_KEY'` # noqa: E501 This method makes a sync...
Get the details of all users. # noqa: E501 An endpoint for retrieving the details of all users. **Example usage:** `curl https://api.us-east-1.mbedcloud.com/v3/users -H 'Authorization: Bearer API_KEY'` # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchro...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/iam/apis/account_admin_api.py#L1141-L1168
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/iam/apis/account_admin_api.py
AccountAdminApi.get_groups_of_apikey
def get_groups_of_apikey(self, api_key, **kwargs): # noqa: E501 """Get groups of the API key. # noqa: E501 An endpoint for retrieving groups of the API key. **Example usage:** `curl https://api.us-east-1.mbedcloud.com/v3/api-keys/{apikey-id}/groups -H 'Authorization: Bearer API_KEY'` # noqa: E501 ...
python
def get_groups_of_apikey(self, api_key, **kwargs): # noqa: E501 """Get groups of the API key. # noqa: E501 An endpoint for retrieving groups of the API key. **Example usage:** `curl https://api.us-east-1.mbedcloud.com/v3/api-keys/{apikey-id}/groups -H 'Authorization: Bearer API_KEY'` # noqa: E501 ...
Get groups of the API key. # noqa: E501 An endpoint for retrieving groups of the API key. **Example usage:** `curl https://api.us-east-1.mbedcloud.com/v3/api-keys/{apikey-id}/groups -H 'Authorization: Bearer API_KEY'` # noqa: E501 This method makes a synchronous HTTP request by default. To make an ...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/iam/apis/account_admin_api.py#L1260-L1284
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/iam/apis/account_admin_api.py
AccountAdminApi.get_groups_of_user
def get_groups_of_user(self, user_id, **kwargs): # noqa: E501 """Get groups of the user. # noqa: E501 An endpoint for retrieving groups of the user. **Example usage:** `curl https://api.us-east-1.mbedcloud.com/v3/users/{user-id}/groups -H 'Authorization: Bearer API_KEY'` # noqa: E501 This ...
python
def get_groups_of_user(self, user_id, **kwargs): # noqa: E501 """Get groups of the user. # noqa: E501 An endpoint for retrieving groups of the user. **Example usage:** `curl https://api.us-east-1.mbedcloud.com/v3/users/{user-id}/groups -H 'Authorization: Bearer API_KEY'` # noqa: E501 This ...
Get groups of the user. # noqa: E501 An endpoint for retrieving groups of the user. **Example usage:** `curl https://api.us-east-1.mbedcloud.com/v3/users/{user-id}/groups -H 'Authorization: Bearer API_KEY'` # noqa: E501 This method makes a synchronous HTTP request by default. To make an asy...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/iam/apis/account_admin_api.py#L1371-L1395
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/iam/apis/account_admin_api.py
AccountAdminApi.get_invitation
def get_invitation(self, invitation_id, **kwargs): # noqa: E501 """Details of a user invitation. # noqa: E501 An endpoint for retrieving the details of an active user invitation sent for a new or an existing user to join the account. **Example usage:** `curl https://api.us-east-1.mbedcloud.com/v3/u...
python
def get_invitation(self, invitation_id, **kwargs): # noqa: E501 """Details of a user invitation. # noqa: E501 An endpoint for retrieving the details of an active user invitation sent for a new or an existing user to join the account. **Example usage:** `curl https://api.us-east-1.mbedcloud.com/v3/u...
Details of a user invitation. # noqa: E501 An endpoint for retrieving the details of an active user invitation sent for a new or an existing user to join the account. **Example usage:** `curl https://api.us-east-1.mbedcloud.com/v3/user-invitations/{invitation-id} -H 'Authorization: Bearer API_KEY'` # noqa:...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/iam/apis/account_admin_api.py#L1482-L1502
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/iam/apis/account_admin_api.py
AccountAdminApi.get_users_of_group
def get_users_of_group(self, group_id, **kwargs): # noqa: E501 """Get users of a group. # noqa: E501 An endpoint for listing the users of a group with details. **Example usage:** `curl https://api.us-east-1.mbedcloud.com/v3/policy-groups/{group-id}/users -H 'Authorization: Bearer API_KEY'` # noqa:...
python
def get_users_of_group(self, group_id, **kwargs): # noqa: E501 """Get users of a group. # noqa: E501 An endpoint for listing the users of a group with details. **Example usage:** `curl https://api.us-east-1.mbedcloud.com/v3/policy-groups/{group-id}/users -H 'Authorization: Bearer API_KEY'` # noqa:...
Get users of a group. # noqa: E501 An endpoint for listing the users of a group with details. **Example usage:** `curl https://api.us-east-1.mbedcloud.com/v3/policy-groups/{group-id}/users -H 'Authorization: Bearer API_KEY'` # noqa: E501 This method makes a synchronous HTTP request by default. To m...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/iam/apis/account_admin_api.py#L1672-L1699
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/iam/apis/account_admin_api.py
AccountAdminApi.remove_api_key_from_groups
def remove_api_key_from_groups(self, api_key, body, **kwargs): # noqa: E501 """Remove API key from groups. # noqa: E501 An endpoint for removing API key from groups. **Example usage:** `curl -X DELETE https://api.us-east-1.mbedcloud.com/v3/api-keys/{apikey-id}/groups -d '[0162056a9a1586f30242590700...
python
def remove_api_key_from_groups(self, api_key, body, **kwargs): # noqa: E501 """Remove API key from groups. # noqa: E501 An endpoint for removing API key from groups. **Example usage:** `curl -X DELETE https://api.us-east-1.mbedcloud.com/v3/api-keys/{apikey-id}/groups -d '[0162056a9a1586f30242590700...
Remove API key from groups. # noqa: E501 An endpoint for removing API key from groups. **Example usage:** `curl -X DELETE https://api.us-east-1.mbedcloud.com/v3/api-keys/{apikey-id}/groups -d '[0162056a9a1586f30242590700000000,0117056a9a1586f30242590700000000]' -H 'content-type: application/json' -H 'Author...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/iam/apis/account_admin_api.py#L1795-L1816
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/iam/apis/account_admin_api.py
AccountAdminApi.remove_user_from_groups
def remove_user_from_groups(self, user_id, body, **kwargs): # noqa: E501 """Remove user from groups. # noqa: E501 An endpoint for removing user from groups. **Example usage:** `curl -X DELETE https://api.us-east-1.mbedcloud.com/v3/users/{user-id}/groups -d '[0162056a9a1586f30242590700000000,0117056...
python
def remove_user_from_groups(self, user_id, body, **kwargs): # noqa: E501 """Remove user from groups. # noqa: E501 An endpoint for removing user from groups. **Example usage:** `curl -X DELETE https://api.us-east-1.mbedcloud.com/v3/users/{user-id}/groups -d '[0162056a9a1586f30242590700000000,0117056...
Remove user from groups. # noqa: E501 An endpoint for removing user from groups. **Example usage:** `curl -X DELETE https://api.us-east-1.mbedcloud.com/v3/users/{user-id}/groups -d '[0162056a9a1586f30242590700000000,0117056a9a1586f30242590700000000]' -H 'content-type: application/json' -H 'Authorization: Be...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/iam/apis/account_admin_api.py#L1902-L1923
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/iam/apis/account_admin_api.py
AccountAdminApi.remove_users_from_group
def remove_users_from_group(self, group_id, body, **kwargs): # noqa: E501 """Remove users from a group. # noqa: E501 An endpoint for removing users from groups. **Example usage:** `curl -X DELETE https://api.us-east-1.mbedcloud.com/v3/policy-groups/{group-id}/users -d '[0162056a9a1586f3024259070000...
python
def remove_users_from_group(self, group_id, body, **kwargs): # noqa: E501 """Remove users from a group. # noqa: E501 An endpoint for removing users from groups. **Example usage:** `curl -X DELETE https://api.us-east-1.mbedcloud.com/v3/policy-groups/{group-id}/users -d '[0162056a9a1586f3024259070000...
Remove users from a group. # noqa: E501 An endpoint for removing users from groups. **Example usage:** `curl -X DELETE https://api.us-east-1.mbedcloud.com/v3/policy-groups/{group-id}/users -d '[0162056a9a1586f30242590700000000,0117056a9a1586f30242590700000000]' -H 'content-type: application/json' -H 'Author...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/iam/apis/account_admin_api.py#L2009-L2030
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/iam/apis/account_admin_api.py
AccountAdminApi.update_group_name
def update_group_name(self, group_id, body, **kwargs): # noqa: E501 """Update the group name. # noqa: E501 An endpoint for updating a group name. **Example usage:** `curl -X PUT https://api.us-east-1.mbedcloud.com/v3/policy-groups/{group-id} -d '{\"name\": \"TestGroup2\"}' -H 'content-type: applica...
python
def update_group_name(self, group_id, body, **kwargs): # noqa: E501 """Update the group name. # noqa: E501 An endpoint for updating a group name. **Example usage:** `curl -X PUT https://api.us-east-1.mbedcloud.com/v3/policy-groups/{group-id} -d '{\"name\": \"TestGroup2\"}' -H 'content-type: applica...
Update the group name. # noqa: E501 An endpoint for updating a group name. **Example usage:** `curl -X PUT https://api.us-east-1.mbedcloud.com/v3/policy-groups/{group-id} -d '{\"name\": \"TestGroup2\"}' -H 'content-type: application/json' -H 'Authorization: Bearer API_KEY'` # noqa: E501 This method...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/iam/apis/account_admin_api.py#L2116-L2137
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/iam/apis/account_admin_api.py
AccountAdminApi.update_my_account
def update_my_account(self, body, **kwargs): # noqa: E501 """Updates attributes of the account. # noqa: E501 An endpoint for updating the account. **Example usage:** `curl -X PUT https://api.us-east-1.mbedcloud.com/v3/accounts/me -d '{\"phone_number\": \"12345678\"}' -H 'content-type: application/j...
python
def update_my_account(self, body, **kwargs): # noqa: E501 """Updates attributes of the account. # noqa: E501 An endpoint for updating the account. **Example usage:** `curl -X PUT https://api.us-east-1.mbedcloud.com/v3/accounts/me -d '{\"phone_number\": \"12345678\"}' -H 'content-type: application/j...
Updates attributes of the account. # noqa: E501 An endpoint for updating the account. **Example usage:** `curl -X PUT https://api.us-east-1.mbedcloud.com/v3/accounts/me -d '{\"phone_number\": \"12345678\"}' -H 'content-type: application/json' -H 'Authorization: Bearer API_KEY'` # noqa: E501 This me...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/iam/apis/account_admin_api.py#L2223-L2243
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/iam/apis/account_admin_api.py
AccountAdminApi.update_user
def update_user(self, user_id, body, **kwargs): # noqa: E501 """Update user details. # noqa: E501 An endpoint for updating user details. **Example usage:** `curl -X PUT https://api.us-east-1.mbedcloud.com/v3/users/{user-id} -d '{\"username\": \"myusername\"}' -H 'content-type: application/json' -H ...
python
def update_user(self, user_id, body, **kwargs): # noqa: E501 """Update user details. # noqa: E501 An endpoint for updating user details. **Example usage:** `curl -X PUT https://api.us-east-1.mbedcloud.com/v3/users/{user-id} -d '{\"username\": \"myusername\"}' -H 'content-type: application/json' -H ...
Update user details. # noqa: E501 An endpoint for updating user details. **Example usage:** `curl -X PUT https://api.us-east-1.mbedcloud.com/v3/users/{user-id} -d '{\"username\": \"myusername\"}' -H 'content-type: application/json' -H 'Authorization: Bearer API_KEY'` # noqa: E501 This method makes ...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/iam/apis/account_admin_api.py#L2322-L2343
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/connect/resource.py
Resource.to_dict
def to_dict(self): """Return dictionary of object.""" return { 'observable': self.observable, 'path': self.path, 'type': self.type, 'content_type': self.content_type }
python
def to_dict(self): """Return dictionary of object.""" return { 'observable': self.observable, 'path': self.path, 'type': self.type, 'content_type': self.content_type }
Return dictionary of object.
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/connect/resource.py#L80-L87
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/external_ca/models/create_certificate_issuer_config.py
CreateCertificateIssuerConfig.certificate_issuer_id
def certificate_issuer_id(self, certificate_issuer_id): """ Sets the certificate_issuer_id of this CreateCertificateIssuerConfig. The ID of the certificate issuer. :param certificate_issuer_id: The certificate_issuer_id of this CreateCertificateIssuerConfig. :type: str ...
python
def certificate_issuer_id(self, certificate_issuer_id): """ Sets the certificate_issuer_id of this CreateCertificateIssuerConfig. The ID of the certificate issuer. :param certificate_issuer_id: The certificate_issuer_id of this CreateCertificateIssuerConfig. :type: str ...
Sets the certificate_issuer_id of this CreateCertificateIssuerConfig. The ID of the certificate issuer. :param certificate_issuer_id: The certificate_issuer_id of this CreateCertificateIssuerConfig. :type: str
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/external_ca/models/create_certificate_issuer_config.py#L64-L77
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/external_ca/models/create_certificate_issuer_config.py
CreateCertificateIssuerConfig.reference
def reference(self, reference): """ Sets the reference of this CreateCertificateIssuerConfig. The certificate name, as created in the factory, to which the certificate issuer configuration applies. The following names are reserved and cannot be configured: LwM2M, BOOTSTRAP. :param refe...
python
def reference(self, reference): """ Sets the reference of this CreateCertificateIssuerConfig. The certificate name, as created in the factory, to which the certificate issuer configuration applies. The following names are reserved and cannot be configured: LwM2M, BOOTSTRAP. :param refe...
Sets the reference of this CreateCertificateIssuerConfig. The certificate name, as created in the factory, to which the certificate issuer configuration applies. The following names are reserved and cannot be configured: LwM2M, BOOTSTRAP. :param reference: The reference of this CreateCertificateIssuer...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/external_ca/models/create_certificate_issuer_config.py#L91-L106
ARMmbed/mbed-cloud-sdk-python
examples/connect/webhook_ngrok.py
my_application
def my_application(api): """An example application. - Registers a webhook with mbed cloud services - Requests the value of a resource - Prints the value when it arrives """ device = api.list_connected_devices().first() print('using device #', device.id) api.delete_device_subscriptions(d...
python
def my_application(api): """An example application. - Registers a webhook with mbed cloud services - Requests the value of a resource - Prints the value when it arrives """ device = api.list_connected_devices().first() print('using device #', device.id) api.delete_device_subscriptions(d...
An example application. - Registers a webhook with mbed cloud services - Requests the value of a resource - Prints the value when it arrives
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/examples/connect/webhook_ngrok.py#L82-L107
ARMmbed/mbed-cloud-sdk-python
examples/connect/webhook_ngrok.py
webhook_handler
def webhook_handler(request): """Receives the webhook from mbed cloud services Passes the raw http body directly to mbed sdk, to notify that a webhook was received """ body = request.stream.read().decode('utf8') print('webhook handler saw:', body) api.notify_webhook_received(payload=body) ...
python
def webhook_handler(request): """Receives the webhook from mbed cloud services Passes the raw http body directly to mbed sdk, to notify that a webhook was received """ body = request.stream.read().decode('utf8') print('webhook handler saw:', body) api.notify_webhook_received(payload=body) ...
Receives the webhook from mbed cloud services Passes the raw http body directly to mbed sdk, to notify that a webhook was received
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/examples/connect/webhook_ngrok.py#L111-L122
ARMmbed/mbed-cloud-sdk-python
examples/connect/webhook_ngrok.py
start_sequence
def start_sequence(): """Start the demo sequence We must start this thread in the same process as the webserver to be certain we are sharing the api instance in memory. (ideally in future the async id database will be capable of being more than just a dictionary) """ print('getting started...
python
def start_sequence(): """Start the demo sequence We must start this thread in the same process as the webserver to be certain we are sharing the api instance in memory. (ideally in future the async id database will be capable of being more than just a dictionary) """ print('getting started...
Start the demo sequence We must start this thread in the same process as the webserver to be certain we are sharing the api instance in memory. (ideally in future the async id database will be capable of being more than just a dictionary)
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/examples/connect/webhook_ngrok.py#L126-L139
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/mds/apis/device_requests_api.py
DeviceRequestsApi.create_async_request
def create_async_request(self, device_id, async_id, body, **kwargs): # noqa: E501 """Send an async request to device # noqa: E501 This API provides an interface to asynchronously call methods on a device. The `async-id` is provided by the client, enabling the client to track the end-to-end flow with...
python
def create_async_request(self, device_id, async_id, body, **kwargs): # noqa: E501 """Send an async request to device # noqa: E501 This API provides an interface to asynchronously call methods on a device. The `async-id` is provided by the client, enabling the client to track the end-to-end flow with...
Send an async request to device # noqa: E501 This API provides an interface to asynchronously call methods on a device. The `async-id` is provided by the client, enabling the client to track the end-to-end flow with an identifier that is relevant to the end application. For example, a web application's sessi...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/mds/apis/device_requests_api.py#L36-L58
ARMmbed/mbed-cloud-sdk-python
scripts/generate_ci_config.py
new_preload
def new_preload(): """Job running prior to builds - fetches TestRunner image""" testrunner_image = get_testrunner_image() local_image = testrunner_image.rsplit(':')[-2].rsplit('/')[-1] version_file = 'testrunner_version.txt' template = yaml.safe_load(f""" machine: image: 'circleci/classic:...
python
def new_preload(): """Job running prior to builds - fetches TestRunner image""" testrunner_image = get_testrunner_image() local_image = testrunner_image.rsplit(':')[-2].rsplit('/')[-1] version_file = 'testrunner_version.txt' template = yaml.safe_load(f""" machine: image: 'circleci/classic:...
Job running prior to builds - fetches TestRunner image
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/scripts/generate_ci_config.py#L123-L158
ARMmbed/mbed-cloud-sdk-python
scripts/generate_ci_config.py
new_build
def new_build(py_ver: PyVer): """Job for building/caching different docker images""" cache_file = f'app_{py_ver.name}.tar' cache_path = f'{cache_dir}/{cache_file}' cache_key = f'v3-{py_ver.name}-{{{{ .Branch }}}}' template = yaml.safe_load(f""" machine: image: 'circleci/classic:201710-02' ...
python
def new_build(py_ver: PyVer): """Job for building/caching different docker images""" cache_file = f'app_{py_ver.name}.tar' cache_path = f'{cache_dir}/{cache_file}' cache_key = f'v3-{py_ver.name}-{{{{ .Branch }}}}' template = yaml.safe_load(f""" machine: image: 'circleci/classic:201710-02' ...
Job for building/caching different docker images
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/scripts/generate_ci_config.py#L209-L261
ARMmbed/mbed-cloud-sdk-python
scripts/generate_ci_config.py
new_deploy
def new_deploy(py_ver: PyVer, release_target: ReleaseTarget): """Job for deploying package to pypi""" cache_file = f'app_{py_ver.name}.tar' template = yaml.safe_load(f""" machine: image: circleci/classic:201710-02 steps: - attach_workspace: at: {cache_dir} - checkout ...
python
def new_deploy(py_ver: PyVer, release_target: ReleaseTarget): """Job for deploying package to pypi""" cache_file = f'app_{py_ver.name}.tar' template = yaml.safe_load(f""" machine: image: circleci/classic:201710-02 steps: - attach_workspace: at: {cache_dir} - checkout ...
Job for deploying package to pypi
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/scripts/generate_ci_config.py#L322-L363
ARMmbed/mbed-cloud-sdk-python
scripts/generate_ci_config.py
generate_circle_output
def generate_circle_output(): """Build sequence for Circle CI 2.0 config.yml builds the circleci structure also links individual jobs into a workflow graph """ base = new_base() workflow = networkx.DiGraph() LOG.info('%s python versions', len(python_versions)) LOG.info('%s mbed cloud ho...
python
def generate_circle_output(): """Build sequence for Circle CI 2.0 config.yml builds the circleci structure also links individual jobs into a workflow graph """ base = new_base() workflow = networkx.DiGraph() LOG.info('%s python versions', len(python_versions)) LOG.info('%s mbed cloud ho...
Build sequence for Circle CI 2.0 config.yml builds the circleci structure also links individual jobs into a workflow graph
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/scripts/generate_ci_config.py#L371-L478
ARMmbed/mbed-cloud-sdk-python
scripts/generate_ci_config.py
generate_docker_file
def generate_docker_file(py_ver: PyVer): """Templated docker files""" with open(os.path.join(script_templates_root, 'Dockerfile')) as fh: return fh.read().format(py_ver=py_ver, author=author_file)
python
def generate_docker_file(py_ver: PyVer): """Templated docker files""" with open(os.path.join(script_templates_root, 'Dockerfile')) as fh: return fh.read().format(py_ver=py_ver, author=author_file)
Templated docker files
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/scripts/generate_ci_config.py#L481-L484
ARMmbed/mbed-cloud-sdk-python
scripts/generate_ci_config.py
generate_docker_targets
def generate_docker_targets(): """Write all templated container engine files""" output = {} for py_ver in python_versions.values(): filepath = os.path.join(container_config_root, py_ver.docker_file) output[filepath] = generate_docker_file(py_ver) filepath = os.path.join(container_con...
python
def generate_docker_targets(): """Write all templated container engine files""" output = {} for py_ver in python_versions.values(): filepath = os.path.join(container_config_root, py_ver.docker_file) output[filepath] = generate_docker_file(py_ver) filepath = os.path.join(container_con...
Write all templated container engine files
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/scripts/generate_ci_config.py#L493-L501
ARMmbed/mbed-cloud-sdk-python
scripts/generate_ci_config.py
main
def main(output_path=None): """Writes out new python build system This is needed because CircleCI does not support build matrices nor parameterisation of cache paths or other aspects of their config There's also the added bonus of validating the yaml as we go. Additionally, we template and wr...
python
def main(output_path=None): """Writes out new python build system This is needed because CircleCI does not support build matrices nor parameterisation of cache paths or other aspects of their config There's also the added bonus of validating the yaml as we go. Additionally, we template and wr...
Writes out new python build system This is needed because CircleCI does not support build matrices nor parameterisation of cache paths or other aspects of their config There's also the added bonus of validating the yaml as we go. Additionally, we template and write Docker and docker-compose files...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/scripts/generate_ci_config.py#L504-L543
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/update_service/apis/default_api.py
DefaultApi.firmware_image_create
def firmware_image_create(self, datafile, name, **kwargs): # noqa: E501 """Create an image # noqa: E501 Create a firmware image. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass asynchronous=True >>> threa...
python
def firmware_image_create(self, datafile, name, **kwargs): # noqa: E501 """Create an image # noqa: E501 Create a firmware image. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass asynchronous=True >>> threa...
Create an image # noqa: E501 Create a firmware image. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass asynchronous=True >>> thread = api.firmware_image_create(datafile, name, asynchronous=True) >>> result ...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/update_service/apis/default_api.py#L36-L58
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/update_service/apis/default_api.py
DefaultApi.firmware_image_destroy
def firmware_image_destroy(self, image_id, **kwargs): # noqa: E501 """Delete an image # noqa: E501 Delete a firmware image. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass asynchronous=True >>> thread = a...
python
def firmware_image_destroy(self, image_id, **kwargs): # noqa: E501 """Delete an image # noqa: E501 Delete a firmware image. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass asynchronous=True >>> thread = a...
Delete an image # noqa: E501 Delete a firmware image. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass asynchronous=True >>> thread = api.firmware_image_destroy(image_id, asynchronous=True) >>> result = thr...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/update_service/apis/default_api.py#L150-L170
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/update_service/apis/default_api.py
DefaultApi.firmware_image_list
def firmware_image_list(self, **kwargs): # noqa: E501 """List all images # noqa: E501 List all firmware images. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass asynchronous=True >>> thread = api.firmware_...
python
def firmware_image_list(self, **kwargs): # noqa: E501 """List all images # noqa: E501 List all firmware images. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass asynchronous=True >>> thread = api.firmware_...
List all images # noqa: E501 List all firmware images. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass asynchronous=True >>> thread = api.firmware_image_list(asynchronous=True) >>> result = thread.get() ...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/update_service/apis/default_api.py#L245-L269
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/update_service/apis/default_api.py
DefaultApi.firmware_image_retrieve
def firmware_image_retrieve(self, image_id, **kwargs): # noqa: E501 """Get an image # noqa: E501 Retrieve a firmware image. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass asynchronous=True >>> thread = a...
python
def firmware_image_retrieve(self, image_id, **kwargs): # noqa: E501 """Get an image # noqa: E501 Retrieve a firmware image. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass asynchronous=True >>> thread = a...
Get an image # noqa: E501 Retrieve a firmware image. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass asynchronous=True >>> thread = api.firmware_image_retrieve(image_id, asynchronous=True) >>> result = thr...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/update_service/apis/default_api.py#L352-L372
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/update_service/apis/default_api.py
DefaultApi.firmware_manifest_create
def firmware_manifest_create(self, datafile, name, **kwargs): # noqa: E501 """Create a manifest # noqa: E501 Create a firmware manifest. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass asynchronous=True >...
python
def firmware_manifest_create(self, datafile, name, **kwargs): # noqa: E501 """Create a manifest # noqa: E501 Create a firmware manifest. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass asynchronous=True >...
Create a manifest # noqa: E501 Create a firmware manifest. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass asynchronous=True >>> thread = api.firmware_manifest_create(datafile, name, asynchronous=True) >>>...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/update_service/apis/default_api.py#L447-L470
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/update_service/apis/default_api.py
DefaultApi.firmware_manifest_destroy
def firmware_manifest_destroy(self, manifest_id, **kwargs): # noqa: E501 """Delete a manifest # noqa: E501 Delete a firmware manifest. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass asynchronous=True >>>...
python
def firmware_manifest_destroy(self, manifest_id, **kwargs): # noqa: E501 """Delete a manifest # noqa: E501 Delete a firmware manifest. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass asynchronous=True >>>...
Delete a manifest # noqa: E501 Delete a firmware manifest. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass asynchronous=True >>> thread = api.firmware_manifest_destroy(manifest_id, asynchronous=True) >>> r...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/update_service/apis/default_api.py#L565-L585
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/update_service/apis/default_api.py
DefaultApi.firmware_manifest_list
def firmware_manifest_list(self, **kwargs): # noqa: E501 """List manifests # noqa: E501 List firmware manifests. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass asynchronous=True >>> thread = api.firmware...
python
def firmware_manifest_list(self, **kwargs): # noqa: E501 """List manifests # noqa: E501 List firmware manifests. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass asynchronous=True >>> thread = api.firmware...
List manifests # noqa: E501 List firmware manifests. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass asynchronous=True >>> thread = api.firmware_manifest_list(asynchronous=True) >>> result = thread.get() ...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/update_service/apis/default_api.py#L660-L684
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/update_service/apis/default_api.py
DefaultApi.firmware_manifest_retrieve
def firmware_manifest_retrieve(self, manifest_id, **kwargs): # noqa: E501 """Get a manifest # noqa: E501 Retrieve a firmware manifest. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass asynchronous=True >>>...
python
def firmware_manifest_retrieve(self, manifest_id, **kwargs): # noqa: E501 """Get a manifest # noqa: E501 Retrieve a firmware manifest. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass asynchronous=True >>>...
Get a manifest # noqa: E501 Retrieve a firmware manifest. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass asynchronous=True >>> thread = api.firmware_manifest_retrieve(manifest_id, asynchronous=True) >>> r...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/update_service/apis/default_api.py#L767-L787
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/update_service/apis/default_api.py
DefaultApi.update_campaign_archive
def update_campaign_archive(self, campaign_id, **kwargs): # noqa: E501 """Archive a campaign. # noqa: E501 This command will archive a campaign. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass asynchronous=True ...
python
def update_campaign_archive(self, campaign_id, **kwargs): # noqa: E501 """Archive a campaign. # noqa: E501 This command will archive a campaign. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass asynchronous=True ...
Archive a campaign. # noqa: E501 This command will archive a campaign. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass asynchronous=True >>> thread = api.update_campaign_archive(campaign_id, asynchronous=True) ...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/update_service/apis/default_api.py#L862-L882
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/update_service/apis/default_api.py
DefaultApi.update_campaign_create
def update_campaign_create(self, campaign, **kwargs): # noqa: E501 """Create a campaign # noqa: E501 Create an update campaign. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass asynchronous=True >>> thread...
python
def update_campaign_create(self, campaign, **kwargs): # noqa: E501 """Create a campaign # noqa: E501 Create an update campaign. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass asynchronous=True >>> thread...
Create a campaign # noqa: E501 Create an update campaign. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass asynchronous=True >>> thread = api.update_campaign_create(campaign, asynchronous=True) >>> result =...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/update_service/apis/default_api.py#L957-L977
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/update_service/apis/default_api.py
DefaultApi.update_campaign_destroy
def update_campaign_destroy(self, campaign_id, **kwargs): # noqa: E501 """Delete a campaign # noqa: E501 Delete an update campaign. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass asynchronous=True >>> th...
python
def update_campaign_destroy(self, campaign_id, **kwargs): # noqa: E501 """Delete a campaign # noqa: E501 Delete an update campaign. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass asynchronous=True >>> th...
Delete a campaign # noqa: E501 Delete an update campaign. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass asynchronous=True >>> thread = api.update_campaign_destroy(campaign_id, asynchronous=True) >>> resu...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/update_service/apis/default_api.py#L1052-L1072
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/update_service/apis/default_api.py
DefaultApi.update_campaign_list
def update_campaign_list(self, **kwargs): # noqa: E501 """List all campaigns # noqa: E501 Get update campaigns for devices specified by a filter. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass asynchronous=True ...
python
def update_campaign_list(self, **kwargs): # noqa: E501 """List all campaigns # noqa: E501 Get update campaigns for devices specified by a filter. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass asynchronous=True ...
List all campaigns # noqa: E501 Get update campaigns for devices specified by a filter. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass asynchronous=True >>> thread = api.update_campaign_list(asynchronous=True) ...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/update_service/apis/default_api.py#L1147-L1171
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/update_service/apis/default_api.py
DefaultApi.update_campaign_metadata_list
def update_campaign_metadata_list(self, campaign_id, **kwargs): # noqa: E501 """List all campaign device metadata # noqa: E501 Get campaign device metadata. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass asynchr...
python
def update_campaign_metadata_list(self, campaign_id, **kwargs): # noqa: E501 """List all campaign device metadata # noqa: E501 Get campaign device metadata. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass asynchr...
List all campaign device metadata # noqa: E501 Get campaign device metadata. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass asynchronous=True >>> thread = api.update_campaign_metadata_list(campaign_id, asynchrono...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/update_service/apis/default_api.py#L1254-L1278
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/update_service/apis/default_api.py
DefaultApi.update_campaign_metadata_retrieve
def update_campaign_metadata_retrieve(self, campaign_id, campaign_device_metadata_id, **kwargs): # noqa: E501 """Get a campaign device metadata # noqa: E501 Get update campaign metadata. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTT...
python
def update_campaign_metadata_retrieve(self, campaign_id, campaign_device_metadata_id, **kwargs): # noqa: E501 """Get a campaign device metadata # noqa: E501 Get update campaign metadata. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTT...
Get a campaign device metadata # noqa: E501 Get update campaign metadata. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass asynchronous=True >>> thread = api.update_campaign_metadata_retrieve(campaign_id, campaign_...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/update_service/apis/default_api.py#L1365-L1386
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/update_service/apis/default_api.py
DefaultApi.update_campaign_metrics
def update_campaign_metrics(self, campaign_id, **kwargs): # noqa: E501 """Get campaign metrics # noqa: E501 Get detailed statistics of a campaign. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass asynchronous=True...
python
def update_campaign_metrics(self, campaign_id, **kwargs): # noqa: E501 """Get campaign metrics # noqa: E501 Get detailed statistics of a campaign. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass asynchronous=True...
Get campaign metrics # noqa: E501 Get detailed statistics of a campaign. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass asynchronous=True >>> thread = api.update_campaign_metrics(campaign_id, asynchronous=True) ...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/update_service/apis/default_api.py#L1468-L1488
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/update_service/apis/default_api.py
DefaultApi.update_campaign_retrieve
def update_campaign_retrieve(self, campaign_id, **kwargs): # noqa: E501 """Get a campaign. # noqa: E501 Get an update campaign. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass asynchronous=True >>> thread...
python
def update_campaign_retrieve(self, campaign_id, **kwargs): # noqa: E501 """Get a campaign. # noqa: E501 Get an update campaign. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass asynchronous=True >>> thread...
Get a campaign. # noqa: E501 Get an update campaign. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass asynchronous=True >>> thread = api.update_campaign_retrieve(campaign_id, asynchronous=True) >>> result =...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/update_service/apis/default_api.py#L1563-L1583
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/update_service/apis/default_api.py
DefaultApi.update_campaign_start
def update_campaign_start(self, campaign_id, **kwargs): # noqa: E501 """Start a campaign. # noqa: E501 This command will begin the process of starting a campaign. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass a...
python
def update_campaign_start(self, campaign_id, **kwargs): # noqa: E501 """Start a campaign. # noqa: E501 This command will begin the process of starting a campaign. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass a...
Start a campaign. # noqa: E501 This command will begin the process of starting a campaign. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass asynchronous=True >>> thread = api.update_campaign_start(campaign_id, asyn...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/update_service/apis/default_api.py#L1658-L1678
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/update_service/apis/default_api.py
DefaultApi.update_campaign_stop
def update_campaign_stop(self, campaign_id, **kwargs): # noqa: E501 """Stop a campaign. # noqa: E501 This command will begin the process of stopping a campaign. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass asy...
python
def update_campaign_stop(self, campaign_id, **kwargs): # noqa: E501 """Stop a campaign. # noqa: E501 This command will begin the process of stopping a campaign. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass asy...
Stop a campaign. # noqa: E501 This command will begin the process of stopping a campaign. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass asynchronous=True >>> thread = api.update_campaign_stop(campaign_id, asynch...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/update_service/apis/default_api.py#L1753-L1773
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/update_service/apis/default_api.py
DefaultApi.update_campaign_update
def update_campaign_update(self, campaign_id, campaign, **kwargs): # noqa: E501 """Modify a campaign # noqa: E501 Modify an update campaign. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass asynchronous=True ...
python
def update_campaign_update(self, campaign_id, campaign, **kwargs): # noqa: E501 """Modify a campaign # noqa: E501 Modify an update campaign. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass asynchronous=True ...
Modify a campaign # noqa: E501 Modify an update campaign. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass asynchronous=True >>> thread = api.update_campaign_update(campaign_id, campaign, asynchronous=True) ...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/update_service/apis/default_api.py#L1848-L1869
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/update_service/apis/default_api.py
DefaultApi.upload_job_chunk_create
def upload_job_chunk_create(self, content_length, upload_job_id, **kwargs): # noqa: E501 """Append a chunks to an upload job # noqa: E501 Append a chunks to an upload job # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, pleas...
python
def upload_job_chunk_create(self, content_length, upload_job_id, **kwargs): # noqa: E501 """Append a chunks to an upload job # noqa: E501 Append a chunks to an upload job # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, pleas...
Append a chunks to an upload job # noqa: E501 Append a chunks to an upload job # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass asynchronous=True >>> thread = api.upload_job_chunk_create(content_length, upload_job_...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/update_service/apis/default_api.py#L1951-L1974
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/update_service/apis/default_api.py
DefaultApi.upload_job_chunk_list
def upload_job_chunk_list(self, upload_job_id, **kwargs): # noqa: E501 """List all metadata for uploaded chunks # noqa: E501 List all metadata for uploaded chunks # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass a...
python
def upload_job_chunk_list(self, upload_job_id, **kwargs): # noqa: E501 """List all metadata for uploaded chunks # noqa: E501 List all metadata for uploaded chunks # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass a...
List all metadata for uploaded chunks # noqa: E501 List all metadata for uploaded chunks # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass asynchronous=True >>> thread = api.upload_job_chunk_list(upload_job_id, asyn...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/update_service/apis/default_api.py#L2066-L2091
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/update_service/apis/default_api.py
DefaultApi.upload_job_chunk_retreive
def upload_job_chunk_retreive(self, upload_job_id, chunk_id, **kwargs): # noqa: E501 """Get metadata about a chunk # noqa: E501 Get metadata about a chunk # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass asynchron...
python
def upload_job_chunk_retreive(self, upload_job_id, chunk_id, **kwargs): # noqa: E501 """Get metadata about a chunk # noqa: E501 Get metadata about a chunk # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass asynchron...
Get metadata about a chunk # noqa: E501 Get metadata about a chunk # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass asynchronous=True >>> thread = api.upload_job_chunk_retreive(upload_job_id, chunk_id, asynchronous...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/update_service/apis/default_api.py#L2181-L2202
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/update_service/apis/default_api.py
DefaultApi.upload_job_create
def upload_job_create(self, upload_job, **kwargs): # noqa: E501 """Create a new upload job # noqa: E501 Create a new upload job # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass asynchronous=True >>> thread...
python
def upload_job_create(self, upload_job, **kwargs): # noqa: E501 """Create a new upload job # noqa: E501 Create a new upload job # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass asynchronous=True >>> thread...
Create a new upload job # noqa: E501 Create a new upload job # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass asynchronous=True >>> thread = api.upload_job_create(upload_job, asynchronous=True) >>> result =...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/update_service/apis/default_api.py#L2284-L2304
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/update_service/apis/default_api.py
DefaultApi.upload_job_delete
def upload_job_delete(self, upload_job_id, **kwargs): # noqa: E501 """Delete an upload job # noqa: E501 Delete an upload job # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass asynchronous=True >>> thread = ...
python
def upload_job_delete(self, upload_job_id, **kwargs): # noqa: E501 """Delete an upload job # noqa: E501 Delete an upload job # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass asynchronous=True >>> thread = ...
Delete an upload job # noqa: E501 Delete an upload job # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass asynchronous=True >>> thread = api.upload_job_delete(upload_job_id, asynchronous=True) >>> result = th...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/update_service/apis/default_api.py#L2379-L2399
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/update_service/apis/default_api.py
DefaultApi.upload_job_list
def upload_job_list(self, **kwargs): # noqa: E501 """Get all upload jobs # noqa: E501 Get all upload jobs # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass asynchronous=True >>> thread = api.upload_job_list...
python
def upload_job_list(self, **kwargs): # noqa: E501 """Get all upload jobs # noqa: E501 Get all upload jobs # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass asynchronous=True >>> thread = api.upload_job_list...
Get all upload jobs # noqa: E501 Get all upload jobs # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass asynchronous=True >>> thread = api.upload_job_list(asynchronous=True) >>> result = thread.get() ...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/update_service/apis/default_api.py#L2474-L2498
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/update_service/apis/default_api.py
DefaultApi.upload_job_retrieve
def upload_job_retrieve(self, upload_job_id, **kwargs): # noqa: E501 """Get an upload job # noqa: E501 Get an upload job # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass asynchronous=True >>> thread = api....
python
def upload_job_retrieve(self, upload_job_id, **kwargs): # noqa: E501 """Get an upload job # noqa: E501 Get an upload job # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass asynchronous=True >>> thread = api....
Get an upload job # noqa: E501 Get an upload job # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass asynchronous=True >>> thread = api.upload_job_retrieve(upload_job_id, asynchronous=True) >>> result = thread...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/update_service/apis/default_api.py#L2581-L2601
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/update_service/apis/default_api.py
DefaultApi.upload_job_update
def upload_job_update(self, upload_job_id, upload_job, **kwargs): # noqa: E501 """Update an upload job # noqa: E501 Update an upload job # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass asynchronous=True >...
python
def upload_job_update(self, upload_job_id, upload_job, **kwargs): # noqa: E501 """Update an upload job # noqa: E501 Update an upload job # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass asynchronous=True >...
Update an upload job # noqa: E501 Update an upload job # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass asynchronous=True >>> thread = api.upload_job_update(upload_job_id, upload_job, asynchronous=True) >>>...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/update_service/apis/default_api.py#L2676-L2697
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/external_ca/models/global_sign_credentials.py
GlobalSignCredentials.api_key
def api_key(self, api_key): """ Sets the api_key of this GlobalSignCredentials. Unique ID for API client (provided by GlobalSign). :param api_key: The api_key of this GlobalSignCredentials. :type: str """ if api_key is None: raise ValueError("Invalid...
python
def api_key(self, api_key): """ Sets the api_key of this GlobalSignCredentials. Unique ID for API client (provided by GlobalSign). :param api_key: The api_key of this GlobalSignCredentials. :type: str """ if api_key is None: raise ValueError("Invalid...
Sets the api_key of this GlobalSignCredentials. Unique ID for API client (provided by GlobalSign). :param api_key: The api_key of this GlobalSignCredentials. :type: str
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/external_ca/models/global_sign_credentials.py#L73-L86
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/external_ca/models/global_sign_credentials.py
GlobalSignCredentials.api_secret
def api_secret(self, api_secret): """ Sets the api_secret of this GlobalSignCredentials. API Secret matching the API key (provided by GlobalSign). :param api_secret: The api_secret of this GlobalSignCredentials. :type: str """ if api_secret is None: ...
python
def api_secret(self, api_secret): """ Sets the api_secret of this GlobalSignCredentials. API Secret matching the API key (provided by GlobalSign). :param api_secret: The api_secret of this GlobalSignCredentials. :type: str """ if api_secret is None: ...
Sets the api_secret of this GlobalSignCredentials. API Secret matching the API key (provided by GlobalSign). :param api_secret: The api_secret of this GlobalSignCredentials. :type: str
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/external_ca/models/global_sign_credentials.py#L100-L113
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/external_ca/models/global_sign_credentials.py
GlobalSignCredentials.client_certificate
def client_certificate(self, client_certificate): """ Sets the client_certificate of this GlobalSignCredentials. The client certificate provided by GlobalSign to allow HTTPS connection over TLS/SSL. The certificate wraps a public key that matches a private key provided by the customer. The certi...
python
def client_certificate(self, client_certificate): """ Sets the client_certificate of this GlobalSignCredentials. The client certificate provided by GlobalSign to allow HTTPS connection over TLS/SSL. The certificate wraps a public key that matches a private key provided by the customer. The certi...
Sets the client_certificate of this GlobalSignCredentials. The client certificate provided by GlobalSign to allow HTTPS connection over TLS/SSL. The certificate wraps a public key that matches a private key provided by the customer. The certificate must be in PEM format. :param client_certificate: The...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/external_ca/models/global_sign_credentials.py#L127-L140
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/external_ca/models/global_sign_credentials.py
GlobalSignCredentials.passphrase
def passphrase(self, passphrase): """ Sets the passphrase of this GlobalSignCredentials. The passphrase to decrypt the private key in case it is encrypted. Empty if the private key is not encrypted. :param passphrase: The passphrase of this GlobalSignCredentials. :type: str ...
python
def passphrase(self, passphrase): """ Sets the passphrase of this GlobalSignCredentials. The passphrase to decrypt the private key in case it is encrypted. Empty if the private key is not encrypted. :param passphrase: The passphrase of this GlobalSignCredentials. :type: str ...
Sets the passphrase of this GlobalSignCredentials. The passphrase to decrypt the private key in case it is encrypted. Empty if the private key is not encrypted. :param passphrase: The passphrase of this GlobalSignCredentials. :type: str
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/external_ca/models/global_sign_credentials.py#L154-L165
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/external_ca/models/global_sign_credentials.py
GlobalSignCredentials.private_key
def private_key(self, private_key): """ Sets the private_key of this GlobalSignCredentials. The private key that matches the client certificate to allow HTTPS connection over TLS/SSL. The private key may be encrypted using a symmetric encryption key derived from a passphrase. The private key mus...
python
def private_key(self, private_key): """ Sets the private_key of this GlobalSignCredentials. The private key that matches the client certificate to allow HTTPS connection over TLS/SSL. The private key may be encrypted using a symmetric encryption key derived from a passphrase. The private key mus...
Sets the private_key of this GlobalSignCredentials. The private key that matches the client certificate to allow HTTPS connection over TLS/SSL. The private key may be encrypted using a symmetric encryption key derived from a passphrase. The private key must be in PEM format. :param private_key: The pr...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/external_ca/models/global_sign_credentials.py#L179-L192
ARMmbed/mbed-cloud-sdk-python
scripts/tag_and_release.py
git_url_ssh_to_https
def git_url_ssh_to_https(url): """Convert a git url url will look like https://github.com/ARMmbed/mbed-cloud-sdk-python.git or git@github.com:ARMmbed/mbed-cloud-sdk-python.git we want: https://${GITHUB_TOKEN}@github.com/ARMmbed/mbed-cloud-sdk-python-private.git """ path = url.split(...
python
def git_url_ssh_to_https(url): """Convert a git url url will look like https://github.com/ARMmbed/mbed-cloud-sdk-python.git or git@github.com:ARMmbed/mbed-cloud-sdk-python.git we want: https://${GITHUB_TOKEN}@github.com/ARMmbed/mbed-cloud-sdk-python-private.git """ path = url.split(...
Convert a git url url will look like https://github.com/ARMmbed/mbed-cloud-sdk-python.git or git@github.com:ARMmbed/mbed-cloud-sdk-python.git we want: https://${GITHUB_TOKEN}@github.com/ARMmbed/mbed-cloud-sdk-python-private.git
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/scripts/tag_and_release.py#L32-L45
ARMmbed/mbed-cloud-sdk-python
scripts/tag_and_release.py
main
def main(mode): """Tags the current repository and commits changes to news files :param mode: ReleaseTarget mode (i.e. beta or prod) :type mode: ReleaseTarget """ # see: # https://packaging.python.org/tutorials/distributing-packages/#uploading-your-project-to-pypi version = subprocess....
python
def main(mode): """Tags the current repository and commits changes to news files :param mode: ReleaseTarget mode (i.e. beta or prod) :type mode: ReleaseTarget """ # see: # https://packaging.python.org/tutorials/distributing-packages/#uploading-your-project-to-pypi version = subprocess....
Tags the current repository and commits changes to news files :param mode: ReleaseTarget mode (i.e. beta or prod) :type mode: ReleaseTarget
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/scripts/tag_and_release.py#L48-L100
facelessuser/backrefs
tools/unidatadownload.py
zip_unicode
def zip_unicode(output, version): """Zip the Unicode files.""" zipper = zipfile.ZipFile(os.path.join(output, 'unicodedata', '%s.zip' % version), 'w', zipfile.ZIP_DEFLATED) target = os.path.join(output, 'unicodedata', version) print('Zipping %s.zip...' % version) for root, dirs, files in os.walk(t...
python
def zip_unicode(output, version): """Zip the Unicode files.""" zipper = zipfile.ZipFile(os.path.join(output, 'unicodedata', '%s.zip' % version), 'w', zipfile.ZIP_DEFLATED) target = os.path.join(output, 'unicodedata', version) print('Zipping %s.zip...' % version) for root, dirs, files in os.walk(t...
Zip the Unicode files.
https://github.com/facelessuser/backrefs/blob/3b3d60f5d57b02044f880aa29c9c5add0e31a34f/tools/unidatadownload.py#L18-L29
facelessuser/backrefs
tools/unidatadownload.py
unzip_unicode
def unzip_unicode(output, version): """Unzip the Unicode files.""" unzipper = zipfile.ZipFile(os.path.join(output, 'unicodedata', '%s.zip' % version)) target = os.path.join(output, 'unicodedata', version) print('Unzipping %s.zip...' % version) os.makedirs(target) for f in unzipper.namelist()...
python
def unzip_unicode(output, version): """Unzip the Unicode files.""" unzipper = zipfile.ZipFile(os.path.join(output, 'unicodedata', '%s.zip' % version)) target = os.path.join(output, 'unicodedata', version) print('Unzipping %s.zip...' % version) os.makedirs(target) for f in unzipper.namelist()...
Unzip the Unicode files.
https://github.com/facelessuser/backrefs/blob/3b3d60f5d57b02044f880aa29c9c5add0e31a34f/tools/unidatadownload.py#L32-L44
facelessuser/backrefs
tools/unidatadownload.py
download_unicodedata
def download_unicodedata(version, output=HOME, no_zip=False): """Download Unicode data scripts and blocks.""" files = [ 'UnicodeData.txt', 'Scripts.txt', 'Blocks.txt', 'PropList.txt', 'DerivedCoreProperties.txt', 'DerivedNormalizationProps.txt', 'Compositi...
python
def download_unicodedata(version, output=HOME, no_zip=False): """Download Unicode data scripts and blocks.""" files = [ 'UnicodeData.txt', 'Scripts.txt', 'Blocks.txt', 'PropList.txt', 'DerivedCoreProperties.txt', 'DerivedNormalizationProps.txt', 'Compositi...
Download Unicode data scripts and blocks.
https://github.com/facelessuser/backrefs/blob/3b3d60f5d57b02044f880aa29c9c5add0e31a34f/tools/unidatadownload.py#L47-L125
facelessuser/backrefs
tools/unidatadownload.py
get_unicodedata
def get_unicodedata(version, output=HOME, no_zip=False): """Ensure we have Unicode data to generate Unicode tables.""" target = os.path.join(output, 'unicodedata', version) zip_target = os.path.join(output, 'unicodedata', '%s.zip' % version) if not os.path.exists(target) and os.path.exists(zip_target)...
python
def get_unicodedata(version, output=HOME, no_zip=False): """Ensure we have Unicode data to generate Unicode tables.""" target = os.path.join(output, 'unicodedata', version) zip_target = os.path.join(output, 'unicodedata', '%s.zip' % version) if not os.path.exists(target) and os.path.exists(zip_target)...
Ensure we have Unicode data to generate Unicode tables.
https://github.com/facelessuser/backrefs/blob/3b3d60f5d57b02044f880aa29c9c5add0e31a34f/tools/unidatadownload.py#L128-L138
facelessuser/backrefs
backrefs/_bre_parse.py
_pickle
def _pickle(r): """Pickle.""" return ReplaceTemplate, (r.groups, r.group_slots, r.literals, r.pattern_hash, r.use_format, r._bytes)
python
def _pickle(r): """Pickle.""" return ReplaceTemplate, (r.groups, r.group_slots, r.literals, r.pattern_hash, r.use_format, r._bytes)
Pickle.
https://github.com/facelessuser/backrefs/blob/3b3d60f5d57b02044f880aa29c9c5add0e31a34f/backrefs/_bre_parse.py#L1501-L1504
facelessuser/backrefs
backrefs/_bre_parse.py
_SearchParser.process_quotes
def process_quotes(self, text): """Process quotes.""" escaped = False in_quotes = False current = [] quoted = [] i = _util.StringIter(text) iter(i) for t in i: if not escaped and t == "\\": escaped = True elif escap...
python
def process_quotes(self, text): """Process quotes.""" escaped = False in_quotes = False current = [] quoted = [] i = _util.StringIter(text) iter(i) for t in i: if not escaped and t == "\\": escaped = True elif escap...
Process quotes.
https://github.com/facelessuser/backrefs/blob/3b3d60f5d57b02044f880aa29c9c5add0e31a34f/backrefs/_bre_parse.py#L95-L133
facelessuser/backrefs
backrefs/_bre_parse.py
_SearchParser.verbose_comment
def verbose_comment(self, t, i): """Handle verbose comments.""" current = [] escaped = False try: while t != "\n": if not escaped and t == "\\": escaped = True current.append(t) elif escaped: ...
python
def verbose_comment(self, t, i): """Handle verbose comments.""" current = [] escaped = False try: while t != "\n": if not escaped and t == "\\": escaped = True current.append(t) elif escaped: ...
Handle verbose comments.
https://github.com/facelessuser/backrefs/blob/3b3d60f5d57b02044f880aa29c9c5add0e31a34f/backrefs/_bre_parse.py#L135-L159