mirror of
https://github.com/cwinfo/matterbridge.git
synced 2024-11-09 16:50:30 +00:00
Update vendor yaegashi/msgraph.go to v0.1.2 (2)
This commit is contained in:
parent
802c80f40c
commit
76e5fe5a87
41
vendor/github.com/matterbridge/msgraph.go/beta/ACLTypeEnum.go
generated
vendored
41
vendor/github.com/matterbridge/msgraph.go/beta/ACLTypeEnum.go
generated
vendored
@ -1,41 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
// ACLType undocumented
|
|
||||||
type ACLType int
|
|
||||||
|
|
||||||
const (
|
|
||||||
// ACLTypeVUser undocumented
|
|
||||||
ACLTypeVUser ACLType = 1
|
|
||||||
// ACLTypeVGroup undocumented
|
|
||||||
ACLTypeVGroup ACLType = 2
|
|
||||||
// ACLTypeVEveryone undocumented
|
|
||||||
ACLTypeVEveryone ACLType = 3
|
|
||||||
// ACLTypeVEveryoneExceptGuests undocumented
|
|
||||||
ACLTypeVEveryoneExceptGuests ACLType = 4
|
|
||||||
)
|
|
||||||
|
|
||||||
// ACLTypePUser returns a pointer to ACLTypeVUser
|
|
||||||
func ACLTypePUser() *ACLType {
|
|
||||||
v := ACLTypeVUser
|
|
||||||
return &v
|
|
||||||
}
|
|
||||||
|
|
||||||
// ACLTypePGroup returns a pointer to ACLTypeVGroup
|
|
||||||
func ACLTypePGroup() *ACLType {
|
|
||||||
v := ACLTypeVGroup
|
|
||||||
return &v
|
|
||||||
}
|
|
||||||
|
|
||||||
// ACLTypePEveryone returns a pointer to ACLTypeVEveryone
|
|
||||||
func ACLTypePEveryone() *ACLType {
|
|
||||||
v := ACLTypeVEveryone
|
|
||||||
return &v
|
|
||||||
}
|
|
||||||
|
|
||||||
// ACLTypePEveryoneExceptGuests returns a pointer to ACLTypeVEveryoneExceptGuests
|
|
||||||
func ACLTypePEveryoneExceptGuests() *ACLType {
|
|
||||||
v := ACLTypeVEveryoneExceptGuests
|
|
||||||
return &v
|
|
||||||
}
|
|
19
vendor/github.com/matterbridge/msgraph.go/beta/APIApplicationModel.go
generated
vendored
19
vendor/github.com/matterbridge/msgraph.go/beta/APIApplicationModel.go
generated
vendored
@ -1,19 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
// APIApplication undocumented
|
|
||||||
type APIApplication struct {
|
|
||||||
// Object is the base model of APIApplication
|
|
||||||
Object
|
|
||||||
// AcceptMappedClaims undocumented
|
|
||||||
AcceptMappedClaims *bool `json:"acceptMappedClaims,omitempty"`
|
|
||||||
// KnownClientApplications undocumented
|
|
||||||
KnownClientApplications []UUID `json:"knownClientApplications,omitempty"`
|
|
||||||
// PreAuthorizedApplications undocumented
|
|
||||||
PreAuthorizedApplications []PreAuthorizedApplication `json:"preAuthorizedApplications,omitempty"`
|
|
||||||
// RequestedAccessTokenVersion undocumented
|
|
||||||
RequestedAccessTokenVersion *int `json:"requestedAccessTokenVersion,omitempty"`
|
|
||||||
// Oauth2PermissionScopes undocumented
|
|
||||||
Oauth2PermissionScopes []PermissionScope `json:"oauth2PermissionScopes,omitempty"`
|
|
||||||
}
|
|
11
vendor/github.com/matterbridge/msgraph.go/beta/APIServicePrincipalModel.go
generated
vendored
11
vendor/github.com/matterbridge/msgraph.go/beta/APIServicePrincipalModel.go
generated
vendored
@ -1,11 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
// APIServicePrincipal undocumented
|
|
||||||
type APIServicePrincipal struct {
|
|
||||||
// Object is the base model of APIServicePrincipal
|
|
||||||
Object
|
|
||||||
// ResourceSpecificApplicationPermissions undocumented
|
|
||||||
ResourceSpecificApplicationPermissions []ResourceSpecificPermission `json:"resourceSpecificApplicationPermissions,omitempty"`
|
|
||||||
}
|
|
45
vendor/github.com/matterbridge/msgraph.go/beta/AadUserConversationMemberRequest.go
generated
vendored
45
vendor/github.com/matterbridge/msgraph.go/beta/AadUserConversationMemberRequest.go
generated
vendored
@ -1,45 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
import "context"
|
|
||||||
|
|
||||||
// AadUserConversationMemberRequestBuilder is request builder for AadUserConversationMember
|
|
||||||
type AadUserConversationMemberRequestBuilder struct{ BaseRequestBuilder }
|
|
||||||
|
|
||||||
// Request returns AadUserConversationMemberRequest
|
|
||||||
func (b *AadUserConversationMemberRequestBuilder) Request() *AadUserConversationMemberRequest {
|
|
||||||
return &AadUserConversationMemberRequest{
|
|
||||||
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// AadUserConversationMemberRequest is request for AadUserConversationMember
|
|
||||||
type AadUserConversationMemberRequest struct{ BaseRequest }
|
|
||||||
|
|
||||||
// Get performs GET request for AadUserConversationMember
|
|
||||||
func (r *AadUserConversationMemberRequest) Get(ctx context.Context) (resObj *AadUserConversationMember, err error) {
|
|
||||||
var query string
|
|
||||||
if r.query != nil {
|
|
||||||
query = "?" + r.query.Encode()
|
|
||||||
}
|
|
||||||
err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// Update performs PATCH request for AadUserConversationMember
|
|
||||||
func (r *AadUserConversationMemberRequest) Update(ctx context.Context, reqObj *AadUserConversationMember) error {
|
|
||||||
return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Delete performs DELETE request for AadUserConversationMember
|
|
||||||
func (r *AadUserConversationMemberRequest) Delete(ctx context.Context) error {
|
|
||||||
return r.JSONRequest(ctx, "DELETE", "", nil, nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
// User is navigation property
|
|
||||||
func (b *AadUserConversationMemberRequestBuilder) User() *UserRequestBuilder {
|
|
||||||
bb := &UserRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
|
|
||||||
bb.baseURL += "/user"
|
|
||||||
return bb
|
|
||||||
}
|
|
9
vendor/github.com/matterbridge/msgraph.go/beta/AccessActionModel.go
generated
vendored
9
vendor/github.com/matterbridge/msgraph.go/beta/AccessActionModel.go
generated
vendored
@ -1,9 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
// AccessAction undocumented
|
|
||||||
type AccessAction struct {
|
|
||||||
// Object is the base model of AccessAction
|
|
||||||
Object
|
|
||||||
}
|
|
49
vendor/github.com/matterbridge/msgraph.go/beta/AccessLevelEnum.go
generated
vendored
49
vendor/github.com/matterbridge/msgraph.go/beta/AccessLevelEnum.go
generated
vendored
@ -1,49 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
// AccessLevel undocumented
|
|
||||||
type AccessLevel int
|
|
||||||
|
|
||||||
const (
|
|
||||||
// AccessLevelVEveryone undocumented
|
|
||||||
AccessLevelVEveryone AccessLevel = 0
|
|
||||||
// AccessLevelVInvited undocumented
|
|
||||||
AccessLevelVInvited AccessLevel = 1
|
|
||||||
// AccessLevelVLocked undocumented
|
|
||||||
AccessLevelVLocked AccessLevel = 2
|
|
||||||
// AccessLevelVSameEnterprise undocumented
|
|
||||||
AccessLevelVSameEnterprise AccessLevel = 3
|
|
||||||
// AccessLevelVSameEnterpriseAndFederated undocumented
|
|
||||||
AccessLevelVSameEnterpriseAndFederated AccessLevel = 4
|
|
||||||
)
|
|
||||||
|
|
||||||
// AccessLevelPEveryone returns a pointer to AccessLevelVEveryone
|
|
||||||
func AccessLevelPEveryone() *AccessLevel {
|
|
||||||
v := AccessLevelVEveryone
|
|
||||||
return &v
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessLevelPInvited returns a pointer to AccessLevelVInvited
|
|
||||||
func AccessLevelPInvited() *AccessLevel {
|
|
||||||
v := AccessLevelVInvited
|
|
||||||
return &v
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessLevelPLocked returns a pointer to AccessLevelVLocked
|
|
||||||
func AccessLevelPLocked() *AccessLevel {
|
|
||||||
v := AccessLevelVLocked
|
|
||||||
return &v
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessLevelPSameEnterprise returns a pointer to AccessLevelVSameEnterprise
|
|
||||||
func AccessLevelPSameEnterprise() *AccessLevel {
|
|
||||||
v := AccessLevelVSameEnterprise
|
|
||||||
return &v
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessLevelPSameEnterpriseAndFederated returns a pointer to AccessLevelVSameEnterpriseAndFederated
|
|
||||||
func AccessLevelPSameEnterpriseAndFederated() *AccessLevel {
|
|
||||||
v := AccessLevelVSameEnterpriseAndFederated
|
|
||||||
return &v
|
|
||||||
}
|
|
37
vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageAssignmentModel.go
generated
vendored
37
vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageAssignmentModel.go
generated
vendored
@ -1,37 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
import "time"
|
|
||||||
|
|
||||||
// AccessPackageAssignment undocumented
|
|
||||||
type AccessPackageAssignment struct {
|
|
||||||
// Entity is the base model of AccessPackageAssignment
|
|
||||||
Entity
|
|
||||||
// CatalogID undocumented
|
|
||||||
CatalogID *string `json:"catalogId,omitempty"`
|
|
||||||
// AccessPackageID undocumented
|
|
||||||
AccessPackageID *string `json:"accessPackageId,omitempty"`
|
|
||||||
// AssignmentPolicyID undocumented
|
|
||||||
AssignmentPolicyID *string `json:"assignmentPolicyId,omitempty"`
|
|
||||||
// TargetID undocumented
|
|
||||||
TargetID *string `json:"targetId,omitempty"`
|
|
||||||
// AssignmentStatus undocumented
|
|
||||||
AssignmentStatus *string `json:"assignmentStatus,omitempty"`
|
|
||||||
// AssignmentState undocumented
|
|
||||||
AssignmentState *string `json:"assignmentState,omitempty"`
|
|
||||||
// IsExtended undocumented
|
|
||||||
IsExtended *bool `json:"isExtended,omitempty"`
|
|
||||||
// ExpiredDateTime undocumented
|
|
||||||
ExpiredDateTime *time.Time `json:"expiredDateTime,omitempty"`
|
|
||||||
// AccessPackage undocumented
|
|
||||||
AccessPackage *AccessPackage `json:"accessPackage,omitempty"`
|
|
||||||
// AccessPackageAssignmentPolicy undocumented
|
|
||||||
AccessPackageAssignmentPolicy *AccessPackageAssignmentPolicy `json:"accessPackageAssignmentPolicy,omitempty"`
|
|
||||||
// Target undocumented
|
|
||||||
Target *AccessPackageSubject `json:"target,omitempty"`
|
|
||||||
// AccessPackageAssignmentRequests undocumented
|
|
||||||
AccessPackageAssignmentRequests []AccessPackageAssignmentRequestObject `json:"accessPackageAssignmentRequests,omitempty"`
|
|
||||||
// AccessPackageAssignmentResourceRoles undocumented
|
|
||||||
AccessPackageAssignmentResourceRoles []AccessPackageAssignmentResourceRole `json:"accessPackageAssignmentResourceRoles,omitempty"`
|
|
||||||
}
|
|
39
vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageAssignmentPolicyModel.go
generated
vendored
39
vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageAssignmentPolicyModel.go
generated
vendored
@ -1,39 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
import "time"
|
|
||||||
|
|
||||||
// AccessPackageAssignmentPolicy undocumented
|
|
||||||
type AccessPackageAssignmentPolicy struct {
|
|
||||||
// Entity is the base model of AccessPackageAssignmentPolicy
|
|
||||||
Entity
|
|
||||||
// UserType undocumented
|
|
||||||
UserType *string `json:"userType,omitempty"`
|
|
||||||
// AccessPackageID undocumented
|
|
||||||
AccessPackageID *string `json:"accessPackageId,omitempty"`
|
|
||||||
// DisplayName undocumented
|
|
||||||
DisplayName *string `json:"displayName,omitempty"`
|
|
||||||
// Description undocumented
|
|
||||||
Description *string `json:"description,omitempty"`
|
|
||||||
// IsEnabled undocumented
|
|
||||||
IsEnabled *bool `json:"isEnabled,omitempty"`
|
|
||||||
// CanExtend undocumented
|
|
||||||
CanExtend *bool `json:"canExtend,omitempty"`
|
|
||||||
// DurationInDays undocumented
|
|
||||||
DurationInDays *int `json:"durationInDays,omitempty"`
|
|
||||||
// ExpirationDateTime undocumented
|
|
||||||
ExpirationDateTime *time.Time `json:"expirationDateTime,omitempty"`
|
|
||||||
// CreatedBy undocumented
|
|
||||||
CreatedBy *string `json:"createdBy,omitempty"`
|
|
||||||
// CreatedDateTime undocumented
|
|
||||||
CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
|
|
||||||
// ModifiedBy undocumented
|
|
||||||
ModifiedBy *string `json:"modifiedBy,omitempty"`
|
|
||||||
// ModifiedDateTime undocumented
|
|
||||||
ModifiedDateTime *time.Time `json:"modifiedDateTime,omitempty"`
|
|
||||||
// AccessPackage undocumented
|
|
||||||
AccessPackage *AccessPackage `json:"accessPackage,omitempty"`
|
|
||||||
// AccessPackageCatalog undocumented
|
|
||||||
AccessPackageCatalog *AccessPackageCatalog `json:"accessPackageCatalog,omitempty"`
|
|
||||||
}
|
|
52
vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageAssignmentPolicyRequest.go
generated
vendored
52
vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageAssignmentPolicyRequest.go
generated
vendored
@ -1,52 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
import "context"
|
|
||||||
|
|
||||||
// AccessPackageAssignmentPolicyRequestBuilder is request builder for AccessPackageAssignmentPolicy
|
|
||||||
type AccessPackageAssignmentPolicyRequestBuilder struct{ BaseRequestBuilder }
|
|
||||||
|
|
||||||
// Request returns AccessPackageAssignmentPolicyRequest
|
|
||||||
func (b *AccessPackageAssignmentPolicyRequestBuilder) Request() *AccessPackageAssignmentPolicyRequest {
|
|
||||||
return &AccessPackageAssignmentPolicyRequest{
|
|
||||||
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessPackageAssignmentPolicyRequest is request for AccessPackageAssignmentPolicy
|
|
||||||
type AccessPackageAssignmentPolicyRequest struct{ BaseRequest }
|
|
||||||
|
|
||||||
// Get performs GET request for AccessPackageAssignmentPolicy
|
|
||||||
func (r *AccessPackageAssignmentPolicyRequest) Get(ctx context.Context) (resObj *AccessPackageAssignmentPolicy, err error) {
|
|
||||||
var query string
|
|
||||||
if r.query != nil {
|
|
||||||
query = "?" + r.query.Encode()
|
|
||||||
}
|
|
||||||
err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// Update performs PATCH request for AccessPackageAssignmentPolicy
|
|
||||||
func (r *AccessPackageAssignmentPolicyRequest) Update(ctx context.Context, reqObj *AccessPackageAssignmentPolicy) error {
|
|
||||||
return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Delete performs DELETE request for AccessPackageAssignmentPolicy
|
|
||||||
func (r *AccessPackageAssignmentPolicyRequest) Delete(ctx context.Context) error {
|
|
||||||
return r.JSONRequest(ctx, "DELETE", "", nil, nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessPackage is navigation property
|
|
||||||
func (b *AccessPackageAssignmentPolicyRequestBuilder) AccessPackage() *AccessPackageRequestBuilder {
|
|
||||||
bb := &AccessPackageRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
|
|
||||||
bb.baseURL += "/accessPackage"
|
|
||||||
return bb
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessPackageCatalog is navigation property
|
|
||||||
func (b *AccessPackageAssignmentPolicyRequestBuilder) AccessPackageCatalog() *AccessPackageCatalogRequestBuilder {
|
|
||||||
bb := &AccessPackageCatalogRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
|
|
||||||
bb.baseURL += "/accessPackageCatalog"
|
|
||||||
return bb
|
|
||||||
}
|
|
254
vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageAssignmentRequest.go
generated
vendored
254
vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageAssignmentRequest.go
generated
vendored
@ -1,254 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
"fmt"
|
|
||||||
"io/ioutil"
|
|
||||||
"net/http"
|
|
||||||
|
|
||||||
"github.com/matterbridge/msgraph.go/jsonx"
|
|
||||||
)
|
|
||||||
|
|
||||||
// AccessPackageAssignmentRequestBuilder is request builder for AccessPackageAssignment
|
|
||||||
type AccessPackageAssignmentRequestBuilder struct{ BaseRequestBuilder }
|
|
||||||
|
|
||||||
// Request returns AccessPackageAssignmentRequest
|
|
||||||
func (b *AccessPackageAssignmentRequestBuilder) Request() *AccessPackageAssignmentRequest {
|
|
||||||
return &AccessPackageAssignmentRequest{
|
|
||||||
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessPackageAssignmentRequest is request for AccessPackageAssignment
|
|
||||||
type AccessPackageAssignmentRequest struct{ BaseRequest }
|
|
||||||
|
|
||||||
// Get performs GET request for AccessPackageAssignment
|
|
||||||
func (r *AccessPackageAssignmentRequest) Get(ctx context.Context) (resObj *AccessPackageAssignment, err error) {
|
|
||||||
var query string
|
|
||||||
if r.query != nil {
|
|
||||||
query = "?" + r.query.Encode()
|
|
||||||
}
|
|
||||||
err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// Update performs PATCH request for AccessPackageAssignment
|
|
||||||
func (r *AccessPackageAssignmentRequest) Update(ctx context.Context, reqObj *AccessPackageAssignment) error {
|
|
||||||
return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Delete performs DELETE request for AccessPackageAssignment
|
|
||||||
func (r *AccessPackageAssignmentRequest) Delete(ctx context.Context) error {
|
|
||||||
return r.JSONRequest(ctx, "DELETE", "", nil, nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessPackage is navigation property
|
|
||||||
func (b *AccessPackageAssignmentRequestBuilder) AccessPackage() *AccessPackageRequestBuilder {
|
|
||||||
bb := &AccessPackageRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
|
|
||||||
bb.baseURL += "/accessPackage"
|
|
||||||
return bb
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessPackageAssignmentPolicy is navigation property
|
|
||||||
func (b *AccessPackageAssignmentRequestBuilder) AccessPackageAssignmentPolicy() *AccessPackageAssignmentPolicyRequestBuilder {
|
|
||||||
bb := &AccessPackageAssignmentPolicyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
|
|
||||||
bb.baseURL += "/accessPackageAssignmentPolicy"
|
|
||||||
return bb
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessPackageAssignmentRequests returns request builder for AccessPackageAssignmentRequestObject collection
|
|
||||||
func (b *AccessPackageAssignmentRequestBuilder) AccessPackageAssignmentRequests() *AccessPackageAssignmentAccessPackageAssignmentRequestsCollectionRequestBuilder {
|
|
||||||
bb := &AccessPackageAssignmentAccessPackageAssignmentRequestsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
|
|
||||||
bb.baseURL += "/accessPackageAssignmentRequests"
|
|
||||||
return bb
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessPackageAssignmentAccessPackageAssignmentRequestsCollectionRequestBuilder is request builder for AccessPackageAssignmentRequestObject collection
|
|
||||||
type AccessPackageAssignmentAccessPackageAssignmentRequestsCollectionRequestBuilder struct{ BaseRequestBuilder }
|
|
||||||
|
|
||||||
// Request returns request for AccessPackageAssignmentRequestObject collection
|
|
||||||
func (b *AccessPackageAssignmentAccessPackageAssignmentRequestsCollectionRequestBuilder) Request() *AccessPackageAssignmentAccessPackageAssignmentRequestsCollectionRequest {
|
|
||||||
return &AccessPackageAssignmentAccessPackageAssignmentRequestsCollectionRequest{
|
|
||||||
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// ID returns request builder for AccessPackageAssignmentRequestObject item
|
|
||||||
func (b *AccessPackageAssignmentAccessPackageAssignmentRequestsCollectionRequestBuilder) ID(id string) *AccessPackageAssignmentRequestObjectRequestBuilder {
|
|
||||||
bb := &AccessPackageAssignmentRequestObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
|
|
||||||
bb.baseURL += "/" + id
|
|
||||||
return bb
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessPackageAssignmentAccessPackageAssignmentRequestsCollectionRequest is request for AccessPackageAssignmentRequestObject collection
|
|
||||||
type AccessPackageAssignmentAccessPackageAssignmentRequestsCollectionRequest struct{ BaseRequest }
|
|
||||||
|
|
||||||
// Paging perfoms paging operation for AccessPackageAssignmentRequestObject collection
|
|
||||||
func (r *AccessPackageAssignmentAccessPackageAssignmentRequestsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AccessPackageAssignmentRequestObject, error) {
|
|
||||||
req, err := r.NewJSONRequest(method, path, obj)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if ctx != nil {
|
|
||||||
req = req.WithContext(ctx)
|
|
||||||
}
|
|
||||||
res, err := r.client.Do(req)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
var values []AccessPackageAssignmentRequestObject
|
|
||||||
for {
|
|
||||||
defer res.Body.Close()
|
|
||||||
if res.StatusCode != http.StatusOK {
|
|
||||||
b, _ := ioutil.ReadAll(res.Body)
|
|
||||||
errRes := &ErrorResponse{Response: res}
|
|
||||||
err := jsonx.Unmarshal(b, errRes)
|
|
||||||
if err != nil {
|
|
||||||
return nil, fmt.Errorf("%s: %s", res.Status, string(b))
|
|
||||||
}
|
|
||||||
return nil, errRes
|
|
||||||
}
|
|
||||||
var (
|
|
||||||
paging Paging
|
|
||||||
value []AccessPackageAssignmentRequestObject
|
|
||||||
)
|
|
||||||
err := jsonx.NewDecoder(res.Body).Decode(&paging)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
err = jsonx.Unmarshal(paging.Value, &value)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
values = append(values, value...)
|
|
||||||
if len(paging.NextLink) == 0 {
|
|
||||||
return values, nil
|
|
||||||
}
|
|
||||||
req, err = http.NewRequest("GET", paging.NextLink, nil)
|
|
||||||
if ctx != nil {
|
|
||||||
req = req.WithContext(ctx)
|
|
||||||
}
|
|
||||||
res, err = r.client.Do(req)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Get performs GET request for AccessPackageAssignmentRequestObject collection
|
|
||||||
func (r *AccessPackageAssignmentAccessPackageAssignmentRequestsCollectionRequest) Get(ctx context.Context) ([]AccessPackageAssignmentRequestObject, error) {
|
|
||||||
var query string
|
|
||||||
if r.query != nil {
|
|
||||||
query = "?" + r.query.Encode()
|
|
||||||
}
|
|
||||||
return r.Paging(ctx, "GET", query, nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Add performs POST request for AccessPackageAssignmentRequestObject collection
|
|
||||||
func (r *AccessPackageAssignmentAccessPackageAssignmentRequestsCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageAssignmentRequestObject) (resObj *AccessPackageAssignmentRequestObject, err error) {
|
|
||||||
err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessPackageAssignmentResourceRoles returns request builder for AccessPackageAssignmentResourceRole collection
|
|
||||||
func (b *AccessPackageAssignmentRequestBuilder) AccessPackageAssignmentResourceRoles() *AccessPackageAssignmentAccessPackageAssignmentResourceRolesCollectionRequestBuilder {
|
|
||||||
bb := &AccessPackageAssignmentAccessPackageAssignmentResourceRolesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
|
|
||||||
bb.baseURL += "/accessPackageAssignmentResourceRoles"
|
|
||||||
return bb
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessPackageAssignmentAccessPackageAssignmentResourceRolesCollectionRequestBuilder is request builder for AccessPackageAssignmentResourceRole collection
|
|
||||||
type AccessPackageAssignmentAccessPackageAssignmentResourceRolesCollectionRequestBuilder struct{ BaseRequestBuilder }
|
|
||||||
|
|
||||||
// Request returns request for AccessPackageAssignmentResourceRole collection
|
|
||||||
func (b *AccessPackageAssignmentAccessPackageAssignmentResourceRolesCollectionRequestBuilder) Request() *AccessPackageAssignmentAccessPackageAssignmentResourceRolesCollectionRequest {
|
|
||||||
return &AccessPackageAssignmentAccessPackageAssignmentResourceRolesCollectionRequest{
|
|
||||||
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// ID returns request builder for AccessPackageAssignmentResourceRole item
|
|
||||||
func (b *AccessPackageAssignmentAccessPackageAssignmentResourceRolesCollectionRequestBuilder) ID(id string) *AccessPackageAssignmentResourceRoleRequestBuilder {
|
|
||||||
bb := &AccessPackageAssignmentResourceRoleRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
|
|
||||||
bb.baseURL += "/" + id
|
|
||||||
return bb
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessPackageAssignmentAccessPackageAssignmentResourceRolesCollectionRequest is request for AccessPackageAssignmentResourceRole collection
|
|
||||||
type AccessPackageAssignmentAccessPackageAssignmentResourceRolesCollectionRequest struct{ BaseRequest }
|
|
||||||
|
|
||||||
// Paging perfoms paging operation for AccessPackageAssignmentResourceRole collection
|
|
||||||
func (r *AccessPackageAssignmentAccessPackageAssignmentResourceRolesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AccessPackageAssignmentResourceRole, error) {
|
|
||||||
req, err := r.NewJSONRequest(method, path, obj)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if ctx != nil {
|
|
||||||
req = req.WithContext(ctx)
|
|
||||||
}
|
|
||||||
res, err := r.client.Do(req)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
var values []AccessPackageAssignmentResourceRole
|
|
||||||
for {
|
|
||||||
defer res.Body.Close()
|
|
||||||
if res.StatusCode != http.StatusOK {
|
|
||||||
b, _ := ioutil.ReadAll(res.Body)
|
|
||||||
errRes := &ErrorResponse{Response: res}
|
|
||||||
err := jsonx.Unmarshal(b, errRes)
|
|
||||||
if err != nil {
|
|
||||||
return nil, fmt.Errorf("%s: %s", res.Status, string(b))
|
|
||||||
}
|
|
||||||
return nil, errRes
|
|
||||||
}
|
|
||||||
var (
|
|
||||||
paging Paging
|
|
||||||
value []AccessPackageAssignmentResourceRole
|
|
||||||
)
|
|
||||||
err := jsonx.NewDecoder(res.Body).Decode(&paging)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
err = jsonx.Unmarshal(paging.Value, &value)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
values = append(values, value...)
|
|
||||||
if len(paging.NextLink) == 0 {
|
|
||||||
return values, nil
|
|
||||||
}
|
|
||||||
req, err = http.NewRequest("GET", paging.NextLink, nil)
|
|
||||||
if ctx != nil {
|
|
||||||
req = req.WithContext(ctx)
|
|
||||||
}
|
|
||||||
res, err = r.client.Do(req)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Get performs GET request for AccessPackageAssignmentResourceRole collection
|
|
||||||
func (r *AccessPackageAssignmentAccessPackageAssignmentResourceRolesCollectionRequest) Get(ctx context.Context) ([]AccessPackageAssignmentResourceRole, error) {
|
|
||||||
var query string
|
|
||||||
if r.query != nil {
|
|
||||||
query = "?" + r.query.Encode()
|
|
||||||
}
|
|
||||||
return r.Paging(ctx, "GET", query, nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Add performs POST request for AccessPackageAssignmentResourceRole collection
|
|
||||||
func (r *AccessPackageAssignmentAccessPackageAssignmentResourceRolesCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageAssignmentResourceRole) (resObj *AccessPackageAssignmentResourceRole, err error) {
|
|
||||||
err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// Target is navigation property
|
|
||||||
func (b *AccessPackageAssignmentRequestBuilder) Target() *AccessPackageSubjectRequestBuilder {
|
|
||||||
bb := &AccessPackageSubjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
|
|
||||||
bb.baseURL += "/target"
|
|
||||||
return bb
|
|
||||||
}
|
|
@ -1,35 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
import "context"
|
|
||||||
|
|
||||||
// AccessPackageAssignmentRequestObjectCancelRequestParameter undocumented
|
|
||||||
type AccessPackageAssignmentRequestObjectCancelRequestParameter struct {
|
|
||||||
}
|
|
||||||
|
|
||||||
//
|
|
||||||
type AccessPackageAssignmentRequestObjectCancelRequestBuilder struct{ BaseRequestBuilder }
|
|
||||||
|
|
||||||
// Cancel action undocumented
|
|
||||||
func (b *AccessPackageAssignmentRequestObjectRequestBuilder) Cancel(reqObj *AccessPackageAssignmentRequestObjectCancelRequestParameter) *AccessPackageAssignmentRequestObjectCancelRequestBuilder {
|
|
||||||
bb := &AccessPackageAssignmentRequestObjectCancelRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
|
|
||||||
bb.BaseRequestBuilder.baseURL += "/Cancel"
|
|
||||||
bb.BaseRequestBuilder.requestObject = reqObj
|
|
||||||
return bb
|
|
||||||
}
|
|
||||||
|
|
||||||
//
|
|
||||||
type AccessPackageAssignmentRequestObjectCancelRequest struct{ BaseRequest }
|
|
||||||
|
|
||||||
//
|
|
||||||
func (b *AccessPackageAssignmentRequestObjectCancelRequestBuilder) Request() *AccessPackageAssignmentRequestObjectCancelRequest {
|
|
||||||
return &AccessPackageAssignmentRequestObjectCancelRequest{
|
|
||||||
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
//
|
|
||||||
func (r *AccessPackageAssignmentRequestObjectCancelRequest) Post(ctx context.Context) error {
|
|
||||||
return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
|
|
||||||
}
|
|
@ -1,33 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
import "time"
|
|
||||||
|
|
||||||
// AccessPackageAssignmentRequestObject undocumented
|
|
||||||
type AccessPackageAssignmentRequestObject struct {
|
|
||||||
// Entity is the base model of AccessPackageAssignmentRequestObject
|
|
||||||
Entity
|
|
||||||
// RequestType undocumented
|
|
||||||
RequestType *string `json:"requestType,omitempty"`
|
|
||||||
// RequestState undocumented
|
|
||||||
RequestState *string `json:"requestState,omitempty"`
|
|
||||||
// RequestStatus undocumented
|
|
||||||
RequestStatus *string `json:"requestStatus,omitempty"`
|
|
||||||
// IsValidationOnly undocumented
|
|
||||||
IsValidationOnly *bool `json:"isValidationOnly,omitempty"`
|
|
||||||
// CreatedDateTime undocumented
|
|
||||||
CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
|
|
||||||
// CompletedDate undocumented
|
|
||||||
CompletedDate *time.Time `json:"completedDate,omitempty"`
|
|
||||||
// ExpirationDateTime undocumented
|
|
||||||
ExpirationDateTime *time.Time `json:"expirationDateTime,omitempty"`
|
|
||||||
// Justification undocumented
|
|
||||||
Justification *string `json:"justification,omitempty"`
|
|
||||||
// AccessPackage undocumented
|
|
||||||
AccessPackage *AccessPackage `json:"accessPackage,omitempty"`
|
|
||||||
// AccessPackageAssignment undocumented
|
|
||||||
AccessPackageAssignment *AccessPackageAssignment `json:"accessPackageAssignment,omitempty"`
|
|
||||||
// Requestor undocumented
|
|
||||||
Requestor *AccessPackageSubject `json:"requestor,omitempty"`
|
|
||||||
}
|
|
@ -1,59 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
import "context"
|
|
||||||
|
|
||||||
// AccessPackageAssignmentRequestObjectRequestBuilder is request builder for AccessPackageAssignmentRequestObject
|
|
||||||
type AccessPackageAssignmentRequestObjectRequestBuilder struct{ BaseRequestBuilder }
|
|
||||||
|
|
||||||
// Request returns AccessPackageAssignmentRequestObjectRequest
|
|
||||||
func (b *AccessPackageAssignmentRequestObjectRequestBuilder) Request() *AccessPackageAssignmentRequestObjectRequest {
|
|
||||||
return &AccessPackageAssignmentRequestObjectRequest{
|
|
||||||
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessPackageAssignmentRequestObjectRequest is request for AccessPackageAssignmentRequestObject
|
|
||||||
type AccessPackageAssignmentRequestObjectRequest struct{ BaseRequest }
|
|
||||||
|
|
||||||
// Get performs GET request for AccessPackageAssignmentRequestObject
|
|
||||||
func (r *AccessPackageAssignmentRequestObjectRequest) Get(ctx context.Context) (resObj *AccessPackageAssignmentRequestObject, err error) {
|
|
||||||
var query string
|
|
||||||
if r.query != nil {
|
|
||||||
query = "?" + r.query.Encode()
|
|
||||||
}
|
|
||||||
err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// Update performs PATCH request for AccessPackageAssignmentRequestObject
|
|
||||||
func (r *AccessPackageAssignmentRequestObjectRequest) Update(ctx context.Context, reqObj *AccessPackageAssignmentRequestObject) error {
|
|
||||||
return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Delete performs DELETE request for AccessPackageAssignmentRequestObject
|
|
||||||
func (r *AccessPackageAssignmentRequestObjectRequest) Delete(ctx context.Context) error {
|
|
||||||
return r.JSONRequest(ctx, "DELETE", "", nil, nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessPackage is navigation property
|
|
||||||
func (b *AccessPackageAssignmentRequestObjectRequestBuilder) AccessPackage() *AccessPackageRequestBuilder {
|
|
||||||
bb := &AccessPackageRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
|
|
||||||
bb.baseURL += "/accessPackage"
|
|
||||||
return bb
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessPackageAssignment is navigation property
|
|
||||||
func (b *AccessPackageAssignmentRequestObjectRequestBuilder) AccessPackageAssignment() *AccessPackageAssignmentRequestBuilder {
|
|
||||||
bb := &AccessPackageAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
|
|
||||||
bb.baseURL += "/accessPackageAssignment"
|
|
||||||
return bb
|
|
||||||
}
|
|
||||||
|
|
||||||
// Requestor is navigation property
|
|
||||||
func (b *AccessPackageAssignmentRequestObjectRequestBuilder) Requestor() *AccessPackageSubjectRequestBuilder {
|
|
||||||
bb := &AccessPackageSubjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
|
|
||||||
bb.baseURL += "/requestor"
|
|
||||||
return bb
|
|
||||||
}
|
|
@ -1,23 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
// AccessPackageAssignmentResourceRole undocumented
|
|
||||||
type AccessPackageAssignmentResourceRole struct {
|
|
||||||
// Entity is the base model of AccessPackageAssignmentResourceRole
|
|
||||||
Entity
|
|
||||||
// OriginID undocumented
|
|
||||||
OriginID *string `json:"originId,omitempty"`
|
|
||||||
// OriginSystem undocumented
|
|
||||||
OriginSystem *string `json:"originSystem,omitempty"`
|
|
||||||
// Status undocumented
|
|
||||||
Status *string `json:"status,omitempty"`
|
|
||||||
// AccessPackageResourceScope undocumented
|
|
||||||
AccessPackageResourceScope *AccessPackageResourceScope `json:"accessPackageResourceScope,omitempty"`
|
|
||||||
// AccessPackageResourceRole undocumented
|
|
||||||
AccessPackageResourceRole *AccessPackageResourceRole `json:"accessPackageResourceRole,omitempty"`
|
|
||||||
// AccessPackageSubject undocumented
|
|
||||||
AccessPackageSubject *AccessPackageSubject `json:"accessPackageSubject,omitempty"`
|
|
||||||
// AccessPackageAssignments undocumented
|
|
||||||
AccessPackageAssignments []AccessPackageAssignment `json:"accessPackageAssignments,omitempty"`
|
|
||||||
}
|
|
160
vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageAssignmentResourceRoleRequest.go
generated
vendored
160
vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageAssignmentResourceRoleRequest.go
generated
vendored
@ -1,160 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
"fmt"
|
|
||||||
"io/ioutil"
|
|
||||||
"net/http"
|
|
||||||
|
|
||||||
"github.com/matterbridge/msgraph.go/jsonx"
|
|
||||||
)
|
|
||||||
|
|
||||||
// AccessPackageAssignmentResourceRoleRequestBuilder is request builder for AccessPackageAssignmentResourceRole
|
|
||||||
type AccessPackageAssignmentResourceRoleRequestBuilder struct{ BaseRequestBuilder }
|
|
||||||
|
|
||||||
// Request returns AccessPackageAssignmentResourceRoleRequest
|
|
||||||
func (b *AccessPackageAssignmentResourceRoleRequestBuilder) Request() *AccessPackageAssignmentResourceRoleRequest {
|
|
||||||
return &AccessPackageAssignmentResourceRoleRequest{
|
|
||||||
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessPackageAssignmentResourceRoleRequest is request for AccessPackageAssignmentResourceRole
|
|
||||||
type AccessPackageAssignmentResourceRoleRequest struct{ BaseRequest }
|
|
||||||
|
|
||||||
// Get performs GET request for AccessPackageAssignmentResourceRole
|
|
||||||
func (r *AccessPackageAssignmentResourceRoleRequest) Get(ctx context.Context) (resObj *AccessPackageAssignmentResourceRole, err error) {
|
|
||||||
var query string
|
|
||||||
if r.query != nil {
|
|
||||||
query = "?" + r.query.Encode()
|
|
||||||
}
|
|
||||||
err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// Update performs PATCH request for AccessPackageAssignmentResourceRole
|
|
||||||
func (r *AccessPackageAssignmentResourceRoleRequest) Update(ctx context.Context, reqObj *AccessPackageAssignmentResourceRole) error {
|
|
||||||
return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Delete performs DELETE request for AccessPackageAssignmentResourceRole
|
|
||||||
func (r *AccessPackageAssignmentResourceRoleRequest) Delete(ctx context.Context) error {
|
|
||||||
return r.JSONRequest(ctx, "DELETE", "", nil, nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessPackageAssignments returns request builder for AccessPackageAssignment collection
|
|
||||||
func (b *AccessPackageAssignmentResourceRoleRequestBuilder) AccessPackageAssignments() *AccessPackageAssignmentResourceRoleAccessPackageAssignmentsCollectionRequestBuilder {
|
|
||||||
bb := &AccessPackageAssignmentResourceRoleAccessPackageAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
|
|
||||||
bb.baseURL += "/accessPackageAssignments"
|
|
||||||
return bb
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessPackageAssignmentResourceRoleAccessPackageAssignmentsCollectionRequestBuilder is request builder for AccessPackageAssignment collection
|
|
||||||
type AccessPackageAssignmentResourceRoleAccessPackageAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
|
|
||||||
|
|
||||||
// Request returns request for AccessPackageAssignment collection
|
|
||||||
func (b *AccessPackageAssignmentResourceRoleAccessPackageAssignmentsCollectionRequestBuilder) Request() *AccessPackageAssignmentResourceRoleAccessPackageAssignmentsCollectionRequest {
|
|
||||||
return &AccessPackageAssignmentResourceRoleAccessPackageAssignmentsCollectionRequest{
|
|
||||||
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// ID returns request builder for AccessPackageAssignment item
|
|
||||||
func (b *AccessPackageAssignmentResourceRoleAccessPackageAssignmentsCollectionRequestBuilder) ID(id string) *AccessPackageAssignmentRequestBuilder {
|
|
||||||
bb := &AccessPackageAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
|
|
||||||
bb.baseURL += "/" + id
|
|
||||||
return bb
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessPackageAssignmentResourceRoleAccessPackageAssignmentsCollectionRequest is request for AccessPackageAssignment collection
|
|
||||||
type AccessPackageAssignmentResourceRoleAccessPackageAssignmentsCollectionRequest struct{ BaseRequest }
|
|
||||||
|
|
||||||
// Paging perfoms paging operation for AccessPackageAssignment collection
|
|
||||||
func (r *AccessPackageAssignmentResourceRoleAccessPackageAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AccessPackageAssignment, error) {
|
|
||||||
req, err := r.NewJSONRequest(method, path, obj)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if ctx != nil {
|
|
||||||
req = req.WithContext(ctx)
|
|
||||||
}
|
|
||||||
res, err := r.client.Do(req)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
var values []AccessPackageAssignment
|
|
||||||
for {
|
|
||||||
defer res.Body.Close()
|
|
||||||
if res.StatusCode != http.StatusOK {
|
|
||||||
b, _ := ioutil.ReadAll(res.Body)
|
|
||||||
errRes := &ErrorResponse{Response: res}
|
|
||||||
err := jsonx.Unmarshal(b, errRes)
|
|
||||||
if err != nil {
|
|
||||||
return nil, fmt.Errorf("%s: %s", res.Status, string(b))
|
|
||||||
}
|
|
||||||
return nil, errRes
|
|
||||||
}
|
|
||||||
var (
|
|
||||||
paging Paging
|
|
||||||
value []AccessPackageAssignment
|
|
||||||
)
|
|
||||||
err := jsonx.NewDecoder(res.Body).Decode(&paging)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
err = jsonx.Unmarshal(paging.Value, &value)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
values = append(values, value...)
|
|
||||||
if len(paging.NextLink) == 0 {
|
|
||||||
return values, nil
|
|
||||||
}
|
|
||||||
req, err = http.NewRequest("GET", paging.NextLink, nil)
|
|
||||||
if ctx != nil {
|
|
||||||
req = req.WithContext(ctx)
|
|
||||||
}
|
|
||||||
res, err = r.client.Do(req)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Get performs GET request for AccessPackageAssignment collection
|
|
||||||
func (r *AccessPackageAssignmentResourceRoleAccessPackageAssignmentsCollectionRequest) Get(ctx context.Context) ([]AccessPackageAssignment, error) {
|
|
||||||
var query string
|
|
||||||
if r.query != nil {
|
|
||||||
query = "?" + r.query.Encode()
|
|
||||||
}
|
|
||||||
return r.Paging(ctx, "GET", query, nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Add performs POST request for AccessPackageAssignment collection
|
|
||||||
func (r *AccessPackageAssignmentResourceRoleAccessPackageAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageAssignment) (resObj *AccessPackageAssignment, err error) {
|
|
||||||
err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessPackageResourceRole is navigation property
|
|
||||||
func (b *AccessPackageAssignmentResourceRoleRequestBuilder) AccessPackageResourceRole() *AccessPackageResourceRoleRequestBuilder {
|
|
||||||
bb := &AccessPackageResourceRoleRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
|
|
||||||
bb.baseURL += "/accessPackageResourceRole"
|
|
||||||
return bb
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessPackageResourceScope is navigation property
|
|
||||||
func (b *AccessPackageAssignmentResourceRoleRequestBuilder) AccessPackageResourceScope() *AccessPackageResourceScopeRequestBuilder {
|
|
||||||
bb := &AccessPackageResourceScopeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
|
|
||||||
bb.baseURL += "/accessPackageResourceScope"
|
|
||||||
return bb
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessPackageSubject is navigation property
|
|
||||||
func (b *AccessPackageAssignmentResourceRoleRequestBuilder) AccessPackageSubject() *AccessPackageSubjectRequestBuilder {
|
|
||||||
bb := &AccessPackageSubjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
|
|
||||||
bb.baseURL += "/accessPackageSubject"
|
|
||||||
return bb
|
|
||||||
}
|
|
37
vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageCatalogModel.go
generated
vendored
37
vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageCatalogModel.go
generated
vendored
@ -1,37 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
import "time"
|
|
||||||
|
|
||||||
// AccessPackageCatalog undocumented
|
|
||||||
type AccessPackageCatalog struct {
|
|
||||||
// Entity is the base model of AccessPackageCatalog
|
|
||||||
Entity
|
|
||||||
// DisplayName undocumented
|
|
||||||
DisplayName *string `json:"displayName,omitempty"`
|
|
||||||
// Description undocumented
|
|
||||||
Description *string `json:"description,omitempty"`
|
|
||||||
// CatalogType undocumented
|
|
||||||
CatalogType *string `json:"catalogType,omitempty"`
|
|
||||||
// CatalogStatus undocumented
|
|
||||||
CatalogStatus *string `json:"catalogStatus,omitempty"`
|
|
||||||
// IsExternallyVisible undocumented
|
|
||||||
IsExternallyVisible *bool `json:"isExternallyVisible,omitempty"`
|
|
||||||
// CreatedBy undocumented
|
|
||||||
CreatedBy *string `json:"createdBy,omitempty"`
|
|
||||||
// CreatedDateTime undocumented
|
|
||||||
CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
|
|
||||||
// ModifiedBy undocumented
|
|
||||||
ModifiedBy *string `json:"modifiedBy,omitempty"`
|
|
||||||
// ModifiedDateTime undocumented
|
|
||||||
ModifiedDateTime *time.Time `json:"modifiedDateTime,omitempty"`
|
|
||||||
// AccessPackageResources undocumented
|
|
||||||
AccessPackageResources []AccessPackageResource `json:"accessPackageResources,omitempty"`
|
|
||||||
// AccessPackageResourceRoles undocumented
|
|
||||||
AccessPackageResourceRoles []AccessPackageResourceRole `json:"accessPackageResourceRoles,omitempty"`
|
|
||||||
// AccessPackageResourceScopes undocumented
|
|
||||||
AccessPackageResourceScopes []AccessPackageResourceScope `json:"accessPackageResourceScopes,omitempty"`
|
|
||||||
// AccessPackages undocumented
|
|
||||||
AccessPackages []AccessPackage `json:"accessPackages,omitempty"`
|
|
||||||
}
|
|
421
vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageCatalogRequest.go
generated
vendored
421
vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageCatalogRequest.go
generated
vendored
@ -1,421 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
"fmt"
|
|
||||||
"io/ioutil"
|
|
||||||
"net/http"
|
|
||||||
|
|
||||||
"github.com/matterbridge/msgraph.go/jsonx"
|
|
||||||
)
|
|
||||||
|
|
||||||
// AccessPackageCatalogRequestBuilder is request builder for AccessPackageCatalog
|
|
||||||
type AccessPackageCatalogRequestBuilder struct{ BaseRequestBuilder }
|
|
||||||
|
|
||||||
// Request returns AccessPackageCatalogRequest
|
|
||||||
func (b *AccessPackageCatalogRequestBuilder) Request() *AccessPackageCatalogRequest {
|
|
||||||
return &AccessPackageCatalogRequest{
|
|
||||||
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessPackageCatalogRequest is request for AccessPackageCatalog
|
|
||||||
type AccessPackageCatalogRequest struct{ BaseRequest }
|
|
||||||
|
|
||||||
// Get performs GET request for AccessPackageCatalog
|
|
||||||
func (r *AccessPackageCatalogRequest) Get(ctx context.Context) (resObj *AccessPackageCatalog, err error) {
|
|
||||||
var query string
|
|
||||||
if r.query != nil {
|
|
||||||
query = "?" + r.query.Encode()
|
|
||||||
}
|
|
||||||
err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// Update performs PATCH request for AccessPackageCatalog
|
|
||||||
func (r *AccessPackageCatalogRequest) Update(ctx context.Context, reqObj *AccessPackageCatalog) error {
|
|
||||||
return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Delete performs DELETE request for AccessPackageCatalog
|
|
||||||
func (r *AccessPackageCatalogRequest) Delete(ctx context.Context) error {
|
|
||||||
return r.JSONRequest(ctx, "DELETE", "", nil, nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessPackageResourceRoles returns request builder for AccessPackageResourceRole collection
|
|
||||||
func (b *AccessPackageCatalogRequestBuilder) AccessPackageResourceRoles() *AccessPackageCatalogAccessPackageResourceRolesCollectionRequestBuilder {
|
|
||||||
bb := &AccessPackageCatalogAccessPackageResourceRolesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
|
|
||||||
bb.baseURL += "/accessPackageResourceRoles"
|
|
||||||
return bb
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessPackageCatalogAccessPackageResourceRolesCollectionRequestBuilder is request builder for AccessPackageResourceRole collection
|
|
||||||
type AccessPackageCatalogAccessPackageResourceRolesCollectionRequestBuilder struct{ BaseRequestBuilder }
|
|
||||||
|
|
||||||
// Request returns request for AccessPackageResourceRole collection
|
|
||||||
func (b *AccessPackageCatalogAccessPackageResourceRolesCollectionRequestBuilder) Request() *AccessPackageCatalogAccessPackageResourceRolesCollectionRequest {
|
|
||||||
return &AccessPackageCatalogAccessPackageResourceRolesCollectionRequest{
|
|
||||||
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// ID returns request builder for AccessPackageResourceRole item
|
|
||||||
func (b *AccessPackageCatalogAccessPackageResourceRolesCollectionRequestBuilder) ID(id string) *AccessPackageResourceRoleRequestBuilder {
|
|
||||||
bb := &AccessPackageResourceRoleRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
|
|
||||||
bb.baseURL += "/" + id
|
|
||||||
return bb
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessPackageCatalogAccessPackageResourceRolesCollectionRequest is request for AccessPackageResourceRole collection
|
|
||||||
type AccessPackageCatalogAccessPackageResourceRolesCollectionRequest struct{ BaseRequest }
|
|
||||||
|
|
||||||
// Paging perfoms paging operation for AccessPackageResourceRole collection
|
|
||||||
func (r *AccessPackageCatalogAccessPackageResourceRolesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AccessPackageResourceRole, error) {
|
|
||||||
req, err := r.NewJSONRequest(method, path, obj)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if ctx != nil {
|
|
||||||
req = req.WithContext(ctx)
|
|
||||||
}
|
|
||||||
res, err := r.client.Do(req)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
var values []AccessPackageResourceRole
|
|
||||||
for {
|
|
||||||
defer res.Body.Close()
|
|
||||||
if res.StatusCode != http.StatusOK {
|
|
||||||
b, _ := ioutil.ReadAll(res.Body)
|
|
||||||
errRes := &ErrorResponse{Response: res}
|
|
||||||
err := jsonx.Unmarshal(b, errRes)
|
|
||||||
if err != nil {
|
|
||||||
return nil, fmt.Errorf("%s: %s", res.Status, string(b))
|
|
||||||
}
|
|
||||||
return nil, errRes
|
|
||||||
}
|
|
||||||
var (
|
|
||||||
paging Paging
|
|
||||||
value []AccessPackageResourceRole
|
|
||||||
)
|
|
||||||
err := jsonx.NewDecoder(res.Body).Decode(&paging)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
err = jsonx.Unmarshal(paging.Value, &value)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
values = append(values, value...)
|
|
||||||
if len(paging.NextLink) == 0 {
|
|
||||||
return values, nil
|
|
||||||
}
|
|
||||||
req, err = http.NewRequest("GET", paging.NextLink, nil)
|
|
||||||
if ctx != nil {
|
|
||||||
req = req.WithContext(ctx)
|
|
||||||
}
|
|
||||||
res, err = r.client.Do(req)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Get performs GET request for AccessPackageResourceRole collection
|
|
||||||
func (r *AccessPackageCatalogAccessPackageResourceRolesCollectionRequest) Get(ctx context.Context) ([]AccessPackageResourceRole, error) {
|
|
||||||
var query string
|
|
||||||
if r.query != nil {
|
|
||||||
query = "?" + r.query.Encode()
|
|
||||||
}
|
|
||||||
return r.Paging(ctx, "GET", query, nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Add performs POST request for AccessPackageResourceRole collection
|
|
||||||
func (r *AccessPackageCatalogAccessPackageResourceRolesCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageResourceRole) (resObj *AccessPackageResourceRole, err error) {
|
|
||||||
err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessPackageResourceScopes returns request builder for AccessPackageResourceScope collection
|
|
||||||
func (b *AccessPackageCatalogRequestBuilder) AccessPackageResourceScopes() *AccessPackageCatalogAccessPackageResourceScopesCollectionRequestBuilder {
|
|
||||||
bb := &AccessPackageCatalogAccessPackageResourceScopesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
|
|
||||||
bb.baseURL += "/accessPackageResourceScopes"
|
|
||||||
return bb
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessPackageCatalogAccessPackageResourceScopesCollectionRequestBuilder is request builder for AccessPackageResourceScope collection
|
|
||||||
type AccessPackageCatalogAccessPackageResourceScopesCollectionRequestBuilder struct{ BaseRequestBuilder }
|
|
||||||
|
|
||||||
// Request returns request for AccessPackageResourceScope collection
|
|
||||||
func (b *AccessPackageCatalogAccessPackageResourceScopesCollectionRequestBuilder) Request() *AccessPackageCatalogAccessPackageResourceScopesCollectionRequest {
|
|
||||||
return &AccessPackageCatalogAccessPackageResourceScopesCollectionRequest{
|
|
||||||
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// ID returns request builder for AccessPackageResourceScope item
|
|
||||||
func (b *AccessPackageCatalogAccessPackageResourceScopesCollectionRequestBuilder) ID(id string) *AccessPackageResourceScopeRequestBuilder {
|
|
||||||
bb := &AccessPackageResourceScopeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
|
|
||||||
bb.baseURL += "/" + id
|
|
||||||
return bb
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessPackageCatalogAccessPackageResourceScopesCollectionRequest is request for AccessPackageResourceScope collection
|
|
||||||
type AccessPackageCatalogAccessPackageResourceScopesCollectionRequest struct{ BaseRequest }
|
|
||||||
|
|
||||||
// Paging perfoms paging operation for AccessPackageResourceScope collection
|
|
||||||
func (r *AccessPackageCatalogAccessPackageResourceScopesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AccessPackageResourceScope, error) {
|
|
||||||
req, err := r.NewJSONRequest(method, path, obj)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if ctx != nil {
|
|
||||||
req = req.WithContext(ctx)
|
|
||||||
}
|
|
||||||
res, err := r.client.Do(req)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
var values []AccessPackageResourceScope
|
|
||||||
for {
|
|
||||||
defer res.Body.Close()
|
|
||||||
if res.StatusCode != http.StatusOK {
|
|
||||||
b, _ := ioutil.ReadAll(res.Body)
|
|
||||||
errRes := &ErrorResponse{Response: res}
|
|
||||||
err := jsonx.Unmarshal(b, errRes)
|
|
||||||
if err != nil {
|
|
||||||
return nil, fmt.Errorf("%s: %s", res.Status, string(b))
|
|
||||||
}
|
|
||||||
return nil, errRes
|
|
||||||
}
|
|
||||||
var (
|
|
||||||
paging Paging
|
|
||||||
value []AccessPackageResourceScope
|
|
||||||
)
|
|
||||||
err := jsonx.NewDecoder(res.Body).Decode(&paging)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
err = jsonx.Unmarshal(paging.Value, &value)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
values = append(values, value...)
|
|
||||||
if len(paging.NextLink) == 0 {
|
|
||||||
return values, nil
|
|
||||||
}
|
|
||||||
req, err = http.NewRequest("GET", paging.NextLink, nil)
|
|
||||||
if ctx != nil {
|
|
||||||
req = req.WithContext(ctx)
|
|
||||||
}
|
|
||||||
res, err = r.client.Do(req)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Get performs GET request for AccessPackageResourceScope collection
|
|
||||||
func (r *AccessPackageCatalogAccessPackageResourceScopesCollectionRequest) Get(ctx context.Context) ([]AccessPackageResourceScope, error) {
|
|
||||||
var query string
|
|
||||||
if r.query != nil {
|
|
||||||
query = "?" + r.query.Encode()
|
|
||||||
}
|
|
||||||
return r.Paging(ctx, "GET", query, nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Add performs POST request for AccessPackageResourceScope collection
|
|
||||||
func (r *AccessPackageCatalogAccessPackageResourceScopesCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageResourceScope) (resObj *AccessPackageResourceScope, err error) {
|
|
||||||
err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessPackageResources returns request builder for AccessPackageResource collection
|
|
||||||
func (b *AccessPackageCatalogRequestBuilder) AccessPackageResources() *AccessPackageCatalogAccessPackageResourcesCollectionRequestBuilder {
|
|
||||||
bb := &AccessPackageCatalogAccessPackageResourcesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
|
|
||||||
bb.baseURL += "/accessPackageResources"
|
|
||||||
return bb
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessPackageCatalogAccessPackageResourcesCollectionRequestBuilder is request builder for AccessPackageResource collection
|
|
||||||
type AccessPackageCatalogAccessPackageResourcesCollectionRequestBuilder struct{ BaseRequestBuilder }
|
|
||||||
|
|
||||||
// Request returns request for AccessPackageResource collection
|
|
||||||
func (b *AccessPackageCatalogAccessPackageResourcesCollectionRequestBuilder) Request() *AccessPackageCatalogAccessPackageResourcesCollectionRequest {
|
|
||||||
return &AccessPackageCatalogAccessPackageResourcesCollectionRequest{
|
|
||||||
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// ID returns request builder for AccessPackageResource item
|
|
||||||
func (b *AccessPackageCatalogAccessPackageResourcesCollectionRequestBuilder) ID(id string) *AccessPackageResourceRequestBuilder {
|
|
||||||
bb := &AccessPackageResourceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
|
|
||||||
bb.baseURL += "/" + id
|
|
||||||
return bb
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessPackageCatalogAccessPackageResourcesCollectionRequest is request for AccessPackageResource collection
|
|
||||||
type AccessPackageCatalogAccessPackageResourcesCollectionRequest struct{ BaseRequest }
|
|
||||||
|
|
||||||
// Paging perfoms paging operation for AccessPackageResource collection
|
|
||||||
func (r *AccessPackageCatalogAccessPackageResourcesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AccessPackageResource, error) {
|
|
||||||
req, err := r.NewJSONRequest(method, path, obj)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if ctx != nil {
|
|
||||||
req = req.WithContext(ctx)
|
|
||||||
}
|
|
||||||
res, err := r.client.Do(req)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
var values []AccessPackageResource
|
|
||||||
for {
|
|
||||||
defer res.Body.Close()
|
|
||||||
if res.StatusCode != http.StatusOK {
|
|
||||||
b, _ := ioutil.ReadAll(res.Body)
|
|
||||||
errRes := &ErrorResponse{Response: res}
|
|
||||||
err := jsonx.Unmarshal(b, errRes)
|
|
||||||
if err != nil {
|
|
||||||
return nil, fmt.Errorf("%s: %s", res.Status, string(b))
|
|
||||||
}
|
|
||||||
return nil, errRes
|
|
||||||
}
|
|
||||||
var (
|
|
||||||
paging Paging
|
|
||||||
value []AccessPackageResource
|
|
||||||
)
|
|
||||||
err := jsonx.NewDecoder(res.Body).Decode(&paging)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
err = jsonx.Unmarshal(paging.Value, &value)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
values = append(values, value...)
|
|
||||||
if len(paging.NextLink) == 0 {
|
|
||||||
return values, nil
|
|
||||||
}
|
|
||||||
req, err = http.NewRequest("GET", paging.NextLink, nil)
|
|
||||||
if ctx != nil {
|
|
||||||
req = req.WithContext(ctx)
|
|
||||||
}
|
|
||||||
res, err = r.client.Do(req)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Get performs GET request for AccessPackageResource collection
|
|
||||||
func (r *AccessPackageCatalogAccessPackageResourcesCollectionRequest) Get(ctx context.Context) ([]AccessPackageResource, error) {
|
|
||||||
var query string
|
|
||||||
if r.query != nil {
|
|
||||||
query = "?" + r.query.Encode()
|
|
||||||
}
|
|
||||||
return r.Paging(ctx, "GET", query, nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Add performs POST request for AccessPackageResource collection
|
|
||||||
func (r *AccessPackageCatalogAccessPackageResourcesCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageResource) (resObj *AccessPackageResource, err error) {
|
|
||||||
err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessPackages returns request builder for AccessPackage collection
|
|
||||||
func (b *AccessPackageCatalogRequestBuilder) AccessPackages() *AccessPackageCatalogAccessPackagesCollectionRequestBuilder {
|
|
||||||
bb := &AccessPackageCatalogAccessPackagesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
|
|
||||||
bb.baseURL += "/accessPackages"
|
|
||||||
return bb
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessPackageCatalogAccessPackagesCollectionRequestBuilder is request builder for AccessPackage collection
|
|
||||||
type AccessPackageCatalogAccessPackagesCollectionRequestBuilder struct{ BaseRequestBuilder }
|
|
||||||
|
|
||||||
// Request returns request for AccessPackage collection
|
|
||||||
func (b *AccessPackageCatalogAccessPackagesCollectionRequestBuilder) Request() *AccessPackageCatalogAccessPackagesCollectionRequest {
|
|
||||||
return &AccessPackageCatalogAccessPackagesCollectionRequest{
|
|
||||||
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// ID returns request builder for AccessPackage item
|
|
||||||
func (b *AccessPackageCatalogAccessPackagesCollectionRequestBuilder) ID(id string) *AccessPackageRequestBuilder {
|
|
||||||
bb := &AccessPackageRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
|
|
||||||
bb.baseURL += "/" + id
|
|
||||||
return bb
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessPackageCatalogAccessPackagesCollectionRequest is request for AccessPackage collection
|
|
||||||
type AccessPackageCatalogAccessPackagesCollectionRequest struct{ BaseRequest }
|
|
||||||
|
|
||||||
// Paging perfoms paging operation for AccessPackage collection
|
|
||||||
func (r *AccessPackageCatalogAccessPackagesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AccessPackage, error) {
|
|
||||||
req, err := r.NewJSONRequest(method, path, obj)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if ctx != nil {
|
|
||||||
req = req.WithContext(ctx)
|
|
||||||
}
|
|
||||||
res, err := r.client.Do(req)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
var values []AccessPackage
|
|
||||||
for {
|
|
||||||
defer res.Body.Close()
|
|
||||||
if res.StatusCode != http.StatusOK {
|
|
||||||
b, _ := ioutil.ReadAll(res.Body)
|
|
||||||
errRes := &ErrorResponse{Response: res}
|
|
||||||
err := jsonx.Unmarshal(b, errRes)
|
|
||||||
if err != nil {
|
|
||||||
return nil, fmt.Errorf("%s: %s", res.Status, string(b))
|
|
||||||
}
|
|
||||||
return nil, errRes
|
|
||||||
}
|
|
||||||
var (
|
|
||||||
paging Paging
|
|
||||||
value []AccessPackage
|
|
||||||
)
|
|
||||||
err := jsonx.NewDecoder(res.Body).Decode(&paging)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
err = jsonx.Unmarshal(paging.Value, &value)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
values = append(values, value...)
|
|
||||||
if len(paging.NextLink) == 0 {
|
|
||||||
return values, nil
|
|
||||||
}
|
|
||||||
req, err = http.NewRequest("GET", paging.NextLink, nil)
|
|
||||||
if ctx != nil {
|
|
||||||
req = req.WithContext(ctx)
|
|
||||||
}
|
|
||||||
res, err = r.client.Do(req)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Get performs GET request for AccessPackage collection
|
|
||||||
func (r *AccessPackageCatalogAccessPackagesCollectionRequest) Get(ctx context.Context) ([]AccessPackage, error) {
|
|
||||||
var query string
|
|
||||||
if r.query != nil {
|
|
||||||
query = "?" + r.query.Encode()
|
|
||||||
}
|
|
||||||
return r.Paging(ctx, "GET", query, nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Add performs POST request for AccessPackage collection
|
|
||||||
func (r *AccessPackageCatalogAccessPackagesCollectionRequest) Add(ctx context.Context, reqObj *AccessPackage) (resObj *AccessPackage, err error) {
|
|
||||||
err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
|
|
||||||
return
|
|
||||||
}
|
|
35
vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageModel.go
generated
vendored
35
vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageModel.go
generated
vendored
@ -1,35 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
import "time"
|
|
||||||
|
|
||||||
// AccessPackage undocumented
|
|
||||||
type AccessPackage struct {
|
|
||||||
// Entity is the base model of AccessPackage
|
|
||||||
Entity
|
|
||||||
// CatalogID undocumented
|
|
||||||
CatalogID *string `json:"catalogId,omitempty"`
|
|
||||||
// DisplayName undocumented
|
|
||||||
DisplayName *string `json:"displayName,omitempty"`
|
|
||||||
// Description undocumented
|
|
||||||
Description *string `json:"description,omitempty"`
|
|
||||||
// IsHidden undocumented
|
|
||||||
IsHidden *bool `json:"isHidden,omitempty"`
|
|
||||||
// IsRoleScopesVisible undocumented
|
|
||||||
IsRoleScopesVisible *bool `json:"isRoleScopesVisible,omitempty"`
|
|
||||||
// CreatedBy undocumented
|
|
||||||
CreatedBy *string `json:"createdBy,omitempty"`
|
|
||||||
// CreatedDateTime undocumented
|
|
||||||
CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
|
|
||||||
// ModifiedBy undocumented
|
|
||||||
ModifiedBy *string `json:"modifiedBy,omitempty"`
|
|
||||||
// ModifiedDateTime undocumented
|
|
||||||
ModifiedDateTime *time.Time `json:"modifiedDateTime,omitempty"`
|
|
||||||
// AccessPackageCatalog undocumented
|
|
||||||
AccessPackageCatalog *AccessPackageCatalog `json:"accessPackageCatalog,omitempty"`
|
|
||||||
// AccessPackageResourceRoleScopes undocumented
|
|
||||||
AccessPackageResourceRoleScopes []AccessPackageResourceRoleScope `json:"accessPackageResourceRoleScopes,omitempty"`
|
|
||||||
// AccessPackageAssignmentPolicies undocumented
|
|
||||||
AccessPackageAssignmentPolicies []AccessPackageAssignmentPolicy `json:"accessPackageAssignmentPolicies,omitempty"`
|
|
||||||
}
|
|
240
vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageRequest.go
generated
vendored
240
vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageRequest.go
generated
vendored
@ -1,240 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
"fmt"
|
|
||||||
"io/ioutil"
|
|
||||||
"net/http"
|
|
||||||
|
|
||||||
"github.com/matterbridge/msgraph.go/jsonx"
|
|
||||||
)
|
|
||||||
|
|
||||||
// AccessPackageRequestBuilder is request builder for AccessPackage
|
|
||||||
type AccessPackageRequestBuilder struct{ BaseRequestBuilder }
|
|
||||||
|
|
||||||
// Request returns AccessPackageRequest
|
|
||||||
func (b *AccessPackageRequestBuilder) Request() *AccessPackageRequest {
|
|
||||||
return &AccessPackageRequest{
|
|
||||||
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessPackageRequest is request for AccessPackage
|
|
||||||
type AccessPackageRequest struct{ BaseRequest }
|
|
||||||
|
|
||||||
// Get performs GET request for AccessPackage
|
|
||||||
func (r *AccessPackageRequest) Get(ctx context.Context) (resObj *AccessPackage, err error) {
|
|
||||||
var query string
|
|
||||||
if r.query != nil {
|
|
||||||
query = "?" + r.query.Encode()
|
|
||||||
}
|
|
||||||
err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// Update performs PATCH request for AccessPackage
|
|
||||||
func (r *AccessPackageRequest) Update(ctx context.Context, reqObj *AccessPackage) error {
|
|
||||||
return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Delete performs DELETE request for AccessPackage
|
|
||||||
func (r *AccessPackageRequest) Delete(ctx context.Context) error {
|
|
||||||
return r.JSONRequest(ctx, "DELETE", "", nil, nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessPackageAssignmentPolicies returns request builder for AccessPackageAssignmentPolicy collection
|
|
||||||
func (b *AccessPackageRequestBuilder) AccessPackageAssignmentPolicies() *AccessPackageAccessPackageAssignmentPoliciesCollectionRequestBuilder {
|
|
||||||
bb := &AccessPackageAccessPackageAssignmentPoliciesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
|
|
||||||
bb.baseURL += "/accessPackageAssignmentPolicies"
|
|
||||||
return bb
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessPackageAccessPackageAssignmentPoliciesCollectionRequestBuilder is request builder for AccessPackageAssignmentPolicy collection
|
|
||||||
type AccessPackageAccessPackageAssignmentPoliciesCollectionRequestBuilder struct{ BaseRequestBuilder }
|
|
||||||
|
|
||||||
// Request returns request for AccessPackageAssignmentPolicy collection
|
|
||||||
func (b *AccessPackageAccessPackageAssignmentPoliciesCollectionRequestBuilder) Request() *AccessPackageAccessPackageAssignmentPoliciesCollectionRequest {
|
|
||||||
return &AccessPackageAccessPackageAssignmentPoliciesCollectionRequest{
|
|
||||||
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// ID returns request builder for AccessPackageAssignmentPolicy item
|
|
||||||
func (b *AccessPackageAccessPackageAssignmentPoliciesCollectionRequestBuilder) ID(id string) *AccessPackageAssignmentPolicyRequestBuilder {
|
|
||||||
bb := &AccessPackageAssignmentPolicyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
|
|
||||||
bb.baseURL += "/" + id
|
|
||||||
return bb
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessPackageAccessPackageAssignmentPoliciesCollectionRequest is request for AccessPackageAssignmentPolicy collection
|
|
||||||
type AccessPackageAccessPackageAssignmentPoliciesCollectionRequest struct{ BaseRequest }
|
|
||||||
|
|
||||||
// Paging perfoms paging operation for AccessPackageAssignmentPolicy collection
|
|
||||||
func (r *AccessPackageAccessPackageAssignmentPoliciesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AccessPackageAssignmentPolicy, error) {
|
|
||||||
req, err := r.NewJSONRequest(method, path, obj)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if ctx != nil {
|
|
||||||
req = req.WithContext(ctx)
|
|
||||||
}
|
|
||||||
res, err := r.client.Do(req)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
var values []AccessPackageAssignmentPolicy
|
|
||||||
for {
|
|
||||||
defer res.Body.Close()
|
|
||||||
if res.StatusCode != http.StatusOK {
|
|
||||||
b, _ := ioutil.ReadAll(res.Body)
|
|
||||||
errRes := &ErrorResponse{Response: res}
|
|
||||||
err := jsonx.Unmarshal(b, errRes)
|
|
||||||
if err != nil {
|
|
||||||
return nil, fmt.Errorf("%s: %s", res.Status, string(b))
|
|
||||||
}
|
|
||||||
return nil, errRes
|
|
||||||
}
|
|
||||||
var (
|
|
||||||
paging Paging
|
|
||||||
value []AccessPackageAssignmentPolicy
|
|
||||||
)
|
|
||||||
err := jsonx.NewDecoder(res.Body).Decode(&paging)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
err = jsonx.Unmarshal(paging.Value, &value)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
values = append(values, value...)
|
|
||||||
if len(paging.NextLink) == 0 {
|
|
||||||
return values, nil
|
|
||||||
}
|
|
||||||
req, err = http.NewRequest("GET", paging.NextLink, nil)
|
|
||||||
if ctx != nil {
|
|
||||||
req = req.WithContext(ctx)
|
|
||||||
}
|
|
||||||
res, err = r.client.Do(req)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Get performs GET request for AccessPackageAssignmentPolicy collection
|
|
||||||
func (r *AccessPackageAccessPackageAssignmentPoliciesCollectionRequest) Get(ctx context.Context) ([]AccessPackageAssignmentPolicy, error) {
|
|
||||||
var query string
|
|
||||||
if r.query != nil {
|
|
||||||
query = "?" + r.query.Encode()
|
|
||||||
}
|
|
||||||
return r.Paging(ctx, "GET", query, nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Add performs POST request for AccessPackageAssignmentPolicy collection
|
|
||||||
func (r *AccessPackageAccessPackageAssignmentPoliciesCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageAssignmentPolicy) (resObj *AccessPackageAssignmentPolicy, err error) {
|
|
||||||
err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessPackageCatalog is navigation property
|
|
||||||
func (b *AccessPackageRequestBuilder) AccessPackageCatalog() *AccessPackageCatalogRequestBuilder {
|
|
||||||
bb := &AccessPackageCatalogRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
|
|
||||||
bb.baseURL += "/accessPackageCatalog"
|
|
||||||
return bb
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessPackageResourceRoleScopes returns request builder for AccessPackageResourceRoleScope collection
|
|
||||||
func (b *AccessPackageRequestBuilder) AccessPackageResourceRoleScopes() *AccessPackageAccessPackageResourceRoleScopesCollectionRequestBuilder {
|
|
||||||
bb := &AccessPackageAccessPackageResourceRoleScopesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
|
|
||||||
bb.baseURL += "/accessPackageResourceRoleScopes"
|
|
||||||
return bb
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessPackageAccessPackageResourceRoleScopesCollectionRequestBuilder is request builder for AccessPackageResourceRoleScope collection
|
|
||||||
type AccessPackageAccessPackageResourceRoleScopesCollectionRequestBuilder struct{ BaseRequestBuilder }
|
|
||||||
|
|
||||||
// Request returns request for AccessPackageResourceRoleScope collection
|
|
||||||
func (b *AccessPackageAccessPackageResourceRoleScopesCollectionRequestBuilder) Request() *AccessPackageAccessPackageResourceRoleScopesCollectionRequest {
|
|
||||||
return &AccessPackageAccessPackageResourceRoleScopesCollectionRequest{
|
|
||||||
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// ID returns request builder for AccessPackageResourceRoleScope item
|
|
||||||
func (b *AccessPackageAccessPackageResourceRoleScopesCollectionRequestBuilder) ID(id string) *AccessPackageResourceRoleScopeRequestBuilder {
|
|
||||||
bb := &AccessPackageResourceRoleScopeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
|
|
||||||
bb.baseURL += "/" + id
|
|
||||||
return bb
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessPackageAccessPackageResourceRoleScopesCollectionRequest is request for AccessPackageResourceRoleScope collection
|
|
||||||
type AccessPackageAccessPackageResourceRoleScopesCollectionRequest struct{ BaseRequest }
|
|
||||||
|
|
||||||
// Paging perfoms paging operation for AccessPackageResourceRoleScope collection
|
|
||||||
func (r *AccessPackageAccessPackageResourceRoleScopesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AccessPackageResourceRoleScope, error) {
|
|
||||||
req, err := r.NewJSONRequest(method, path, obj)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if ctx != nil {
|
|
||||||
req = req.WithContext(ctx)
|
|
||||||
}
|
|
||||||
res, err := r.client.Do(req)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
var values []AccessPackageResourceRoleScope
|
|
||||||
for {
|
|
||||||
defer res.Body.Close()
|
|
||||||
if res.StatusCode != http.StatusOK {
|
|
||||||
b, _ := ioutil.ReadAll(res.Body)
|
|
||||||
errRes := &ErrorResponse{Response: res}
|
|
||||||
err := jsonx.Unmarshal(b, errRes)
|
|
||||||
if err != nil {
|
|
||||||
return nil, fmt.Errorf("%s: %s", res.Status, string(b))
|
|
||||||
}
|
|
||||||
return nil, errRes
|
|
||||||
}
|
|
||||||
var (
|
|
||||||
paging Paging
|
|
||||||
value []AccessPackageResourceRoleScope
|
|
||||||
)
|
|
||||||
err := jsonx.NewDecoder(res.Body).Decode(&paging)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
err = jsonx.Unmarshal(paging.Value, &value)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
values = append(values, value...)
|
|
||||||
if len(paging.NextLink) == 0 {
|
|
||||||
return values, nil
|
|
||||||
}
|
|
||||||
req, err = http.NewRequest("GET", paging.NextLink, nil)
|
|
||||||
if ctx != nil {
|
|
||||||
req = req.WithContext(ctx)
|
|
||||||
}
|
|
||||||
res, err = r.client.Do(req)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Get performs GET request for AccessPackageResourceRoleScope collection
|
|
||||||
func (r *AccessPackageAccessPackageResourceRoleScopesCollectionRequest) Get(ctx context.Context) ([]AccessPackageResourceRoleScope, error) {
|
|
||||||
var query string
|
|
||||||
if r.query != nil {
|
|
||||||
query = "?" + r.query.Encode()
|
|
||||||
}
|
|
||||||
return r.Paging(ctx, "GET", query, nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Add performs POST request for AccessPackageResourceRoleScope collection
|
|
||||||
func (r *AccessPackageAccessPackageResourceRoleScopesCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageResourceRoleScope) (resObj *AccessPackageResourceRoleScope, err error) {
|
|
||||||
err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
|
|
||||||
return
|
|
||||||
}
|
|
33
vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageResourceModel.go
generated
vendored
33
vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageResourceModel.go
generated
vendored
@ -1,33 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
import "time"
|
|
||||||
|
|
||||||
// AccessPackageResource undocumented
|
|
||||||
type AccessPackageResource struct {
|
|
||||||
// Entity is the base model of AccessPackageResource
|
|
||||||
Entity
|
|
||||||
// DisplayName undocumented
|
|
||||||
DisplayName *string `json:"displayName,omitempty"`
|
|
||||||
// Description undocumented
|
|
||||||
Description *string `json:"description,omitempty"`
|
|
||||||
// URL undocumented
|
|
||||||
URL *string `json:"url,omitempty"`
|
|
||||||
// ResourceType undocumented
|
|
||||||
ResourceType *string `json:"resourceType,omitempty"`
|
|
||||||
// OriginID undocumented
|
|
||||||
OriginID *string `json:"originId,omitempty"`
|
|
||||||
// OriginSystem undocumented
|
|
||||||
OriginSystem *string `json:"originSystem,omitempty"`
|
|
||||||
// IsPendingOnboarding undocumented
|
|
||||||
IsPendingOnboarding *bool `json:"isPendingOnboarding,omitempty"`
|
|
||||||
// AddedBy undocumented
|
|
||||||
AddedBy *string `json:"addedBy,omitempty"`
|
|
||||||
// AddedOn undocumented
|
|
||||||
AddedOn *time.Time `json:"addedOn,omitempty"`
|
|
||||||
// AccessPackageResourceScopes undocumented
|
|
||||||
AccessPackageResourceScopes []AccessPackageResourceScope `json:"accessPackageResourceScopes,omitempty"`
|
|
||||||
// AccessPackageResourceRoles undocumented
|
|
||||||
AccessPackageResourceRoles []AccessPackageResourceRole `json:"accessPackageResourceRoles,omitempty"`
|
|
||||||
}
|
|
233
vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageResourceRequest.go
generated
vendored
233
vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageResourceRequest.go
generated
vendored
@ -1,233 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
"fmt"
|
|
||||||
"io/ioutil"
|
|
||||||
"net/http"
|
|
||||||
|
|
||||||
"github.com/matterbridge/msgraph.go/jsonx"
|
|
||||||
)
|
|
||||||
|
|
||||||
// AccessPackageResourceRequestBuilder is request builder for AccessPackageResource
|
|
||||||
type AccessPackageResourceRequestBuilder struct{ BaseRequestBuilder }
|
|
||||||
|
|
||||||
// Request returns AccessPackageResourceRequest
|
|
||||||
func (b *AccessPackageResourceRequestBuilder) Request() *AccessPackageResourceRequest {
|
|
||||||
return &AccessPackageResourceRequest{
|
|
||||||
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessPackageResourceRequest is request for AccessPackageResource
|
|
||||||
type AccessPackageResourceRequest struct{ BaseRequest }
|
|
||||||
|
|
||||||
// Get performs GET request for AccessPackageResource
|
|
||||||
func (r *AccessPackageResourceRequest) Get(ctx context.Context) (resObj *AccessPackageResource, err error) {
|
|
||||||
var query string
|
|
||||||
if r.query != nil {
|
|
||||||
query = "?" + r.query.Encode()
|
|
||||||
}
|
|
||||||
err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// Update performs PATCH request for AccessPackageResource
|
|
||||||
func (r *AccessPackageResourceRequest) Update(ctx context.Context, reqObj *AccessPackageResource) error {
|
|
||||||
return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Delete performs DELETE request for AccessPackageResource
|
|
||||||
func (r *AccessPackageResourceRequest) Delete(ctx context.Context) error {
|
|
||||||
return r.JSONRequest(ctx, "DELETE", "", nil, nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessPackageResourceRoles returns request builder for AccessPackageResourceRole collection
|
|
||||||
func (b *AccessPackageResourceRequestBuilder) AccessPackageResourceRoles() *AccessPackageResourceAccessPackageResourceRolesCollectionRequestBuilder {
|
|
||||||
bb := &AccessPackageResourceAccessPackageResourceRolesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
|
|
||||||
bb.baseURL += "/accessPackageResourceRoles"
|
|
||||||
return bb
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessPackageResourceAccessPackageResourceRolesCollectionRequestBuilder is request builder for AccessPackageResourceRole collection
|
|
||||||
type AccessPackageResourceAccessPackageResourceRolesCollectionRequestBuilder struct{ BaseRequestBuilder }
|
|
||||||
|
|
||||||
// Request returns request for AccessPackageResourceRole collection
|
|
||||||
func (b *AccessPackageResourceAccessPackageResourceRolesCollectionRequestBuilder) Request() *AccessPackageResourceAccessPackageResourceRolesCollectionRequest {
|
|
||||||
return &AccessPackageResourceAccessPackageResourceRolesCollectionRequest{
|
|
||||||
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// ID returns request builder for AccessPackageResourceRole item
|
|
||||||
func (b *AccessPackageResourceAccessPackageResourceRolesCollectionRequestBuilder) ID(id string) *AccessPackageResourceRoleRequestBuilder {
|
|
||||||
bb := &AccessPackageResourceRoleRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
|
|
||||||
bb.baseURL += "/" + id
|
|
||||||
return bb
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessPackageResourceAccessPackageResourceRolesCollectionRequest is request for AccessPackageResourceRole collection
|
|
||||||
type AccessPackageResourceAccessPackageResourceRolesCollectionRequest struct{ BaseRequest }
|
|
||||||
|
|
||||||
// Paging perfoms paging operation for AccessPackageResourceRole collection
|
|
||||||
func (r *AccessPackageResourceAccessPackageResourceRolesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AccessPackageResourceRole, error) {
|
|
||||||
req, err := r.NewJSONRequest(method, path, obj)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if ctx != nil {
|
|
||||||
req = req.WithContext(ctx)
|
|
||||||
}
|
|
||||||
res, err := r.client.Do(req)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
var values []AccessPackageResourceRole
|
|
||||||
for {
|
|
||||||
defer res.Body.Close()
|
|
||||||
if res.StatusCode != http.StatusOK {
|
|
||||||
b, _ := ioutil.ReadAll(res.Body)
|
|
||||||
errRes := &ErrorResponse{Response: res}
|
|
||||||
err := jsonx.Unmarshal(b, errRes)
|
|
||||||
if err != nil {
|
|
||||||
return nil, fmt.Errorf("%s: %s", res.Status, string(b))
|
|
||||||
}
|
|
||||||
return nil, errRes
|
|
||||||
}
|
|
||||||
var (
|
|
||||||
paging Paging
|
|
||||||
value []AccessPackageResourceRole
|
|
||||||
)
|
|
||||||
err := jsonx.NewDecoder(res.Body).Decode(&paging)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
err = jsonx.Unmarshal(paging.Value, &value)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
values = append(values, value...)
|
|
||||||
if len(paging.NextLink) == 0 {
|
|
||||||
return values, nil
|
|
||||||
}
|
|
||||||
req, err = http.NewRequest("GET", paging.NextLink, nil)
|
|
||||||
if ctx != nil {
|
|
||||||
req = req.WithContext(ctx)
|
|
||||||
}
|
|
||||||
res, err = r.client.Do(req)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Get performs GET request for AccessPackageResourceRole collection
|
|
||||||
func (r *AccessPackageResourceAccessPackageResourceRolesCollectionRequest) Get(ctx context.Context) ([]AccessPackageResourceRole, error) {
|
|
||||||
var query string
|
|
||||||
if r.query != nil {
|
|
||||||
query = "?" + r.query.Encode()
|
|
||||||
}
|
|
||||||
return r.Paging(ctx, "GET", query, nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Add performs POST request for AccessPackageResourceRole collection
|
|
||||||
func (r *AccessPackageResourceAccessPackageResourceRolesCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageResourceRole) (resObj *AccessPackageResourceRole, err error) {
|
|
||||||
err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessPackageResourceScopes returns request builder for AccessPackageResourceScope collection
|
|
||||||
func (b *AccessPackageResourceRequestBuilder) AccessPackageResourceScopes() *AccessPackageResourceAccessPackageResourceScopesCollectionRequestBuilder {
|
|
||||||
bb := &AccessPackageResourceAccessPackageResourceScopesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
|
|
||||||
bb.baseURL += "/accessPackageResourceScopes"
|
|
||||||
return bb
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessPackageResourceAccessPackageResourceScopesCollectionRequestBuilder is request builder for AccessPackageResourceScope collection
|
|
||||||
type AccessPackageResourceAccessPackageResourceScopesCollectionRequestBuilder struct{ BaseRequestBuilder }
|
|
||||||
|
|
||||||
// Request returns request for AccessPackageResourceScope collection
|
|
||||||
func (b *AccessPackageResourceAccessPackageResourceScopesCollectionRequestBuilder) Request() *AccessPackageResourceAccessPackageResourceScopesCollectionRequest {
|
|
||||||
return &AccessPackageResourceAccessPackageResourceScopesCollectionRequest{
|
|
||||||
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// ID returns request builder for AccessPackageResourceScope item
|
|
||||||
func (b *AccessPackageResourceAccessPackageResourceScopesCollectionRequestBuilder) ID(id string) *AccessPackageResourceScopeRequestBuilder {
|
|
||||||
bb := &AccessPackageResourceScopeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
|
|
||||||
bb.baseURL += "/" + id
|
|
||||||
return bb
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessPackageResourceAccessPackageResourceScopesCollectionRequest is request for AccessPackageResourceScope collection
|
|
||||||
type AccessPackageResourceAccessPackageResourceScopesCollectionRequest struct{ BaseRequest }
|
|
||||||
|
|
||||||
// Paging perfoms paging operation for AccessPackageResourceScope collection
|
|
||||||
func (r *AccessPackageResourceAccessPackageResourceScopesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AccessPackageResourceScope, error) {
|
|
||||||
req, err := r.NewJSONRequest(method, path, obj)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if ctx != nil {
|
|
||||||
req = req.WithContext(ctx)
|
|
||||||
}
|
|
||||||
res, err := r.client.Do(req)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
var values []AccessPackageResourceScope
|
|
||||||
for {
|
|
||||||
defer res.Body.Close()
|
|
||||||
if res.StatusCode != http.StatusOK {
|
|
||||||
b, _ := ioutil.ReadAll(res.Body)
|
|
||||||
errRes := &ErrorResponse{Response: res}
|
|
||||||
err := jsonx.Unmarshal(b, errRes)
|
|
||||||
if err != nil {
|
|
||||||
return nil, fmt.Errorf("%s: %s", res.Status, string(b))
|
|
||||||
}
|
|
||||||
return nil, errRes
|
|
||||||
}
|
|
||||||
var (
|
|
||||||
paging Paging
|
|
||||||
value []AccessPackageResourceScope
|
|
||||||
)
|
|
||||||
err := jsonx.NewDecoder(res.Body).Decode(&paging)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
err = jsonx.Unmarshal(paging.Value, &value)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
values = append(values, value...)
|
|
||||||
if len(paging.NextLink) == 0 {
|
|
||||||
return values, nil
|
|
||||||
}
|
|
||||||
req, err = http.NewRequest("GET", paging.NextLink, nil)
|
|
||||||
if ctx != nil {
|
|
||||||
req = req.WithContext(ctx)
|
|
||||||
}
|
|
||||||
res, err = r.client.Do(req)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Get performs GET request for AccessPackageResourceScope collection
|
|
||||||
func (r *AccessPackageResourceAccessPackageResourceScopesCollectionRequest) Get(ctx context.Context) ([]AccessPackageResourceScope, error) {
|
|
||||||
var query string
|
|
||||||
if r.query != nil {
|
|
||||||
query = "?" + r.query.Encode()
|
|
||||||
}
|
|
||||||
return r.Paging(ctx, "GET", query, nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Add performs POST request for AccessPackageResourceScope collection
|
|
||||||
func (r *AccessPackageResourceAccessPackageResourceScopesCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageResourceScope) (resObj *AccessPackageResourceScope, err error) {
|
|
||||||
err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
|
|
||||||
return
|
|
||||||
}
|
|
@ -1,31 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
import "time"
|
|
||||||
|
|
||||||
// AccessPackageResourceRequestObject undocumented
|
|
||||||
type AccessPackageResourceRequestObject struct {
|
|
||||||
// Entity is the base model of AccessPackageResourceRequestObject
|
|
||||||
Entity
|
|
||||||
// CatalogID undocumented
|
|
||||||
CatalogID *string `json:"catalogId,omitempty"`
|
|
||||||
// ExecuteImmediately undocumented
|
|
||||||
ExecuteImmediately *bool `json:"executeImmediately,omitempty"`
|
|
||||||
// IsValidationOnly undocumented
|
|
||||||
IsValidationOnly *bool `json:"isValidationOnly,omitempty"`
|
|
||||||
// RequestType undocumented
|
|
||||||
RequestType *string `json:"requestType,omitempty"`
|
|
||||||
// RequestState undocumented
|
|
||||||
RequestState *string `json:"requestState,omitempty"`
|
|
||||||
// RequestStatus undocumented
|
|
||||||
RequestStatus *string `json:"requestStatus,omitempty"`
|
|
||||||
// Justification undocumented
|
|
||||||
Justification *string `json:"justification,omitempty"`
|
|
||||||
// ExpirationDateTime undocumented
|
|
||||||
ExpirationDateTime *time.Time `json:"expirationDateTime,omitempty"`
|
|
||||||
// AccessPackageResource undocumented
|
|
||||||
AccessPackageResource *AccessPackageResource `json:"accessPackageResource,omitempty"`
|
|
||||||
// Requestor undocumented
|
|
||||||
Requestor *AccessPackageSubject `json:"requestor,omitempty"`
|
|
||||||
}
|
|
@ -1,52 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
import "context"
|
|
||||||
|
|
||||||
// AccessPackageResourceRequestObjectRequestBuilder is request builder for AccessPackageResourceRequestObject
|
|
||||||
type AccessPackageResourceRequestObjectRequestBuilder struct{ BaseRequestBuilder }
|
|
||||||
|
|
||||||
// Request returns AccessPackageResourceRequestObjectRequest
|
|
||||||
func (b *AccessPackageResourceRequestObjectRequestBuilder) Request() *AccessPackageResourceRequestObjectRequest {
|
|
||||||
return &AccessPackageResourceRequestObjectRequest{
|
|
||||||
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessPackageResourceRequestObjectRequest is request for AccessPackageResourceRequestObject
|
|
||||||
type AccessPackageResourceRequestObjectRequest struct{ BaseRequest }
|
|
||||||
|
|
||||||
// Get performs GET request for AccessPackageResourceRequestObject
|
|
||||||
func (r *AccessPackageResourceRequestObjectRequest) Get(ctx context.Context) (resObj *AccessPackageResourceRequestObject, err error) {
|
|
||||||
var query string
|
|
||||||
if r.query != nil {
|
|
||||||
query = "?" + r.query.Encode()
|
|
||||||
}
|
|
||||||
err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// Update performs PATCH request for AccessPackageResourceRequestObject
|
|
||||||
func (r *AccessPackageResourceRequestObjectRequest) Update(ctx context.Context, reqObj *AccessPackageResourceRequestObject) error {
|
|
||||||
return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Delete performs DELETE request for AccessPackageResourceRequestObject
|
|
||||||
func (r *AccessPackageResourceRequestObjectRequest) Delete(ctx context.Context) error {
|
|
||||||
return r.JSONRequest(ctx, "DELETE", "", nil, nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessPackageResource is navigation property
|
|
||||||
func (b *AccessPackageResourceRequestObjectRequestBuilder) AccessPackageResource() *AccessPackageResourceRequestBuilder {
|
|
||||||
bb := &AccessPackageResourceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
|
|
||||||
bb.baseURL += "/accessPackageResource"
|
|
||||||
return bb
|
|
||||||
}
|
|
||||||
|
|
||||||
// Requestor is navigation property
|
|
||||||
func (b *AccessPackageResourceRequestObjectRequestBuilder) Requestor() *AccessPackageSubjectRequestBuilder {
|
|
||||||
bb := &AccessPackageSubjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
|
|
||||||
bb.baseURL += "/requestor"
|
|
||||||
return bb
|
|
||||||
}
|
|
19
vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageResourceRoleModel.go
generated
vendored
19
vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageResourceRoleModel.go
generated
vendored
@ -1,19 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
// AccessPackageResourceRole undocumented
|
|
||||||
type AccessPackageResourceRole struct {
|
|
||||||
// Entity is the base model of AccessPackageResourceRole
|
|
||||||
Entity
|
|
||||||
// DisplayName undocumented
|
|
||||||
DisplayName *string `json:"displayName,omitempty"`
|
|
||||||
// Description undocumented
|
|
||||||
Description *string `json:"description,omitempty"`
|
|
||||||
// OriginID undocumented
|
|
||||||
OriginID *string `json:"originId,omitempty"`
|
|
||||||
// OriginSystem undocumented
|
|
||||||
OriginSystem *string `json:"originSystem,omitempty"`
|
|
||||||
// AccessPackageResource undocumented
|
|
||||||
AccessPackageResource *AccessPackageResource `json:"accessPackageResource,omitempty"`
|
|
||||||
}
|
|
45
vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageResourceRoleRequest.go
generated
vendored
45
vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageResourceRoleRequest.go
generated
vendored
@ -1,45 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
import "context"
|
|
||||||
|
|
||||||
// AccessPackageResourceRoleRequestBuilder is request builder for AccessPackageResourceRole
|
|
||||||
type AccessPackageResourceRoleRequestBuilder struct{ BaseRequestBuilder }
|
|
||||||
|
|
||||||
// Request returns AccessPackageResourceRoleRequest
|
|
||||||
func (b *AccessPackageResourceRoleRequestBuilder) Request() *AccessPackageResourceRoleRequest {
|
|
||||||
return &AccessPackageResourceRoleRequest{
|
|
||||||
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessPackageResourceRoleRequest is request for AccessPackageResourceRole
|
|
||||||
type AccessPackageResourceRoleRequest struct{ BaseRequest }
|
|
||||||
|
|
||||||
// Get performs GET request for AccessPackageResourceRole
|
|
||||||
func (r *AccessPackageResourceRoleRequest) Get(ctx context.Context) (resObj *AccessPackageResourceRole, err error) {
|
|
||||||
var query string
|
|
||||||
if r.query != nil {
|
|
||||||
query = "?" + r.query.Encode()
|
|
||||||
}
|
|
||||||
err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// Update performs PATCH request for AccessPackageResourceRole
|
|
||||||
func (r *AccessPackageResourceRoleRequest) Update(ctx context.Context, reqObj *AccessPackageResourceRole) error {
|
|
||||||
return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Delete performs DELETE request for AccessPackageResourceRole
|
|
||||||
func (r *AccessPackageResourceRoleRequest) Delete(ctx context.Context) error {
|
|
||||||
return r.JSONRequest(ctx, "DELETE", "", nil, nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessPackageResource is navigation property
|
|
||||||
func (b *AccessPackageResourceRoleRequestBuilder) AccessPackageResource() *AccessPackageResourceRequestBuilder {
|
|
||||||
bb := &AccessPackageResourceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
|
|
||||||
bb.baseURL += "/accessPackageResource"
|
|
||||||
return bb
|
|
||||||
}
|
|
23
vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageResourceRoleScopeModel.go
generated
vendored
23
vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageResourceRoleScopeModel.go
generated
vendored
@ -1,23 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
import "time"
|
|
||||||
|
|
||||||
// AccessPackageResourceRoleScope undocumented
|
|
||||||
type AccessPackageResourceRoleScope struct {
|
|
||||||
// Entity is the base model of AccessPackageResourceRoleScope
|
|
||||||
Entity
|
|
||||||
// CreatedBy undocumented
|
|
||||||
CreatedBy *string `json:"createdBy,omitempty"`
|
|
||||||
// CreatedDateTime undocumented
|
|
||||||
CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
|
|
||||||
// ModifiedBy undocumented
|
|
||||||
ModifiedBy *string `json:"modifiedBy,omitempty"`
|
|
||||||
// ModifiedDateTime undocumented
|
|
||||||
ModifiedDateTime *time.Time `json:"modifiedDateTime,omitempty"`
|
|
||||||
// AccessPackageResourceRole undocumented
|
|
||||||
AccessPackageResourceRole *AccessPackageResourceRole `json:"accessPackageResourceRole,omitempty"`
|
|
||||||
// AccessPackageResourceScope undocumented
|
|
||||||
AccessPackageResourceScope *AccessPackageResourceScope `json:"accessPackageResourceScope,omitempty"`
|
|
||||||
}
|
|
52
vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageResourceRoleScopeRequest.go
generated
vendored
52
vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageResourceRoleScopeRequest.go
generated
vendored
@ -1,52 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
import "context"
|
|
||||||
|
|
||||||
// AccessPackageResourceRoleScopeRequestBuilder is request builder for AccessPackageResourceRoleScope
|
|
||||||
type AccessPackageResourceRoleScopeRequestBuilder struct{ BaseRequestBuilder }
|
|
||||||
|
|
||||||
// Request returns AccessPackageResourceRoleScopeRequest
|
|
||||||
func (b *AccessPackageResourceRoleScopeRequestBuilder) Request() *AccessPackageResourceRoleScopeRequest {
|
|
||||||
return &AccessPackageResourceRoleScopeRequest{
|
|
||||||
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessPackageResourceRoleScopeRequest is request for AccessPackageResourceRoleScope
|
|
||||||
type AccessPackageResourceRoleScopeRequest struct{ BaseRequest }
|
|
||||||
|
|
||||||
// Get performs GET request for AccessPackageResourceRoleScope
|
|
||||||
func (r *AccessPackageResourceRoleScopeRequest) Get(ctx context.Context) (resObj *AccessPackageResourceRoleScope, err error) {
|
|
||||||
var query string
|
|
||||||
if r.query != nil {
|
|
||||||
query = "?" + r.query.Encode()
|
|
||||||
}
|
|
||||||
err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// Update performs PATCH request for AccessPackageResourceRoleScope
|
|
||||||
func (r *AccessPackageResourceRoleScopeRequest) Update(ctx context.Context, reqObj *AccessPackageResourceRoleScope) error {
|
|
||||||
return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Delete performs DELETE request for AccessPackageResourceRoleScope
|
|
||||||
func (r *AccessPackageResourceRoleScopeRequest) Delete(ctx context.Context) error {
|
|
||||||
return r.JSONRequest(ctx, "DELETE", "", nil, nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessPackageResourceRole is navigation property
|
|
||||||
func (b *AccessPackageResourceRoleScopeRequestBuilder) AccessPackageResourceRole() *AccessPackageResourceRoleRequestBuilder {
|
|
||||||
bb := &AccessPackageResourceRoleRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
|
|
||||||
bb.baseURL += "/accessPackageResourceRole"
|
|
||||||
return bb
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessPackageResourceScope is navigation property
|
|
||||||
func (b *AccessPackageResourceRoleScopeRequestBuilder) AccessPackageResourceScope() *AccessPackageResourceScopeRequestBuilder {
|
|
||||||
bb := &AccessPackageResourceScopeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
|
|
||||||
bb.baseURL += "/accessPackageResourceScope"
|
|
||||||
return bb
|
|
||||||
}
|
|
25
vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageResourceScopeModel.go
generated
vendored
25
vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageResourceScopeModel.go
generated
vendored
@ -1,25 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
// AccessPackageResourceScope undocumented
|
|
||||||
type AccessPackageResourceScope struct {
|
|
||||||
// Entity is the base model of AccessPackageResourceScope
|
|
||||||
Entity
|
|
||||||
// DisplayName undocumented
|
|
||||||
DisplayName *string `json:"displayName,omitempty"`
|
|
||||||
// Description undocumented
|
|
||||||
Description *string `json:"description,omitempty"`
|
|
||||||
// OriginID undocumented
|
|
||||||
OriginID *string `json:"originId,omitempty"`
|
|
||||||
// OriginSystem undocumented
|
|
||||||
OriginSystem *string `json:"originSystem,omitempty"`
|
|
||||||
// RoleOriginID undocumented
|
|
||||||
RoleOriginID *string `json:"roleOriginId,omitempty"`
|
|
||||||
// IsRootScope undocumented
|
|
||||||
IsRootScope *bool `json:"isRootScope,omitempty"`
|
|
||||||
// URL undocumented
|
|
||||||
URL *string `json:"url,omitempty"`
|
|
||||||
// AccessPackageResource undocumented
|
|
||||||
AccessPackageResource *AccessPackageResource `json:"accessPackageResource,omitempty"`
|
|
||||||
}
|
|
45
vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageResourceScopeRequest.go
generated
vendored
45
vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageResourceScopeRequest.go
generated
vendored
@ -1,45 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
import "context"
|
|
||||||
|
|
||||||
// AccessPackageResourceScopeRequestBuilder is request builder for AccessPackageResourceScope
|
|
||||||
type AccessPackageResourceScopeRequestBuilder struct{ BaseRequestBuilder }
|
|
||||||
|
|
||||||
// Request returns AccessPackageResourceScopeRequest
|
|
||||||
func (b *AccessPackageResourceScopeRequestBuilder) Request() *AccessPackageResourceScopeRequest {
|
|
||||||
return &AccessPackageResourceScopeRequest{
|
|
||||||
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessPackageResourceScopeRequest is request for AccessPackageResourceScope
|
|
||||||
type AccessPackageResourceScopeRequest struct{ BaseRequest }
|
|
||||||
|
|
||||||
// Get performs GET request for AccessPackageResourceScope
|
|
||||||
func (r *AccessPackageResourceScopeRequest) Get(ctx context.Context) (resObj *AccessPackageResourceScope, err error) {
|
|
||||||
var query string
|
|
||||||
if r.query != nil {
|
|
||||||
query = "?" + r.query.Encode()
|
|
||||||
}
|
|
||||||
err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// Update performs PATCH request for AccessPackageResourceScope
|
|
||||||
func (r *AccessPackageResourceScopeRequest) Update(ctx context.Context, reqObj *AccessPackageResourceScope) error {
|
|
||||||
return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Delete performs DELETE request for AccessPackageResourceScope
|
|
||||||
func (r *AccessPackageResourceScopeRequest) Delete(ctx context.Context) error {
|
|
||||||
return r.JSONRequest(ctx, "DELETE", "", nil, nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessPackageResource is navigation property
|
|
||||||
func (b *AccessPackageResourceScopeRequestBuilder) AccessPackageResource() *AccessPackageResourceRequestBuilder {
|
|
||||||
bb := &AccessPackageResourceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
|
|
||||||
bb.baseURL += "/accessPackageResource"
|
|
||||||
return bb
|
|
||||||
}
|
|
23
vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageSubjectModel.go
generated
vendored
23
vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageSubjectModel.go
generated
vendored
@ -1,23 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
// AccessPackageSubject undocumented
|
|
||||||
type AccessPackageSubject struct {
|
|
||||||
// Entity is the base model of AccessPackageSubject
|
|
||||||
Entity
|
|
||||||
// ObjectID undocumented
|
|
||||||
ObjectID *string `json:"objectId,omitempty"`
|
|
||||||
// AltSecID undocumented
|
|
||||||
AltSecID *string `json:"altSecId,omitempty"`
|
|
||||||
// DisplayName undocumented
|
|
||||||
DisplayName *string `json:"displayName,omitempty"`
|
|
||||||
// PrincipalName undocumented
|
|
||||||
PrincipalName *string `json:"principalName,omitempty"`
|
|
||||||
// Email undocumented
|
|
||||||
Email *string `json:"email,omitempty"`
|
|
||||||
// OnPremisesSecurityIdentifier undocumented
|
|
||||||
OnPremisesSecurityIdentifier *string `json:"onPremisesSecurityIdentifier,omitempty"`
|
|
||||||
// Type undocumented
|
|
||||||
Type *string `json:"type,omitempty"`
|
|
||||||
}
|
|
38
vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageSubjectRequest.go
generated
vendored
38
vendor/github.com/matterbridge/msgraph.go/beta/AccessPackageSubjectRequest.go
generated
vendored
@ -1,38 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
import "context"
|
|
||||||
|
|
||||||
// AccessPackageSubjectRequestBuilder is request builder for AccessPackageSubject
|
|
||||||
type AccessPackageSubjectRequestBuilder struct{ BaseRequestBuilder }
|
|
||||||
|
|
||||||
// Request returns AccessPackageSubjectRequest
|
|
||||||
func (b *AccessPackageSubjectRequestBuilder) Request() *AccessPackageSubjectRequest {
|
|
||||||
return &AccessPackageSubjectRequest{
|
|
||||||
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessPackageSubjectRequest is request for AccessPackageSubject
|
|
||||||
type AccessPackageSubjectRequest struct{ BaseRequest }
|
|
||||||
|
|
||||||
// Get performs GET request for AccessPackageSubject
|
|
||||||
func (r *AccessPackageSubjectRequest) Get(ctx context.Context) (resObj *AccessPackageSubject, err error) {
|
|
||||||
var query string
|
|
||||||
if r.query != nil {
|
|
||||||
query = "?" + r.query.Encode()
|
|
||||||
}
|
|
||||||
err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// Update performs PATCH request for AccessPackageSubject
|
|
||||||
func (r *AccessPackageSubjectRequest) Update(ctx context.Context, reqObj *AccessPackageSubject) error {
|
|
||||||
return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Delete performs DELETE request for AccessPackageSubject
|
|
||||||
func (r *AccessPackageSubjectRequest) Delete(ctx context.Context) error {
|
|
||||||
return r.JSONRequest(ctx, "DELETE", "", nil, nil)
|
|
||||||
}
|
|
125
vendor/github.com/matterbridge/msgraph.go/beta/AccessReviewAction.go
generated
vendored
125
vendor/github.com/matterbridge/msgraph.go/beta/AccessReviewAction.go
generated
vendored
@ -1,125 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
import "context"
|
|
||||||
|
|
||||||
// AccessReviewStopRequestParameter undocumented
|
|
||||||
type AccessReviewStopRequestParameter struct {
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessReviewSendReminderRequestParameter undocumented
|
|
||||||
type AccessReviewSendReminderRequestParameter struct {
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessReviewResetDecisionsRequestParameter undocumented
|
|
||||||
type AccessReviewResetDecisionsRequestParameter struct {
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessReviewApplyDecisionsRequestParameter undocumented
|
|
||||||
type AccessReviewApplyDecisionsRequestParameter struct {
|
|
||||||
}
|
|
||||||
|
|
||||||
//
|
|
||||||
type AccessReviewStopRequestBuilder struct{ BaseRequestBuilder }
|
|
||||||
|
|
||||||
// Stop action undocumented
|
|
||||||
func (b *AccessReviewRequestBuilder) Stop(reqObj *AccessReviewStopRequestParameter) *AccessReviewStopRequestBuilder {
|
|
||||||
bb := &AccessReviewStopRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
|
|
||||||
bb.BaseRequestBuilder.baseURL += "/stop"
|
|
||||||
bb.BaseRequestBuilder.requestObject = reqObj
|
|
||||||
return bb
|
|
||||||
}
|
|
||||||
|
|
||||||
//
|
|
||||||
type AccessReviewStopRequest struct{ BaseRequest }
|
|
||||||
|
|
||||||
//
|
|
||||||
func (b *AccessReviewStopRequestBuilder) Request() *AccessReviewStopRequest {
|
|
||||||
return &AccessReviewStopRequest{
|
|
||||||
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
//
|
|
||||||
func (r *AccessReviewStopRequest) Post(ctx context.Context) error {
|
|
||||||
return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
//
|
|
||||||
type AccessReviewSendReminderRequestBuilder struct{ BaseRequestBuilder }
|
|
||||||
|
|
||||||
// SendReminder action undocumented
|
|
||||||
func (b *AccessReviewRequestBuilder) SendReminder(reqObj *AccessReviewSendReminderRequestParameter) *AccessReviewSendReminderRequestBuilder {
|
|
||||||
bb := &AccessReviewSendReminderRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
|
|
||||||
bb.BaseRequestBuilder.baseURL += "/sendReminder"
|
|
||||||
bb.BaseRequestBuilder.requestObject = reqObj
|
|
||||||
return bb
|
|
||||||
}
|
|
||||||
|
|
||||||
//
|
|
||||||
type AccessReviewSendReminderRequest struct{ BaseRequest }
|
|
||||||
|
|
||||||
//
|
|
||||||
func (b *AccessReviewSendReminderRequestBuilder) Request() *AccessReviewSendReminderRequest {
|
|
||||||
return &AccessReviewSendReminderRequest{
|
|
||||||
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
//
|
|
||||||
func (r *AccessReviewSendReminderRequest) Post(ctx context.Context) error {
|
|
||||||
return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
//
|
|
||||||
type AccessReviewResetDecisionsRequestBuilder struct{ BaseRequestBuilder }
|
|
||||||
|
|
||||||
// ResetDecisions action undocumented
|
|
||||||
func (b *AccessReviewRequestBuilder) ResetDecisions(reqObj *AccessReviewResetDecisionsRequestParameter) *AccessReviewResetDecisionsRequestBuilder {
|
|
||||||
bb := &AccessReviewResetDecisionsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
|
|
||||||
bb.BaseRequestBuilder.baseURL += "/resetDecisions"
|
|
||||||
bb.BaseRequestBuilder.requestObject = reqObj
|
|
||||||
return bb
|
|
||||||
}
|
|
||||||
|
|
||||||
//
|
|
||||||
type AccessReviewResetDecisionsRequest struct{ BaseRequest }
|
|
||||||
|
|
||||||
//
|
|
||||||
func (b *AccessReviewResetDecisionsRequestBuilder) Request() *AccessReviewResetDecisionsRequest {
|
|
||||||
return &AccessReviewResetDecisionsRequest{
|
|
||||||
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
//
|
|
||||||
func (r *AccessReviewResetDecisionsRequest) Post(ctx context.Context) error {
|
|
||||||
return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
//
|
|
||||||
type AccessReviewApplyDecisionsRequestBuilder struct{ BaseRequestBuilder }
|
|
||||||
|
|
||||||
// ApplyDecisions action undocumented
|
|
||||||
func (b *AccessReviewRequestBuilder) ApplyDecisions(reqObj *AccessReviewApplyDecisionsRequestParameter) *AccessReviewApplyDecisionsRequestBuilder {
|
|
||||||
bb := &AccessReviewApplyDecisionsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
|
|
||||||
bb.BaseRequestBuilder.baseURL += "/applyDecisions"
|
|
||||||
bb.BaseRequestBuilder.requestObject = reqObj
|
|
||||||
return bb
|
|
||||||
}
|
|
||||||
|
|
||||||
//
|
|
||||||
type AccessReviewApplyDecisionsRequest struct{ BaseRequest }
|
|
||||||
|
|
||||||
//
|
|
||||||
func (b *AccessReviewApplyDecisionsRequestBuilder) Request() *AccessReviewApplyDecisionsRequest {
|
|
||||||
return &AccessReviewApplyDecisionsRequest{
|
|
||||||
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
//
|
|
||||||
func (r *AccessReviewApplyDecisionsRequest) Post(ctx context.Context) error {
|
|
||||||
return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
|
|
||||||
}
|
|
29
vendor/github.com/matterbridge/msgraph.go/beta/AccessReviewDecisionModel.go
generated
vendored
29
vendor/github.com/matterbridge/msgraph.go/beta/AccessReviewDecisionModel.go
generated
vendored
@ -1,29 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
import "time"
|
|
||||||
|
|
||||||
// AccessReviewDecision undocumented
|
|
||||||
type AccessReviewDecision struct {
|
|
||||||
// Entity is the base model of AccessReviewDecision
|
|
||||||
Entity
|
|
||||||
// AccessReviewID undocumented
|
|
||||||
AccessReviewID *string `json:"accessReviewId,omitempty"`
|
|
||||||
// ReviewedBy undocumented
|
|
||||||
ReviewedBy *UserIdentity `json:"reviewedBy,omitempty"`
|
|
||||||
// ReviewedDateTime undocumented
|
|
||||||
ReviewedDateTime *time.Time `json:"reviewedDateTime,omitempty"`
|
|
||||||
// ReviewResult undocumented
|
|
||||||
ReviewResult *string `json:"reviewResult,omitempty"`
|
|
||||||
// Justification undocumented
|
|
||||||
Justification *string `json:"justification,omitempty"`
|
|
||||||
// AppliedBy undocumented
|
|
||||||
AppliedBy *UserIdentity `json:"appliedBy,omitempty"`
|
|
||||||
// AppliedDateTime undocumented
|
|
||||||
AppliedDateTime *time.Time `json:"appliedDateTime,omitempty"`
|
|
||||||
// ApplyResult undocumented
|
|
||||||
ApplyResult *string `json:"applyResult,omitempty"`
|
|
||||||
// AccessRecommendation undocumented
|
|
||||||
AccessRecommendation *string `json:"accessRecommendation,omitempty"`
|
|
||||||
}
|
|
38
vendor/github.com/matterbridge/msgraph.go/beta/AccessReviewDecisionRequest.go
generated
vendored
38
vendor/github.com/matterbridge/msgraph.go/beta/AccessReviewDecisionRequest.go
generated
vendored
@ -1,38 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
import "context"
|
|
||||||
|
|
||||||
// AccessReviewDecisionRequestBuilder is request builder for AccessReviewDecision
|
|
||||||
type AccessReviewDecisionRequestBuilder struct{ BaseRequestBuilder }
|
|
||||||
|
|
||||||
// Request returns AccessReviewDecisionRequest
|
|
||||||
func (b *AccessReviewDecisionRequestBuilder) Request() *AccessReviewDecisionRequest {
|
|
||||||
return &AccessReviewDecisionRequest{
|
|
||||||
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessReviewDecisionRequest is request for AccessReviewDecision
|
|
||||||
type AccessReviewDecisionRequest struct{ BaseRequest }
|
|
||||||
|
|
||||||
// Get performs GET request for AccessReviewDecision
|
|
||||||
func (r *AccessReviewDecisionRequest) Get(ctx context.Context) (resObj *AccessReviewDecision, err error) {
|
|
||||||
var query string
|
|
||||||
if r.query != nil {
|
|
||||||
query = "?" + r.query.Encode()
|
|
||||||
}
|
|
||||||
err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// Update performs PATCH request for AccessReviewDecision
|
|
||||||
func (r *AccessReviewDecisionRequest) Update(ctx context.Context, reqObj *AccessReviewDecision) error {
|
|
||||||
return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Delete performs DELETE request for AccessReviewDecision
|
|
||||||
func (r *AccessReviewDecisionRequest) Delete(ctx context.Context) error {
|
|
||||||
return r.JSONRequest(ctx, "DELETE", "", nil, nil)
|
|
||||||
}
|
|
39
vendor/github.com/matterbridge/msgraph.go/beta/AccessReviewModel.go
generated
vendored
39
vendor/github.com/matterbridge/msgraph.go/beta/AccessReviewModel.go
generated
vendored
@ -1,39 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
import "time"
|
|
||||||
|
|
||||||
// AccessReview undocumented
|
|
||||||
type AccessReview struct {
|
|
||||||
// Entity is the base model of AccessReview
|
|
||||||
Entity
|
|
||||||
// DisplayName undocumented
|
|
||||||
DisplayName *string `json:"displayName,omitempty"`
|
|
||||||
// StartDateTime undocumented
|
|
||||||
StartDateTime *time.Time `json:"startDateTime,omitempty"`
|
|
||||||
// EndDateTime undocumented
|
|
||||||
EndDateTime *time.Time `json:"endDateTime,omitempty"`
|
|
||||||
// Status undocumented
|
|
||||||
Status *string `json:"status,omitempty"`
|
|
||||||
// CreatedBy undocumented
|
|
||||||
CreatedBy *UserIdentity `json:"createdBy,omitempty"`
|
|
||||||
// BusinessFlowTemplateID undocumented
|
|
||||||
BusinessFlowTemplateID *string `json:"businessFlowTemplateId,omitempty"`
|
|
||||||
// ReviewerType undocumented
|
|
||||||
ReviewerType *string `json:"reviewerType,omitempty"`
|
|
||||||
// Description undocumented
|
|
||||||
Description *string `json:"description,omitempty"`
|
|
||||||
// Settings undocumented
|
|
||||||
Settings *AccessReviewSettings `json:"settings,omitempty"`
|
|
||||||
// ReviewedEntity undocumented
|
|
||||||
ReviewedEntity *Identity `json:"reviewedEntity,omitempty"`
|
|
||||||
// Reviewers undocumented
|
|
||||||
Reviewers []AccessReviewReviewer `json:"reviewers,omitempty"`
|
|
||||||
// Decisions undocumented
|
|
||||||
Decisions []AccessReviewDecision `json:"decisions,omitempty"`
|
|
||||||
// MyDecisions undocumented
|
|
||||||
MyDecisions []AccessReviewDecision `json:"myDecisions,omitempty"`
|
|
||||||
// Instances undocumented
|
|
||||||
Instances []AccessReview `json:"instances,omitempty"`
|
|
||||||
}
|
|
17
vendor/github.com/matterbridge/msgraph.go/beta/AccessReviewRecurrenceSettingsModel.go
generated
vendored
17
vendor/github.com/matterbridge/msgraph.go/beta/AccessReviewRecurrenceSettingsModel.go
generated
vendored
@ -1,17 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
// AccessReviewRecurrenceSettings undocumented
|
|
||||||
type AccessReviewRecurrenceSettings struct {
|
|
||||||
// Object is the base model of AccessReviewRecurrenceSettings
|
|
||||||
Object
|
|
||||||
// RecurrenceType undocumented
|
|
||||||
RecurrenceType *string `json:"recurrenceType,omitempty"`
|
|
||||||
// RecurrenceEndType undocumented
|
|
||||||
RecurrenceEndType *string `json:"recurrenceEndType,omitempty"`
|
|
||||||
// DurationInDays undocumented
|
|
||||||
DurationInDays *int `json:"durationInDays,omitempty"`
|
|
||||||
// RecurrenceCount undocumented
|
|
||||||
RecurrenceCount *int `json:"recurrenceCount,omitempty"`
|
|
||||||
}
|
|
421
vendor/github.com/matterbridge/msgraph.go/beta/AccessReviewRequest.go
generated
vendored
421
vendor/github.com/matterbridge/msgraph.go/beta/AccessReviewRequest.go
generated
vendored
@ -1,421 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
"fmt"
|
|
||||||
"io/ioutil"
|
|
||||||
"net/http"
|
|
||||||
|
|
||||||
"github.com/matterbridge/msgraph.go/jsonx"
|
|
||||||
)
|
|
||||||
|
|
||||||
// AccessReviewRequestBuilder is request builder for AccessReview
|
|
||||||
type AccessReviewRequestBuilder struct{ BaseRequestBuilder }
|
|
||||||
|
|
||||||
// Request returns AccessReviewRequest
|
|
||||||
func (b *AccessReviewRequestBuilder) Request() *AccessReviewRequest {
|
|
||||||
return &AccessReviewRequest{
|
|
||||||
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessReviewRequest is request for AccessReview
|
|
||||||
type AccessReviewRequest struct{ BaseRequest }
|
|
||||||
|
|
||||||
// Get performs GET request for AccessReview
|
|
||||||
func (r *AccessReviewRequest) Get(ctx context.Context) (resObj *AccessReview, err error) {
|
|
||||||
var query string
|
|
||||||
if r.query != nil {
|
|
||||||
query = "?" + r.query.Encode()
|
|
||||||
}
|
|
||||||
err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// Update performs PATCH request for AccessReview
|
|
||||||
func (r *AccessReviewRequest) Update(ctx context.Context, reqObj *AccessReview) error {
|
|
||||||
return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Delete performs DELETE request for AccessReview
|
|
||||||
func (r *AccessReviewRequest) Delete(ctx context.Context) error {
|
|
||||||
return r.JSONRequest(ctx, "DELETE", "", nil, nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Decisions returns request builder for AccessReviewDecision collection
|
|
||||||
func (b *AccessReviewRequestBuilder) Decisions() *AccessReviewDecisionsCollectionRequestBuilder {
|
|
||||||
bb := &AccessReviewDecisionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
|
|
||||||
bb.baseURL += "/decisions"
|
|
||||||
return bb
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessReviewDecisionsCollectionRequestBuilder is request builder for AccessReviewDecision collection
|
|
||||||
type AccessReviewDecisionsCollectionRequestBuilder struct{ BaseRequestBuilder }
|
|
||||||
|
|
||||||
// Request returns request for AccessReviewDecision collection
|
|
||||||
func (b *AccessReviewDecisionsCollectionRequestBuilder) Request() *AccessReviewDecisionsCollectionRequest {
|
|
||||||
return &AccessReviewDecisionsCollectionRequest{
|
|
||||||
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// ID returns request builder for AccessReviewDecision item
|
|
||||||
func (b *AccessReviewDecisionsCollectionRequestBuilder) ID(id string) *AccessReviewDecisionRequestBuilder {
|
|
||||||
bb := &AccessReviewDecisionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
|
|
||||||
bb.baseURL += "/" + id
|
|
||||||
return bb
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessReviewDecisionsCollectionRequest is request for AccessReviewDecision collection
|
|
||||||
type AccessReviewDecisionsCollectionRequest struct{ BaseRequest }
|
|
||||||
|
|
||||||
// Paging perfoms paging operation for AccessReviewDecision collection
|
|
||||||
func (r *AccessReviewDecisionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AccessReviewDecision, error) {
|
|
||||||
req, err := r.NewJSONRequest(method, path, obj)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if ctx != nil {
|
|
||||||
req = req.WithContext(ctx)
|
|
||||||
}
|
|
||||||
res, err := r.client.Do(req)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
var values []AccessReviewDecision
|
|
||||||
for {
|
|
||||||
defer res.Body.Close()
|
|
||||||
if res.StatusCode != http.StatusOK {
|
|
||||||
b, _ := ioutil.ReadAll(res.Body)
|
|
||||||
errRes := &ErrorResponse{Response: res}
|
|
||||||
err := jsonx.Unmarshal(b, errRes)
|
|
||||||
if err != nil {
|
|
||||||
return nil, fmt.Errorf("%s: %s", res.Status, string(b))
|
|
||||||
}
|
|
||||||
return nil, errRes
|
|
||||||
}
|
|
||||||
var (
|
|
||||||
paging Paging
|
|
||||||
value []AccessReviewDecision
|
|
||||||
)
|
|
||||||
err := jsonx.NewDecoder(res.Body).Decode(&paging)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
err = jsonx.Unmarshal(paging.Value, &value)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
values = append(values, value...)
|
|
||||||
if len(paging.NextLink) == 0 {
|
|
||||||
return values, nil
|
|
||||||
}
|
|
||||||
req, err = http.NewRequest("GET", paging.NextLink, nil)
|
|
||||||
if ctx != nil {
|
|
||||||
req = req.WithContext(ctx)
|
|
||||||
}
|
|
||||||
res, err = r.client.Do(req)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Get performs GET request for AccessReviewDecision collection
|
|
||||||
func (r *AccessReviewDecisionsCollectionRequest) Get(ctx context.Context) ([]AccessReviewDecision, error) {
|
|
||||||
var query string
|
|
||||||
if r.query != nil {
|
|
||||||
query = "?" + r.query.Encode()
|
|
||||||
}
|
|
||||||
return r.Paging(ctx, "GET", query, nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Add performs POST request for AccessReviewDecision collection
|
|
||||||
func (r *AccessReviewDecisionsCollectionRequest) Add(ctx context.Context, reqObj *AccessReviewDecision) (resObj *AccessReviewDecision, err error) {
|
|
||||||
err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// Instances returns request builder for AccessReview collection
|
|
||||||
func (b *AccessReviewRequestBuilder) Instances() *AccessReviewInstancesCollectionRequestBuilder {
|
|
||||||
bb := &AccessReviewInstancesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
|
|
||||||
bb.baseURL += "/instances"
|
|
||||||
return bb
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessReviewInstancesCollectionRequestBuilder is request builder for AccessReview collection
|
|
||||||
type AccessReviewInstancesCollectionRequestBuilder struct{ BaseRequestBuilder }
|
|
||||||
|
|
||||||
// Request returns request for AccessReview collection
|
|
||||||
func (b *AccessReviewInstancesCollectionRequestBuilder) Request() *AccessReviewInstancesCollectionRequest {
|
|
||||||
return &AccessReviewInstancesCollectionRequest{
|
|
||||||
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// ID returns request builder for AccessReview item
|
|
||||||
func (b *AccessReviewInstancesCollectionRequestBuilder) ID(id string) *AccessReviewRequestBuilder {
|
|
||||||
bb := &AccessReviewRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
|
|
||||||
bb.baseURL += "/" + id
|
|
||||||
return bb
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessReviewInstancesCollectionRequest is request for AccessReview collection
|
|
||||||
type AccessReviewInstancesCollectionRequest struct{ BaseRequest }
|
|
||||||
|
|
||||||
// Paging perfoms paging operation for AccessReview collection
|
|
||||||
func (r *AccessReviewInstancesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AccessReview, error) {
|
|
||||||
req, err := r.NewJSONRequest(method, path, obj)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if ctx != nil {
|
|
||||||
req = req.WithContext(ctx)
|
|
||||||
}
|
|
||||||
res, err := r.client.Do(req)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
var values []AccessReview
|
|
||||||
for {
|
|
||||||
defer res.Body.Close()
|
|
||||||
if res.StatusCode != http.StatusOK {
|
|
||||||
b, _ := ioutil.ReadAll(res.Body)
|
|
||||||
errRes := &ErrorResponse{Response: res}
|
|
||||||
err := jsonx.Unmarshal(b, errRes)
|
|
||||||
if err != nil {
|
|
||||||
return nil, fmt.Errorf("%s: %s", res.Status, string(b))
|
|
||||||
}
|
|
||||||
return nil, errRes
|
|
||||||
}
|
|
||||||
var (
|
|
||||||
paging Paging
|
|
||||||
value []AccessReview
|
|
||||||
)
|
|
||||||
err := jsonx.NewDecoder(res.Body).Decode(&paging)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
err = jsonx.Unmarshal(paging.Value, &value)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
values = append(values, value...)
|
|
||||||
if len(paging.NextLink) == 0 {
|
|
||||||
return values, nil
|
|
||||||
}
|
|
||||||
req, err = http.NewRequest("GET", paging.NextLink, nil)
|
|
||||||
if ctx != nil {
|
|
||||||
req = req.WithContext(ctx)
|
|
||||||
}
|
|
||||||
res, err = r.client.Do(req)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Get performs GET request for AccessReview collection
|
|
||||||
func (r *AccessReviewInstancesCollectionRequest) Get(ctx context.Context) ([]AccessReview, error) {
|
|
||||||
var query string
|
|
||||||
if r.query != nil {
|
|
||||||
query = "?" + r.query.Encode()
|
|
||||||
}
|
|
||||||
return r.Paging(ctx, "GET", query, nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Add performs POST request for AccessReview collection
|
|
||||||
func (r *AccessReviewInstancesCollectionRequest) Add(ctx context.Context, reqObj *AccessReview) (resObj *AccessReview, err error) {
|
|
||||||
err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// MyDecisions returns request builder for AccessReviewDecision collection
|
|
||||||
func (b *AccessReviewRequestBuilder) MyDecisions() *AccessReviewMyDecisionsCollectionRequestBuilder {
|
|
||||||
bb := &AccessReviewMyDecisionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
|
|
||||||
bb.baseURL += "/myDecisions"
|
|
||||||
return bb
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessReviewMyDecisionsCollectionRequestBuilder is request builder for AccessReviewDecision collection
|
|
||||||
type AccessReviewMyDecisionsCollectionRequestBuilder struct{ BaseRequestBuilder }
|
|
||||||
|
|
||||||
// Request returns request for AccessReviewDecision collection
|
|
||||||
func (b *AccessReviewMyDecisionsCollectionRequestBuilder) Request() *AccessReviewMyDecisionsCollectionRequest {
|
|
||||||
return &AccessReviewMyDecisionsCollectionRequest{
|
|
||||||
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// ID returns request builder for AccessReviewDecision item
|
|
||||||
func (b *AccessReviewMyDecisionsCollectionRequestBuilder) ID(id string) *AccessReviewDecisionRequestBuilder {
|
|
||||||
bb := &AccessReviewDecisionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
|
|
||||||
bb.baseURL += "/" + id
|
|
||||||
return bb
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessReviewMyDecisionsCollectionRequest is request for AccessReviewDecision collection
|
|
||||||
type AccessReviewMyDecisionsCollectionRequest struct{ BaseRequest }
|
|
||||||
|
|
||||||
// Paging perfoms paging operation for AccessReviewDecision collection
|
|
||||||
func (r *AccessReviewMyDecisionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AccessReviewDecision, error) {
|
|
||||||
req, err := r.NewJSONRequest(method, path, obj)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if ctx != nil {
|
|
||||||
req = req.WithContext(ctx)
|
|
||||||
}
|
|
||||||
res, err := r.client.Do(req)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
var values []AccessReviewDecision
|
|
||||||
for {
|
|
||||||
defer res.Body.Close()
|
|
||||||
if res.StatusCode != http.StatusOK {
|
|
||||||
b, _ := ioutil.ReadAll(res.Body)
|
|
||||||
errRes := &ErrorResponse{Response: res}
|
|
||||||
err := jsonx.Unmarshal(b, errRes)
|
|
||||||
if err != nil {
|
|
||||||
return nil, fmt.Errorf("%s: %s", res.Status, string(b))
|
|
||||||
}
|
|
||||||
return nil, errRes
|
|
||||||
}
|
|
||||||
var (
|
|
||||||
paging Paging
|
|
||||||
value []AccessReviewDecision
|
|
||||||
)
|
|
||||||
err := jsonx.NewDecoder(res.Body).Decode(&paging)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
err = jsonx.Unmarshal(paging.Value, &value)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
values = append(values, value...)
|
|
||||||
if len(paging.NextLink) == 0 {
|
|
||||||
return values, nil
|
|
||||||
}
|
|
||||||
req, err = http.NewRequest("GET", paging.NextLink, nil)
|
|
||||||
if ctx != nil {
|
|
||||||
req = req.WithContext(ctx)
|
|
||||||
}
|
|
||||||
res, err = r.client.Do(req)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Get performs GET request for AccessReviewDecision collection
|
|
||||||
func (r *AccessReviewMyDecisionsCollectionRequest) Get(ctx context.Context) ([]AccessReviewDecision, error) {
|
|
||||||
var query string
|
|
||||||
if r.query != nil {
|
|
||||||
query = "?" + r.query.Encode()
|
|
||||||
}
|
|
||||||
return r.Paging(ctx, "GET", query, nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Add performs POST request for AccessReviewDecision collection
|
|
||||||
func (r *AccessReviewMyDecisionsCollectionRequest) Add(ctx context.Context, reqObj *AccessReviewDecision) (resObj *AccessReviewDecision, err error) {
|
|
||||||
err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// Reviewers returns request builder for AccessReviewReviewer collection
|
|
||||||
func (b *AccessReviewRequestBuilder) Reviewers() *AccessReviewReviewersCollectionRequestBuilder {
|
|
||||||
bb := &AccessReviewReviewersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
|
|
||||||
bb.baseURL += "/reviewers"
|
|
||||||
return bb
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessReviewReviewersCollectionRequestBuilder is request builder for AccessReviewReviewer collection
|
|
||||||
type AccessReviewReviewersCollectionRequestBuilder struct{ BaseRequestBuilder }
|
|
||||||
|
|
||||||
// Request returns request for AccessReviewReviewer collection
|
|
||||||
func (b *AccessReviewReviewersCollectionRequestBuilder) Request() *AccessReviewReviewersCollectionRequest {
|
|
||||||
return &AccessReviewReviewersCollectionRequest{
|
|
||||||
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// ID returns request builder for AccessReviewReviewer item
|
|
||||||
func (b *AccessReviewReviewersCollectionRequestBuilder) ID(id string) *AccessReviewReviewerRequestBuilder {
|
|
||||||
bb := &AccessReviewReviewerRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
|
|
||||||
bb.baseURL += "/" + id
|
|
||||||
return bb
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessReviewReviewersCollectionRequest is request for AccessReviewReviewer collection
|
|
||||||
type AccessReviewReviewersCollectionRequest struct{ BaseRequest }
|
|
||||||
|
|
||||||
// Paging perfoms paging operation for AccessReviewReviewer collection
|
|
||||||
func (r *AccessReviewReviewersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AccessReviewReviewer, error) {
|
|
||||||
req, err := r.NewJSONRequest(method, path, obj)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if ctx != nil {
|
|
||||||
req = req.WithContext(ctx)
|
|
||||||
}
|
|
||||||
res, err := r.client.Do(req)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
var values []AccessReviewReviewer
|
|
||||||
for {
|
|
||||||
defer res.Body.Close()
|
|
||||||
if res.StatusCode != http.StatusOK {
|
|
||||||
b, _ := ioutil.ReadAll(res.Body)
|
|
||||||
errRes := &ErrorResponse{Response: res}
|
|
||||||
err := jsonx.Unmarshal(b, errRes)
|
|
||||||
if err != nil {
|
|
||||||
return nil, fmt.Errorf("%s: %s", res.Status, string(b))
|
|
||||||
}
|
|
||||||
return nil, errRes
|
|
||||||
}
|
|
||||||
var (
|
|
||||||
paging Paging
|
|
||||||
value []AccessReviewReviewer
|
|
||||||
)
|
|
||||||
err := jsonx.NewDecoder(res.Body).Decode(&paging)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
err = jsonx.Unmarshal(paging.Value, &value)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
values = append(values, value...)
|
|
||||||
if len(paging.NextLink) == 0 {
|
|
||||||
return values, nil
|
|
||||||
}
|
|
||||||
req, err = http.NewRequest("GET", paging.NextLink, nil)
|
|
||||||
if ctx != nil {
|
|
||||||
req = req.WithContext(ctx)
|
|
||||||
}
|
|
||||||
res, err = r.client.Do(req)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Get performs GET request for AccessReviewReviewer collection
|
|
||||||
func (r *AccessReviewReviewersCollectionRequest) Get(ctx context.Context) ([]AccessReviewReviewer, error) {
|
|
||||||
var query string
|
|
||||||
if r.query != nil {
|
|
||||||
query = "?" + r.query.Encode()
|
|
||||||
}
|
|
||||||
return r.Paging(ctx, "GET", query, nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Add performs POST request for AccessReviewReviewer collection
|
|
||||||
func (r *AccessReviewReviewersCollectionRequest) Add(ctx context.Context, reqObj *AccessReviewReviewer) (resObj *AccessReviewReviewer, err error) {
|
|
||||||
err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
|
|
||||||
return
|
|
||||||
}
|
|
13
vendor/github.com/matterbridge/msgraph.go/beta/AccessReviewReviewerModel.go
generated
vendored
13
vendor/github.com/matterbridge/msgraph.go/beta/AccessReviewReviewerModel.go
generated
vendored
@ -1,13 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
// AccessReviewReviewer undocumented
|
|
||||||
type AccessReviewReviewer struct {
|
|
||||||
// Entity is the base model of AccessReviewReviewer
|
|
||||||
Entity
|
|
||||||
// DisplayName undocumented
|
|
||||||
DisplayName *string `json:"displayName,omitempty"`
|
|
||||||
// UserPrincipalName undocumented
|
|
||||||
UserPrincipalName *string `json:"userPrincipalName,omitempty"`
|
|
||||||
}
|
|
38
vendor/github.com/matterbridge/msgraph.go/beta/AccessReviewReviewerRequest.go
generated
vendored
38
vendor/github.com/matterbridge/msgraph.go/beta/AccessReviewReviewerRequest.go
generated
vendored
@ -1,38 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
import "context"
|
|
||||||
|
|
||||||
// AccessReviewReviewerRequestBuilder is request builder for AccessReviewReviewer
|
|
||||||
type AccessReviewReviewerRequestBuilder struct{ BaseRequestBuilder }
|
|
||||||
|
|
||||||
// Request returns AccessReviewReviewerRequest
|
|
||||||
func (b *AccessReviewReviewerRequestBuilder) Request() *AccessReviewReviewerRequest {
|
|
||||||
return &AccessReviewReviewerRequest{
|
|
||||||
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessReviewReviewerRequest is request for AccessReviewReviewer
|
|
||||||
type AccessReviewReviewerRequest struct{ BaseRequest }
|
|
||||||
|
|
||||||
// Get performs GET request for AccessReviewReviewer
|
|
||||||
func (r *AccessReviewReviewerRequest) Get(ctx context.Context) (resObj *AccessReviewReviewer, err error) {
|
|
||||||
var query string
|
|
||||||
if r.query != nil {
|
|
||||||
query = "?" + r.query.Encode()
|
|
||||||
}
|
|
||||||
err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// Update performs PATCH request for AccessReviewReviewer
|
|
||||||
func (r *AccessReviewReviewerRequest) Update(ctx context.Context, reqObj *AccessReviewReviewer) error {
|
|
||||||
return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Delete performs DELETE request for AccessReviewReviewer
|
|
||||||
func (r *AccessReviewReviewerRequest) Delete(ctx context.Context) error {
|
|
||||||
return r.JSONRequest(ctx, "DELETE", "", nil, nil)
|
|
||||||
}
|
|
27
vendor/github.com/matterbridge/msgraph.go/beta/AccessReviewSettingsModel.go
generated
vendored
27
vendor/github.com/matterbridge/msgraph.go/beta/AccessReviewSettingsModel.go
generated
vendored
@ -1,27 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
// AccessReviewSettings undocumented
|
|
||||||
type AccessReviewSettings struct {
|
|
||||||
// Object is the base model of AccessReviewSettings
|
|
||||||
Object
|
|
||||||
// MailNotificationsEnabled undocumented
|
|
||||||
MailNotificationsEnabled *bool `json:"mailNotificationsEnabled,omitempty"`
|
|
||||||
// RemindersEnabled undocumented
|
|
||||||
RemindersEnabled *bool `json:"remindersEnabled,omitempty"`
|
|
||||||
// JustificationRequiredOnApproval undocumented
|
|
||||||
JustificationRequiredOnApproval *bool `json:"justificationRequiredOnApproval,omitempty"`
|
|
||||||
// RecurrenceSettings undocumented
|
|
||||||
RecurrenceSettings *AccessReviewRecurrenceSettings `json:"recurrenceSettings,omitempty"`
|
|
||||||
// AutoReviewEnabled undocumented
|
|
||||||
AutoReviewEnabled *bool `json:"autoReviewEnabled,omitempty"`
|
|
||||||
// ActivityDurationInDays undocumented
|
|
||||||
ActivityDurationInDays *int `json:"activityDurationInDays,omitempty"`
|
|
||||||
// AutoReviewSettings undocumented
|
|
||||||
AutoReviewSettings *AutoReviewSettings `json:"autoReviewSettings,omitempty"`
|
|
||||||
// AutoApplyReviewResultsEnabled undocumented
|
|
||||||
AutoApplyReviewResultsEnabled *bool `json:"autoApplyReviewResultsEnabled,omitempty"`
|
|
||||||
// AccessRecommendationsEnabled undocumented
|
|
||||||
AccessRecommendationsEnabled *bool `json:"accessRecommendationsEnabled,omitempty"`
|
|
||||||
}
|
|
25
vendor/github.com/matterbridge/msgraph.go/beta/AccessScopeEnum.go
generated
vendored
25
vendor/github.com/matterbridge/msgraph.go/beta/AccessScopeEnum.go
generated
vendored
@ -1,25 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
// AccessScope undocumented
|
|
||||||
type AccessScope int
|
|
||||||
|
|
||||||
const (
|
|
||||||
// AccessScopeVInOrganization undocumented
|
|
||||||
AccessScopeVInOrganization AccessScope = 0
|
|
||||||
// AccessScopeVNotInOrganization undocumented
|
|
||||||
AccessScopeVNotInOrganization AccessScope = 1
|
|
||||||
)
|
|
||||||
|
|
||||||
// AccessScopePInOrganization returns a pointer to AccessScopeVInOrganization
|
|
||||||
func AccessScopePInOrganization() *AccessScope {
|
|
||||||
v := AccessScopeVInOrganization
|
|
||||||
return &v
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessScopePNotInOrganization returns a pointer to AccessScopeVNotInOrganization
|
|
||||||
func AccessScopePNotInOrganization() *AccessScope {
|
|
||||||
v := AccessScopeVNotInOrganization
|
|
||||||
return &v
|
|
||||||
}
|
|
25
vendor/github.com/matterbridge/msgraph.go/beta/AccessTypeEnum.go
generated
vendored
25
vendor/github.com/matterbridge/msgraph.go/beta/AccessTypeEnum.go
generated
vendored
@ -1,25 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
// AccessType undocumented
|
|
||||||
type AccessType int
|
|
||||||
|
|
||||||
const (
|
|
||||||
// AccessTypeVGrant undocumented
|
|
||||||
AccessTypeVGrant AccessType = 1
|
|
||||||
// AccessTypeVDeny undocumented
|
|
||||||
AccessTypeVDeny AccessType = 2
|
|
||||||
)
|
|
||||||
|
|
||||||
// AccessTypePGrant returns a pointer to AccessTypeVGrant
|
|
||||||
func AccessTypePGrant() *AccessType {
|
|
||||||
v := AccessTypeVGrant
|
|
||||||
return &v
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccessTypePDeny returns a pointer to AccessTypeVDeny
|
|
||||||
func AccessTypePDeny() *AccessType {
|
|
||||||
v := AccessTypeVDeny
|
|
||||||
return &v
|
|
||||||
}
|
|
13
vendor/github.com/matterbridge/msgraph.go/beta/AccountAliasModel.go
generated
vendored
13
vendor/github.com/matterbridge/msgraph.go/beta/AccountAliasModel.go
generated
vendored
@ -1,13 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
// AccountAlias undocumented
|
|
||||||
type AccountAlias struct {
|
|
||||||
// Object is the base model of AccountAlias
|
|
||||||
Object
|
|
||||||
// ID undocumented
|
|
||||||
ID *string `json:"id,omitempty"`
|
|
||||||
// IDType undocumented
|
|
||||||
IDType *string `json:"idType,omitempty"`
|
|
||||||
}
|
|
23
vendor/github.com/matterbridge/msgraph.go/beta/AccountModel.go
generated
vendored
23
vendor/github.com/matterbridge/msgraph.go/beta/AccountModel.go
generated
vendored
@ -1,23 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
import "time"
|
|
||||||
|
|
||||||
// Account undocumented
|
|
||||||
type Account struct {
|
|
||||||
// Entity is the base model of Account
|
|
||||||
Entity
|
|
||||||
// Number undocumented
|
|
||||||
Number *string `json:"number,omitempty"`
|
|
||||||
// DisplayName undocumented
|
|
||||||
DisplayName *string `json:"displayName,omitempty"`
|
|
||||||
// Category undocumented
|
|
||||||
Category *string `json:"category,omitempty"`
|
|
||||||
// SubCategory undocumented
|
|
||||||
SubCategory *string `json:"subCategory,omitempty"`
|
|
||||||
// Blocked undocumented
|
|
||||||
Blocked *bool `json:"blocked,omitempty"`
|
|
||||||
// LastModifiedDateTime undocumented
|
|
||||||
LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
|
|
||||||
}
|
|
57
vendor/github.com/matterbridge/msgraph.go/beta/AccountStatusEnum.go
generated
vendored
57
vendor/github.com/matterbridge/msgraph.go/beta/AccountStatusEnum.go
generated
vendored
@ -1,57 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
// AccountStatus undocumented
|
|
||||||
type AccountStatus int
|
|
||||||
|
|
||||||
const (
|
|
||||||
// AccountStatusVUnknown undocumented
|
|
||||||
AccountStatusVUnknown AccountStatus = 0
|
|
||||||
// AccountStatusVStaged undocumented
|
|
||||||
AccountStatusVStaged AccountStatus = 1
|
|
||||||
// AccountStatusVActive undocumented
|
|
||||||
AccountStatusVActive AccountStatus = 2
|
|
||||||
// AccountStatusVSuspended undocumented
|
|
||||||
AccountStatusVSuspended AccountStatus = 3
|
|
||||||
// AccountStatusVDeleted undocumented
|
|
||||||
AccountStatusVDeleted AccountStatus = 4
|
|
||||||
// AccountStatusVUnknownFutureValue undocumented
|
|
||||||
AccountStatusVUnknownFutureValue AccountStatus = 127
|
|
||||||
)
|
|
||||||
|
|
||||||
// AccountStatusPUnknown returns a pointer to AccountStatusVUnknown
|
|
||||||
func AccountStatusPUnknown() *AccountStatus {
|
|
||||||
v := AccountStatusVUnknown
|
|
||||||
return &v
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccountStatusPStaged returns a pointer to AccountStatusVStaged
|
|
||||||
func AccountStatusPStaged() *AccountStatus {
|
|
||||||
v := AccountStatusVStaged
|
|
||||||
return &v
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccountStatusPActive returns a pointer to AccountStatusVActive
|
|
||||||
func AccountStatusPActive() *AccountStatus {
|
|
||||||
v := AccountStatusVActive
|
|
||||||
return &v
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccountStatusPSuspended returns a pointer to AccountStatusVSuspended
|
|
||||||
func AccountStatusPSuspended() *AccountStatus {
|
|
||||||
v := AccountStatusVSuspended
|
|
||||||
return &v
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccountStatusPDeleted returns a pointer to AccountStatusVDeleted
|
|
||||||
func AccountStatusPDeleted() *AccountStatus {
|
|
||||||
v := AccountStatusVDeleted
|
|
||||||
return &v
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccountStatusPUnknownFutureValue returns a pointer to AccountStatusVUnknownFutureValue
|
|
||||||
func AccountStatusPUnknownFutureValue() *AccountStatus {
|
|
||||||
v := AccountStatusVUnknownFutureValue
|
|
||||||
return &v
|
|
||||||
}
|
|
41
vendor/github.com/matterbridge/msgraph.go/beta/ActionSourceEnum.go
generated
vendored
41
vendor/github.com/matterbridge/msgraph.go/beta/ActionSourceEnum.go
generated
vendored
@ -1,41 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
// ActionSource undocumented
|
|
||||||
type ActionSource int
|
|
||||||
|
|
||||||
const (
|
|
||||||
// ActionSourceVManual undocumented
|
|
||||||
ActionSourceVManual ActionSource = 0
|
|
||||||
// ActionSourceVAutomatic undocumented
|
|
||||||
ActionSourceVAutomatic ActionSource = 1
|
|
||||||
// ActionSourceVRecommended undocumented
|
|
||||||
ActionSourceVRecommended ActionSource = 2
|
|
||||||
// ActionSourceVDefault undocumented
|
|
||||||
ActionSourceVDefault ActionSource = 3
|
|
||||||
)
|
|
||||||
|
|
||||||
// ActionSourcePManual returns a pointer to ActionSourceVManual
|
|
||||||
func ActionSourcePManual() *ActionSource {
|
|
||||||
v := ActionSourceVManual
|
|
||||||
return &v
|
|
||||||
}
|
|
||||||
|
|
||||||
// ActionSourcePAutomatic returns a pointer to ActionSourceVAutomatic
|
|
||||||
func ActionSourcePAutomatic() *ActionSource {
|
|
||||||
v := ActionSourceVAutomatic
|
|
||||||
return &v
|
|
||||||
}
|
|
||||||
|
|
||||||
// ActionSourcePRecommended returns a pointer to ActionSourceVRecommended
|
|
||||||
func ActionSourcePRecommended() *ActionSource {
|
|
||||||
v := ActionSourceVRecommended
|
|
||||||
return &v
|
|
||||||
}
|
|
||||||
|
|
||||||
// ActionSourcePDefault returns a pointer to ActionSourceVDefault
|
|
||||||
func ActionSourcePDefault() *ActionSource {
|
|
||||||
v := ActionSourceVDefault
|
|
||||||
return &v
|
|
||||||
}
|
|
65
vendor/github.com/matterbridge/msgraph.go/beta/ActionStateEnum.go
generated
vendored
65
vendor/github.com/matterbridge/msgraph.go/beta/ActionStateEnum.go
generated
vendored
@ -1,65 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
// ActionState undocumented
|
|
||||||
type ActionState int
|
|
||||||
|
|
||||||
const (
|
|
||||||
// ActionStateVNone undocumented
|
|
||||||
ActionStateVNone ActionState = 0
|
|
||||||
// ActionStateVPending undocumented
|
|
||||||
ActionStateVPending ActionState = 1
|
|
||||||
// ActionStateVCanceled undocumented
|
|
||||||
ActionStateVCanceled ActionState = 2
|
|
||||||
// ActionStateVActive undocumented
|
|
||||||
ActionStateVActive ActionState = 3
|
|
||||||
// ActionStateVDone undocumented
|
|
||||||
ActionStateVDone ActionState = 4
|
|
||||||
// ActionStateVFailed undocumented
|
|
||||||
ActionStateVFailed ActionState = 5
|
|
||||||
// ActionStateVNotSupported undocumented
|
|
||||||
ActionStateVNotSupported ActionState = 6
|
|
||||||
)
|
|
||||||
|
|
||||||
// ActionStatePNone returns a pointer to ActionStateVNone
|
|
||||||
func ActionStatePNone() *ActionState {
|
|
||||||
v := ActionStateVNone
|
|
||||||
return &v
|
|
||||||
}
|
|
||||||
|
|
||||||
// ActionStatePPending returns a pointer to ActionStateVPending
|
|
||||||
func ActionStatePPending() *ActionState {
|
|
||||||
v := ActionStateVPending
|
|
||||||
return &v
|
|
||||||
}
|
|
||||||
|
|
||||||
// ActionStatePCanceled returns a pointer to ActionStateVCanceled
|
|
||||||
func ActionStatePCanceled() *ActionState {
|
|
||||||
v := ActionStateVCanceled
|
|
||||||
return &v
|
|
||||||
}
|
|
||||||
|
|
||||||
// ActionStatePActive returns a pointer to ActionStateVActive
|
|
||||||
func ActionStatePActive() *ActionState {
|
|
||||||
v := ActionStateVActive
|
|
||||||
return &v
|
|
||||||
}
|
|
||||||
|
|
||||||
// ActionStatePDone returns a pointer to ActionStateVDone
|
|
||||||
func ActionStatePDone() *ActionState {
|
|
||||||
v := ActionStateVDone
|
|
||||||
return &v
|
|
||||||
}
|
|
||||||
|
|
||||||
// ActionStatePFailed returns a pointer to ActionStateVFailed
|
|
||||||
func ActionStatePFailed() *ActionState {
|
|
||||||
v := ActionStateVFailed
|
|
||||||
return &v
|
|
||||||
}
|
|
||||||
|
|
||||||
// ActionStatePNotSupported returns a pointer to ActionStateVNotSupported
|
|
||||||
func ActionStatePNotSupported() *ActionState {
|
|
||||||
v := ActionStateVNotSupported
|
|
||||||
return &v
|
|
||||||
}
|
|
@ -1,45 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
import "context"
|
|
||||||
|
|
||||||
// ActiveDirectoryWindowsAutopilotDeploymentProfileRequestBuilder is request builder for ActiveDirectoryWindowsAutopilotDeploymentProfile
|
|
||||||
type ActiveDirectoryWindowsAutopilotDeploymentProfileRequestBuilder struct{ BaseRequestBuilder }
|
|
||||||
|
|
||||||
// Request returns ActiveDirectoryWindowsAutopilotDeploymentProfileRequest
|
|
||||||
func (b *ActiveDirectoryWindowsAutopilotDeploymentProfileRequestBuilder) Request() *ActiveDirectoryWindowsAutopilotDeploymentProfileRequest {
|
|
||||||
return &ActiveDirectoryWindowsAutopilotDeploymentProfileRequest{
|
|
||||||
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// ActiveDirectoryWindowsAutopilotDeploymentProfileRequest is request for ActiveDirectoryWindowsAutopilotDeploymentProfile
|
|
||||||
type ActiveDirectoryWindowsAutopilotDeploymentProfileRequest struct{ BaseRequest }
|
|
||||||
|
|
||||||
// Get performs GET request for ActiveDirectoryWindowsAutopilotDeploymentProfile
|
|
||||||
func (r *ActiveDirectoryWindowsAutopilotDeploymentProfileRequest) Get(ctx context.Context) (resObj *ActiveDirectoryWindowsAutopilotDeploymentProfile, err error) {
|
|
||||||
var query string
|
|
||||||
if r.query != nil {
|
|
||||||
query = "?" + r.query.Encode()
|
|
||||||
}
|
|
||||||
err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// Update performs PATCH request for ActiveDirectoryWindowsAutopilotDeploymentProfile
|
|
||||||
func (r *ActiveDirectoryWindowsAutopilotDeploymentProfileRequest) Update(ctx context.Context, reqObj *ActiveDirectoryWindowsAutopilotDeploymentProfile) error {
|
|
||||||
return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Delete performs DELETE request for ActiveDirectoryWindowsAutopilotDeploymentProfile
|
|
||||||
func (r *ActiveDirectoryWindowsAutopilotDeploymentProfileRequest) Delete(ctx context.Context) error {
|
|
||||||
return r.JSONRequest(ctx, "DELETE", "", nil, nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
// DomainJoinConfiguration is navigation property
|
|
||||||
func (b *ActiveDirectoryWindowsAutopilotDeploymentProfileRequestBuilder) DomainJoinConfiguration() *WindowsDomainJoinConfigurationRequestBuilder {
|
|
||||||
bb := &WindowsDomainJoinConfigurationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
|
|
||||||
bb.baseURL += "/domainJoinConfiguration"
|
|
||||||
return bb
|
|
||||||
}
|
|
41
vendor/github.com/matterbridge/msgraph.go/beta/ActivityDomainEnum.go
generated
vendored
41
vendor/github.com/matterbridge/msgraph.go/beta/ActivityDomainEnum.go
generated
vendored
@ -1,41 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
// ActivityDomain undocumented
|
|
||||||
type ActivityDomain int
|
|
||||||
|
|
||||||
const (
|
|
||||||
// ActivityDomainVUnknown undocumented
|
|
||||||
ActivityDomainVUnknown ActivityDomain = 0
|
|
||||||
// ActivityDomainVWork undocumented
|
|
||||||
ActivityDomainVWork ActivityDomain = 1
|
|
||||||
// ActivityDomainVPersonal undocumented
|
|
||||||
ActivityDomainVPersonal ActivityDomain = 2
|
|
||||||
// ActivityDomainVUnrestricted undocumented
|
|
||||||
ActivityDomainVUnrestricted ActivityDomain = 3
|
|
||||||
)
|
|
||||||
|
|
||||||
// ActivityDomainPUnknown returns a pointer to ActivityDomainVUnknown
|
|
||||||
func ActivityDomainPUnknown() *ActivityDomain {
|
|
||||||
v := ActivityDomainVUnknown
|
|
||||||
return &v
|
|
||||||
}
|
|
||||||
|
|
||||||
// ActivityDomainPWork returns a pointer to ActivityDomainVWork
|
|
||||||
func ActivityDomainPWork() *ActivityDomain {
|
|
||||||
v := ActivityDomainVWork
|
|
||||||
return &v
|
|
||||||
}
|
|
||||||
|
|
||||||
// ActivityDomainPPersonal returns a pointer to ActivityDomainVPersonal
|
|
||||||
func ActivityDomainPPersonal() *ActivityDomain {
|
|
||||||
v := ActivityDomainVPersonal
|
|
||||||
return &v
|
|
||||||
}
|
|
||||||
|
|
||||||
// ActivityDomainPUnrestricted returns a pointer to ActivityDomainVUnrestricted
|
|
||||||
func ActivityDomainPUnrestricted() *ActivityDomain {
|
|
||||||
v := ActivityDomainVUnrestricted
|
|
||||||
return &v
|
|
||||||
}
|
|
29
vendor/github.com/matterbridge/msgraph.go/beta/ActivityHistoryItemModel.go
generated
vendored
29
vendor/github.com/matterbridge/msgraph.go/beta/ActivityHistoryItemModel.go
generated
vendored
@ -1,29 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
import "time"
|
|
||||||
|
|
||||||
// ActivityHistoryItem undocumented
|
|
||||||
type ActivityHistoryItem struct {
|
|
||||||
// Entity is the base model of ActivityHistoryItem
|
|
||||||
Entity
|
|
||||||
// Status undocumented
|
|
||||||
Status *Status `json:"status,omitempty"`
|
|
||||||
// ActiveDurationSeconds undocumented
|
|
||||||
ActiveDurationSeconds *int `json:"activeDurationSeconds,omitempty"`
|
|
||||||
// CreatedDateTime undocumented
|
|
||||||
CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
|
|
||||||
// LastActiveDateTime undocumented
|
|
||||||
LastActiveDateTime *time.Time `json:"lastActiveDateTime,omitempty"`
|
|
||||||
// LastModifiedDateTime undocumented
|
|
||||||
LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
|
|
||||||
// ExpirationDateTime undocumented
|
|
||||||
ExpirationDateTime *time.Time `json:"expirationDateTime,omitempty"`
|
|
||||||
// StartedDateTime undocumented
|
|
||||||
StartedDateTime *time.Time `json:"startedDateTime,omitempty"`
|
|
||||||
// UserTimezone undocumented
|
|
||||||
UserTimezone *string `json:"userTimezone,omitempty"`
|
|
||||||
// Activity undocumented
|
|
||||||
Activity *UserActivity `json:"activity,omitempty"`
|
|
||||||
}
|
|
45
vendor/github.com/matterbridge/msgraph.go/beta/ActivityHistoryItemRequest.go
generated
vendored
45
vendor/github.com/matterbridge/msgraph.go/beta/ActivityHistoryItemRequest.go
generated
vendored
@ -1,45 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
import "context"
|
|
||||||
|
|
||||||
// ActivityHistoryItemRequestBuilder is request builder for ActivityHistoryItem
|
|
||||||
type ActivityHistoryItemRequestBuilder struct{ BaseRequestBuilder }
|
|
||||||
|
|
||||||
// Request returns ActivityHistoryItemRequest
|
|
||||||
func (b *ActivityHistoryItemRequestBuilder) Request() *ActivityHistoryItemRequest {
|
|
||||||
return &ActivityHistoryItemRequest{
|
|
||||||
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// ActivityHistoryItemRequest is request for ActivityHistoryItem
|
|
||||||
type ActivityHistoryItemRequest struct{ BaseRequest }
|
|
||||||
|
|
||||||
// Get performs GET request for ActivityHistoryItem
|
|
||||||
func (r *ActivityHistoryItemRequest) Get(ctx context.Context) (resObj *ActivityHistoryItem, err error) {
|
|
||||||
var query string
|
|
||||||
if r.query != nil {
|
|
||||||
query = "?" + r.query.Encode()
|
|
||||||
}
|
|
||||||
err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// Update performs PATCH request for ActivityHistoryItem
|
|
||||||
func (r *ActivityHistoryItemRequest) Update(ctx context.Context, reqObj *ActivityHistoryItem) error {
|
|
||||||
return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Delete performs DELETE request for ActivityHistoryItem
|
|
||||||
func (r *ActivityHistoryItemRequest) Delete(ctx context.Context) error {
|
|
||||||
return r.JSONRequest(ctx, "DELETE", "", nil, nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Activity is navigation property
|
|
||||||
func (b *ActivityHistoryItemRequestBuilder) Activity() *UserActivityRequestBuilder {
|
|
||||||
bb := &UserActivityRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
|
|
||||||
bb.baseURL += "/activity"
|
|
||||||
return bb
|
|
||||||
}
|
|
21
vendor/github.com/matterbridge/msgraph.go/beta/ActivityStatisticsModel.go
generated
vendored
21
vendor/github.com/matterbridge/msgraph.go/beta/ActivityStatisticsModel.go
generated
vendored
@ -1,21 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
import "time"
|
|
||||||
|
|
||||||
// ActivityStatistics undocumented
|
|
||||||
type ActivityStatistics struct {
|
|
||||||
// Entity is the base model of ActivityStatistics
|
|
||||||
Entity
|
|
||||||
// Activity undocumented
|
|
||||||
Activity *AnalyticsActivityType `json:"activity,omitempty"`
|
|
||||||
// StartDate undocumented
|
|
||||||
StartDate *time.Time `json:"startDate,omitempty"`
|
|
||||||
// EndDate undocumented
|
|
||||||
EndDate *time.Time `json:"endDate,omitempty"`
|
|
||||||
// TimeZoneUsed undocumented
|
|
||||||
TimeZoneUsed *string `json:"timeZoneUsed,omitempty"`
|
|
||||||
// Duration undocumented
|
|
||||||
Duration *time.Duration `json:"duration,omitempty"`
|
|
||||||
}
|
|
38
vendor/github.com/matterbridge/msgraph.go/beta/ActivityStatisticsRequest.go
generated
vendored
38
vendor/github.com/matterbridge/msgraph.go/beta/ActivityStatisticsRequest.go
generated
vendored
@ -1,38 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
import "context"
|
|
||||||
|
|
||||||
// ActivityStatisticsRequestBuilder is request builder for ActivityStatistics
|
|
||||||
type ActivityStatisticsRequestBuilder struct{ BaseRequestBuilder }
|
|
||||||
|
|
||||||
// Request returns ActivityStatisticsRequest
|
|
||||||
func (b *ActivityStatisticsRequestBuilder) Request() *ActivityStatisticsRequest {
|
|
||||||
return &ActivityStatisticsRequest{
|
|
||||||
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// ActivityStatisticsRequest is request for ActivityStatistics
|
|
||||||
type ActivityStatisticsRequest struct{ BaseRequest }
|
|
||||||
|
|
||||||
// Get performs GET request for ActivityStatistics
|
|
||||||
func (r *ActivityStatisticsRequest) Get(ctx context.Context) (resObj *ActivityStatistics, err error) {
|
|
||||||
var query string
|
|
||||||
if r.query != nil {
|
|
||||||
query = "?" + r.query.Encode()
|
|
||||||
}
|
|
||||||
err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// Update performs PATCH request for ActivityStatistics
|
|
||||||
func (r *ActivityStatisticsRequest) Update(ctx context.Context, reqObj *ActivityStatistics) error {
|
|
||||||
return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Delete performs DELETE request for ActivityStatistics
|
|
||||||
func (r *ActivityStatisticsRequest) Delete(ctx context.Context) error {
|
|
||||||
return r.JSONRequest(ctx, "DELETE", "", nil, nil)
|
|
||||||
}
|
|
33
vendor/github.com/matterbridge/msgraph.go/beta/ActivityTypeEnum.go
generated
vendored
33
vendor/github.com/matterbridge/msgraph.go/beta/ActivityTypeEnum.go
generated
vendored
@ -1,33 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
// ActivityType undocumented
|
|
||||||
type ActivityType int
|
|
||||||
|
|
||||||
const (
|
|
||||||
// ActivityTypeVSignin undocumented
|
|
||||||
ActivityTypeVSignin ActivityType = 0
|
|
||||||
// ActivityTypeVUser undocumented
|
|
||||||
ActivityTypeVUser ActivityType = 1
|
|
||||||
// ActivityTypeVUnknownFutureValue undocumented
|
|
||||||
ActivityTypeVUnknownFutureValue ActivityType = 2
|
|
||||||
)
|
|
||||||
|
|
||||||
// ActivityTypePSignin returns a pointer to ActivityTypeVSignin
|
|
||||||
func ActivityTypePSignin() *ActivityType {
|
|
||||||
v := ActivityTypeVSignin
|
|
||||||
return &v
|
|
||||||
}
|
|
||||||
|
|
||||||
// ActivityTypePUser returns a pointer to ActivityTypeVUser
|
|
||||||
func ActivityTypePUser() *ActivityType {
|
|
||||||
v := ActivityTypeVUser
|
|
||||||
return &v
|
|
||||||
}
|
|
||||||
|
|
||||||
// ActivityTypePUnknownFutureValue returns a pointer to ActivityTypeVUnknownFutureValue
|
|
||||||
func ActivityTypePUnknownFutureValue() *ActivityType {
|
|
||||||
v := ActivityTypeVUnknownFutureValue
|
|
||||||
return &v
|
|
||||||
}
|
|
23
vendor/github.com/matterbridge/msgraph.go/beta/AddContentFooterActionModel.go
generated
vendored
23
vendor/github.com/matterbridge/msgraph.go/beta/AddContentFooterActionModel.go
generated
vendored
@ -1,23 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
// AddContentFooterAction undocumented
|
|
||||||
type AddContentFooterAction struct {
|
|
||||||
// InformationProtectionAction is the base model of AddContentFooterAction
|
|
||||||
InformationProtectionAction
|
|
||||||
// UIElementName undocumented
|
|
||||||
UIElementName *string `json:"uiElementName,omitempty"`
|
|
||||||
// Text undocumented
|
|
||||||
Text *string `json:"text,omitempty"`
|
|
||||||
// FontName undocumented
|
|
||||||
FontName *string `json:"fontName,omitempty"`
|
|
||||||
// FontSize undocumented
|
|
||||||
FontSize *int `json:"fontSize,omitempty"`
|
|
||||||
// FontColor undocumented
|
|
||||||
FontColor *string `json:"fontColor,omitempty"`
|
|
||||||
// Alignment undocumented
|
|
||||||
Alignment *ContentAlignment `json:"alignment,omitempty"`
|
|
||||||
// Margin undocumented
|
|
||||||
Margin *int `json:"margin,omitempty"`
|
|
||||||
}
|
|
23
vendor/github.com/matterbridge/msgraph.go/beta/AddContentHeaderActionModel.go
generated
vendored
23
vendor/github.com/matterbridge/msgraph.go/beta/AddContentHeaderActionModel.go
generated
vendored
@ -1,23 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
// AddContentHeaderAction undocumented
|
|
||||||
type AddContentHeaderAction struct {
|
|
||||||
// InformationProtectionAction is the base model of AddContentHeaderAction
|
|
||||||
InformationProtectionAction
|
|
||||||
// UIElementName undocumented
|
|
||||||
UIElementName *string `json:"uiElementName,omitempty"`
|
|
||||||
// Text undocumented
|
|
||||||
Text *string `json:"text,omitempty"`
|
|
||||||
// FontName undocumented
|
|
||||||
FontName *string `json:"fontName,omitempty"`
|
|
||||||
// FontSize undocumented
|
|
||||||
FontSize *int `json:"fontSize,omitempty"`
|
|
||||||
// FontColor undocumented
|
|
||||||
FontColor *string `json:"fontColor,omitempty"`
|
|
||||||
// Alignment undocumented
|
|
||||||
Alignment *ContentAlignment `json:"alignment,omitempty"`
|
|
||||||
// Margin undocumented
|
|
||||||
Margin *int `json:"margin,omitempty"`
|
|
||||||
}
|
|
13
vendor/github.com/matterbridge/msgraph.go/beta/AddFooterModel.go
generated
vendored
13
vendor/github.com/matterbridge/msgraph.go/beta/AddFooterModel.go
generated
vendored
@ -1,13 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
// AddFooter undocumented
|
|
||||||
type AddFooter struct {
|
|
||||||
// MarkContent is the base model of AddFooter
|
|
||||||
MarkContent
|
|
||||||
// Margin undocumented
|
|
||||||
Margin *int `json:"margin,omitempty"`
|
|
||||||
// Alignment undocumented
|
|
||||||
Alignment *Alignment `json:"alignment,omitempty"`
|
|
||||||
}
|
|
13
vendor/github.com/matterbridge/msgraph.go/beta/AddHeaderModel.go
generated
vendored
13
vendor/github.com/matterbridge/msgraph.go/beta/AddHeaderModel.go
generated
vendored
@ -1,13 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
// AddHeader undocumented
|
|
||||||
type AddHeader struct {
|
|
||||||
// MarkContent is the base model of AddHeader
|
|
||||||
MarkContent
|
|
||||||
// Margin undocumented
|
|
||||||
Margin *int `json:"margin,omitempty"`
|
|
||||||
// Alignment undocumented
|
|
||||||
Alignment *Alignment `json:"alignment,omitempty"`
|
|
||||||
}
|
|
15
vendor/github.com/matterbridge/msgraph.go/beta/AddInModel.go
generated
vendored
15
vendor/github.com/matterbridge/msgraph.go/beta/AddInModel.go
generated
vendored
@ -1,15 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
// AddIn undocumented
|
|
||||||
type AddIn struct {
|
|
||||||
// Object is the base model of AddIn
|
|
||||||
Object
|
|
||||||
// ID undocumented
|
|
||||||
ID *UUID `json:"id,omitempty"`
|
|
||||||
// Type undocumented
|
|
||||||
Type *string `json:"type,omitempty"`
|
|
||||||
// Properties undocumented
|
|
||||||
Properties []KeyValue `json:"properties,omitempty"`
|
|
||||||
}
|
|
21
vendor/github.com/matterbridge/msgraph.go/beta/AddWatermarkActionModel.go
generated
vendored
21
vendor/github.com/matterbridge/msgraph.go/beta/AddWatermarkActionModel.go
generated
vendored
@ -1,21 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
// AddWatermarkAction undocumented
|
|
||||||
type AddWatermarkAction struct {
|
|
||||||
// InformationProtectionAction is the base model of AddWatermarkAction
|
|
||||||
InformationProtectionAction
|
|
||||||
// UIElementName undocumented
|
|
||||||
UIElementName *string `json:"uiElementName,omitempty"`
|
|
||||||
// Layout undocumented
|
|
||||||
Layout *WatermarkLayout `json:"layout,omitempty"`
|
|
||||||
// Text undocumented
|
|
||||||
Text *string `json:"text,omitempty"`
|
|
||||||
// FontName undocumented
|
|
||||||
FontName *string `json:"fontName,omitempty"`
|
|
||||||
// FontSize undocumented
|
|
||||||
FontSize *int `json:"fontSize,omitempty"`
|
|
||||||
// FontColor undocumented
|
|
||||||
FontColor *string `json:"fontColor,omitempty"`
|
|
||||||
}
|
|
11
vendor/github.com/matterbridge/msgraph.go/beta/AddWatermarkModel.go
generated
vendored
11
vendor/github.com/matterbridge/msgraph.go/beta/AddWatermarkModel.go
generated
vendored
@ -1,11 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
// AddWatermark undocumented
|
|
||||||
type AddWatermark struct {
|
|
||||||
// MarkContent is the base model of AddWatermark
|
|
||||||
MarkContent
|
|
||||||
// Orientation undocumented
|
|
||||||
Orientation *PageOrientation `json:"orientation,omitempty"`
|
|
||||||
}
|
|
33
vendor/github.com/matterbridge/msgraph.go/beta/AdminConsentStateEnum.go
generated
vendored
33
vendor/github.com/matterbridge/msgraph.go/beta/AdminConsentStateEnum.go
generated
vendored
@ -1,33 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
// AdminConsentState undocumented
|
|
||||||
type AdminConsentState int
|
|
||||||
|
|
||||||
const (
|
|
||||||
// AdminConsentStateVNotConfigured undocumented
|
|
||||||
AdminConsentStateVNotConfigured AdminConsentState = 0
|
|
||||||
// AdminConsentStateVGranted undocumented
|
|
||||||
AdminConsentStateVGranted AdminConsentState = 1
|
|
||||||
// AdminConsentStateVNotGranted undocumented
|
|
||||||
AdminConsentStateVNotGranted AdminConsentState = 2
|
|
||||||
)
|
|
||||||
|
|
||||||
// AdminConsentStatePNotConfigured returns a pointer to AdminConsentStateVNotConfigured
|
|
||||||
func AdminConsentStatePNotConfigured() *AdminConsentState {
|
|
||||||
v := AdminConsentStateVNotConfigured
|
|
||||||
return &v
|
|
||||||
}
|
|
||||||
|
|
||||||
// AdminConsentStatePGranted returns a pointer to AdminConsentStateVGranted
|
|
||||||
func AdminConsentStatePGranted() *AdminConsentState {
|
|
||||||
v := AdminConsentStateVGranted
|
|
||||||
return &v
|
|
||||||
}
|
|
||||||
|
|
||||||
// AdminConsentStatePNotGranted returns a pointer to AdminConsentStateVNotGranted
|
|
||||||
func AdminConsentStatePNotGranted() *AdminConsentState {
|
|
||||||
v := AdminConsentStateVNotGranted
|
|
||||||
return &v
|
|
||||||
}
|
|
327
vendor/github.com/matterbridge/msgraph.go/beta/AdministrativeUnitRequest.go
generated
vendored
327
vendor/github.com/matterbridge/msgraph.go/beta/AdministrativeUnitRequest.go
generated
vendored
@ -1,327 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
"fmt"
|
|
||||||
"io/ioutil"
|
|
||||||
"net/http"
|
|
||||||
|
|
||||||
"github.com/matterbridge/msgraph.go/jsonx"
|
|
||||||
)
|
|
||||||
|
|
||||||
// AdministrativeUnitRequestBuilder is request builder for AdministrativeUnit
|
|
||||||
type AdministrativeUnitRequestBuilder struct{ BaseRequestBuilder }
|
|
||||||
|
|
||||||
// Request returns AdministrativeUnitRequest
|
|
||||||
func (b *AdministrativeUnitRequestBuilder) Request() *AdministrativeUnitRequest {
|
|
||||||
return &AdministrativeUnitRequest{
|
|
||||||
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// AdministrativeUnitRequest is request for AdministrativeUnit
|
|
||||||
type AdministrativeUnitRequest struct{ BaseRequest }
|
|
||||||
|
|
||||||
// Get performs GET request for AdministrativeUnit
|
|
||||||
func (r *AdministrativeUnitRequest) Get(ctx context.Context) (resObj *AdministrativeUnit, err error) {
|
|
||||||
var query string
|
|
||||||
if r.query != nil {
|
|
||||||
query = "?" + r.query.Encode()
|
|
||||||
}
|
|
||||||
err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// Update performs PATCH request for AdministrativeUnit
|
|
||||||
func (r *AdministrativeUnitRequest) Update(ctx context.Context, reqObj *AdministrativeUnit) error {
|
|
||||||
return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Delete performs DELETE request for AdministrativeUnit
|
|
||||||
func (r *AdministrativeUnitRequest) Delete(ctx context.Context) error {
|
|
||||||
return r.JSONRequest(ctx, "DELETE", "", nil, nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Extensions returns request builder for Extension collection
|
|
||||||
func (b *AdministrativeUnitRequestBuilder) Extensions() *AdministrativeUnitExtensionsCollectionRequestBuilder {
|
|
||||||
bb := &AdministrativeUnitExtensionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
|
|
||||||
bb.baseURL += "/extensions"
|
|
||||||
return bb
|
|
||||||
}
|
|
||||||
|
|
||||||
// AdministrativeUnitExtensionsCollectionRequestBuilder is request builder for Extension collection
|
|
||||||
type AdministrativeUnitExtensionsCollectionRequestBuilder struct{ BaseRequestBuilder }
|
|
||||||
|
|
||||||
// Request returns request for Extension collection
|
|
||||||
func (b *AdministrativeUnitExtensionsCollectionRequestBuilder) Request() *AdministrativeUnitExtensionsCollectionRequest {
|
|
||||||
return &AdministrativeUnitExtensionsCollectionRequest{
|
|
||||||
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// ID returns request builder for Extension item
|
|
||||||
func (b *AdministrativeUnitExtensionsCollectionRequestBuilder) ID(id string) *ExtensionRequestBuilder {
|
|
||||||
bb := &ExtensionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
|
|
||||||
bb.baseURL += "/" + id
|
|
||||||
return bb
|
|
||||||
}
|
|
||||||
|
|
||||||
// AdministrativeUnitExtensionsCollectionRequest is request for Extension collection
|
|
||||||
type AdministrativeUnitExtensionsCollectionRequest struct{ BaseRequest }
|
|
||||||
|
|
||||||
// Paging perfoms paging operation for Extension collection
|
|
||||||
func (r *AdministrativeUnitExtensionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]Extension, error) {
|
|
||||||
req, err := r.NewJSONRequest(method, path, obj)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if ctx != nil {
|
|
||||||
req = req.WithContext(ctx)
|
|
||||||
}
|
|
||||||
res, err := r.client.Do(req)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
var values []Extension
|
|
||||||
for {
|
|
||||||
defer res.Body.Close()
|
|
||||||
if res.StatusCode != http.StatusOK {
|
|
||||||
b, _ := ioutil.ReadAll(res.Body)
|
|
||||||
errRes := &ErrorResponse{Response: res}
|
|
||||||
err := jsonx.Unmarshal(b, errRes)
|
|
||||||
if err != nil {
|
|
||||||
return nil, fmt.Errorf("%s: %s", res.Status, string(b))
|
|
||||||
}
|
|
||||||
return nil, errRes
|
|
||||||
}
|
|
||||||
var (
|
|
||||||
paging Paging
|
|
||||||
value []Extension
|
|
||||||
)
|
|
||||||
err := jsonx.NewDecoder(res.Body).Decode(&paging)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
err = jsonx.Unmarshal(paging.Value, &value)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
values = append(values, value...)
|
|
||||||
if len(paging.NextLink) == 0 {
|
|
||||||
return values, nil
|
|
||||||
}
|
|
||||||
req, err = http.NewRequest("GET", paging.NextLink, nil)
|
|
||||||
if ctx != nil {
|
|
||||||
req = req.WithContext(ctx)
|
|
||||||
}
|
|
||||||
res, err = r.client.Do(req)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Get performs GET request for Extension collection
|
|
||||||
func (r *AdministrativeUnitExtensionsCollectionRequest) Get(ctx context.Context) ([]Extension, error) {
|
|
||||||
var query string
|
|
||||||
if r.query != nil {
|
|
||||||
query = "?" + r.query.Encode()
|
|
||||||
}
|
|
||||||
return r.Paging(ctx, "GET", query, nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Add performs POST request for Extension collection
|
|
||||||
func (r *AdministrativeUnitExtensionsCollectionRequest) Add(ctx context.Context, reqObj *Extension) (resObj *Extension, err error) {
|
|
||||||
err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// Members returns request builder for DirectoryObject collection
|
|
||||||
func (b *AdministrativeUnitRequestBuilder) Members() *AdministrativeUnitMembersCollectionRequestBuilder {
|
|
||||||
bb := &AdministrativeUnitMembersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
|
|
||||||
bb.baseURL += "/members"
|
|
||||||
return bb
|
|
||||||
}
|
|
||||||
|
|
||||||
// AdministrativeUnitMembersCollectionRequestBuilder is request builder for DirectoryObject collection
|
|
||||||
type AdministrativeUnitMembersCollectionRequestBuilder struct{ BaseRequestBuilder }
|
|
||||||
|
|
||||||
// Request returns request for DirectoryObject collection
|
|
||||||
func (b *AdministrativeUnitMembersCollectionRequestBuilder) Request() *AdministrativeUnitMembersCollectionRequest {
|
|
||||||
return &AdministrativeUnitMembersCollectionRequest{
|
|
||||||
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// ID returns request builder for DirectoryObject item
|
|
||||||
func (b *AdministrativeUnitMembersCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder {
|
|
||||||
bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
|
|
||||||
bb.baseURL += "/" + id
|
|
||||||
return bb
|
|
||||||
}
|
|
||||||
|
|
||||||
// AdministrativeUnitMembersCollectionRequest is request for DirectoryObject collection
|
|
||||||
type AdministrativeUnitMembersCollectionRequest struct{ BaseRequest }
|
|
||||||
|
|
||||||
// Paging perfoms paging operation for DirectoryObject collection
|
|
||||||
func (r *AdministrativeUnitMembersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]DirectoryObject, error) {
|
|
||||||
req, err := r.NewJSONRequest(method, path, obj)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if ctx != nil {
|
|
||||||
req = req.WithContext(ctx)
|
|
||||||
}
|
|
||||||
res, err := r.client.Do(req)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
var values []DirectoryObject
|
|
||||||
for {
|
|
||||||
defer res.Body.Close()
|
|
||||||
if res.StatusCode != http.StatusOK {
|
|
||||||
b, _ := ioutil.ReadAll(res.Body)
|
|
||||||
errRes := &ErrorResponse{Response: res}
|
|
||||||
err := jsonx.Unmarshal(b, errRes)
|
|
||||||
if err != nil {
|
|
||||||
return nil, fmt.Errorf("%s: %s", res.Status, string(b))
|
|
||||||
}
|
|
||||||
return nil, errRes
|
|
||||||
}
|
|
||||||
var (
|
|
||||||
paging Paging
|
|
||||||
value []DirectoryObject
|
|
||||||
)
|
|
||||||
err := jsonx.NewDecoder(res.Body).Decode(&paging)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
err = jsonx.Unmarshal(paging.Value, &value)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
values = append(values, value...)
|
|
||||||
if len(paging.NextLink) == 0 {
|
|
||||||
return values, nil
|
|
||||||
}
|
|
||||||
req, err = http.NewRequest("GET", paging.NextLink, nil)
|
|
||||||
if ctx != nil {
|
|
||||||
req = req.WithContext(ctx)
|
|
||||||
}
|
|
||||||
res, err = r.client.Do(req)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Get performs GET request for DirectoryObject collection
|
|
||||||
func (r *AdministrativeUnitMembersCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
|
|
||||||
var query string
|
|
||||||
if r.query != nil {
|
|
||||||
query = "?" + r.query.Encode()
|
|
||||||
}
|
|
||||||
return r.Paging(ctx, "GET", query, nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Add performs POST request for DirectoryObject collection
|
|
||||||
func (r *AdministrativeUnitMembersCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) {
|
|
||||||
err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// ScopedRoleMembers returns request builder for ScopedRoleMembership collection
|
|
||||||
func (b *AdministrativeUnitRequestBuilder) ScopedRoleMembers() *AdministrativeUnitScopedRoleMembersCollectionRequestBuilder {
|
|
||||||
bb := &AdministrativeUnitScopedRoleMembersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
|
|
||||||
bb.baseURL += "/scopedRoleMembers"
|
|
||||||
return bb
|
|
||||||
}
|
|
||||||
|
|
||||||
// AdministrativeUnitScopedRoleMembersCollectionRequestBuilder is request builder for ScopedRoleMembership collection
|
|
||||||
type AdministrativeUnitScopedRoleMembersCollectionRequestBuilder struct{ BaseRequestBuilder }
|
|
||||||
|
|
||||||
// Request returns request for ScopedRoleMembership collection
|
|
||||||
func (b *AdministrativeUnitScopedRoleMembersCollectionRequestBuilder) Request() *AdministrativeUnitScopedRoleMembersCollectionRequest {
|
|
||||||
return &AdministrativeUnitScopedRoleMembersCollectionRequest{
|
|
||||||
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// ID returns request builder for ScopedRoleMembership item
|
|
||||||
func (b *AdministrativeUnitScopedRoleMembersCollectionRequestBuilder) ID(id string) *ScopedRoleMembershipRequestBuilder {
|
|
||||||
bb := &ScopedRoleMembershipRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
|
|
||||||
bb.baseURL += "/" + id
|
|
||||||
return bb
|
|
||||||
}
|
|
||||||
|
|
||||||
// AdministrativeUnitScopedRoleMembersCollectionRequest is request for ScopedRoleMembership collection
|
|
||||||
type AdministrativeUnitScopedRoleMembersCollectionRequest struct{ BaseRequest }
|
|
||||||
|
|
||||||
// Paging perfoms paging operation for ScopedRoleMembership collection
|
|
||||||
func (r *AdministrativeUnitScopedRoleMembersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]ScopedRoleMembership, error) {
|
|
||||||
req, err := r.NewJSONRequest(method, path, obj)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if ctx != nil {
|
|
||||||
req = req.WithContext(ctx)
|
|
||||||
}
|
|
||||||
res, err := r.client.Do(req)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
var values []ScopedRoleMembership
|
|
||||||
for {
|
|
||||||
defer res.Body.Close()
|
|
||||||
if res.StatusCode != http.StatusOK {
|
|
||||||
b, _ := ioutil.ReadAll(res.Body)
|
|
||||||
errRes := &ErrorResponse{Response: res}
|
|
||||||
err := jsonx.Unmarshal(b, errRes)
|
|
||||||
if err != nil {
|
|
||||||
return nil, fmt.Errorf("%s: %s", res.Status, string(b))
|
|
||||||
}
|
|
||||||
return nil, errRes
|
|
||||||
}
|
|
||||||
var (
|
|
||||||
paging Paging
|
|
||||||
value []ScopedRoleMembership
|
|
||||||
)
|
|
||||||
err := jsonx.NewDecoder(res.Body).Decode(&paging)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
err = jsonx.Unmarshal(paging.Value, &value)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
values = append(values, value...)
|
|
||||||
if len(paging.NextLink) == 0 {
|
|
||||||
return values, nil
|
|
||||||
}
|
|
||||||
req, err = http.NewRequest("GET", paging.NextLink, nil)
|
|
||||||
if ctx != nil {
|
|
||||||
req = req.WithContext(ctx)
|
|
||||||
}
|
|
||||||
res, err = r.client.Do(req)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Get performs GET request for ScopedRoleMembership collection
|
|
||||||
func (r *AdministrativeUnitScopedRoleMembersCollectionRequest) Get(ctx context.Context) ([]ScopedRoleMembership, error) {
|
|
||||||
var query string
|
|
||||||
if r.query != nil {
|
|
||||||
query = "?" + r.query.Encode()
|
|
||||||
}
|
|
||||||
return r.Paging(ctx, "GET", query, nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Add performs POST request for ScopedRoleMembership collection
|
|
||||||
func (r *AdministrativeUnitScopedRoleMembersCollectionRequest) Add(ctx context.Context, reqObj *ScopedRoleMembership) (resObj *ScopedRoleMembership, err error) {
|
|
||||||
err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
|
|
||||||
return
|
|
||||||
}
|
|
@ -1,25 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
// AdministratorConfiguredDeviceComplianceState undocumented
|
|
||||||
type AdministratorConfiguredDeviceComplianceState int
|
|
||||||
|
|
||||||
const (
|
|
||||||
// AdministratorConfiguredDeviceComplianceStateVBasedOnDeviceCompliancePolicy undocumented
|
|
||||||
AdministratorConfiguredDeviceComplianceStateVBasedOnDeviceCompliancePolicy AdministratorConfiguredDeviceComplianceState = 0
|
|
||||||
// AdministratorConfiguredDeviceComplianceStateVNonCompliant undocumented
|
|
||||||
AdministratorConfiguredDeviceComplianceStateVNonCompliant AdministratorConfiguredDeviceComplianceState = 1
|
|
||||||
)
|
|
||||||
|
|
||||||
// AdministratorConfiguredDeviceComplianceStatePBasedOnDeviceCompliancePolicy returns a pointer to AdministratorConfiguredDeviceComplianceStateVBasedOnDeviceCompliancePolicy
|
|
||||||
func AdministratorConfiguredDeviceComplianceStatePBasedOnDeviceCompliancePolicy() *AdministratorConfiguredDeviceComplianceState {
|
|
||||||
v := AdministratorConfiguredDeviceComplianceStateVBasedOnDeviceCompliancePolicy
|
|
||||||
return &v
|
|
||||||
}
|
|
||||||
|
|
||||||
// AdministratorConfiguredDeviceComplianceStatePNonCompliant returns a pointer to AdministratorConfiguredDeviceComplianceStateVNonCompliant
|
|
||||||
func AdministratorConfiguredDeviceComplianceStatePNonCompliant() *AdministratorConfiguredDeviceComplianceState {
|
|
||||||
v := AdministratorConfiguredDeviceComplianceStateVNonCompliant
|
|
||||||
return &v
|
|
||||||
}
|
|
145
vendor/github.com/matterbridge/msgraph.go/beta/AdvancedBitLockerStateEnum.go
generated
vendored
145
vendor/github.com/matterbridge/msgraph.go/beta/AdvancedBitLockerStateEnum.go
generated
vendored
@ -1,145 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
// AdvancedBitLockerState undocumented
|
|
||||||
type AdvancedBitLockerState int
|
|
||||||
|
|
||||||
const (
|
|
||||||
// AdvancedBitLockerStateVSuccess undocumented
|
|
||||||
AdvancedBitLockerStateVSuccess AdvancedBitLockerState = 0
|
|
||||||
// AdvancedBitLockerStateVNoUserConsent undocumented
|
|
||||||
AdvancedBitLockerStateVNoUserConsent AdvancedBitLockerState = 1
|
|
||||||
// AdvancedBitLockerStateVOsVolumeEncryptionMethodMismatch undocumented
|
|
||||||
AdvancedBitLockerStateVOsVolumeEncryptionMethodMismatch AdvancedBitLockerState = 2
|
|
||||||
// AdvancedBitLockerStateVOsVolumeTpmRequired undocumented
|
|
||||||
AdvancedBitLockerStateVOsVolumeTpmRequired AdvancedBitLockerState = 4
|
|
||||||
// AdvancedBitLockerStateVOsVolumeTpmOnlyRequired undocumented
|
|
||||||
AdvancedBitLockerStateVOsVolumeTpmOnlyRequired AdvancedBitLockerState = 8
|
|
||||||
// AdvancedBitLockerStateVOsVolumeTpmPinRequired undocumented
|
|
||||||
AdvancedBitLockerStateVOsVolumeTpmPinRequired AdvancedBitLockerState = 16
|
|
||||||
// AdvancedBitLockerStateVOsVolumeTpmStartupKeyRequired undocumented
|
|
||||||
AdvancedBitLockerStateVOsVolumeTpmStartupKeyRequired AdvancedBitLockerState = 32
|
|
||||||
// AdvancedBitLockerStateVOsVolumeTpmPinStartupKeyRequired undocumented
|
|
||||||
AdvancedBitLockerStateVOsVolumeTpmPinStartupKeyRequired AdvancedBitLockerState = 64
|
|
||||||
// AdvancedBitLockerStateVOsVolumeUnprotected undocumented
|
|
||||||
AdvancedBitLockerStateVOsVolumeUnprotected AdvancedBitLockerState = 128
|
|
||||||
// AdvancedBitLockerStateVRecoveryKeyBackupFailed undocumented
|
|
||||||
AdvancedBitLockerStateVRecoveryKeyBackupFailed AdvancedBitLockerState = 256
|
|
||||||
// AdvancedBitLockerStateVFixedDriveNotEncrypted undocumented
|
|
||||||
AdvancedBitLockerStateVFixedDriveNotEncrypted AdvancedBitLockerState = 512
|
|
||||||
// AdvancedBitLockerStateVFixedDriveEncryptionMethodMismatch undocumented
|
|
||||||
AdvancedBitLockerStateVFixedDriveEncryptionMethodMismatch AdvancedBitLockerState = 1024
|
|
||||||
// AdvancedBitLockerStateVLoggedOnUserNonAdmin undocumented
|
|
||||||
AdvancedBitLockerStateVLoggedOnUserNonAdmin AdvancedBitLockerState = 2048
|
|
||||||
// AdvancedBitLockerStateVWindowsRecoveryEnvironmentNotConfigured undocumented
|
|
||||||
AdvancedBitLockerStateVWindowsRecoveryEnvironmentNotConfigured AdvancedBitLockerState = 4096
|
|
||||||
// AdvancedBitLockerStateVTpmNotAvailable undocumented
|
|
||||||
AdvancedBitLockerStateVTpmNotAvailable AdvancedBitLockerState = 8192
|
|
||||||
// AdvancedBitLockerStateVTpmNotReady undocumented
|
|
||||||
AdvancedBitLockerStateVTpmNotReady AdvancedBitLockerState = 16384
|
|
||||||
// AdvancedBitLockerStateVNetworkError undocumented
|
|
||||||
AdvancedBitLockerStateVNetworkError AdvancedBitLockerState = 32768
|
|
||||||
)
|
|
||||||
|
|
||||||
// AdvancedBitLockerStatePSuccess returns a pointer to AdvancedBitLockerStateVSuccess
|
|
||||||
func AdvancedBitLockerStatePSuccess() *AdvancedBitLockerState {
|
|
||||||
v := AdvancedBitLockerStateVSuccess
|
|
||||||
return &v
|
|
||||||
}
|
|
||||||
|
|
||||||
// AdvancedBitLockerStatePNoUserConsent returns a pointer to AdvancedBitLockerStateVNoUserConsent
|
|
||||||
func AdvancedBitLockerStatePNoUserConsent() *AdvancedBitLockerState {
|
|
||||||
v := AdvancedBitLockerStateVNoUserConsent
|
|
||||||
return &v
|
|
||||||
}
|
|
||||||
|
|
||||||
// AdvancedBitLockerStatePOsVolumeEncryptionMethodMismatch returns a pointer to AdvancedBitLockerStateVOsVolumeEncryptionMethodMismatch
|
|
||||||
func AdvancedBitLockerStatePOsVolumeEncryptionMethodMismatch() *AdvancedBitLockerState {
|
|
||||||
v := AdvancedBitLockerStateVOsVolumeEncryptionMethodMismatch
|
|
||||||
return &v
|
|
||||||
}
|
|
||||||
|
|
||||||
// AdvancedBitLockerStatePOsVolumeTpmRequired returns a pointer to AdvancedBitLockerStateVOsVolumeTpmRequired
|
|
||||||
func AdvancedBitLockerStatePOsVolumeTpmRequired() *AdvancedBitLockerState {
|
|
||||||
v := AdvancedBitLockerStateVOsVolumeTpmRequired
|
|
||||||
return &v
|
|
||||||
}
|
|
||||||
|
|
||||||
// AdvancedBitLockerStatePOsVolumeTpmOnlyRequired returns a pointer to AdvancedBitLockerStateVOsVolumeTpmOnlyRequired
|
|
||||||
func AdvancedBitLockerStatePOsVolumeTpmOnlyRequired() *AdvancedBitLockerState {
|
|
||||||
v := AdvancedBitLockerStateVOsVolumeTpmOnlyRequired
|
|
||||||
return &v
|
|
||||||
}
|
|
||||||
|
|
||||||
// AdvancedBitLockerStatePOsVolumeTpmPinRequired returns a pointer to AdvancedBitLockerStateVOsVolumeTpmPinRequired
|
|
||||||
func AdvancedBitLockerStatePOsVolumeTpmPinRequired() *AdvancedBitLockerState {
|
|
||||||
v := AdvancedBitLockerStateVOsVolumeTpmPinRequired
|
|
||||||
return &v
|
|
||||||
}
|
|
||||||
|
|
||||||
// AdvancedBitLockerStatePOsVolumeTpmStartupKeyRequired returns a pointer to AdvancedBitLockerStateVOsVolumeTpmStartupKeyRequired
|
|
||||||
func AdvancedBitLockerStatePOsVolumeTpmStartupKeyRequired() *AdvancedBitLockerState {
|
|
||||||
v := AdvancedBitLockerStateVOsVolumeTpmStartupKeyRequired
|
|
||||||
return &v
|
|
||||||
}
|
|
||||||
|
|
||||||
// AdvancedBitLockerStatePOsVolumeTpmPinStartupKeyRequired returns a pointer to AdvancedBitLockerStateVOsVolumeTpmPinStartupKeyRequired
|
|
||||||
func AdvancedBitLockerStatePOsVolumeTpmPinStartupKeyRequired() *AdvancedBitLockerState {
|
|
||||||
v := AdvancedBitLockerStateVOsVolumeTpmPinStartupKeyRequired
|
|
||||||
return &v
|
|
||||||
}
|
|
||||||
|
|
||||||
// AdvancedBitLockerStatePOsVolumeUnprotected returns a pointer to AdvancedBitLockerStateVOsVolumeUnprotected
|
|
||||||
func AdvancedBitLockerStatePOsVolumeUnprotected() *AdvancedBitLockerState {
|
|
||||||
v := AdvancedBitLockerStateVOsVolumeUnprotected
|
|
||||||
return &v
|
|
||||||
}
|
|
||||||
|
|
||||||
// AdvancedBitLockerStatePRecoveryKeyBackupFailed returns a pointer to AdvancedBitLockerStateVRecoveryKeyBackupFailed
|
|
||||||
func AdvancedBitLockerStatePRecoveryKeyBackupFailed() *AdvancedBitLockerState {
|
|
||||||
v := AdvancedBitLockerStateVRecoveryKeyBackupFailed
|
|
||||||
return &v
|
|
||||||
}
|
|
||||||
|
|
||||||
// AdvancedBitLockerStatePFixedDriveNotEncrypted returns a pointer to AdvancedBitLockerStateVFixedDriveNotEncrypted
|
|
||||||
func AdvancedBitLockerStatePFixedDriveNotEncrypted() *AdvancedBitLockerState {
|
|
||||||
v := AdvancedBitLockerStateVFixedDriveNotEncrypted
|
|
||||||
return &v
|
|
||||||
}
|
|
||||||
|
|
||||||
// AdvancedBitLockerStatePFixedDriveEncryptionMethodMismatch returns a pointer to AdvancedBitLockerStateVFixedDriveEncryptionMethodMismatch
|
|
||||||
func AdvancedBitLockerStatePFixedDriveEncryptionMethodMismatch() *AdvancedBitLockerState {
|
|
||||||
v := AdvancedBitLockerStateVFixedDriveEncryptionMethodMismatch
|
|
||||||
return &v
|
|
||||||
}
|
|
||||||
|
|
||||||
// AdvancedBitLockerStatePLoggedOnUserNonAdmin returns a pointer to AdvancedBitLockerStateVLoggedOnUserNonAdmin
|
|
||||||
func AdvancedBitLockerStatePLoggedOnUserNonAdmin() *AdvancedBitLockerState {
|
|
||||||
v := AdvancedBitLockerStateVLoggedOnUserNonAdmin
|
|
||||||
return &v
|
|
||||||
}
|
|
||||||
|
|
||||||
// AdvancedBitLockerStatePWindowsRecoveryEnvironmentNotConfigured returns a pointer to AdvancedBitLockerStateVWindowsRecoveryEnvironmentNotConfigured
|
|
||||||
func AdvancedBitLockerStatePWindowsRecoveryEnvironmentNotConfigured() *AdvancedBitLockerState {
|
|
||||||
v := AdvancedBitLockerStateVWindowsRecoveryEnvironmentNotConfigured
|
|
||||||
return &v
|
|
||||||
}
|
|
||||||
|
|
||||||
// AdvancedBitLockerStatePTpmNotAvailable returns a pointer to AdvancedBitLockerStateVTpmNotAvailable
|
|
||||||
func AdvancedBitLockerStatePTpmNotAvailable() *AdvancedBitLockerState {
|
|
||||||
v := AdvancedBitLockerStateVTpmNotAvailable
|
|
||||||
return &v
|
|
||||||
}
|
|
||||||
|
|
||||||
// AdvancedBitLockerStatePTpmNotReady returns a pointer to AdvancedBitLockerStateVTpmNotReady
|
|
||||||
func AdvancedBitLockerStatePTpmNotReady() *AdvancedBitLockerState {
|
|
||||||
v := AdvancedBitLockerStateVTpmNotReady
|
|
||||||
return &v
|
|
||||||
}
|
|
||||||
|
|
||||||
// AdvancedBitLockerStatePNetworkError returns a pointer to AdvancedBitLockerStateVNetworkError
|
|
||||||
func AdvancedBitLockerStatePNetworkError() *AdvancedBitLockerState {
|
|
||||||
v := AdvancedBitLockerStateVNetworkError
|
|
||||||
return &v
|
|
||||||
}
|
|
@ -1,35 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
import "time"
|
|
||||||
|
|
||||||
// AdvancedThreatProtectionOnboardingDeviceSettingState ATP onboarding State for a given device.
|
|
||||||
type AdvancedThreatProtectionOnboardingDeviceSettingState struct {
|
|
||||||
// Entity is the base model of AdvancedThreatProtectionOnboardingDeviceSettingState
|
|
||||||
Entity
|
|
||||||
// PlatformType Device platform type
|
|
||||||
PlatformType *DeviceType `json:"platformType,omitempty"`
|
|
||||||
// Setting The setting class name and property name.
|
|
||||||
Setting *string `json:"setting,omitempty"`
|
|
||||||
// SettingName The Setting Name that is being reported
|
|
||||||
SettingName *string `json:"settingName,omitempty"`
|
|
||||||
// DeviceID The Device Id that is being reported
|
|
||||||
DeviceID *string `json:"deviceId,omitempty"`
|
|
||||||
// DeviceName The Device Name that is being reported
|
|
||||||
DeviceName *string `json:"deviceName,omitempty"`
|
|
||||||
// UserID The user Id that is being reported
|
|
||||||
UserID *string `json:"userId,omitempty"`
|
|
||||||
// UserEmail The User email address that is being reported
|
|
||||||
UserEmail *string `json:"userEmail,omitempty"`
|
|
||||||
// UserName The User Name that is being reported
|
|
||||||
UserName *string `json:"userName,omitempty"`
|
|
||||||
// UserPrincipalName The User PrincipalName that is being reported
|
|
||||||
UserPrincipalName *string `json:"userPrincipalName,omitempty"`
|
|
||||||
// DeviceModel The device model that is being reported
|
|
||||||
DeviceModel *string `json:"deviceModel,omitempty"`
|
|
||||||
// State The compliance state of the setting
|
|
||||||
State *ComplianceStatus `json:"state,omitempty"`
|
|
||||||
// ComplianceGracePeriodExpirationDateTime The DateTime when device compliance grace period expires
|
|
||||||
ComplianceGracePeriodExpirationDateTime *time.Time `json:"complianceGracePeriodExpirationDateTime,omitempty"`
|
|
||||||
}
|
|
@ -1,38 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
import "context"
|
|
||||||
|
|
||||||
// AdvancedThreatProtectionOnboardingDeviceSettingStateRequestBuilder is request builder for AdvancedThreatProtectionOnboardingDeviceSettingState
|
|
||||||
type AdvancedThreatProtectionOnboardingDeviceSettingStateRequestBuilder struct{ BaseRequestBuilder }
|
|
||||||
|
|
||||||
// Request returns AdvancedThreatProtectionOnboardingDeviceSettingStateRequest
|
|
||||||
func (b *AdvancedThreatProtectionOnboardingDeviceSettingStateRequestBuilder) Request() *AdvancedThreatProtectionOnboardingDeviceSettingStateRequest {
|
|
||||||
return &AdvancedThreatProtectionOnboardingDeviceSettingStateRequest{
|
|
||||||
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// AdvancedThreatProtectionOnboardingDeviceSettingStateRequest is request for AdvancedThreatProtectionOnboardingDeviceSettingState
|
|
||||||
type AdvancedThreatProtectionOnboardingDeviceSettingStateRequest struct{ BaseRequest }
|
|
||||||
|
|
||||||
// Get performs GET request for AdvancedThreatProtectionOnboardingDeviceSettingState
|
|
||||||
func (r *AdvancedThreatProtectionOnboardingDeviceSettingStateRequest) Get(ctx context.Context) (resObj *AdvancedThreatProtectionOnboardingDeviceSettingState, err error) {
|
|
||||||
var query string
|
|
||||||
if r.query != nil {
|
|
||||||
query = "?" + r.query.Encode()
|
|
||||||
}
|
|
||||||
err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// Update performs PATCH request for AdvancedThreatProtectionOnboardingDeviceSettingState
|
|
||||||
func (r *AdvancedThreatProtectionOnboardingDeviceSettingStateRequest) Update(ctx context.Context, reqObj *AdvancedThreatProtectionOnboardingDeviceSettingState) error {
|
|
||||||
return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Delete performs DELETE request for AdvancedThreatProtectionOnboardingDeviceSettingState
|
|
||||||
func (r *AdvancedThreatProtectionOnboardingDeviceSettingStateRequest) Delete(ctx context.Context) error {
|
|
||||||
return r.JSONRequest(ctx, "DELETE", "", nil, nil)
|
|
||||||
}
|
|
@ -1,27 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
// AdvancedThreatProtectionOnboardingStateSummary Windows defender advanced threat protection onboarding state summary across the account.
|
|
||||||
type AdvancedThreatProtectionOnboardingStateSummary struct {
|
|
||||||
// Entity is the base model of AdvancedThreatProtectionOnboardingStateSummary
|
|
||||||
Entity
|
|
||||||
// UnknownDeviceCount Number of unknown devices
|
|
||||||
UnknownDeviceCount *int `json:"unknownDeviceCount,omitempty"`
|
|
||||||
// NotApplicableDeviceCount Number of not applicable devices
|
|
||||||
NotApplicableDeviceCount *int `json:"notApplicableDeviceCount,omitempty"`
|
|
||||||
// CompliantDeviceCount Number of compliant devices
|
|
||||||
CompliantDeviceCount *int `json:"compliantDeviceCount,omitempty"`
|
|
||||||
// RemediatedDeviceCount Number of remediated devices
|
|
||||||
RemediatedDeviceCount *int `json:"remediatedDeviceCount,omitempty"`
|
|
||||||
// NonCompliantDeviceCount Number of NonCompliant devices
|
|
||||||
NonCompliantDeviceCount *int `json:"nonCompliantDeviceCount,omitempty"`
|
|
||||||
// ErrorDeviceCount Number of error devices
|
|
||||||
ErrorDeviceCount *int `json:"errorDeviceCount,omitempty"`
|
|
||||||
// ConflictDeviceCount Number of conflict devices
|
|
||||||
ConflictDeviceCount *int `json:"conflictDeviceCount,omitempty"`
|
|
||||||
// NotAssignedDeviceCount Number of not assigned devices
|
|
||||||
NotAssignedDeviceCount *int `json:"notAssignedDeviceCount,omitempty"`
|
|
||||||
// AdvancedThreatProtectionOnboardingDeviceSettingStates undocumented
|
|
||||||
AdvancedThreatProtectionOnboardingDeviceSettingStates []AdvancedThreatProtectionOnboardingDeviceSettingState `json:"advancedThreatProtectionOnboardingDeviceSettingStates,omitempty"`
|
|
||||||
}
|
|
@ -1,139 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
"fmt"
|
|
||||||
"io/ioutil"
|
|
||||||
"net/http"
|
|
||||||
|
|
||||||
"github.com/matterbridge/msgraph.go/jsonx"
|
|
||||||
)
|
|
||||||
|
|
||||||
// AdvancedThreatProtectionOnboardingStateSummaryRequestBuilder is request builder for AdvancedThreatProtectionOnboardingStateSummary
|
|
||||||
type AdvancedThreatProtectionOnboardingStateSummaryRequestBuilder struct{ BaseRequestBuilder }
|
|
||||||
|
|
||||||
// Request returns AdvancedThreatProtectionOnboardingStateSummaryRequest
|
|
||||||
func (b *AdvancedThreatProtectionOnboardingStateSummaryRequestBuilder) Request() *AdvancedThreatProtectionOnboardingStateSummaryRequest {
|
|
||||||
return &AdvancedThreatProtectionOnboardingStateSummaryRequest{
|
|
||||||
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// AdvancedThreatProtectionOnboardingStateSummaryRequest is request for AdvancedThreatProtectionOnboardingStateSummary
|
|
||||||
type AdvancedThreatProtectionOnboardingStateSummaryRequest struct{ BaseRequest }
|
|
||||||
|
|
||||||
// Get performs GET request for AdvancedThreatProtectionOnboardingStateSummary
|
|
||||||
func (r *AdvancedThreatProtectionOnboardingStateSummaryRequest) Get(ctx context.Context) (resObj *AdvancedThreatProtectionOnboardingStateSummary, err error) {
|
|
||||||
var query string
|
|
||||||
if r.query != nil {
|
|
||||||
query = "?" + r.query.Encode()
|
|
||||||
}
|
|
||||||
err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// Update performs PATCH request for AdvancedThreatProtectionOnboardingStateSummary
|
|
||||||
func (r *AdvancedThreatProtectionOnboardingStateSummaryRequest) Update(ctx context.Context, reqObj *AdvancedThreatProtectionOnboardingStateSummary) error {
|
|
||||||
return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Delete performs DELETE request for AdvancedThreatProtectionOnboardingStateSummary
|
|
||||||
func (r *AdvancedThreatProtectionOnboardingStateSummaryRequest) Delete(ctx context.Context) error {
|
|
||||||
return r.JSONRequest(ctx, "DELETE", "", nil, nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
// AdvancedThreatProtectionOnboardingDeviceSettingStates returns request builder for AdvancedThreatProtectionOnboardingDeviceSettingState collection
|
|
||||||
func (b *AdvancedThreatProtectionOnboardingStateSummaryRequestBuilder) AdvancedThreatProtectionOnboardingDeviceSettingStates() *AdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionOnboardingDeviceSettingStatesCollectionRequestBuilder {
|
|
||||||
bb := &AdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionOnboardingDeviceSettingStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
|
|
||||||
bb.baseURL += "/advancedThreatProtectionOnboardingDeviceSettingStates"
|
|
||||||
return bb
|
|
||||||
}
|
|
||||||
|
|
||||||
// AdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionOnboardingDeviceSettingStatesCollectionRequestBuilder is request builder for AdvancedThreatProtectionOnboardingDeviceSettingState collection
|
|
||||||
type AdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionOnboardingDeviceSettingStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
|
|
||||||
|
|
||||||
// Request returns request for AdvancedThreatProtectionOnboardingDeviceSettingState collection
|
|
||||||
func (b *AdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionOnboardingDeviceSettingStatesCollectionRequestBuilder) Request() *AdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionOnboardingDeviceSettingStatesCollectionRequest {
|
|
||||||
return &AdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionOnboardingDeviceSettingStatesCollectionRequest{
|
|
||||||
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// ID returns request builder for AdvancedThreatProtectionOnboardingDeviceSettingState item
|
|
||||||
func (b *AdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionOnboardingDeviceSettingStatesCollectionRequestBuilder) ID(id string) *AdvancedThreatProtectionOnboardingDeviceSettingStateRequestBuilder {
|
|
||||||
bb := &AdvancedThreatProtectionOnboardingDeviceSettingStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
|
|
||||||
bb.baseURL += "/" + id
|
|
||||||
return bb
|
|
||||||
}
|
|
||||||
|
|
||||||
// AdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionOnboardingDeviceSettingStatesCollectionRequest is request for AdvancedThreatProtectionOnboardingDeviceSettingState collection
|
|
||||||
type AdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionOnboardingDeviceSettingStatesCollectionRequest struct{ BaseRequest }
|
|
||||||
|
|
||||||
// Paging perfoms paging operation for AdvancedThreatProtectionOnboardingDeviceSettingState collection
|
|
||||||
func (r *AdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionOnboardingDeviceSettingStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AdvancedThreatProtectionOnboardingDeviceSettingState, error) {
|
|
||||||
req, err := r.NewJSONRequest(method, path, obj)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if ctx != nil {
|
|
||||||
req = req.WithContext(ctx)
|
|
||||||
}
|
|
||||||
res, err := r.client.Do(req)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
var values []AdvancedThreatProtectionOnboardingDeviceSettingState
|
|
||||||
for {
|
|
||||||
defer res.Body.Close()
|
|
||||||
if res.StatusCode != http.StatusOK {
|
|
||||||
b, _ := ioutil.ReadAll(res.Body)
|
|
||||||
errRes := &ErrorResponse{Response: res}
|
|
||||||
err := jsonx.Unmarshal(b, errRes)
|
|
||||||
if err != nil {
|
|
||||||
return nil, fmt.Errorf("%s: %s", res.Status, string(b))
|
|
||||||
}
|
|
||||||
return nil, errRes
|
|
||||||
}
|
|
||||||
var (
|
|
||||||
paging Paging
|
|
||||||
value []AdvancedThreatProtectionOnboardingDeviceSettingState
|
|
||||||
)
|
|
||||||
err := jsonx.NewDecoder(res.Body).Decode(&paging)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
err = jsonx.Unmarshal(paging.Value, &value)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
values = append(values, value...)
|
|
||||||
if len(paging.NextLink) == 0 {
|
|
||||||
return values, nil
|
|
||||||
}
|
|
||||||
req, err = http.NewRequest("GET", paging.NextLink, nil)
|
|
||||||
if ctx != nil {
|
|
||||||
req = req.WithContext(ctx)
|
|
||||||
}
|
|
||||||
res, err = r.client.Do(req)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Get performs GET request for AdvancedThreatProtectionOnboardingDeviceSettingState collection
|
|
||||||
func (r *AdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionOnboardingDeviceSettingStatesCollectionRequest) Get(ctx context.Context) ([]AdvancedThreatProtectionOnboardingDeviceSettingState, error) {
|
|
||||||
var query string
|
|
||||||
if r.query != nil {
|
|
||||||
query = "?" + r.query.Encode()
|
|
||||||
}
|
|
||||||
return r.Paging(ctx, "GET", query, nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Add performs POST request for AdvancedThreatProtectionOnboardingDeviceSettingState collection
|
|
||||||
func (r *AdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionOnboardingDeviceSettingStatesCollectionRequest) Add(ctx context.Context, reqObj *AdvancedThreatProtectionOnboardingDeviceSettingState) (resObj *AdvancedThreatProtectionOnboardingDeviceSettingState, err error) {
|
|
||||||
err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
|
|
||||||
return
|
|
||||||
}
|
|
31
vendor/github.com/matterbridge/msgraph.go/beta/AgedAccountsPayableModel.go
generated
vendored
31
vendor/github.com/matterbridge/msgraph.go/beta/AgedAccountsPayableModel.go
generated
vendored
@ -1,31 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
import "time"
|
|
||||||
|
|
||||||
// AgedAccountsPayable undocumented
|
|
||||||
type AgedAccountsPayable struct {
|
|
||||||
// Entity is the base model of AgedAccountsPayable
|
|
||||||
Entity
|
|
||||||
// VendorNumber undocumented
|
|
||||||
VendorNumber *string `json:"vendorNumber,omitempty"`
|
|
||||||
// Name undocumented
|
|
||||||
Name *string `json:"name,omitempty"`
|
|
||||||
// CurrencyCode undocumented
|
|
||||||
CurrencyCode *string `json:"currencyCode,omitempty"`
|
|
||||||
// BalanceDue undocumented
|
|
||||||
BalanceDue *int `json:"balanceDue,omitempty"`
|
|
||||||
// CurrentAmount undocumented
|
|
||||||
CurrentAmount *int `json:"currentAmount,omitempty"`
|
|
||||||
// Period1Amount undocumented
|
|
||||||
Period1Amount *int `json:"period1Amount,omitempty"`
|
|
||||||
// Period2Amount undocumented
|
|
||||||
Period2Amount *int `json:"period2Amount,omitempty"`
|
|
||||||
// Period3Amount undocumented
|
|
||||||
Period3Amount *int `json:"period3Amount,omitempty"`
|
|
||||||
// AgedAsOfDate undocumented
|
|
||||||
AgedAsOfDate *time.Time `json:"agedAsOfDate,omitempty"`
|
|
||||||
// PeriodLengthFilter undocumented
|
|
||||||
PeriodLengthFilter *string `json:"periodLengthFilter,omitempty"`
|
|
||||||
}
|
|
38
vendor/github.com/matterbridge/msgraph.go/beta/AgedAccountsPayableRequest.go
generated
vendored
38
vendor/github.com/matterbridge/msgraph.go/beta/AgedAccountsPayableRequest.go
generated
vendored
@ -1,38 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
import "context"
|
|
||||||
|
|
||||||
// AgedAccountsPayableRequestBuilder is request builder for AgedAccountsPayable
|
|
||||||
type AgedAccountsPayableRequestBuilder struct{ BaseRequestBuilder }
|
|
||||||
|
|
||||||
// Request returns AgedAccountsPayableRequest
|
|
||||||
func (b *AgedAccountsPayableRequestBuilder) Request() *AgedAccountsPayableRequest {
|
|
||||||
return &AgedAccountsPayableRequest{
|
|
||||||
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// AgedAccountsPayableRequest is request for AgedAccountsPayable
|
|
||||||
type AgedAccountsPayableRequest struct{ BaseRequest }
|
|
||||||
|
|
||||||
// Get performs GET request for AgedAccountsPayable
|
|
||||||
func (r *AgedAccountsPayableRequest) Get(ctx context.Context) (resObj *AgedAccountsPayable, err error) {
|
|
||||||
var query string
|
|
||||||
if r.query != nil {
|
|
||||||
query = "?" + r.query.Encode()
|
|
||||||
}
|
|
||||||
err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// Update performs PATCH request for AgedAccountsPayable
|
|
||||||
func (r *AgedAccountsPayableRequest) Update(ctx context.Context, reqObj *AgedAccountsPayable) error {
|
|
||||||
return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Delete performs DELETE request for AgedAccountsPayable
|
|
||||||
func (r *AgedAccountsPayableRequest) Delete(ctx context.Context) error {
|
|
||||||
return r.JSONRequest(ctx, "DELETE", "", nil, nil)
|
|
||||||
}
|
|
31
vendor/github.com/matterbridge/msgraph.go/beta/AgedAccountsReceivableModel.go
generated
vendored
31
vendor/github.com/matterbridge/msgraph.go/beta/AgedAccountsReceivableModel.go
generated
vendored
@ -1,31 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
import "time"
|
|
||||||
|
|
||||||
// AgedAccountsReceivable undocumented
|
|
||||||
type AgedAccountsReceivable struct {
|
|
||||||
// Entity is the base model of AgedAccountsReceivable
|
|
||||||
Entity
|
|
||||||
// CustomerNumber undocumented
|
|
||||||
CustomerNumber *string `json:"customerNumber,omitempty"`
|
|
||||||
// Name undocumented
|
|
||||||
Name *string `json:"name,omitempty"`
|
|
||||||
// CurrencyCode undocumented
|
|
||||||
CurrencyCode *string `json:"currencyCode,omitempty"`
|
|
||||||
// BalanceDue undocumented
|
|
||||||
BalanceDue *int `json:"balanceDue,omitempty"`
|
|
||||||
// CurrentAmount undocumented
|
|
||||||
CurrentAmount *int `json:"currentAmount,omitempty"`
|
|
||||||
// Period1Amount undocumented
|
|
||||||
Period1Amount *int `json:"period1Amount,omitempty"`
|
|
||||||
// Period2Amount undocumented
|
|
||||||
Period2Amount *int `json:"period2Amount,omitempty"`
|
|
||||||
// Period3Amount undocumented
|
|
||||||
Period3Amount *int `json:"period3Amount,omitempty"`
|
|
||||||
// AgedAsOfDate undocumented
|
|
||||||
AgedAsOfDate *time.Time `json:"agedAsOfDate,omitempty"`
|
|
||||||
// PeriodLengthFilter undocumented
|
|
||||||
PeriodLengthFilter *string `json:"periodLengthFilter,omitempty"`
|
|
||||||
}
|
|
38
vendor/github.com/matterbridge/msgraph.go/beta/AgedAccountsReceivableRequest.go
generated
vendored
38
vendor/github.com/matterbridge/msgraph.go/beta/AgedAccountsReceivableRequest.go
generated
vendored
@ -1,38 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
import "context"
|
|
||||||
|
|
||||||
// AgedAccountsReceivableRequestBuilder is request builder for AgedAccountsReceivable
|
|
||||||
type AgedAccountsReceivableRequestBuilder struct{ BaseRequestBuilder }
|
|
||||||
|
|
||||||
// Request returns AgedAccountsReceivableRequest
|
|
||||||
func (b *AgedAccountsReceivableRequestBuilder) Request() *AgedAccountsReceivableRequest {
|
|
||||||
return &AgedAccountsReceivableRequest{
|
|
||||||
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// AgedAccountsReceivableRequest is request for AgedAccountsReceivable
|
|
||||||
type AgedAccountsReceivableRequest struct{ BaseRequest }
|
|
||||||
|
|
||||||
// Get performs GET request for AgedAccountsReceivable
|
|
||||||
func (r *AgedAccountsReceivableRequest) Get(ctx context.Context) (resObj *AgedAccountsReceivable, err error) {
|
|
||||||
var query string
|
|
||||||
if r.query != nil {
|
|
||||||
query = "?" + r.query.Encode()
|
|
||||||
}
|
|
||||||
err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// Update performs PATCH request for AgedAccountsReceivable
|
|
||||||
func (r *AgedAccountsReceivableRequest) Update(ctx context.Context, reqObj *AgedAccountsReceivable) error {
|
|
||||||
return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Delete performs DELETE request for AgedAccountsReceivable
|
|
||||||
func (r *AgedAccountsReceivableRequest) Delete(ctx context.Context) error {
|
|
||||||
return r.JSONRequest(ctx, "DELETE", "", nil, nil)
|
|
||||||
}
|
|
25
vendor/github.com/matterbridge/msgraph.go/beta/AgentStatusEnum.go
generated
vendored
25
vendor/github.com/matterbridge/msgraph.go/beta/AgentStatusEnum.go
generated
vendored
@ -1,25 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
// AgentStatus undocumented
|
|
||||||
type AgentStatus int
|
|
||||||
|
|
||||||
const (
|
|
||||||
// AgentStatusVActive undocumented
|
|
||||||
AgentStatusVActive AgentStatus = 0
|
|
||||||
// AgentStatusVInactive undocumented
|
|
||||||
AgentStatusVInactive AgentStatus = 1
|
|
||||||
)
|
|
||||||
|
|
||||||
// AgentStatusPActive returns a pointer to AgentStatusVActive
|
|
||||||
func AgentStatusPActive() *AgentStatus {
|
|
||||||
v := AgentStatusVActive
|
|
||||||
return &v
|
|
||||||
}
|
|
||||||
|
|
||||||
// AgentStatusPInactive returns a pointer to AgentStatusVInactive
|
|
||||||
func AgentStatusPInactive() *AgentStatus {
|
|
||||||
v := AgentStatusVInactive
|
|
||||||
return &v
|
|
||||||
}
|
|
27
vendor/github.com/matterbridge/msgraph.go/beta/AgreementAcceptanceModel.go
generated
vendored
27
vendor/github.com/matterbridge/msgraph.go/beta/AgreementAcceptanceModel.go
generated
vendored
@ -1,27 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
import "time"
|
|
||||||
|
|
||||||
// AgreementAcceptance undocumented
|
|
||||||
type AgreementAcceptance struct {
|
|
||||||
// Entity is the base model of AgreementAcceptance
|
|
||||||
Entity
|
|
||||||
// AgreementID undocumented
|
|
||||||
AgreementID *string `json:"agreementId,omitempty"`
|
|
||||||
// UserID undocumented
|
|
||||||
UserID *string `json:"userId,omitempty"`
|
|
||||||
// AgreementFileID undocumented
|
|
||||||
AgreementFileID *string `json:"agreementFileId,omitempty"`
|
|
||||||
// RecordedDateTime undocumented
|
|
||||||
RecordedDateTime *time.Time `json:"recordedDateTime,omitempty"`
|
|
||||||
// UserDisplayName undocumented
|
|
||||||
UserDisplayName *string `json:"userDisplayName,omitempty"`
|
|
||||||
// UserPrincipalName undocumented
|
|
||||||
UserPrincipalName *string `json:"userPrincipalName,omitempty"`
|
|
||||||
// UserEmail undocumented
|
|
||||||
UserEmail *string `json:"userEmail,omitempty"`
|
|
||||||
// State undocumented
|
|
||||||
State *AgreementAcceptanceState `json:"state,omitempty"`
|
|
||||||
}
|
|
38
vendor/github.com/matterbridge/msgraph.go/beta/AgreementAcceptanceRequest.go
generated
vendored
38
vendor/github.com/matterbridge/msgraph.go/beta/AgreementAcceptanceRequest.go
generated
vendored
@ -1,38 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
import "context"
|
|
||||||
|
|
||||||
// AgreementAcceptanceRequestBuilder is request builder for AgreementAcceptance
|
|
||||||
type AgreementAcceptanceRequestBuilder struct{ BaseRequestBuilder }
|
|
||||||
|
|
||||||
// Request returns AgreementAcceptanceRequest
|
|
||||||
func (b *AgreementAcceptanceRequestBuilder) Request() *AgreementAcceptanceRequest {
|
|
||||||
return &AgreementAcceptanceRequest{
|
|
||||||
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// AgreementAcceptanceRequest is request for AgreementAcceptance
|
|
||||||
type AgreementAcceptanceRequest struct{ BaseRequest }
|
|
||||||
|
|
||||||
// Get performs GET request for AgreementAcceptance
|
|
||||||
func (r *AgreementAcceptanceRequest) Get(ctx context.Context) (resObj *AgreementAcceptance, err error) {
|
|
||||||
var query string
|
|
||||||
if r.query != nil {
|
|
||||||
query = "?" + r.query.Encode()
|
|
||||||
}
|
|
||||||
err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// Update performs PATCH request for AgreementAcceptance
|
|
||||||
func (r *AgreementAcceptanceRequest) Update(ctx context.Context, reqObj *AgreementAcceptance) error {
|
|
||||||
return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Delete performs DELETE request for AgreementAcceptance
|
|
||||||
func (r *AgreementAcceptanceRequest) Delete(ctx context.Context) error {
|
|
||||||
return r.JSONRequest(ctx, "DELETE", "", nil, nil)
|
|
||||||
}
|
|
25
vendor/github.com/matterbridge/msgraph.go/beta/AgreementAcceptanceStateEnum.go
generated
vendored
25
vendor/github.com/matterbridge/msgraph.go/beta/AgreementAcceptanceStateEnum.go
generated
vendored
@ -1,25 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
// AgreementAcceptanceState undocumented
|
|
||||||
type AgreementAcceptanceState int
|
|
||||||
|
|
||||||
const (
|
|
||||||
// AgreementAcceptanceStateVAccepted undocumented
|
|
||||||
AgreementAcceptanceStateVAccepted AgreementAcceptanceState = 2
|
|
||||||
// AgreementAcceptanceStateVDeclined undocumented
|
|
||||||
AgreementAcceptanceStateVDeclined AgreementAcceptanceState = 3
|
|
||||||
)
|
|
||||||
|
|
||||||
// AgreementAcceptanceStatePAccepted returns a pointer to AgreementAcceptanceStateVAccepted
|
|
||||||
func AgreementAcceptanceStatePAccepted() *AgreementAcceptanceState {
|
|
||||||
v := AgreementAcceptanceStateVAccepted
|
|
||||||
return &v
|
|
||||||
}
|
|
||||||
|
|
||||||
// AgreementAcceptanceStatePDeclined returns a pointer to AgreementAcceptanceStateVDeclined
|
|
||||||
func AgreementAcceptanceStatePDeclined() *AgreementAcceptanceState {
|
|
||||||
v := AgreementAcceptanceStateVDeclined
|
|
||||||
return &v
|
|
||||||
}
|
|
11
vendor/github.com/matterbridge/msgraph.go/beta/AgreementFileDataModel.go
generated
vendored
11
vendor/github.com/matterbridge/msgraph.go/beta/AgreementFileDataModel.go
generated
vendored
@ -1,11 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
// AgreementFileData undocumented
|
|
||||||
type AgreementFileData struct {
|
|
||||||
// Object is the base model of AgreementFileData
|
|
||||||
Object
|
|
||||||
// Data undocumented
|
|
||||||
Data *Binary `json:"data,omitempty"`
|
|
||||||
}
|
|
17
vendor/github.com/matterbridge/msgraph.go/beta/AgreementFileModel.go
generated
vendored
17
vendor/github.com/matterbridge/msgraph.go/beta/AgreementFileModel.go
generated
vendored
@ -1,17 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
// AgreementFile undocumented
|
|
||||||
type AgreementFile struct {
|
|
||||||
// Entity is the base model of AgreementFile
|
|
||||||
Entity
|
|
||||||
// Language undocumented
|
|
||||||
Language *string `json:"language,omitempty"`
|
|
||||||
// FileName undocumented
|
|
||||||
FileName *string `json:"fileName,omitempty"`
|
|
||||||
// FileData undocumented
|
|
||||||
FileData *AgreementFileData `json:"fileData,omitempty"`
|
|
||||||
// IsDefault undocumented
|
|
||||||
IsDefault *bool `json:"isDefault,omitempty"`
|
|
||||||
}
|
|
38
vendor/github.com/matterbridge/msgraph.go/beta/AgreementFileRequest.go
generated
vendored
38
vendor/github.com/matterbridge/msgraph.go/beta/AgreementFileRequest.go
generated
vendored
@ -1,38 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
import "context"
|
|
||||||
|
|
||||||
// AgreementFileRequestBuilder is request builder for AgreementFile
|
|
||||||
type AgreementFileRequestBuilder struct{ BaseRequestBuilder }
|
|
||||||
|
|
||||||
// Request returns AgreementFileRequest
|
|
||||||
func (b *AgreementFileRequestBuilder) Request() *AgreementFileRequest {
|
|
||||||
return &AgreementFileRequest{
|
|
||||||
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// AgreementFileRequest is request for AgreementFile
|
|
||||||
type AgreementFileRequest struct{ BaseRequest }
|
|
||||||
|
|
||||||
// Get performs GET request for AgreementFile
|
|
||||||
func (r *AgreementFileRequest) Get(ctx context.Context) (resObj *AgreementFile, err error) {
|
|
||||||
var query string
|
|
||||||
if r.query != nil {
|
|
||||||
query = "?" + r.query.Encode()
|
|
||||||
}
|
|
||||||
err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// Update performs PATCH request for AgreementFile
|
|
||||||
func (r *AgreementFileRequest) Update(ctx context.Context, reqObj *AgreementFile) error {
|
|
||||||
return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Delete performs DELETE request for AgreementFile
|
|
||||||
func (r *AgreementFileRequest) Delete(ctx context.Context) error {
|
|
||||||
return r.JSONRequest(ctx, "DELETE", "", nil, nil)
|
|
||||||
}
|
|
15
vendor/github.com/matterbridge/msgraph.go/beta/AgreementModel.go
generated
vendored
15
vendor/github.com/matterbridge/msgraph.go/beta/AgreementModel.go
generated
vendored
@ -1,15 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
// Agreement undocumented
|
|
||||||
type Agreement struct {
|
|
||||||
// Entity is the base model of Agreement
|
|
||||||
Entity
|
|
||||||
// DisplayName undocumented
|
|
||||||
DisplayName *string `json:"displayName,omitempty"`
|
|
||||||
// IsViewingBeforeAcceptanceRequired undocumented
|
|
||||||
IsViewingBeforeAcceptanceRequired *bool `json:"isViewingBeforeAcceptanceRequired,omitempty"`
|
|
||||||
// Files undocumented
|
|
||||||
Files []AgreementFile `json:"files,omitempty"`
|
|
||||||
}
|
|
139
vendor/github.com/matterbridge/msgraph.go/beta/AgreementRequest.go
generated
vendored
139
vendor/github.com/matterbridge/msgraph.go/beta/AgreementRequest.go
generated
vendored
@ -1,139 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
"fmt"
|
|
||||||
"io/ioutil"
|
|
||||||
"net/http"
|
|
||||||
|
|
||||||
"github.com/matterbridge/msgraph.go/jsonx"
|
|
||||||
)
|
|
||||||
|
|
||||||
// AgreementRequestBuilder is request builder for Agreement
|
|
||||||
type AgreementRequestBuilder struct{ BaseRequestBuilder }
|
|
||||||
|
|
||||||
// Request returns AgreementRequest
|
|
||||||
func (b *AgreementRequestBuilder) Request() *AgreementRequest {
|
|
||||||
return &AgreementRequest{
|
|
||||||
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// AgreementRequest is request for Agreement
|
|
||||||
type AgreementRequest struct{ BaseRequest }
|
|
||||||
|
|
||||||
// Get performs GET request for Agreement
|
|
||||||
func (r *AgreementRequest) Get(ctx context.Context) (resObj *Agreement, err error) {
|
|
||||||
var query string
|
|
||||||
if r.query != nil {
|
|
||||||
query = "?" + r.query.Encode()
|
|
||||||
}
|
|
||||||
err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// Update performs PATCH request for Agreement
|
|
||||||
func (r *AgreementRequest) Update(ctx context.Context, reqObj *Agreement) error {
|
|
||||||
return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Delete performs DELETE request for Agreement
|
|
||||||
func (r *AgreementRequest) Delete(ctx context.Context) error {
|
|
||||||
return r.JSONRequest(ctx, "DELETE", "", nil, nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Files returns request builder for AgreementFile collection
|
|
||||||
func (b *AgreementRequestBuilder) Files() *AgreementFilesCollectionRequestBuilder {
|
|
||||||
bb := &AgreementFilesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
|
|
||||||
bb.baseURL += "/files"
|
|
||||||
return bb
|
|
||||||
}
|
|
||||||
|
|
||||||
// AgreementFilesCollectionRequestBuilder is request builder for AgreementFile collection
|
|
||||||
type AgreementFilesCollectionRequestBuilder struct{ BaseRequestBuilder }
|
|
||||||
|
|
||||||
// Request returns request for AgreementFile collection
|
|
||||||
func (b *AgreementFilesCollectionRequestBuilder) Request() *AgreementFilesCollectionRequest {
|
|
||||||
return &AgreementFilesCollectionRequest{
|
|
||||||
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// ID returns request builder for AgreementFile item
|
|
||||||
func (b *AgreementFilesCollectionRequestBuilder) ID(id string) *AgreementFileRequestBuilder {
|
|
||||||
bb := &AgreementFileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
|
|
||||||
bb.baseURL += "/" + id
|
|
||||||
return bb
|
|
||||||
}
|
|
||||||
|
|
||||||
// AgreementFilesCollectionRequest is request for AgreementFile collection
|
|
||||||
type AgreementFilesCollectionRequest struct{ BaseRequest }
|
|
||||||
|
|
||||||
// Paging perfoms paging operation for AgreementFile collection
|
|
||||||
func (r *AgreementFilesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([]AgreementFile, error) {
|
|
||||||
req, err := r.NewJSONRequest(method, path, obj)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if ctx != nil {
|
|
||||||
req = req.WithContext(ctx)
|
|
||||||
}
|
|
||||||
res, err := r.client.Do(req)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
var values []AgreementFile
|
|
||||||
for {
|
|
||||||
defer res.Body.Close()
|
|
||||||
if res.StatusCode != http.StatusOK {
|
|
||||||
b, _ := ioutil.ReadAll(res.Body)
|
|
||||||
errRes := &ErrorResponse{Response: res}
|
|
||||||
err := jsonx.Unmarshal(b, errRes)
|
|
||||||
if err != nil {
|
|
||||||
return nil, fmt.Errorf("%s: %s", res.Status, string(b))
|
|
||||||
}
|
|
||||||
return nil, errRes
|
|
||||||
}
|
|
||||||
var (
|
|
||||||
paging Paging
|
|
||||||
value []AgreementFile
|
|
||||||
)
|
|
||||||
err := jsonx.NewDecoder(res.Body).Decode(&paging)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
err = jsonx.Unmarshal(paging.Value, &value)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
values = append(values, value...)
|
|
||||||
if len(paging.NextLink) == 0 {
|
|
||||||
return values, nil
|
|
||||||
}
|
|
||||||
req, err = http.NewRequest("GET", paging.NextLink, nil)
|
|
||||||
if ctx != nil {
|
|
||||||
req = req.WithContext(ctx)
|
|
||||||
}
|
|
||||||
res, err = r.client.Do(req)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Get performs GET request for AgreementFile collection
|
|
||||||
func (r *AgreementFilesCollectionRequest) Get(ctx context.Context) ([]AgreementFile, error) {
|
|
||||||
var query string
|
|
||||||
if r.query != nil {
|
|
||||||
query = "?" + r.query.Encode()
|
|
||||||
}
|
|
||||||
return r.Paging(ctx, "GET", query, nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Add performs POST request for AgreementFile collection
|
|
||||||
func (r *AgreementFilesCollectionRequest) Add(ctx context.Context, reqObj *AgreementFile) (resObj *AgreementFile, err error) {
|
|
||||||
err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
|
|
||||||
return
|
|
||||||
}
|
|
100
vendor/github.com/matterbridge/msgraph.go/beta/AlertAction.go
generated
vendored
100
vendor/github.com/matterbridge/msgraph.go/beta/AlertAction.go
generated
vendored
@ -1,100 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
"fmt"
|
|
||||||
"io/ioutil"
|
|
||||||
"net/http"
|
|
||||||
|
|
||||||
"github.com/matterbridge/msgraph.go/jsonx"
|
|
||||||
)
|
|
||||||
|
|
||||||
// AlertCollectionUpdateAlertsRequestParameter undocumented
|
|
||||||
type AlertCollectionUpdateAlertsRequestParameter struct {
|
|
||||||
// Value undocumented
|
|
||||||
Value []Alert `json:"value,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
//
|
|
||||||
type AlertCollectionUpdateAlertsRequestBuilder struct{ BaseRequestBuilder }
|
|
||||||
|
|
||||||
// UpdateAlerts action undocumented
|
|
||||||
func (b *SecurityAlertsCollectionRequestBuilder) UpdateAlerts(reqObj *AlertCollectionUpdateAlertsRequestParameter) *AlertCollectionUpdateAlertsRequestBuilder {
|
|
||||||
bb := &AlertCollectionUpdateAlertsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
|
|
||||||
bb.BaseRequestBuilder.baseURL += "/updateAlerts"
|
|
||||||
bb.BaseRequestBuilder.requestObject = reqObj
|
|
||||||
return bb
|
|
||||||
}
|
|
||||||
|
|
||||||
//
|
|
||||||
type AlertCollectionUpdateAlertsRequest struct{ BaseRequest }
|
|
||||||
|
|
||||||
//
|
|
||||||
func (b *AlertCollectionUpdateAlertsRequestBuilder) Request() *AlertCollectionUpdateAlertsRequest {
|
|
||||||
return &AlertCollectionUpdateAlertsRequest{
|
|
||||||
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
//
|
|
||||||
func (r *AlertCollectionUpdateAlertsRequest) Paging(ctx context.Context, method, path string, obj interface{}) ([][]Alert, error) {
|
|
||||||
req, err := r.NewJSONRequest(method, path, obj)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if ctx != nil {
|
|
||||||
req = req.WithContext(ctx)
|
|
||||||
}
|
|
||||||
res, err := r.client.Do(req)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
var values [][]Alert
|
|
||||||
for {
|
|
||||||
defer res.Body.Close()
|
|
||||||
if res.StatusCode != http.StatusOK {
|
|
||||||
b, _ := ioutil.ReadAll(res.Body)
|
|
||||||
errRes := &ErrorResponse{Response: res}
|
|
||||||
err := jsonx.Unmarshal(b, errRes)
|
|
||||||
if err != nil {
|
|
||||||
return nil, fmt.Errorf("%s: %s", res.Status, string(b))
|
|
||||||
}
|
|
||||||
return nil, errRes
|
|
||||||
}
|
|
||||||
var (
|
|
||||||
paging Paging
|
|
||||||
value [][]Alert
|
|
||||||
)
|
|
||||||
err := jsonx.NewDecoder(res.Body).Decode(&paging)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
err = jsonx.Unmarshal(paging.Value, &value)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
values = append(values, value...)
|
|
||||||
if len(paging.NextLink) == 0 {
|
|
||||||
return values, nil
|
|
||||||
}
|
|
||||||
req, err = http.NewRequest("GET", paging.NextLink, nil)
|
|
||||||
if ctx != nil {
|
|
||||||
req = req.WithContext(ctx)
|
|
||||||
}
|
|
||||||
res, err = r.client.Do(req)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
//
|
|
||||||
func (r *AlertCollectionUpdateAlertsRequest) Get(ctx context.Context) ([][]Alert, error) {
|
|
||||||
var query string
|
|
||||||
if r.query != nil {
|
|
||||||
query = "?" + r.query.Encode()
|
|
||||||
}
|
|
||||||
return r.Paging(ctx, "GET", query, nil)
|
|
||||||
}
|
|
49
vendor/github.com/matterbridge/msgraph.go/beta/AlertFeedbackEnum.go
generated
vendored
49
vendor/github.com/matterbridge/msgraph.go/beta/AlertFeedbackEnum.go
generated
vendored
@ -1,49 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
// AlertFeedback undocumented
|
|
||||||
type AlertFeedback int
|
|
||||||
|
|
||||||
const (
|
|
||||||
// AlertFeedbackVUnknown undocumented
|
|
||||||
AlertFeedbackVUnknown AlertFeedback = 0
|
|
||||||
// AlertFeedbackVTruePositive undocumented
|
|
||||||
AlertFeedbackVTruePositive AlertFeedback = 1
|
|
||||||
// AlertFeedbackVFalsePositive undocumented
|
|
||||||
AlertFeedbackVFalsePositive AlertFeedback = 2
|
|
||||||
// AlertFeedbackVBenignPositive undocumented
|
|
||||||
AlertFeedbackVBenignPositive AlertFeedback = 3
|
|
||||||
// AlertFeedbackVUnknownFutureValue undocumented
|
|
||||||
AlertFeedbackVUnknownFutureValue AlertFeedback = 127
|
|
||||||
)
|
|
||||||
|
|
||||||
// AlertFeedbackPUnknown returns a pointer to AlertFeedbackVUnknown
|
|
||||||
func AlertFeedbackPUnknown() *AlertFeedback {
|
|
||||||
v := AlertFeedbackVUnknown
|
|
||||||
return &v
|
|
||||||
}
|
|
||||||
|
|
||||||
// AlertFeedbackPTruePositive returns a pointer to AlertFeedbackVTruePositive
|
|
||||||
func AlertFeedbackPTruePositive() *AlertFeedback {
|
|
||||||
v := AlertFeedbackVTruePositive
|
|
||||||
return &v
|
|
||||||
}
|
|
||||||
|
|
||||||
// AlertFeedbackPFalsePositive returns a pointer to AlertFeedbackVFalsePositive
|
|
||||||
func AlertFeedbackPFalsePositive() *AlertFeedback {
|
|
||||||
v := AlertFeedbackVFalsePositive
|
|
||||||
return &v
|
|
||||||
}
|
|
||||||
|
|
||||||
// AlertFeedbackPBenignPositive returns a pointer to AlertFeedbackVBenignPositive
|
|
||||||
func AlertFeedbackPBenignPositive() *AlertFeedback {
|
|
||||||
v := AlertFeedbackVBenignPositive
|
|
||||||
return &v
|
|
||||||
}
|
|
||||||
|
|
||||||
// AlertFeedbackPUnknownFutureValue returns a pointer to AlertFeedbackVUnknownFutureValue
|
|
||||||
func AlertFeedbackPUnknownFutureValue() *AlertFeedback {
|
|
||||||
v := AlertFeedbackVUnknownFutureValue
|
|
||||||
return &v
|
|
||||||
}
|
|
25
vendor/github.com/matterbridge/msgraph.go/beta/AlertHistoryStateModel.go
generated
vendored
25
vendor/github.com/matterbridge/msgraph.go/beta/AlertHistoryStateModel.go
generated
vendored
@ -1,25 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
import "time"
|
|
||||||
|
|
||||||
// AlertHistoryState undocumented
|
|
||||||
type AlertHistoryState struct {
|
|
||||||
// Object is the base model of AlertHistoryState
|
|
||||||
Object
|
|
||||||
// AppID undocumented
|
|
||||||
AppID *string `json:"appId,omitempty"`
|
|
||||||
// AssignedTo undocumented
|
|
||||||
AssignedTo *string `json:"assignedTo,omitempty"`
|
|
||||||
// Comments undocumented
|
|
||||||
Comments []string `json:"comments,omitempty"`
|
|
||||||
// Feedback undocumented
|
|
||||||
Feedback *AlertFeedback `json:"feedback,omitempty"`
|
|
||||||
// Status undocumented
|
|
||||||
Status *AlertStatus `json:"status,omitempty"`
|
|
||||||
// UpdatedDateTime undocumented
|
|
||||||
UpdatedDateTime *time.Time `json:"updatedDateTime,omitempty"`
|
|
||||||
// User undocumented
|
|
||||||
User *string `json:"user,omitempty"`
|
|
||||||
}
|
|
75
vendor/github.com/matterbridge/msgraph.go/beta/AlertModel.go
generated
vendored
75
vendor/github.com/matterbridge/msgraph.go/beta/AlertModel.go
generated
vendored
@ -1,75 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
import "time"
|
|
||||||
|
|
||||||
// Alert undocumented
|
|
||||||
type Alert struct {
|
|
||||||
// Entity is the base model of Alert
|
|
||||||
Entity
|
|
||||||
// ActivityGroupName undocumented
|
|
||||||
ActivityGroupName *string `json:"activityGroupName,omitempty"`
|
|
||||||
// AssignedTo undocumented
|
|
||||||
AssignedTo *string `json:"assignedTo,omitempty"`
|
|
||||||
// AzureSubscriptionID undocumented
|
|
||||||
AzureSubscriptionID *string `json:"azureSubscriptionId,omitempty"`
|
|
||||||
// AzureTenantID undocumented
|
|
||||||
AzureTenantID *string `json:"azureTenantId,omitempty"`
|
|
||||||
// Category undocumented
|
|
||||||
Category *string `json:"category,omitempty"`
|
|
||||||
// ClosedDateTime undocumented
|
|
||||||
ClosedDateTime *time.Time `json:"closedDateTime,omitempty"`
|
|
||||||
// CloudAppStates undocumented
|
|
||||||
CloudAppStates []CloudAppSecurityState `json:"cloudAppStates,omitempty"`
|
|
||||||
// Comments undocumented
|
|
||||||
Comments []string `json:"comments,omitempty"`
|
|
||||||
// Confidence undocumented
|
|
||||||
Confidence *int `json:"confidence,omitempty"`
|
|
||||||
// CreatedDateTime undocumented
|
|
||||||
CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
|
|
||||||
// Description undocumented
|
|
||||||
Description *string `json:"description,omitempty"`
|
|
||||||
// DetectionIDs undocumented
|
|
||||||
DetectionIDs []string `json:"detectionIds,omitempty"`
|
|
||||||
// EventDateTime undocumented
|
|
||||||
EventDateTime *time.Time `json:"eventDateTime,omitempty"`
|
|
||||||
// Feedback undocumented
|
|
||||||
Feedback *AlertFeedback `json:"feedback,omitempty"`
|
|
||||||
// FileStates undocumented
|
|
||||||
FileStates []FileSecurityState `json:"fileStates,omitempty"`
|
|
||||||
// HistoryStates undocumented
|
|
||||||
HistoryStates []AlertHistoryState `json:"historyStates,omitempty"`
|
|
||||||
// HostStates undocumented
|
|
||||||
HostStates []HostSecurityState `json:"hostStates,omitempty"`
|
|
||||||
// LastModifiedDateTime undocumented
|
|
||||||
LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
|
|
||||||
// MalwareStates undocumented
|
|
||||||
MalwareStates []MalwareState `json:"malwareStates,omitempty"`
|
|
||||||
// NetworkConnections undocumented
|
|
||||||
NetworkConnections []NetworkConnection `json:"networkConnections,omitempty"`
|
|
||||||
// Processes undocumented
|
|
||||||
Processes []Process `json:"processes,omitempty"`
|
|
||||||
// RecommendedActions undocumented
|
|
||||||
RecommendedActions []string `json:"recommendedActions,omitempty"`
|
|
||||||
// RegistryKeyStates undocumented
|
|
||||||
RegistryKeyStates []RegistryKeyState `json:"registryKeyStates,omitempty"`
|
|
||||||
// Severity undocumented
|
|
||||||
Severity *AlertSeverity `json:"severity,omitempty"`
|
|
||||||
// SourceMaterials undocumented
|
|
||||||
SourceMaterials []string `json:"sourceMaterials,omitempty"`
|
|
||||||
// Status undocumented
|
|
||||||
Status *AlertStatus `json:"status,omitempty"`
|
|
||||||
// Tags undocumented
|
|
||||||
Tags []string `json:"tags,omitempty"`
|
|
||||||
// Title undocumented
|
|
||||||
Title *string `json:"title,omitempty"`
|
|
||||||
// Triggers undocumented
|
|
||||||
Triggers []AlertTrigger `json:"triggers,omitempty"`
|
|
||||||
// UserStates undocumented
|
|
||||||
UserStates []UserSecurityState `json:"userStates,omitempty"`
|
|
||||||
// VendorInformation undocumented
|
|
||||||
VendorInformation *SecurityVendorInformation `json:"vendorInformation,omitempty"`
|
|
||||||
// VulnerabilityStates undocumented
|
|
||||||
VulnerabilityStates []VulnerabilityState `json:"vulnerabilityStates,omitempty"`
|
|
||||||
}
|
|
38
vendor/github.com/matterbridge/msgraph.go/beta/AlertRequest.go
generated
vendored
38
vendor/github.com/matterbridge/msgraph.go/beta/AlertRequest.go
generated
vendored
@ -1,38 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
import "context"
|
|
||||||
|
|
||||||
// AlertRequestBuilder is request builder for Alert
|
|
||||||
type AlertRequestBuilder struct{ BaseRequestBuilder }
|
|
||||||
|
|
||||||
// Request returns AlertRequest
|
|
||||||
func (b *AlertRequestBuilder) Request() *AlertRequest {
|
|
||||||
return &AlertRequest{
|
|
||||||
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// AlertRequest is request for Alert
|
|
||||||
type AlertRequest struct{ BaseRequest }
|
|
||||||
|
|
||||||
// Get performs GET request for Alert
|
|
||||||
func (r *AlertRequest) Get(ctx context.Context) (resObj *Alert, err error) {
|
|
||||||
var query string
|
|
||||||
if r.query != nil {
|
|
||||||
query = "?" + r.query.Encode()
|
|
||||||
}
|
|
||||||
err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// Update performs PATCH request for Alert
|
|
||||||
func (r *AlertRequest) Update(ctx context.Context, reqObj *Alert) error {
|
|
||||||
return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Delete performs DELETE request for Alert
|
|
||||||
func (r *AlertRequest) Delete(ctx context.Context) error {
|
|
||||||
return r.JSONRequest(ctx, "DELETE", "", nil, nil)
|
|
||||||
}
|
|
57
vendor/github.com/matterbridge/msgraph.go/beta/AlertSeverityEnum.go
generated
vendored
57
vendor/github.com/matterbridge/msgraph.go/beta/AlertSeverityEnum.go
generated
vendored
@ -1,57 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
// AlertSeverity undocumented
|
|
||||||
type AlertSeverity int
|
|
||||||
|
|
||||||
const (
|
|
||||||
// AlertSeverityVUnknown undocumented
|
|
||||||
AlertSeverityVUnknown AlertSeverity = 0
|
|
||||||
// AlertSeverityVInformational undocumented
|
|
||||||
AlertSeverityVInformational AlertSeverity = 1
|
|
||||||
// AlertSeverityVLow undocumented
|
|
||||||
AlertSeverityVLow AlertSeverity = 2
|
|
||||||
// AlertSeverityVMedium undocumented
|
|
||||||
AlertSeverityVMedium AlertSeverity = 3
|
|
||||||
// AlertSeverityVHigh undocumented
|
|
||||||
AlertSeverityVHigh AlertSeverity = 4
|
|
||||||
// AlertSeverityVUnknownFutureValue undocumented
|
|
||||||
AlertSeverityVUnknownFutureValue AlertSeverity = 127
|
|
||||||
)
|
|
||||||
|
|
||||||
// AlertSeverityPUnknown returns a pointer to AlertSeverityVUnknown
|
|
||||||
func AlertSeverityPUnknown() *AlertSeverity {
|
|
||||||
v := AlertSeverityVUnknown
|
|
||||||
return &v
|
|
||||||
}
|
|
||||||
|
|
||||||
// AlertSeverityPInformational returns a pointer to AlertSeverityVInformational
|
|
||||||
func AlertSeverityPInformational() *AlertSeverity {
|
|
||||||
v := AlertSeverityVInformational
|
|
||||||
return &v
|
|
||||||
}
|
|
||||||
|
|
||||||
// AlertSeverityPLow returns a pointer to AlertSeverityVLow
|
|
||||||
func AlertSeverityPLow() *AlertSeverity {
|
|
||||||
v := AlertSeverityVLow
|
|
||||||
return &v
|
|
||||||
}
|
|
||||||
|
|
||||||
// AlertSeverityPMedium returns a pointer to AlertSeverityVMedium
|
|
||||||
func AlertSeverityPMedium() *AlertSeverity {
|
|
||||||
v := AlertSeverityVMedium
|
|
||||||
return &v
|
|
||||||
}
|
|
||||||
|
|
||||||
// AlertSeverityPHigh returns a pointer to AlertSeverityVHigh
|
|
||||||
func AlertSeverityPHigh() *AlertSeverity {
|
|
||||||
v := AlertSeverityVHigh
|
|
||||||
return &v
|
|
||||||
}
|
|
||||||
|
|
||||||
// AlertSeverityPUnknownFutureValue returns a pointer to AlertSeverityVUnknownFutureValue
|
|
||||||
func AlertSeverityPUnknownFutureValue() *AlertSeverity {
|
|
||||||
v := AlertSeverityVUnknownFutureValue
|
|
||||||
return &v
|
|
||||||
}
|
|
57
vendor/github.com/matterbridge/msgraph.go/beta/AlertStatusEnum.go
generated
vendored
57
vendor/github.com/matterbridge/msgraph.go/beta/AlertStatusEnum.go
generated
vendored
@ -1,57 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
// AlertStatus undocumented
|
|
||||||
type AlertStatus int
|
|
||||||
|
|
||||||
const (
|
|
||||||
// AlertStatusVUnknown undocumented
|
|
||||||
AlertStatusVUnknown AlertStatus = 0
|
|
||||||
// AlertStatusVNewAlert undocumented
|
|
||||||
AlertStatusVNewAlert AlertStatus = 1
|
|
||||||
// AlertStatusVInProgress undocumented
|
|
||||||
AlertStatusVInProgress AlertStatus = 2
|
|
||||||
// AlertStatusVResolved undocumented
|
|
||||||
AlertStatusVResolved AlertStatus = 3
|
|
||||||
// AlertStatusVDismissed undocumented
|
|
||||||
AlertStatusVDismissed AlertStatus = 4
|
|
||||||
// AlertStatusVUnknownFutureValue undocumented
|
|
||||||
AlertStatusVUnknownFutureValue AlertStatus = 127
|
|
||||||
)
|
|
||||||
|
|
||||||
// AlertStatusPUnknown returns a pointer to AlertStatusVUnknown
|
|
||||||
func AlertStatusPUnknown() *AlertStatus {
|
|
||||||
v := AlertStatusVUnknown
|
|
||||||
return &v
|
|
||||||
}
|
|
||||||
|
|
||||||
// AlertStatusPNewAlert returns a pointer to AlertStatusVNewAlert
|
|
||||||
func AlertStatusPNewAlert() *AlertStatus {
|
|
||||||
v := AlertStatusVNewAlert
|
|
||||||
return &v
|
|
||||||
}
|
|
||||||
|
|
||||||
// AlertStatusPInProgress returns a pointer to AlertStatusVInProgress
|
|
||||||
func AlertStatusPInProgress() *AlertStatus {
|
|
||||||
v := AlertStatusVInProgress
|
|
||||||
return &v
|
|
||||||
}
|
|
||||||
|
|
||||||
// AlertStatusPResolved returns a pointer to AlertStatusVResolved
|
|
||||||
func AlertStatusPResolved() *AlertStatus {
|
|
||||||
v := AlertStatusVResolved
|
|
||||||
return &v
|
|
||||||
}
|
|
||||||
|
|
||||||
// AlertStatusPDismissed returns a pointer to AlertStatusVDismissed
|
|
||||||
func AlertStatusPDismissed() *AlertStatus {
|
|
||||||
v := AlertStatusVDismissed
|
|
||||||
return &v
|
|
||||||
}
|
|
||||||
|
|
||||||
// AlertStatusPUnknownFutureValue returns a pointer to AlertStatusVUnknownFutureValue
|
|
||||||
func AlertStatusPUnknownFutureValue() *AlertStatus {
|
|
||||||
v := AlertStatusVUnknownFutureValue
|
|
||||||
return &v
|
|
||||||
}
|
|
15
vendor/github.com/matterbridge/msgraph.go/beta/AlertTriggerModel.go
generated
vendored
15
vendor/github.com/matterbridge/msgraph.go/beta/AlertTriggerModel.go
generated
vendored
@ -1,15 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
// AlertTrigger undocumented
|
|
||||||
type AlertTrigger struct {
|
|
||||||
// Object is the base model of AlertTrigger
|
|
||||||
Object
|
|
||||||
// Name undocumented
|
|
||||||
Name *string `json:"name,omitempty"`
|
|
||||||
// Type undocumented
|
|
||||||
Type *string `json:"type,omitempty"`
|
|
||||||
// Value undocumented
|
|
||||||
Value *string `json:"value,omitempty"`
|
|
||||||
}
|
|
33
vendor/github.com/matterbridge/msgraph.go/beta/AlignmentEnum.go
generated
vendored
33
vendor/github.com/matterbridge/msgraph.go/beta/AlignmentEnum.go
generated
vendored
@ -1,33 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
// Alignment undocumented
|
|
||||||
type Alignment int
|
|
||||||
|
|
||||||
const (
|
|
||||||
// AlignmentVLeft undocumented
|
|
||||||
AlignmentVLeft Alignment = 0
|
|
||||||
// AlignmentVRight undocumented
|
|
||||||
AlignmentVRight Alignment = 1
|
|
||||||
// AlignmentVCenter undocumented
|
|
||||||
AlignmentVCenter Alignment = 2
|
|
||||||
)
|
|
||||||
|
|
||||||
// AlignmentPLeft returns a pointer to AlignmentVLeft
|
|
||||||
func AlignmentPLeft() *Alignment {
|
|
||||||
v := AlignmentVLeft
|
|
||||||
return &v
|
|
||||||
}
|
|
||||||
|
|
||||||
// AlignmentPRight returns a pointer to AlignmentVRight
|
|
||||||
func AlignmentPRight() *Alignment {
|
|
||||||
v := AlignmentVRight
|
|
||||||
return &v
|
|
||||||
}
|
|
||||||
|
|
||||||
// AlignmentPCenter returns a pointer to AlignmentVCenter
|
|
||||||
func AlignmentPCenter() *Alignment {
|
|
||||||
v := AlignmentVCenter
|
|
||||||
return &v
|
|
||||||
}
|
|
9
vendor/github.com/matterbridge/msgraph.go/beta/AllDevicesAssignmentTargetModel.go
generated
vendored
9
vendor/github.com/matterbridge/msgraph.go/beta/AllDevicesAssignmentTargetModel.go
generated
vendored
@ -1,9 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
// AllDevicesAssignmentTarget undocumented
|
|
||||||
type AllDevicesAssignmentTarget struct {
|
|
||||||
// DeviceAndAppManagementAssignmentTarget is the base model of AllDevicesAssignmentTarget
|
|
||||||
DeviceAndAppManagementAssignmentTarget
|
|
||||||
}
|
|
@ -1,9 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
// AllLicensedUsersAssignmentTarget undocumented
|
|
||||||
type AllLicensedUsersAssignmentTarget struct {
|
|
||||||
// DeviceAndAppManagementAssignmentTarget is the base model of AllLicensedUsersAssignmentTarget
|
|
||||||
DeviceAndAppManagementAssignmentTarget
|
|
||||||
}
|
|
73
vendor/github.com/matterbridge/msgraph.go/beta/AllowedAudiencesEnum.go
generated
vendored
73
vendor/github.com/matterbridge/msgraph.go/beta/AllowedAudiencesEnum.go
generated
vendored
@ -1,73 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
// AllowedAudiences undocumented
|
|
||||||
type AllowedAudiences int
|
|
||||||
|
|
||||||
const (
|
|
||||||
// AllowedAudiencesVMe undocumented
|
|
||||||
AllowedAudiencesVMe AllowedAudiences = 0
|
|
||||||
// AllowedAudiencesVFamily undocumented
|
|
||||||
AllowedAudiencesVFamily AllowedAudiences = 1
|
|
||||||
// AllowedAudiencesVContacts undocumented
|
|
||||||
AllowedAudiencesVContacts AllowedAudiences = 2
|
|
||||||
// AllowedAudiencesVGroupMembers undocumented
|
|
||||||
AllowedAudiencesVGroupMembers AllowedAudiences = 4
|
|
||||||
// AllowedAudiencesVOrganization undocumented
|
|
||||||
AllowedAudiencesVOrganization AllowedAudiences = 8
|
|
||||||
// AllowedAudiencesVFederatedOrganizations undocumented
|
|
||||||
AllowedAudiencesVFederatedOrganizations AllowedAudiences = 16
|
|
||||||
// AllowedAudiencesVEveryone undocumented
|
|
||||||
AllowedAudiencesVEveryone AllowedAudiences = 32
|
|
||||||
// AllowedAudiencesVUnknownFutureValue undocumented
|
|
||||||
AllowedAudiencesVUnknownFutureValue AllowedAudiences = 64
|
|
||||||
)
|
|
||||||
|
|
||||||
// AllowedAudiencesPMe returns a pointer to AllowedAudiencesVMe
|
|
||||||
func AllowedAudiencesPMe() *AllowedAudiences {
|
|
||||||
v := AllowedAudiencesVMe
|
|
||||||
return &v
|
|
||||||
}
|
|
||||||
|
|
||||||
// AllowedAudiencesPFamily returns a pointer to AllowedAudiencesVFamily
|
|
||||||
func AllowedAudiencesPFamily() *AllowedAudiences {
|
|
||||||
v := AllowedAudiencesVFamily
|
|
||||||
return &v
|
|
||||||
}
|
|
||||||
|
|
||||||
// AllowedAudiencesPContacts returns a pointer to AllowedAudiencesVContacts
|
|
||||||
func AllowedAudiencesPContacts() *AllowedAudiences {
|
|
||||||
v := AllowedAudiencesVContacts
|
|
||||||
return &v
|
|
||||||
}
|
|
||||||
|
|
||||||
// AllowedAudiencesPGroupMembers returns a pointer to AllowedAudiencesVGroupMembers
|
|
||||||
func AllowedAudiencesPGroupMembers() *AllowedAudiences {
|
|
||||||
v := AllowedAudiencesVGroupMembers
|
|
||||||
return &v
|
|
||||||
}
|
|
||||||
|
|
||||||
// AllowedAudiencesPOrganization returns a pointer to AllowedAudiencesVOrganization
|
|
||||||
func AllowedAudiencesPOrganization() *AllowedAudiences {
|
|
||||||
v := AllowedAudiencesVOrganization
|
|
||||||
return &v
|
|
||||||
}
|
|
||||||
|
|
||||||
// AllowedAudiencesPFederatedOrganizations returns a pointer to AllowedAudiencesVFederatedOrganizations
|
|
||||||
func AllowedAudiencesPFederatedOrganizations() *AllowedAudiences {
|
|
||||||
v := AllowedAudiencesVFederatedOrganizations
|
|
||||||
return &v
|
|
||||||
}
|
|
||||||
|
|
||||||
// AllowedAudiencesPEveryone returns a pointer to AllowedAudiencesVEveryone
|
|
||||||
func AllowedAudiencesPEveryone() *AllowedAudiences {
|
|
||||||
v := AllowedAudiencesVEveryone
|
|
||||||
return &v
|
|
||||||
}
|
|
||||||
|
|
||||||
// AllowedAudiencesPUnknownFutureValue returns a pointer to AllowedAudiencesVUnknownFutureValue
|
|
||||||
func AllowedAudiencesPUnknownFutureValue() *AllowedAudiences {
|
|
||||||
v := AllowedAudiencesVUnknownFutureValue
|
|
||||||
return &v
|
|
||||||
}
|
|
9
vendor/github.com/matterbridge/msgraph.go/beta/AllowedDataLocationInfoModel.go
generated
vendored
9
vendor/github.com/matterbridge/msgraph.go/beta/AllowedDataLocationInfoModel.go
generated
vendored
@ -1,9 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
// AllowedDataLocationInfo undocumented
|
|
||||||
type AllowedDataLocationInfo struct {
|
|
||||||
// Object is the base model of AllowedDataLocationInfo
|
|
||||||
Object
|
|
||||||
}
|
|
17
vendor/github.com/matterbridge/msgraph.go/beta/AllowedDataLocationModel.go
generated
vendored
17
vendor/github.com/matterbridge/msgraph.go/beta/AllowedDataLocationModel.go
generated
vendored
@ -1,17 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
// AllowedDataLocation undocumented
|
|
||||||
type AllowedDataLocation struct {
|
|
||||||
// Entity is the base model of AllowedDataLocation
|
|
||||||
Entity
|
|
||||||
// AppID undocumented
|
|
||||||
AppID *string `json:"appId,omitempty"`
|
|
||||||
// Location undocumented
|
|
||||||
Location *string `json:"location,omitempty"`
|
|
||||||
// IsDefault undocumented
|
|
||||||
IsDefault *bool `json:"isDefault,omitempty"`
|
|
||||||
// Domain undocumented
|
|
||||||
Domain *string `json:"domain,omitempty"`
|
|
||||||
}
|
|
49
vendor/github.com/matterbridge/msgraph.go/beta/AnalyticsActivityTypeEnum.go
generated
vendored
49
vendor/github.com/matterbridge/msgraph.go/beta/AnalyticsActivityTypeEnum.go
generated
vendored
@ -1,49 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
// AnalyticsActivityType undocumented
|
|
||||||
type AnalyticsActivityType int
|
|
||||||
|
|
||||||
const (
|
|
||||||
// AnalyticsActivityTypeVEmail undocumented
|
|
||||||
AnalyticsActivityTypeVEmail AnalyticsActivityType = 0
|
|
||||||
// AnalyticsActivityTypeVMeeting undocumented
|
|
||||||
AnalyticsActivityTypeVMeeting AnalyticsActivityType = 1
|
|
||||||
// AnalyticsActivityTypeVFocus undocumented
|
|
||||||
AnalyticsActivityTypeVFocus AnalyticsActivityType = 2
|
|
||||||
// AnalyticsActivityTypeVChat undocumented
|
|
||||||
AnalyticsActivityTypeVChat AnalyticsActivityType = 3
|
|
||||||
// AnalyticsActivityTypeVCall undocumented
|
|
||||||
AnalyticsActivityTypeVCall AnalyticsActivityType = 4
|
|
||||||
)
|
|
||||||
|
|
||||||
// AnalyticsActivityTypePEmail returns a pointer to AnalyticsActivityTypeVEmail
|
|
||||||
func AnalyticsActivityTypePEmail() *AnalyticsActivityType {
|
|
||||||
v := AnalyticsActivityTypeVEmail
|
|
||||||
return &v
|
|
||||||
}
|
|
||||||
|
|
||||||
// AnalyticsActivityTypePMeeting returns a pointer to AnalyticsActivityTypeVMeeting
|
|
||||||
func AnalyticsActivityTypePMeeting() *AnalyticsActivityType {
|
|
||||||
v := AnalyticsActivityTypeVMeeting
|
|
||||||
return &v
|
|
||||||
}
|
|
||||||
|
|
||||||
// AnalyticsActivityTypePFocus returns a pointer to AnalyticsActivityTypeVFocus
|
|
||||||
func AnalyticsActivityTypePFocus() *AnalyticsActivityType {
|
|
||||||
v := AnalyticsActivityTypeVFocus
|
|
||||||
return &v
|
|
||||||
}
|
|
||||||
|
|
||||||
// AnalyticsActivityTypePChat returns a pointer to AnalyticsActivityTypeVChat
|
|
||||||
func AnalyticsActivityTypePChat() *AnalyticsActivityType {
|
|
||||||
v := AnalyticsActivityTypeVChat
|
|
||||||
return &v
|
|
||||||
}
|
|
||||||
|
|
||||||
// AnalyticsActivityTypePCall returns a pointer to AnalyticsActivityTypeVCall
|
|
||||||
func AnalyticsActivityTypePCall() *AnalyticsActivityType {
|
|
||||||
v := AnalyticsActivityTypeVCall
|
|
||||||
return &v
|
|
||||||
}
|
|
23
vendor/github.com/matterbridge/msgraph.go/beta/AndroidCertificateProfileBaseModel.go
generated
vendored
23
vendor/github.com/matterbridge/msgraph.go/beta/AndroidCertificateProfileBaseModel.go
generated
vendored
@ -1,23 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
// AndroidCertificateProfileBase Android certificate profile base.
|
|
||||||
type AndroidCertificateProfileBase struct {
|
|
||||||
// DeviceConfiguration is the base model of AndroidCertificateProfileBase
|
|
||||||
DeviceConfiguration
|
|
||||||
// RenewalThresholdPercentage Certificate renewal threshold percentage. Valid values 1 to 99
|
|
||||||
RenewalThresholdPercentage *int `json:"renewalThresholdPercentage,omitempty"`
|
|
||||||
// SubjectNameFormat Certificate Subject Name Format.
|
|
||||||
SubjectNameFormat *SubjectNameFormat `json:"subjectNameFormat,omitempty"`
|
|
||||||
// SubjectAlternativeNameType Certificate Subject Alternative Name Type.
|
|
||||||
SubjectAlternativeNameType *SubjectAlternativeNameType `json:"subjectAlternativeNameType,omitempty"`
|
|
||||||
// CertificateValidityPeriodValue Value for the Certificate Validity Period.
|
|
||||||
CertificateValidityPeriodValue *int `json:"certificateValidityPeriodValue,omitempty"`
|
|
||||||
// CertificateValidityPeriodScale Scale for the Certificate Validity Period.
|
|
||||||
CertificateValidityPeriodScale *CertificateValidityPeriodScale `json:"certificateValidityPeriodScale,omitempty"`
|
|
||||||
// ExtendedKeyUsages Extended Key Usage (EKU) settings. This collection can contain a maximum of 500 elements.
|
|
||||||
ExtendedKeyUsages []ExtendedKeyUsage `json:"extendedKeyUsages,omitempty"`
|
|
||||||
// RootCertificate undocumented
|
|
||||||
RootCertificate *AndroidTrustedRootCertificate `json:"rootCertificate,omitempty"`
|
|
||||||
}
|
|
45
vendor/github.com/matterbridge/msgraph.go/beta/AndroidCertificateProfileBaseRequest.go
generated
vendored
45
vendor/github.com/matterbridge/msgraph.go/beta/AndroidCertificateProfileBaseRequest.go
generated
vendored
@ -1,45 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
import "context"
|
|
||||||
|
|
||||||
// AndroidCertificateProfileBaseRequestBuilder is request builder for AndroidCertificateProfileBase
|
|
||||||
type AndroidCertificateProfileBaseRequestBuilder struct{ BaseRequestBuilder }
|
|
||||||
|
|
||||||
// Request returns AndroidCertificateProfileBaseRequest
|
|
||||||
func (b *AndroidCertificateProfileBaseRequestBuilder) Request() *AndroidCertificateProfileBaseRequest {
|
|
||||||
return &AndroidCertificateProfileBaseRequest{
|
|
||||||
BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// AndroidCertificateProfileBaseRequest is request for AndroidCertificateProfileBase
|
|
||||||
type AndroidCertificateProfileBaseRequest struct{ BaseRequest }
|
|
||||||
|
|
||||||
// Get performs GET request for AndroidCertificateProfileBase
|
|
||||||
func (r *AndroidCertificateProfileBaseRequest) Get(ctx context.Context) (resObj *AndroidCertificateProfileBase, err error) {
|
|
||||||
var query string
|
|
||||||
if r.query != nil {
|
|
||||||
query = "?" + r.query.Encode()
|
|
||||||
}
|
|
||||||
err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// Update performs PATCH request for AndroidCertificateProfileBase
|
|
||||||
func (r *AndroidCertificateProfileBaseRequest) Update(ctx context.Context, reqObj *AndroidCertificateProfileBase) error {
|
|
||||||
return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Delete performs DELETE request for AndroidCertificateProfileBase
|
|
||||||
func (r *AndroidCertificateProfileBaseRequest) Delete(ctx context.Context) error {
|
|
||||||
return r.JSONRequest(ctx, "DELETE", "", nil, nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
// RootCertificate is navigation property
|
|
||||||
func (b *AndroidCertificateProfileBaseRequestBuilder) RootCertificate() *AndroidTrustedRootCertificateRequestBuilder {
|
|
||||||
bb := &AndroidTrustedRootCertificateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
|
|
||||||
bb.baseURL += "/rootCertificate"
|
|
||||||
return bb
|
|
||||||
}
|
|
57
vendor/github.com/matterbridge/msgraph.go/beta/AndroidCompliancePolicyModel.go
generated
vendored
57
vendor/github.com/matterbridge/msgraph.go/beta/AndroidCompliancePolicyModel.go
generated
vendored
@ -1,57 +0,0 @@
|
|||||||
// Code generated by msgraph-generate.go DO NOT EDIT.
|
|
||||||
|
|
||||||
package msgraph
|
|
||||||
|
|
||||||
// AndroidCompliancePolicy This class contains compliance settings for Android.
|
|
||||||
type AndroidCompliancePolicy struct {
|
|
||||||
// DeviceCompliancePolicy is the base model of AndroidCompliancePolicy
|
|
||||||
DeviceCompliancePolicy
|
|
||||||
// PasswordRequired Require a password to unlock device.
|
|
||||||
PasswordRequired *bool `json:"passwordRequired,omitempty"`
|
|
||||||
// PasswordMinimumLength Minimum password length. Valid values 4 to 16
|
|
||||||
PasswordMinimumLength *int `json:"passwordMinimumLength,omitempty"`
|
|
||||||
// PasswordRequiredType Type of characters in password
|
|
||||||
PasswordRequiredType *AndroidRequiredPasswordType `json:"passwordRequiredType,omitempty"`
|
|
||||||
// PasswordMinutesOfInactivityBeforeLock Minutes of inactivity before a password is required.
|
|
||||||
PasswordMinutesOfInactivityBeforeLock *int `json:"passwordMinutesOfInactivityBeforeLock,omitempty"`
|
|
||||||
// PasswordExpirationDays Number of days before the password expires. Valid values 1 to 365
|
|
||||||
PasswordExpirationDays *int `json:"passwordExpirationDays,omitempty"`
|
|
||||||
// PasswordPreviousPasswordBlockCount Number of previous passwords to block. Valid values 1 to 24
|
|
||||||
PasswordPreviousPasswordBlockCount *int `json:"passwordPreviousPasswordBlockCount,omitempty"`
|
|
||||||
// PasswordSignInFailureCountBeforeFactoryReset Number of sign-in failures allowed before factory reset. Valid values 1 to 16
|
|
||||||
PasswordSignInFailureCountBeforeFactoryReset *int `json:"passwordSignInFailureCountBeforeFactoryReset,omitempty"`
|
|
||||||
// SecurityPreventInstallAppsFromUnknownSources Require that devices disallow installation of apps from unknown sources.
|
|
||||||
SecurityPreventInstallAppsFromUnknownSources *bool `json:"securityPreventInstallAppsFromUnknownSources,omitempty"`
|
|
||||||
// SecurityDisableUsbDebugging Disable USB debugging on Android devices.
|
|
||||||
SecurityDisableUsbDebugging *bool `json:"securityDisableUsbDebugging,omitempty"`
|
|
||||||
// SecurityRequireVerifyApps Require the Android Verify apps feature is turned on.
|
|
||||||
SecurityRequireVerifyApps *bool `json:"securityRequireVerifyApps,omitempty"`
|
|
||||||
// DeviceThreatProtectionEnabled Require that devices have enabled device threat protection.
|
|
||||||
DeviceThreatProtectionEnabled *bool `json:"deviceThreatProtectionEnabled,omitempty"`
|
|
||||||
// DeviceThreatProtectionRequiredSecurityLevel Require Mobile Threat Protection minimum risk level to report noncompliance.
|
|
||||||
DeviceThreatProtectionRequiredSecurityLevel *DeviceThreatProtectionLevel `json:"deviceThreatProtectionRequiredSecurityLevel,omitempty"`
|
|
||||||
// SecurityBlockJailbrokenDevices Devices must not be jailbroken or rooted.
|
|
||||||
SecurityBlockJailbrokenDevices *bool `json:"securityBlockJailbrokenDevices,omitempty"`
|
|
||||||
// OsMinimumVersion Minimum Android version.
|
|
||||||
OsMinimumVersion *string `json:"osMinimumVersion,omitempty"`
|
|
||||||
// OsMaximumVersion Maximum Android version.
|
|
||||||
OsMaximumVersion *string `json:"osMaximumVersion,omitempty"`
|
|
||||||
// MinAndroidSecurityPatchLevel Minimum Android security patch level.
|
|
||||||
MinAndroidSecurityPatchLevel *string `json:"minAndroidSecurityPatchLevel,omitempty"`
|
|
||||||
// StorageRequireEncryption Require encryption on Android devices.
|
|
||||||
StorageRequireEncryption *bool `json:"storageRequireEncryption,omitempty"`
|
|
||||||
// SecurityRequireSafetyNetAttestationBasicIntegrity Require the device to pass the SafetyNet basic integrity check.
|
|
||||||
SecurityRequireSafetyNetAttestationBasicIntegrity *bool `json:"securityRequireSafetyNetAttestationBasicIntegrity,omitempty"`
|
|
||||||
// SecurityRequireSafetyNetAttestationCertifiedDevice Require the device to pass the SafetyNet certified device check.
|
|
||||||
SecurityRequireSafetyNetAttestationCertifiedDevice *bool `json:"securityRequireSafetyNetAttestationCertifiedDevice,omitempty"`
|
|
||||||
// SecurityRequireGooglePlayServices Require Google Play Services to be installed and enabled on the device.
|
|
||||||
SecurityRequireGooglePlayServices *bool `json:"securityRequireGooglePlayServices,omitempty"`
|
|
||||||
// SecurityRequireUpToDateSecurityProviders Require the device to have up to date security providers. The device will require Google Play Services to be enabled and up to date.
|
|
||||||
SecurityRequireUpToDateSecurityProviders *bool `json:"securityRequireUpToDateSecurityProviders,omitempty"`
|
|
||||||
// SecurityRequireCompanyPortalAppIntegrity Require the device to pass the Company Portal client app runtime integrity check.
|
|
||||||
SecurityRequireCompanyPortalAppIntegrity *bool `json:"securityRequireCompanyPortalAppIntegrity,omitempty"`
|
|
||||||
// ConditionStatementID Condition statement id.
|
|
||||||
ConditionStatementID *string `json:"conditionStatementId,omitempty"`
|
|
||||||
// RestrictedApps Require the device to not have the specified apps installed. This collection can contain a maximum of 100 elements.
|
|
||||||
RestrictedApps []AppListItem `json:"restrictedApps,omitempty"`
|
|
||||||
}
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user