Inflate Models package.
This commit is contained in:
parent
f5d514470d
commit
b27ce3d0e2
@ -0,0 +1,140 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AadUserConversationMember
|
||||
type AadUserConversationMember struct {
|
||||
ConversationMember
|
||||
// The email address of the user.
|
||||
email *string
|
||||
// TenantId which the Azure AD user belongs to.
|
||||
tenantId *string
|
||||
// The user property
|
||||
user Userable
|
||||
// The GUID of the user.
|
||||
userId *string
|
||||
}
|
||||
// NewAadUserConversationMember instantiates a new AadUserConversationMember and sets the default values.
|
||||
func NewAadUserConversationMember()(*AadUserConversationMember) {
|
||||
m := &AadUserConversationMember{
|
||||
ConversationMember: *NewConversationMember(),
|
||||
}
|
||||
odataTypeValue := "#microsoft.graph.aadUserConversationMember";
|
||||
m.SetOdataType(&odataTypeValue);
|
||||
return m
|
||||
}
|
||||
// CreateAadUserConversationMemberFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateAadUserConversationMemberFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewAadUserConversationMember(), nil
|
||||
}
|
||||
// GetEmail gets the email property value. The email address of the user.
|
||||
func (m *AadUserConversationMember) GetEmail()(*string) {
|
||||
return m.email
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *AadUserConversationMember) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := m.ConversationMember.GetFieldDeserializers()
|
||||
res["email"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetEmail(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["tenantId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetTenantId(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["user"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetObjectValue(CreateUserFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetUser(val.(Userable))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["userId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetUserId(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetTenantId gets the tenantId property value. TenantId which the Azure AD user belongs to.
|
||||
func (m *AadUserConversationMember) GetTenantId()(*string) {
|
||||
return m.tenantId
|
||||
}
|
||||
// GetUser gets the user property value. The user property
|
||||
func (m *AadUserConversationMember) GetUser()(Userable) {
|
||||
return m.user
|
||||
}
|
||||
// GetUserId gets the userId property value. The GUID of the user.
|
||||
func (m *AadUserConversationMember) GetUserId()(*string) {
|
||||
return m.userId
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *AadUserConversationMember) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
err := m.ConversationMember.Serialize(writer)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("email", m.GetEmail())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("tenantId", m.GetTenantId())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteObjectValue("user", m.GetUser())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("userId", m.GetUserId())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// SetEmail sets the email property value. The email address of the user.
|
||||
func (m *AadUserConversationMember) SetEmail(value *string)() {
|
||||
m.email = value
|
||||
}
|
||||
// SetTenantId sets the tenantId property value. TenantId which the Azure AD user belongs to.
|
||||
func (m *AadUserConversationMember) SetTenantId(value *string)() {
|
||||
m.tenantId = value
|
||||
}
|
||||
// SetUser sets the user property value. The user property
|
||||
func (m *AadUserConversationMember) SetUser(value Userable)() {
|
||||
m.user = value
|
||||
}
|
||||
// SetUserId sets the userId property value. The GUID of the user.
|
||||
func (m *AadUserConversationMember) SetUserId(value *string)() {
|
||||
m.userId = value
|
||||
}
|
||||
@ -0,0 +1,68 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AadUserConversationMemberCollectionResponse
|
||||
type AadUserConversationMemberCollectionResponse struct {
|
||||
BaseCollectionPaginationCountResponse
|
||||
// The value property
|
||||
value []AadUserConversationMemberable
|
||||
}
|
||||
// NewAadUserConversationMemberCollectionResponse instantiates a new AadUserConversationMemberCollectionResponse and sets the default values.
|
||||
func NewAadUserConversationMemberCollectionResponse()(*AadUserConversationMemberCollectionResponse) {
|
||||
m := &AadUserConversationMemberCollectionResponse{
|
||||
BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(),
|
||||
}
|
||||
return m
|
||||
}
|
||||
// CreateAadUserConversationMemberCollectionResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateAadUserConversationMemberCollectionResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewAadUserConversationMemberCollectionResponse(), nil
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *AadUserConversationMemberCollectionResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers()
|
||||
res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfObjectValues(CreateAadUserConversationMemberFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]AadUserConversationMemberable, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = v.(AadUserConversationMemberable)
|
||||
}
|
||||
m.SetValue(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetValue gets the value property value. The value property
|
||||
func (m *AadUserConversationMemberCollectionResponse) GetValue()([]AadUserConversationMemberable) {
|
||||
return m.value
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *AadUserConversationMemberCollectionResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
err := m.BaseCollectionPaginationCountResponse.Serialize(writer)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if m.GetValue() != nil {
|
||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue()))
|
||||
for i, v := range m.GetValue() {
|
||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
||||
}
|
||||
err = writer.WriteCollectionOfObjectValues("value", cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// SetValue sets the value property value. The value property
|
||||
func (m *AadUserConversationMemberCollectionResponse) SetValue(value []AadUserConversationMemberable)() {
|
||||
m.value = value
|
||||
}
|
||||
@ -0,0 +1,13 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AadUserConversationMemberCollectionResponseable
|
||||
type AadUserConversationMemberCollectionResponseable interface {
|
||||
BaseCollectionPaginationCountResponseable
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetValue()([]AadUserConversationMemberable)
|
||||
SetValue(value []AadUserConversationMemberable)()
|
||||
}
|
||||
@ -0,0 +1,19 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AadUserConversationMemberable
|
||||
type AadUserConversationMemberable interface {
|
||||
ConversationMemberable
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetEmail()(*string)
|
||||
GetTenantId()(*string)
|
||||
GetUser()(Userable)
|
||||
GetUserId()(*string)
|
||||
SetEmail(value *string)()
|
||||
SetTenantId(value *string)()
|
||||
SetUser(value Userable)()
|
||||
SetUserId(value *string)()
|
||||
}
|
||||
71
src/internal/connector/graph/betasdk/models/access_action.go
Normal file
71
src/internal/connector/graph/betasdk/models/access_action.go
Normal file
@ -0,0 +1,71 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessAction
|
||||
type AccessAction struct {
|
||||
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
additionalData map[string]interface{}
|
||||
// The OdataType property
|
||||
odataType *string
|
||||
}
|
||||
// NewAccessAction instantiates a new accessAction and sets the default values.
|
||||
func NewAccessAction()(*AccessAction) {
|
||||
m := &AccessAction{
|
||||
}
|
||||
m.SetAdditionalData(make(map[string]interface{}));
|
||||
return m
|
||||
}
|
||||
// CreateAccessActionFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateAccessActionFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewAccessAction(), nil
|
||||
}
|
||||
// GetAdditionalData gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
func (m *AccessAction) GetAdditionalData()(map[string]interface{}) {
|
||||
return m.additionalData
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *AccessAction) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
|
||||
res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetOdataType(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetOdataType gets the @odata.type property value. The OdataType property
|
||||
func (m *AccessAction) GetOdataType()(*string) {
|
||||
return m.odataType
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *AccessAction) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
{
|
||||
err := writer.WriteStringValue("@odata.type", m.GetOdataType())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteAdditionalData(m.GetAdditionalData())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
func (m *AccessAction) SetAdditionalData(value map[string]interface{})() {
|
||||
m.additionalData = value
|
||||
}
|
||||
// SetOdataType sets the @odata.type property value. The OdataType property
|
||||
func (m *AccessAction) SetOdataType(value *string)() {
|
||||
m.odataType = value
|
||||
}
|
||||
@ -0,0 +1,13 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessActionable
|
||||
type AccessActionable interface {
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetOdataType()(*string)
|
||||
SetOdataType(value *string)()
|
||||
}
|
||||
465
src/internal/connector/graph/betasdk/models/access_package.go
Normal file
465
src/internal/connector/graph/betasdk/models/access_package.go
Normal file
@ -0,0 +1,465 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time"
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackage
|
||||
type AccessPackage struct {
|
||||
Entity
|
||||
// Read-only. Nullable. Supports $expand.
|
||||
accessPackageAssignmentPolicies []AccessPackageAssignmentPolicyable
|
||||
// The accessPackageCatalog property
|
||||
accessPackageCatalog AccessPackageCatalogable
|
||||
// The accessPackageResourceRoleScopes property
|
||||
accessPackageResourceRoleScopes []AccessPackageResourceRoleScopeable
|
||||
// The access packages that are incompatible with this package. Read-only.
|
||||
accessPackagesIncompatibleWith []AccessPackageable
|
||||
// Identifier of the access package catalog referencing this access package. Read-only.
|
||||
catalogId *string
|
||||
// The userPrincipalName of the user or identity of the subject who created this resource. Read-only.
|
||||
createdBy *string
|
||||
// The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.
|
||||
createdDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time
|
||||
// The description of the access package.
|
||||
description *string
|
||||
// The display name of the access package. Supports $filter (eq, contains).
|
||||
displayName *string
|
||||
// The access packages whose assigned users are ineligible to be assigned this access package.
|
||||
incompatibleAccessPackages []AccessPackageable
|
||||
// The groups whose members are ineligible to be assigned this access package.
|
||||
incompatibleGroups []Groupable
|
||||
// Whether the access package is hidden from the requestor.
|
||||
isHidden *bool
|
||||
// Indicates whether role scopes are visible.
|
||||
isRoleScopesVisible *bool
|
||||
// The userPrincipalName of the user who last modified this resource. Read-only.
|
||||
modifiedBy *string
|
||||
// The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.
|
||||
modifiedDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time
|
||||
}
|
||||
// NewAccessPackage instantiates a new accessPackage and sets the default values.
|
||||
func NewAccessPackage()(*AccessPackage) {
|
||||
m := &AccessPackage{
|
||||
Entity: *NewEntity(),
|
||||
}
|
||||
return m
|
||||
}
|
||||
// CreateAccessPackageFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateAccessPackageFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewAccessPackage(), nil
|
||||
}
|
||||
// GetAccessPackageAssignmentPolicies gets the accessPackageAssignmentPolicies property value. Read-only. Nullable. Supports $expand.
|
||||
func (m *AccessPackage) GetAccessPackageAssignmentPolicies()([]AccessPackageAssignmentPolicyable) {
|
||||
return m.accessPackageAssignmentPolicies
|
||||
}
|
||||
// GetAccessPackageCatalog gets the accessPackageCatalog property value. The accessPackageCatalog property
|
||||
func (m *AccessPackage) GetAccessPackageCatalog()(AccessPackageCatalogable) {
|
||||
return m.accessPackageCatalog
|
||||
}
|
||||
// GetAccessPackageResourceRoleScopes gets the accessPackageResourceRoleScopes property value. The accessPackageResourceRoleScopes property
|
||||
func (m *AccessPackage) GetAccessPackageResourceRoleScopes()([]AccessPackageResourceRoleScopeable) {
|
||||
return m.accessPackageResourceRoleScopes
|
||||
}
|
||||
// GetAccessPackagesIncompatibleWith gets the accessPackagesIncompatibleWith property value. The access packages that are incompatible with this package. Read-only.
|
||||
func (m *AccessPackage) GetAccessPackagesIncompatibleWith()([]AccessPackageable) {
|
||||
return m.accessPackagesIncompatibleWith
|
||||
}
|
||||
// GetCatalogId gets the catalogId property value. Identifier of the access package catalog referencing this access package. Read-only.
|
||||
func (m *AccessPackage) GetCatalogId()(*string) {
|
||||
return m.catalogId
|
||||
}
|
||||
// GetCreatedBy gets the createdBy property value. The userPrincipalName of the user or identity of the subject who created this resource. Read-only.
|
||||
func (m *AccessPackage) GetCreatedBy()(*string) {
|
||||
return m.createdBy
|
||||
}
|
||||
// GetCreatedDateTime gets the createdDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.
|
||||
func (m *AccessPackage) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) {
|
||||
return m.createdDateTime
|
||||
}
|
||||
// GetDescription gets the description property value. The description of the access package.
|
||||
func (m *AccessPackage) GetDescription()(*string) {
|
||||
return m.description
|
||||
}
|
||||
// GetDisplayName gets the displayName property value. The display name of the access package. Supports $filter (eq, contains).
|
||||
func (m *AccessPackage) GetDisplayName()(*string) {
|
||||
return m.displayName
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *AccessPackage) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := m.Entity.GetFieldDeserializers()
|
||||
res["accessPackageAssignmentPolicies"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfObjectValues(CreateAccessPackageAssignmentPolicyFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]AccessPackageAssignmentPolicyable, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = v.(AccessPackageAssignmentPolicyable)
|
||||
}
|
||||
m.SetAccessPackageAssignmentPolicies(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["accessPackageCatalog"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetObjectValue(CreateAccessPackageCatalogFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetAccessPackageCatalog(val.(AccessPackageCatalogable))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["accessPackageResourceRoleScopes"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfObjectValues(CreateAccessPackageResourceRoleScopeFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]AccessPackageResourceRoleScopeable, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = v.(AccessPackageResourceRoleScopeable)
|
||||
}
|
||||
m.SetAccessPackageResourceRoleScopes(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["accessPackagesIncompatibleWith"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfObjectValues(CreateAccessPackageFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]AccessPackageable, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = v.(AccessPackageable)
|
||||
}
|
||||
m.SetAccessPackagesIncompatibleWith(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["catalogId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetCatalogId(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["createdBy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetCreatedBy(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["createdDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetTimeValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetCreatedDateTime(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["description"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetDescription(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["displayName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetDisplayName(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["incompatibleAccessPackages"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfObjectValues(CreateAccessPackageFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]AccessPackageable, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = v.(AccessPackageable)
|
||||
}
|
||||
m.SetIncompatibleAccessPackages(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["incompatibleGroups"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfObjectValues(CreateGroupFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]Groupable, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = v.(Groupable)
|
||||
}
|
||||
m.SetIncompatibleGroups(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["isHidden"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetBoolValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetIsHidden(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["isRoleScopesVisible"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetBoolValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetIsRoleScopesVisible(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["modifiedBy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetModifiedBy(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["modifiedDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetTimeValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetModifiedDateTime(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetIncompatibleAccessPackages gets the incompatibleAccessPackages property value. The access packages whose assigned users are ineligible to be assigned this access package.
|
||||
func (m *AccessPackage) GetIncompatibleAccessPackages()([]AccessPackageable) {
|
||||
return m.incompatibleAccessPackages
|
||||
}
|
||||
// GetIncompatibleGroups gets the incompatibleGroups property value. The groups whose members are ineligible to be assigned this access package.
|
||||
func (m *AccessPackage) GetIncompatibleGroups()([]Groupable) {
|
||||
return m.incompatibleGroups
|
||||
}
|
||||
// GetIsHidden gets the isHidden property value. Whether the access package is hidden from the requestor.
|
||||
func (m *AccessPackage) GetIsHidden()(*bool) {
|
||||
return m.isHidden
|
||||
}
|
||||
// GetIsRoleScopesVisible gets the isRoleScopesVisible property value. Indicates whether role scopes are visible.
|
||||
func (m *AccessPackage) GetIsRoleScopesVisible()(*bool) {
|
||||
return m.isRoleScopesVisible
|
||||
}
|
||||
// GetModifiedBy gets the modifiedBy property value. The userPrincipalName of the user who last modified this resource. Read-only.
|
||||
func (m *AccessPackage) GetModifiedBy()(*string) {
|
||||
return m.modifiedBy
|
||||
}
|
||||
// GetModifiedDateTime gets the modifiedDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.
|
||||
func (m *AccessPackage) GetModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) {
|
||||
return m.modifiedDateTime
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *AccessPackage) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
err := m.Entity.Serialize(writer)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if m.GetAccessPackageAssignmentPolicies() != nil {
|
||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetAccessPackageAssignmentPolicies()))
|
||||
for i, v := range m.GetAccessPackageAssignmentPolicies() {
|
||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
||||
}
|
||||
err = writer.WriteCollectionOfObjectValues("accessPackageAssignmentPolicies", cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteObjectValue("accessPackageCatalog", m.GetAccessPackageCatalog())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if m.GetAccessPackageResourceRoleScopes() != nil {
|
||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetAccessPackageResourceRoleScopes()))
|
||||
for i, v := range m.GetAccessPackageResourceRoleScopes() {
|
||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
||||
}
|
||||
err = writer.WriteCollectionOfObjectValues("accessPackageResourceRoleScopes", cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if m.GetAccessPackagesIncompatibleWith() != nil {
|
||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetAccessPackagesIncompatibleWith()))
|
||||
for i, v := range m.GetAccessPackagesIncompatibleWith() {
|
||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
||||
}
|
||||
err = writer.WriteCollectionOfObjectValues("accessPackagesIncompatibleWith", cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("catalogId", m.GetCatalogId())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("createdBy", m.GetCreatedBy())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteTimeValue("createdDateTime", m.GetCreatedDateTime())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("description", m.GetDescription())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("displayName", m.GetDisplayName())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if m.GetIncompatibleAccessPackages() != nil {
|
||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetIncompatibleAccessPackages()))
|
||||
for i, v := range m.GetIncompatibleAccessPackages() {
|
||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
||||
}
|
||||
err = writer.WriteCollectionOfObjectValues("incompatibleAccessPackages", cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if m.GetIncompatibleGroups() != nil {
|
||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetIncompatibleGroups()))
|
||||
for i, v := range m.GetIncompatibleGroups() {
|
||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
||||
}
|
||||
err = writer.WriteCollectionOfObjectValues("incompatibleGroups", cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteBoolValue("isHidden", m.GetIsHidden())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteBoolValue("isRoleScopesVisible", m.GetIsRoleScopesVisible())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("modifiedBy", m.GetModifiedBy())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteTimeValue("modifiedDateTime", m.GetModifiedDateTime())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// SetAccessPackageAssignmentPolicies sets the accessPackageAssignmentPolicies property value. Read-only. Nullable. Supports $expand.
|
||||
func (m *AccessPackage) SetAccessPackageAssignmentPolicies(value []AccessPackageAssignmentPolicyable)() {
|
||||
m.accessPackageAssignmentPolicies = value
|
||||
}
|
||||
// SetAccessPackageCatalog sets the accessPackageCatalog property value. The accessPackageCatalog property
|
||||
func (m *AccessPackage) SetAccessPackageCatalog(value AccessPackageCatalogable)() {
|
||||
m.accessPackageCatalog = value
|
||||
}
|
||||
// SetAccessPackageResourceRoleScopes sets the accessPackageResourceRoleScopes property value. The accessPackageResourceRoleScopes property
|
||||
func (m *AccessPackage) SetAccessPackageResourceRoleScopes(value []AccessPackageResourceRoleScopeable)() {
|
||||
m.accessPackageResourceRoleScopes = value
|
||||
}
|
||||
// SetAccessPackagesIncompatibleWith sets the accessPackagesIncompatibleWith property value. The access packages that are incompatible with this package. Read-only.
|
||||
func (m *AccessPackage) SetAccessPackagesIncompatibleWith(value []AccessPackageable)() {
|
||||
m.accessPackagesIncompatibleWith = value
|
||||
}
|
||||
// SetCatalogId sets the catalogId property value. Identifier of the access package catalog referencing this access package. Read-only.
|
||||
func (m *AccessPackage) SetCatalogId(value *string)() {
|
||||
m.catalogId = value
|
||||
}
|
||||
// SetCreatedBy sets the createdBy property value. The userPrincipalName of the user or identity of the subject who created this resource. Read-only.
|
||||
func (m *AccessPackage) SetCreatedBy(value *string)() {
|
||||
m.createdBy = value
|
||||
}
|
||||
// SetCreatedDateTime sets the createdDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.
|
||||
func (m *AccessPackage) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() {
|
||||
m.createdDateTime = value
|
||||
}
|
||||
// SetDescription sets the description property value. The description of the access package.
|
||||
func (m *AccessPackage) SetDescription(value *string)() {
|
||||
m.description = value
|
||||
}
|
||||
// SetDisplayName sets the displayName property value. The display name of the access package. Supports $filter (eq, contains).
|
||||
func (m *AccessPackage) SetDisplayName(value *string)() {
|
||||
m.displayName = value
|
||||
}
|
||||
// SetIncompatibleAccessPackages sets the incompatibleAccessPackages property value. The access packages whose assigned users are ineligible to be assigned this access package.
|
||||
func (m *AccessPackage) SetIncompatibleAccessPackages(value []AccessPackageable)() {
|
||||
m.incompatibleAccessPackages = value
|
||||
}
|
||||
// SetIncompatibleGroups sets the incompatibleGroups property value. The groups whose members are ineligible to be assigned this access package.
|
||||
func (m *AccessPackage) SetIncompatibleGroups(value []Groupable)() {
|
||||
m.incompatibleGroups = value
|
||||
}
|
||||
// SetIsHidden sets the isHidden property value. Whether the access package is hidden from the requestor.
|
||||
func (m *AccessPackage) SetIsHidden(value *bool)() {
|
||||
m.isHidden = value
|
||||
}
|
||||
// SetIsRoleScopesVisible sets the isRoleScopesVisible property value. Indicates whether role scopes are visible.
|
||||
func (m *AccessPackage) SetIsRoleScopesVisible(value *bool)() {
|
||||
m.isRoleScopesVisible = value
|
||||
}
|
||||
// SetModifiedBy sets the modifiedBy property value. The userPrincipalName of the user who last modified this resource. Read-only.
|
||||
func (m *AccessPackage) SetModifiedBy(value *string)() {
|
||||
m.modifiedBy = value
|
||||
}
|
||||
// SetModifiedDateTime sets the modifiedDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.
|
||||
func (m *AccessPackage) SetModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() {
|
||||
m.modifiedDateTime = value
|
||||
}
|
||||
@ -0,0 +1,141 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageAnswer
|
||||
type AccessPackageAnswer struct {
|
||||
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
additionalData map[string]interface{}
|
||||
// The question the answer is for. Required and Read-only.
|
||||
answeredQuestion AccessPackageQuestionable
|
||||
// The display value of the answer. Required.
|
||||
displayValue *string
|
||||
// The OdataType property
|
||||
odataType *string
|
||||
}
|
||||
// NewAccessPackageAnswer instantiates a new accessPackageAnswer and sets the default values.
|
||||
func NewAccessPackageAnswer()(*AccessPackageAnswer) {
|
||||
m := &AccessPackageAnswer{
|
||||
}
|
||||
m.SetAdditionalData(make(map[string]interface{}));
|
||||
return m
|
||||
}
|
||||
// CreateAccessPackageAnswerFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateAccessPackageAnswerFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
if parseNode != nil {
|
||||
mappingValueNode, err := parseNode.GetChildNode("@odata.type")
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if mappingValueNode != nil {
|
||||
mappingValue, err := mappingValueNode.GetStringValue()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if mappingValue != nil {
|
||||
switch *mappingValue {
|
||||
case "#microsoft.graph.accessPackageAnswerString":
|
||||
return NewAccessPackageAnswerString(), nil
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return NewAccessPackageAnswer(), nil
|
||||
}
|
||||
// GetAdditionalData gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
func (m *AccessPackageAnswer) GetAdditionalData()(map[string]interface{}) {
|
||||
return m.additionalData
|
||||
}
|
||||
// GetAnsweredQuestion gets the answeredQuestion property value. The question the answer is for. Required and Read-only.
|
||||
func (m *AccessPackageAnswer) GetAnsweredQuestion()(AccessPackageQuestionable) {
|
||||
return m.answeredQuestion
|
||||
}
|
||||
// GetDisplayValue gets the displayValue property value. The display value of the answer. Required.
|
||||
func (m *AccessPackageAnswer) GetDisplayValue()(*string) {
|
||||
return m.displayValue
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *AccessPackageAnswer) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
|
||||
res["answeredQuestion"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetObjectValue(CreateAccessPackageQuestionFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetAnsweredQuestion(val.(AccessPackageQuestionable))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["displayValue"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetDisplayValue(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetOdataType(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetOdataType gets the @odata.type property value. The OdataType property
|
||||
func (m *AccessPackageAnswer) GetOdataType()(*string) {
|
||||
return m.odataType
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *AccessPackageAnswer) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
{
|
||||
err := writer.WriteObjectValue("answeredQuestion", m.GetAnsweredQuestion())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteStringValue("displayValue", m.GetDisplayValue())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteStringValue("@odata.type", m.GetOdataType())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteAdditionalData(m.GetAdditionalData())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
func (m *AccessPackageAnswer) SetAdditionalData(value map[string]interface{})() {
|
||||
m.additionalData = value
|
||||
}
|
||||
// SetAnsweredQuestion sets the answeredQuestion property value. The question the answer is for. Required and Read-only.
|
||||
func (m *AccessPackageAnswer) SetAnsweredQuestion(value AccessPackageQuestionable)() {
|
||||
m.answeredQuestion = value
|
||||
}
|
||||
// SetDisplayValue sets the displayValue property value. The display value of the answer. Required.
|
||||
func (m *AccessPackageAnswer) SetDisplayValue(value *string)() {
|
||||
m.displayValue = value
|
||||
}
|
||||
// SetOdataType sets the @odata.type property value. The OdataType property
|
||||
func (m *AccessPackageAnswer) SetOdataType(value *string)() {
|
||||
m.odataType = value
|
||||
}
|
||||
@ -0,0 +1,123 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageAnswerChoice
|
||||
type AccessPackageAnswerChoice struct {
|
||||
// The actual value of the selected choice. This is typically a string value which is understandable by applications. Required.
|
||||
actualValue *string
|
||||
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
additionalData map[string]interface{}
|
||||
// The localized display values shown to the requestor and approvers. Required.
|
||||
displayValue AccessPackageLocalizedContentable
|
||||
// The OdataType property
|
||||
odataType *string
|
||||
}
|
||||
// NewAccessPackageAnswerChoice instantiates a new accessPackageAnswerChoice and sets the default values.
|
||||
func NewAccessPackageAnswerChoice()(*AccessPackageAnswerChoice) {
|
||||
m := &AccessPackageAnswerChoice{
|
||||
}
|
||||
m.SetAdditionalData(make(map[string]interface{}));
|
||||
return m
|
||||
}
|
||||
// CreateAccessPackageAnswerChoiceFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateAccessPackageAnswerChoiceFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewAccessPackageAnswerChoice(), nil
|
||||
}
|
||||
// GetActualValue gets the actualValue property value. The actual value of the selected choice. This is typically a string value which is understandable by applications. Required.
|
||||
func (m *AccessPackageAnswerChoice) GetActualValue()(*string) {
|
||||
return m.actualValue
|
||||
}
|
||||
// GetAdditionalData gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
func (m *AccessPackageAnswerChoice) GetAdditionalData()(map[string]interface{}) {
|
||||
return m.additionalData
|
||||
}
|
||||
// GetDisplayValue gets the displayValue property value. The localized display values shown to the requestor and approvers. Required.
|
||||
func (m *AccessPackageAnswerChoice) GetDisplayValue()(AccessPackageLocalizedContentable) {
|
||||
return m.displayValue
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *AccessPackageAnswerChoice) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
|
||||
res["actualValue"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetActualValue(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["displayValue"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetObjectValue(CreateAccessPackageLocalizedContentFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetDisplayValue(val.(AccessPackageLocalizedContentable))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetOdataType(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetOdataType gets the @odata.type property value. The OdataType property
|
||||
func (m *AccessPackageAnswerChoice) GetOdataType()(*string) {
|
||||
return m.odataType
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *AccessPackageAnswerChoice) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
{
|
||||
err := writer.WriteStringValue("actualValue", m.GetActualValue())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteObjectValue("displayValue", m.GetDisplayValue())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteStringValue("@odata.type", m.GetOdataType())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteAdditionalData(m.GetAdditionalData())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// SetActualValue sets the actualValue property value. The actual value of the selected choice. This is typically a string value which is understandable by applications. Required.
|
||||
func (m *AccessPackageAnswerChoice) SetActualValue(value *string)() {
|
||||
m.actualValue = value
|
||||
}
|
||||
// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
func (m *AccessPackageAnswerChoice) SetAdditionalData(value map[string]interface{})() {
|
||||
m.additionalData = value
|
||||
}
|
||||
// SetDisplayValue sets the displayValue property value. The localized display values shown to the requestor and approvers. Required.
|
||||
func (m *AccessPackageAnswerChoice) SetDisplayValue(value AccessPackageLocalizedContentable)() {
|
||||
m.displayValue = value
|
||||
}
|
||||
// SetOdataType sets the @odata.type property value. The OdataType property
|
||||
func (m *AccessPackageAnswerChoice) SetOdataType(value *string)() {
|
||||
m.odataType = value
|
||||
}
|
||||
@ -0,0 +1,68 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageAnswerChoiceCollectionResponse
|
||||
type AccessPackageAnswerChoiceCollectionResponse struct {
|
||||
BaseCollectionPaginationCountResponse
|
||||
// The value property
|
||||
value []AccessPackageAnswerChoiceable
|
||||
}
|
||||
// NewAccessPackageAnswerChoiceCollectionResponse instantiates a new AccessPackageAnswerChoiceCollectionResponse and sets the default values.
|
||||
func NewAccessPackageAnswerChoiceCollectionResponse()(*AccessPackageAnswerChoiceCollectionResponse) {
|
||||
m := &AccessPackageAnswerChoiceCollectionResponse{
|
||||
BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(),
|
||||
}
|
||||
return m
|
||||
}
|
||||
// CreateAccessPackageAnswerChoiceCollectionResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateAccessPackageAnswerChoiceCollectionResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewAccessPackageAnswerChoiceCollectionResponse(), nil
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *AccessPackageAnswerChoiceCollectionResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers()
|
||||
res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfObjectValues(CreateAccessPackageAnswerChoiceFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]AccessPackageAnswerChoiceable, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = v.(AccessPackageAnswerChoiceable)
|
||||
}
|
||||
m.SetValue(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetValue gets the value property value. The value property
|
||||
func (m *AccessPackageAnswerChoiceCollectionResponse) GetValue()([]AccessPackageAnswerChoiceable) {
|
||||
return m.value
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *AccessPackageAnswerChoiceCollectionResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
err := m.BaseCollectionPaginationCountResponse.Serialize(writer)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if m.GetValue() != nil {
|
||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue()))
|
||||
for i, v := range m.GetValue() {
|
||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
||||
}
|
||||
err = writer.WriteCollectionOfObjectValues("value", cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// SetValue sets the value property value. The value property
|
||||
func (m *AccessPackageAnswerChoiceCollectionResponse) SetValue(value []AccessPackageAnswerChoiceable)() {
|
||||
m.value = value
|
||||
}
|
||||
@ -0,0 +1,13 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageAnswerChoiceCollectionResponseable
|
||||
type AccessPackageAnswerChoiceCollectionResponseable interface {
|
||||
BaseCollectionPaginationCountResponseable
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetValue()([]AccessPackageAnswerChoiceable)
|
||||
SetValue(value []AccessPackageAnswerChoiceable)()
|
||||
}
|
||||
@ -0,0 +1,17 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageAnswerChoiceable
|
||||
type AccessPackageAnswerChoiceable interface {
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetActualValue()(*string)
|
||||
GetDisplayValue()(AccessPackageLocalizedContentable)
|
||||
GetOdataType()(*string)
|
||||
SetActualValue(value *string)()
|
||||
SetDisplayValue(value AccessPackageLocalizedContentable)()
|
||||
SetOdataType(value *string)()
|
||||
}
|
||||
@ -0,0 +1,68 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageAnswerCollectionResponse
|
||||
type AccessPackageAnswerCollectionResponse struct {
|
||||
BaseCollectionPaginationCountResponse
|
||||
// The value property
|
||||
value []AccessPackageAnswerable
|
||||
}
|
||||
// NewAccessPackageAnswerCollectionResponse instantiates a new AccessPackageAnswerCollectionResponse and sets the default values.
|
||||
func NewAccessPackageAnswerCollectionResponse()(*AccessPackageAnswerCollectionResponse) {
|
||||
m := &AccessPackageAnswerCollectionResponse{
|
||||
BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(),
|
||||
}
|
||||
return m
|
||||
}
|
||||
// CreateAccessPackageAnswerCollectionResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateAccessPackageAnswerCollectionResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewAccessPackageAnswerCollectionResponse(), nil
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *AccessPackageAnswerCollectionResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers()
|
||||
res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfObjectValues(CreateAccessPackageAnswerFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]AccessPackageAnswerable, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = v.(AccessPackageAnswerable)
|
||||
}
|
||||
m.SetValue(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetValue gets the value property value. The value property
|
||||
func (m *AccessPackageAnswerCollectionResponse) GetValue()([]AccessPackageAnswerable) {
|
||||
return m.value
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *AccessPackageAnswerCollectionResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
err := m.BaseCollectionPaginationCountResponse.Serialize(writer)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if m.GetValue() != nil {
|
||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue()))
|
||||
for i, v := range m.GetValue() {
|
||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
||||
}
|
||||
err = writer.WriteCollectionOfObjectValues("value", cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// SetValue sets the value property value. The value property
|
||||
func (m *AccessPackageAnswerCollectionResponse) SetValue(value []AccessPackageAnswerable)() {
|
||||
m.value = value
|
||||
}
|
||||
@ -0,0 +1,13 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageAnswerCollectionResponseable
|
||||
type AccessPackageAnswerCollectionResponseable interface {
|
||||
BaseCollectionPaginationCountResponseable
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetValue()([]AccessPackageAnswerable)
|
||||
SetValue(value []AccessPackageAnswerable)()
|
||||
}
|
||||
@ -0,0 +1,62 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageAnswerString
|
||||
type AccessPackageAnswerString struct {
|
||||
AccessPackageAnswer
|
||||
// The value stored on the requestor's user profile, if this answer is configured to be stored as a specific attribute.
|
||||
value *string
|
||||
}
|
||||
// NewAccessPackageAnswerString instantiates a new AccessPackageAnswerString and sets the default values.
|
||||
func NewAccessPackageAnswerString()(*AccessPackageAnswerString) {
|
||||
m := &AccessPackageAnswerString{
|
||||
AccessPackageAnswer: *NewAccessPackageAnswer(),
|
||||
}
|
||||
odataTypeValue := "#microsoft.graph.accessPackageAnswerString";
|
||||
m.SetOdataType(&odataTypeValue);
|
||||
return m
|
||||
}
|
||||
// CreateAccessPackageAnswerStringFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateAccessPackageAnswerStringFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewAccessPackageAnswerString(), nil
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *AccessPackageAnswerString) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := m.AccessPackageAnswer.GetFieldDeserializers()
|
||||
res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetValue(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetValue gets the value property value. The value stored on the requestor's user profile, if this answer is configured to be stored as a specific attribute.
|
||||
func (m *AccessPackageAnswerString) GetValue()(*string) {
|
||||
return m.value
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *AccessPackageAnswerString) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
err := m.AccessPackageAnswer.Serialize(writer)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("value", m.GetValue())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// SetValue sets the value property value. The value stored on the requestor's user profile, if this answer is configured to be stored as a specific attribute.
|
||||
func (m *AccessPackageAnswerString) SetValue(value *string)() {
|
||||
m.value = value
|
||||
}
|
||||
@ -0,0 +1,13 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageAnswerStringable
|
||||
type AccessPackageAnswerStringable interface {
|
||||
AccessPackageAnswerable
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetValue()(*string)
|
||||
SetValue(value *string)()
|
||||
}
|
||||
@ -0,0 +1,17 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageAnswerable
|
||||
type AccessPackageAnswerable interface {
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetAnsweredQuestion()(AccessPackageQuestionable)
|
||||
GetDisplayValue()(*string)
|
||||
GetOdataType()(*string)
|
||||
SetAnsweredQuestion(value AccessPackageQuestionable)()
|
||||
SetDisplayValue(value *string)()
|
||||
SetOdataType(value *string)()
|
||||
}
|
||||
@ -0,0 +1,415 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time"
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageAssignment
|
||||
type AccessPackageAssignment struct {
|
||||
Entity
|
||||
// Read-only. Nullable. Supports $filter (eq) on the id property and $expand query parameters.
|
||||
accessPackage AccessPackageable
|
||||
// Read-only. Nullable. Supports $filter (eq) on the id property
|
||||
accessPackageAssignmentPolicy AccessPackageAssignmentPolicyable
|
||||
// The accessPackageAssignmentRequests property
|
||||
accessPackageAssignmentRequests []AccessPackageAssignmentRequestable
|
||||
// The resource roles delivered to the target user for this assignment. Read-only. Nullable.
|
||||
accessPackageAssignmentResourceRoles []AccessPackageAssignmentResourceRoleable
|
||||
// The identifier of the access package. Read-only.
|
||||
accessPackageId *string
|
||||
// The identifier of the access package assignment policy. Read-only.
|
||||
assignmentPolicyId *string
|
||||
// The state of the access package assignment. Possible values are Delivering, Delivered, or Expired. Read-only. Supports $filter (eq).
|
||||
assignmentState *string
|
||||
// More information about the assignment lifecycle. Possible values include Delivering, Delivered, NearExpiry1DayNotificationTriggered, or ExpiredNotificationTriggered. Read-only.
|
||||
assignmentStatus *string
|
||||
// The identifier of the catalog containing the access package. Read-only.
|
||||
catalogId *string
|
||||
// The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
|
||||
expiredDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time
|
||||
// Indicates whether the access package assignment is extended. Read-only.
|
||||
isExtended *bool
|
||||
// When the access assignment is to be in place. Read-only.
|
||||
schedule RequestScheduleable
|
||||
// The subject of the access package assignment. Read-only. Nullable. Supports $expand. Supports $filter (eq) on objectId.
|
||||
target AccessPackageSubjectable
|
||||
// The ID of the subject with the assignment. Read-only.
|
||||
targetId *string
|
||||
}
|
||||
// NewAccessPackageAssignment instantiates a new accessPackageAssignment and sets the default values.
|
||||
func NewAccessPackageAssignment()(*AccessPackageAssignment) {
|
||||
m := &AccessPackageAssignment{
|
||||
Entity: *NewEntity(),
|
||||
}
|
||||
return m
|
||||
}
|
||||
// CreateAccessPackageAssignmentFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateAccessPackageAssignmentFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewAccessPackageAssignment(), nil
|
||||
}
|
||||
// GetAccessPackage gets the accessPackage property value. Read-only. Nullable. Supports $filter (eq) on the id property and $expand query parameters.
|
||||
func (m *AccessPackageAssignment) GetAccessPackage()(AccessPackageable) {
|
||||
return m.accessPackage
|
||||
}
|
||||
// GetAccessPackageAssignmentPolicy gets the accessPackageAssignmentPolicy property value. Read-only. Nullable. Supports $filter (eq) on the id property
|
||||
func (m *AccessPackageAssignment) GetAccessPackageAssignmentPolicy()(AccessPackageAssignmentPolicyable) {
|
||||
return m.accessPackageAssignmentPolicy
|
||||
}
|
||||
// GetAccessPackageAssignmentRequests gets the accessPackageAssignmentRequests property value. The accessPackageAssignmentRequests property
|
||||
func (m *AccessPackageAssignment) GetAccessPackageAssignmentRequests()([]AccessPackageAssignmentRequestable) {
|
||||
return m.accessPackageAssignmentRequests
|
||||
}
|
||||
// GetAccessPackageAssignmentResourceRoles gets the accessPackageAssignmentResourceRoles property value. The resource roles delivered to the target user for this assignment. Read-only. Nullable.
|
||||
func (m *AccessPackageAssignment) GetAccessPackageAssignmentResourceRoles()([]AccessPackageAssignmentResourceRoleable) {
|
||||
return m.accessPackageAssignmentResourceRoles
|
||||
}
|
||||
// GetAccessPackageId gets the accessPackageId property value. The identifier of the access package. Read-only.
|
||||
func (m *AccessPackageAssignment) GetAccessPackageId()(*string) {
|
||||
return m.accessPackageId
|
||||
}
|
||||
// GetAssignmentPolicyId gets the assignmentPolicyId property value. The identifier of the access package assignment policy. Read-only.
|
||||
func (m *AccessPackageAssignment) GetAssignmentPolicyId()(*string) {
|
||||
return m.assignmentPolicyId
|
||||
}
|
||||
// GetAssignmentState gets the assignmentState property value. The state of the access package assignment. Possible values are Delivering, Delivered, or Expired. Read-only. Supports $filter (eq).
|
||||
func (m *AccessPackageAssignment) GetAssignmentState()(*string) {
|
||||
return m.assignmentState
|
||||
}
|
||||
// GetAssignmentStatus gets the assignmentStatus property value. More information about the assignment lifecycle. Possible values include Delivering, Delivered, NearExpiry1DayNotificationTriggered, or ExpiredNotificationTriggered. Read-only.
|
||||
func (m *AccessPackageAssignment) GetAssignmentStatus()(*string) {
|
||||
return m.assignmentStatus
|
||||
}
|
||||
// GetCatalogId gets the catalogId property value. The identifier of the catalog containing the access package. Read-only.
|
||||
func (m *AccessPackageAssignment) GetCatalogId()(*string) {
|
||||
return m.catalogId
|
||||
}
|
||||
// GetExpiredDateTime gets the expiredDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
|
||||
func (m *AccessPackageAssignment) GetExpiredDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) {
|
||||
return m.expiredDateTime
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *AccessPackageAssignment) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := m.Entity.GetFieldDeserializers()
|
||||
res["accessPackage"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetObjectValue(CreateAccessPackageFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetAccessPackage(val.(AccessPackageable))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["accessPackageAssignmentPolicy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetObjectValue(CreateAccessPackageAssignmentPolicyFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetAccessPackageAssignmentPolicy(val.(AccessPackageAssignmentPolicyable))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["accessPackageAssignmentRequests"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfObjectValues(CreateAccessPackageAssignmentRequestFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]AccessPackageAssignmentRequestable, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = v.(AccessPackageAssignmentRequestable)
|
||||
}
|
||||
m.SetAccessPackageAssignmentRequests(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["accessPackageAssignmentResourceRoles"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfObjectValues(CreateAccessPackageAssignmentResourceRoleFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]AccessPackageAssignmentResourceRoleable, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = v.(AccessPackageAssignmentResourceRoleable)
|
||||
}
|
||||
m.SetAccessPackageAssignmentResourceRoles(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["accessPackageId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetAccessPackageId(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["assignmentPolicyId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetAssignmentPolicyId(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["assignmentState"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetAssignmentState(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["assignmentStatus"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetAssignmentStatus(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["catalogId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetCatalogId(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["expiredDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetTimeValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetExpiredDateTime(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["isExtended"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetBoolValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetIsExtended(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["schedule"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetObjectValue(CreateRequestScheduleFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetSchedule(val.(RequestScheduleable))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["target"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetObjectValue(CreateAccessPackageSubjectFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetTarget(val.(AccessPackageSubjectable))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["targetId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetTargetId(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetIsExtended gets the isExtended property value. Indicates whether the access package assignment is extended. Read-only.
|
||||
func (m *AccessPackageAssignment) GetIsExtended()(*bool) {
|
||||
return m.isExtended
|
||||
}
|
||||
// GetSchedule gets the schedule property value. When the access assignment is to be in place. Read-only.
|
||||
func (m *AccessPackageAssignment) GetSchedule()(RequestScheduleable) {
|
||||
return m.schedule
|
||||
}
|
||||
// GetTarget gets the target property value. The subject of the access package assignment. Read-only. Nullable. Supports $expand. Supports $filter (eq) on objectId.
|
||||
func (m *AccessPackageAssignment) GetTarget()(AccessPackageSubjectable) {
|
||||
return m.target
|
||||
}
|
||||
// GetTargetId gets the targetId property value. The ID of the subject with the assignment. Read-only.
|
||||
func (m *AccessPackageAssignment) GetTargetId()(*string) {
|
||||
return m.targetId
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *AccessPackageAssignment) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
err := m.Entity.Serialize(writer)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
{
|
||||
err = writer.WriteObjectValue("accessPackage", m.GetAccessPackage())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteObjectValue("accessPackageAssignmentPolicy", m.GetAccessPackageAssignmentPolicy())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if m.GetAccessPackageAssignmentRequests() != nil {
|
||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetAccessPackageAssignmentRequests()))
|
||||
for i, v := range m.GetAccessPackageAssignmentRequests() {
|
||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
||||
}
|
||||
err = writer.WriteCollectionOfObjectValues("accessPackageAssignmentRequests", cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if m.GetAccessPackageAssignmentResourceRoles() != nil {
|
||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetAccessPackageAssignmentResourceRoles()))
|
||||
for i, v := range m.GetAccessPackageAssignmentResourceRoles() {
|
||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
||||
}
|
||||
err = writer.WriteCollectionOfObjectValues("accessPackageAssignmentResourceRoles", cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("accessPackageId", m.GetAccessPackageId())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("assignmentPolicyId", m.GetAssignmentPolicyId())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("assignmentState", m.GetAssignmentState())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("assignmentStatus", m.GetAssignmentStatus())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("catalogId", m.GetCatalogId())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteTimeValue("expiredDateTime", m.GetExpiredDateTime())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteBoolValue("isExtended", m.GetIsExtended())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteObjectValue("schedule", m.GetSchedule())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteObjectValue("target", m.GetTarget())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("targetId", m.GetTargetId())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// SetAccessPackage sets the accessPackage property value. Read-only. Nullable. Supports $filter (eq) on the id property and $expand query parameters.
|
||||
func (m *AccessPackageAssignment) SetAccessPackage(value AccessPackageable)() {
|
||||
m.accessPackage = value
|
||||
}
|
||||
// SetAccessPackageAssignmentPolicy sets the accessPackageAssignmentPolicy property value. Read-only. Nullable. Supports $filter (eq) on the id property
|
||||
func (m *AccessPackageAssignment) SetAccessPackageAssignmentPolicy(value AccessPackageAssignmentPolicyable)() {
|
||||
m.accessPackageAssignmentPolicy = value
|
||||
}
|
||||
// SetAccessPackageAssignmentRequests sets the accessPackageAssignmentRequests property value. The accessPackageAssignmentRequests property
|
||||
func (m *AccessPackageAssignment) SetAccessPackageAssignmentRequests(value []AccessPackageAssignmentRequestable)() {
|
||||
m.accessPackageAssignmentRequests = value
|
||||
}
|
||||
// SetAccessPackageAssignmentResourceRoles sets the accessPackageAssignmentResourceRoles property value. The resource roles delivered to the target user for this assignment. Read-only. Nullable.
|
||||
func (m *AccessPackageAssignment) SetAccessPackageAssignmentResourceRoles(value []AccessPackageAssignmentResourceRoleable)() {
|
||||
m.accessPackageAssignmentResourceRoles = value
|
||||
}
|
||||
// SetAccessPackageId sets the accessPackageId property value. The identifier of the access package. Read-only.
|
||||
func (m *AccessPackageAssignment) SetAccessPackageId(value *string)() {
|
||||
m.accessPackageId = value
|
||||
}
|
||||
// SetAssignmentPolicyId sets the assignmentPolicyId property value. The identifier of the access package assignment policy. Read-only.
|
||||
func (m *AccessPackageAssignment) SetAssignmentPolicyId(value *string)() {
|
||||
m.assignmentPolicyId = value
|
||||
}
|
||||
// SetAssignmentState sets the assignmentState property value. The state of the access package assignment. Possible values are Delivering, Delivered, or Expired. Read-only. Supports $filter (eq).
|
||||
func (m *AccessPackageAssignment) SetAssignmentState(value *string)() {
|
||||
m.assignmentState = value
|
||||
}
|
||||
// SetAssignmentStatus sets the assignmentStatus property value. More information about the assignment lifecycle. Possible values include Delivering, Delivered, NearExpiry1DayNotificationTriggered, or ExpiredNotificationTriggered. Read-only.
|
||||
func (m *AccessPackageAssignment) SetAssignmentStatus(value *string)() {
|
||||
m.assignmentStatus = value
|
||||
}
|
||||
// SetCatalogId sets the catalogId property value. The identifier of the catalog containing the access package. Read-only.
|
||||
func (m *AccessPackageAssignment) SetCatalogId(value *string)() {
|
||||
m.catalogId = value
|
||||
}
|
||||
// SetExpiredDateTime sets the expiredDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
|
||||
func (m *AccessPackageAssignment) SetExpiredDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() {
|
||||
m.expiredDateTime = value
|
||||
}
|
||||
// SetIsExtended sets the isExtended property value. Indicates whether the access package assignment is extended. Read-only.
|
||||
func (m *AccessPackageAssignment) SetIsExtended(value *bool)() {
|
||||
m.isExtended = value
|
||||
}
|
||||
// SetSchedule sets the schedule property value. When the access assignment is to be in place. Read-only.
|
||||
func (m *AccessPackageAssignment) SetSchedule(value RequestScheduleable)() {
|
||||
m.schedule = value
|
||||
}
|
||||
// SetTarget sets the target property value. The subject of the access package assignment. Read-only. Nullable. Supports $expand. Supports $filter (eq) on objectId.
|
||||
func (m *AccessPackageAssignment) SetTarget(value AccessPackageSubjectable)() {
|
||||
m.target = value
|
||||
}
|
||||
// SetTargetId sets the targetId property value. The ID of the subject with the assignment. Read-only.
|
||||
func (m *AccessPackageAssignment) SetTargetId(value *string)() {
|
||||
m.targetId = value
|
||||
}
|
||||
@ -0,0 +1,68 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageAssignmentCollectionResponse
|
||||
type AccessPackageAssignmentCollectionResponse struct {
|
||||
BaseCollectionPaginationCountResponse
|
||||
// The value property
|
||||
value []AccessPackageAssignmentable
|
||||
}
|
||||
// NewAccessPackageAssignmentCollectionResponse instantiates a new AccessPackageAssignmentCollectionResponse and sets the default values.
|
||||
func NewAccessPackageAssignmentCollectionResponse()(*AccessPackageAssignmentCollectionResponse) {
|
||||
m := &AccessPackageAssignmentCollectionResponse{
|
||||
BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(),
|
||||
}
|
||||
return m
|
||||
}
|
||||
// CreateAccessPackageAssignmentCollectionResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateAccessPackageAssignmentCollectionResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewAccessPackageAssignmentCollectionResponse(), nil
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *AccessPackageAssignmentCollectionResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers()
|
||||
res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfObjectValues(CreateAccessPackageAssignmentFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]AccessPackageAssignmentable, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = v.(AccessPackageAssignmentable)
|
||||
}
|
||||
m.SetValue(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetValue gets the value property value. The value property
|
||||
func (m *AccessPackageAssignmentCollectionResponse) GetValue()([]AccessPackageAssignmentable) {
|
||||
return m.value
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *AccessPackageAssignmentCollectionResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
err := m.BaseCollectionPaginationCountResponse.Serialize(writer)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if m.GetValue() != nil {
|
||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue()))
|
||||
for i, v := range m.GetValue() {
|
||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
||||
}
|
||||
err = writer.WriteCollectionOfObjectValues("value", cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// SetValue sets the value property value. The value property
|
||||
func (m *AccessPackageAssignmentCollectionResponse) SetValue(value []AccessPackageAssignmentable)() {
|
||||
m.value = value
|
||||
}
|
||||
@ -0,0 +1,13 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageAssignmentCollectionResponseable
|
||||
type AccessPackageAssignmentCollectionResponseable interface {
|
||||
BaseCollectionPaginationCountResponseable
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetValue()([]AccessPackageAssignmentable)
|
||||
SetValue(value []AccessPackageAssignmentable)()
|
||||
}
|
||||
@ -0,0 +1,493 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time"
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageAssignmentPolicy provides operations to manage the sites property of the microsoft.graph.browserSiteList entity.
|
||||
type AccessPackageAssignmentPolicy struct {
|
||||
Entity
|
||||
// The access package with this policy. Read-only. Nullable. Supports $expand.
|
||||
accessPackage AccessPackageable
|
||||
// The accessPackageCatalog property
|
||||
accessPackageCatalog AccessPackageCatalogable
|
||||
// Identifier of the access package.
|
||||
accessPackageId *string
|
||||
// Who must review, and how often, the assignments to the access package from this policy. This property is null if reviews are not required.
|
||||
accessReviewSettings AssignmentReviewSettingsable
|
||||
// Indicates whether a user can extend the access package assignment duration after approval.
|
||||
canExtend *bool
|
||||
// The createdBy property
|
||||
createdBy *string
|
||||
// The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
|
||||
createdDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time
|
||||
// The collection of stages when to execute one or more custom access package workflow extensions. Supports $expand.
|
||||
customExtensionHandlers []CustomExtensionHandlerable
|
||||
// The description of the policy.
|
||||
description *string
|
||||
// The display name of the policy. Supports $filter (eq).
|
||||
displayName *string
|
||||
// The number of days in which assignments from this policy last until they are expired.
|
||||
durationInDays *int32
|
||||
// The expiration date for assignments created in this policy. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
|
||||
expirationDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time
|
||||
// The modifiedBy property
|
||||
modifiedBy *string
|
||||
// The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
|
||||
modifiedDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time
|
||||
// Questions that are posed to the requestor.
|
||||
questions []AccessPackageQuestionable
|
||||
// Who must approve requests for access package in this policy.
|
||||
requestApprovalSettings ApprovalSettingsable
|
||||
// Who can request this access package from this policy.
|
||||
requestorSettings RequestorSettingsable
|
||||
}
|
||||
// NewAccessPackageAssignmentPolicy instantiates a new accessPackageAssignmentPolicy and sets the default values.
|
||||
func NewAccessPackageAssignmentPolicy()(*AccessPackageAssignmentPolicy) {
|
||||
m := &AccessPackageAssignmentPolicy{
|
||||
Entity: *NewEntity(),
|
||||
}
|
||||
return m
|
||||
}
|
||||
// CreateAccessPackageAssignmentPolicyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateAccessPackageAssignmentPolicyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewAccessPackageAssignmentPolicy(), nil
|
||||
}
|
||||
// GetAccessPackage gets the accessPackage property value. The access package with this policy. Read-only. Nullable. Supports $expand.
|
||||
func (m *AccessPackageAssignmentPolicy) GetAccessPackage()(AccessPackageable) {
|
||||
return m.accessPackage
|
||||
}
|
||||
// GetAccessPackageCatalog gets the accessPackageCatalog property value. The accessPackageCatalog property
|
||||
func (m *AccessPackageAssignmentPolicy) GetAccessPackageCatalog()(AccessPackageCatalogable) {
|
||||
return m.accessPackageCatalog
|
||||
}
|
||||
// GetAccessPackageId gets the accessPackageId property value. Identifier of the access package.
|
||||
func (m *AccessPackageAssignmentPolicy) GetAccessPackageId()(*string) {
|
||||
return m.accessPackageId
|
||||
}
|
||||
// GetAccessReviewSettings gets the accessReviewSettings property value. Who must review, and how often, the assignments to the access package from this policy. This property is null if reviews are not required.
|
||||
func (m *AccessPackageAssignmentPolicy) GetAccessReviewSettings()(AssignmentReviewSettingsable) {
|
||||
return m.accessReviewSettings
|
||||
}
|
||||
// GetCanExtend gets the canExtend property value. Indicates whether a user can extend the access package assignment duration after approval.
|
||||
func (m *AccessPackageAssignmentPolicy) GetCanExtend()(*bool) {
|
||||
return m.canExtend
|
||||
}
|
||||
// GetCreatedBy gets the createdBy property value. The createdBy property
|
||||
func (m *AccessPackageAssignmentPolicy) GetCreatedBy()(*string) {
|
||||
return m.createdBy
|
||||
}
|
||||
// GetCreatedDateTime gets the createdDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
|
||||
func (m *AccessPackageAssignmentPolicy) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) {
|
||||
return m.createdDateTime
|
||||
}
|
||||
// GetCustomExtensionHandlers gets the customExtensionHandlers property value. The collection of stages when to execute one or more custom access package workflow extensions. Supports $expand.
|
||||
func (m *AccessPackageAssignmentPolicy) GetCustomExtensionHandlers()([]CustomExtensionHandlerable) {
|
||||
return m.customExtensionHandlers
|
||||
}
|
||||
// GetDescription gets the description property value. The description of the policy.
|
||||
func (m *AccessPackageAssignmentPolicy) GetDescription()(*string) {
|
||||
return m.description
|
||||
}
|
||||
// GetDisplayName gets the displayName property value. The display name of the policy. Supports $filter (eq).
|
||||
func (m *AccessPackageAssignmentPolicy) GetDisplayName()(*string) {
|
||||
return m.displayName
|
||||
}
|
||||
// GetDurationInDays gets the durationInDays property value. The number of days in which assignments from this policy last until they are expired.
|
||||
func (m *AccessPackageAssignmentPolicy) GetDurationInDays()(*int32) {
|
||||
return m.durationInDays
|
||||
}
|
||||
// GetExpirationDateTime gets the expirationDateTime property value. The expiration date for assignments created in this policy. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
|
||||
func (m *AccessPackageAssignmentPolicy) GetExpirationDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) {
|
||||
return m.expirationDateTime
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *AccessPackageAssignmentPolicy) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := m.Entity.GetFieldDeserializers()
|
||||
res["accessPackage"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetObjectValue(CreateAccessPackageFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetAccessPackage(val.(AccessPackageable))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["accessPackageCatalog"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetObjectValue(CreateAccessPackageCatalogFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetAccessPackageCatalog(val.(AccessPackageCatalogable))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["accessPackageId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetAccessPackageId(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["accessReviewSettings"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetObjectValue(CreateAssignmentReviewSettingsFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetAccessReviewSettings(val.(AssignmentReviewSettingsable))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["canExtend"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetBoolValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetCanExtend(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["createdBy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetCreatedBy(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["createdDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetTimeValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetCreatedDateTime(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["customExtensionHandlers"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfObjectValues(CreateCustomExtensionHandlerFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]CustomExtensionHandlerable, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = v.(CustomExtensionHandlerable)
|
||||
}
|
||||
m.SetCustomExtensionHandlers(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["description"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetDescription(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["displayName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetDisplayName(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["durationInDays"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetInt32Value()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetDurationInDays(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["expirationDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetTimeValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetExpirationDateTime(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["modifiedBy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetModifiedBy(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["modifiedDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetTimeValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetModifiedDateTime(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["questions"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfObjectValues(CreateAccessPackageQuestionFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]AccessPackageQuestionable, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = v.(AccessPackageQuestionable)
|
||||
}
|
||||
m.SetQuestions(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["requestApprovalSettings"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetObjectValue(CreateApprovalSettingsFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetRequestApprovalSettings(val.(ApprovalSettingsable))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["requestorSettings"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetObjectValue(CreateRequestorSettingsFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetRequestorSettings(val.(RequestorSettingsable))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetModifiedBy gets the modifiedBy property value. The modifiedBy property
|
||||
func (m *AccessPackageAssignmentPolicy) GetModifiedBy()(*string) {
|
||||
return m.modifiedBy
|
||||
}
|
||||
// GetModifiedDateTime gets the modifiedDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
|
||||
func (m *AccessPackageAssignmentPolicy) GetModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) {
|
||||
return m.modifiedDateTime
|
||||
}
|
||||
// GetQuestions gets the questions property value. Questions that are posed to the requestor.
|
||||
func (m *AccessPackageAssignmentPolicy) GetQuestions()([]AccessPackageQuestionable) {
|
||||
return m.questions
|
||||
}
|
||||
// GetRequestApprovalSettings gets the requestApprovalSettings property value. Who must approve requests for access package in this policy.
|
||||
func (m *AccessPackageAssignmentPolicy) GetRequestApprovalSettings()(ApprovalSettingsable) {
|
||||
return m.requestApprovalSettings
|
||||
}
|
||||
// GetRequestorSettings gets the requestorSettings property value. Who can request this access package from this policy.
|
||||
func (m *AccessPackageAssignmentPolicy) GetRequestorSettings()(RequestorSettingsable) {
|
||||
return m.requestorSettings
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *AccessPackageAssignmentPolicy) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
err := m.Entity.Serialize(writer)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
{
|
||||
err = writer.WriteObjectValue("accessPackage", m.GetAccessPackage())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteObjectValue("accessPackageCatalog", m.GetAccessPackageCatalog())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("accessPackageId", m.GetAccessPackageId())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteObjectValue("accessReviewSettings", m.GetAccessReviewSettings())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteBoolValue("canExtend", m.GetCanExtend())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("createdBy", m.GetCreatedBy())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteTimeValue("createdDateTime", m.GetCreatedDateTime())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if m.GetCustomExtensionHandlers() != nil {
|
||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetCustomExtensionHandlers()))
|
||||
for i, v := range m.GetCustomExtensionHandlers() {
|
||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
||||
}
|
||||
err = writer.WriteCollectionOfObjectValues("customExtensionHandlers", cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("description", m.GetDescription())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("displayName", m.GetDisplayName())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteInt32Value("durationInDays", m.GetDurationInDays())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteTimeValue("expirationDateTime", m.GetExpirationDateTime())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("modifiedBy", m.GetModifiedBy())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteTimeValue("modifiedDateTime", m.GetModifiedDateTime())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if m.GetQuestions() != nil {
|
||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetQuestions()))
|
||||
for i, v := range m.GetQuestions() {
|
||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
||||
}
|
||||
err = writer.WriteCollectionOfObjectValues("questions", cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteObjectValue("requestApprovalSettings", m.GetRequestApprovalSettings())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteObjectValue("requestorSettings", m.GetRequestorSettings())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// SetAccessPackage sets the accessPackage property value. The access package with this policy. Read-only. Nullable. Supports $expand.
|
||||
func (m *AccessPackageAssignmentPolicy) SetAccessPackage(value AccessPackageable)() {
|
||||
m.accessPackage = value
|
||||
}
|
||||
// SetAccessPackageCatalog sets the accessPackageCatalog property value. The accessPackageCatalog property
|
||||
func (m *AccessPackageAssignmentPolicy) SetAccessPackageCatalog(value AccessPackageCatalogable)() {
|
||||
m.accessPackageCatalog = value
|
||||
}
|
||||
// SetAccessPackageId sets the accessPackageId property value. Identifier of the access package.
|
||||
func (m *AccessPackageAssignmentPolicy) SetAccessPackageId(value *string)() {
|
||||
m.accessPackageId = value
|
||||
}
|
||||
// SetAccessReviewSettings sets the accessReviewSettings property value. Who must review, and how often, the assignments to the access package from this policy. This property is null if reviews are not required.
|
||||
func (m *AccessPackageAssignmentPolicy) SetAccessReviewSettings(value AssignmentReviewSettingsable)() {
|
||||
m.accessReviewSettings = value
|
||||
}
|
||||
// SetCanExtend sets the canExtend property value. Indicates whether a user can extend the access package assignment duration after approval.
|
||||
func (m *AccessPackageAssignmentPolicy) SetCanExtend(value *bool)() {
|
||||
m.canExtend = value
|
||||
}
|
||||
// SetCreatedBy sets the createdBy property value. The createdBy property
|
||||
func (m *AccessPackageAssignmentPolicy) SetCreatedBy(value *string)() {
|
||||
m.createdBy = value
|
||||
}
|
||||
// SetCreatedDateTime sets the createdDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
|
||||
func (m *AccessPackageAssignmentPolicy) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() {
|
||||
m.createdDateTime = value
|
||||
}
|
||||
// SetCustomExtensionHandlers sets the customExtensionHandlers property value. The collection of stages when to execute one or more custom access package workflow extensions. Supports $expand.
|
||||
func (m *AccessPackageAssignmentPolicy) SetCustomExtensionHandlers(value []CustomExtensionHandlerable)() {
|
||||
m.customExtensionHandlers = value
|
||||
}
|
||||
// SetDescription sets the description property value. The description of the policy.
|
||||
func (m *AccessPackageAssignmentPolicy) SetDescription(value *string)() {
|
||||
m.description = value
|
||||
}
|
||||
// SetDisplayName sets the displayName property value. The display name of the policy. Supports $filter (eq).
|
||||
func (m *AccessPackageAssignmentPolicy) SetDisplayName(value *string)() {
|
||||
m.displayName = value
|
||||
}
|
||||
// SetDurationInDays sets the durationInDays property value. The number of days in which assignments from this policy last until they are expired.
|
||||
func (m *AccessPackageAssignmentPolicy) SetDurationInDays(value *int32)() {
|
||||
m.durationInDays = value
|
||||
}
|
||||
// SetExpirationDateTime sets the expirationDateTime property value. The expiration date for assignments created in this policy. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
|
||||
func (m *AccessPackageAssignmentPolicy) SetExpirationDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() {
|
||||
m.expirationDateTime = value
|
||||
}
|
||||
// SetModifiedBy sets the modifiedBy property value. The modifiedBy property
|
||||
func (m *AccessPackageAssignmentPolicy) SetModifiedBy(value *string)() {
|
||||
m.modifiedBy = value
|
||||
}
|
||||
// SetModifiedDateTime sets the modifiedDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
|
||||
func (m *AccessPackageAssignmentPolicy) SetModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() {
|
||||
m.modifiedDateTime = value
|
||||
}
|
||||
// SetQuestions sets the questions property value. Questions that are posed to the requestor.
|
||||
func (m *AccessPackageAssignmentPolicy) SetQuestions(value []AccessPackageQuestionable)() {
|
||||
m.questions = value
|
||||
}
|
||||
// SetRequestApprovalSettings sets the requestApprovalSettings property value. Who must approve requests for access package in this policy.
|
||||
func (m *AccessPackageAssignmentPolicy) SetRequestApprovalSettings(value ApprovalSettingsable)() {
|
||||
m.requestApprovalSettings = value
|
||||
}
|
||||
// SetRequestorSettings sets the requestorSettings property value. Who can request this access package from this policy.
|
||||
func (m *AccessPackageAssignmentPolicy) SetRequestorSettings(value RequestorSettingsable)() {
|
||||
m.requestorSettings = value
|
||||
}
|
||||
@ -0,0 +1,68 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageAssignmentPolicyCollectionResponse
|
||||
type AccessPackageAssignmentPolicyCollectionResponse struct {
|
||||
BaseCollectionPaginationCountResponse
|
||||
// The value property
|
||||
value []AccessPackageAssignmentPolicyable
|
||||
}
|
||||
// NewAccessPackageAssignmentPolicyCollectionResponse instantiates a new AccessPackageAssignmentPolicyCollectionResponse and sets the default values.
|
||||
func NewAccessPackageAssignmentPolicyCollectionResponse()(*AccessPackageAssignmentPolicyCollectionResponse) {
|
||||
m := &AccessPackageAssignmentPolicyCollectionResponse{
|
||||
BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(),
|
||||
}
|
||||
return m
|
||||
}
|
||||
// CreateAccessPackageAssignmentPolicyCollectionResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateAccessPackageAssignmentPolicyCollectionResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewAccessPackageAssignmentPolicyCollectionResponse(), nil
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *AccessPackageAssignmentPolicyCollectionResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers()
|
||||
res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfObjectValues(CreateAccessPackageAssignmentPolicyFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]AccessPackageAssignmentPolicyable, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = v.(AccessPackageAssignmentPolicyable)
|
||||
}
|
||||
m.SetValue(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetValue gets the value property value. The value property
|
||||
func (m *AccessPackageAssignmentPolicyCollectionResponse) GetValue()([]AccessPackageAssignmentPolicyable) {
|
||||
return m.value
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *AccessPackageAssignmentPolicyCollectionResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
err := m.BaseCollectionPaginationCountResponse.Serialize(writer)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if m.GetValue() != nil {
|
||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue()))
|
||||
for i, v := range m.GetValue() {
|
||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
||||
}
|
||||
err = writer.WriteCollectionOfObjectValues("value", cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// SetValue sets the value property value. The value property
|
||||
func (m *AccessPackageAssignmentPolicyCollectionResponse) SetValue(value []AccessPackageAssignmentPolicyable)() {
|
||||
m.value = value
|
||||
}
|
||||
@ -0,0 +1,13 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageAssignmentPolicyCollectionResponseable
|
||||
type AccessPackageAssignmentPolicyCollectionResponseable interface {
|
||||
BaseCollectionPaginationCountResponseable
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetValue()([]AccessPackageAssignmentPolicyable)
|
||||
SetValue(value []AccessPackageAssignmentPolicyable)()
|
||||
}
|
||||
@ -0,0 +1,46 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time"
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageAssignmentPolicyable
|
||||
type AccessPackageAssignmentPolicyable interface {
|
||||
Entityable
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetAccessPackage()(AccessPackageable)
|
||||
GetAccessPackageCatalog()(AccessPackageCatalogable)
|
||||
GetAccessPackageId()(*string)
|
||||
GetAccessReviewSettings()(AssignmentReviewSettingsable)
|
||||
GetCanExtend()(*bool)
|
||||
GetCreatedBy()(*string)
|
||||
GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)
|
||||
GetCustomExtensionHandlers()([]CustomExtensionHandlerable)
|
||||
GetDescription()(*string)
|
||||
GetDisplayName()(*string)
|
||||
GetDurationInDays()(*int32)
|
||||
GetExpirationDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)
|
||||
GetModifiedBy()(*string)
|
||||
GetModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)
|
||||
GetQuestions()([]AccessPackageQuestionable)
|
||||
GetRequestApprovalSettings()(ApprovalSettingsable)
|
||||
GetRequestorSettings()(RequestorSettingsable)
|
||||
SetAccessPackage(value AccessPackageable)()
|
||||
SetAccessPackageCatalog(value AccessPackageCatalogable)()
|
||||
SetAccessPackageId(value *string)()
|
||||
SetAccessReviewSettings(value AssignmentReviewSettingsable)()
|
||||
SetCanExtend(value *bool)()
|
||||
SetCreatedBy(value *string)()
|
||||
SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)()
|
||||
SetCustomExtensionHandlers(value []CustomExtensionHandlerable)()
|
||||
SetDescription(value *string)()
|
||||
SetDisplayName(value *string)()
|
||||
SetDurationInDays(value *int32)()
|
||||
SetExpirationDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)()
|
||||
SetModifiedBy(value *string)()
|
||||
SetModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)()
|
||||
SetQuestions(value []AccessPackageQuestionable)()
|
||||
SetRequestApprovalSettings(value ApprovalSettingsable)()
|
||||
SetRequestorSettings(value RequestorSettingsable)()
|
||||
}
|
||||
@ -0,0 +1,415 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time"
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageAssignmentRequest provides operations to manage the sites property of the microsoft.graph.browserSiteList entity.
|
||||
type AccessPackageAssignmentRequest struct {
|
||||
Entity
|
||||
// The access package associated with the accessPackageAssignmentRequest. An access package defines the collections of resource roles and the policies for how one or more users can get access to those resources. Read-only. Nullable. Supports $expand.
|
||||
accessPackage AccessPackageable
|
||||
// For a requestType of UserAdd or AdminAdd, this is an access package assignment requested to be created. For a requestType of UserRemove, AdminRemove or SystemRemove, this has the id property of an existing assignment to be removed. Supports $expand.
|
||||
accessPackageAssignment AccessPackageAssignmentable
|
||||
// Answers provided by the requestor to accessPackageQuestions asked of them at the time of request.
|
||||
answers []AccessPackageAnswerable
|
||||
// The date of the end of processing, either successful or failure, of a request. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.
|
||||
completedDate *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time
|
||||
// The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.
|
||||
createdDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time
|
||||
// A collection of custom workflow extension instances being run on an assignment request. Read-only.
|
||||
customExtensionHandlerInstances []CustomExtensionHandlerInstanceable
|
||||
// The expirationDateTime property
|
||||
expirationDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time
|
||||
// True if the request is not to be processed for assignment.
|
||||
isValidationOnly *bool
|
||||
// The requestor's supplied justification.
|
||||
justification *string
|
||||
// The subject who requested or, if a direct assignment, was assigned. Read-only. Nullable. Supports $expand.
|
||||
requestor AccessPackageSubjectable
|
||||
// One of PendingApproval, Canceled, Denied, Delivering, Delivered, PartiallyDelivered, DeliveryFailed, Submitted or Scheduled. Read-only.
|
||||
requestState *string
|
||||
// More information on the request processing status. Read-only.
|
||||
requestStatus *string
|
||||
// One of UserAdd, UserExtend, UserUpdate, UserRemove, AdminAdd, AdminRemove or SystemRemove. A request from the user themselves would have requestType of UserAdd, UserUpdate or UserRemove. Read-only.
|
||||
requestType *string
|
||||
// The range of dates that access is to be assigned to the requestor. Read-only.
|
||||
schedule RequestScheduleable
|
||||
}
|
||||
// NewAccessPackageAssignmentRequest instantiates a new accessPackageAssignmentRequest and sets the default values.
|
||||
func NewAccessPackageAssignmentRequest()(*AccessPackageAssignmentRequest) {
|
||||
m := &AccessPackageAssignmentRequest{
|
||||
Entity: *NewEntity(),
|
||||
}
|
||||
return m
|
||||
}
|
||||
// CreateAccessPackageAssignmentRequestFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateAccessPackageAssignmentRequestFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewAccessPackageAssignmentRequest(), nil
|
||||
}
|
||||
// GetAccessPackage gets the accessPackage property value. The access package associated with the accessPackageAssignmentRequest. An access package defines the collections of resource roles and the policies for how one or more users can get access to those resources. Read-only. Nullable. Supports $expand.
|
||||
func (m *AccessPackageAssignmentRequest) GetAccessPackage()(AccessPackageable) {
|
||||
return m.accessPackage
|
||||
}
|
||||
// GetAccessPackageAssignment gets the accessPackageAssignment property value. For a requestType of UserAdd or AdminAdd, this is an access package assignment requested to be created. For a requestType of UserRemove, AdminRemove or SystemRemove, this has the id property of an existing assignment to be removed. Supports $expand.
|
||||
func (m *AccessPackageAssignmentRequest) GetAccessPackageAssignment()(AccessPackageAssignmentable) {
|
||||
return m.accessPackageAssignment
|
||||
}
|
||||
// GetAnswers gets the answers property value. Answers provided by the requestor to accessPackageQuestions asked of them at the time of request.
|
||||
func (m *AccessPackageAssignmentRequest) GetAnswers()([]AccessPackageAnswerable) {
|
||||
return m.answers
|
||||
}
|
||||
// GetCompletedDate gets the completedDate property value. The date of the end of processing, either successful or failure, of a request. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.
|
||||
func (m *AccessPackageAssignmentRequest) GetCompletedDate()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) {
|
||||
return m.completedDate
|
||||
}
|
||||
// GetCreatedDateTime gets the createdDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.
|
||||
func (m *AccessPackageAssignmentRequest) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) {
|
||||
return m.createdDateTime
|
||||
}
|
||||
// GetCustomExtensionHandlerInstances gets the customExtensionHandlerInstances property value. A collection of custom workflow extension instances being run on an assignment request. Read-only.
|
||||
func (m *AccessPackageAssignmentRequest) GetCustomExtensionHandlerInstances()([]CustomExtensionHandlerInstanceable) {
|
||||
return m.customExtensionHandlerInstances
|
||||
}
|
||||
// GetExpirationDateTime gets the expirationDateTime property value. The expirationDateTime property
|
||||
func (m *AccessPackageAssignmentRequest) GetExpirationDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) {
|
||||
return m.expirationDateTime
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *AccessPackageAssignmentRequest) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := m.Entity.GetFieldDeserializers()
|
||||
res["accessPackage"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetObjectValue(CreateAccessPackageFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetAccessPackage(val.(AccessPackageable))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["accessPackageAssignment"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetObjectValue(CreateAccessPackageAssignmentFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetAccessPackageAssignment(val.(AccessPackageAssignmentable))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["answers"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfObjectValues(CreateAccessPackageAnswerFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]AccessPackageAnswerable, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = v.(AccessPackageAnswerable)
|
||||
}
|
||||
m.SetAnswers(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["completedDate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetTimeValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetCompletedDate(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["createdDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetTimeValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetCreatedDateTime(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["customExtensionHandlerInstances"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfObjectValues(CreateCustomExtensionHandlerInstanceFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]CustomExtensionHandlerInstanceable, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = v.(CustomExtensionHandlerInstanceable)
|
||||
}
|
||||
m.SetCustomExtensionHandlerInstances(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["expirationDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetTimeValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetExpirationDateTime(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["isValidationOnly"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetBoolValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetIsValidationOnly(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["justification"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetJustification(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["requestor"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetObjectValue(CreateAccessPackageSubjectFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetRequestor(val.(AccessPackageSubjectable))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["requestState"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetRequestState(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["requestStatus"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetRequestStatus(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["requestType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetRequestType(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["schedule"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetObjectValue(CreateRequestScheduleFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetSchedule(val.(RequestScheduleable))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetIsValidationOnly gets the isValidationOnly property value. True if the request is not to be processed for assignment.
|
||||
func (m *AccessPackageAssignmentRequest) GetIsValidationOnly()(*bool) {
|
||||
return m.isValidationOnly
|
||||
}
|
||||
// GetJustification gets the justification property value. The requestor's supplied justification.
|
||||
func (m *AccessPackageAssignmentRequest) GetJustification()(*string) {
|
||||
return m.justification
|
||||
}
|
||||
// GetRequestor gets the requestor property value. The subject who requested or, if a direct assignment, was assigned. Read-only. Nullable. Supports $expand.
|
||||
func (m *AccessPackageAssignmentRequest) GetRequestor()(AccessPackageSubjectable) {
|
||||
return m.requestor
|
||||
}
|
||||
// GetRequestState gets the requestState property value. One of PendingApproval, Canceled, Denied, Delivering, Delivered, PartiallyDelivered, DeliveryFailed, Submitted or Scheduled. Read-only.
|
||||
func (m *AccessPackageAssignmentRequest) GetRequestState()(*string) {
|
||||
return m.requestState
|
||||
}
|
||||
// GetRequestStatus gets the requestStatus property value. More information on the request processing status. Read-only.
|
||||
func (m *AccessPackageAssignmentRequest) GetRequestStatus()(*string) {
|
||||
return m.requestStatus
|
||||
}
|
||||
// GetRequestType gets the requestType property value. One of UserAdd, UserExtend, UserUpdate, UserRemove, AdminAdd, AdminRemove or SystemRemove. A request from the user themselves would have requestType of UserAdd, UserUpdate or UserRemove. Read-only.
|
||||
func (m *AccessPackageAssignmentRequest) GetRequestType()(*string) {
|
||||
return m.requestType
|
||||
}
|
||||
// GetSchedule gets the schedule property value. The range of dates that access is to be assigned to the requestor. Read-only.
|
||||
func (m *AccessPackageAssignmentRequest) GetSchedule()(RequestScheduleable) {
|
||||
return m.schedule
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *AccessPackageAssignmentRequest) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
err := m.Entity.Serialize(writer)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
{
|
||||
err = writer.WriteObjectValue("accessPackage", m.GetAccessPackage())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteObjectValue("accessPackageAssignment", m.GetAccessPackageAssignment())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if m.GetAnswers() != nil {
|
||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetAnswers()))
|
||||
for i, v := range m.GetAnswers() {
|
||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
||||
}
|
||||
err = writer.WriteCollectionOfObjectValues("answers", cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteTimeValue("completedDate", m.GetCompletedDate())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteTimeValue("createdDateTime", m.GetCreatedDateTime())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if m.GetCustomExtensionHandlerInstances() != nil {
|
||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetCustomExtensionHandlerInstances()))
|
||||
for i, v := range m.GetCustomExtensionHandlerInstances() {
|
||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
||||
}
|
||||
err = writer.WriteCollectionOfObjectValues("customExtensionHandlerInstances", cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteTimeValue("expirationDateTime", m.GetExpirationDateTime())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteBoolValue("isValidationOnly", m.GetIsValidationOnly())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("justification", m.GetJustification())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteObjectValue("requestor", m.GetRequestor())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("requestState", m.GetRequestState())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("requestStatus", m.GetRequestStatus())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("requestType", m.GetRequestType())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteObjectValue("schedule", m.GetSchedule())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// SetAccessPackage sets the accessPackage property value. The access package associated with the accessPackageAssignmentRequest. An access package defines the collections of resource roles and the policies for how one or more users can get access to those resources. Read-only. Nullable. Supports $expand.
|
||||
func (m *AccessPackageAssignmentRequest) SetAccessPackage(value AccessPackageable)() {
|
||||
m.accessPackage = value
|
||||
}
|
||||
// SetAccessPackageAssignment sets the accessPackageAssignment property value. For a requestType of UserAdd or AdminAdd, this is an access package assignment requested to be created. For a requestType of UserRemove, AdminRemove or SystemRemove, this has the id property of an existing assignment to be removed. Supports $expand.
|
||||
func (m *AccessPackageAssignmentRequest) SetAccessPackageAssignment(value AccessPackageAssignmentable)() {
|
||||
m.accessPackageAssignment = value
|
||||
}
|
||||
// SetAnswers sets the answers property value. Answers provided by the requestor to accessPackageQuestions asked of them at the time of request.
|
||||
func (m *AccessPackageAssignmentRequest) SetAnswers(value []AccessPackageAnswerable)() {
|
||||
m.answers = value
|
||||
}
|
||||
// SetCompletedDate sets the completedDate property value. The date of the end of processing, either successful or failure, of a request. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.
|
||||
func (m *AccessPackageAssignmentRequest) SetCompletedDate(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() {
|
||||
m.completedDate = value
|
||||
}
|
||||
// SetCreatedDateTime sets the createdDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.
|
||||
func (m *AccessPackageAssignmentRequest) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() {
|
||||
m.createdDateTime = value
|
||||
}
|
||||
// SetCustomExtensionHandlerInstances sets the customExtensionHandlerInstances property value. A collection of custom workflow extension instances being run on an assignment request. Read-only.
|
||||
func (m *AccessPackageAssignmentRequest) SetCustomExtensionHandlerInstances(value []CustomExtensionHandlerInstanceable)() {
|
||||
m.customExtensionHandlerInstances = value
|
||||
}
|
||||
// SetExpirationDateTime sets the expirationDateTime property value. The expirationDateTime property
|
||||
func (m *AccessPackageAssignmentRequest) SetExpirationDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() {
|
||||
m.expirationDateTime = value
|
||||
}
|
||||
// SetIsValidationOnly sets the isValidationOnly property value. True if the request is not to be processed for assignment.
|
||||
func (m *AccessPackageAssignmentRequest) SetIsValidationOnly(value *bool)() {
|
||||
m.isValidationOnly = value
|
||||
}
|
||||
// SetJustification sets the justification property value. The requestor's supplied justification.
|
||||
func (m *AccessPackageAssignmentRequest) SetJustification(value *string)() {
|
||||
m.justification = value
|
||||
}
|
||||
// SetRequestor sets the requestor property value. The subject who requested or, if a direct assignment, was assigned. Read-only. Nullable. Supports $expand.
|
||||
func (m *AccessPackageAssignmentRequest) SetRequestor(value AccessPackageSubjectable)() {
|
||||
m.requestor = value
|
||||
}
|
||||
// SetRequestState sets the requestState property value. One of PendingApproval, Canceled, Denied, Delivering, Delivered, PartiallyDelivered, DeliveryFailed, Submitted or Scheduled. Read-only.
|
||||
func (m *AccessPackageAssignmentRequest) SetRequestState(value *string)() {
|
||||
m.requestState = value
|
||||
}
|
||||
// SetRequestStatus sets the requestStatus property value. More information on the request processing status. Read-only.
|
||||
func (m *AccessPackageAssignmentRequest) SetRequestStatus(value *string)() {
|
||||
m.requestStatus = value
|
||||
}
|
||||
// SetRequestType sets the requestType property value. One of UserAdd, UserExtend, UserUpdate, UserRemove, AdminAdd, AdminRemove or SystemRemove. A request from the user themselves would have requestType of UserAdd, UserUpdate or UserRemove. Read-only.
|
||||
func (m *AccessPackageAssignmentRequest) SetRequestType(value *string)() {
|
||||
m.requestType = value
|
||||
}
|
||||
// SetSchedule sets the schedule property value. The range of dates that access is to be assigned to the requestor. Read-only.
|
||||
func (m *AccessPackageAssignmentRequest) SetSchedule(value RequestScheduleable)() {
|
||||
m.schedule = value
|
||||
}
|
||||
@ -0,0 +1,68 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageAssignmentRequestCollectionResponse
|
||||
type AccessPackageAssignmentRequestCollectionResponse struct {
|
||||
BaseCollectionPaginationCountResponse
|
||||
// The value property
|
||||
value []AccessPackageAssignmentRequestable
|
||||
}
|
||||
// NewAccessPackageAssignmentRequestCollectionResponse instantiates a new AccessPackageAssignmentRequestCollectionResponse and sets the default values.
|
||||
func NewAccessPackageAssignmentRequestCollectionResponse()(*AccessPackageAssignmentRequestCollectionResponse) {
|
||||
m := &AccessPackageAssignmentRequestCollectionResponse{
|
||||
BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(),
|
||||
}
|
||||
return m
|
||||
}
|
||||
// CreateAccessPackageAssignmentRequestCollectionResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateAccessPackageAssignmentRequestCollectionResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewAccessPackageAssignmentRequestCollectionResponse(), nil
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *AccessPackageAssignmentRequestCollectionResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers()
|
||||
res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfObjectValues(CreateAccessPackageAssignmentRequestFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]AccessPackageAssignmentRequestable, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = v.(AccessPackageAssignmentRequestable)
|
||||
}
|
||||
m.SetValue(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetValue gets the value property value. The value property
|
||||
func (m *AccessPackageAssignmentRequestCollectionResponse) GetValue()([]AccessPackageAssignmentRequestable) {
|
||||
return m.value
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *AccessPackageAssignmentRequestCollectionResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
err := m.BaseCollectionPaginationCountResponse.Serialize(writer)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if m.GetValue() != nil {
|
||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue()))
|
||||
for i, v := range m.GetValue() {
|
||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
||||
}
|
||||
err = writer.WriteCollectionOfObjectValues("value", cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// SetValue sets the value property value. The value property
|
||||
func (m *AccessPackageAssignmentRequestCollectionResponse) SetValue(value []AccessPackageAssignmentRequestable)() {
|
||||
m.value = value
|
||||
}
|
||||
@ -0,0 +1,13 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageAssignmentRequestCollectionResponseable
|
||||
type AccessPackageAssignmentRequestCollectionResponseable interface {
|
||||
BaseCollectionPaginationCountResponseable
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetValue()([]AccessPackageAssignmentRequestable)
|
||||
SetValue(value []AccessPackageAssignmentRequestable)()
|
||||
}
|
||||
@ -0,0 +1,40 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time"
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageAssignmentRequestable
|
||||
type AccessPackageAssignmentRequestable interface {
|
||||
Entityable
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetAccessPackage()(AccessPackageable)
|
||||
GetAccessPackageAssignment()(AccessPackageAssignmentable)
|
||||
GetAnswers()([]AccessPackageAnswerable)
|
||||
GetCompletedDate()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)
|
||||
GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)
|
||||
GetCustomExtensionHandlerInstances()([]CustomExtensionHandlerInstanceable)
|
||||
GetExpirationDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)
|
||||
GetIsValidationOnly()(*bool)
|
||||
GetJustification()(*string)
|
||||
GetRequestor()(AccessPackageSubjectable)
|
||||
GetRequestState()(*string)
|
||||
GetRequestStatus()(*string)
|
||||
GetRequestType()(*string)
|
||||
GetSchedule()(RequestScheduleable)
|
||||
SetAccessPackage(value AccessPackageable)()
|
||||
SetAccessPackageAssignment(value AccessPackageAssignmentable)()
|
||||
SetAnswers(value []AccessPackageAnswerable)()
|
||||
SetCompletedDate(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)()
|
||||
SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)()
|
||||
SetCustomExtensionHandlerInstances(value []CustomExtensionHandlerInstanceable)()
|
||||
SetExpirationDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)()
|
||||
SetIsValidationOnly(value *bool)()
|
||||
SetJustification(value *string)()
|
||||
SetRequestor(value AccessPackageSubjectable)()
|
||||
SetRequestState(value *string)()
|
||||
SetRequestStatus(value *string)()
|
||||
SetRequestType(value *string)()
|
||||
SetSchedule(value RequestScheduleable)()
|
||||
}
|
||||
@ -0,0 +1,224 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageAssignmentResourceRole provides operations to manage the sites property of the microsoft.graph.browserSiteList entity.
|
||||
type AccessPackageAssignmentResourceRole struct {
|
||||
Entity
|
||||
// The access package assignments resulting in this role assignment. Read-only. Nullable.
|
||||
accessPackageAssignments []AccessPackageAssignmentable
|
||||
// The accessPackageResourceRole property
|
||||
accessPackageResourceRole AccessPackageResourceRoleable
|
||||
// The accessPackageResourceScope property
|
||||
accessPackageResourceScope AccessPackageResourceScopeable
|
||||
// Read-only. Nullable. Supports $filter (eq) on objectId and $expand query parameters.
|
||||
accessPackageSubject AccessPackageSubjectable
|
||||
// A unique identifier relative to the origin system, corresponding to the originId property of the accessPackageResourceRole.
|
||||
originId *string
|
||||
// The system where the role assignment is to be created or has been created for an access package assignment, such as SharePointOnline, AadGroup or AadApplication, corresponding to the originSystem property of the accessPackageResourceRole.
|
||||
originSystem *string
|
||||
// The value is PendingFulfillment when the access package assignment has not yet been delivered to the origin system, and Fulfilled when the access package assignment has been delivered to the origin system.
|
||||
status *string
|
||||
}
|
||||
// NewAccessPackageAssignmentResourceRole instantiates a new accessPackageAssignmentResourceRole and sets the default values.
|
||||
func NewAccessPackageAssignmentResourceRole()(*AccessPackageAssignmentResourceRole) {
|
||||
m := &AccessPackageAssignmentResourceRole{
|
||||
Entity: *NewEntity(),
|
||||
}
|
||||
return m
|
||||
}
|
||||
// CreateAccessPackageAssignmentResourceRoleFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateAccessPackageAssignmentResourceRoleFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewAccessPackageAssignmentResourceRole(), nil
|
||||
}
|
||||
// GetAccessPackageAssignments gets the accessPackageAssignments property value. The access package assignments resulting in this role assignment. Read-only. Nullable.
|
||||
func (m *AccessPackageAssignmentResourceRole) GetAccessPackageAssignments()([]AccessPackageAssignmentable) {
|
||||
return m.accessPackageAssignments
|
||||
}
|
||||
// GetAccessPackageResourceRole gets the accessPackageResourceRole property value. The accessPackageResourceRole property
|
||||
func (m *AccessPackageAssignmentResourceRole) GetAccessPackageResourceRole()(AccessPackageResourceRoleable) {
|
||||
return m.accessPackageResourceRole
|
||||
}
|
||||
// GetAccessPackageResourceScope gets the accessPackageResourceScope property value. The accessPackageResourceScope property
|
||||
func (m *AccessPackageAssignmentResourceRole) GetAccessPackageResourceScope()(AccessPackageResourceScopeable) {
|
||||
return m.accessPackageResourceScope
|
||||
}
|
||||
// GetAccessPackageSubject gets the accessPackageSubject property value. Read-only. Nullable. Supports $filter (eq) on objectId and $expand query parameters.
|
||||
func (m *AccessPackageAssignmentResourceRole) GetAccessPackageSubject()(AccessPackageSubjectable) {
|
||||
return m.accessPackageSubject
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *AccessPackageAssignmentResourceRole) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := m.Entity.GetFieldDeserializers()
|
||||
res["accessPackageAssignments"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfObjectValues(CreateAccessPackageAssignmentFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]AccessPackageAssignmentable, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = v.(AccessPackageAssignmentable)
|
||||
}
|
||||
m.SetAccessPackageAssignments(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["accessPackageResourceRole"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetObjectValue(CreateAccessPackageResourceRoleFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetAccessPackageResourceRole(val.(AccessPackageResourceRoleable))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["accessPackageResourceScope"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetObjectValue(CreateAccessPackageResourceScopeFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetAccessPackageResourceScope(val.(AccessPackageResourceScopeable))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["accessPackageSubject"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetObjectValue(CreateAccessPackageSubjectFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetAccessPackageSubject(val.(AccessPackageSubjectable))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["originId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetOriginId(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["originSystem"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetOriginSystem(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetStatus(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetOriginId gets the originId property value. A unique identifier relative to the origin system, corresponding to the originId property of the accessPackageResourceRole.
|
||||
func (m *AccessPackageAssignmentResourceRole) GetOriginId()(*string) {
|
||||
return m.originId
|
||||
}
|
||||
// GetOriginSystem gets the originSystem property value. The system where the role assignment is to be created or has been created for an access package assignment, such as SharePointOnline, AadGroup or AadApplication, corresponding to the originSystem property of the accessPackageResourceRole.
|
||||
func (m *AccessPackageAssignmentResourceRole) GetOriginSystem()(*string) {
|
||||
return m.originSystem
|
||||
}
|
||||
// GetStatus gets the status property value. The value is PendingFulfillment when the access package assignment has not yet been delivered to the origin system, and Fulfilled when the access package assignment has been delivered to the origin system.
|
||||
func (m *AccessPackageAssignmentResourceRole) GetStatus()(*string) {
|
||||
return m.status
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *AccessPackageAssignmentResourceRole) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
err := m.Entity.Serialize(writer)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if m.GetAccessPackageAssignments() != nil {
|
||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetAccessPackageAssignments()))
|
||||
for i, v := range m.GetAccessPackageAssignments() {
|
||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
||||
}
|
||||
err = writer.WriteCollectionOfObjectValues("accessPackageAssignments", cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteObjectValue("accessPackageResourceRole", m.GetAccessPackageResourceRole())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteObjectValue("accessPackageResourceScope", m.GetAccessPackageResourceScope())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteObjectValue("accessPackageSubject", m.GetAccessPackageSubject())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("originId", m.GetOriginId())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("originSystem", m.GetOriginSystem())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("status", m.GetStatus())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// SetAccessPackageAssignments sets the accessPackageAssignments property value. The access package assignments resulting in this role assignment. Read-only. Nullable.
|
||||
func (m *AccessPackageAssignmentResourceRole) SetAccessPackageAssignments(value []AccessPackageAssignmentable)() {
|
||||
m.accessPackageAssignments = value
|
||||
}
|
||||
// SetAccessPackageResourceRole sets the accessPackageResourceRole property value. The accessPackageResourceRole property
|
||||
func (m *AccessPackageAssignmentResourceRole) SetAccessPackageResourceRole(value AccessPackageResourceRoleable)() {
|
||||
m.accessPackageResourceRole = value
|
||||
}
|
||||
// SetAccessPackageResourceScope sets the accessPackageResourceScope property value. The accessPackageResourceScope property
|
||||
func (m *AccessPackageAssignmentResourceRole) SetAccessPackageResourceScope(value AccessPackageResourceScopeable)() {
|
||||
m.accessPackageResourceScope = value
|
||||
}
|
||||
// SetAccessPackageSubject sets the accessPackageSubject property value. Read-only. Nullable. Supports $filter (eq) on objectId and $expand query parameters.
|
||||
func (m *AccessPackageAssignmentResourceRole) SetAccessPackageSubject(value AccessPackageSubjectable)() {
|
||||
m.accessPackageSubject = value
|
||||
}
|
||||
// SetOriginId sets the originId property value. A unique identifier relative to the origin system, corresponding to the originId property of the accessPackageResourceRole.
|
||||
func (m *AccessPackageAssignmentResourceRole) SetOriginId(value *string)() {
|
||||
m.originId = value
|
||||
}
|
||||
// SetOriginSystem sets the originSystem property value. The system where the role assignment is to be created or has been created for an access package assignment, such as SharePointOnline, AadGroup or AadApplication, corresponding to the originSystem property of the accessPackageResourceRole.
|
||||
func (m *AccessPackageAssignmentResourceRole) SetOriginSystem(value *string)() {
|
||||
m.originSystem = value
|
||||
}
|
||||
// SetStatus sets the status property value. The value is PendingFulfillment when the access package assignment has not yet been delivered to the origin system, and Fulfilled when the access package assignment has been delivered to the origin system.
|
||||
func (m *AccessPackageAssignmentResourceRole) SetStatus(value *string)() {
|
||||
m.status = value
|
||||
}
|
||||
@ -0,0 +1,68 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageAssignmentResourceRoleCollectionResponse
|
||||
type AccessPackageAssignmentResourceRoleCollectionResponse struct {
|
||||
BaseCollectionPaginationCountResponse
|
||||
// The value property
|
||||
value []AccessPackageAssignmentResourceRoleable
|
||||
}
|
||||
// NewAccessPackageAssignmentResourceRoleCollectionResponse instantiates a new AccessPackageAssignmentResourceRoleCollectionResponse and sets the default values.
|
||||
func NewAccessPackageAssignmentResourceRoleCollectionResponse()(*AccessPackageAssignmentResourceRoleCollectionResponse) {
|
||||
m := &AccessPackageAssignmentResourceRoleCollectionResponse{
|
||||
BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(),
|
||||
}
|
||||
return m
|
||||
}
|
||||
// CreateAccessPackageAssignmentResourceRoleCollectionResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateAccessPackageAssignmentResourceRoleCollectionResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewAccessPackageAssignmentResourceRoleCollectionResponse(), nil
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *AccessPackageAssignmentResourceRoleCollectionResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers()
|
||||
res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfObjectValues(CreateAccessPackageAssignmentResourceRoleFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]AccessPackageAssignmentResourceRoleable, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = v.(AccessPackageAssignmentResourceRoleable)
|
||||
}
|
||||
m.SetValue(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetValue gets the value property value. The value property
|
||||
func (m *AccessPackageAssignmentResourceRoleCollectionResponse) GetValue()([]AccessPackageAssignmentResourceRoleable) {
|
||||
return m.value
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *AccessPackageAssignmentResourceRoleCollectionResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
err := m.BaseCollectionPaginationCountResponse.Serialize(writer)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if m.GetValue() != nil {
|
||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue()))
|
||||
for i, v := range m.GetValue() {
|
||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
||||
}
|
||||
err = writer.WriteCollectionOfObjectValues("value", cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// SetValue sets the value property value. The value property
|
||||
func (m *AccessPackageAssignmentResourceRoleCollectionResponse) SetValue(value []AccessPackageAssignmentResourceRoleable)() {
|
||||
m.value = value
|
||||
}
|
||||
@ -0,0 +1,13 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageAssignmentResourceRoleCollectionResponseable
|
||||
type AccessPackageAssignmentResourceRoleCollectionResponseable interface {
|
||||
BaseCollectionPaginationCountResponseable
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetValue()([]AccessPackageAssignmentResourceRoleable)
|
||||
SetValue(value []AccessPackageAssignmentResourceRoleable)()
|
||||
}
|
||||
@ -0,0 +1,25 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageAssignmentResourceRoleable
|
||||
type AccessPackageAssignmentResourceRoleable interface {
|
||||
Entityable
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetAccessPackageAssignments()([]AccessPackageAssignmentable)
|
||||
GetAccessPackageResourceRole()(AccessPackageResourceRoleable)
|
||||
GetAccessPackageResourceScope()(AccessPackageResourceScopeable)
|
||||
GetAccessPackageSubject()(AccessPackageSubjectable)
|
||||
GetOriginId()(*string)
|
||||
GetOriginSystem()(*string)
|
||||
GetStatus()(*string)
|
||||
SetAccessPackageAssignments(value []AccessPackageAssignmentable)()
|
||||
SetAccessPackageResourceRole(value AccessPackageResourceRoleable)()
|
||||
SetAccessPackageResourceScope(value AccessPackageResourceScopeable)()
|
||||
SetAccessPackageSubject(value AccessPackageSubjectable)()
|
||||
SetOriginId(value *string)()
|
||||
SetOriginSystem(value *string)()
|
||||
SetStatus(value *string)()
|
||||
}
|
||||
@ -0,0 +1,40 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time"
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageAssignmentable
|
||||
type AccessPackageAssignmentable interface {
|
||||
Entityable
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetAccessPackage()(AccessPackageable)
|
||||
GetAccessPackageAssignmentPolicy()(AccessPackageAssignmentPolicyable)
|
||||
GetAccessPackageAssignmentRequests()([]AccessPackageAssignmentRequestable)
|
||||
GetAccessPackageAssignmentResourceRoles()([]AccessPackageAssignmentResourceRoleable)
|
||||
GetAccessPackageId()(*string)
|
||||
GetAssignmentPolicyId()(*string)
|
||||
GetAssignmentState()(*string)
|
||||
GetAssignmentStatus()(*string)
|
||||
GetCatalogId()(*string)
|
||||
GetExpiredDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)
|
||||
GetIsExtended()(*bool)
|
||||
GetSchedule()(RequestScheduleable)
|
||||
GetTarget()(AccessPackageSubjectable)
|
||||
GetTargetId()(*string)
|
||||
SetAccessPackage(value AccessPackageable)()
|
||||
SetAccessPackageAssignmentPolicy(value AccessPackageAssignmentPolicyable)()
|
||||
SetAccessPackageAssignmentRequests(value []AccessPackageAssignmentRequestable)()
|
||||
SetAccessPackageAssignmentResourceRoles(value []AccessPackageAssignmentResourceRoleable)()
|
||||
SetAccessPackageId(value *string)()
|
||||
SetAssignmentPolicyId(value *string)()
|
||||
SetAssignmentState(value *string)()
|
||||
SetAssignmentStatus(value *string)()
|
||||
SetCatalogId(value *string)()
|
||||
SetExpiredDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)()
|
||||
SetIsExtended(value *bool)()
|
||||
SetSchedule(value RequestScheduleable)()
|
||||
SetTarget(value AccessPackageSubjectable)()
|
||||
SetTargetId(value *string)()
|
||||
}
|
||||
@ -0,0 +1,439 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time"
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageCatalog
|
||||
type AccessPackageCatalog struct {
|
||||
Entity
|
||||
// The roles in each resource in a catalog. Read-only.
|
||||
accessPackageResourceRoles []AccessPackageResourceRoleable
|
||||
// The accessPackageResources property
|
||||
accessPackageResources []AccessPackageResourceable
|
||||
// The accessPackageResourceScopes property
|
||||
accessPackageResourceScopes []AccessPackageResourceScopeable
|
||||
// The access packages in this catalog. Read-only. Nullable. Supports $expand.
|
||||
accessPackages []AccessPackageable
|
||||
// Has the value Published if the access packages are available for management.
|
||||
catalogStatus *string
|
||||
// One of UserManaged or ServiceDefault.
|
||||
catalogType *string
|
||||
// UPN of the user who created this resource. Read-only.
|
||||
createdBy *string
|
||||
// The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.
|
||||
createdDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time
|
||||
// The customAccessPackageWorkflowExtensions property
|
||||
customAccessPackageWorkflowExtensions []CustomAccessPackageWorkflowExtensionable
|
||||
// The description of the access package catalog.
|
||||
description *string
|
||||
// The display name of the access package catalog. Supports $filter (eq, contains).
|
||||
displayName *string
|
||||
// Whether the access packages in this catalog can be requested by users outside of the tenant.
|
||||
isExternallyVisible *bool
|
||||
// The UPN of the user who last modified this resource. Read-only.
|
||||
modifiedBy *string
|
||||
// The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.
|
||||
modifiedDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time
|
||||
}
|
||||
// NewAccessPackageCatalog instantiates a new accessPackageCatalog and sets the default values.
|
||||
func NewAccessPackageCatalog()(*AccessPackageCatalog) {
|
||||
m := &AccessPackageCatalog{
|
||||
Entity: *NewEntity(),
|
||||
}
|
||||
return m
|
||||
}
|
||||
// CreateAccessPackageCatalogFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateAccessPackageCatalogFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewAccessPackageCatalog(), nil
|
||||
}
|
||||
// GetAccessPackageResourceRoles gets the accessPackageResourceRoles property value. The roles in each resource in a catalog. Read-only.
|
||||
func (m *AccessPackageCatalog) GetAccessPackageResourceRoles()([]AccessPackageResourceRoleable) {
|
||||
return m.accessPackageResourceRoles
|
||||
}
|
||||
// GetAccessPackageResources gets the accessPackageResources property value. The accessPackageResources property
|
||||
func (m *AccessPackageCatalog) GetAccessPackageResources()([]AccessPackageResourceable) {
|
||||
return m.accessPackageResources
|
||||
}
|
||||
// GetAccessPackageResourceScopes gets the accessPackageResourceScopes property value. The accessPackageResourceScopes property
|
||||
func (m *AccessPackageCatalog) GetAccessPackageResourceScopes()([]AccessPackageResourceScopeable) {
|
||||
return m.accessPackageResourceScopes
|
||||
}
|
||||
// GetAccessPackages gets the accessPackages property value. The access packages in this catalog. Read-only. Nullable. Supports $expand.
|
||||
func (m *AccessPackageCatalog) GetAccessPackages()([]AccessPackageable) {
|
||||
return m.accessPackages
|
||||
}
|
||||
// GetCatalogStatus gets the catalogStatus property value. Has the value Published if the access packages are available for management.
|
||||
func (m *AccessPackageCatalog) GetCatalogStatus()(*string) {
|
||||
return m.catalogStatus
|
||||
}
|
||||
// GetCatalogType gets the catalogType property value. One of UserManaged or ServiceDefault.
|
||||
func (m *AccessPackageCatalog) GetCatalogType()(*string) {
|
||||
return m.catalogType
|
||||
}
|
||||
// GetCreatedBy gets the createdBy property value. UPN of the user who created this resource. Read-only.
|
||||
func (m *AccessPackageCatalog) GetCreatedBy()(*string) {
|
||||
return m.createdBy
|
||||
}
|
||||
// GetCreatedDateTime gets the createdDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.
|
||||
func (m *AccessPackageCatalog) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) {
|
||||
return m.createdDateTime
|
||||
}
|
||||
// GetCustomAccessPackageWorkflowExtensions gets the customAccessPackageWorkflowExtensions property value. The customAccessPackageWorkflowExtensions property
|
||||
func (m *AccessPackageCatalog) GetCustomAccessPackageWorkflowExtensions()([]CustomAccessPackageWorkflowExtensionable) {
|
||||
return m.customAccessPackageWorkflowExtensions
|
||||
}
|
||||
// GetDescription gets the description property value. The description of the access package catalog.
|
||||
func (m *AccessPackageCatalog) GetDescription()(*string) {
|
||||
return m.description
|
||||
}
|
||||
// GetDisplayName gets the displayName property value. The display name of the access package catalog. Supports $filter (eq, contains).
|
||||
func (m *AccessPackageCatalog) GetDisplayName()(*string) {
|
||||
return m.displayName
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *AccessPackageCatalog) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := m.Entity.GetFieldDeserializers()
|
||||
res["accessPackageResourceRoles"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfObjectValues(CreateAccessPackageResourceRoleFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]AccessPackageResourceRoleable, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = v.(AccessPackageResourceRoleable)
|
||||
}
|
||||
m.SetAccessPackageResourceRoles(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["accessPackageResources"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfObjectValues(CreateAccessPackageResourceFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]AccessPackageResourceable, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = v.(AccessPackageResourceable)
|
||||
}
|
||||
m.SetAccessPackageResources(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["accessPackageResourceScopes"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfObjectValues(CreateAccessPackageResourceScopeFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]AccessPackageResourceScopeable, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = v.(AccessPackageResourceScopeable)
|
||||
}
|
||||
m.SetAccessPackageResourceScopes(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["accessPackages"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfObjectValues(CreateAccessPackageFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]AccessPackageable, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = v.(AccessPackageable)
|
||||
}
|
||||
m.SetAccessPackages(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["catalogStatus"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetCatalogStatus(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["catalogType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetCatalogType(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["createdBy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetCreatedBy(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["createdDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetTimeValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetCreatedDateTime(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["customAccessPackageWorkflowExtensions"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfObjectValues(CreateCustomAccessPackageWorkflowExtensionFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]CustomAccessPackageWorkflowExtensionable, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = v.(CustomAccessPackageWorkflowExtensionable)
|
||||
}
|
||||
m.SetCustomAccessPackageWorkflowExtensions(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["description"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetDescription(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["displayName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetDisplayName(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["isExternallyVisible"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetBoolValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetIsExternallyVisible(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["modifiedBy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetModifiedBy(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["modifiedDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetTimeValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetModifiedDateTime(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetIsExternallyVisible gets the isExternallyVisible property value. Whether the access packages in this catalog can be requested by users outside of the tenant.
|
||||
func (m *AccessPackageCatalog) GetIsExternallyVisible()(*bool) {
|
||||
return m.isExternallyVisible
|
||||
}
|
||||
// GetModifiedBy gets the modifiedBy property value. The UPN of the user who last modified this resource. Read-only.
|
||||
func (m *AccessPackageCatalog) GetModifiedBy()(*string) {
|
||||
return m.modifiedBy
|
||||
}
|
||||
// GetModifiedDateTime gets the modifiedDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.
|
||||
func (m *AccessPackageCatalog) GetModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) {
|
||||
return m.modifiedDateTime
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *AccessPackageCatalog) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
err := m.Entity.Serialize(writer)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if m.GetAccessPackageResourceRoles() != nil {
|
||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetAccessPackageResourceRoles()))
|
||||
for i, v := range m.GetAccessPackageResourceRoles() {
|
||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
||||
}
|
||||
err = writer.WriteCollectionOfObjectValues("accessPackageResourceRoles", cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if m.GetAccessPackageResources() != nil {
|
||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetAccessPackageResources()))
|
||||
for i, v := range m.GetAccessPackageResources() {
|
||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
||||
}
|
||||
err = writer.WriteCollectionOfObjectValues("accessPackageResources", cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if m.GetAccessPackageResourceScopes() != nil {
|
||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetAccessPackageResourceScopes()))
|
||||
for i, v := range m.GetAccessPackageResourceScopes() {
|
||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
||||
}
|
||||
err = writer.WriteCollectionOfObjectValues("accessPackageResourceScopes", cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if m.GetAccessPackages() != nil {
|
||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetAccessPackages()))
|
||||
for i, v := range m.GetAccessPackages() {
|
||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
||||
}
|
||||
err = writer.WriteCollectionOfObjectValues("accessPackages", cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("catalogStatus", m.GetCatalogStatus())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("catalogType", m.GetCatalogType())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("createdBy", m.GetCreatedBy())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteTimeValue("createdDateTime", m.GetCreatedDateTime())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if m.GetCustomAccessPackageWorkflowExtensions() != nil {
|
||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetCustomAccessPackageWorkflowExtensions()))
|
||||
for i, v := range m.GetCustomAccessPackageWorkflowExtensions() {
|
||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
||||
}
|
||||
err = writer.WriteCollectionOfObjectValues("customAccessPackageWorkflowExtensions", cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("description", m.GetDescription())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("displayName", m.GetDisplayName())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteBoolValue("isExternallyVisible", m.GetIsExternallyVisible())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("modifiedBy", m.GetModifiedBy())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteTimeValue("modifiedDateTime", m.GetModifiedDateTime())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// SetAccessPackageResourceRoles sets the accessPackageResourceRoles property value. The roles in each resource in a catalog. Read-only.
|
||||
func (m *AccessPackageCatalog) SetAccessPackageResourceRoles(value []AccessPackageResourceRoleable)() {
|
||||
m.accessPackageResourceRoles = value
|
||||
}
|
||||
// SetAccessPackageResources sets the accessPackageResources property value. The accessPackageResources property
|
||||
func (m *AccessPackageCatalog) SetAccessPackageResources(value []AccessPackageResourceable)() {
|
||||
m.accessPackageResources = value
|
||||
}
|
||||
// SetAccessPackageResourceScopes sets the accessPackageResourceScopes property value. The accessPackageResourceScopes property
|
||||
func (m *AccessPackageCatalog) SetAccessPackageResourceScopes(value []AccessPackageResourceScopeable)() {
|
||||
m.accessPackageResourceScopes = value
|
||||
}
|
||||
// SetAccessPackages sets the accessPackages property value. The access packages in this catalog. Read-only. Nullable. Supports $expand.
|
||||
func (m *AccessPackageCatalog) SetAccessPackages(value []AccessPackageable)() {
|
||||
m.accessPackages = value
|
||||
}
|
||||
// SetCatalogStatus sets the catalogStatus property value. Has the value Published if the access packages are available for management.
|
||||
func (m *AccessPackageCatalog) SetCatalogStatus(value *string)() {
|
||||
m.catalogStatus = value
|
||||
}
|
||||
// SetCatalogType sets the catalogType property value. One of UserManaged or ServiceDefault.
|
||||
func (m *AccessPackageCatalog) SetCatalogType(value *string)() {
|
||||
m.catalogType = value
|
||||
}
|
||||
// SetCreatedBy sets the createdBy property value. UPN of the user who created this resource. Read-only.
|
||||
func (m *AccessPackageCatalog) SetCreatedBy(value *string)() {
|
||||
m.createdBy = value
|
||||
}
|
||||
// SetCreatedDateTime sets the createdDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.
|
||||
func (m *AccessPackageCatalog) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() {
|
||||
m.createdDateTime = value
|
||||
}
|
||||
// SetCustomAccessPackageWorkflowExtensions sets the customAccessPackageWorkflowExtensions property value. The customAccessPackageWorkflowExtensions property
|
||||
func (m *AccessPackageCatalog) SetCustomAccessPackageWorkflowExtensions(value []CustomAccessPackageWorkflowExtensionable)() {
|
||||
m.customAccessPackageWorkflowExtensions = value
|
||||
}
|
||||
// SetDescription sets the description property value. The description of the access package catalog.
|
||||
func (m *AccessPackageCatalog) SetDescription(value *string)() {
|
||||
m.description = value
|
||||
}
|
||||
// SetDisplayName sets the displayName property value. The display name of the access package catalog. Supports $filter (eq, contains).
|
||||
func (m *AccessPackageCatalog) SetDisplayName(value *string)() {
|
||||
m.displayName = value
|
||||
}
|
||||
// SetIsExternallyVisible sets the isExternallyVisible property value. Whether the access packages in this catalog can be requested by users outside of the tenant.
|
||||
func (m *AccessPackageCatalog) SetIsExternallyVisible(value *bool)() {
|
||||
m.isExternallyVisible = value
|
||||
}
|
||||
// SetModifiedBy sets the modifiedBy property value. The UPN of the user who last modified this resource. Read-only.
|
||||
func (m *AccessPackageCatalog) SetModifiedBy(value *string)() {
|
||||
m.modifiedBy = value
|
||||
}
|
||||
// SetModifiedDateTime sets the modifiedDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.
|
||||
func (m *AccessPackageCatalog) SetModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() {
|
||||
m.modifiedDateTime = value
|
||||
}
|
||||
@ -0,0 +1,68 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageCatalogCollectionResponse
|
||||
type AccessPackageCatalogCollectionResponse struct {
|
||||
BaseCollectionPaginationCountResponse
|
||||
// The value property
|
||||
value []AccessPackageCatalogable
|
||||
}
|
||||
// NewAccessPackageCatalogCollectionResponse instantiates a new AccessPackageCatalogCollectionResponse and sets the default values.
|
||||
func NewAccessPackageCatalogCollectionResponse()(*AccessPackageCatalogCollectionResponse) {
|
||||
m := &AccessPackageCatalogCollectionResponse{
|
||||
BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(),
|
||||
}
|
||||
return m
|
||||
}
|
||||
// CreateAccessPackageCatalogCollectionResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateAccessPackageCatalogCollectionResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewAccessPackageCatalogCollectionResponse(), nil
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *AccessPackageCatalogCollectionResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers()
|
||||
res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfObjectValues(CreateAccessPackageCatalogFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]AccessPackageCatalogable, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = v.(AccessPackageCatalogable)
|
||||
}
|
||||
m.SetValue(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetValue gets the value property value. The value property
|
||||
func (m *AccessPackageCatalogCollectionResponse) GetValue()([]AccessPackageCatalogable) {
|
||||
return m.value
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *AccessPackageCatalogCollectionResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
err := m.BaseCollectionPaginationCountResponse.Serialize(writer)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if m.GetValue() != nil {
|
||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue()))
|
||||
for i, v := range m.GetValue() {
|
||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
||||
}
|
||||
err = writer.WriteCollectionOfObjectValues("value", cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// SetValue sets the value property value. The value property
|
||||
func (m *AccessPackageCatalogCollectionResponse) SetValue(value []AccessPackageCatalogable)() {
|
||||
m.value = value
|
||||
}
|
||||
@ -0,0 +1,13 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageCatalogCollectionResponseable
|
||||
type AccessPackageCatalogCollectionResponseable interface {
|
||||
BaseCollectionPaginationCountResponseable
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetValue()([]AccessPackageCatalogable)
|
||||
SetValue(value []AccessPackageCatalogable)()
|
||||
}
|
||||
@ -0,0 +1,40 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time"
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageCatalogable
|
||||
type AccessPackageCatalogable interface {
|
||||
Entityable
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetAccessPackageResourceRoles()([]AccessPackageResourceRoleable)
|
||||
GetAccessPackageResources()([]AccessPackageResourceable)
|
||||
GetAccessPackageResourceScopes()([]AccessPackageResourceScopeable)
|
||||
GetAccessPackages()([]AccessPackageable)
|
||||
GetCatalogStatus()(*string)
|
||||
GetCatalogType()(*string)
|
||||
GetCreatedBy()(*string)
|
||||
GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)
|
||||
GetCustomAccessPackageWorkflowExtensions()([]CustomAccessPackageWorkflowExtensionable)
|
||||
GetDescription()(*string)
|
||||
GetDisplayName()(*string)
|
||||
GetIsExternallyVisible()(*bool)
|
||||
GetModifiedBy()(*string)
|
||||
GetModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)
|
||||
SetAccessPackageResourceRoles(value []AccessPackageResourceRoleable)()
|
||||
SetAccessPackageResources(value []AccessPackageResourceable)()
|
||||
SetAccessPackageResourceScopes(value []AccessPackageResourceScopeable)()
|
||||
SetAccessPackages(value []AccessPackageable)()
|
||||
SetCatalogStatus(value *string)()
|
||||
SetCatalogType(value *string)()
|
||||
SetCreatedBy(value *string)()
|
||||
SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)()
|
||||
SetCustomAccessPackageWorkflowExtensions(value []CustomAccessPackageWorkflowExtensionable)()
|
||||
SetDescription(value *string)()
|
||||
SetDisplayName(value *string)()
|
||||
SetIsExternallyVisible(value *bool)()
|
||||
SetModifiedBy(value *string)()
|
||||
SetModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)()
|
||||
}
|
||||
@ -0,0 +1,68 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageCollectionResponse
|
||||
type AccessPackageCollectionResponse struct {
|
||||
BaseCollectionPaginationCountResponse
|
||||
// The value property
|
||||
value []AccessPackageable
|
||||
}
|
||||
// NewAccessPackageCollectionResponse instantiates a new AccessPackageCollectionResponse and sets the default values.
|
||||
func NewAccessPackageCollectionResponse()(*AccessPackageCollectionResponse) {
|
||||
m := &AccessPackageCollectionResponse{
|
||||
BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(),
|
||||
}
|
||||
return m
|
||||
}
|
||||
// CreateAccessPackageCollectionResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateAccessPackageCollectionResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewAccessPackageCollectionResponse(), nil
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *AccessPackageCollectionResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers()
|
||||
res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfObjectValues(CreateAccessPackageFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]AccessPackageable, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = v.(AccessPackageable)
|
||||
}
|
||||
m.SetValue(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetValue gets the value property value. The value property
|
||||
func (m *AccessPackageCollectionResponse) GetValue()([]AccessPackageable) {
|
||||
return m.value
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *AccessPackageCollectionResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
err := m.BaseCollectionPaginationCountResponse.Serialize(writer)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if m.GetValue() != nil {
|
||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue()))
|
||||
for i, v := range m.GetValue() {
|
||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
||||
}
|
||||
err = writer.WriteCollectionOfObjectValues("value", cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// SetValue sets the value property value. The value property
|
||||
func (m *AccessPackageCollectionResponse) SetValue(value []AccessPackageable)() {
|
||||
m.value = value
|
||||
}
|
||||
@ -0,0 +1,13 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageCollectionResponseable
|
||||
type AccessPackageCollectionResponseable interface {
|
||||
BaseCollectionPaginationCountResponseable
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetValue()([]AccessPackageable)
|
||||
SetValue(value []AccessPackageable)()
|
||||
}
|
||||
@ -0,0 +1,37 @@
|
||||
package models
|
||||
import (
|
||||
"errors"
|
||||
)
|
||||
// Provides operations to manage the sites property of the microsoft.graph.browserSiteList entity.
|
||||
type AccessPackageCustomExtensionHandlerStatus int
|
||||
|
||||
const (
|
||||
REQUESTSENT_ACCESSPACKAGECUSTOMEXTENSIONHANDLERSTATUS AccessPackageCustomExtensionHandlerStatus = iota
|
||||
REQUESTRECEIVED_ACCESSPACKAGECUSTOMEXTENSIONHANDLERSTATUS
|
||||
UNKNOWNFUTUREVALUE_ACCESSPACKAGECUSTOMEXTENSIONHANDLERSTATUS
|
||||
)
|
||||
|
||||
func (i AccessPackageCustomExtensionHandlerStatus) String() string {
|
||||
return []string{"requestSent", "requestReceived", "unknownFutureValue"}[i]
|
||||
}
|
||||
func ParseAccessPackageCustomExtensionHandlerStatus(v string) (interface{}, error) {
|
||||
result := REQUESTSENT_ACCESSPACKAGECUSTOMEXTENSIONHANDLERSTATUS
|
||||
switch v {
|
||||
case "requestSent":
|
||||
result = REQUESTSENT_ACCESSPACKAGECUSTOMEXTENSIONHANDLERSTATUS
|
||||
case "requestReceived":
|
||||
result = REQUESTRECEIVED_ACCESSPACKAGECUSTOMEXTENSIONHANDLERSTATUS
|
||||
case "unknownFutureValue":
|
||||
result = UNKNOWNFUTUREVALUE_ACCESSPACKAGECUSTOMEXTENSIONHANDLERSTATUS
|
||||
default:
|
||||
return 0, errors.New("Unknown AccessPackageCustomExtensionHandlerStatus value: " + v)
|
||||
}
|
||||
return &result, nil
|
||||
}
|
||||
func SerializeAccessPackageCustomExtensionHandlerStatus(values []AccessPackageCustomExtensionHandlerStatus) []string {
|
||||
result := make([]string, len(values))
|
||||
for i, v := range values {
|
||||
result[i] = v.String()
|
||||
}
|
||||
return result
|
||||
}
|
||||
@ -0,0 +1,49 @@
|
||||
package models
|
||||
import (
|
||||
"errors"
|
||||
)
|
||||
// Provides operations to manage the sites property of the microsoft.graph.browserSiteList entity.
|
||||
type AccessPackageCustomExtensionStage int
|
||||
|
||||
const (
|
||||
ASSIGNMENTREQUESTCREATED_ACCESSPACKAGECUSTOMEXTENSIONSTAGE AccessPackageCustomExtensionStage = iota
|
||||
ASSIGNMENTREQUESTAPPROVED_ACCESSPACKAGECUSTOMEXTENSIONSTAGE
|
||||
ASSIGNMENTREQUESTGRANTED_ACCESSPACKAGECUSTOMEXTENSIONSTAGE
|
||||
ASSIGNMENTREQUESTREMOVED_ACCESSPACKAGECUSTOMEXTENSIONSTAGE
|
||||
ASSIGNMENTFOURTEENDAYSBEFOREEXPIRATION_ACCESSPACKAGECUSTOMEXTENSIONSTAGE
|
||||
ASSIGNMENTONEDAYBEFOREEXPIRATION_ACCESSPACKAGECUSTOMEXTENSIONSTAGE
|
||||
UNKNOWNFUTUREVALUE_ACCESSPACKAGECUSTOMEXTENSIONSTAGE
|
||||
)
|
||||
|
||||
func (i AccessPackageCustomExtensionStage) String() string {
|
||||
return []string{"assignmentRequestCreated", "assignmentRequestApproved", "assignmentRequestGranted", "assignmentRequestRemoved", "assignmentFourteenDaysBeforeExpiration", "assignmentOneDayBeforeExpiration", "unknownFutureValue"}[i]
|
||||
}
|
||||
func ParseAccessPackageCustomExtensionStage(v string) (interface{}, error) {
|
||||
result := ASSIGNMENTREQUESTCREATED_ACCESSPACKAGECUSTOMEXTENSIONSTAGE
|
||||
switch v {
|
||||
case "assignmentRequestCreated":
|
||||
result = ASSIGNMENTREQUESTCREATED_ACCESSPACKAGECUSTOMEXTENSIONSTAGE
|
||||
case "assignmentRequestApproved":
|
||||
result = ASSIGNMENTREQUESTAPPROVED_ACCESSPACKAGECUSTOMEXTENSIONSTAGE
|
||||
case "assignmentRequestGranted":
|
||||
result = ASSIGNMENTREQUESTGRANTED_ACCESSPACKAGECUSTOMEXTENSIONSTAGE
|
||||
case "assignmentRequestRemoved":
|
||||
result = ASSIGNMENTREQUESTREMOVED_ACCESSPACKAGECUSTOMEXTENSIONSTAGE
|
||||
case "assignmentFourteenDaysBeforeExpiration":
|
||||
result = ASSIGNMENTFOURTEENDAYSBEFOREEXPIRATION_ACCESSPACKAGECUSTOMEXTENSIONSTAGE
|
||||
case "assignmentOneDayBeforeExpiration":
|
||||
result = ASSIGNMENTONEDAYBEFOREEXPIRATION_ACCESSPACKAGECUSTOMEXTENSIONSTAGE
|
||||
case "unknownFutureValue":
|
||||
result = UNKNOWNFUTUREVALUE_ACCESSPACKAGECUSTOMEXTENSIONSTAGE
|
||||
default:
|
||||
return 0, errors.New("Unknown AccessPackageCustomExtensionStage value: " + v)
|
||||
}
|
||||
return &result, nil
|
||||
}
|
||||
func SerializeAccessPackageCustomExtensionStage(values []AccessPackageCustomExtensionStage) []string {
|
||||
result := make([]string, len(values))
|
||||
for i, v := range values {
|
||||
result[i] = v.String()
|
||||
}
|
||||
return result
|
||||
}
|
||||
@ -0,0 +1,131 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageLocalizedContent
|
||||
type AccessPackageLocalizedContent struct {
|
||||
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
additionalData map[string]interface{}
|
||||
// The fallback string, which is used when a requested localization is not available. Required.
|
||||
defaultText *string
|
||||
// Content represented in a format for a specific locale.
|
||||
localizedTexts []AccessPackageLocalizedTextable
|
||||
// The OdataType property
|
||||
odataType *string
|
||||
}
|
||||
// NewAccessPackageLocalizedContent instantiates a new accessPackageLocalizedContent and sets the default values.
|
||||
func NewAccessPackageLocalizedContent()(*AccessPackageLocalizedContent) {
|
||||
m := &AccessPackageLocalizedContent{
|
||||
}
|
||||
m.SetAdditionalData(make(map[string]interface{}));
|
||||
return m
|
||||
}
|
||||
// CreateAccessPackageLocalizedContentFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateAccessPackageLocalizedContentFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewAccessPackageLocalizedContent(), nil
|
||||
}
|
||||
// GetAdditionalData gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
func (m *AccessPackageLocalizedContent) GetAdditionalData()(map[string]interface{}) {
|
||||
return m.additionalData
|
||||
}
|
||||
// GetDefaultText gets the defaultText property value. The fallback string, which is used when a requested localization is not available. Required.
|
||||
func (m *AccessPackageLocalizedContent) GetDefaultText()(*string) {
|
||||
return m.defaultText
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *AccessPackageLocalizedContent) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
|
||||
res["defaultText"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetDefaultText(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["localizedTexts"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfObjectValues(CreateAccessPackageLocalizedTextFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]AccessPackageLocalizedTextable, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = v.(AccessPackageLocalizedTextable)
|
||||
}
|
||||
m.SetLocalizedTexts(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetOdataType(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetLocalizedTexts gets the localizedTexts property value. Content represented in a format for a specific locale.
|
||||
func (m *AccessPackageLocalizedContent) GetLocalizedTexts()([]AccessPackageLocalizedTextable) {
|
||||
return m.localizedTexts
|
||||
}
|
||||
// GetOdataType gets the @odata.type property value. The OdataType property
|
||||
func (m *AccessPackageLocalizedContent) GetOdataType()(*string) {
|
||||
return m.odataType
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *AccessPackageLocalizedContent) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
{
|
||||
err := writer.WriteStringValue("defaultText", m.GetDefaultText())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if m.GetLocalizedTexts() != nil {
|
||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetLocalizedTexts()))
|
||||
for i, v := range m.GetLocalizedTexts() {
|
||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
||||
}
|
||||
err := writer.WriteCollectionOfObjectValues("localizedTexts", cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteStringValue("@odata.type", m.GetOdataType())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteAdditionalData(m.GetAdditionalData())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
func (m *AccessPackageLocalizedContent) SetAdditionalData(value map[string]interface{})() {
|
||||
m.additionalData = value
|
||||
}
|
||||
// SetDefaultText sets the defaultText property value. The fallback string, which is used when a requested localization is not available. Required.
|
||||
func (m *AccessPackageLocalizedContent) SetDefaultText(value *string)() {
|
||||
m.defaultText = value
|
||||
}
|
||||
// SetLocalizedTexts sets the localizedTexts property value. Content represented in a format for a specific locale.
|
||||
func (m *AccessPackageLocalizedContent) SetLocalizedTexts(value []AccessPackageLocalizedTextable)() {
|
||||
m.localizedTexts = value
|
||||
}
|
||||
// SetOdataType sets the @odata.type property value. The OdataType property
|
||||
func (m *AccessPackageLocalizedContent) SetOdataType(value *string)() {
|
||||
m.odataType = value
|
||||
}
|
||||
@ -0,0 +1,17 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageLocalizedContentable
|
||||
type AccessPackageLocalizedContentable interface {
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetDefaultText()(*string)
|
||||
GetLocalizedTexts()([]AccessPackageLocalizedTextable)
|
||||
GetOdataType()(*string)
|
||||
SetDefaultText(value *string)()
|
||||
SetLocalizedTexts(value []AccessPackageLocalizedTextable)()
|
||||
SetOdataType(value *string)()
|
||||
}
|
||||
@ -0,0 +1,123 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageLocalizedText
|
||||
type AccessPackageLocalizedText struct {
|
||||
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
additionalData map[string]interface{}
|
||||
// The ISO code for the intended language. Required.
|
||||
languageCode *string
|
||||
// The OdataType property
|
||||
odataType *string
|
||||
// The text in the specific language. Required.
|
||||
text *string
|
||||
}
|
||||
// NewAccessPackageLocalizedText instantiates a new accessPackageLocalizedText and sets the default values.
|
||||
func NewAccessPackageLocalizedText()(*AccessPackageLocalizedText) {
|
||||
m := &AccessPackageLocalizedText{
|
||||
}
|
||||
m.SetAdditionalData(make(map[string]interface{}));
|
||||
return m
|
||||
}
|
||||
// CreateAccessPackageLocalizedTextFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateAccessPackageLocalizedTextFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewAccessPackageLocalizedText(), nil
|
||||
}
|
||||
// GetAdditionalData gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
func (m *AccessPackageLocalizedText) GetAdditionalData()(map[string]interface{}) {
|
||||
return m.additionalData
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *AccessPackageLocalizedText) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
|
||||
res["languageCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetLanguageCode(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetOdataType(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["text"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetText(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetLanguageCode gets the languageCode property value. The ISO code for the intended language. Required.
|
||||
func (m *AccessPackageLocalizedText) GetLanguageCode()(*string) {
|
||||
return m.languageCode
|
||||
}
|
||||
// GetOdataType gets the @odata.type property value. The OdataType property
|
||||
func (m *AccessPackageLocalizedText) GetOdataType()(*string) {
|
||||
return m.odataType
|
||||
}
|
||||
// GetText gets the text property value. The text in the specific language. Required.
|
||||
func (m *AccessPackageLocalizedText) GetText()(*string) {
|
||||
return m.text
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *AccessPackageLocalizedText) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
{
|
||||
err := writer.WriteStringValue("languageCode", m.GetLanguageCode())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteStringValue("@odata.type", m.GetOdataType())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteStringValue("text", m.GetText())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteAdditionalData(m.GetAdditionalData())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
func (m *AccessPackageLocalizedText) SetAdditionalData(value map[string]interface{})() {
|
||||
m.additionalData = value
|
||||
}
|
||||
// SetLanguageCode sets the languageCode property value. The ISO code for the intended language. Required.
|
||||
func (m *AccessPackageLocalizedText) SetLanguageCode(value *string)() {
|
||||
m.languageCode = value
|
||||
}
|
||||
// SetOdataType sets the @odata.type property value. The OdataType property
|
||||
func (m *AccessPackageLocalizedText) SetOdataType(value *string)() {
|
||||
m.odataType = value
|
||||
}
|
||||
// SetText sets the text property value. The text in the specific language. Required.
|
||||
func (m *AccessPackageLocalizedText) SetText(value *string)() {
|
||||
m.text = value
|
||||
}
|
||||
@ -0,0 +1,68 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageLocalizedTextCollectionResponse
|
||||
type AccessPackageLocalizedTextCollectionResponse struct {
|
||||
BaseCollectionPaginationCountResponse
|
||||
// The value property
|
||||
value []AccessPackageLocalizedTextable
|
||||
}
|
||||
// NewAccessPackageLocalizedTextCollectionResponse instantiates a new AccessPackageLocalizedTextCollectionResponse and sets the default values.
|
||||
func NewAccessPackageLocalizedTextCollectionResponse()(*AccessPackageLocalizedTextCollectionResponse) {
|
||||
m := &AccessPackageLocalizedTextCollectionResponse{
|
||||
BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(),
|
||||
}
|
||||
return m
|
||||
}
|
||||
// CreateAccessPackageLocalizedTextCollectionResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateAccessPackageLocalizedTextCollectionResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewAccessPackageLocalizedTextCollectionResponse(), nil
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *AccessPackageLocalizedTextCollectionResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers()
|
||||
res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfObjectValues(CreateAccessPackageLocalizedTextFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]AccessPackageLocalizedTextable, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = v.(AccessPackageLocalizedTextable)
|
||||
}
|
||||
m.SetValue(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetValue gets the value property value. The value property
|
||||
func (m *AccessPackageLocalizedTextCollectionResponse) GetValue()([]AccessPackageLocalizedTextable) {
|
||||
return m.value
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *AccessPackageLocalizedTextCollectionResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
err := m.BaseCollectionPaginationCountResponse.Serialize(writer)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if m.GetValue() != nil {
|
||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue()))
|
||||
for i, v := range m.GetValue() {
|
||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
||||
}
|
||||
err = writer.WriteCollectionOfObjectValues("value", cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// SetValue sets the value property value. The value property
|
||||
func (m *AccessPackageLocalizedTextCollectionResponse) SetValue(value []AccessPackageLocalizedTextable)() {
|
||||
m.value = value
|
||||
}
|
||||
@ -0,0 +1,13 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageLocalizedTextCollectionResponseable
|
||||
type AccessPackageLocalizedTextCollectionResponseable interface {
|
||||
BaseCollectionPaginationCountResponseable
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetValue()([]AccessPackageLocalizedTextable)
|
||||
SetValue(value []AccessPackageLocalizedTextable)()
|
||||
}
|
||||
@ -0,0 +1,17 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageLocalizedTextable
|
||||
type AccessPackageLocalizedTextable interface {
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetLanguageCode()(*string)
|
||||
GetOdataType()(*string)
|
||||
GetText()(*string)
|
||||
SetLanguageCode(value *string)()
|
||||
SetOdataType(value *string)()
|
||||
SetText(value *string)()
|
||||
}
|
||||
@ -0,0 +1,96 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageMultipleChoiceQuestion
|
||||
type AccessPackageMultipleChoiceQuestion struct {
|
||||
AccessPackageQuestion
|
||||
// Indicates whether requestor can select multiple choices as their answer.
|
||||
allowsMultipleSelection *bool
|
||||
// List of answer choices.
|
||||
choices []AccessPackageAnswerChoiceable
|
||||
}
|
||||
// NewAccessPackageMultipleChoiceQuestion instantiates a new AccessPackageMultipleChoiceQuestion and sets the default values.
|
||||
func NewAccessPackageMultipleChoiceQuestion()(*AccessPackageMultipleChoiceQuestion) {
|
||||
m := &AccessPackageMultipleChoiceQuestion{
|
||||
AccessPackageQuestion: *NewAccessPackageQuestion(),
|
||||
}
|
||||
odataTypeValue := "#microsoft.graph.accessPackageMultipleChoiceQuestion";
|
||||
m.SetOdataType(&odataTypeValue);
|
||||
return m
|
||||
}
|
||||
// CreateAccessPackageMultipleChoiceQuestionFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateAccessPackageMultipleChoiceQuestionFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewAccessPackageMultipleChoiceQuestion(), nil
|
||||
}
|
||||
// GetAllowsMultipleSelection gets the allowsMultipleSelection property value. Indicates whether requestor can select multiple choices as their answer.
|
||||
func (m *AccessPackageMultipleChoiceQuestion) GetAllowsMultipleSelection()(*bool) {
|
||||
return m.allowsMultipleSelection
|
||||
}
|
||||
// GetChoices gets the choices property value. List of answer choices.
|
||||
func (m *AccessPackageMultipleChoiceQuestion) GetChoices()([]AccessPackageAnswerChoiceable) {
|
||||
return m.choices
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *AccessPackageMultipleChoiceQuestion) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := m.AccessPackageQuestion.GetFieldDeserializers()
|
||||
res["allowsMultipleSelection"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetBoolValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetAllowsMultipleSelection(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["choices"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfObjectValues(CreateAccessPackageAnswerChoiceFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]AccessPackageAnswerChoiceable, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = v.(AccessPackageAnswerChoiceable)
|
||||
}
|
||||
m.SetChoices(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *AccessPackageMultipleChoiceQuestion) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
err := m.AccessPackageQuestion.Serialize(writer)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
{
|
||||
err = writer.WriteBoolValue("allowsMultipleSelection", m.GetAllowsMultipleSelection())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if m.GetChoices() != nil {
|
||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetChoices()))
|
||||
for i, v := range m.GetChoices() {
|
||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
||||
}
|
||||
err = writer.WriteCollectionOfObjectValues("choices", cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// SetAllowsMultipleSelection sets the allowsMultipleSelection property value. Indicates whether requestor can select multiple choices as their answer.
|
||||
func (m *AccessPackageMultipleChoiceQuestion) SetAllowsMultipleSelection(value *bool)() {
|
||||
m.allowsMultipleSelection = value
|
||||
}
|
||||
// SetChoices sets the choices property value. List of answer choices.
|
||||
func (m *AccessPackageMultipleChoiceQuestion) SetChoices(value []AccessPackageAnswerChoiceable)() {
|
||||
m.choices = value
|
||||
}
|
||||
@ -0,0 +1,15 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageMultipleChoiceQuestionable
|
||||
type AccessPackageMultipleChoiceQuestionable interface {
|
||||
AccessPackageQuestionable
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetAllowsMultipleSelection()(*bool)
|
||||
GetChoices()([]AccessPackageAnswerChoiceable)
|
||||
SetAllowsMultipleSelection(value *bool)()
|
||||
SetChoices(value []AccessPackageAnswerChoiceable)()
|
||||
}
|
||||
@ -0,0 +1,221 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageQuestion
|
||||
type AccessPackageQuestion struct {
|
||||
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
additionalData map[string]interface{}
|
||||
// ID of the question.
|
||||
id *string
|
||||
// Specifies whether the requestor is allowed to edit answers to questions.
|
||||
isAnswerEditable *bool
|
||||
// Whether the requestor is required to supply an answer or not.
|
||||
isRequired *bool
|
||||
// The OdataType property
|
||||
odataType *string
|
||||
// Relative position of this question when displaying a list of questions to the requestor.
|
||||
sequence *int32
|
||||
// The text of the question to show to the requestor.
|
||||
text AccessPackageLocalizedContentable
|
||||
}
|
||||
// NewAccessPackageQuestion instantiates a new accessPackageQuestion and sets the default values.
|
||||
func NewAccessPackageQuestion()(*AccessPackageQuestion) {
|
||||
m := &AccessPackageQuestion{
|
||||
}
|
||||
m.SetAdditionalData(make(map[string]interface{}));
|
||||
return m
|
||||
}
|
||||
// CreateAccessPackageQuestionFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateAccessPackageQuestionFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
if parseNode != nil {
|
||||
mappingValueNode, err := parseNode.GetChildNode("@odata.type")
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if mappingValueNode != nil {
|
||||
mappingValue, err := mappingValueNode.GetStringValue()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if mappingValue != nil {
|
||||
switch *mappingValue {
|
||||
case "#microsoft.graph.accessPackageMultipleChoiceQuestion":
|
||||
return NewAccessPackageMultipleChoiceQuestion(), nil
|
||||
case "#microsoft.graph.accessPackageTextInputQuestion":
|
||||
return NewAccessPackageTextInputQuestion(), nil
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return NewAccessPackageQuestion(), nil
|
||||
}
|
||||
// GetAdditionalData gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
func (m *AccessPackageQuestion) GetAdditionalData()(map[string]interface{}) {
|
||||
return m.additionalData
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *AccessPackageQuestion) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
|
||||
res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetId(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["isAnswerEditable"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetBoolValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetIsAnswerEditable(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["isRequired"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetBoolValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetIsRequired(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetOdataType(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["sequence"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetInt32Value()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetSequence(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["text"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetObjectValue(CreateAccessPackageLocalizedContentFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetText(val.(AccessPackageLocalizedContentable))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetId gets the id property value. ID of the question.
|
||||
func (m *AccessPackageQuestion) GetId()(*string) {
|
||||
return m.id
|
||||
}
|
||||
// GetIsAnswerEditable gets the isAnswerEditable property value. Specifies whether the requestor is allowed to edit answers to questions.
|
||||
func (m *AccessPackageQuestion) GetIsAnswerEditable()(*bool) {
|
||||
return m.isAnswerEditable
|
||||
}
|
||||
// GetIsRequired gets the isRequired property value. Whether the requestor is required to supply an answer or not.
|
||||
func (m *AccessPackageQuestion) GetIsRequired()(*bool) {
|
||||
return m.isRequired
|
||||
}
|
||||
// GetOdataType gets the @odata.type property value. The OdataType property
|
||||
func (m *AccessPackageQuestion) GetOdataType()(*string) {
|
||||
return m.odataType
|
||||
}
|
||||
// GetSequence gets the sequence property value. Relative position of this question when displaying a list of questions to the requestor.
|
||||
func (m *AccessPackageQuestion) GetSequence()(*int32) {
|
||||
return m.sequence
|
||||
}
|
||||
// GetText gets the text property value. The text of the question to show to the requestor.
|
||||
func (m *AccessPackageQuestion) GetText()(AccessPackageLocalizedContentable) {
|
||||
return m.text
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *AccessPackageQuestion) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
{
|
||||
err := writer.WriteStringValue("id", m.GetId())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteBoolValue("isAnswerEditable", m.GetIsAnswerEditable())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteBoolValue("isRequired", m.GetIsRequired())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteStringValue("@odata.type", m.GetOdataType())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteInt32Value("sequence", m.GetSequence())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteObjectValue("text", m.GetText())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteAdditionalData(m.GetAdditionalData())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
func (m *AccessPackageQuestion) SetAdditionalData(value map[string]interface{})() {
|
||||
m.additionalData = value
|
||||
}
|
||||
// SetId sets the id property value. ID of the question.
|
||||
func (m *AccessPackageQuestion) SetId(value *string)() {
|
||||
m.id = value
|
||||
}
|
||||
// SetIsAnswerEditable sets the isAnswerEditable property value. Specifies whether the requestor is allowed to edit answers to questions.
|
||||
func (m *AccessPackageQuestion) SetIsAnswerEditable(value *bool)() {
|
||||
m.isAnswerEditable = value
|
||||
}
|
||||
// SetIsRequired sets the isRequired property value. Whether the requestor is required to supply an answer or not.
|
||||
func (m *AccessPackageQuestion) SetIsRequired(value *bool)() {
|
||||
m.isRequired = value
|
||||
}
|
||||
// SetOdataType sets the @odata.type property value. The OdataType property
|
||||
func (m *AccessPackageQuestion) SetOdataType(value *string)() {
|
||||
m.odataType = value
|
||||
}
|
||||
// SetSequence sets the sequence property value. Relative position of this question when displaying a list of questions to the requestor.
|
||||
func (m *AccessPackageQuestion) SetSequence(value *int32)() {
|
||||
m.sequence = value
|
||||
}
|
||||
// SetText sets the text property value. The text of the question to show to the requestor.
|
||||
func (m *AccessPackageQuestion) SetText(value AccessPackageLocalizedContentable)() {
|
||||
m.text = value
|
||||
}
|
||||
@ -0,0 +1,68 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageQuestionCollectionResponse
|
||||
type AccessPackageQuestionCollectionResponse struct {
|
||||
BaseCollectionPaginationCountResponse
|
||||
// The value property
|
||||
value []AccessPackageQuestionable
|
||||
}
|
||||
// NewAccessPackageQuestionCollectionResponse instantiates a new AccessPackageQuestionCollectionResponse and sets the default values.
|
||||
func NewAccessPackageQuestionCollectionResponse()(*AccessPackageQuestionCollectionResponse) {
|
||||
m := &AccessPackageQuestionCollectionResponse{
|
||||
BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(),
|
||||
}
|
||||
return m
|
||||
}
|
||||
// CreateAccessPackageQuestionCollectionResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateAccessPackageQuestionCollectionResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewAccessPackageQuestionCollectionResponse(), nil
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *AccessPackageQuestionCollectionResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers()
|
||||
res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfObjectValues(CreateAccessPackageQuestionFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]AccessPackageQuestionable, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = v.(AccessPackageQuestionable)
|
||||
}
|
||||
m.SetValue(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetValue gets the value property value. The value property
|
||||
func (m *AccessPackageQuestionCollectionResponse) GetValue()([]AccessPackageQuestionable) {
|
||||
return m.value
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *AccessPackageQuestionCollectionResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
err := m.BaseCollectionPaginationCountResponse.Serialize(writer)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if m.GetValue() != nil {
|
||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue()))
|
||||
for i, v := range m.GetValue() {
|
||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
||||
}
|
||||
err = writer.WriteCollectionOfObjectValues("value", cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// SetValue sets the value property value. The value property
|
||||
func (m *AccessPackageQuestionCollectionResponse) SetValue(value []AccessPackageQuestionable)() {
|
||||
m.value = value
|
||||
}
|
||||
@ -0,0 +1,13 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageQuestionCollectionResponseable
|
||||
type AccessPackageQuestionCollectionResponseable interface {
|
||||
BaseCollectionPaginationCountResponseable
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetValue()([]AccessPackageQuestionable)
|
||||
SetValue(value []AccessPackageQuestionable)()
|
||||
}
|
||||
@ -0,0 +1,23 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageQuestionable
|
||||
type AccessPackageQuestionable interface {
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetId()(*string)
|
||||
GetIsAnswerEditable()(*bool)
|
||||
GetIsRequired()(*bool)
|
||||
GetOdataType()(*string)
|
||||
GetSequence()(*int32)
|
||||
GetText()(AccessPackageLocalizedContentable)
|
||||
SetId(value *string)()
|
||||
SetIsAnswerEditable(value *bool)()
|
||||
SetIsRequired(value *bool)()
|
||||
SetOdataType(value *string)()
|
||||
SetSequence(value *int32)()
|
||||
SetText(value AccessPackageLocalizedContentable)()
|
||||
}
|
||||
@ -0,0 +1,397 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time"
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageResource
|
||||
type AccessPackageResource struct {
|
||||
Entity
|
||||
// Contains the environment information for the resource. This can be set using either the @odata.bind annotation or the environment's originId.Supports $expand.
|
||||
accessPackageResourceEnvironment AccessPackageResourceEnvironmentable
|
||||
// Read-only. Nullable. Supports $expand.
|
||||
accessPackageResourceRoles []AccessPackageResourceRoleable
|
||||
// Read-only. Nullable. Supports $expand.
|
||||
accessPackageResourceScopes []AccessPackageResourceScopeable
|
||||
// The name of the user or application that first added this resource. Read-only.
|
||||
addedBy *string
|
||||
// The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.
|
||||
addedOn *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time
|
||||
// Contains information about the attributes to be collected from the requestor and sent to the resource application.
|
||||
attributes []AccessPackageResourceAttributeable
|
||||
// A description for the resource.
|
||||
description *string
|
||||
// The display name of the resource, such as the application name, group name or site name.
|
||||
displayName *string
|
||||
// True if the resource is not yet available for assignment. Read-only.
|
||||
isPendingOnboarding *bool
|
||||
// The unique identifier of the resource in the origin system. In the case of an Azure AD group, this is the identifier of the group.
|
||||
originId *string
|
||||
// The type of the resource in the origin system, such as SharePointOnline, AadApplication or AadGroup.
|
||||
originSystem *string
|
||||
// The type of the resource, such as Application if it is an Azure AD connected application, or SharePoint Online Site for a SharePoint Online site.
|
||||
resourceType *string
|
||||
// A unique resource locator for the resource, such as the URL for signing a user into an application.
|
||||
url *string
|
||||
}
|
||||
// NewAccessPackageResource instantiates a new accessPackageResource and sets the default values.
|
||||
func NewAccessPackageResource()(*AccessPackageResource) {
|
||||
m := &AccessPackageResource{
|
||||
Entity: *NewEntity(),
|
||||
}
|
||||
return m
|
||||
}
|
||||
// CreateAccessPackageResourceFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateAccessPackageResourceFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewAccessPackageResource(), nil
|
||||
}
|
||||
// GetAccessPackageResourceEnvironment gets the accessPackageResourceEnvironment property value. Contains the environment information for the resource. This can be set using either the @odata.bind annotation or the environment's originId.Supports $expand.
|
||||
func (m *AccessPackageResource) GetAccessPackageResourceEnvironment()(AccessPackageResourceEnvironmentable) {
|
||||
return m.accessPackageResourceEnvironment
|
||||
}
|
||||
// GetAccessPackageResourceRoles gets the accessPackageResourceRoles property value. Read-only. Nullable. Supports $expand.
|
||||
func (m *AccessPackageResource) GetAccessPackageResourceRoles()([]AccessPackageResourceRoleable) {
|
||||
return m.accessPackageResourceRoles
|
||||
}
|
||||
// GetAccessPackageResourceScopes gets the accessPackageResourceScopes property value. Read-only. Nullable. Supports $expand.
|
||||
func (m *AccessPackageResource) GetAccessPackageResourceScopes()([]AccessPackageResourceScopeable) {
|
||||
return m.accessPackageResourceScopes
|
||||
}
|
||||
// GetAddedBy gets the addedBy property value. The name of the user or application that first added this resource. Read-only.
|
||||
func (m *AccessPackageResource) GetAddedBy()(*string) {
|
||||
return m.addedBy
|
||||
}
|
||||
// GetAddedOn gets the addedOn property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.
|
||||
func (m *AccessPackageResource) GetAddedOn()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) {
|
||||
return m.addedOn
|
||||
}
|
||||
// GetAttributes gets the attributes property value. Contains information about the attributes to be collected from the requestor and sent to the resource application.
|
||||
func (m *AccessPackageResource) GetAttributes()([]AccessPackageResourceAttributeable) {
|
||||
return m.attributes
|
||||
}
|
||||
// GetDescription gets the description property value. A description for the resource.
|
||||
func (m *AccessPackageResource) GetDescription()(*string) {
|
||||
return m.description
|
||||
}
|
||||
// GetDisplayName gets the displayName property value. The display name of the resource, such as the application name, group name or site name.
|
||||
func (m *AccessPackageResource) GetDisplayName()(*string) {
|
||||
return m.displayName
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *AccessPackageResource) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := m.Entity.GetFieldDeserializers()
|
||||
res["accessPackageResourceEnvironment"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetObjectValue(CreateAccessPackageResourceEnvironmentFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetAccessPackageResourceEnvironment(val.(AccessPackageResourceEnvironmentable))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["accessPackageResourceRoles"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfObjectValues(CreateAccessPackageResourceRoleFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]AccessPackageResourceRoleable, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = v.(AccessPackageResourceRoleable)
|
||||
}
|
||||
m.SetAccessPackageResourceRoles(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["accessPackageResourceScopes"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfObjectValues(CreateAccessPackageResourceScopeFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]AccessPackageResourceScopeable, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = v.(AccessPackageResourceScopeable)
|
||||
}
|
||||
m.SetAccessPackageResourceScopes(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["addedBy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetAddedBy(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["addedOn"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetTimeValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetAddedOn(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["attributes"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfObjectValues(CreateAccessPackageResourceAttributeFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]AccessPackageResourceAttributeable, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = v.(AccessPackageResourceAttributeable)
|
||||
}
|
||||
m.SetAttributes(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["description"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetDescription(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["displayName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetDisplayName(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["isPendingOnboarding"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetBoolValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetIsPendingOnboarding(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["originId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetOriginId(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["originSystem"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetOriginSystem(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["resourceType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetResourceType(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetUrl(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetIsPendingOnboarding gets the isPendingOnboarding property value. True if the resource is not yet available for assignment. Read-only.
|
||||
func (m *AccessPackageResource) GetIsPendingOnboarding()(*bool) {
|
||||
return m.isPendingOnboarding
|
||||
}
|
||||
// GetOriginId gets the originId property value. The unique identifier of the resource in the origin system. In the case of an Azure AD group, this is the identifier of the group.
|
||||
func (m *AccessPackageResource) GetOriginId()(*string) {
|
||||
return m.originId
|
||||
}
|
||||
// GetOriginSystem gets the originSystem property value. The type of the resource in the origin system, such as SharePointOnline, AadApplication or AadGroup.
|
||||
func (m *AccessPackageResource) GetOriginSystem()(*string) {
|
||||
return m.originSystem
|
||||
}
|
||||
// GetResourceType gets the resourceType property value. The type of the resource, such as Application if it is an Azure AD connected application, or SharePoint Online Site for a SharePoint Online site.
|
||||
func (m *AccessPackageResource) GetResourceType()(*string) {
|
||||
return m.resourceType
|
||||
}
|
||||
// GetUrl gets the url property value. A unique resource locator for the resource, such as the URL for signing a user into an application.
|
||||
func (m *AccessPackageResource) GetUrl()(*string) {
|
||||
return m.url
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *AccessPackageResource) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
err := m.Entity.Serialize(writer)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
{
|
||||
err = writer.WriteObjectValue("accessPackageResourceEnvironment", m.GetAccessPackageResourceEnvironment())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if m.GetAccessPackageResourceRoles() != nil {
|
||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetAccessPackageResourceRoles()))
|
||||
for i, v := range m.GetAccessPackageResourceRoles() {
|
||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
||||
}
|
||||
err = writer.WriteCollectionOfObjectValues("accessPackageResourceRoles", cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if m.GetAccessPackageResourceScopes() != nil {
|
||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetAccessPackageResourceScopes()))
|
||||
for i, v := range m.GetAccessPackageResourceScopes() {
|
||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
||||
}
|
||||
err = writer.WriteCollectionOfObjectValues("accessPackageResourceScopes", cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("addedBy", m.GetAddedBy())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteTimeValue("addedOn", m.GetAddedOn())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if m.GetAttributes() != nil {
|
||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetAttributes()))
|
||||
for i, v := range m.GetAttributes() {
|
||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
||||
}
|
||||
err = writer.WriteCollectionOfObjectValues("attributes", cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("description", m.GetDescription())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("displayName", m.GetDisplayName())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteBoolValue("isPendingOnboarding", m.GetIsPendingOnboarding())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("originId", m.GetOriginId())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("originSystem", m.GetOriginSystem())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("resourceType", m.GetResourceType())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("url", m.GetUrl())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// SetAccessPackageResourceEnvironment sets the accessPackageResourceEnvironment property value. Contains the environment information for the resource. This can be set using either the @odata.bind annotation or the environment's originId.Supports $expand.
|
||||
func (m *AccessPackageResource) SetAccessPackageResourceEnvironment(value AccessPackageResourceEnvironmentable)() {
|
||||
m.accessPackageResourceEnvironment = value
|
||||
}
|
||||
// SetAccessPackageResourceRoles sets the accessPackageResourceRoles property value. Read-only. Nullable. Supports $expand.
|
||||
func (m *AccessPackageResource) SetAccessPackageResourceRoles(value []AccessPackageResourceRoleable)() {
|
||||
m.accessPackageResourceRoles = value
|
||||
}
|
||||
// SetAccessPackageResourceScopes sets the accessPackageResourceScopes property value. Read-only. Nullable. Supports $expand.
|
||||
func (m *AccessPackageResource) SetAccessPackageResourceScopes(value []AccessPackageResourceScopeable)() {
|
||||
m.accessPackageResourceScopes = value
|
||||
}
|
||||
// SetAddedBy sets the addedBy property value. The name of the user or application that first added this resource. Read-only.
|
||||
func (m *AccessPackageResource) SetAddedBy(value *string)() {
|
||||
m.addedBy = value
|
||||
}
|
||||
// SetAddedOn sets the addedOn property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.
|
||||
func (m *AccessPackageResource) SetAddedOn(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() {
|
||||
m.addedOn = value
|
||||
}
|
||||
// SetAttributes sets the attributes property value. Contains information about the attributes to be collected from the requestor and sent to the resource application.
|
||||
func (m *AccessPackageResource) SetAttributes(value []AccessPackageResourceAttributeable)() {
|
||||
m.attributes = value
|
||||
}
|
||||
// SetDescription sets the description property value. A description for the resource.
|
||||
func (m *AccessPackageResource) SetDescription(value *string)() {
|
||||
m.description = value
|
||||
}
|
||||
// SetDisplayName sets the displayName property value. The display name of the resource, such as the application name, group name or site name.
|
||||
func (m *AccessPackageResource) SetDisplayName(value *string)() {
|
||||
m.displayName = value
|
||||
}
|
||||
// SetIsPendingOnboarding sets the isPendingOnboarding property value. True if the resource is not yet available for assignment. Read-only.
|
||||
func (m *AccessPackageResource) SetIsPendingOnboarding(value *bool)() {
|
||||
m.isPendingOnboarding = value
|
||||
}
|
||||
// SetOriginId sets the originId property value. The unique identifier of the resource in the origin system. In the case of an Azure AD group, this is the identifier of the group.
|
||||
func (m *AccessPackageResource) SetOriginId(value *string)() {
|
||||
m.originId = value
|
||||
}
|
||||
// SetOriginSystem sets the originSystem property value. The type of the resource in the origin system, such as SharePointOnline, AadApplication or AadGroup.
|
||||
func (m *AccessPackageResource) SetOriginSystem(value *string)() {
|
||||
m.originSystem = value
|
||||
}
|
||||
// SetResourceType sets the resourceType property value. The type of the resource, such as Application if it is an Azure AD connected application, or SharePoint Online Site for a SharePoint Online site.
|
||||
func (m *AccessPackageResource) SetResourceType(value *string)() {
|
||||
m.resourceType = value
|
||||
}
|
||||
// SetUrl sets the url property value. A unique resource locator for the resource, such as the URL for signing a user into an application.
|
||||
func (m *AccessPackageResource) SetUrl(value *string)() {
|
||||
m.url = value
|
||||
}
|
||||
@ -0,0 +1,227 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageResourceAttribute
|
||||
type AccessPackageResourceAttribute struct {
|
||||
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
additionalData map[string]interface{}
|
||||
// Information about how to set the attribute, currently a accessPackageUserDirectoryAttributeStore object type.
|
||||
attributeDestination AccessPackageResourceAttributeDestinationable
|
||||
// The name of the attribute in the end system. If the destination is accessPackageUserDirectoryAttributeStore, then a user property such as jobTitle or a directory schema extension for the user object type, such as extension_2b676109c7c74ae2b41549205f1947ed_personalTitle.
|
||||
attributeName *string
|
||||
// Information about how to populate the attribute value when an accessPackageAssignmentRequest is being fulfilled, currently a accessPackageResourceAttributeQuestion object type.
|
||||
attributeSource AccessPackageResourceAttributeSourceable
|
||||
// Unique identifier for the attribute on the access package resource. Read-only.
|
||||
id *string
|
||||
// Specifies whether or not an existing attribute value can be edited by the requester.
|
||||
isEditable *bool
|
||||
// Specifies whether the attribute will remain in the end system after an assignment ends.
|
||||
isPersistedOnAssignmentRemoval *bool
|
||||
// The OdataType property
|
||||
odataType *string
|
||||
}
|
||||
// NewAccessPackageResourceAttribute instantiates a new accessPackageResourceAttribute and sets the default values.
|
||||
func NewAccessPackageResourceAttribute()(*AccessPackageResourceAttribute) {
|
||||
m := &AccessPackageResourceAttribute{
|
||||
}
|
||||
m.SetAdditionalData(make(map[string]interface{}));
|
||||
return m
|
||||
}
|
||||
// CreateAccessPackageResourceAttributeFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateAccessPackageResourceAttributeFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewAccessPackageResourceAttribute(), nil
|
||||
}
|
||||
// GetAdditionalData gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
func (m *AccessPackageResourceAttribute) GetAdditionalData()(map[string]interface{}) {
|
||||
return m.additionalData
|
||||
}
|
||||
// GetAttributeDestination gets the attributeDestination property value. Information about how to set the attribute, currently a accessPackageUserDirectoryAttributeStore object type.
|
||||
func (m *AccessPackageResourceAttribute) GetAttributeDestination()(AccessPackageResourceAttributeDestinationable) {
|
||||
return m.attributeDestination
|
||||
}
|
||||
// GetAttributeName gets the attributeName property value. The name of the attribute in the end system. If the destination is accessPackageUserDirectoryAttributeStore, then a user property such as jobTitle or a directory schema extension for the user object type, such as extension_2b676109c7c74ae2b41549205f1947ed_personalTitle.
|
||||
func (m *AccessPackageResourceAttribute) GetAttributeName()(*string) {
|
||||
return m.attributeName
|
||||
}
|
||||
// GetAttributeSource gets the attributeSource property value. Information about how to populate the attribute value when an accessPackageAssignmentRequest is being fulfilled, currently a accessPackageResourceAttributeQuestion object type.
|
||||
func (m *AccessPackageResourceAttribute) GetAttributeSource()(AccessPackageResourceAttributeSourceable) {
|
||||
return m.attributeSource
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *AccessPackageResourceAttribute) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
|
||||
res["attributeDestination"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetObjectValue(CreateAccessPackageResourceAttributeDestinationFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetAttributeDestination(val.(AccessPackageResourceAttributeDestinationable))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["attributeName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetAttributeName(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["attributeSource"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetObjectValue(CreateAccessPackageResourceAttributeSourceFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetAttributeSource(val.(AccessPackageResourceAttributeSourceable))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetId(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["isEditable"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetBoolValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetIsEditable(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["isPersistedOnAssignmentRemoval"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetBoolValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetIsPersistedOnAssignmentRemoval(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetOdataType(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetId gets the id property value. Unique identifier for the attribute on the access package resource. Read-only.
|
||||
func (m *AccessPackageResourceAttribute) GetId()(*string) {
|
||||
return m.id
|
||||
}
|
||||
// GetIsEditable gets the isEditable property value. Specifies whether or not an existing attribute value can be edited by the requester.
|
||||
func (m *AccessPackageResourceAttribute) GetIsEditable()(*bool) {
|
||||
return m.isEditable
|
||||
}
|
||||
// GetIsPersistedOnAssignmentRemoval gets the isPersistedOnAssignmentRemoval property value. Specifies whether the attribute will remain in the end system after an assignment ends.
|
||||
func (m *AccessPackageResourceAttribute) GetIsPersistedOnAssignmentRemoval()(*bool) {
|
||||
return m.isPersistedOnAssignmentRemoval
|
||||
}
|
||||
// GetOdataType gets the @odata.type property value. The OdataType property
|
||||
func (m *AccessPackageResourceAttribute) GetOdataType()(*string) {
|
||||
return m.odataType
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *AccessPackageResourceAttribute) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
{
|
||||
err := writer.WriteObjectValue("attributeDestination", m.GetAttributeDestination())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteStringValue("attributeName", m.GetAttributeName())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteObjectValue("attributeSource", m.GetAttributeSource())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteStringValue("id", m.GetId())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteBoolValue("isEditable", m.GetIsEditable())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteBoolValue("isPersistedOnAssignmentRemoval", m.GetIsPersistedOnAssignmentRemoval())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteStringValue("@odata.type", m.GetOdataType())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteAdditionalData(m.GetAdditionalData())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
func (m *AccessPackageResourceAttribute) SetAdditionalData(value map[string]interface{})() {
|
||||
m.additionalData = value
|
||||
}
|
||||
// SetAttributeDestination sets the attributeDestination property value. Information about how to set the attribute, currently a accessPackageUserDirectoryAttributeStore object type.
|
||||
func (m *AccessPackageResourceAttribute) SetAttributeDestination(value AccessPackageResourceAttributeDestinationable)() {
|
||||
m.attributeDestination = value
|
||||
}
|
||||
// SetAttributeName sets the attributeName property value. The name of the attribute in the end system. If the destination is accessPackageUserDirectoryAttributeStore, then a user property such as jobTitle or a directory schema extension for the user object type, such as extension_2b676109c7c74ae2b41549205f1947ed_personalTitle.
|
||||
func (m *AccessPackageResourceAttribute) SetAttributeName(value *string)() {
|
||||
m.attributeName = value
|
||||
}
|
||||
// SetAttributeSource sets the attributeSource property value. Information about how to populate the attribute value when an accessPackageAssignmentRequest is being fulfilled, currently a accessPackageResourceAttributeQuestion object type.
|
||||
func (m *AccessPackageResourceAttribute) SetAttributeSource(value AccessPackageResourceAttributeSourceable)() {
|
||||
m.attributeSource = value
|
||||
}
|
||||
// SetId sets the id property value. Unique identifier for the attribute on the access package resource. Read-only.
|
||||
func (m *AccessPackageResourceAttribute) SetId(value *string)() {
|
||||
m.id = value
|
||||
}
|
||||
// SetIsEditable sets the isEditable property value. Specifies whether or not an existing attribute value can be edited by the requester.
|
||||
func (m *AccessPackageResourceAttribute) SetIsEditable(value *bool)() {
|
||||
m.isEditable = value
|
||||
}
|
||||
// SetIsPersistedOnAssignmentRemoval sets the isPersistedOnAssignmentRemoval property value. Specifies whether the attribute will remain in the end system after an assignment ends.
|
||||
func (m *AccessPackageResourceAttribute) SetIsPersistedOnAssignmentRemoval(value *bool)() {
|
||||
m.isPersistedOnAssignmentRemoval = value
|
||||
}
|
||||
// SetOdataType sets the @odata.type property value. The OdataType property
|
||||
func (m *AccessPackageResourceAttribute) SetOdataType(value *string)() {
|
||||
m.odataType = value
|
||||
}
|
||||
@ -0,0 +1,68 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageResourceAttributeCollectionResponse
|
||||
type AccessPackageResourceAttributeCollectionResponse struct {
|
||||
BaseCollectionPaginationCountResponse
|
||||
// The value property
|
||||
value []AccessPackageResourceAttributeable
|
||||
}
|
||||
// NewAccessPackageResourceAttributeCollectionResponse instantiates a new AccessPackageResourceAttributeCollectionResponse and sets the default values.
|
||||
func NewAccessPackageResourceAttributeCollectionResponse()(*AccessPackageResourceAttributeCollectionResponse) {
|
||||
m := &AccessPackageResourceAttributeCollectionResponse{
|
||||
BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(),
|
||||
}
|
||||
return m
|
||||
}
|
||||
// CreateAccessPackageResourceAttributeCollectionResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateAccessPackageResourceAttributeCollectionResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewAccessPackageResourceAttributeCollectionResponse(), nil
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *AccessPackageResourceAttributeCollectionResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers()
|
||||
res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfObjectValues(CreateAccessPackageResourceAttributeFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]AccessPackageResourceAttributeable, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = v.(AccessPackageResourceAttributeable)
|
||||
}
|
||||
m.SetValue(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetValue gets the value property value. The value property
|
||||
func (m *AccessPackageResourceAttributeCollectionResponse) GetValue()([]AccessPackageResourceAttributeable) {
|
||||
return m.value
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *AccessPackageResourceAttributeCollectionResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
err := m.BaseCollectionPaginationCountResponse.Serialize(writer)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if m.GetValue() != nil {
|
||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue()))
|
||||
for i, v := range m.GetValue() {
|
||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
||||
}
|
||||
err = writer.WriteCollectionOfObjectValues("value", cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// SetValue sets the value property value. The value property
|
||||
func (m *AccessPackageResourceAttributeCollectionResponse) SetValue(value []AccessPackageResourceAttributeable)() {
|
||||
m.value = value
|
||||
}
|
||||
@ -0,0 +1,13 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageResourceAttributeCollectionResponseable
|
||||
type AccessPackageResourceAttributeCollectionResponseable interface {
|
||||
BaseCollectionPaginationCountResponseable
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetValue()([]AccessPackageResourceAttributeable)
|
||||
SetValue(value []AccessPackageResourceAttributeable)()
|
||||
}
|
||||
@ -0,0 +1,89 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageResourceAttributeDestination
|
||||
type AccessPackageResourceAttributeDestination struct {
|
||||
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
additionalData map[string]interface{}
|
||||
// The OdataType property
|
||||
odataType *string
|
||||
}
|
||||
// NewAccessPackageResourceAttributeDestination instantiates a new accessPackageResourceAttributeDestination and sets the default values.
|
||||
func NewAccessPackageResourceAttributeDestination()(*AccessPackageResourceAttributeDestination) {
|
||||
m := &AccessPackageResourceAttributeDestination{
|
||||
}
|
||||
m.SetAdditionalData(make(map[string]interface{}));
|
||||
return m
|
||||
}
|
||||
// CreateAccessPackageResourceAttributeDestinationFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateAccessPackageResourceAttributeDestinationFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
if parseNode != nil {
|
||||
mappingValueNode, err := parseNode.GetChildNode("@odata.type")
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if mappingValueNode != nil {
|
||||
mappingValue, err := mappingValueNode.GetStringValue()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if mappingValue != nil {
|
||||
switch *mappingValue {
|
||||
case "#microsoft.graph.accessPackageUserDirectoryAttributeStore":
|
||||
return NewAccessPackageUserDirectoryAttributeStore(), nil
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return NewAccessPackageResourceAttributeDestination(), nil
|
||||
}
|
||||
// GetAdditionalData gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
func (m *AccessPackageResourceAttributeDestination) GetAdditionalData()(map[string]interface{}) {
|
||||
return m.additionalData
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *AccessPackageResourceAttributeDestination) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
|
||||
res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetOdataType(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetOdataType gets the @odata.type property value. The OdataType property
|
||||
func (m *AccessPackageResourceAttributeDestination) GetOdataType()(*string) {
|
||||
return m.odataType
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *AccessPackageResourceAttributeDestination) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
{
|
||||
err := writer.WriteStringValue("@odata.type", m.GetOdataType())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteAdditionalData(m.GetAdditionalData())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
func (m *AccessPackageResourceAttributeDestination) SetAdditionalData(value map[string]interface{})() {
|
||||
m.additionalData = value
|
||||
}
|
||||
// SetOdataType sets the @odata.type property value. The OdataType property
|
||||
func (m *AccessPackageResourceAttributeDestination) SetOdataType(value *string)() {
|
||||
m.odataType = value
|
||||
}
|
||||
@ -0,0 +1,13 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageResourceAttributeDestinationable
|
||||
type AccessPackageResourceAttributeDestinationable interface {
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetOdataType()(*string)
|
||||
SetOdataType(value *string)()
|
||||
}
|
||||
@ -0,0 +1,62 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageResourceAttributeQuestion
|
||||
type AccessPackageResourceAttributeQuestion struct {
|
||||
AccessPackageResourceAttributeSource
|
||||
// The question asked in order to get the value of the attribute
|
||||
question AccessPackageQuestionable
|
||||
}
|
||||
// NewAccessPackageResourceAttributeQuestion instantiates a new AccessPackageResourceAttributeQuestion and sets the default values.
|
||||
func NewAccessPackageResourceAttributeQuestion()(*AccessPackageResourceAttributeQuestion) {
|
||||
m := &AccessPackageResourceAttributeQuestion{
|
||||
AccessPackageResourceAttributeSource: *NewAccessPackageResourceAttributeSource(),
|
||||
}
|
||||
odataTypeValue := "#microsoft.graph.accessPackageResourceAttributeQuestion";
|
||||
m.SetOdataType(&odataTypeValue);
|
||||
return m
|
||||
}
|
||||
// CreateAccessPackageResourceAttributeQuestionFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateAccessPackageResourceAttributeQuestionFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewAccessPackageResourceAttributeQuestion(), nil
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *AccessPackageResourceAttributeQuestion) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := m.AccessPackageResourceAttributeSource.GetFieldDeserializers()
|
||||
res["question"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetObjectValue(CreateAccessPackageQuestionFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetQuestion(val.(AccessPackageQuestionable))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetQuestion gets the question property value. The question asked in order to get the value of the attribute
|
||||
func (m *AccessPackageResourceAttributeQuestion) GetQuestion()(AccessPackageQuestionable) {
|
||||
return m.question
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *AccessPackageResourceAttributeQuestion) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
err := m.AccessPackageResourceAttributeSource.Serialize(writer)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
{
|
||||
err = writer.WriteObjectValue("question", m.GetQuestion())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// SetQuestion sets the question property value. The question asked in order to get the value of the attribute
|
||||
func (m *AccessPackageResourceAttributeQuestion) SetQuestion(value AccessPackageQuestionable)() {
|
||||
m.question = value
|
||||
}
|
||||
@ -0,0 +1,13 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageResourceAttributeQuestionable
|
||||
type AccessPackageResourceAttributeQuestionable interface {
|
||||
AccessPackageResourceAttributeSourceable
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetQuestion()(AccessPackageQuestionable)
|
||||
SetQuestion(value AccessPackageQuestionable)()
|
||||
}
|
||||
@ -0,0 +1,89 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageResourceAttributeSource
|
||||
type AccessPackageResourceAttributeSource struct {
|
||||
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
additionalData map[string]interface{}
|
||||
// The OdataType property
|
||||
odataType *string
|
||||
}
|
||||
// NewAccessPackageResourceAttributeSource instantiates a new accessPackageResourceAttributeSource and sets the default values.
|
||||
func NewAccessPackageResourceAttributeSource()(*AccessPackageResourceAttributeSource) {
|
||||
m := &AccessPackageResourceAttributeSource{
|
||||
}
|
||||
m.SetAdditionalData(make(map[string]interface{}));
|
||||
return m
|
||||
}
|
||||
// CreateAccessPackageResourceAttributeSourceFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateAccessPackageResourceAttributeSourceFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
if parseNode != nil {
|
||||
mappingValueNode, err := parseNode.GetChildNode("@odata.type")
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if mappingValueNode != nil {
|
||||
mappingValue, err := mappingValueNode.GetStringValue()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if mappingValue != nil {
|
||||
switch *mappingValue {
|
||||
case "#microsoft.graph.accessPackageResourceAttributeQuestion":
|
||||
return NewAccessPackageResourceAttributeQuestion(), nil
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return NewAccessPackageResourceAttributeSource(), nil
|
||||
}
|
||||
// GetAdditionalData gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
func (m *AccessPackageResourceAttributeSource) GetAdditionalData()(map[string]interface{}) {
|
||||
return m.additionalData
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *AccessPackageResourceAttributeSource) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
|
||||
res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetOdataType(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetOdataType gets the @odata.type property value. The OdataType property
|
||||
func (m *AccessPackageResourceAttributeSource) GetOdataType()(*string) {
|
||||
return m.odataType
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *AccessPackageResourceAttributeSource) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
{
|
||||
err := writer.WriteStringValue("@odata.type", m.GetOdataType())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteAdditionalData(m.GetAdditionalData())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
func (m *AccessPackageResourceAttributeSource) SetAdditionalData(value map[string]interface{})() {
|
||||
m.additionalData = value
|
||||
}
|
||||
// SetOdataType sets the @odata.type property value. The OdataType property
|
||||
func (m *AccessPackageResourceAttributeSource) SetOdataType(value *string)() {
|
||||
m.odataType = value
|
||||
}
|
||||
@ -0,0 +1,13 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageResourceAttributeSourceable
|
||||
type AccessPackageResourceAttributeSourceable interface {
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetOdataType()(*string)
|
||||
SetOdataType(value *string)()
|
||||
}
|
||||
@ -0,0 +1,25 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageResourceAttributeable
|
||||
type AccessPackageResourceAttributeable interface {
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetAttributeDestination()(AccessPackageResourceAttributeDestinationable)
|
||||
GetAttributeName()(*string)
|
||||
GetAttributeSource()(AccessPackageResourceAttributeSourceable)
|
||||
GetId()(*string)
|
||||
GetIsEditable()(*bool)
|
||||
GetIsPersistedOnAssignmentRemoval()(*bool)
|
||||
GetOdataType()(*string)
|
||||
SetAttributeDestination(value AccessPackageResourceAttributeDestinationable)()
|
||||
SetAttributeName(value *string)()
|
||||
SetAttributeSource(value AccessPackageResourceAttributeSourceable)()
|
||||
SetId(value *string)()
|
||||
SetIsEditable(value *bool)()
|
||||
SetIsPersistedOnAssignmentRemoval(value *bool)()
|
||||
SetOdataType(value *string)()
|
||||
}
|
||||
@ -0,0 +1,68 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageResourceCollectionResponse
|
||||
type AccessPackageResourceCollectionResponse struct {
|
||||
BaseCollectionPaginationCountResponse
|
||||
// The value property
|
||||
value []AccessPackageResourceable
|
||||
}
|
||||
// NewAccessPackageResourceCollectionResponse instantiates a new AccessPackageResourceCollectionResponse and sets the default values.
|
||||
func NewAccessPackageResourceCollectionResponse()(*AccessPackageResourceCollectionResponse) {
|
||||
m := &AccessPackageResourceCollectionResponse{
|
||||
BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(),
|
||||
}
|
||||
return m
|
||||
}
|
||||
// CreateAccessPackageResourceCollectionResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateAccessPackageResourceCollectionResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewAccessPackageResourceCollectionResponse(), nil
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *AccessPackageResourceCollectionResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers()
|
||||
res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfObjectValues(CreateAccessPackageResourceFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]AccessPackageResourceable, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = v.(AccessPackageResourceable)
|
||||
}
|
||||
m.SetValue(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetValue gets the value property value. The value property
|
||||
func (m *AccessPackageResourceCollectionResponse) GetValue()([]AccessPackageResourceable) {
|
||||
return m.value
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *AccessPackageResourceCollectionResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
err := m.BaseCollectionPaginationCountResponse.Serialize(writer)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if m.GetValue() != nil {
|
||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue()))
|
||||
for i, v := range m.GetValue() {
|
||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
||||
}
|
||||
err = writer.WriteCollectionOfObjectValues("value", cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// SetValue sets the value property value. The value property
|
||||
func (m *AccessPackageResourceCollectionResponse) SetValue(value []AccessPackageResourceable)() {
|
||||
m.value = value
|
||||
}
|
||||
@ -0,0 +1,13 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageResourceCollectionResponseable
|
||||
type AccessPackageResourceCollectionResponseable interface {
|
||||
BaseCollectionPaginationCountResponseable
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetValue()([]AccessPackageResourceable)
|
||||
SetValue(value []AccessPackageResourceable)()
|
||||
}
|
||||
@ -0,0 +1,329 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time"
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageResourceEnvironment
|
||||
type AccessPackageResourceEnvironment struct {
|
||||
Entity
|
||||
// Read-only. Required.
|
||||
accessPackageResources []AccessPackageResourceable
|
||||
// Connection information of an environment used to connect to a resource.
|
||||
connectionInfo ConnectionInfoable
|
||||
// The display name of the user that created this object.
|
||||
createdBy *string
|
||||
// The date and time that this object was created. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
|
||||
createdDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time
|
||||
// The description of this object.
|
||||
description *string
|
||||
// The display name of this object.
|
||||
displayName *string
|
||||
// Determines whether this is default environment or not. It is set to true for all static origin systems, such as Azure AD groups and Azure AD Applications.
|
||||
isDefaultEnvironment *bool
|
||||
// The display name of the entity that last modified this object.
|
||||
modifiedBy *string
|
||||
// The date and time that this object was last modified. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
|
||||
modifiedDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time
|
||||
// The unique identifier of this environment in the origin system.
|
||||
originId *string
|
||||
// The type of the resource in the origin system, that is, SharePointOnline. Requires $filter (eq).
|
||||
originSystem *string
|
||||
}
|
||||
// NewAccessPackageResourceEnvironment instantiates a new accessPackageResourceEnvironment and sets the default values.
|
||||
func NewAccessPackageResourceEnvironment()(*AccessPackageResourceEnvironment) {
|
||||
m := &AccessPackageResourceEnvironment{
|
||||
Entity: *NewEntity(),
|
||||
}
|
||||
return m
|
||||
}
|
||||
// CreateAccessPackageResourceEnvironmentFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateAccessPackageResourceEnvironmentFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewAccessPackageResourceEnvironment(), nil
|
||||
}
|
||||
// GetAccessPackageResources gets the accessPackageResources property value. Read-only. Required.
|
||||
func (m *AccessPackageResourceEnvironment) GetAccessPackageResources()([]AccessPackageResourceable) {
|
||||
return m.accessPackageResources
|
||||
}
|
||||
// GetConnectionInfo gets the connectionInfo property value. Connection information of an environment used to connect to a resource.
|
||||
func (m *AccessPackageResourceEnvironment) GetConnectionInfo()(ConnectionInfoable) {
|
||||
return m.connectionInfo
|
||||
}
|
||||
// GetCreatedBy gets the createdBy property value. The display name of the user that created this object.
|
||||
func (m *AccessPackageResourceEnvironment) GetCreatedBy()(*string) {
|
||||
return m.createdBy
|
||||
}
|
||||
// GetCreatedDateTime gets the createdDateTime property value. The date and time that this object was created. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
|
||||
func (m *AccessPackageResourceEnvironment) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) {
|
||||
return m.createdDateTime
|
||||
}
|
||||
// GetDescription gets the description property value. The description of this object.
|
||||
func (m *AccessPackageResourceEnvironment) GetDescription()(*string) {
|
||||
return m.description
|
||||
}
|
||||
// GetDisplayName gets the displayName property value. The display name of this object.
|
||||
func (m *AccessPackageResourceEnvironment) GetDisplayName()(*string) {
|
||||
return m.displayName
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *AccessPackageResourceEnvironment) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := m.Entity.GetFieldDeserializers()
|
||||
res["accessPackageResources"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfObjectValues(CreateAccessPackageResourceFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]AccessPackageResourceable, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = v.(AccessPackageResourceable)
|
||||
}
|
||||
m.SetAccessPackageResources(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["connectionInfo"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetObjectValue(CreateConnectionInfoFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetConnectionInfo(val.(ConnectionInfoable))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["createdBy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetCreatedBy(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["createdDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetTimeValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetCreatedDateTime(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["description"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetDescription(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["displayName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetDisplayName(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["isDefaultEnvironment"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetBoolValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetIsDefaultEnvironment(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["modifiedBy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetModifiedBy(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["modifiedDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetTimeValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetModifiedDateTime(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["originId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetOriginId(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["originSystem"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetOriginSystem(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetIsDefaultEnvironment gets the isDefaultEnvironment property value. Determines whether this is default environment or not. It is set to true for all static origin systems, such as Azure AD groups and Azure AD Applications.
|
||||
func (m *AccessPackageResourceEnvironment) GetIsDefaultEnvironment()(*bool) {
|
||||
return m.isDefaultEnvironment
|
||||
}
|
||||
// GetModifiedBy gets the modifiedBy property value. The display name of the entity that last modified this object.
|
||||
func (m *AccessPackageResourceEnvironment) GetModifiedBy()(*string) {
|
||||
return m.modifiedBy
|
||||
}
|
||||
// GetModifiedDateTime gets the modifiedDateTime property value. The date and time that this object was last modified. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
|
||||
func (m *AccessPackageResourceEnvironment) GetModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) {
|
||||
return m.modifiedDateTime
|
||||
}
|
||||
// GetOriginId gets the originId property value. The unique identifier of this environment in the origin system.
|
||||
func (m *AccessPackageResourceEnvironment) GetOriginId()(*string) {
|
||||
return m.originId
|
||||
}
|
||||
// GetOriginSystem gets the originSystem property value. The type of the resource in the origin system, that is, SharePointOnline. Requires $filter (eq).
|
||||
func (m *AccessPackageResourceEnvironment) GetOriginSystem()(*string) {
|
||||
return m.originSystem
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *AccessPackageResourceEnvironment) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
err := m.Entity.Serialize(writer)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if m.GetAccessPackageResources() != nil {
|
||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetAccessPackageResources()))
|
||||
for i, v := range m.GetAccessPackageResources() {
|
||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
||||
}
|
||||
err = writer.WriteCollectionOfObjectValues("accessPackageResources", cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteObjectValue("connectionInfo", m.GetConnectionInfo())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("createdBy", m.GetCreatedBy())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteTimeValue("createdDateTime", m.GetCreatedDateTime())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("description", m.GetDescription())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("displayName", m.GetDisplayName())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteBoolValue("isDefaultEnvironment", m.GetIsDefaultEnvironment())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("modifiedBy", m.GetModifiedBy())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteTimeValue("modifiedDateTime", m.GetModifiedDateTime())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("originId", m.GetOriginId())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("originSystem", m.GetOriginSystem())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// SetAccessPackageResources sets the accessPackageResources property value. Read-only. Required.
|
||||
func (m *AccessPackageResourceEnvironment) SetAccessPackageResources(value []AccessPackageResourceable)() {
|
||||
m.accessPackageResources = value
|
||||
}
|
||||
// SetConnectionInfo sets the connectionInfo property value. Connection information of an environment used to connect to a resource.
|
||||
func (m *AccessPackageResourceEnvironment) SetConnectionInfo(value ConnectionInfoable)() {
|
||||
m.connectionInfo = value
|
||||
}
|
||||
// SetCreatedBy sets the createdBy property value. The display name of the user that created this object.
|
||||
func (m *AccessPackageResourceEnvironment) SetCreatedBy(value *string)() {
|
||||
m.createdBy = value
|
||||
}
|
||||
// SetCreatedDateTime sets the createdDateTime property value. The date and time that this object was created. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
|
||||
func (m *AccessPackageResourceEnvironment) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() {
|
||||
m.createdDateTime = value
|
||||
}
|
||||
// SetDescription sets the description property value. The description of this object.
|
||||
func (m *AccessPackageResourceEnvironment) SetDescription(value *string)() {
|
||||
m.description = value
|
||||
}
|
||||
// SetDisplayName sets the displayName property value. The display name of this object.
|
||||
func (m *AccessPackageResourceEnvironment) SetDisplayName(value *string)() {
|
||||
m.displayName = value
|
||||
}
|
||||
// SetIsDefaultEnvironment sets the isDefaultEnvironment property value. Determines whether this is default environment or not. It is set to true for all static origin systems, such as Azure AD groups and Azure AD Applications.
|
||||
func (m *AccessPackageResourceEnvironment) SetIsDefaultEnvironment(value *bool)() {
|
||||
m.isDefaultEnvironment = value
|
||||
}
|
||||
// SetModifiedBy sets the modifiedBy property value. The display name of the entity that last modified this object.
|
||||
func (m *AccessPackageResourceEnvironment) SetModifiedBy(value *string)() {
|
||||
m.modifiedBy = value
|
||||
}
|
||||
// SetModifiedDateTime sets the modifiedDateTime property value. The date and time that this object was last modified. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
|
||||
func (m *AccessPackageResourceEnvironment) SetModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() {
|
||||
m.modifiedDateTime = value
|
||||
}
|
||||
// SetOriginId sets the originId property value. The unique identifier of this environment in the origin system.
|
||||
func (m *AccessPackageResourceEnvironment) SetOriginId(value *string)() {
|
||||
m.originId = value
|
||||
}
|
||||
// SetOriginSystem sets the originSystem property value. The type of the resource in the origin system, that is, SharePointOnline. Requires $filter (eq).
|
||||
func (m *AccessPackageResourceEnvironment) SetOriginSystem(value *string)() {
|
||||
m.originSystem = value
|
||||
}
|
||||
@ -0,0 +1,68 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageResourceEnvironmentCollectionResponse
|
||||
type AccessPackageResourceEnvironmentCollectionResponse struct {
|
||||
BaseCollectionPaginationCountResponse
|
||||
// The value property
|
||||
value []AccessPackageResourceEnvironmentable
|
||||
}
|
||||
// NewAccessPackageResourceEnvironmentCollectionResponse instantiates a new AccessPackageResourceEnvironmentCollectionResponse and sets the default values.
|
||||
func NewAccessPackageResourceEnvironmentCollectionResponse()(*AccessPackageResourceEnvironmentCollectionResponse) {
|
||||
m := &AccessPackageResourceEnvironmentCollectionResponse{
|
||||
BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(),
|
||||
}
|
||||
return m
|
||||
}
|
||||
// CreateAccessPackageResourceEnvironmentCollectionResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateAccessPackageResourceEnvironmentCollectionResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewAccessPackageResourceEnvironmentCollectionResponse(), nil
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *AccessPackageResourceEnvironmentCollectionResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers()
|
||||
res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfObjectValues(CreateAccessPackageResourceEnvironmentFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]AccessPackageResourceEnvironmentable, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = v.(AccessPackageResourceEnvironmentable)
|
||||
}
|
||||
m.SetValue(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetValue gets the value property value. The value property
|
||||
func (m *AccessPackageResourceEnvironmentCollectionResponse) GetValue()([]AccessPackageResourceEnvironmentable) {
|
||||
return m.value
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *AccessPackageResourceEnvironmentCollectionResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
err := m.BaseCollectionPaginationCountResponse.Serialize(writer)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if m.GetValue() != nil {
|
||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue()))
|
||||
for i, v := range m.GetValue() {
|
||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
||||
}
|
||||
err = writer.WriteCollectionOfObjectValues("value", cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// SetValue sets the value property value. The value property
|
||||
func (m *AccessPackageResourceEnvironmentCollectionResponse) SetValue(value []AccessPackageResourceEnvironmentable)() {
|
||||
m.value = value
|
||||
}
|
||||
@ -0,0 +1,13 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageResourceEnvironmentCollectionResponseable
|
||||
type AccessPackageResourceEnvironmentCollectionResponseable interface {
|
||||
BaseCollectionPaginationCountResponseable
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetValue()([]AccessPackageResourceEnvironmentable)
|
||||
SetValue(value []AccessPackageResourceEnvironmentable)()
|
||||
}
|
||||
@ -0,0 +1,34 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time"
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageResourceEnvironmentable
|
||||
type AccessPackageResourceEnvironmentable interface {
|
||||
Entityable
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetAccessPackageResources()([]AccessPackageResourceable)
|
||||
GetConnectionInfo()(ConnectionInfoable)
|
||||
GetCreatedBy()(*string)
|
||||
GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)
|
||||
GetDescription()(*string)
|
||||
GetDisplayName()(*string)
|
||||
GetIsDefaultEnvironment()(*bool)
|
||||
GetModifiedBy()(*string)
|
||||
GetModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)
|
||||
GetOriginId()(*string)
|
||||
GetOriginSystem()(*string)
|
||||
SetAccessPackageResources(value []AccessPackageResourceable)()
|
||||
SetConnectionInfo(value ConnectionInfoable)()
|
||||
SetCreatedBy(value *string)()
|
||||
SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)()
|
||||
SetDescription(value *string)()
|
||||
SetDisplayName(value *string)()
|
||||
SetIsDefaultEnvironment(value *bool)()
|
||||
SetModifiedBy(value *string)()
|
||||
SetModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)()
|
||||
SetOriginId(value *string)()
|
||||
SetOriginSystem(value *string)()
|
||||
}
|
||||
@ -0,0 +1,295 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time"
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageResourceRequest provides operations to manage the sites property of the microsoft.graph.browserSiteList entity.
|
||||
type AccessPackageResourceRequest struct {
|
||||
Entity
|
||||
// The accessPackageResource property
|
||||
accessPackageResource AccessPackageResourceable
|
||||
// The unique ID of the access package catalog.
|
||||
catalogId *string
|
||||
// The executeImmediately property
|
||||
executeImmediately *bool
|
||||
// The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
|
||||
expirationDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time
|
||||
// If set, does not add the resource.
|
||||
isValidationOnly *bool
|
||||
// The requestor's justification for adding or removing the resource.
|
||||
justification *string
|
||||
// Read-only. Nullable. Supports $expand.
|
||||
requestor AccessPackageSubjectable
|
||||
// The outcome of whether the service was able to add the resource to the catalog. The value is Delivered if the resource was added or removed. Read-Only.
|
||||
requestState *string
|
||||
// The requestStatus property
|
||||
requestStatus *string
|
||||
// Use AdminAdd to add a resource, if the caller is an administrator or resource owner, AdminUpdate to update a resource, or AdminRemove to remove a resource.
|
||||
requestType *string
|
||||
}
|
||||
// NewAccessPackageResourceRequest instantiates a new accessPackageResourceRequest and sets the default values.
|
||||
func NewAccessPackageResourceRequest()(*AccessPackageResourceRequest) {
|
||||
m := &AccessPackageResourceRequest{
|
||||
Entity: *NewEntity(),
|
||||
}
|
||||
return m
|
||||
}
|
||||
// CreateAccessPackageResourceRequestFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateAccessPackageResourceRequestFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewAccessPackageResourceRequest(), nil
|
||||
}
|
||||
// GetAccessPackageResource gets the accessPackageResource property value. The accessPackageResource property
|
||||
func (m *AccessPackageResourceRequest) GetAccessPackageResource()(AccessPackageResourceable) {
|
||||
return m.accessPackageResource
|
||||
}
|
||||
// GetCatalogId gets the catalogId property value. The unique ID of the access package catalog.
|
||||
func (m *AccessPackageResourceRequest) GetCatalogId()(*string) {
|
||||
return m.catalogId
|
||||
}
|
||||
// GetExecuteImmediately gets the executeImmediately property value. The executeImmediately property
|
||||
func (m *AccessPackageResourceRequest) GetExecuteImmediately()(*bool) {
|
||||
return m.executeImmediately
|
||||
}
|
||||
// GetExpirationDateTime gets the expirationDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
|
||||
func (m *AccessPackageResourceRequest) GetExpirationDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) {
|
||||
return m.expirationDateTime
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *AccessPackageResourceRequest) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := m.Entity.GetFieldDeserializers()
|
||||
res["accessPackageResource"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetObjectValue(CreateAccessPackageResourceFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetAccessPackageResource(val.(AccessPackageResourceable))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["catalogId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetCatalogId(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["executeImmediately"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetBoolValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetExecuteImmediately(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["expirationDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetTimeValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetExpirationDateTime(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["isValidationOnly"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetBoolValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetIsValidationOnly(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["justification"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetJustification(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["requestor"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetObjectValue(CreateAccessPackageSubjectFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetRequestor(val.(AccessPackageSubjectable))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["requestState"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetRequestState(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["requestStatus"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetRequestStatus(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["requestType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetRequestType(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetIsValidationOnly gets the isValidationOnly property value. If set, does not add the resource.
|
||||
func (m *AccessPackageResourceRequest) GetIsValidationOnly()(*bool) {
|
||||
return m.isValidationOnly
|
||||
}
|
||||
// GetJustification gets the justification property value. The requestor's justification for adding or removing the resource.
|
||||
func (m *AccessPackageResourceRequest) GetJustification()(*string) {
|
||||
return m.justification
|
||||
}
|
||||
// GetRequestor gets the requestor property value. Read-only. Nullable. Supports $expand.
|
||||
func (m *AccessPackageResourceRequest) GetRequestor()(AccessPackageSubjectable) {
|
||||
return m.requestor
|
||||
}
|
||||
// GetRequestState gets the requestState property value. The outcome of whether the service was able to add the resource to the catalog. The value is Delivered if the resource was added or removed. Read-Only.
|
||||
func (m *AccessPackageResourceRequest) GetRequestState()(*string) {
|
||||
return m.requestState
|
||||
}
|
||||
// GetRequestStatus gets the requestStatus property value. The requestStatus property
|
||||
func (m *AccessPackageResourceRequest) GetRequestStatus()(*string) {
|
||||
return m.requestStatus
|
||||
}
|
||||
// GetRequestType gets the requestType property value. Use AdminAdd to add a resource, if the caller is an administrator or resource owner, AdminUpdate to update a resource, or AdminRemove to remove a resource.
|
||||
func (m *AccessPackageResourceRequest) GetRequestType()(*string) {
|
||||
return m.requestType
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *AccessPackageResourceRequest) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
err := m.Entity.Serialize(writer)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
{
|
||||
err = writer.WriteObjectValue("accessPackageResource", m.GetAccessPackageResource())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("catalogId", m.GetCatalogId())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteBoolValue("executeImmediately", m.GetExecuteImmediately())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteTimeValue("expirationDateTime", m.GetExpirationDateTime())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteBoolValue("isValidationOnly", m.GetIsValidationOnly())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("justification", m.GetJustification())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteObjectValue("requestor", m.GetRequestor())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("requestState", m.GetRequestState())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("requestStatus", m.GetRequestStatus())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("requestType", m.GetRequestType())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// SetAccessPackageResource sets the accessPackageResource property value. The accessPackageResource property
|
||||
func (m *AccessPackageResourceRequest) SetAccessPackageResource(value AccessPackageResourceable)() {
|
||||
m.accessPackageResource = value
|
||||
}
|
||||
// SetCatalogId sets the catalogId property value. The unique ID of the access package catalog.
|
||||
func (m *AccessPackageResourceRequest) SetCatalogId(value *string)() {
|
||||
m.catalogId = value
|
||||
}
|
||||
// SetExecuteImmediately sets the executeImmediately property value. The executeImmediately property
|
||||
func (m *AccessPackageResourceRequest) SetExecuteImmediately(value *bool)() {
|
||||
m.executeImmediately = value
|
||||
}
|
||||
// SetExpirationDateTime sets the expirationDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
|
||||
func (m *AccessPackageResourceRequest) SetExpirationDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() {
|
||||
m.expirationDateTime = value
|
||||
}
|
||||
// SetIsValidationOnly sets the isValidationOnly property value. If set, does not add the resource.
|
||||
func (m *AccessPackageResourceRequest) SetIsValidationOnly(value *bool)() {
|
||||
m.isValidationOnly = value
|
||||
}
|
||||
// SetJustification sets the justification property value. The requestor's justification for adding or removing the resource.
|
||||
func (m *AccessPackageResourceRequest) SetJustification(value *string)() {
|
||||
m.justification = value
|
||||
}
|
||||
// SetRequestor sets the requestor property value. Read-only. Nullable. Supports $expand.
|
||||
func (m *AccessPackageResourceRequest) SetRequestor(value AccessPackageSubjectable)() {
|
||||
m.requestor = value
|
||||
}
|
||||
// SetRequestState sets the requestState property value. The outcome of whether the service was able to add the resource to the catalog. The value is Delivered if the resource was added or removed. Read-Only.
|
||||
func (m *AccessPackageResourceRequest) SetRequestState(value *string)() {
|
||||
m.requestState = value
|
||||
}
|
||||
// SetRequestStatus sets the requestStatus property value. The requestStatus property
|
||||
func (m *AccessPackageResourceRequest) SetRequestStatus(value *string)() {
|
||||
m.requestStatus = value
|
||||
}
|
||||
// SetRequestType sets the requestType property value. Use AdminAdd to add a resource, if the caller is an administrator or resource owner, AdminUpdate to update a resource, or AdminRemove to remove a resource.
|
||||
func (m *AccessPackageResourceRequest) SetRequestType(value *string)() {
|
||||
m.requestType = value
|
||||
}
|
||||
@ -0,0 +1,68 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageResourceRequestCollectionResponse
|
||||
type AccessPackageResourceRequestCollectionResponse struct {
|
||||
BaseCollectionPaginationCountResponse
|
||||
// The value property
|
||||
value []AccessPackageResourceRequestable
|
||||
}
|
||||
// NewAccessPackageResourceRequestCollectionResponse instantiates a new AccessPackageResourceRequestCollectionResponse and sets the default values.
|
||||
func NewAccessPackageResourceRequestCollectionResponse()(*AccessPackageResourceRequestCollectionResponse) {
|
||||
m := &AccessPackageResourceRequestCollectionResponse{
|
||||
BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(),
|
||||
}
|
||||
return m
|
||||
}
|
||||
// CreateAccessPackageResourceRequestCollectionResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateAccessPackageResourceRequestCollectionResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewAccessPackageResourceRequestCollectionResponse(), nil
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *AccessPackageResourceRequestCollectionResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers()
|
||||
res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfObjectValues(CreateAccessPackageResourceRequestFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]AccessPackageResourceRequestable, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = v.(AccessPackageResourceRequestable)
|
||||
}
|
||||
m.SetValue(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetValue gets the value property value. The value property
|
||||
func (m *AccessPackageResourceRequestCollectionResponse) GetValue()([]AccessPackageResourceRequestable) {
|
||||
return m.value
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *AccessPackageResourceRequestCollectionResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
err := m.BaseCollectionPaginationCountResponse.Serialize(writer)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if m.GetValue() != nil {
|
||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue()))
|
||||
for i, v := range m.GetValue() {
|
||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
||||
}
|
||||
err = writer.WriteCollectionOfObjectValues("value", cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// SetValue sets the value property value. The value property
|
||||
func (m *AccessPackageResourceRequestCollectionResponse) SetValue(value []AccessPackageResourceRequestable)() {
|
||||
m.value = value
|
||||
}
|
||||
@ -0,0 +1,13 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageResourceRequestCollectionResponseable
|
||||
type AccessPackageResourceRequestCollectionResponseable interface {
|
||||
BaseCollectionPaginationCountResponseable
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetValue()([]AccessPackageResourceRequestable)
|
||||
SetValue(value []AccessPackageResourceRequestable)()
|
||||
}
|
||||
@ -0,0 +1,32 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time"
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageResourceRequestable
|
||||
type AccessPackageResourceRequestable interface {
|
||||
Entityable
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetAccessPackageResource()(AccessPackageResourceable)
|
||||
GetCatalogId()(*string)
|
||||
GetExecuteImmediately()(*bool)
|
||||
GetExpirationDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)
|
||||
GetIsValidationOnly()(*bool)
|
||||
GetJustification()(*string)
|
||||
GetRequestor()(AccessPackageSubjectable)
|
||||
GetRequestState()(*string)
|
||||
GetRequestStatus()(*string)
|
||||
GetRequestType()(*string)
|
||||
SetAccessPackageResource(value AccessPackageResourceable)()
|
||||
SetCatalogId(value *string)()
|
||||
SetExecuteImmediately(value *bool)()
|
||||
SetExpirationDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)()
|
||||
SetIsValidationOnly(value *bool)()
|
||||
SetJustification(value *string)()
|
||||
SetRequestor(value AccessPackageSubjectable)()
|
||||
SetRequestState(value *string)()
|
||||
SetRequestStatus(value *string)()
|
||||
SetRequestType(value *string)()
|
||||
}
|
||||
@ -0,0 +1,164 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageResourceRole provides operations to manage the sites property of the microsoft.graph.browserSiteList entity.
|
||||
type AccessPackageResourceRole struct {
|
||||
Entity
|
||||
// The accessPackageResource property
|
||||
accessPackageResource AccessPackageResourceable
|
||||
// A description for the resource role.
|
||||
description *string
|
||||
// The display name of the resource role such as the role defined by the application.
|
||||
displayName *string
|
||||
// The unique identifier of the resource role in the origin system. For a SharePoint Online site, the originId will be the sequence number of the role in the site.
|
||||
originId *string
|
||||
// The type of the resource in the origin system, such as SharePointOnline, AadApplication or AadGroup.
|
||||
originSystem *string
|
||||
}
|
||||
// NewAccessPackageResourceRole instantiates a new accessPackageResourceRole and sets the default values.
|
||||
func NewAccessPackageResourceRole()(*AccessPackageResourceRole) {
|
||||
m := &AccessPackageResourceRole{
|
||||
Entity: *NewEntity(),
|
||||
}
|
||||
return m
|
||||
}
|
||||
// CreateAccessPackageResourceRoleFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateAccessPackageResourceRoleFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewAccessPackageResourceRole(), nil
|
||||
}
|
||||
// GetAccessPackageResource gets the accessPackageResource property value. The accessPackageResource property
|
||||
func (m *AccessPackageResourceRole) GetAccessPackageResource()(AccessPackageResourceable) {
|
||||
return m.accessPackageResource
|
||||
}
|
||||
// GetDescription gets the description property value. A description for the resource role.
|
||||
func (m *AccessPackageResourceRole) GetDescription()(*string) {
|
||||
return m.description
|
||||
}
|
||||
// GetDisplayName gets the displayName property value. The display name of the resource role such as the role defined by the application.
|
||||
func (m *AccessPackageResourceRole) GetDisplayName()(*string) {
|
||||
return m.displayName
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *AccessPackageResourceRole) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := m.Entity.GetFieldDeserializers()
|
||||
res["accessPackageResource"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetObjectValue(CreateAccessPackageResourceFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetAccessPackageResource(val.(AccessPackageResourceable))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["description"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetDescription(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["displayName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetDisplayName(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["originId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetOriginId(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["originSystem"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetOriginSystem(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetOriginId gets the originId property value. The unique identifier of the resource role in the origin system. For a SharePoint Online site, the originId will be the sequence number of the role in the site.
|
||||
func (m *AccessPackageResourceRole) GetOriginId()(*string) {
|
||||
return m.originId
|
||||
}
|
||||
// GetOriginSystem gets the originSystem property value. The type of the resource in the origin system, such as SharePointOnline, AadApplication or AadGroup.
|
||||
func (m *AccessPackageResourceRole) GetOriginSystem()(*string) {
|
||||
return m.originSystem
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *AccessPackageResourceRole) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
err := m.Entity.Serialize(writer)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
{
|
||||
err = writer.WriteObjectValue("accessPackageResource", m.GetAccessPackageResource())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("description", m.GetDescription())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("displayName", m.GetDisplayName())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("originId", m.GetOriginId())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("originSystem", m.GetOriginSystem())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// SetAccessPackageResource sets the accessPackageResource property value. The accessPackageResource property
|
||||
func (m *AccessPackageResourceRole) SetAccessPackageResource(value AccessPackageResourceable)() {
|
||||
m.accessPackageResource = value
|
||||
}
|
||||
// SetDescription sets the description property value. A description for the resource role.
|
||||
func (m *AccessPackageResourceRole) SetDescription(value *string)() {
|
||||
m.description = value
|
||||
}
|
||||
// SetDisplayName sets the displayName property value. The display name of the resource role such as the role defined by the application.
|
||||
func (m *AccessPackageResourceRole) SetDisplayName(value *string)() {
|
||||
m.displayName = value
|
||||
}
|
||||
// SetOriginId sets the originId property value. The unique identifier of the resource role in the origin system. For a SharePoint Online site, the originId will be the sequence number of the role in the site.
|
||||
func (m *AccessPackageResourceRole) SetOriginId(value *string)() {
|
||||
m.originId = value
|
||||
}
|
||||
// SetOriginSystem sets the originSystem property value. The type of the resource in the origin system, such as SharePointOnline, AadApplication or AadGroup.
|
||||
func (m *AccessPackageResourceRole) SetOriginSystem(value *string)() {
|
||||
m.originSystem = value
|
||||
}
|
||||
@ -0,0 +1,68 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageResourceRoleCollectionResponse
|
||||
type AccessPackageResourceRoleCollectionResponse struct {
|
||||
BaseCollectionPaginationCountResponse
|
||||
// The value property
|
||||
value []AccessPackageResourceRoleable
|
||||
}
|
||||
// NewAccessPackageResourceRoleCollectionResponse instantiates a new AccessPackageResourceRoleCollectionResponse and sets the default values.
|
||||
func NewAccessPackageResourceRoleCollectionResponse()(*AccessPackageResourceRoleCollectionResponse) {
|
||||
m := &AccessPackageResourceRoleCollectionResponse{
|
||||
BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(),
|
||||
}
|
||||
return m
|
||||
}
|
||||
// CreateAccessPackageResourceRoleCollectionResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateAccessPackageResourceRoleCollectionResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewAccessPackageResourceRoleCollectionResponse(), nil
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *AccessPackageResourceRoleCollectionResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers()
|
||||
res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfObjectValues(CreateAccessPackageResourceRoleFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]AccessPackageResourceRoleable, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = v.(AccessPackageResourceRoleable)
|
||||
}
|
||||
m.SetValue(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetValue gets the value property value. The value property
|
||||
func (m *AccessPackageResourceRoleCollectionResponse) GetValue()([]AccessPackageResourceRoleable) {
|
||||
return m.value
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *AccessPackageResourceRoleCollectionResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
err := m.BaseCollectionPaginationCountResponse.Serialize(writer)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if m.GetValue() != nil {
|
||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue()))
|
||||
for i, v := range m.GetValue() {
|
||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
||||
}
|
||||
err = writer.WriteCollectionOfObjectValues("value", cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// SetValue sets the value property value. The value property
|
||||
func (m *AccessPackageResourceRoleCollectionResponse) SetValue(value []AccessPackageResourceRoleable)() {
|
||||
m.value = value
|
||||
}
|
||||
@ -0,0 +1,13 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageResourceRoleCollectionResponseable
|
||||
type AccessPackageResourceRoleCollectionResponseable interface {
|
||||
BaseCollectionPaginationCountResponseable
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetValue()([]AccessPackageResourceRoleable)
|
||||
SetValue(value []AccessPackageResourceRoleable)()
|
||||
}
|
||||
@ -0,0 +1,191 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time"
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageResourceRoleScope provides operations to manage the sites property of the microsoft.graph.browserSiteList entity.
|
||||
type AccessPackageResourceRoleScope struct {
|
||||
Entity
|
||||
// Read-only. Nullable. Supports $expand.
|
||||
accessPackageResourceRole AccessPackageResourceRoleable
|
||||
// The accessPackageResourceScope property
|
||||
accessPackageResourceScope AccessPackageResourceScopeable
|
||||
// The createdBy property
|
||||
createdBy *string
|
||||
// The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
|
||||
createdDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time
|
||||
// The modifiedBy property
|
||||
modifiedBy *string
|
||||
// The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
|
||||
modifiedDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time
|
||||
}
|
||||
// NewAccessPackageResourceRoleScope instantiates a new accessPackageResourceRoleScope and sets the default values.
|
||||
func NewAccessPackageResourceRoleScope()(*AccessPackageResourceRoleScope) {
|
||||
m := &AccessPackageResourceRoleScope{
|
||||
Entity: *NewEntity(),
|
||||
}
|
||||
return m
|
||||
}
|
||||
// CreateAccessPackageResourceRoleScopeFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateAccessPackageResourceRoleScopeFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewAccessPackageResourceRoleScope(), nil
|
||||
}
|
||||
// GetAccessPackageResourceRole gets the accessPackageResourceRole property value. Read-only. Nullable. Supports $expand.
|
||||
func (m *AccessPackageResourceRoleScope) GetAccessPackageResourceRole()(AccessPackageResourceRoleable) {
|
||||
return m.accessPackageResourceRole
|
||||
}
|
||||
// GetAccessPackageResourceScope gets the accessPackageResourceScope property value. The accessPackageResourceScope property
|
||||
func (m *AccessPackageResourceRoleScope) GetAccessPackageResourceScope()(AccessPackageResourceScopeable) {
|
||||
return m.accessPackageResourceScope
|
||||
}
|
||||
// GetCreatedBy gets the createdBy property value. The createdBy property
|
||||
func (m *AccessPackageResourceRoleScope) GetCreatedBy()(*string) {
|
||||
return m.createdBy
|
||||
}
|
||||
// GetCreatedDateTime gets the createdDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
|
||||
func (m *AccessPackageResourceRoleScope) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) {
|
||||
return m.createdDateTime
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *AccessPackageResourceRoleScope) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := m.Entity.GetFieldDeserializers()
|
||||
res["accessPackageResourceRole"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetObjectValue(CreateAccessPackageResourceRoleFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetAccessPackageResourceRole(val.(AccessPackageResourceRoleable))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["accessPackageResourceScope"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetObjectValue(CreateAccessPackageResourceScopeFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetAccessPackageResourceScope(val.(AccessPackageResourceScopeable))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["createdBy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetCreatedBy(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["createdDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetTimeValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetCreatedDateTime(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["modifiedBy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetModifiedBy(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["modifiedDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetTimeValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetModifiedDateTime(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetModifiedBy gets the modifiedBy property value. The modifiedBy property
|
||||
func (m *AccessPackageResourceRoleScope) GetModifiedBy()(*string) {
|
||||
return m.modifiedBy
|
||||
}
|
||||
// GetModifiedDateTime gets the modifiedDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
|
||||
func (m *AccessPackageResourceRoleScope) GetModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) {
|
||||
return m.modifiedDateTime
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *AccessPackageResourceRoleScope) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
err := m.Entity.Serialize(writer)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
{
|
||||
err = writer.WriteObjectValue("accessPackageResourceRole", m.GetAccessPackageResourceRole())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteObjectValue("accessPackageResourceScope", m.GetAccessPackageResourceScope())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("createdBy", m.GetCreatedBy())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteTimeValue("createdDateTime", m.GetCreatedDateTime())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("modifiedBy", m.GetModifiedBy())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteTimeValue("modifiedDateTime", m.GetModifiedDateTime())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// SetAccessPackageResourceRole sets the accessPackageResourceRole property value. Read-only. Nullable. Supports $expand.
|
||||
func (m *AccessPackageResourceRoleScope) SetAccessPackageResourceRole(value AccessPackageResourceRoleable)() {
|
||||
m.accessPackageResourceRole = value
|
||||
}
|
||||
// SetAccessPackageResourceScope sets the accessPackageResourceScope property value. The accessPackageResourceScope property
|
||||
func (m *AccessPackageResourceRoleScope) SetAccessPackageResourceScope(value AccessPackageResourceScopeable)() {
|
||||
m.accessPackageResourceScope = value
|
||||
}
|
||||
// SetCreatedBy sets the createdBy property value. The createdBy property
|
||||
func (m *AccessPackageResourceRoleScope) SetCreatedBy(value *string)() {
|
||||
m.createdBy = value
|
||||
}
|
||||
// SetCreatedDateTime sets the createdDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
|
||||
func (m *AccessPackageResourceRoleScope) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() {
|
||||
m.createdDateTime = value
|
||||
}
|
||||
// SetModifiedBy sets the modifiedBy property value. The modifiedBy property
|
||||
func (m *AccessPackageResourceRoleScope) SetModifiedBy(value *string)() {
|
||||
m.modifiedBy = value
|
||||
}
|
||||
// SetModifiedDateTime sets the modifiedDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
|
||||
func (m *AccessPackageResourceRoleScope) SetModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() {
|
||||
m.modifiedDateTime = value
|
||||
}
|
||||
@ -0,0 +1,68 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageResourceRoleScopeCollectionResponse
|
||||
type AccessPackageResourceRoleScopeCollectionResponse struct {
|
||||
BaseCollectionPaginationCountResponse
|
||||
// The value property
|
||||
value []AccessPackageResourceRoleScopeable
|
||||
}
|
||||
// NewAccessPackageResourceRoleScopeCollectionResponse instantiates a new AccessPackageResourceRoleScopeCollectionResponse and sets the default values.
|
||||
func NewAccessPackageResourceRoleScopeCollectionResponse()(*AccessPackageResourceRoleScopeCollectionResponse) {
|
||||
m := &AccessPackageResourceRoleScopeCollectionResponse{
|
||||
BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(),
|
||||
}
|
||||
return m
|
||||
}
|
||||
// CreateAccessPackageResourceRoleScopeCollectionResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateAccessPackageResourceRoleScopeCollectionResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewAccessPackageResourceRoleScopeCollectionResponse(), nil
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *AccessPackageResourceRoleScopeCollectionResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers()
|
||||
res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfObjectValues(CreateAccessPackageResourceRoleScopeFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]AccessPackageResourceRoleScopeable, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = v.(AccessPackageResourceRoleScopeable)
|
||||
}
|
||||
m.SetValue(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetValue gets the value property value. The value property
|
||||
func (m *AccessPackageResourceRoleScopeCollectionResponse) GetValue()([]AccessPackageResourceRoleScopeable) {
|
||||
return m.value
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *AccessPackageResourceRoleScopeCollectionResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
err := m.BaseCollectionPaginationCountResponse.Serialize(writer)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if m.GetValue() != nil {
|
||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue()))
|
||||
for i, v := range m.GetValue() {
|
||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
||||
}
|
||||
err = writer.WriteCollectionOfObjectValues("value", cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// SetValue sets the value property value. The value property
|
||||
func (m *AccessPackageResourceRoleScopeCollectionResponse) SetValue(value []AccessPackageResourceRoleScopeable)() {
|
||||
m.value = value
|
||||
}
|
||||
@ -0,0 +1,13 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageResourceRoleScopeCollectionResponseable
|
||||
type AccessPackageResourceRoleScopeCollectionResponseable interface {
|
||||
BaseCollectionPaginationCountResponseable
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetValue()([]AccessPackageResourceRoleScopeable)
|
||||
SetValue(value []AccessPackageResourceRoleScopeable)()
|
||||
}
|
||||
@ -0,0 +1,24 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time"
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageResourceRoleScopeable
|
||||
type AccessPackageResourceRoleScopeable interface {
|
||||
Entityable
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetAccessPackageResourceRole()(AccessPackageResourceRoleable)
|
||||
GetAccessPackageResourceScope()(AccessPackageResourceScopeable)
|
||||
GetCreatedBy()(*string)
|
||||
GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)
|
||||
GetModifiedBy()(*string)
|
||||
GetModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)
|
||||
SetAccessPackageResourceRole(value AccessPackageResourceRoleable)()
|
||||
SetAccessPackageResourceScope(value AccessPackageResourceScopeable)()
|
||||
SetCreatedBy(value *string)()
|
||||
SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)()
|
||||
SetModifiedBy(value *string)()
|
||||
SetModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)()
|
||||
}
|
||||
@ -0,0 +1,21 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageResourceRoleable
|
||||
type AccessPackageResourceRoleable interface {
|
||||
Entityable
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetAccessPackageResource()(AccessPackageResourceable)
|
||||
GetDescription()(*string)
|
||||
GetDisplayName()(*string)
|
||||
GetOriginId()(*string)
|
||||
GetOriginSystem()(*string)
|
||||
SetAccessPackageResource(value AccessPackageResourceable)()
|
||||
SetDescription(value *string)()
|
||||
SetDisplayName(value *string)()
|
||||
SetOriginId(value *string)()
|
||||
SetOriginSystem(value *string)()
|
||||
}
|
||||
@ -0,0 +1,242 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageResourceScope provides operations to manage the sites property of the microsoft.graph.browserSiteList entity.
|
||||
type AccessPackageResourceScope struct {
|
||||
Entity
|
||||
// The accessPackageResource property
|
||||
accessPackageResource AccessPackageResourceable
|
||||
// The description of the scope.
|
||||
description *string
|
||||
// The display name of the scope.
|
||||
displayName *string
|
||||
// True if the scopes are arranged in a hierarchy and this is the top or root scope of the resource.
|
||||
isRootScope *bool
|
||||
// The unique identifier for the scope in the resource as defined in the origin system.
|
||||
originId *string
|
||||
// The origin system for the scope.
|
||||
originSystem *string
|
||||
// The origin system for the role, if different.
|
||||
roleOriginId *string
|
||||
// A resource locator for the scope.
|
||||
url *string
|
||||
}
|
||||
// NewAccessPackageResourceScope instantiates a new accessPackageResourceScope and sets the default values.
|
||||
func NewAccessPackageResourceScope()(*AccessPackageResourceScope) {
|
||||
m := &AccessPackageResourceScope{
|
||||
Entity: *NewEntity(),
|
||||
}
|
||||
return m
|
||||
}
|
||||
// CreateAccessPackageResourceScopeFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateAccessPackageResourceScopeFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewAccessPackageResourceScope(), nil
|
||||
}
|
||||
// GetAccessPackageResource gets the accessPackageResource property value. The accessPackageResource property
|
||||
func (m *AccessPackageResourceScope) GetAccessPackageResource()(AccessPackageResourceable) {
|
||||
return m.accessPackageResource
|
||||
}
|
||||
// GetDescription gets the description property value. The description of the scope.
|
||||
func (m *AccessPackageResourceScope) GetDescription()(*string) {
|
||||
return m.description
|
||||
}
|
||||
// GetDisplayName gets the displayName property value. The display name of the scope.
|
||||
func (m *AccessPackageResourceScope) GetDisplayName()(*string) {
|
||||
return m.displayName
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *AccessPackageResourceScope) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := m.Entity.GetFieldDeserializers()
|
||||
res["accessPackageResource"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetObjectValue(CreateAccessPackageResourceFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetAccessPackageResource(val.(AccessPackageResourceable))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["description"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetDescription(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["displayName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetDisplayName(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["isRootScope"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetBoolValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetIsRootScope(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["originId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetOriginId(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["originSystem"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetOriginSystem(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["roleOriginId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetRoleOriginId(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetUrl(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetIsRootScope gets the isRootScope property value. True if the scopes are arranged in a hierarchy and this is the top or root scope of the resource.
|
||||
func (m *AccessPackageResourceScope) GetIsRootScope()(*bool) {
|
||||
return m.isRootScope
|
||||
}
|
||||
// GetOriginId gets the originId property value. The unique identifier for the scope in the resource as defined in the origin system.
|
||||
func (m *AccessPackageResourceScope) GetOriginId()(*string) {
|
||||
return m.originId
|
||||
}
|
||||
// GetOriginSystem gets the originSystem property value. The origin system for the scope.
|
||||
func (m *AccessPackageResourceScope) GetOriginSystem()(*string) {
|
||||
return m.originSystem
|
||||
}
|
||||
// GetRoleOriginId gets the roleOriginId property value. The origin system for the role, if different.
|
||||
func (m *AccessPackageResourceScope) GetRoleOriginId()(*string) {
|
||||
return m.roleOriginId
|
||||
}
|
||||
// GetUrl gets the url property value. A resource locator for the scope.
|
||||
func (m *AccessPackageResourceScope) GetUrl()(*string) {
|
||||
return m.url
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *AccessPackageResourceScope) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
err := m.Entity.Serialize(writer)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
{
|
||||
err = writer.WriteObjectValue("accessPackageResource", m.GetAccessPackageResource())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("description", m.GetDescription())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("displayName", m.GetDisplayName())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteBoolValue("isRootScope", m.GetIsRootScope())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("originId", m.GetOriginId())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("originSystem", m.GetOriginSystem())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("roleOriginId", m.GetRoleOriginId())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("url", m.GetUrl())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// SetAccessPackageResource sets the accessPackageResource property value. The accessPackageResource property
|
||||
func (m *AccessPackageResourceScope) SetAccessPackageResource(value AccessPackageResourceable)() {
|
||||
m.accessPackageResource = value
|
||||
}
|
||||
// SetDescription sets the description property value. The description of the scope.
|
||||
func (m *AccessPackageResourceScope) SetDescription(value *string)() {
|
||||
m.description = value
|
||||
}
|
||||
// SetDisplayName sets the displayName property value. The display name of the scope.
|
||||
func (m *AccessPackageResourceScope) SetDisplayName(value *string)() {
|
||||
m.displayName = value
|
||||
}
|
||||
// SetIsRootScope sets the isRootScope property value. True if the scopes are arranged in a hierarchy and this is the top or root scope of the resource.
|
||||
func (m *AccessPackageResourceScope) SetIsRootScope(value *bool)() {
|
||||
m.isRootScope = value
|
||||
}
|
||||
// SetOriginId sets the originId property value. The unique identifier for the scope in the resource as defined in the origin system.
|
||||
func (m *AccessPackageResourceScope) SetOriginId(value *string)() {
|
||||
m.originId = value
|
||||
}
|
||||
// SetOriginSystem sets the originSystem property value. The origin system for the scope.
|
||||
func (m *AccessPackageResourceScope) SetOriginSystem(value *string)() {
|
||||
m.originSystem = value
|
||||
}
|
||||
// SetRoleOriginId sets the roleOriginId property value. The origin system for the role, if different.
|
||||
func (m *AccessPackageResourceScope) SetRoleOriginId(value *string)() {
|
||||
m.roleOriginId = value
|
||||
}
|
||||
// SetUrl sets the url property value. A resource locator for the scope.
|
||||
func (m *AccessPackageResourceScope) SetUrl(value *string)() {
|
||||
m.url = value
|
||||
}
|
||||
@ -0,0 +1,68 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageResourceScopeCollectionResponse
|
||||
type AccessPackageResourceScopeCollectionResponse struct {
|
||||
BaseCollectionPaginationCountResponse
|
||||
// The value property
|
||||
value []AccessPackageResourceScopeable
|
||||
}
|
||||
// NewAccessPackageResourceScopeCollectionResponse instantiates a new AccessPackageResourceScopeCollectionResponse and sets the default values.
|
||||
func NewAccessPackageResourceScopeCollectionResponse()(*AccessPackageResourceScopeCollectionResponse) {
|
||||
m := &AccessPackageResourceScopeCollectionResponse{
|
||||
BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(),
|
||||
}
|
||||
return m
|
||||
}
|
||||
// CreateAccessPackageResourceScopeCollectionResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateAccessPackageResourceScopeCollectionResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewAccessPackageResourceScopeCollectionResponse(), nil
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *AccessPackageResourceScopeCollectionResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers()
|
||||
res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfObjectValues(CreateAccessPackageResourceScopeFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]AccessPackageResourceScopeable, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = v.(AccessPackageResourceScopeable)
|
||||
}
|
||||
m.SetValue(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetValue gets the value property value. The value property
|
||||
func (m *AccessPackageResourceScopeCollectionResponse) GetValue()([]AccessPackageResourceScopeable) {
|
||||
return m.value
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *AccessPackageResourceScopeCollectionResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
err := m.BaseCollectionPaginationCountResponse.Serialize(writer)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if m.GetValue() != nil {
|
||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue()))
|
||||
for i, v := range m.GetValue() {
|
||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
||||
}
|
||||
err = writer.WriteCollectionOfObjectValues("value", cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// SetValue sets the value property value. The value property
|
||||
func (m *AccessPackageResourceScopeCollectionResponse) SetValue(value []AccessPackageResourceScopeable)() {
|
||||
m.value = value
|
||||
}
|
||||
@ -0,0 +1,13 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageResourceScopeCollectionResponseable
|
||||
type AccessPackageResourceScopeCollectionResponseable interface {
|
||||
BaseCollectionPaginationCountResponseable
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetValue()([]AccessPackageResourceScopeable)
|
||||
SetValue(value []AccessPackageResourceScopeable)()
|
||||
}
|
||||
@ -0,0 +1,27 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageResourceScopeable
|
||||
type AccessPackageResourceScopeable interface {
|
||||
Entityable
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetAccessPackageResource()(AccessPackageResourceable)
|
||||
GetDescription()(*string)
|
||||
GetDisplayName()(*string)
|
||||
GetIsRootScope()(*bool)
|
||||
GetOriginId()(*string)
|
||||
GetOriginSystem()(*string)
|
||||
GetRoleOriginId()(*string)
|
||||
GetUrl()(*string)
|
||||
SetAccessPackageResource(value AccessPackageResourceable)()
|
||||
SetDescription(value *string)()
|
||||
SetDisplayName(value *string)()
|
||||
SetIsRootScope(value *bool)()
|
||||
SetOriginId(value *string)()
|
||||
SetOriginSystem(value *string)()
|
||||
SetRoleOriginId(value *string)()
|
||||
SetUrl(value *string)()
|
||||
}
|
||||
@ -0,0 +1,38 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time"
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageResourceable
|
||||
type AccessPackageResourceable interface {
|
||||
Entityable
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetAccessPackageResourceEnvironment()(AccessPackageResourceEnvironmentable)
|
||||
GetAccessPackageResourceRoles()([]AccessPackageResourceRoleable)
|
||||
GetAccessPackageResourceScopes()([]AccessPackageResourceScopeable)
|
||||
GetAddedBy()(*string)
|
||||
GetAddedOn()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)
|
||||
GetAttributes()([]AccessPackageResourceAttributeable)
|
||||
GetDescription()(*string)
|
||||
GetDisplayName()(*string)
|
||||
GetIsPendingOnboarding()(*bool)
|
||||
GetOriginId()(*string)
|
||||
GetOriginSystem()(*string)
|
||||
GetResourceType()(*string)
|
||||
GetUrl()(*string)
|
||||
SetAccessPackageResourceEnvironment(value AccessPackageResourceEnvironmentable)()
|
||||
SetAccessPackageResourceRoles(value []AccessPackageResourceRoleable)()
|
||||
SetAccessPackageResourceScopes(value []AccessPackageResourceScopeable)()
|
||||
SetAddedBy(value *string)()
|
||||
SetAddedOn(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)()
|
||||
SetAttributes(value []AccessPackageResourceAttributeable)()
|
||||
SetDescription(value *string)()
|
||||
SetDisplayName(value *string)()
|
||||
SetIsPendingOnboarding(value *bool)()
|
||||
SetOriginId(value *string)()
|
||||
SetOriginSystem(value *string)()
|
||||
SetResourceType(value *string)()
|
||||
SetUrl(value *string)()
|
||||
}
|
||||
@ -0,0 +1,295 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageSubject
|
||||
type AccessPackageSubject struct {
|
||||
Entity
|
||||
// The altSecId property
|
||||
altSecId *string
|
||||
// The connected organization of the subject. Read-only. Nullable.
|
||||
connectedOrganization ConnectedOrganizationable
|
||||
// The identifier of the connected organization of the subject.
|
||||
connectedOrganizationId *string
|
||||
// The display name of the subject.
|
||||
displayName *string
|
||||
// The email address of the subject.
|
||||
email *string
|
||||
// The object identifier of the subject. null if the subject is not yet a user in the tenant.
|
||||
objectId *string
|
||||
// The onPremisesSecurityIdentifier property
|
||||
onPremisesSecurityIdentifier *string
|
||||
// The principal name, if known, of the subject.
|
||||
principalName *string
|
||||
// The subjectLifecycle property
|
||||
subjectLifecycle *AccessPackageSubjectLifecycle
|
||||
// The resource type of the subject.
|
||||
type_escaped *string
|
||||
}
|
||||
// NewAccessPackageSubject instantiates a new accessPackageSubject and sets the default values.
|
||||
func NewAccessPackageSubject()(*AccessPackageSubject) {
|
||||
m := &AccessPackageSubject{
|
||||
Entity: *NewEntity(),
|
||||
}
|
||||
return m
|
||||
}
|
||||
// CreateAccessPackageSubjectFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateAccessPackageSubjectFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewAccessPackageSubject(), nil
|
||||
}
|
||||
// GetAltSecId gets the altSecId property value. The altSecId property
|
||||
func (m *AccessPackageSubject) GetAltSecId()(*string) {
|
||||
return m.altSecId
|
||||
}
|
||||
// GetConnectedOrganization gets the connectedOrganization property value. The connected organization of the subject. Read-only. Nullable.
|
||||
func (m *AccessPackageSubject) GetConnectedOrganization()(ConnectedOrganizationable) {
|
||||
return m.connectedOrganization
|
||||
}
|
||||
// GetConnectedOrganizationId gets the connectedOrganizationId property value. The identifier of the connected organization of the subject.
|
||||
func (m *AccessPackageSubject) GetConnectedOrganizationId()(*string) {
|
||||
return m.connectedOrganizationId
|
||||
}
|
||||
// GetDisplayName gets the displayName property value. The display name of the subject.
|
||||
func (m *AccessPackageSubject) GetDisplayName()(*string) {
|
||||
return m.displayName
|
||||
}
|
||||
// GetEmail gets the email property value. The email address of the subject.
|
||||
func (m *AccessPackageSubject) GetEmail()(*string) {
|
||||
return m.email
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *AccessPackageSubject) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := m.Entity.GetFieldDeserializers()
|
||||
res["altSecId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetAltSecId(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["connectedOrganization"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetObjectValue(CreateConnectedOrganizationFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetConnectedOrganization(val.(ConnectedOrganizationable))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["connectedOrganizationId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetConnectedOrganizationId(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["displayName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetDisplayName(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["email"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetEmail(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["objectId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetObjectId(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["onPremisesSecurityIdentifier"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetOnPremisesSecurityIdentifier(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["principalName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetPrincipalName(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["subjectLifecycle"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetEnumValue(ParseAccessPackageSubjectLifecycle)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetSubjectLifecycle(val.(*AccessPackageSubjectLifecycle))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetType(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetObjectId gets the objectId property value. The object identifier of the subject. null if the subject is not yet a user in the tenant.
|
||||
func (m *AccessPackageSubject) GetObjectId()(*string) {
|
||||
return m.objectId
|
||||
}
|
||||
// GetOnPremisesSecurityIdentifier gets the onPremisesSecurityIdentifier property value. The onPremisesSecurityIdentifier property
|
||||
func (m *AccessPackageSubject) GetOnPremisesSecurityIdentifier()(*string) {
|
||||
return m.onPremisesSecurityIdentifier
|
||||
}
|
||||
// GetPrincipalName gets the principalName property value. The principal name, if known, of the subject.
|
||||
func (m *AccessPackageSubject) GetPrincipalName()(*string) {
|
||||
return m.principalName
|
||||
}
|
||||
// GetSubjectLifecycle gets the subjectLifecycle property value. The subjectLifecycle property
|
||||
func (m *AccessPackageSubject) GetSubjectLifecycle()(*AccessPackageSubjectLifecycle) {
|
||||
return m.subjectLifecycle
|
||||
}
|
||||
// GetType gets the type property value. The resource type of the subject.
|
||||
func (m *AccessPackageSubject) GetType()(*string) {
|
||||
return m.type_escaped
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *AccessPackageSubject) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
err := m.Entity.Serialize(writer)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("altSecId", m.GetAltSecId())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteObjectValue("connectedOrganization", m.GetConnectedOrganization())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("connectedOrganizationId", m.GetConnectedOrganizationId())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("displayName", m.GetDisplayName())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("email", m.GetEmail())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("objectId", m.GetObjectId())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("onPremisesSecurityIdentifier", m.GetOnPremisesSecurityIdentifier())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("principalName", m.GetPrincipalName())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if m.GetSubjectLifecycle() != nil {
|
||||
cast := (*m.GetSubjectLifecycle()).String()
|
||||
err = writer.WriteStringValue("subjectLifecycle", &cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("type", m.GetType())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// SetAltSecId sets the altSecId property value. The altSecId property
|
||||
func (m *AccessPackageSubject) SetAltSecId(value *string)() {
|
||||
m.altSecId = value
|
||||
}
|
||||
// SetConnectedOrganization sets the connectedOrganization property value. The connected organization of the subject. Read-only. Nullable.
|
||||
func (m *AccessPackageSubject) SetConnectedOrganization(value ConnectedOrganizationable)() {
|
||||
m.connectedOrganization = value
|
||||
}
|
||||
// SetConnectedOrganizationId sets the connectedOrganizationId property value. The identifier of the connected organization of the subject.
|
||||
func (m *AccessPackageSubject) SetConnectedOrganizationId(value *string)() {
|
||||
m.connectedOrganizationId = value
|
||||
}
|
||||
// SetDisplayName sets the displayName property value. The display name of the subject.
|
||||
func (m *AccessPackageSubject) SetDisplayName(value *string)() {
|
||||
m.displayName = value
|
||||
}
|
||||
// SetEmail sets the email property value. The email address of the subject.
|
||||
func (m *AccessPackageSubject) SetEmail(value *string)() {
|
||||
m.email = value
|
||||
}
|
||||
// SetObjectId sets the objectId property value. The object identifier of the subject. null if the subject is not yet a user in the tenant.
|
||||
func (m *AccessPackageSubject) SetObjectId(value *string)() {
|
||||
m.objectId = value
|
||||
}
|
||||
// SetOnPremisesSecurityIdentifier sets the onPremisesSecurityIdentifier property value. The onPremisesSecurityIdentifier property
|
||||
func (m *AccessPackageSubject) SetOnPremisesSecurityIdentifier(value *string)() {
|
||||
m.onPremisesSecurityIdentifier = value
|
||||
}
|
||||
// SetPrincipalName sets the principalName property value. The principal name, if known, of the subject.
|
||||
func (m *AccessPackageSubject) SetPrincipalName(value *string)() {
|
||||
m.principalName = value
|
||||
}
|
||||
// SetSubjectLifecycle sets the subjectLifecycle property value. The subjectLifecycle property
|
||||
func (m *AccessPackageSubject) SetSubjectLifecycle(value *AccessPackageSubjectLifecycle)() {
|
||||
m.subjectLifecycle = value
|
||||
}
|
||||
// SetType sets the type property value. The resource type of the subject.
|
||||
func (m *AccessPackageSubject) SetType(value *string)() {
|
||||
m.type_escaped = value
|
||||
}
|
||||
@ -0,0 +1,68 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageSubjectCollectionResponse
|
||||
type AccessPackageSubjectCollectionResponse struct {
|
||||
BaseCollectionPaginationCountResponse
|
||||
// The value property
|
||||
value []AccessPackageSubjectable
|
||||
}
|
||||
// NewAccessPackageSubjectCollectionResponse instantiates a new AccessPackageSubjectCollectionResponse and sets the default values.
|
||||
func NewAccessPackageSubjectCollectionResponse()(*AccessPackageSubjectCollectionResponse) {
|
||||
m := &AccessPackageSubjectCollectionResponse{
|
||||
BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(),
|
||||
}
|
||||
return m
|
||||
}
|
||||
// CreateAccessPackageSubjectCollectionResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateAccessPackageSubjectCollectionResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewAccessPackageSubjectCollectionResponse(), nil
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *AccessPackageSubjectCollectionResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers()
|
||||
res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfObjectValues(CreateAccessPackageSubjectFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]AccessPackageSubjectable, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = v.(AccessPackageSubjectable)
|
||||
}
|
||||
m.SetValue(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetValue gets the value property value. The value property
|
||||
func (m *AccessPackageSubjectCollectionResponse) GetValue()([]AccessPackageSubjectable) {
|
||||
return m.value
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *AccessPackageSubjectCollectionResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
err := m.BaseCollectionPaginationCountResponse.Serialize(writer)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if m.GetValue() != nil {
|
||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue()))
|
||||
for i, v := range m.GetValue() {
|
||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
||||
}
|
||||
err = writer.WriteCollectionOfObjectValues("value", cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// SetValue sets the value property value. The value property
|
||||
func (m *AccessPackageSubjectCollectionResponse) SetValue(value []AccessPackageSubjectable)() {
|
||||
m.value = value
|
||||
}
|
||||
@ -0,0 +1,13 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageSubjectCollectionResponseable
|
||||
type AccessPackageSubjectCollectionResponseable interface {
|
||||
BaseCollectionPaginationCountResponseable
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetValue()([]AccessPackageSubjectable)
|
||||
SetValue(value []AccessPackageSubjectable)()
|
||||
}
|
||||
@ -0,0 +1,40 @@
|
||||
package models
|
||||
import (
|
||||
"errors"
|
||||
)
|
||||
// Provides operations to manage the sites property of the microsoft.graph.browserSiteList entity.
|
||||
type AccessPackageSubjectLifecycle int
|
||||
|
||||
const (
|
||||
NOTDEFINED_ACCESSPACKAGESUBJECTLIFECYCLE AccessPackageSubjectLifecycle = iota
|
||||
NOTGOVERNED_ACCESSPACKAGESUBJECTLIFECYCLE
|
||||
GOVERNED_ACCESSPACKAGESUBJECTLIFECYCLE
|
||||
UNKNOWNFUTUREVALUE_ACCESSPACKAGESUBJECTLIFECYCLE
|
||||
)
|
||||
|
||||
func (i AccessPackageSubjectLifecycle) String() string {
|
||||
return []string{"notDefined", "notGoverned", "governed", "unknownFutureValue"}[i]
|
||||
}
|
||||
func ParseAccessPackageSubjectLifecycle(v string) (interface{}, error) {
|
||||
result := NOTDEFINED_ACCESSPACKAGESUBJECTLIFECYCLE
|
||||
switch v {
|
||||
case "notDefined":
|
||||
result = NOTDEFINED_ACCESSPACKAGESUBJECTLIFECYCLE
|
||||
case "notGoverned":
|
||||
result = NOTGOVERNED_ACCESSPACKAGESUBJECTLIFECYCLE
|
||||
case "governed":
|
||||
result = GOVERNED_ACCESSPACKAGESUBJECTLIFECYCLE
|
||||
case "unknownFutureValue":
|
||||
result = UNKNOWNFUTUREVALUE_ACCESSPACKAGESUBJECTLIFECYCLE
|
||||
default:
|
||||
return 0, errors.New("Unknown AccessPackageSubjectLifecycle value: " + v)
|
||||
}
|
||||
return &result, nil
|
||||
}
|
||||
func SerializeAccessPackageSubjectLifecycle(values []AccessPackageSubjectLifecycle) []string {
|
||||
result := make([]string, len(values))
|
||||
for i, v := range values {
|
||||
result[i] = v.String()
|
||||
}
|
||||
return result
|
||||
}
|
||||
@ -0,0 +1,31 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageSubjectable
|
||||
type AccessPackageSubjectable interface {
|
||||
Entityable
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetAltSecId()(*string)
|
||||
GetConnectedOrganization()(ConnectedOrganizationable)
|
||||
GetConnectedOrganizationId()(*string)
|
||||
GetDisplayName()(*string)
|
||||
GetEmail()(*string)
|
||||
GetObjectId()(*string)
|
||||
GetOnPremisesSecurityIdentifier()(*string)
|
||||
GetPrincipalName()(*string)
|
||||
GetSubjectLifecycle()(*AccessPackageSubjectLifecycle)
|
||||
GetType()(*string)
|
||||
SetAltSecId(value *string)()
|
||||
SetConnectedOrganization(value ConnectedOrganizationable)()
|
||||
SetConnectedOrganizationId(value *string)()
|
||||
SetDisplayName(value *string)()
|
||||
SetEmail(value *string)()
|
||||
SetObjectId(value *string)()
|
||||
SetOnPremisesSecurityIdentifier(value *string)()
|
||||
SetPrincipalName(value *string)()
|
||||
SetSubjectLifecycle(value *AccessPackageSubjectLifecycle)()
|
||||
SetType(value *string)()
|
||||
}
|
||||
@ -0,0 +1,88 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageTextInputQuestion
|
||||
type AccessPackageTextInputQuestion struct {
|
||||
AccessPackageQuestion
|
||||
// Indicates whether the answer will be in single or multiple line format.
|
||||
isSingleLineQuestion *bool
|
||||
// This is the regex pattern that the corresponding text answer must follow.
|
||||
regexPattern *string
|
||||
}
|
||||
// NewAccessPackageTextInputQuestion instantiates a new AccessPackageTextInputQuestion and sets the default values.
|
||||
func NewAccessPackageTextInputQuestion()(*AccessPackageTextInputQuestion) {
|
||||
m := &AccessPackageTextInputQuestion{
|
||||
AccessPackageQuestion: *NewAccessPackageQuestion(),
|
||||
}
|
||||
odataTypeValue := "#microsoft.graph.accessPackageTextInputQuestion";
|
||||
m.SetOdataType(&odataTypeValue);
|
||||
return m
|
||||
}
|
||||
// CreateAccessPackageTextInputQuestionFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateAccessPackageTextInputQuestionFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewAccessPackageTextInputQuestion(), nil
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *AccessPackageTextInputQuestion) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := m.AccessPackageQuestion.GetFieldDeserializers()
|
||||
res["isSingleLineQuestion"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetBoolValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetIsSingleLineQuestion(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["regexPattern"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetRegexPattern(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetIsSingleLineQuestion gets the isSingleLineQuestion property value. Indicates whether the answer will be in single or multiple line format.
|
||||
func (m *AccessPackageTextInputQuestion) GetIsSingleLineQuestion()(*bool) {
|
||||
return m.isSingleLineQuestion
|
||||
}
|
||||
// GetRegexPattern gets the regexPattern property value. This is the regex pattern that the corresponding text answer must follow.
|
||||
func (m *AccessPackageTextInputQuestion) GetRegexPattern()(*string) {
|
||||
return m.regexPattern
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *AccessPackageTextInputQuestion) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
err := m.AccessPackageQuestion.Serialize(writer)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
{
|
||||
err = writer.WriteBoolValue("isSingleLineQuestion", m.GetIsSingleLineQuestion())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("regexPattern", m.GetRegexPattern())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// SetIsSingleLineQuestion sets the isSingleLineQuestion property value. Indicates whether the answer will be in single or multiple line format.
|
||||
func (m *AccessPackageTextInputQuestion) SetIsSingleLineQuestion(value *bool)() {
|
||||
m.isSingleLineQuestion = value
|
||||
}
|
||||
// SetRegexPattern sets the regexPattern property value. This is the regex pattern that the corresponding text answer must follow.
|
||||
func (m *AccessPackageTextInputQuestion) SetRegexPattern(value *string)() {
|
||||
m.regexPattern = value
|
||||
}
|
||||
@ -0,0 +1,15 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageTextInputQuestionable
|
||||
type AccessPackageTextInputQuestionable interface {
|
||||
AccessPackageQuestionable
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetIsSingleLineQuestion()(*bool)
|
||||
GetRegexPattern()(*string)
|
||||
SetIsSingleLineQuestion(value *bool)()
|
||||
SetRegexPattern(value *string)()
|
||||
}
|
||||
@ -0,0 +1,36 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageUserDirectoryAttributeStore
|
||||
type AccessPackageUserDirectoryAttributeStore struct {
|
||||
AccessPackageResourceAttributeDestination
|
||||
}
|
||||
// NewAccessPackageUserDirectoryAttributeStore instantiates a new AccessPackageUserDirectoryAttributeStore and sets the default values.
|
||||
func NewAccessPackageUserDirectoryAttributeStore()(*AccessPackageUserDirectoryAttributeStore) {
|
||||
m := &AccessPackageUserDirectoryAttributeStore{
|
||||
AccessPackageResourceAttributeDestination: *NewAccessPackageResourceAttributeDestination(),
|
||||
}
|
||||
odataTypeValue := "#microsoft.graph.accessPackageUserDirectoryAttributeStore";
|
||||
m.SetOdataType(&odataTypeValue);
|
||||
return m
|
||||
}
|
||||
// CreateAccessPackageUserDirectoryAttributeStoreFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateAccessPackageUserDirectoryAttributeStoreFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewAccessPackageUserDirectoryAttributeStore(), nil
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *AccessPackageUserDirectoryAttributeStore) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := m.AccessPackageResourceAttributeDestination.GetFieldDeserializers()
|
||||
return res
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *AccessPackageUserDirectoryAttributeStore) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
err := m.AccessPackageResourceAttributeDestination.Serialize(writer)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
@ -0,0 +1,11 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageUserDirectoryAttributeStoreable
|
||||
type AccessPackageUserDirectoryAttributeStoreable interface {
|
||||
AccessPackageResourceAttributeDestinationable
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
}
|
||||
@ -0,0 +1,42 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time"
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessPackageable
|
||||
type AccessPackageable interface {
|
||||
Entityable
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
||||
GetAccessPackageAssignmentPolicies()([]AccessPackageAssignmentPolicyable)
|
||||
GetAccessPackageCatalog()(AccessPackageCatalogable)
|
||||
GetAccessPackageResourceRoleScopes()([]AccessPackageResourceRoleScopeable)
|
||||
GetAccessPackagesIncompatibleWith()([]AccessPackageable)
|
||||
GetCatalogId()(*string)
|
||||
GetCreatedBy()(*string)
|
||||
GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)
|
||||
GetDescription()(*string)
|
||||
GetDisplayName()(*string)
|
||||
GetIncompatibleAccessPackages()([]AccessPackageable)
|
||||
GetIncompatibleGroups()([]Groupable)
|
||||
GetIsHidden()(*bool)
|
||||
GetIsRoleScopesVisible()(*bool)
|
||||
GetModifiedBy()(*string)
|
||||
GetModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)
|
||||
SetAccessPackageAssignmentPolicies(value []AccessPackageAssignmentPolicyable)()
|
||||
SetAccessPackageCatalog(value AccessPackageCatalogable)()
|
||||
SetAccessPackageResourceRoleScopes(value []AccessPackageResourceRoleScopeable)()
|
||||
SetAccessPackagesIncompatibleWith(value []AccessPackageable)()
|
||||
SetCatalogId(value *string)()
|
||||
SetCreatedBy(value *string)()
|
||||
SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)()
|
||||
SetDescription(value *string)()
|
||||
SetDisplayName(value *string)()
|
||||
SetIncompatibleAccessPackages(value []AccessPackageable)()
|
||||
SetIncompatibleGroups(value []Groupable)()
|
||||
SetIsHidden(value *bool)()
|
||||
SetIsRoleScopesVisible(value *bool)()
|
||||
SetModifiedBy(value *string)()
|
||||
SetModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)()
|
||||
}
|
||||
431
src/internal/connector/graph/betasdk/models/access_review.go
Normal file
431
src/internal/connector/graph/betasdk/models/access_review.go
Normal file
@ -0,0 +1,431 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time"
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessReview
|
||||
type AccessReview struct {
|
||||
Entity
|
||||
// The business flow template identifier. Required on create. This value is case sensitive.
|
||||
businessFlowTemplateId *string
|
||||
// The user who created this review.
|
||||
createdBy UserIdentityable
|
||||
// The collection of decisions for this access review.
|
||||
decisions []AccessReviewDecisionable
|
||||
// The description provided by the access review creator, to show to the reviewers.
|
||||
description *string
|
||||
// The access review name. Required on create.
|
||||
displayName *string
|
||||
// The DateTime when the review is scheduled to end. This must be at least one day later than the start date. Required on create.
|
||||
endDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time
|
||||
// The collection of access reviews instances past, present and future, if this object is a recurring access review.
|
||||
instances []AccessReviewable
|
||||
// The collection of decisions for the caller, if the caller is a reviewer.
|
||||
myDecisions []AccessReviewDecisionable
|
||||
// The object for which the access reviews is reviewing the access rights assignments. This can be the group for the review of memberships of users in a group, or the app for a review of assignments of users to an application. Required on create.
|
||||
reviewedEntity Identityable
|
||||
// The collection of reviewers for an access review, if access review reviewerType is of type delegated.
|
||||
reviewers []AccessReviewReviewerable
|
||||
// The relationship type of reviewer to the target object, one of self, delegated or entityOwners. Required on create.
|
||||
reviewerType *string
|
||||
// The settings of an accessReview, see type definition below.
|
||||
settings AccessReviewSettingsable
|
||||
// The DateTime when the review is scheduled to be start. This could be a date in the future. Required on create.
|
||||
startDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time
|
||||
// This read-only field specifies the status of an accessReview. The typical states include Initializing, NotStarted, Starting,InProgress, Completing, Completed, AutoReviewing, and AutoReviewed.
|
||||
status *string
|
||||
}
|
||||
// NewAccessReview instantiates a new AccessReview and sets the default values.
|
||||
func NewAccessReview()(*AccessReview) {
|
||||
m := &AccessReview{
|
||||
Entity: *NewEntity(),
|
||||
}
|
||||
return m
|
||||
}
|
||||
// CreateAccessReviewFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateAccessReviewFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewAccessReview(), nil
|
||||
}
|
||||
// GetBusinessFlowTemplateId gets the businessFlowTemplateId property value. The business flow template identifier. Required on create. This value is case sensitive.
|
||||
func (m *AccessReview) GetBusinessFlowTemplateId()(*string) {
|
||||
return m.businessFlowTemplateId
|
||||
}
|
||||
// GetCreatedBy gets the createdBy property value. The user who created this review.
|
||||
func (m *AccessReview) GetCreatedBy()(UserIdentityable) {
|
||||
return m.createdBy
|
||||
}
|
||||
// GetDecisions gets the decisions property value. The collection of decisions for this access review.
|
||||
func (m *AccessReview) GetDecisions()([]AccessReviewDecisionable) {
|
||||
return m.decisions
|
||||
}
|
||||
// GetDescription gets the description property value. The description provided by the access review creator, to show to the reviewers.
|
||||
func (m *AccessReview) GetDescription()(*string) {
|
||||
return m.description
|
||||
}
|
||||
// GetDisplayName gets the displayName property value. The access review name. Required on create.
|
||||
func (m *AccessReview) GetDisplayName()(*string) {
|
||||
return m.displayName
|
||||
}
|
||||
// GetEndDateTime gets the endDateTime property value. The DateTime when the review is scheduled to end. This must be at least one day later than the start date. Required on create.
|
||||
func (m *AccessReview) GetEndDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) {
|
||||
return m.endDateTime
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *AccessReview) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := m.Entity.GetFieldDeserializers()
|
||||
res["businessFlowTemplateId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetBusinessFlowTemplateId(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["createdBy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetObjectValue(CreateUserIdentityFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetCreatedBy(val.(UserIdentityable))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["decisions"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfObjectValues(CreateAccessReviewDecisionFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]AccessReviewDecisionable, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = v.(AccessReviewDecisionable)
|
||||
}
|
||||
m.SetDecisions(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["description"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetDescription(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["displayName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetDisplayName(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["endDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetTimeValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetEndDateTime(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["instances"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfObjectValues(CreateAccessReviewFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]AccessReviewable, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = v.(AccessReviewable)
|
||||
}
|
||||
m.SetInstances(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["myDecisions"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfObjectValues(CreateAccessReviewDecisionFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]AccessReviewDecisionable, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = v.(AccessReviewDecisionable)
|
||||
}
|
||||
m.SetMyDecisions(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["reviewedEntity"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetObjectValue(CreateIdentityFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetReviewedEntity(val.(Identityable))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["reviewers"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfObjectValues(CreateAccessReviewReviewerFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]AccessReviewReviewerable, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = v.(AccessReviewReviewerable)
|
||||
}
|
||||
m.SetReviewers(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["reviewerType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetReviewerType(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["settings"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetObjectValue(CreateAccessReviewSettingsFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetSettings(val.(AccessReviewSettingsable))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["startDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetTimeValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetStartDateTime(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetStatus(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetInstances gets the instances property value. The collection of access reviews instances past, present and future, if this object is a recurring access review.
|
||||
func (m *AccessReview) GetInstances()([]AccessReviewable) {
|
||||
return m.instances
|
||||
}
|
||||
// GetMyDecisions gets the myDecisions property value. The collection of decisions for the caller, if the caller is a reviewer.
|
||||
func (m *AccessReview) GetMyDecisions()([]AccessReviewDecisionable) {
|
||||
return m.myDecisions
|
||||
}
|
||||
// GetReviewedEntity gets the reviewedEntity property value. The object for which the access reviews is reviewing the access rights assignments. This can be the group for the review of memberships of users in a group, or the app for a review of assignments of users to an application. Required on create.
|
||||
func (m *AccessReview) GetReviewedEntity()(Identityable) {
|
||||
return m.reviewedEntity
|
||||
}
|
||||
// GetReviewers gets the reviewers property value. The collection of reviewers for an access review, if access review reviewerType is of type delegated.
|
||||
func (m *AccessReview) GetReviewers()([]AccessReviewReviewerable) {
|
||||
return m.reviewers
|
||||
}
|
||||
// GetReviewerType gets the reviewerType property value. The relationship type of reviewer to the target object, one of self, delegated or entityOwners. Required on create.
|
||||
func (m *AccessReview) GetReviewerType()(*string) {
|
||||
return m.reviewerType
|
||||
}
|
||||
// GetSettings gets the settings property value. The settings of an accessReview, see type definition below.
|
||||
func (m *AccessReview) GetSettings()(AccessReviewSettingsable) {
|
||||
return m.settings
|
||||
}
|
||||
// GetStartDateTime gets the startDateTime property value. The DateTime when the review is scheduled to be start. This could be a date in the future. Required on create.
|
||||
func (m *AccessReview) GetStartDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) {
|
||||
return m.startDateTime
|
||||
}
|
||||
// GetStatus gets the status property value. This read-only field specifies the status of an accessReview. The typical states include Initializing, NotStarted, Starting,InProgress, Completing, Completed, AutoReviewing, and AutoReviewed.
|
||||
func (m *AccessReview) GetStatus()(*string) {
|
||||
return m.status
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *AccessReview) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
err := m.Entity.Serialize(writer)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("businessFlowTemplateId", m.GetBusinessFlowTemplateId())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteObjectValue("createdBy", m.GetCreatedBy())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if m.GetDecisions() != nil {
|
||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetDecisions()))
|
||||
for i, v := range m.GetDecisions() {
|
||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
||||
}
|
||||
err = writer.WriteCollectionOfObjectValues("decisions", cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("description", m.GetDescription())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("displayName", m.GetDisplayName())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteTimeValue("endDateTime", m.GetEndDateTime())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if m.GetInstances() != nil {
|
||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetInstances()))
|
||||
for i, v := range m.GetInstances() {
|
||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
||||
}
|
||||
err = writer.WriteCollectionOfObjectValues("instances", cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if m.GetMyDecisions() != nil {
|
||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetMyDecisions()))
|
||||
for i, v := range m.GetMyDecisions() {
|
||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
||||
}
|
||||
err = writer.WriteCollectionOfObjectValues("myDecisions", cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteObjectValue("reviewedEntity", m.GetReviewedEntity())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if m.GetReviewers() != nil {
|
||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetReviewers()))
|
||||
for i, v := range m.GetReviewers() {
|
||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
||||
}
|
||||
err = writer.WriteCollectionOfObjectValues("reviewers", cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("reviewerType", m.GetReviewerType())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteObjectValue("settings", m.GetSettings())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteTimeValue("startDateTime", m.GetStartDateTime())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err = writer.WriteStringValue("status", m.GetStatus())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// SetBusinessFlowTemplateId sets the businessFlowTemplateId property value. The business flow template identifier. Required on create. This value is case sensitive.
|
||||
func (m *AccessReview) SetBusinessFlowTemplateId(value *string)() {
|
||||
m.businessFlowTemplateId = value
|
||||
}
|
||||
// SetCreatedBy sets the createdBy property value. The user who created this review.
|
||||
func (m *AccessReview) SetCreatedBy(value UserIdentityable)() {
|
||||
m.createdBy = value
|
||||
}
|
||||
// SetDecisions sets the decisions property value. The collection of decisions for this access review.
|
||||
func (m *AccessReview) SetDecisions(value []AccessReviewDecisionable)() {
|
||||
m.decisions = value
|
||||
}
|
||||
// SetDescription sets the description property value. The description provided by the access review creator, to show to the reviewers.
|
||||
func (m *AccessReview) SetDescription(value *string)() {
|
||||
m.description = value
|
||||
}
|
||||
// SetDisplayName sets the displayName property value. The access review name. Required on create.
|
||||
func (m *AccessReview) SetDisplayName(value *string)() {
|
||||
m.displayName = value
|
||||
}
|
||||
// SetEndDateTime sets the endDateTime property value. The DateTime when the review is scheduled to end. This must be at least one day later than the start date. Required on create.
|
||||
func (m *AccessReview) SetEndDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() {
|
||||
m.endDateTime = value
|
||||
}
|
||||
// SetInstances sets the instances property value. The collection of access reviews instances past, present and future, if this object is a recurring access review.
|
||||
func (m *AccessReview) SetInstances(value []AccessReviewable)() {
|
||||
m.instances = value
|
||||
}
|
||||
// SetMyDecisions sets the myDecisions property value. The collection of decisions for the caller, if the caller is a reviewer.
|
||||
func (m *AccessReview) SetMyDecisions(value []AccessReviewDecisionable)() {
|
||||
m.myDecisions = value
|
||||
}
|
||||
// SetReviewedEntity sets the reviewedEntity property value. The object for which the access reviews is reviewing the access rights assignments. This can be the group for the review of memberships of users in a group, or the app for a review of assignments of users to an application. Required on create.
|
||||
func (m *AccessReview) SetReviewedEntity(value Identityable)() {
|
||||
m.reviewedEntity = value
|
||||
}
|
||||
// SetReviewers sets the reviewers property value. The collection of reviewers for an access review, if access review reviewerType is of type delegated.
|
||||
func (m *AccessReview) SetReviewers(value []AccessReviewReviewerable)() {
|
||||
m.reviewers = value
|
||||
}
|
||||
// SetReviewerType sets the reviewerType property value. The relationship type of reviewer to the target object, one of self, delegated or entityOwners. Required on create.
|
||||
func (m *AccessReview) SetReviewerType(value *string)() {
|
||||
m.reviewerType = value
|
||||
}
|
||||
// SetSettings sets the settings property value. The settings of an accessReview, see type definition below.
|
||||
func (m *AccessReview) SetSettings(value AccessReviewSettingsable)() {
|
||||
m.settings = value
|
||||
}
|
||||
// SetStartDateTime sets the startDateTime property value. The DateTime when the review is scheduled to be start. This could be a date in the future. Required on create.
|
||||
func (m *AccessReview) SetStartDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() {
|
||||
m.startDateTime = value
|
||||
}
|
||||
// SetStatus sets the status property value. This read-only field specifies the status of an accessReview. The typical states include Initializing, NotStarted, Starting,InProgress, Completing, Completed, AutoReviewing, and AutoReviewed.
|
||||
func (m *AccessReview) SetStatus(value *string)() {
|
||||
m.status = value
|
||||
}
|
||||
@ -0,0 +1,91 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessReviewApplyAction
|
||||
type AccessReviewApplyAction struct {
|
||||
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
additionalData map[string]interface{}
|
||||
// The OdataType property
|
||||
odataType *string
|
||||
}
|
||||
// NewAccessReviewApplyAction instantiates a new accessReviewApplyAction and sets the default values.
|
||||
func NewAccessReviewApplyAction()(*AccessReviewApplyAction) {
|
||||
m := &AccessReviewApplyAction{
|
||||
}
|
||||
m.SetAdditionalData(make(map[string]interface{}));
|
||||
return m
|
||||
}
|
||||
// CreateAccessReviewApplyActionFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateAccessReviewApplyActionFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
if parseNode != nil {
|
||||
mappingValueNode, err := parseNode.GetChildNode("@odata.type")
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if mappingValueNode != nil {
|
||||
mappingValue, err := mappingValueNode.GetStringValue()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if mappingValue != nil {
|
||||
switch *mappingValue {
|
||||
case "#microsoft.graph.disableAndDeleteUserApplyAction":
|
||||
return NewDisableAndDeleteUserApplyAction(), nil
|
||||
case "#microsoft.graph.removeAccessApplyAction":
|
||||
return NewRemoveAccessApplyAction(), nil
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return NewAccessReviewApplyAction(), nil
|
||||
}
|
||||
// GetAdditionalData gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
func (m *AccessReviewApplyAction) GetAdditionalData()(map[string]interface{}) {
|
||||
return m.additionalData
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *AccessReviewApplyAction) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
|
||||
res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetStringValue()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
m.SetOdataType(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetOdataType gets the @odata.type property value. The OdataType property
|
||||
func (m *AccessReviewApplyAction) GetOdataType()(*string) {
|
||||
return m.odataType
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *AccessReviewApplyAction) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
{
|
||||
err := writer.WriteStringValue("@odata.type", m.GetOdataType())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
{
|
||||
err := writer.WriteAdditionalData(m.GetAdditionalData())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// SetAdditionalData sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
func (m *AccessReviewApplyAction) SetAdditionalData(value map[string]interface{})() {
|
||||
m.additionalData = value
|
||||
}
|
||||
// SetOdataType sets the @odata.type property value. The OdataType property
|
||||
func (m *AccessReviewApplyAction) SetOdataType(value *string)() {
|
||||
m.odataType = value
|
||||
}
|
||||
@ -0,0 +1,68 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
||||
)
|
||||
|
||||
// AccessReviewApplyActionCollectionResponse
|
||||
type AccessReviewApplyActionCollectionResponse struct {
|
||||
BaseCollectionPaginationCountResponse
|
||||
// The value property
|
||||
value []AccessReviewApplyActionable
|
||||
}
|
||||
// NewAccessReviewApplyActionCollectionResponse instantiates a new AccessReviewApplyActionCollectionResponse and sets the default values.
|
||||
func NewAccessReviewApplyActionCollectionResponse()(*AccessReviewApplyActionCollectionResponse) {
|
||||
m := &AccessReviewApplyActionCollectionResponse{
|
||||
BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(),
|
||||
}
|
||||
return m
|
||||
}
|
||||
// CreateAccessReviewApplyActionCollectionResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
||||
func CreateAccessReviewApplyActionCollectionResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
||||
return NewAccessReviewApplyActionCollectionResponse(), nil
|
||||
}
|
||||
// GetFieldDeserializers the deserialization information for the current model
|
||||
func (m *AccessReviewApplyActionCollectionResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
||||
res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers()
|
||||
res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
||||
val, err := n.GetCollectionOfObjectValues(CreateAccessReviewApplyActionFromDiscriminatorValue)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val != nil {
|
||||
res := make([]AccessReviewApplyActionable, len(val))
|
||||
for i, v := range val {
|
||||
res[i] = v.(AccessReviewApplyActionable)
|
||||
}
|
||||
m.SetValue(res)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
return res
|
||||
}
|
||||
// GetValue gets the value property value. The value property
|
||||
func (m *AccessReviewApplyActionCollectionResponse) GetValue()([]AccessReviewApplyActionable) {
|
||||
return m.value
|
||||
}
|
||||
// Serialize serializes information the current object
|
||||
func (m *AccessReviewApplyActionCollectionResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
||||
err := m.BaseCollectionPaginationCountResponse.Serialize(writer)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if m.GetValue() != nil {
|
||||
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue()))
|
||||
for i, v := range m.GetValue() {
|
||||
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
|
||||
}
|
||||
err = writer.WriteCollectionOfObjectValues("value", cast)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// SetValue sets the value property value. The value property
|
||||
func (m *AccessReviewApplyActionCollectionResponse) SetValue(value []AccessReviewApplyActionable)() {
|
||||
m.value = value
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user