azure.mgmt.resource.features.operations module

class azure.mgmt.resource.features.operations.FeaturesOperations(client, config, serializer, deserializer)[source]

Bases: object

FeaturesOperations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An objec model deserializer.
get(resource_provider_namespace, feature_name, custom_headers=None, raw=False, **operation_config)[source]

Gets the preview feature with the specified name.

Parameters:
  • resource_provider_namespace (str) – The resource provider namespace for the feature.
  • feature_name (str) – The name of the feature to get.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

FeatureResult

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

list(resource_provider_namespace, custom_headers=None, raw=False, **operation_config)[source]

Gets all the preview features in a provider namespace that are available through AFEC for the subscription.

Parameters:
  • resource_provider_namespace (str) – The namespace of the resource provider for getting features.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

FeatureResultPaged

Raises:

CloudError

list_all(custom_headers=None, raw=False, **operation_config)[source]

Gets all the preview features that are available through AFEC for the subscription.

Parameters:
Return type:

FeatureResultPaged

Raises:

CloudError

register(resource_provider_namespace, feature_name, custom_headers=None, raw=False, **operation_config)[source]

Registers the preview feature for the subscription.

Parameters:
  • resource_provider_namespace (str) – The namespace of the resource provider.
  • feature_name (str) – The name of the feature to register.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

FeatureResult

Return type:

ClientRawResponse if raw=true

Raises:

CloudError