Class SchemaExtensionsRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.schemaextensions.SchemaExtensionsRequestBuilder
@Generated("com.microsoft.kiota")
public class SchemaExtensionsRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the collection of schemaExtension entities.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassGet a list of schemaExtension objects in your tenant.classConfiguration for the request such as headers, query parameters, and middleware options.classConfiguration for the request such as headers, query parameters, and middleware options. -
Field Summary
Fields inherited from class com.microsoft.kiota.BaseRequestBuilder
pathParameters, requestAdapter, urlTemplate -
Constructor Summary
ConstructorsConstructorDescriptionSchemaExtensionsRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newSchemaExtensionsRequestBuilderand sets the default values.SchemaExtensionsRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newSchemaExtensionsRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionbySchemaExtensionId(String schemaExtensionId) Provides operations to manage the collection of schemaExtension entities.count()Provides operations to count the resources in the collection.get()Get a list of schemaExtension objects in your tenant.get(Consumer<SchemaExtensionsRequestBuilder.GetRequestConfiguration> requestConfiguration) Get a list of schemaExtension objects in your tenant.post(SchemaExtension body) Create a new schemaExtension definition and its associated schema extension property to extend a supporting resource type.post(SchemaExtension body, Consumer<SchemaExtensionsRequestBuilder.PostRequestConfiguration> requestConfiguration) Create a new schemaExtension definition and its associated schema extension property to extend a supporting resource type.com.microsoft.kiota.RequestInformationGet a list of schemaExtension objects in your tenant.com.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<SchemaExtensionsRequestBuilder.GetRequestConfiguration> requestConfiguration) Get a list of schemaExtension objects in your tenant.com.microsoft.kiota.RequestInformationCreate a new schemaExtension definition and its associated schema extension property to extend a supporting resource type.com.microsoft.kiota.RequestInformationtoPostRequestInformation(SchemaExtension body, Consumer<SchemaExtensionsRequestBuilder.PostRequestConfiguration> requestConfiguration) Create a new schemaExtension definition and its associated schema extension property to extend a supporting resource type.Returns a request builder with the provided arbitrary URL.
-
Constructor Details
-
SchemaExtensionsRequestBuilder
public SchemaExtensionsRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newSchemaExtensionsRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
SchemaExtensionsRequestBuilder
public SchemaExtensionsRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newSchemaExtensionsRequestBuilderand sets the default values.- Parameters:
rawUrl- The raw URL to use for the request builder.requestAdapter- The request adapter to use to execute the requests.
-
-
Method Details
-
count
Provides operations to count the resources in the collection.- Returns:
- a
CountRequestBuilder
-
bySchemaExtensionId
@Nonnull public SchemaExtensionItemRequestBuilder bySchemaExtensionId(@Nonnull String schemaExtensionId) Provides operations to manage the collection of schemaExtension entities.- Parameters:
schemaExtensionId- The unique identifier of schemaExtension- Returns:
- a
SchemaExtensionItemRequestBuilder
-
get
Get a list of schemaExtension objects in your tenant. The schema extensions can be InDevelopment, Available, or Deprecated and includes schema extensions:- Returns:
- a
SchemaExtensionCollectionResponse - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
get
@Nullable public SchemaExtensionCollectionResponse get(@Nullable Consumer<SchemaExtensionsRequestBuilder.GetRequestConfiguration> requestConfiguration) Get a list of schemaExtension objects in your tenant. The schema extensions can be InDevelopment, Available, or Deprecated and includes schema extensions:- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
SchemaExtensionCollectionResponse - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
post
Create a new schemaExtension definition and its associated schema extension property to extend a supporting resource type. Schema extensions let you add strongly-typed custom data to a resource. The app that creates a schema extension is the owner app. Depending on the state of the extension, the owner app, and only the owner app, may update or delete the extension. See examples of how to define a schema extension that describes a training course, use the schema extension definition to create a new group with training course data, and add training course data to an existing group.- Parameters:
body- The request body- Returns:
- a
SchemaExtension - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
post
@Nullable public SchemaExtension post(@Nonnull SchemaExtension body, @Nullable Consumer<SchemaExtensionsRequestBuilder.PostRequestConfiguration> requestConfiguration) Create a new schemaExtension definition and its associated schema extension property to extend a supporting resource type. Schema extensions let you add strongly-typed custom data to a resource. The app that creates a schema extension is the owner app. Depending on the state of the extension, the owner app, and only the owner app, may update or delete the extension. See examples of how to define a schema extension that describes a training course, use the schema extension definition to create a new group with training course data, and add training course data to an existing group.- Parameters:
body- The request bodyrequestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
SchemaExtension - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation()Get a list of schemaExtension objects in your tenant. The schema extensions can be InDevelopment, Available, or Deprecated and includes schema extensions:- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<SchemaExtensionsRequestBuilder.GetRequestConfiguration> requestConfiguration) Get a list of schemaExtension objects in your tenant. The schema extensions can be InDevelopment, Available, or Deprecated and includes schema extensions:- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
RequestInformation
-
toPostRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPostRequestInformation(@Nonnull SchemaExtension body) Create a new schemaExtension definition and its associated schema extension property to extend a supporting resource type. Schema extensions let you add strongly-typed custom data to a resource. The app that creates a schema extension is the owner app. Depending on the state of the extension, the owner app, and only the owner app, may update or delete the extension. See examples of how to define a schema extension that describes a training course, use the schema extension definition to create a new group with training course data, and add training course data to an existing group.- Parameters:
body- The request body- Returns:
- a
RequestInformation
-
toPostRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPostRequestInformation(@Nonnull SchemaExtension body, @Nullable Consumer<SchemaExtensionsRequestBuilder.PostRequestConfiguration> requestConfiguration) Create a new schemaExtension definition and its associated schema extension property to extend a supporting resource type. Schema extensions let you add strongly-typed custom data to a resource. The app that creates a schema extension is the owner app. Depending on the state of the extension, the owner app, and only the owner app, may update or delete the extension. See examples of how to define a schema extension that describes a training course, use the schema extension definition to create a new group with training course data, and add training course data to an existing group.- Parameters:
body- The request bodyrequestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
RequestInformation
-
withUrl
Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.- Parameters:
rawUrl- The raw URL to use for the request builder.- Returns:
- a
SchemaExtensionsRequestBuilder
-