Class: MicrosoftGraph::Models::WorkforceIntegration
- Inherits:
-
ChangeTrackedEntity
- Object
- Entity
- ChangeTrackedEntity
- MicrosoftGraph::Models::WorkforceIntegration
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/workforce_integration.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
-
#api_version ⇒ Object
Gets the apiVersion property value.
-
#api_version=(value) ⇒ Object
Sets the apiVersion property value.
-
#display_name ⇒ Object
Gets the displayName property value.
-
#display_name=(value) ⇒ Object
Sets the displayName property value.
-
#encryption ⇒ Object
Gets the encryption property value.
-
#encryption=(value) ⇒ Object
Sets the encryption property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new workforceIntegration and sets the default values.
-
#is_active ⇒ Object
Gets the isActive property value.
-
#is_active=(value) ⇒ Object
Sets the isActive property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#supported_entities ⇒ Object
Gets the supportedEntities property value.
-
#supported_entities=(value) ⇒ Object
Sets the supportedEntities property value.
-
#url ⇒ Object
Gets the url property value.
-
#url=(value) ⇒ Object
Sets the url property value.
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
#initialize ⇒ Object
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
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_version ⇒ Object
Gets the apiVersion property value. API version for the call back URL. Start with 1.
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.
39 40 41 |
# File 'lib/models/workforce_integration.rb', line 39 def api_version=(value) @api_version = value end |
#display_name ⇒ Object
Gets the displayName property value. Name of the workforce integration.
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.
71 72 73 |
# File 'lib/models/workforce_integration.rb', line 71 def display_name=(value) @display_name = value end |
#encryption ⇒ Object
Gets the encryption property value. The workforce integration encryption resource.
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.
86 87 88 |
# File 'lib/models/workforce_integration.rb', line 86 def encryption=(value) @encryption = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
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_active ⇒ Object
Gets the isActive property value. Indicates whether this workforce integration is currently active and available.
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.
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
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_entities ⇒ Object
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.
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.
145 146 147 |
# File 'lib/models/workforce_integration.rb', line 145 def supported_entities=(value) @supported_entities = value end |
#url ⇒ Object
Gets the url property value. Workforce Integration URL for callbacks from the Shifts service.
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.
160 161 162 |
# File 'lib/models/workforce_integration.rb', line 160 def url=(value) @url = value end |