@@ -77,6 +77,20 @@ def build_well_known_get_installation_metadata_request(**kwargs: Any) -> HttpReq
7777 return HttpRequest (method = "GET" , url = _url , headers = _headers , ** kwargs )
7878
7979
80+ def build_well_known_get_security_txt_request (** kwargs : Any ) -> HttpRequest : # pylint: disable=name-too-long
81+ _headers = case_insensitive_dict (kwargs .pop ("headers" , {}) or {})
82+
83+ accept = _headers .pop ("Accept" , "application/json" )
84+
85+ # Construct URL
86+ _url = "/.well-known/.well-known/security.txt"
87+
88+ # Construct headers
89+ _headers ["Accept" ] = _SERIALIZER .header ("accept" , accept , "str" )
90+
91+ return HttpRequest (method = "GET" , url = _url , headers = _headers , ** kwargs )
92+
93+
8094def build_auth_initiate_device_flow_request (* , client_id : str , scope : str , ** kwargs : Any ) -> HttpRequest :
8195 _headers = case_insensitive_dict (kwargs .pop ("headers" , {}) or {})
8296 _params = case_insensitive_dict (kwargs .pop ("params" , {}) or {})
@@ -754,6 +768,53 @@ def get_installation_metadata(self, **kwargs: Any) -> _models.Metadata:
754768
755769 return deserialized # type: ignore
756770
771+ @distributed_trace
772+ def get_security_txt (self , ** kwargs : Any ) -> str :
773+ """Get Security Txt.
774+
775+ Get the security.txt file.
776+
777+ :return: str
778+ :rtype: str
779+ :raises ~azure.core.exceptions.HttpResponseError:
780+ """
781+ error_map : MutableMapping = {
782+ 401 : ClientAuthenticationError ,
783+ 404 : ResourceNotFoundError ,
784+ 409 : ResourceExistsError ,
785+ 304 : ResourceNotModifiedError ,
786+ }
787+ error_map .update (kwargs .pop ("error_map" , {}) or {})
788+
789+ _headers = kwargs .pop ("headers" , {}) or {}
790+ _params = kwargs .pop ("params" , {}) or {}
791+
792+ cls : ClsType [str ] = kwargs .pop ("cls" , None )
793+
794+ _request = build_well_known_get_security_txt_request (
795+ headers = _headers ,
796+ params = _params ,
797+ )
798+ _request .url = self ._client .format_url (_request .url )
799+
800+ _stream = False
801+ pipeline_response : PipelineResponse = self ._client ._pipeline .run ( # pylint: disable=protected-access
802+ _request , stream = _stream , ** kwargs
803+ )
804+
805+ response = pipeline_response .http_response
806+
807+ if response .status_code not in [200 ]:
808+ map_error (status_code = response .status_code , response = response , error_map = error_map )
809+ raise HttpResponseError (response = response )
810+
811+ deserialized = self ._deserialize ("str" , pipeline_response .http_response )
812+
813+ if cls :
814+ return cls (pipeline_response , deserialized , {}) # type: ignore
815+
816+ return deserialized # type: ignore
817+
757818
758819class AuthOperations : # pylint: disable=abstract-class-instantiated
759820 """
0 commit comments