How to use the azure-graphrbac.azure.graphrbac.models.KeyCredentialsUpdateParameters function in azure-graphrbac

To help you get started, we’ve selected a few azure-graphrbac examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Azure / azure-sdk-for-python / azure-graphrbac / azure / graphrbac / operations / applications_operations.py View on Github external
:type value: list of :class:`KeyCredential
         `
        :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.KeyCredentialsUpdateParameters(value=value)

        # Construct URL
        url = '/{tenantID}/applications/{applicationObjectId}/keyCredentials'
        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'
github Azure / azure-sdk-for-python / azure-graphrbac / azure / graphrbac / operations / service_principals_operations.py View on Github external
:type value: list of :class:`KeyCredential
         `
        :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.KeyCredentialsUpdateParameters(value=value)

        # Construct URL
        url = '/{tenantID}/servicePrincipals/{objectId}/keyCredentials'
        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'