Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ type ConditionalAccessAllExternalTenants struct {

// Fields inherited from ConditionalAccessExternalTenants

Members *[]string `json:"members,omitempty"`

// The membership kind. Possible values are: all, enumerated, unknownFutureValue. The enumerated member references an
// conditionalAccessEnumeratedExternalTenants object.
MembershipKind *ConditionalAccessExternalTenantsMembershipKind `json:"membershipKind,omitempty"`
Expand All @@ -30,6 +32,7 @@ type ConditionalAccessAllExternalTenants struct {

func (s ConditionalAccessAllExternalTenants) ConditionalAccessExternalTenants() BaseConditionalAccessExternalTenantsImpl {
return BaseConditionalAccessExternalTenantsImpl{
Members: s.Members,
MembershipKind: s.MembershipKind,
ODataId: s.ODataId,
ODataType: s.ODataType,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ type ConditionalAccessConditionSet struct {
ClientApplications *ConditionalAccessClientApplications `json:"clientApplications,omitempty"`

// Devices in the policy.
Devices *ConditionalAccessDevices `json:"devices,omitempty"`
Devices *ConditionalAccessDevices `json:"devices"`

// Insider risk levels included in the policy. The possible values are: minor, moderate, elevated, unknownFutureValue.
InsiderRiskLevels *ConditionalAccessInsiderRiskLevels `json:"insiderRiskLevels,omitempty"`

// Locations included in and excluded from the policy.
Locations *ConditionalAccessLocations `json:"locations,omitempty"`
Locations *ConditionalAccessLocations `json:"locations"`

// The OData ID of this entity
ODataId *string `json:"@odata.id,omitempty"`
Expand All @@ -35,7 +35,7 @@ type ConditionalAccessConditionSet struct {
ODataType *string `json:"@odata.type,omitempty"`

// Platforms included in and excluded from the policy.
Platforms *ConditionalAccessPlatforms `json:"platforms,omitempty"`
Platforms *ConditionalAccessPlatforms `json:"platforms"`

// Service principal risk levels included in the policy. Possible values are: low, medium, high, none,
// unknownFutureValue.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,11 @@ import (
var _ ConditionalAccessExternalTenants = ConditionalAccessEnumeratedExternalTenants{}

type ConditionalAccessEnumeratedExternalTenants struct {
// A collection of tenant IDs that define the scope of a policy targeting conditional access for guests and external
// users.
Members *[]string `json:"members,omitempty"`

// Fields inherited from ConditionalAccessExternalTenants

Members *[]string `json:"members,omitempty"`

// The membership kind. Possible values are: all, enumerated, unknownFutureValue. The enumerated member references an
// conditionalAccessEnumeratedExternalTenants object.
MembershipKind *ConditionalAccessExternalTenantsMembershipKind `json:"membershipKind,omitempty"`
Expand All @@ -33,6 +32,7 @@ type ConditionalAccessEnumeratedExternalTenants struct {

func (s ConditionalAccessEnumeratedExternalTenants) ConditionalAccessExternalTenants() BaseConditionalAccessExternalTenantsImpl {
return BaseConditionalAccessExternalTenantsImpl{
Members: s.Members,
MembershipKind: s.MembershipKind,
ODataId: s.ODataId,
ODataType: s.ODataType,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ type ConditionalAccessExternalTenants interface {
var _ ConditionalAccessExternalTenants = BaseConditionalAccessExternalTenantsImpl{}

type BaseConditionalAccessExternalTenantsImpl struct {
Members *[]string `json:"members,omitempty"`

// The membership kind. Possible values are: all, enumerated, unknownFutureValue. The enumerated member references an
// conditionalAccessEnumeratedExternalTenants object.
MembershipKind *ConditionalAccessExternalTenantsMembershipKind `json:"membershipKind,omitempty"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ type ConditionalAccessPolicy struct {
DisplayName *string `json:"displayName,omitempty"`

// Specifies the grant controls that must be fulfilled to pass the policy.
GrantControls *ConditionalAccessGrantControls `json:"grantControls,omitempty"`
GrantControls *ConditionalAccessGrantControls `json:"grantControls"`

// 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. Readonly.
ModifiedDateTime nullable.Type[string] `json:"modifiedDateTime,omitempty"`

// Specifies the session controls that are enforced after sign-in.
SessionControls *ConditionalAccessSessionControls `json:"sessionControls,omitempty"`
SessionControls *ConditionalAccessSessionControls `json:"sessionControls"`

State *ConditionalAccessPolicyState `json:"state,omitempty"`
TemplateId nullable.Type[string] `json:"templateId,omitempty"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type ConditionalAccessSessionControls struct {
ApplicationEnforcedRestrictions *ApplicationEnforcedRestrictionsSessionControl `json:"applicationEnforcedRestrictions,omitempty"`

// Session control to apply cloud app security.
CloudAppSecurity *CloudAppSecuritySessionControl `json:"cloudAppSecurity,omitempty"`
CloudAppSecurity *CloudAppSecuritySessionControl `json:"cloudAppSecurity"`

// Session control that determines whether it is acceptable for Microsoft Entra ID to extend existing sessions based on
// information collected prior to an outage or not.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ type ConditionalAccessUsers struct {
ExcludeGroups *[]string `json:"excludeGroups,omitempty"`

// Internal guests or external users excluded from the policy scope. Optionally populated.
ExcludeGuestsOrExternalUsers *ConditionalAccessGuestsOrExternalUsers `json:"excludeGuestsOrExternalUsers,omitempty"`
ExcludeGuestsOrExternalUsers *ConditionalAccessGuestsOrExternalUsers `json:"excludeGuestsOrExternalUsers"`

// Role IDs excluded from scope of policy.
ExcludeRoles *[]string `json:"excludeRoles,omitempty"`
Expand All @@ -20,7 +20,7 @@ type ConditionalAccessUsers struct {
IncludeGroups *[]string `json:"includeGroups,omitempty"`

// Internal guests or external users included in the policy scope. Optionally populated.
IncludeGuestsOrExternalUsers *ConditionalAccessGuestsOrExternalUsers `json:"includeGuestsOrExternalUsers,omitempty"`
IncludeGuestsOrExternalUsers *ConditionalAccessGuestsOrExternalUsers `json:"includeGuestsOrExternalUsers"`

// Role IDs in scope of policy unless explicitly excluded.
IncludeRoles *[]string `json:"includeRoles,omitempty"`
Expand Down
Loading