desc stringlengths 3 26.7k | decl stringlengths 11 7.89k | bodies stringlengths 8 553k |
|---|---|---|
'Gets the name of the Service Fabric application for a service.
The GetApplicationName endpoint returns the name of the application
for the specified service.
:param service_id: The identity of the service. This is typically the
full name of the service without the \'fabric:\' URI scheme.
:type service_id: str
:param t... | def get_application_name_info(self, service_id, timeout=60, custom_headers=None, raw=False, **operation_config):
| api_version = '3.0'
url = '/Services/{serviceId}/$/GetApplicationName'
path_format_arguments = {'serviceId': self._serialize.url('service_id', service_id, 'str', skip_quote=True)}
url = self._client.format_url(url, **path_format_arguments)
query_parameters = {}
query_parameters['api-version'] = ... |
'Creates the specified service.
Creates the specified service.
:param application_id: The identity of the application. This is
typically the full name of the application without the \'fabric:\' URI
scheme.
:type application_id: str
:param service_description: The configuration for the service.
:type service_description... | def create_service(self, application_id, service_description, timeout=60, custom_headers=None, raw=False, **operation_config):
| api_version = '3.0'
url = '/Applications/{applicationId}/$/GetServices/$/Create'
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_parame... |
'Creates a Service Fabric service from the service template defined in
the application manifest.
Creates a Service Fabric service from the service template defined in
the application manifest.
:param application_id: The identity of the application. This is
typically the full name of the application without the \'fabric... | def create_service_from_template(self, application_id, service_from_template_description, timeout=60, custom_headers=None, raw=False, **operation_config):
| api_version = '3.0'
url = '/Applications/{applicationId}/$/GetServices/$/CreateFromTemplate'
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 = {}
... |
'Deletes an existing Service Fabric service.
Deletes an existing Service Fabric service. A service must be created
before it can be deleted. By default Service Fabric will try to close
service replicas in a graceful manner and then delete the service.
However if service is having issues closing the replica gracefully,
... | def delete_service(self, service_id, force_remove=None, timeout=60, custom_headers=None, raw=False, **operation_config):
| api_version = '3.0'
url = '/Services/{serviceId}/$/Delete'
path_format_arguments = {'serviceId': self._serialize.url('service_id', service_id, 'str', skip_quote=True)}
url = self._client.format_url(url, **path_format_arguments)
query_parameters = {}
query_parameters['api-version'] = self._serial... |
'Updates the specified service using the given update description.
Updates the specified service using the given update description.
:param service_id: The identity of the service. This is typically the
full name of the service without the \'fabric:\' URI scheme.
:type service_id: str
:param service_update_description:... | def update_service(self, service_id, service_update_description, timeout=60, custom_headers=None, raw=False, **operation_config):
| api_version = '3.0'
url = '/Services/{serviceId}/$/Update'
path_format_arguments = {'serviceId': self._serialize.url('service_id', service_id, 'str', skip_quote=True)}
url = self._client.format_url(url, **path_format_arguments)
query_parameters = {}
query_parameters['api-version'] = self._serial... |
'Gets the description of an existing Service Fabric service.
Gets the description of an existing Service Fabric service. A service
must be created before its description can be obtained.
:param service_id: The identity of the service. This is typically the
full name of the service without the \'fabric:\' URI scheme.
:t... | def get_service_description(self, service_id, timeout=60, custom_headers=None, raw=False, **operation_config):
| api_version = '3.0'
url = '/Services/{serviceId}/$/GetDescription'
path_format_arguments = {'serviceId': self._serialize.url('service_id', service_id, 'str', skip_quote=True)}
url = self._client.format_url(url, **path_format_arguments)
query_parameters = {}
query_parameters['api-version'] = self... |
'Gets the health of the specified Service Fabric service.
Gets the health information of the specified service.
Use EventsHealthStateFilter to filter the collection of health events
reported on the service based on the health state.
Use PartitionsHealthStateFilter to filter the collection of partitions
returned.
If you... | def get_service_health(self, service_id, events_health_state_filter=0, partitions_health_state_filter=0, timeout=60, custom_headers=None, raw=False, **operation_config):
| api_version = '3.0'
url = '/Services/{serviceId}/$/GetHealth'
path_format_arguments = {'serviceId': self._serialize.url('service_id', service_id, 'str', skip_quote=True)}
url = self._client.format_url(url, **path_format_arguments)
query_parameters = {}
query_parameters['api-version'] = self._ser... |
'Gets the health of the specified Service Fabric service, by using the
specified health policy.
Gets the health information of the specified service.
If the application health policy is specified, the health evaluation
uses it to get the aggregated health state.
If the policy is not specified, the health evaluation use... | def get_service_health_using_policy(self, service_id, events_health_state_filter=0, partitions_health_state_filter=0, application_health_policy=None, timeout=60, custom_headers=None, raw=False, **operation_config):
| api_version = '3.0'
url = '/Services/{serviceId}/$/GetHealth'
path_format_arguments = {'serviceId': self._serialize.url('service_id', service_id, 'str', skip_quote=True)}
url = self._client.format_url(url, **path_format_arguments)
query_parameters = {}
query_parameters['api-version'] = self._ser... |
'Sends a health report on the Service Fabric service.
Reports health state of the specified Service Fabric service. 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 Service, which forwards
to the health sto... | def report_service_health(self, service_id, health_information, timeout=60, custom_headers=None, raw=False, **operation_config):
| api_version = '3.0'
url = '/Services/{serviceId}/$/ReportHealth'
path_format_arguments = {'serviceId': self._serialize.url('service_id', service_id, 'str', skip_quote=True)}
url = self._client.format_url(url, **path_format_arguments)
query_parameters = {}
query_parameters['api-version'] = self._... |
'Resolve a Service Fabric partition.
Resolve a Service Fabric service partition, to get the endpoints of
the service replicas.
:param service_id: The identity of the service. This is typically the
full name of the service without the \'fabric:\' URI scheme.
:type service_id: str
:param partition_key_type: Key type for ... | def resolve_service(self, service_id, partition_key_type=None, partition_key_value=None, previous_rsp_version=None, timeout=60, custom_headers=None, raw=False, **operation_config):
| api_version = '3.0'
url = '/Services/{serviceId}/$/ResolvePartition'
path_format_arguments = {'serviceId': self._serialize.url('service_id', service_id, 'str', skip_quote=True)}
url = self._client.format_url(url, **path_format_arguments)
query_parameters = {}
query_parameters['api-version'] = se... |
'Gets the list of partitions of a Service Fabric service.
Gets the list of partitions of a Service Fabric service. The response
include the partition id, partitioning scheme information, keys
supported by the partition, status, health and other details about
the partition.
:param service_id: The identity of the service... | def get_partition_info_list(self, service_id, continuation_token=None, timeout=60, custom_headers=None, raw=False, **operation_config):
| api_version = '3.0'
url = '/Services/{serviceId}/$/GetPartitions'
path_format_arguments = {'serviceId': self._serialize.url('service_id', service_id, 'str', skip_quote=True)}
url = self._client.format_url(url, **path_format_arguments)
query_parameters = {}
query_parameters['api-version'] = self.... |
'Gets the information about a Service Fabric partition.
The Partitions endpoint returns information about the specified
partition. The response include the partition id, partitioning scheme
information, keys supported by the partition, status, health and
other details about the partition.
:param partition_id: The ident... | def get_partition_info(self, partition_id, timeout=60, custom_headers=None, raw=False, **operation_config):
| api_version = '3.0'
url = '/Partitions/{partitionId}'
path_format_arguments = {'partitionId': self._serialize.url('partition_id', partition_id, 'str', skip_quote=True)}
url = self._client.format_url(url, **path_format_arguments)
query_parameters = {}
query_parameters['api-version'] = self._seria... |
'Gets the name of the Service Fabric service for a partition.
The GetServiceName endpoint returns the name of the service for the
specified partition.
:param partition_id: The identity of the partition.
:type partition_id: str
:param timeout: The server timeout for performing the operation in
seconds. This specifies th... | def get_service_name_info(self, partition_id, timeout=60, custom_headers=None, raw=False, **operation_config):
| api_version = '3.0'
url = '/Partitions/{partitionId}/$/GetServiceName'
path_format_arguments = {'partitionId': self._serialize.url('partition_id', partition_id, 'str', skip_quote=True)}
url = self._client.format_url(url, **path_format_arguments)
query_parameters = {}
query_parameters['api-versio... |
'Gets the health of the specified Service Fabric partition.
Gets the health information of the specified partition.
Use EventsHealthStateFilter to filter the collection of health events
reported on the service based on the health state.
Use ReplicasHealthStateFilter to filter the collection of
ReplicaHealthState object... | def get_partition_health(self, partition_id, events_health_state_filter=0, replicas_health_state_filter=0, timeout=60, custom_headers=None, raw=False, **operation_config):
| api_version = '3.0'
url = '/Partitions/{partitionId}/$/GetHealth'
path_format_arguments = {'partitionId': self._serialize.url('partition_id', partition_id, 'str', skip_quote=True)}
url = self._client.format_url(url, **path_format_arguments)
query_parameters = {}
query_parameters['api-version'] =... |
'Gets the health of the specified Service Fabric partition, by using
the specified health policy.
Gets the health information of the specified partition.
If the application health policy is specified, the health evaluation
uses it to get the aggregated health state.
If the policy is not specified, the health evaluation... | def get_partition_health_using_policy(self, partition_id, events_health_state_filter=0, replicas_health_state_filter=0, application_health_policy=None, timeout=60, custom_headers=None, raw=False, **operation_config):
| api_version = '3.0'
url = '/Partitions/{partitionId}/$/GetHealth'
path_format_arguments = {'partitionId': self._serialize.url('partition_id', partition_id, 'str', skip_quote=True)}
url = self._client.format_url(url, **path_format_arguments)
query_parameters = {}
query_parameters['api-version'] =... |
'Sends a health report on the Service Fabric partition.
Reports health state of the specified Service Fabric partition. 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 Partition, which
forwards to the heal... | def report_partition_health(self, partition_id, health_information, timeout=60, custom_headers=None, raw=False, **operation_config):
| api_version = '3.0'
url = '/Partitions/{partitionId}/$/ReportHealth'
path_format_arguments = {'partitionId': self._serialize.url('partition_id', partition_id, 'str', skip_quote=True)}
url = self._client.format_url(url, **path_format_arguments)
query_parameters = {}
query_parameters['api-version'... |
'Gets the load of the specified Service Fabric partition.
Returns information about the specified partition.
The response includes a list of load information.
Each information includes load metric name, value and last reported
time in UTC.
:param partition_id: The identity of the partition.
:type partition_id: str
:par... | def get_partition_load_information(self, partition_id, timeout=60, custom_headers=None, raw=False, **operation_config):
| api_version = '3.0'
url = '/Partitions/{partitionId}/$/GetLoadInformation'
path_format_arguments = {'partitionId': self._serialize.url('partition_id', partition_id, 'str', skip_quote=True)}
url = self._client.format_url(url, **path_format_arguments)
query_parameters = {}
query_parameters['api-ve... |
'Resets the current load of a Service Fabric partition.
Resets the current load of a Service Fabric partition to the default
load for the service.
:param partition_id: The identity of the partition.
:type partition_id: str
:param timeout: The server timeout for performing the operation in
seconds. This specifies the ti... | def reset_partition_load(self, partition_id, timeout=60, custom_headers=None, raw=False, **operation_config):
| api_version = '3.0'
url = '/Partitions/{partitionId}/$/ResetLoad'
path_format_arguments = {'partitionId': self._serialize.url('partition_id', partition_id, 'str', skip_quote=True)}
url = self._client.format_url(url, **path_format_arguments)
query_parameters = {}
query_parameters['api-version'] =... |
'Indicates to the Service Fabric cluster that it should attempt to
recover a specific partition which is currently stuck in quorum loss.
Indicates to the Service Fabric cluster that it should attempt to
recover a specific partition which is currently stuck in quorum loss.
This operation should only be performed if it i... | def recover_partition(self, partition_id, timeout=60, custom_headers=None, raw=False, **operation_config):
| api_version = '3.0'
url = '/Partitions/{partitionId}/$/Recover'
path_format_arguments = {'partitionId': self._serialize.url('partition_id', partition_id, 'str', skip_quote=True)}
url = self._client.format_url(url, **path_format_arguments)
query_parameters = {}
query_parameters['api-version'] = s... |
'Indicates to the Service Fabric cluster that it should attempt to
recover the specified service which is currently stuck in quorum
loss.
Indicates to the Service Fabric cluster that it should attempt to
recover the specified service which is currently stuck in quorum
loss. This operation should only be performed if it... | def recover_service_partitions(self, service_id, timeout=60, custom_headers=None, raw=False, **operation_config):
| api_version = '3.0'
url = '/Services/$/{serviceId}/$/GetPartitions/$/Recover'
path_format_arguments = {'serviceId': self._serialize.url('service_id', service_id, 'str', skip_quote=True)}
url = self._client.format_url(url, **path_format_arguments)
query_parameters = {}
query_parameters['api-versi... |
'Indicates to the Service Fabric cluster that it should attempt to
recover the system services which are currently stuck in quorum loss.
Indicates to the Service Fabric cluster that it should attempt to
recover the system services which are currently stuck in quorum loss.
This operation should only be performed if it i... | def recover_system_partitions(self, timeout=60, custom_headers=None, raw=False, **operation_config):
| api_version = '3.0'
url = '/$/RecoverSystemPartitions'
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... |
'Indicates to the Service Fabric cluster that it should attempt to
recover any services (including system services) which are currently
stuck in quorum loss.
Indicates to the Service Fabric cluster that it should attempt to
recover any services (including system services) which are currently
stuck in quorum loss. This ... | def recover_all_partitions(self, timeout=60, custom_headers=None, raw=False, **operation_config):
| api_version = '3.0'
url = '/$/RecoverAllPartitions'
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, m... |
'Gets the information about replicas of a Service Fabric service
partition.
The GetReplicas endpoint returns information about the replicas of the
specified partition. The respons include the id, role, status,
health, node name, uptime, and other details about the replica.
:param partition_id: The identity of the parti... | def get_replica_info_list(self, partition_id, continuation_token=None, timeout=60, custom_headers=None, raw=False, **operation_config):
| api_version = '3.0'
url = '/Partitions/{partitionId}/$/GetReplicas'
path_format_arguments = {'partitionId': self._serialize.url('partition_id', partition_id, 'str', skip_quote=True)}
url = self._client.format_url(url, **path_format_arguments)
query_parameters = {}
query_parameters['api-version']... |
'Gets the information about a replica of a Service Fabric partition.
The respons include the id, role, status, health, node name, uptime,
and other details about the replica.
:param partition_id: The identity of the partition.
:type partition_id: str
:param replica_id: The identifier of the replica.
:type replica_id: s... | def get_replica_info(self, partition_id, replica_id, continuation_token=None, timeout=60, custom_headers=None, raw=False, **operation_config):
| api_version = '3.0'
url = '/Partitions/{partitionId}/$/GetReplicas/{replicaId}'
path_format_arguments = {'partitionId': self._serialize.url('partition_id', partition_id, 'str', skip_quote=True), 'replicaId': self._serialize.url('replica_id', replica_id, 'str', skip_quote=True)}
url = self._client.format... |
'Gets the health of a Service Fabric stateful service replica or
stateless service instance.
Gets the health of a Service Fabric replica.
Use EventsHealthStateFilter to filter the collection of health events
reported on the replica based on the health state.
:param partition_id: The identity of the partition.
:type par... | def get_replica_health(self, partition_id, replica_id, events_health_state_filter=0, timeout=60, custom_headers=None, raw=False, **operation_config):
| api_version = '3.0'
url = '/Partitions/{partitionId}/$/GetReplicas/{replicaId}/$/GetHealth'
path_format_arguments = {'partitionId': self._serialize.url('partition_id', partition_id, 'str', skip_quote=True), 'replicaId': self._serialize.url('replica_id', replica_id, 'str', skip_quote=True)}
url = self._c... |
'Gets the health of a Service Fabric stateful service replica or
stateless service instance using the specified policy.
Gets the health of a Service Fabric stateful service replica or
stateless service instance.
Use EventsHealthStateFilter to filter the collection of health events
reported on the cluster based on the h... | def get_replica_health_using_policy(self, partition_id, replica_id, events_health_state_filter=0, application_health_policy=None, timeout=60, custom_headers=None, raw=False, **operation_config):
| api_version = '3.0'
url = '/Partitions/{partitionId}/$/GetReplicas/{replicaId}/$/GetHealth'
path_format_arguments = {'partitionId': self._serialize.url('partition_id', partition_id, 'str', skip_quote=True), 'replicaId': self._serialize.url('replica_id', replica_id, 'str', skip_quote=True)}
url = self._c... |
'Sends a health report on the Service Fabric replica.
Reports health state of the specified Service Fabric replica. 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 Replica, which forwards
to the health sto... | def report_replica_health(self, partition_id, replica_id, health_information, service_kind='Stateful', timeout=60, custom_headers=None, raw=False, **operation_config):
| api_version = '3.0'
url = '/Partitions/{partitionId}/$/GetReplicas/{replicaId}/$/ReportHealth'
path_format_arguments = {'partitionId': self._serialize.url('partition_id', partition_id, 'str', skip_quote=True), 'replicaId': self._serialize.url('replica_id', replica_id, 'str', skip_quote=True)}
url = self... |
'Gets the list of replicas deployed on a Service Fabric node.
Gets the list containing the information about replicas deployed on a
Service Fabric node. The information include partition id, replica
id, status of the replica, name of the service, name of the service
type and other information. Use PartitionId or Servic... | def get_deployed_service_replica_info_list(self, node_name, application_id, partition_id=None, service_manifest_name=None, timeout=60, custom_headers=None, raw=False, **operation_config):
| api_version = '3.0'
url = '/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetReplicas'
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... |
'Gets the details of replica deployed on a Service Fabric node.
Gets the details of the replica deployed on a Service Fabric node. The
information include service kind, service name, current service
operation, current service operation start date time, partition id,
replica/instance id, reported load and other informat... | def get_deployed_service_replica_detail_info(self, node_name, partition_id, replica_id, timeout=60, custom_headers=None, raw=False, **operation_config):
| api_version = '3.0'
url = '/Nodes/{nodeName}/$/GetPartitions/{partitionId}/$/GetReplicas/{replicaId}/$/GetDetail'
path_format_arguments = {'nodeName': self._serialize.url('node_name', node_name, 'str'), 'partitionId': self._serialize.url('partition_id', partition_id, 'str', skip_quote=True), 'replicaId': se... |
'Restarts a service replica of a persisted service running on a node.
Restarts a service replica of a persisted service running on a node.
Warning - There are no safety checks performed when this API is used.
Incorrect use of this API can lead to availability loss for stateful
services.
:param node_name: The name of th... | def restart_replica(self, node_name, partition_id, replica_id, timeout=60, custom_headers=None, raw=False, **operation_config):
| api_version = '3.0'
url = '/Nodes/{nodeName}/$/GetPartitions/{partitionId}/$/GetReplicas/{replicaId}/$/Restart'
path_format_arguments = {'nodeName': self._serialize.url('node_name', node_name, 'str'), 'partitionId': self._serialize.url('partition_id', partition_id, 'str', skip_quote=True), 'replicaId': self... |
'Removes a service replica running on a node.
This API simulates a Service Fabric replica failure by removing a
replica from a Service Fabric cluster. The removal closes the
replica, transitions the replica to the role None, and then removes
all of the state information of the replica from the cluster. This
API tests t... | def remove_replica(self, node_name, partition_id, replica_id, force_remove=None, timeout=60, custom_headers=None, raw=False, **operation_config):
| api_version = '3.0'
url = '/Nodes/{nodeName}/$/GetPartitions/{partitionId}/$/GetReplicas/{replicaId}/$/Delete'
path_format_arguments = {'nodeName': self._serialize.url('node_name', node_name, 'str'), 'partitionId': self._serialize.url('partition_id', partition_id, 'str', skip_quote=True), 'replicaId': self.... |
'Gets the list of service packages deployed on a Service Fabric node.
Returns the information about the service packages deployed on a
Service Fabric node for the given application.
:param node_name: The name of the node.
:type node_name: str
:param application_id: The identity of the application. This is
typically the... | def get_deployed_service_package_info_list(self, node_name, application_id, timeout=60, custom_headers=None, raw=False, **operation_config):
| api_version = '3.0'
url = '/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetServicePackages'
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... |
'Gets the list of service packages deployed on a Service Fabric node
matching exactly the specified name.
Returns the information about the service packages deployed on a
Service Fabric node for the given application. These results are of
service packages whose name match exactly the service package name
specified as t... | def get_deployed_service_package_info_list_by_name(self, node_name, application_id, service_package_name, timeout=60, custom_headers=None, raw=False, **operation_config):
| api_version = '3.0'
url = '/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetServicePackages/{servicePackageName}'
path_format_arguments = {'nodeName': self._serialize.url('node_name', node_name, 'str'), 'applicationId': self._serialize.url('application_id', application_id, 'str', skip_quote=True), '... |
'Gets the information about health of an service package for a specific
application deployed for a Service Fabric node and application.
Gets the information about health of service package for a specific
application deployed on a Service Fabric node. Use
EventsHealthStateFilter to optionally filter for the collection o... | def get_deployed_service_package_health(self, node_name, application_id, service_package_name, events_health_state_filter=0, timeout=60, custom_headers=None, raw=False, **operation_config):
| api_version = '3.0'
url = '/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetServicePackages/{servicePackageName}/$/GetHealth'
path_format_arguments = {'nodeName': self._serialize.url('node_name', node_name, 'str'), 'applicationId': self._serialize.url('application_id', application_id, 'str', skip_qu... |
'Gets the information about health of service package for a specific
application deployed on a Service Fabric node using the specified
policy.
Gets the information about health of an service package for a specific
application deployed on a Service Fabric node. using the specified
policy. Use EventsHealthStateFilter to ... | def get_deployed_service_package_health_using_policy(self, node_name, application_id, service_package_name, events_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}/$/GetServicePackages/{servicePackageName}/$/GetHealth'
path_format_arguments = {'nodeName': self._serialize.url('node_name', node_name, 'str'), 'applicationId': self._serialize.url('application_id', application_id, 'str', skip_qu... |
'Sends a health report on the Service Fabric deployed service package.
Reports health state of the service package 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 Fab... | def report_deployed_service_package_health(self, node_name, application_id, service_package_name, health_information, timeout=60, custom_headers=None, raw=False, **operation_config):
| api_version = '3.0'
url = '/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetServicePackages/{servicePackageName}/$/ReportHealth'
path_format_arguments = {'nodeName': self._serialize.url('node_name', node_name, 'str'), 'applicationId': self._serialize.url('application_id', application_id, 'str', skip... |
'Downloads packages associated with specified service manifest to image
cache on specified node.
Downloads packages associated with specified service manifest to image
cache on specified node.
:param node_name: The name of the node.
:type node_name: str
:param deploy_service_package_to_node_description: Describes
infor... | def deployed_service_package_to_node(self, node_name, deploy_service_package_to_node_description, timeout=60, custom_headers=None, raw=False, **operation_config):
| api_version = '3.0'
url = '/Nodes/{nodeName}/$/DeployServicePackage'
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(... |
'Gets the list of code packages deployed on a Service Fabric node.
Gets the list of code packages deployed on a Service Fabric node for
the given application.
: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 appli... | def get_deployed_code_package_info_list(self, node_name, application_id, service_manifest_name=None, code_package_name=None, timeout=60, custom_headers=None, raw=False, **operation_config):
| api_version = '3.0'
url = '/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetCodePackages'
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... |
'Restarts a code package deployed on a Service Fabric node in a
cluster.
Restarts a code package deployed on a Service Fabric node in a
cluster. This aborts the code package process, which will restart all
the user service replicas hosted in that process.
:param node_name: The name of the node.
:type node_name: str
:pa... | def restart_deployed_code_package(self, node_name, application_id, restart_deployed_code_package_description, timeout=60, custom_headers=None, raw=False, **operation_config):
| api_version = '3.0'
url = '/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetCodePackages/$/Restart'
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.... |
'Creates a Service Fabric compose application.
Creates a Service Fabric compose application.
:param create_compose_application_description: Describes the compose
application that needs to be created.
:type create_compose_application_description:
:class:`CreateComposeApplicationDescription
<azure.servicefabric.models.Cr... | def create_compose_application(self, create_compose_application_description, timeout=60, custom_headers=None, raw=False, **operation_config):
| api_version = '4.0-preview'
url = '/ComposeDeployments/$/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=... |
'Gets information about a Service Fabric compose application.
Returns the status of compose 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, status and other details about the applicat... | def get_compose_application_status(self, application_id, timeout=60, custom_headers=None, raw=False, **operation_config):
| api_version = '4.0-preview'
url = '/ComposeDeployments/{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... |
'Gets the list of compose applications created in the Service Fabric
cluster.
Gets the status about the compose applications that were created or in
the process of being created in the Service Fabric cluster. The
response includes the name, status and other details about the
compose application. If the applications do ... | def get_compose_application_status_list(self, continuation_token=None, max_results=0, timeout=60, custom_headers=None, raw=False, **operation_config):
| api_version = '4.0-preview'
url = '/ComposeDeployments'
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', co... |
'Deletes an existing Service Fabric compose application from cluster.
Deletes an existing Service Fabric compose application. An application
must be created before it can be deleted.
:param application_id: The identity of the application. This is
typically the full name of the application without the \'fabric:\' URI
sc... | def remove_compose_application(self, application_id, timeout=60, custom_headers=None, raw=False, **operation_config):
| api_version = '4.0-preview'
url = '/ComposeDeployments/{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_parame... |
'Starts Chaos in the cluster.
If Chaos is not already running in the cluster, it starts Chaos with
the passed in Chaos parameters.
If Chaos is already running when this call is made, the call fails
with the error code FABRIC_E_CHAOS_ALREADY_RUNNING.
Please refer to the article [Induce controlled Chaos in Service Fabric... | def start_chaos(self, chaos_parameters, timeout=60, custom_headers=None, raw=False, **operation_config):
| api_version = '3.0'
url = '/Tools/Chaos/$/Start'
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, mini... |
'Stops Chaos in the cluster if it is already running, otherwise it does
nothing.
Stops Chaos from scheduling further faults; but, the in-flight faults
are not affected.
: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... | def stop_chaos(self, timeout=60, custom_headers=None, raw=False, **operation_config):
| api_version = '3.0'
url = '/Tools/Chaos/$/Stop'
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, minim... |
'Gets the next segment of the Chaos report based on the passed-in
continuation token or the passed-in time-range.
You can either specify the ContinuationTokenOptionalQueryParam to get
the next segment of the Chaos report or you can specify the time-range
through StartTimeUtcOptionalQueryParam and
EndTimeUtcOptionalQuer... | def get_chaos_report(self, continuation_token=None, start_time_utc=None, end_time_utc=None, timeout=60, custom_headers=None, raw=False, **operation_config):
| api_version = '3.0'
url = '/Tools/Chaos/$/Report'
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', continua... |
'Uploads contents of the file to the image store.
Uploads contents of the file to the image store. Use this API if the
file is small enough to upload again if the connection fails. The
file\'s data needs to be added to the request body. The contents will
be uploaded to the specified path.
:param content_path: Relative ... | def upload_file(self, content_path, timeout=60, custom_headers=None, raw=False, **operation_config):
| api_version = '3.0'
url = '/ImageStore/{contentPath}'
path_format_arguments = {'contentPath': self._serialize.url('content_path', content_path, 'str')}
url = self._client.format_url(url, **path_format_arguments)
query_parameters = {}
query_parameters['api-version'] = self._serialize.query('api_v... |
'Gets the image store content information.
Returns the information about the image store content at the specified
contentPath relative to the root of the image store.
:param content_path: Relative path to file or folder in the image
store from its root.
:type content_path: str
:param timeout: The server timeout for per... | def get_image_store_content(self, content_path, timeout=60, custom_headers=None, raw=False, **operation_config):
| api_version = '3.0'
url = '/ImageStore/{contentPath}'
path_format_arguments = {'contentPath': self._serialize.url('content_path', content_path, 'str')}
url = self._client.format_url(url, **path_format_arguments)
query_parameters = {}
query_parameters['api-version'] = self._serialize.query('api_v... |
'Deletes existing image store content.
Deletes existing image store content being found within the given
image store relative path. This can be used to delete uploaded
application packages once they are provisioned.
:param content_path: Relative path to file or folder in the image
store from its root.
:type content_pat... | def delete_image_store_content(self, content_path, timeout=60, custom_headers=None, raw=False, **operation_config):
| api_version = '3.0'
url = '/ImageStore/{contentPath}'
path_format_arguments = {'contentPath': self._serialize.url('content_path', content_path, 'str')}
url = self._client.format_url(url, **path_format_arguments)
query_parameters = {}
query_parameters['api-version'] = self._serialize.query('api_v... |
'Gets the content information at the root of the image store.
Returns the information about the image store content at the root of
the image store.
: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 requested operation ... | def get_image_store_root_content(self, timeout=60, custom_headers=None, raw=False, **operation_config):
| api_version = '3.0'
url = '/ImageStore'
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=1)
... |
'Copies image store content internally.
Copies the image store content from the source image store relative
path to the destination image store relative path.
:param image_store_copy_description: Describes the copy description
for the image store.
:type image_store_copy_description: :class:`ImageStoreCopyDescription
<a... | def copy_image_store_content(self, image_store_copy_description, timeout=60, custom_headers=None, raw=False, **operation_config):
| api_version = '3.0'
url = '/ImageStore/$/Copy'
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, minimu... |
'Invokes an administrative command on the given Infrastructure Service
instance.
For clusters that have one or more instances of the Infrastructure
Service configured,
this API provides a way to send infrastructure-specific commands to a
particular
instance of the Infrastructure Service.
Available commands and their co... | def invoke_infrastructure_command(self, command, service_id=None, timeout=60, custom_headers=None, raw=False, callback=None, **operation_config):
| api_version = '3.0'
url = '/$/InvokeInfrastructureCommand'
query_parameters = {}
query_parameters['api-version'] = self._serialize.query('api_version', api_version, 'str')
query_parameters['Command'] = self._serialize.query('command', command, 'str')
if (service_id is not None):
query_pa... |
'Invokes a read-only query on the given infrastructure service
instance.
For clusters that have one or more instances of the Infrastructure
Service configured,
this API provides a way to send infrastructure-specific queries to a
particular
instance of the Infrastructure Service.
Available commands and their correspondi... | def invoke_infrastructure_query(self, command, service_id=None, timeout=60, custom_headers=None, raw=False, callback=None, **operation_config):
| api_version = '3.0'
url = '/$/InvokeInfrastructureQuery'
query_parameters = {}
query_parameters['api-version'] = self._serialize.query('api_version', api_version, 'str')
query_parameters['Command'] = self._serialize.query('command', command, 'str')
if (service_id is not None):
query_para... |
'This API will induce data loss for the specified partition. It will
trigger a call to the OnDataLossAsync API of the partition.
This API will induce data loss for the specified partition. It will
trigger a call to the OnDataLoss API of the partition.
Actual data loss will depend on the specified DataLossMode
PartialDa... | def start_data_loss(self, service_id, partition_id, operation_id, data_loss_mode, timeout=60, custom_headers=None, raw=False, **operation_config):
| api_version = '3.0'
url = '/Faults/Services/{serviceId}/$/GetPartitions/{partitionId}/$/StartDataLoss'
path_format_arguments = {'serviceId': self._serialize.url('service_id', service_id, 'str', skip_quote=True), 'partitionId': self._serialize.url('partition_id', partition_id, 'str', skip_quote=True)}
ur... |
'Gets the progress of a partition data loss operation started using the
StartDataLoss API.
Gets the progress of a data loss operation started with StartDataLoss,
using the OperationId.
:param service_id: The identity of the service. This is typically the
full name of the service without the \'fabric:\' URI scheme.
:typ... | def get_data_loss_progress(self, service_id, partition_id, operation_id, timeout=60, custom_headers=None, raw=False, **operation_config):
| api_version = '3.0'
url = '/Faults/Services/{serviceId}/$/GetPartitions/{partitionId}/$/GetDataLossProgress'
path_format_arguments = {'serviceId': self._serialize.url('service_id', service_id, 'str', skip_quote=True), 'partitionId': self._serialize.url('partition_id', partition_id, 'str', skip_quote=True)}
... |
'Induces quorum loss for a given stateful service partition.
Induces quorum loss for a given stateful service partition. This API
is useful for a temporary quorum loss situation on your service.
Call the GetQuorumLossProgress API with the same OperationId to return
information on the operation started with this API.
T... | def start_quorum_loss(self, service_id, partition_id, operation_id, quorum_loss_mode, quorum_loss_duration, timeout=60, custom_headers=None, raw=False, **operation_config):
| api_version = '3.0'
url = '/Faults/Services/{serviceId}/$/GetPartitions/{partitionId}/$/StartQuorumLoss'
path_format_arguments = {'serviceId': self._serialize.url('service_id', service_id, 'str', skip_quote=True), 'partitionId': self._serialize.url('partition_id', partition_id, 'str', skip_quote=True)}
... |
'Gets the progress of a quorum loss operation on a partition started
using the StartQuorumLoss API.
Gets the progress of a quorum loss operation started with
StartQuorumLoss, using the provided OperationId.
:param service_id: The identity of the service. This is typically the
full name of the service without the \'fabr... | def get_quorum_loss_progress(self, service_id, partition_id, operation_id, timeout=60, custom_headers=None, raw=False, **operation_config):
| api_version = '3.0'
url = '/Faults/Services/{serviceId}/$/GetPartitions/{partitionId}/$/GetQuorumLossProgress'
path_format_arguments = {'serviceId': self._serialize.url('service_id', service_id, 'str', skip_quote=True), 'partitionId': self._serialize.url('partition_id', partition_id, 'str', skip_quote=True)... |
'This API will restart some or all replicas or instances of the
specified partition.
This API is useful for testing failover.
If used to target a stateless service partition, RestartPartitionMode
must be AllReplicasOrInstances.
Call the GetPartitionRestartProgress API using the same OperationId to
get the progress.
:pa... | def start_partition_restart(self, service_id, partition_id, operation_id, restart_partition_mode, timeout=60, custom_headers=None, raw=False, **operation_config):
| api_version = '3.0'
url = '/Faults/Services/{serviceId}/$/GetPartitions/{partitionId}/$/StartRestart'
path_format_arguments = {'serviceId': self._serialize.url('service_id', service_id, 'str', skip_quote=True), 'partitionId': self._serialize.url('partition_id', partition_id, 'str', skip_quote=True)}
url... |
'Gets the progress of a PartitionRestart operation started using
StartPartitionRestart.
Gets the progress of a PartitionRestart started with
StartPartitionRestart using the provided OperationId.
:param service_id: The identity of the service. This is typically the
full name of the service without the \'fabric:\' URI sc... | def get_partition_restart_progress(self, service_id, partition_id, operation_id, timeout=60, custom_headers=None, raw=False, **operation_config):
| api_version = '3.0'
url = '/Faults/Services/{serviceId}/$/GetPartitions/{partitionId}/$/GetRestartProgress'
path_format_arguments = {'serviceId': self._serialize.url('service_id', service_id, 'str', skip_quote=True), 'partitionId': self._serialize.url('partition_id', partition_id, 'str', skip_quote=True)}
... |
'Starts or stops a cluster node.
Starts or stops a cluster node. A cluster node is a process, not the
OS instance itself. To start a node, pass in "Start" for the
NodeTransitionType parameter.
To stop a node, pass in "Stop" for the NodeTransitionType parameter.
This API starts the operation - when the API returns the... | def start_node_transition(self, node_name, operation_id, node_transition_type, node_instance_id, stop_duration_in_seconds, timeout=60, custom_headers=None, raw=False, **operation_config):
| api_version = '3.0'
url = '/Faults/Nodes/{nodeName}/$/StartTransition/'
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.que... |
'Gets the progress of an operation started using StartNodeTransition.
Gets the progress of an operation started with StartNodeTransition
using the provided OperationId.
:param node_name: The name of the node.
:type node_name: str
:param operation_id: A GUID that identifies a call of this API. This
is passed into the c... | def get_node_transition_progress(self, node_name, operation_id, timeout=60, custom_headers=None, raw=False, **operation_config):
| api_version = '3.0'
url = '/Faults/Nodes/{nodeName}/$/GetTransitionProgress'
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._serializ... |
'Gets a list of user-induced fault operations filtered by provided
input.
Gets the a list of user-induced fault operations filtered by provided
input.
:param type_filter: Used to filter on OperationType for user-induced
operations.
65535 - select all
1 - select PartitionDataLoss.
2 - select PartitionQuorumLoss.... | def get_fault_operation_list(self, type_filter=65535, state_filter=65535, timeout=60, custom_headers=None, raw=False, **operation_config):
| api_version = '3.0'
url = '/Faults/'
query_parameters = {}
query_parameters['api-version'] = self._serialize.query('api_version', api_version, 'str')
query_parameters['TypeFilter'] = self._serialize.query('type_filter', type_filter, 'int')
query_parameters['StateFilter'] = self._serialize.query(... |
'Cancels a user-induced fault operation.
The following is a list of APIs that start fault operations that may
be cancelled using CancelOperation -
- StartDataLoss
- StartQuorumLoss
- StartPartitionRestart
- StartNodeTransition
If force is false, then the specified user-induced operation will be
gracefully stopped and c... | def cancel_operation(self, operation_id, force=False, timeout=60, custom_headers=None, raw=False, **operation_config):
| api_version = '3.0'
url = '/Faults/$/Cancel'
query_parameters = {}
query_parameters['api-version'] = self._serialize.query('api_version', api_version, 'str')
query_parameters['OperationId'] = self._serialize.query('operation_id', operation_id, 'str')
query_parameters['Force'] = self._serialize.q... |
'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 publishing user.
Gets publishing user.
: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:`User <azure.... | def get_publishing_user(self, custom_headers=None, raw=False, **operation_config):
| api_version = '2016-03-01'
url = '/providers/Microsoft.Web/publishingUsers/web'
query_parameters = {}
query_parameters['api-version'] = self._serialize.query('api_version', api_version, 'str')
header_parameters = {}
header_parameters['Content-Type'] = 'application/json; charset=utf-8'
if ... |
'Updates publishing user.
Updates publishing user.
:param user_details: Details of publishing user
:type user_details: :class:`User <azure.mgmt.web.models.User>`
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param ... | def update_publishing_user(self, user_details, custom_headers=None, raw=False, **operation_config):
| api_version = '2016-03-01'
url = '/providers/Microsoft.Web/publishingUsers/web'
query_parameters = {}
query_parameters['api-version'] = self._serialize.query('api_version', api_version, 'str')
header_parameters = {}
header_parameters['Content-Type'] = 'application/json; charset=utf-8'
if ... |
'Gets the source controls available for Azure websites.
Gets the source controls available for Azure websites.
: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
ove... | def list_source_controls(self, custom_headers=None, raw=False, **operation_config):
| api_version = '2016-03-01'
def internal_paging(next_link=None, raw=False):
if (not next_link):
url = '/providers/Microsoft.Web/sourcecontrols'
query_parameters = {}
query_parameters['api-version'] = self._serialize.query('api_version', api_version, 'str')
else... |
'Updates source control token.
Updates source control token.
:param source_control_type: Type of source control
:type source_control_type: str
:param request_message: Source control token information
:type request_message: :class:`SourceControl
<azure.mgmt.web.models.SourceControl>`
:param dict custom_headers: headers ... | def update_source_control(self, source_control_type, request_message, custom_headers=None, raw=False, **operation_config):
| api_version = '2016-03-01'
url = '/providers/Microsoft.Web/sourcecontrols/{sourceControlType}'
path_format_arguments = {'sourceControlType': self._serialize.url('source_control_type', source_control_type, 'str')}
url = self._client.format_url(url, **path_format_arguments)
query_parameters = {}
q... |
'Check if a resource name is available.
Check if a resource name is available.
:param name: Resource name to verify.
:type name: str
:param type: Resource type used for verification. Possible values
include: \'Site\', \'Slot\', \'HostingEnvironment\'
:type type: str or :class:`CheckNameResourceTypes
<azure.mgmt.web.mod... | def check_name_availability(self, name, type, is_fqdn=None, custom_headers=None, raw=False, **operation_config):
| request = models.ResourceNameAvailabilityRequest(name=name, type=type, is_fqdn=is_fqdn)
api_version = '2016-03-01'
url = '/subscriptions/{subscriptionId}/providers/Microsoft.Web/checknameavailability'
path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.conf... |
'Get a list of available geographical regions.
Get a list of available geographical regions.
:param sku: Name of SKU used to filter the regions. Possible values
include: \'Free\', \'Shared\', \'Basic\', \'Standard\', \'Premium\', \'Dynamic\',
\'Isolated\'
:type sku: str or :class:`SkuName <azure.mgmt.web.models.SkuName... | def list_geo_regions(self, sku=None, linux_workers_enabled=None, custom_headers=None, raw=False, **operation_config):
| api_version = '2016-03-01'
def internal_paging(next_link=None, raw=False):
if (not next_link):
url = '/subscriptions/{subscriptionId}/providers/Microsoft.Web/geoRegions'
path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subs... |
'List all premier add-on offers.
List all premier add-on offers.
: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: ... | def list_premier_add_on_offers(self, custom_headers=None, raw=False, **operation_config):
| api_version = '2016-03-01'
def internal_paging(next_link=None, raw=False):
if (not next_link):
url = '/subscriptions/{subscriptionId}/providers/Microsoft.Web/premieraddonoffers'
path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.con... |
'List all SKUs.
List all SKUs.
: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:`SkuInfos <azure.mgmt.web.m... | def list_skus(self, custom_headers=None, raw=False, **operation_config):
| api_version = '2016-03-01'
url = '/subscriptions/{subscriptionId}/providers/Microsoft.Web/skus'
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_paramet... |
'Move resources between resource groups.
Move resources between resource groups.
:param resource_group_name: Name of the resource group to which the
resource belongs.
:type resource_group_name: str
:param target_resource_group:
:type target_resource_group: str
:param resources:
:type resources: list of str
:param dict ... | def move(self, resource_group_name, target_resource_group=None, resources=None, custom_headers=None, raw=False, **operation_config):
| move_resource_envelope = models.CsmMoveResourceEnvelope(target_resource_group=target_resource_group, resources=resources)
api_version = '2016-03-01'
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/moveResources'
path_format_arguments = {'resourceGroupName': self._serialize.url(... |
'Validate if a resource can be created.
Validate if a resource can be created.
:param resource_group_name: Name of the resource group to which the
resource belongs.
:type resource_group_name: str
:param validate_request: Request with the resources to validate.
:type validate_request: :class:`ValidateRequest
<azure.mgmt... | def validate(self, resource_group_name, validate_request, custom_headers=None, raw=False, **operation_config):
| api_version = '2016-03-01'
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/validate'
path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', max_length=90, min_length=1, pattern='^[-\\w\\._\\(\\)]+... |
'Validate whether a resource can be moved.
Validate whether a resource can be moved.
:param resource_group_name: Name of the resource group to which the
resource belongs.
:type resource_group_name: str
:param target_resource_group:
:type target_resource_group: str
:param resources:
:type resources: list of str
:param d... | def validate_move(self, resource_group_name, target_resource_group=None, resources=None, custom_headers=None, raw=False, **operation_config):
| move_resource_envelope = models.CsmMoveResourceEnvelope(target_resource_group=target_resource_group, resources=resources)
api_version = '2016-03-01'
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/validateMoveResources'
path_format_arguments = {'resourceGroupName': self._serial... |
'Get all deleted apps for a subscription.
Get all deleted apps for 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:optionsforoper... | 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.Web/deletedSites'
path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str')}
... |
'Gets deleted web apps in subscription.
Gets deleted web apps in subscription.
:param resource_group_name: Name of the resource group to which the
resource belongs.
: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... | 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.Web/deletedSites'
path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_... |
'Get all top-level domains supported for registration.
Get all top-level domains supported for registration.
: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
overr... | 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.DomainRegistration/topLevelDomains'
path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id... |
'Get details of a top-level domain.
Get details of a top-level domain.
:param name: Name of the top-level domain.
:type 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:`Operatio... | def get(self, name, custom_headers=None, raw=False, **operation_config):
| url = '/subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/topLevelDomains/{name}'
path_format_arguments = {'name': self._serialize.url('name', name, 'str'), 'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str')}
url = self._client.format... |
'Gets all legal agreements that user needs to accept before purchasing a
domain.
Gets all legal agreements that user needs to accept before purchasing a
domain.
:param name: Name of the top-level domain.
:type name: str
:param include_privacy: If <code>true</code>, then the list of
agreements will include agreements fo... | def list_agreements(self, name, include_privacy=None, for_transfer=None, custom_headers=None, raw=False, **operation_config):
| agreement_option = models.TopLevelDomainAgreementOption(include_privacy=include_privacy, for_transfer=for_transfer)
def internal_paging(next_link=None, raw=False):
if (not next_link):
url = '/subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/topLevelDomains/{name}/listAgr... |
'Get all App Service Environments for a subscription.
Get all App Service Environments for 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
overrid... | 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.Web/hostingEnvironments'
path_format_arguments = {'subscriptionId': self._serialize.url('self.config.subscription_id', self.config.subscription_id, 'str')}
... |
'Get all App Service Environments in a resource group.
Get all App Service Environments in a resource group.
:param resource_group_name: Name of the resource group to which the
resource belongs.
:type resource_group_name: str
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns... | 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.Web/hostingEnvironments'
path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource... |
'Get the properties of an App Service Environment.
Get the properties of an App Service Environment.
:param resource_group_name: Name of the resource group to which the
resource belongs.
:type resource_group_name: str
:param name: Name of the App Service Environment.
:type name: str
:param dict custom_headers: headers ... | def get(self, resource_group_name, name, custom_headers=None, raw=False, **operation_config):
| url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}'
path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', max_length=90, min_length=1, pattern='^[-\\w\\._\\(\\)]+[^\\.]$'), 'n... |
'Create or update an App Service Environment.
Create or update an App Service Environment.
:param resource_group_name: Name of the resource group to which the
resource belongs.
:type resource_group_name: str
:param name: Name of the App Service Environment.
:type name: str
:param hosting_environment_envelope: Configura... | def create_or_update(self, resource_group_name, name, hosting_environment_envelope, custom_headers=None, raw=False, **operation_config):
| url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}'
path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', max_length=90, min_length=1, pattern='^[-\\w\\._\\(\\)]+[^\\.]$'), 'n... |
'Delete an App Service Environment.
Delete an App Service Environment.
:param resource_group_name: Name of the resource group to which the
resource belongs.
:type resource_group_name: str
:param name: Name of the App Service Environment.
:type name: str
:param force_delete: Specify <code>true</code> to force the deleti... | def delete(self, resource_group_name, name, force_delete=None, custom_headers=None, raw=False, **operation_config):
| url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}'
path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', max_length=90, min_length=1, pattern='^[-\\w\\._\\(\\)]+[^\\.]$'), 'n... |
'Get the used, available, and total worker capacity an App Service
Environment.
Get the used, available, and total worker capacity an App Service
Environment.
:param resource_group_name: Name of the resource group to which the
resource belongs.
:type resource_group_name: str
:param name: Name of the App Service Environ... | def list_capacities(self, resource_group_name, 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.Web/hostingEnvironments/{name}/capacities/compute'
path_format_arguments = {'resourceGroupName': self._serialize.url('reso... |
'Get IP addresses assigned to an App Service Environment.
Get IP addresses assigned to an App Service Environment.
:param resource_group_name: Name of the resource group to which the
resource belongs.
:type resource_group_name: str
:param name: Name of the App Service Environment.
:type name: str
:param dict custom_hea... | def list_vips(self, resource_group_name, name, custom_headers=None, raw=False, **operation_config):
| url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/capacities/virtualip'
path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', max_length=90, min_length=1, pattern='^[-\\w\\._... |
'Get diagnostic information for an App Service Environment.
Get diagnostic information for an App Service Environment.
:param resource_group_name: Name of the resource group to which the
resource belongs.
:type resource_group_name: str
:param name: Name of the App Service Environment.
:type name: str
:param dict custom... | def list_diagnostics(self, resource_group_name, name, custom_headers=None, raw=False, **operation_config):
| url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/diagnostics'
path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', max_length=90, min_length=1, pattern='^[-\\w\\._\\(\\)]+[... |
'Get a diagnostics item for an App Service Environment.
Get a diagnostics item for an App Service Environment.
:param resource_group_name: Name of the resource group to which the
resource belongs.
:type resource_group_name: str
:param name: Name of the App Service Environment.
:type name: str
:param diagnostics_name: N... | def get_diagnostics_item(self, resource_group_name, name, diagnostics_name, custom_headers=None, raw=False, **operation_config):
| url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/diagnostics/{diagnosticsName}'
path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', max_length=90, min_length=1, pattern='^... |
'Get global metric definitions of an App Service Environment.
Get global metric definitions of an App Service Environment.
:param resource_group_name: Name of the resource group to which the
resource belongs.
:type resource_group_name: str
:param name: Name of the App Service Environment.
:type name: str
:param dict cu... | def list_metric_definitions(self, resource_group_name, name, custom_headers=None, raw=False, **operation_config):
| url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/metricdefinitions'
path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', max_length=90, min_length=1, pattern='^[-\\w\\._\\(... |
'Get global metrics of an App Service Environment.
Get global metrics of an App Service Environment.
:param resource_group_name: Name of the resource group to which the
resource belongs.
:type resource_group_name: str
:param name: Name of the App Service Environment.
:type name: str
:param details: Specify <code>true</... | def list_metrics(self, resource_group_name, name, details=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.Web/hostingEnvironments/{name}/metrics'
path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_... |
'Get all multi-role pools.
Get all multi-role pools.
:param resource_group_name: Name of the resource group to which the
resource belongs.
:type resource_group_name: str
:param name: Name of the App Service Environment.
:type name: str
:param dict custom_headers: headers that will be added to the request
:param bool ra... | def list_multi_role_pools(self, resource_group_name, 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.Web/hostingEnvironments/{name}/multiRolePools'
path_format_arguments = {'resourceGroupName': self._serialize.url('resource... |
'Get properties of a multi-role pool.
Get properties of a multi-role pool.
:param resource_group_name: Name of the resource group to which the
resource belongs.
:type resource_group_name: str
:param name: Name of the App Service Environment.
:type name: str
:param dict custom_headers: headers that will be added to the ... | def get_multi_role_pool(self, resource_group_name, name, custom_headers=None, raw=False, **operation_config):
| url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/multiRolePools/default'
path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', max_length=90, min_length=1, pattern='^[-\\w\\... |
'Create or update a multi-role pool.
Create or update a multi-role pool.
:param resource_group_name: Name of the resource group to which the
resource belongs.
:type resource_group_name: str
:param name: Name of the App Service Environment.
:type name: str
:param multi_role_pool_envelope: Properties of the multi-role po... | def create_or_update_multi_role_pool(self, resource_group_name, name, multi_role_pool_envelope, custom_headers=None, raw=False, **operation_config):
| url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/multiRolePools/default'
path_format_arguments = {'resourceGroupName': self._serialize.url('resource_group_name', resource_group_name, 'str', max_length=90, min_length=1, pattern='^[-\\w\\... |
'Get metric definitions for a specific instance of a multi-role pool of
an App Service Environment.
Get metric definitions for a specific instance of a multi-role pool of
an App Service Environment.
:param resource_group_name: Name of the resource group to which the
resource belongs.
:type resource_group_name: str
:par... | def list_multi_role_pool_instance_metric_definitions(self, resource_group_name, name, instance, 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.Web/hostingEnvironments/{name}/multiRolePools/default/instances/{instance}/metricdefinitions'
path_format_arguments = {'re... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.