Class: Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::AzureSqlDatabaseOutputDataSource

Inherits:
OutputDataSource
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2016-03-01/generated/azure_mgmt_stream_analytics/models/azure_sql_database_output_data_source.rb

Overview

Describes an Azure SQL database output data source.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeAzureSqlDatabaseOutputDataSource

Returns a new instance of AzureSqlDatabaseOutputDataSource.



16
17
18
# File 'lib/2016-03-01/generated/azure_mgmt_stream_analytics/models/azure_sql_database_output_data_source.rb', line 16

def initialize
  @type = "Microsoft.Sql/Server/Database"
end

Instance Attribute Details

#databaseString

(CreateOrReplace) requests.

Returns:

  • (String)

    The name of the Azure SQL database. Required on PUT



28
29
30
# File 'lib/2016-03-01/generated/azure_mgmt_stream_analytics/models/azure_sql_database_output_data_source.rb', line 28

def database
  @database
end

#passwordString

SQL database. Required on PUT (CreateOrReplace) requests.

Returns:

  • (String)

    The password that will be used to connect to the Azure



36
37
38
# File 'lib/2016-03-01/generated/azure_mgmt_stream_analytics/models/azure_sql_database_output_data_source.rb', line 36

def password
  @password
end

#serverString

database. Required on PUT (CreateOrReplace) requests.

Returns:

  • (String)

    The name of the SQL server containing the Azure SQL



24
25
26
# File 'lib/2016-03-01/generated/azure_mgmt_stream_analytics/models/azure_sql_database_output_data_source.rb', line 24

def server
  @server
end

#tableString

Required on PUT (CreateOrReplace) requests.

Returns:

  • (String)

    The name of the table in the Azure SQL database.



40
41
42
# File 'lib/2016-03-01/generated/azure_mgmt_stream_analytics/models/azure_sql_database_output_data_source.rb', line 40

def table
  @table
end

#typeObject

Returns the value of attribute type.



20
21
22
# File 'lib/2016-03-01/generated/azure_mgmt_stream_analytics/models/azure_sql_database_output_data_source.rb', line 20

def type
  @type
end

#userString

Azure SQL database. Required on PUT (CreateOrReplace) requests.

Returns:

  • (String)

    The user name that will be used to connect to the



32
33
34
# File 'lib/2016-03-01/generated/azure_mgmt_stream_analytics/models/azure_sql_database_output_data_source.rb', line 32

def user
  @user
end

Class Method Details

.mapperObject

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



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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# File 'lib/2016-03-01/generated/azure_mgmt_stream_analytics/models/azure_sql_database_output_data_source.rb', line 47

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Microsoft.Sql/Server/Database',
    type: {
      name: 'Composite',
      class_name: 'AzureSqlDatabaseOutputDataSource',
      model_properties: {
        type: {
          client_side_validation: true,
          required: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        server: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.server',
          type: {
            name: 'String'
          }
        },
        database: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.database',
          type: {
            name: 'String'
          }
        },
        user: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.user',
          type: {
            name: 'String'
          }
        },
        password: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.password',
          type: {
            name: 'String'
          }
        },
        table: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.table',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end