microsoftgraph / msgraph-metadata

Microsoft Graph metadata captured and used for generating client library code files.
https://graph.microsoft.com
MIT License
105 stars 33 forks source link

Premium APIs don't have the annotations for model=A or model=B #532

Open sebastienlevert opened 11 months ago

sebastienlevert commented 11 months ago

Metered APIs are now used on Microsoft Graph and we don't have indication in our metadata that they are. This has a direct impact on the usage of our SDKs as it's impossible to leverage metered APIs using our provides libraries.

https://learn.microsoft.com/en-us/graph/metered-api-list

More endpoints are underway and might get added to these endpoints.

baywet commented 11 months ago

the following elements need that annotation

  1. GetAllMessages: annotation is already present but seems to be ignored. Maybe we should open an issue on YOKO for that?

  2. Any message collection navigation property: missing today, only needed for PATCH, but it's ok to have it on the collection and for other operations

  3. Call transcript and recording content and metadataContent properties: missing today.

<Annotation Term="Org.OData.Capabilities.V1.OperationRestrictions">
          <Record>
            <PropertyValue Property="CustomQueryOptions">
              <Collection>
                <Record>
                  <PropertyValue Property="Name" String="model" />
                  <PropertyValue Property="Description" String="The payment model for the API" />
                  <PropertyValue Property="Required" Bool="false" />
                </Record>
              </Collection>
            </PropertyValue>
          </Record>
        </Annotation>