# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.

module Azure::Compute::Mgmt::V2020_09_30_preview
  module Models
    #
    # Specifies information about the gallery sharing profile update.
    #
    class SharingUpdate

      include MsRestAzure

      # @return [SharingUpdateOperationTypes] This property allows you to
      # specify the operation type of gallery sharing update. <br><br> Possible
      # values are: <br><br> **Add** <br><br> **Remove** <br><br> **Reset**.
      # Possible values include: 'Add', 'Remove', 'Reset'
      attr_accessor :operation_type

      # @return [Array<SharingProfileGroup>] A list of sharing profile groups.
      attr_accessor :groups


      #
      # Mapper for SharingUpdate class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'SharingUpdate',
          type: {
            name: 'Composite',
            class_name: 'SharingUpdate',
            model_properties: {
              operation_type: {
                client_side_validation: true,
                required: true,
                serialized_name: 'operationType',
                type: {
                  name: 'String'
                }
              },
              groups: {
                client_side_validation: true,
                required: false,
                serialized_name: 'groups',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'SharingProfileGroupElementType',
                      type: {
                        name: 'Composite',
                        class_name: 'SharingProfileGroup'
                      }
                  }
                }
              }
            }
          }
        }
      end
    end
  end
end
