Delete /betaSDK/sites package.
This commit is contained in:
parent
50da437421
commit
e51f654e46
@ -1,80 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
|
||||||
)
|
|
||||||
|
|
||||||
// AddPostRequestBody provides operations to call the add method.
|
|
||||||
type AddPostRequestBody struct {
|
|
||||||
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
||||||
additionalData map[string]interface{}
|
|
||||||
// The value property
|
|
||||||
value []ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.Siteable
|
|
||||||
}
|
|
||||||
// NewAddPostRequestBody instantiates a new AddPostRequestBody and sets the default values.
|
|
||||||
func NewAddPostRequestBody()(*AddPostRequestBody) {
|
|
||||||
m := &AddPostRequestBody{
|
|
||||||
}
|
|
||||||
m.SetAdditionalData(make(map[string]interface{}));
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// CreateAddPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
|
||||||
func CreateAddPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
|
||||||
return NewAddPostRequestBody(), nil
|
|
||||||
}
|
|
||||||
// GetAdditionalData gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
||||||
func (m *AddPostRequestBody) GetAdditionalData()(map[string]interface{}) {
|
|
||||||
return m.additionalData
|
|
||||||
}
|
|
||||||
// GetFieldDeserializers the deserialization information for the current model
|
|
||||||
func (m *AddPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
|
||||||
res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
|
|
||||||
res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
|
||||||
val, err := n.GetCollectionOfObjectValues(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.CreateSiteFromDiscriminatorValue)
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if val != nil {
|
|
||||||
res := make([]ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.Siteable, len(val))
|
|
||||||
for i, v := range val {
|
|
||||||
res[i] = v.(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.Siteable)
|
|
||||||
}
|
|
||||||
m.SetValue(res)
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
return res
|
|
||||||
}
|
|
||||||
// GetValue gets the value property value. The value property
|
|
||||||
func (m *AddPostRequestBody) GetValue()([]ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.Siteable) {
|
|
||||||
return m.value
|
|
||||||
}
|
|
||||||
// Serialize serializes information the current object
|
|
||||||
func (m *AddPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
|
||||||
if m.GetValue() != nil {
|
|
||||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue()))
|
|
||||||
for i, v := range m.GetValue() {
|
|
||||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
|
||||||
}
|
|
||||||
err := writer.WriteCollectionOfObjectValues("value", cast)
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
{
|
|
||||||
err := writer.WriteAdditionalData(m.GetAdditionalData())
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
||||||
func (m *AddPostRequestBody) SetAdditionalData(value map[string]interface{})() {
|
|
||||||
m.additionalData = value
|
|
||||||
}
|
|
||||||
// SetValue sets the value property value. The value property
|
|
||||||
func (m *AddPostRequestBody) SetValue(value []ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.Siteable)() {
|
|
||||||
m.value = value
|
|
||||||
}
|
|
||||||
@ -1,14 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
|
||||||
)
|
|
||||||
|
|
||||||
// AddPostRequestBodyable
|
|
||||||
type AddPostRequestBodyable interface {
|
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
|
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
|
||||||
GetValue()([]ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.Siteable)
|
|
||||||
SetValue(value []ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.Siteable)()
|
|
||||||
}
|
|
||||||
@ -1,79 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
|
|
||||||
i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models/odataerrors"
|
|
||||||
)
|
|
||||||
|
|
||||||
// AddRequestBuilder provides operations to call the add method.
|
|
||||||
type AddRequestBuilder struct {
|
|
||||||
// Path parameters for the request
|
|
||||||
pathParameters map[string]string
|
|
||||||
// The request adapter to use to execute the requests.
|
|
||||||
requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter
|
|
||||||
// Url template to use to build the URL for the current request builder
|
|
||||||
urlTemplate string
|
|
||||||
}
|
|
||||||
// AddRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
|
|
||||||
type AddRequestBuilderPostRequestConfiguration struct {
|
|
||||||
// Request headers
|
|
||||||
Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
|
|
||||||
// Request options
|
|
||||||
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
|
|
||||||
}
|
|
||||||
// NewAddRequestBuilderInternal instantiates a new AddRequestBuilder and sets the default values.
|
|
||||||
func NewAddRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*AddRequestBuilder) {
|
|
||||||
m := &AddRequestBuilder{
|
|
||||||
}
|
|
||||||
m.urlTemplate = "{+baseurl}/sites/microsoft.graph.add";
|
|
||||||
urlTplParams := make(map[string]string)
|
|
||||||
for idx, item := range pathParameters {
|
|
||||||
urlTplParams[idx] = item
|
|
||||||
}
|
|
||||||
m.pathParameters = urlTplParams;
|
|
||||||
m.requestAdapter = requestAdapter;
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// NewAddRequestBuilder instantiates a new AddRequestBuilder and sets the default values.
|
|
||||||
func NewAddRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*AddRequestBuilder) {
|
|
||||||
urlParams := make(map[string]string)
|
|
||||||
urlParams["request-raw-url"] = rawUrl
|
|
||||||
return NewAddRequestBuilderInternal(urlParams, requestAdapter)
|
|
||||||
}
|
|
||||||
// CreatePostRequestInformation follow a user's site or multiple sites.
|
|
||||||
func (m *AddRequestBuilder) CreatePostRequestInformation(ctx context.Context, body AddPostRequestBodyable, requestConfiguration *AddRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
|
|
||||||
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation()
|
|
||||||
requestInfo.UrlTemplate = m.urlTemplate
|
|
||||||
requestInfo.PathParameters = m.pathParameters
|
|
||||||
requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST
|
|
||||||
requestInfo.Headers.Add("Accept", "application/json")
|
|
||||||
requestInfo.SetContentFromParsable(ctx, m.requestAdapter, "application/json", body)
|
|
||||||
if requestConfiguration != nil {
|
|
||||||
requestInfo.Headers.AddAll(requestConfiguration.Headers)
|
|
||||||
requestInfo.AddRequestOptions(requestConfiguration.Options)
|
|
||||||
}
|
|
||||||
return requestInfo, nil
|
|
||||||
}
|
|
||||||
// Post follow a user's site or multiple sites.
|
|
||||||
// [Find more info here]
|
|
||||||
//
|
|
||||||
// [Find more info here]: https://docs.microsoft.com/graph/api/site-follow?view=graph-rest-1.0
|
|
||||||
func (m *AddRequestBuilder) Post(ctx context.Context, body AddPostRequestBodyable, requestConfiguration *AddRequestBuilderPostRequestConfiguration)(AddResponseable, error) {
|
|
||||||
requestInfo, err := m.CreatePostRequestInformation(ctx, body, requestConfiguration);
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
|
|
||||||
"4XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
"5XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
}
|
|
||||||
res, err := m.requestAdapter.SendAsync(ctx, requestInfo, CreateAddResponseFromDiscriminatorValue, errorMapping)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if res == nil {
|
|
||||||
return nil, nil
|
|
||||||
}
|
|
||||||
return res.(AddResponseable), nil
|
|
||||||
}
|
|
||||||
@ -1,69 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
|
||||||
)
|
|
||||||
|
|
||||||
// AddResponse provides operations to call the add method.
|
|
||||||
type AddResponse struct {
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.BaseCollectionPaginationCountResponse
|
|
||||||
// The value property
|
|
||||||
value []ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.Siteable
|
|
||||||
}
|
|
||||||
// NewAddResponse instantiates a new AddResponse and sets the default values.
|
|
||||||
func NewAddResponse()(*AddResponse) {
|
|
||||||
m := &AddResponse{
|
|
||||||
BaseCollectionPaginationCountResponse: *ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.NewBaseCollectionPaginationCountResponse(),
|
|
||||||
}
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// CreateAddResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
|
||||||
func CreateAddResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
|
||||||
return NewAddResponse(), nil
|
|
||||||
}
|
|
||||||
// GetFieldDeserializers the deserialization information for the current model
|
|
||||||
func (m *AddResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
|
||||||
res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers()
|
|
||||||
res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
|
||||||
val, err := n.GetCollectionOfObjectValues(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.CreateSiteFromDiscriminatorValue)
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if val != nil {
|
|
||||||
res := make([]ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.Siteable, len(val))
|
|
||||||
for i, v := range val {
|
|
||||||
res[i] = v.(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.Siteable)
|
|
||||||
}
|
|
||||||
m.SetValue(res)
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
return res
|
|
||||||
}
|
|
||||||
// GetValue gets the value property value. The value property
|
|
||||||
func (m *AddResponse) GetValue()([]ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.Siteable) {
|
|
||||||
return m.value
|
|
||||||
}
|
|
||||||
// Serialize serializes information the current object
|
|
||||||
func (m *AddResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
|
||||||
err := m.BaseCollectionPaginationCountResponse.Serialize(writer)
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if m.GetValue() != nil {
|
|
||||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue()))
|
|
||||||
for i, v := range m.GetValue() {
|
|
||||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
|
||||||
}
|
|
||||||
err = writer.WriteCollectionOfObjectValues("value", cast)
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
// SetValue sets the value property value. The value property
|
|
||||||
func (m *AddResponse) SetValue(value []ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.Siteable)() {
|
|
||||||
m.value = value
|
|
||||||
}
|
|
||||||
@ -1,14 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
|
||||||
)
|
|
||||||
|
|
||||||
// AddResponseable
|
|
||||||
type AddResponseable interface {
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.BaseCollectionPaginationCountResponseable
|
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
|
||||||
GetValue()([]ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.Siteable)
|
|
||||||
SetValue(value []ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.Siteable)()
|
|
||||||
}
|
|
||||||
@ -1,87 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
|
|
||||||
i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models/odataerrors"
|
|
||||||
)
|
|
||||||
|
|
||||||
// CountRequestBuilder provides operations to count the resources in the collection.
|
|
||||||
type CountRequestBuilder struct {
|
|
||||||
// Path parameters for the request
|
|
||||||
pathParameters map[string]string
|
|
||||||
// The request adapter to use to execute the requests.
|
|
||||||
requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter
|
|
||||||
// Url template to use to build the URL for the current request builder
|
|
||||||
urlTemplate string
|
|
||||||
}
|
|
||||||
// CountRequestBuilderGetQueryParameters get the number of the resource
|
|
||||||
type CountRequestBuilderGetQueryParameters struct {
|
|
||||||
// Filter items by property values
|
|
||||||
Filter *string `uriparametername:"%24filter"`
|
|
||||||
// Search items by search phrases
|
|
||||||
Search *string `uriparametername:"%24search"`
|
|
||||||
}
|
|
||||||
// CountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
|
|
||||||
type CountRequestBuilderGetRequestConfiguration struct {
|
|
||||||
// Request headers
|
|
||||||
Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
|
|
||||||
// Request options
|
|
||||||
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
|
|
||||||
// Request query parameters
|
|
||||||
QueryParameters *CountRequestBuilderGetQueryParameters
|
|
||||||
}
|
|
||||||
// NewCountRequestBuilderInternal instantiates a new CountRequestBuilder and sets the default values.
|
|
||||||
func NewCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CountRequestBuilder) {
|
|
||||||
m := &CountRequestBuilder{
|
|
||||||
}
|
|
||||||
m.urlTemplate = "{+baseurl}/sites/$count{?%24search,%24filter}";
|
|
||||||
urlTplParams := make(map[string]string)
|
|
||||||
for idx, item := range pathParameters {
|
|
||||||
urlTplParams[idx] = item
|
|
||||||
}
|
|
||||||
m.pathParameters = urlTplParams;
|
|
||||||
m.requestAdapter = requestAdapter;
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// NewCountRequestBuilder instantiates a new CountRequestBuilder and sets the default values.
|
|
||||||
func NewCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*CountRequestBuilder) {
|
|
||||||
urlParams := make(map[string]string)
|
|
||||||
urlParams["request-raw-url"] = rawUrl
|
|
||||||
return NewCountRequestBuilderInternal(urlParams, requestAdapter)
|
|
||||||
}
|
|
||||||
// CreateGetRequestInformation get the number of the resource
|
|
||||||
func (m *CountRequestBuilder) CreateGetRequestInformation(ctx context.Context, requestConfiguration *CountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
|
|
||||||
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation()
|
|
||||||
requestInfo.UrlTemplate = m.urlTemplate
|
|
||||||
requestInfo.PathParameters = m.pathParameters
|
|
||||||
requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET
|
|
||||||
requestInfo.Headers.Add("Accept", "text/plain")
|
|
||||||
if requestConfiguration != nil {
|
|
||||||
if requestConfiguration.QueryParameters != nil {
|
|
||||||
requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters))
|
|
||||||
}
|
|
||||||
requestInfo.Headers.AddAll(requestConfiguration.Headers)
|
|
||||||
requestInfo.AddRequestOptions(requestConfiguration.Options)
|
|
||||||
}
|
|
||||||
return requestInfo, nil
|
|
||||||
}
|
|
||||||
// Get get the number of the resource
|
|
||||||
func (m *CountRequestBuilder) Get(ctx context.Context, requestConfiguration *CountRequestBuilderGetRequestConfiguration)(*int32, error) {
|
|
||||||
requestInfo, err := m.CreateGetRequestInformation(ctx, requestConfiguration);
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
|
|
||||||
"4XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
"5XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
}
|
|
||||||
res, err := m.requestAdapter.SendPrimitiveAsync(ctx, requestInfo, "int32", errorMapping)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if res == nil {
|
|
||||||
return nil, nil
|
|
||||||
}
|
|
||||||
return res.(*int32), nil
|
|
||||||
}
|
|
||||||
@ -1,97 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
|
|
||||||
i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models/odataerrors"
|
|
||||||
)
|
|
||||||
|
|
||||||
// DeltaRequestBuilder provides operations to call the delta method.
|
|
||||||
type DeltaRequestBuilder struct {
|
|
||||||
// Path parameters for the request
|
|
||||||
pathParameters map[string]string
|
|
||||||
// The request adapter to use to execute the requests.
|
|
||||||
requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter
|
|
||||||
// Url template to use to build the URL for the current request builder
|
|
||||||
urlTemplate string
|
|
||||||
}
|
|
||||||
// DeltaRequestBuilderGetQueryParameters invoke function delta
|
|
||||||
type DeltaRequestBuilderGetQueryParameters struct {
|
|
||||||
// Include count of items
|
|
||||||
Count *bool `uriparametername:"%24count"`
|
|
||||||
// Filter items by property values
|
|
||||||
Filter *string `uriparametername:"%24filter"`
|
|
||||||
// Order items by property values
|
|
||||||
Orderby []string `uriparametername:"%24orderby"`
|
|
||||||
// Search items by search phrases
|
|
||||||
Search *string `uriparametername:"%24search"`
|
|
||||||
// Select properties to be returned
|
|
||||||
Select []string `uriparametername:"%24select"`
|
|
||||||
// Skip the first n items
|
|
||||||
Skip *int32 `uriparametername:"%24skip"`
|
|
||||||
// Show only the first n items
|
|
||||||
Top *int32 `uriparametername:"%24top"`
|
|
||||||
}
|
|
||||||
// DeltaRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
|
|
||||||
type DeltaRequestBuilderGetRequestConfiguration struct {
|
|
||||||
// Request headers
|
|
||||||
Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
|
|
||||||
// Request options
|
|
||||||
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
|
|
||||||
// Request query parameters
|
|
||||||
QueryParameters *DeltaRequestBuilderGetQueryParameters
|
|
||||||
}
|
|
||||||
// NewDeltaRequestBuilderInternal instantiates a new DeltaRequestBuilder and sets the default values.
|
|
||||||
func NewDeltaRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*DeltaRequestBuilder) {
|
|
||||||
m := &DeltaRequestBuilder{
|
|
||||||
}
|
|
||||||
m.urlTemplate = "{+baseurl}/sites/microsoft.graph.delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}";
|
|
||||||
urlTplParams := make(map[string]string)
|
|
||||||
for idx, item := range pathParameters {
|
|
||||||
urlTplParams[idx] = item
|
|
||||||
}
|
|
||||||
m.pathParameters = urlTplParams;
|
|
||||||
m.requestAdapter = requestAdapter;
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// NewDeltaRequestBuilder instantiates a new DeltaRequestBuilder and sets the default values.
|
|
||||||
func NewDeltaRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*DeltaRequestBuilder) {
|
|
||||||
urlParams := make(map[string]string)
|
|
||||||
urlParams["request-raw-url"] = rawUrl
|
|
||||||
return NewDeltaRequestBuilderInternal(urlParams, requestAdapter)
|
|
||||||
}
|
|
||||||
// CreateGetRequestInformation invoke function delta
|
|
||||||
func (m *DeltaRequestBuilder) CreateGetRequestInformation(ctx context.Context, requestConfiguration *DeltaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
|
|
||||||
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation()
|
|
||||||
requestInfo.UrlTemplate = m.urlTemplate
|
|
||||||
requestInfo.PathParameters = m.pathParameters
|
|
||||||
requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET
|
|
||||||
requestInfo.Headers.Add("Accept", "application/json")
|
|
||||||
if requestConfiguration != nil {
|
|
||||||
if requestConfiguration.QueryParameters != nil {
|
|
||||||
requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters))
|
|
||||||
}
|
|
||||||
requestInfo.Headers.AddAll(requestConfiguration.Headers)
|
|
||||||
requestInfo.AddRequestOptions(requestConfiguration.Options)
|
|
||||||
}
|
|
||||||
return requestInfo, nil
|
|
||||||
}
|
|
||||||
// Get invoke function delta
|
|
||||||
func (m *DeltaRequestBuilder) Get(ctx context.Context, requestConfiguration *DeltaRequestBuilderGetRequestConfiguration)(DeltaResponseable, error) {
|
|
||||||
requestInfo, err := m.CreateGetRequestInformation(ctx, requestConfiguration);
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
|
|
||||||
"4XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
"5XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
}
|
|
||||||
res, err := m.requestAdapter.SendAsync(ctx, requestInfo, CreateDeltaResponseFromDiscriminatorValue, errorMapping)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if res == nil {
|
|
||||||
return nil, nil
|
|
||||||
}
|
|
||||||
return res.(DeltaResponseable), nil
|
|
||||||
}
|
|
||||||
@ -1,69 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
|
||||||
)
|
|
||||||
|
|
||||||
// DeltaResponse provides operations to call the delta method.
|
|
||||||
type DeltaResponse struct {
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.BaseDeltaFunctionResponse
|
|
||||||
// The value property
|
|
||||||
value []ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.Siteable
|
|
||||||
}
|
|
||||||
// NewDeltaResponse instantiates a new DeltaResponse and sets the default values.
|
|
||||||
func NewDeltaResponse()(*DeltaResponse) {
|
|
||||||
m := &DeltaResponse{
|
|
||||||
BaseDeltaFunctionResponse: *ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.NewBaseDeltaFunctionResponse(),
|
|
||||||
}
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// CreateDeltaResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
|
||||||
func CreateDeltaResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
|
||||||
return NewDeltaResponse(), nil
|
|
||||||
}
|
|
||||||
// GetFieldDeserializers the deserialization information for the current model
|
|
||||||
func (m *DeltaResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
|
||||||
res := m.BaseDeltaFunctionResponse.GetFieldDeserializers()
|
|
||||||
res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
|
||||||
val, err := n.GetCollectionOfObjectValues(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.CreateSiteFromDiscriminatorValue)
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if val != nil {
|
|
||||||
res := make([]ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.Siteable, len(val))
|
|
||||||
for i, v := range val {
|
|
||||||
res[i] = v.(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.Siteable)
|
|
||||||
}
|
|
||||||
m.SetValue(res)
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
return res
|
|
||||||
}
|
|
||||||
// GetValue gets the value property value. The value property
|
|
||||||
func (m *DeltaResponse) GetValue()([]ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.Siteable) {
|
|
||||||
return m.value
|
|
||||||
}
|
|
||||||
// Serialize serializes information the current object
|
|
||||||
func (m *DeltaResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
|
||||||
err := m.BaseDeltaFunctionResponse.Serialize(writer)
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if m.GetValue() != nil {
|
|
||||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue()))
|
|
||||||
for i, v := range m.GetValue() {
|
|
||||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
|
||||||
}
|
|
||||||
err = writer.WriteCollectionOfObjectValues("value", cast)
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
// SetValue sets the value property value. The value property
|
|
||||||
func (m *DeltaResponse) SetValue(value []ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.Siteable)() {
|
|
||||||
m.value = value
|
|
||||||
}
|
|
||||||
@ -1,14 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
|
||||||
)
|
|
||||||
|
|
||||||
// DeltaResponseable
|
|
||||||
type DeltaResponseable interface {
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.BaseDeltaFunctionResponseable
|
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
|
||||||
GetValue()([]ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.Siteable)
|
|
||||||
SetValue(value []ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.Siteable)()
|
|
||||||
}
|
|
||||||
@ -1,88 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
|
||||||
i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models/odataerrors"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemAnalyticsRequestBuilder provides operations to manage the analytics property of the microsoft.graph.site entity.
|
|
||||||
type ItemAnalyticsRequestBuilder struct {
|
|
||||||
// Path parameters for the request
|
|
||||||
pathParameters map[string]string
|
|
||||||
// The request adapter to use to execute the requests.
|
|
||||||
requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter
|
|
||||||
// Url template to use to build the URL for the current request builder
|
|
||||||
urlTemplate string
|
|
||||||
}
|
|
||||||
// ItemAnalyticsRequestBuilderGetQueryParameters analytics about the view activities that took place in this site.
|
|
||||||
type ItemAnalyticsRequestBuilderGetQueryParameters struct {
|
|
||||||
// Expand related entities
|
|
||||||
Expand []string `uriparametername:"%24expand"`
|
|
||||||
// Select properties to be returned
|
|
||||||
Select []string `uriparametername:"%24select"`
|
|
||||||
}
|
|
||||||
// ItemAnalyticsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
|
|
||||||
type ItemAnalyticsRequestBuilderGetRequestConfiguration struct {
|
|
||||||
// Request headers
|
|
||||||
Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
|
|
||||||
// Request options
|
|
||||||
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
|
|
||||||
// Request query parameters
|
|
||||||
QueryParameters *ItemAnalyticsRequestBuilderGetQueryParameters
|
|
||||||
}
|
|
||||||
// NewItemAnalyticsRequestBuilderInternal instantiates a new AnalyticsRequestBuilder and sets the default values.
|
|
||||||
func NewItemAnalyticsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemAnalyticsRequestBuilder) {
|
|
||||||
m := &ItemAnalyticsRequestBuilder{
|
|
||||||
}
|
|
||||||
m.urlTemplate = "{+baseurl}/sites/{site%2Did}/analytics{?%24select,%24expand}";
|
|
||||||
urlTplParams := make(map[string]string)
|
|
||||||
for idx, item := range pathParameters {
|
|
||||||
urlTplParams[idx] = item
|
|
||||||
}
|
|
||||||
m.pathParameters = urlTplParams;
|
|
||||||
m.requestAdapter = requestAdapter;
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// NewItemAnalyticsRequestBuilder instantiates a new AnalyticsRequestBuilder and sets the default values.
|
|
||||||
func NewItemAnalyticsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemAnalyticsRequestBuilder) {
|
|
||||||
urlParams := make(map[string]string)
|
|
||||||
urlParams["request-raw-url"] = rawUrl
|
|
||||||
return NewItemAnalyticsRequestBuilderInternal(urlParams, requestAdapter)
|
|
||||||
}
|
|
||||||
// CreateGetRequestInformation analytics about the view activities that took place in this site.
|
|
||||||
func (m *ItemAnalyticsRequestBuilder) CreateGetRequestInformation(ctx context.Context, requestConfiguration *ItemAnalyticsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
|
|
||||||
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation()
|
|
||||||
requestInfo.UrlTemplate = m.urlTemplate
|
|
||||||
requestInfo.PathParameters = m.pathParameters
|
|
||||||
requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET
|
|
||||||
requestInfo.Headers.Add("Accept", "application/json")
|
|
||||||
if requestConfiguration != nil {
|
|
||||||
if requestConfiguration.QueryParameters != nil {
|
|
||||||
requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters))
|
|
||||||
}
|
|
||||||
requestInfo.Headers.AddAll(requestConfiguration.Headers)
|
|
||||||
requestInfo.AddRequestOptions(requestConfiguration.Options)
|
|
||||||
}
|
|
||||||
return requestInfo, nil
|
|
||||||
}
|
|
||||||
// Get analytics about the view activities that took place in this site.
|
|
||||||
func (m *ItemAnalyticsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemAnalyticsRequestBuilderGetRequestConfiguration)(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ItemAnalyticsable, error) {
|
|
||||||
requestInfo, err := m.CreateGetRequestInformation(ctx, requestConfiguration);
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
|
|
||||||
"4XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
"5XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
}
|
|
||||||
res, err := m.requestAdapter.SendAsync(ctx, requestInfo, ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.CreateItemAnalyticsFromDiscriminatorValue, errorMapping)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if res == nil {
|
|
||||||
return nil, nil
|
|
||||||
}
|
|
||||||
return res.(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ItemAnalyticsable), nil
|
|
||||||
}
|
|
||||||
@ -1,167 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
|
||||||
i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models/odataerrors"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemColumnsColumnDefinitionItemRequestBuilder provides operations to manage the columns property of the microsoft.graph.site entity.
|
|
||||||
type ItemColumnsColumnDefinitionItemRequestBuilder struct {
|
|
||||||
// Path parameters for the request
|
|
||||||
pathParameters map[string]string
|
|
||||||
// The request adapter to use to execute the requests.
|
|
||||||
requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter
|
|
||||||
// Url template to use to build the URL for the current request builder
|
|
||||||
urlTemplate string
|
|
||||||
}
|
|
||||||
// ItemColumnsColumnDefinitionItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
|
|
||||||
type ItemColumnsColumnDefinitionItemRequestBuilderDeleteRequestConfiguration struct {
|
|
||||||
// Request headers
|
|
||||||
Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
|
|
||||||
// Request options
|
|
||||||
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
|
|
||||||
}
|
|
||||||
// ItemColumnsColumnDefinitionItemRequestBuilderGetQueryParameters the collection of column definitions reusable across lists under this site.
|
|
||||||
type ItemColumnsColumnDefinitionItemRequestBuilderGetQueryParameters struct {
|
|
||||||
// Expand related entities
|
|
||||||
Expand []string `uriparametername:"%24expand"`
|
|
||||||
// Select properties to be returned
|
|
||||||
Select []string `uriparametername:"%24select"`
|
|
||||||
}
|
|
||||||
// ItemColumnsColumnDefinitionItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
|
|
||||||
type ItemColumnsColumnDefinitionItemRequestBuilderGetRequestConfiguration struct {
|
|
||||||
// Request headers
|
|
||||||
Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
|
|
||||||
// Request options
|
|
||||||
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
|
|
||||||
// Request query parameters
|
|
||||||
QueryParameters *ItemColumnsColumnDefinitionItemRequestBuilderGetQueryParameters
|
|
||||||
}
|
|
||||||
// ItemColumnsColumnDefinitionItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
|
|
||||||
type ItemColumnsColumnDefinitionItemRequestBuilderPatchRequestConfiguration struct {
|
|
||||||
// Request headers
|
|
||||||
Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
|
|
||||||
// Request options
|
|
||||||
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
|
|
||||||
}
|
|
||||||
// NewItemColumnsColumnDefinitionItemRequestBuilderInternal instantiates a new ColumnDefinitionItemRequestBuilder and sets the default values.
|
|
||||||
func NewItemColumnsColumnDefinitionItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemColumnsColumnDefinitionItemRequestBuilder) {
|
|
||||||
m := &ItemColumnsColumnDefinitionItemRequestBuilder{
|
|
||||||
}
|
|
||||||
m.urlTemplate = "{+baseurl}/sites/{site%2Did}/columns/{columnDefinition%2Did}{?%24select,%24expand}";
|
|
||||||
urlTplParams := make(map[string]string)
|
|
||||||
for idx, item := range pathParameters {
|
|
||||||
urlTplParams[idx] = item
|
|
||||||
}
|
|
||||||
m.pathParameters = urlTplParams;
|
|
||||||
m.requestAdapter = requestAdapter;
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// NewItemColumnsColumnDefinitionItemRequestBuilder instantiates a new ColumnDefinitionItemRequestBuilder and sets the default values.
|
|
||||||
func NewItemColumnsColumnDefinitionItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemColumnsColumnDefinitionItemRequestBuilder) {
|
|
||||||
urlParams := make(map[string]string)
|
|
||||||
urlParams["request-raw-url"] = rawUrl
|
|
||||||
return NewItemColumnsColumnDefinitionItemRequestBuilderInternal(urlParams, requestAdapter)
|
|
||||||
}
|
|
||||||
// CreateDeleteRequestInformation delete navigation property columns for sites
|
|
||||||
func (m *ItemColumnsColumnDefinitionItemRequestBuilder) CreateDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemColumnsColumnDefinitionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
|
|
||||||
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation()
|
|
||||||
requestInfo.UrlTemplate = m.urlTemplate
|
|
||||||
requestInfo.PathParameters = m.pathParameters
|
|
||||||
requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE
|
|
||||||
if requestConfiguration != nil {
|
|
||||||
requestInfo.Headers.AddAll(requestConfiguration.Headers)
|
|
||||||
requestInfo.AddRequestOptions(requestConfiguration.Options)
|
|
||||||
}
|
|
||||||
return requestInfo, nil
|
|
||||||
}
|
|
||||||
// CreateGetRequestInformation the collection of column definitions reusable across lists under this site.
|
|
||||||
func (m *ItemColumnsColumnDefinitionItemRequestBuilder) CreateGetRequestInformation(ctx context.Context, requestConfiguration *ItemColumnsColumnDefinitionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
|
|
||||||
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation()
|
|
||||||
requestInfo.UrlTemplate = m.urlTemplate
|
|
||||||
requestInfo.PathParameters = m.pathParameters
|
|
||||||
requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET
|
|
||||||
requestInfo.Headers.Add("Accept", "application/json")
|
|
||||||
if requestConfiguration != nil {
|
|
||||||
if requestConfiguration.QueryParameters != nil {
|
|
||||||
requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters))
|
|
||||||
}
|
|
||||||
requestInfo.Headers.AddAll(requestConfiguration.Headers)
|
|
||||||
requestInfo.AddRequestOptions(requestConfiguration.Options)
|
|
||||||
}
|
|
||||||
return requestInfo, nil
|
|
||||||
}
|
|
||||||
// CreatePatchRequestInformation update the navigation property columns in sites
|
|
||||||
func (m *ItemColumnsColumnDefinitionItemRequestBuilder) CreatePatchRequestInformation(ctx context.Context, body ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ColumnDefinitionable, requestConfiguration *ItemColumnsColumnDefinitionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
|
|
||||||
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation()
|
|
||||||
requestInfo.UrlTemplate = m.urlTemplate
|
|
||||||
requestInfo.PathParameters = m.pathParameters
|
|
||||||
requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH
|
|
||||||
requestInfo.Headers.Add("Accept", "application/json")
|
|
||||||
requestInfo.SetContentFromParsable(ctx, m.requestAdapter, "application/json", body)
|
|
||||||
if requestConfiguration != nil {
|
|
||||||
requestInfo.Headers.AddAll(requestConfiguration.Headers)
|
|
||||||
requestInfo.AddRequestOptions(requestConfiguration.Options)
|
|
||||||
}
|
|
||||||
return requestInfo, nil
|
|
||||||
}
|
|
||||||
// Delete delete navigation property columns for sites
|
|
||||||
func (m *ItemColumnsColumnDefinitionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemColumnsColumnDefinitionItemRequestBuilderDeleteRequestConfiguration)(error) {
|
|
||||||
requestInfo, err := m.CreateDeleteRequestInformation(ctx, requestConfiguration);
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
|
|
||||||
"4XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
"5XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
}
|
|
||||||
err = m.requestAdapter.SendNoContentAsync(ctx, requestInfo, errorMapping)
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
// Get the collection of column definitions reusable across lists under this site.
|
|
||||||
func (m *ItemColumnsColumnDefinitionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemColumnsColumnDefinitionItemRequestBuilderGetRequestConfiguration)(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ColumnDefinitionable, error) {
|
|
||||||
requestInfo, err := m.CreateGetRequestInformation(ctx, requestConfiguration);
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
|
|
||||||
"4XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
"5XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
}
|
|
||||||
res, err := m.requestAdapter.SendAsync(ctx, requestInfo, ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.CreateColumnDefinitionFromDiscriminatorValue, errorMapping)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if res == nil {
|
|
||||||
return nil, nil
|
|
||||||
}
|
|
||||||
return res.(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ColumnDefinitionable), nil
|
|
||||||
}
|
|
||||||
// Patch update the navigation property columns in sites
|
|
||||||
func (m *ItemColumnsColumnDefinitionItemRequestBuilder) Patch(ctx context.Context, body ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ColumnDefinitionable, requestConfiguration *ItemColumnsColumnDefinitionItemRequestBuilderPatchRequestConfiguration)(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ColumnDefinitionable, error) {
|
|
||||||
requestInfo, err := m.CreatePatchRequestInformation(ctx, body, requestConfiguration);
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
|
|
||||||
"4XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
"5XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
}
|
|
||||||
res, err := m.requestAdapter.SendAsync(ctx, requestInfo, ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.CreateColumnDefinitionFromDiscriminatorValue, errorMapping)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if res == nil {
|
|
||||||
return nil, nil
|
|
||||||
}
|
|
||||||
return res.(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ColumnDefinitionable), nil
|
|
||||||
}
|
|
||||||
// SourceColumn provides operations to manage the sourceColumn property of the microsoft.graph.columnDefinition entity.
|
|
||||||
func (m *ItemColumnsColumnDefinitionItemRequestBuilder) SourceColumn()(*ItemColumnsItemSourceColumnRequestBuilder) {
|
|
||||||
return NewItemColumnsItemSourceColumnRequestBuilderInternal(m.pathParameters, m.requestAdapter);
|
|
||||||
}
|
|
||||||
@ -1,87 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
|
|
||||||
i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models/odataerrors"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemColumnsCountRequestBuilder provides operations to count the resources in the collection.
|
|
||||||
type ItemColumnsCountRequestBuilder struct {
|
|
||||||
// Path parameters for the request
|
|
||||||
pathParameters map[string]string
|
|
||||||
// The request adapter to use to execute the requests.
|
|
||||||
requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter
|
|
||||||
// Url template to use to build the URL for the current request builder
|
|
||||||
urlTemplate string
|
|
||||||
}
|
|
||||||
// ItemColumnsCountRequestBuilderGetQueryParameters get the number of the resource
|
|
||||||
type ItemColumnsCountRequestBuilderGetQueryParameters struct {
|
|
||||||
// Filter items by property values
|
|
||||||
Filter *string `uriparametername:"%24filter"`
|
|
||||||
// Search items by search phrases
|
|
||||||
Search *string `uriparametername:"%24search"`
|
|
||||||
}
|
|
||||||
// ItemColumnsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
|
|
||||||
type ItemColumnsCountRequestBuilderGetRequestConfiguration struct {
|
|
||||||
// Request headers
|
|
||||||
Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
|
|
||||||
// Request options
|
|
||||||
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
|
|
||||||
// Request query parameters
|
|
||||||
QueryParameters *ItemColumnsCountRequestBuilderGetQueryParameters
|
|
||||||
}
|
|
||||||
// NewItemColumnsCountRequestBuilderInternal instantiates a new CountRequestBuilder and sets the default values.
|
|
||||||
func NewItemColumnsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemColumnsCountRequestBuilder) {
|
|
||||||
m := &ItemColumnsCountRequestBuilder{
|
|
||||||
}
|
|
||||||
m.urlTemplate = "{+baseurl}/sites/{site%2Did}/columns/$count{?%24search,%24filter}";
|
|
||||||
urlTplParams := make(map[string]string)
|
|
||||||
for idx, item := range pathParameters {
|
|
||||||
urlTplParams[idx] = item
|
|
||||||
}
|
|
||||||
m.pathParameters = urlTplParams;
|
|
||||||
m.requestAdapter = requestAdapter;
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// NewItemColumnsCountRequestBuilder instantiates a new CountRequestBuilder and sets the default values.
|
|
||||||
func NewItemColumnsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemColumnsCountRequestBuilder) {
|
|
||||||
urlParams := make(map[string]string)
|
|
||||||
urlParams["request-raw-url"] = rawUrl
|
|
||||||
return NewItemColumnsCountRequestBuilderInternal(urlParams, requestAdapter)
|
|
||||||
}
|
|
||||||
// CreateGetRequestInformation get the number of the resource
|
|
||||||
func (m *ItemColumnsCountRequestBuilder) CreateGetRequestInformation(ctx context.Context, requestConfiguration *ItemColumnsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
|
|
||||||
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation()
|
|
||||||
requestInfo.UrlTemplate = m.urlTemplate
|
|
||||||
requestInfo.PathParameters = m.pathParameters
|
|
||||||
requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET
|
|
||||||
requestInfo.Headers.Add("Accept", "text/plain")
|
|
||||||
if requestConfiguration != nil {
|
|
||||||
if requestConfiguration.QueryParameters != nil {
|
|
||||||
requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters))
|
|
||||||
}
|
|
||||||
requestInfo.Headers.AddAll(requestConfiguration.Headers)
|
|
||||||
requestInfo.AddRequestOptions(requestConfiguration.Options)
|
|
||||||
}
|
|
||||||
return requestInfo, nil
|
|
||||||
}
|
|
||||||
// Get get the number of the resource
|
|
||||||
func (m *ItemColumnsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemColumnsCountRequestBuilderGetRequestConfiguration)(*int32, error) {
|
|
||||||
requestInfo, err := m.CreateGetRequestInformation(ctx, requestConfiguration);
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
|
|
||||||
"4XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
"5XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
}
|
|
||||||
res, err := m.requestAdapter.SendPrimitiveAsync(ctx, requestInfo, "int32", errorMapping)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if res == nil {
|
|
||||||
return nil, nil
|
|
||||||
}
|
|
||||||
return res.(*int32), nil
|
|
||||||
}
|
|
||||||
@ -1,88 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
|
||||||
i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models/odataerrors"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemColumnsItemSourceColumnRequestBuilder provides operations to manage the sourceColumn property of the microsoft.graph.columnDefinition entity.
|
|
||||||
type ItemColumnsItemSourceColumnRequestBuilder struct {
|
|
||||||
// Path parameters for the request
|
|
||||||
pathParameters map[string]string
|
|
||||||
// The request adapter to use to execute the requests.
|
|
||||||
requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter
|
|
||||||
// Url template to use to build the URL for the current request builder
|
|
||||||
urlTemplate string
|
|
||||||
}
|
|
||||||
// ItemColumnsItemSourceColumnRequestBuilderGetQueryParameters the source column for content type column.
|
|
||||||
type ItemColumnsItemSourceColumnRequestBuilderGetQueryParameters struct {
|
|
||||||
// Expand related entities
|
|
||||||
Expand []string `uriparametername:"%24expand"`
|
|
||||||
// Select properties to be returned
|
|
||||||
Select []string `uriparametername:"%24select"`
|
|
||||||
}
|
|
||||||
// ItemColumnsItemSourceColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
|
|
||||||
type ItemColumnsItemSourceColumnRequestBuilderGetRequestConfiguration struct {
|
|
||||||
// Request headers
|
|
||||||
Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
|
|
||||||
// Request options
|
|
||||||
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
|
|
||||||
// Request query parameters
|
|
||||||
QueryParameters *ItemColumnsItemSourceColumnRequestBuilderGetQueryParameters
|
|
||||||
}
|
|
||||||
// NewItemColumnsItemSourceColumnRequestBuilderInternal instantiates a new SourceColumnRequestBuilder and sets the default values.
|
|
||||||
func NewItemColumnsItemSourceColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemColumnsItemSourceColumnRequestBuilder) {
|
|
||||||
m := &ItemColumnsItemSourceColumnRequestBuilder{
|
|
||||||
}
|
|
||||||
m.urlTemplate = "{+baseurl}/sites/{site%2Did}/columns/{columnDefinition%2Did}/sourceColumn{?%24select,%24expand}";
|
|
||||||
urlTplParams := make(map[string]string)
|
|
||||||
for idx, item := range pathParameters {
|
|
||||||
urlTplParams[idx] = item
|
|
||||||
}
|
|
||||||
m.pathParameters = urlTplParams;
|
|
||||||
m.requestAdapter = requestAdapter;
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// NewItemColumnsItemSourceColumnRequestBuilder instantiates a new SourceColumnRequestBuilder and sets the default values.
|
|
||||||
func NewItemColumnsItemSourceColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemColumnsItemSourceColumnRequestBuilder) {
|
|
||||||
urlParams := make(map[string]string)
|
|
||||||
urlParams["request-raw-url"] = rawUrl
|
|
||||||
return NewItemColumnsItemSourceColumnRequestBuilderInternal(urlParams, requestAdapter)
|
|
||||||
}
|
|
||||||
// CreateGetRequestInformation the source column for content type column.
|
|
||||||
func (m *ItemColumnsItemSourceColumnRequestBuilder) CreateGetRequestInformation(ctx context.Context, requestConfiguration *ItemColumnsItemSourceColumnRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
|
|
||||||
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation()
|
|
||||||
requestInfo.UrlTemplate = m.urlTemplate
|
|
||||||
requestInfo.PathParameters = m.pathParameters
|
|
||||||
requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET
|
|
||||||
requestInfo.Headers.Add("Accept", "application/json")
|
|
||||||
if requestConfiguration != nil {
|
|
||||||
if requestConfiguration.QueryParameters != nil {
|
|
||||||
requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters))
|
|
||||||
}
|
|
||||||
requestInfo.Headers.AddAll(requestConfiguration.Headers)
|
|
||||||
requestInfo.AddRequestOptions(requestConfiguration.Options)
|
|
||||||
}
|
|
||||||
return requestInfo, nil
|
|
||||||
}
|
|
||||||
// Get the source column for content type column.
|
|
||||||
func (m *ItemColumnsItemSourceColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemColumnsItemSourceColumnRequestBuilderGetRequestConfiguration)(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ColumnDefinitionable, error) {
|
|
||||||
requestInfo, err := m.CreateGetRequestInformation(ctx, requestConfiguration);
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
|
|
||||||
"4XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
"5XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
}
|
|
||||||
res, err := m.requestAdapter.SendAsync(ctx, requestInfo, ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.CreateColumnDefinitionFromDiscriminatorValue, errorMapping)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if res == nil {
|
|
||||||
return nil, nil
|
|
||||||
}
|
|
||||||
return res.(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ColumnDefinitionable), nil
|
|
||||||
}
|
|
||||||
@ -1,150 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
|
||||||
i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models/odataerrors"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemColumnsRequestBuilder provides operations to manage the columns property of the microsoft.graph.site entity.
|
|
||||||
type ItemColumnsRequestBuilder struct {
|
|
||||||
// Path parameters for the request
|
|
||||||
pathParameters map[string]string
|
|
||||||
// The request adapter to use to execute the requests.
|
|
||||||
requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter
|
|
||||||
// Url template to use to build the URL for the current request builder
|
|
||||||
urlTemplate string
|
|
||||||
}
|
|
||||||
// ItemColumnsRequestBuilderGetQueryParameters get the collection of columns, represented as [columnDefinition][columnDefinition] resources, in a [site][site].
|
|
||||||
type ItemColumnsRequestBuilderGetQueryParameters struct {
|
|
||||||
// Include count of items
|
|
||||||
Count *bool `uriparametername:"%24count"`
|
|
||||||
// Expand related entities
|
|
||||||
Expand []string `uriparametername:"%24expand"`
|
|
||||||
// Filter items by property values
|
|
||||||
Filter *string `uriparametername:"%24filter"`
|
|
||||||
// Order items by property values
|
|
||||||
Orderby []string `uriparametername:"%24orderby"`
|
|
||||||
// Search items by search phrases
|
|
||||||
Search *string `uriparametername:"%24search"`
|
|
||||||
// Select properties to be returned
|
|
||||||
Select []string `uriparametername:"%24select"`
|
|
||||||
// Skip the first n items
|
|
||||||
Skip *int32 `uriparametername:"%24skip"`
|
|
||||||
// Show only the first n items
|
|
||||||
Top *int32 `uriparametername:"%24top"`
|
|
||||||
}
|
|
||||||
// ItemColumnsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
|
|
||||||
type ItemColumnsRequestBuilderGetRequestConfiguration struct {
|
|
||||||
// Request headers
|
|
||||||
Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
|
|
||||||
// Request options
|
|
||||||
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
|
|
||||||
// Request query parameters
|
|
||||||
QueryParameters *ItemColumnsRequestBuilderGetQueryParameters
|
|
||||||
}
|
|
||||||
// ItemColumnsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
|
|
||||||
type ItemColumnsRequestBuilderPostRequestConfiguration struct {
|
|
||||||
// Request headers
|
|
||||||
Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
|
|
||||||
// Request options
|
|
||||||
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
|
|
||||||
}
|
|
||||||
// NewItemColumnsRequestBuilderInternal instantiates a new ColumnsRequestBuilder and sets the default values.
|
|
||||||
func NewItemColumnsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemColumnsRequestBuilder) {
|
|
||||||
m := &ItemColumnsRequestBuilder{
|
|
||||||
}
|
|
||||||
m.urlTemplate = "{+baseurl}/sites/{site%2Did}/columns{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}";
|
|
||||||
urlTplParams := make(map[string]string)
|
|
||||||
for idx, item := range pathParameters {
|
|
||||||
urlTplParams[idx] = item
|
|
||||||
}
|
|
||||||
m.pathParameters = urlTplParams;
|
|
||||||
m.requestAdapter = requestAdapter;
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// NewItemColumnsRequestBuilder instantiates a new ColumnsRequestBuilder and sets the default values.
|
|
||||||
func NewItemColumnsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemColumnsRequestBuilder) {
|
|
||||||
urlParams := make(map[string]string)
|
|
||||||
urlParams["request-raw-url"] = rawUrl
|
|
||||||
return NewItemColumnsRequestBuilderInternal(urlParams, requestAdapter)
|
|
||||||
}
|
|
||||||
// Count provides operations to count the resources in the collection.
|
|
||||||
func (m *ItemColumnsRequestBuilder) Count()(*ItemColumnsCountRequestBuilder) {
|
|
||||||
return NewItemColumnsCountRequestBuilderInternal(m.pathParameters, m.requestAdapter);
|
|
||||||
}
|
|
||||||
// CreateGetRequestInformation get the collection of columns, represented as [columnDefinition][columnDefinition] resources, in a [site][site].
|
|
||||||
func (m *ItemColumnsRequestBuilder) CreateGetRequestInformation(ctx context.Context, requestConfiguration *ItemColumnsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
|
|
||||||
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation()
|
|
||||||
requestInfo.UrlTemplate = m.urlTemplate
|
|
||||||
requestInfo.PathParameters = m.pathParameters
|
|
||||||
requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET
|
|
||||||
requestInfo.Headers.Add("Accept", "application/json")
|
|
||||||
if requestConfiguration != nil {
|
|
||||||
if requestConfiguration.QueryParameters != nil {
|
|
||||||
requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters))
|
|
||||||
}
|
|
||||||
requestInfo.Headers.AddAll(requestConfiguration.Headers)
|
|
||||||
requestInfo.AddRequestOptions(requestConfiguration.Options)
|
|
||||||
}
|
|
||||||
return requestInfo, nil
|
|
||||||
}
|
|
||||||
// CreatePostRequestInformation create a column for a [site][site] by specifying a [columnDefinition][columnDefinition].
|
|
||||||
func (m *ItemColumnsRequestBuilder) CreatePostRequestInformation(ctx context.Context, body ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ColumnDefinitionable, requestConfiguration *ItemColumnsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
|
|
||||||
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation()
|
|
||||||
requestInfo.UrlTemplate = m.urlTemplate
|
|
||||||
requestInfo.PathParameters = m.pathParameters
|
|
||||||
requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST
|
|
||||||
requestInfo.Headers.Add("Accept", "application/json")
|
|
||||||
requestInfo.SetContentFromParsable(ctx, m.requestAdapter, "application/json", body)
|
|
||||||
if requestConfiguration != nil {
|
|
||||||
requestInfo.Headers.AddAll(requestConfiguration.Headers)
|
|
||||||
requestInfo.AddRequestOptions(requestConfiguration.Options)
|
|
||||||
}
|
|
||||||
return requestInfo, nil
|
|
||||||
}
|
|
||||||
// Get get the collection of columns, represented as [columnDefinition][columnDefinition] resources, in a [site][site].
|
|
||||||
// [Find more info here]
|
|
||||||
//
|
|
||||||
// [Find more info here]: https://docs.microsoft.com/graph/api/site-list-columns?view=graph-rest-1.0
|
|
||||||
func (m *ItemColumnsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemColumnsRequestBuilderGetRequestConfiguration)(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ColumnDefinitionCollectionResponseable, error) {
|
|
||||||
requestInfo, err := m.CreateGetRequestInformation(ctx, requestConfiguration);
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
|
|
||||||
"4XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
"5XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
}
|
|
||||||
res, err := m.requestAdapter.SendAsync(ctx, requestInfo, ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.CreateColumnDefinitionCollectionResponseFromDiscriminatorValue, errorMapping)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if res == nil {
|
|
||||||
return nil, nil
|
|
||||||
}
|
|
||||||
return res.(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ColumnDefinitionCollectionResponseable), nil
|
|
||||||
}
|
|
||||||
// Post create a column for a [site][site] by specifying a [columnDefinition][columnDefinition].
|
|
||||||
// [Find more info here]
|
|
||||||
//
|
|
||||||
// [Find more info here]: https://docs.microsoft.com/graph/api/site-post-columns?view=graph-rest-1.0
|
|
||||||
func (m *ItemColumnsRequestBuilder) Post(ctx context.Context, body ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ColumnDefinitionable, requestConfiguration *ItemColumnsRequestBuilderPostRequestConfiguration)(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ColumnDefinitionable, error) {
|
|
||||||
requestInfo, err := m.CreatePostRequestInformation(ctx, body, requestConfiguration);
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
|
|
||||||
"4XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
"5XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
}
|
|
||||||
res, err := m.requestAdapter.SendAsync(ctx, requestInfo, ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.CreateColumnDefinitionFromDiscriminatorValue, errorMapping)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if res == nil {
|
|
||||||
return nil, nil
|
|
||||||
}
|
|
||||||
return res.(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ColumnDefinitionable), nil
|
|
||||||
}
|
|
||||||
@ -1,71 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemContentTypesAddCopyFromContentTypeHubPostRequestBody provides operations to call the addCopyFromContentTypeHub method.
|
|
||||||
type ItemContentTypesAddCopyFromContentTypeHubPostRequestBody struct {
|
|
||||||
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
||||||
additionalData map[string]interface{}
|
|
||||||
// The contentTypeId property
|
|
||||||
contentTypeId *string
|
|
||||||
}
|
|
||||||
// NewItemContentTypesAddCopyFromContentTypeHubPostRequestBody instantiates a new ItemContentTypesAddCopyFromContentTypeHubPostRequestBody and sets the default values.
|
|
||||||
func NewItemContentTypesAddCopyFromContentTypeHubPostRequestBody()(*ItemContentTypesAddCopyFromContentTypeHubPostRequestBody) {
|
|
||||||
m := &ItemContentTypesAddCopyFromContentTypeHubPostRequestBody{
|
|
||||||
}
|
|
||||||
m.SetAdditionalData(make(map[string]interface{}));
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// CreateItemContentTypesAddCopyFromContentTypeHubPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
|
||||||
func CreateItemContentTypesAddCopyFromContentTypeHubPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
|
||||||
return NewItemContentTypesAddCopyFromContentTypeHubPostRequestBody(), nil
|
|
||||||
}
|
|
||||||
// GetAdditionalData gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
||||||
func (m *ItemContentTypesAddCopyFromContentTypeHubPostRequestBody) GetAdditionalData()(map[string]interface{}) {
|
|
||||||
return m.additionalData
|
|
||||||
}
|
|
||||||
// GetContentTypeId gets the contentTypeId property value. The contentTypeId property
|
|
||||||
func (m *ItemContentTypesAddCopyFromContentTypeHubPostRequestBody) GetContentTypeId()(*string) {
|
|
||||||
return m.contentTypeId
|
|
||||||
}
|
|
||||||
// GetFieldDeserializers the deserialization information for the current model
|
|
||||||
func (m *ItemContentTypesAddCopyFromContentTypeHubPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
|
||||||
res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
|
|
||||||
res["contentTypeId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
|
||||||
val, err := n.GetStringValue()
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if val != nil {
|
|
||||||
m.SetContentTypeId(val)
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
return res
|
|
||||||
}
|
|
||||||
// Serialize serializes information the current object
|
|
||||||
func (m *ItemContentTypesAddCopyFromContentTypeHubPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
|
||||||
{
|
|
||||||
err := writer.WriteStringValue("contentTypeId", m.GetContentTypeId())
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
{
|
|
||||||
err := writer.WriteAdditionalData(m.GetAdditionalData())
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
||||||
func (m *ItemContentTypesAddCopyFromContentTypeHubPostRequestBody) SetAdditionalData(value map[string]interface{})() {
|
|
||||||
m.additionalData = value
|
|
||||||
}
|
|
||||||
// SetContentTypeId sets the contentTypeId property value. The contentTypeId property
|
|
||||||
func (m *ItemContentTypesAddCopyFromContentTypeHubPostRequestBody) SetContentTypeId(value *string)() {
|
|
||||||
m.contentTypeId = value
|
|
||||||
}
|
|
||||||
@ -1,13 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemContentTypesAddCopyFromContentTypeHubPostRequestBodyable
|
|
||||||
type ItemContentTypesAddCopyFromContentTypeHubPostRequestBodyable interface {
|
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
|
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
|
||||||
GetContentTypeId()(*string)
|
|
||||||
SetContentTypeId(value *string)()
|
|
||||||
}
|
|
||||||
@ -1,80 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
|
||||||
i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models/odataerrors"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemContentTypesAddCopyFromContentTypeHubRequestBuilder provides operations to call the addCopyFromContentTypeHub method.
|
|
||||||
type ItemContentTypesAddCopyFromContentTypeHubRequestBuilder struct {
|
|
||||||
// Path parameters for the request
|
|
||||||
pathParameters map[string]string
|
|
||||||
// The request adapter to use to execute the requests.
|
|
||||||
requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter
|
|
||||||
// Url template to use to build the URL for the current request builder
|
|
||||||
urlTemplate string
|
|
||||||
}
|
|
||||||
// ItemContentTypesAddCopyFromContentTypeHubRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
|
|
||||||
type ItemContentTypesAddCopyFromContentTypeHubRequestBuilderPostRequestConfiguration struct {
|
|
||||||
// Request headers
|
|
||||||
Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
|
|
||||||
// Request options
|
|
||||||
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
|
|
||||||
}
|
|
||||||
// NewItemContentTypesAddCopyFromContentTypeHubRequestBuilderInternal instantiates a new AddCopyFromContentTypeHubRequestBuilder and sets the default values.
|
|
||||||
func NewItemContentTypesAddCopyFromContentTypeHubRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemContentTypesAddCopyFromContentTypeHubRequestBuilder) {
|
|
||||||
m := &ItemContentTypesAddCopyFromContentTypeHubRequestBuilder{
|
|
||||||
}
|
|
||||||
m.urlTemplate = "{+baseurl}/sites/{site%2Did}/contentTypes/microsoft.graph.addCopyFromContentTypeHub";
|
|
||||||
urlTplParams := make(map[string]string)
|
|
||||||
for idx, item := range pathParameters {
|
|
||||||
urlTplParams[idx] = item
|
|
||||||
}
|
|
||||||
m.pathParameters = urlTplParams;
|
|
||||||
m.requestAdapter = requestAdapter;
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// NewItemContentTypesAddCopyFromContentTypeHubRequestBuilder instantiates a new AddCopyFromContentTypeHubRequestBuilder and sets the default values.
|
|
||||||
func NewItemContentTypesAddCopyFromContentTypeHubRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemContentTypesAddCopyFromContentTypeHubRequestBuilder) {
|
|
||||||
urlParams := make(map[string]string)
|
|
||||||
urlParams["request-raw-url"] = rawUrl
|
|
||||||
return NewItemContentTypesAddCopyFromContentTypeHubRequestBuilderInternal(urlParams, requestAdapter)
|
|
||||||
}
|
|
||||||
// CreatePostRequestInformation add or sync a copy of a published content type from the content type hub to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see getCompatibleHubContentTypes and the blog post Syntex Product Updates – August 2021.
|
|
||||||
func (m *ItemContentTypesAddCopyFromContentTypeHubRequestBuilder) CreatePostRequestInformation(ctx context.Context, body ItemContentTypesAddCopyFromContentTypeHubPostRequestBodyable, requestConfiguration *ItemContentTypesAddCopyFromContentTypeHubRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
|
|
||||||
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation()
|
|
||||||
requestInfo.UrlTemplate = m.urlTemplate
|
|
||||||
requestInfo.PathParameters = m.pathParameters
|
|
||||||
requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST
|
|
||||||
requestInfo.Headers.Add("Accept", "application/json")
|
|
||||||
requestInfo.SetContentFromParsable(ctx, m.requestAdapter, "application/json", body)
|
|
||||||
if requestConfiguration != nil {
|
|
||||||
requestInfo.Headers.AddAll(requestConfiguration.Headers)
|
|
||||||
requestInfo.AddRequestOptions(requestConfiguration.Options)
|
|
||||||
}
|
|
||||||
return requestInfo, nil
|
|
||||||
}
|
|
||||||
// Post add or sync a copy of a published content type from the content type hub to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see getCompatibleHubContentTypes and the blog post Syntex Product Updates – August 2021.
|
|
||||||
// [Find more info here]
|
|
||||||
//
|
|
||||||
// [Find more info here]: https://docs.microsoft.com/graph/api/contenttype-addcopyfromcontenttypehub?view=graph-rest-1.0
|
|
||||||
func (m *ItemContentTypesAddCopyFromContentTypeHubRequestBuilder) Post(ctx context.Context, body ItemContentTypesAddCopyFromContentTypeHubPostRequestBodyable, requestConfiguration *ItemContentTypesAddCopyFromContentTypeHubRequestBuilderPostRequestConfiguration)(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ContentTypeable, error) {
|
|
||||||
requestInfo, err := m.CreatePostRequestInformation(ctx, body, requestConfiguration);
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
|
|
||||||
"4XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
"5XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
}
|
|
||||||
res, err := m.requestAdapter.SendAsync(ctx, requestInfo, ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.CreateContentTypeFromDiscriminatorValue, errorMapping)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if res == nil {
|
|
||||||
return nil, nil
|
|
||||||
}
|
|
||||||
return res.(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ContentTypeable), nil
|
|
||||||
}
|
|
||||||
@ -1,71 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemContentTypesAddCopyPostRequestBody provides operations to call the addCopy method.
|
|
||||||
type ItemContentTypesAddCopyPostRequestBody struct {
|
|
||||||
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
||||||
additionalData map[string]interface{}
|
|
||||||
// The contentType property
|
|
||||||
contentType *string
|
|
||||||
}
|
|
||||||
// NewItemContentTypesAddCopyPostRequestBody instantiates a new ItemContentTypesAddCopyPostRequestBody and sets the default values.
|
|
||||||
func NewItemContentTypesAddCopyPostRequestBody()(*ItemContentTypesAddCopyPostRequestBody) {
|
|
||||||
m := &ItemContentTypesAddCopyPostRequestBody{
|
|
||||||
}
|
|
||||||
m.SetAdditionalData(make(map[string]interface{}));
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// CreateItemContentTypesAddCopyPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
|
||||||
func CreateItemContentTypesAddCopyPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
|
||||||
return NewItemContentTypesAddCopyPostRequestBody(), nil
|
|
||||||
}
|
|
||||||
// GetAdditionalData gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
||||||
func (m *ItemContentTypesAddCopyPostRequestBody) GetAdditionalData()(map[string]interface{}) {
|
|
||||||
return m.additionalData
|
|
||||||
}
|
|
||||||
// GetContentType gets the contentType property value. The contentType property
|
|
||||||
func (m *ItemContentTypesAddCopyPostRequestBody) GetContentType()(*string) {
|
|
||||||
return m.contentType
|
|
||||||
}
|
|
||||||
// GetFieldDeserializers the deserialization information for the current model
|
|
||||||
func (m *ItemContentTypesAddCopyPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
|
||||||
res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
|
|
||||||
res["contentType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
|
||||||
val, err := n.GetStringValue()
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if val != nil {
|
|
||||||
m.SetContentType(val)
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
return res
|
|
||||||
}
|
|
||||||
// Serialize serializes information the current object
|
|
||||||
func (m *ItemContentTypesAddCopyPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
|
||||||
{
|
|
||||||
err := writer.WriteStringValue("contentType", m.GetContentType())
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
{
|
|
||||||
err := writer.WriteAdditionalData(m.GetAdditionalData())
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
||||||
func (m *ItemContentTypesAddCopyPostRequestBody) SetAdditionalData(value map[string]interface{})() {
|
|
||||||
m.additionalData = value
|
|
||||||
}
|
|
||||||
// SetContentType sets the contentType property value. The contentType property
|
|
||||||
func (m *ItemContentTypesAddCopyPostRequestBody) SetContentType(value *string)() {
|
|
||||||
m.contentType = value
|
|
||||||
}
|
|
||||||
@ -1,13 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemContentTypesAddCopyPostRequestBodyable
|
|
||||||
type ItemContentTypesAddCopyPostRequestBodyable interface {
|
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
|
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
|
||||||
GetContentType()(*string)
|
|
||||||
SetContentType(value *string)()
|
|
||||||
}
|
|
||||||
@ -1,80 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
|
||||||
i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models/odataerrors"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemContentTypesAddCopyRequestBuilder provides operations to call the addCopy method.
|
|
||||||
type ItemContentTypesAddCopyRequestBuilder struct {
|
|
||||||
// Path parameters for the request
|
|
||||||
pathParameters map[string]string
|
|
||||||
// The request adapter to use to execute the requests.
|
|
||||||
requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter
|
|
||||||
// Url template to use to build the URL for the current request builder
|
|
||||||
urlTemplate string
|
|
||||||
}
|
|
||||||
// ItemContentTypesAddCopyRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
|
|
||||||
type ItemContentTypesAddCopyRequestBuilderPostRequestConfiguration struct {
|
|
||||||
// Request headers
|
|
||||||
Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
|
|
||||||
// Request options
|
|
||||||
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
|
|
||||||
}
|
|
||||||
// NewItemContentTypesAddCopyRequestBuilderInternal instantiates a new AddCopyRequestBuilder and sets the default values.
|
|
||||||
func NewItemContentTypesAddCopyRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemContentTypesAddCopyRequestBuilder) {
|
|
||||||
m := &ItemContentTypesAddCopyRequestBuilder{
|
|
||||||
}
|
|
||||||
m.urlTemplate = "{+baseurl}/sites/{site%2Did}/contentTypes/microsoft.graph.addCopy";
|
|
||||||
urlTplParams := make(map[string]string)
|
|
||||||
for idx, item := range pathParameters {
|
|
||||||
urlTplParams[idx] = item
|
|
||||||
}
|
|
||||||
m.pathParameters = urlTplParams;
|
|
||||||
m.requestAdapter = requestAdapter;
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// NewItemContentTypesAddCopyRequestBuilder instantiates a new AddCopyRequestBuilder and sets the default values.
|
|
||||||
func NewItemContentTypesAddCopyRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemContentTypesAddCopyRequestBuilder) {
|
|
||||||
urlParams := make(map[string]string)
|
|
||||||
urlParams["request-raw-url"] = rawUrl
|
|
||||||
return NewItemContentTypesAddCopyRequestBuilderInternal(urlParams, requestAdapter)
|
|
||||||
}
|
|
||||||
// CreatePostRequestInformation add a copy of a [content type][contentType] from a [site][site] to a [list][list].
|
|
||||||
func (m *ItemContentTypesAddCopyRequestBuilder) CreatePostRequestInformation(ctx context.Context, body ItemContentTypesAddCopyPostRequestBodyable, requestConfiguration *ItemContentTypesAddCopyRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
|
|
||||||
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation()
|
|
||||||
requestInfo.UrlTemplate = m.urlTemplate
|
|
||||||
requestInfo.PathParameters = m.pathParameters
|
|
||||||
requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST
|
|
||||||
requestInfo.Headers.Add("Accept", "application/json")
|
|
||||||
requestInfo.SetContentFromParsable(ctx, m.requestAdapter, "application/json", body)
|
|
||||||
if requestConfiguration != nil {
|
|
||||||
requestInfo.Headers.AddAll(requestConfiguration.Headers)
|
|
||||||
requestInfo.AddRequestOptions(requestConfiguration.Options)
|
|
||||||
}
|
|
||||||
return requestInfo, nil
|
|
||||||
}
|
|
||||||
// Post add a copy of a [content type][contentType] from a [site][site] to a [list][list].
|
|
||||||
// [Find more info here]
|
|
||||||
//
|
|
||||||
// [Find more info here]: https://docs.microsoft.com/graph/api/contenttype-addcopy?view=graph-rest-1.0
|
|
||||||
func (m *ItemContentTypesAddCopyRequestBuilder) Post(ctx context.Context, body ItemContentTypesAddCopyPostRequestBodyable, requestConfiguration *ItemContentTypesAddCopyRequestBuilderPostRequestConfiguration)(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ContentTypeable, error) {
|
|
||||||
requestInfo, err := m.CreatePostRequestInformation(ctx, body, requestConfiguration);
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
|
|
||||||
"4XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
"5XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
}
|
|
||||||
res, err := m.requestAdapter.SendAsync(ctx, requestInfo, ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.CreateContentTypeFromDiscriminatorValue, errorMapping)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if res == nil {
|
|
||||||
return nil, nil
|
|
||||||
}
|
|
||||||
return res.(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ContentTypeable), nil
|
|
||||||
}
|
|
||||||
@ -1,247 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
|
||||||
i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models/odataerrors"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemContentTypesContentTypeItemRequestBuilder provides operations to manage the contentTypes property of the microsoft.graph.site entity.
|
|
||||||
type ItemContentTypesContentTypeItemRequestBuilder struct {
|
|
||||||
// Path parameters for the request
|
|
||||||
pathParameters map[string]string
|
|
||||||
// The request adapter to use to execute the requests.
|
|
||||||
requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter
|
|
||||||
// Url template to use to build the URL for the current request builder
|
|
||||||
urlTemplate string
|
|
||||||
}
|
|
||||||
// ItemContentTypesContentTypeItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
|
|
||||||
type ItemContentTypesContentTypeItemRequestBuilderDeleteRequestConfiguration struct {
|
|
||||||
// Request headers
|
|
||||||
Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
|
|
||||||
// Request options
|
|
||||||
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
|
|
||||||
}
|
|
||||||
// ItemContentTypesContentTypeItemRequestBuilderGetQueryParameters the collection of content types defined for this site.
|
|
||||||
type ItemContentTypesContentTypeItemRequestBuilderGetQueryParameters struct {
|
|
||||||
// Expand related entities
|
|
||||||
Expand []string `uriparametername:"%24expand"`
|
|
||||||
// Select properties to be returned
|
|
||||||
Select []string `uriparametername:"%24select"`
|
|
||||||
}
|
|
||||||
// ItemContentTypesContentTypeItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
|
|
||||||
type ItemContentTypesContentTypeItemRequestBuilderGetRequestConfiguration struct {
|
|
||||||
// Request headers
|
|
||||||
Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
|
|
||||||
// Request options
|
|
||||||
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
|
|
||||||
// Request query parameters
|
|
||||||
QueryParameters *ItemContentTypesContentTypeItemRequestBuilderGetQueryParameters
|
|
||||||
}
|
|
||||||
// ItemContentTypesContentTypeItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
|
|
||||||
type ItemContentTypesContentTypeItemRequestBuilderPatchRequestConfiguration struct {
|
|
||||||
// Request headers
|
|
||||||
Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
|
|
||||||
// Request options
|
|
||||||
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
|
|
||||||
}
|
|
||||||
// AssociateWithHubSites provides operations to call the associateWithHubSites method.
|
|
||||||
func (m *ItemContentTypesContentTypeItemRequestBuilder) AssociateWithHubSites()(*ItemContentTypesItemAssociateWithHubSitesRequestBuilder) {
|
|
||||||
return NewItemContentTypesItemAssociateWithHubSitesRequestBuilderInternal(m.pathParameters, m.requestAdapter);
|
|
||||||
}
|
|
||||||
// Base provides operations to manage the base property of the microsoft.graph.contentType entity.
|
|
||||||
func (m *ItemContentTypesContentTypeItemRequestBuilder) Base()(*ItemContentTypesItemBaseRequestBuilder) {
|
|
||||||
return NewItemContentTypesItemBaseRequestBuilderInternal(m.pathParameters, m.requestAdapter);
|
|
||||||
}
|
|
||||||
// BaseTypes provides operations to manage the baseTypes property of the microsoft.graph.contentType entity.
|
|
||||||
func (m *ItemContentTypesContentTypeItemRequestBuilder) BaseTypes()(*ItemContentTypesItemBaseTypesRequestBuilder) {
|
|
||||||
return NewItemContentTypesItemBaseTypesRequestBuilderInternal(m.pathParameters, m.requestAdapter);
|
|
||||||
}
|
|
||||||
// BaseTypesById provides operations to manage the baseTypes property of the microsoft.graph.contentType entity.
|
|
||||||
func (m *ItemContentTypesContentTypeItemRequestBuilder) BaseTypesById(id string)(*ItemContentTypesItemBaseTypesContentTypeItemRequestBuilder) {
|
|
||||||
urlTplParams := make(map[string]string)
|
|
||||||
for idx, item := range m.pathParameters {
|
|
||||||
urlTplParams[idx] = item
|
|
||||||
}
|
|
||||||
if id != "" {
|
|
||||||
urlTplParams["contentType%2Did1"] = id
|
|
||||||
}
|
|
||||||
return NewItemContentTypesItemBaseTypesContentTypeItemRequestBuilderInternal(urlTplParams, m.requestAdapter);
|
|
||||||
}
|
|
||||||
// ColumnLinks provides operations to manage the columnLinks property of the microsoft.graph.contentType entity.
|
|
||||||
func (m *ItemContentTypesContentTypeItemRequestBuilder) ColumnLinks()(*ItemContentTypesItemColumnLinksRequestBuilder) {
|
|
||||||
return NewItemContentTypesItemColumnLinksRequestBuilderInternal(m.pathParameters, m.requestAdapter);
|
|
||||||
}
|
|
||||||
// ColumnLinksById provides operations to manage the columnLinks property of the microsoft.graph.contentType entity.
|
|
||||||
func (m *ItemContentTypesContentTypeItemRequestBuilder) ColumnLinksById(id string)(*ItemContentTypesItemColumnLinksColumnLinkItemRequestBuilder) {
|
|
||||||
urlTplParams := make(map[string]string)
|
|
||||||
for idx, item := range m.pathParameters {
|
|
||||||
urlTplParams[idx] = item
|
|
||||||
}
|
|
||||||
if id != "" {
|
|
||||||
urlTplParams["columnLink%2Did"] = id
|
|
||||||
}
|
|
||||||
return NewItemContentTypesItemColumnLinksColumnLinkItemRequestBuilderInternal(urlTplParams, m.requestAdapter);
|
|
||||||
}
|
|
||||||
// ColumnPositions provides operations to manage the columnPositions property of the microsoft.graph.contentType entity.
|
|
||||||
func (m *ItemContentTypesContentTypeItemRequestBuilder) ColumnPositions()(*ItemContentTypesItemColumnPositionsRequestBuilder) {
|
|
||||||
return NewItemContentTypesItemColumnPositionsRequestBuilderInternal(m.pathParameters, m.requestAdapter);
|
|
||||||
}
|
|
||||||
// ColumnPositionsById provides operations to manage the columnPositions property of the microsoft.graph.contentType entity.
|
|
||||||
func (m *ItemContentTypesContentTypeItemRequestBuilder) ColumnPositionsById(id string)(*ItemContentTypesItemColumnPositionsColumnDefinitionItemRequestBuilder) {
|
|
||||||
urlTplParams := make(map[string]string)
|
|
||||||
for idx, item := range m.pathParameters {
|
|
||||||
urlTplParams[idx] = item
|
|
||||||
}
|
|
||||||
if id != "" {
|
|
||||||
urlTplParams["columnDefinition%2Did"] = id
|
|
||||||
}
|
|
||||||
return NewItemContentTypesItemColumnPositionsColumnDefinitionItemRequestBuilderInternal(urlTplParams, m.requestAdapter);
|
|
||||||
}
|
|
||||||
// Columns provides operations to manage the columns property of the microsoft.graph.contentType entity.
|
|
||||||
func (m *ItemContentTypesContentTypeItemRequestBuilder) Columns()(*ItemContentTypesItemColumnsRequestBuilder) {
|
|
||||||
return NewItemContentTypesItemColumnsRequestBuilderInternal(m.pathParameters, m.requestAdapter);
|
|
||||||
}
|
|
||||||
// ColumnsById provides operations to manage the columns property of the microsoft.graph.contentType entity.
|
|
||||||
func (m *ItemContentTypesContentTypeItemRequestBuilder) ColumnsById(id string)(*ItemContentTypesItemColumnsColumnDefinitionItemRequestBuilder) {
|
|
||||||
urlTplParams := make(map[string]string)
|
|
||||||
for idx, item := range m.pathParameters {
|
|
||||||
urlTplParams[idx] = item
|
|
||||||
}
|
|
||||||
if id != "" {
|
|
||||||
urlTplParams["columnDefinition%2Did"] = id
|
|
||||||
}
|
|
||||||
return NewItemContentTypesItemColumnsColumnDefinitionItemRequestBuilderInternal(urlTplParams, m.requestAdapter);
|
|
||||||
}
|
|
||||||
// NewItemContentTypesContentTypeItemRequestBuilderInternal instantiates a new ContentTypeItemRequestBuilder and sets the default values.
|
|
||||||
func NewItemContentTypesContentTypeItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemContentTypesContentTypeItemRequestBuilder) {
|
|
||||||
m := &ItemContentTypesContentTypeItemRequestBuilder{
|
|
||||||
}
|
|
||||||
m.urlTemplate = "{+baseurl}/sites/{site%2Did}/contentTypes/{contentType%2Did}{?%24select,%24expand}";
|
|
||||||
urlTplParams := make(map[string]string)
|
|
||||||
for idx, item := range pathParameters {
|
|
||||||
urlTplParams[idx] = item
|
|
||||||
}
|
|
||||||
m.pathParameters = urlTplParams;
|
|
||||||
m.requestAdapter = requestAdapter;
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// NewItemContentTypesContentTypeItemRequestBuilder instantiates a new ContentTypeItemRequestBuilder and sets the default values.
|
|
||||||
func NewItemContentTypesContentTypeItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemContentTypesContentTypeItemRequestBuilder) {
|
|
||||||
urlParams := make(map[string]string)
|
|
||||||
urlParams["request-raw-url"] = rawUrl
|
|
||||||
return NewItemContentTypesContentTypeItemRequestBuilderInternal(urlParams, requestAdapter)
|
|
||||||
}
|
|
||||||
// CopyToDefaultContentLocation provides operations to call the copyToDefaultContentLocation method.
|
|
||||||
func (m *ItemContentTypesContentTypeItemRequestBuilder) CopyToDefaultContentLocation()(*ItemContentTypesItemCopyToDefaultContentLocationRequestBuilder) {
|
|
||||||
return NewItemContentTypesItemCopyToDefaultContentLocationRequestBuilderInternal(m.pathParameters, m.requestAdapter);
|
|
||||||
}
|
|
||||||
// CreateDeleteRequestInformation delete navigation property contentTypes for sites
|
|
||||||
func (m *ItemContentTypesContentTypeItemRequestBuilder) CreateDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemContentTypesContentTypeItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
|
|
||||||
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation()
|
|
||||||
requestInfo.UrlTemplate = m.urlTemplate
|
|
||||||
requestInfo.PathParameters = m.pathParameters
|
|
||||||
requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE
|
|
||||||
if requestConfiguration != nil {
|
|
||||||
requestInfo.Headers.AddAll(requestConfiguration.Headers)
|
|
||||||
requestInfo.AddRequestOptions(requestConfiguration.Options)
|
|
||||||
}
|
|
||||||
return requestInfo, nil
|
|
||||||
}
|
|
||||||
// CreateGetRequestInformation the collection of content types defined for this site.
|
|
||||||
func (m *ItemContentTypesContentTypeItemRequestBuilder) CreateGetRequestInformation(ctx context.Context, requestConfiguration *ItemContentTypesContentTypeItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
|
|
||||||
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation()
|
|
||||||
requestInfo.UrlTemplate = m.urlTemplate
|
|
||||||
requestInfo.PathParameters = m.pathParameters
|
|
||||||
requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET
|
|
||||||
requestInfo.Headers.Add("Accept", "application/json")
|
|
||||||
if requestConfiguration != nil {
|
|
||||||
if requestConfiguration.QueryParameters != nil {
|
|
||||||
requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters))
|
|
||||||
}
|
|
||||||
requestInfo.Headers.AddAll(requestConfiguration.Headers)
|
|
||||||
requestInfo.AddRequestOptions(requestConfiguration.Options)
|
|
||||||
}
|
|
||||||
return requestInfo, nil
|
|
||||||
}
|
|
||||||
// CreatePatchRequestInformation update the navigation property contentTypes in sites
|
|
||||||
func (m *ItemContentTypesContentTypeItemRequestBuilder) CreatePatchRequestInformation(ctx context.Context, body ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ContentTypeable, requestConfiguration *ItemContentTypesContentTypeItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
|
|
||||||
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation()
|
|
||||||
requestInfo.UrlTemplate = m.urlTemplate
|
|
||||||
requestInfo.PathParameters = m.pathParameters
|
|
||||||
requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH
|
|
||||||
requestInfo.Headers.Add("Accept", "application/json")
|
|
||||||
requestInfo.SetContentFromParsable(ctx, m.requestAdapter, "application/json", body)
|
|
||||||
if requestConfiguration != nil {
|
|
||||||
requestInfo.Headers.AddAll(requestConfiguration.Headers)
|
|
||||||
requestInfo.AddRequestOptions(requestConfiguration.Options)
|
|
||||||
}
|
|
||||||
return requestInfo, nil
|
|
||||||
}
|
|
||||||
// Delete delete navigation property contentTypes for sites
|
|
||||||
func (m *ItemContentTypesContentTypeItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemContentTypesContentTypeItemRequestBuilderDeleteRequestConfiguration)(error) {
|
|
||||||
requestInfo, err := m.CreateDeleteRequestInformation(ctx, requestConfiguration);
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
|
|
||||||
"4XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
"5XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
}
|
|
||||||
err = m.requestAdapter.SendNoContentAsync(ctx, requestInfo, errorMapping)
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
// Get the collection of content types defined for this site.
|
|
||||||
func (m *ItemContentTypesContentTypeItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemContentTypesContentTypeItemRequestBuilderGetRequestConfiguration)(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ContentTypeable, error) {
|
|
||||||
requestInfo, err := m.CreateGetRequestInformation(ctx, requestConfiguration);
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
|
|
||||||
"4XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
"5XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
}
|
|
||||||
res, err := m.requestAdapter.SendAsync(ctx, requestInfo, ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.CreateContentTypeFromDiscriminatorValue, errorMapping)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if res == nil {
|
|
||||||
return nil, nil
|
|
||||||
}
|
|
||||||
return res.(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ContentTypeable), nil
|
|
||||||
}
|
|
||||||
// IsPublished provides operations to call the isPublished method.
|
|
||||||
func (m *ItemContentTypesContentTypeItemRequestBuilder) IsPublished()(*ItemContentTypesItemIsPublishedRequestBuilder) {
|
|
||||||
return NewItemContentTypesItemIsPublishedRequestBuilderInternal(m.pathParameters, m.requestAdapter);
|
|
||||||
}
|
|
||||||
// Patch update the navigation property contentTypes in sites
|
|
||||||
func (m *ItemContentTypesContentTypeItemRequestBuilder) Patch(ctx context.Context, body ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ContentTypeable, requestConfiguration *ItemContentTypesContentTypeItemRequestBuilderPatchRequestConfiguration)(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ContentTypeable, error) {
|
|
||||||
requestInfo, err := m.CreatePatchRequestInformation(ctx, body, requestConfiguration);
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
|
|
||||||
"4XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
"5XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
}
|
|
||||||
res, err := m.requestAdapter.SendAsync(ctx, requestInfo, ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.CreateContentTypeFromDiscriminatorValue, errorMapping)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if res == nil {
|
|
||||||
return nil, nil
|
|
||||||
}
|
|
||||||
return res.(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ContentTypeable), nil
|
|
||||||
}
|
|
||||||
// Publish provides operations to call the publish method.
|
|
||||||
func (m *ItemContentTypesContentTypeItemRequestBuilder) Publish()(*ItemContentTypesItemPublishRequestBuilder) {
|
|
||||||
return NewItemContentTypesItemPublishRequestBuilderInternal(m.pathParameters, m.requestAdapter);
|
|
||||||
}
|
|
||||||
// Unpublish provides operations to call the unpublish method.
|
|
||||||
func (m *ItemContentTypesContentTypeItemRequestBuilder) Unpublish()(*ItemContentTypesItemUnpublishRequestBuilder) {
|
|
||||||
return NewItemContentTypesItemUnpublishRequestBuilderInternal(m.pathParameters, m.requestAdapter);
|
|
||||||
}
|
|
||||||
@ -1,87 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
|
|
||||||
i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models/odataerrors"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemContentTypesCountRequestBuilder provides operations to count the resources in the collection.
|
|
||||||
type ItemContentTypesCountRequestBuilder struct {
|
|
||||||
// Path parameters for the request
|
|
||||||
pathParameters map[string]string
|
|
||||||
// The request adapter to use to execute the requests.
|
|
||||||
requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter
|
|
||||||
// Url template to use to build the URL for the current request builder
|
|
||||||
urlTemplate string
|
|
||||||
}
|
|
||||||
// ItemContentTypesCountRequestBuilderGetQueryParameters get the number of the resource
|
|
||||||
type ItemContentTypesCountRequestBuilderGetQueryParameters struct {
|
|
||||||
// Filter items by property values
|
|
||||||
Filter *string `uriparametername:"%24filter"`
|
|
||||||
// Search items by search phrases
|
|
||||||
Search *string `uriparametername:"%24search"`
|
|
||||||
}
|
|
||||||
// ItemContentTypesCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
|
|
||||||
type ItemContentTypesCountRequestBuilderGetRequestConfiguration struct {
|
|
||||||
// Request headers
|
|
||||||
Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
|
|
||||||
// Request options
|
|
||||||
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
|
|
||||||
// Request query parameters
|
|
||||||
QueryParameters *ItemContentTypesCountRequestBuilderGetQueryParameters
|
|
||||||
}
|
|
||||||
// NewItemContentTypesCountRequestBuilderInternal instantiates a new CountRequestBuilder and sets the default values.
|
|
||||||
func NewItemContentTypesCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemContentTypesCountRequestBuilder) {
|
|
||||||
m := &ItemContentTypesCountRequestBuilder{
|
|
||||||
}
|
|
||||||
m.urlTemplate = "{+baseurl}/sites/{site%2Did}/contentTypes/$count{?%24search,%24filter}";
|
|
||||||
urlTplParams := make(map[string]string)
|
|
||||||
for idx, item := range pathParameters {
|
|
||||||
urlTplParams[idx] = item
|
|
||||||
}
|
|
||||||
m.pathParameters = urlTplParams;
|
|
||||||
m.requestAdapter = requestAdapter;
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// NewItemContentTypesCountRequestBuilder instantiates a new CountRequestBuilder and sets the default values.
|
|
||||||
func NewItemContentTypesCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemContentTypesCountRequestBuilder) {
|
|
||||||
urlParams := make(map[string]string)
|
|
||||||
urlParams["request-raw-url"] = rawUrl
|
|
||||||
return NewItemContentTypesCountRequestBuilderInternal(urlParams, requestAdapter)
|
|
||||||
}
|
|
||||||
// CreateGetRequestInformation get the number of the resource
|
|
||||||
func (m *ItemContentTypesCountRequestBuilder) CreateGetRequestInformation(ctx context.Context, requestConfiguration *ItemContentTypesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
|
|
||||||
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation()
|
|
||||||
requestInfo.UrlTemplate = m.urlTemplate
|
|
||||||
requestInfo.PathParameters = m.pathParameters
|
|
||||||
requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET
|
|
||||||
requestInfo.Headers.Add("Accept", "text/plain")
|
|
||||||
if requestConfiguration != nil {
|
|
||||||
if requestConfiguration.QueryParameters != nil {
|
|
||||||
requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters))
|
|
||||||
}
|
|
||||||
requestInfo.Headers.AddAll(requestConfiguration.Headers)
|
|
||||||
requestInfo.AddRequestOptions(requestConfiguration.Options)
|
|
||||||
}
|
|
||||||
return requestInfo, nil
|
|
||||||
}
|
|
||||||
// Get get the number of the resource
|
|
||||||
func (m *ItemContentTypesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemContentTypesCountRequestBuilderGetRequestConfiguration)(*int32, error) {
|
|
||||||
requestInfo, err := m.CreateGetRequestInformation(ctx, requestConfiguration);
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
|
|
||||||
"4XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
"5XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
}
|
|
||||||
res, err := m.requestAdapter.SendPrimitiveAsync(ctx, requestInfo, "int32", errorMapping)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if res == nil {
|
|
||||||
return nil, nil
|
|
||||||
}
|
|
||||||
return res.(*int32), nil
|
|
||||||
}
|
|
||||||
@ -1,97 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
|
|
||||||
i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models/odataerrors"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemContentTypesGetCompatibleHubContentTypesRequestBuilder provides operations to call the getCompatibleHubContentTypes method.
|
|
||||||
type ItemContentTypesGetCompatibleHubContentTypesRequestBuilder struct {
|
|
||||||
// Path parameters for the request
|
|
||||||
pathParameters map[string]string
|
|
||||||
// The request adapter to use to execute the requests.
|
|
||||||
requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter
|
|
||||||
// Url template to use to build the URL for the current request builder
|
|
||||||
urlTemplate string
|
|
||||||
}
|
|
||||||
// ItemContentTypesGetCompatibleHubContentTypesRequestBuilderGetQueryParameters invoke function getCompatibleHubContentTypes
|
|
||||||
type ItemContentTypesGetCompatibleHubContentTypesRequestBuilderGetQueryParameters struct {
|
|
||||||
// Include count of items
|
|
||||||
Count *bool `uriparametername:"%24count"`
|
|
||||||
// Filter items by property values
|
|
||||||
Filter *string `uriparametername:"%24filter"`
|
|
||||||
// Order items by property values
|
|
||||||
Orderby []string `uriparametername:"%24orderby"`
|
|
||||||
// Search items by search phrases
|
|
||||||
Search *string `uriparametername:"%24search"`
|
|
||||||
// Select properties to be returned
|
|
||||||
Select []string `uriparametername:"%24select"`
|
|
||||||
// Skip the first n items
|
|
||||||
Skip *int32 `uriparametername:"%24skip"`
|
|
||||||
// Show only the first n items
|
|
||||||
Top *int32 `uriparametername:"%24top"`
|
|
||||||
}
|
|
||||||
// ItemContentTypesGetCompatibleHubContentTypesRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
|
|
||||||
type ItemContentTypesGetCompatibleHubContentTypesRequestBuilderGetRequestConfiguration struct {
|
|
||||||
// Request headers
|
|
||||||
Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
|
|
||||||
// Request options
|
|
||||||
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
|
|
||||||
// Request query parameters
|
|
||||||
QueryParameters *ItemContentTypesGetCompatibleHubContentTypesRequestBuilderGetQueryParameters
|
|
||||||
}
|
|
||||||
// NewItemContentTypesGetCompatibleHubContentTypesRequestBuilderInternal instantiates a new GetCompatibleHubContentTypesRequestBuilder and sets the default values.
|
|
||||||
func NewItemContentTypesGetCompatibleHubContentTypesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemContentTypesGetCompatibleHubContentTypesRequestBuilder) {
|
|
||||||
m := &ItemContentTypesGetCompatibleHubContentTypesRequestBuilder{
|
|
||||||
}
|
|
||||||
m.urlTemplate = "{+baseurl}/sites/{site%2Did}/contentTypes/microsoft.graph.getCompatibleHubContentTypes(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}";
|
|
||||||
urlTplParams := make(map[string]string)
|
|
||||||
for idx, item := range pathParameters {
|
|
||||||
urlTplParams[idx] = item
|
|
||||||
}
|
|
||||||
m.pathParameters = urlTplParams;
|
|
||||||
m.requestAdapter = requestAdapter;
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// NewItemContentTypesGetCompatibleHubContentTypesRequestBuilder instantiates a new GetCompatibleHubContentTypesRequestBuilder and sets the default values.
|
|
||||||
func NewItemContentTypesGetCompatibleHubContentTypesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemContentTypesGetCompatibleHubContentTypesRequestBuilder) {
|
|
||||||
urlParams := make(map[string]string)
|
|
||||||
urlParams["request-raw-url"] = rawUrl
|
|
||||||
return NewItemContentTypesGetCompatibleHubContentTypesRequestBuilderInternal(urlParams, requestAdapter)
|
|
||||||
}
|
|
||||||
// CreateGetRequestInformation invoke function getCompatibleHubContentTypes
|
|
||||||
func (m *ItemContentTypesGetCompatibleHubContentTypesRequestBuilder) CreateGetRequestInformation(ctx context.Context, requestConfiguration *ItemContentTypesGetCompatibleHubContentTypesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
|
|
||||||
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation()
|
|
||||||
requestInfo.UrlTemplate = m.urlTemplate
|
|
||||||
requestInfo.PathParameters = m.pathParameters
|
|
||||||
requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET
|
|
||||||
requestInfo.Headers.Add("Accept", "application/json")
|
|
||||||
if requestConfiguration != nil {
|
|
||||||
if requestConfiguration.QueryParameters != nil {
|
|
||||||
requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters))
|
|
||||||
}
|
|
||||||
requestInfo.Headers.AddAll(requestConfiguration.Headers)
|
|
||||||
requestInfo.AddRequestOptions(requestConfiguration.Options)
|
|
||||||
}
|
|
||||||
return requestInfo, nil
|
|
||||||
}
|
|
||||||
// Get invoke function getCompatibleHubContentTypes
|
|
||||||
func (m *ItemContentTypesGetCompatibleHubContentTypesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemContentTypesGetCompatibleHubContentTypesRequestBuilderGetRequestConfiguration)(ItemContentTypesGetCompatibleHubContentTypesResponseable, error) {
|
|
||||||
requestInfo, err := m.CreateGetRequestInformation(ctx, requestConfiguration);
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
|
|
||||||
"4XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
"5XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
}
|
|
||||||
res, err := m.requestAdapter.SendAsync(ctx, requestInfo, CreateItemContentTypesGetCompatibleHubContentTypesResponseFromDiscriminatorValue, errorMapping)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if res == nil {
|
|
||||||
return nil, nil
|
|
||||||
}
|
|
||||||
return res.(ItemContentTypesGetCompatibleHubContentTypesResponseable), nil
|
|
||||||
}
|
|
||||||
@ -1,69 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemContentTypesGetCompatibleHubContentTypesResponse provides operations to call the getCompatibleHubContentTypes method.
|
|
||||||
type ItemContentTypesGetCompatibleHubContentTypesResponse struct {
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.BaseCollectionPaginationCountResponse
|
|
||||||
// The value property
|
|
||||||
value []ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ContentTypeable
|
|
||||||
}
|
|
||||||
// NewItemContentTypesGetCompatibleHubContentTypesResponse instantiates a new ItemContentTypesGetCompatibleHubContentTypesResponse and sets the default values.
|
|
||||||
func NewItemContentTypesGetCompatibleHubContentTypesResponse()(*ItemContentTypesGetCompatibleHubContentTypesResponse) {
|
|
||||||
m := &ItemContentTypesGetCompatibleHubContentTypesResponse{
|
|
||||||
BaseCollectionPaginationCountResponse: *ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.NewBaseCollectionPaginationCountResponse(),
|
|
||||||
}
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// CreateItemContentTypesGetCompatibleHubContentTypesResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
|
||||||
func CreateItemContentTypesGetCompatibleHubContentTypesResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
|
||||||
return NewItemContentTypesGetCompatibleHubContentTypesResponse(), nil
|
|
||||||
}
|
|
||||||
// GetFieldDeserializers the deserialization information for the current model
|
|
||||||
func (m *ItemContentTypesGetCompatibleHubContentTypesResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
|
||||||
res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers()
|
|
||||||
res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
|
||||||
val, err := n.GetCollectionOfObjectValues(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.CreateContentTypeFromDiscriminatorValue)
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if val != nil {
|
|
||||||
res := make([]ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ContentTypeable, len(val))
|
|
||||||
for i, v := range val {
|
|
||||||
res[i] = v.(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ContentTypeable)
|
|
||||||
}
|
|
||||||
m.SetValue(res)
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
return res
|
|
||||||
}
|
|
||||||
// GetValue gets the value property value. The value property
|
|
||||||
func (m *ItemContentTypesGetCompatibleHubContentTypesResponse) GetValue()([]ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ContentTypeable) {
|
|
||||||
return m.value
|
|
||||||
}
|
|
||||||
// Serialize serializes information the current object
|
|
||||||
func (m *ItemContentTypesGetCompatibleHubContentTypesResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
|
||||||
err := m.BaseCollectionPaginationCountResponse.Serialize(writer)
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if m.GetValue() != nil {
|
|
||||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue()))
|
|
||||||
for i, v := range m.GetValue() {
|
|
||||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
|
||||||
}
|
|
||||||
err = writer.WriteCollectionOfObjectValues("value", cast)
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
// SetValue sets the value property value. The value property
|
|
||||||
func (m *ItemContentTypesGetCompatibleHubContentTypesResponse) SetValue(value []ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ContentTypeable)() {
|
|
||||||
m.value = value
|
|
||||||
}
|
|
||||||
@ -1,14 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemContentTypesGetCompatibleHubContentTypesResponseable
|
|
||||||
type ItemContentTypesGetCompatibleHubContentTypesResponseable interface {
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.BaseCollectionPaginationCountResponseable
|
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
|
||||||
GetValue()([]ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ContentTypeable)
|
|
||||||
SetValue(value []ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ContentTypeable)()
|
|
||||||
}
|
|
||||||
@ -1,101 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemContentTypesItemAssociateWithHubSitesPostRequestBody provides operations to call the associateWithHubSites method.
|
|
||||||
type ItemContentTypesItemAssociateWithHubSitesPostRequestBody struct {
|
|
||||||
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
||||||
additionalData map[string]interface{}
|
|
||||||
// The hubSiteUrls property
|
|
||||||
hubSiteUrls []string
|
|
||||||
// The propagateToExistingLists property
|
|
||||||
propagateToExistingLists *bool
|
|
||||||
}
|
|
||||||
// NewItemContentTypesItemAssociateWithHubSitesPostRequestBody instantiates a new ItemContentTypesItemAssociateWithHubSitesPostRequestBody and sets the default values.
|
|
||||||
func NewItemContentTypesItemAssociateWithHubSitesPostRequestBody()(*ItemContentTypesItemAssociateWithHubSitesPostRequestBody) {
|
|
||||||
m := &ItemContentTypesItemAssociateWithHubSitesPostRequestBody{
|
|
||||||
}
|
|
||||||
m.SetAdditionalData(make(map[string]interface{}));
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// CreateItemContentTypesItemAssociateWithHubSitesPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
|
||||||
func CreateItemContentTypesItemAssociateWithHubSitesPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
|
||||||
return NewItemContentTypesItemAssociateWithHubSitesPostRequestBody(), nil
|
|
||||||
}
|
|
||||||
// GetAdditionalData gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
||||||
func (m *ItemContentTypesItemAssociateWithHubSitesPostRequestBody) GetAdditionalData()(map[string]interface{}) {
|
|
||||||
return m.additionalData
|
|
||||||
}
|
|
||||||
// GetFieldDeserializers the deserialization information for the current model
|
|
||||||
func (m *ItemContentTypesItemAssociateWithHubSitesPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
|
||||||
res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
|
|
||||||
res["hubSiteUrls"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
|
||||||
val, err := n.GetCollectionOfPrimitiveValues("string")
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if val != nil {
|
|
||||||
res := make([]string, len(val))
|
|
||||||
for i, v := range val {
|
|
||||||
res[i] = *(v.(*string))
|
|
||||||
}
|
|
||||||
m.SetHubSiteUrls(res)
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
res["propagateToExistingLists"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
|
||||||
val, err := n.GetBoolValue()
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if val != nil {
|
|
||||||
m.SetPropagateToExistingLists(val)
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
return res
|
|
||||||
}
|
|
||||||
// GetHubSiteUrls gets the hubSiteUrls property value. The hubSiteUrls property
|
|
||||||
func (m *ItemContentTypesItemAssociateWithHubSitesPostRequestBody) GetHubSiteUrls()([]string) {
|
|
||||||
return m.hubSiteUrls
|
|
||||||
}
|
|
||||||
// GetPropagateToExistingLists gets the propagateToExistingLists property value. The propagateToExistingLists property
|
|
||||||
func (m *ItemContentTypesItemAssociateWithHubSitesPostRequestBody) GetPropagateToExistingLists()(*bool) {
|
|
||||||
return m.propagateToExistingLists
|
|
||||||
}
|
|
||||||
// Serialize serializes information the current object
|
|
||||||
func (m *ItemContentTypesItemAssociateWithHubSitesPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
|
||||||
if m.GetHubSiteUrls() != nil {
|
|
||||||
err := writer.WriteCollectionOfStringValues("hubSiteUrls", m.GetHubSiteUrls())
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
{
|
|
||||||
err := writer.WriteBoolValue("propagateToExistingLists", m.GetPropagateToExistingLists())
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
{
|
|
||||||
err := writer.WriteAdditionalData(m.GetAdditionalData())
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
||||||
func (m *ItemContentTypesItemAssociateWithHubSitesPostRequestBody) SetAdditionalData(value map[string]interface{})() {
|
|
||||||
m.additionalData = value
|
|
||||||
}
|
|
||||||
// SetHubSiteUrls sets the hubSiteUrls property value. The hubSiteUrls property
|
|
||||||
func (m *ItemContentTypesItemAssociateWithHubSitesPostRequestBody) SetHubSiteUrls(value []string)() {
|
|
||||||
m.hubSiteUrls = value
|
|
||||||
}
|
|
||||||
// SetPropagateToExistingLists sets the propagateToExistingLists property value. The propagateToExistingLists property
|
|
||||||
func (m *ItemContentTypesItemAssociateWithHubSitesPostRequestBody) SetPropagateToExistingLists(value *bool)() {
|
|
||||||
m.propagateToExistingLists = value
|
|
||||||
}
|
|
||||||
@ -1,15 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemContentTypesItemAssociateWithHubSitesPostRequestBodyable
|
|
||||||
type ItemContentTypesItemAssociateWithHubSitesPostRequestBodyable interface {
|
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
|
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
|
||||||
GetHubSiteUrls()([]string)
|
|
||||||
GetPropagateToExistingLists()(*bool)
|
|
||||||
SetHubSiteUrls(value []string)()
|
|
||||||
SetPropagateToExistingLists(value *bool)()
|
|
||||||
}
|
|
||||||
@ -1,75 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
|
|
||||||
i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models/odataerrors"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemContentTypesItemAssociateWithHubSitesRequestBuilder provides operations to call the associateWithHubSites method.
|
|
||||||
type ItemContentTypesItemAssociateWithHubSitesRequestBuilder struct {
|
|
||||||
// Path parameters for the request
|
|
||||||
pathParameters map[string]string
|
|
||||||
// The request adapter to use to execute the requests.
|
|
||||||
requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter
|
|
||||||
// Url template to use to build the URL for the current request builder
|
|
||||||
urlTemplate string
|
|
||||||
}
|
|
||||||
// ItemContentTypesItemAssociateWithHubSitesRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
|
|
||||||
type ItemContentTypesItemAssociateWithHubSitesRequestBuilderPostRequestConfiguration struct {
|
|
||||||
// Request headers
|
|
||||||
Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
|
|
||||||
// Request options
|
|
||||||
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
|
|
||||||
}
|
|
||||||
// NewItemContentTypesItemAssociateWithHubSitesRequestBuilderInternal instantiates a new AssociateWithHubSitesRequestBuilder and sets the default values.
|
|
||||||
func NewItemContentTypesItemAssociateWithHubSitesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemContentTypesItemAssociateWithHubSitesRequestBuilder) {
|
|
||||||
m := &ItemContentTypesItemAssociateWithHubSitesRequestBuilder{
|
|
||||||
}
|
|
||||||
m.urlTemplate = "{+baseurl}/sites/{site%2Did}/contentTypes/{contentType%2Did}/microsoft.graph.associateWithHubSites";
|
|
||||||
urlTplParams := make(map[string]string)
|
|
||||||
for idx, item := range pathParameters {
|
|
||||||
urlTplParams[idx] = item
|
|
||||||
}
|
|
||||||
m.pathParameters = urlTplParams;
|
|
||||||
m.requestAdapter = requestAdapter;
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// NewItemContentTypesItemAssociateWithHubSitesRequestBuilder instantiates a new AssociateWithHubSitesRequestBuilder and sets the default values.
|
|
||||||
func NewItemContentTypesItemAssociateWithHubSitesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemContentTypesItemAssociateWithHubSitesRequestBuilder) {
|
|
||||||
urlParams := make(map[string]string)
|
|
||||||
urlParams["request-raw-url"] = rawUrl
|
|
||||||
return NewItemContentTypesItemAssociateWithHubSitesRequestBuilderInternal(urlParams, requestAdapter)
|
|
||||||
}
|
|
||||||
// CreatePostRequestInformation associate a [content type][contentType] with a list of hub sites.
|
|
||||||
func (m *ItemContentTypesItemAssociateWithHubSitesRequestBuilder) CreatePostRequestInformation(ctx context.Context, body ItemContentTypesItemAssociateWithHubSitesPostRequestBodyable, requestConfiguration *ItemContentTypesItemAssociateWithHubSitesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
|
|
||||||
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation()
|
|
||||||
requestInfo.UrlTemplate = m.urlTemplate
|
|
||||||
requestInfo.PathParameters = m.pathParameters
|
|
||||||
requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST
|
|
||||||
requestInfo.SetContentFromParsable(ctx, m.requestAdapter, "application/json", body)
|
|
||||||
if requestConfiguration != nil {
|
|
||||||
requestInfo.Headers.AddAll(requestConfiguration.Headers)
|
|
||||||
requestInfo.AddRequestOptions(requestConfiguration.Options)
|
|
||||||
}
|
|
||||||
return requestInfo, nil
|
|
||||||
}
|
|
||||||
// Post associate a [content type][contentType] with a list of hub sites.
|
|
||||||
// [Find more info here]
|
|
||||||
//
|
|
||||||
// [Find more info here]: https://docs.microsoft.com/graph/api/contenttype-associatewithhubsites?view=graph-rest-1.0
|
|
||||||
func (m *ItemContentTypesItemAssociateWithHubSitesRequestBuilder) Post(ctx context.Context, body ItemContentTypesItemAssociateWithHubSitesPostRequestBodyable, requestConfiguration *ItemContentTypesItemAssociateWithHubSitesRequestBuilderPostRequestConfiguration)(error) {
|
|
||||||
requestInfo, err := m.CreatePostRequestInformation(ctx, body, requestConfiguration);
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
|
|
||||||
"4XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
"5XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
}
|
|
||||||
err = m.requestAdapter.SendNoContentAsync(ctx, requestInfo, errorMapping)
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
@ -1,88 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
|
||||||
i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models/odataerrors"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemContentTypesItemBaseRequestBuilder provides operations to manage the base property of the microsoft.graph.contentType entity.
|
|
||||||
type ItemContentTypesItemBaseRequestBuilder struct {
|
|
||||||
// Path parameters for the request
|
|
||||||
pathParameters map[string]string
|
|
||||||
// The request adapter to use to execute the requests.
|
|
||||||
requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter
|
|
||||||
// Url template to use to build the URL for the current request builder
|
|
||||||
urlTemplate string
|
|
||||||
}
|
|
||||||
// ItemContentTypesItemBaseRequestBuilderGetQueryParameters parent contentType from which this content type is derived.
|
|
||||||
type ItemContentTypesItemBaseRequestBuilderGetQueryParameters struct {
|
|
||||||
// Expand related entities
|
|
||||||
Expand []string `uriparametername:"%24expand"`
|
|
||||||
// Select properties to be returned
|
|
||||||
Select []string `uriparametername:"%24select"`
|
|
||||||
}
|
|
||||||
// ItemContentTypesItemBaseRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
|
|
||||||
type ItemContentTypesItemBaseRequestBuilderGetRequestConfiguration struct {
|
|
||||||
// Request headers
|
|
||||||
Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
|
|
||||||
// Request options
|
|
||||||
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
|
|
||||||
// Request query parameters
|
|
||||||
QueryParameters *ItemContentTypesItemBaseRequestBuilderGetQueryParameters
|
|
||||||
}
|
|
||||||
// NewItemContentTypesItemBaseRequestBuilderInternal instantiates a new BaseRequestBuilder and sets the default values.
|
|
||||||
func NewItemContentTypesItemBaseRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemContentTypesItemBaseRequestBuilder) {
|
|
||||||
m := &ItemContentTypesItemBaseRequestBuilder{
|
|
||||||
}
|
|
||||||
m.urlTemplate = "{+baseurl}/sites/{site%2Did}/contentTypes/{contentType%2Did}/base{?%24select,%24expand}";
|
|
||||||
urlTplParams := make(map[string]string)
|
|
||||||
for idx, item := range pathParameters {
|
|
||||||
urlTplParams[idx] = item
|
|
||||||
}
|
|
||||||
m.pathParameters = urlTplParams;
|
|
||||||
m.requestAdapter = requestAdapter;
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// NewItemContentTypesItemBaseRequestBuilder instantiates a new BaseRequestBuilder and sets the default values.
|
|
||||||
func NewItemContentTypesItemBaseRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemContentTypesItemBaseRequestBuilder) {
|
|
||||||
urlParams := make(map[string]string)
|
|
||||||
urlParams["request-raw-url"] = rawUrl
|
|
||||||
return NewItemContentTypesItemBaseRequestBuilderInternal(urlParams, requestAdapter)
|
|
||||||
}
|
|
||||||
// CreateGetRequestInformation parent contentType from which this content type is derived.
|
|
||||||
func (m *ItemContentTypesItemBaseRequestBuilder) CreateGetRequestInformation(ctx context.Context, requestConfiguration *ItemContentTypesItemBaseRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
|
|
||||||
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation()
|
|
||||||
requestInfo.UrlTemplate = m.urlTemplate
|
|
||||||
requestInfo.PathParameters = m.pathParameters
|
|
||||||
requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET
|
|
||||||
requestInfo.Headers.Add("Accept", "application/json")
|
|
||||||
if requestConfiguration != nil {
|
|
||||||
if requestConfiguration.QueryParameters != nil {
|
|
||||||
requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters))
|
|
||||||
}
|
|
||||||
requestInfo.Headers.AddAll(requestConfiguration.Headers)
|
|
||||||
requestInfo.AddRequestOptions(requestConfiguration.Options)
|
|
||||||
}
|
|
||||||
return requestInfo, nil
|
|
||||||
}
|
|
||||||
// Get parent contentType from which this content type is derived.
|
|
||||||
func (m *ItemContentTypesItemBaseRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemContentTypesItemBaseRequestBuilderGetRequestConfiguration)(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ContentTypeable, error) {
|
|
||||||
requestInfo, err := m.CreateGetRequestInformation(ctx, requestConfiguration);
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
|
|
||||||
"4XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
"5XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
}
|
|
||||||
res, err := m.requestAdapter.SendAsync(ctx, requestInfo, ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.CreateContentTypeFromDiscriminatorValue, errorMapping)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if res == nil {
|
|
||||||
return nil, nil
|
|
||||||
}
|
|
||||||
return res.(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ContentTypeable), nil
|
|
||||||
}
|
|
||||||
@ -1,88 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
|
||||||
i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models/odataerrors"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemContentTypesItemBaseTypesContentTypeItemRequestBuilder provides operations to manage the baseTypes property of the microsoft.graph.contentType entity.
|
|
||||||
type ItemContentTypesItemBaseTypesContentTypeItemRequestBuilder struct {
|
|
||||||
// Path parameters for the request
|
|
||||||
pathParameters map[string]string
|
|
||||||
// The request adapter to use to execute the requests.
|
|
||||||
requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter
|
|
||||||
// Url template to use to build the URL for the current request builder
|
|
||||||
urlTemplate string
|
|
||||||
}
|
|
||||||
// ItemContentTypesItemBaseTypesContentTypeItemRequestBuilderGetQueryParameters the collection of content types that are ancestors of this content type.
|
|
||||||
type ItemContentTypesItemBaseTypesContentTypeItemRequestBuilderGetQueryParameters struct {
|
|
||||||
// Expand related entities
|
|
||||||
Expand []string `uriparametername:"%24expand"`
|
|
||||||
// Select properties to be returned
|
|
||||||
Select []string `uriparametername:"%24select"`
|
|
||||||
}
|
|
||||||
// ItemContentTypesItemBaseTypesContentTypeItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
|
|
||||||
type ItemContentTypesItemBaseTypesContentTypeItemRequestBuilderGetRequestConfiguration struct {
|
|
||||||
// Request headers
|
|
||||||
Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
|
|
||||||
// Request options
|
|
||||||
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
|
|
||||||
// Request query parameters
|
|
||||||
QueryParameters *ItemContentTypesItemBaseTypesContentTypeItemRequestBuilderGetQueryParameters
|
|
||||||
}
|
|
||||||
// NewItemContentTypesItemBaseTypesContentTypeItemRequestBuilderInternal instantiates a new ContentTypeItemRequestBuilder and sets the default values.
|
|
||||||
func NewItemContentTypesItemBaseTypesContentTypeItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemContentTypesItemBaseTypesContentTypeItemRequestBuilder) {
|
|
||||||
m := &ItemContentTypesItemBaseTypesContentTypeItemRequestBuilder{
|
|
||||||
}
|
|
||||||
m.urlTemplate = "{+baseurl}/sites/{site%2Did}/contentTypes/{contentType%2Did}/baseTypes/{contentType%2Did1}{?%24select,%24expand}";
|
|
||||||
urlTplParams := make(map[string]string)
|
|
||||||
for idx, item := range pathParameters {
|
|
||||||
urlTplParams[idx] = item
|
|
||||||
}
|
|
||||||
m.pathParameters = urlTplParams;
|
|
||||||
m.requestAdapter = requestAdapter;
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// NewItemContentTypesItemBaseTypesContentTypeItemRequestBuilder instantiates a new ContentTypeItemRequestBuilder and sets the default values.
|
|
||||||
func NewItemContentTypesItemBaseTypesContentTypeItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemContentTypesItemBaseTypesContentTypeItemRequestBuilder) {
|
|
||||||
urlParams := make(map[string]string)
|
|
||||||
urlParams["request-raw-url"] = rawUrl
|
|
||||||
return NewItemContentTypesItemBaseTypesContentTypeItemRequestBuilderInternal(urlParams, requestAdapter)
|
|
||||||
}
|
|
||||||
// CreateGetRequestInformation the collection of content types that are ancestors of this content type.
|
|
||||||
func (m *ItemContentTypesItemBaseTypesContentTypeItemRequestBuilder) CreateGetRequestInformation(ctx context.Context, requestConfiguration *ItemContentTypesItemBaseTypesContentTypeItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
|
|
||||||
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation()
|
|
||||||
requestInfo.UrlTemplate = m.urlTemplate
|
|
||||||
requestInfo.PathParameters = m.pathParameters
|
|
||||||
requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET
|
|
||||||
requestInfo.Headers.Add("Accept", "application/json")
|
|
||||||
if requestConfiguration != nil {
|
|
||||||
if requestConfiguration.QueryParameters != nil {
|
|
||||||
requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters))
|
|
||||||
}
|
|
||||||
requestInfo.Headers.AddAll(requestConfiguration.Headers)
|
|
||||||
requestInfo.AddRequestOptions(requestConfiguration.Options)
|
|
||||||
}
|
|
||||||
return requestInfo, nil
|
|
||||||
}
|
|
||||||
// Get the collection of content types that are ancestors of this content type.
|
|
||||||
func (m *ItemContentTypesItemBaseTypesContentTypeItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemContentTypesItemBaseTypesContentTypeItemRequestBuilderGetRequestConfiguration)(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ContentTypeable, error) {
|
|
||||||
requestInfo, err := m.CreateGetRequestInformation(ctx, requestConfiguration);
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
|
|
||||||
"4XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
"5XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
}
|
|
||||||
res, err := m.requestAdapter.SendAsync(ctx, requestInfo, ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.CreateContentTypeFromDiscriminatorValue, errorMapping)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if res == nil {
|
|
||||||
return nil, nil
|
|
||||||
}
|
|
||||||
return res.(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ContentTypeable), nil
|
|
||||||
}
|
|
||||||
@ -1,87 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
|
|
||||||
i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models/odataerrors"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemContentTypesItemBaseTypesCountRequestBuilder provides operations to count the resources in the collection.
|
|
||||||
type ItemContentTypesItemBaseTypesCountRequestBuilder struct {
|
|
||||||
// Path parameters for the request
|
|
||||||
pathParameters map[string]string
|
|
||||||
// The request adapter to use to execute the requests.
|
|
||||||
requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter
|
|
||||||
// Url template to use to build the URL for the current request builder
|
|
||||||
urlTemplate string
|
|
||||||
}
|
|
||||||
// ItemContentTypesItemBaseTypesCountRequestBuilderGetQueryParameters get the number of the resource
|
|
||||||
type ItemContentTypesItemBaseTypesCountRequestBuilderGetQueryParameters struct {
|
|
||||||
// Filter items by property values
|
|
||||||
Filter *string `uriparametername:"%24filter"`
|
|
||||||
// Search items by search phrases
|
|
||||||
Search *string `uriparametername:"%24search"`
|
|
||||||
}
|
|
||||||
// ItemContentTypesItemBaseTypesCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
|
|
||||||
type ItemContentTypesItemBaseTypesCountRequestBuilderGetRequestConfiguration struct {
|
|
||||||
// Request headers
|
|
||||||
Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
|
|
||||||
// Request options
|
|
||||||
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
|
|
||||||
// Request query parameters
|
|
||||||
QueryParameters *ItemContentTypesItemBaseTypesCountRequestBuilderGetQueryParameters
|
|
||||||
}
|
|
||||||
// NewItemContentTypesItemBaseTypesCountRequestBuilderInternal instantiates a new CountRequestBuilder and sets the default values.
|
|
||||||
func NewItemContentTypesItemBaseTypesCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemContentTypesItemBaseTypesCountRequestBuilder) {
|
|
||||||
m := &ItemContentTypesItemBaseTypesCountRequestBuilder{
|
|
||||||
}
|
|
||||||
m.urlTemplate = "{+baseurl}/sites/{site%2Did}/contentTypes/{contentType%2Did}/baseTypes/$count{?%24search,%24filter}";
|
|
||||||
urlTplParams := make(map[string]string)
|
|
||||||
for idx, item := range pathParameters {
|
|
||||||
urlTplParams[idx] = item
|
|
||||||
}
|
|
||||||
m.pathParameters = urlTplParams;
|
|
||||||
m.requestAdapter = requestAdapter;
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// NewItemContentTypesItemBaseTypesCountRequestBuilder instantiates a new CountRequestBuilder and sets the default values.
|
|
||||||
func NewItemContentTypesItemBaseTypesCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemContentTypesItemBaseTypesCountRequestBuilder) {
|
|
||||||
urlParams := make(map[string]string)
|
|
||||||
urlParams["request-raw-url"] = rawUrl
|
|
||||||
return NewItemContentTypesItemBaseTypesCountRequestBuilderInternal(urlParams, requestAdapter)
|
|
||||||
}
|
|
||||||
// CreateGetRequestInformation get the number of the resource
|
|
||||||
func (m *ItemContentTypesItemBaseTypesCountRequestBuilder) CreateGetRequestInformation(ctx context.Context, requestConfiguration *ItemContentTypesItemBaseTypesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
|
|
||||||
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation()
|
|
||||||
requestInfo.UrlTemplate = m.urlTemplate
|
|
||||||
requestInfo.PathParameters = m.pathParameters
|
|
||||||
requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET
|
|
||||||
requestInfo.Headers.Add("Accept", "text/plain")
|
|
||||||
if requestConfiguration != nil {
|
|
||||||
if requestConfiguration.QueryParameters != nil {
|
|
||||||
requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters))
|
|
||||||
}
|
|
||||||
requestInfo.Headers.AddAll(requestConfiguration.Headers)
|
|
||||||
requestInfo.AddRequestOptions(requestConfiguration.Options)
|
|
||||||
}
|
|
||||||
return requestInfo, nil
|
|
||||||
}
|
|
||||||
// Get get the number of the resource
|
|
||||||
func (m *ItemContentTypesItemBaseTypesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemContentTypesItemBaseTypesCountRequestBuilderGetRequestConfiguration)(*int32, error) {
|
|
||||||
requestInfo, err := m.CreateGetRequestInformation(ctx, requestConfiguration);
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
|
|
||||||
"4XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
"5XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
}
|
|
||||||
res, err := m.requestAdapter.SendPrimitiveAsync(ctx, requestInfo, "int32", errorMapping)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if res == nil {
|
|
||||||
return nil, nil
|
|
||||||
}
|
|
||||||
return res.(*int32), nil
|
|
||||||
}
|
|
||||||
@ -1,104 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
|
||||||
i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models/odataerrors"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemContentTypesItemBaseTypesRequestBuilder provides operations to manage the baseTypes property of the microsoft.graph.contentType entity.
|
|
||||||
type ItemContentTypesItemBaseTypesRequestBuilder struct {
|
|
||||||
// Path parameters for the request
|
|
||||||
pathParameters map[string]string
|
|
||||||
// The request adapter to use to execute the requests.
|
|
||||||
requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter
|
|
||||||
// Url template to use to build the URL for the current request builder
|
|
||||||
urlTemplate string
|
|
||||||
}
|
|
||||||
// ItemContentTypesItemBaseTypesRequestBuilderGetQueryParameters the collection of content types that are ancestors of this content type.
|
|
||||||
type ItemContentTypesItemBaseTypesRequestBuilderGetQueryParameters struct {
|
|
||||||
// Include count of items
|
|
||||||
Count *bool `uriparametername:"%24count"`
|
|
||||||
// Expand related entities
|
|
||||||
Expand []string `uriparametername:"%24expand"`
|
|
||||||
// Filter items by property values
|
|
||||||
Filter *string `uriparametername:"%24filter"`
|
|
||||||
// Order items by property values
|
|
||||||
Orderby []string `uriparametername:"%24orderby"`
|
|
||||||
// Search items by search phrases
|
|
||||||
Search *string `uriparametername:"%24search"`
|
|
||||||
// Select properties to be returned
|
|
||||||
Select []string `uriparametername:"%24select"`
|
|
||||||
// Skip the first n items
|
|
||||||
Skip *int32 `uriparametername:"%24skip"`
|
|
||||||
// Show only the first n items
|
|
||||||
Top *int32 `uriparametername:"%24top"`
|
|
||||||
}
|
|
||||||
// ItemContentTypesItemBaseTypesRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
|
|
||||||
type ItemContentTypesItemBaseTypesRequestBuilderGetRequestConfiguration struct {
|
|
||||||
// Request headers
|
|
||||||
Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
|
|
||||||
// Request options
|
|
||||||
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
|
|
||||||
// Request query parameters
|
|
||||||
QueryParameters *ItemContentTypesItemBaseTypesRequestBuilderGetQueryParameters
|
|
||||||
}
|
|
||||||
// NewItemContentTypesItemBaseTypesRequestBuilderInternal instantiates a new BaseTypesRequestBuilder and sets the default values.
|
|
||||||
func NewItemContentTypesItemBaseTypesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemContentTypesItemBaseTypesRequestBuilder) {
|
|
||||||
m := &ItemContentTypesItemBaseTypesRequestBuilder{
|
|
||||||
}
|
|
||||||
m.urlTemplate = "{+baseurl}/sites/{site%2Did}/contentTypes/{contentType%2Did}/baseTypes{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}";
|
|
||||||
urlTplParams := make(map[string]string)
|
|
||||||
for idx, item := range pathParameters {
|
|
||||||
urlTplParams[idx] = item
|
|
||||||
}
|
|
||||||
m.pathParameters = urlTplParams;
|
|
||||||
m.requestAdapter = requestAdapter;
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// NewItemContentTypesItemBaseTypesRequestBuilder instantiates a new BaseTypesRequestBuilder and sets the default values.
|
|
||||||
func NewItemContentTypesItemBaseTypesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemContentTypesItemBaseTypesRequestBuilder) {
|
|
||||||
urlParams := make(map[string]string)
|
|
||||||
urlParams["request-raw-url"] = rawUrl
|
|
||||||
return NewItemContentTypesItemBaseTypesRequestBuilderInternal(urlParams, requestAdapter)
|
|
||||||
}
|
|
||||||
// Count provides operations to count the resources in the collection.
|
|
||||||
func (m *ItemContentTypesItemBaseTypesRequestBuilder) Count()(*ItemContentTypesItemBaseTypesCountRequestBuilder) {
|
|
||||||
return NewItemContentTypesItemBaseTypesCountRequestBuilderInternal(m.pathParameters, m.requestAdapter);
|
|
||||||
}
|
|
||||||
// CreateGetRequestInformation the collection of content types that are ancestors of this content type.
|
|
||||||
func (m *ItemContentTypesItemBaseTypesRequestBuilder) CreateGetRequestInformation(ctx context.Context, requestConfiguration *ItemContentTypesItemBaseTypesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
|
|
||||||
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation()
|
|
||||||
requestInfo.UrlTemplate = m.urlTemplate
|
|
||||||
requestInfo.PathParameters = m.pathParameters
|
|
||||||
requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET
|
|
||||||
requestInfo.Headers.Add("Accept", "application/json")
|
|
||||||
if requestConfiguration != nil {
|
|
||||||
if requestConfiguration.QueryParameters != nil {
|
|
||||||
requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters))
|
|
||||||
}
|
|
||||||
requestInfo.Headers.AddAll(requestConfiguration.Headers)
|
|
||||||
requestInfo.AddRequestOptions(requestConfiguration.Options)
|
|
||||||
}
|
|
||||||
return requestInfo, nil
|
|
||||||
}
|
|
||||||
// Get the collection of content types that are ancestors of this content type.
|
|
||||||
func (m *ItemContentTypesItemBaseTypesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemContentTypesItemBaseTypesRequestBuilderGetRequestConfiguration)(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ContentTypeCollectionResponseable, error) {
|
|
||||||
requestInfo, err := m.CreateGetRequestInformation(ctx, requestConfiguration);
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
|
|
||||||
"4XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
"5XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
}
|
|
||||||
res, err := m.requestAdapter.SendAsync(ctx, requestInfo, ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.CreateContentTypeCollectionResponseFromDiscriminatorValue, errorMapping)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if res == nil {
|
|
||||||
return nil, nil
|
|
||||||
}
|
|
||||||
return res.(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ContentTypeCollectionResponseable), nil
|
|
||||||
}
|
|
||||||
@ -1,163 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
|
||||||
i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models/odataerrors"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemContentTypesItemColumnLinksColumnLinkItemRequestBuilder provides operations to manage the columnLinks property of the microsoft.graph.contentType entity.
|
|
||||||
type ItemContentTypesItemColumnLinksColumnLinkItemRequestBuilder struct {
|
|
||||||
// Path parameters for the request
|
|
||||||
pathParameters map[string]string
|
|
||||||
// The request adapter to use to execute the requests.
|
|
||||||
requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter
|
|
||||||
// Url template to use to build the URL for the current request builder
|
|
||||||
urlTemplate string
|
|
||||||
}
|
|
||||||
// ItemContentTypesItemColumnLinksColumnLinkItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
|
|
||||||
type ItemContentTypesItemColumnLinksColumnLinkItemRequestBuilderDeleteRequestConfiguration struct {
|
|
||||||
// Request headers
|
|
||||||
Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
|
|
||||||
// Request options
|
|
||||||
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
|
|
||||||
}
|
|
||||||
// ItemContentTypesItemColumnLinksColumnLinkItemRequestBuilderGetQueryParameters the collection of columns that are required by this content type
|
|
||||||
type ItemContentTypesItemColumnLinksColumnLinkItemRequestBuilderGetQueryParameters struct {
|
|
||||||
// Expand related entities
|
|
||||||
Expand []string `uriparametername:"%24expand"`
|
|
||||||
// Select properties to be returned
|
|
||||||
Select []string `uriparametername:"%24select"`
|
|
||||||
}
|
|
||||||
// ItemContentTypesItemColumnLinksColumnLinkItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
|
|
||||||
type ItemContentTypesItemColumnLinksColumnLinkItemRequestBuilderGetRequestConfiguration struct {
|
|
||||||
// Request headers
|
|
||||||
Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
|
|
||||||
// Request options
|
|
||||||
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
|
|
||||||
// Request query parameters
|
|
||||||
QueryParameters *ItemContentTypesItemColumnLinksColumnLinkItemRequestBuilderGetQueryParameters
|
|
||||||
}
|
|
||||||
// ItemContentTypesItemColumnLinksColumnLinkItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
|
|
||||||
type ItemContentTypesItemColumnLinksColumnLinkItemRequestBuilderPatchRequestConfiguration struct {
|
|
||||||
// Request headers
|
|
||||||
Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
|
|
||||||
// Request options
|
|
||||||
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
|
|
||||||
}
|
|
||||||
// NewItemContentTypesItemColumnLinksColumnLinkItemRequestBuilderInternal instantiates a new ColumnLinkItemRequestBuilder and sets the default values.
|
|
||||||
func NewItemContentTypesItemColumnLinksColumnLinkItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemContentTypesItemColumnLinksColumnLinkItemRequestBuilder) {
|
|
||||||
m := &ItemContentTypesItemColumnLinksColumnLinkItemRequestBuilder{
|
|
||||||
}
|
|
||||||
m.urlTemplate = "{+baseurl}/sites/{site%2Did}/contentTypes/{contentType%2Did}/columnLinks/{columnLink%2Did}{?%24select,%24expand}";
|
|
||||||
urlTplParams := make(map[string]string)
|
|
||||||
for idx, item := range pathParameters {
|
|
||||||
urlTplParams[idx] = item
|
|
||||||
}
|
|
||||||
m.pathParameters = urlTplParams;
|
|
||||||
m.requestAdapter = requestAdapter;
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// NewItemContentTypesItemColumnLinksColumnLinkItemRequestBuilder instantiates a new ColumnLinkItemRequestBuilder and sets the default values.
|
|
||||||
func NewItemContentTypesItemColumnLinksColumnLinkItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemContentTypesItemColumnLinksColumnLinkItemRequestBuilder) {
|
|
||||||
urlParams := make(map[string]string)
|
|
||||||
urlParams["request-raw-url"] = rawUrl
|
|
||||||
return NewItemContentTypesItemColumnLinksColumnLinkItemRequestBuilderInternal(urlParams, requestAdapter)
|
|
||||||
}
|
|
||||||
// CreateDeleteRequestInformation delete navigation property columnLinks for sites
|
|
||||||
func (m *ItemContentTypesItemColumnLinksColumnLinkItemRequestBuilder) CreateDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemContentTypesItemColumnLinksColumnLinkItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
|
|
||||||
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation()
|
|
||||||
requestInfo.UrlTemplate = m.urlTemplate
|
|
||||||
requestInfo.PathParameters = m.pathParameters
|
|
||||||
requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE
|
|
||||||
if requestConfiguration != nil {
|
|
||||||
requestInfo.Headers.AddAll(requestConfiguration.Headers)
|
|
||||||
requestInfo.AddRequestOptions(requestConfiguration.Options)
|
|
||||||
}
|
|
||||||
return requestInfo, nil
|
|
||||||
}
|
|
||||||
// CreateGetRequestInformation the collection of columns that are required by this content type
|
|
||||||
func (m *ItemContentTypesItemColumnLinksColumnLinkItemRequestBuilder) CreateGetRequestInformation(ctx context.Context, requestConfiguration *ItemContentTypesItemColumnLinksColumnLinkItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
|
|
||||||
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation()
|
|
||||||
requestInfo.UrlTemplate = m.urlTemplate
|
|
||||||
requestInfo.PathParameters = m.pathParameters
|
|
||||||
requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET
|
|
||||||
requestInfo.Headers.Add("Accept", "application/json")
|
|
||||||
if requestConfiguration != nil {
|
|
||||||
if requestConfiguration.QueryParameters != nil {
|
|
||||||
requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters))
|
|
||||||
}
|
|
||||||
requestInfo.Headers.AddAll(requestConfiguration.Headers)
|
|
||||||
requestInfo.AddRequestOptions(requestConfiguration.Options)
|
|
||||||
}
|
|
||||||
return requestInfo, nil
|
|
||||||
}
|
|
||||||
// CreatePatchRequestInformation update the navigation property columnLinks in sites
|
|
||||||
func (m *ItemContentTypesItemColumnLinksColumnLinkItemRequestBuilder) CreatePatchRequestInformation(ctx context.Context, body ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ColumnLinkable, requestConfiguration *ItemContentTypesItemColumnLinksColumnLinkItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
|
|
||||||
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation()
|
|
||||||
requestInfo.UrlTemplate = m.urlTemplate
|
|
||||||
requestInfo.PathParameters = m.pathParameters
|
|
||||||
requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH
|
|
||||||
requestInfo.Headers.Add("Accept", "application/json")
|
|
||||||
requestInfo.SetContentFromParsable(ctx, m.requestAdapter, "application/json", body)
|
|
||||||
if requestConfiguration != nil {
|
|
||||||
requestInfo.Headers.AddAll(requestConfiguration.Headers)
|
|
||||||
requestInfo.AddRequestOptions(requestConfiguration.Options)
|
|
||||||
}
|
|
||||||
return requestInfo, nil
|
|
||||||
}
|
|
||||||
// Delete delete navigation property columnLinks for sites
|
|
||||||
func (m *ItemContentTypesItemColumnLinksColumnLinkItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemContentTypesItemColumnLinksColumnLinkItemRequestBuilderDeleteRequestConfiguration)(error) {
|
|
||||||
requestInfo, err := m.CreateDeleteRequestInformation(ctx, requestConfiguration);
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
|
|
||||||
"4XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
"5XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
}
|
|
||||||
err = m.requestAdapter.SendNoContentAsync(ctx, requestInfo, errorMapping)
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
// Get the collection of columns that are required by this content type
|
|
||||||
func (m *ItemContentTypesItemColumnLinksColumnLinkItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemContentTypesItemColumnLinksColumnLinkItemRequestBuilderGetRequestConfiguration)(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ColumnLinkable, error) {
|
|
||||||
requestInfo, err := m.CreateGetRequestInformation(ctx, requestConfiguration);
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
|
|
||||||
"4XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
"5XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
}
|
|
||||||
res, err := m.requestAdapter.SendAsync(ctx, requestInfo, ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.CreateColumnLinkFromDiscriminatorValue, errorMapping)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if res == nil {
|
|
||||||
return nil, nil
|
|
||||||
}
|
|
||||||
return res.(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ColumnLinkable), nil
|
|
||||||
}
|
|
||||||
// Patch update the navigation property columnLinks in sites
|
|
||||||
func (m *ItemContentTypesItemColumnLinksColumnLinkItemRequestBuilder) Patch(ctx context.Context, body ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ColumnLinkable, requestConfiguration *ItemContentTypesItemColumnLinksColumnLinkItemRequestBuilderPatchRequestConfiguration)(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ColumnLinkable, error) {
|
|
||||||
requestInfo, err := m.CreatePatchRequestInformation(ctx, body, requestConfiguration);
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
|
|
||||||
"4XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
"5XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
}
|
|
||||||
res, err := m.requestAdapter.SendAsync(ctx, requestInfo, ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.CreateColumnLinkFromDiscriminatorValue, errorMapping)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if res == nil {
|
|
||||||
return nil, nil
|
|
||||||
}
|
|
||||||
return res.(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ColumnLinkable), nil
|
|
||||||
}
|
|
||||||
@ -1,87 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
|
|
||||||
i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models/odataerrors"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemContentTypesItemColumnLinksCountRequestBuilder provides operations to count the resources in the collection.
|
|
||||||
type ItemContentTypesItemColumnLinksCountRequestBuilder struct {
|
|
||||||
// Path parameters for the request
|
|
||||||
pathParameters map[string]string
|
|
||||||
// The request adapter to use to execute the requests.
|
|
||||||
requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter
|
|
||||||
// Url template to use to build the URL for the current request builder
|
|
||||||
urlTemplate string
|
|
||||||
}
|
|
||||||
// ItemContentTypesItemColumnLinksCountRequestBuilderGetQueryParameters get the number of the resource
|
|
||||||
type ItemContentTypesItemColumnLinksCountRequestBuilderGetQueryParameters struct {
|
|
||||||
// Filter items by property values
|
|
||||||
Filter *string `uriparametername:"%24filter"`
|
|
||||||
// Search items by search phrases
|
|
||||||
Search *string `uriparametername:"%24search"`
|
|
||||||
}
|
|
||||||
// ItemContentTypesItemColumnLinksCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
|
|
||||||
type ItemContentTypesItemColumnLinksCountRequestBuilderGetRequestConfiguration struct {
|
|
||||||
// Request headers
|
|
||||||
Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
|
|
||||||
// Request options
|
|
||||||
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
|
|
||||||
// Request query parameters
|
|
||||||
QueryParameters *ItemContentTypesItemColumnLinksCountRequestBuilderGetQueryParameters
|
|
||||||
}
|
|
||||||
// NewItemContentTypesItemColumnLinksCountRequestBuilderInternal instantiates a new CountRequestBuilder and sets the default values.
|
|
||||||
func NewItemContentTypesItemColumnLinksCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemContentTypesItemColumnLinksCountRequestBuilder) {
|
|
||||||
m := &ItemContentTypesItemColumnLinksCountRequestBuilder{
|
|
||||||
}
|
|
||||||
m.urlTemplate = "{+baseurl}/sites/{site%2Did}/contentTypes/{contentType%2Did}/columnLinks/$count{?%24search,%24filter}";
|
|
||||||
urlTplParams := make(map[string]string)
|
|
||||||
for idx, item := range pathParameters {
|
|
||||||
urlTplParams[idx] = item
|
|
||||||
}
|
|
||||||
m.pathParameters = urlTplParams;
|
|
||||||
m.requestAdapter = requestAdapter;
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// NewItemContentTypesItemColumnLinksCountRequestBuilder instantiates a new CountRequestBuilder and sets the default values.
|
|
||||||
func NewItemContentTypesItemColumnLinksCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemContentTypesItemColumnLinksCountRequestBuilder) {
|
|
||||||
urlParams := make(map[string]string)
|
|
||||||
urlParams["request-raw-url"] = rawUrl
|
|
||||||
return NewItemContentTypesItemColumnLinksCountRequestBuilderInternal(urlParams, requestAdapter)
|
|
||||||
}
|
|
||||||
// CreateGetRequestInformation get the number of the resource
|
|
||||||
func (m *ItemContentTypesItemColumnLinksCountRequestBuilder) CreateGetRequestInformation(ctx context.Context, requestConfiguration *ItemContentTypesItemColumnLinksCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
|
|
||||||
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation()
|
|
||||||
requestInfo.UrlTemplate = m.urlTemplate
|
|
||||||
requestInfo.PathParameters = m.pathParameters
|
|
||||||
requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET
|
|
||||||
requestInfo.Headers.Add("Accept", "text/plain")
|
|
||||||
if requestConfiguration != nil {
|
|
||||||
if requestConfiguration.QueryParameters != nil {
|
|
||||||
requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters))
|
|
||||||
}
|
|
||||||
requestInfo.Headers.AddAll(requestConfiguration.Headers)
|
|
||||||
requestInfo.AddRequestOptions(requestConfiguration.Options)
|
|
||||||
}
|
|
||||||
return requestInfo, nil
|
|
||||||
}
|
|
||||||
// Get get the number of the resource
|
|
||||||
func (m *ItemContentTypesItemColumnLinksCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemContentTypesItemColumnLinksCountRequestBuilderGetRequestConfiguration)(*int32, error) {
|
|
||||||
requestInfo, err := m.CreateGetRequestInformation(ctx, requestConfiguration);
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
|
|
||||||
"4XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
"5XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
}
|
|
||||||
res, err := m.requestAdapter.SendPrimitiveAsync(ctx, requestInfo, "int32", errorMapping)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if res == nil {
|
|
||||||
return nil, nil
|
|
||||||
}
|
|
||||||
return res.(*int32), nil
|
|
||||||
}
|
|
||||||
@ -1,144 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
|
||||||
i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models/odataerrors"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemContentTypesItemColumnLinksRequestBuilder provides operations to manage the columnLinks property of the microsoft.graph.contentType entity.
|
|
||||||
type ItemContentTypesItemColumnLinksRequestBuilder struct {
|
|
||||||
// Path parameters for the request
|
|
||||||
pathParameters map[string]string
|
|
||||||
// The request adapter to use to execute the requests.
|
|
||||||
requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter
|
|
||||||
// Url template to use to build the URL for the current request builder
|
|
||||||
urlTemplate string
|
|
||||||
}
|
|
||||||
// ItemContentTypesItemColumnLinksRequestBuilderGetQueryParameters the collection of columns that are required by this content type
|
|
||||||
type ItemContentTypesItemColumnLinksRequestBuilderGetQueryParameters struct {
|
|
||||||
// Include count of items
|
|
||||||
Count *bool `uriparametername:"%24count"`
|
|
||||||
// Expand related entities
|
|
||||||
Expand []string `uriparametername:"%24expand"`
|
|
||||||
// Filter items by property values
|
|
||||||
Filter *string `uriparametername:"%24filter"`
|
|
||||||
// Order items by property values
|
|
||||||
Orderby []string `uriparametername:"%24orderby"`
|
|
||||||
// Search items by search phrases
|
|
||||||
Search *string `uriparametername:"%24search"`
|
|
||||||
// Select properties to be returned
|
|
||||||
Select []string `uriparametername:"%24select"`
|
|
||||||
// Skip the first n items
|
|
||||||
Skip *int32 `uriparametername:"%24skip"`
|
|
||||||
// Show only the first n items
|
|
||||||
Top *int32 `uriparametername:"%24top"`
|
|
||||||
}
|
|
||||||
// ItemContentTypesItemColumnLinksRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
|
|
||||||
type ItemContentTypesItemColumnLinksRequestBuilderGetRequestConfiguration struct {
|
|
||||||
// Request headers
|
|
||||||
Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
|
|
||||||
// Request options
|
|
||||||
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
|
|
||||||
// Request query parameters
|
|
||||||
QueryParameters *ItemContentTypesItemColumnLinksRequestBuilderGetQueryParameters
|
|
||||||
}
|
|
||||||
// ItemContentTypesItemColumnLinksRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
|
|
||||||
type ItemContentTypesItemColumnLinksRequestBuilderPostRequestConfiguration struct {
|
|
||||||
// Request headers
|
|
||||||
Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
|
|
||||||
// Request options
|
|
||||||
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
|
|
||||||
}
|
|
||||||
// NewItemContentTypesItemColumnLinksRequestBuilderInternal instantiates a new ColumnLinksRequestBuilder and sets the default values.
|
|
||||||
func NewItemContentTypesItemColumnLinksRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemContentTypesItemColumnLinksRequestBuilder) {
|
|
||||||
m := &ItemContentTypesItemColumnLinksRequestBuilder{
|
|
||||||
}
|
|
||||||
m.urlTemplate = "{+baseurl}/sites/{site%2Did}/contentTypes/{contentType%2Did}/columnLinks{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}";
|
|
||||||
urlTplParams := make(map[string]string)
|
|
||||||
for idx, item := range pathParameters {
|
|
||||||
urlTplParams[idx] = item
|
|
||||||
}
|
|
||||||
m.pathParameters = urlTplParams;
|
|
||||||
m.requestAdapter = requestAdapter;
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// NewItemContentTypesItemColumnLinksRequestBuilder instantiates a new ColumnLinksRequestBuilder and sets the default values.
|
|
||||||
func NewItemContentTypesItemColumnLinksRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemContentTypesItemColumnLinksRequestBuilder) {
|
|
||||||
urlParams := make(map[string]string)
|
|
||||||
urlParams["request-raw-url"] = rawUrl
|
|
||||||
return NewItemContentTypesItemColumnLinksRequestBuilderInternal(urlParams, requestAdapter)
|
|
||||||
}
|
|
||||||
// Count provides operations to count the resources in the collection.
|
|
||||||
func (m *ItemContentTypesItemColumnLinksRequestBuilder) Count()(*ItemContentTypesItemColumnLinksCountRequestBuilder) {
|
|
||||||
return NewItemContentTypesItemColumnLinksCountRequestBuilderInternal(m.pathParameters, m.requestAdapter);
|
|
||||||
}
|
|
||||||
// CreateGetRequestInformation the collection of columns that are required by this content type
|
|
||||||
func (m *ItemContentTypesItemColumnLinksRequestBuilder) CreateGetRequestInformation(ctx context.Context, requestConfiguration *ItemContentTypesItemColumnLinksRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
|
|
||||||
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation()
|
|
||||||
requestInfo.UrlTemplate = m.urlTemplate
|
|
||||||
requestInfo.PathParameters = m.pathParameters
|
|
||||||
requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET
|
|
||||||
requestInfo.Headers.Add("Accept", "application/json")
|
|
||||||
if requestConfiguration != nil {
|
|
||||||
if requestConfiguration.QueryParameters != nil {
|
|
||||||
requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters))
|
|
||||||
}
|
|
||||||
requestInfo.Headers.AddAll(requestConfiguration.Headers)
|
|
||||||
requestInfo.AddRequestOptions(requestConfiguration.Options)
|
|
||||||
}
|
|
||||||
return requestInfo, nil
|
|
||||||
}
|
|
||||||
// CreatePostRequestInformation create new navigation property to columnLinks for sites
|
|
||||||
func (m *ItemContentTypesItemColumnLinksRequestBuilder) CreatePostRequestInformation(ctx context.Context, body ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ColumnLinkable, requestConfiguration *ItemContentTypesItemColumnLinksRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
|
|
||||||
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation()
|
|
||||||
requestInfo.UrlTemplate = m.urlTemplate
|
|
||||||
requestInfo.PathParameters = m.pathParameters
|
|
||||||
requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST
|
|
||||||
requestInfo.Headers.Add("Accept", "application/json")
|
|
||||||
requestInfo.SetContentFromParsable(ctx, m.requestAdapter, "application/json", body)
|
|
||||||
if requestConfiguration != nil {
|
|
||||||
requestInfo.Headers.AddAll(requestConfiguration.Headers)
|
|
||||||
requestInfo.AddRequestOptions(requestConfiguration.Options)
|
|
||||||
}
|
|
||||||
return requestInfo, nil
|
|
||||||
}
|
|
||||||
// Get the collection of columns that are required by this content type
|
|
||||||
func (m *ItemContentTypesItemColumnLinksRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemContentTypesItemColumnLinksRequestBuilderGetRequestConfiguration)(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ColumnLinkCollectionResponseable, error) {
|
|
||||||
requestInfo, err := m.CreateGetRequestInformation(ctx, requestConfiguration);
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
|
|
||||||
"4XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
"5XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
}
|
|
||||||
res, err := m.requestAdapter.SendAsync(ctx, requestInfo, ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.CreateColumnLinkCollectionResponseFromDiscriminatorValue, errorMapping)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if res == nil {
|
|
||||||
return nil, nil
|
|
||||||
}
|
|
||||||
return res.(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ColumnLinkCollectionResponseable), nil
|
|
||||||
}
|
|
||||||
// Post create new navigation property to columnLinks for sites
|
|
||||||
func (m *ItemContentTypesItemColumnLinksRequestBuilder) Post(ctx context.Context, body ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ColumnLinkable, requestConfiguration *ItemContentTypesItemColumnLinksRequestBuilderPostRequestConfiguration)(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ColumnLinkable, error) {
|
|
||||||
requestInfo, err := m.CreatePostRequestInformation(ctx, body, requestConfiguration);
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
|
|
||||||
"4XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
"5XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
}
|
|
||||||
res, err := m.requestAdapter.SendAsync(ctx, requestInfo, ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.CreateColumnLinkFromDiscriminatorValue, errorMapping)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if res == nil {
|
|
||||||
return nil, nil
|
|
||||||
}
|
|
||||||
return res.(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ColumnLinkable), nil
|
|
||||||
}
|
|
||||||
@ -1,88 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
|
||||||
i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models/odataerrors"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemContentTypesItemColumnPositionsColumnDefinitionItemRequestBuilder provides operations to manage the columnPositions property of the microsoft.graph.contentType entity.
|
|
||||||
type ItemContentTypesItemColumnPositionsColumnDefinitionItemRequestBuilder struct {
|
|
||||||
// Path parameters for the request
|
|
||||||
pathParameters map[string]string
|
|
||||||
// The request adapter to use to execute the requests.
|
|
||||||
requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter
|
|
||||||
// Url template to use to build the URL for the current request builder
|
|
||||||
urlTemplate string
|
|
||||||
}
|
|
||||||
// ItemContentTypesItemColumnPositionsColumnDefinitionItemRequestBuilderGetQueryParameters column order information in a content type.
|
|
||||||
type ItemContentTypesItemColumnPositionsColumnDefinitionItemRequestBuilderGetQueryParameters struct {
|
|
||||||
// Expand related entities
|
|
||||||
Expand []string `uriparametername:"%24expand"`
|
|
||||||
// Select properties to be returned
|
|
||||||
Select []string `uriparametername:"%24select"`
|
|
||||||
}
|
|
||||||
// ItemContentTypesItemColumnPositionsColumnDefinitionItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
|
|
||||||
type ItemContentTypesItemColumnPositionsColumnDefinitionItemRequestBuilderGetRequestConfiguration struct {
|
|
||||||
// Request headers
|
|
||||||
Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
|
|
||||||
// Request options
|
|
||||||
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
|
|
||||||
// Request query parameters
|
|
||||||
QueryParameters *ItemContentTypesItemColumnPositionsColumnDefinitionItemRequestBuilderGetQueryParameters
|
|
||||||
}
|
|
||||||
// NewItemContentTypesItemColumnPositionsColumnDefinitionItemRequestBuilderInternal instantiates a new ColumnDefinitionItemRequestBuilder and sets the default values.
|
|
||||||
func NewItemContentTypesItemColumnPositionsColumnDefinitionItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemContentTypesItemColumnPositionsColumnDefinitionItemRequestBuilder) {
|
|
||||||
m := &ItemContentTypesItemColumnPositionsColumnDefinitionItemRequestBuilder{
|
|
||||||
}
|
|
||||||
m.urlTemplate = "{+baseurl}/sites/{site%2Did}/contentTypes/{contentType%2Did}/columnPositions/{columnDefinition%2Did}{?%24select,%24expand}";
|
|
||||||
urlTplParams := make(map[string]string)
|
|
||||||
for idx, item := range pathParameters {
|
|
||||||
urlTplParams[idx] = item
|
|
||||||
}
|
|
||||||
m.pathParameters = urlTplParams;
|
|
||||||
m.requestAdapter = requestAdapter;
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// NewItemContentTypesItemColumnPositionsColumnDefinitionItemRequestBuilder instantiates a new ColumnDefinitionItemRequestBuilder and sets the default values.
|
|
||||||
func NewItemContentTypesItemColumnPositionsColumnDefinitionItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemContentTypesItemColumnPositionsColumnDefinitionItemRequestBuilder) {
|
|
||||||
urlParams := make(map[string]string)
|
|
||||||
urlParams["request-raw-url"] = rawUrl
|
|
||||||
return NewItemContentTypesItemColumnPositionsColumnDefinitionItemRequestBuilderInternal(urlParams, requestAdapter)
|
|
||||||
}
|
|
||||||
// CreateGetRequestInformation column order information in a content type.
|
|
||||||
func (m *ItemContentTypesItemColumnPositionsColumnDefinitionItemRequestBuilder) CreateGetRequestInformation(ctx context.Context, requestConfiguration *ItemContentTypesItemColumnPositionsColumnDefinitionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
|
|
||||||
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation()
|
|
||||||
requestInfo.UrlTemplate = m.urlTemplate
|
|
||||||
requestInfo.PathParameters = m.pathParameters
|
|
||||||
requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET
|
|
||||||
requestInfo.Headers.Add("Accept", "application/json")
|
|
||||||
if requestConfiguration != nil {
|
|
||||||
if requestConfiguration.QueryParameters != nil {
|
|
||||||
requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters))
|
|
||||||
}
|
|
||||||
requestInfo.Headers.AddAll(requestConfiguration.Headers)
|
|
||||||
requestInfo.AddRequestOptions(requestConfiguration.Options)
|
|
||||||
}
|
|
||||||
return requestInfo, nil
|
|
||||||
}
|
|
||||||
// Get column order information in a content type.
|
|
||||||
func (m *ItemContentTypesItemColumnPositionsColumnDefinitionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemContentTypesItemColumnPositionsColumnDefinitionItemRequestBuilderGetRequestConfiguration)(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ColumnDefinitionable, error) {
|
|
||||||
requestInfo, err := m.CreateGetRequestInformation(ctx, requestConfiguration);
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
|
|
||||||
"4XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
"5XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
}
|
|
||||||
res, err := m.requestAdapter.SendAsync(ctx, requestInfo, ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.CreateColumnDefinitionFromDiscriminatorValue, errorMapping)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if res == nil {
|
|
||||||
return nil, nil
|
|
||||||
}
|
|
||||||
return res.(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ColumnDefinitionable), nil
|
|
||||||
}
|
|
||||||
@ -1,87 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
|
|
||||||
i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models/odataerrors"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemContentTypesItemColumnPositionsCountRequestBuilder provides operations to count the resources in the collection.
|
|
||||||
type ItemContentTypesItemColumnPositionsCountRequestBuilder struct {
|
|
||||||
// Path parameters for the request
|
|
||||||
pathParameters map[string]string
|
|
||||||
// The request adapter to use to execute the requests.
|
|
||||||
requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter
|
|
||||||
// Url template to use to build the URL for the current request builder
|
|
||||||
urlTemplate string
|
|
||||||
}
|
|
||||||
// ItemContentTypesItemColumnPositionsCountRequestBuilderGetQueryParameters get the number of the resource
|
|
||||||
type ItemContentTypesItemColumnPositionsCountRequestBuilderGetQueryParameters struct {
|
|
||||||
// Filter items by property values
|
|
||||||
Filter *string `uriparametername:"%24filter"`
|
|
||||||
// Search items by search phrases
|
|
||||||
Search *string `uriparametername:"%24search"`
|
|
||||||
}
|
|
||||||
// ItemContentTypesItemColumnPositionsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
|
|
||||||
type ItemContentTypesItemColumnPositionsCountRequestBuilderGetRequestConfiguration struct {
|
|
||||||
// Request headers
|
|
||||||
Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
|
|
||||||
// Request options
|
|
||||||
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
|
|
||||||
// Request query parameters
|
|
||||||
QueryParameters *ItemContentTypesItemColumnPositionsCountRequestBuilderGetQueryParameters
|
|
||||||
}
|
|
||||||
// NewItemContentTypesItemColumnPositionsCountRequestBuilderInternal instantiates a new CountRequestBuilder and sets the default values.
|
|
||||||
func NewItemContentTypesItemColumnPositionsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemContentTypesItemColumnPositionsCountRequestBuilder) {
|
|
||||||
m := &ItemContentTypesItemColumnPositionsCountRequestBuilder{
|
|
||||||
}
|
|
||||||
m.urlTemplate = "{+baseurl}/sites/{site%2Did}/contentTypes/{contentType%2Did}/columnPositions/$count{?%24search,%24filter}";
|
|
||||||
urlTplParams := make(map[string]string)
|
|
||||||
for idx, item := range pathParameters {
|
|
||||||
urlTplParams[idx] = item
|
|
||||||
}
|
|
||||||
m.pathParameters = urlTplParams;
|
|
||||||
m.requestAdapter = requestAdapter;
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// NewItemContentTypesItemColumnPositionsCountRequestBuilder instantiates a new CountRequestBuilder and sets the default values.
|
|
||||||
func NewItemContentTypesItemColumnPositionsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemContentTypesItemColumnPositionsCountRequestBuilder) {
|
|
||||||
urlParams := make(map[string]string)
|
|
||||||
urlParams["request-raw-url"] = rawUrl
|
|
||||||
return NewItemContentTypesItemColumnPositionsCountRequestBuilderInternal(urlParams, requestAdapter)
|
|
||||||
}
|
|
||||||
// CreateGetRequestInformation get the number of the resource
|
|
||||||
func (m *ItemContentTypesItemColumnPositionsCountRequestBuilder) CreateGetRequestInformation(ctx context.Context, requestConfiguration *ItemContentTypesItemColumnPositionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
|
|
||||||
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation()
|
|
||||||
requestInfo.UrlTemplate = m.urlTemplate
|
|
||||||
requestInfo.PathParameters = m.pathParameters
|
|
||||||
requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET
|
|
||||||
requestInfo.Headers.Add("Accept", "text/plain")
|
|
||||||
if requestConfiguration != nil {
|
|
||||||
if requestConfiguration.QueryParameters != nil {
|
|
||||||
requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters))
|
|
||||||
}
|
|
||||||
requestInfo.Headers.AddAll(requestConfiguration.Headers)
|
|
||||||
requestInfo.AddRequestOptions(requestConfiguration.Options)
|
|
||||||
}
|
|
||||||
return requestInfo, nil
|
|
||||||
}
|
|
||||||
// Get get the number of the resource
|
|
||||||
func (m *ItemContentTypesItemColumnPositionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemContentTypesItemColumnPositionsCountRequestBuilderGetRequestConfiguration)(*int32, error) {
|
|
||||||
requestInfo, err := m.CreateGetRequestInformation(ctx, requestConfiguration);
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
|
|
||||||
"4XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
"5XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
}
|
|
||||||
res, err := m.requestAdapter.SendPrimitiveAsync(ctx, requestInfo, "int32", errorMapping)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if res == nil {
|
|
||||||
return nil, nil
|
|
||||||
}
|
|
||||||
return res.(*int32), nil
|
|
||||||
}
|
|
||||||
@ -1,104 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
|
||||||
i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models/odataerrors"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemContentTypesItemColumnPositionsRequestBuilder provides operations to manage the columnPositions property of the microsoft.graph.contentType entity.
|
|
||||||
type ItemContentTypesItemColumnPositionsRequestBuilder struct {
|
|
||||||
// Path parameters for the request
|
|
||||||
pathParameters map[string]string
|
|
||||||
// The request adapter to use to execute the requests.
|
|
||||||
requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter
|
|
||||||
// Url template to use to build the URL for the current request builder
|
|
||||||
urlTemplate string
|
|
||||||
}
|
|
||||||
// ItemContentTypesItemColumnPositionsRequestBuilderGetQueryParameters column order information in a content type.
|
|
||||||
type ItemContentTypesItemColumnPositionsRequestBuilderGetQueryParameters struct {
|
|
||||||
// Include count of items
|
|
||||||
Count *bool `uriparametername:"%24count"`
|
|
||||||
// Expand related entities
|
|
||||||
Expand []string `uriparametername:"%24expand"`
|
|
||||||
// Filter items by property values
|
|
||||||
Filter *string `uriparametername:"%24filter"`
|
|
||||||
// Order items by property values
|
|
||||||
Orderby []string `uriparametername:"%24orderby"`
|
|
||||||
// Search items by search phrases
|
|
||||||
Search *string `uriparametername:"%24search"`
|
|
||||||
// Select properties to be returned
|
|
||||||
Select []string `uriparametername:"%24select"`
|
|
||||||
// Skip the first n items
|
|
||||||
Skip *int32 `uriparametername:"%24skip"`
|
|
||||||
// Show only the first n items
|
|
||||||
Top *int32 `uriparametername:"%24top"`
|
|
||||||
}
|
|
||||||
// ItemContentTypesItemColumnPositionsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
|
|
||||||
type ItemContentTypesItemColumnPositionsRequestBuilderGetRequestConfiguration struct {
|
|
||||||
// Request headers
|
|
||||||
Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
|
|
||||||
// Request options
|
|
||||||
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
|
|
||||||
// Request query parameters
|
|
||||||
QueryParameters *ItemContentTypesItemColumnPositionsRequestBuilderGetQueryParameters
|
|
||||||
}
|
|
||||||
// NewItemContentTypesItemColumnPositionsRequestBuilderInternal instantiates a new ColumnPositionsRequestBuilder and sets the default values.
|
|
||||||
func NewItemContentTypesItemColumnPositionsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemContentTypesItemColumnPositionsRequestBuilder) {
|
|
||||||
m := &ItemContentTypesItemColumnPositionsRequestBuilder{
|
|
||||||
}
|
|
||||||
m.urlTemplate = "{+baseurl}/sites/{site%2Did}/contentTypes/{contentType%2Did}/columnPositions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}";
|
|
||||||
urlTplParams := make(map[string]string)
|
|
||||||
for idx, item := range pathParameters {
|
|
||||||
urlTplParams[idx] = item
|
|
||||||
}
|
|
||||||
m.pathParameters = urlTplParams;
|
|
||||||
m.requestAdapter = requestAdapter;
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// NewItemContentTypesItemColumnPositionsRequestBuilder instantiates a new ColumnPositionsRequestBuilder and sets the default values.
|
|
||||||
func NewItemContentTypesItemColumnPositionsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemContentTypesItemColumnPositionsRequestBuilder) {
|
|
||||||
urlParams := make(map[string]string)
|
|
||||||
urlParams["request-raw-url"] = rawUrl
|
|
||||||
return NewItemContentTypesItemColumnPositionsRequestBuilderInternal(urlParams, requestAdapter)
|
|
||||||
}
|
|
||||||
// Count provides operations to count the resources in the collection.
|
|
||||||
func (m *ItemContentTypesItemColumnPositionsRequestBuilder) Count()(*ItemContentTypesItemColumnPositionsCountRequestBuilder) {
|
|
||||||
return NewItemContentTypesItemColumnPositionsCountRequestBuilderInternal(m.pathParameters, m.requestAdapter);
|
|
||||||
}
|
|
||||||
// CreateGetRequestInformation column order information in a content type.
|
|
||||||
func (m *ItemContentTypesItemColumnPositionsRequestBuilder) CreateGetRequestInformation(ctx context.Context, requestConfiguration *ItemContentTypesItemColumnPositionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
|
|
||||||
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation()
|
|
||||||
requestInfo.UrlTemplate = m.urlTemplate
|
|
||||||
requestInfo.PathParameters = m.pathParameters
|
|
||||||
requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET
|
|
||||||
requestInfo.Headers.Add("Accept", "application/json")
|
|
||||||
if requestConfiguration != nil {
|
|
||||||
if requestConfiguration.QueryParameters != nil {
|
|
||||||
requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters))
|
|
||||||
}
|
|
||||||
requestInfo.Headers.AddAll(requestConfiguration.Headers)
|
|
||||||
requestInfo.AddRequestOptions(requestConfiguration.Options)
|
|
||||||
}
|
|
||||||
return requestInfo, nil
|
|
||||||
}
|
|
||||||
// Get column order information in a content type.
|
|
||||||
func (m *ItemContentTypesItemColumnPositionsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemContentTypesItemColumnPositionsRequestBuilderGetRequestConfiguration)(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ColumnDefinitionCollectionResponseable, error) {
|
|
||||||
requestInfo, err := m.CreateGetRequestInformation(ctx, requestConfiguration);
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
|
|
||||||
"4XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
"5XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
}
|
|
||||||
res, err := m.requestAdapter.SendAsync(ctx, requestInfo, ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.CreateColumnDefinitionCollectionResponseFromDiscriminatorValue, errorMapping)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if res == nil {
|
|
||||||
return nil, nil
|
|
||||||
}
|
|
||||||
return res.(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ColumnDefinitionCollectionResponseable), nil
|
|
||||||
}
|
|
||||||
@ -1,167 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
|
||||||
i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models/odataerrors"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemContentTypesItemColumnsColumnDefinitionItemRequestBuilder provides operations to manage the columns property of the microsoft.graph.contentType entity.
|
|
||||||
type ItemContentTypesItemColumnsColumnDefinitionItemRequestBuilder struct {
|
|
||||||
// Path parameters for the request
|
|
||||||
pathParameters map[string]string
|
|
||||||
// The request adapter to use to execute the requests.
|
|
||||||
requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter
|
|
||||||
// Url template to use to build the URL for the current request builder
|
|
||||||
urlTemplate string
|
|
||||||
}
|
|
||||||
// ItemContentTypesItemColumnsColumnDefinitionItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
|
|
||||||
type ItemContentTypesItemColumnsColumnDefinitionItemRequestBuilderDeleteRequestConfiguration struct {
|
|
||||||
// Request headers
|
|
||||||
Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
|
|
||||||
// Request options
|
|
||||||
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
|
|
||||||
}
|
|
||||||
// ItemContentTypesItemColumnsColumnDefinitionItemRequestBuilderGetQueryParameters the collection of column definitions for this contentType.
|
|
||||||
type ItemContentTypesItemColumnsColumnDefinitionItemRequestBuilderGetQueryParameters struct {
|
|
||||||
// Expand related entities
|
|
||||||
Expand []string `uriparametername:"%24expand"`
|
|
||||||
// Select properties to be returned
|
|
||||||
Select []string `uriparametername:"%24select"`
|
|
||||||
}
|
|
||||||
// ItemContentTypesItemColumnsColumnDefinitionItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
|
|
||||||
type ItemContentTypesItemColumnsColumnDefinitionItemRequestBuilderGetRequestConfiguration struct {
|
|
||||||
// Request headers
|
|
||||||
Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
|
|
||||||
// Request options
|
|
||||||
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
|
|
||||||
// Request query parameters
|
|
||||||
QueryParameters *ItemContentTypesItemColumnsColumnDefinitionItemRequestBuilderGetQueryParameters
|
|
||||||
}
|
|
||||||
// ItemContentTypesItemColumnsColumnDefinitionItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
|
|
||||||
type ItemContentTypesItemColumnsColumnDefinitionItemRequestBuilderPatchRequestConfiguration struct {
|
|
||||||
// Request headers
|
|
||||||
Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
|
|
||||||
// Request options
|
|
||||||
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
|
|
||||||
}
|
|
||||||
// NewItemContentTypesItemColumnsColumnDefinitionItemRequestBuilderInternal instantiates a new ColumnDefinitionItemRequestBuilder and sets the default values.
|
|
||||||
func NewItemContentTypesItemColumnsColumnDefinitionItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemContentTypesItemColumnsColumnDefinitionItemRequestBuilder) {
|
|
||||||
m := &ItemContentTypesItemColumnsColumnDefinitionItemRequestBuilder{
|
|
||||||
}
|
|
||||||
m.urlTemplate = "{+baseurl}/sites/{site%2Did}/contentTypes/{contentType%2Did}/columns/{columnDefinition%2Did}{?%24select,%24expand}";
|
|
||||||
urlTplParams := make(map[string]string)
|
|
||||||
for idx, item := range pathParameters {
|
|
||||||
urlTplParams[idx] = item
|
|
||||||
}
|
|
||||||
m.pathParameters = urlTplParams;
|
|
||||||
m.requestAdapter = requestAdapter;
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// NewItemContentTypesItemColumnsColumnDefinitionItemRequestBuilder instantiates a new ColumnDefinitionItemRequestBuilder and sets the default values.
|
|
||||||
func NewItemContentTypesItemColumnsColumnDefinitionItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemContentTypesItemColumnsColumnDefinitionItemRequestBuilder) {
|
|
||||||
urlParams := make(map[string]string)
|
|
||||||
urlParams["request-raw-url"] = rawUrl
|
|
||||||
return NewItemContentTypesItemColumnsColumnDefinitionItemRequestBuilderInternal(urlParams, requestAdapter)
|
|
||||||
}
|
|
||||||
// CreateDeleteRequestInformation delete navigation property columns for sites
|
|
||||||
func (m *ItemContentTypesItemColumnsColumnDefinitionItemRequestBuilder) CreateDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemContentTypesItemColumnsColumnDefinitionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
|
|
||||||
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation()
|
|
||||||
requestInfo.UrlTemplate = m.urlTemplate
|
|
||||||
requestInfo.PathParameters = m.pathParameters
|
|
||||||
requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE
|
|
||||||
if requestConfiguration != nil {
|
|
||||||
requestInfo.Headers.AddAll(requestConfiguration.Headers)
|
|
||||||
requestInfo.AddRequestOptions(requestConfiguration.Options)
|
|
||||||
}
|
|
||||||
return requestInfo, nil
|
|
||||||
}
|
|
||||||
// CreateGetRequestInformation the collection of column definitions for this contentType.
|
|
||||||
func (m *ItemContentTypesItemColumnsColumnDefinitionItemRequestBuilder) CreateGetRequestInformation(ctx context.Context, requestConfiguration *ItemContentTypesItemColumnsColumnDefinitionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
|
|
||||||
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation()
|
|
||||||
requestInfo.UrlTemplate = m.urlTemplate
|
|
||||||
requestInfo.PathParameters = m.pathParameters
|
|
||||||
requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET
|
|
||||||
requestInfo.Headers.Add("Accept", "application/json")
|
|
||||||
if requestConfiguration != nil {
|
|
||||||
if requestConfiguration.QueryParameters != nil {
|
|
||||||
requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters))
|
|
||||||
}
|
|
||||||
requestInfo.Headers.AddAll(requestConfiguration.Headers)
|
|
||||||
requestInfo.AddRequestOptions(requestConfiguration.Options)
|
|
||||||
}
|
|
||||||
return requestInfo, nil
|
|
||||||
}
|
|
||||||
// CreatePatchRequestInformation update the navigation property columns in sites
|
|
||||||
func (m *ItemContentTypesItemColumnsColumnDefinitionItemRequestBuilder) CreatePatchRequestInformation(ctx context.Context, body ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ColumnDefinitionable, requestConfiguration *ItemContentTypesItemColumnsColumnDefinitionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
|
|
||||||
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation()
|
|
||||||
requestInfo.UrlTemplate = m.urlTemplate
|
|
||||||
requestInfo.PathParameters = m.pathParameters
|
|
||||||
requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH
|
|
||||||
requestInfo.Headers.Add("Accept", "application/json")
|
|
||||||
requestInfo.SetContentFromParsable(ctx, m.requestAdapter, "application/json", body)
|
|
||||||
if requestConfiguration != nil {
|
|
||||||
requestInfo.Headers.AddAll(requestConfiguration.Headers)
|
|
||||||
requestInfo.AddRequestOptions(requestConfiguration.Options)
|
|
||||||
}
|
|
||||||
return requestInfo, nil
|
|
||||||
}
|
|
||||||
// Delete delete navigation property columns for sites
|
|
||||||
func (m *ItemContentTypesItemColumnsColumnDefinitionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemContentTypesItemColumnsColumnDefinitionItemRequestBuilderDeleteRequestConfiguration)(error) {
|
|
||||||
requestInfo, err := m.CreateDeleteRequestInformation(ctx, requestConfiguration);
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
|
|
||||||
"4XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
"5XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
}
|
|
||||||
err = m.requestAdapter.SendNoContentAsync(ctx, requestInfo, errorMapping)
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
// Get the collection of column definitions for this contentType.
|
|
||||||
func (m *ItemContentTypesItemColumnsColumnDefinitionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemContentTypesItemColumnsColumnDefinitionItemRequestBuilderGetRequestConfiguration)(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ColumnDefinitionable, error) {
|
|
||||||
requestInfo, err := m.CreateGetRequestInformation(ctx, requestConfiguration);
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
|
|
||||||
"4XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
"5XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
}
|
|
||||||
res, err := m.requestAdapter.SendAsync(ctx, requestInfo, ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.CreateColumnDefinitionFromDiscriminatorValue, errorMapping)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if res == nil {
|
|
||||||
return nil, nil
|
|
||||||
}
|
|
||||||
return res.(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ColumnDefinitionable), nil
|
|
||||||
}
|
|
||||||
// Patch update the navigation property columns in sites
|
|
||||||
func (m *ItemContentTypesItemColumnsColumnDefinitionItemRequestBuilder) Patch(ctx context.Context, body ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ColumnDefinitionable, requestConfiguration *ItemContentTypesItemColumnsColumnDefinitionItemRequestBuilderPatchRequestConfiguration)(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ColumnDefinitionable, error) {
|
|
||||||
requestInfo, err := m.CreatePatchRequestInformation(ctx, body, requestConfiguration);
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
|
|
||||||
"4XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
"5XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
}
|
|
||||||
res, err := m.requestAdapter.SendAsync(ctx, requestInfo, ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.CreateColumnDefinitionFromDiscriminatorValue, errorMapping)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if res == nil {
|
|
||||||
return nil, nil
|
|
||||||
}
|
|
||||||
return res.(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ColumnDefinitionable), nil
|
|
||||||
}
|
|
||||||
// SourceColumn provides operations to manage the sourceColumn property of the microsoft.graph.columnDefinition entity.
|
|
||||||
func (m *ItemContentTypesItemColumnsColumnDefinitionItemRequestBuilder) SourceColumn()(*ItemContentTypesItemColumnsItemSourceColumnRequestBuilder) {
|
|
||||||
return NewItemContentTypesItemColumnsItemSourceColumnRequestBuilderInternal(m.pathParameters, m.requestAdapter);
|
|
||||||
}
|
|
||||||
@ -1,87 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
|
|
||||||
i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models/odataerrors"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemContentTypesItemColumnsCountRequestBuilder provides operations to count the resources in the collection.
|
|
||||||
type ItemContentTypesItemColumnsCountRequestBuilder struct {
|
|
||||||
// Path parameters for the request
|
|
||||||
pathParameters map[string]string
|
|
||||||
// The request adapter to use to execute the requests.
|
|
||||||
requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter
|
|
||||||
// Url template to use to build the URL for the current request builder
|
|
||||||
urlTemplate string
|
|
||||||
}
|
|
||||||
// ItemContentTypesItemColumnsCountRequestBuilderGetQueryParameters get the number of the resource
|
|
||||||
type ItemContentTypesItemColumnsCountRequestBuilderGetQueryParameters struct {
|
|
||||||
// Filter items by property values
|
|
||||||
Filter *string `uriparametername:"%24filter"`
|
|
||||||
// Search items by search phrases
|
|
||||||
Search *string `uriparametername:"%24search"`
|
|
||||||
}
|
|
||||||
// ItemContentTypesItemColumnsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
|
|
||||||
type ItemContentTypesItemColumnsCountRequestBuilderGetRequestConfiguration struct {
|
|
||||||
// Request headers
|
|
||||||
Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
|
|
||||||
// Request options
|
|
||||||
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
|
|
||||||
// Request query parameters
|
|
||||||
QueryParameters *ItemContentTypesItemColumnsCountRequestBuilderGetQueryParameters
|
|
||||||
}
|
|
||||||
// NewItemContentTypesItemColumnsCountRequestBuilderInternal instantiates a new CountRequestBuilder and sets the default values.
|
|
||||||
func NewItemContentTypesItemColumnsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemContentTypesItemColumnsCountRequestBuilder) {
|
|
||||||
m := &ItemContentTypesItemColumnsCountRequestBuilder{
|
|
||||||
}
|
|
||||||
m.urlTemplate = "{+baseurl}/sites/{site%2Did}/contentTypes/{contentType%2Did}/columns/$count{?%24search,%24filter}";
|
|
||||||
urlTplParams := make(map[string]string)
|
|
||||||
for idx, item := range pathParameters {
|
|
||||||
urlTplParams[idx] = item
|
|
||||||
}
|
|
||||||
m.pathParameters = urlTplParams;
|
|
||||||
m.requestAdapter = requestAdapter;
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// NewItemContentTypesItemColumnsCountRequestBuilder instantiates a new CountRequestBuilder and sets the default values.
|
|
||||||
func NewItemContentTypesItemColumnsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemContentTypesItemColumnsCountRequestBuilder) {
|
|
||||||
urlParams := make(map[string]string)
|
|
||||||
urlParams["request-raw-url"] = rawUrl
|
|
||||||
return NewItemContentTypesItemColumnsCountRequestBuilderInternal(urlParams, requestAdapter)
|
|
||||||
}
|
|
||||||
// CreateGetRequestInformation get the number of the resource
|
|
||||||
func (m *ItemContentTypesItemColumnsCountRequestBuilder) CreateGetRequestInformation(ctx context.Context, requestConfiguration *ItemContentTypesItemColumnsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
|
|
||||||
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation()
|
|
||||||
requestInfo.UrlTemplate = m.urlTemplate
|
|
||||||
requestInfo.PathParameters = m.pathParameters
|
|
||||||
requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET
|
|
||||||
requestInfo.Headers.Add("Accept", "text/plain")
|
|
||||||
if requestConfiguration != nil {
|
|
||||||
if requestConfiguration.QueryParameters != nil {
|
|
||||||
requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters))
|
|
||||||
}
|
|
||||||
requestInfo.Headers.AddAll(requestConfiguration.Headers)
|
|
||||||
requestInfo.AddRequestOptions(requestConfiguration.Options)
|
|
||||||
}
|
|
||||||
return requestInfo, nil
|
|
||||||
}
|
|
||||||
// Get get the number of the resource
|
|
||||||
func (m *ItemContentTypesItemColumnsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemContentTypesItemColumnsCountRequestBuilderGetRequestConfiguration)(*int32, error) {
|
|
||||||
requestInfo, err := m.CreateGetRequestInformation(ctx, requestConfiguration);
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
|
|
||||||
"4XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
"5XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
}
|
|
||||||
res, err := m.requestAdapter.SendPrimitiveAsync(ctx, requestInfo, "int32", errorMapping)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if res == nil {
|
|
||||||
return nil, nil
|
|
||||||
}
|
|
||||||
return res.(*int32), nil
|
|
||||||
}
|
|
||||||
@ -1,88 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
|
||||||
i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models/odataerrors"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemContentTypesItemColumnsItemSourceColumnRequestBuilder provides operations to manage the sourceColumn property of the microsoft.graph.columnDefinition entity.
|
|
||||||
type ItemContentTypesItemColumnsItemSourceColumnRequestBuilder struct {
|
|
||||||
// Path parameters for the request
|
|
||||||
pathParameters map[string]string
|
|
||||||
// The request adapter to use to execute the requests.
|
|
||||||
requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter
|
|
||||||
// Url template to use to build the URL for the current request builder
|
|
||||||
urlTemplate string
|
|
||||||
}
|
|
||||||
// ItemContentTypesItemColumnsItemSourceColumnRequestBuilderGetQueryParameters the source column for content type column.
|
|
||||||
type ItemContentTypesItemColumnsItemSourceColumnRequestBuilderGetQueryParameters struct {
|
|
||||||
// Expand related entities
|
|
||||||
Expand []string `uriparametername:"%24expand"`
|
|
||||||
// Select properties to be returned
|
|
||||||
Select []string `uriparametername:"%24select"`
|
|
||||||
}
|
|
||||||
// ItemContentTypesItemColumnsItemSourceColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
|
|
||||||
type ItemContentTypesItemColumnsItemSourceColumnRequestBuilderGetRequestConfiguration struct {
|
|
||||||
// Request headers
|
|
||||||
Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
|
|
||||||
// Request options
|
|
||||||
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
|
|
||||||
// Request query parameters
|
|
||||||
QueryParameters *ItemContentTypesItemColumnsItemSourceColumnRequestBuilderGetQueryParameters
|
|
||||||
}
|
|
||||||
// NewItemContentTypesItemColumnsItemSourceColumnRequestBuilderInternal instantiates a new SourceColumnRequestBuilder and sets the default values.
|
|
||||||
func NewItemContentTypesItemColumnsItemSourceColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemContentTypesItemColumnsItemSourceColumnRequestBuilder) {
|
|
||||||
m := &ItemContentTypesItemColumnsItemSourceColumnRequestBuilder{
|
|
||||||
}
|
|
||||||
m.urlTemplate = "{+baseurl}/sites/{site%2Did}/contentTypes/{contentType%2Did}/columns/{columnDefinition%2Did}/sourceColumn{?%24select,%24expand}";
|
|
||||||
urlTplParams := make(map[string]string)
|
|
||||||
for idx, item := range pathParameters {
|
|
||||||
urlTplParams[idx] = item
|
|
||||||
}
|
|
||||||
m.pathParameters = urlTplParams;
|
|
||||||
m.requestAdapter = requestAdapter;
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// NewItemContentTypesItemColumnsItemSourceColumnRequestBuilder instantiates a new SourceColumnRequestBuilder and sets the default values.
|
|
||||||
func NewItemContentTypesItemColumnsItemSourceColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemContentTypesItemColumnsItemSourceColumnRequestBuilder) {
|
|
||||||
urlParams := make(map[string]string)
|
|
||||||
urlParams["request-raw-url"] = rawUrl
|
|
||||||
return NewItemContentTypesItemColumnsItemSourceColumnRequestBuilderInternal(urlParams, requestAdapter)
|
|
||||||
}
|
|
||||||
// CreateGetRequestInformation the source column for content type column.
|
|
||||||
func (m *ItemContentTypesItemColumnsItemSourceColumnRequestBuilder) CreateGetRequestInformation(ctx context.Context, requestConfiguration *ItemContentTypesItemColumnsItemSourceColumnRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
|
|
||||||
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation()
|
|
||||||
requestInfo.UrlTemplate = m.urlTemplate
|
|
||||||
requestInfo.PathParameters = m.pathParameters
|
|
||||||
requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET
|
|
||||||
requestInfo.Headers.Add("Accept", "application/json")
|
|
||||||
if requestConfiguration != nil {
|
|
||||||
if requestConfiguration.QueryParameters != nil {
|
|
||||||
requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters))
|
|
||||||
}
|
|
||||||
requestInfo.Headers.AddAll(requestConfiguration.Headers)
|
|
||||||
requestInfo.AddRequestOptions(requestConfiguration.Options)
|
|
||||||
}
|
|
||||||
return requestInfo, nil
|
|
||||||
}
|
|
||||||
// Get the source column for content type column.
|
|
||||||
func (m *ItemContentTypesItemColumnsItemSourceColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemContentTypesItemColumnsItemSourceColumnRequestBuilderGetRequestConfiguration)(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ColumnDefinitionable, error) {
|
|
||||||
requestInfo, err := m.CreateGetRequestInformation(ctx, requestConfiguration);
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
|
|
||||||
"4XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
"5XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
}
|
|
||||||
res, err := m.requestAdapter.SendAsync(ctx, requestInfo, ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.CreateColumnDefinitionFromDiscriminatorValue, errorMapping)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if res == nil {
|
|
||||||
return nil, nil
|
|
||||||
}
|
|
||||||
return res.(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ColumnDefinitionable), nil
|
|
||||||
}
|
|
||||||
@ -1,150 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
|
||||||
i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models/odataerrors"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemContentTypesItemColumnsRequestBuilder provides operations to manage the columns property of the microsoft.graph.contentType entity.
|
|
||||||
type ItemContentTypesItemColumnsRequestBuilder struct {
|
|
||||||
// Path parameters for the request
|
|
||||||
pathParameters map[string]string
|
|
||||||
// The request adapter to use to execute the requests.
|
|
||||||
requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter
|
|
||||||
// Url template to use to build the URL for the current request builder
|
|
||||||
urlTemplate string
|
|
||||||
}
|
|
||||||
// ItemContentTypesItemColumnsRequestBuilderGetQueryParameters get the collection of columns, represented as [columnDefinition][columnDefinition] resources, in a [content type][contentType].
|
|
||||||
type ItemContentTypesItemColumnsRequestBuilderGetQueryParameters struct {
|
|
||||||
// Include count of items
|
|
||||||
Count *bool `uriparametername:"%24count"`
|
|
||||||
// Expand related entities
|
|
||||||
Expand []string `uriparametername:"%24expand"`
|
|
||||||
// Filter items by property values
|
|
||||||
Filter *string `uriparametername:"%24filter"`
|
|
||||||
// Order items by property values
|
|
||||||
Orderby []string `uriparametername:"%24orderby"`
|
|
||||||
// Search items by search phrases
|
|
||||||
Search *string `uriparametername:"%24search"`
|
|
||||||
// Select properties to be returned
|
|
||||||
Select []string `uriparametername:"%24select"`
|
|
||||||
// Skip the first n items
|
|
||||||
Skip *int32 `uriparametername:"%24skip"`
|
|
||||||
// Show only the first n items
|
|
||||||
Top *int32 `uriparametername:"%24top"`
|
|
||||||
}
|
|
||||||
// ItemContentTypesItemColumnsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
|
|
||||||
type ItemContentTypesItemColumnsRequestBuilderGetRequestConfiguration struct {
|
|
||||||
// Request headers
|
|
||||||
Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
|
|
||||||
// Request options
|
|
||||||
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
|
|
||||||
// Request query parameters
|
|
||||||
QueryParameters *ItemContentTypesItemColumnsRequestBuilderGetQueryParameters
|
|
||||||
}
|
|
||||||
// ItemContentTypesItemColumnsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
|
|
||||||
type ItemContentTypesItemColumnsRequestBuilderPostRequestConfiguration struct {
|
|
||||||
// Request headers
|
|
||||||
Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
|
|
||||||
// Request options
|
|
||||||
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
|
|
||||||
}
|
|
||||||
// NewItemContentTypesItemColumnsRequestBuilderInternal instantiates a new ColumnsRequestBuilder and sets the default values.
|
|
||||||
func NewItemContentTypesItemColumnsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemContentTypesItemColumnsRequestBuilder) {
|
|
||||||
m := &ItemContentTypesItemColumnsRequestBuilder{
|
|
||||||
}
|
|
||||||
m.urlTemplate = "{+baseurl}/sites/{site%2Did}/contentTypes/{contentType%2Did}/columns{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}";
|
|
||||||
urlTplParams := make(map[string]string)
|
|
||||||
for idx, item := range pathParameters {
|
|
||||||
urlTplParams[idx] = item
|
|
||||||
}
|
|
||||||
m.pathParameters = urlTplParams;
|
|
||||||
m.requestAdapter = requestAdapter;
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// NewItemContentTypesItemColumnsRequestBuilder instantiates a new ColumnsRequestBuilder and sets the default values.
|
|
||||||
func NewItemContentTypesItemColumnsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemContentTypesItemColumnsRequestBuilder) {
|
|
||||||
urlParams := make(map[string]string)
|
|
||||||
urlParams["request-raw-url"] = rawUrl
|
|
||||||
return NewItemContentTypesItemColumnsRequestBuilderInternal(urlParams, requestAdapter)
|
|
||||||
}
|
|
||||||
// Count provides operations to count the resources in the collection.
|
|
||||||
func (m *ItemContentTypesItemColumnsRequestBuilder) Count()(*ItemContentTypesItemColumnsCountRequestBuilder) {
|
|
||||||
return NewItemContentTypesItemColumnsCountRequestBuilderInternal(m.pathParameters, m.requestAdapter);
|
|
||||||
}
|
|
||||||
// CreateGetRequestInformation get the collection of columns, represented as [columnDefinition][columnDefinition] resources, in a [content type][contentType].
|
|
||||||
func (m *ItemContentTypesItemColumnsRequestBuilder) CreateGetRequestInformation(ctx context.Context, requestConfiguration *ItemContentTypesItemColumnsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
|
|
||||||
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation()
|
|
||||||
requestInfo.UrlTemplate = m.urlTemplate
|
|
||||||
requestInfo.PathParameters = m.pathParameters
|
|
||||||
requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET
|
|
||||||
requestInfo.Headers.Add("Accept", "application/json")
|
|
||||||
if requestConfiguration != nil {
|
|
||||||
if requestConfiguration.QueryParameters != nil {
|
|
||||||
requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters))
|
|
||||||
}
|
|
||||||
requestInfo.Headers.AddAll(requestConfiguration.Headers)
|
|
||||||
requestInfo.AddRequestOptions(requestConfiguration.Options)
|
|
||||||
}
|
|
||||||
return requestInfo, nil
|
|
||||||
}
|
|
||||||
// CreatePostRequestInformation add a column to a [content type][contentType] in a site or list by specifying a [columnDefinition][columnDefinition].
|
|
||||||
func (m *ItemContentTypesItemColumnsRequestBuilder) CreatePostRequestInformation(ctx context.Context, body ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ColumnDefinitionable, requestConfiguration *ItemContentTypesItemColumnsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
|
|
||||||
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation()
|
|
||||||
requestInfo.UrlTemplate = m.urlTemplate
|
|
||||||
requestInfo.PathParameters = m.pathParameters
|
|
||||||
requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST
|
|
||||||
requestInfo.Headers.Add("Accept", "application/json")
|
|
||||||
requestInfo.SetContentFromParsable(ctx, m.requestAdapter, "application/json", body)
|
|
||||||
if requestConfiguration != nil {
|
|
||||||
requestInfo.Headers.AddAll(requestConfiguration.Headers)
|
|
||||||
requestInfo.AddRequestOptions(requestConfiguration.Options)
|
|
||||||
}
|
|
||||||
return requestInfo, nil
|
|
||||||
}
|
|
||||||
// Get get the collection of columns, represented as [columnDefinition][columnDefinition] resources, in a [content type][contentType].
|
|
||||||
// [Find more info here]
|
|
||||||
//
|
|
||||||
// [Find more info here]: https://docs.microsoft.com/graph/api/contenttype-list-columns?view=graph-rest-1.0
|
|
||||||
func (m *ItemContentTypesItemColumnsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemContentTypesItemColumnsRequestBuilderGetRequestConfiguration)(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ColumnDefinitionCollectionResponseable, error) {
|
|
||||||
requestInfo, err := m.CreateGetRequestInformation(ctx, requestConfiguration);
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
|
|
||||||
"4XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
"5XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
}
|
|
||||||
res, err := m.requestAdapter.SendAsync(ctx, requestInfo, ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.CreateColumnDefinitionCollectionResponseFromDiscriminatorValue, errorMapping)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if res == nil {
|
|
||||||
return nil, nil
|
|
||||||
}
|
|
||||||
return res.(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ColumnDefinitionCollectionResponseable), nil
|
|
||||||
}
|
|
||||||
// Post add a column to a [content type][contentType] in a site or list by specifying a [columnDefinition][columnDefinition].
|
|
||||||
// [Find more info here]
|
|
||||||
//
|
|
||||||
// [Find more info here]: https://docs.microsoft.com/graph/api/contenttype-post-columns?view=graph-rest-1.0
|
|
||||||
func (m *ItemContentTypesItemColumnsRequestBuilder) Post(ctx context.Context, body ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ColumnDefinitionable, requestConfiguration *ItemContentTypesItemColumnsRequestBuilderPostRequestConfiguration)(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ColumnDefinitionable, error) {
|
|
||||||
requestInfo, err := m.CreatePostRequestInformation(ctx, body, requestConfiguration);
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
|
|
||||||
"4XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
"5XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
}
|
|
||||||
res, err := m.requestAdapter.SendAsync(ctx, requestInfo, ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.CreateColumnDefinitionFromDiscriminatorValue, errorMapping)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if res == nil {
|
|
||||||
return nil, nil
|
|
||||||
}
|
|
||||||
return res.(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ColumnDefinitionable), nil
|
|
||||||
}
|
|
||||||
@ -1,98 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemContentTypesItemCopyToDefaultContentLocationPostRequestBody provides operations to call the copyToDefaultContentLocation method.
|
|
||||||
type ItemContentTypesItemCopyToDefaultContentLocationPostRequestBody struct {
|
|
||||||
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
||||||
additionalData map[string]interface{}
|
|
||||||
// The destinationFileName property
|
|
||||||
destinationFileName *string
|
|
||||||
// The sourceFile property
|
|
||||||
sourceFile ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ItemReferenceable
|
|
||||||
}
|
|
||||||
// NewItemContentTypesItemCopyToDefaultContentLocationPostRequestBody instantiates a new ItemContentTypesItemCopyToDefaultContentLocationPostRequestBody and sets the default values.
|
|
||||||
func NewItemContentTypesItemCopyToDefaultContentLocationPostRequestBody()(*ItemContentTypesItemCopyToDefaultContentLocationPostRequestBody) {
|
|
||||||
m := &ItemContentTypesItemCopyToDefaultContentLocationPostRequestBody{
|
|
||||||
}
|
|
||||||
m.SetAdditionalData(make(map[string]interface{}));
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// CreateItemContentTypesItemCopyToDefaultContentLocationPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
|
||||||
func CreateItemContentTypesItemCopyToDefaultContentLocationPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
|
||||||
return NewItemContentTypesItemCopyToDefaultContentLocationPostRequestBody(), nil
|
|
||||||
}
|
|
||||||
// GetAdditionalData gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
||||||
func (m *ItemContentTypesItemCopyToDefaultContentLocationPostRequestBody) GetAdditionalData()(map[string]interface{}) {
|
|
||||||
return m.additionalData
|
|
||||||
}
|
|
||||||
// GetDestinationFileName gets the destinationFileName property value. The destinationFileName property
|
|
||||||
func (m *ItemContentTypesItemCopyToDefaultContentLocationPostRequestBody) GetDestinationFileName()(*string) {
|
|
||||||
return m.destinationFileName
|
|
||||||
}
|
|
||||||
// GetFieldDeserializers the deserialization information for the current model
|
|
||||||
func (m *ItemContentTypesItemCopyToDefaultContentLocationPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
|
||||||
res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
|
|
||||||
res["destinationFileName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
|
||||||
val, err := n.GetStringValue()
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if val != nil {
|
|
||||||
m.SetDestinationFileName(val)
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
res["sourceFile"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
|
||||||
val, err := n.GetObjectValue(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.CreateItemReferenceFromDiscriminatorValue)
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if val != nil {
|
|
||||||
m.SetSourceFile(val.(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ItemReferenceable))
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
return res
|
|
||||||
}
|
|
||||||
// GetSourceFile gets the sourceFile property value. The sourceFile property
|
|
||||||
func (m *ItemContentTypesItemCopyToDefaultContentLocationPostRequestBody) GetSourceFile()(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ItemReferenceable) {
|
|
||||||
return m.sourceFile
|
|
||||||
}
|
|
||||||
// Serialize serializes information the current object
|
|
||||||
func (m *ItemContentTypesItemCopyToDefaultContentLocationPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
|
||||||
{
|
|
||||||
err := writer.WriteStringValue("destinationFileName", m.GetDestinationFileName())
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
{
|
|
||||||
err := writer.WriteObjectValue("sourceFile", m.GetSourceFile())
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
{
|
|
||||||
err := writer.WriteAdditionalData(m.GetAdditionalData())
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
||||||
func (m *ItemContentTypesItemCopyToDefaultContentLocationPostRequestBody) SetAdditionalData(value map[string]interface{})() {
|
|
||||||
m.additionalData = value
|
|
||||||
}
|
|
||||||
// SetDestinationFileName sets the destinationFileName property value. The destinationFileName property
|
|
||||||
func (m *ItemContentTypesItemCopyToDefaultContentLocationPostRequestBody) SetDestinationFileName(value *string)() {
|
|
||||||
m.destinationFileName = value
|
|
||||||
}
|
|
||||||
// SetSourceFile sets the sourceFile property value. The sourceFile property
|
|
||||||
func (m *ItemContentTypesItemCopyToDefaultContentLocationPostRequestBody) SetSourceFile(value ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ItemReferenceable)() {
|
|
||||||
m.sourceFile = value
|
|
||||||
}
|
|
||||||
@ -1,16 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemContentTypesItemCopyToDefaultContentLocationPostRequestBodyable
|
|
||||||
type ItemContentTypesItemCopyToDefaultContentLocationPostRequestBodyable interface {
|
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
|
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
|
||||||
GetDestinationFileName()(*string)
|
|
||||||
GetSourceFile()(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ItemReferenceable)
|
|
||||||
SetDestinationFileName(value *string)()
|
|
||||||
SetSourceFile(value ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ItemReferenceable)()
|
|
||||||
}
|
|
||||||
@ -1,75 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
|
|
||||||
i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models/odataerrors"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemContentTypesItemCopyToDefaultContentLocationRequestBuilder provides operations to call the copyToDefaultContentLocation method.
|
|
||||||
type ItemContentTypesItemCopyToDefaultContentLocationRequestBuilder struct {
|
|
||||||
// Path parameters for the request
|
|
||||||
pathParameters map[string]string
|
|
||||||
// The request adapter to use to execute the requests.
|
|
||||||
requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter
|
|
||||||
// Url template to use to build the URL for the current request builder
|
|
||||||
urlTemplate string
|
|
||||||
}
|
|
||||||
// ItemContentTypesItemCopyToDefaultContentLocationRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
|
|
||||||
type ItemContentTypesItemCopyToDefaultContentLocationRequestBuilderPostRequestConfiguration struct {
|
|
||||||
// Request headers
|
|
||||||
Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
|
|
||||||
// Request options
|
|
||||||
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
|
|
||||||
}
|
|
||||||
// NewItemContentTypesItemCopyToDefaultContentLocationRequestBuilderInternal instantiates a new CopyToDefaultContentLocationRequestBuilder and sets the default values.
|
|
||||||
func NewItemContentTypesItemCopyToDefaultContentLocationRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemContentTypesItemCopyToDefaultContentLocationRequestBuilder) {
|
|
||||||
m := &ItemContentTypesItemCopyToDefaultContentLocationRequestBuilder{
|
|
||||||
}
|
|
||||||
m.urlTemplate = "{+baseurl}/sites/{site%2Did}/contentTypes/{contentType%2Did}/microsoft.graph.copyToDefaultContentLocation";
|
|
||||||
urlTplParams := make(map[string]string)
|
|
||||||
for idx, item := range pathParameters {
|
|
||||||
urlTplParams[idx] = item
|
|
||||||
}
|
|
||||||
m.pathParameters = urlTplParams;
|
|
||||||
m.requestAdapter = requestAdapter;
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// NewItemContentTypesItemCopyToDefaultContentLocationRequestBuilder instantiates a new CopyToDefaultContentLocationRequestBuilder and sets the default values.
|
|
||||||
func NewItemContentTypesItemCopyToDefaultContentLocationRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemContentTypesItemCopyToDefaultContentLocationRequestBuilder) {
|
|
||||||
urlParams := make(map[string]string)
|
|
||||||
urlParams["request-raw-url"] = rawUrl
|
|
||||||
return NewItemContentTypesItemCopyToDefaultContentLocationRequestBuilderInternal(urlParams, requestAdapter)
|
|
||||||
}
|
|
||||||
// CreatePostRequestInformation copy a file to a default content location in a [content type][contentType]. The file can then be added as a default file or template via a POST operation.
|
|
||||||
func (m *ItemContentTypesItemCopyToDefaultContentLocationRequestBuilder) CreatePostRequestInformation(ctx context.Context, body ItemContentTypesItemCopyToDefaultContentLocationPostRequestBodyable, requestConfiguration *ItemContentTypesItemCopyToDefaultContentLocationRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
|
|
||||||
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation()
|
|
||||||
requestInfo.UrlTemplate = m.urlTemplate
|
|
||||||
requestInfo.PathParameters = m.pathParameters
|
|
||||||
requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST
|
|
||||||
requestInfo.SetContentFromParsable(ctx, m.requestAdapter, "application/json", body)
|
|
||||||
if requestConfiguration != nil {
|
|
||||||
requestInfo.Headers.AddAll(requestConfiguration.Headers)
|
|
||||||
requestInfo.AddRequestOptions(requestConfiguration.Options)
|
|
||||||
}
|
|
||||||
return requestInfo, nil
|
|
||||||
}
|
|
||||||
// Post copy a file to a default content location in a [content type][contentType]. The file can then be added as a default file or template via a POST operation.
|
|
||||||
// [Find more info here]
|
|
||||||
//
|
|
||||||
// [Find more info here]: https://docs.microsoft.com/graph/api/contenttype-copytodefaultcontentlocation?view=graph-rest-1.0
|
|
||||||
func (m *ItemContentTypesItemCopyToDefaultContentLocationRequestBuilder) Post(ctx context.Context, body ItemContentTypesItemCopyToDefaultContentLocationPostRequestBodyable, requestConfiguration *ItemContentTypesItemCopyToDefaultContentLocationRequestBuilderPostRequestConfiguration)(error) {
|
|
||||||
requestInfo, err := m.CreatePostRequestInformation(ctx, body, requestConfiguration);
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
|
|
||||||
"4XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
"5XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
}
|
|
||||||
err = m.requestAdapter.SendNoContentAsync(ctx, requestInfo, errorMapping)
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
@ -1,75 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
|
|
||||||
i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models/odataerrors"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemContentTypesItemIsPublishedRequestBuilder provides operations to call the isPublished method.
|
|
||||||
type ItemContentTypesItemIsPublishedRequestBuilder struct {
|
|
||||||
// Path parameters for the request
|
|
||||||
pathParameters map[string]string
|
|
||||||
// The request adapter to use to execute the requests.
|
|
||||||
requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter
|
|
||||||
// Url template to use to build the URL for the current request builder
|
|
||||||
urlTemplate string
|
|
||||||
}
|
|
||||||
// ItemContentTypesItemIsPublishedRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
|
|
||||||
type ItemContentTypesItemIsPublishedRequestBuilderGetRequestConfiguration struct {
|
|
||||||
// Request headers
|
|
||||||
Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
|
|
||||||
// Request options
|
|
||||||
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
|
|
||||||
}
|
|
||||||
// NewItemContentTypesItemIsPublishedRequestBuilderInternal instantiates a new IsPublishedRequestBuilder and sets the default values.
|
|
||||||
func NewItemContentTypesItemIsPublishedRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemContentTypesItemIsPublishedRequestBuilder) {
|
|
||||||
m := &ItemContentTypesItemIsPublishedRequestBuilder{
|
|
||||||
}
|
|
||||||
m.urlTemplate = "{+baseurl}/sites/{site%2Did}/contentTypes/{contentType%2Did}/microsoft.graph.isPublished()";
|
|
||||||
urlTplParams := make(map[string]string)
|
|
||||||
for idx, item := range pathParameters {
|
|
||||||
urlTplParams[idx] = item
|
|
||||||
}
|
|
||||||
m.pathParameters = urlTplParams;
|
|
||||||
m.requestAdapter = requestAdapter;
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// NewItemContentTypesItemIsPublishedRequestBuilder instantiates a new IsPublishedRequestBuilder and sets the default values.
|
|
||||||
func NewItemContentTypesItemIsPublishedRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemContentTypesItemIsPublishedRequestBuilder) {
|
|
||||||
urlParams := make(map[string]string)
|
|
||||||
urlParams["request-raw-url"] = rawUrl
|
|
||||||
return NewItemContentTypesItemIsPublishedRequestBuilderInternal(urlParams, requestAdapter)
|
|
||||||
}
|
|
||||||
// CreateGetRequestInformation invoke function isPublished
|
|
||||||
func (m *ItemContentTypesItemIsPublishedRequestBuilder) CreateGetRequestInformation(ctx context.Context, requestConfiguration *ItemContentTypesItemIsPublishedRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
|
|
||||||
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation()
|
|
||||||
requestInfo.UrlTemplate = m.urlTemplate
|
|
||||||
requestInfo.PathParameters = m.pathParameters
|
|
||||||
requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET
|
|
||||||
requestInfo.Headers.Add("Accept", "application/json")
|
|
||||||
if requestConfiguration != nil {
|
|
||||||
requestInfo.Headers.AddAll(requestConfiguration.Headers)
|
|
||||||
requestInfo.AddRequestOptions(requestConfiguration.Options)
|
|
||||||
}
|
|
||||||
return requestInfo, nil
|
|
||||||
}
|
|
||||||
// Get invoke function isPublished
|
|
||||||
func (m *ItemContentTypesItemIsPublishedRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemContentTypesItemIsPublishedRequestBuilderGetRequestConfiguration)(ItemContentTypesItemIsPublishedResponseable, error) {
|
|
||||||
requestInfo, err := m.CreateGetRequestInformation(ctx, requestConfiguration);
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
|
|
||||||
"4XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
"5XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
}
|
|
||||||
res, err := m.requestAdapter.SendAsync(ctx, requestInfo, CreateItemContentTypesItemIsPublishedResponseFromDiscriminatorValue, errorMapping)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if res == nil {
|
|
||||||
return nil, nil
|
|
||||||
}
|
|
||||||
return res.(ItemContentTypesItemIsPublishedResponseable), nil
|
|
||||||
}
|
|
||||||
@ -1,71 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemContentTypesItemIsPublishedResponse provides operations to call the isPublished method.
|
|
||||||
type ItemContentTypesItemIsPublishedResponse struct {
|
|
||||||
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
||||||
additionalData map[string]interface{}
|
|
||||||
// The value property
|
|
||||||
value *bool
|
|
||||||
}
|
|
||||||
// NewItemContentTypesItemIsPublishedResponse instantiates a new ItemContentTypesItemIsPublishedResponse and sets the default values.
|
|
||||||
func NewItemContentTypesItemIsPublishedResponse()(*ItemContentTypesItemIsPublishedResponse) {
|
|
||||||
m := &ItemContentTypesItemIsPublishedResponse{
|
|
||||||
}
|
|
||||||
m.SetAdditionalData(make(map[string]interface{}));
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// CreateItemContentTypesItemIsPublishedResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
|
||||||
func CreateItemContentTypesItemIsPublishedResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
|
||||||
return NewItemContentTypesItemIsPublishedResponse(), nil
|
|
||||||
}
|
|
||||||
// GetAdditionalData gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
||||||
func (m *ItemContentTypesItemIsPublishedResponse) GetAdditionalData()(map[string]interface{}) {
|
|
||||||
return m.additionalData
|
|
||||||
}
|
|
||||||
// GetFieldDeserializers the deserialization information for the current model
|
|
||||||
func (m *ItemContentTypesItemIsPublishedResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
|
||||||
res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
|
|
||||||
res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
|
||||||
val, err := n.GetBoolValue()
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if val != nil {
|
|
||||||
m.SetValue(val)
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
return res
|
|
||||||
}
|
|
||||||
// GetValue gets the value property value. The value property
|
|
||||||
func (m *ItemContentTypesItemIsPublishedResponse) GetValue()(*bool) {
|
|
||||||
return m.value
|
|
||||||
}
|
|
||||||
// Serialize serializes information the current object
|
|
||||||
func (m *ItemContentTypesItemIsPublishedResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
|
||||||
{
|
|
||||||
err := writer.WriteBoolValue("value", m.GetValue())
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
{
|
|
||||||
err := writer.WriteAdditionalData(m.GetAdditionalData())
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
||||||
func (m *ItemContentTypesItemIsPublishedResponse) SetAdditionalData(value map[string]interface{})() {
|
|
||||||
m.additionalData = value
|
|
||||||
}
|
|
||||||
// SetValue sets the value property value. The value property
|
|
||||||
func (m *ItemContentTypesItemIsPublishedResponse) SetValue(value *bool)() {
|
|
||||||
m.value = value
|
|
||||||
}
|
|
||||||
@ -1,13 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemContentTypesItemIsPublishedResponseable
|
|
||||||
type ItemContentTypesItemIsPublishedResponseable interface {
|
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
|
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
|
||||||
GetValue()(*bool)
|
|
||||||
SetValue(value *bool)()
|
|
||||||
}
|
|
||||||
@ -1,74 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
|
|
||||||
i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models/odataerrors"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemContentTypesItemPublishRequestBuilder provides operations to call the publish method.
|
|
||||||
type ItemContentTypesItemPublishRequestBuilder struct {
|
|
||||||
// Path parameters for the request
|
|
||||||
pathParameters map[string]string
|
|
||||||
// The request adapter to use to execute the requests.
|
|
||||||
requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter
|
|
||||||
// Url template to use to build the URL for the current request builder
|
|
||||||
urlTemplate string
|
|
||||||
}
|
|
||||||
// ItemContentTypesItemPublishRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
|
|
||||||
type ItemContentTypesItemPublishRequestBuilderPostRequestConfiguration struct {
|
|
||||||
// Request headers
|
|
||||||
Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
|
|
||||||
// Request options
|
|
||||||
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
|
|
||||||
}
|
|
||||||
// NewItemContentTypesItemPublishRequestBuilderInternal instantiates a new PublishRequestBuilder and sets the default values.
|
|
||||||
func NewItemContentTypesItemPublishRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemContentTypesItemPublishRequestBuilder) {
|
|
||||||
m := &ItemContentTypesItemPublishRequestBuilder{
|
|
||||||
}
|
|
||||||
m.urlTemplate = "{+baseurl}/sites/{site%2Did}/contentTypes/{contentType%2Did}/microsoft.graph.publish";
|
|
||||||
urlTplParams := make(map[string]string)
|
|
||||||
for idx, item := range pathParameters {
|
|
||||||
urlTplParams[idx] = item
|
|
||||||
}
|
|
||||||
m.pathParameters = urlTplParams;
|
|
||||||
m.requestAdapter = requestAdapter;
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// NewItemContentTypesItemPublishRequestBuilder instantiates a new PublishRequestBuilder and sets the default values.
|
|
||||||
func NewItemContentTypesItemPublishRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemContentTypesItemPublishRequestBuilder) {
|
|
||||||
urlParams := make(map[string]string)
|
|
||||||
urlParams["request-raw-url"] = rawUrl
|
|
||||||
return NewItemContentTypesItemPublishRequestBuilderInternal(urlParams, requestAdapter)
|
|
||||||
}
|
|
||||||
// CreatePostRequestInformation publishes a [contentType][] present in a content type hub site.
|
|
||||||
func (m *ItemContentTypesItemPublishRequestBuilder) CreatePostRequestInformation(ctx context.Context, requestConfiguration *ItemContentTypesItemPublishRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
|
|
||||||
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation()
|
|
||||||
requestInfo.UrlTemplate = m.urlTemplate
|
|
||||||
requestInfo.PathParameters = m.pathParameters
|
|
||||||
requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST
|
|
||||||
if requestConfiguration != nil {
|
|
||||||
requestInfo.Headers.AddAll(requestConfiguration.Headers)
|
|
||||||
requestInfo.AddRequestOptions(requestConfiguration.Options)
|
|
||||||
}
|
|
||||||
return requestInfo, nil
|
|
||||||
}
|
|
||||||
// Post publishes a [contentType][] present in a content type hub site.
|
|
||||||
// [Find more info here]
|
|
||||||
//
|
|
||||||
// [Find more info here]: https://docs.microsoft.com/graph/api/contenttype-publish?view=graph-rest-1.0
|
|
||||||
func (m *ItemContentTypesItemPublishRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemContentTypesItemPublishRequestBuilderPostRequestConfiguration)(error) {
|
|
||||||
requestInfo, err := m.CreatePostRequestInformation(ctx, requestConfiguration);
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
|
|
||||||
"4XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
"5XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
}
|
|
||||||
err = m.requestAdapter.SendNoContentAsync(ctx, requestInfo, errorMapping)
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
@ -1,74 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
|
|
||||||
i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models/odataerrors"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemContentTypesItemUnpublishRequestBuilder provides operations to call the unpublish method.
|
|
||||||
type ItemContentTypesItemUnpublishRequestBuilder struct {
|
|
||||||
// Path parameters for the request
|
|
||||||
pathParameters map[string]string
|
|
||||||
// The request adapter to use to execute the requests.
|
|
||||||
requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter
|
|
||||||
// Url template to use to build the URL for the current request builder
|
|
||||||
urlTemplate string
|
|
||||||
}
|
|
||||||
// ItemContentTypesItemUnpublishRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
|
|
||||||
type ItemContentTypesItemUnpublishRequestBuilderPostRequestConfiguration struct {
|
|
||||||
// Request headers
|
|
||||||
Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
|
|
||||||
// Request options
|
|
||||||
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
|
|
||||||
}
|
|
||||||
// NewItemContentTypesItemUnpublishRequestBuilderInternal instantiates a new UnpublishRequestBuilder and sets the default values.
|
|
||||||
func NewItemContentTypesItemUnpublishRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemContentTypesItemUnpublishRequestBuilder) {
|
|
||||||
m := &ItemContentTypesItemUnpublishRequestBuilder{
|
|
||||||
}
|
|
||||||
m.urlTemplate = "{+baseurl}/sites/{site%2Did}/contentTypes/{contentType%2Did}/microsoft.graph.unpublish";
|
|
||||||
urlTplParams := make(map[string]string)
|
|
||||||
for idx, item := range pathParameters {
|
|
||||||
urlTplParams[idx] = item
|
|
||||||
}
|
|
||||||
m.pathParameters = urlTplParams;
|
|
||||||
m.requestAdapter = requestAdapter;
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// NewItemContentTypesItemUnpublishRequestBuilder instantiates a new UnpublishRequestBuilder and sets the default values.
|
|
||||||
func NewItemContentTypesItemUnpublishRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemContentTypesItemUnpublishRequestBuilder) {
|
|
||||||
urlParams := make(map[string]string)
|
|
||||||
urlParams["request-raw-url"] = rawUrl
|
|
||||||
return NewItemContentTypesItemUnpublishRequestBuilderInternal(urlParams, requestAdapter)
|
|
||||||
}
|
|
||||||
// CreatePostRequestInformation unpublish a [contentType][] from a content type hub site.
|
|
||||||
func (m *ItemContentTypesItemUnpublishRequestBuilder) CreatePostRequestInformation(ctx context.Context, requestConfiguration *ItemContentTypesItemUnpublishRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
|
|
||||||
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation()
|
|
||||||
requestInfo.UrlTemplate = m.urlTemplate
|
|
||||||
requestInfo.PathParameters = m.pathParameters
|
|
||||||
requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST
|
|
||||||
if requestConfiguration != nil {
|
|
||||||
requestInfo.Headers.AddAll(requestConfiguration.Headers)
|
|
||||||
requestInfo.AddRequestOptions(requestConfiguration.Options)
|
|
||||||
}
|
|
||||||
return requestInfo, nil
|
|
||||||
}
|
|
||||||
// Post unpublish a [contentType][] from a content type hub site.
|
|
||||||
// [Find more info here]
|
|
||||||
//
|
|
||||||
// [Find more info here]: https://docs.microsoft.com/graph/api/contenttype-unpublish?view=graph-rest-1.0
|
|
||||||
func (m *ItemContentTypesItemUnpublishRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemContentTypesItemUnpublishRequestBuilderPostRequestConfiguration)(error) {
|
|
||||||
requestInfo, err := m.CreatePostRequestInformation(ctx, requestConfiguration);
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
|
|
||||||
"4XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
"5XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
}
|
|
||||||
err = m.requestAdapter.SendNoContentAsync(ctx, requestInfo, errorMapping)
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
@ -1,162 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
|
||||||
i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models/odataerrors"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemContentTypesRequestBuilder provides operations to manage the contentTypes property of the microsoft.graph.site entity.
|
|
||||||
type ItemContentTypesRequestBuilder struct {
|
|
||||||
// Path parameters for the request
|
|
||||||
pathParameters map[string]string
|
|
||||||
// The request adapter to use to execute the requests.
|
|
||||||
requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter
|
|
||||||
// Url template to use to build the URL for the current request builder
|
|
||||||
urlTemplate string
|
|
||||||
}
|
|
||||||
// ItemContentTypesRequestBuilderGetQueryParameters get the collection of [contentType][contentType] resources in a [site][].
|
|
||||||
type ItemContentTypesRequestBuilderGetQueryParameters struct {
|
|
||||||
// Include count of items
|
|
||||||
Count *bool `uriparametername:"%24count"`
|
|
||||||
// Expand related entities
|
|
||||||
Expand []string `uriparametername:"%24expand"`
|
|
||||||
// Filter items by property values
|
|
||||||
Filter *string `uriparametername:"%24filter"`
|
|
||||||
// Order items by property values
|
|
||||||
Orderby []string `uriparametername:"%24orderby"`
|
|
||||||
// Search items by search phrases
|
|
||||||
Search *string `uriparametername:"%24search"`
|
|
||||||
// Select properties to be returned
|
|
||||||
Select []string `uriparametername:"%24select"`
|
|
||||||
// Skip the first n items
|
|
||||||
Skip *int32 `uriparametername:"%24skip"`
|
|
||||||
// Show only the first n items
|
|
||||||
Top *int32 `uriparametername:"%24top"`
|
|
||||||
}
|
|
||||||
// ItemContentTypesRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
|
|
||||||
type ItemContentTypesRequestBuilderGetRequestConfiguration struct {
|
|
||||||
// Request headers
|
|
||||||
Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
|
|
||||||
// Request options
|
|
||||||
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
|
|
||||||
// Request query parameters
|
|
||||||
QueryParameters *ItemContentTypesRequestBuilderGetQueryParameters
|
|
||||||
}
|
|
||||||
// ItemContentTypesRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
|
|
||||||
type ItemContentTypesRequestBuilderPostRequestConfiguration struct {
|
|
||||||
// Request headers
|
|
||||||
Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
|
|
||||||
// Request options
|
|
||||||
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
|
|
||||||
}
|
|
||||||
// AddCopy provides operations to call the addCopy method.
|
|
||||||
func (m *ItemContentTypesRequestBuilder) AddCopy()(*ItemContentTypesAddCopyRequestBuilder) {
|
|
||||||
return NewItemContentTypesAddCopyRequestBuilderInternal(m.pathParameters, m.requestAdapter);
|
|
||||||
}
|
|
||||||
// AddCopyFromContentTypeHub provides operations to call the addCopyFromContentTypeHub method.
|
|
||||||
func (m *ItemContentTypesRequestBuilder) AddCopyFromContentTypeHub()(*ItemContentTypesAddCopyFromContentTypeHubRequestBuilder) {
|
|
||||||
return NewItemContentTypesAddCopyFromContentTypeHubRequestBuilderInternal(m.pathParameters, m.requestAdapter);
|
|
||||||
}
|
|
||||||
// NewItemContentTypesRequestBuilderInternal instantiates a new ContentTypesRequestBuilder and sets the default values.
|
|
||||||
func NewItemContentTypesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemContentTypesRequestBuilder) {
|
|
||||||
m := &ItemContentTypesRequestBuilder{
|
|
||||||
}
|
|
||||||
m.urlTemplate = "{+baseurl}/sites/{site%2Did}/contentTypes{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}";
|
|
||||||
urlTplParams := make(map[string]string)
|
|
||||||
for idx, item := range pathParameters {
|
|
||||||
urlTplParams[idx] = item
|
|
||||||
}
|
|
||||||
m.pathParameters = urlTplParams;
|
|
||||||
m.requestAdapter = requestAdapter;
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// NewItemContentTypesRequestBuilder instantiates a new ContentTypesRequestBuilder and sets the default values.
|
|
||||||
func NewItemContentTypesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemContentTypesRequestBuilder) {
|
|
||||||
urlParams := make(map[string]string)
|
|
||||||
urlParams["request-raw-url"] = rawUrl
|
|
||||||
return NewItemContentTypesRequestBuilderInternal(urlParams, requestAdapter)
|
|
||||||
}
|
|
||||||
// Count provides operations to count the resources in the collection.
|
|
||||||
func (m *ItemContentTypesRequestBuilder) Count()(*ItemContentTypesCountRequestBuilder) {
|
|
||||||
return NewItemContentTypesCountRequestBuilderInternal(m.pathParameters, m.requestAdapter);
|
|
||||||
}
|
|
||||||
// CreateGetRequestInformation get the collection of [contentType][contentType] resources in a [site][].
|
|
||||||
func (m *ItemContentTypesRequestBuilder) CreateGetRequestInformation(ctx context.Context, requestConfiguration *ItemContentTypesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
|
|
||||||
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation()
|
|
||||||
requestInfo.UrlTemplate = m.urlTemplate
|
|
||||||
requestInfo.PathParameters = m.pathParameters
|
|
||||||
requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET
|
|
||||||
requestInfo.Headers.Add("Accept", "application/json")
|
|
||||||
if requestConfiguration != nil {
|
|
||||||
if requestConfiguration.QueryParameters != nil {
|
|
||||||
requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters))
|
|
||||||
}
|
|
||||||
requestInfo.Headers.AddAll(requestConfiguration.Headers)
|
|
||||||
requestInfo.AddRequestOptions(requestConfiguration.Options)
|
|
||||||
}
|
|
||||||
return requestInfo, nil
|
|
||||||
}
|
|
||||||
// CreatePostRequestInformation create a new [contentType][] for a [site][].
|
|
||||||
func (m *ItemContentTypesRequestBuilder) CreatePostRequestInformation(ctx context.Context, body ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ContentTypeable, requestConfiguration *ItemContentTypesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
|
|
||||||
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation()
|
|
||||||
requestInfo.UrlTemplate = m.urlTemplate
|
|
||||||
requestInfo.PathParameters = m.pathParameters
|
|
||||||
requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST
|
|
||||||
requestInfo.Headers.Add("Accept", "application/json")
|
|
||||||
requestInfo.SetContentFromParsable(ctx, m.requestAdapter, "application/json", body)
|
|
||||||
if requestConfiguration != nil {
|
|
||||||
requestInfo.Headers.AddAll(requestConfiguration.Headers)
|
|
||||||
requestInfo.AddRequestOptions(requestConfiguration.Options)
|
|
||||||
}
|
|
||||||
return requestInfo, nil
|
|
||||||
}
|
|
||||||
// Get get the collection of [contentType][contentType] resources in a [site][].
|
|
||||||
// [Find more info here]
|
|
||||||
//
|
|
||||||
// [Find more info here]: https://docs.microsoft.com/graph/api/site-list-contenttypes?view=graph-rest-1.0
|
|
||||||
func (m *ItemContentTypesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemContentTypesRequestBuilderGetRequestConfiguration)(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ContentTypeCollectionResponseable, error) {
|
|
||||||
requestInfo, err := m.CreateGetRequestInformation(ctx, requestConfiguration);
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
|
|
||||||
"4XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
"5XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
}
|
|
||||||
res, err := m.requestAdapter.SendAsync(ctx, requestInfo, ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.CreateContentTypeCollectionResponseFromDiscriminatorValue, errorMapping)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if res == nil {
|
|
||||||
return nil, nil
|
|
||||||
}
|
|
||||||
return res.(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ContentTypeCollectionResponseable), nil
|
|
||||||
}
|
|
||||||
// GetCompatibleHubContentTypes provides operations to call the getCompatibleHubContentTypes method.
|
|
||||||
func (m *ItemContentTypesRequestBuilder) GetCompatibleHubContentTypes()(*ItemContentTypesGetCompatibleHubContentTypesRequestBuilder) {
|
|
||||||
return NewItemContentTypesGetCompatibleHubContentTypesRequestBuilderInternal(m.pathParameters, m.requestAdapter);
|
|
||||||
}
|
|
||||||
// Post create a new [contentType][] for a [site][].
|
|
||||||
// [Find more info here]
|
|
||||||
//
|
|
||||||
// [Find more info here]: https://docs.microsoft.com/graph/api/site-post-contenttypes?view=graph-rest-1.0
|
|
||||||
func (m *ItemContentTypesRequestBuilder) Post(ctx context.Context, body ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ContentTypeable, requestConfiguration *ItemContentTypesRequestBuilderPostRequestConfiguration)(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ContentTypeable, error) {
|
|
||||||
requestInfo, err := m.CreatePostRequestInformation(ctx, body, requestConfiguration);
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
|
|
||||||
"4XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
"5XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
}
|
|
||||||
res, err := m.requestAdapter.SendAsync(ctx, requestInfo, ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.CreateContentTypeFromDiscriminatorValue, errorMapping)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if res == nil {
|
|
||||||
return nil, nil
|
|
||||||
}
|
|
||||||
return res.(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ContentTypeable), nil
|
|
||||||
}
|
|
||||||
@ -1,91 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
|
||||||
i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models/odataerrors"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemDriveRequestBuilder provides operations to manage the drive property of the microsoft.graph.site entity.
|
|
||||||
type ItemDriveRequestBuilder struct {
|
|
||||||
// Path parameters for the request
|
|
||||||
pathParameters map[string]string
|
|
||||||
// The request adapter to use to execute the requests.
|
|
||||||
requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter
|
|
||||||
// Url template to use to build the URL for the current request builder
|
|
||||||
urlTemplate string
|
|
||||||
}
|
|
||||||
// ItemDriveRequestBuilderGetQueryParameters retrieve the properties and relationships of a Drive resource. A Drive is the top-level container for a file system, such as OneDrive or SharePoint document libraries.
|
|
||||||
type ItemDriveRequestBuilderGetQueryParameters struct {
|
|
||||||
// Expand related entities
|
|
||||||
Expand []string `uriparametername:"%24expand"`
|
|
||||||
// Select properties to be returned
|
|
||||||
Select []string `uriparametername:"%24select"`
|
|
||||||
}
|
|
||||||
// ItemDriveRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
|
|
||||||
type ItemDriveRequestBuilderGetRequestConfiguration struct {
|
|
||||||
// Request headers
|
|
||||||
Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
|
|
||||||
// Request options
|
|
||||||
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
|
|
||||||
// Request query parameters
|
|
||||||
QueryParameters *ItemDriveRequestBuilderGetQueryParameters
|
|
||||||
}
|
|
||||||
// NewItemDriveRequestBuilderInternal instantiates a new DriveRequestBuilder and sets the default values.
|
|
||||||
func NewItemDriveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemDriveRequestBuilder) {
|
|
||||||
m := &ItemDriveRequestBuilder{
|
|
||||||
}
|
|
||||||
m.urlTemplate = "{+baseurl}/sites/{site%2Did}/drive{?%24select,%24expand}";
|
|
||||||
urlTplParams := make(map[string]string)
|
|
||||||
for idx, item := range pathParameters {
|
|
||||||
urlTplParams[idx] = item
|
|
||||||
}
|
|
||||||
m.pathParameters = urlTplParams;
|
|
||||||
m.requestAdapter = requestAdapter;
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// NewItemDriveRequestBuilder instantiates a new DriveRequestBuilder and sets the default values.
|
|
||||||
func NewItemDriveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemDriveRequestBuilder) {
|
|
||||||
urlParams := make(map[string]string)
|
|
||||||
urlParams["request-raw-url"] = rawUrl
|
|
||||||
return NewItemDriveRequestBuilderInternal(urlParams, requestAdapter)
|
|
||||||
}
|
|
||||||
// CreateGetRequestInformation retrieve the properties and relationships of a Drive resource. A Drive is the top-level container for a file system, such as OneDrive or SharePoint document libraries.
|
|
||||||
func (m *ItemDriveRequestBuilder) CreateGetRequestInformation(ctx context.Context, requestConfiguration *ItemDriveRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
|
|
||||||
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation()
|
|
||||||
requestInfo.UrlTemplate = m.urlTemplate
|
|
||||||
requestInfo.PathParameters = m.pathParameters
|
|
||||||
requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET
|
|
||||||
requestInfo.Headers.Add("Accept", "application/json")
|
|
||||||
if requestConfiguration != nil {
|
|
||||||
if requestConfiguration.QueryParameters != nil {
|
|
||||||
requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters))
|
|
||||||
}
|
|
||||||
requestInfo.Headers.AddAll(requestConfiguration.Headers)
|
|
||||||
requestInfo.AddRequestOptions(requestConfiguration.Options)
|
|
||||||
}
|
|
||||||
return requestInfo, nil
|
|
||||||
}
|
|
||||||
// Get retrieve the properties and relationships of a Drive resource. A Drive is the top-level container for a file system, such as OneDrive or SharePoint document libraries.
|
|
||||||
// [Find more info here]
|
|
||||||
//
|
|
||||||
// [Find more info here]: https://docs.microsoft.com/graph/api/drive-get?view=graph-rest-1.0
|
|
||||||
func (m *ItemDriveRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDriveRequestBuilderGetRequestConfiguration)(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.Driveable, error) {
|
|
||||||
requestInfo, err := m.CreateGetRequestInformation(ctx, requestConfiguration);
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
|
|
||||||
"4XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
"5XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
}
|
|
||||||
res, err := m.requestAdapter.SendAsync(ctx, requestInfo, ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.CreateDriveFromDiscriminatorValue, errorMapping)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if res == nil {
|
|
||||||
return nil, nil
|
|
||||||
}
|
|
||||||
return res.(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.Driveable), nil
|
|
||||||
}
|
|
||||||
@ -1,87 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
|
|
||||||
i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models/odataerrors"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemDrivesCountRequestBuilder provides operations to count the resources in the collection.
|
|
||||||
type ItemDrivesCountRequestBuilder struct {
|
|
||||||
// Path parameters for the request
|
|
||||||
pathParameters map[string]string
|
|
||||||
// The request adapter to use to execute the requests.
|
|
||||||
requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter
|
|
||||||
// Url template to use to build the URL for the current request builder
|
|
||||||
urlTemplate string
|
|
||||||
}
|
|
||||||
// ItemDrivesCountRequestBuilderGetQueryParameters get the number of the resource
|
|
||||||
type ItemDrivesCountRequestBuilderGetQueryParameters struct {
|
|
||||||
// Filter items by property values
|
|
||||||
Filter *string `uriparametername:"%24filter"`
|
|
||||||
// Search items by search phrases
|
|
||||||
Search *string `uriparametername:"%24search"`
|
|
||||||
}
|
|
||||||
// ItemDrivesCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
|
|
||||||
type ItemDrivesCountRequestBuilderGetRequestConfiguration struct {
|
|
||||||
// Request headers
|
|
||||||
Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
|
|
||||||
// Request options
|
|
||||||
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
|
|
||||||
// Request query parameters
|
|
||||||
QueryParameters *ItemDrivesCountRequestBuilderGetQueryParameters
|
|
||||||
}
|
|
||||||
// NewItemDrivesCountRequestBuilderInternal instantiates a new CountRequestBuilder and sets the default values.
|
|
||||||
func NewItemDrivesCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemDrivesCountRequestBuilder) {
|
|
||||||
m := &ItemDrivesCountRequestBuilder{
|
|
||||||
}
|
|
||||||
m.urlTemplate = "{+baseurl}/sites/{site%2Did}/drives/$count{?%24search,%24filter}";
|
|
||||||
urlTplParams := make(map[string]string)
|
|
||||||
for idx, item := range pathParameters {
|
|
||||||
urlTplParams[idx] = item
|
|
||||||
}
|
|
||||||
m.pathParameters = urlTplParams;
|
|
||||||
m.requestAdapter = requestAdapter;
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// NewItemDrivesCountRequestBuilder instantiates a new CountRequestBuilder and sets the default values.
|
|
||||||
func NewItemDrivesCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemDrivesCountRequestBuilder) {
|
|
||||||
urlParams := make(map[string]string)
|
|
||||||
urlParams["request-raw-url"] = rawUrl
|
|
||||||
return NewItemDrivesCountRequestBuilderInternal(urlParams, requestAdapter)
|
|
||||||
}
|
|
||||||
// CreateGetRequestInformation get the number of the resource
|
|
||||||
func (m *ItemDrivesCountRequestBuilder) CreateGetRequestInformation(ctx context.Context, requestConfiguration *ItemDrivesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
|
|
||||||
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation()
|
|
||||||
requestInfo.UrlTemplate = m.urlTemplate
|
|
||||||
requestInfo.PathParameters = m.pathParameters
|
|
||||||
requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET
|
|
||||||
requestInfo.Headers.Add("Accept", "text/plain")
|
|
||||||
if requestConfiguration != nil {
|
|
||||||
if requestConfiguration.QueryParameters != nil {
|
|
||||||
requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters))
|
|
||||||
}
|
|
||||||
requestInfo.Headers.AddAll(requestConfiguration.Headers)
|
|
||||||
requestInfo.AddRequestOptions(requestConfiguration.Options)
|
|
||||||
}
|
|
||||||
return requestInfo, nil
|
|
||||||
}
|
|
||||||
// Get get the number of the resource
|
|
||||||
func (m *ItemDrivesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDrivesCountRequestBuilderGetRequestConfiguration)(*int32, error) {
|
|
||||||
requestInfo, err := m.CreateGetRequestInformation(ctx, requestConfiguration);
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
|
|
||||||
"4XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
"5XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
}
|
|
||||||
res, err := m.requestAdapter.SendPrimitiveAsync(ctx, requestInfo, "int32", errorMapping)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if res == nil {
|
|
||||||
return nil, nil
|
|
||||||
}
|
|
||||||
return res.(*int32), nil
|
|
||||||
}
|
|
||||||
@ -1,88 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
|
||||||
i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models/odataerrors"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemDrivesDriveItemRequestBuilder provides operations to manage the drives property of the microsoft.graph.site entity.
|
|
||||||
type ItemDrivesDriveItemRequestBuilder struct {
|
|
||||||
// Path parameters for the request
|
|
||||||
pathParameters map[string]string
|
|
||||||
// The request adapter to use to execute the requests.
|
|
||||||
requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter
|
|
||||||
// Url template to use to build the URL for the current request builder
|
|
||||||
urlTemplate string
|
|
||||||
}
|
|
||||||
// ItemDrivesDriveItemRequestBuilderGetQueryParameters the collection of drives (document libraries) under this site.
|
|
||||||
type ItemDrivesDriveItemRequestBuilderGetQueryParameters struct {
|
|
||||||
// Expand related entities
|
|
||||||
Expand []string `uriparametername:"%24expand"`
|
|
||||||
// Select properties to be returned
|
|
||||||
Select []string `uriparametername:"%24select"`
|
|
||||||
}
|
|
||||||
// ItemDrivesDriveItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
|
|
||||||
type ItemDrivesDriveItemRequestBuilderGetRequestConfiguration struct {
|
|
||||||
// Request headers
|
|
||||||
Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
|
|
||||||
// Request options
|
|
||||||
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
|
|
||||||
// Request query parameters
|
|
||||||
QueryParameters *ItemDrivesDriveItemRequestBuilderGetQueryParameters
|
|
||||||
}
|
|
||||||
// NewItemDrivesDriveItemRequestBuilderInternal instantiates a new DriveItemRequestBuilder and sets the default values.
|
|
||||||
func NewItemDrivesDriveItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemDrivesDriveItemRequestBuilder) {
|
|
||||||
m := &ItemDrivesDriveItemRequestBuilder{
|
|
||||||
}
|
|
||||||
m.urlTemplate = "{+baseurl}/sites/{site%2Did}/drives/{drive%2Did}{?%24select,%24expand}";
|
|
||||||
urlTplParams := make(map[string]string)
|
|
||||||
for idx, item := range pathParameters {
|
|
||||||
urlTplParams[idx] = item
|
|
||||||
}
|
|
||||||
m.pathParameters = urlTplParams;
|
|
||||||
m.requestAdapter = requestAdapter;
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// NewItemDrivesDriveItemRequestBuilder instantiates a new DriveItemRequestBuilder and sets the default values.
|
|
||||||
func NewItemDrivesDriveItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemDrivesDriveItemRequestBuilder) {
|
|
||||||
urlParams := make(map[string]string)
|
|
||||||
urlParams["request-raw-url"] = rawUrl
|
|
||||||
return NewItemDrivesDriveItemRequestBuilderInternal(urlParams, requestAdapter)
|
|
||||||
}
|
|
||||||
// CreateGetRequestInformation the collection of drives (document libraries) under this site.
|
|
||||||
func (m *ItemDrivesDriveItemRequestBuilder) CreateGetRequestInformation(ctx context.Context, requestConfiguration *ItemDrivesDriveItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
|
|
||||||
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation()
|
|
||||||
requestInfo.UrlTemplate = m.urlTemplate
|
|
||||||
requestInfo.PathParameters = m.pathParameters
|
|
||||||
requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET
|
|
||||||
requestInfo.Headers.Add("Accept", "application/json")
|
|
||||||
if requestConfiguration != nil {
|
|
||||||
if requestConfiguration.QueryParameters != nil {
|
|
||||||
requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters))
|
|
||||||
}
|
|
||||||
requestInfo.Headers.AddAll(requestConfiguration.Headers)
|
|
||||||
requestInfo.AddRequestOptions(requestConfiguration.Options)
|
|
||||||
}
|
|
||||||
return requestInfo, nil
|
|
||||||
}
|
|
||||||
// Get the collection of drives (document libraries) under this site.
|
|
||||||
func (m *ItemDrivesDriveItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDrivesDriveItemRequestBuilderGetRequestConfiguration)(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.Driveable, error) {
|
|
||||||
requestInfo, err := m.CreateGetRequestInformation(ctx, requestConfiguration);
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
|
|
||||||
"4XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
"5XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
}
|
|
||||||
res, err := m.requestAdapter.SendAsync(ctx, requestInfo, ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.CreateDriveFromDiscriminatorValue, errorMapping)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if res == nil {
|
|
||||||
return nil, nil
|
|
||||||
}
|
|
||||||
return res.(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.Driveable), nil
|
|
||||||
}
|
|
||||||
@ -1,107 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
|
||||||
i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models/odataerrors"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemDrivesRequestBuilder provides operations to manage the drives property of the microsoft.graph.site entity.
|
|
||||||
type ItemDrivesRequestBuilder struct {
|
|
||||||
// Path parameters for the request
|
|
||||||
pathParameters map[string]string
|
|
||||||
// The request adapter to use to execute the requests.
|
|
||||||
requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter
|
|
||||||
// Url template to use to build the URL for the current request builder
|
|
||||||
urlTemplate string
|
|
||||||
}
|
|
||||||
// ItemDrivesRequestBuilderGetQueryParameters retrieve the list of Drive resources available for a target User, Group, or Site.
|
|
||||||
type ItemDrivesRequestBuilderGetQueryParameters struct {
|
|
||||||
// Include count of items
|
|
||||||
Count *bool `uriparametername:"%24count"`
|
|
||||||
// Expand related entities
|
|
||||||
Expand []string `uriparametername:"%24expand"`
|
|
||||||
// Filter items by property values
|
|
||||||
Filter *string `uriparametername:"%24filter"`
|
|
||||||
// Order items by property values
|
|
||||||
Orderby []string `uriparametername:"%24orderby"`
|
|
||||||
// Search items by search phrases
|
|
||||||
Search *string `uriparametername:"%24search"`
|
|
||||||
// Select properties to be returned
|
|
||||||
Select []string `uriparametername:"%24select"`
|
|
||||||
// Skip the first n items
|
|
||||||
Skip *int32 `uriparametername:"%24skip"`
|
|
||||||
// Show only the first n items
|
|
||||||
Top *int32 `uriparametername:"%24top"`
|
|
||||||
}
|
|
||||||
// ItemDrivesRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
|
|
||||||
type ItemDrivesRequestBuilderGetRequestConfiguration struct {
|
|
||||||
// Request headers
|
|
||||||
Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
|
|
||||||
// Request options
|
|
||||||
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
|
|
||||||
// Request query parameters
|
|
||||||
QueryParameters *ItemDrivesRequestBuilderGetQueryParameters
|
|
||||||
}
|
|
||||||
// NewItemDrivesRequestBuilderInternal instantiates a new DrivesRequestBuilder and sets the default values.
|
|
||||||
func NewItemDrivesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemDrivesRequestBuilder) {
|
|
||||||
m := &ItemDrivesRequestBuilder{
|
|
||||||
}
|
|
||||||
m.urlTemplate = "{+baseurl}/sites/{site%2Did}/drives{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}";
|
|
||||||
urlTplParams := make(map[string]string)
|
|
||||||
for idx, item := range pathParameters {
|
|
||||||
urlTplParams[idx] = item
|
|
||||||
}
|
|
||||||
m.pathParameters = urlTplParams;
|
|
||||||
m.requestAdapter = requestAdapter;
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// NewItemDrivesRequestBuilder instantiates a new DrivesRequestBuilder and sets the default values.
|
|
||||||
func NewItemDrivesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemDrivesRequestBuilder) {
|
|
||||||
urlParams := make(map[string]string)
|
|
||||||
urlParams["request-raw-url"] = rawUrl
|
|
||||||
return NewItemDrivesRequestBuilderInternal(urlParams, requestAdapter)
|
|
||||||
}
|
|
||||||
// Count provides operations to count the resources in the collection.
|
|
||||||
func (m *ItemDrivesRequestBuilder) Count()(*ItemDrivesCountRequestBuilder) {
|
|
||||||
return NewItemDrivesCountRequestBuilderInternal(m.pathParameters, m.requestAdapter);
|
|
||||||
}
|
|
||||||
// CreateGetRequestInformation retrieve the list of Drive resources available for a target User, Group, or Site.
|
|
||||||
func (m *ItemDrivesRequestBuilder) CreateGetRequestInformation(ctx context.Context, requestConfiguration *ItemDrivesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
|
|
||||||
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation()
|
|
||||||
requestInfo.UrlTemplate = m.urlTemplate
|
|
||||||
requestInfo.PathParameters = m.pathParameters
|
|
||||||
requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET
|
|
||||||
requestInfo.Headers.Add("Accept", "application/json")
|
|
||||||
if requestConfiguration != nil {
|
|
||||||
if requestConfiguration.QueryParameters != nil {
|
|
||||||
requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters))
|
|
||||||
}
|
|
||||||
requestInfo.Headers.AddAll(requestConfiguration.Headers)
|
|
||||||
requestInfo.AddRequestOptions(requestConfiguration.Options)
|
|
||||||
}
|
|
||||||
return requestInfo, nil
|
|
||||||
}
|
|
||||||
// Get retrieve the list of Drive resources available for a target User, Group, or Site.
|
|
||||||
// [Find more info here]
|
|
||||||
//
|
|
||||||
// [Find more info here]: https://docs.microsoft.com/graph/api/drive-list?view=graph-rest-1.0
|
|
||||||
func (m *ItemDrivesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDrivesRequestBuilderGetRequestConfiguration)(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.DriveCollectionResponseable, error) {
|
|
||||||
requestInfo, err := m.CreateGetRequestInformation(ctx, requestConfiguration);
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
|
|
||||||
"4XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
"5XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
}
|
|
||||||
res, err := m.requestAdapter.SendAsync(ctx, requestInfo, ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.CreateDriveCollectionResponseFromDiscriminatorValue, errorMapping)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if res == nil {
|
|
||||||
return nil, nil
|
|
||||||
}
|
|
||||||
return res.(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.DriveCollectionResponseable), nil
|
|
||||||
}
|
|
||||||
@ -1,88 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
|
||||||
i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models/odataerrors"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemExternalColumnsColumnDefinitionItemRequestBuilder provides operations to manage the externalColumns property of the microsoft.graph.site entity.
|
|
||||||
type ItemExternalColumnsColumnDefinitionItemRequestBuilder struct {
|
|
||||||
// Path parameters for the request
|
|
||||||
pathParameters map[string]string
|
|
||||||
// The request adapter to use to execute the requests.
|
|
||||||
requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter
|
|
||||||
// Url template to use to build the URL for the current request builder
|
|
||||||
urlTemplate string
|
|
||||||
}
|
|
||||||
// ItemExternalColumnsColumnDefinitionItemRequestBuilderGetQueryParameters the collection of column definitions available in the site that are referenced from the sites in the parent hierarchy of the current site.
|
|
||||||
type ItemExternalColumnsColumnDefinitionItemRequestBuilderGetQueryParameters struct {
|
|
||||||
// Expand related entities
|
|
||||||
Expand []string `uriparametername:"%24expand"`
|
|
||||||
// Select properties to be returned
|
|
||||||
Select []string `uriparametername:"%24select"`
|
|
||||||
}
|
|
||||||
// ItemExternalColumnsColumnDefinitionItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
|
|
||||||
type ItemExternalColumnsColumnDefinitionItemRequestBuilderGetRequestConfiguration struct {
|
|
||||||
// Request headers
|
|
||||||
Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
|
|
||||||
// Request options
|
|
||||||
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
|
|
||||||
// Request query parameters
|
|
||||||
QueryParameters *ItemExternalColumnsColumnDefinitionItemRequestBuilderGetQueryParameters
|
|
||||||
}
|
|
||||||
// NewItemExternalColumnsColumnDefinitionItemRequestBuilderInternal instantiates a new ColumnDefinitionItemRequestBuilder and sets the default values.
|
|
||||||
func NewItemExternalColumnsColumnDefinitionItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemExternalColumnsColumnDefinitionItemRequestBuilder) {
|
|
||||||
m := &ItemExternalColumnsColumnDefinitionItemRequestBuilder{
|
|
||||||
}
|
|
||||||
m.urlTemplate = "{+baseurl}/sites/{site%2Did}/externalColumns/{columnDefinition%2Did}{?%24select,%24expand}";
|
|
||||||
urlTplParams := make(map[string]string)
|
|
||||||
for idx, item := range pathParameters {
|
|
||||||
urlTplParams[idx] = item
|
|
||||||
}
|
|
||||||
m.pathParameters = urlTplParams;
|
|
||||||
m.requestAdapter = requestAdapter;
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// NewItemExternalColumnsColumnDefinitionItemRequestBuilder instantiates a new ColumnDefinitionItemRequestBuilder and sets the default values.
|
|
||||||
func NewItemExternalColumnsColumnDefinitionItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemExternalColumnsColumnDefinitionItemRequestBuilder) {
|
|
||||||
urlParams := make(map[string]string)
|
|
||||||
urlParams["request-raw-url"] = rawUrl
|
|
||||||
return NewItemExternalColumnsColumnDefinitionItemRequestBuilderInternal(urlParams, requestAdapter)
|
|
||||||
}
|
|
||||||
// CreateGetRequestInformation the collection of column definitions available in the site that are referenced from the sites in the parent hierarchy of the current site.
|
|
||||||
func (m *ItemExternalColumnsColumnDefinitionItemRequestBuilder) CreateGetRequestInformation(ctx context.Context, requestConfiguration *ItemExternalColumnsColumnDefinitionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
|
|
||||||
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation()
|
|
||||||
requestInfo.UrlTemplate = m.urlTemplate
|
|
||||||
requestInfo.PathParameters = m.pathParameters
|
|
||||||
requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET
|
|
||||||
requestInfo.Headers.Add("Accept", "application/json")
|
|
||||||
if requestConfiguration != nil {
|
|
||||||
if requestConfiguration.QueryParameters != nil {
|
|
||||||
requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters))
|
|
||||||
}
|
|
||||||
requestInfo.Headers.AddAll(requestConfiguration.Headers)
|
|
||||||
requestInfo.AddRequestOptions(requestConfiguration.Options)
|
|
||||||
}
|
|
||||||
return requestInfo, nil
|
|
||||||
}
|
|
||||||
// Get the collection of column definitions available in the site that are referenced from the sites in the parent hierarchy of the current site.
|
|
||||||
func (m *ItemExternalColumnsColumnDefinitionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemExternalColumnsColumnDefinitionItemRequestBuilderGetRequestConfiguration)(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ColumnDefinitionable, error) {
|
|
||||||
requestInfo, err := m.CreateGetRequestInformation(ctx, requestConfiguration);
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
|
|
||||||
"4XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
"5XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
}
|
|
||||||
res, err := m.requestAdapter.SendAsync(ctx, requestInfo, ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.CreateColumnDefinitionFromDiscriminatorValue, errorMapping)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if res == nil {
|
|
||||||
return nil, nil
|
|
||||||
}
|
|
||||||
return res.(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ColumnDefinitionable), nil
|
|
||||||
}
|
|
||||||
@ -1,87 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
|
|
||||||
i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models/odataerrors"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemExternalColumnsCountRequestBuilder provides operations to count the resources in the collection.
|
|
||||||
type ItemExternalColumnsCountRequestBuilder struct {
|
|
||||||
// Path parameters for the request
|
|
||||||
pathParameters map[string]string
|
|
||||||
// The request adapter to use to execute the requests.
|
|
||||||
requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter
|
|
||||||
// Url template to use to build the URL for the current request builder
|
|
||||||
urlTemplate string
|
|
||||||
}
|
|
||||||
// ItemExternalColumnsCountRequestBuilderGetQueryParameters get the number of the resource
|
|
||||||
type ItemExternalColumnsCountRequestBuilderGetQueryParameters struct {
|
|
||||||
// Filter items by property values
|
|
||||||
Filter *string `uriparametername:"%24filter"`
|
|
||||||
// Search items by search phrases
|
|
||||||
Search *string `uriparametername:"%24search"`
|
|
||||||
}
|
|
||||||
// ItemExternalColumnsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
|
|
||||||
type ItemExternalColumnsCountRequestBuilderGetRequestConfiguration struct {
|
|
||||||
// Request headers
|
|
||||||
Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
|
|
||||||
// Request options
|
|
||||||
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
|
|
||||||
// Request query parameters
|
|
||||||
QueryParameters *ItemExternalColumnsCountRequestBuilderGetQueryParameters
|
|
||||||
}
|
|
||||||
// NewItemExternalColumnsCountRequestBuilderInternal instantiates a new CountRequestBuilder and sets the default values.
|
|
||||||
func NewItemExternalColumnsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemExternalColumnsCountRequestBuilder) {
|
|
||||||
m := &ItemExternalColumnsCountRequestBuilder{
|
|
||||||
}
|
|
||||||
m.urlTemplate = "{+baseurl}/sites/{site%2Did}/externalColumns/$count{?%24search,%24filter}";
|
|
||||||
urlTplParams := make(map[string]string)
|
|
||||||
for idx, item := range pathParameters {
|
|
||||||
urlTplParams[idx] = item
|
|
||||||
}
|
|
||||||
m.pathParameters = urlTplParams;
|
|
||||||
m.requestAdapter = requestAdapter;
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// NewItemExternalColumnsCountRequestBuilder instantiates a new CountRequestBuilder and sets the default values.
|
|
||||||
func NewItemExternalColumnsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemExternalColumnsCountRequestBuilder) {
|
|
||||||
urlParams := make(map[string]string)
|
|
||||||
urlParams["request-raw-url"] = rawUrl
|
|
||||||
return NewItemExternalColumnsCountRequestBuilderInternal(urlParams, requestAdapter)
|
|
||||||
}
|
|
||||||
// CreateGetRequestInformation get the number of the resource
|
|
||||||
func (m *ItemExternalColumnsCountRequestBuilder) CreateGetRequestInformation(ctx context.Context, requestConfiguration *ItemExternalColumnsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
|
|
||||||
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation()
|
|
||||||
requestInfo.UrlTemplate = m.urlTemplate
|
|
||||||
requestInfo.PathParameters = m.pathParameters
|
|
||||||
requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET
|
|
||||||
requestInfo.Headers.Add("Accept", "text/plain")
|
|
||||||
if requestConfiguration != nil {
|
|
||||||
if requestConfiguration.QueryParameters != nil {
|
|
||||||
requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters))
|
|
||||||
}
|
|
||||||
requestInfo.Headers.AddAll(requestConfiguration.Headers)
|
|
||||||
requestInfo.AddRequestOptions(requestConfiguration.Options)
|
|
||||||
}
|
|
||||||
return requestInfo, nil
|
|
||||||
}
|
|
||||||
// Get get the number of the resource
|
|
||||||
func (m *ItemExternalColumnsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemExternalColumnsCountRequestBuilderGetRequestConfiguration)(*int32, error) {
|
|
||||||
requestInfo, err := m.CreateGetRequestInformation(ctx, requestConfiguration);
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
|
|
||||||
"4XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
"5XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
}
|
|
||||||
res, err := m.requestAdapter.SendPrimitiveAsync(ctx, requestInfo, "int32", errorMapping)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if res == nil {
|
|
||||||
return nil, nil
|
|
||||||
}
|
|
||||||
return res.(*int32), nil
|
|
||||||
}
|
|
||||||
@ -1,104 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
|
||||||
i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models/odataerrors"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemExternalColumnsRequestBuilder provides operations to manage the externalColumns property of the microsoft.graph.site entity.
|
|
||||||
type ItemExternalColumnsRequestBuilder struct {
|
|
||||||
// Path parameters for the request
|
|
||||||
pathParameters map[string]string
|
|
||||||
// The request adapter to use to execute the requests.
|
|
||||||
requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter
|
|
||||||
// Url template to use to build the URL for the current request builder
|
|
||||||
urlTemplate string
|
|
||||||
}
|
|
||||||
// ItemExternalColumnsRequestBuilderGetQueryParameters the collection of column definitions available in the site that are referenced from the sites in the parent hierarchy of the current site.
|
|
||||||
type ItemExternalColumnsRequestBuilderGetQueryParameters struct {
|
|
||||||
// Include count of items
|
|
||||||
Count *bool `uriparametername:"%24count"`
|
|
||||||
// Expand related entities
|
|
||||||
Expand []string `uriparametername:"%24expand"`
|
|
||||||
// Filter items by property values
|
|
||||||
Filter *string `uriparametername:"%24filter"`
|
|
||||||
// Order items by property values
|
|
||||||
Orderby []string `uriparametername:"%24orderby"`
|
|
||||||
// Search items by search phrases
|
|
||||||
Search *string `uriparametername:"%24search"`
|
|
||||||
// Select properties to be returned
|
|
||||||
Select []string `uriparametername:"%24select"`
|
|
||||||
// Skip the first n items
|
|
||||||
Skip *int32 `uriparametername:"%24skip"`
|
|
||||||
// Show only the first n items
|
|
||||||
Top *int32 `uriparametername:"%24top"`
|
|
||||||
}
|
|
||||||
// ItemExternalColumnsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
|
|
||||||
type ItemExternalColumnsRequestBuilderGetRequestConfiguration struct {
|
|
||||||
// Request headers
|
|
||||||
Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
|
|
||||||
// Request options
|
|
||||||
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
|
|
||||||
// Request query parameters
|
|
||||||
QueryParameters *ItemExternalColumnsRequestBuilderGetQueryParameters
|
|
||||||
}
|
|
||||||
// NewItemExternalColumnsRequestBuilderInternal instantiates a new ExternalColumnsRequestBuilder and sets the default values.
|
|
||||||
func NewItemExternalColumnsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemExternalColumnsRequestBuilder) {
|
|
||||||
m := &ItemExternalColumnsRequestBuilder{
|
|
||||||
}
|
|
||||||
m.urlTemplate = "{+baseurl}/sites/{site%2Did}/externalColumns{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}";
|
|
||||||
urlTplParams := make(map[string]string)
|
|
||||||
for idx, item := range pathParameters {
|
|
||||||
urlTplParams[idx] = item
|
|
||||||
}
|
|
||||||
m.pathParameters = urlTplParams;
|
|
||||||
m.requestAdapter = requestAdapter;
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// NewItemExternalColumnsRequestBuilder instantiates a new ExternalColumnsRequestBuilder and sets the default values.
|
|
||||||
func NewItemExternalColumnsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemExternalColumnsRequestBuilder) {
|
|
||||||
urlParams := make(map[string]string)
|
|
||||||
urlParams["request-raw-url"] = rawUrl
|
|
||||||
return NewItemExternalColumnsRequestBuilderInternal(urlParams, requestAdapter)
|
|
||||||
}
|
|
||||||
// Count provides operations to count the resources in the collection.
|
|
||||||
func (m *ItemExternalColumnsRequestBuilder) Count()(*ItemExternalColumnsCountRequestBuilder) {
|
|
||||||
return NewItemExternalColumnsCountRequestBuilderInternal(m.pathParameters, m.requestAdapter);
|
|
||||||
}
|
|
||||||
// CreateGetRequestInformation the collection of column definitions available in the site that are referenced from the sites in the parent hierarchy of the current site.
|
|
||||||
func (m *ItemExternalColumnsRequestBuilder) CreateGetRequestInformation(ctx context.Context, requestConfiguration *ItemExternalColumnsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
|
|
||||||
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation()
|
|
||||||
requestInfo.UrlTemplate = m.urlTemplate
|
|
||||||
requestInfo.PathParameters = m.pathParameters
|
|
||||||
requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET
|
|
||||||
requestInfo.Headers.Add("Accept", "application/json")
|
|
||||||
if requestConfiguration != nil {
|
|
||||||
if requestConfiguration.QueryParameters != nil {
|
|
||||||
requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters))
|
|
||||||
}
|
|
||||||
requestInfo.Headers.AddAll(requestConfiguration.Headers)
|
|
||||||
requestInfo.AddRequestOptions(requestConfiguration.Options)
|
|
||||||
}
|
|
||||||
return requestInfo, nil
|
|
||||||
}
|
|
||||||
// Get the collection of column definitions available in the site that are referenced from the sites in the parent hierarchy of the current site.
|
|
||||||
func (m *ItemExternalColumnsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemExternalColumnsRequestBuilderGetRequestConfiguration)(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ColumnDefinitionCollectionResponseable, error) {
|
|
||||||
requestInfo, err := m.CreateGetRequestInformation(ctx, requestConfiguration);
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
|
|
||||||
"4XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
"5XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
}
|
|
||||||
res, err := m.requestAdapter.SendAsync(ctx, requestInfo, ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.CreateColumnDefinitionCollectionResponseFromDiscriminatorValue, errorMapping)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if res == nil {
|
|
||||||
return nil, nil
|
|
||||||
}
|
|
||||||
return res.(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ColumnDefinitionCollectionResponseable), nil
|
|
||||||
}
|
|
||||||
@ -1,106 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
|
|
||||||
i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models/odataerrors"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder provides operations to call the getActivitiesByInterval method.
|
|
||||||
type ItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder struct {
|
|
||||||
// Path parameters for the request
|
|
||||||
pathParameters map[string]string
|
|
||||||
// The request adapter to use to execute the requests.
|
|
||||||
requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter
|
|
||||||
// Url template to use to build the URL for the current request builder
|
|
||||||
urlTemplate string
|
|
||||||
}
|
|
||||||
// ItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilderGetQueryParameters invoke function getActivitiesByInterval
|
|
||||||
type ItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilderGetQueryParameters struct {
|
|
||||||
// Include count of items
|
|
||||||
Count *bool `uriparametername:"%24count"`
|
|
||||||
// Filter items by property values
|
|
||||||
Filter *string `uriparametername:"%24filter"`
|
|
||||||
// Order items by property values
|
|
||||||
Orderby []string `uriparametername:"%24orderby"`
|
|
||||||
// Search items by search phrases
|
|
||||||
Search *string `uriparametername:"%24search"`
|
|
||||||
// Select properties to be returned
|
|
||||||
Select []string `uriparametername:"%24select"`
|
|
||||||
// Skip the first n items
|
|
||||||
Skip *int32 `uriparametername:"%24skip"`
|
|
||||||
// Show only the first n items
|
|
||||||
Top *int32 `uriparametername:"%24top"`
|
|
||||||
}
|
|
||||||
// ItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
|
|
||||||
type ItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilderGetRequestConfiguration struct {
|
|
||||||
// Request headers
|
|
||||||
Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
|
|
||||||
// Request options
|
|
||||||
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
|
|
||||||
// Request query parameters
|
|
||||||
QueryParameters *ItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilderGetQueryParameters
|
|
||||||
}
|
|
||||||
// NewItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilderInternal instantiates a new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder and sets the default values.
|
|
||||||
func NewItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, endDateTime *string, interval *string, startDateTime *string)(*ItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder) {
|
|
||||||
m := &ItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder{
|
|
||||||
}
|
|
||||||
m.urlTemplate = "{+baseurl}/sites/{site%2Did}/microsoft.graph.getActivitiesByInterval(startDateTime='{startDateTime}',endDateTime='{endDateTime}',interval='{interval}'){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}";
|
|
||||||
urlTplParams := make(map[string]string)
|
|
||||||
for idx, item := range pathParameters {
|
|
||||||
urlTplParams[idx] = item
|
|
||||||
}
|
|
||||||
if endDateTime != nil {
|
|
||||||
urlTplParams["endDateTime"] = *endDateTime
|
|
||||||
}
|
|
||||||
if interval != nil {
|
|
||||||
urlTplParams["interval"] = *interval
|
|
||||||
}
|
|
||||||
if startDateTime != nil {
|
|
||||||
urlTplParams["startDateTime"] = *startDateTime
|
|
||||||
}
|
|
||||||
m.pathParameters = urlTplParams;
|
|
||||||
m.requestAdapter = requestAdapter;
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// NewItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder instantiates a new GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder and sets the default values.
|
|
||||||
func NewItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder) {
|
|
||||||
urlParams := make(map[string]string)
|
|
||||||
urlParams["request-raw-url"] = rawUrl
|
|
||||||
return NewItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilderInternal(urlParams, requestAdapter, nil, nil, nil)
|
|
||||||
}
|
|
||||||
// CreateGetRequestInformation invoke function getActivitiesByInterval
|
|
||||||
func (m *ItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder) CreateGetRequestInformation(ctx context.Context, requestConfiguration *ItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
|
|
||||||
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation()
|
|
||||||
requestInfo.UrlTemplate = m.urlTemplate
|
|
||||||
requestInfo.PathParameters = m.pathParameters
|
|
||||||
requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET
|
|
||||||
requestInfo.Headers.Add("Accept", "application/json")
|
|
||||||
if requestConfiguration != nil {
|
|
||||||
if requestConfiguration.QueryParameters != nil {
|
|
||||||
requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters))
|
|
||||||
}
|
|
||||||
requestInfo.Headers.AddAll(requestConfiguration.Headers)
|
|
||||||
requestInfo.AddRequestOptions(requestConfiguration.Options)
|
|
||||||
}
|
|
||||||
return requestInfo, nil
|
|
||||||
}
|
|
||||||
// Get invoke function getActivitiesByInterval
|
|
||||||
func (m *ItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilderGetRequestConfiguration)(ItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponseable, error) {
|
|
||||||
requestInfo, err := m.CreateGetRequestInformation(ctx, requestConfiguration);
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
|
|
||||||
"4XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
"5XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
}
|
|
||||||
res, err := m.requestAdapter.SendAsync(ctx, requestInfo, CreateItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponseFromDiscriminatorValue, errorMapping)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if res == nil {
|
|
||||||
return nil, nil
|
|
||||||
}
|
|
||||||
return res.(ItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponseable), nil
|
|
||||||
}
|
|
||||||
@ -1,69 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse provides operations to call the getActivitiesByInterval method.
|
|
||||||
type ItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse struct {
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.BaseCollectionPaginationCountResponse
|
|
||||||
// The value property
|
|
||||||
value []ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ItemActivityStatable
|
|
||||||
}
|
|
||||||
// NewItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse instantiates a new ItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse and sets the default values.
|
|
||||||
func NewItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse()(*ItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse) {
|
|
||||||
m := &ItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse{
|
|
||||||
BaseCollectionPaginationCountResponse: *ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.NewBaseCollectionPaginationCountResponse(),
|
|
||||||
}
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// CreateItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
|
||||||
func CreateItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
|
||||||
return NewItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse(), nil
|
|
||||||
}
|
|
||||||
// GetFieldDeserializers the deserialization information for the current model
|
|
||||||
func (m *ItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
|
||||||
res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers()
|
|
||||||
res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
|
||||||
val, err := n.GetCollectionOfObjectValues(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.CreateItemActivityStatFromDiscriminatorValue)
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if val != nil {
|
|
||||||
res := make([]ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ItemActivityStatable, len(val))
|
|
||||||
for i, v := range val {
|
|
||||||
res[i] = v.(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ItemActivityStatable)
|
|
||||||
}
|
|
||||||
m.SetValue(res)
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
return res
|
|
||||||
}
|
|
||||||
// GetValue gets the value property value. The value property
|
|
||||||
func (m *ItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse) GetValue()([]ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ItemActivityStatable) {
|
|
||||||
return m.value
|
|
||||||
}
|
|
||||||
// Serialize serializes information the current object
|
|
||||||
func (m *ItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
|
||||||
err := m.BaseCollectionPaginationCountResponse.Serialize(writer)
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if m.GetValue() != nil {
|
|
||||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue()))
|
|
||||||
for i, v := range m.GetValue() {
|
|
||||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
|
||||||
}
|
|
||||||
err = writer.WriteCollectionOfObjectValues("value", cast)
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
// SetValue sets the value property value. The value property
|
|
||||||
func (m *ItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse) SetValue(value []ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ItemActivityStatable)() {
|
|
||||||
m.value = value
|
|
||||||
}
|
|
||||||
@ -1,14 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponseable
|
|
||||||
type ItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponseable interface {
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.BaseCollectionPaginationCountResponseable
|
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
|
||||||
GetValue()([]ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ItemActivityStatable)
|
|
||||||
SetValue(value []ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ItemActivityStatable)()
|
|
||||||
}
|
|
||||||
@ -1,100 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
|
|
||||||
i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models/odataerrors"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemGetApplicableContentTypesForListWithListIdRequestBuilder provides operations to call the getApplicableContentTypesForList method.
|
|
||||||
type ItemGetApplicableContentTypesForListWithListIdRequestBuilder struct {
|
|
||||||
// Path parameters for the request
|
|
||||||
pathParameters map[string]string
|
|
||||||
// The request adapter to use to execute the requests.
|
|
||||||
requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter
|
|
||||||
// Url template to use to build the URL for the current request builder
|
|
||||||
urlTemplate string
|
|
||||||
}
|
|
||||||
// ItemGetApplicableContentTypesForListWithListIdRequestBuilderGetQueryParameters invoke function getApplicableContentTypesForList
|
|
||||||
type ItemGetApplicableContentTypesForListWithListIdRequestBuilderGetQueryParameters struct {
|
|
||||||
// Include count of items
|
|
||||||
Count *bool `uriparametername:"%24count"`
|
|
||||||
// Filter items by property values
|
|
||||||
Filter *string `uriparametername:"%24filter"`
|
|
||||||
// Order items by property values
|
|
||||||
Orderby []string `uriparametername:"%24orderby"`
|
|
||||||
// Search items by search phrases
|
|
||||||
Search *string `uriparametername:"%24search"`
|
|
||||||
// Select properties to be returned
|
|
||||||
Select []string `uriparametername:"%24select"`
|
|
||||||
// Skip the first n items
|
|
||||||
Skip *int32 `uriparametername:"%24skip"`
|
|
||||||
// Show only the first n items
|
|
||||||
Top *int32 `uriparametername:"%24top"`
|
|
||||||
}
|
|
||||||
// ItemGetApplicableContentTypesForListWithListIdRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
|
|
||||||
type ItemGetApplicableContentTypesForListWithListIdRequestBuilderGetRequestConfiguration struct {
|
|
||||||
// Request headers
|
|
||||||
Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
|
|
||||||
// Request options
|
|
||||||
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
|
|
||||||
// Request query parameters
|
|
||||||
QueryParameters *ItemGetApplicableContentTypesForListWithListIdRequestBuilderGetQueryParameters
|
|
||||||
}
|
|
||||||
// NewItemGetApplicableContentTypesForListWithListIdRequestBuilderInternal instantiates a new GetApplicableContentTypesForListWithListIdRequestBuilder and sets the default values.
|
|
||||||
func NewItemGetApplicableContentTypesForListWithListIdRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, listId *string)(*ItemGetApplicableContentTypesForListWithListIdRequestBuilder) {
|
|
||||||
m := &ItemGetApplicableContentTypesForListWithListIdRequestBuilder{
|
|
||||||
}
|
|
||||||
m.urlTemplate = "{+baseurl}/sites/{site%2Did}/microsoft.graph.getApplicableContentTypesForList(listId='{listId}'){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}";
|
|
||||||
urlTplParams := make(map[string]string)
|
|
||||||
for idx, item := range pathParameters {
|
|
||||||
urlTplParams[idx] = item
|
|
||||||
}
|
|
||||||
if listId != nil {
|
|
||||||
urlTplParams["listId"] = *listId
|
|
||||||
}
|
|
||||||
m.pathParameters = urlTplParams;
|
|
||||||
m.requestAdapter = requestAdapter;
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// NewItemGetApplicableContentTypesForListWithListIdRequestBuilder instantiates a new GetApplicableContentTypesForListWithListIdRequestBuilder and sets the default values.
|
|
||||||
func NewItemGetApplicableContentTypesForListWithListIdRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemGetApplicableContentTypesForListWithListIdRequestBuilder) {
|
|
||||||
urlParams := make(map[string]string)
|
|
||||||
urlParams["request-raw-url"] = rawUrl
|
|
||||||
return NewItemGetApplicableContentTypesForListWithListIdRequestBuilderInternal(urlParams, requestAdapter, nil)
|
|
||||||
}
|
|
||||||
// CreateGetRequestInformation invoke function getApplicableContentTypesForList
|
|
||||||
func (m *ItemGetApplicableContentTypesForListWithListIdRequestBuilder) CreateGetRequestInformation(ctx context.Context, requestConfiguration *ItemGetApplicableContentTypesForListWithListIdRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
|
|
||||||
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation()
|
|
||||||
requestInfo.UrlTemplate = m.urlTemplate
|
|
||||||
requestInfo.PathParameters = m.pathParameters
|
|
||||||
requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET
|
|
||||||
requestInfo.Headers.Add("Accept", "application/json")
|
|
||||||
if requestConfiguration != nil {
|
|
||||||
if requestConfiguration.QueryParameters != nil {
|
|
||||||
requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters))
|
|
||||||
}
|
|
||||||
requestInfo.Headers.AddAll(requestConfiguration.Headers)
|
|
||||||
requestInfo.AddRequestOptions(requestConfiguration.Options)
|
|
||||||
}
|
|
||||||
return requestInfo, nil
|
|
||||||
}
|
|
||||||
// Get invoke function getApplicableContentTypesForList
|
|
||||||
func (m *ItemGetApplicableContentTypesForListWithListIdRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemGetApplicableContentTypesForListWithListIdRequestBuilderGetRequestConfiguration)(ItemGetApplicableContentTypesForListWithListIdResponseable, error) {
|
|
||||||
requestInfo, err := m.CreateGetRequestInformation(ctx, requestConfiguration);
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
|
|
||||||
"4XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
"5XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
}
|
|
||||||
res, err := m.requestAdapter.SendAsync(ctx, requestInfo, CreateItemGetApplicableContentTypesForListWithListIdResponseFromDiscriminatorValue, errorMapping)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if res == nil {
|
|
||||||
return nil, nil
|
|
||||||
}
|
|
||||||
return res.(ItemGetApplicableContentTypesForListWithListIdResponseable), nil
|
|
||||||
}
|
|
||||||
@ -1,69 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemGetApplicableContentTypesForListWithListIdResponse provides operations to call the getApplicableContentTypesForList method.
|
|
||||||
type ItemGetApplicableContentTypesForListWithListIdResponse struct {
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.BaseCollectionPaginationCountResponse
|
|
||||||
// The value property
|
|
||||||
value []ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ContentTypeable
|
|
||||||
}
|
|
||||||
// NewItemGetApplicableContentTypesForListWithListIdResponse instantiates a new ItemGetApplicableContentTypesForListWithListIdResponse and sets the default values.
|
|
||||||
func NewItemGetApplicableContentTypesForListWithListIdResponse()(*ItemGetApplicableContentTypesForListWithListIdResponse) {
|
|
||||||
m := &ItemGetApplicableContentTypesForListWithListIdResponse{
|
|
||||||
BaseCollectionPaginationCountResponse: *ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.NewBaseCollectionPaginationCountResponse(),
|
|
||||||
}
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// CreateItemGetApplicableContentTypesForListWithListIdResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
|
||||||
func CreateItemGetApplicableContentTypesForListWithListIdResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
|
||||||
return NewItemGetApplicableContentTypesForListWithListIdResponse(), nil
|
|
||||||
}
|
|
||||||
// GetFieldDeserializers the deserialization information for the current model
|
|
||||||
func (m *ItemGetApplicableContentTypesForListWithListIdResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
|
||||||
res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers()
|
|
||||||
res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
|
||||||
val, err := n.GetCollectionOfObjectValues(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.CreateContentTypeFromDiscriminatorValue)
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if val != nil {
|
|
||||||
res := make([]ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ContentTypeable, len(val))
|
|
||||||
for i, v := range val {
|
|
||||||
res[i] = v.(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ContentTypeable)
|
|
||||||
}
|
|
||||||
m.SetValue(res)
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
return res
|
|
||||||
}
|
|
||||||
// GetValue gets the value property value. The value property
|
|
||||||
func (m *ItemGetApplicableContentTypesForListWithListIdResponse) GetValue()([]ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ContentTypeable) {
|
|
||||||
return m.value
|
|
||||||
}
|
|
||||||
// Serialize serializes information the current object
|
|
||||||
func (m *ItemGetApplicableContentTypesForListWithListIdResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
|
||||||
err := m.BaseCollectionPaginationCountResponse.Serialize(writer)
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if m.GetValue() != nil {
|
|
||||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue()))
|
|
||||||
for i, v := range m.GetValue() {
|
|
||||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
|
||||||
}
|
|
||||||
err = writer.WriteCollectionOfObjectValues("value", cast)
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
// SetValue sets the value property value. The value property
|
|
||||||
func (m *ItemGetApplicableContentTypesForListWithListIdResponse) SetValue(value []ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ContentTypeable)() {
|
|
||||||
m.value = value
|
|
||||||
}
|
|
||||||
@ -1,14 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemGetApplicableContentTypesForListWithListIdResponseable
|
|
||||||
type ItemGetApplicableContentTypesForListWithListIdResponseable interface {
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.BaseCollectionPaginationCountResponseable
|
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
|
||||||
GetValue()([]ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ContentTypeable)
|
|
||||||
SetValue(value []ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ContentTypeable)()
|
|
||||||
}
|
|
||||||
@ -1,79 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
|
||||||
i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models/odataerrors"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemGetByPathWithPathRequestBuilder provides operations to call the getByPath method.
|
|
||||||
type ItemGetByPathWithPathRequestBuilder struct {
|
|
||||||
// Path parameters for the request
|
|
||||||
pathParameters map[string]string
|
|
||||||
// The request adapter to use to execute the requests.
|
|
||||||
requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter
|
|
||||||
// Url template to use to build the URL for the current request builder
|
|
||||||
urlTemplate string
|
|
||||||
}
|
|
||||||
// ItemGetByPathWithPathRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
|
|
||||||
type ItemGetByPathWithPathRequestBuilderGetRequestConfiguration struct {
|
|
||||||
// Request headers
|
|
||||||
Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
|
|
||||||
// Request options
|
|
||||||
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
|
|
||||||
}
|
|
||||||
// NewItemGetByPathWithPathRequestBuilderInternal instantiates a new GetByPathWithPathRequestBuilder and sets the default values.
|
|
||||||
func NewItemGetByPathWithPathRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, path *string)(*ItemGetByPathWithPathRequestBuilder) {
|
|
||||||
m := &ItemGetByPathWithPathRequestBuilder{
|
|
||||||
}
|
|
||||||
m.urlTemplate = "{+baseurl}/sites/{site%2Did}/microsoft.graph.getByPath(path='{path}')";
|
|
||||||
urlTplParams := make(map[string]string)
|
|
||||||
for idx, item := range pathParameters {
|
|
||||||
urlTplParams[idx] = item
|
|
||||||
}
|
|
||||||
if path != nil {
|
|
||||||
urlTplParams["path"] = *path
|
|
||||||
}
|
|
||||||
m.pathParameters = urlTplParams;
|
|
||||||
m.requestAdapter = requestAdapter;
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// NewItemGetByPathWithPathRequestBuilder instantiates a new GetByPathWithPathRequestBuilder and sets the default values.
|
|
||||||
func NewItemGetByPathWithPathRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemGetByPathWithPathRequestBuilder) {
|
|
||||||
urlParams := make(map[string]string)
|
|
||||||
urlParams["request-raw-url"] = rawUrl
|
|
||||||
return NewItemGetByPathWithPathRequestBuilderInternal(urlParams, requestAdapter, nil)
|
|
||||||
}
|
|
||||||
// CreateGetRequestInformation invoke function getByPath
|
|
||||||
func (m *ItemGetByPathWithPathRequestBuilder) CreateGetRequestInformation(ctx context.Context, requestConfiguration *ItemGetByPathWithPathRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
|
|
||||||
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation()
|
|
||||||
requestInfo.UrlTemplate = m.urlTemplate
|
|
||||||
requestInfo.PathParameters = m.pathParameters
|
|
||||||
requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET
|
|
||||||
requestInfo.Headers.Add("Accept", "application/json")
|
|
||||||
if requestConfiguration != nil {
|
|
||||||
requestInfo.Headers.AddAll(requestConfiguration.Headers)
|
|
||||||
requestInfo.AddRequestOptions(requestConfiguration.Options)
|
|
||||||
}
|
|
||||||
return requestInfo, nil
|
|
||||||
}
|
|
||||||
// Get invoke function getByPath
|
|
||||||
func (m *ItemGetByPathWithPathRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemGetByPathWithPathRequestBuilderGetRequestConfiguration)(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.Siteable, error) {
|
|
||||||
requestInfo, err := m.CreateGetRequestInformation(ctx, requestConfiguration);
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
|
|
||||||
"4XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
"5XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
}
|
|
||||||
res, err := m.requestAdapter.SendAsync(ctx, requestInfo, ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.CreateSiteFromDiscriminatorValue, errorMapping)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if res == nil {
|
|
||||||
return nil, nil
|
|
||||||
}
|
|
||||||
return res.(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.Siteable), nil
|
|
||||||
}
|
|
||||||
@ -1,88 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
|
||||||
i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models/odataerrors"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemInformationProtectionBitlockerRecoveryKeysBitlockerRecoveryKeyItemRequestBuilder provides operations to manage the recoveryKeys property of the microsoft.graph.bitlocker entity.
|
|
||||||
type ItemInformationProtectionBitlockerRecoveryKeysBitlockerRecoveryKeyItemRequestBuilder struct {
|
|
||||||
// Path parameters for the request
|
|
||||||
pathParameters map[string]string
|
|
||||||
// The request adapter to use to execute the requests.
|
|
||||||
requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter
|
|
||||||
// Url template to use to build the URL for the current request builder
|
|
||||||
urlTemplate string
|
|
||||||
}
|
|
||||||
// ItemInformationProtectionBitlockerRecoveryKeysBitlockerRecoveryKeyItemRequestBuilderGetQueryParameters the recovery keys associated with the bitlocker entity.
|
|
||||||
type ItemInformationProtectionBitlockerRecoveryKeysBitlockerRecoveryKeyItemRequestBuilderGetQueryParameters struct {
|
|
||||||
// Expand related entities
|
|
||||||
Expand []string `uriparametername:"%24expand"`
|
|
||||||
// Select properties to be returned
|
|
||||||
Select []string `uriparametername:"%24select"`
|
|
||||||
}
|
|
||||||
// ItemInformationProtectionBitlockerRecoveryKeysBitlockerRecoveryKeyItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
|
|
||||||
type ItemInformationProtectionBitlockerRecoveryKeysBitlockerRecoveryKeyItemRequestBuilderGetRequestConfiguration struct {
|
|
||||||
// Request headers
|
|
||||||
Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
|
|
||||||
// Request options
|
|
||||||
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
|
|
||||||
// Request query parameters
|
|
||||||
QueryParameters *ItemInformationProtectionBitlockerRecoveryKeysBitlockerRecoveryKeyItemRequestBuilderGetQueryParameters
|
|
||||||
}
|
|
||||||
// NewItemInformationProtectionBitlockerRecoveryKeysBitlockerRecoveryKeyItemRequestBuilderInternal instantiates a new BitlockerRecoveryKeyItemRequestBuilder and sets the default values.
|
|
||||||
func NewItemInformationProtectionBitlockerRecoveryKeysBitlockerRecoveryKeyItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemInformationProtectionBitlockerRecoveryKeysBitlockerRecoveryKeyItemRequestBuilder) {
|
|
||||||
m := &ItemInformationProtectionBitlockerRecoveryKeysBitlockerRecoveryKeyItemRequestBuilder{
|
|
||||||
}
|
|
||||||
m.urlTemplate = "{+baseurl}/sites/{site%2Did}/informationProtection/bitlocker/recoveryKeys/{bitlockerRecoveryKey%2Did}{?%24select,%24expand}";
|
|
||||||
urlTplParams := make(map[string]string)
|
|
||||||
for idx, item := range pathParameters {
|
|
||||||
urlTplParams[idx] = item
|
|
||||||
}
|
|
||||||
m.pathParameters = urlTplParams;
|
|
||||||
m.requestAdapter = requestAdapter;
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// NewItemInformationProtectionBitlockerRecoveryKeysBitlockerRecoveryKeyItemRequestBuilder instantiates a new BitlockerRecoveryKeyItemRequestBuilder and sets the default values.
|
|
||||||
func NewItemInformationProtectionBitlockerRecoveryKeysBitlockerRecoveryKeyItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemInformationProtectionBitlockerRecoveryKeysBitlockerRecoveryKeyItemRequestBuilder) {
|
|
||||||
urlParams := make(map[string]string)
|
|
||||||
urlParams["request-raw-url"] = rawUrl
|
|
||||||
return NewItemInformationProtectionBitlockerRecoveryKeysBitlockerRecoveryKeyItemRequestBuilderInternal(urlParams, requestAdapter)
|
|
||||||
}
|
|
||||||
// CreateGetRequestInformation the recovery keys associated with the bitlocker entity.
|
|
||||||
func (m *ItemInformationProtectionBitlockerRecoveryKeysBitlockerRecoveryKeyItemRequestBuilder) CreateGetRequestInformation(ctx context.Context, requestConfiguration *ItemInformationProtectionBitlockerRecoveryKeysBitlockerRecoveryKeyItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
|
|
||||||
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation()
|
|
||||||
requestInfo.UrlTemplate = m.urlTemplate
|
|
||||||
requestInfo.PathParameters = m.pathParameters
|
|
||||||
requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET
|
|
||||||
requestInfo.Headers.Add("Accept", "application/json")
|
|
||||||
if requestConfiguration != nil {
|
|
||||||
if requestConfiguration.QueryParameters != nil {
|
|
||||||
requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters))
|
|
||||||
}
|
|
||||||
requestInfo.Headers.AddAll(requestConfiguration.Headers)
|
|
||||||
requestInfo.AddRequestOptions(requestConfiguration.Options)
|
|
||||||
}
|
|
||||||
return requestInfo, nil
|
|
||||||
}
|
|
||||||
// Get the recovery keys associated with the bitlocker entity.
|
|
||||||
func (m *ItemInformationProtectionBitlockerRecoveryKeysBitlockerRecoveryKeyItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemInformationProtectionBitlockerRecoveryKeysBitlockerRecoveryKeyItemRequestBuilderGetRequestConfiguration)(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.BitlockerRecoveryKeyable, error) {
|
|
||||||
requestInfo, err := m.CreateGetRequestInformation(ctx, requestConfiguration);
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
|
|
||||||
"4XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
"5XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
}
|
|
||||||
res, err := m.requestAdapter.SendAsync(ctx, requestInfo, ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.CreateBitlockerRecoveryKeyFromDiscriminatorValue, errorMapping)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if res == nil {
|
|
||||||
return nil, nil
|
|
||||||
}
|
|
||||||
return res.(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.BitlockerRecoveryKeyable), nil
|
|
||||||
}
|
|
||||||
@ -1,87 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
|
|
||||||
i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models/odataerrors"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemInformationProtectionBitlockerRecoveryKeysCountRequestBuilder provides operations to count the resources in the collection.
|
|
||||||
type ItemInformationProtectionBitlockerRecoveryKeysCountRequestBuilder struct {
|
|
||||||
// Path parameters for the request
|
|
||||||
pathParameters map[string]string
|
|
||||||
// The request adapter to use to execute the requests.
|
|
||||||
requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter
|
|
||||||
// Url template to use to build the URL for the current request builder
|
|
||||||
urlTemplate string
|
|
||||||
}
|
|
||||||
// ItemInformationProtectionBitlockerRecoveryKeysCountRequestBuilderGetQueryParameters get the number of the resource
|
|
||||||
type ItemInformationProtectionBitlockerRecoveryKeysCountRequestBuilderGetQueryParameters struct {
|
|
||||||
// Filter items by property values
|
|
||||||
Filter *string `uriparametername:"%24filter"`
|
|
||||||
// Search items by search phrases
|
|
||||||
Search *string `uriparametername:"%24search"`
|
|
||||||
}
|
|
||||||
// ItemInformationProtectionBitlockerRecoveryKeysCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
|
|
||||||
type ItemInformationProtectionBitlockerRecoveryKeysCountRequestBuilderGetRequestConfiguration struct {
|
|
||||||
// Request headers
|
|
||||||
Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
|
|
||||||
// Request options
|
|
||||||
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
|
|
||||||
// Request query parameters
|
|
||||||
QueryParameters *ItemInformationProtectionBitlockerRecoveryKeysCountRequestBuilderGetQueryParameters
|
|
||||||
}
|
|
||||||
// NewItemInformationProtectionBitlockerRecoveryKeysCountRequestBuilderInternal instantiates a new CountRequestBuilder and sets the default values.
|
|
||||||
func NewItemInformationProtectionBitlockerRecoveryKeysCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemInformationProtectionBitlockerRecoveryKeysCountRequestBuilder) {
|
|
||||||
m := &ItemInformationProtectionBitlockerRecoveryKeysCountRequestBuilder{
|
|
||||||
}
|
|
||||||
m.urlTemplate = "{+baseurl}/sites/{site%2Did}/informationProtection/bitlocker/recoveryKeys/$count{?%24search,%24filter}";
|
|
||||||
urlTplParams := make(map[string]string)
|
|
||||||
for idx, item := range pathParameters {
|
|
||||||
urlTplParams[idx] = item
|
|
||||||
}
|
|
||||||
m.pathParameters = urlTplParams;
|
|
||||||
m.requestAdapter = requestAdapter;
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// NewItemInformationProtectionBitlockerRecoveryKeysCountRequestBuilder instantiates a new CountRequestBuilder and sets the default values.
|
|
||||||
func NewItemInformationProtectionBitlockerRecoveryKeysCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemInformationProtectionBitlockerRecoveryKeysCountRequestBuilder) {
|
|
||||||
urlParams := make(map[string]string)
|
|
||||||
urlParams["request-raw-url"] = rawUrl
|
|
||||||
return NewItemInformationProtectionBitlockerRecoveryKeysCountRequestBuilderInternal(urlParams, requestAdapter)
|
|
||||||
}
|
|
||||||
// CreateGetRequestInformation get the number of the resource
|
|
||||||
func (m *ItemInformationProtectionBitlockerRecoveryKeysCountRequestBuilder) CreateGetRequestInformation(ctx context.Context, requestConfiguration *ItemInformationProtectionBitlockerRecoveryKeysCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
|
|
||||||
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation()
|
|
||||||
requestInfo.UrlTemplate = m.urlTemplate
|
|
||||||
requestInfo.PathParameters = m.pathParameters
|
|
||||||
requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET
|
|
||||||
requestInfo.Headers.Add("Accept", "text/plain")
|
|
||||||
if requestConfiguration != nil {
|
|
||||||
if requestConfiguration.QueryParameters != nil {
|
|
||||||
requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters))
|
|
||||||
}
|
|
||||||
requestInfo.Headers.AddAll(requestConfiguration.Headers)
|
|
||||||
requestInfo.AddRequestOptions(requestConfiguration.Options)
|
|
||||||
}
|
|
||||||
return requestInfo, nil
|
|
||||||
}
|
|
||||||
// Get get the number of the resource
|
|
||||||
func (m *ItemInformationProtectionBitlockerRecoveryKeysCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemInformationProtectionBitlockerRecoveryKeysCountRequestBuilderGetRequestConfiguration)(*int32, error) {
|
|
||||||
requestInfo, err := m.CreateGetRequestInformation(ctx, requestConfiguration);
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
|
|
||||||
"4XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
"5XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
}
|
|
||||||
res, err := m.requestAdapter.SendPrimitiveAsync(ctx, requestInfo, "int32", errorMapping)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if res == nil {
|
|
||||||
return nil, nil
|
|
||||||
}
|
|
||||||
return res.(*int32), nil
|
|
||||||
}
|
|
||||||
@ -1,107 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
|
||||||
i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models/odataerrors"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemInformationProtectionBitlockerRecoveryKeysRequestBuilder provides operations to manage the recoveryKeys property of the microsoft.graph.bitlocker entity.
|
|
||||||
type ItemInformationProtectionBitlockerRecoveryKeysRequestBuilder struct {
|
|
||||||
// Path parameters for the request
|
|
||||||
pathParameters map[string]string
|
|
||||||
// The request adapter to use to execute the requests.
|
|
||||||
requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter
|
|
||||||
// Url template to use to build the URL for the current request builder
|
|
||||||
urlTemplate string
|
|
||||||
}
|
|
||||||
// ItemInformationProtectionBitlockerRecoveryKeysRequestBuilderGetQueryParameters get a list of the bitlockerRecoveryKey objects and their properties. This operation does not return the **key** property. For information about how to read the **key** property, see Get bitlockerRecoveryKey.
|
|
||||||
type ItemInformationProtectionBitlockerRecoveryKeysRequestBuilderGetQueryParameters struct {
|
|
||||||
// Include count of items
|
|
||||||
Count *bool `uriparametername:"%24count"`
|
|
||||||
// Expand related entities
|
|
||||||
Expand []string `uriparametername:"%24expand"`
|
|
||||||
// Filter items by property values
|
|
||||||
Filter *string `uriparametername:"%24filter"`
|
|
||||||
// Order items by property values
|
|
||||||
Orderby []string `uriparametername:"%24orderby"`
|
|
||||||
// Search items by search phrases
|
|
||||||
Search *string `uriparametername:"%24search"`
|
|
||||||
// Select properties to be returned
|
|
||||||
Select []string `uriparametername:"%24select"`
|
|
||||||
// Skip the first n items
|
|
||||||
Skip *int32 `uriparametername:"%24skip"`
|
|
||||||
// Show only the first n items
|
|
||||||
Top *int32 `uriparametername:"%24top"`
|
|
||||||
}
|
|
||||||
// ItemInformationProtectionBitlockerRecoveryKeysRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
|
|
||||||
type ItemInformationProtectionBitlockerRecoveryKeysRequestBuilderGetRequestConfiguration struct {
|
|
||||||
// Request headers
|
|
||||||
Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
|
|
||||||
// Request options
|
|
||||||
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
|
|
||||||
// Request query parameters
|
|
||||||
QueryParameters *ItemInformationProtectionBitlockerRecoveryKeysRequestBuilderGetQueryParameters
|
|
||||||
}
|
|
||||||
// NewItemInformationProtectionBitlockerRecoveryKeysRequestBuilderInternal instantiates a new RecoveryKeysRequestBuilder and sets the default values.
|
|
||||||
func NewItemInformationProtectionBitlockerRecoveryKeysRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemInformationProtectionBitlockerRecoveryKeysRequestBuilder) {
|
|
||||||
m := &ItemInformationProtectionBitlockerRecoveryKeysRequestBuilder{
|
|
||||||
}
|
|
||||||
m.urlTemplate = "{+baseurl}/sites/{site%2Did}/informationProtection/bitlocker/recoveryKeys{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}";
|
|
||||||
urlTplParams := make(map[string]string)
|
|
||||||
for idx, item := range pathParameters {
|
|
||||||
urlTplParams[idx] = item
|
|
||||||
}
|
|
||||||
m.pathParameters = urlTplParams;
|
|
||||||
m.requestAdapter = requestAdapter;
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// NewItemInformationProtectionBitlockerRecoveryKeysRequestBuilder instantiates a new RecoveryKeysRequestBuilder and sets the default values.
|
|
||||||
func NewItemInformationProtectionBitlockerRecoveryKeysRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemInformationProtectionBitlockerRecoveryKeysRequestBuilder) {
|
|
||||||
urlParams := make(map[string]string)
|
|
||||||
urlParams["request-raw-url"] = rawUrl
|
|
||||||
return NewItemInformationProtectionBitlockerRecoveryKeysRequestBuilderInternal(urlParams, requestAdapter)
|
|
||||||
}
|
|
||||||
// Count provides operations to count the resources in the collection.
|
|
||||||
func (m *ItemInformationProtectionBitlockerRecoveryKeysRequestBuilder) Count()(*ItemInformationProtectionBitlockerRecoveryKeysCountRequestBuilder) {
|
|
||||||
return NewItemInformationProtectionBitlockerRecoveryKeysCountRequestBuilderInternal(m.pathParameters, m.requestAdapter);
|
|
||||||
}
|
|
||||||
// CreateGetRequestInformation get a list of the bitlockerRecoveryKey objects and their properties. This operation does not return the **key** property. For information about how to read the **key** property, see Get bitlockerRecoveryKey.
|
|
||||||
func (m *ItemInformationProtectionBitlockerRecoveryKeysRequestBuilder) CreateGetRequestInformation(ctx context.Context, requestConfiguration *ItemInformationProtectionBitlockerRecoveryKeysRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
|
|
||||||
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation()
|
|
||||||
requestInfo.UrlTemplate = m.urlTemplate
|
|
||||||
requestInfo.PathParameters = m.pathParameters
|
|
||||||
requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET
|
|
||||||
requestInfo.Headers.Add("Accept", "application/json")
|
|
||||||
if requestConfiguration != nil {
|
|
||||||
if requestConfiguration.QueryParameters != nil {
|
|
||||||
requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters))
|
|
||||||
}
|
|
||||||
requestInfo.Headers.AddAll(requestConfiguration.Headers)
|
|
||||||
requestInfo.AddRequestOptions(requestConfiguration.Options)
|
|
||||||
}
|
|
||||||
return requestInfo, nil
|
|
||||||
}
|
|
||||||
// Get get a list of the bitlockerRecoveryKey objects and their properties. This operation does not return the **key** property. For information about how to read the **key** property, see Get bitlockerRecoveryKey.
|
|
||||||
// [Find more info here]
|
|
||||||
//
|
|
||||||
// [Find more info here]: https://docs.microsoft.com/graph/api/bitlocker-list-recoverykeys?view=graph-rest-1.0
|
|
||||||
func (m *ItemInformationProtectionBitlockerRecoveryKeysRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemInformationProtectionBitlockerRecoveryKeysRequestBuilderGetRequestConfiguration)(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.BitlockerRecoveryKeyCollectionResponseable, error) {
|
|
||||||
requestInfo, err := m.CreateGetRequestInformation(ctx, requestConfiguration);
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
|
|
||||||
"4XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
"5XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
}
|
|
||||||
res, err := m.requestAdapter.SendAsync(ctx, requestInfo, ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.CreateBitlockerRecoveryKeyCollectionResponseFromDiscriminatorValue, errorMapping)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if res == nil {
|
|
||||||
return nil, nil
|
|
||||||
}
|
|
||||||
return res.(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.BitlockerRecoveryKeyCollectionResponseable), nil
|
|
||||||
}
|
|
||||||
@ -1,103 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
|
||||||
i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models/odataerrors"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemInformationProtectionBitlockerRequestBuilder provides operations to manage the bitlocker property of the microsoft.graph.informationProtection entity.
|
|
||||||
type ItemInformationProtectionBitlockerRequestBuilder struct {
|
|
||||||
// Path parameters for the request
|
|
||||||
pathParameters map[string]string
|
|
||||||
// The request adapter to use to execute the requests.
|
|
||||||
requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter
|
|
||||||
// Url template to use to build the URL for the current request builder
|
|
||||||
urlTemplate string
|
|
||||||
}
|
|
||||||
// ItemInformationProtectionBitlockerRequestBuilderGetQueryParameters get bitlocker from sites
|
|
||||||
type ItemInformationProtectionBitlockerRequestBuilderGetQueryParameters struct {
|
|
||||||
// Expand related entities
|
|
||||||
Expand []string `uriparametername:"%24expand"`
|
|
||||||
// Select properties to be returned
|
|
||||||
Select []string `uriparametername:"%24select"`
|
|
||||||
}
|
|
||||||
// ItemInformationProtectionBitlockerRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
|
|
||||||
type ItemInformationProtectionBitlockerRequestBuilderGetRequestConfiguration struct {
|
|
||||||
// Request headers
|
|
||||||
Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
|
|
||||||
// Request options
|
|
||||||
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
|
|
||||||
// Request query parameters
|
|
||||||
QueryParameters *ItemInformationProtectionBitlockerRequestBuilderGetQueryParameters
|
|
||||||
}
|
|
||||||
// NewItemInformationProtectionBitlockerRequestBuilderInternal instantiates a new BitlockerRequestBuilder and sets the default values.
|
|
||||||
func NewItemInformationProtectionBitlockerRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemInformationProtectionBitlockerRequestBuilder) {
|
|
||||||
m := &ItemInformationProtectionBitlockerRequestBuilder{
|
|
||||||
}
|
|
||||||
m.urlTemplate = "{+baseurl}/sites/{site%2Did}/informationProtection/bitlocker{?%24select,%24expand}";
|
|
||||||
urlTplParams := make(map[string]string)
|
|
||||||
for idx, item := range pathParameters {
|
|
||||||
urlTplParams[idx] = item
|
|
||||||
}
|
|
||||||
m.pathParameters = urlTplParams;
|
|
||||||
m.requestAdapter = requestAdapter;
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// NewItemInformationProtectionBitlockerRequestBuilder instantiates a new BitlockerRequestBuilder and sets the default values.
|
|
||||||
func NewItemInformationProtectionBitlockerRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemInformationProtectionBitlockerRequestBuilder) {
|
|
||||||
urlParams := make(map[string]string)
|
|
||||||
urlParams["request-raw-url"] = rawUrl
|
|
||||||
return NewItemInformationProtectionBitlockerRequestBuilderInternal(urlParams, requestAdapter)
|
|
||||||
}
|
|
||||||
// CreateGetRequestInformation get bitlocker from sites
|
|
||||||
func (m *ItemInformationProtectionBitlockerRequestBuilder) CreateGetRequestInformation(ctx context.Context, requestConfiguration *ItemInformationProtectionBitlockerRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
|
|
||||||
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation()
|
|
||||||
requestInfo.UrlTemplate = m.urlTemplate
|
|
||||||
requestInfo.PathParameters = m.pathParameters
|
|
||||||
requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET
|
|
||||||
requestInfo.Headers.Add("Accept", "application/json")
|
|
||||||
if requestConfiguration != nil {
|
|
||||||
if requestConfiguration.QueryParameters != nil {
|
|
||||||
requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters))
|
|
||||||
}
|
|
||||||
requestInfo.Headers.AddAll(requestConfiguration.Headers)
|
|
||||||
requestInfo.AddRequestOptions(requestConfiguration.Options)
|
|
||||||
}
|
|
||||||
return requestInfo, nil
|
|
||||||
}
|
|
||||||
// Get get bitlocker from sites
|
|
||||||
func (m *ItemInformationProtectionBitlockerRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemInformationProtectionBitlockerRequestBuilderGetRequestConfiguration)(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.Bitlockerable, error) {
|
|
||||||
requestInfo, err := m.CreateGetRequestInformation(ctx, requestConfiguration);
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
|
|
||||||
"4XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
"5XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
}
|
|
||||||
res, err := m.requestAdapter.SendAsync(ctx, requestInfo, ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.CreateBitlockerFromDiscriminatorValue, errorMapping)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if res == nil {
|
|
||||||
return nil, nil
|
|
||||||
}
|
|
||||||
return res.(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.Bitlockerable), nil
|
|
||||||
}
|
|
||||||
// RecoveryKeys provides operations to manage the recoveryKeys property of the microsoft.graph.bitlocker entity.
|
|
||||||
func (m *ItemInformationProtectionBitlockerRequestBuilder) RecoveryKeys()(*ItemInformationProtectionBitlockerRecoveryKeysRequestBuilder) {
|
|
||||||
return NewItemInformationProtectionBitlockerRecoveryKeysRequestBuilderInternal(m.pathParameters, m.requestAdapter);
|
|
||||||
}
|
|
||||||
// RecoveryKeysById provides operations to manage the recoveryKeys property of the microsoft.graph.bitlocker entity.
|
|
||||||
func (m *ItemInformationProtectionBitlockerRequestBuilder) RecoveryKeysById(id string)(*ItemInformationProtectionBitlockerRecoveryKeysBitlockerRecoveryKeyItemRequestBuilder) {
|
|
||||||
urlTplParams := make(map[string]string)
|
|
||||||
for idx, item := range m.pathParameters {
|
|
||||||
urlTplParams[idx] = item
|
|
||||||
}
|
|
||||||
if id != "" {
|
|
||||||
urlTplParams["bitlockerRecoveryKey%2Did"] = id
|
|
||||||
}
|
|
||||||
return NewItemInformationProtectionBitlockerRecoveryKeysBitlockerRecoveryKeyItemRequestBuilderInternal(urlTplParams, m.requestAdapter);
|
|
||||||
}
|
|
||||||
@ -1,87 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
|
|
||||||
i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models/odataerrors"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemInformationProtectionDataLossPreventionPoliciesCountRequestBuilder provides operations to count the resources in the collection.
|
|
||||||
type ItemInformationProtectionDataLossPreventionPoliciesCountRequestBuilder struct {
|
|
||||||
// Path parameters for the request
|
|
||||||
pathParameters map[string]string
|
|
||||||
// The request adapter to use to execute the requests.
|
|
||||||
requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter
|
|
||||||
// Url template to use to build the URL for the current request builder
|
|
||||||
urlTemplate string
|
|
||||||
}
|
|
||||||
// ItemInformationProtectionDataLossPreventionPoliciesCountRequestBuilderGetQueryParameters get the number of the resource
|
|
||||||
type ItemInformationProtectionDataLossPreventionPoliciesCountRequestBuilderGetQueryParameters struct {
|
|
||||||
// Filter items by property values
|
|
||||||
Filter *string `uriparametername:"%24filter"`
|
|
||||||
// Search items by search phrases
|
|
||||||
Search *string `uriparametername:"%24search"`
|
|
||||||
}
|
|
||||||
// ItemInformationProtectionDataLossPreventionPoliciesCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
|
|
||||||
type ItemInformationProtectionDataLossPreventionPoliciesCountRequestBuilderGetRequestConfiguration struct {
|
|
||||||
// Request headers
|
|
||||||
Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
|
|
||||||
// Request options
|
|
||||||
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
|
|
||||||
// Request query parameters
|
|
||||||
QueryParameters *ItemInformationProtectionDataLossPreventionPoliciesCountRequestBuilderGetQueryParameters
|
|
||||||
}
|
|
||||||
// NewItemInformationProtectionDataLossPreventionPoliciesCountRequestBuilderInternal instantiates a new CountRequestBuilder and sets the default values.
|
|
||||||
func NewItemInformationProtectionDataLossPreventionPoliciesCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemInformationProtectionDataLossPreventionPoliciesCountRequestBuilder) {
|
|
||||||
m := &ItemInformationProtectionDataLossPreventionPoliciesCountRequestBuilder{
|
|
||||||
}
|
|
||||||
m.urlTemplate = "{+baseurl}/sites/{site%2Did}/informationProtection/dataLossPreventionPolicies/$count{?%24search,%24filter}";
|
|
||||||
urlTplParams := make(map[string]string)
|
|
||||||
for idx, item := range pathParameters {
|
|
||||||
urlTplParams[idx] = item
|
|
||||||
}
|
|
||||||
m.pathParameters = urlTplParams;
|
|
||||||
m.requestAdapter = requestAdapter;
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// NewItemInformationProtectionDataLossPreventionPoliciesCountRequestBuilder instantiates a new CountRequestBuilder and sets the default values.
|
|
||||||
func NewItemInformationProtectionDataLossPreventionPoliciesCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemInformationProtectionDataLossPreventionPoliciesCountRequestBuilder) {
|
|
||||||
urlParams := make(map[string]string)
|
|
||||||
urlParams["request-raw-url"] = rawUrl
|
|
||||||
return NewItemInformationProtectionDataLossPreventionPoliciesCountRequestBuilderInternal(urlParams, requestAdapter)
|
|
||||||
}
|
|
||||||
// CreateGetRequestInformation get the number of the resource
|
|
||||||
func (m *ItemInformationProtectionDataLossPreventionPoliciesCountRequestBuilder) CreateGetRequestInformation(ctx context.Context, requestConfiguration *ItemInformationProtectionDataLossPreventionPoliciesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
|
|
||||||
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation()
|
|
||||||
requestInfo.UrlTemplate = m.urlTemplate
|
|
||||||
requestInfo.PathParameters = m.pathParameters
|
|
||||||
requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET
|
|
||||||
requestInfo.Headers.Add("Accept", "text/plain")
|
|
||||||
if requestConfiguration != nil {
|
|
||||||
if requestConfiguration.QueryParameters != nil {
|
|
||||||
requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters))
|
|
||||||
}
|
|
||||||
requestInfo.Headers.AddAll(requestConfiguration.Headers)
|
|
||||||
requestInfo.AddRequestOptions(requestConfiguration.Options)
|
|
||||||
}
|
|
||||||
return requestInfo, nil
|
|
||||||
}
|
|
||||||
// Get get the number of the resource
|
|
||||||
func (m *ItemInformationProtectionDataLossPreventionPoliciesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemInformationProtectionDataLossPreventionPoliciesCountRequestBuilderGetRequestConfiguration)(*int32, error) {
|
|
||||||
requestInfo, err := m.CreateGetRequestInformation(ctx, requestConfiguration);
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
|
|
||||||
"4XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
"5XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
}
|
|
||||||
res, err := m.requestAdapter.SendPrimitiveAsync(ctx, requestInfo, "int32", errorMapping)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if res == nil {
|
|
||||||
return nil, nil
|
|
||||||
}
|
|
||||||
return res.(*int32), nil
|
|
||||||
}
|
|
||||||
@ -1,163 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
|
||||||
i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models/odataerrors"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemInformationProtectionDataLossPreventionPoliciesDataLossPreventionPolicyItemRequestBuilder provides operations to manage the dataLossPreventionPolicies property of the microsoft.graph.informationProtection entity.
|
|
||||||
type ItemInformationProtectionDataLossPreventionPoliciesDataLossPreventionPolicyItemRequestBuilder struct {
|
|
||||||
// Path parameters for the request
|
|
||||||
pathParameters map[string]string
|
|
||||||
// The request adapter to use to execute the requests.
|
|
||||||
requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter
|
|
||||||
// Url template to use to build the URL for the current request builder
|
|
||||||
urlTemplate string
|
|
||||||
}
|
|
||||||
// ItemInformationProtectionDataLossPreventionPoliciesDataLossPreventionPolicyItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
|
|
||||||
type ItemInformationProtectionDataLossPreventionPoliciesDataLossPreventionPolicyItemRequestBuilderDeleteRequestConfiguration struct {
|
|
||||||
// Request headers
|
|
||||||
Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
|
|
||||||
// Request options
|
|
||||||
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
|
|
||||||
}
|
|
||||||
// ItemInformationProtectionDataLossPreventionPoliciesDataLossPreventionPolicyItemRequestBuilderGetQueryParameters get dataLossPreventionPolicies from sites
|
|
||||||
type ItemInformationProtectionDataLossPreventionPoliciesDataLossPreventionPolicyItemRequestBuilderGetQueryParameters struct {
|
|
||||||
// Expand related entities
|
|
||||||
Expand []string `uriparametername:"%24expand"`
|
|
||||||
// Select properties to be returned
|
|
||||||
Select []string `uriparametername:"%24select"`
|
|
||||||
}
|
|
||||||
// ItemInformationProtectionDataLossPreventionPoliciesDataLossPreventionPolicyItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
|
|
||||||
type ItemInformationProtectionDataLossPreventionPoliciesDataLossPreventionPolicyItemRequestBuilderGetRequestConfiguration struct {
|
|
||||||
// Request headers
|
|
||||||
Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
|
|
||||||
// Request options
|
|
||||||
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
|
|
||||||
// Request query parameters
|
|
||||||
QueryParameters *ItemInformationProtectionDataLossPreventionPoliciesDataLossPreventionPolicyItemRequestBuilderGetQueryParameters
|
|
||||||
}
|
|
||||||
// ItemInformationProtectionDataLossPreventionPoliciesDataLossPreventionPolicyItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
|
|
||||||
type ItemInformationProtectionDataLossPreventionPoliciesDataLossPreventionPolicyItemRequestBuilderPatchRequestConfiguration struct {
|
|
||||||
// Request headers
|
|
||||||
Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
|
|
||||||
// Request options
|
|
||||||
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
|
|
||||||
}
|
|
||||||
// NewItemInformationProtectionDataLossPreventionPoliciesDataLossPreventionPolicyItemRequestBuilderInternal instantiates a new DataLossPreventionPolicyItemRequestBuilder and sets the default values.
|
|
||||||
func NewItemInformationProtectionDataLossPreventionPoliciesDataLossPreventionPolicyItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemInformationProtectionDataLossPreventionPoliciesDataLossPreventionPolicyItemRequestBuilder) {
|
|
||||||
m := &ItemInformationProtectionDataLossPreventionPoliciesDataLossPreventionPolicyItemRequestBuilder{
|
|
||||||
}
|
|
||||||
m.urlTemplate = "{+baseurl}/sites/{site%2Did}/informationProtection/dataLossPreventionPolicies/{dataLossPreventionPolicy%2Did}{?%24select,%24expand}";
|
|
||||||
urlTplParams := make(map[string]string)
|
|
||||||
for idx, item := range pathParameters {
|
|
||||||
urlTplParams[idx] = item
|
|
||||||
}
|
|
||||||
m.pathParameters = urlTplParams;
|
|
||||||
m.requestAdapter = requestAdapter;
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// NewItemInformationProtectionDataLossPreventionPoliciesDataLossPreventionPolicyItemRequestBuilder instantiates a new DataLossPreventionPolicyItemRequestBuilder and sets the default values.
|
|
||||||
func NewItemInformationProtectionDataLossPreventionPoliciesDataLossPreventionPolicyItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemInformationProtectionDataLossPreventionPoliciesDataLossPreventionPolicyItemRequestBuilder) {
|
|
||||||
urlParams := make(map[string]string)
|
|
||||||
urlParams["request-raw-url"] = rawUrl
|
|
||||||
return NewItemInformationProtectionDataLossPreventionPoliciesDataLossPreventionPolicyItemRequestBuilderInternal(urlParams, requestAdapter)
|
|
||||||
}
|
|
||||||
// CreateDeleteRequestInformation delete navigation property dataLossPreventionPolicies for sites
|
|
||||||
func (m *ItemInformationProtectionDataLossPreventionPoliciesDataLossPreventionPolicyItemRequestBuilder) CreateDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemInformationProtectionDataLossPreventionPoliciesDataLossPreventionPolicyItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
|
|
||||||
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation()
|
|
||||||
requestInfo.UrlTemplate = m.urlTemplate
|
|
||||||
requestInfo.PathParameters = m.pathParameters
|
|
||||||
requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE
|
|
||||||
if requestConfiguration != nil {
|
|
||||||
requestInfo.Headers.AddAll(requestConfiguration.Headers)
|
|
||||||
requestInfo.AddRequestOptions(requestConfiguration.Options)
|
|
||||||
}
|
|
||||||
return requestInfo, nil
|
|
||||||
}
|
|
||||||
// CreateGetRequestInformation get dataLossPreventionPolicies from sites
|
|
||||||
func (m *ItemInformationProtectionDataLossPreventionPoliciesDataLossPreventionPolicyItemRequestBuilder) CreateGetRequestInformation(ctx context.Context, requestConfiguration *ItemInformationProtectionDataLossPreventionPoliciesDataLossPreventionPolicyItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
|
|
||||||
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation()
|
|
||||||
requestInfo.UrlTemplate = m.urlTemplate
|
|
||||||
requestInfo.PathParameters = m.pathParameters
|
|
||||||
requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET
|
|
||||||
requestInfo.Headers.Add("Accept", "application/json")
|
|
||||||
if requestConfiguration != nil {
|
|
||||||
if requestConfiguration.QueryParameters != nil {
|
|
||||||
requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters))
|
|
||||||
}
|
|
||||||
requestInfo.Headers.AddAll(requestConfiguration.Headers)
|
|
||||||
requestInfo.AddRequestOptions(requestConfiguration.Options)
|
|
||||||
}
|
|
||||||
return requestInfo, nil
|
|
||||||
}
|
|
||||||
// CreatePatchRequestInformation update the navigation property dataLossPreventionPolicies in sites
|
|
||||||
func (m *ItemInformationProtectionDataLossPreventionPoliciesDataLossPreventionPolicyItemRequestBuilder) CreatePatchRequestInformation(ctx context.Context, body ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.DataLossPreventionPolicyable, requestConfiguration *ItemInformationProtectionDataLossPreventionPoliciesDataLossPreventionPolicyItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
|
|
||||||
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation()
|
|
||||||
requestInfo.UrlTemplate = m.urlTemplate
|
|
||||||
requestInfo.PathParameters = m.pathParameters
|
|
||||||
requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH
|
|
||||||
requestInfo.Headers.Add("Accept", "application/json")
|
|
||||||
requestInfo.SetContentFromParsable(ctx, m.requestAdapter, "application/json", body)
|
|
||||||
if requestConfiguration != nil {
|
|
||||||
requestInfo.Headers.AddAll(requestConfiguration.Headers)
|
|
||||||
requestInfo.AddRequestOptions(requestConfiguration.Options)
|
|
||||||
}
|
|
||||||
return requestInfo, nil
|
|
||||||
}
|
|
||||||
// Delete delete navigation property dataLossPreventionPolicies for sites
|
|
||||||
func (m *ItemInformationProtectionDataLossPreventionPoliciesDataLossPreventionPolicyItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemInformationProtectionDataLossPreventionPoliciesDataLossPreventionPolicyItemRequestBuilderDeleteRequestConfiguration)(error) {
|
|
||||||
requestInfo, err := m.CreateDeleteRequestInformation(ctx, requestConfiguration);
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
|
|
||||||
"4XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
"5XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
}
|
|
||||||
err = m.requestAdapter.SendNoContentAsync(ctx, requestInfo, errorMapping)
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
// Get get dataLossPreventionPolicies from sites
|
|
||||||
func (m *ItemInformationProtectionDataLossPreventionPoliciesDataLossPreventionPolicyItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemInformationProtectionDataLossPreventionPoliciesDataLossPreventionPolicyItemRequestBuilderGetRequestConfiguration)(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.DataLossPreventionPolicyable, error) {
|
|
||||||
requestInfo, err := m.CreateGetRequestInformation(ctx, requestConfiguration);
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
|
|
||||||
"4XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
"5XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
}
|
|
||||||
res, err := m.requestAdapter.SendAsync(ctx, requestInfo, ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.CreateDataLossPreventionPolicyFromDiscriminatorValue, errorMapping)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if res == nil {
|
|
||||||
return nil, nil
|
|
||||||
}
|
|
||||||
return res.(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.DataLossPreventionPolicyable), nil
|
|
||||||
}
|
|
||||||
// Patch update the navigation property dataLossPreventionPolicies in sites
|
|
||||||
func (m *ItemInformationProtectionDataLossPreventionPoliciesDataLossPreventionPolicyItemRequestBuilder) Patch(ctx context.Context, body ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.DataLossPreventionPolicyable, requestConfiguration *ItemInformationProtectionDataLossPreventionPoliciesDataLossPreventionPolicyItemRequestBuilderPatchRequestConfiguration)(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.DataLossPreventionPolicyable, error) {
|
|
||||||
requestInfo, err := m.CreatePatchRequestInformation(ctx, body, requestConfiguration);
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
|
|
||||||
"4XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
"5XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
}
|
|
||||||
res, err := m.requestAdapter.SendAsync(ctx, requestInfo, ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.CreateDataLossPreventionPolicyFromDiscriminatorValue, errorMapping)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if res == nil {
|
|
||||||
return nil, nil
|
|
||||||
}
|
|
||||||
return res.(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.DataLossPreventionPolicyable), nil
|
|
||||||
}
|
|
||||||
@ -1,124 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemInformationProtectionDataLossPreventionPoliciesEvaluatePostRequestBody provides operations to call the evaluate method.
|
|
||||||
type ItemInformationProtectionDataLossPreventionPoliciesEvaluatePostRequestBody struct {
|
|
||||||
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
||||||
additionalData map[string]interface{}
|
|
||||||
// The evaluationInput property
|
|
||||||
evaluationInput ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.DlpEvaluationInputable
|
|
||||||
// The notificationInfo property
|
|
||||||
notificationInfo ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.DlpNotificationable
|
|
||||||
// The target property
|
|
||||||
target *string
|
|
||||||
}
|
|
||||||
// NewItemInformationProtectionDataLossPreventionPoliciesEvaluatePostRequestBody instantiates a new ItemInformationProtectionDataLossPreventionPoliciesEvaluatePostRequestBody and sets the default values.
|
|
||||||
func NewItemInformationProtectionDataLossPreventionPoliciesEvaluatePostRequestBody()(*ItemInformationProtectionDataLossPreventionPoliciesEvaluatePostRequestBody) {
|
|
||||||
m := &ItemInformationProtectionDataLossPreventionPoliciesEvaluatePostRequestBody{
|
|
||||||
}
|
|
||||||
m.SetAdditionalData(make(map[string]interface{}));
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// CreateItemInformationProtectionDataLossPreventionPoliciesEvaluatePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
|
||||||
func CreateItemInformationProtectionDataLossPreventionPoliciesEvaluatePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
|
||||||
return NewItemInformationProtectionDataLossPreventionPoliciesEvaluatePostRequestBody(), nil
|
|
||||||
}
|
|
||||||
// GetAdditionalData gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
||||||
func (m *ItemInformationProtectionDataLossPreventionPoliciesEvaluatePostRequestBody) GetAdditionalData()(map[string]interface{}) {
|
|
||||||
return m.additionalData
|
|
||||||
}
|
|
||||||
// GetEvaluationInput gets the evaluationInput property value. The evaluationInput property
|
|
||||||
func (m *ItemInformationProtectionDataLossPreventionPoliciesEvaluatePostRequestBody) GetEvaluationInput()(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.DlpEvaluationInputable) {
|
|
||||||
return m.evaluationInput
|
|
||||||
}
|
|
||||||
// GetFieldDeserializers the deserialization information for the current model
|
|
||||||
func (m *ItemInformationProtectionDataLossPreventionPoliciesEvaluatePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
|
||||||
res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
|
|
||||||
res["evaluationInput"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
|
||||||
val, err := n.GetObjectValue(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.CreateDlpEvaluationInputFromDiscriminatorValue)
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if val != nil {
|
|
||||||
m.SetEvaluationInput(val.(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.DlpEvaluationInputable))
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
res["notificationInfo"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
|
||||||
val, err := n.GetObjectValue(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.CreateDlpNotificationFromDiscriminatorValue)
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if val != nil {
|
|
||||||
m.SetNotificationInfo(val.(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.DlpNotificationable))
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
res["target"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
|
||||||
val, err := n.GetStringValue()
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if val != nil {
|
|
||||||
m.SetTarget(val)
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
return res
|
|
||||||
}
|
|
||||||
// GetNotificationInfo gets the notificationInfo property value. The notificationInfo property
|
|
||||||
func (m *ItemInformationProtectionDataLossPreventionPoliciesEvaluatePostRequestBody) GetNotificationInfo()(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.DlpNotificationable) {
|
|
||||||
return m.notificationInfo
|
|
||||||
}
|
|
||||||
// GetTarget gets the target property value. The target property
|
|
||||||
func (m *ItemInformationProtectionDataLossPreventionPoliciesEvaluatePostRequestBody) GetTarget()(*string) {
|
|
||||||
return m.target
|
|
||||||
}
|
|
||||||
// Serialize serializes information the current object
|
|
||||||
func (m *ItemInformationProtectionDataLossPreventionPoliciesEvaluatePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
|
||||||
{
|
|
||||||
err := writer.WriteObjectValue("evaluationInput", m.GetEvaluationInput())
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
{
|
|
||||||
err := writer.WriteObjectValue("notificationInfo", m.GetNotificationInfo())
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
{
|
|
||||||
err := writer.WriteStringValue("target", m.GetTarget())
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
{
|
|
||||||
err := writer.WriteAdditionalData(m.GetAdditionalData())
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
||||||
func (m *ItemInformationProtectionDataLossPreventionPoliciesEvaluatePostRequestBody) SetAdditionalData(value map[string]interface{})() {
|
|
||||||
m.additionalData = value
|
|
||||||
}
|
|
||||||
// SetEvaluationInput sets the evaluationInput property value. The evaluationInput property
|
|
||||||
func (m *ItemInformationProtectionDataLossPreventionPoliciesEvaluatePostRequestBody) SetEvaluationInput(value ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.DlpEvaluationInputable)() {
|
|
||||||
m.evaluationInput = value
|
|
||||||
}
|
|
||||||
// SetNotificationInfo sets the notificationInfo property value. The notificationInfo property
|
|
||||||
func (m *ItemInformationProtectionDataLossPreventionPoliciesEvaluatePostRequestBody) SetNotificationInfo(value ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.DlpNotificationable)() {
|
|
||||||
m.notificationInfo = value
|
|
||||||
}
|
|
||||||
// SetTarget sets the target property value. The target property
|
|
||||||
func (m *ItemInformationProtectionDataLossPreventionPoliciesEvaluatePostRequestBody) SetTarget(value *string)() {
|
|
||||||
m.target = value
|
|
||||||
}
|
|
||||||
@ -1,18 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemInformationProtectionDataLossPreventionPoliciesEvaluatePostRequestBodyable
|
|
||||||
type ItemInformationProtectionDataLossPreventionPoliciesEvaluatePostRequestBodyable interface {
|
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
|
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
|
||||||
GetEvaluationInput()(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.DlpEvaluationInputable)
|
|
||||||
GetNotificationInfo()(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.DlpNotificationable)
|
|
||||||
GetTarget()(*string)
|
|
||||||
SetEvaluationInput(value ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.DlpEvaluationInputable)()
|
|
||||||
SetNotificationInfo(value ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.DlpNotificationable)()
|
|
||||||
SetTarget(value *string)()
|
|
||||||
}
|
|
||||||
@ -1,77 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
|
||||||
i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models/odataerrors"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemInformationProtectionDataLossPreventionPoliciesEvaluateRequestBuilder provides operations to call the evaluate method.
|
|
||||||
type ItemInformationProtectionDataLossPreventionPoliciesEvaluateRequestBuilder struct {
|
|
||||||
// Path parameters for the request
|
|
||||||
pathParameters map[string]string
|
|
||||||
// The request adapter to use to execute the requests.
|
|
||||||
requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter
|
|
||||||
// Url template to use to build the URL for the current request builder
|
|
||||||
urlTemplate string
|
|
||||||
}
|
|
||||||
// ItemInformationProtectionDataLossPreventionPoliciesEvaluateRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
|
|
||||||
type ItemInformationProtectionDataLossPreventionPoliciesEvaluateRequestBuilderPostRequestConfiguration struct {
|
|
||||||
// Request headers
|
|
||||||
Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
|
|
||||||
// Request options
|
|
||||||
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
|
|
||||||
}
|
|
||||||
// NewItemInformationProtectionDataLossPreventionPoliciesEvaluateRequestBuilderInternal instantiates a new EvaluateRequestBuilder and sets the default values.
|
|
||||||
func NewItemInformationProtectionDataLossPreventionPoliciesEvaluateRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemInformationProtectionDataLossPreventionPoliciesEvaluateRequestBuilder) {
|
|
||||||
m := &ItemInformationProtectionDataLossPreventionPoliciesEvaluateRequestBuilder{
|
|
||||||
}
|
|
||||||
m.urlTemplate = "{+baseurl}/sites/{site%2Did}/informationProtection/dataLossPreventionPolicies/microsoft.graph.evaluate";
|
|
||||||
urlTplParams := make(map[string]string)
|
|
||||||
for idx, item := range pathParameters {
|
|
||||||
urlTplParams[idx] = item
|
|
||||||
}
|
|
||||||
m.pathParameters = urlTplParams;
|
|
||||||
m.requestAdapter = requestAdapter;
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// NewItemInformationProtectionDataLossPreventionPoliciesEvaluateRequestBuilder instantiates a new EvaluateRequestBuilder and sets the default values.
|
|
||||||
func NewItemInformationProtectionDataLossPreventionPoliciesEvaluateRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemInformationProtectionDataLossPreventionPoliciesEvaluateRequestBuilder) {
|
|
||||||
urlParams := make(map[string]string)
|
|
||||||
urlParams["request-raw-url"] = rawUrl
|
|
||||||
return NewItemInformationProtectionDataLossPreventionPoliciesEvaluateRequestBuilderInternal(urlParams, requestAdapter)
|
|
||||||
}
|
|
||||||
// CreatePostRequestInformation invoke action evaluate
|
|
||||||
func (m *ItemInformationProtectionDataLossPreventionPoliciesEvaluateRequestBuilder) CreatePostRequestInformation(ctx context.Context, body ItemInformationProtectionDataLossPreventionPoliciesEvaluatePostRequestBodyable, requestConfiguration *ItemInformationProtectionDataLossPreventionPoliciesEvaluateRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
|
|
||||||
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation()
|
|
||||||
requestInfo.UrlTemplate = m.urlTemplate
|
|
||||||
requestInfo.PathParameters = m.pathParameters
|
|
||||||
requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST
|
|
||||||
requestInfo.Headers.Add("Accept", "application/json")
|
|
||||||
requestInfo.SetContentFromParsable(ctx, m.requestAdapter, "application/json", body)
|
|
||||||
if requestConfiguration != nil {
|
|
||||||
requestInfo.Headers.AddAll(requestConfiguration.Headers)
|
|
||||||
requestInfo.AddRequestOptions(requestConfiguration.Options)
|
|
||||||
}
|
|
||||||
return requestInfo, nil
|
|
||||||
}
|
|
||||||
// Post invoke action evaluate
|
|
||||||
func (m *ItemInformationProtectionDataLossPreventionPoliciesEvaluateRequestBuilder) Post(ctx context.Context, body ItemInformationProtectionDataLossPreventionPoliciesEvaluatePostRequestBodyable, requestConfiguration *ItemInformationProtectionDataLossPreventionPoliciesEvaluateRequestBuilderPostRequestConfiguration)(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.DlpEvaluatePoliciesJobResponseable, error) {
|
|
||||||
requestInfo, err := m.CreatePostRequestInformation(ctx, body, requestConfiguration);
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
|
|
||||||
"4XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
"5XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
}
|
|
||||||
res, err := m.requestAdapter.SendAsync(ctx, requestInfo, ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.CreateDlpEvaluatePoliciesJobResponseFromDiscriminatorValue, errorMapping)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if res == nil {
|
|
||||||
return nil, nil
|
|
||||||
}
|
|
||||||
return res.(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.DlpEvaluatePoliciesJobResponseable), nil
|
|
||||||
}
|
|
||||||
@ -1,148 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
|
||||||
i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models/odataerrors"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemInformationProtectionDataLossPreventionPoliciesRequestBuilder provides operations to manage the dataLossPreventionPolicies property of the microsoft.graph.informationProtection entity.
|
|
||||||
type ItemInformationProtectionDataLossPreventionPoliciesRequestBuilder struct {
|
|
||||||
// Path parameters for the request
|
|
||||||
pathParameters map[string]string
|
|
||||||
// The request adapter to use to execute the requests.
|
|
||||||
requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter
|
|
||||||
// Url template to use to build the URL for the current request builder
|
|
||||||
urlTemplate string
|
|
||||||
}
|
|
||||||
// ItemInformationProtectionDataLossPreventionPoliciesRequestBuilderGetQueryParameters get dataLossPreventionPolicies from sites
|
|
||||||
type ItemInformationProtectionDataLossPreventionPoliciesRequestBuilderGetQueryParameters struct {
|
|
||||||
// Include count of items
|
|
||||||
Count *bool `uriparametername:"%24count"`
|
|
||||||
// Expand related entities
|
|
||||||
Expand []string `uriparametername:"%24expand"`
|
|
||||||
// Filter items by property values
|
|
||||||
Filter *string `uriparametername:"%24filter"`
|
|
||||||
// Order items by property values
|
|
||||||
Orderby []string `uriparametername:"%24orderby"`
|
|
||||||
// Search items by search phrases
|
|
||||||
Search *string `uriparametername:"%24search"`
|
|
||||||
// Select properties to be returned
|
|
||||||
Select []string `uriparametername:"%24select"`
|
|
||||||
// Skip the first n items
|
|
||||||
Skip *int32 `uriparametername:"%24skip"`
|
|
||||||
// Show only the first n items
|
|
||||||
Top *int32 `uriparametername:"%24top"`
|
|
||||||
}
|
|
||||||
// ItemInformationProtectionDataLossPreventionPoliciesRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
|
|
||||||
type ItemInformationProtectionDataLossPreventionPoliciesRequestBuilderGetRequestConfiguration struct {
|
|
||||||
// Request headers
|
|
||||||
Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
|
|
||||||
// Request options
|
|
||||||
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
|
|
||||||
// Request query parameters
|
|
||||||
QueryParameters *ItemInformationProtectionDataLossPreventionPoliciesRequestBuilderGetQueryParameters
|
|
||||||
}
|
|
||||||
// ItemInformationProtectionDataLossPreventionPoliciesRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
|
|
||||||
type ItemInformationProtectionDataLossPreventionPoliciesRequestBuilderPostRequestConfiguration struct {
|
|
||||||
// Request headers
|
|
||||||
Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
|
|
||||||
// Request options
|
|
||||||
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
|
|
||||||
}
|
|
||||||
// NewItemInformationProtectionDataLossPreventionPoliciesRequestBuilderInternal instantiates a new DataLossPreventionPoliciesRequestBuilder and sets the default values.
|
|
||||||
func NewItemInformationProtectionDataLossPreventionPoliciesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemInformationProtectionDataLossPreventionPoliciesRequestBuilder) {
|
|
||||||
m := &ItemInformationProtectionDataLossPreventionPoliciesRequestBuilder{
|
|
||||||
}
|
|
||||||
m.urlTemplate = "{+baseurl}/sites/{site%2Did}/informationProtection/dataLossPreventionPolicies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}";
|
|
||||||
urlTplParams := make(map[string]string)
|
|
||||||
for idx, item := range pathParameters {
|
|
||||||
urlTplParams[idx] = item
|
|
||||||
}
|
|
||||||
m.pathParameters = urlTplParams;
|
|
||||||
m.requestAdapter = requestAdapter;
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// NewItemInformationProtectionDataLossPreventionPoliciesRequestBuilder instantiates a new DataLossPreventionPoliciesRequestBuilder and sets the default values.
|
|
||||||
func NewItemInformationProtectionDataLossPreventionPoliciesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemInformationProtectionDataLossPreventionPoliciesRequestBuilder) {
|
|
||||||
urlParams := make(map[string]string)
|
|
||||||
urlParams["request-raw-url"] = rawUrl
|
|
||||||
return NewItemInformationProtectionDataLossPreventionPoliciesRequestBuilderInternal(urlParams, requestAdapter)
|
|
||||||
}
|
|
||||||
// Count provides operations to count the resources in the collection.
|
|
||||||
func (m *ItemInformationProtectionDataLossPreventionPoliciesRequestBuilder) Count()(*ItemInformationProtectionDataLossPreventionPoliciesCountRequestBuilder) {
|
|
||||||
return NewItemInformationProtectionDataLossPreventionPoliciesCountRequestBuilderInternal(m.pathParameters, m.requestAdapter);
|
|
||||||
}
|
|
||||||
// CreateGetRequestInformation get dataLossPreventionPolicies from sites
|
|
||||||
func (m *ItemInformationProtectionDataLossPreventionPoliciesRequestBuilder) CreateGetRequestInformation(ctx context.Context, requestConfiguration *ItemInformationProtectionDataLossPreventionPoliciesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
|
|
||||||
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation()
|
|
||||||
requestInfo.UrlTemplate = m.urlTemplate
|
|
||||||
requestInfo.PathParameters = m.pathParameters
|
|
||||||
requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET
|
|
||||||
requestInfo.Headers.Add("Accept", "application/json")
|
|
||||||
if requestConfiguration != nil {
|
|
||||||
if requestConfiguration.QueryParameters != nil {
|
|
||||||
requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters))
|
|
||||||
}
|
|
||||||
requestInfo.Headers.AddAll(requestConfiguration.Headers)
|
|
||||||
requestInfo.AddRequestOptions(requestConfiguration.Options)
|
|
||||||
}
|
|
||||||
return requestInfo, nil
|
|
||||||
}
|
|
||||||
// CreatePostRequestInformation create new navigation property to dataLossPreventionPolicies for sites
|
|
||||||
func (m *ItemInformationProtectionDataLossPreventionPoliciesRequestBuilder) CreatePostRequestInformation(ctx context.Context, body ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.DataLossPreventionPolicyable, requestConfiguration *ItemInformationProtectionDataLossPreventionPoliciesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
|
|
||||||
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation()
|
|
||||||
requestInfo.UrlTemplate = m.urlTemplate
|
|
||||||
requestInfo.PathParameters = m.pathParameters
|
|
||||||
requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST
|
|
||||||
requestInfo.Headers.Add("Accept", "application/json")
|
|
||||||
requestInfo.SetContentFromParsable(ctx, m.requestAdapter, "application/json", body)
|
|
||||||
if requestConfiguration != nil {
|
|
||||||
requestInfo.Headers.AddAll(requestConfiguration.Headers)
|
|
||||||
requestInfo.AddRequestOptions(requestConfiguration.Options)
|
|
||||||
}
|
|
||||||
return requestInfo, nil
|
|
||||||
}
|
|
||||||
// Evaluate provides operations to call the evaluate method.
|
|
||||||
func (m *ItemInformationProtectionDataLossPreventionPoliciesRequestBuilder) Evaluate()(*ItemInformationProtectionDataLossPreventionPoliciesEvaluateRequestBuilder) {
|
|
||||||
return NewItemInformationProtectionDataLossPreventionPoliciesEvaluateRequestBuilderInternal(m.pathParameters, m.requestAdapter);
|
|
||||||
}
|
|
||||||
// Get get dataLossPreventionPolicies from sites
|
|
||||||
func (m *ItemInformationProtectionDataLossPreventionPoliciesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemInformationProtectionDataLossPreventionPoliciesRequestBuilderGetRequestConfiguration)(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.DataLossPreventionPolicyCollectionResponseable, error) {
|
|
||||||
requestInfo, err := m.CreateGetRequestInformation(ctx, requestConfiguration);
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
|
|
||||||
"4XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
"5XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
}
|
|
||||||
res, err := m.requestAdapter.SendAsync(ctx, requestInfo, ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.CreateDataLossPreventionPolicyCollectionResponseFromDiscriminatorValue, errorMapping)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if res == nil {
|
|
||||||
return nil, nil
|
|
||||||
}
|
|
||||||
return res.(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.DataLossPreventionPolicyCollectionResponseable), nil
|
|
||||||
}
|
|
||||||
// Post create new navigation property to dataLossPreventionPolicies for sites
|
|
||||||
func (m *ItemInformationProtectionDataLossPreventionPoliciesRequestBuilder) Post(ctx context.Context, body ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.DataLossPreventionPolicyable, requestConfiguration *ItemInformationProtectionDataLossPreventionPoliciesRequestBuilderPostRequestConfiguration)(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.DataLossPreventionPolicyable, error) {
|
|
||||||
requestInfo, err := m.CreatePostRequestInformation(ctx, body, requestConfiguration);
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
|
|
||||||
"4XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
"5XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
}
|
|
||||||
res, err := m.requestAdapter.SendAsync(ctx, requestInfo, ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.CreateDataLossPreventionPolicyFromDiscriminatorValue, errorMapping)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if res == nil {
|
|
||||||
return nil, nil
|
|
||||||
}
|
|
||||||
return res.(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.DataLossPreventionPolicyable), nil
|
|
||||||
}
|
|
||||||
@ -1,97 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemInformationProtectionDecryptBufferPostRequestBody provides operations to call the decryptBuffer method.
|
|
||||||
type ItemInformationProtectionDecryptBufferPostRequestBody struct {
|
|
||||||
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
||||||
additionalData map[string]interface{}
|
|
||||||
// The encryptedBuffer property
|
|
||||||
encryptedBuffer []byte
|
|
||||||
// The publishingLicense property
|
|
||||||
publishingLicense []byte
|
|
||||||
}
|
|
||||||
// NewItemInformationProtectionDecryptBufferPostRequestBody instantiates a new ItemInformationProtectionDecryptBufferPostRequestBody and sets the default values.
|
|
||||||
func NewItemInformationProtectionDecryptBufferPostRequestBody()(*ItemInformationProtectionDecryptBufferPostRequestBody) {
|
|
||||||
m := &ItemInformationProtectionDecryptBufferPostRequestBody{
|
|
||||||
}
|
|
||||||
m.SetAdditionalData(make(map[string]interface{}));
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// CreateItemInformationProtectionDecryptBufferPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
|
||||||
func CreateItemInformationProtectionDecryptBufferPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
|
||||||
return NewItemInformationProtectionDecryptBufferPostRequestBody(), nil
|
|
||||||
}
|
|
||||||
// GetAdditionalData gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
||||||
func (m *ItemInformationProtectionDecryptBufferPostRequestBody) GetAdditionalData()(map[string]interface{}) {
|
|
||||||
return m.additionalData
|
|
||||||
}
|
|
||||||
// GetEncryptedBuffer gets the encryptedBuffer property value. The encryptedBuffer property
|
|
||||||
func (m *ItemInformationProtectionDecryptBufferPostRequestBody) GetEncryptedBuffer()([]byte) {
|
|
||||||
return m.encryptedBuffer
|
|
||||||
}
|
|
||||||
// GetFieldDeserializers the deserialization information for the current model
|
|
||||||
func (m *ItemInformationProtectionDecryptBufferPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
|
||||||
res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
|
|
||||||
res["encryptedBuffer"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
|
||||||
val, err := n.GetByteArrayValue()
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if val != nil {
|
|
||||||
m.SetEncryptedBuffer(val)
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
res["publishingLicense"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
|
||||||
val, err := n.GetByteArrayValue()
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if val != nil {
|
|
||||||
m.SetPublishingLicense(val)
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
return res
|
|
||||||
}
|
|
||||||
// GetPublishingLicense gets the publishingLicense property value. The publishingLicense property
|
|
||||||
func (m *ItemInformationProtectionDecryptBufferPostRequestBody) GetPublishingLicense()([]byte) {
|
|
||||||
return m.publishingLicense
|
|
||||||
}
|
|
||||||
// Serialize serializes information the current object
|
|
||||||
func (m *ItemInformationProtectionDecryptBufferPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
|
||||||
{
|
|
||||||
err := writer.WriteByteArrayValue("encryptedBuffer", m.GetEncryptedBuffer())
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
{
|
|
||||||
err := writer.WriteByteArrayValue("publishingLicense", m.GetPublishingLicense())
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
{
|
|
||||||
err := writer.WriteAdditionalData(m.GetAdditionalData())
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
||||||
func (m *ItemInformationProtectionDecryptBufferPostRequestBody) SetAdditionalData(value map[string]interface{})() {
|
|
||||||
m.additionalData = value
|
|
||||||
}
|
|
||||||
// SetEncryptedBuffer sets the encryptedBuffer property value. The encryptedBuffer property
|
|
||||||
func (m *ItemInformationProtectionDecryptBufferPostRequestBody) SetEncryptedBuffer(value []byte)() {
|
|
||||||
m.encryptedBuffer = value
|
|
||||||
}
|
|
||||||
// SetPublishingLicense sets the publishingLicense property value. The publishingLicense property
|
|
||||||
func (m *ItemInformationProtectionDecryptBufferPostRequestBody) SetPublishingLicense(value []byte)() {
|
|
||||||
m.publishingLicense = value
|
|
||||||
}
|
|
||||||
@ -1,15 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemInformationProtectionDecryptBufferPostRequestBodyable
|
|
||||||
type ItemInformationProtectionDecryptBufferPostRequestBodyable interface {
|
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
|
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
|
||||||
GetEncryptedBuffer()([]byte)
|
|
||||||
GetPublishingLicense()([]byte)
|
|
||||||
SetEncryptedBuffer(value []byte)()
|
|
||||||
SetPublishingLicense(value []byte)()
|
|
||||||
}
|
|
||||||
@ -1,77 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
|
||||||
i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models/odataerrors"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemInformationProtectionDecryptBufferRequestBuilder provides operations to call the decryptBuffer method.
|
|
||||||
type ItemInformationProtectionDecryptBufferRequestBuilder struct {
|
|
||||||
// Path parameters for the request
|
|
||||||
pathParameters map[string]string
|
|
||||||
// The request adapter to use to execute the requests.
|
|
||||||
requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter
|
|
||||||
// Url template to use to build the URL for the current request builder
|
|
||||||
urlTemplate string
|
|
||||||
}
|
|
||||||
// ItemInformationProtectionDecryptBufferRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
|
|
||||||
type ItemInformationProtectionDecryptBufferRequestBuilderPostRequestConfiguration struct {
|
|
||||||
// Request headers
|
|
||||||
Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
|
|
||||||
// Request options
|
|
||||||
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
|
|
||||||
}
|
|
||||||
// NewItemInformationProtectionDecryptBufferRequestBuilderInternal instantiates a new DecryptBufferRequestBuilder and sets the default values.
|
|
||||||
func NewItemInformationProtectionDecryptBufferRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemInformationProtectionDecryptBufferRequestBuilder) {
|
|
||||||
m := &ItemInformationProtectionDecryptBufferRequestBuilder{
|
|
||||||
}
|
|
||||||
m.urlTemplate = "{+baseurl}/sites/{site%2Did}/informationProtection/microsoft.graph.decryptBuffer";
|
|
||||||
urlTplParams := make(map[string]string)
|
|
||||||
for idx, item := range pathParameters {
|
|
||||||
urlTplParams[idx] = item
|
|
||||||
}
|
|
||||||
m.pathParameters = urlTplParams;
|
|
||||||
m.requestAdapter = requestAdapter;
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// NewItemInformationProtectionDecryptBufferRequestBuilder instantiates a new DecryptBufferRequestBuilder and sets the default values.
|
|
||||||
func NewItemInformationProtectionDecryptBufferRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemInformationProtectionDecryptBufferRequestBuilder) {
|
|
||||||
urlParams := make(map[string]string)
|
|
||||||
urlParams["request-raw-url"] = rawUrl
|
|
||||||
return NewItemInformationProtectionDecryptBufferRequestBuilderInternal(urlParams, requestAdapter)
|
|
||||||
}
|
|
||||||
// CreatePostRequestInformation invoke action decryptBuffer
|
|
||||||
func (m *ItemInformationProtectionDecryptBufferRequestBuilder) CreatePostRequestInformation(ctx context.Context, body ItemInformationProtectionDecryptBufferPostRequestBodyable, requestConfiguration *ItemInformationProtectionDecryptBufferRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
|
|
||||||
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation()
|
|
||||||
requestInfo.UrlTemplate = m.urlTemplate
|
|
||||||
requestInfo.PathParameters = m.pathParameters
|
|
||||||
requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST
|
|
||||||
requestInfo.Headers.Add("Accept", "application/json")
|
|
||||||
requestInfo.SetContentFromParsable(ctx, m.requestAdapter, "application/json", body)
|
|
||||||
if requestConfiguration != nil {
|
|
||||||
requestInfo.Headers.AddAll(requestConfiguration.Headers)
|
|
||||||
requestInfo.AddRequestOptions(requestConfiguration.Options)
|
|
||||||
}
|
|
||||||
return requestInfo, nil
|
|
||||||
}
|
|
||||||
// Post invoke action decryptBuffer
|
|
||||||
func (m *ItemInformationProtectionDecryptBufferRequestBuilder) Post(ctx context.Context, body ItemInformationProtectionDecryptBufferPostRequestBodyable, requestConfiguration *ItemInformationProtectionDecryptBufferRequestBuilderPostRequestConfiguration)(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.BufferDecryptionResultable, error) {
|
|
||||||
requestInfo, err := m.CreatePostRequestInformation(ctx, body, requestConfiguration);
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
|
|
||||||
"4XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
"5XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
}
|
|
||||||
res, err := m.requestAdapter.SendAsync(ctx, requestInfo, ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.CreateBufferDecryptionResultFromDiscriminatorValue, errorMapping)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if res == nil {
|
|
||||||
return nil, nil
|
|
||||||
}
|
|
||||||
return res.(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.BufferDecryptionResultable), nil
|
|
||||||
}
|
|
||||||
@ -1,98 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid"
|
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemInformationProtectionEncryptBufferPostRequestBody provides operations to call the encryptBuffer method.
|
|
||||||
type ItemInformationProtectionEncryptBufferPostRequestBody struct {
|
|
||||||
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
||||||
additionalData map[string]interface{}
|
|
||||||
// The buffer property
|
|
||||||
buffer []byte
|
|
||||||
// The labelId property
|
|
||||||
labelId *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID
|
|
||||||
}
|
|
||||||
// NewItemInformationProtectionEncryptBufferPostRequestBody instantiates a new ItemInformationProtectionEncryptBufferPostRequestBody and sets the default values.
|
|
||||||
func NewItemInformationProtectionEncryptBufferPostRequestBody()(*ItemInformationProtectionEncryptBufferPostRequestBody) {
|
|
||||||
m := &ItemInformationProtectionEncryptBufferPostRequestBody{
|
|
||||||
}
|
|
||||||
m.SetAdditionalData(make(map[string]interface{}));
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// CreateItemInformationProtectionEncryptBufferPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
|
||||||
func CreateItemInformationProtectionEncryptBufferPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
|
||||||
return NewItemInformationProtectionEncryptBufferPostRequestBody(), nil
|
|
||||||
}
|
|
||||||
// GetAdditionalData gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
||||||
func (m *ItemInformationProtectionEncryptBufferPostRequestBody) GetAdditionalData()(map[string]interface{}) {
|
|
||||||
return m.additionalData
|
|
||||||
}
|
|
||||||
// GetBuffer gets the buffer property value. The buffer property
|
|
||||||
func (m *ItemInformationProtectionEncryptBufferPostRequestBody) GetBuffer()([]byte) {
|
|
||||||
return m.buffer
|
|
||||||
}
|
|
||||||
// GetFieldDeserializers the deserialization information for the current model
|
|
||||||
func (m *ItemInformationProtectionEncryptBufferPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
|
||||||
res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
|
|
||||||
res["buffer"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
|
||||||
val, err := n.GetByteArrayValue()
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if val != nil {
|
|
||||||
m.SetBuffer(val)
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
res["labelId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
|
||||||
val, err := n.GetUUIDValue()
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if val != nil {
|
|
||||||
m.SetLabelId(val)
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
return res
|
|
||||||
}
|
|
||||||
// GetLabelId gets the labelId property value. The labelId property
|
|
||||||
func (m *ItemInformationProtectionEncryptBufferPostRequestBody) GetLabelId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) {
|
|
||||||
return m.labelId
|
|
||||||
}
|
|
||||||
// Serialize serializes information the current object
|
|
||||||
func (m *ItemInformationProtectionEncryptBufferPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
|
||||||
{
|
|
||||||
err := writer.WriteByteArrayValue("buffer", m.GetBuffer())
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
{
|
|
||||||
err := writer.WriteUUIDValue("labelId", m.GetLabelId())
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
{
|
|
||||||
err := writer.WriteAdditionalData(m.GetAdditionalData())
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
||||||
func (m *ItemInformationProtectionEncryptBufferPostRequestBody) SetAdditionalData(value map[string]interface{})() {
|
|
||||||
m.additionalData = value
|
|
||||||
}
|
|
||||||
// SetBuffer sets the buffer property value. The buffer property
|
|
||||||
func (m *ItemInformationProtectionEncryptBufferPostRequestBody) SetBuffer(value []byte)() {
|
|
||||||
m.buffer = value
|
|
||||||
}
|
|
||||||
// SetLabelId sets the labelId property value. The labelId property
|
|
||||||
func (m *ItemInformationProtectionEncryptBufferPostRequestBody) SetLabelId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() {
|
|
||||||
m.labelId = value
|
|
||||||
}
|
|
||||||
@ -1,16 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22 "github.com/google/uuid"
|
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemInformationProtectionEncryptBufferPostRequestBodyable
|
|
||||||
type ItemInformationProtectionEncryptBufferPostRequestBodyable interface {
|
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
|
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
|
||||||
GetBuffer()([]byte)
|
|
||||||
GetLabelId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)
|
|
||||||
SetBuffer(value []byte)()
|
|
||||||
SetLabelId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)()
|
|
||||||
}
|
|
||||||
@ -1,77 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
|
||||||
i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models/odataerrors"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemInformationProtectionEncryptBufferRequestBuilder provides operations to call the encryptBuffer method.
|
|
||||||
type ItemInformationProtectionEncryptBufferRequestBuilder struct {
|
|
||||||
// Path parameters for the request
|
|
||||||
pathParameters map[string]string
|
|
||||||
// The request adapter to use to execute the requests.
|
|
||||||
requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter
|
|
||||||
// Url template to use to build the URL for the current request builder
|
|
||||||
urlTemplate string
|
|
||||||
}
|
|
||||||
// ItemInformationProtectionEncryptBufferRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
|
|
||||||
type ItemInformationProtectionEncryptBufferRequestBuilderPostRequestConfiguration struct {
|
|
||||||
// Request headers
|
|
||||||
Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
|
|
||||||
// Request options
|
|
||||||
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
|
|
||||||
}
|
|
||||||
// NewItemInformationProtectionEncryptBufferRequestBuilderInternal instantiates a new EncryptBufferRequestBuilder and sets the default values.
|
|
||||||
func NewItemInformationProtectionEncryptBufferRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemInformationProtectionEncryptBufferRequestBuilder) {
|
|
||||||
m := &ItemInformationProtectionEncryptBufferRequestBuilder{
|
|
||||||
}
|
|
||||||
m.urlTemplate = "{+baseurl}/sites/{site%2Did}/informationProtection/microsoft.graph.encryptBuffer";
|
|
||||||
urlTplParams := make(map[string]string)
|
|
||||||
for idx, item := range pathParameters {
|
|
||||||
urlTplParams[idx] = item
|
|
||||||
}
|
|
||||||
m.pathParameters = urlTplParams;
|
|
||||||
m.requestAdapter = requestAdapter;
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// NewItemInformationProtectionEncryptBufferRequestBuilder instantiates a new EncryptBufferRequestBuilder and sets the default values.
|
|
||||||
func NewItemInformationProtectionEncryptBufferRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemInformationProtectionEncryptBufferRequestBuilder) {
|
|
||||||
urlParams := make(map[string]string)
|
|
||||||
urlParams["request-raw-url"] = rawUrl
|
|
||||||
return NewItemInformationProtectionEncryptBufferRequestBuilderInternal(urlParams, requestAdapter)
|
|
||||||
}
|
|
||||||
// CreatePostRequestInformation invoke action encryptBuffer
|
|
||||||
func (m *ItemInformationProtectionEncryptBufferRequestBuilder) CreatePostRequestInformation(ctx context.Context, body ItemInformationProtectionEncryptBufferPostRequestBodyable, requestConfiguration *ItemInformationProtectionEncryptBufferRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
|
|
||||||
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation()
|
|
||||||
requestInfo.UrlTemplate = m.urlTemplate
|
|
||||||
requestInfo.PathParameters = m.pathParameters
|
|
||||||
requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST
|
|
||||||
requestInfo.Headers.Add("Accept", "application/json")
|
|
||||||
requestInfo.SetContentFromParsable(ctx, m.requestAdapter, "application/json", body)
|
|
||||||
if requestConfiguration != nil {
|
|
||||||
requestInfo.Headers.AddAll(requestConfiguration.Headers)
|
|
||||||
requestInfo.AddRequestOptions(requestConfiguration.Options)
|
|
||||||
}
|
|
||||||
return requestInfo, nil
|
|
||||||
}
|
|
||||||
// Post invoke action encryptBuffer
|
|
||||||
func (m *ItemInformationProtectionEncryptBufferRequestBuilder) Post(ctx context.Context, body ItemInformationProtectionEncryptBufferPostRequestBodyable, requestConfiguration *ItemInformationProtectionEncryptBufferRequestBuilderPostRequestConfiguration)(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.BufferEncryptionResultable, error) {
|
|
||||||
requestInfo, err := m.CreatePostRequestInformation(ctx, body, requestConfiguration);
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
|
|
||||||
"4XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
"5XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
}
|
|
||||||
res, err := m.requestAdapter.SendAsync(ctx, requestInfo, ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.CreateBufferEncryptionResultFromDiscriminatorValue, errorMapping)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if res == nil {
|
|
||||||
return nil, nil
|
|
||||||
}
|
|
||||||
return res.(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.BufferEncryptionResultable), nil
|
|
||||||
}
|
|
||||||
@ -1,87 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
|
|
||||||
i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models/odataerrors"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemInformationProtectionPolicyLabelsCountRequestBuilder provides operations to count the resources in the collection.
|
|
||||||
type ItemInformationProtectionPolicyLabelsCountRequestBuilder struct {
|
|
||||||
// Path parameters for the request
|
|
||||||
pathParameters map[string]string
|
|
||||||
// The request adapter to use to execute the requests.
|
|
||||||
requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter
|
|
||||||
// Url template to use to build the URL for the current request builder
|
|
||||||
urlTemplate string
|
|
||||||
}
|
|
||||||
// ItemInformationProtectionPolicyLabelsCountRequestBuilderGetQueryParameters get the number of the resource
|
|
||||||
type ItemInformationProtectionPolicyLabelsCountRequestBuilderGetQueryParameters struct {
|
|
||||||
// Filter items by property values
|
|
||||||
Filter *string `uriparametername:"%24filter"`
|
|
||||||
// Search items by search phrases
|
|
||||||
Search *string `uriparametername:"%24search"`
|
|
||||||
}
|
|
||||||
// ItemInformationProtectionPolicyLabelsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
|
|
||||||
type ItemInformationProtectionPolicyLabelsCountRequestBuilderGetRequestConfiguration struct {
|
|
||||||
// Request headers
|
|
||||||
Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
|
|
||||||
// Request options
|
|
||||||
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
|
|
||||||
// Request query parameters
|
|
||||||
QueryParameters *ItemInformationProtectionPolicyLabelsCountRequestBuilderGetQueryParameters
|
|
||||||
}
|
|
||||||
// NewItemInformationProtectionPolicyLabelsCountRequestBuilderInternal instantiates a new CountRequestBuilder and sets the default values.
|
|
||||||
func NewItemInformationProtectionPolicyLabelsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemInformationProtectionPolicyLabelsCountRequestBuilder) {
|
|
||||||
m := &ItemInformationProtectionPolicyLabelsCountRequestBuilder{
|
|
||||||
}
|
|
||||||
m.urlTemplate = "{+baseurl}/sites/{site%2Did}/informationProtection/policy/labels/$count{?%24search,%24filter}";
|
|
||||||
urlTplParams := make(map[string]string)
|
|
||||||
for idx, item := range pathParameters {
|
|
||||||
urlTplParams[idx] = item
|
|
||||||
}
|
|
||||||
m.pathParameters = urlTplParams;
|
|
||||||
m.requestAdapter = requestAdapter;
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// NewItemInformationProtectionPolicyLabelsCountRequestBuilder instantiates a new CountRequestBuilder and sets the default values.
|
|
||||||
func NewItemInformationProtectionPolicyLabelsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemInformationProtectionPolicyLabelsCountRequestBuilder) {
|
|
||||||
urlParams := make(map[string]string)
|
|
||||||
urlParams["request-raw-url"] = rawUrl
|
|
||||||
return NewItemInformationProtectionPolicyLabelsCountRequestBuilderInternal(urlParams, requestAdapter)
|
|
||||||
}
|
|
||||||
// CreateGetRequestInformation get the number of the resource
|
|
||||||
func (m *ItemInformationProtectionPolicyLabelsCountRequestBuilder) CreateGetRequestInformation(ctx context.Context, requestConfiguration *ItemInformationProtectionPolicyLabelsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
|
|
||||||
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation()
|
|
||||||
requestInfo.UrlTemplate = m.urlTemplate
|
|
||||||
requestInfo.PathParameters = m.pathParameters
|
|
||||||
requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET
|
|
||||||
requestInfo.Headers.Add("Accept", "text/plain")
|
|
||||||
if requestConfiguration != nil {
|
|
||||||
if requestConfiguration.QueryParameters != nil {
|
|
||||||
requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters))
|
|
||||||
}
|
|
||||||
requestInfo.Headers.AddAll(requestConfiguration.Headers)
|
|
||||||
requestInfo.AddRequestOptions(requestConfiguration.Options)
|
|
||||||
}
|
|
||||||
return requestInfo, nil
|
|
||||||
}
|
|
||||||
// Get get the number of the resource
|
|
||||||
func (m *ItemInformationProtectionPolicyLabelsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemInformationProtectionPolicyLabelsCountRequestBuilderGetRequestConfiguration)(*int32, error) {
|
|
||||||
requestInfo, err := m.CreateGetRequestInformation(ctx, requestConfiguration);
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
|
|
||||||
"4XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
"5XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
}
|
|
||||||
res, err := m.requestAdapter.SendPrimitiveAsync(ctx, requestInfo, "int32", errorMapping)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if res == nil {
|
|
||||||
return nil, nil
|
|
||||||
}
|
|
||||||
return res.(*int32), nil
|
|
||||||
}
|
|
||||||
@ -1,98 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemInformationProtectionPolicyLabelsEvaluateApplicationPostRequestBody provides operations to call the evaluateApplication method.
|
|
||||||
type ItemInformationProtectionPolicyLabelsEvaluateApplicationPostRequestBody struct {
|
|
||||||
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
||||||
additionalData map[string]interface{}
|
|
||||||
// The contentInfo property
|
|
||||||
contentInfo ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ContentInfoable
|
|
||||||
// The labelingOptions property
|
|
||||||
labelingOptions ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.LabelingOptionsable
|
|
||||||
}
|
|
||||||
// NewItemInformationProtectionPolicyLabelsEvaluateApplicationPostRequestBody instantiates a new ItemInformationProtectionPolicyLabelsEvaluateApplicationPostRequestBody and sets the default values.
|
|
||||||
func NewItemInformationProtectionPolicyLabelsEvaluateApplicationPostRequestBody()(*ItemInformationProtectionPolicyLabelsEvaluateApplicationPostRequestBody) {
|
|
||||||
m := &ItemInformationProtectionPolicyLabelsEvaluateApplicationPostRequestBody{
|
|
||||||
}
|
|
||||||
m.SetAdditionalData(make(map[string]interface{}));
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// CreateItemInformationProtectionPolicyLabelsEvaluateApplicationPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
|
||||||
func CreateItemInformationProtectionPolicyLabelsEvaluateApplicationPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
|
||||||
return NewItemInformationProtectionPolicyLabelsEvaluateApplicationPostRequestBody(), nil
|
|
||||||
}
|
|
||||||
// GetAdditionalData gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
||||||
func (m *ItemInformationProtectionPolicyLabelsEvaluateApplicationPostRequestBody) GetAdditionalData()(map[string]interface{}) {
|
|
||||||
return m.additionalData
|
|
||||||
}
|
|
||||||
// GetContentInfo gets the contentInfo property value. The contentInfo property
|
|
||||||
func (m *ItemInformationProtectionPolicyLabelsEvaluateApplicationPostRequestBody) GetContentInfo()(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ContentInfoable) {
|
|
||||||
return m.contentInfo
|
|
||||||
}
|
|
||||||
// GetFieldDeserializers the deserialization information for the current model
|
|
||||||
func (m *ItemInformationProtectionPolicyLabelsEvaluateApplicationPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
|
||||||
res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
|
|
||||||
res["contentInfo"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
|
||||||
val, err := n.GetObjectValue(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.CreateContentInfoFromDiscriminatorValue)
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if val != nil {
|
|
||||||
m.SetContentInfo(val.(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ContentInfoable))
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
res["labelingOptions"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
|
||||||
val, err := n.GetObjectValue(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.CreateLabelingOptionsFromDiscriminatorValue)
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if val != nil {
|
|
||||||
m.SetLabelingOptions(val.(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.LabelingOptionsable))
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
return res
|
|
||||||
}
|
|
||||||
// GetLabelingOptions gets the labelingOptions property value. The labelingOptions property
|
|
||||||
func (m *ItemInformationProtectionPolicyLabelsEvaluateApplicationPostRequestBody) GetLabelingOptions()(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.LabelingOptionsable) {
|
|
||||||
return m.labelingOptions
|
|
||||||
}
|
|
||||||
// Serialize serializes information the current object
|
|
||||||
func (m *ItemInformationProtectionPolicyLabelsEvaluateApplicationPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
|
||||||
{
|
|
||||||
err := writer.WriteObjectValue("contentInfo", m.GetContentInfo())
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
{
|
|
||||||
err := writer.WriteObjectValue("labelingOptions", m.GetLabelingOptions())
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
{
|
|
||||||
err := writer.WriteAdditionalData(m.GetAdditionalData())
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
||||||
func (m *ItemInformationProtectionPolicyLabelsEvaluateApplicationPostRequestBody) SetAdditionalData(value map[string]interface{})() {
|
|
||||||
m.additionalData = value
|
|
||||||
}
|
|
||||||
// SetContentInfo sets the contentInfo property value. The contentInfo property
|
|
||||||
func (m *ItemInformationProtectionPolicyLabelsEvaluateApplicationPostRequestBody) SetContentInfo(value ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ContentInfoable)() {
|
|
||||||
m.contentInfo = value
|
|
||||||
}
|
|
||||||
// SetLabelingOptions sets the labelingOptions property value. The labelingOptions property
|
|
||||||
func (m *ItemInformationProtectionPolicyLabelsEvaluateApplicationPostRequestBody) SetLabelingOptions(value ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.LabelingOptionsable)() {
|
|
||||||
m.labelingOptions = value
|
|
||||||
}
|
|
||||||
@ -1,16 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemInformationProtectionPolicyLabelsEvaluateApplicationPostRequestBodyable
|
|
||||||
type ItemInformationProtectionPolicyLabelsEvaluateApplicationPostRequestBodyable interface {
|
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
|
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
|
||||||
GetContentInfo()(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ContentInfoable)
|
|
||||||
GetLabelingOptions()(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.LabelingOptionsable)
|
|
||||||
SetContentInfo(value ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ContentInfoable)()
|
|
||||||
SetLabelingOptions(value ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.LabelingOptionsable)()
|
|
||||||
}
|
|
||||||
@ -1,79 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
|
|
||||||
i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models/odataerrors"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemInformationProtectionPolicyLabelsEvaluateApplicationRequestBuilder provides operations to call the evaluateApplication method.
|
|
||||||
type ItemInformationProtectionPolicyLabelsEvaluateApplicationRequestBuilder struct {
|
|
||||||
// Path parameters for the request
|
|
||||||
pathParameters map[string]string
|
|
||||||
// The request adapter to use to execute the requests.
|
|
||||||
requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter
|
|
||||||
// Url template to use to build the URL for the current request builder
|
|
||||||
urlTemplate string
|
|
||||||
}
|
|
||||||
// ItemInformationProtectionPolicyLabelsEvaluateApplicationRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
|
|
||||||
type ItemInformationProtectionPolicyLabelsEvaluateApplicationRequestBuilderPostRequestConfiguration struct {
|
|
||||||
// Request headers
|
|
||||||
Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
|
|
||||||
// Request options
|
|
||||||
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
|
|
||||||
}
|
|
||||||
// NewItemInformationProtectionPolicyLabelsEvaluateApplicationRequestBuilderInternal instantiates a new EvaluateApplicationRequestBuilder and sets the default values.
|
|
||||||
func NewItemInformationProtectionPolicyLabelsEvaluateApplicationRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemInformationProtectionPolicyLabelsEvaluateApplicationRequestBuilder) {
|
|
||||||
m := &ItemInformationProtectionPolicyLabelsEvaluateApplicationRequestBuilder{
|
|
||||||
}
|
|
||||||
m.urlTemplate = "{+baseurl}/sites/{site%2Did}/informationProtection/policy/labels/microsoft.graph.evaluateApplication";
|
|
||||||
urlTplParams := make(map[string]string)
|
|
||||||
for idx, item := range pathParameters {
|
|
||||||
urlTplParams[idx] = item
|
|
||||||
}
|
|
||||||
m.pathParameters = urlTplParams;
|
|
||||||
m.requestAdapter = requestAdapter;
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// NewItemInformationProtectionPolicyLabelsEvaluateApplicationRequestBuilder instantiates a new EvaluateApplicationRequestBuilder and sets the default values.
|
|
||||||
func NewItemInformationProtectionPolicyLabelsEvaluateApplicationRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemInformationProtectionPolicyLabelsEvaluateApplicationRequestBuilder) {
|
|
||||||
urlParams := make(map[string]string)
|
|
||||||
urlParams["request-raw-url"] = rawUrl
|
|
||||||
return NewItemInformationProtectionPolicyLabelsEvaluateApplicationRequestBuilderInternal(urlParams, requestAdapter)
|
|
||||||
}
|
|
||||||
// CreatePostRequestInformation compute the information protection label that should be applied and return the set of actions that must be taken to correctly label the information. This API is useful when a label should be set manually or explicitly by a user or service, rather than automatically based on file contents. Given contentInfo, which includes existing content metadata key/value pairs, and labelingOptions as an input, the API returns an informationProtectionAction object that contains one of more of the following:
|
|
||||||
func (m *ItemInformationProtectionPolicyLabelsEvaluateApplicationRequestBuilder) CreatePostRequestInformation(ctx context.Context, body ItemInformationProtectionPolicyLabelsEvaluateApplicationPostRequestBodyable, requestConfiguration *ItemInformationProtectionPolicyLabelsEvaluateApplicationRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
|
|
||||||
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation()
|
|
||||||
requestInfo.UrlTemplate = m.urlTemplate
|
|
||||||
requestInfo.PathParameters = m.pathParameters
|
|
||||||
requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST
|
|
||||||
requestInfo.Headers.Add("Accept", "application/json")
|
|
||||||
requestInfo.SetContentFromParsable(ctx, m.requestAdapter, "application/json", body)
|
|
||||||
if requestConfiguration != nil {
|
|
||||||
requestInfo.Headers.AddAll(requestConfiguration.Headers)
|
|
||||||
requestInfo.AddRequestOptions(requestConfiguration.Options)
|
|
||||||
}
|
|
||||||
return requestInfo, nil
|
|
||||||
}
|
|
||||||
// Post compute the information protection label that should be applied and return the set of actions that must be taken to correctly label the information. This API is useful when a label should be set manually or explicitly by a user or service, rather than automatically based on file contents. Given contentInfo, which includes existing content metadata key/value pairs, and labelingOptions as an input, the API returns an informationProtectionAction object that contains one of more of the following:
|
|
||||||
// [Find more info here]
|
|
||||||
//
|
|
||||||
// [Find more info here]: https://docs.microsoft.com/graph/api/informationprotectionlabel-evaluateapplication?view=graph-rest-1.0
|
|
||||||
func (m *ItemInformationProtectionPolicyLabelsEvaluateApplicationRequestBuilder) Post(ctx context.Context, body ItemInformationProtectionPolicyLabelsEvaluateApplicationPostRequestBodyable, requestConfiguration *ItemInformationProtectionPolicyLabelsEvaluateApplicationRequestBuilderPostRequestConfiguration)(ItemInformationProtectionPolicyLabelsEvaluateApplicationResponseable, error) {
|
|
||||||
requestInfo, err := m.CreatePostRequestInformation(ctx, body, requestConfiguration);
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
|
|
||||||
"4XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
"5XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
}
|
|
||||||
res, err := m.requestAdapter.SendAsync(ctx, requestInfo, CreateItemInformationProtectionPolicyLabelsEvaluateApplicationResponseFromDiscriminatorValue, errorMapping)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if res == nil {
|
|
||||||
return nil, nil
|
|
||||||
}
|
|
||||||
return res.(ItemInformationProtectionPolicyLabelsEvaluateApplicationResponseable), nil
|
|
||||||
}
|
|
||||||
@ -1,69 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemInformationProtectionPolicyLabelsEvaluateApplicationResponse provides operations to call the evaluateApplication method.
|
|
||||||
type ItemInformationProtectionPolicyLabelsEvaluateApplicationResponse struct {
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.BaseCollectionPaginationCountResponse
|
|
||||||
// The value property
|
|
||||||
value []ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.InformationProtectionActionable
|
|
||||||
}
|
|
||||||
// NewItemInformationProtectionPolicyLabelsEvaluateApplicationResponse instantiates a new ItemInformationProtectionPolicyLabelsEvaluateApplicationResponse and sets the default values.
|
|
||||||
func NewItemInformationProtectionPolicyLabelsEvaluateApplicationResponse()(*ItemInformationProtectionPolicyLabelsEvaluateApplicationResponse) {
|
|
||||||
m := &ItemInformationProtectionPolicyLabelsEvaluateApplicationResponse{
|
|
||||||
BaseCollectionPaginationCountResponse: *ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.NewBaseCollectionPaginationCountResponse(),
|
|
||||||
}
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// CreateItemInformationProtectionPolicyLabelsEvaluateApplicationResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
|
||||||
func CreateItemInformationProtectionPolicyLabelsEvaluateApplicationResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
|
||||||
return NewItemInformationProtectionPolicyLabelsEvaluateApplicationResponse(), nil
|
|
||||||
}
|
|
||||||
// GetFieldDeserializers the deserialization information for the current model
|
|
||||||
func (m *ItemInformationProtectionPolicyLabelsEvaluateApplicationResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
|
||||||
res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers()
|
|
||||||
res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
|
||||||
val, err := n.GetCollectionOfObjectValues(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.CreateInformationProtectionActionFromDiscriminatorValue)
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if val != nil {
|
|
||||||
res := make([]ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.InformationProtectionActionable, len(val))
|
|
||||||
for i, v := range val {
|
|
||||||
res[i] = v.(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.InformationProtectionActionable)
|
|
||||||
}
|
|
||||||
m.SetValue(res)
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
return res
|
|
||||||
}
|
|
||||||
// GetValue gets the value property value. The value property
|
|
||||||
func (m *ItemInformationProtectionPolicyLabelsEvaluateApplicationResponse) GetValue()([]ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.InformationProtectionActionable) {
|
|
||||||
return m.value
|
|
||||||
}
|
|
||||||
// Serialize serializes information the current object
|
|
||||||
func (m *ItemInformationProtectionPolicyLabelsEvaluateApplicationResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
|
||||||
err := m.BaseCollectionPaginationCountResponse.Serialize(writer)
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if m.GetValue() != nil {
|
|
||||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue()))
|
|
||||||
for i, v := range m.GetValue() {
|
|
||||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
|
||||||
}
|
|
||||||
err = writer.WriteCollectionOfObjectValues("value", cast)
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
// SetValue sets the value property value. The value property
|
|
||||||
func (m *ItemInformationProtectionPolicyLabelsEvaluateApplicationResponse) SetValue(value []ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.InformationProtectionActionable)() {
|
|
||||||
m.value = value
|
|
||||||
}
|
|
||||||
@ -1,14 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemInformationProtectionPolicyLabelsEvaluateApplicationResponseable
|
|
||||||
type ItemInformationProtectionPolicyLabelsEvaluateApplicationResponseable interface {
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.BaseCollectionPaginationCountResponseable
|
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
|
||||||
GetValue()([]ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.InformationProtectionActionable)
|
|
||||||
SetValue(value []ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.InformationProtectionActionable)()
|
|
||||||
}
|
|
||||||
@ -1,106 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemInformationProtectionPolicyLabelsEvaluateClassificationResultsPostRequestBody provides operations to call the evaluateClassificationResults method.
|
|
||||||
type ItemInformationProtectionPolicyLabelsEvaluateClassificationResultsPostRequestBody struct {
|
|
||||||
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
||||||
additionalData map[string]interface{}
|
|
||||||
// The classificationResults property
|
|
||||||
classificationResults []ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ClassificationResultable
|
|
||||||
// The contentInfo property
|
|
||||||
contentInfo ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ContentInfoable
|
|
||||||
}
|
|
||||||
// NewItemInformationProtectionPolicyLabelsEvaluateClassificationResultsPostRequestBody instantiates a new ItemInformationProtectionPolicyLabelsEvaluateClassificationResultsPostRequestBody and sets the default values.
|
|
||||||
func NewItemInformationProtectionPolicyLabelsEvaluateClassificationResultsPostRequestBody()(*ItemInformationProtectionPolicyLabelsEvaluateClassificationResultsPostRequestBody) {
|
|
||||||
m := &ItemInformationProtectionPolicyLabelsEvaluateClassificationResultsPostRequestBody{
|
|
||||||
}
|
|
||||||
m.SetAdditionalData(make(map[string]interface{}));
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// CreateItemInformationProtectionPolicyLabelsEvaluateClassificationResultsPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
|
||||||
func CreateItemInformationProtectionPolicyLabelsEvaluateClassificationResultsPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
|
||||||
return NewItemInformationProtectionPolicyLabelsEvaluateClassificationResultsPostRequestBody(), nil
|
|
||||||
}
|
|
||||||
// GetAdditionalData gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
||||||
func (m *ItemInformationProtectionPolicyLabelsEvaluateClassificationResultsPostRequestBody) GetAdditionalData()(map[string]interface{}) {
|
|
||||||
return m.additionalData
|
|
||||||
}
|
|
||||||
// GetClassificationResults gets the classificationResults property value. The classificationResults property
|
|
||||||
func (m *ItemInformationProtectionPolicyLabelsEvaluateClassificationResultsPostRequestBody) GetClassificationResults()([]ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ClassificationResultable) {
|
|
||||||
return m.classificationResults
|
|
||||||
}
|
|
||||||
// GetContentInfo gets the contentInfo property value. The contentInfo property
|
|
||||||
func (m *ItemInformationProtectionPolicyLabelsEvaluateClassificationResultsPostRequestBody) GetContentInfo()(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ContentInfoable) {
|
|
||||||
return m.contentInfo
|
|
||||||
}
|
|
||||||
// GetFieldDeserializers the deserialization information for the current model
|
|
||||||
func (m *ItemInformationProtectionPolicyLabelsEvaluateClassificationResultsPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
|
||||||
res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
|
|
||||||
res["classificationResults"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
|
||||||
val, err := n.GetCollectionOfObjectValues(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.CreateClassificationResultFromDiscriminatorValue)
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if val != nil {
|
|
||||||
res := make([]ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ClassificationResultable, len(val))
|
|
||||||
for i, v := range val {
|
|
||||||
res[i] = v.(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ClassificationResultable)
|
|
||||||
}
|
|
||||||
m.SetClassificationResults(res)
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
res["contentInfo"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
|
||||||
val, err := n.GetObjectValue(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.CreateContentInfoFromDiscriminatorValue)
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if val != nil {
|
|
||||||
m.SetContentInfo(val.(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ContentInfoable))
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
return res
|
|
||||||
}
|
|
||||||
// Serialize serializes information the current object
|
|
||||||
func (m *ItemInformationProtectionPolicyLabelsEvaluateClassificationResultsPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
|
||||||
if m.GetClassificationResults() != nil {
|
|
||||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetClassificationResults()))
|
|
||||||
for i, v := range m.GetClassificationResults() {
|
|
||||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
|
||||||
}
|
|
||||||
err := writer.WriteCollectionOfObjectValues("classificationResults", cast)
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
{
|
|
||||||
err := writer.WriteObjectValue("contentInfo", m.GetContentInfo())
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
{
|
|
||||||
err := writer.WriteAdditionalData(m.GetAdditionalData())
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
||||||
func (m *ItemInformationProtectionPolicyLabelsEvaluateClassificationResultsPostRequestBody) SetAdditionalData(value map[string]interface{})() {
|
|
||||||
m.additionalData = value
|
|
||||||
}
|
|
||||||
// SetClassificationResults sets the classificationResults property value. The classificationResults property
|
|
||||||
func (m *ItemInformationProtectionPolicyLabelsEvaluateClassificationResultsPostRequestBody) SetClassificationResults(value []ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ClassificationResultable)() {
|
|
||||||
m.classificationResults = value
|
|
||||||
}
|
|
||||||
// SetContentInfo sets the contentInfo property value. The contentInfo property
|
|
||||||
func (m *ItemInformationProtectionPolicyLabelsEvaluateClassificationResultsPostRequestBody) SetContentInfo(value ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ContentInfoable)() {
|
|
||||||
m.contentInfo = value
|
|
||||||
}
|
|
||||||
@ -1,16 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemInformationProtectionPolicyLabelsEvaluateClassificationResultsPostRequestBodyable
|
|
||||||
type ItemInformationProtectionPolicyLabelsEvaluateClassificationResultsPostRequestBodyable interface {
|
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
|
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
|
||||||
GetClassificationResults()([]ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ClassificationResultable)
|
|
||||||
GetContentInfo()(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ContentInfoable)
|
|
||||||
SetClassificationResults(value []ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ClassificationResultable)()
|
|
||||||
SetContentInfo(value ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ContentInfoable)()
|
|
||||||
}
|
|
||||||
@ -1,79 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
|
|
||||||
i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models/odataerrors"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemInformationProtectionPolicyLabelsEvaluateClassificationResultsRequestBuilder provides operations to call the evaluateClassificationResults method.
|
|
||||||
type ItemInformationProtectionPolicyLabelsEvaluateClassificationResultsRequestBuilder struct {
|
|
||||||
// Path parameters for the request
|
|
||||||
pathParameters map[string]string
|
|
||||||
// The request adapter to use to execute the requests.
|
|
||||||
requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter
|
|
||||||
// Url template to use to build the URL for the current request builder
|
|
||||||
urlTemplate string
|
|
||||||
}
|
|
||||||
// ItemInformationProtectionPolicyLabelsEvaluateClassificationResultsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
|
|
||||||
type ItemInformationProtectionPolicyLabelsEvaluateClassificationResultsRequestBuilderPostRequestConfiguration struct {
|
|
||||||
// Request headers
|
|
||||||
Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
|
|
||||||
// Request options
|
|
||||||
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
|
|
||||||
}
|
|
||||||
// NewItemInformationProtectionPolicyLabelsEvaluateClassificationResultsRequestBuilderInternal instantiates a new EvaluateClassificationResultsRequestBuilder and sets the default values.
|
|
||||||
func NewItemInformationProtectionPolicyLabelsEvaluateClassificationResultsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemInformationProtectionPolicyLabelsEvaluateClassificationResultsRequestBuilder) {
|
|
||||||
m := &ItemInformationProtectionPolicyLabelsEvaluateClassificationResultsRequestBuilder{
|
|
||||||
}
|
|
||||||
m.urlTemplate = "{+baseurl}/sites/{site%2Did}/informationProtection/policy/labels/microsoft.graph.evaluateClassificationResults";
|
|
||||||
urlTplParams := make(map[string]string)
|
|
||||||
for idx, item := range pathParameters {
|
|
||||||
urlTplParams[idx] = item
|
|
||||||
}
|
|
||||||
m.pathParameters = urlTplParams;
|
|
||||||
m.requestAdapter = requestAdapter;
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// NewItemInformationProtectionPolicyLabelsEvaluateClassificationResultsRequestBuilder instantiates a new EvaluateClassificationResultsRequestBuilder and sets the default values.
|
|
||||||
func NewItemInformationProtectionPolicyLabelsEvaluateClassificationResultsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemInformationProtectionPolicyLabelsEvaluateClassificationResultsRequestBuilder) {
|
|
||||||
urlParams := make(map[string]string)
|
|
||||||
urlParams["request-raw-url"] = rawUrl
|
|
||||||
return NewItemInformationProtectionPolicyLabelsEvaluateClassificationResultsRequestBuilderInternal(urlParams, requestAdapter)
|
|
||||||
}
|
|
||||||
// CreatePostRequestInformation using classification results, compute the information protection label that should be applied and return the set of actions that must be taken to correctly label the information. This API is useful when a label should be set automatically based on classification of the file contents, rather than labeled directly by a user or service. To evaluate based on classification results, provide contentInfo, which includes existing content metadata key/value pairs, and classification results. The API returns an informationProtectionAction that contains one of more of the following:
|
|
||||||
func (m *ItemInformationProtectionPolicyLabelsEvaluateClassificationResultsRequestBuilder) CreatePostRequestInformation(ctx context.Context, body ItemInformationProtectionPolicyLabelsEvaluateClassificationResultsPostRequestBodyable, requestConfiguration *ItemInformationProtectionPolicyLabelsEvaluateClassificationResultsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
|
|
||||||
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation()
|
|
||||||
requestInfo.UrlTemplate = m.urlTemplate
|
|
||||||
requestInfo.PathParameters = m.pathParameters
|
|
||||||
requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST
|
|
||||||
requestInfo.Headers.Add("Accept", "application/json")
|
|
||||||
requestInfo.SetContentFromParsable(ctx, m.requestAdapter, "application/json", body)
|
|
||||||
if requestConfiguration != nil {
|
|
||||||
requestInfo.Headers.AddAll(requestConfiguration.Headers)
|
|
||||||
requestInfo.AddRequestOptions(requestConfiguration.Options)
|
|
||||||
}
|
|
||||||
return requestInfo, nil
|
|
||||||
}
|
|
||||||
// Post using classification results, compute the information protection label that should be applied and return the set of actions that must be taken to correctly label the information. This API is useful when a label should be set automatically based on classification of the file contents, rather than labeled directly by a user or service. To evaluate based on classification results, provide contentInfo, which includes existing content metadata key/value pairs, and classification results. The API returns an informationProtectionAction that contains one of more of the following:
|
|
||||||
// [Find more info here]
|
|
||||||
//
|
|
||||||
// [Find more info here]: https://docs.microsoft.com/graph/api/informationprotectionlabel-evaluateclassificationresults?view=graph-rest-1.0
|
|
||||||
func (m *ItemInformationProtectionPolicyLabelsEvaluateClassificationResultsRequestBuilder) Post(ctx context.Context, body ItemInformationProtectionPolicyLabelsEvaluateClassificationResultsPostRequestBodyable, requestConfiguration *ItemInformationProtectionPolicyLabelsEvaluateClassificationResultsRequestBuilderPostRequestConfiguration)(ItemInformationProtectionPolicyLabelsEvaluateClassificationResultsResponseable, error) {
|
|
||||||
requestInfo, err := m.CreatePostRequestInformation(ctx, body, requestConfiguration);
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
|
|
||||||
"4XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
"5XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
}
|
|
||||||
res, err := m.requestAdapter.SendAsync(ctx, requestInfo, CreateItemInformationProtectionPolicyLabelsEvaluateClassificationResultsResponseFromDiscriminatorValue, errorMapping)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if res == nil {
|
|
||||||
return nil, nil
|
|
||||||
}
|
|
||||||
return res.(ItemInformationProtectionPolicyLabelsEvaluateClassificationResultsResponseable), nil
|
|
||||||
}
|
|
||||||
@ -1,69 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemInformationProtectionPolicyLabelsEvaluateClassificationResultsResponse provides operations to call the evaluateClassificationResults method.
|
|
||||||
type ItemInformationProtectionPolicyLabelsEvaluateClassificationResultsResponse struct {
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.BaseCollectionPaginationCountResponse
|
|
||||||
// The value property
|
|
||||||
value []ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.InformationProtectionActionable
|
|
||||||
}
|
|
||||||
// NewItemInformationProtectionPolicyLabelsEvaluateClassificationResultsResponse instantiates a new ItemInformationProtectionPolicyLabelsEvaluateClassificationResultsResponse and sets the default values.
|
|
||||||
func NewItemInformationProtectionPolicyLabelsEvaluateClassificationResultsResponse()(*ItemInformationProtectionPolicyLabelsEvaluateClassificationResultsResponse) {
|
|
||||||
m := &ItemInformationProtectionPolicyLabelsEvaluateClassificationResultsResponse{
|
|
||||||
BaseCollectionPaginationCountResponse: *ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.NewBaseCollectionPaginationCountResponse(),
|
|
||||||
}
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// CreateItemInformationProtectionPolicyLabelsEvaluateClassificationResultsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
|
||||||
func CreateItemInformationProtectionPolicyLabelsEvaluateClassificationResultsResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
|
||||||
return NewItemInformationProtectionPolicyLabelsEvaluateClassificationResultsResponse(), nil
|
|
||||||
}
|
|
||||||
// GetFieldDeserializers the deserialization information for the current model
|
|
||||||
func (m *ItemInformationProtectionPolicyLabelsEvaluateClassificationResultsResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
|
||||||
res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers()
|
|
||||||
res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
|
||||||
val, err := n.GetCollectionOfObjectValues(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.CreateInformationProtectionActionFromDiscriminatorValue)
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if val != nil {
|
|
||||||
res := make([]ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.InformationProtectionActionable, len(val))
|
|
||||||
for i, v := range val {
|
|
||||||
res[i] = v.(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.InformationProtectionActionable)
|
|
||||||
}
|
|
||||||
m.SetValue(res)
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
return res
|
|
||||||
}
|
|
||||||
// GetValue gets the value property value. The value property
|
|
||||||
func (m *ItemInformationProtectionPolicyLabelsEvaluateClassificationResultsResponse) GetValue()([]ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.InformationProtectionActionable) {
|
|
||||||
return m.value
|
|
||||||
}
|
|
||||||
// Serialize serializes information the current object
|
|
||||||
func (m *ItemInformationProtectionPolicyLabelsEvaluateClassificationResultsResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
|
||||||
err := m.BaseCollectionPaginationCountResponse.Serialize(writer)
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if m.GetValue() != nil {
|
|
||||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue()))
|
|
||||||
for i, v := range m.GetValue() {
|
|
||||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
|
||||||
}
|
|
||||||
err = writer.WriteCollectionOfObjectValues("value", cast)
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
// SetValue sets the value property value. The value property
|
|
||||||
func (m *ItemInformationProtectionPolicyLabelsEvaluateClassificationResultsResponse) SetValue(value []ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.InformationProtectionActionable)() {
|
|
||||||
m.value = value
|
|
||||||
}
|
|
||||||
@ -1,14 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemInformationProtectionPolicyLabelsEvaluateClassificationResultsResponseable
|
|
||||||
type ItemInformationProtectionPolicyLabelsEvaluateClassificationResultsResponseable interface {
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.BaseCollectionPaginationCountResponseable
|
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
|
||||||
GetValue()([]ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.InformationProtectionActionable)
|
|
||||||
SetValue(value []ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.InformationProtectionActionable)()
|
|
||||||
}
|
|
||||||
@ -1,98 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemInformationProtectionPolicyLabelsEvaluateRemovalPostRequestBody provides operations to call the evaluateRemoval method.
|
|
||||||
type ItemInformationProtectionPolicyLabelsEvaluateRemovalPostRequestBody struct {
|
|
||||||
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
||||||
additionalData map[string]interface{}
|
|
||||||
// The contentInfo property
|
|
||||||
contentInfo ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ContentInfoable
|
|
||||||
// The downgradeJustification property
|
|
||||||
downgradeJustification ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.DowngradeJustificationable
|
|
||||||
}
|
|
||||||
// NewItemInformationProtectionPolicyLabelsEvaluateRemovalPostRequestBody instantiates a new ItemInformationProtectionPolicyLabelsEvaluateRemovalPostRequestBody and sets the default values.
|
|
||||||
func NewItemInformationProtectionPolicyLabelsEvaluateRemovalPostRequestBody()(*ItemInformationProtectionPolicyLabelsEvaluateRemovalPostRequestBody) {
|
|
||||||
m := &ItemInformationProtectionPolicyLabelsEvaluateRemovalPostRequestBody{
|
|
||||||
}
|
|
||||||
m.SetAdditionalData(make(map[string]interface{}));
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// CreateItemInformationProtectionPolicyLabelsEvaluateRemovalPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
|
||||||
func CreateItemInformationProtectionPolicyLabelsEvaluateRemovalPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
|
||||||
return NewItemInformationProtectionPolicyLabelsEvaluateRemovalPostRequestBody(), nil
|
|
||||||
}
|
|
||||||
// GetAdditionalData gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
||||||
func (m *ItemInformationProtectionPolicyLabelsEvaluateRemovalPostRequestBody) GetAdditionalData()(map[string]interface{}) {
|
|
||||||
return m.additionalData
|
|
||||||
}
|
|
||||||
// GetContentInfo gets the contentInfo property value. The contentInfo property
|
|
||||||
func (m *ItemInformationProtectionPolicyLabelsEvaluateRemovalPostRequestBody) GetContentInfo()(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ContentInfoable) {
|
|
||||||
return m.contentInfo
|
|
||||||
}
|
|
||||||
// GetDowngradeJustification gets the downgradeJustification property value. The downgradeJustification property
|
|
||||||
func (m *ItemInformationProtectionPolicyLabelsEvaluateRemovalPostRequestBody) GetDowngradeJustification()(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.DowngradeJustificationable) {
|
|
||||||
return m.downgradeJustification
|
|
||||||
}
|
|
||||||
// GetFieldDeserializers the deserialization information for the current model
|
|
||||||
func (m *ItemInformationProtectionPolicyLabelsEvaluateRemovalPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
|
||||||
res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
|
|
||||||
res["contentInfo"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
|
||||||
val, err := n.GetObjectValue(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.CreateContentInfoFromDiscriminatorValue)
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if val != nil {
|
|
||||||
m.SetContentInfo(val.(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ContentInfoable))
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
res["downgradeJustification"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
|
||||||
val, err := n.GetObjectValue(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.CreateDowngradeJustificationFromDiscriminatorValue)
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if val != nil {
|
|
||||||
m.SetDowngradeJustification(val.(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.DowngradeJustificationable))
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
return res
|
|
||||||
}
|
|
||||||
// Serialize serializes information the current object
|
|
||||||
func (m *ItemInformationProtectionPolicyLabelsEvaluateRemovalPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
|
||||||
{
|
|
||||||
err := writer.WriteObjectValue("contentInfo", m.GetContentInfo())
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
{
|
|
||||||
err := writer.WriteObjectValue("downgradeJustification", m.GetDowngradeJustification())
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
{
|
|
||||||
err := writer.WriteAdditionalData(m.GetAdditionalData())
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
||||||
func (m *ItemInformationProtectionPolicyLabelsEvaluateRemovalPostRequestBody) SetAdditionalData(value map[string]interface{})() {
|
|
||||||
m.additionalData = value
|
|
||||||
}
|
|
||||||
// SetContentInfo sets the contentInfo property value. The contentInfo property
|
|
||||||
func (m *ItemInformationProtectionPolicyLabelsEvaluateRemovalPostRequestBody) SetContentInfo(value ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ContentInfoable)() {
|
|
||||||
m.contentInfo = value
|
|
||||||
}
|
|
||||||
// SetDowngradeJustification sets the downgradeJustification property value. The downgradeJustification property
|
|
||||||
func (m *ItemInformationProtectionPolicyLabelsEvaluateRemovalPostRequestBody) SetDowngradeJustification(value ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.DowngradeJustificationable)() {
|
|
||||||
m.downgradeJustification = value
|
|
||||||
}
|
|
||||||
@ -1,16 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemInformationProtectionPolicyLabelsEvaluateRemovalPostRequestBodyable
|
|
||||||
type ItemInformationProtectionPolicyLabelsEvaluateRemovalPostRequestBodyable interface {
|
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
|
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
|
||||||
GetContentInfo()(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ContentInfoable)
|
|
||||||
GetDowngradeJustification()(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.DowngradeJustificationable)
|
|
||||||
SetContentInfo(value ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ContentInfoable)()
|
|
||||||
SetDowngradeJustification(value ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.DowngradeJustificationable)()
|
|
||||||
}
|
|
||||||
@ -1,79 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
|
|
||||||
i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models/odataerrors"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemInformationProtectionPolicyLabelsEvaluateRemovalRequestBuilder provides operations to call the evaluateRemoval method.
|
|
||||||
type ItemInformationProtectionPolicyLabelsEvaluateRemovalRequestBuilder struct {
|
|
||||||
// Path parameters for the request
|
|
||||||
pathParameters map[string]string
|
|
||||||
// The request adapter to use to execute the requests.
|
|
||||||
requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter
|
|
||||||
// Url template to use to build the URL for the current request builder
|
|
||||||
urlTemplate string
|
|
||||||
}
|
|
||||||
// ItemInformationProtectionPolicyLabelsEvaluateRemovalRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
|
|
||||||
type ItemInformationProtectionPolicyLabelsEvaluateRemovalRequestBuilderPostRequestConfiguration struct {
|
|
||||||
// Request headers
|
|
||||||
Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
|
|
||||||
// Request options
|
|
||||||
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
|
|
||||||
}
|
|
||||||
// NewItemInformationProtectionPolicyLabelsEvaluateRemovalRequestBuilderInternal instantiates a new EvaluateRemovalRequestBuilder and sets the default values.
|
|
||||||
func NewItemInformationProtectionPolicyLabelsEvaluateRemovalRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemInformationProtectionPolicyLabelsEvaluateRemovalRequestBuilder) {
|
|
||||||
m := &ItemInformationProtectionPolicyLabelsEvaluateRemovalRequestBuilder{
|
|
||||||
}
|
|
||||||
m.urlTemplate = "{+baseurl}/sites/{site%2Did}/informationProtection/policy/labels/microsoft.graph.evaluateRemoval";
|
|
||||||
urlTplParams := make(map[string]string)
|
|
||||||
for idx, item := range pathParameters {
|
|
||||||
urlTplParams[idx] = item
|
|
||||||
}
|
|
||||||
m.pathParameters = urlTplParams;
|
|
||||||
m.requestAdapter = requestAdapter;
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// NewItemInformationProtectionPolicyLabelsEvaluateRemovalRequestBuilder instantiates a new EvaluateRemovalRequestBuilder and sets the default values.
|
|
||||||
func NewItemInformationProtectionPolicyLabelsEvaluateRemovalRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemInformationProtectionPolicyLabelsEvaluateRemovalRequestBuilder) {
|
|
||||||
urlParams := make(map[string]string)
|
|
||||||
urlParams["request-raw-url"] = rawUrl
|
|
||||||
return NewItemInformationProtectionPolicyLabelsEvaluateRemovalRequestBuilderInternal(urlParams, requestAdapter)
|
|
||||||
}
|
|
||||||
// CreatePostRequestInformation indicate to the consuming application what actions it should take to remove the label information. Given contentInfo as an input, which includes existing content metadata key/value pairs, the API returns an informationProtectionAction that contains some combination of one of more of the following:
|
|
||||||
func (m *ItemInformationProtectionPolicyLabelsEvaluateRemovalRequestBuilder) CreatePostRequestInformation(ctx context.Context, body ItemInformationProtectionPolicyLabelsEvaluateRemovalPostRequestBodyable, requestConfiguration *ItemInformationProtectionPolicyLabelsEvaluateRemovalRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
|
|
||||||
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation()
|
|
||||||
requestInfo.UrlTemplate = m.urlTemplate
|
|
||||||
requestInfo.PathParameters = m.pathParameters
|
|
||||||
requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST
|
|
||||||
requestInfo.Headers.Add("Accept", "application/json")
|
|
||||||
requestInfo.SetContentFromParsable(ctx, m.requestAdapter, "application/json", body)
|
|
||||||
if requestConfiguration != nil {
|
|
||||||
requestInfo.Headers.AddAll(requestConfiguration.Headers)
|
|
||||||
requestInfo.AddRequestOptions(requestConfiguration.Options)
|
|
||||||
}
|
|
||||||
return requestInfo, nil
|
|
||||||
}
|
|
||||||
// Post indicate to the consuming application what actions it should take to remove the label information. Given contentInfo as an input, which includes existing content metadata key/value pairs, the API returns an informationProtectionAction that contains some combination of one of more of the following:
|
|
||||||
// [Find more info here]
|
|
||||||
//
|
|
||||||
// [Find more info here]: https://docs.microsoft.com/graph/api/informationprotectionlabel-evaluateremoval?view=graph-rest-1.0
|
|
||||||
func (m *ItemInformationProtectionPolicyLabelsEvaluateRemovalRequestBuilder) Post(ctx context.Context, body ItemInformationProtectionPolicyLabelsEvaluateRemovalPostRequestBodyable, requestConfiguration *ItemInformationProtectionPolicyLabelsEvaluateRemovalRequestBuilderPostRequestConfiguration)(ItemInformationProtectionPolicyLabelsEvaluateRemovalResponseable, error) {
|
|
||||||
requestInfo, err := m.CreatePostRequestInformation(ctx, body, requestConfiguration);
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
|
|
||||||
"4XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
"5XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
}
|
|
||||||
res, err := m.requestAdapter.SendAsync(ctx, requestInfo, CreateItemInformationProtectionPolicyLabelsEvaluateRemovalResponseFromDiscriminatorValue, errorMapping)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if res == nil {
|
|
||||||
return nil, nil
|
|
||||||
}
|
|
||||||
return res.(ItemInformationProtectionPolicyLabelsEvaluateRemovalResponseable), nil
|
|
||||||
}
|
|
||||||
@ -1,69 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemInformationProtectionPolicyLabelsEvaluateRemovalResponse provides operations to call the evaluateRemoval method.
|
|
||||||
type ItemInformationProtectionPolicyLabelsEvaluateRemovalResponse struct {
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.BaseCollectionPaginationCountResponse
|
|
||||||
// The value property
|
|
||||||
value []ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.InformationProtectionActionable
|
|
||||||
}
|
|
||||||
// NewItemInformationProtectionPolicyLabelsEvaluateRemovalResponse instantiates a new ItemInformationProtectionPolicyLabelsEvaluateRemovalResponse and sets the default values.
|
|
||||||
func NewItemInformationProtectionPolicyLabelsEvaluateRemovalResponse()(*ItemInformationProtectionPolicyLabelsEvaluateRemovalResponse) {
|
|
||||||
m := &ItemInformationProtectionPolicyLabelsEvaluateRemovalResponse{
|
|
||||||
BaseCollectionPaginationCountResponse: *ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.NewBaseCollectionPaginationCountResponse(),
|
|
||||||
}
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// CreateItemInformationProtectionPolicyLabelsEvaluateRemovalResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
|
||||||
func CreateItemInformationProtectionPolicyLabelsEvaluateRemovalResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
|
||||||
return NewItemInformationProtectionPolicyLabelsEvaluateRemovalResponse(), nil
|
|
||||||
}
|
|
||||||
// GetFieldDeserializers the deserialization information for the current model
|
|
||||||
func (m *ItemInformationProtectionPolicyLabelsEvaluateRemovalResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
|
||||||
res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers()
|
|
||||||
res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
|
||||||
val, err := n.GetCollectionOfObjectValues(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.CreateInformationProtectionActionFromDiscriminatorValue)
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if val != nil {
|
|
||||||
res := make([]ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.InformationProtectionActionable, len(val))
|
|
||||||
for i, v := range val {
|
|
||||||
res[i] = v.(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.InformationProtectionActionable)
|
|
||||||
}
|
|
||||||
m.SetValue(res)
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
return res
|
|
||||||
}
|
|
||||||
// GetValue gets the value property value. The value property
|
|
||||||
func (m *ItemInformationProtectionPolicyLabelsEvaluateRemovalResponse) GetValue()([]ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.InformationProtectionActionable) {
|
|
||||||
return m.value
|
|
||||||
}
|
|
||||||
// Serialize serializes information the current object
|
|
||||||
func (m *ItemInformationProtectionPolicyLabelsEvaluateRemovalResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
|
||||||
err := m.BaseCollectionPaginationCountResponse.Serialize(writer)
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if m.GetValue() != nil {
|
|
||||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue()))
|
|
||||||
for i, v := range m.GetValue() {
|
|
||||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
|
||||||
}
|
|
||||||
err = writer.WriteCollectionOfObjectValues("value", cast)
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
// SetValue sets the value property value. The value property
|
|
||||||
func (m *ItemInformationProtectionPolicyLabelsEvaluateRemovalResponse) SetValue(value []ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.InformationProtectionActionable)() {
|
|
||||||
m.value = value
|
|
||||||
}
|
|
||||||
@ -1,14 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemInformationProtectionPolicyLabelsEvaluateRemovalResponseable
|
|
||||||
type ItemInformationProtectionPolicyLabelsEvaluateRemovalResponseable interface {
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.BaseCollectionPaginationCountResponseable
|
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
|
||||||
GetValue()([]ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.InformationProtectionActionable)
|
|
||||||
SetValue(value []ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.InformationProtectionActionable)()
|
|
||||||
}
|
|
||||||
@ -1,72 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemInformationProtectionPolicyLabelsExtractLabelPostRequestBody provides operations to call the extractLabel method.
|
|
||||||
type ItemInformationProtectionPolicyLabelsExtractLabelPostRequestBody struct {
|
|
||||||
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
||||||
additionalData map[string]interface{}
|
|
||||||
// The contentInfo property
|
|
||||||
contentInfo ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ContentInfoable
|
|
||||||
}
|
|
||||||
// NewItemInformationProtectionPolicyLabelsExtractLabelPostRequestBody instantiates a new ItemInformationProtectionPolicyLabelsExtractLabelPostRequestBody and sets the default values.
|
|
||||||
func NewItemInformationProtectionPolicyLabelsExtractLabelPostRequestBody()(*ItemInformationProtectionPolicyLabelsExtractLabelPostRequestBody) {
|
|
||||||
m := &ItemInformationProtectionPolicyLabelsExtractLabelPostRequestBody{
|
|
||||||
}
|
|
||||||
m.SetAdditionalData(make(map[string]interface{}));
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// CreateItemInformationProtectionPolicyLabelsExtractLabelPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
|
||||||
func CreateItemInformationProtectionPolicyLabelsExtractLabelPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
|
||||||
return NewItemInformationProtectionPolicyLabelsExtractLabelPostRequestBody(), nil
|
|
||||||
}
|
|
||||||
// GetAdditionalData gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
||||||
func (m *ItemInformationProtectionPolicyLabelsExtractLabelPostRequestBody) GetAdditionalData()(map[string]interface{}) {
|
|
||||||
return m.additionalData
|
|
||||||
}
|
|
||||||
// GetContentInfo gets the contentInfo property value. The contentInfo property
|
|
||||||
func (m *ItemInformationProtectionPolicyLabelsExtractLabelPostRequestBody) GetContentInfo()(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ContentInfoable) {
|
|
||||||
return m.contentInfo
|
|
||||||
}
|
|
||||||
// GetFieldDeserializers the deserialization information for the current model
|
|
||||||
func (m *ItemInformationProtectionPolicyLabelsExtractLabelPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
|
||||||
res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
|
|
||||||
res["contentInfo"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
|
||||||
val, err := n.GetObjectValue(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.CreateContentInfoFromDiscriminatorValue)
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if val != nil {
|
|
||||||
m.SetContentInfo(val.(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ContentInfoable))
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
return res
|
|
||||||
}
|
|
||||||
// Serialize serializes information the current object
|
|
||||||
func (m *ItemInformationProtectionPolicyLabelsExtractLabelPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
|
||||||
{
|
|
||||||
err := writer.WriteObjectValue("contentInfo", m.GetContentInfo())
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
{
|
|
||||||
err := writer.WriteAdditionalData(m.GetAdditionalData())
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
||||||
func (m *ItemInformationProtectionPolicyLabelsExtractLabelPostRequestBody) SetAdditionalData(value map[string]interface{})() {
|
|
||||||
m.additionalData = value
|
|
||||||
}
|
|
||||||
// SetContentInfo sets the contentInfo property value. The contentInfo property
|
|
||||||
func (m *ItemInformationProtectionPolicyLabelsExtractLabelPostRequestBody) SetContentInfo(value ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ContentInfoable)() {
|
|
||||||
m.contentInfo = value
|
|
||||||
}
|
|
||||||
@ -1,14 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemInformationProtectionPolicyLabelsExtractLabelPostRequestBodyable
|
|
||||||
type ItemInformationProtectionPolicyLabelsExtractLabelPostRequestBodyable interface {
|
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
|
|
||||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
|
||||||
GetContentInfo()(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ContentInfoable)
|
|
||||||
SetContentInfo(value ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.ContentInfoable)()
|
|
||||||
}
|
|
||||||
@ -1,80 +0,0 @@
|
|||||||
package sites
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
|
|
||||||
ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models"
|
|
||||||
i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/models/odataerrors"
|
|
||||||
)
|
|
||||||
|
|
||||||
// ItemInformationProtectionPolicyLabelsExtractLabelRequestBuilder provides operations to call the extractLabel method.
|
|
||||||
type ItemInformationProtectionPolicyLabelsExtractLabelRequestBuilder struct {
|
|
||||||
// Path parameters for the request
|
|
||||||
pathParameters map[string]string
|
|
||||||
// The request adapter to use to execute the requests.
|
|
||||||
requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter
|
|
||||||
// Url template to use to build the URL for the current request builder
|
|
||||||
urlTemplate string
|
|
||||||
}
|
|
||||||
// ItemInformationProtectionPolicyLabelsExtractLabelRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
|
|
||||||
type ItemInformationProtectionPolicyLabelsExtractLabelRequestBuilderPostRequestConfiguration struct {
|
|
||||||
// Request headers
|
|
||||||
Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
|
|
||||||
// Request options
|
|
||||||
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
|
|
||||||
}
|
|
||||||
// NewItemInformationProtectionPolicyLabelsExtractLabelRequestBuilderInternal instantiates a new ExtractLabelRequestBuilder and sets the default values.
|
|
||||||
func NewItemInformationProtectionPolicyLabelsExtractLabelRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemInformationProtectionPolicyLabelsExtractLabelRequestBuilder) {
|
|
||||||
m := &ItemInformationProtectionPolicyLabelsExtractLabelRequestBuilder{
|
|
||||||
}
|
|
||||||
m.urlTemplate = "{+baseurl}/sites/{site%2Did}/informationProtection/policy/labels/microsoft.graph.extractLabel";
|
|
||||||
urlTplParams := make(map[string]string)
|
|
||||||
for idx, item := range pathParameters {
|
|
||||||
urlTplParams[idx] = item
|
|
||||||
}
|
|
||||||
m.pathParameters = urlTplParams;
|
|
||||||
m.requestAdapter = requestAdapter;
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
// NewItemInformationProtectionPolicyLabelsExtractLabelRequestBuilder instantiates a new ExtractLabelRequestBuilder and sets the default values.
|
|
||||||
func NewItemInformationProtectionPolicyLabelsExtractLabelRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemInformationProtectionPolicyLabelsExtractLabelRequestBuilder) {
|
|
||||||
urlParams := make(map[string]string)
|
|
||||||
urlParams["request-raw-url"] = rawUrl
|
|
||||||
return NewItemInformationProtectionPolicyLabelsExtractLabelRequestBuilderInternal(urlParams, requestAdapter)
|
|
||||||
}
|
|
||||||
// CreatePostRequestInformation using the metadata that exists on an already-labeled piece of information, resolve the metadata to a specific sensitivity label. The contentInfo input is resolved to informationProtectionContentLabel.
|
|
||||||
func (m *ItemInformationProtectionPolicyLabelsExtractLabelRequestBuilder) CreatePostRequestInformation(ctx context.Context, body ItemInformationProtectionPolicyLabelsExtractLabelPostRequestBodyable, requestConfiguration *ItemInformationProtectionPolicyLabelsExtractLabelRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
|
|
||||||
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation()
|
|
||||||
requestInfo.UrlTemplate = m.urlTemplate
|
|
||||||
requestInfo.PathParameters = m.pathParameters
|
|
||||||
requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST
|
|
||||||
requestInfo.Headers.Add("Accept", "application/json")
|
|
||||||
requestInfo.SetContentFromParsable(ctx, m.requestAdapter, "application/json", body)
|
|
||||||
if requestConfiguration != nil {
|
|
||||||
requestInfo.Headers.AddAll(requestConfiguration.Headers)
|
|
||||||
requestInfo.AddRequestOptions(requestConfiguration.Options)
|
|
||||||
}
|
|
||||||
return requestInfo, nil
|
|
||||||
}
|
|
||||||
// Post using the metadata that exists on an already-labeled piece of information, resolve the metadata to a specific sensitivity label. The contentInfo input is resolved to informationProtectionContentLabel.
|
|
||||||
// [Find more info here]
|
|
||||||
//
|
|
||||||
// [Find more info here]: https://docs.microsoft.com/graph/api/informationprotectionlabel-extractlabel?view=graph-rest-1.0
|
|
||||||
func (m *ItemInformationProtectionPolicyLabelsExtractLabelRequestBuilder) Post(ctx context.Context, body ItemInformationProtectionPolicyLabelsExtractLabelPostRequestBodyable, requestConfiguration *ItemInformationProtectionPolicyLabelsExtractLabelRequestBuilderPostRequestConfiguration)(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.InformationProtectionContentLabelable, error) {
|
|
||||||
requestInfo, err := m.CreatePostRequestInformation(ctx, body, requestConfiguration);
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
|
|
||||||
"4XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
"5XX": i7ad325c11fbf3db4d761c429267362d8b24daa1eda0081f914ebc3cdc85181a0.CreateODataErrorFromDiscriminatorValue,
|
|
||||||
}
|
|
||||||
res, err := m.requestAdapter.SendAsync(ctx, requestInfo, ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.CreateInformationProtectionContentLabelFromDiscriminatorValue, errorMapping)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if res == nil {
|
|
||||||
return nil, nil
|
|
||||||
}
|
|
||||||
return res.(ifda19816f54f079134d70c11e75d6b26799300cf72079e282f1d3bb9a6750354.InformationProtectionContentLabelable), nil
|
|
||||||
}
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user