Method: Azure::DataMigration::Mgmt::V2017_11_15_preview::Models::Resource#resource_group

Defined in:
lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/resource.rb

#resource_groupString

Returns the name of the resource group of the resource.

Returns:

  • (String)

    the name of the resource group of the resource.



26
27
28
29
30
31
# File 'lib/2017-11-15-preview/generated/azure_mgmt_data_migration/models/resource.rb', line 26

def resource_group
  unless self.id.nil?
    groups = self.id.match(/.+\/resourceGroups\/([^\/]+)\/.+/)
    groups.captures[0].strip if groups
  end
end