Class: MicrosoftGraph::Models::WorkforceIntegration

Inherits:
ChangeTrackedEntity show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/workforce_integration.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from ChangeTrackedEntity

#created_date_time, #created_date_time=, #last_modified_by, #last_modified_by=, #last_modified_date_time, #last_modified_date_time=

Methods inherited from Entity

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

Constructor Details

#initializeObject

Instantiates a new workforceIntegration and sets the default values.



46
47
48
49
# File 'lib/models/workforce_integration.rb', line 46

def initialize()
    super
    @odata_type = "#microsoft.graph.workforceIntegration"
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 workforce_integration

Raises:

  • (StandardError)


55
56
57
58
# File 'lib/models/workforce_integration.rb', line 55

def self.create_from_discriminator_value(parse_node)
    raise StandardError, 'parse_node cannot be null' if parse_node.nil?
    return WorkforceIntegration.new
end

Instance Method Details

#api_versionObject

Gets the apiVersion property value. API version for the call back URL. Start with 1.

Returns:

  • a integer



31
32
33
# File 'lib/models/workforce_integration.rb', line 31

def api_version
    return @api_version
end

#api_version=(value) ⇒ Object

Sets the apiVersion property value. API version for the call back URL. Start with 1.

Parameters:

  • value

    Value to set for the apiVersion property.

Returns:

  • a void



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

def api_version=(value)
    @api_version = value
end

#display_nameObject

Gets the displayName property value. Name of the workforce integration.

Returns:

  • a string



63
64
65
# File 'lib/models/workforce_integration.rb', line 63

def display_name
    return @display_name
end

#display_name=(value) ⇒ Object

Sets the displayName property value. Name of the workforce integration.

Parameters:

  • value

    Value to set for the displayName property.

Returns:

  • a void



71
72
73
# File 'lib/models/workforce_integration.rb', line 71

def display_name=(value)
    @display_name = value
end

#encryptionObject

Gets the encryption property value. The workforce integration encryption resource.

Returns:

  • a workforce_integration_encryption



78
79
80
# File 'lib/models/workforce_integration.rb', line 78

def encryption
    return @encryption
end

#encryption=(value) ⇒ Object

Sets the encryption property value. The workforce integration encryption resource.

Parameters:

  • value

    Value to set for the encryption property.

Returns:

  • a void



86
87
88
# File 'lib/models/workforce_integration.rb', line 86

def encryption=(value)
    @encryption = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



93
94
95
96
97
98
99
100
101
102
# File 'lib/models/workforce_integration.rb', line 93

def get_field_deserializers()
    return super.merge({
        "apiVersion" => lambda {|n| @api_version = n.get_number_value() },
        "displayName" => lambda {|n| @display_name = n.get_string_value() },
        "encryption" => lambda {|n| @encryption = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::WorkforceIntegrationEncryption.create_from_discriminator_value(pn) }) },
        "isActive" => lambda {|n| @is_active = n.get_boolean_value() },
        "supportedEntities" => lambda {|n| @supported_entities = n.get_enum_value(MicrosoftGraph::Models::WorkforceIntegrationSupportedEntities) },
        "url" => lambda {|n| @url = n.get_string_value() },
    })
end

#is_activeObject

Gets the isActive property value. Indicates whether this workforce integration is currently active and available.

Returns:

  • a boolean



107
108
109
# File 'lib/models/workforce_integration.rb', line 107

def is_active
    return @is_active
end

#is_active=(value) ⇒ Object

Sets the isActive property value. Indicates whether this workforce integration is currently active and available.

Parameters:

  • value

    Value to set for the isActive property.

Returns:

  • a void



115
116
117
# File 'lib/models/workforce_integration.rb', line 115

def is_active=(value)
    @is_active = 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)


123
124
125
126
127
128
129
130
131
132
# File 'lib/models/workforce_integration.rb', line 123

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_number_value("apiVersion", @api_version)
    writer.write_string_value("displayName", @display_name)
    writer.write_object_value("encryption", @encryption)
    writer.write_boolean_value("isActive", @is_active)
    writer.write_enum_value("supportedEntities", @supported_entities)
    writer.write_string_value("url", @url)
end

#supported_entitiesObject

Gets the supportedEntities property value. The Shifts entities supported for synchronous change notifications. Shifts will make a call back to the url provided on client changes on those entities added here. By default, no entities are supported for change notifications. Possible values are: none, shift, swapRequest, userShiftPreferences, openshift, openShiftRequest, offerShiftRequest, unknownFutureValue.

Returns:

  • a workforce_integration_supported_entities



137
138
139
# File 'lib/models/workforce_integration.rb', line 137

def supported_entities
    return @supported_entities
end

#supported_entities=(value) ⇒ Object

Sets the supportedEntities property value. The Shifts entities supported for synchronous change notifications. Shifts will make a call back to the url provided on client changes on those entities added here. By default, no entities are supported for change notifications. Possible values are: none, shift, swapRequest, userShiftPreferences, openshift, openShiftRequest, offerShiftRequest, unknownFutureValue.

Parameters:

  • value

    Value to set for the supportedEntities property.

Returns:

  • a void



145
146
147
# File 'lib/models/workforce_integration.rb', line 145

def supported_entities=(value)
    @supported_entities = value
end

#urlObject

Gets the url property value. Workforce Integration URL for callbacks from the Shifts service.

Returns:

  • a string



152
153
154
# File 'lib/models/workforce_integration.rb', line 152

def url
    return @url
end

#url=(value) ⇒ Object

Sets the url property value. Workforce Integration URL for callbacks from the Shifts service.

Parameters:

  • value

    Value to set for the url property.

Returns:

  • a void



160
161
162
# File 'lib/models/workforce_integration.rb', line 160

def url=(value)
    @url = value
end