Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(
self, credentials, subscription_id, base_url=None):
self.config = RedisManagementClientConfiguration(credentials, subscription_id, base_url)
super(RedisManagementClient, self).__init__(self.config.credentials, self.config)
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self.api_version = '2018-03-01'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)
self.operations = Operations(
self._client, self.config, self._serialize, self._deserialize)
self.redis = RedisOperations(
self._client, self.config, self._serialize, self._deserialize)
self.firewall_rules = FirewallRulesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.patch_schedules = PatchSchedulesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.linked_server = LinkedServerOperations(
self._client, self.config, self._serialize, self._deserialize)
def __init__(
self, credentials, subscription_id, base_url=None):
self.config = RedisManagementClientConfiguration(credentials, subscription_id, base_url)
super(RedisManagementClient, self).__init__(self.config.credentials, self.config)
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self.api_version = '2018-03-01'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)
self.operations = Operations(
self._client, self.config, self._serialize, self._deserialize)
self.redis = RedisOperations(
self._client, self.config, self._serialize, self._deserialize)
self.firewall_rules = FirewallRulesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.patch_schedules = PatchSchedulesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.linked_server = LinkedServerOperations(
def __init__(
self, credentials, subscription_id, base_url=None):
if credentials is None:
raise ValueError("Parameter 'credentials' must not be None.")
if subscription_id is None:
raise ValueError("Parameter 'subscription_id' must not be None.")
if not base_url:
base_url = 'https://management.azure.com'
super(RedisManagementClientConfiguration, self).__init__(base_url)
self.add_user_agent('azure-mgmt-redis/{}'.format(VERSION))
self.add_user_agent('Azure-SDK-For-Python')
self.credentials = credentials
self.subscription_id = subscription_id
def __init__(self, location, sku, tags=None, redis_version=None, redis_configuration=None, enable_non_ssl_port=None, tenant_settings=None, shard_count=None, subnet_id=None, static_ip=None, provisioning_state=None, host_name=None, port=None, ssl_port=None, access_keys=None):
super(RedisResourceWithAccessKey, self).__init__(location=location, tags=tags)
self.redis_version = redis_version
self.sku = sku
self.redis_configuration = redis_configuration
self.enable_non_ssl_port = enable_non_ssl_port
self.tenant_settings = tenant_settings
self.shard_count = shard_count
self.subnet_id = subnet_id
self.static_ip = static_ip
self.provisioning_state = provisioning_state
self.host_name = host_name
self.port = port
self.ssl_port = ssl_port
self.access_keys = access_keys
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from .resource import Resource
class RedisResourceWithAccessKey(Resource):
"""A redis item in CreateOrUpdate Operation response.
Variables are only populated by the server, and will be ignored when
sending a request.
:ivar id: Resource Id
:vartype id: str
:ivar name: Resource name
:vartype name: str
:ivar type: Resource type
:vartype type: str
:param location: Resource location
:type location: str
:param tags: Resource tags
:type tags: dict
:param redis_version: RedisVersion parameter has been deprecated. As
def __init__(
self, credentials, subscription_id, base_url=None):
self.config = RedisManagementClientConfiguration(credentials, subscription_id, base_url)
super(RedisManagementClient, self).__init__(self.config.credentials, self.config)
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self.api_version = '2018-03-01'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)
self.operations = Operations(
self._client, self.config, self._serialize, self._deserialize)
self.redis = RedisOperations(
self._client, self.config, self._serialize, self._deserialize)
self.firewall_rules = FirewallRulesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.patch_schedules = PatchSchedulesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.linked_server = LinkedServerOperations(
self._client, self.config, self._serialize, self._deserialize)
super(RedisManagementClient, self).__init__(self.config.credentials, self.config)
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self.api_version = '2018-03-01'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)
self.operations = Operations(
self._client, self.config, self._serialize, self._deserialize)
self.redis = RedisOperations(
self._client, self.config, self._serialize, self._deserialize)
self.firewall_rules = FirewallRulesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.patch_schedules = PatchSchedulesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.linked_server = LinkedServerOperations(
self._client, self.config, self._serialize, self._deserialize)
def __init__(
self, credentials, subscription_id, base_url=None):
self.config = RedisManagementClientConfiguration(credentials, subscription_id, base_url)
super(RedisManagementClient, self).__init__(self.config.credentials, self.config)
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self.api_version = '2018-03-01'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)
self.operations = Operations(
self._client, self.config, self._serialize, self._deserialize)
self.redis = RedisOperations(
self._client, self.config, self._serialize, self._deserialize)
self.firewall_rules = FirewallRulesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.patch_schedules = PatchSchedulesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.linked_server = LinkedServerOperations(
self._client, self.config, self._serialize, self._deserialize)
self.config = RedisManagementClientConfiguration(credentials, subscription_id, base_url)
super(RedisManagementClient, self).__init__(self.config.credentials, self.config)
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self.api_version = '2018-03-01'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)
self.operations = Operations(
self._client, self.config, self._serialize, self._deserialize)
self.redis = RedisOperations(
self._client, self.config, self._serialize, self._deserialize)
self.firewall_rules = FirewallRulesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.patch_schedules = PatchSchedulesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.linked_server = LinkedServerOperations(
self._client, self.config, self._serialize, self._deserialize)
def __init__(
self, credentials, subscription_id, base_url=None):
self.config = RedisManagementClientConfiguration(credentials, subscription_id, base_url)
super(RedisManagementClient, self).__init__(self.config.credentials, self.config)
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self.api_version = '2018-03-01'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)
self.operations = Operations(
self._client, self.config, self._serialize, self._deserialize)
self.redis = RedisOperations(
self._client, self.config, self._serialize, self._deserialize)
self.firewall_rules = FirewallRulesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.patch_schedules = PatchSchedulesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.linked_server = LinkedServerOperations(
self._client, self.config, self._serialize, self._deserialize)