Class: Azure::Resources::Mgmt::V2020_06_01::Models::TemplateLink

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2020-06-01/generated/azure_mgmt_resources/models/template_link.rb

Overview

Entity representing the reference to the template.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#content_versionString

template.

Returns:

  • (String)

    If included, must match the ContentVersion in the



30
31
32
# File 'lib/2020-06-01/generated/azure_mgmt_resources/models/template_link.rb', line 30

def content_version
  @content_version
end

#idString

or uri property, but not both.

Returns:

  • (String)

    The resource id of a Template Spec. Use either the id



21
22
23
# File 'lib/2020-06-01/generated/azure_mgmt_resources/models/template_link.rb', line 21

def id
  @id
end

#relative_pathString

Template Spec. This relativePath property can optionally be used to reference a Template Spec artifact by path.

Returns:

  • (String)

    Applicable only if this template link references a



26
27
28
# File 'lib/2020-06-01/generated/azure_mgmt_resources/models/template_link.rb', line 26

def relative_path
  @relative_path
end

#uriString

or id property, but not both.

Returns:

  • (String)

    The URI of the template to deploy. Use either the uri



17
18
19
# File 'lib/2020-06-01/generated/azure_mgmt_resources/models/template_link.rb', line 17

def uri
  @uri
end

Class Method Details

.mapperObject

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



37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# File 'lib/2020-06-01/generated/azure_mgmt_resources/models/template_link.rb', line 37

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'TemplateLink',
    type: {
      name: 'Composite',
      class_name: 'TemplateLink',
      model_properties: {
        uri: {
          client_side_validation: true,
          required: false,
          serialized_name: 'uri',
          type: {
            name: 'String'
          }
        },
        id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        relative_path: {
          client_side_validation: true,
          required: false,
          serialized_name: 'relativePath',
          type: {
            name: 'String'
          }
        },
        content_version: {
          client_side_validation: true,
          required: false,
          serialized_name: 'contentVersion',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end