Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
:type value: list of :class:`PasswordCredential
`
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides`.
:return: None or
:class:`ClientRawResponse` if
raw=true
:rtype: None or
:class:`ClientRawResponse`
:raises:
:class:`GraphErrorException`
"""
parameters = models.PasswordCredentialsUpdateParameters(value=value)
# Construct URL
url = '/{tenantID}/applications/{applicationObjectId}/passwordCredentials'
path_format_arguments = {
'applicationObjectId': self._serialize.url("application_object_id", application_object_id, 'str', skip_quote=True),
'tenantID': self._serialize.url("self.config.tenant_id", self.config.tenant_id, 'str')
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {}
query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str')
# Construct headers
header_parameters = {}
header_parameters['Content-Type'] = 'application/json; charset=utf-8'
:type value: list of :class:`PasswordCredential
`
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides`.
:return: None or
:class:`ClientRawResponse` if
raw=true
:rtype: None or
:class:`ClientRawResponse`
:raises:
:class:`GraphErrorException`
"""
parameters = models.PasswordCredentialsUpdateParameters(value=value)
# Construct URL
url = '/{tenantID}/servicePrincipals/{objectId}/passwordCredentials'
path_format_arguments = {
'objectId': self._serialize.url("object_id", object_id, 'str', skip_quote=True),
'tenantID': self._serialize.url("self.config.tenant_id", self.config.tenant_id, 'str')
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {}
query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str')
# Construct headers
header_parameters = {}
header_parameters['Content-Type'] = 'application/json; charset=utf-8'