mirror of
https://github.com/cwinfo/matterbridge.git
synced 2025-09-19 00:12:32 +00:00
Update vendor (#1228)
This commit is contained in:
60
vendor/github.com/yaegashi/msgraph.go/beta/ActionService.go
generated
vendored
60
vendor/github.com/yaegashi/msgraph.go/beta/ActionService.go
generated
vendored
@@ -1,4 +1,4 @@
|
||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
||||
// Code generated by msgraph.go/gen DO NOT EDIT.
|
||||
|
||||
package msgraph
|
||||
|
||||
@@ -81,9 +81,9 @@ func (r *ServicePrincipalAppRoleAssignedToCollectionRequest) Paging(ctx context.
|
||||
}
|
||||
var values []AppRoleAssignment
|
||||
for {
|
||||
defer res.Body.Close()
|
||||
if res.StatusCode != http.StatusOK {
|
||||
b, _ := ioutil.ReadAll(res.Body)
|
||||
res.Body.Close()
|
||||
errRes := &ErrorResponse{Response: res}
|
||||
err := jsonx.Unmarshal(b, errRes)
|
||||
if err != nil {
|
||||
@@ -96,6 +96,7 @@ func (r *ServicePrincipalAppRoleAssignedToCollectionRequest) Paging(ctx context.
|
||||
value []AppRoleAssignment
|
||||
)
|
||||
err := jsonx.NewDecoder(res.Body).Decode(&paging)
|
||||
res.Body.Close()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -183,9 +184,9 @@ func (r *ServicePrincipalAppRoleAssignmentsCollectionRequest) Paging(ctx context
|
||||
}
|
||||
var values []AppRoleAssignment
|
||||
for {
|
||||
defer res.Body.Close()
|
||||
if res.StatusCode != http.StatusOK {
|
||||
b, _ := ioutil.ReadAll(res.Body)
|
||||
res.Body.Close()
|
||||
errRes := &ErrorResponse{Response: res}
|
||||
err := jsonx.Unmarshal(b, errRes)
|
||||
if err != nil {
|
||||
@@ -198,6 +199,7 @@ func (r *ServicePrincipalAppRoleAssignmentsCollectionRequest) Paging(ctx context
|
||||
value []AppRoleAssignment
|
||||
)
|
||||
err := jsonx.NewDecoder(res.Body).Decode(&paging)
|
||||
res.Body.Close()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -285,9 +287,9 @@ func (r *ServicePrincipalCreatedObjectsCollectionRequest) Paging(ctx context.Con
|
||||
}
|
||||
var values []DirectoryObject
|
||||
for {
|
||||
defer res.Body.Close()
|
||||
if res.StatusCode != http.StatusOK {
|
||||
b, _ := ioutil.ReadAll(res.Body)
|
||||
res.Body.Close()
|
||||
errRes := &ErrorResponse{Response: res}
|
||||
err := jsonx.Unmarshal(b, errRes)
|
||||
if err != nil {
|
||||
@@ -300,6 +302,7 @@ func (r *ServicePrincipalCreatedObjectsCollectionRequest) Paging(ctx context.Con
|
||||
value []DirectoryObject
|
||||
)
|
||||
err := jsonx.NewDecoder(res.Body).Decode(&paging)
|
||||
res.Body.Close()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -387,9 +390,9 @@ func (r *ServicePrincipalLicenseDetailsCollectionRequest) Paging(ctx context.Con
|
||||
}
|
||||
var values []LicenseDetails
|
||||
for {
|
||||
defer res.Body.Close()
|
||||
if res.StatusCode != http.StatusOK {
|
||||
b, _ := ioutil.ReadAll(res.Body)
|
||||
res.Body.Close()
|
||||
errRes := &ErrorResponse{Response: res}
|
||||
err := jsonx.Unmarshal(b, errRes)
|
||||
if err != nil {
|
||||
@@ -402,6 +405,7 @@ func (r *ServicePrincipalLicenseDetailsCollectionRequest) Paging(ctx context.Con
|
||||
value []LicenseDetails
|
||||
)
|
||||
err := jsonx.NewDecoder(res.Body).Decode(&paging)
|
||||
res.Body.Close()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -489,9 +493,9 @@ func (r *ServicePrincipalMemberOfCollectionRequest) Paging(ctx context.Context,
|
||||
}
|
||||
var values []DirectoryObject
|
||||
for {
|
||||
defer res.Body.Close()
|
||||
if res.StatusCode != http.StatusOK {
|
||||
b, _ := ioutil.ReadAll(res.Body)
|
||||
res.Body.Close()
|
||||
errRes := &ErrorResponse{Response: res}
|
||||
err := jsonx.Unmarshal(b, errRes)
|
||||
if err != nil {
|
||||
@@ -504,6 +508,7 @@ func (r *ServicePrincipalMemberOfCollectionRequest) Paging(ctx context.Context,
|
||||
value []DirectoryObject
|
||||
)
|
||||
err := jsonx.NewDecoder(res.Body).Decode(&paging)
|
||||
res.Body.Close()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -549,35 +554,35 @@ func (r *ServicePrincipalMemberOfCollectionRequest) Add(ctx context.Context, req
|
||||
return
|
||||
}
|
||||
|
||||
// Oauth2PermissionGrants returns request builder for OAuth2PermissionGrant collection
|
||||
func (b *ServicePrincipalRequestBuilder) Oauth2PermissionGrants() *ServicePrincipalOauth2PermissionGrantsCollectionRequestBuilder {
|
||||
bb := &ServicePrincipalOauth2PermissionGrantsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
|
||||
// OAuth2PermissionGrants returns request builder for OAuth2PermissionGrant collection
|
||||
func (b *ServicePrincipalRequestBuilder) OAuth2PermissionGrants() *ServicePrincipalOAuth2PermissionGrantsCollectionRequestBuilder {
|
||||
bb := &ServicePrincipalOAuth2PermissionGrantsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
|
||||
bb.baseURL += "/oauth2PermissionGrants"
|
||||
return bb
|
||||
}
|
||||
|
||||
// ServicePrincipalOauth2PermissionGrantsCollectionRequestBuilder is request builder for OAuth2PermissionGrant collection
|
||||
type ServicePrincipalOauth2PermissionGrantsCollectionRequestBuilder struct{ BaseRequestBuilder }
|
||||
// ServicePrincipalOAuth2PermissionGrantsCollectionRequestBuilder is request builder for OAuth2PermissionGrant collection
|
||||
type ServicePrincipalOAuth2PermissionGrantsCollectionRequestBuilder struct{ BaseRequestBuilder }
|
||||
|
||||
// Request returns request for OAuth2PermissionGrant collection
|
||||
func (b *ServicePrincipalOauth2PermissionGrantsCollectionRequestBuilder) Request() *ServicePrincipalOauth2PermissionGrantsCollectionRequest {
|
||||
return &ServicePrincipalOauth2PermissionGrantsCollectionRequest{
|
||||
func (b *ServicePrincipalOAuth2PermissionGrantsCollectionRequestBuilder) Request() *ServicePrincipalOAuth2PermissionGrantsCollectionRequest {
|
||||
return &ServicePrincipalOAuth2PermissionGrantsCollectionRequest{
|
||||
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
|
||||
}
|
||||
}
|
||||
|
||||
// ID returns request builder for OAuth2PermissionGrant item
|
||||
func (b *ServicePrincipalOauth2PermissionGrantsCollectionRequestBuilder) ID(id string) *OAuth2PermissionGrantRequestBuilder {
|
||||
func (b *ServicePrincipalOAuth2PermissionGrantsCollectionRequestBuilder) ID(id string) *OAuth2PermissionGrantRequestBuilder {
|
||||
bb := &OAuth2PermissionGrantRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
|
||||
bb.baseURL += "/" + id
|
||||
return bb
|
||||
}
|
||||
|
||||
// ServicePrincipalOauth2PermissionGrantsCollectionRequest is request for OAuth2PermissionGrant collection
|
||||
type ServicePrincipalOauth2PermissionGrantsCollectionRequest struct{ BaseRequest }
|
||||
// ServicePrincipalOAuth2PermissionGrantsCollectionRequest is request for OAuth2PermissionGrant collection
|
||||
type ServicePrincipalOAuth2PermissionGrantsCollectionRequest struct{ BaseRequest }
|
||||
|
||||
// Paging perfoms paging operation for OAuth2PermissionGrant collection
|
||||
func (r *ServicePrincipalOauth2PermissionGrantsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]OAuth2PermissionGrant, error) {
|
||||
func (r *ServicePrincipalOAuth2PermissionGrantsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]OAuth2PermissionGrant, error) {
|
||||
req, err := r.NewJSONRequest(method, path, obj)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@@ -591,9 +596,9 @@ func (r *ServicePrincipalOauth2PermissionGrantsCollectionRequest) Paging(ctx con
|
||||
}
|
||||
var values []OAuth2PermissionGrant
|
||||
for {
|
||||
defer res.Body.Close()
|
||||
if res.StatusCode != http.StatusOK {
|
||||
b, _ := ioutil.ReadAll(res.Body)
|
||||
res.Body.Close()
|
||||
errRes := &ErrorResponse{Response: res}
|
||||
err := jsonx.Unmarshal(b, errRes)
|
||||
if err != nil {
|
||||
@@ -606,6 +611,7 @@ func (r *ServicePrincipalOauth2PermissionGrantsCollectionRequest) Paging(ctx con
|
||||
value []OAuth2PermissionGrant
|
||||
)
|
||||
err := jsonx.NewDecoder(res.Body).Decode(&paging)
|
||||
res.Body.Close()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -632,7 +638,7 @@ func (r *ServicePrincipalOauth2PermissionGrantsCollectionRequest) Paging(ctx con
|
||||
}
|
||||
|
||||
// GetN performs GET request for OAuth2PermissionGrant collection, max N pages
|
||||
func (r *ServicePrincipalOauth2PermissionGrantsCollectionRequest) GetN(ctx context.Context, n int) ([]OAuth2PermissionGrant, error) {
|
||||
func (r *ServicePrincipalOAuth2PermissionGrantsCollectionRequest) GetN(ctx context.Context, n int) ([]OAuth2PermissionGrant, error) {
|
||||
var query string
|
||||
if r.query != nil {
|
||||
query = "?" + r.query.Encode()
|
||||
@@ -641,12 +647,12 @@ func (r *ServicePrincipalOauth2PermissionGrantsCollectionRequest) GetN(ctx conte
|
||||
}
|
||||
|
||||
// Get performs GET request for OAuth2PermissionGrant collection
|
||||
func (r *ServicePrincipalOauth2PermissionGrantsCollectionRequest) Get(ctx context.Context) ([]OAuth2PermissionGrant, error) {
|
||||
func (r *ServicePrincipalOAuth2PermissionGrantsCollectionRequest) Get(ctx context.Context) ([]OAuth2PermissionGrant, error) {
|
||||
return r.GetN(ctx, 0)
|
||||
}
|
||||
|
||||
// Add performs POST request for OAuth2PermissionGrant collection
|
||||
func (r *ServicePrincipalOauth2PermissionGrantsCollectionRequest) Add(ctx context.Context, reqObj *OAuth2PermissionGrant) (resObj *OAuth2PermissionGrant, err error) {
|
||||
func (r *ServicePrincipalOAuth2PermissionGrantsCollectionRequest) Add(ctx context.Context, reqObj *OAuth2PermissionGrant) (resObj *OAuth2PermissionGrant, err error) {
|
||||
err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
|
||||
return
|
||||
}
|
||||
@@ -693,9 +699,9 @@ func (r *ServicePrincipalOwnedObjectsCollectionRequest) Paging(ctx context.Conte
|
||||
}
|
||||
var values []DirectoryObject
|
||||
for {
|
||||
defer res.Body.Close()
|
||||
if res.StatusCode != http.StatusOK {
|
||||
b, _ := ioutil.ReadAll(res.Body)
|
||||
res.Body.Close()
|
||||
errRes := &ErrorResponse{Response: res}
|
||||
err := jsonx.Unmarshal(b, errRes)
|
||||
if err != nil {
|
||||
@@ -708,6 +714,7 @@ func (r *ServicePrincipalOwnedObjectsCollectionRequest) Paging(ctx context.Conte
|
||||
value []DirectoryObject
|
||||
)
|
||||
err := jsonx.NewDecoder(res.Body).Decode(&paging)
|
||||
res.Body.Close()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -795,9 +802,9 @@ func (r *ServicePrincipalOwnersCollectionRequest) Paging(ctx context.Context, me
|
||||
}
|
||||
var values []DirectoryObject
|
||||
for {
|
||||
defer res.Body.Close()
|
||||
if res.StatusCode != http.StatusOK {
|
||||
b, _ := ioutil.ReadAll(res.Body)
|
||||
res.Body.Close()
|
||||
errRes := &ErrorResponse{Response: res}
|
||||
err := jsonx.Unmarshal(b, errRes)
|
||||
if err != nil {
|
||||
@@ -810,6 +817,7 @@ func (r *ServicePrincipalOwnersCollectionRequest) Paging(ctx context.Context, me
|
||||
value []DirectoryObject
|
||||
)
|
||||
err := jsonx.NewDecoder(res.Body).Decode(&paging)
|
||||
res.Body.Close()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -897,9 +905,9 @@ func (r *ServicePrincipalPoliciesCollectionRequest) Paging(ctx context.Context,
|
||||
}
|
||||
var values []DirectoryObject
|
||||
for {
|
||||
defer res.Body.Close()
|
||||
if res.StatusCode != http.StatusOK {
|
||||
b, _ := ioutil.ReadAll(res.Body)
|
||||
res.Body.Close()
|
||||
errRes := &ErrorResponse{Response: res}
|
||||
err := jsonx.Unmarshal(b, errRes)
|
||||
if err != nil {
|
||||
@@ -912,6 +920,7 @@ func (r *ServicePrincipalPoliciesCollectionRequest) Paging(ctx context.Context,
|
||||
value []DirectoryObject
|
||||
)
|
||||
err := jsonx.NewDecoder(res.Body).Decode(&paging)
|
||||
res.Body.Close()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -1006,9 +1015,9 @@ func (r *ServicePrincipalTransitiveMemberOfCollectionRequest) Paging(ctx context
|
||||
}
|
||||
var values []DirectoryObject
|
||||
for {
|
||||
defer res.Body.Close()
|
||||
if res.StatusCode != http.StatusOK {
|
||||
b, _ := ioutil.ReadAll(res.Body)
|
||||
res.Body.Close()
|
||||
errRes := &ErrorResponse{Response: res}
|
||||
err := jsonx.Unmarshal(b, errRes)
|
||||
if err != nil {
|
||||
@@ -1021,6 +1030,7 @@ func (r *ServicePrincipalTransitiveMemberOfCollectionRequest) Paging(ctx context
|
||||
value []DirectoryObject
|
||||
)
|
||||
err := jsonx.NewDecoder(res.Body).Decode(&paging)
|
||||
res.Body.Close()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
Reference in New Issue
Block a user