Class: Azure::Web::Mgmt::V2016_06_01::Models::ApiResourcePolicies

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2016-06-01/generated/azure_mgmt_web/models/api_resource_policies.rb

Overview

Describes the API policies either as embedded content or as a link to uploaded content

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#contentString

Returns API level policies as XML.

Returns:

  • (String)

    API level policies as XML



17
18
19
# File 'lib/2016-06-01/generated/azure_mgmt_web/models/api_resource_policies.rb', line 17

def content
  @content
end

Returns Link to the JSON of the policies.

Returns:

  • (String)

    Link to the JSON of the policies



20
21
22
# File 'lib/2016-06-01/generated/azure_mgmt_web/models/api_resource_policies.rb', line 20

def content_link
  @content_link
end

Class Method Details

.mapperObject

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



27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# File 'lib/2016-06-01/generated/azure_mgmt_web/models/api_resource_policies.rb', line 27

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ApiResourcePolicies',
    type: {
      name: 'Composite',
      class_name: 'ApiResourcePolicies',
      model_properties: {
        content: {
          client_side_validation: true,
          required: false,
          serialized_name: 'content',
          type: {
            name: 'String'
          }
        },
        content_link: {
          client_side_validation: true,
          required: false,
          serialized_name: 'contentLink',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end