-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing powershell commands for complex APIs #465
Comments
Just got a few things I need clarity on here: Taking a look at this path:
The question would be, are we expecting to expand into the children of a base type entity here? The child here being We currently do expand into the properties (structural and navigation) of the parent (base type) of the entity type in other scenarios. For example: Given the path: |
Here's another question regarding the path:
However we cannot expand into the entity type of this complex property. We only expand containment navigation properties.
Doc. reference Hence this path is not feasible: /identity/authenticationEventsFlows/{authenticationEventsFlow-id}/conditions/applications Thoughts? |
@irvinesunday I'm not sure I understand your comment about poor API design. Looking at this path with the metadata
for each segment we get:
Which to me respects OData semantics, type cast segments are added to navigation properties so properties of the cast type can be accessed. We're never accessing a property from the base type after a type cast segment. Did I miss anything? |
From the above clarification, to achieve the expected paths below:
The below annotations will need to be added: <NavigationProperty Name="authenticationEventsFlows" Type="Collection(graph.authenticationEventsFlow)" ContainsTarget="true">
<Annotation Term="Org.OData.Validation.V1.DerivedTypeConstraint">
<Collection>
<String>microsoft.graph.externalUsersSelfServiceSignUpEventsFlow</String>
</Collection>
</Annotation>
</NavigationProperty> <EntityType Name="externalUsersSelfServiceSignUpEventsFlow" BaseType="graph.authenticationEventsFlow">
<Property Name="onAttributeCollection" Type="graph.onAttributeCollectionHandler">
<Annotation Term="Org.OData.Validation.V1.DerivedTypeConstraint">
<Collection>
<String>microsoft.graph.onAttributeCollectionExternalUsersSelfServiceSignUp</String>
</Collection>
</Annotation>
<Annotation Term="Org.OData.Capabilities.V1.ReadRestrictions">
<Record>
<PropertyValue Property="Readable" Bool="true" />
</Record>
</Annotation>
</Property>
<Property Name="onAuthenticationMethodLoadStart" Type="graph.onAuthenticationMethodLoadStartHandler">
<Annotation Term="Org.OData.Validation.V1.DerivedTypeConstraint">
<Collection>
<String>microsoft.graph.onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp</String>
</Collection>
</Annotation>
<Annotation Term="Org.OData.Capabilities.V1.ReadRestrictions">
<Record>
<PropertyValue Property="Readable" Bool="true" />
</Record>
</Annotation>
</Property>
</EntityType> <ComplexType Name="onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp" BaseType="graph.onAuthenticationMethodLoadStartHandler">
<NavigationProperty Name="identityProviders" Type="Collection(graph.identityProviderBase)">
<Annotation Term="Org.OData.Capabilities.V1.NavigationRestrictions">
<Record>
<PropertyValue Property="Referenceable" Bool="true" />
</Record>
</Annotation>
</NavigationProperty>
</ComplexType> The conversion lib will also need to be updated to retrieve complex properties of derived types. This issue will track this work: microsoft/OpenAPI.NET.OData#437 |
Re-opening issue as 3 of the mentioned APIs are still not yet completed. |
Hello @aimalpan Thank you for reporting your concern. If you report this issue in the Microsoft Q&A forum, it will get routed to the appropriate team for them to triage. |
Hi, powershell commands for the below APIs are missing in our documentation here: https://learn.microsoft.com/en-us/graph/api/resources/authenticationeventsflow?view=graph-rest-beta
Under Userflows for Azure AD for customers (Preview):
Attaching the screenshots for clarity:
Could you please help generate the powershell commands for the one missing and also make sure that the example from HTTPs is translated as well?
The text was updated successfully, but these errors were encountered: