Skip to content

Commit

Permalink
missed properties in app data sources
Browse files Browse the repository at this point in the history
  • Loading branch information
jackofallops committed Aug 2, 2021
1 parent 4ffd745 commit c90a3fe
Show file tree
Hide file tree
Showing 2 changed files with 98 additions and 2 deletions.
56 changes: 54 additions & 2 deletions azurerm/internal/services/appservice/linux_web_app_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,12 @@ func (r LinuxWebAppDataSource) Attributes() map[string]*pluginsdk.Schema {
return map[string]*pluginsdk.Schema{
"location": location.SchemaComputed(),

"service_plan_id": {
Type: pluginsdk.TypeString,
"app_metadata": {
Type: pluginsdk.TypeMap,
Computed: true,
Elem: &pluginsdk.Schema{
Type: pluginsdk.TypeString,
},
},

"app_settings": {
Expand Down Expand Up @@ -80,6 +83,17 @@ func (r LinuxWebAppDataSource) Attributes() map[string]*pluginsdk.Schema {

"connection_string": connectionStringSchemaComputed(),

"custom_domain_verification_id": {
Type: pluginsdk.TypeString,
Computed: true,
Sensitive: true,
},

"default_hostname": {
Type: pluginsdk.TypeString,
Computed: true,
},

"enabled": {
Type: pluginsdk.TypeBool,
Computed: true,
Expand All @@ -92,8 +106,46 @@ func (r LinuxWebAppDataSource) Attributes() map[string]*pluginsdk.Schema {

"identity": helpers.IdentitySchemaComputed(),

"kind": {
Type: pluginsdk.TypeString,
Computed: true,
},

"logs": logsConfigSchemaComputed(),

"outbound_ip_addresses": {
Type: pluginsdk.TypeString,
Computed: true,
},

"outbound_ip_address_list": {
Type: pluginsdk.TypeList,
Computed: true,
Elem: &pluginsdk.Schema{
Type: pluginsdk.TypeString,
},
},

"possible_outbound_ip_addresses": {
Type: pluginsdk.TypeString,
Computed: true,
},

"possible_outbound_ip_address_list": {
Type: pluginsdk.TypeList,
Computed: true,
Elem: &pluginsdk.Schema{
Type: pluginsdk.TypeString,
},
},

"site_credential": helpers.SiteCredentialSchema(),

"service_plan_id": {
Type: pluginsdk.TypeString,
Computed: true,
},

"site_config": siteConfigSchemaLinuxComputed(),

"storage_account": storageAccountSchemaComputed(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,17 @@ func (d WindowsWebAppDataSource) Attributes() map[string]*pluginsdk.Schema {

"connection_string": connectionStringSchemaComputed(),

"custom_domain_verification_id": {
Type: pluginsdk.TypeString,
Computed: true,
Sensitive: true,
},

"default_hostname": {
Type: pluginsdk.TypeString,
Computed: true,
},

"enabled": {
Type: pluginsdk.TypeBool,
Computed: true,
Expand All @@ -91,8 +102,41 @@ func (d WindowsWebAppDataSource) Attributes() map[string]*pluginsdk.Schema {

"identity": helpers.IdentitySchemaComputed(),

"kind": {
Type: pluginsdk.TypeString,
Computed: true,
},

"logs": logsConfigSchemaComputed(),

"outbound_ip_addresses": {
Type: pluginsdk.TypeString,
Computed: true,
},

"outbound_ip_address_list": {
Type: pluginsdk.TypeList,
Computed: true,
Elem: &pluginsdk.Schema{
Type: pluginsdk.TypeString,
},
},

"possible_outbound_ip_addresses": {
Type: pluginsdk.TypeString,
Computed: true,
},

"possible_outbound_ip_address_list": {
Type: pluginsdk.TypeList,
Computed: true,
Elem: &pluginsdk.Schema{
Type: pluginsdk.TypeString,
},
},

"site_credential": helpers.SiteCredentialSchema(),

"site_config": siteConfigSchemaWindowsComputed(),

"storage_account": storageAccountSchemaComputed(),
Expand Down

0 comments on commit c90a3fe

Please sign in to comment.