class Azure::HybridCompute::Mgmt::V2019_12_12::Models::ResourceModelWithAllowedPropertySet

The resource model definition containing the full set of allowed properties for a resource. Except properties bag, there cannot be a top level property outside of this set.

Attributes

etag[RW]

@return [String] The etag field is not required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.

id[RW]

@return [String] Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

identity[RW]

@return [ResourceModelWithAllowedPropertySetIdentity]

kind[RW]

@return [String] Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.

location[RW]

@return [String] The geo-location where the resource lives

managed_by[RW]

@return [String] The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource.

name[RW]

@return [String] The name of the resource

plan[RW]

@return [ResourceModelWithAllowedPropertySetPlan]

sku[RW]

@return [ResourceModelWithAllowedPropertySetSku]

tags[RW]

@return [Hash{String => String}] Resource tags.

type[RW]

@return [String] The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts..

Public Class Methods

mapper() click to toggle source

Mapper for ResourceModelWithAllowedPropertySet class as Ruby Hash. This will be used for serialization/deserialization.

# File lib/2019-12-12/generated/azure_mgmt_hybrid_compute/models/resource_model_with_allowed_property_set.rb, line 70
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ResourceModelWithAllowedPropertySet',
    type: {
      name: 'Composite',
      class_name: 'ResourceModelWithAllowedPropertySet',
      model_properties: {
        id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        type: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        location: {
          client_side_validation: true,
          required: false,
          serialized_name: 'location',
          type: {
            name: 'String'
          }
        },
        managed_by: {
          client_side_validation: true,
          required: false,
          serialized_name: 'managedBy',
          type: {
            name: 'String'
          }
        },
        kind: {
          client_side_validation: true,
          required: false,
          serialized_name: 'kind',
          constraints: {
            Pattern: '^[-\w\._,\(\)]+$'
          },
          type: {
            name: 'String'
          }
        },
        etag: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'etag',
          type: {
            name: 'String'
          }
        },
        tags: {
          client_side_validation: true,
          required: false,
          serialized_name: 'tags',
          type: {
            name: 'Dictionary',
            value: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        identity: {
          client_side_validation: true,
          required: false,
          serialized_name: 'identity',
          type: {
            name: 'Composite',
            class_name: 'ResourceModelWithAllowedPropertySetIdentity'
          }
        },
        sku: {
          client_side_validation: true,
          required: false,
          serialized_name: 'sku',
          type: {
            name: 'Composite',
            class_name: 'ResourceModelWithAllowedPropertySetSku'
          }
        },
        plan: {
          client_side_validation: true,
          required: false,
          serialized_name: 'plan',
          type: {
            name: 'Composite',
            class_name: 'ResourceModelWithAllowedPropertySetPlan'
          }
        }
      }
    }
  }
end