desc
stringlengths
3
26.7k
decl
stringlengths
11
7.89k
bodies
stringlengths
8
553k
'Get virtual machine. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param lab_name: The name of the lab. :type lab_name: str :param name: The name of the virtual machine. :type name: str :param expand: Specify the $expand query. Example: \'properties($expand=artifacts,compu...
def get(self, resource_group_name, lab_name, name, expand=None, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}' path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str'), 'resourceGroupName': self._serialize....
'Create or replace an existing Virtual machine. This operation can take a while to complete. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param lab_name: The name of the lab. :type lab_name: str :param name: The name of the virtual machine. :type name: str :param lab_virtu...
def create_or_update(self, resource_group_name, lab_name, name, lab_virtual_machine, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}' path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str'), 'resourceGroupName': self._serialize....
'Delete virtual machine. This operation can take a while to complete. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param lab_name: The name of the lab. :type lab_name: str :param name: The name of the virtual machine. :type name: str :param dict custom_headers: headers tha...
def delete(self, resource_group_name, lab_name, name, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}' path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str'), 'resourceGroupName': self._serialize....
'Modify properties of virtual machines. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param lab_name: The name of the lab. :type lab_name: str :param name: The name of the virtual machine. :type name: str :param lab_virtual_machine: A virtual machine. :type lab_virtual_mach...
def update(self, resource_group_name, lab_name, name, lab_virtual_machine, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}' path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str'), 'resourceGroupName': self._serialize....
'Attach a new or existing data disk to virtual machine. This operation can take a while to complete. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param lab_name: The name of the lab. :type lab_name: str :param name: The name of the virtual machine. :type name: str :param d...
def add_data_disk(self, resource_group_name, lab_name, name, data_disk_properties, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/addDataDisk' path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str'), 'resourceGroupName': self...
'Apply artifacts to virtual machine. This operation can take a while to complete. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param lab_name: The name of the lab. :type lab_name: str :param name: The name of the virtual machine. :type name: str :param artifacts: The list ...
def apply_artifacts(self, resource_group_name, lab_name, name, artifacts=None, custom_headers=None, raw=False, **operation_config):
apply_artifacts_request = models.ApplyArtifactsRequest(artifacts=artifacts) url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/applyArtifacts' path_format_arguments = {'subscriptionId': self._serialize.url('self.conf...
'Take ownership of an existing virtual machine This operation can take a while to complete. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param lab_name: The name of the lab. :type lab_name: str :param name: The name of the virtual machine. :type name: str :param dict custo...
def claim(self, resource_group_name, lab_name, name, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/claim' path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str'), 'resourceGroupName': self._seri...
'Detach the specified disk from the virtual machine. This operation can take a while to complete. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param lab_name: The name of the lab. :type lab_name: str :param name: The name of the virtual machine. :type name: str :param exis...
def detach_data_disk(self, resource_group_name, lab_name, name, existing_lab_disk_id=None, custom_headers=None, raw=False, **operation_config):
detach_data_disk_properties = models.DetachDataDiskProperties(existing_lab_disk_id=existing_lab_disk_id) url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/detachDataDisk' path_format_arguments = {'subscriptionId': s...
'Lists all applicable schedules. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param lab_name: The name of the lab. :type lab_name: str :param name: The name of the virtual machine. :type name: str :param dict custom_headers: headers that will be added to the request :param...
def list_applicable_schedules(self, resource_group_name, lab_name, name, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/listApplicableSchedules' path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str'), 'resourceGrou...
'Start a virtual machine. This operation can take a while to complete. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param lab_name: The name of the lab. :type lab_name: str :param name: The name of the virtual machine. :type name: str :param dict custom_headers: headers th...
def start(self, resource_group_name, lab_name, name, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/start' path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str'), 'resourceGroupName': self._seri...
'Stop a virtual machine This operation can take a while to complete. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param lab_name: The name of the lab. :type lab_name: str :param name: The name of the virtual machine. :type name: str :param dict custom_headers: headers that...
def stop(self, resource_group_name, lab_name, name, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/stop' path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str'), 'resourceGroupName': self._seria...
'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...
'Checks the availability of the given notificationHub in a namespace. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param namespace_name: The namespace name. :type namespace_name: str :param parameters: The notificationHub name. :type parameters: :class:`CheckAvailabilityPa...
def check_availability(self, resource_group_name, namespace_name, parameters, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/checkNotificationHubAvailability' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str'), 'namespaceName': self....
'Creates/Update a NotificationHub in a namespace. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param namespace_name: The namespace name. :type namespace_name: str :param notification_hub_name: The notification hub name. :type notification_hub_name: str :param parameters: P...
def create_or_update(self, resource_group_name, namespace_name, notification_hub_name, parameters, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str'), 'namespaceName':...
'Deletes a notification hub associated with a namespace. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param namespace_name: The namespace name. :type namespace_name: str :param notification_hub_name: The notification hub name. :type notification_hub_name: str :param dict c...
def delete(self, resource_group_name, namespace_name, notification_hub_name, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str'), 'namespaceName':...
'Lists the notification hubs associated with a namespace. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param namespace_name: The namespace name. :type namespace_name: str :param notification_hub_name: The notification hub name. :type notification_hub_name: str :param dict ...
def get(self, resource_group_name, namespace_name, notification_hub_name, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str'), 'namespaceName':...
'Creates/Updates an authorization rule for a NotificationHub. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param namespace_name: The namespace name. :type namespace_name: str :param notification_hub_name: The notification hub name. :type notification_hub_name: str :param a...
def create_or_update_authorization_rule(self, resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, parameters, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/AuthorizationRules/{authorizationRuleName}' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', re...
'Deletes a notificationHub authorization rule. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param namespace_name: The namespace name. :type namespace_name: str :param notification_hub_name: The notification hub name. :type notification_hub_name: str :param authorization_ru...
def delete_authorization_rule(self, resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/AuthorizationRules/{authorizationRuleName}' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', re...
'Gets an authorization rule for a NotificationHub by name. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param namespace_name: The namespace name :type namespace_name: str :param notification_hub_name: The notification hub name. :type notification_hub_name: str :param autho...
def get_authorization_rule(self, resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/AuthorizationRules/{authorizationRuleName}' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', re...
'Lists the notification hubs associated with a namespace. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param namespace_name: The namespace name. :type namespace_name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the dir...
def list(self, resource_group_name, namespace_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.NotificationHubs/namespaces/{namespaceName}/notificationHubs' path_format_arguments = {'resourceGroupName': self._serializ...
'Gets the authorization rules for a NotificationHub. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param namespace_name: The namespace name :type namespace_name: str :param notification_hub_name: The notification hub name. :type notification_hub_name: str :param dict custom...
def list_authorization_rules(self, resource_group_name, namespace_name, notification_hub_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.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/AuthorizationRules' path_format_argumen...
'Gets the Primary and Secondary ConnectionStrings to the NotificationHub :param resource_group_name: The name of the resource group. :type resource_group_name: str :param namespace_name: The namespace name. :type namespace_name: str :param notification_hub_name: The notification hub name. :type notification_hub_name: s...
def list_keys(self, resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/AuthorizationRules/{authorizationRuleName}/listKeys' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_...
'Regenerates the Primary/Secondary Keys to the NotificationHub Authorization Rule. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param namespace_name: The namespace name. :type namespace_name: str :param notification_hub_name: The notification hub name. :type notification_h...
def regenerate_keys(self, resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, policy_key=None, custom_headers=None, raw=False, **operation_config):
parameters = models.PolicykeyResource(policy_key=policy_key) url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/AuthorizationRules/{authorizationRuleName}/regenerateKeys' path_format...
'Lists the PNS Credentials associated with a notification hub . :param resource_group_name: The name of the resource group. :type resource_group_name: str :param namespace_name: The namespace name. :type namespace_name: str :param notification_hub_name: The notification hub name. :type notification_hub_name: str :param...
def get_pns_credentials(self, resource_group_name, namespace_name, notification_hub_name, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/pnsCredentials' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str'), '...
'Checks the availability of the given service namespace across all Azure subscriptions. This is useful because the domain name is created based on the service namespace name. :param name: Resource name :type name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the dir...
def check_availability(self, name, custom_headers=None, raw=False, **operation_config):
parameters = models.CheckNameAvailabilityRequestParameters(name=name) url = '/subscriptions/{subscriptionId}/providers/Microsoft.NotificationHubs/checkNameAvailability' path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str')} url ...
'Checks the availability of the given notificationHub in a namespace. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param namespace_name: The namespace name. :type namespace_name: str :param name: Resource name :type name: str :param dict custom_headers: headers that will b...
def check_availability(self, resource_group_name, namespace_name, name, custom_headers=None, raw=False, **operation_config):
parameters = models.CheckNameAvailabilityRequestParameters(name=name) url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/checkHubAvailability' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_gr...
'Checks the availability of the given service namespace across all Azure subscriptions. This is useful because the domain name is created based on the service namespace name. :param parameters: The namespace name. :type parameters: :class:`CheckAvailabilityParameters <azure.mgmt.notificationhubs.models.CheckAvailabilit...
def check_availability(self, parameters, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/providers/Microsoft.NotificationHubs/checkNamespaceAvailability' path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str')} url = self._client.format_url(url, **path_format_arguments) query_par...
'Creates/Updates a service namespace. Once created, this namespace\'s resource manifest is immutable. This operation is idempotent. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param namespace_name: The namespace name. :type namespace_name: str :param parameters: Parameter...
def create_or_update(self, resource_group_name, namespace_name, parameters, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str'), 'namespaceName': self._serialize.url('namespace_name', ...
'Patches the existing namespace. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param namespace_name: The namespace name. :type namespace_name: str :param tags: Resource tags :type tags: dict :param sku: The sku of the created namespace :type sku: :class:`Sku <azure.mgmt.not...
def patch(self, resource_group_name, namespace_name, tags=None, sku=None, custom_headers=None, raw=False, **operation_config):
parameters = models.NamespacePatchParameters(tags=tags, sku=sku) url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_...
'Deletes an existing namespace. This operation also removes all associated notificationHubs under the namespace. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param namespace_name: The namespace name. :type namespace_name: str :param dict custom_headers: headers that will b...
def delete(self, resource_group_name, namespace_name, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str'), 'namespaceName': self._serialize.url('namespace_name', ...
'Returns the description for the specified namespace. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param namespace_name: The namespace name. :type namespace_name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct ...
def get(self, resource_group_name, namespace_name, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str'), 'namespaceName': self._serialize.url('namespace_name', ...
'Creates an authorization rule for a namespace. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param namespace_name: The namespace name. :type namespace_name: str :param authorization_rule_name: Aauthorization Rule Name. :type authorization_rule_name: str :param parameters: ...
def create_or_update_authorization_rule(self, resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str'), 'namespaceNa...
'Deletes a namespace authorization rule. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param namespace_name: The namespace name. :type namespace_name: str :param authorization_rule_name: Authorization Rule Name. :type authorization_rule_name: str :param dict custom_headers:...
def delete_authorization_rule(self, resource_group_name, namespace_name, authorization_rule_name, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str'), 'namespaceNa...
'Gets an authorization rule for a namespace by name. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param namespace_name: The namespace name :type namespace_name: str :param authorization_rule_name: Authorization rule name. :type authorization_rule_name: str :param dict cust...
def get_authorization_rule(self, resource_group_name, namespace_name, authorization_rule_name, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str'), 'namespaceNa...
'Lists the available namespaces within a resourceGroup. :param resource_group_name: The name of the resource group. If resourceGroupName value is null the method lists all the namespaces within subscription :type resource_group_name: str :param dict custom_headers: headers that will be added to the request :param bool ...
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.NotificationHubs/namespaces' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', reso...
'Lists all the available namespaces within the subscription irrespective of the resourceGroups. :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:o...
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.NotificationHubs/namespaces' path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str'...
'Gets the authorization rules for a namespace. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param namespace_name: The namespace name :type namespace_name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response...
def list_authorization_rules(self, resource_group_name, namespace_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.NotificationHubs/namespaces/{namespaceName}/AuthorizationRules' path_format_arguments = {'resourceGroupName': self._serial...
'Gets the Primary and Secondary ConnectionStrings to the namespace . :param resource_group_name: The name of the resource group. :type resource_group_name: str :param namespace_name: The namespace name. :type namespace_name: str :param authorization_rule_name: The connection string of the namespace for the specified au...
def list_keys(self, resource_group_name, namespace_name, authorization_rule_name, custom_headers=None, raw=False, **operation_config):
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}/listKeys' path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str'), 'na...
'Regenerates the Primary/Secondary Keys to the Namespace Authorization Rule. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param namespace_name: The namespace name. :type namespace_name: str :param authorization_rule_name: The connection string of the namespace for the spec...
def regenerate_keys(self, resource_group_name, namespace_name, authorization_rule_name, policy_key=None, custom_headers=None, raw=False, **operation_config):
parameters = models.PolicykeyResource(policy_key=policy_key) url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}/regenerateKeys' path_format_arguments = {'resourceGroupName': self...
'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 Service Fabric cluster manifest. Get the Service Fabric cluster manifest. The cluster manifest contains properties of the cluster that include different node types on the cluster, security configurations, fault and upgrade domain topologies etc. These properties are specified as part of the ClusterConfig.JSON ...
def get_cluster_manifest(self, timeout=60, custom_headers=None, raw=False, **operation_config):
api_version = '3.0' url = '/$/GetClusterManifest' query_parameters = {} query_parameters['api-version'] = self._serialize.query('api_version', api_version, 'str') if (timeout is not None): query_parameters['timeout'] = self._serialize.query('timeout', timeout, 'long', maximum=4294967295, min...
'Gets the health of a Service Fabric cluster. Gets the health of a Service Fabric cluster. Use EventsHealthStateFilter to filter the collection of health events reported on the cluster based on the health state. Similarly, use NodesHealthStateFilter and ApplicationsHealthStateFilter to filter the collection of nodes an...
def get_cluster_health(self, nodes_health_state_filter=0, applications_health_state_filter=0, events_health_state_filter=0, timeout=60, custom_headers=None, raw=False, **operation_config):
api_version = '3.0' url = '/$/GetClusterHealth' query_parameters = {} query_parameters['api-version'] = self._serialize.query('api_version', api_version, 'str') if (nodes_health_state_filter is not None): query_parameters['NodesHealthStateFilter'] = self._serialize.query('nodes_health_state_...
'Gets the health of a Service Fabric cluster using the specified policy. Gets the health of a Service Fabric cluster. Use EventsHealthStateFilter to filter the collection of health events reported on the cluster based on the health state. Similarly, use NodesHealthStateFilter and ApplicationsHealthStateFilter to filter...
def get_cluster_health_using_policy(self, nodes_health_state_filter=0, applications_health_state_filter=0, events_health_state_filter=0, timeout=60, application_health_policy_map=None, cluster_health_policy=None, custom_headers=None, raw=False, **operation_config):
cluster_health_policies = None if ((application_health_policy_map is not None) or (cluster_health_policy is not None)): cluster_health_policies = models.ClusterHealthPolicies(application_health_policy_map=application_health_policy_map, cluster_health_policy=cluster_health_policy) api_version = '3.0'...
'Gets the health of a Service Fabric cluster using health chunks. Gets the health of a Service Fabric cluster using health chunks. Includes the aggregated health state of the cluster, but none of the cluster entities. To expand the cluster health and get the health state of all or some of the entities, use the POST URI...
def get_cluster_health_chunk(self, timeout=60, custom_headers=None, raw=False, **operation_config):
api_version = '3.0' url = '/$/GetClusterHealthChunk' query_parameters = {} query_parameters['api-version'] = self._serialize.query('api_version', api_version, 'str') if (timeout is not None): query_parameters['timeout'] = self._serialize.query('timeout', timeout, 'long', maximum=4294967295, ...
'Gets the health of a Service Fabric cluster using health chunks. Gets the health of a Service Fabric cluster using health chunks. The health evaluation is done based on the input cluster health chunk query description. The query description allows users to specify health policies for evaluating the cluster and its chi...
def get_cluster_health_chunk_using_policy_and_advanced_filters(self, cluster_health_chunk_query_description=None, timeout=60, custom_headers=None, raw=False, **operation_config):
api_version = '3.0' url = '/$/GetClusterHealthChunk' query_parameters = {} query_parameters['api-version'] = self._serialize.query('api_version', api_version, 'str') if (timeout is not None): query_parameters['timeout'] = self._serialize.query('timeout', timeout, 'long', maximum=4294967295, ...
'Sends a health report on the Service Fabric cluster. Sends a health report on a Service Fabric cluster. The report must contain the information about the source of the health report and property on which it is reported. The report is sent to a Service Fabric gateway node, which forwards to the health store. The report...
def report_cluster_health(self, health_information, timeout=60, custom_headers=None, raw=False, **operation_config):
api_version = '3.0' url = '/$/ReportClusterHealth' query_parameters = {} query_parameters['api-version'] = self._serialize.query('api_version', api_version, 'str') if (timeout is not None): query_parameters['timeout'] = self._serialize.query('timeout', timeout, 'long', maximum=4294967295, mi...
'Gets a list of fabric code versions that are provisioned in a Service Fabric cluster. Gets a list of information about fabric code versions that are provisioned in the cluster. The parameter CodeVersion can be used to optionally filter the output to only that particular version. :param code_version: The product versio...
def get_provisioned_fabric_code_version_info_list(self, code_version=None, timeout=60, custom_headers=None, raw=False, **operation_config):
api_version = '3.0' url = '/$/GetProvisionedCodeVersions' query_parameters = {} query_parameters['api-version'] = self._serialize.query('api_version', api_version, 'str') if (code_version is not None): query_parameters['CodeVersion'] = self._serialize.query('code_version', code_version, 'str...
'Gets a list of fabric config versions that are provisioned in a Service Fabric cluster. Gets a list of information about fabric config versions that are provisioned in the cluster. The parameter ConfigVersion can be used to optionally filter the output to only that particular version. :param config_version: The config...
def get_provisioned_fabric_config_version_info_list(self, config_version=None, timeout=60, custom_headers=None, raw=False, **operation_config):
api_version = '3.0' url = '/$/GetProvisionedConfigVersions' query_parameters = {} query_parameters['api-version'] = self._serialize.query('api_version', api_version, 'str') if (config_version is not None): query_parameters['ConfigVersion'] = self._serialize.query('config_version', config_ver...
'Gets the progress of the current cluster upgrade. Gets the current progress of the ongoing cluster upgrade. If no upgrade is currently in progress, gets the last state of the previous cluster upgrade. :param timeout: The server timeout for performing the operation in seconds. This specifies the time duration that the ...
def get_cluster_upgrade_progress(self, timeout=60, custom_headers=None, raw=False, **operation_config):
api_version = '3.0' url = '/$/GetUpgradeProgress' query_parameters = {} query_parameters['api-version'] = self._serialize.query('api_version', api_version, 'str') if (timeout is not None): query_parameters['timeout'] = self._serialize.query('timeout', timeout, 'long', maximum=4294967295, min...
'Gets the Azure Active Directory metadata used for secured connection to cluster. Gets the Azure Active Directory metadata used for secured connection to cluster. This API is not supposed to be called separately. It provides information needed to set up an Azure Active Directory secured connection with a Service Fabric...
def get_aad_metadata(self, timeout=60, custom_headers=None, raw=False, **operation_config):
api_version = '1.0' url = '/$/GetAadMetadata' query_parameters = {} query_parameters['api-version'] = self._serialize.query('api_version', api_version, 'str') if (timeout is not None): query_parameters['timeout'] = self._serialize.query('timeout', timeout, 'long', maximum=4294967295, minimum...
'Gets the list of nodes in the Service Fabric cluster. The Nodes endpoint returns information about the nodes in the Service Fabric Cluster. The respons include the name, status, id, health, uptime and other details about the node. :param continuation_token: The continuation token parameter is used to obtain next set o...
def get_node_info_list(self, continuation_token=None, node_status_filter='default', timeout=60, custom_headers=None, raw=False, **operation_config):
api_version = '3.0' url = '/Nodes' query_parameters = {} query_parameters['api-version'] = self._serialize.query('api_version', api_version, 'str') if (continuation_token is not None): query_parameters['ContinuationToken'] = self._serialize.query('continuation_token', continuation_token, 'st...
'Gets the list of nodes in the Service Fabric cluster. Gets the information about a specific node in the Service Fabric Cluster.The respons include the name, status, id, health, uptime and other details about the node. :param node_name: The name of the node. :type node_name: str :param timeout: The server timeout for p...
def get_node_info(self, node_name, timeout=60, custom_headers=None, raw=False, **operation_config):
api_version = '3.0' url = '/Nodes/{nodeName}' path_format_arguments = {'nodeName': self._serialize.url('node_name', node_name, 'str')} url = self._client.format_url(url, **path_format_arguments) query_parameters = {} query_parameters['api-version'] = self._serialize.query('api_version', api_vers...
'Gets the health of a Service Fabric node. Gets the health of a Service Fabric node. Use EventsHealthStateFilter to filter the collection of health events reported on the node based on the health state. If the node that you specify by name does not exist in the health store, this returns an error. :param node_name: The...
def get_node_health(self, node_name, events_health_state_filter=0, timeout=60, custom_headers=None, raw=False, **operation_config):
api_version = '3.0' url = '/Nodes/{nodeName}/$/GetHealth' path_format_arguments = {'nodeName': self._serialize.url('node_name', node_name, 'str')} url = self._client.format_url(url, **path_format_arguments) query_parameters = {} query_parameters['api-version'] = self._serialize.query('api_versio...
'Gets the health of a Service Fabric node, by using the specified health policy. Gets the health of a Service Fabric node. Use EventsHealthStateFilter to filter the collection of health events reported on the node based on the health state. Use ClusterHealthPolicy in the POST body to override the health policies used t...
def get_node_health_using_policy(self, node_name, events_health_state_filter=0, cluster_health_policy=None, timeout=60, custom_headers=None, raw=False, **operation_config):
api_version = '3.0' url = '/Nodes/{nodeName}/$/GetHealth' path_format_arguments = {'nodeName': self._serialize.url('node_name', node_name, 'str')} url = self._client.format_url(url, **path_format_arguments) query_parameters = {} query_parameters['api-version'] = self._serialize.query('api_versio...
'Sends a health report on the Service Fabric node. Reports health state of the specified Service Fabric node. The report must contain the information about the source of the health report and property on which it is reported. The report is sent to a Service Fabric gateway node, which forwards to the health store. The r...
def report_node_health(self, node_name, health_information, timeout=60, custom_headers=None, raw=False, **operation_config):
api_version = '3.0' url = '/Nodes/{nodeName}/$/ReportHealth' path_format_arguments = {'nodeName': self._serialize.url('node_name', node_name, 'str')} url = self._client.format_url(url, **path_format_arguments) query_parameters = {} query_parameters['api-version'] = self._serialize.query('api_ver...
'Gets the load information of a Service Fabric node. Gets the load information of a Service Fabric node. :param node_name: The name of the node. :type node_name: str :param timeout: The server timeout for performing the operation in seconds. This specifies the time duration that the client is willing to wait for the re...
def get_node_load_info(self, node_name, timeout=60, custom_headers=None, raw=False, **operation_config):
api_version = '3.0' url = '/Nodes/{nodeName}/$/GetLoadInformation' path_format_arguments = {'nodeName': self._serialize.url('node_name', node_name, 'str')} url = self._client.format_url(url, **path_format_arguments) query_parameters = {} query_parameters['api-version'] = self._serialize.query('a...
'Deactivate a Service Fabric cluster node with the specified deactivation intent. Deactivate a Service Fabric cluster node with the specified deactivation intent. Once the deactivation is in progress, the deactivation intent can be increased, but not decreased (for example, a node which is was deactivated with the Paus...
def disable_node(self, node_name, timeout=60, deactivation_intent=None, custom_headers=None, raw=False, **operation_config):
deactivation_intent_description = models.DeactivationIntentDescription(deactivation_intent=deactivation_intent) api_version = '3.0' url = '/Nodes/{nodeName}/$/Deactivate' path_format_arguments = {'nodeName': self._serialize.url('node_name', node_name, 'str')} url = self._client.format_url(url, **pat...
'Activate a Service Fabric cluster node which is currently deactivated. Activates a Service Fabric cluster node which is currently deactivated. Once activated, the node will again become a viable target for placing new replicas, and any deactivated replicas remaining on the node will be reactivated. :param node_name: T...
def enable_node(self, node_name, timeout=60, custom_headers=None, raw=False, **operation_config):
api_version = '3.0' url = '/Nodes/{nodeName}/$/Activate' path_format_arguments = {'nodeName': self._serialize.url('node_name', node_name, 'str')} url = self._client.format_url(url, **path_format_arguments) query_parameters = {} query_parameters['api-version'] = self._serialize.query('api_version...
'Notifies Service Fabric that the persisted state on a node has been permanently removed or lost. Notifies Service Fabric that the persisted state on a node has been permanently removed or lost. This implies that it is not possible to recover the persisted state of that node. This generally happens if a hard disk has ...
def remove_node_state(self, node_name, timeout=60, custom_headers=None, raw=False, **operation_config):
api_version = '3.0' url = '/Nodes/{nodeName}/$/RemoveNodeState' path_format_arguments = {'nodeName': self._serialize.url('node_name', node_name, 'str')} url = self._client.format_url(url, **path_format_arguments) query_parameters = {} query_parameters['api-version'] = self._serialize.query('api_...
'Starts a Service Fabric cluster node. Starts a Service Fabric cluster node that is already stopped. :param node_name: The name of the node. :type node_name: str :param node_instance_id: The instance id of the node that is stopped. If instance id is specified the node is started only if it matches with the current inst...
def start_node(self, node_name, node_instance_id='0', timeout=60, custom_headers=None, raw=False, **operation_config):
start_node_description = models.StartNodeDescription(node_instance_id=node_instance_id) api_version = '3.0' url = '/Nodes/{nodeName}/$/Start' path_format_arguments = {'nodeName': self._serialize.url('node_name', node_name, 'str')} url = self._client.format_url(url, **path_format_arguments) query...
'Stops a Service Fabric cluster node. Stops a Service Fabric cluster node that is in a started state. The node will stay down until start node is called. :param node_name: The name of the node. :type node_name: str :param node_instance_id: The instance id of the target node. If instance id is specified the node is stop...
def stop_node(self, node_name, node_instance_id='0', timeout=60, custom_headers=None, raw=False, **operation_config):
stop_node_description = models.StopNodeDescription(node_instance_id=node_instance_id) api_version = '3.0' url = '/Nodes/{nodeName}/$/Stop' path_format_arguments = {'nodeName': self._serialize.url('node_name', node_name, 'str')} url = self._client.format_url(url, **path_format_arguments) query_pa...
'Restarts a Service Fabric cluster node. Restarts a Service Fabric cluster node that is already started. :param node_name: The name of the node. :type node_name: str :param node_instance_id: The instance id of the target node. If instance id is specified the node is restarted only if it matches with the current instanc...
def restart_node(self, node_name, node_instance_id='0', timeout=60, create_fabric_dump='False', custom_headers=None, raw=False, **operation_config):
restart_node_description = models.RestartNodeDescription(node_instance_id=node_instance_id, create_fabric_dump=create_fabric_dump) api_version = '3.0' url = '/Nodes/{nodeName}/$/Restart' path_format_arguments = {'nodeName': self._serialize.url('node_name', node_name, 'str')} url = self._client.forma...
'Gets the list of application types in the Service Fabric cluster. Returns the information about the application types that are provisioned or in the process of being provisioned in the Service Fabric cluster. Each version of an application type is returned as one application type. The response includes the name, versi...
def get_application_type_info_list(self, exclude_application_parameters=False, continuation_token=None, max_results=0, timeout=60, custom_headers=None, raw=False, **operation_config):
api_version = '4.0' url = '/ApplicationTypes' query_parameters = {} query_parameters['api-version'] = self._serialize.query('api_version', api_version, 'str') if (exclude_application_parameters is not None): query_parameters['ExcludeApplicationParameters'] = self._serialize.query('exclude_ap...
'Gets the list of application types in the Service Fabric cluster matching exactly the specified name. Returns the information about the application types that are provisioned or in the process of being provisioned in the Service Fabric cluster. These results are of application types whose name match exactly the one sp...
def get_application_type_info_list_by_name(self, application_type_name, exclude_application_parameters=False, continuation_token=None, max_results=0, timeout=60, custom_headers=None, raw=False, **operation_config):
api_version = '4.0' url = '/ApplicationTypes/{applicationTypeName}' path_format_arguments = {'applicationTypeName': self._serialize.url('application_type_name', application_type_name, 'str')} url = self._client.format_url(url, **path_format_arguments) query_parameters = {} query_parameters['api-...
'Provisions or registers a Service Fabric application type with the cluster. Provisions or registers a Service Fabric application type with the cluster. This is required before any new applications can be instantiated. :param application_type_build_path: The relative image store path to the application package. :type a...
def provision_application_type(self, application_type_build_path, timeout=60, custom_headers=None, raw=False, **operation_config):
application_type_image_store_path = models.ApplicationTypeImageStorePath(application_type_build_path=application_type_build_path) api_version = '3.0' url = '/ApplicationTypes/$/Provision' query_parameters = {} query_parameters['api-version'] = self._serialize.query('api_version', api_version, 'str')...
'Removes or unregisters a Service Fabric application type from the cluster. Removes or unregisters a Service Fabric application type from the cluster. This operation can only be performed if all application instance of the application type has been deleted. Once the application type is unregistered, no new application ...
def unprovision_application_type(self, application_type_name, application_type_version, timeout=60, custom_headers=None, raw=False, **operation_config):
application_type_image_store_version = models.ApplicationTypeImageStoreVersion(application_type_version=application_type_version) api_version = '3.0' url = '/ApplicationTypes/{applicationTypeName}/$/Unprovision' path_format_arguments = {'applicationTypeName': self._serialize.url('application_type_name',...
'Gets the list containing the information about service types that are supported by a provisioned application type in a Service Fabric cluster. Gets the list containing the information about service types that are supported by a provisioned application type in a Service Fabric cluster. The response includes the name of...
def get_service_type_info_list(self, application_type_name, application_type_version, timeout=60, custom_headers=None, raw=False, **operation_config):
api_version = '3.0' url = '/ApplicationTypes/{applicationTypeName}/$/GetServiceTypes' path_format_arguments = {'applicationTypeName': self._serialize.url('application_type_name', application_type_name, 'str')} url = self._client.format_url(url, **path_format_arguments) query_parameters = {} quer...
'Gets the manifest describing a service type. Gets the manifest describing a service type. The response contains the service manifest XML as a string. :param application_type_name: The name of the application type. :type application_type_name: str :param application_type_version: The version of the application type. :t...
def get_service_manifest(self, application_type_name, application_type_version, service_manifest_name, timeout=60, custom_headers=None, raw=False, **operation_config):
api_version = '3.0' url = '/ApplicationTypes/{applicationTypeName}/$/GetServiceManifest' path_format_arguments = {'applicationTypeName': self._serialize.url('application_type_name', application_type_name, 'str')} url = self._client.format_url(url, **path_format_arguments) query_parameters = {} q...
'Gets the list containing the information about service types from the applications deployed on a node in a Service Fabric cluster. Gets the list containing the information about service types from the applications deployed on a node in a Service Fabric cluster. The response includes the name of the service type, its r...
def get_deployed_service_type_info_list(self, node_name, application_id, service_manifest_name=None, timeout=60, custom_headers=None, raw=False, **operation_config):
api_version = '3.0' url = '/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetServiceTypes' path_format_arguments = {'nodeName': self._serialize.url('node_name', node_name, 'str'), 'applicationId': self._serialize.url('application_id', application_id, 'str', skip_quote=True)} url = self._client.fo...
'Gets the information about a specified service type of the application deployed on a node in a Service Fabric cluster. Gets the information about a specified service type of the application deployed on a node in a Service Fabric cluster. The response includes the name of the service type, its registration status, the ...
def get_deployed_service_type_info_by_name(self, node_name, application_id, service_type_name, service_manifest_name=None, timeout=60, custom_headers=None, raw=False, **operation_config):
api_version = '3.0' url = '/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetServiceTypes/{serviceTypeName}' path_format_arguments = {'nodeName': self._serialize.url('node_name', node_name, 'str'), 'applicationId': self._serialize.url('application_id', application_id, 'str', skip_quote=True), 'servic...
'Creates a Service Fabric application. Creates a Service Fabric application using the specified description. :param application_description: Describes the application to be created. :type application_description: :class:`ApplicationDescription <azure.servicefabric.models.ApplicationDescription>` :param timeout: The ser...
def create_application(self, application_description, timeout=60, custom_headers=None, raw=False, **operation_config):
api_version = '3.0' url = '/Applications/$/Create' query_parameters = {} query_parameters['api-version'] = self._serialize.query('api_version', api_version, 'str') if (timeout is not None): query_parameters['timeout'] = self._serialize.query('timeout', timeout, 'long', maximum=4294967295, mi...
'Deletes an existing Service Fabric application. Deletes an existing Service Fabric application. An application must be created before it can be deleted. Deleting an application will delete all services that are part of that application. By default Service Fabric will try to close service replicas in a graceful manner ...
def delete_application(self, application_id, force_remove=None, timeout=60, custom_headers=None, raw=False, **operation_config):
api_version = '3.0' url = '/Applications/{applicationId}/$/Delete' path_format_arguments = {'applicationId': self._serialize.url('application_id', application_id, 'str', skip_quote=True)} url = self._client.format_url(url, **path_format_arguments) query_parameters = {} query_parameters['api-vers...
'Gets the list of applications created in the Service Fabric cluster that match filters specified as the parameter. Gets the information about the applications that were created or in the process of being created in the Service Fabric cluster and match filters specified as the parameter. The response includes the name,...
def get_application_info_list(self, application_type_name=None, exclude_application_parameters=False, continuation_token=None, timeout=60, custom_headers=None, raw=False, **operation_config):
api_version = '3.0' url = '/Applications' query_parameters = {} query_parameters['api-version'] = self._serialize.query('api_version', api_version, 'str') if (application_type_name is not None): query_parameters['ApplicationTypeName'] = self._serialize.query('application_type_name', applicat...
'Gets information about a Service Fabric application. Returns the information about the application that was created or in the process of being created in the Service Fabric cluster and whose name matches the one specified as the parameter. The response includes the name, type, status, parameters and other details abou...
def get_application_info(self, application_id, exclude_application_parameters=False, timeout=60, custom_headers=None, raw=False, **operation_config):
api_version = '3.0' url = '/Applications/{applicationId}' path_format_arguments = {'applicationId': self._serialize.url('application_id', application_id, 'str', skip_quote=True)} url = self._client.format_url(url, **path_format_arguments) query_parameters = {} query_parameters['api-version'] = s...
'Gets the health of the service fabric application. Returns the heath state of the service fabric application. The response reports either Ok, Error or Warning health state. If the entity is not found in the helath store, it will return Error. :param application_id: The identity of the application. This is typically th...
def get_application_health(self, application_id, events_health_state_filter=0, deployed_applications_health_state_filter=0, services_health_state_filter=0, timeout=60, custom_headers=None, raw=False, **operation_config):
api_version = '3.0' url = '/Applications/{applicationId}/$/GetHealth' path_format_arguments = {'applicationId': self._serialize.url('application_id', application_id, 'str', skip_quote=True)} url = self._client.format_url(url, **path_format_arguments) query_parameters = {} query_parameters['api-v...
'Gets the health of a Service Fabric application using the specified policy. Gets the health of a Service Fabric application. Use EventsHealthStateFilter to filter the collection of health events reported on the node based on the health state. Use ClusterHealthPolicies to override the health policies used to evaluate t...
def get_application_health_using_policy(self, application_id, events_health_state_filter=0, deployed_applications_health_state_filter=0, services_health_state_filter=0, application_health_policy=None, timeout=60, custom_headers=None, raw=False, **operation_config):
api_version = '3.0' url = '/Applications/{applicationId}/$/GetHealth' path_format_arguments = {'applicationId': self._serialize.url('application_id', application_id, 'str', skip_quote=True)} url = self._client.format_url(url, **path_format_arguments) query_parameters = {} query_parameters['api-v...
'Sends a health report on the Service Fabric application. Reports health state of the specified Service Fabric application. The report must contain the information about the source of the health report and property on which it is reported. The report is sent to a Service Fabric gateway Application, which forwards to th...
def report_application_health(self, application_id, health_information, timeout=60, custom_headers=None, raw=False, **operation_config):
api_version = '3.0' url = '/Applications/{applicationId}/$/ReportHealth' path_format_arguments = {'applicationId': self._serialize.url('application_id', application_id, 'str', skip_quote=True)} url = self._client.format_url(url, **path_format_arguments) query_parameters = {} query_parameters['ap...
'Starts upgrading an application in the Service Fabric cluster. Validates the supplied application upgrade parameters and starts upgrading the application if the parameters are valid. :param application_id: The identity of the application. This is typically the full name of the application without the \'fabric:\' URI s...
def start_application_upgrade(self, application_id, application_upgrade_description, timeout=60, custom_headers=None, raw=False, **operation_config):
api_version = '3.0' url = '/Applications/{applicationId}/$/Upgrade' path_format_arguments = {'applicationId': self._serialize.url('application_id', application_id, 'str', skip_quote=True)} url = self._client.format_url(url, **path_format_arguments) query_parameters = {} query_parameters['api-ver...
'Gets details for the latest upgrade performed on this application. Returns information about the state of the latest application upgrade along with details to aid debugging application health issues. :param application_id: The identity of the application. This is typically the full name of the application without the ...
def get_application_upgrade(self, application_id, timeout=60, custom_headers=None, raw=False, **operation_config):
api_version = '3.0' url = '/Applications/{applicationId}/$/GetUpgradeProgress' path_format_arguments = {'applicationId': self._serialize.url('application_id', application_id, 'str', skip_quote=True)} url = self._client.format_url(url, **path_format_arguments) query_parameters = {} query_paramete...
'Updates an ongoing application upgrade in the Service Fabric cluster. Updates the parameters of an ongoing application upgrade from the ones specified at the time of starting the application upgrade. This may be required to mitigate stuck application upgrades due to incorrect parameters or issues in the application to...
def update_application_upgrade(self, application_id, application_upgrade_update_description, timeout=60, custom_headers=None, raw=False, **operation_config):
api_version = '3.0' url = '/Applications/{applicationId}/$/UpdateUpgrade' path_format_arguments = {'applicationId': self._serialize.url('application_id', application_id, 'str', skip_quote=True)} url = self._client.format_url(url, **path_format_arguments) query_parameters = {} query_parameters['a...
'Resumes upgrading an application in the Service Fabric cluster. Resumes an unmonitored manual Service Fabric application upgrade. Service Fabric upgrades one upgrade domain at a time. For unmonitored manual upgrades, after Service Fabric finishes an upgrade domain, it waits for you to call this API before proceeding t...
def resume_application_upgrade(self, application_id, upgrade_domain_name, timeout=60, custom_headers=None, raw=False, **operation_config):
resume_application_upgrade_description = models.ResumeApplicationUpgradeDescription(upgrade_domain_name=upgrade_domain_name) api_version = '3.0' url = '/Applications/{applicationId}/$/MoveToNextUpgradeDomain' path_format_arguments = {'applicationId': self._serialize.url('application_id', application_id,...
'Starts rolling back the currently on-going upgrade of an application in the Service Fabric cluster. Starts rolling back the current application upgrade to the previous version. This API can only be used to rollback the current in-progress upgrade that is rolling forward to new version. If the application is not curren...
def rollback_application_upgrade(self, application_id, timeout=60, custom_headers=None, raw=False, **operation_config):
api_version = '3.0' url = '/Applications/{applicationId}/$/RollbackUpgrade' path_format_arguments = {'applicationId': self._serialize.url('application_id', application_id, 'str', skip_quote=True)} url = self._client.format_url(url, **path_format_arguments) query_parameters = {} query_parameters[...
'Gets the list of applications deployed on a Service Fabric node. Gets the list of applications deployed on a Service Fabric node. :param node_name: The name of the node. :type node_name: str :param timeout: The server timeout for performing the operation in seconds. This specifies the time duration that the client is ...
def get_deployed_application_info_list(self, node_name, timeout=60, custom_headers=None, raw=False, **operation_config):
api_version = '3.0' url = '/Nodes/{nodeName}/$/GetApplications' path_format_arguments = {'nodeName': self._serialize.url('node_name', node_name, 'str')} url = self._client.format_url(url, **path_format_arguments) query_parameters = {} query_parameters['api-version'] = self._serialize.query('api_...
'Gets the information about an application deployed on a Service Fabric node. Gets the information about an application deployed on a Service Fabric node. :param node_name: The name of the node. :type node_name: str :param application_id: The identity of the application. This is typically the full name of the applicati...
def get_deployed_application_info(self, node_name, application_id, timeout=60, custom_headers=None, raw=False, **operation_config):
api_version = '3.0' url = '/Nodes/{nodeName}/$/GetApplications/{applicationId}' path_format_arguments = {'nodeName': self._serialize.url('node_name', node_name, 'str'), 'applicationId': self._serialize.url('application_id', application_id, 'str', skip_quote=True)} url = self._client.format_url(url, **pa...
'Gets the information about health of an application deployed on a Service Fabric node. Gets the information about health of an application deployed on a Service Fabric node. Use EventsHealthStateFilter to optionally filter for the collection of HealthEvent objects reported on the deployed application based on health s...
def get_deployed_application_health(self, node_name, application_id, events_health_state_filter=0, deployed_service_packages_health_state_filter=0, timeout=60, custom_headers=None, raw=False, **operation_config):
api_version = '3.0' url = '/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetHealth' path_format_arguments = {'nodeName': self._serialize.url('node_name', node_name, 'str'), 'applicationId': self._serialize.url('application_id', application_id, 'str', skip_quote=True)} url = self._client.format_u...
'Gets the information about health of an application deployed on a Service Fabric node. using the specified policy. Gets the information about health of an application deployed on a Service Fabric node using the specified policy. Use EventsHealthStateFilter to optionally filter for the collection of HealthEvent objects...
def get_deployed_application_health_using_policy(self, node_name, application_id, events_health_state_filter=0, deployed_service_packages_health_state_filter=0, application_health_policy=None, timeout=60, custom_headers=None, raw=False, **operation_config):
api_version = '3.0' url = '/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetHealth' path_format_arguments = {'nodeName': self._serialize.url('node_name', node_name, 'str'), 'applicationId': self._serialize.url('application_id', application_id, 'str', skip_quote=True)} url = self._client.format_u...
'Sends a health report on the Service Fabric application deployed on a Service Fabric node. Reports health state of the application deployed on a Service Fabric node. The report must contain the information about the source of the health report and property on which it is reported. The report is sent to a Service Fabri...
def report_deployed_application_health(self, node_name, application_id, health_information, timeout=60, custom_headers=None, raw=False, **operation_config):
api_version = '3.0' url = '/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/ReportHealth' path_format_arguments = {'nodeName': self._serialize.url('node_name', node_name, 'str'), 'applicationId': self._serialize.url('application_id', application_id, 'str', skip_quote=True)} url = self._client.forma...
'Gets the manifest describing an application type. Gets the manifest describing an application type. The response contains the application manifest XML as a string. :param application_type_name: The name of the application type. :type application_type_name: str :param application_type_version: The version of the applic...
def get_application_manifest(self, application_type_name, application_type_version, timeout=60, custom_headers=None, raw=False, **operation_config):
api_version = '3.0' url = '/ApplicationTypes/{applicationTypeName}/$/GetApplicationManifest' path_format_arguments = {'applicationTypeName': self._serialize.url('application_type_name', application_type_name, 'str')} url = self._client.format_url(url, **path_format_arguments) query_parameters = {} ...
'Gets the information about all services belonging to the application specified by the application id. Returns the information about all services belonging to the application specified by the application id. :param application_id: The identity of the application. This is typically the full name of the application witho...
def get_service_info_list(self, application_id, service_type_name=None, continuation_token=None, timeout=60, custom_headers=None, raw=False, **operation_config):
api_version = '3.0' url = '/Applications/{applicationId}/$/GetServices' path_format_arguments = {'applicationId': self._serialize.url('application_id', application_id, 'str', skip_quote=True)} url = self._client.format_url(url, **path_format_arguments) query_parameters = {} if (service_type_name...
'Gets the information about the specific service belonging to a Service Fabric application. Returns the information about specified service belonging to the specified Service Fabric application. :param application_id: The identity of the application. This is typically the full name of the application without the \'fabr...
def get_service_info(self, application_id, service_id, timeout=60, custom_headers=None, raw=False, **operation_config):
api_version = '3.0' url = '/Applications/{applicationId}/$/GetServices/{serviceId}' path_format_arguments = {'applicationId': self._serialize.url('application_id', application_id, 'str', skip_quote=True), 'serviceId': self._serialize.url('service_id', service_id, 'str', skip_quote=True)} url = self._cli...