# 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::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10
  module Models
    #
    # InMage Azure V2 input to update replication protected item.
    #
    class A2AUpdateReplicationProtectedItemInput < UpdateReplicationProtectedItemProviderInput

      include MsRestAzure


      def initialize
        @instanceType = "A2A"
      end

      attr_accessor :instanceType

      # @return [String] The target cloud service ARM Id (for V1).
      attr_accessor :recovery_cloud_service_id

      # @return [String] The target resource group ARM Id (for V2).
      attr_accessor :recovery_resource_group_id

      # @return [Array<A2AVmManagedDiskUpdateDetails>] Managed disk update
      # details.
      attr_accessor :managed_disk_update_details

      # @return [String] The boot diagnostic storage account.
      attr_accessor :recovery_boot_diag_storage_account_id


      #
      # Mapper for A2AUpdateReplicationProtectedItemInput class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'A2A',
          type: {
            name: 'Composite',
            class_name: 'A2AUpdateReplicationProtectedItemInput',
            model_properties: {
              instanceType: {
                client_side_validation: true,
                required: true,
                serialized_name: 'instanceType',
                type: {
                  name: 'String'
                }
              },
              recovery_cloud_service_id: {
                client_side_validation: true,
                required: false,
                serialized_name: 'recoveryCloudServiceId',
                type: {
                  name: 'String'
                }
              },
              recovery_resource_group_id: {
                client_side_validation: true,
                required: false,
                serialized_name: 'recoveryResourceGroupId',
                type: {
                  name: 'String'
                }
              },
              managed_disk_update_details: {
                client_side_validation: true,
                required: false,
                serialized_name: 'managedDiskUpdateDetails',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'A2AVmManagedDiskUpdateDetailsElementType',
                      type: {
                        name: 'Composite',
                        class_name: 'A2AVmManagedDiskUpdateDetails'
                      }
                  }
                }
              },
              recovery_boot_diag_storage_account_id: {
                client_side_validation: true,
                required: false,
                serialized_name: 'recoveryBootDiagStorageAccountId',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
