lib/services/resourceManagement/lib/policy/models/policyDefinition.js
/**
   * Defines the metadata of PolicyDefinition
   *
   * @returns {object} metadata of PolicyDefinition
   *
   */
Defines the metadata of PolicyDefinition
@returns {object} metadata of PolicyDefinition
Defines the metadata of PolicyDefinition @returns { object } metadata of PolicyDefinition
mapper() {
    return {
      required: false,
      serializedName: 'PolicyDefinition',
      type: {
        name: 'Composite',
        className: 'PolicyDefinition',
        modelProperties: {
          policyType: {
            required: false,
            serializedName: 'properties.policyType',
            type: {
              name: 'String'
            }
          },
          mode: {
            required: false,
            serializedName: 'properties.mode',
            type: {
              name: 'String'
            }
          },
          displayName: {
            required: false,
            serializedName: 'properties.displayName',
            type: {
              name: 'String'
            }
          },
          description: {
            required: false,
            serializedName: 'properties.description',
            type: {
              name: 'String'
            }
          },
          policyRule: {
            required: false,
            serializedName: 'properties.policyRule',
            type: {
              name: 'Object'
            }
          },
          metadata: {
            required: false,
            serializedName: 'properties.metadata',
            type: {
              name: 'Object'
            }
          },
          parameters: {
            required: false,
            serializedName: 'properties.parameters',
            type: {
              name: 'Object'
            }
          },
          id: {
            required: false,
            readOnly: true,
            serializedName: 'id',
            type: {
              name: 'String'
            }
          },
          name: {
            required: false,
            readOnly: true,
            serializedName: 'name',
            type: {
              name: 'String'
            }
          },
          type: {
            required: false,
            readOnly: true,
            serializedName: 'type',
            type: {
              name: 'String'
            }
          }
        }
      }
    };
  }
mapper ( ) { return { required : false , serializedName : 'PolicyDefinition' , type : { name : 'Composite' , className : 'PolicyDefinition' , modelProperties : { policyType : { required : false , serializedName : 'properties.policyType' , type : { name : 'String' } } , mode : { required : false , serializedName : 'properties.mode' , type : { name : 'String' } } , displayName : { required : false , serializedName : 'properties.displayName' , type : { name : 'String' } } , description : { required : false , serializedName : 'properties.description' , type : { name : 'String' } } , policyRule : { required : false , serializedName : 'properties.policyRule' , type : { name : 'Object' } } , metadata : { required : false , serializedName : 'properties.metadata' , type : { name : 'Object' } } , parameters : { required : false , serializedName : 'properties.parameters' , type : { name : 'Object' } } , id : { required : false , readOnly : true , serializedName : 'id' , type : { name : 'String' } } , name : { required : false , readOnly : true , serializedName : 'name' , type : { name : 'String' } } , type : { required : false , readOnly : true , serializedName : 'type' , type : { name : 'String' } } } } } ; }
Defines the metadata of PolicyDefinition
 @returns {object} metadata of PolicyDefinition
Defines the metadata of PolicyDefinition @returns { object } metadata of PolicyDefinition