Class: MicrosoftGraph::Models::AuthorizationPolicy
- Inherits:
-
PolicyBase
- Object
- Entity
- DirectoryObject
- PolicyBase
- MicrosoftGraph::Models::AuthorizationPolicy
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/authorization_policy.rb
Class Method Summary collapse
-
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value.
Instance Method Summary collapse
-
#allow_email_verified_users_to_join_organization ⇒ Object
Gets the allowEmailVerifiedUsersToJoinOrganization property value.
-
#allow_email_verified_users_to_join_organization=(value) ⇒ Object
Sets the allowEmailVerifiedUsersToJoinOrganization property value.
-
#allow_invites_from ⇒ Object
Gets the allowInvitesFrom property value.
-
#allow_invites_from=(value) ⇒ Object
Sets the allowInvitesFrom property value.
-
#allow_user_consent_for_risky_apps ⇒ Object
Gets the allowUserConsentForRiskyApps property value.
-
#allow_user_consent_for_risky_apps=(value) ⇒ Object
Sets the allowUserConsentForRiskyApps property value.
-
#allowed_to_sign_up_email_based_subscriptions ⇒ Object
Gets the allowedToSignUpEmailBasedSubscriptions property value.
-
#allowed_to_sign_up_email_based_subscriptions=(value) ⇒ Object
Sets the allowedToSignUpEmailBasedSubscriptions property value.
-
#allowed_to_use_s_s_p_r ⇒ Object
Gets the allowedToUseSSPR property value.
-
#allowed_to_use_s_s_p_r=(value) ⇒ Object
Sets the allowedToUseSSPR property value.
-
#block_msol_power_shell ⇒ Object
Gets the blockMsolPowerShell property value.
-
#block_msol_power_shell=(value) ⇒ Object
Sets the blockMsolPowerShell property value.
-
#default_user_role_permissions ⇒ Object
Gets the defaultUserRolePermissions property value.
-
#default_user_role_permissions=(value) ⇒ Object
Sets the defaultUserRolePermissions property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#guest_user_role_id ⇒ Object
Gets the guestUserRoleId property value.
-
#guest_user_role_id=(value) ⇒ Object
Sets the guestUserRoleId property value.
-
#initialize ⇒ Object
constructor
Instantiates a new authorizationPolicy and sets the default values.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Methods inherited from PolicyBase
#description, #description=, #display_name, #display_name=
Methods inherited from DirectoryObject
#deleted_date_time, #deleted_date_time=
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new authorizationPolicy and sets the default values.
127 128 129 130 |
# File 'lib/models/authorization_policy.rb', line 127 def initialize() super @odata_type = "#microsoft.graph.authorizationPolicy" end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
136 137 138 139 |
# File 'lib/models/authorization_policy.rb', line 136 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return AuthorizationPolicy.new end |
Instance Method Details
#allow_email_verified_users_to_join_organization ⇒ Object
Gets the allowEmailVerifiedUsersToJoinOrganization property value. Indicates whether a user can join the tenant by email validation.
37 38 39 |
# File 'lib/models/authorization_policy.rb', line 37 def allow_email_verified_users_to_join_organization return @allow_email_verified_users_to_join_organization end |
#allow_email_verified_users_to_join_organization=(value) ⇒ Object
Sets the allowEmailVerifiedUsersToJoinOrganization property value. Indicates whether a user can join the tenant by email validation.
45 46 47 |
# File 'lib/models/authorization_policy.rb', line 45 def allow_email_verified_users_to_join_organization=(value) @allow_email_verified_users_to_join_organization = value end |
#allow_invites_from ⇒ Object
Gets the allowInvitesFrom property value. Indicates who can invite external users to the organization. Possible values are: none, adminsAndGuestInviters, adminsGuestInvitersAndAllMembers, everyone. everyone is the default setting for all cloud environments except US Government. For more details, see allowInvitesFrom values.
52 53 54 |
# File 'lib/models/authorization_policy.rb', line 52 def allow_invites_from return @allow_invites_from end |
#allow_invites_from=(value) ⇒ Object
Sets the allowInvitesFrom property value. Indicates who can invite external users to the organization. Possible values are: none, adminsAndGuestInviters, adminsGuestInvitersAndAllMembers, everyone. everyone is the default setting for all cloud environments except US Government. For more details, see allowInvitesFrom values.
60 61 62 |
# File 'lib/models/authorization_policy.rb', line 60 def allow_invites_from=(value) @allow_invites_from = value end |
#allow_user_consent_for_risky_apps ⇒ Object
Gets the allowUserConsentForRiskyApps property value. Indicates whether user consent for risky apps is allowed. We recommend to keep this as false. Default value is false.
67 68 69 |
# File 'lib/models/authorization_policy.rb', line 67 def return end |
#allow_user_consent_for_risky_apps=(value) ⇒ Object
Sets the allowUserConsentForRiskyApps property value. Indicates whether user consent for risky apps is allowed. We recommend to keep this as false. Default value is false.
75 76 77 |
# File 'lib/models/authorization_policy.rb', line 75 def (value) = value end |
#allowed_to_sign_up_email_based_subscriptions ⇒ Object
Gets the allowedToSignUpEmailBasedSubscriptions property value. Indicates whether users can sign up for email based subscriptions.
82 83 84 |
# File 'lib/models/authorization_policy.rb', line 82 def allowed_to_sign_up_email_based_subscriptions return @allowed_to_sign_up_email_based_subscriptions end |
#allowed_to_sign_up_email_based_subscriptions=(value) ⇒ Object
Sets the allowedToSignUpEmailBasedSubscriptions property value. Indicates whether users can sign up for email based subscriptions.
90 91 92 |
# File 'lib/models/authorization_policy.rb', line 90 def allowed_to_sign_up_email_based_subscriptions=(value) @allowed_to_sign_up_email_based_subscriptions = value end |
#allowed_to_use_s_s_p_r ⇒ Object
Gets the allowedToUseSSPR property value. Indicates whether users can use the Self-Serve Password Reset feature on the tenant.
97 98 99 |
# File 'lib/models/authorization_policy.rb', line 97 def allowed_to_use_s_s_p_r return @allowed_to_use_s_s_p_r end |
#allowed_to_use_s_s_p_r=(value) ⇒ Object
Sets the allowedToUseSSPR property value. Indicates whether users can use the Self-Serve Password Reset feature on the tenant.
105 106 107 |
# File 'lib/models/authorization_policy.rb', line 105 def allowed_to_use_s_s_p_r=(value) @allowed_to_use_s_s_p_r = value end |
#block_msol_power_shell ⇒ Object
Gets the blockMsolPowerShell property value. To disable the use of MSOL PowerShell, set this property to true. This also disables user-based access to the legacy service endpoint used by MSOL PowerShell. This does not affect Azure Active Directory Connect or Microsoft Graph.
112 113 114 |
# File 'lib/models/authorization_policy.rb', line 112 def block_msol_power_shell return @block_msol_power_shell end |
#block_msol_power_shell=(value) ⇒ Object
Sets the blockMsolPowerShell property value. To disable the use of MSOL PowerShell, set this property to true. This also disables user-based access to the legacy service endpoint used by MSOL PowerShell. This does not affect Azure Active Directory Connect or Microsoft Graph.
120 121 122 |
# File 'lib/models/authorization_policy.rb', line 120 def block_msol_power_shell=(value) @block_msol_power_shell = value end |
#default_user_role_permissions ⇒ Object
Gets the defaultUserRolePermissions property value. The defaultUserRolePermissions property
144 145 146 |
# File 'lib/models/authorization_policy.rb', line 144 def return end |
#default_user_role_permissions=(value) ⇒ Object
Sets the defaultUserRolePermissions property value. The defaultUserRolePermissions property
152 153 154 |
# File 'lib/models/authorization_policy.rb', line 152 def (value) = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
159 160 161 162 163 164 165 166 167 168 169 170 |
# File 'lib/models/authorization_policy.rb', line 159 def get_field_deserializers() return super.merge({ "allowEmailVerifiedUsersToJoinOrganization" => lambda {|n| @allow_email_verified_users_to_join_organization = n.get_boolean_value() }, "allowInvitesFrom" => lambda {|n| @allow_invites_from = n.get_enum_value(MicrosoftGraph::Models::AllowInvitesFrom) }, "allowUserConsentForRiskyApps" => lambda {|n| = n.get_boolean_value() }, "allowedToSignUpEmailBasedSubscriptions" => lambda {|n| @allowed_to_sign_up_email_based_subscriptions = n.get_boolean_value() }, "allowedToUseSSPR" => lambda {|n| @allowed_to_use_s_s_p_r = n.get_boolean_value() }, "blockMsolPowerShell" => lambda {|n| @block_msol_power_shell = n.get_boolean_value() }, "defaultUserRolePermissions" => lambda {|n| = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::DefaultUserRolePermissions.create_from_discriminator_value(pn) }) }, "guestUserRoleId" => lambda {|n| @guest_user_role_id = n.get_guid_value() }, }) end |
#guest_user_role_id ⇒ Object
Gets the guestUserRoleId property value. Represents role templateId for the role that should be granted to guest user. Currently following roles are supported: User (a0b1b346-4d3e-4e8b-98f8-753987be4970), Guest User (10dae51f-b6af-4016-8d66-8c2a99b929b3), and Restricted Guest User (2af84b1e-32c8-42b7-82bc-daa82404023b).
175 176 177 |
# File 'lib/models/authorization_policy.rb', line 175 def guest_user_role_id return @guest_user_role_id end |
#guest_user_role_id=(value) ⇒ Object
Sets the guestUserRoleId property value. Represents role templateId for the role that should be granted to guest user. Currently following roles are supported: User (a0b1b346-4d3e-4e8b-98f8-753987be4970), Guest User (10dae51f-b6af-4016-8d66-8c2a99b929b3), and Restricted Guest User (2af84b1e-32c8-42b7-82bc-daa82404023b).
183 184 185 |
# File 'lib/models/authorization_policy.rb', line 183 def guest_user_role_id=(value) @guest_user_role_id = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
191 192 193 194 195 196 197 198 199 200 201 202 |
# File 'lib/models/authorization_policy.rb', line 191 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_boolean_value("allowEmailVerifiedUsersToJoinOrganization", @allow_email_verified_users_to_join_organization) writer.write_enum_value("allowInvitesFrom", @allow_invites_from) writer.write_boolean_value("allowUserConsentForRiskyApps", ) writer.write_boolean_value("allowedToSignUpEmailBasedSubscriptions", @allowed_to_sign_up_email_based_subscriptions) writer.write_boolean_value("allowedToUseSSPR", @allowed_to_use_s_s_p_r) writer.write_boolean_value("blockMsolPowerShell", @block_msol_power_shell) writer.write_object_value("defaultUserRolePermissions", ) writer.write_guid_value("guestUserRoleId", @guest_user_role_id) end |