Updates to /graph/betasdk/beta_client.go

Removes the admin and groups properties for minimal beta connector.
This commit is contained in:
Danny Adams 2023-01-25 14:12:34 -05:00
parent d2fb427146
commit 740c8dc3e2

View File

@ -7,8 +7,6 @@ import (
i7294a22093d408fdca300f11b81a887d89c47b764af06c8b803e2323973fdb83 "github.com/microsoft/kiota-serialization-text-go"
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
i1a3c1a5501c5e41b7fd169f2d4c768dce9b096ac28fb5431bf02afcc57295411 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/sites"
i2eb6d683e5428ebf135f99959034915f5e407cd2f29750b77adb5df72d90e064 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/groups"
ibf5c397449f66e6fa06ac9bc6395bf62fb3c888bc28f9cd7cc6bd015dffe3817 "github.com/alcionai/corso/src/internal/connector/graph/betasdk/admin"
)
// BetaClient the main entry point of the SDK, exposes the configuration and the fluent API.
@ -20,10 +18,6 @@ type BetaClient struct {
// Url template to use to build the URL for the current request builder
urlTemplate string
}
// Admin the admin property
func (m *BetaClient) Admin()(*ibf5c397449f66e6fa06ac9bc6395bf62fb3c888bc28f9cd7cc6bd015dffe3817.AdminRequestBuilder) {
return ibf5c397449f66e6fa06ac9bc6395bf62fb3c888bc28f9cd7cc6bd015dffe3817.NewAdminRequestBuilderInternal(m.pathParameters, m.requestAdapter);
}
// NewBetaClient instantiates a new BetaClient and sets the default values.
func NewBetaClient(requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*BetaClient) {
m := &BetaClient{
@ -42,21 +36,6 @@ func NewBetaClient(requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa5290
}
return m
}
// Groups the groups property
func (m *BetaClient) Groups()(*i2eb6d683e5428ebf135f99959034915f5e407cd2f29750b77adb5df72d90e064.GroupsRequestBuilder) {
return i2eb6d683e5428ebf135f99959034915f5e407cd2f29750b77adb5df72d90e064.NewGroupsRequestBuilderInternal(m.pathParameters, m.requestAdapter);
}
// GroupsById gets an item from the github.com/alcionai/corso/src/internal/connector/graph/betasdk.groups.item collection
func (m *BetaClient) GroupsById(id string)(*i2eb6d683e5428ebf135f99959034915f5e407cd2f29750b77adb5df72d90e064.GroupItemRequestBuilder) {
urlTplParams := make(map[string]string)
for idx, item := range m.pathParameters {
urlTplParams[idx] = item
}
if id != "" {
urlTplParams["group%2Did"] = id
}
return i2eb6d683e5428ebf135f99959034915f5e407cd2f29750b77adb5df72d90e064.NewGroupItemRequestBuilderInternal(urlTplParams, m.requestAdapter);
}
// Sites the sites property
func (m *BetaClient) Sites()(*i1a3c1a5501c5e41b7fd169f2d4c768dce9b096ac28fb5431bf02afcc57295411.SitesRequestBuilder) {
return i1a3c1a5501c5e41b7fd169f2d4c768dce9b096ac28fb5431bf02afcc57295411.NewSitesRequestBuilderInternal(m.pathParameters, m.requestAdapter);