Class: MicrosoftGraph::Models::FeatureRolloutPolicy
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/feature_rollout_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
-
#applies_to ⇒ Object
Gets the appliesTo property value.
-
#applies_to=(value) ⇒ Object
Sets the appliesTo property value.
-
#description ⇒ Object
Gets the description property value.
-
#description=(value) ⇒ Object
Sets the description property value.
-
#display_name ⇒ Object
Gets the displayName property value.
-
#display_name=(value) ⇒ Object
Sets the displayName property value.
-
#feature ⇒ Object
Gets the feature property value.
-
#feature=(value) ⇒ Object
Sets the feature property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new featureRolloutPolicy and sets the default values.
-
#is_applied_to_organization ⇒ Object
Gets the isAppliedToOrganization property value.
-
#is_applied_to_organization=(value) ⇒ Object
Sets the isAppliedToOrganization property value.
-
#is_enabled ⇒ Object
Gets the isEnabled property value.
-
#is_enabled=(value) ⇒ Object
Sets the isEnabled property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new featureRolloutPolicy and sets the default values.
46 47 48 |
# File 'lib/models/feature_rollout_policy.rb', line 46 def initialize() super end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
54 55 56 57 |
# File 'lib/models/feature_rollout_policy.rb', line 54 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return FeatureRolloutPolicy.new end |
Instance Method Details
#applies_to ⇒ Object
Gets the appliesTo property value. Nullable. Specifies a list of directoryObjects that feature is enabled for.
31 32 33 |
# File 'lib/models/feature_rollout_policy.rb', line 31 def applies_to return @applies_to end |
#applies_to=(value) ⇒ Object
Sets the appliesTo property value. Nullable. Specifies a list of directoryObjects that feature is enabled for.
39 40 41 |
# File 'lib/models/feature_rollout_policy.rb', line 39 def applies_to=(value) @applies_to = value end |
#description ⇒ Object
Gets the description property value. A description for this feature rollout policy.
62 63 64 |
# File 'lib/models/feature_rollout_policy.rb', line 62 def description return @description end |
#description=(value) ⇒ Object
Sets the description property value. A description for this feature rollout policy.
70 71 72 |
# File 'lib/models/feature_rollout_policy.rb', line 70 def description=(value) @description = value end |
#display_name ⇒ Object
Gets the displayName property value. The display name for this feature rollout policy.
77 78 79 |
# File 'lib/models/feature_rollout_policy.rb', line 77 def display_name return @display_name end |
#display_name=(value) ⇒ Object
Sets the displayName property value. The display name for this feature rollout policy.
85 86 87 |
# File 'lib/models/feature_rollout_policy.rb', line 85 def display_name=(value) @display_name = value end |
#feature ⇒ Object
Gets the feature property value. The feature property
92 93 94 |
# File 'lib/models/feature_rollout_policy.rb', line 92 def feature return @feature end |
#feature=(value) ⇒ Object
Sets the feature property value. The feature property
100 101 102 |
# File 'lib/models/feature_rollout_policy.rb', line 100 def feature=(value) @feature = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
107 108 109 110 111 112 113 114 115 116 |
# File 'lib/models/feature_rollout_policy.rb', line 107 def get_field_deserializers() return super.merge({ "appliesTo" => lambda {|n| @applies_to = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }) }, "description" => lambda {|n| @description = n.get_string_value() }, "displayName" => lambda {|n| @display_name = n.get_string_value() }, "feature" => lambda {|n| @feature = n.get_enum_value(MicrosoftGraph::Models::StagedFeatureName) }, "isAppliedToOrganization" => lambda {|n| @is_applied_to_organization = n.get_boolean_value() }, "isEnabled" => lambda {|n| @is_enabled = n.get_boolean_value() }, }) end |
#is_applied_to_organization ⇒ Object
Gets the isAppliedToOrganization property value. Indicates whether this feature rollout policy should be applied to the entire organization.
121 122 123 |
# File 'lib/models/feature_rollout_policy.rb', line 121 def is_applied_to_organization return @is_applied_to_organization end |
#is_applied_to_organization=(value) ⇒ Object
Sets the isAppliedToOrganization property value. Indicates whether this feature rollout policy should be applied to the entire organization.
129 130 131 |
# File 'lib/models/feature_rollout_policy.rb', line 129 def is_applied_to_organization=(value) @is_applied_to_organization = value end |
#is_enabled ⇒ Object
Gets the isEnabled property value. Indicates whether the feature rollout is enabled.
136 137 138 |
# File 'lib/models/feature_rollout_policy.rb', line 136 def is_enabled return @is_enabled end |
#is_enabled=(value) ⇒ Object
Sets the isEnabled property value. Indicates whether the feature rollout is enabled.
144 145 146 |
# File 'lib/models/feature_rollout_policy.rb', line 144 def is_enabled=(value) @is_enabled = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
152 153 154 155 156 157 158 159 160 161 |
# File 'lib/models/feature_rollout_policy.rb', line 152 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_collection_of_object_values("appliesTo", @applies_to) writer.write_string_value("description", @description) writer.write_string_value("displayName", @display_name) writer.write_enum_value("feature", @feature) writer.write_boolean_value("isAppliedToOrganization", @is_applied_to_organization) writer.write_boolean_value("isEnabled", @is_enabled) end |