desc stringlengths 3 26.7k | decl stringlengths 11 7.89k | bodies stringlengths 8 553k |
|---|---|---|
'Creates or updates a container service.
Creates or updates a container service with the specified configuration
of orchestrator, masters, and agents.
:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param container_service_name: The name of the container service in
the specif... | def create_or_update(self, resource_group_name, container_service_name, parameters, custom_headers=None, raw=False, **operation_config):
| url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/containerServices/{containerServiceName}'
path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str'), 'containerServiceName': self._serialize.u... |
'Gets the properties of the specified container service.
Gets the properties of the specified container service in the specified
subscription and resource group. The operation returns the properties
including state, orchestrator, number of masters and agents, and FQDNs
of masters and agents. .
:param resource_group_nam... | def get(self, resource_group_name, container_service_name, custom_headers=None, raw=False, **operation_config):
| url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/containerServices/{containerServiceName}'
path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str'), 'containerServiceName': self._serialize.u... |
'Deletes the specified container service.
Deletes the specified container service in the specified subscription
and resource group. The operation does not delete other resources
created as part of creating a container service, including storage
accounts, VMs, and availability sets. All the other resources created
with ... | def delete(self, resource_group_name, container_service_name, custom_headers=None, raw=False, **operation_config):
| url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/containerServices/{containerServiceName}'
path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str'), 'containerServiceName': self._serialize.u... |
'Gets a list of container services in the specified resource group.
Gets a list of container services in the specified subscription and
resource group. The operation returns properties of each container
service including state, orchestrator, number of masters and agents,
and FQDNs of masters and agents.
:param resource... | def list_by_resource_group(self, resource_group_name, custom_headers=None, raw=False, **operation_config):
| def internal_paging(next_link=None, raw=False):
if (not next_link):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/containerServices'
path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name... |
'Return distribution full name with - replaced with _'
| @property
def wheel_dist_name(self):
| return '-'.join((safer_name(self.distribution.get_name()), safer_version(self.distribution.get_version())))
|
'Return archive name without extension'
| def get_archive_basename(self):
| (impl_tag, abi_tag, plat_tag) = self.get_tag()
archive_basename = ('%s-%s-%s-%s' % (self.wheel_dist_name, impl_tag, abi_tag, plat_tag))
return archive_basename
|
'Return license filename from a license-file key in setup.cfg, or None.'
| def license_file(self):
| metadata = self.distribution.get_option_dict('metadata')
if (not ('license_file' in metadata)):
return None
return metadata['license_file'][1]
|
'Generate requirements from setup.cfg as
(\'Requires-Dist\', \'requirement; qualifier\') tuples. From a metadata
section in setup.cfg:
[metadata]
provides-extra = extra1
extra2
requires-dist = requirement; qualifier
another; qualifier2
unqualified
Yields
(\'Provides-Extra\', \'extra1\'),
(\'Provides-Extra\', \'extra2\'... | def setupcfg_requirements(self):
| metadata = self.distribution.get_option_dict('metadata')
for (key, title) in (('provides_extra', 'Provides-Extra'), ('requires_dist', 'Requires-Dist')):
if (not (key in metadata)):
continue
field = metadata[key]
for line in field[1].splitlines():
line = line.strip... |
'Add additional requirements from setup.cfg to file metadata_path'
| def add_requirements(self, metadata_path):
| additional = list(self.setupcfg_requirements())
if (not additional):
return
pkg_info = read_pkg_info(metadata_path)
if (('Provides-Extra' in pkg_info) or ('Requires-Dist' in pkg_info)):
warnings.warn('setup.cfg requirements overwrite values from setup.py')
del pkg_... |
'Convert an .egg-info directory into a .dist-info directory'
| def egg2dist(self, egginfo_path, distinfo_path):
| def adios(p):
'Appropriately delete directory, file or link.'
if (os.path.exists(p) and (not os.path.islink(p)) and os.path.isdir(p)):
shutil.rmtree(p)
elif os.path.exists(p):
os.unlink(p)
adios(distinfo_path)
if (not os.path.exists(egginfo_path... |
'Get the list of available event categories supported in the Activity
Logs Service.<br>The current list includes the following:
Aministrative, Security, ServiceHealth, Alert, Recommendation, Policy.
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongs... | def list(self, custom_headers=None, raw=False, **operation_config):
| def internal_paging(next_link=None, raw=False):
if (not next_link):
url = '/providers/microsoft.insights/eventcategories'
query_parameters = {}
query_parameters['api-version'] = self._serialize.query('self.api_version', self.api_version, 'str')
else:
u... |
'Lists the metric values for a resource.
:param resource_uri: The identifier of the resource.
:type resource_uri: str
:param filter: Reduces the set of data collected.<br>The filter is
optional. If present it must contain a list of metric names to
retrieve of the form: *(name.value eq \'metricName\' [or name.value eq
\... | def list(self, resource_uri, filter=None, custom_headers=None, raw=False, **operation_config):
| def internal_paging(next_link=None, raw=False):
if (not next_link):
url = '/{resourceUri}/providers/microsoft.insights/metrics'
path_format_arguments = {'resourceUri': self._serialize.url('resource_uri', resource_uri, 'str', skip_quote=True)}
url = self._client.format_url... |
'Provides the list of records from the activity logs.
:param filter: Reduces the set of data collected.<br>The **$filter**
argument is very restricted and allows only the following
patterns.<br>- *List events for a resource group*:
$filter=eventTimestamp ge \'2014-07-16T04:36:37.6407898Z\' and
eventTimestamp le \'2014-... | def list(self, filter=None, select=None, custom_headers=None, raw=False, **operation_config):
| def internal_paging(next_link=None, raw=False):
if (not next_link):
url = '/subscriptions/{subscriptionId}/providers/microsoft.insights/eventtypes/management/values'
path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription... |
'The List operation lists the usage metrics for the
resource.<br>**WARNING**: This operation will be *deprecated* in the
next release.
:param resource_uri: The identifier of the resource.
:type resource_uri: str
:param api_version: Client Api Version. NOTE: This is not a client
property, it must be explicit in the call... | def list(self, resource_uri, api_version, filter=None, custom_headers=None, raw=False, **operation_config):
| def internal_paging(next_link=None, raw=False):
if (not next_link):
url = '/{resourceUri}/usages'
path_format_arguments = {'resourceUri': self._serialize.url('resource_uri', resource_uri, 'str', skip_quote=True)}
url = self._client.format_url(url, **path_format_arguments)... |
'Lists the metric definitions for the resource.
:param resource_uri: The identifier of the resource.
:type resource_uri: str
:param filter: Reduces the set of data collected by retrieving
particular metric definitions from all the definitions available for
the resource.<br>For example, to get just the definition for th... | def list(self, resource_uri, filter=None, custom_headers=None, raw=False, **operation_config):
| def internal_paging(next_link=None, raw=False):
if (not next_link):
url = '/{resourceUri}/providers/microsoft.insights/metricDefinitions'
path_format_arguments = {'resourceUri': self._serialize.url('resource_uri', resource_uri, 'str', skip_quote=True)}
url = self._client.... |
'Gets the Activity Logs for the Tenant.<br>Everything that is applicable
to the API to get the Activity Logs for the subscription is applicable
to this API (the parameters, $filter, etc.).<br>One thing to point out
here is that this API does *not* retrieve the logs at the individual
subscription of the tenant but only ... | def list(self, filter=None, select=None, custom_headers=None, raw=False, **operation_config):
| def internal_paging(next_link=None, raw=False):
if (not next_link):
url = '/providers/microsoft.insights/eventtypes/management/values'
query_parameters = {}
query_parameters['api-version'] = self._serialize.query('self.api_version', self.api_version, 'str')
if... |
'Return distribution full name with - replaced with _'
| @property
def wheel_dist_name(self):
| return '-'.join((safer_name(self.distribution.get_name()), safer_version(self.distribution.get_version())))
|
'Return archive name without extension'
| def get_archive_basename(self):
| (impl_tag, abi_tag, plat_tag) = self.get_tag()
archive_basename = ('%s-%s-%s-%s' % (self.wheel_dist_name, impl_tag, abi_tag, plat_tag))
return archive_basename
|
'Return license filename from a license-file key in setup.cfg, or None.'
| def license_file(self):
| metadata = self.distribution.get_option_dict('metadata')
if (not ('license_file' in metadata)):
return None
return metadata['license_file'][1]
|
'Generate requirements from setup.cfg as
(\'Requires-Dist\', \'requirement; qualifier\') tuples. From a metadata
section in setup.cfg:
[metadata]
provides-extra = extra1
extra2
requires-dist = requirement; qualifier
another; qualifier2
unqualified
Yields
(\'Provides-Extra\', \'extra1\'),
(\'Provides-Extra\', \'extra2\'... | def setupcfg_requirements(self):
| metadata = self.distribution.get_option_dict('metadata')
for (key, title) in (('provides_extra', 'Provides-Extra'), ('requires_dist', 'Requires-Dist')):
if (not (key in metadata)):
continue
field = metadata[key]
for line in field[1].splitlines():
line = line.strip... |
'Add additional requirements from setup.cfg to file metadata_path'
| def add_requirements(self, metadata_path):
| additional = list(self.setupcfg_requirements())
if (not additional):
return
pkg_info = read_pkg_info(metadata_path)
if (('Provides-Extra' in pkg_info) or ('Requires-Dist' in pkg_info)):
warnings.warn('setup.cfg requirements overwrite values from setup.py')
del pkg_... |
'Convert an .egg-info directory into a .dist-info directory'
| def egg2dist(self, egginfo_path, distinfo_path):
| def adios(p):
'Appropriately delete directory, file or link.'
if (os.path.exists(p) and (not os.path.islink(p)) and os.path.isdir(p)):
shutil.rmtree(p)
elif os.path.exists(p):
os.unlink(p)
adios(distinfo_path)
if (not os.path.exists(egginfo_path... |
'Lists the autoscale settings for a resource group.
:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :... | def list_by_resource_group(self, resource_group_name, custom_headers=None, raw=False, **operation_config):
| def internal_paging(next_link=None, raw=False):
if (not next_link):
url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.insights/autoscalesettings'
path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resou... |
'Creates or updates an autoscale setting.
:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param autoscale_setting_name: The autoscale setting name.
:type autoscale_setting_name: str
:param parameters: Parameters supplied to the operation.
:type parameters: :class:`AutoscaleSe... | def create_or_update(self, resource_group_name, autoscale_setting_name, parameters, custom_headers=None, raw=False, **operation_config):
| url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.insights/autoscalesettings/{autoscaleSettingName}'
path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str'), 'autoscaleSettingName': self._serialize.url('auto... |
'Deletes and autoscale setting.
:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param autoscale_setting_name: The autoscale setting name.
:type autoscale_setting_name: str
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direc... | def delete(self, resource_group_name, autoscale_setting_name, custom_headers=None, raw=False, **operation_config):
| url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.insights/autoscalesettings/{autoscaleSettingName}'
path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str'), 'autoscaleSettingName': self._serialize.url('auto... |
'Gets an autoscale setting.
:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param autoscale_setting_name: The autoscale setting name.
:type autoscale_setting_name: str
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct re... | def get(self, resource_group_name, autoscale_setting_name, custom_headers=None, raw=False, **operation_config):
| url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.insights/autoscalesettings/{autoscaleSettingName}'
path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str'), 'autoscaleSettingName': self._serialize.url('auto... |
'Updates an existing AutoscaleSettingsResource. To update other fields
use the CreateOrUpdate method.
:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param autoscale_setting_name: The autoscale setting name.
:type autoscale_setting_name: str
:param autoscale_setting_resource:... | def update(self, resource_group_name, autoscale_setting_name, autoscale_setting_resource, custom_headers=None, raw=False, **operation_config):
| url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.insights/autoscalesettings/{autoscaleSettingName}'
path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str'), 'resourceGroupName': self._serialize... |
'Creates or updates an alert rule.
:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param rule_name: The name of the rule.
:type rule_name: str
:param parameters: The parameters of the rule to create or update.
:type parameters: :class:`AlertRuleResource
<azure.mgmt.monitor.mo... | def create_or_update(self, resource_group_name, rule_name, parameters, custom_headers=None, raw=False, **operation_config):
| url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.insights/alertrules/{ruleName}'
path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str'), 'ruleName': self._serialize.url('rule_name', rule_name, 'str'), 'sub... |
'Deletes an alert rule.
:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param rule_name: The name of the rule.
:type rule_name: str
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized re... | def delete(self, resource_group_name, rule_name, custom_headers=None, raw=False, **operation_config):
| url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.insights/alertrules/{ruleName}'
path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str'), 'ruleName': self._serialize.url('rule_name', rule_name, 'str'), 'sub... |
'Gets an alert rule.
:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param rule_name: The name of the rule.
:type rule_name: str
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized respo... | def get(self, resource_group_name, rule_name, custom_headers=None, raw=False, **operation_config):
| url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.insights/alertrules/{ruleName}'
path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str'), 'ruleName': self._serialize.url('rule_name', rule_name, 'str'), 'sub... |
'Updates an existing AlertRuleResource. To update other fields use the
CreateOrUpdate method.
:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param rule_name: The name of the rule.
:type rule_name: str
:param alert_rules_resource: Parameters supplied to the operation.
:type a... | def update(self, resource_group_name, rule_name, alert_rules_resource, custom_headers=None, raw=False, **operation_config):
| url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.insights/alertrules/{ruleName}'
path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url('resource_grou... |
'List the alert rules within a resource group.
:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`... | def list_by_resource_group(self, resource_group_name, custom_headers=None, raw=False, **operation_config):
| def internal_paging(next_link=None, raw=False):
if (not next_link):
url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.insights/alertrules'
path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_gro... |
'Create a new activity log alert or update an existing one.
:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param activity_log_alert_name: The name of the activity log alert.
:type activity_log_alert_name: str
:param activity_log_alert: The activity log alert to create or use... | def create_or_update(self, resource_group_name, activity_log_alert_name, activity_log_alert, custom_headers=None, raw=False, **operation_config):
| url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/activityLogAlerts/{activityLogAlertName}'
path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str'), 'resourceGroupName': self._serialize... |
'Get an activity log alert.
:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param activity_log_alert_name: The name of the activity log alert.
:type activity_log_alert_name: str
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the... | def get(self, resource_group_name, activity_log_alert_name, custom_headers=None, raw=False, **operation_config):
| url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/activityLogAlerts/{activityLogAlertName}'
path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str'), 'resourceGroupName': self._serialize... |
'Delete an activity log alert.
:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param activity_log_alert_name: The name of the activity log alert.
:type activity_log_alert_name: str
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns ... | def delete(self, resource_group_name, activity_log_alert_name, custom_headers=None, raw=False, **operation_config):
| url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/activityLogAlerts/{activityLogAlertName}'
path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str'), 'resourceGroupName': self._serialize... |
'Updates an existing ActivityLogAlertResource\'s tags. To update other
fields use the CreateOrUpdate method.
:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param activity_log_alert_name: The name of the activity log alert.
:type activity_log_alert_name: str
:param tags: Reso... | def update(self, resource_group_name, activity_log_alert_name, tags=None, enabled=True, custom_headers=None, raw=False, **operation_config):
| activity_log_alert_patch = models.ActivityLogAlertPatchBody(tags=tags, enabled=enabled)
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/activityLogAlerts/{activityLogAlertName}'
path_format_arguments = {'subscriptionId': self._serialize.url('self.config... |
'Get a list of all activity log alerts in a subscription.
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:return: An ite... | def list_by_subscription_id(self, custom_headers=None, raw=False, **operation_config):
| def internal_paging(next_link=None, raw=False):
if (not next_link):
url = '/subscriptions/{subscriptionId}/providers/microsoft.insights/activityLogAlerts'
path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str')... |
'Get a list of all activity log alerts in a resource group.
:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_c... | def list_by_resource_group(self, resource_group_name, custom_headers=None, raw=False, **operation_config):
| def internal_paging(next_link=None, raw=False):
if (not next_link):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/activityLogAlerts'
path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', ... |
'Gets an incident associated to an alert rule.
:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param rule_name: The name of the rule.
:type rule_name: str
:param incident_name: The name of the incident to retrieve.
:type incident_name: str
:param dict custom_headers: headers ... | def get(self, resource_group_name, rule_name, incident_name, custom_headers=None, raw=False, **operation_config):
| url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.insights/alertrules/{ruleName}/incidents/{incidentName}'
path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str'), 'ruleName': self._serialize.url('rule_name'... |
'Gets a list of incidents associated to an alert rule.
:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param rule_name: The name of the rule.
:type rule_name: str
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct respons... | def list_by_alert_rule(self, resource_group_name, rule_name, custom_headers=None, raw=False, **operation_config):
| def internal_paging(next_link=None, raw=False):
if (not next_link):
url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.insights/alertrules/{ruleName}/incidents'
path_format_arguments = {'resourceGroupName': self._serialize.url('resource_grou... |
'Deletes the log profile.
:param log_profile_name: The name of the log profile.
:type log_profile_name: str
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overri... | def delete(self, log_profile_name, custom_headers=None, raw=False, **operation_config):
| url = '/subscriptions/{subscriptionId}/providers/microsoft.insights/logprofiles/{logProfileName}'
path_format_arguments = {'logProfileName': self._serialize.url('log_profile_name', log_profile_name, 'str'), 'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str')}... |
'Gets the log profile.
:param log_profile_name: The name of the log profile.
:type log_profile_name: str
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides... | def get(self, log_profile_name, custom_headers=None, raw=False, **operation_config):
| url = '/subscriptions/{subscriptionId}/providers/microsoft.insights/logprofiles/{logProfileName}'
path_format_arguments = {'logProfileName': self._serialize.url('log_profile_name', log_profile_name, 'str'), 'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str')}... |
'Create or update a log profile in Azure Monitoring REST API.
:param log_profile_name: The name of the log profile.
:type log_profile_name: str
:param parameters: Parameters supplied to the operation.
:type parameters: :class:`LogProfileResource
<azure.mgmt.monitor.models.LogProfileResource>`
:param dict custom_headers... | def create_or_update(self, log_profile_name, parameters, custom_headers=None, raw=False, **operation_config):
| url = '/subscriptions/{subscriptionId}/providers/microsoft.insights/logprofiles/{logProfileName}'
path_format_arguments = {'logProfileName': self._serialize.url('log_profile_name', log_profile_name, 'str'), 'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str')}... |
'Updates an existing LogProfilesResource. To update other fields use the
CreateOrUpdate method.
:param log_profile_name: The name of the log profile.
:type log_profile_name: str
:param log_profiles_resource: Parameters supplied to the operation.
:type log_profiles_resource: :class:`LogProfileResourcePatch
<azure.mgmt.m... | def update(self, log_profile_name, log_profiles_resource, custom_headers=None, raw=False, **operation_config):
| url = '/subscriptions/{subscriptionId}/providers/microsoft.insights/logprofiles/{logProfileName}'
path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str'), 'logProfileName': self._serialize.url('log_profile_name', log_profile_name, 'str')}... |
'List the log profiles.
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:return: An iterator like instance of :class:`Log... | def list(self, custom_headers=None, raw=False, **operation_config):
| def internal_paging(next_link=None, raw=False):
if (not next_link):
url = '/subscriptions/{subscriptionId}/providers/microsoft.insights/logprofiles'
path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str')}
... |
'Create a new action group or update an existing one.
:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param action_group_name: The name of the action group.
:type action_group_name: str
:param action_group: The action group to create or use for the update.
:type action_group:... | def create_or_update(self, resource_group_name, action_group_name, action_group, custom_headers=None, raw=False, **operation_config):
| url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/actionGroups/{actionGroupName}'
path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str'), 'actionGroupName': self._serialize.url('action_group_name',... |
'Get an action group.
:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param action_group_name: The name of the action group.
:type action_group_name: str
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongsi... | def get(self, resource_group_name, action_group_name, custom_headers=None, raw=False, **operation_config):
| url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/actionGroups/{actionGroupName}'
path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str'), 'actionGroupName': self._serialize.url('action_group_name',... |
'Delete an action group.
:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param action_group_name: The name of the action group.
:type action_group_name: str
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alon... | def delete(self, resource_group_name, action_group_name, custom_headers=None, raw=False, **operation_config):
| url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/actionGroups/{actionGroupName}'
path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str'), 'actionGroupName': self._serialize.url('action_group_name',... |
'Get a list of all action groups in a subscription.
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:return: An iterator ... | def list_by_subscription_id(self, custom_headers=None, raw=False, **operation_config):
| def internal_paging(next_link=None, raw=False):
if (not next_link):
url = '/subscriptions/{subscriptionId}/providers/microsoft.insights/actionGroups'
path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str')}
... |
'Get a list of all action groups in a resource group.
:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config:... | def list_by_resource_group(self, resource_group_name, custom_headers=None, raw=False, **operation_config):
| def internal_paging(next_link=None, raw=False):
if (not next_link):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/actionGroups'
path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_g... |
'Enable a receiver in an action group. This changes the receiver\'s
status from Disabled to Enabled.
:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param action_group_name: The name of the action group.
:type action_group_name: str
:param receiver_name: The name of the recei... | def enable_receiver(self, resource_group_name, action_group_name, receiver_name, custom_headers=None, raw=False, **operation_config):
| enable_request = models.EnableRequest(receiver_name=receiver_name)
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/actionGroups/{actionGroupName}/subscribe'
path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resourc... |
'Gets the active diagnostic settings for the specified resource.
**WARNING**: This method will be deprecated in future releases.
:param resource_uri: The identifier of the resource.
:type resource_uri: str
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response... | def get(self, resource_uri, custom_headers=None, raw=False, **operation_config):
| url = '/{resourceUri}/providers/microsoft.insights/diagnosticSettings/service'
path_format_arguments = {'resourceUri': self._serialize.url('resource_uri', resource_uri, 'str')}
url = self._client.format_url(url, **path_format_arguments)
query_parameters = {}
query_parameters['api-version'] = self._s... |
'Create or update new diagnostic settings for the specified resource.
**WARNING**: This method will be deprecated in future releases.
:param resource_uri: The identifier of the resource.
:type resource_uri: str
:param parameters: Parameters supplied to the operation.
:type parameters: :class:`ServiceDiagnosticSettingsR... | def create_or_update(self, resource_uri, parameters, custom_headers=None, raw=False, **operation_config):
| url = '/{resourceUri}/providers/microsoft.insights/diagnosticSettings/service'
path_format_arguments = {'resourceUri': self._serialize.url('resource_uri', resource_uri, 'str')}
url = self._client.format_url(url, **path_format_arguments)
query_parameters = {}
query_parameters['api-version'] = self._s... |
'Updates an existing ServiceDiagnosticSettingsResource. To update other
fields use the CreateOrUpdate method. **WARNING**: This method will be
deprecated in future releases.
:param resource_uri: The identifier of the resource.
:type resource_uri: str
:param service_diagnostic_settings_resource: Parameters supplied to
t... | def update(self, resource_uri, service_diagnostic_settings_resource, custom_headers=None, raw=False, **operation_config):
| url = '/{resourceUri}/providers/microsoft.insights/diagnosticSettings/service'
path_format_arguments = {'resourceUri': self._serialize.url('resource_uri', resource_uri, 'str')}
url = self._client.format_url(url, **path_format_arguments)
query_parameters = {}
query_parameters['api-version'] = self._s... |
'Return distribution full name with - replaced with _'
| @property
def wheel_dist_name(self):
| return '-'.join((safer_name(self.distribution.get_name()), safer_version(self.distribution.get_version())))
|
'Return archive name without extension'
| def get_archive_basename(self):
| (impl_tag, abi_tag, plat_tag) = self.get_tag()
archive_basename = ('%s-%s-%s-%s' % (self.wheel_dist_name, impl_tag, abi_tag, plat_tag))
return archive_basename
|
'Return license filename from a license-file key in setup.cfg, or None.'
| def license_file(self):
| metadata = self.distribution.get_option_dict('metadata')
if (not ('license_file' in metadata)):
return None
return metadata['license_file'][1]
|
'Generate requirements from setup.cfg as
(\'Requires-Dist\', \'requirement; qualifier\') tuples. From a metadata
section in setup.cfg:
[metadata]
provides-extra = extra1
extra2
requires-dist = requirement; qualifier
another; qualifier2
unqualified
Yields
(\'Provides-Extra\', \'extra1\'),
(\'Provides-Extra\', \'extra2\'... | def setupcfg_requirements(self):
| metadata = self.distribution.get_option_dict('metadata')
for (key, title) in (('provides_extra', 'Provides-Extra'), ('requires_dist', 'Requires-Dist')):
if (not (key in metadata)):
continue
field = metadata[key]
for line in field[1].splitlines():
line = line.strip... |
'Add additional requirements from setup.cfg to file metadata_path'
| def add_requirements(self, metadata_path):
| additional = list(self.setupcfg_requirements())
if (not additional):
return
pkg_info = read_pkg_info(metadata_path)
if (('Provides-Extra' in pkg_info) or ('Requires-Dist' in pkg_info)):
warnings.warn('setup.cfg requirements overwrite values from setup.py')
del pkg_... |
'Convert an .egg-info directory into a .dist-info directory'
| def egg2dist(self, egginfo_path, distinfo_path):
| def adios(p):
'Appropriately delete directory, file or link.'
if (os.path.exists(p) and (not os.path.islink(p)) and os.path.isdir(p)):
shutil.rmtree(p)
elif os.path.exists(p):
os.unlink(p)
adios(distinfo_path)
if (not os.path.exists(egginfo_path... |
'Gets a job.
:param resource_group_name: The resource group name.
:type resource_group_name: str
:param job_collection_name: The job collection name.
:type job_collection_name: str
:param job_name: The job name.
:type job_name: str
:param dict custom_headers: headers that will be added to the request
:param bool raw: r... | def get(self, resource_group_name, job_collection_name, job_name, custom_headers=None, raw=False, **operation_config):
| url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Scheduler/jobCollections/{jobCollectionName}/jobs/{jobName}'
path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str'), 'resourceGroupName': self.... |
'Provisions a new job or updates an existing job.
:param resource_group_name: The resource group name.
:type resource_group_name: str
:param job_collection_name: The job collection name.
:type job_collection_name: str
:param job_name: The job name.
:type job_name: str
:param properties: Gets or sets the job properties.... | def create_or_update(self, resource_group_name, job_collection_name, job_name, properties=None, custom_headers=None, raw=False, **operation_config):
| job = models.JobDefinition(properties=properties)
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Scheduler/jobCollections/{jobCollectionName}/jobs/{jobName}'
path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.conf... |
'Patches an existing job.
:param resource_group_name: The resource group name.
:type resource_group_name: str
:param job_collection_name: The job collection name.
:type job_collection_name: str
:param job_name: The job name.
:type job_name: str
:param properties: Gets or sets the job properties.
:type properties: :clas... | def patch(self, resource_group_name, job_collection_name, job_name, properties=None, custom_headers=None, raw=False, **operation_config):
| job = models.JobDefinition(properties=properties)
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Scheduler/jobCollections/{jobCollectionName}/jobs/{jobName}'
path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.conf... |
'Deletes a job.
:param resource_group_name: The resource group name.
:type resource_group_name: str
:param job_collection_name: The job collection name.
:type job_collection_name: str
:param job_name: The job name.
:type job_name: str
:param dict custom_headers: headers that will be added to the request
:param bool raw... | def delete(self, resource_group_name, job_collection_name, job_name, custom_headers=None, raw=False, **operation_config):
| url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Scheduler/jobCollections/{jobCollectionName}/jobs/{jobName}'
path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str'), 'resourceGroupName': self.... |
'Runs a job.
:param resource_group_name: The resource group name.
:type resource_group_name: str
:param job_collection_name: The job collection name.
:type job_collection_name: str
:param job_name: The job name.
:type job_name: str
:param dict custom_headers: headers that will be added to the request
:param bool raw: r... | def run(self, resource_group_name, job_collection_name, job_name, custom_headers=None, raw=False, **operation_config):
| url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Scheduler/jobCollections/{jobCollectionName}/jobs/{jobName}/run'
path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str'), 'resourceGroupName': s... |
'Lists all jobs under the specified job collection.
:param resource_group_name: The resource group name.
:type resource_group_name: str
:param job_collection_name: The job collection name.
:type job_collection_name: str
:param top: The number of jobs to request, in the of range of
[1..100].
:type top: int
:param skip: ... | def list(self, resource_group_name, job_collection_name, top=None, skip=None, filter=None, custom_headers=None, raw=False, **operation_config):
| def internal_paging(next_link=None, raw=False):
if (not next_link):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Scheduler/jobCollections/{jobCollectionName}/jobs'
path_format_arguments = {'subscriptionId': self._serialize.url('self.co... |
'Lists job history.
:param resource_group_name: The resource group name.
:type resource_group_name: str
:param job_collection_name: The job collection name.
:type job_collection_name: str
:param job_name: The job name.
:type job_name: str
:param top: the number of job history to request, in the of range of
[1..100].
:t... | def list_job_history(self, resource_group_name, job_collection_name, job_name, top=None, skip=None, filter=None, custom_headers=None, raw=False, **operation_config):
| def internal_paging(next_link=None, raw=False):
if (not next_link):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Scheduler/jobCollections/{jobCollectionName}/jobs/{jobName}/history'
path_format_arguments = {'subscriptionId': self._seri... |
'Gets all job collections under specified subscription.
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:rtype: :class:`J... | def list_by_subscription(self, custom_headers=None, raw=False, **operation_config):
| def internal_paging(next_link=None, raw=False):
if (not next_link):
url = '/subscriptions/{subscriptionId}/providers/Microsoft.Scheduler/jobCollections'
path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str')}
... |
'Gets all job collections under specified resource group.
:param resource_group_name: The resource group name.
:type resource_group_name: str
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :r... | def list_by_resource_group(self, resource_group_name, custom_headers=None, raw=False, **operation_config):
| def internal_paging(next_link=None, raw=False):
if (not next_link):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Scheduler/jobCollections'
path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', se... |
'Gets a job collection.
:param resource_group_name: The resource group name.
:type resource_group_name: str
:param job_collection_name: The job collection name.
:type job_collection_name: str
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the... | def get(self, resource_group_name, job_collection_name, custom_headers=None, raw=False, **operation_config):
| url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Scheduler/jobCollections/{jobCollectionName}'
path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url(... |
'Provisions a new job collection or updates an existing job collection.
:param resource_group_name: The resource group name.
:type resource_group_name: str
:param job_collection_name: The job collection name.
:type job_collection_name: str
:param job_collection: The job collection definition.
:type job_collection: :cla... | def create_or_update(self, resource_group_name, job_collection_name, job_collection, custom_headers=None, raw=False, **operation_config):
| url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Scheduler/jobCollections/{jobCollectionName}'
path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url(... |
'Patches an existing job collection.
:param resource_group_name: The resource group name.
:type resource_group_name: str
:param job_collection_name: The job collection name.
:type job_collection_name: str
:param job_collection: The job collection definition.
:type job_collection: :class:`JobCollectionDefinition
<azure.... | def patch(self, resource_group_name, job_collection_name, job_collection, custom_headers=None, raw=False, **operation_config):
| url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Scheduler/jobCollections/{jobCollectionName}'
path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url(... |
'Deletes a job collection.
:param resource_group_name: The resource group name.
:type resource_group_name: str
:param job_collection_name: The job collection name.
:type job_collection_name: str
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside ... | def delete(self, resource_group_name, job_collection_name, custom_headers=None, raw=False, **operation_config):
| url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Scheduler/jobCollections/{jobCollectionName}'
path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url(... |
'Enables all of the jobs in the job collection.
:param resource_group_name: The resource group name.
:type resource_group_name: str
:param job_collection_name: The job collection name.
:type job_collection_name: str
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direc... | def enable(self, resource_group_name, job_collection_name, custom_headers=None, raw=False, **operation_config):
| url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Scheduler/jobCollections/{jobCollectionName}/enable'
path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str'), 'resourceGroupName': self._seriali... |
'Disables all of the jobs in the job collection.
:param resource_group_name: The resource group name.
:type resource_group_name: str
:param job_collection_name: The job collection name.
:type job_collection_name: str
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the dire... | def disable(self, resource_group_name, job_collection_name, custom_headers=None, raw=False, **operation_config):
| url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Scheduler/jobCollections/{jobCollectionName}/disable'
path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str'), 'resourceGroupName': self._serial... |
'Return distribution full name with - replaced with _'
| @property
def wheel_dist_name(self):
| return '-'.join((safer_name(self.distribution.get_name()), safer_version(self.distribution.get_version())))
|
'Return archive name without extension'
| def get_archive_basename(self):
| (impl_tag, abi_tag, plat_tag) = self.get_tag()
archive_basename = ('%s-%s-%s-%s' % (self.wheel_dist_name, impl_tag, abi_tag, plat_tag))
return archive_basename
|
'Return license filename from a license-file key in setup.cfg, or None.'
| def license_file(self):
| metadata = self.distribution.get_option_dict('metadata')
if (not ('license_file' in metadata)):
return None
return metadata['license_file'][1]
|
'Generate requirements from setup.cfg as
(\'Requires-Dist\', \'requirement; qualifier\') tuples. From a metadata
section in setup.cfg:
[metadata]
provides-extra = extra1
extra2
requires-dist = requirement; qualifier
another; qualifier2
unqualified
Yields
(\'Provides-Extra\', \'extra1\'),
(\'Provides-Extra\', \'extra2\'... | def setupcfg_requirements(self):
| metadata = self.distribution.get_option_dict('metadata')
for (key, title) in (('provides_extra', 'Provides-Extra'), ('requires_dist', 'Requires-Dist')):
if (not (key in metadata)):
continue
field = metadata[key]
for line in field[1].splitlines():
line = line.strip... |
'Add additional requirements from setup.cfg to file metadata_path'
| def add_requirements(self, metadata_path):
| additional = list(self.setupcfg_requirements())
if (not additional):
return
pkg_info = read_pkg_info(metadata_path)
if (('Provides-Extra' in pkg_info) or ('Requires-Dist' in pkg_info)):
warnings.warn('setup.cfg requirements overwrite values from setup.py')
del pkg_... |
'Convert an .egg-info directory into a .dist-info directory'
| def egg2dist(self, egginfo_path, distinfo_path):
| def adios(p):
'Appropriately delete directory, file or link.'
if (os.path.exists(p) and (not os.path.islink(p)) and os.path.isdir(p)):
shutil.rmtree(p)
elif os.path.exists(p):
os.unlink(p)
adios(distinfo_path)
if (not os.path.exists(egginfo_path... |
'Module depends on the API version:
* 2017-01-31: :mod:`v2017_01_31.models<azure.mgmt.compute.containerservice.v2017_01_31.models>`'
| @classmethod
def models(cls, api_version='2017-01-31'):
| if (api_version == '2017-01-31'):
from .v2017_01_31 import models
return models
raise NotImplementedError('APIVersion {} is not available'.format(api_version))
|
'Instance depends on the API version:
* 2017-01-31: :class:`ContainerServicesOperations<azure.mgmt.compute.containerservice.v2017_01_31.operations.ContainerServicesOperations>`'
| @property
def container_services(self):
| if (self.api_version == '2017-01-31'):
from .v2017_01_31.operations import ContainerServicesOperations as OperationClass
else:
raise NotImplementedError('APIVersion {} is not available'.format(self.api_version))
return OperationClass(self._client, self.config, self._serialize, se... |
'Gets a list of container services in the specified subscription.
Gets a list of container services in the specified subscription. The
operation returns properties of each container service including state,
orchestrator, number of masters and agents, and FQDNs of masters and
agents.
:param dict custom_headers: headers ... | def list(self, custom_headers=None, raw=False, **operation_config):
| def internal_paging(next_link=None, raw=False):
if (not next_link):
url = '/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/containerServices'
path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id... |
'Creates or updates a container service.
Creates or updates a container service with the specified configuration
of orchestrator, masters, and agents.
:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param container_service_name: The name of the container service in
the specif... | def create_or_update(self, resource_group_name, container_service_name, parameters, custom_headers=None, raw=False, **operation_config):
| url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/containerServices/{containerServiceName}'
path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str'), 'containerServiceName': self._serialize.u... |
'Gets the properties of the specified container service.
Gets the properties of the specified container service in the specified
subscription and resource group. The operation returns the properties
including state, orchestrator, number of masters and agents, and FQDNs
of masters and agents. .
:param resource_group_nam... | def get(self, resource_group_name, container_service_name, custom_headers=None, raw=False, **operation_config):
| url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/containerServices/{containerServiceName}'
path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str'), 'containerServiceName': self._serialize.u... |
'Deletes the specified container service.
Deletes the specified container service in the specified subscription
and resource group. The operation does not delete other resources
created as part of creating a container service, including storage
accounts, VMs, and availability sets. All the other resources created
with ... | def delete(self, resource_group_name, container_service_name, custom_headers=None, raw=False, **operation_config):
| url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/containerServices/{containerServiceName}'
path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str'), 'containerServiceName': self._serialize.u... |
'Gets a list of container services in the specified resource group.
Gets a list of container services in the specified subscription and
resource group. The operation returns properties of each container
service including state, orchestrator, number of masters and agents,
and FQDNs of masters and agents.
:param resource... | def list_by_resource_group(self, resource_group_name, custom_headers=None, raw=False, **operation_config):
| def internal_paging(next_link=None, raw=False):
if (not next_link):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/containerServices'
path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name... |
'The operation to create or update the extension.
:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param vm_name: The name of the virtual machine where the extension
should be create or updated.
:type vm_name: str
:param vm_extension_name: The name of the virtual machine exten... | def create_or_update(self, resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers=None, raw=False, **operation_config):
| url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{vmExtensionName}'
path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str'), 'vmName': self._serialize.url('vm_nam... |
'The operation to delete the extension.
:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param vm_name: The name of the virtual machine where the extension
should be deleted.
:type vm_name: str
:param vm_extension_name: The name of the virtual machine extension.
:type vm_exten... | def delete(self, resource_group_name, vm_name, vm_extension_name, custom_headers=None, raw=False, **operation_config):
| url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{vmExtensionName}'
path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str'), 'vmName': self._serialize.url('vm_nam... |
'The operation to get the extension.
:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param vm_name: The name of the virtual machine containing the
extension.
:type vm_name: str
:param vm_extension_name: The name of the virtual machine extension.
:type vm_extension_name: str
:... | def get(self, resource_group_name, vm_name, vm_extension_name, expand=None, custom_headers=None, raw=False, **operation_config):
| url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{vmExtensionName}'
path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str'), 'vmName': self._serialize.url('vm_nam... |
'Create or update a VM scale set.
:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param vm_scale_set_name: The name of the VM scale set to create or
update.
:type vm_scale_set_name: str
:param parameters: The scale set object.
:type parameters: :class:`VirtualMachineScaleSet
... | def create_or_update(self, resource_group_name, vm_scale_set_name, parameters, custom_headers=None, raw=False, **operation_config):
| url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}'
path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str'), 'vmScaleSetName': self._serialize.url('vm_scale_se... |
'Deletes a VM scale set.
:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param vm_scale_set_name: The name of the VM scale set.
:type vm_scale_set_name: str
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alon... | def delete(self, resource_group_name, vm_scale_set_name, custom_headers=None, raw=False, **operation_config):
| url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}'
path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str'), 'vmScaleSetName': self._serialize.url('vm_scale_se... |
'Display information about a virtual machine scale set.
:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param vm_scale_set_name: The name of the VM scale set.
:type vm_scale_set_name: str
:param dict custom_headers: headers that will be added to the request
:param bool raw: r... | def get(self, resource_group_name, vm_scale_set_name, custom_headers=None, raw=False, **operation_config):
| url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}'
path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str'), 'vmScaleSetName': self._serialize.url('vm_scale_se... |
'Deallocates specific virtual machines in a VM scale set. Shuts down the
virtual machines and releases the compute resources. You are not billed
for the compute resources that this virtual machine scale set
deallocates.
:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param vm... | def deallocate(self, resource_group_name, vm_scale_set_name, instance_ids=None, custom_headers=None, raw=False, **operation_config):
| vm_instance_ids = None
if (instance_ids is not None):
vm_instance_ids = models.VirtualMachineScaleSetVMInstanceIDs(instance_ids=instance_ids)
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/deallocate'
... |
'Deletes virtual machines in a VM scale set.
:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param vm_scale_set_name: The name of the VM scale set.
:type vm_scale_set_name: str
:param instance_ids: The virtual machine scale set instance ids.
:type instance_ids: list of str
:p... | def delete_instances(self, resource_group_name, vm_scale_set_name, instance_ids, custom_headers=None, raw=False, **operation_config):
| vm_instance_ids = models.VirtualMachineScaleSetVMInstanceRequiredIDs(instance_ids=instance_ids)
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/delete'
path_format_arguments = {'resourceGroupName': self._serialize... |
'Gets the status of a VM scale set instance.
:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param vm_scale_set_name: The name of the VM scale set.
:type vm_scale_set_name: str
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the ... | def get_instance_view(self, resource_group_name, vm_scale_set_name, custom_headers=None, raw=False, **operation_config):
| url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/instanceView'
path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str'), 'vmScaleSetName': self._serialize.url... |
'Gets a list of all VM scale sets under a resource group.
:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_con... | def list(self, resource_group_name, custom_headers=None, raw=False, **operation_config):
| def internal_paging(next_link=None, raw=False):
if (not next_link):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets'
path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', ... |
'Gets a list of all VM Scale Sets in the subscription, regardless of the
associated resource group. Use nextLink property in the response to get
the next page of VM Scale Sets. Do this till nextLink is not null to
fetch all the VM Scale Sets.
:param dict custom_headers: headers that will be added to the request
:param ... | def list_all(self, custom_headers=None, raw=False, **operation_config):
| def internal_paging(next_link=None, raw=False):
if (not next_link):
url = '/subscriptions/{subscriptionId}/providers/Microsoft.Compute/virtualMachineScaleSets'
path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, '... |
'Gets a list of SKUs available for your VM scale set, including the
minimum and maximum VM instances allowed for each SKU.
:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param vm_scale_set_name: The name of the VM scale set.
:type vm_scale_set_name: str
:param dict custom_he... | def list_skus(self, resource_group_name, vm_scale_set_name, custom_headers=None, raw=False, **operation_config):
| def internal_paging(next_link=None, raw=False):
if (not next_link):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/skus'
path_format_arguments = {'resourceGroupName': self._serialize.url('... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.