'Instance depends on the API version:
* 2016-02-01: :class:`ResourceGroupsOperations<azure.mgmt.resource.resources.v2016_02_01.operations.ResourceGroupsOperations>`
* 2016-09-01: :class:`ResourceGroupsOperations<azure.mgmt.resource.resources.v2016_09_01.operations.ResourceGroupsOperations>`
* 2017-05-10: :class:`ResourceGroupsOperations<azure.mgmt.resource.resources.v2017_05_10.operations.ResourceGroupsOperations>`'

@property
def resource_groups(self):

    if (self.api_version == '2016-02-01'):
        from .v2016_02_01.operations import ResourceGroupsOperations as OperationClass
    elif (self.api_version == '2016-09-01'):
        from .v2016_09_01.operations import ResourceGroupsOperations as OperationClass
    elif (self.api_version == '2017-05-10'):
        from .v2017_05_10.operations import ResourceGroupsOperations as OperationClass
    else:
        raise NotImplementedError('APIVersion    {}    is    not    available'.format(self.api_version))
    return OperationClass(self._client, self.config, self._serialize, self._deserialize)
