Merge branch 'beta-library-service' into backup-page-flow

This commit is contained in:
Danny 2023-01-27 11:02:10 -05:00 committed by GitHub
commit afe8f04a45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 30 additions and 7 deletions

View File

@ -15,15 +15,17 @@ import (
// Details on how the Code was generated is present in `kioter-lock.json`. // Details on how the Code was generated is present in `kioter-lock.json`.
// NOTE: kiota gen file is altered to indicate what files are included in the created // NOTE: kiota gen file is altered to indicate what files are included in the created
// //
// Beta files use an adapter that allows for ASync() request. This feature is disabled in main. Generic Kiota adapters do not support. // Changes to Sites Directory:
// For the client, only calls that begin as client.SitesBy(siteID).Pages() have an endpoint. // Access files send requests with an adapter's with ASync() support.
// This feature is not enabled in v1.0. Manually changed in remaining files.
// Additionally, only calls that begin as client.SitesBy(siteID).Pages() have an endpoint.
// //
// The use case specific to Pages(). All other requests should be routed to the /internal/connector/graph.Servicer // The use case specific to Pages(). All other requests should be routed to the /internal/connector/graph.Servicer
//
// Supported Pages models are located within the models subdirectory
// Supported Call source are located within the sites subdirectory
// Specifics on `betaClient.SitesById(siteID).Pages` are located: sites/site_item_request_builder.go // Specifics on `betaClient.SitesById(siteID).Pages` are located: sites/site_item_request_builder.go
// //
// Required model files are identified as `modelFiles` in kiota-lock.json. Directory -> betasdk/models
// Required access files are identified as `sitesFiles` in kiota-lock.json. Directory -> betasdk/sites
//
// BetaClient minimal msgraph-beta-sdk-go for connecting to msgraph-beta-sdk-go // BetaClient minimal msgraph-beta-sdk-go for connecting to msgraph-beta-sdk-go
// for retrieving `SharePoint.Pages`. Code is generated from kiota.dev. // for retrieving `SharePoint.Pages`. Code is generated from kiota.dev.
// requestAdapter is registered with the following the serializers: // requestAdapter is registered with the following the serializers:

View File

@ -0,0 +1,20 @@
package betasdk
import (
msgraphsdk "github.com/microsoftgraph/msgraph-sdk-go"
)
// Service wraps BetaClient's functionality.
// Abstraction created to comply loosely with graph.Servicer
// methods for ease of switching between v1.0 and beta connnectors
type Service struct {
client *BetaClient
}
func (s Service) Adapter() *msgraphsdk.GraphRequestAdapter {
return s.client.requestAdapter
}
func (s Service) Client() *BetaClient {
return s.client
}

View File

@ -4,6 +4,7 @@
"clientClassName": "BetaClient", "clientClassName": "BetaClient",
"clientNamespaceName": "github.com/alcionai/corso/src/internal/connector/graph/betasdk", "clientNamespaceName": "github.com/alcionai/corso/src/internal/connector/graph/betasdk",
"language": "Go", "language": "Go",
"betaVersion": "0.53.0",
"usesBackingStore": false, "usesBackingStore": false,
"includeAdditionalData": true, "includeAdditionalData": true,
"serializers": [ "serializers": [
@ -30,7 +31,7 @@
"**/groups/**", "**/groups/**",
"**/onenote/**" "**/onenote/**"
], ],
"Necessary Sites Files": [ "sitesFiles": [
"count_request_builder.go", "count_request_builder.go",
"item_pages_count_request_builder.go", "item_pages_count_request_builder.go",
"item_pages_item_canvas_layout_horizontal_sections_count_request_builder.go", "item_pages_item_canvas_layout_horizontal_sections_count_request_builder.go",
@ -65,7 +66,7 @@
"item_sites_site_item_request_builder.go", "item_sites_site_item_request_builder.go",
"site_item_request_builder.go" "site_item_request_builder.go"
], ],
"Necessary Model Files":[ "modelFiles":[
"base_item.go", "base_item.go",
"page_layout_type.go", "page_layout_type.go",
"standard_web_partable.go", "standard_web_partable.go",