/
githubmirror
/
origin
Обзор
Документация
Войти
/
githubmirror
/
origin
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
vendor/github.com/microsoftgraph/msgraph-sdk-go/models/organization.go
1 136 строк
44 KB
Justin Pierce
Add compat_otp package with openshift-tests-private (OTP) util implementations
11 авг 2025, 18:00
11 авг 2025, 18:00
80ac5c1
Код
Авторство
О чём код?
// Code generated by Microsoft Kiota - DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. package models import ( i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) type Organization struct { DirectoryObject } // NewOrganization instantiates a new Organization and sets the default values. func NewOrganization()(*Organization) { m := &Organization{ DirectoryObject: *NewDirectoryObject(), } odataTypeValue := "#microsoft.graph.organization" m.SetOdataType(&odataTypeValue) return m } // CreateOrganizationFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value // returns a Parsable when successful func CreateOrganizationFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewOrganization(), nil } // GetAssignedPlans gets the assignedPlans property value. The collection of service plans associated with the tenant. Not nullable. // returns a []AssignedPlanable when successful func (m *Organization) GetAssignedPlans()([]AssignedPlanable) { val, err := m.GetBackingStore().Get("assignedPlans") if err != nil { panic(err) } if val != nil { return val.([]AssignedPlanable) } return nil } // GetBranding gets the branding property value. Branding for the organization. Nullable. // returns a OrganizationalBrandingable when successful func (m *Organization) GetBranding()(OrganizationalBrandingable) { val, err := m.GetBackingStore().Get("branding") if err != nil { panic(err) } if val != nil { return val.(OrganizationalBrandingable) } return nil } // GetBusinessPhones gets the businessPhones property value. Telephone number for the organization. Although this property is a string collection, only one number can be set. // returns a []string when successful func (m *Organization) GetBusinessPhones()([]string) { val, err := m.GetBackingStore().Get("businessPhones") if err != nil { panic(err) } if val != nil { return val.([]string) } return nil } // GetCertificateBasedAuthConfiguration gets the certificateBasedAuthConfiguration property value. Navigation property to manage certificate-based authentication configuration. Only a single instance of certificateBasedAuthConfiguration can be created in the collection. // returns a []CertificateBasedAuthConfigurationable when successful func (m *Organization) GetCertificateBasedAuthConfiguration()([]CertificateBasedAuthConfigurationable) { val, err := m.GetBackingStore().Get("certificateBasedAuthConfiguration") if err != nil { panic(err) } if val != nil { return val.([]CertificateBasedAuthConfigurationable) } return nil } // GetCity gets the city property value. City name of the address for the organization. // returns a *string when successful func (m *Organization) GetCity()(*string) { val, err := m.GetBackingStore().Get("city") if err != nil { panic(err) } if val != nil { return val.(*string) } return nil } // GetCountry gets the country property value. Country or region name of the address for the organization. // returns a *string when successful func (m *Organization) GetCountry()(*string) { val, err := m.GetBackingStore().Get("country") if err != nil { panic(err) } if val != nil { return val.(*string) } return nil } // GetCountryLetterCode gets the countryLetterCode property value. Country or region abbreviation for the organization in ISO 3166-2 format. // returns a *string when successful func (m *Organization) GetCountryLetterCode()(*string) { val, err := m.GetBackingStore().Get("countryLetterCode") if err != nil { panic(err) } if val != nil { return val.(*string) } return nil } // GetCreatedDateTime gets the createdDateTime property value. Timestamp of when the organization was created. The value can't be modified and is automatically populated when the organization is created. 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. // returns a *Time when successful func (m *Organization) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("createdDateTime") if err != nil { panic(err) } if val != nil { return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) } return nil } // GetDefaultUsageLocation gets the defaultUsageLocation property value. Two-letter ISO 3166 country code indicating the default service usage location of an organization. // returns a *string when successful func (m *Organization) GetDefaultUsageLocation()(*string) { val, err := m.GetBackingStore().Get("defaultUsageLocation") if err != nil { panic(err) } if val != nil { return val.(*string) } return nil } // GetDisplayName gets the displayName property value. The display name for the tenant. // returns a *string when successful func (m *Organization) GetDisplayName()(*string) { val, err := m.GetBackingStore().Get("displayName") if err != nil { panic(err) } if val != nil { return val.(*string) } return nil } // GetExtensions gets the extensions property value. The collection of open extensions defined for the organization. Read-only. Nullable. // returns a []Extensionable when successful func (m *Organization) GetExtensions()([]Extensionable) { val, err := m.GetBackingStore().Get("extensions") if err != nil { panic(err) } if val != nil { return val.([]Extensionable) } return nil } // GetFieldDeserializers the deserialization information for the current model // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful func (m *Organization) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.DirectoryObject.GetFieldDeserializers() res["assignedPlans"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfObjectValues(CreateAssignedPlanFromDiscriminatorValue) if err != nil { return err } if val != nil { res := make([]AssignedPlanable, len(val)) for i, v := range val { if v != nil { res[i] = v.(AssignedPlanable) } } m.SetAssignedPlans(res) } return nil } res["branding"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreateOrganizationalBrandingFromDiscriminatorValue) if err != nil { return err } if val != nil { m.SetBranding(val.(OrganizationalBrandingable)) } return nil } res["businessPhones"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfPrimitiveValues("string") if err != nil { return err } if val != nil { res := make([]string, len(val)) for i, v := range val { if v != nil { res[i] = *(v.(*string)) } } m.SetBusinessPhones(res) } return nil } res["certificateBasedAuthConfiguration"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfObjectValues(CreateCertificateBasedAuthConfigurationFromDiscriminatorValue) if err != nil { return err } if val != nil { res := make([]CertificateBasedAuthConfigurationable, len(val)) for i, v := range val { if v != nil { res[i] = v.(CertificateBasedAuthConfigurationable) } } m.SetCertificateBasedAuthConfiguration(res) } return nil } res["city"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { return err } if val != nil { m.SetCity(val) } return nil } res["country"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { return err } if val != nil { m.SetCountry(val) } return nil } res["countryLetterCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { return err } if val != nil { m.SetCountryLetterCode(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["defaultUsageLocation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { return err } if val != nil { m.SetDefaultUsageLocation(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["extensions"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfObjectValues(CreateExtensionFromDiscriminatorValue) if err != nil { return err } if val != nil { res := make([]Extensionable, len(val)) for i, v := range val { if v != nil { res[i] = v.(Extensionable) } } m.SetExtensions(res) } return nil } res["marketingNotificationEmails"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfPrimitiveValues("string") if err != nil { return err } if val != nil { res := make([]string, len(val)) for i, v := range val { if v != nil { res[i] = *(v.(*string)) } } m.SetMarketingNotificationEmails(res) } return nil } res["mobileDeviceManagementAuthority"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetEnumValue(ParseMdmAuthority) if err != nil { return err } if val != nil { m.SetMobileDeviceManagementAuthority(val.(*MdmAuthority)) } return nil } res["onPremisesLastSyncDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetTimeValue() if err != nil { return err } if val != nil { m.SetOnPremisesLastSyncDateTime(val) } return nil } res["onPremisesSyncEnabled"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetBoolValue() if err != nil { return err } if val != nil { m.SetOnPremisesSyncEnabled(val) } return nil } res["partnerTenantType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetEnumValue(ParsePartnerTenantType) if err != nil { return err } if val != nil { m.SetPartnerTenantType(val.(*PartnerTenantType)) } return nil } res["postalCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { return err } if val != nil { m.SetPostalCode(val) } return nil } res["preferredLanguage"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { return err } if val != nil { m.SetPreferredLanguage(val) } return nil } res["privacyProfile"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreatePrivacyProfileFromDiscriminatorValue) if err != nil { return err } if val != nil { m.SetPrivacyProfile(val.(PrivacyProfileable)) } return nil } res["provisionedPlans"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfObjectValues(CreateProvisionedPlanFromDiscriminatorValue) if err != nil { return err } if val != nil { res := make([]ProvisionedPlanable, len(val)) for i, v := range val { if v != nil { res[i] = v.(ProvisionedPlanable) } } m.SetProvisionedPlans(res) } return nil } res["securityComplianceNotificationMails"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfPrimitiveValues("string") if err != nil { return err } if val != nil { res := make([]string, len(val)) for i, v := range val { if v != nil { res[i] = *(v.(*string)) } } m.SetSecurityComplianceNotificationMails(res) } return nil } res["securityComplianceNotificationPhones"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfPrimitiveValues("string") if err != nil { return err } if val != nil { res := make([]string, len(val)) for i, v := range val { if v != nil { res[i] = *(v.(*string)) } } m.SetSecurityComplianceNotificationPhones(res) } return nil } res["state"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { return err } if val != nil { m.SetState(val) } return nil } res["street"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { return err } if val != nil { m.SetStreet(val) } return nil } res["technicalNotificationMails"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfPrimitiveValues("string") if err != nil { return err } if val != nil { res := make([]string, len(val)) for i, v := range val { if v != nil { res[i] = *(v.(*string)) } } m.SetTechnicalNotificationMails(res) } return nil } res["tenantType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { return err } if val != nil { m.SetTenantType(val) } return nil } res["verifiedDomains"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfObjectValues(CreateVerifiedDomainFromDiscriminatorValue) if err != nil { return err } if val != nil { res := make([]VerifiedDomainable, len(val)) for i, v := range val { if v != nil { res[i] = v.(VerifiedDomainable) } } m.SetVerifiedDomains(res) } return nil } return res } // GetMarketingNotificationEmails gets the marketingNotificationEmails property value. Not nullable. // returns a []string when successful func (m *Organization) GetMarketingNotificationEmails()([]string) { val, err := m.GetBackingStore().Get("marketingNotificationEmails") if err != nil { panic(err) } if val != nil { return val.([]string) } return nil } // GetMobileDeviceManagementAuthority gets the mobileDeviceManagementAuthority property value. Mobile device management authority. // returns a *MdmAuthority when successful func (m *Organization) GetMobileDeviceManagementAuthority()(*MdmAuthority) { val, err := m.GetBackingStore().Get("mobileDeviceManagementAuthority") if err != nil { panic(err) } if val != nil { return val.(*MdmAuthority) } return nil } // GetOnPremisesLastSyncDateTime gets the onPremisesLastSyncDateTime property value. The time and date at which the tenant was last synced with the on-premises directory. 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. // returns a *Time when successful func (m *Organization) GetOnPremisesLastSyncDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("onPremisesLastSyncDateTime") if err != nil { panic(err) } if val != nil { return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) } return nil } // GetOnPremisesSyncEnabled gets the onPremisesSyncEnabled property value. true if this object is synced from an on-premises directory; false if this object was originally synced from an on-premises directory but is no longer synced. Nullable. null if this object isn't synced from on-premises active directory (default). // returns a *bool when successful func (m *Organization) GetOnPremisesSyncEnabled()(*bool) { val, err := m.GetBackingStore().Get("onPremisesSyncEnabled") if err != nil { panic(err) } if val != nil { return val.(*bool) } return nil } // GetPartnerTenantType gets the partnerTenantType property value. The type of partnership this tenant has with Microsoft. The possible values are: microsoftSupport, syndicatePartner, breadthPartner, breadthPartnerDelegatedAdmin, resellerPartnerDelegatedAdmin, valueAddedResellerPartnerDelegatedAdmin, unknownFutureValue. Nullable. For more information about the possible types, see partnerTenantType values. // returns a *PartnerTenantType when successful func (m *Organization) GetPartnerTenantType()(*PartnerTenantType) { val, err := m.GetBackingStore().Get("partnerTenantType") if err != nil { panic(err) } if val != nil { return val.(*PartnerTenantType) } return nil } // GetPostalCode gets the postalCode property value. Postal code of the address for the organization. // returns a *string when successful func (m *Organization) GetPostalCode()(*string) { val, err := m.GetBackingStore().Get("postalCode") if err != nil { panic(err) } if val != nil { return val.(*string) } return nil } // GetPreferredLanguage gets the preferredLanguage property value. The preferred language for the organization. Should follow ISO 639-1 Code; for example, en. // returns a *string when successful func (m *Organization) GetPreferredLanguage()(*string) { val, err := m.GetBackingStore().Get("preferredLanguage") if err != nil { panic(err) } if val != nil { return val.(*string) } return nil } // GetPrivacyProfile gets the privacyProfile property value. The privacy profile of an organization. // returns a PrivacyProfileable when successful func (m *Organization) GetPrivacyProfile()(PrivacyProfileable) { val, err := m.GetBackingStore().Get("privacyProfile") if err != nil { panic(err) } if val != nil { return val.(PrivacyProfileable) } return nil } // GetProvisionedPlans gets the provisionedPlans property value. Not nullable. // returns a []ProvisionedPlanable when successful func (m *Organization) GetProvisionedPlans()([]ProvisionedPlanable) { val, err := m.GetBackingStore().Get("provisionedPlans") if err != nil { panic(err) } if val != nil { return val.([]ProvisionedPlanable) } return nil } // GetSecurityComplianceNotificationMails gets the securityComplianceNotificationMails property value. Not nullable. // returns a []string when successful func (m *Organization) GetSecurityComplianceNotificationMails()([]string) { val, err := m.GetBackingStore().Get("securityComplianceNotificationMails") if err != nil { panic(err) } if val != nil { return val.([]string) } return nil } // GetSecurityComplianceNotificationPhones gets the securityComplianceNotificationPhones property value. Not nullable. // returns a []string when successful func (m *Organization) GetSecurityComplianceNotificationPhones()([]string) { val, err := m.GetBackingStore().Get("securityComplianceNotificationPhones") if err != nil { panic(err) } if val != nil { return val.([]string) } return nil } // GetState gets the state property value. State name of the address for the organization. // returns a *string when successful func (m *Organization) GetState()(*string) { val, err := m.GetBackingStore().Get("state") if err != nil { panic(err) } if val != nil { return val.(*string) } return nil } // GetStreet gets the street property value. Street name of the address for organization. // returns a *string when successful func (m *Organization) GetStreet()(*string) { val, err := m.GetBackingStore().Get("street") if err != nil { panic(err) } if val != nil { return val.(*string) } return nil } // GetTechnicalNotificationMails gets the technicalNotificationMails property value. Not nullable. // returns a []string when successful func (m *Organization) GetTechnicalNotificationMails()([]string) { val, err := m.GetBackingStore().Get("technicalNotificationMails") if err != nil { panic(err) } if val != nil { return val.([]string) } return nil } // GetTenantType gets the tenantType property value. Not nullable. Can be one of the following types: AAD - An enterprise identity access management (IAM) service that serves business-to-employee and business-to-business (B2B) scenarios. AAD B2C An identity access management (IAM) service that serves business-to-consumer (B2C) scenarios. CIAM - A customer identity & access management (CIAM) solution that provides an integrated platform to serve consumers, partners, and citizen scenarios. // returns a *string when successful func (m *Organization) GetTenantType()(*string) { val, err := m.GetBackingStore().Get("tenantType") if err != nil { panic(err) } if val != nil { return val.(*string) } return nil } // GetVerifiedDomains gets the verifiedDomains property value. The collection of domains associated with this tenant. Not nullable. // returns a []VerifiedDomainable when successful func (m *Organization) GetVerifiedDomains()([]VerifiedDomainable) { val, err := m.GetBackingStore().Get("verifiedDomains") if err != nil { panic(err) } if val != nil { return val.([]VerifiedDomainable) } return nil } // Serialize serializes information the current object func (m *Organization) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.DirectoryObject.Serialize(writer) if err != nil { return err } if m.GetAssignedPlans() != nil { cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetAssignedPlans())) for i, v := range m.GetAssignedPlans() { if v != nil { cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) } } err = writer.WriteCollectionOfObjectValues("assignedPlans", cast) if err != nil { return err } } { err = writer.WriteObjectValue("branding", m.GetBranding()) if err != nil { return err } } if m.GetBusinessPhones() != nil { err = writer.WriteCollectionOfStringValues("businessPhones", m.GetBusinessPhones()) if err != nil { return err } } if m.GetCertificateBasedAuthConfiguration() != nil { cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetCertificateBasedAuthConfiguration())) for i, v := range m.GetCertificateBasedAuthConfiguration() { if v != nil { cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) } } err = writer.WriteCollectionOfObjectValues("certificateBasedAuthConfiguration", cast) if err != nil { return err } } { err = writer.WriteStringValue("city", m.GetCity()) if err != nil { return err } } { err = writer.WriteStringValue("country", m.GetCountry()) if err != nil { return err } } { err = writer.WriteStringValue("countryLetterCode", m.GetCountryLetterCode()) if err != nil { return err } } { err = writer.WriteTimeValue("createdDateTime", m.GetCreatedDateTime()) if err != nil { return err } } { err = writer.WriteStringValue("defaultUsageLocation", m.GetDefaultUsageLocation()) if err != nil { return err } } { err = writer.WriteStringValue("displayName", m.GetDisplayName()) if err != nil { return err } } if m.GetExtensions() != nil { cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetExtensions())) for i, v := range m.GetExtensions() { if v != nil { cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) } } err = writer.WriteCollectionOfObjectValues("extensions", cast) if err != nil { return err } } if m.GetMarketingNotificationEmails() != nil { err = writer.WriteCollectionOfStringValues("marketingNotificationEmails", m.GetMarketingNotificationEmails()) if err != nil { return err } } if m.GetMobileDeviceManagementAuthority() != nil { cast := (*m.GetMobileDeviceManagementAuthority()).String() err = writer.WriteStringValue("mobileDeviceManagementAuthority", &cast) if err != nil { return err } } { err = writer.WriteTimeValue("onPremisesLastSyncDateTime", m.GetOnPremisesLastSyncDateTime()) if err != nil { return err } } { err = writer.WriteBoolValue("onPremisesSyncEnabled", m.GetOnPremisesSyncEnabled()) if err != nil { return err } } if m.GetPartnerTenantType() != nil { cast := (*m.GetPartnerTenantType()).String() err = writer.WriteStringValue("partnerTenantType", &cast) if err != nil { return err } } { err = writer.WriteStringValue("postalCode", m.GetPostalCode()) if err != nil { return err } } { err = writer.WriteStringValue("preferredLanguage", m.GetPreferredLanguage()) if err != nil { return err } } { err = writer.WriteObjectValue("privacyProfile", m.GetPrivacyProfile()) if err != nil { return err } } if m.GetProvisionedPlans() != nil { cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetProvisionedPlans())) for i, v := range m.GetProvisionedPlans() { if v != nil { cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) } } err = writer.WriteCollectionOfObjectValues("provisionedPlans", cast) if err != nil { return err } } if m.GetSecurityComplianceNotificationMails() != nil { err = writer.WriteCollectionOfStringValues("securityComplianceNotificationMails", m.GetSecurityComplianceNotificationMails()) if err != nil { return err } } if m.GetSecurityComplianceNotificationPhones() != nil { err = writer.WriteCollectionOfStringValues("securityComplianceNotificationPhones", m.GetSecurityComplianceNotificationPhones()) if err != nil { return err } } { err = writer.WriteStringValue("state", m.GetState()) if err != nil { return err } } { err = writer.WriteStringValue("street", m.GetStreet()) if err != nil { return err } } if m.GetTechnicalNotificationMails() != nil { err = writer.WriteCollectionOfStringValues("technicalNotificationMails", m.GetTechnicalNotificationMails()) if err != nil { return err } } { err = writer.WriteStringValue("tenantType", m.GetTenantType()) if err != nil { return err } } if m.GetVerifiedDomains() != nil { cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetVerifiedDomains())) for i, v := range m.GetVerifiedDomains() { if v != nil { cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) } } err = writer.WriteCollectionOfObjectValues("verifiedDomains", cast) if err != nil { return err } } return nil } // SetAssignedPlans sets the assignedPlans property value. The collection of service plans associated with the tenant. Not nullable. func (m *Organization) SetAssignedPlans(value []AssignedPlanable)() { err := m.GetBackingStore().Set("assignedPlans", value) if err != nil { panic(err) } } // SetBranding sets the branding property value. Branding for the organization. Nullable. func (m *Organization) SetBranding(value OrganizationalBrandingable)() { err := m.GetBackingStore().Set("branding", value) if err != nil { panic(err) } } // SetBusinessPhones sets the businessPhones property value. Telephone number for the organization. Although this property is a string collection, only one number can be set. func (m *Organization) SetBusinessPhones(value []string)() { err := m.GetBackingStore().Set("businessPhones", value) if err != nil { panic(err) } } // SetCertificateBasedAuthConfiguration sets the certificateBasedAuthConfiguration property value. Navigation property to manage certificate-based authentication configuration. Only a single instance of certificateBasedAuthConfiguration can be created in the collection. func (m *Organization) SetCertificateBasedAuthConfiguration(value []CertificateBasedAuthConfigurationable)() { err := m.GetBackingStore().Set("certificateBasedAuthConfiguration", value) if err != nil { panic(err) } } // SetCity sets the city property value. City name of the address for the organization. func (m *Organization) SetCity(value *string)() { err := m.GetBackingStore().Set("city", value) if err != nil { panic(err) } } // SetCountry sets the country property value. Country or region name of the address for the organization. func (m *Organization) SetCountry(value *string)() { err := m.GetBackingStore().Set("country", value) if err != nil { panic(err) } } // SetCountryLetterCode sets the countryLetterCode property value. Country or region abbreviation for the organization in ISO 3166-2 format. func (m *Organization) SetCountryLetterCode(value *string)() { err := m.GetBackingStore().Set("countryLetterCode", value) if err != nil { panic(err) } } // SetCreatedDateTime sets the createdDateTime property value. Timestamp of when the organization was created. The value can't be modified and is automatically populated when the organization is created. 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 *Organization) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("createdDateTime", value) if err != nil { panic(err) } } // SetDefaultUsageLocation sets the defaultUsageLocation property value. Two-letter ISO 3166 country code indicating the default service usage location of an organization. func (m *Organization) SetDefaultUsageLocation(value *string)() { err := m.GetBackingStore().Set("defaultUsageLocation", value) if err != nil { panic(err) } } // SetDisplayName sets the displayName property value. The display name for the tenant. func (m *Organization) SetDisplayName(value *string)() { err := m.GetBackingStore().Set("displayName", value) if err != nil { panic(err) } } // SetExtensions sets the extensions property value. The collection of open extensions defined for the organization. Read-only. Nullable. func (m *Organization) SetExtensions(value []Extensionable)() { err := m.GetBackingStore().Set("extensions", value) if err != nil { panic(err) } } // SetMarketingNotificationEmails sets the marketingNotificationEmails property value. Not nullable. func (m *Organization) SetMarketingNotificationEmails(value []string)() { err := m.GetBackingStore().Set("marketingNotificationEmails", value) if err != nil { panic(err) } } // SetMobileDeviceManagementAuthority sets the mobileDeviceManagementAuthority property value. Mobile device management authority. func (m *Organization) SetMobileDeviceManagementAuthority(value *MdmAuthority)() { err := m.GetBackingStore().Set("mobileDeviceManagementAuthority", value) if err != nil { panic(err) } } // SetOnPremisesLastSyncDateTime sets the onPremisesLastSyncDateTime property value. The time and date at which the tenant was last synced with the on-premises directory. 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 *Organization) SetOnPremisesLastSyncDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("onPremisesLastSyncDateTime", value) if err != nil { panic(err) } } // SetOnPremisesSyncEnabled sets the onPremisesSyncEnabled property value. true if this object is synced from an on-premises directory; false if this object was originally synced from an on-premises directory but is no longer synced. Nullable. null if this object isn't synced from on-premises active directory (default). func (m *Organization) SetOnPremisesSyncEnabled(value *bool)() { err := m.GetBackingStore().Set("onPremisesSyncEnabled", value) if err != nil { panic(err) } } // SetPartnerTenantType sets the partnerTenantType property value. The type of partnership this tenant has with Microsoft. The possible values are: microsoftSupport, syndicatePartner, breadthPartner, breadthPartnerDelegatedAdmin, resellerPartnerDelegatedAdmin, valueAddedResellerPartnerDelegatedAdmin, unknownFutureValue. Nullable. For more information about the possible types, see partnerTenantType values. func (m *Organization) SetPartnerTenantType(value *PartnerTenantType)() { err := m.GetBackingStore().Set("partnerTenantType", value) if err != nil { panic(err) } } // SetPostalCode sets the postalCode property value. Postal code of the address for the organization. func (m *Organization) SetPostalCode(value *string)() { err := m.GetBackingStore().Set("postalCode", value) if err != nil { panic(err) } } // SetPreferredLanguage sets the preferredLanguage property value. The preferred language for the organization. Should follow ISO 639-1 Code; for example, en. func (m *Organization) SetPreferredLanguage(value *string)() { err := m.GetBackingStore().Set("preferredLanguage", value) if err != nil { panic(err) } } // SetPrivacyProfile sets the privacyProfile property value. The privacy profile of an organization. func (m *Organization) SetPrivacyProfile(value PrivacyProfileable)() { err := m.GetBackingStore().Set("privacyProfile", value) if err != nil { panic(err) } } // SetProvisionedPlans sets the provisionedPlans property value. Not nullable. func (m *Organization) SetProvisionedPlans(value []ProvisionedPlanable)() { err := m.GetBackingStore().Set("provisionedPlans", value) if err != nil { panic(err) } } // SetSecurityComplianceNotificationMails sets the securityComplianceNotificationMails property value. Not nullable. func (m *Organization) SetSecurityComplianceNotificationMails(value []string)() { err := m.GetBackingStore().Set("securityComplianceNotificationMails", value) if err != nil { panic(err) } } // SetSecurityComplianceNotificationPhones sets the securityComplianceNotificationPhones property value. Not nullable. func (m *Organization) SetSecurityComplianceNotificationPhones(value []string)() { err := m.GetBackingStore().Set("securityComplianceNotificationPhones", value) if err != nil { panic(err) } } // SetState sets the state property value. State name of the address for the organization. func (m *Organization) SetState(value *string)() { err := m.GetBackingStore().Set("state", value) if err != nil { panic(err) } } // SetStreet sets the street property value. Street name of the address for organization. func (m *Organization) SetStreet(value *string)() { err := m.GetBackingStore().Set("street", value) if err != nil { panic(err) } } // SetTechnicalNotificationMails sets the technicalNotificationMails property value. Not nullable. func (m *Organization) SetTechnicalNotificationMails(value []string)() { err := m.GetBackingStore().Set("technicalNotificationMails", value) if err != nil { panic(err) } } // SetTenantType sets the tenantType property value. Not nullable. Can be one of the following types: AAD - An enterprise identity access management (IAM) service that serves business-to-employee and business-to-business (B2B) scenarios. AAD B2C An identity access management (IAM) service that serves business-to-consumer (B2C) scenarios. CIAM - A customer identity & access management (CIAM) solution that provides an integrated platform to serve consumers, partners, and citizen scenarios. func (m *Organization) SetTenantType(value *string)() { err := m.GetBackingStore().Set("tenantType", value) if err != nil { panic(err) } } // SetVerifiedDomains sets the verifiedDomains property value. The collection of domains associated with this tenant. Not nullable. func (m *Organization) SetVerifiedDomains(value []VerifiedDomainable)() { err := m.GetBackingStore().Set("verifiedDomains", value) if err != nil { panic(err) } } type Organizationable interface { DirectoryObjectable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetAssignedPlans()([]AssignedPlanable) GetBranding()(OrganizationalBrandingable) GetBusinessPhones()([]string) GetCertificateBasedAuthConfiguration()([]CertificateBasedAuthConfigurationable) GetCity()(*string) GetCountry()(*string) GetCountryLetterCode()(*string) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetDefaultUsageLocation()(*string) GetDisplayName()(*string) GetExtensions()([]Extensionable) GetMarketingNotificationEmails()([]string) GetMobileDeviceManagementAuthority()(*MdmAuthority) GetOnPremisesLastSyncDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetOnPremisesSyncEnabled()(*bool) GetPartnerTenantType()(*PartnerTenantType) GetPostalCode()(*string) GetPreferredLanguage()(*string) GetPrivacyProfile()(PrivacyProfileable) GetProvisionedPlans()([]ProvisionedPlanable) GetSecurityComplianceNotificationMails()([]string) GetSecurityComplianceNotificationPhones()([]string) GetState()(*string) GetStreet()(*string) GetTechnicalNotificationMails()([]string) GetTenantType()(*string) GetVerifiedDomains()([]VerifiedDomainable) SetAssignedPlans(value []AssignedPlanable)() SetBranding(value OrganizationalBrandingable)() SetBusinessPhones(value []string)() SetCertificateBasedAuthConfiguration(value []CertificateBasedAuthConfigurationable)() SetCity(value *string)() SetCountry(value *string)() SetCountryLetterCode(value *string)() SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetDefaultUsageLocation(value *string)() SetDisplayName(value *string)() SetExtensions(value []Extensionable)() SetMarketingNotificationEmails(value []string)() SetMobileDeviceManagementAuthority(value *MdmAuthority)() SetOnPremisesLastSyncDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetOnPremisesSyncEnabled(value *bool)() SetPartnerTenantType(value *PartnerTenantType)() SetPostalCode(value *string)() SetPreferredLanguage(value *string)() SetPrivacyProfile(value PrivacyProfileable)() SetProvisionedPlans(value []ProvisionedPlanable)() SetSecurityComplianceNotificationMails(value []string)() SetSecurityComplianceNotificationPhones(value []string)() SetState(value *string)() SetStreet(value *string)() SetTechnicalNotificationMails(value []string)() SetTenantType(value *string)() SetVerifiedDomains(value []VerifiedDomainable)() }