Class: MicrosoftGraph::Models::FeatureRolloutPolicy

Inherits:
Entity
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/feature_rollout_policy.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Entity

#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=

Constructor Details

#initializeObject

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

Parameters:

  • parse_node

    The parse node to use to read the discriminator value and create the object

Returns:

  • a feature_rollout_policy

Raises:

  • (StandardError)


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_toObject

Gets the appliesTo property value. Nullable. Specifies a list of directoryObjects that feature is enabled for.

Returns:

  • a directory_object



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.

Parameters:

  • value

    Value to set for the appliesTo property.

Returns:

  • a void



39
40
41
# File 'lib/models/feature_rollout_policy.rb', line 39

def applies_to=(value)
    @applies_to = value
end

#descriptionObject

Gets the description property value. A description for this feature rollout policy.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the description property.

Returns:

  • a void



70
71
72
# File 'lib/models/feature_rollout_policy.rb', line 70

def description=(value)
    @description = value
end

#display_nameObject

Gets the displayName property value. The display name for this feature rollout policy.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the displayName property.

Returns:

  • a void



85
86
87
# File 'lib/models/feature_rollout_policy.rb', line 85

def display_name=(value)
    @display_name = value
end

#featureObject

Gets the feature property value. The feature property

Returns:

  • a staged_feature_name



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

Parameters:

  • value

    Value to set for the feature property.

Returns:

  • a void



100
101
102
# File 'lib/models/feature_rollout_policy.rb', line 100

def feature=(value)
    @feature = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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_organizationObject

Gets the isAppliedToOrganization property value. Indicates whether this feature rollout policy should be applied to the entire organization.

Returns:

  • a boolean



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.

Parameters:

  • value

    Value to set for the isAppliedToOrganization property.

Returns:

  • a void



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_enabledObject

Gets the isEnabled property value. Indicates whether the feature rollout is enabled.

Returns:

  • a boolean



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.

Parameters:

  • value

    Value to set for the isEnabled property.

Returns:

  • a void



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

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


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