# 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::Network::Mgmt::V2018_08_01 module Models # # A DDoS protection plan in a resource group. # class DdosProtectionPlan include MsRestAzure # @return [String] Resource ID. attr_accessor :id # @return [String] Resource name. attr_accessor :name # @return [String] Resource type. attr_accessor :type # @return [String] Resource location. attr_accessor :location # @return [Hash{String => String}] Resource tags. attr_accessor :tags # @return [String] The resource GUID property of the DDoS protection plan # resource. It uniquely identifies the resource, even if the user changes # its name or migrate the resource across subscriptions or resource # groups. attr_accessor :resource_guid # @return [String] The provisioning state of the DDoS protection plan # resource. Possible values are: 'Succeeded', 'Updating', 'Deleting', and # 'Failed'. attr_accessor :provisioning_state # @return [Array] The list of virtual networks associated # with the DDoS protection plan resource. This list is read-only. attr_accessor :virtual_networks # @return [String] A unique read-only string that changes whenever the # resource is updated. attr_accessor :etag # # Mapper for DdosProtectionPlan class as Ruby Hash. # This will be used for serialization/deserialization. # def self.mapper() { client_side_validation: true, required: false, serialized_name: 'DdosProtectionPlan', type: { name: 'Composite', class_name: 'DdosProtectionPlan', 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' } }, 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' } } } }, resource_guid: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.resourceGuid', type: { name: 'String' } }, provisioning_state: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.provisioningState', type: { name: 'String' } }, virtual_networks: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.virtualNetworks', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'SubResourceElementType', type: { name: 'Composite', class_name: 'SubResource' } } } }, etag: { client_side_validation: true, required: false, read_only: true, serialized_name: 'etag', type: { name: 'String' } } } } } end end end end