text: # coding=utf-8
  # --------------------------------------------------------------------------
  # Copyright (c) Microsoft Corporation. All rights reserved.
  # Licensed under the MIT License. See License.txt in the project root for license information.
  # Code generated by Microsoft (R) AutoRest Code Generator.
  # Changes may cause incorrect behavior and will be lost if the code is regenerated.
  # --------------------------------------------------------------------------
  from typing import TYPE_CHECKING
  import warnings
  
  from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error
  from azure.core.paging import ItemPaged
  from azure.core.pipeline import PipelineResponse
  from azure.core.pipeline.transport import HttpRequest, HttpResponse
  from azure.mgmt.core.exceptions import ARMErrorFormat
  
  from .. import models
  
  if TYPE_CHECKING:
      # pylint: disable=unused-import,ungrouped-imports
      from typing import Any, Callable, Dict, Generic, Iterable, List, Optional, TypeVar, Union
  
      T = TypeVar('T')
      ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
  
  class GroupsCalendarOperations(object):
      """GroupsCalendarOperations operations.
  
      You should not instantiate this class directly. Instead, you should create a Client instance that
      instantiates it for you and attaches it as an attribute.
  
      :ivar models: Alias to model classes used in this operation group.
      :type models: ~calendar.models
      :param client: Client for service requests.
      :param config: Configuration of service client.
      :param serializer: An object model serializer.
      :param deserializer: An object model deserializer.
      """
  
      models = models
  
      def __init__(self, client, config, serializer, deserializer):
          self._client = client
          self._serialize = serializer
          self._deserialize = deserializer
          self._config = config
  
      def list_calendar_permissions(
          self,
          group_id,  # type: str
          orderby=None,  # type: Optional[List[Union[str, "models.Get6ItemsItem"]]]
          select=None,  # type: Optional[List[Union[str, "models.Get7ItemsItem"]]]
          expand=None,  # type: Optional[List[str]]
          **kwargs  # type: Any
      ):
          # type: (...) -> Iterable["models.CollectionOfCalendarPermission"]
          """Get calendarPermissions from groups.
  
          Get calendarPermissions from groups.
  
          :param group_id: key: id of group.
          :type group_id: str
          :param orderby: Order items by property values.
          :type orderby: list[str or ~calendar.models.Get6ItemsItem]
          :param select: Select properties to be returned.
          :type select: list[str or ~calendar.models.Get7ItemsItem]
          :param expand: Expand related entities.
          :type expand: list[str]
          :keyword callable cls: A custom type or function that will be passed the direct response
          :return: An iterator like instance of either CollectionOfCalendarPermission or the result of cls(response)
          :rtype: ~azure.core.paging.ItemPaged[~calendar.models.CollectionOfCalendarPermission]
          :raises: ~azure.core.exceptions.HttpResponseError
          """
          cls = kwargs.pop('cls', None)  # type: ClsType["models.CollectionOfCalendarPermission"]
          error_map = {
              401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
          }
          error_map.update(kwargs.pop('error_map', {}))
          accept = "application/json"
  
          def prepare_request(next_link=None):
              # Construct headers
              header_parameters = {}  # type: Dict[str, Any]
              header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
  
              if not next_link:
                  # Construct URL
                  url = self.list_calendar_permissions.metadata['url']  # type: ignore
                  path_format_arguments = {
                      'group-id': self._serialize.url("group_id", group_id, 'str'),
                  }
                  url = self._client.format_url(url, **path_format_arguments)
                  # Construct parameters
                  query_parameters = {}  # type: Dict[str, Any]
                  if self._config.top is not None:
                      query_parameters['$top'] = self._serialize.query("self._config.top", self._config.top, 'int', minimum=0)
                  if self._config.skip is not None:
                      query_parameters['$skip'] = self._serialize.query("self._config.skip", self._config.skip, 'int', minimum=0)
                  if self._config.search is not None:
                      query_parameters['$search'] = self._serialize.query("self._config.search", self._config.search, 'str')
                  if self._config.filter is not None:
                      query_parameters['$filter'] = self._serialize.query("self._config.filter", self._config.filter, 'str')
                  if self._config.count is not None:
                      query_parameters['$count'] = self._serialize.query("self._config.count", self._config.count, 'bool')
                  if orderby is not None:
                      query_parameters['$orderby'] = self._serialize.query("orderby", orderby, '[str]', div=',')
                  if select is not None:
                      query_parameters['$select'] = self._serialize.query("select", select, '[str]', div=',')
                  if expand is not None:
                      query_parameters['$expand'] = self._serialize.query("expand", expand, '[str]', div=',')
  
                  request = self._client.get(url, query_parameters, header_parameters)
              else:
                  url = next_link
                  query_parameters = {}  # type: Dict[str, Any]
                  request = self._client.get(url, query_parameters, header_parameters)
              return request
  
          def extract_data(pipeline_response):
              deserialized = self._deserialize('CollectionOfCalendarPermission', pipeline_response)
              list_of_elem = deserialized.value
              if cls:
                  list_of_elem = cls(list_of_elem)
              return deserialized.odata_next_link or None, iter(list_of_elem)
  
          def get_next(next_link=None):
              request = prepare_request(next_link)
  
              pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
              response = pipeline_response.http_response
  
              if response.status_code not in [200]:
                  error = self._deserialize(models.OdataError, response)
                  map_error(status_code=response.status_code, response=response, error_map=error_map)
                  raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
  
              return pipeline_response
  
          return ItemPaged(
              get_next, extract_data
          )
      list_calendar_permissions.metadata = {'url': '/groups/{group-id}/calendar/calendarPermissions'}  # type: ignore
  
      def create_calendar_permissions(
          self,
          group_id,  # type: str
          body,  # type: "models.MicrosoftGraphCalendarPermission"
          **kwargs  # type: Any
      ):
          # type: (...) -> "models.MicrosoftGraphCalendarPermission"
          """Create new navigation property to calendarPermissions for groups.
  
          Create new navigation property to calendarPermissions for groups.
  
          :param group_id: key: id of group.
          :type group_id: str
          :param body: New navigation property.
          :type body: ~calendar.models.MicrosoftGraphCalendarPermission
          :keyword callable cls: A custom type or function that will be passed the direct response
          :return: MicrosoftGraphCalendarPermission, or the result of cls(response)
          :rtype: ~calendar.models.MicrosoftGraphCalendarPermission
          :raises: ~azure.core.exceptions.HttpResponseError
          """
          cls = kwargs.pop('cls', None)  # type: ClsType["models.MicrosoftGraphCalendarPermission"]
          error_map = {
              401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
          }
          error_map.update(kwargs.pop('error_map', {}))
          content_type = kwargs.pop("content_type", "application/json")
          accept = "application/json"
  
          # Construct URL
          url = self.create_calendar_permissions.metadata['url']  # type: ignore
          path_format_arguments = {
              'group-id': self._serialize.url("group_id", group_id, 'str'),
          }
          url = self._client.format_url(url, **path_format_arguments)
  
          # Construct parameters
          query_parameters = {}  # type: Dict[str, Any]
  
          # Construct headers
          header_parameters = {}  # type: Dict[str, Any]
          header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str')
          header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
  
          body_content_kwargs = {}  # type: Dict[str, Any]
          body_content = self._serialize.body(body, 'MicrosoftGraphCalendarPermission')
          body_content_kwargs['content'] = body_content
          request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs)
          pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
          response = pipeline_response.http_response
  
          if response.status_code not in [201]:
              map_error(status_code=response.status_code, response=response, error_map=error_map)
              error = self._deserialize(models.OdataError, response)
              raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
  
          deserialized = self._deserialize('MicrosoftGraphCalendarPermission', pipeline_response)
  
          if cls:
              return cls(pipeline_response, deserialized, {})
  
          return deserialized
      create_calendar_permissions.metadata = {'url': '/groups/{group-id}/calendar/calendarPermissions'}  # type: ignore
  
      def get_calendar_permissions(
          self,
          group_id,  # type: str
          calendar_permission_id,  # type: str
          select=None,  # type: Optional[List[Union[str, "models.Enum21"]]]
          expand=None,  # type: Optional[List[str]]
          **kwargs  # type: Any
      ):
          # type: (...) -> "models.MicrosoftGraphCalendarPermission"
          """Get calendarPermissions from groups.
  
          Get calendarPermissions from groups.
  
          :param group_id: key: id of group.
          :type group_id: str
          :param calendar_permission_id: key: id of calendarPermission.
          :type calendar_permission_id: str
          :param select: Select properties to be returned.
          :type select: list[str or ~calendar.models.Enum21]
          :param expand: Expand related entities.
          :type expand: list[str]
          :keyword callable cls: A custom type or function that will be passed the direct response
          :return: MicrosoftGraphCalendarPermission, or the result of cls(response)
          :rtype: ~calendar.models.MicrosoftGraphCalendarPermission
          :raises: ~azure.core.exceptions.HttpResponseError
          """
          cls = kwargs.pop('cls', None)  # type: ClsType["models.MicrosoftGraphCalendarPermission"]
          error_map = {
              401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
          }
          error_map.update(kwargs.pop('error_map', {}))
          accept = "application/json"
  
          # Construct URL
          url = self.get_calendar_permissions.metadata['url']  # type: ignore
          path_format_arguments = {
              'group-id': self._serialize.url("group_id", group_id, 'str'),
              'calendarPermission-id': self._serialize.url("calendar_permission_id", calendar_permission_id, 'str'),
          }
          url = self._client.format_url(url, **path_format_arguments)
  
          # Construct parameters
          query_parameters = {}  # type: Dict[str, Any]
          if select is not None:
              query_parameters['$select'] = self._serialize.query("select", select, '[str]', div=',')
          if expand is not None:
              query_parameters['$expand'] = self._serialize.query("expand", expand, '[str]', div=',')
  
          # Construct headers
          header_parameters = {}  # type: Dict[str, Any]
          header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
  
          request = self._client.get(url, query_parameters, header_parameters)
          pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
          response = pipeline_response.http_response
  
          if response.status_code not in [200]:
              map_error(status_code=response.status_code, response=response, error_map=error_map)
              error = self._deserialize(models.OdataError, response)
              raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
  
          deserialized = self._deserialize('MicrosoftGraphCalendarPermission', pipeline_response)
  
          if cls:
              return cls(pipeline_response, deserialized, {})
  
          return deserialized
      get_calendar_permissions.metadata = {'url': '/groups/{group-id}/calendar/calendarPermissions/{calendarPermission-id}'}  # type: ignore
  
      def update_calendar_permissions(
          self,
          group_id,  # type: str
          calendar_permission_id,  # type: str
          body,  # type: "models.MicrosoftGraphCalendarPermission"
          **kwargs  # type: Any
      ):
          # type: (...) -> None
          """Update the navigation property calendarPermissions in groups.
  
          Update the navigation property calendarPermissions in groups.
  
          :param group_id: key: id of group.
          :type group_id: str
          :param calendar_permission_id: key: id of calendarPermission.
          :type calendar_permission_id: str
          :param body: New navigation property values.
          :type body: ~calendar.models.MicrosoftGraphCalendarPermission
          :keyword callable cls: A custom type or function that will be passed the direct response
          :return: None, or the result of cls(response)
          :rtype: None
          :raises: ~azure.core.exceptions.HttpResponseError
          """
          cls = kwargs.pop('cls', None)  # type: ClsType[None]
          error_map = {
              401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
          }
          error_map.update(kwargs.pop('error_map', {}))
          content_type = kwargs.pop("content_type", "application/json")
          accept = "application/json"
  
          # Construct URL
          url = self.update_calendar_permissions.metadata['url']  # type: ignore
          path_format_arguments = {
              'group-id': self._serialize.url("group_id", group_id, 'str'),
              'calendarPermission-id': self._serialize.url("calendar_permission_id", calendar_permission_id, 'str'),
          }
          url = self._client.format_url(url, **path_format_arguments)
  
          # Construct parameters
          query_parameters = {}  # type: Dict[str, Any]
  
          # Construct headers
          header_parameters = {}  # type: Dict[str, Any]
          header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str')
          header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
  
          body_content_kwargs = {}  # type: Dict[str, Any]
          body_content = self._serialize.body(body, 'MicrosoftGraphCalendarPermission')
          body_content_kwargs['content'] = body_content
          request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs)
          pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
          response = pipeline_response.http_response
  
          if response.status_code not in [204]:
              map_error(status_code=response.status_code, response=response, error_map=error_map)
              error = self._deserialize(models.OdataError, response)
              raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
  
          if cls:
              return cls(pipeline_response, None, {})
  
      update_calendar_permissions.metadata = {'url': '/groups/{group-id}/calendar/calendarPermissions/{calendarPermission-id}'}  # type: ignore
  
      def delete_calendar_permissions(
          self,
          group_id,  # type: str
          calendar_permission_id,  # type: str
          if_match=None,  # type: Optional[str]
          **kwargs  # type: Any
      ):
          # type: (...) -> None
          """Delete navigation property calendarPermissions for groups.
  
          Delete navigation property calendarPermissions for groups.
  
          :param group_id: key: id of group.
          :type group_id: str
          :param calendar_permission_id: key: id of calendarPermission.
          :type calendar_permission_id: str
          :param if_match: ETag.
          :type if_match: str
          :keyword callable cls: A custom type or function that will be passed the direct response
          :return: None, or the result of cls(response)
          :rtype: None
          :raises: ~azure.core.exceptions.HttpResponseError
          """
          cls = kwargs.pop('cls', None)  # type: ClsType[None]
          error_map = {
              401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
          }
          error_map.update(kwargs.pop('error_map', {}))
          accept = "application/json"
  
          # Construct URL
          url = self.delete_calendar_permissions.metadata['url']  # type: ignore
          path_format_arguments = {
              'group-id': self._serialize.url("group_id", group_id, 'str'),
              'calendarPermission-id': self._serialize.url("calendar_permission_id", calendar_permission_id, 'str'),
          }
          url = self._client.format_url(url, **path_format_arguments)
  
          # Construct parameters
          query_parameters = {}  # type: Dict[str, Any]
  
          # Construct headers
          header_parameters = {}  # type: Dict[str, Any]
          if if_match is not None:
              header_parameters['If-Match'] = self._serialize.header("if_match", if_match, 'str')
          header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
  
          request = self._client.delete(url, query_parameters, header_parameters)
          pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
          response = pipeline_response.http_response
  
          if response.status_code not in [204]:
              map_error(status_code=response.status_code, response=response, error_map=error_map)
              error = self._deserialize(models.OdataError, response)
              raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
  
          if cls:
              return cls(pipeline_response, None, {})
  
      delete_calendar_permissions.metadata = {'url': '/groups/{group-id}/calendar/calendarPermissions/{calendarPermission-id}'}  # type: ignore
  
      def list_calendar_view(
          self,
          group_id,  # type: str
          start_date_time,  # type: str
          end_date_time,  # type: str
          orderby=None,  # type: Optional[List[Union[str, "models.Enum22"]]]
          select=None,  # type: Optional[List[Union[str, "models.Get9ItemsItem"]]]
          expand=None,  # type: Optional[List[Union[str, "models.Get10ItemsItem"]]]
          **kwargs  # type: Any
      ):
          # type: (...) -> Iterable["models.CollectionOfEvent"]
          """Get calendarView from groups.
  
          Get calendarView from groups.
  
          :param group_id: key: id of group.
          :type group_id: str
          :param start_date_time: The start date and time of the time range, represented in ISO 8601
           format. For example, 2019-11-08T19:00:00-08:00.
          :type start_date_time: str
          :param end_date_time: The end date and time of the time range, represented in ISO 8601 format.
           For example, 2019-11-08T20:00:00-08:00.
          :type end_date_time: str
          :param orderby: Order items by property values.
          :type orderby: list[str or ~calendar.models.Enum22]
          :param select: Select properties to be returned.
          :type select: list[str or ~calendar.models.Get9ItemsItem]
          :param expand: Expand related entities.
          :type expand: list[str or ~calendar.models.Get10ItemsItem]
          :keyword callable cls: A custom type or function that will be passed the direct response
          :return: An iterator like instance of either CollectionOfEvent or the result of cls(response)
          :rtype: ~azure.core.paging.ItemPaged[~calendar.models.CollectionOfEvent]
          :raises: ~azure.core.exceptions.HttpResponseError
          """
          cls = kwargs.pop('cls', None)  # type: ClsType["models.CollectionOfEvent"]
          error_map = {
              401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
          }
          error_map.update(kwargs.pop('error_map', {}))
          accept = "application/json"
  
          def prepare_request(next_link=None):
              # Construct headers
              header_parameters = {}  # type: Dict[str, Any]
              header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
  
              if not next_link:
                  # Construct URL
                  url = self.list_calendar_view.metadata['url']  # type: ignore
                  path_format_arguments = {
                      'group-id': self._serialize.url("group_id", group_id, 'str'),
                  }
                  url = self._client.format_url(url, **path_format_arguments)
                  # Construct parameters
                  query_parameters = {}  # type: Dict[str, Any]
                  query_parameters['startDateTime'] = self._serialize.query("start_date_time", start_date_time, 'str')
                  query_parameters['endDateTime'] = self._serialize.query("end_date_time", end_date_time, 'str')
                  if self._config.top is not None:
                      query_parameters['$top'] = self._serialize.query("self._config.top", self._config.top, 'int', minimum=0)
                  if self._config.skip is not None:
                      query_parameters['$skip'] = self._serialize.query("self._config.skip", self._config.skip, 'int', minimum=0)
                  if self._config.search is not None:
                      query_parameters['$search'] = self._serialize.query("self._config.search", self._config.search, 'str')
                  if self._config.filter is not None:
                      query_parameters['$filter'] = self._serialize.query("self._config.filter", self._config.filter, 'str')
                  if self._config.count is not None:
                      query_parameters['$count'] = self._serialize.query("self._config.count", self._config.count, 'bool')
                  if orderby is not None:
                      query_parameters['$orderby'] = self._serialize.query("orderby", orderby, '[str]', div=',')
                  if select is not None:
                      query_parameters['$select'] = self._serialize.query("select", select, '[str]', div=',')
                  if expand is not None:
                      query_parameters['$expand'] = self._serialize.query("expand", expand, '[str]', div=',')
  
                  request = self._client.get(url, query_parameters, header_parameters)
              else:
                  url = next_link
                  query_parameters = {}  # type: Dict[str, Any]
                  request = self._client.get(url, query_parameters, header_parameters)
              return request
  
          def extract_data(pipeline_response):
              deserialized = self._deserialize('CollectionOfEvent', pipeline_response)
              list_of_elem = deserialized.value
              if cls:
                  list_of_elem = cls(list_of_elem)
              return deserialized.odata_next_link or None, iter(list_of_elem)
  
          def get_next(next_link=None):
              request = prepare_request(next_link)
  
              pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
              response = pipeline_response.http_response
  
              if response.status_code not in [200]:
                  error = self._deserialize(models.OdataError, response)
                  map_error(status_code=response.status_code, response=response, error_map=error_map)
                  raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
  
              return pipeline_response
  
          return ItemPaged(
              get_next, extract_data
          )
      list_calendar_view.metadata = {'url': '/groups/{group-id}/calendar/calendarView'}  # type: ignore
  
      def create_calendar_view(
          self,
          group_id,  # type: str
          body,  # type: "models.MicrosoftGraphEvent"
          **kwargs  # type: Any
      ):
          # type: (...) -> "models.MicrosoftGraphEvent"
          """Create new navigation property to calendarView for groups.
  
          Create new navigation property to calendarView for groups.
  
          :param group_id: key: id of group.
          :type group_id: str
          :param body: New navigation property.
          :type body: ~calendar.models.MicrosoftGraphEvent
          :keyword callable cls: A custom type or function that will be passed the direct response
          :return: MicrosoftGraphEvent, or the result of cls(response)
          :rtype: ~calendar.models.MicrosoftGraphEvent
          :raises: ~azure.core.exceptions.HttpResponseError
          """
          cls = kwargs.pop('cls', None)  # type: ClsType["models.MicrosoftGraphEvent"]
          error_map = {
              401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
          }
          error_map.update(kwargs.pop('error_map', {}))
          content_type = kwargs.pop("content_type", "application/json")
          accept = "application/json"
  
          # Construct URL
          url = self.create_calendar_view.metadata['url']  # type: ignore
          path_format_arguments = {
              'group-id': self._serialize.url("group_id", group_id, 'str'),
          }
          url = self._client.format_url(url, **path_format_arguments)
  
          # Construct parameters
          query_parameters = {}  # type: Dict[str, Any]
  
          # Construct headers
          header_parameters = {}  # type: Dict[str, Any]
          header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str')
          header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
  
          body_content_kwargs = {}  # type: Dict[str, Any]
          body_content = self._serialize.body(body, 'MicrosoftGraphEvent')
          body_content_kwargs['content'] = body_content
          request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs)
          pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
          response = pipeline_response.http_response
  
          if response.status_code not in [201]:
              map_error(status_code=response.status_code, response=response, error_map=error_map)
              error = self._deserialize(models.OdataError, response)
              raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
  
          deserialized = self._deserialize('MicrosoftGraphEvent', pipeline_response)
  
          if cls:
              return cls(pipeline_response, deserialized, {})
  
          return deserialized
      create_calendar_view.metadata = {'url': '/groups/{group-id}/calendar/calendarView'}  # type: ignore
  
      def get_calendar_view(
          self,
          group_id,  # type: str
          event_id,  # type: str
          start_date_time,  # type: str
          end_date_time,  # type: str
          select=None,  # type: Optional[List[Union[str, "models.Get4ItemsItem"]]]
          expand=None,  # type: Optional[List[Union[str, "models.Get5ItemsItem"]]]
          **kwargs  # type: Any
      ):
          # type: (...) -> "models.MicrosoftGraphEvent"
          """Get calendarView from groups.
  
          Get calendarView from groups.
  
          :param group_id: key: id of group.
          :type group_id: str
          :param event_id: key: id of event.
          :type event_id: str
          :param start_date_time: The start date and time of the time range, represented in ISO 8601
           format. For example, 2019-11-08T19:00:00-08:00.
          :type start_date_time: str
          :param end_date_time: The end date and time of the time range, represented in ISO 8601 format.
           For example, 2019-11-08T20:00:00-08:00.
          :type end_date_time: str
          :param select: Select properties to be returned.
          :type select: list[str or ~calendar.models.Get4ItemsItem]
          :param expand: Expand related entities.
          :type expand: list[str or ~calendar.models.Get5ItemsItem]
          :keyword callable cls: A custom type or function that will be passed the direct response
          :return: MicrosoftGraphEvent, or the result of cls(response)
          :rtype: ~calendar.models.MicrosoftGraphEvent
          :raises: ~azure.core.exceptions.HttpResponseError
          """
          cls = kwargs.pop('cls', None)  # type: ClsType["models.MicrosoftGraphEvent"]
          error_map = {
              401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
          }
          error_map.update(kwargs.pop('error_map', {}))
          accept = "application/json"
  
          # Construct URL
          url = self.get_calendar_view.metadata['url']  # type: ignore
          path_format_arguments = {
              'group-id': self._serialize.url("group_id", group_id, 'str'),
              'event-id': self._serialize.url("event_id", event_id, 'str'),
          }
          url = self._client.format_url(url, **path_format_arguments)
  
          # Construct parameters
          query_parameters = {}  # type: Dict[str, Any]
          query_parameters['startDateTime'] = self._serialize.query("start_date_time", start_date_time, 'str')
          query_parameters['endDateTime'] = self._serialize.query("end_date_time", end_date_time, 'str')
          if select is not None:
              query_parameters['$select'] = self._serialize.query("select", select, '[str]', div=',')
          if expand is not None:
              query_parameters['$expand'] = self._serialize.query("expand", expand, '[str]', div=',')
  
          # Construct headers
          header_parameters = {}  # type: Dict[str, Any]
          header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
  
          request = self._client.get(url, query_parameters, header_parameters)
          pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
          response = pipeline_response.http_response
  
          if response.status_code not in [200]:
              map_error(status_code=response.status_code, response=response, error_map=error_map)
              error = self._deserialize(models.OdataError, response)
              raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
  
          deserialized = self._deserialize('MicrosoftGraphEvent', pipeline_response)
  
          if cls:
              return cls(pipeline_response, deserialized, {})
  
          return deserialized
      get_calendar_view.metadata = {'url': '/groups/{group-id}/calendar/calendarView/{event-id}'}  # type: ignore
  
      def update_calendar_view(
          self,
          group_id,  # type: str
          event_id,  # type: str
          body,  # type: "models.MicrosoftGraphEvent"
          **kwargs  # type: Any
      ):
          # type: (...) -> None
          """Update the navigation property calendarView in groups.
  
          Update the navigation property calendarView in groups.
  
          :param group_id: key: id of group.
          :type group_id: str
          :param event_id: key: id of event.
          :type event_id: str
          :param body: New navigation property values.
          :type body: ~calendar.models.MicrosoftGraphEvent
          :keyword callable cls: A custom type or function that will be passed the direct response
          :return: None, or the result of cls(response)
          :rtype: None
          :raises: ~azure.core.exceptions.HttpResponseError
          """
          cls = kwargs.pop('cls', None)  # type: ClsType[None]
          error_map = {
              401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
          }
          error_map.update(kwargs.pop('error_map', {}))
          content_type = kwargs.pop("content_type", "application/json")
          accept = "application/json"
  
          # Construct URL
          url = self.update_calendar_view.metadata['url']  # type: ignore
          path_format_arguments = {
              'group-id': self._serialize.url("group_id", group_id, 'str'),
              'event-id': self._serialize.url("event_id", event_id, 'str'),
          }
          url = self._client.format_url(url, **path_format_arguments)
  
          # Construct parameters
          query_parameters = {}  # type: Dict[str, Any]
  
          # Construct headers
          header_parameters = {}  # type: Dict[str, Any]
          header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str')
          header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
  
          body_content_kwargs = {}  # type: Dict[str, Any]
          body_content = self._serialize.body(body, 'MicrosoftGraphEvent')
          body_content_kwargs['content'] = body_content
          request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs)
          pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
          response = pipeline_response.http_response
  
          if response.status_code not in [204]:
              map_error(status_code=response.status_code, response=response, error_map=error_map)
              error = self._deserialize(models.OdataError, response)
              raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
  
          if cls:
              return cls(pipeline_response, None, {})
  
      update_calendar_view.metadata = {'url': '/groups/{group-id}/calendar/calendarView/{event-id}'}  # type: ignore
  
      def delete_calendar_view(
          self,
          group_id,  # type: str
          event_id,  # type: str
          if_match=None,  # type: Optional[str]
          **kwargs  # type: Any
      ):
          # type: (...) -> None
          """Delete navigation property calendarView for groups.
  
          Delete navigation property calendarView for groups.
  
          :param group_id: key: id of group.
          :type group_id: str
          :param event_id: key: id of event.
          :type event_id: str
          :param if_match: ETag.
          :type if_match: str
          :keyword callable cls: A custom type or function that will be passed the direct response
          :return: None, or the result of cls(response)
          :rtype: None
          :raises: ~azure.core.exceptions.HttpResponseError
          """
          cls = kwargs.pop('cls', None)  # type: ClsType[None]
          error_map = {
              401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
          }
          error_map.update(kwargs.pop('error_map', {}))
          accept = "application/json"
  
          # Construct URL
          url = self.delete_calendar_view.metadata['url']  # type: ignore
          path_format_arguments = {
              'group-id': self._serialize.url("group_id", group_id, 'str'),
              'event-id': self._serialize.url("event_id", event_id, 'str'),
          }
          url = self._client.format_url(url, **path_format_arguments)
  
          # Construct parameters
          query_parameters = {}  # type: Dict[str, Any]
  
          # Construct headers
          header_parameters = {}  # type: Dict[str, Any]
          if if_match is not None:
              header_parameters['If-Match'] = self._serialize.header("if_match", if_match, 'str')
          header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
  
          request = self._client.delete(url, query_parameters, header_parameters)
          pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
          response = pipeline_response.http_response
  
          if response.status_code not in [204]:
              map_error(status_code=response.status_code, response=response, error_map=error_map)
              error = self._deserialize(models.OdataError, response)
              raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
  
          if cls:
              return cls(pipeline_response, None, {})
  
      delete_calendar_view.metadata = {'url': '/groups/{group-id}/calendar/calendarView/{event-id}'}  # type: ignore
  
      def list_events(
          self,
          group_id,  # type: str
          orderby=None,  # type: Optional[List[Union[str, "models.Enum44"]]]
          select=None,  # type: Optional[List[Union[str, "models.Enum45"]]]
          expand=None,  # type: Optional[List[Union[str, "models.Enum46"]]]
          **kwargs  # type: Any
      ):
          # type: (...) -> Iterable["models.CollectionOfEvent1"]
          """Get events from groups.
  
          Get events from groups.
  
          :param group_id: key: id of group.
          :type group_id: str
          :param orderby: Order items by property values.
          :type orderby: list[str or ~calendar.models.Enum44]
          :param select: Select properties to be returned.
          :type select: list[str or ~calendar.models.Enum45]
          :param expand: Expand related entities.
          :type expand: list[str or ~calendar.models.Enum46]
          :keyword callable cls: A custom type or function that will be passed the direct response
          :return: An iterator like instance of either CollectionOfEvent1 or the result of cls(response)
          :rtype: ~azure.core.paging.ItemPaged[~calendar.models.CollectionOfEvent1]
          :raises: ~azure.core.exceptions.HttpResponseError
          """
          cls = kwargs.pop('cls', None)  # type: ClsType["models.CollectionOfEvent1"]
          error_map = {
              401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
          }
          error_map.update(kwargs.pop('error_map', {}))
          accept = "application/json"
  
          def prepare_request(next_link=None):
              # Construct headers
              header_parameters = {}  # type: Dict[str, Any]
              header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
  
              if not next_link:
                  # Construct URL
                  url = self.list_events.metadata['url']  # type: ignore
                  path_format_arguments = {
                      'group-id': self._serialize.url("group_id", group_id, 'str'),
                  }
                  url = self._client.format_url(url, **path_format_arguments)
                  # Construct parameters
                  query_parameters = {}  # type: Dict[str, Any]
                  if self._config.top is not None:
                      query_parameters['$top'] = self._serialize.query("self._config.top", self._config.top, 'int', minimum=0)
                  if self._config.skip is not None:
                      query_parameters['$skip'] = self._serialize.query("self._config.skip", self._config.skip, 'int', minimum=0)
                  if self._config.search is not None:
                      query_parameters['$search'] = self._serialize.query("self._config.search", self._config.search, 'str')
                  if self._config.filter is not None:
                      query_parameters['$filter'] = self._serialize.query("self._config.filter", self._config.filter, 'str')
                  if self._config.count is not None:
                      query_parameters['$count'] = self._serialize.query("self._config.count", self._config.count, 'bool')
                  if orderby is not None:
                      query_parameters['$orderby'] = self._serialize.query("orderby", orderby, '[str]', div=',')
                  if select is not None:
                      query_parameters['$select'] = self._serialize.query("select", select, '[str]', div=',')
                  if expand is not None:
                      query_parameters['$expand'] = self._serialize.query("expand", expand, '[str]', div=',')
  
                  request = self._client.get(url, query_parameters, header_parameters)
              else:
                  url = next_link
                  query_parameters = {}  # type: Dict[str, Any]
                  request = self._client.get(url, query_parameters, header_parameters)
              return request
  
          def extract_data(pipeline_response):
              deserialized = self._deserialize('CollectionOfEvent1', pipeline_response)
              list_of_elem = deserialized.value
              if cls:
                  list_of_elem = cls(list_of_elem)
              return deserialized.odata_next_link or None, iter(list_of_elem)
  
          def get_next(next_link=None):
              request = prepare_request(next_link)
  
              pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
              response = pipeline_response.http_response
  
              if response.status_code not in [200]:
                  error = self._deserialize(models.OdataError, response)
                  map_error(status_code=response.status_code, response=response, error_map=error_map)
                  raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
  
              return pipeline_response
  
          return ItemPaged(
              get_next, extract_data
          )
      list_events.metadata = {'url': '/groups/{group-id}/calendar/events'}  # type: ignore
  
      def create_events(
          self,
          group_id,  # type: str
          body,  # type: "models.MicrosoftGraphEvent"
          **kwargs  # type: Any
      ):
          # type: (...) -> "models.MicrosoftGraphEvent"
          """Create new navigation property to events for groups.
  
          Create new navigation property to events for groups.
  
          :param group_id: key: id of group.
          :type group_id: str
          :param body: New navigation property.
          :type body: ~calendar.models.MicrosoftGraphEvent
          :keyword callable cls: A custom type or function that will be passed the direct response
          :return: MicrosoftGraphEvent, or the result of cls(response)
          :rtype: ~calendar.models.MicrosoftGraphEvent
          :raises: ~azure.core.exceptions.HttpResponseError
          """
          cls = kwargs.pop('cls', None)  # type: ClsType["models.MicrosoftGraphEvent"]
          error_map = {
              401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
          }
          error_map.update(kwargs.pop('error_map', {}))
          content_type = kwargs.pop("content_type", "application/json")
          accept = "application/json"
  
          # Construct URL
          url = self.create_events.metadata['url']  # type: ignore
          path_format_arguments = {
              'group-id': self._serialize.url("group_id", group_id, 'str'),
          }
          url = self._client.format_url(url, **path_format_arguments)
  
          # Construct parameters
          query_parameters = {}  # type: Dict[str, Any]
  
          # Construct headers
          header_parameters = {}  # type: Dict[str, Any]
          header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str')
          header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
  
          body_content_kwargs = {}  # type: Dict[str, Any]
          body_content = self._serialize.body(body, 'MicrosoftGraphEvent')
          body_content_kwargs['content'] = body_content
          request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs)
          pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
          response = pipeline_response.http_response
  
          if response.status_code not in [201]:
              map_error(status_code=response.status_code, response=response, error_map=error_map)
              error = self._deserialize(models.OdataError, response)
              raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
  
          deserialized = self._deserialize('MicrosoftGraphEvent', pipeline_response)
  
          if cls:
              return cls(pipeline_response, deserialized, {})
  
          return deserialized
      create_events.metadata = {'url': '/groups/{group-id}/calendar/events'}  # type: ignore
  
      def get_events(
          self,
          group_id,  # type: str
          event_id,  # type: str
          select=None,  # type: Optional[List[Union[str, "models.Enum47"]]]
          expand=None,  # type: Optional[List[Union[str, "models.Enum48"]]]
          **kwargs  # type: Any
      ):
          # type: (...) -> "models.MicrosoftGraphEvent"
          """Get events from groups.
  
          Get events from groups.
  
          :param group_id: key: id of group.
          :type group_id: str
          :param event_id: key: id of event.
          :type event_id: str
          :param select: Select properties to be returned.
          :type select: list[str or ~calendar.models.Enum47]
          :param expand: Expand related entities.
          :type expand: list[str or ~calendar.models.Enum48]
          :keyword callable cls: A custom type or function that will be passed the direct response
          :return: MicrosoftGraphEvent, or the result of cls(response)
          :rtype: ~calendar.models.MicrosoftGraphEvent
          :raises: ~azure.core.exceptions.HttpResponseError
          """
          cls = kwargs.pop('cls', None)  # type: ClsType["models.MicrosoftGraphEvent"]
          error_map = {
              401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
          }
          error_map.update(kwargs.pop('error_map', {}))
          accept = "application/json"
  
          # Construct URL
          url = self.get_events.metadata['url']  # type: ignore
          path_format_arguments = {
              'group-id': self._serialize.url("group_id", group_id, 'str'),
              'event-id': self._serialize.url("event_id", event_id, 'str'),
          }
          url = self._client.format_url(url, **path_format_arguments)
  
          # Construct parameters
          query_parameters = {}  # type: Dict[str, Any]
          if select is not None:
              query_parameters['$select'] = self._serialize.query("select", select, '[str]', div=',')
          if expand is not None:
              query_parameters['$expand'] = self._serialize.query("expand", expand, '[str]', div=',')
  
          # Construct headers
          header_parameters = {}  # type: Dict[str, Any]
          header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
  
          request = self._client.get(url, query_parameters, header_parameters)
          pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
          response = pipeline_response.http_response
  
          if response.status_code not in [200]:
              map_error(status_code=response.status_code, response=response, error_map=error_map)
              error = self._deserialize(models.OdataError, response)
              raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
  
          deserialized = self._deserialize('MicrosoftGraphEvent', pipeline_response)
  
          if cls:
              return cls(pipeline_response, deserialized, {})
  
          return deserialized
      get_events.metadata = {'url': '/groups/{group-id}/calendar/events/{event-id}'}  # type: ignore
  
      def update_events(
          self,
          group_id,  # type: str
          event_id,  # type: str
          body,  # type: "models.MicrosoftGraphEvent"
          **kwargs  # type: Any
      ):
          # type: (...) -> None
          """Update the navigation property events in groups.
  
          Update the navigation property events in groups.
  
          :param group_id: key: id of group.
          :type group_id: str
          :param event_id: key: id of event.
          :type event_id: str
          :param body: New navigation property values.
          :type body: ~calendar.models.MicrosoftGraphEvent
          :keyword callable cls: A custom type or function that will be passed the direct response
          :return: None, or the result of cls(response)
          :rtype: None
          :raises: ~azure.core.exceptions.HttpResponseError
          """
          cls = kwargs.pop('cls', None)  # type: ClsType[None]
          error_map = {
              401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
          }
          error_map.update(kwargs.pop('error_map', {}))
          content_type = kwargs.pop("content_type", "application/json")
          accept = "application/json"
  
          # Construct URL
          url = self.update_events.metadata['url']  # type: ignore
          path_format_arguments = {
              'group-id': self._serialize.url("group_id", group_id, 'str'),
              'event-id': self._serialize.url("event_id", event_id, 'str'),
          }
          url = self._client.format_url(url, **path_format_arguments)
  
          # Construct parameters
          query_parameters = {}  # type: Dict[str, Any]
  
          # Construct headers
          header_parameters = {}  # type: Dict[str, Any]
          header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str')
          header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
  
          body_content_kwargs = {}  # type: Dict[str, Any]
          body_content = self._serialize.body(body, 'MicrosoftGraphEvent')
          body_content_kwargs['content'] = body_content
          request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs)
          pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
          response = pipeline_response.http_response
  
          if response.status_code not in [204]:
              map_error(status_code=response.status_code, response=response, error_map=error_map)
              error = self._deserialize(models.OdataError, response)
              raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
  
          if cls:
              return cls(pipeline_response, None, {})
  
      update_events.metadata = {'url': '/groups/{group-id}/calendar/events/{event-id}'}  # type: ignore
  
      def delete_events(
          self,
          group_id,  # type: str
          event_id,  # type: str
          if_match=None,  # type: Optional[str]
          **kwargs  # type: Any
      ):
          # type: (...) -> None
          """Delete navigation property events for groups.
  
          Delete navigation property events for groups.
  
          :param group_id: key: id of group.
          :type group_id: str
          :param event_id: key: id of event.
          :type event_id: str
          :param if_match: ETag.
          :type if_match: str
          :keyword callable cls: A custom type or function that will be passed the direct response
          :return: None, or the result of cls(response)
          :rtype: None
          :raises: ~azure.core.exceptions.HttpResponseError
          """
          cls = kwargs.pop('cls', None)  # type: ClsType[None]
          error_map = {
              401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
          }
          error_map.update(kwargs.pop('error_map', {}))
          accept = "application/json"
  
          # Construct URL
          url = self.delete_events.metadata['url']  # type: ignore
          path_format_arguments = {
              'group-id': self._serialize.url("group_id", group_id, 'str'),
              'event-id': self._serialize.url("event_id", event_id, 'str'),
          }
          url = self._client.format_url(url, **path_format_arguments)
  
          # Construct parameters
          query_parameters = {}  # type: Dict[str, Any]
  
          # Construct headers
          header_parameters = {}  # type: Dict[str, Any]
          if if_match is not None:
              header_parameters['If-Match'] = self._serialize.header("if_match", if_match, 'str')
          header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
  
          request = self._client.delete(url, query_parameters, header_parameters)
          pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
          response = pipeline_response.http_response
  
          if response.status_code not in [204]:
              map_error(status_code=response.status_code, response=response, error_map=error_map)
              error = self._deserialize(models.OdataError, response)
              raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
  
          if cls:
              return cls(pipeline_response, None, {})
  
      delete_events.metadata = {'url': '/groups/{group-id}/calendar/events/{event-id}'}  # type: ignore
  
      def list_multi_value_extended_properties(
          self,
          group_id,  # type: str
          orderby=None,  # type: Optional[List[Union[str, "models.Enum66"]]]
          select=None,  # type: Optional[List[Union[str, "models.Enum67"]]]
          expand=None,  # type: Optional[List[str]]
          **kwargs  # type: Any
      ):
          # type: (...) -> Iterable["models.CollectionOfMultiValueLegacyExtendedProperty1"]
          """Get multiValueExtendedProperties from groups.
  
          Get multiValueExtendedProperties from groups.
  
          :param group_id: key: id of group.
          :type group_id: str
          :param orderby: Order items by property values.
          :type orderby: list[str or ~calendar.models.Enum66]
          :param select: Select properties to be returned.
          :type select: list[str or ~calendar.models.Enum67]
          :param expand: Expand related entities.
          :type expand: list[str]
          :keyword callable cls: A custom type or function that will be passed the direct response
          :return: An iterator like instance of either CollectionOfMultiValueLegacyExtendedProperty1 or the result of cls(response)
          :rtype: ~azure.core.paging.ItemPaged[~calendar.models.CollectionOfMultiValueLegacyExtendedProperty1]
          :raises: ~azure.core.exceptions.HttpResponseError
          """
          cls = kwargs.pop('cls', None)  # type: ClsType["models.CollectionOfMultiValueLegacyExtendedProperty1"]
          error_map = {
              401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
          }
          error_map.update(kwargs.pop('error_map', {}))
          accept = "application/json"
  
          def prepare_request(next_link=None):
              # Construct headers
              header_parameters = {}  # type: Dict[str, Any]
              header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
  
              if not next_link:
                  # Construct URL
                  url = self.list_multi_value_extended_properties.metadata['url']  # type: ignore
                  path_format_arguments = {
                      'group-id': self._serialize.url("group_id", group_id, 'str'),
                  }
                  url = self._client.format_url(url, **path_format_arguments)
                  # Construct parameters
                  query_parameters = {}  # type: Dict[str, Any]
                  if self._config.top is not None:
                      query_parameters['$top'] = self._serialize.query("self._config.top", self._config.top, 'int', minimum=0)
                  if self._config.skip is not None:
                      query_parameters['$skip'] = self._serialize.query("self._config.skip", self._config.skip, 'int', minimum=0)
                  if self._config.search is not None:
                      query_parameters['$search'] = self._serialize.query("self._config.search", self._config.search, 'str')
                  if self._config.filter is not None:
                      query_parameters['$filter'] = self._serialize.query("self._config.filter", self._config.filter, 'str')
                  if self._config.count is not None:
                      query_parameters['$count'] = self._serialize.query("self._config.count", self._config.count, 'bool')
                  if orderby is not None:
                      query_parameters['$orderby'] = self._serialize.query("orderby", orderby, '[str]', div=',')
                  if select is not None:
                      query_parameters['$select'] = self._serialize.query("select", select, '[str]', div=',')
                  if expand is not None:
                      query_parameters['$expand'] = self._serialize.query("expand", expand, '[str]', div=',')
  
                  request = self._client.get(url, query_parameters, header_parameters)
              else:
                  url = next_link
                  query_parameters = {}  # type: Dict[str, Any]
                  request = self._client.get(url, query_parameters, header_parameters)
              return request
  
          def extract_data(pipeline_response):
              deserialized = self._deserialize('CollectionOfMultiValueLegacyExtendedProperty1', pipeline_response)
              list_of_elem = deserialized.value
              if cls:
                  list_of_elem = cls(list_of_elem)
              return deserialized.odata_next_link or None, iter(list_of_elem)
  
          def get_next(next_link=None):
              request = prepare_request(next_link)
  
              pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
              response = pipeline_response.http_response
  
              if response.status_code not in [200]:
                  error = self._deserialize(models.OdataError, response)
                  map_error(status_code=response.status_code, response=response, error_map=error_map)
                  raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
  
              return pipeline_response
  
          return ItemPaged(
              get_next, extract_data
          )
      list_multi_value_extended_properties.metadata = {'url': '/groups/{group-id}/calendar/multiValueExtendedProperties'}  # type: ignore
  
      def create_multi_value_extended_properties(
          self,
          group_id,  # type: str
          body,  # type: "models.MicrosoftGraphMultiValueLegacyExtendedProperty"
          **kwargs  # type: Any
      ):
          # type: (...) -> "models.MicrosoftGraphMultiValueLegacyExtendedProperty"
          """Create new navigation property to multiValueExtendedProperties for groups.
  
          Create new navigation property to multiValueExtendedProperties for groups.
  
          :param group_id: key: id of group.
          :type group_id: str
          :param body: New navigation property.
          :type body: ~calendar.models.MicrosoftGraphMultiValueLegacyExtendedProperty
          :keyword callable cls: A custom type or function that will be passed the direct response
          :return: MicrosoftGraphMultiValueLegacyExtendedProperty, or the result of cls(response)
          :rtype: ~calendar.models.MicrosoftGraphMultiValueLegacyExtendedProperty
          :raises: ~azure.core.exceptions.HttpResponseError
          """
          cls = kwargs.pop('cls', None)  # type: ClsType["models.MicrosoftGraphMultiValueLegacyExtendedProperty"]
          error_map = {
              401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
          }
          error_map.update(kwargs.pop('error_map', {}))
          content_type = kwargs.pop("content_type", "application/json")
          accept = "application/json"
  
          # Construct URL
          url = self.create_multi_value_extended_properties.metadata['url']  # type: ignore
          path_format_arguments = {
              'group-id': self._serialize.url("group_id", group_id, 'str'),
          }
          url = self._client.format_url(url, **path_format_arguments)
  
          # Construct parameters
          query_parameters = {}  # type: Dict[str, Any]
  
          # Construct headers
          header_parameters = {}  # type: Dict[str, Any]
          header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str')
          header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
  
          body_content_kwargs = {}  # type: Dict[str, Any]
          body_content = self._serialize.body(body, 'MicrosoftGraphMultiValueLegacyExtendedProperty')
          body_content_kwargs['content'] = body_content
          request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs)
          pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
          response = pipeline_response.http_response
  
          if response.status_code not in [201]:
              map_error(status_code=response.status_code, response=response, error_map=error_map)
              error = self._deserialize(models.OdataError, response)
              raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
  
          deserialized = self._deserialize('MicrosoftGraphMultiValueLegacyExtendedProperty', pipeline_response)
  
          if cls:
              return cls(pipeline_response, deserialized, {})
  
          return deserialized
      create_multi_value_extended_properties.metadata = {'url': '/groups/{group-id}/calendar/multiValueExtendedProperties'}  # type: ignore
  
      def get_multi_value_extended_properties(
          self,
          group_id,  # type: str
          multi_value_legacy_extended_property_id,  # type: str
          select=None,  # type: Optional[List[Union[str, "models.Enum68"]]]
          expand=None,  # type: Optional[List[str]]
          **kwargs  # type: Any
      ):
          # type: (...) -> "models.MicrosoftGraphMultiValueLegacyExtendedProperty"
          """Get multiValueExtendedProperties from groups.
  
          Get multiValueExtendedProperties from groups.
  
          :param group_id: key: id of group.
          :type group_id: str
          :param multi_value_legacy_extended_property_id: key: id of multiValueLegacyExtendedProperty.
          :type multi_value_legacy_extended_property_id: str
          :param select: Select properties to be returned.
          :type select: list[str or ~calendar.models.Enum68]
          :param expand: Expand related entities.
          :type expand: list[str]
          :keyword callable cls: A custom type or function that will be passed the direct response
          :return: MicrosoftGraphMultiValueLegacyExtendedProperty, or the result of cls(response)
          :rtype: ~calendar.models.MicrosoftGraphMultiValueLegacyExtendedProperty
          :raises: ~azure.core.exceptions.HttpResponseError
          """
          cls = kwargs.pop('cls', None)  # type: ClsType["models.MicrosoftGraphMultiValueLegacyExtendedProperty"]
          error_map = {
              401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
          }
          error_map.update(kwargs.pop('error_map', {}))
          accept = "application/json"
  
          # Construct URL
          url = self.get_multi_value_extended_properties.metadata['url']  # type: ignore
          path_format_arguments = {
              'group-id': self._serialize.url("group_id", group_id, 'str'),
              'multiValueLegacyExtendedProperty-id': self._serialize.url("multi_value_legacy_extended_property_id", multi_value_legacy_extended_property_id, 'str'),
          }
          url = self._client.format_url(url, **path_format_arguments)
  
          # Construct parameters
          query_parameters = {}  # type: Dict[str, Any]
          if select is not None:
              query_parameters['$select'] = self._serialize.query("select", select, '[str]', div=',')
          if expand is not None:
              query_parameters['$expand'] = self._serialize.query("expand", expand, '[str]', div=',')
  
          # Construct headers
          header_parameters = {}  # type: Dict[str, Any]
          header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
  
          request = self._client.get(url, query_parameters, header_parameters)
          pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
          response = pipeline_response.http_response
  
          if response.status_code not in [200]:
              map_error(status_code=response.status_code, response=response, error_map=error_map)
              error = self._deserialize(models.OdataError, response)
              raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
  
          deserialized = self._deserialize('MicrosoftGraphMultiValueLegacyExtendedProperty', pipeline_response)
  
          if cls:
              return cls(pipeline_response, deserialized, {})
  
          return deserialized
      get_multi_value_extended_properties.metadata = {'url': '/groups/{group-id}/calendar/multiValueExtendedProperties/{multiValueLegacyExtendedProperty-id}'}  # type: ignore
  
      def update_multi_value_extended_properties(
          self,
          group_id,  # type: str
          multi_value_legacy_extended_property_id,  # type: str
          body,  # type: "models.MicrosoftGraphMultiValueLegacyExtendedProperty"
          **kwargs  # type: Any
      ):
          # type: (...) -> None
          """Update the navigation property multiValueExtendedProperties in groups.
  
          Update the navigation property multiValueExtendedProperties in groups.
  
          :param group_id: key: id of group.
          :type group_id: str
          :param multi_value_legacy_extended_property_id: key: id of multiValueLegacyExtendedProperty.
          :type multi_value_legacy_extended_property_id: str
          :param body: New navigation property values.
          :type body: ~calendar.models.MicrosoftGraphMultiValueLegacyExtendedProperty
          :keyword callable cls: A custom type or function that will be passed the direct response
          :return: None, or the result of cls(response)
          :rtype: None
          :raises: ~azure.core.exceptions.HttpResponseError
          """
          cls = kwargs.pop('cls', None)  # type: ClsType[None]
          error_map = {
              401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
          }
          error_map.update(kwargs.pop('error_map', {}))
          content_type = kwargs.pop("content_type", "application/json")
          accept = "application/json"
  
          # Construct URL
          url = self.update_multi_value_extended_properties.metadata['url']  # type: ignore
          path_format_arguments = {
              'group-id': self._serialize.url("group_id", group_id, 'str'),
              'multiValueLegacyExtendedProperty-id': self._serialize.url("multi_value_legacy_extended_property_id", multi_value_legacy_extended_property_id, 'str'),
          }
          url = self._client.format_url(url, **path_format_arguments)
  
          # Construct parameters
          query_parameters = {}  # type: Dict[str, Any]
  
          # Construct headers
          header_parameters = {}  # type: Dict[str, Any]
          header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str')
          header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
  
          body_content_kwargs = {}  # type: Dict[str, Any]
          body_content = self._serialize.body(body, 'MicrosoftGraphMultiValueLegacyExtendedProperty')
          body_content_kwargs['content'] = body_content
          request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs)
          pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
          response = pipeline_response.http_response
  
          if response.status_code not in [204]:
              map_error(status_code=response.status_code, response=response, error_map=error_map)
              error = self._deserialize(models.OdataError, response)
              raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
  
          if cls:
              return cls(pipeline_response, None, {})
  
      update_multi_value_extended_properties.metadata = {'url': '/groups/{group-id}/calendar/multiValueExtendedProperties/{multiValueLegacyExtendedProperty-id}'}  # type: ignore
  
      def delete_multi_value_extended_properties(
          self,
          group_id,  # type: str
          multi_value_legacy_extended_property_id,  # type: str
          if_match=None,  # type: Optional[str]
          **kwargs  # type: Any
      ):
          # type: (...) -> None
          """Delete navigation property multiValueExtendedProperties for groups.
  
          Delete navigation property multiValueExtendedProperties for groups.
  
          :param group_id: key: id of group.
          :type group_id: str
          :param multi_value_legacy_extended_property_id: key: id of multiValueLegacyExtendedProperty.
          :type multi_value_legacy_extended_property_id: str
          :param if_match: ETag.
          :type if_match: str
          :keyword callable cls: A custom type or function that will be passed the direct response
          :return: None, or the result of cls(response)
          :rtype: None
          :raises: ~azure.core.exceptions.HttpResponseError
          """
          cls = kwargs.pop('cls', None)  # type: ClsType[None]
          error_map = {
              401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
          }
          error_map.update(kwargs.pop('error_map', {}))
          accept = "application/json"
  
          # Construct URL
          url = self.delete_multi_value_extended_properties.metadata['url']  # type: ignore
          path_format_arguments = {
              'group-id': self._serialize.url("group_id", group_id, 'str'),
              'multiValueLegacyExtendedProperty-id': self._serialize.url("multi_value_legacy_extended_property_id", multi_value_legacy_extended_property_id, 'str'),
          }
          url = self._client.format_url(url, **path_format_arguments)
  
          # Construct parameters
          query_parameters = {}  # type: Dict[str, Any]
  
          # Construct headers
          header_parameters = {}  # type: Dict[str, Any]
          if if_match is not None:
              header_parameters['If-Match'] = self._serialize.header("if_match", if_match, 'str')
          header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
  
          request = self._client.delete(url, query_parameters, header_parameters)
          pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
          response = pipeline_response.http_response
  
          if response.status_code not in [204]:
              map_error(status_code=response.status_code, response=response, error_map=error_map)
              error = self._deserialize(models.OdataError, response)
              raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
  
          if cls:
              return cls(pipeline_response, None, {})
  
      delete_multi_value_extended_properties.metadata = {'url': '/groups/{group-id}/calendar/multiValueExtendedProperties/{multiValueLegacyExtendedProperty-id}'}  # type: ignore
  
      def list_single_value_extended_properties(
          self,
          group_id,  # type: str
          orderby=None,  # type: Optional[List[Union[str, "models.Enum69"]]]
          select=None,  # type: Optional[List[Union[str, "models.Enum70"]]]
          expand=None,  # type: Optional[List[str]]
          **kwargs  # type: Any
      ):
          # type: (...) -> Iterable["models.CollectionOfSingleValueLegacyExtendedProperty1"]
          """Get singleValueExtendedProperties from groups.
  
          Get singleValueExtendedProperties from groups.
  
          :param group_id: key: id of group.
          :type group_id: str
          :param orderby: Order items by property values.
          :type orderby: list[str or ~calendar.models.Enum69]
          :param select: Select properties to be returned.
          :type select: list[str or ~calendar.models.Enum70]
          :param expand: Expand related entities.
          :type expand: list[str]
          :keyword callable cls: A custom type or function that will be passed the direct response
          :return: An iterator like instance of either CollectionOfSingleValueLegacyExtendedProperty1 or the result of cls(response)
          :rtype: ~azure.core.paging.ItemPaged[~calendar.models.CollectionOfSingleValueLegacyExtendedProperty1]
          :raises: ~azure.core.exceptions.HttpResponseError
          """
          cls = kwargs.pop('cls', None)  # type: ClsType["models.CollectionOfSingleValueLegacyExtendedProperty1"]
          error_map = {
              401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
          }
          error_map.update(kwargs.pop('error_map', {}))
          accept = "application/json"
  
          def prepare_request(next_link=None):
              # Construct headers
              header_parameters = {}  # type: Dict[str, Any]
              header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
  
              if not next_link:
                  # Construct URL
                  url = self.list_single_value_extended_properties.metadata['url']  # type: ignore
                  path_format_arguments = {
                      'group-id': self._serialize.url("group_id", group_id, 'str'),
                  }
                  url = self._client.format_url(url, **path_format_arguments)
                  # Construct parameters
                  query_parameters = {}  # type: Dict[str, Any]
                  if self._config.top is not None:
                      query_parameters['$top'] = self._serialize.query("self._config.top", self._config.top, 'int', minimum=0)
                  if self._config.skip is not None:
                      query_parameters['$skip'] = self._serialize.query("self._config.skip", self._config.skip, 'int', minimum=0)
                  if self._config.search is not None:
                      query_parameters['$search'] = self._serialize.query("self._config.search", self._config.search, 'str')
                  if self._config.filter is not None:
                      query_parameters['$filter'] = self._serialize.query("self._config.filter", self._config.filter, 'str')
                  if self._config.count is not None:
                      query_parameters['$count'] = self._serialize.query("self._config.count", self._config.count, 'bool')
                  if orderby is not None:
                      query_parameters['$orderby'] = self._serialize.query("orderby", orderby, '[str]', div=',')
                  if select is not None:
                      query_parameters['$select'] = self._serialize.query("select", select, '[str]', div=',')
                  if expand is not None:
                      query_parameters['$expand'] = self._serialize.query("expand", expand, '[str]', div=',')
  
                  request = self._client.get(url, query_parameters, header_parameters)
              else:
                  url = next_link
                  query_parameters = {}  # type: Dict[str, Any]
                  request = self._client.get(url, query_parameters, header_parameters)
              return request
  
          def extract_data(pipeline_response):
              deserialized = self._deserialize('CollectionOfSingleValueLegacyExtendedProperty1', pipeline_response)
              list_of_elem = deserialized.value
              if cls:
                  list_of_elem = cls(list_of_elem)
              return deserialized.odata_next_link or None, iter(list_of_elem)
  
          def get_next(next_link=None):
              request = prepare_request(next_link)
  
              pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
              response = pipeline_response.http_response
  
              if response.status_code not in [200]:
                  error = self._deserialize(models.OdataError, response)
                  map_error(status_code=response.status_code, response=response, error_map=error_map)
                  raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
  
              return pipeline_response
  
          return ItemPaged(
              get_next, extract_data
          )
      list_single_value_extended_properties.metadata = {'url': '/groups/{group-id}/calendar/singleValueExtendedProperties'}  # type: ignore
  
      def create_single_value_extended_properties(
          self,
          group_id,  # type: str
          body,  # type: "models.MicrosoftGraphSingleValueLegacyExtendedProperty"
          **kwargs  # type: Any
      ):
          # type: (...) -> "models.MicrosoftGraphSingleValueLegacyExtendedProperty"
          """Create new navigation property to singleValueExtendedProperties for groups.
  
          Create new navigation property to singleValueExtendedProperties for groups.
  
          :param group_id: key: id of group.
          :type group_id: str
          :param body: New navigation property.
          :type body: ~calendar.models.MicrosoftGraphSingleValueLegacyExtendedProperty
          :keyword callable cls: A custom type or function that will be passed the direct response
          :return: MicrosoftGraphSingleValueLegacyExtendedProperty, or the result of cls(response)
          :rtype: ~calendar.models.MicrosoftGraphSingleValueLegacyExtendedProperty
          :raises: ~azure.core.exceptions.HttpResponseError
          """
          cls = kwargs.pop('cls', None)  # type: ClsType["models.MicrosoftGraphSingleValueLegacyExtendedProperty"]
          error_map = {
              401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
          }
          error_map.update(kwargs.pop('error_map', {}))
          content_type = kwargs.pop("content_type", "application/json")
          accept = "application/json"
  
          # Construct URL
          url = self.create_single_value_extended_properties.metadata['url']  # type: ignore
          path_format_arguments = {
              'group-id': self._serialize.url("group_id", group_id, 'str'),
          }
          url = self._client.format_url(url, **path_format_arguments)
  
          # Construct parameters
          query_parameters = {}  # type: Dict[str, Any]
  
          # Construct headers
          header_parameters = {}  # type: Dict[str, Any]
          header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str')
          header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
  
          body_content_kwargs = {}  # type: Dict[str, Any]
          body_content = self._serialize.body(body, 'MicrosoftGraphSingleValueLegacyExtendedProperty')
          body_content_kwargs['content'] = body_content
          request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs)
          pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
          response = pipeline_response.http_response
  
          if response.status_code not in [201]:
              map_error(status_code=response.status_code, response=response, error_map=error_map)
              error = self._deserialize(models.OdataError, response)
              raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
  
          deserialized = self._deserialize('MicrosoftGraphSingleValueLegacyExtendedProperty', pipeline_response)
  
          if cls:
              return cls(pipeline_response, deserialized, {})
  
          return deserialized
      create_single_value_extended_properties.metadata = {'url': '/groups/{group-id}/calendar/singleValueExtendedProperties'}  # type: ignore
  
      def get_single_value_extended_properties(
          self,
          group_id,  # type: str
          single_value_legacy_extended_property_id,  # type: str
          select=None,  # type: Optional[List[Union[str, "models.Enum71"]]]
          expand=None,  # type: Optional[List[str]]
          **kwargs  # type: Any
      ):
          # type: (...) -> "models.MicrosoftGraphSingleValueLegacyExtendedProperty"
          """Get singleValueExtendedProperties from groups.
  
          Get singleValueExtendedProperties from groups.
  
          :param group_id: key: id of group.
          :type group_id: str
          :param single_value_legacy_extended_property_id: key: id of singleValueLegacyExtendedProperty.
          :type single_value_legacy_extended_property_id: str
          :param select: Select properties to be returned.
          :type select: list[str or ~calendar.models.Enum71]
          :param expand: Expand related entities.
          :type expand: list[str]
          :keyword callable cls: A custom type or function that will be passed the direct response
          :return: MicrosoftGraphSingleValueLegacyExtendedProperty, or the result of cls(response)
          :rtype: ~calendar.models.MicrosoftGraphSingleValueLegacyExtendedProperty
          :raises: ~azure.core.exceptions.HttpResponseError
          """
          cls = kwargs.pop('cls', None)  # type: ClsType["models.MicrosoftGraphSingleValueLegacyExtendedProperty"]
          error_map = {
              401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
          }
          error_map.update(kwargs.pop('error_map', {}))
          accept = "application/json"
  
          # Construct URL
          url = self.get_single_value_extended_properties.metadata['url']  # type: ignore
          path_format_arguments = {
              'group-id': self._serialize.url("group_id", group_id, 'str'),
              'singleValueLegacyExtendedProperty-id': self._serialize.url("single_value_legacy_extended_property_id", single_value_legacy_extended_property_id, 'str'),
          }
          url = self._client.format_url(url, **path_format_arguments)
  
          # Construct parameters
          query_parameters = {}  # type: Dict[str, Any]
          if select is not None:
              query_parameters['$select'] = self._serialize.query("select", select, '[str]', div=',')
          if expand is not None:
              query_parameters['$expand'] = self._serialize.query("expand", expand, '[str]', div=',')
  
          # Construct headers
          header_parameters = {}  # type: Dict[str, Any]
          header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
  
          request = self._client.get(url, query_parameters, header_parameters)
          pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
          response = pipeline_response.http_response
  
          if response.status_code not in [200]:
              map_error(status_code=response.status_code, response=response, error_map=error_map)
              error = self._deserialize(models.OdataError, response)
              raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
  
          deserialized = self._deserialize('MicrosoftGraphSingleValueLegacyExtendedProperty', pipeline_response)
  
          if cls:
              return cls(pipeline_response, deserialized, {})
  
          return deserialized
      get_single_value_extended_properties.metadata = {'url': '/groups/{group-id}/calendar/singleValueExtendedProperties/{singleValueLegacyExtendedProperty-id}'}  # type: ignore
  
      def update_single_value_extended_properties(
          self,
          group_id,  # type: str
          single_value_legacy_extended_property_id,  # type: str
          body,  # type: "models.MicrosoftGraphSingleValueLegacyExtendedProperty"
          **kwargs  # type: Any
      ):
          # type: (...) -> None
          """Update the navigation property singleValueExtendedProperties in groups.
  
          Update the navigation property singleValueExtendedProperties in groups.
  
          :param group_id: key: id of group.
          :type group_id: str
          :param single_value_legacy_extended_property_id: key: id of singleValueLegacyExtendedProperty.
          :type single_value_legacy_extended_property_id: str
          :param body: New navigation property values.
          :type body: ~calendar.models.MicrosoftGraphSingleValueLegacyExtendedProperty
          :keyword callable cls: A custom type or function that will be passed the direct response
          :return: None, or the result of cls(response)
          :rtype: None
          :raises: ~azure.core.exceptions.HttpResponseError
          """
          cls = kwargs.pop('cls', None)  # type: ClsType[None]
          error_map = {
              401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
          }
          error_map.update(kwargs.pop('error_map', {}))
          content_type = kwargs.pop("content_type", "application/json")
          accept = "application/json"
  
          # Construct URL
          url = self.update_single_value_extended_properties.metadata['url']  # type: ignore
          path_format_arguments = {
              'group-id': self._serialize.url("group_id", group_id, 'str'),
              'singleValueLegacyExtendedProperty-id': self._serialize.url("single_value_legacy_extended_property_id", single_value_legacy_extended_property_id, 'str'),
          }
          url = self._client.format_url(url, **path_format_arguments)
  
          # Construct parameters
          query_parameters = {}  # type: Dict[str, Any]
  
          # Construct headers
          header_parameters = {}  # type: Dict[str, Any]
          header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str')
          header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
  
          body_content_kwargs = {}  # type: Dict[str, Any]
          body_content = self._serialize.body(body, 'MicrosoftGraphSingleValueLegacyExtendedProperty')
          body_content_kwargs['content'] = body_content
          request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs)
          pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
          response = pipeline_response.http_response
  
          if response.status_code not in [204]:
              map_error(status_code=response.status_code, response=response, error_map=error_map)
              error = self._deserialize(models.OdataError, response)
              raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
  
          if cls:
              return cls(pipeline_response, None, {})
  
      update_single_value_extended_properties.metadata = {'url': '/groups/{group-id}/calendar/singleValueExtendedProperties/{singleValueLegacyExtendedProperty-id}'}  # type: ignore
  
      def delete_single_value_extended_properties(
          self,
          group_id,  # type: str
          single_value_legacy_extended_property_id,  # type: str
          if_match=None,  # type: Optional[str]
          **kwargs  # type: Any
      ):
          # type: (...) -> None
          """Delete navigation property singleValueExtendedProperties for groups.
  
          Delete navigation property singleValueExtendedProperties for groups.
  
          :param group_id: key: id of group.
          :type group_id: str
          :param single_value_legacy_extended_property_id: key: id of singleValueLegacyExtendedProperty.
          :type single_value_legacy_extended_property_id: str
          :param if_match: ETag.
          :type if_match: str
          :keyword callable cls: A custom type or function that will be passed the direct response
          :return: None, or the result of cls(response)
          :rtype: None
          :raises: ~azure.core.exceptions.HttpResponseError
          """
          cls = kwargs.pop('cls', None)  # type: ClsType[None]
          error_map = {
              401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
          }
          error_map.update(kwargs.pop('error_map', {}))
          accept = "application/json"
  
          # Construct URL
          url = self.delete_single_value_extended_properties.metadata['url']  # type: ignore
          path_format_arguments = {
              'group-id': self._serialize.url("group_id", group_id, 'str'),
              'singleValueLegacyExtendedProperty-id': self._serialize.url("single_value_legacy_extended_property_id", single_value_legacy_extended_property_id, 'str'),
          }
          url = self._client.format_url(url, **path_format_arguments)
  
          # Construct parameters
          query_parameters = {}  # type: Dict[str, Any]
  
          # Construct headers
          header_parameters = {}  # type: Dict[str, Any]
          if if_match is not None:
              header_parameters['If-Match'] = self._serialize.header("if_match", if_match, 'str')
          header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
  
          request = self._client.delete(url, query_parameters, header_parameters)
          pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
          response = pipeline_response.http_response
  
          if response.status_code not in [204]:
              map_error(status_code=response.status_code, response=response, error_map=error_map)
              error = self._deserialize(models.OdataError, response)
              raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
  
          if cls:
              return cls(pipeline_response, None, {})
  
      delete_single_value_extended_properties.metadata = {'url': '/groups/{group-id}/calendar/singleValueExtendedProperties/{singleValueLegacyExtendedProperty-id}'}  # type: ignore
  