mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-09 23:54:17 -06:00
25 lines
713 B
Go
25 lines
713 B
Go
package azure
|
|
|
|
type GetResourceGroupResponse struct {
|
|
ID *string `mapstructure:"id"`
|
|
Name *string `mapstructure:"name"`
|
|
Location *string `mapstructure:"location"`
|
|
ProvisioningState *string `mapstructure:"provisioningState"`
|
|
Tags *map[string]*string `mapstructure:"tags"`
|
|
}
|
|
|
|
type GetResourceGroup struct {
|
|
Name string `json:"-"`
|
|
}
|
|
|
|
func (command GetResourceGroup) APIInfo() APIInfo {
|
|
return APIInfo{
|
|
APIVersion: resourceGroupAPIVersion,
|
|
Method: "GET",
|
|
URLPathFunc: resourceGroupDefaultURLFunc(command.Name),
|
|
ResponseTypeFunc: func() interface{} {
|
|
return &GetResourceGroupResponse{}
|
|
},
|
|
}
|
|
}
|