# 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::NotificationHubs::Mgmt::V2017_04_01 module Models # # Parameters supplied to the CreateOrUpdate Namespace operation. # class NamespaceCreateOrUpdateParameters < Resource include MsRestAzure # @return [String] The name of the namespace. attr_accessor :namespace_create_or_update_parameters_name # @return [String] Provisioning state of the Namespace. attr_accessor :provisioning_state # @return [String] Specifies the targeted region in which the namespace # should be created. It can be any of the following values: Australia # EastAustralia SoutheastCentral USEast USEast US 2West USNorth Central # USSouth Central USEast AsiaSoutheast AsiaBrazil SouthJapan EastJapan # WestNorth EuropeWest Europe attr_accessor :region # @return [String] Identifier for Azure Insights metrics attr_accessor :metric_id # @return [String] Status of the namespace. It can be any of these # values:1 = Created/Active2 = Creating3 = Suspended4 = Deleting attr_accessor :status # @return [DateTime] The time the namespace was created. attr_accessor :created_at # @return [DateTime] The time the namespace was updated. attr_accessor :updated_at # @return [String] Endpoint you can use to perform NotificationHub # operations. attr_accessor :service_bus_endpoint # @return [String] The Id of the Azure subscription associated with the # namespace. attr_accessor :subscription_id # @return [String] ScaleUnit where the namespace gets created attr_accessor :scale_unit # @return [Boolean] Whether or not the namespace is currently enabled. attr_accessor :enabled # @return [Boolean] Whether or not the namespace is set as Critical. attr_accessor :critical # @return [String] Data center for the namespace attr_accessor :data_center # @return [NamespaceType] The namespace type. Possible values include: # 'Messaging', 'NotificationHub' attr_accessor :namespace_type # # Mapper for NamespaceCreateOrUpdateParameters class as Ruby Hash. # This will be used for serialization/deserialization. # def self.mapper() { client_side_validation: true, required: false, serialized_name: 'NamespaceCreateOrUpdateParameters', type: { name: 'Composite', class_name: 'NamespaceCreateOrUpdateParameters', 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' } } } }, sku: { client_side_validation: true, required: false, serialized_name: 'sku', type: { name: 'Composite', class_name: 'Sku' } }, namespace_create_or_update_parameters_name: { client_side_validation: true, required: false, serialized_name: 'properties.name', type: { name: 'String' } }, provisioning_state: { client_side_validation: true, required: false, serialized_name: 'properties.provisioningState', type: { name: 'String' } }, region: { client_side_validation: true, required: false, serialized_name: 'properties.region', type: { name: 'String' } }, metric_id: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.metricId', type: { name: 'String' } }, status: { client_side_validation: true, required: false, serialized_name: 'properties.status', type: { name: 'String' } }, created_at: { client_side_validation: true, required: false, serialized_name: 'properties.createdAt', type: { name: 'DateTime' } }, updated_at: { client_side_validation: true, required: false, serialized_name: 'properties.updatedAt', type: { name: 'DateTime' } }, service_bus_endpoint: { client_side_validation: true, required: false, serialized_name: 'properties.serviceBusEndpoint', type: { name: 'String' } }, subscription_id: { client_side_validation: true, required: false, serialized_name: 'properties.subscriptionId', type: { name: 'String' } }, scale_unit: { client_side_validation: true, required: false, serialized_name: 'properties.scaleUnit', type: { name: 'String' } }, enabled: { client_side_validation: true, required: false, serialized_name: 'properties.enabled', type: { name: 'Boolean' } }, critical: { client_side_validation: true, required: false, serialized_name: 'properties.critical', type: { name: 'Boolean' } }, data_center: { client_side_validation: true, required: false, serialized_name: 'properties.dataCenter', type: { name: 'String' } }, namespace_type: { client_side_validation: true, required: false, serialized_name: 'properties.namespaceType', type: { name: 'Enum', module: 'NamespaceType' } } } } } end end end end