Sha256: 6818c84444d21916c98295d02bae0fddee1983a06e636d965839be5a5b8320f1

Contents?: true

Size: 1.9 KB

Versions: 2

Compression:

Stored size: 1.9 KB

Contents

# 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::ServiceFabric::V7_0_0_42
  module Models
    #
    # Describes a reference to a volume resource.
    #
    class VolumeReference

      include MsRestAzure

      # @return [String] Name of the volume being referenced.
      attr_accessor :name

      # @return [Boolean] The flag indicating whether the volume is read only.
      # Default is 'false'.
      attr_accessor :read_only

      # @return [String] The path within the container at which the volume
      # should be mounted. Only valid path characters are allowed.
      attr_accessor :destination_path


      #
      # Mapper for VolumeReference class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'VolumeReference',
          type: {
            name: 'Composite',
            class_name: 'VolumeReference',
            model_properties: {
              name: {
                client_side_validation: true,
                required: true,
                serialized_name: 'name',
                type: {
                  name: 'String'
                }
              },
              read_only: {
                client_side_validation: true,
                required: false,
                serialized_name: 'readOnly',
                type: {
                  name: 'Boolean'
                }
              },
              destination_path: {
                client_side_validation: true,
                required: true,
                serialized_name: 'destinationPath',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
azure_service_fabric-0.18.1 lib/7.0.0.42/generated/azure_service_fabric/models/volume_reference.rb
azure_service_fabric-0.18.0 lib/7.0.0.42/generated/azure_service_fabric/models/volume_reference.rb