Sha256: ac94124c9cdfd14b65688b87e050b2de9d90be3ceb607e88f93d6b89902f771e

Contents?: true

Size: 1.95 KB

Versions: 2

Compression:

Stored size: 1.95 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::RecoveryServices::Mgmt::V2016_12_01
  module Models
    #
    # ARM Resource.
    #
    class Resource

      include MsRestAzure

      # @return [String] Resource Id represents the complete path to the
      # resource.
      attr_accessor :id

      # @return [String] Resource name associated with the resource.
      attr_accessor :name

      # @return [String] Resource type represents the complete path of the form
      # Namespace/ResourceType/ResourceType/...
      attr_accessor :type

      # @return [String] Optional ETag.
      attr_accessor :e_tag


      #
      # Mapper for Resource class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          required: false,
          serialized_name: 'Resource',
          type: {
            name: 'Composite',
            class_name: 'Resource',
            model_properties: {
              id: {
                required: false,
                read_only: true,
                serialized_name: 'id',
                type: {
                  name: 'String'
                }
              },
              name: {
                required: false,
                read_only: true,
                serialized_name: 'name',
                type: {
                  name: 'String'
                }
              },
              type: {
                required: false,
                read_only: true,
                serialized_name: 'type',
                type: {
                  name: 'String'
                }
              },
              e_tag: {
                required: false,
                serialized_name: 'eTag',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
azure_mgmt_recovery_services-0.15.1 lib/2016-12-01/generated/azure_mgmt_recovery_services/models/resource.rb
azure_mgmt_recovery_services-0.15.0 lib/2016-12-01/generated/azure_mgmt_recovery_services/models/resource.rb