Release 03042019 (#2285)
* Config Changes for releasing: MariaDB, NetApp, CDN * Code changes for azure_sdk * Code changes for mariadb * Code changes for netapp * Code changes for CDN
This commit is contained in:
Родитель
20ffbf2af2
Коммит
b43e3b87a3
2
Gemfile
2
Gemfile
|
@ -50,11 +50,13 @@ gem 'azure_mgmt_logic', path: 'management/azure_mgmt_logic'
|
|||
gem 'azure_mgmt_machine_learning', path: 'management/azure_mgmt_machine_learning'
|
||||
gem 'azure_mgmt_machine_learning_services', path: 'management/azure_mgmt_machine_learning_services'
|
||||
gem 'azure_mgmt_managed_applications', path: 'management/azure_mgmt_managed_applications'
|
||||
gem 'azure_mgmt_mariadb', path: 'management/azure_mgmt_mariadb'
|
||||
gem 'azure_mgmt_marketplace_ordering', path: 'management/azure_mgmt_marketplace_ordering'
|
||||
gem 'azure_mgmt_media_services', path: 'management/azure_mgmt_media_services'
|
||||
gem 'azure_mgmt_mixedreality', path: 'management/azure_mgmt_mixedreality'
|
||||
gem 'azure_mgmt_monitor', path: 'management/azure_mgmt_monitor'
|
||||
gem 'azure_mgmt_msi', path: 'management/azure_mgmt_msi'
|
||||
gem 'azure_mgmt_netapp', path: 'management/azure_mgmt_netapp'
|
||||
gem 'azure_mgmt_network', path: 'management/azure_mgmt_network'
|
||||
gem 'azure_mgmt_notification_hubs', path: 'management/azure_mgmt_notification_hubs'
|
||||
gem 'azure_mgmt_operational_insights', path: 'management/azure_mgmt_operational_insights'
|
||||
|
|
|
@ -3,5 +3,5 @@
|
|||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
|
||||
module Azure
|
||||
VERSION = '0.22.3'
|
||||
VERSION = '0.22.4'
|
||||
end
|
||||
|
|
|
@ -41,11 +41,13 @@ require 'latest/modules/logic_profile_module'
|
|||
require 'latest/modules/machinelearning_profile_module'
|
||||
require 'latest/modules/machinelearningservices_profile_module'
|
||||
require 'latest/modules/managedapplications_profile_module'
|
||||
require 'latest/modules/mariadb_profile_module'
|
||||
require 'latest/modules/marketplaceordering_profile_module'
|
||||
require 'latest/modules/mediaservices_profile_module'
|
||||
require 'latest/modules/mixedreality_profile_module'
|
||||
require 'latest/modules/monitor_profile_module'
|
||||
require 'latest/modules/managedserviceidentity_profile_module'
|
||||
require 'latest/modules/netapp_profile_module'
|
||||
require 'latest/modules/network_profile_module'
|
||||
require 'latest/modules/notificationhubs_profile_module'
|
||||
require 'latest/modules/operationalinsights_profile_module'
|
||||
|
@ -102,7 +104,7 @@ module Azure::Profiles::Latest
|
|||
class Client
|
||||
include MsRestAzure::Common::Configurable
|
||||
|
||||
attr_reader :analysis_services, :api_management, :authorization, :automation, :batch, :billing, :cdn, :cognitive_services, :commerce, :compute, :consumption, :container_instance, :container_registry, :container_service, :customer_insights, :data_lake_analytics, :data_lake_store, :data_migration, :dev_spaces, :dev_test_labs, :dns, :edge_gateway, :event_grid, :event_hub, :features, :hdinsight, :graph_rbac, :iot_central, :iot_hub, :key_vault, :kusto, :labservices, :links, :locks, :logic, :machine_learning, :machine_learning_services, :managed_applications, :marketplace_ordering, :media_services, :mixed_reality, :monitor, :managed_service_identity, :network, :notification_hubs, :operational_insights, :policy, :policy_insights, :power_bi_embedded, :private_dns, :recovery_services, :recovery_services_backup, :recovery_services_site_recovery, :redis, :relay, :resources, :resources_management, :scheduler, :search, :security, :service_bus, :service_fabric, :signalr, :sql, :sqlvirtualmachine, :stor_simple8000_series, :storage, :stream_analytics, :subscriptions, :traffic_manager, :web, :autosuggest, :customimagesearch, :computer_vision, :content_moderator, :custom_search, :customvisiontraining, :customvisionprediction, :entity_search, :face, :image_search, :local_search, :luis_runtime, :luis_authoring, :news_search, :qnamaker, :spell_check, :text_analytics, :video_search, :web_search, :visual_search
|
||||
attr_reader :analysis_services, :api_management, :authorization, :automation, :batch, :billing, :cdn, :cognitive_services, :commerce, :compute, :consumption, :container_instance, :container_registry, :container_service, :customer_insights, :data_lake_analytics, :data_lake_store, :data_migration, :dev_spaces, :dev_test_labs, :dns, :edge_gateway, :event_grid, :event_hub, :features, :hdinsight, :graph_rbac, :iot_central, :iot_hub, :key_vault, :kusto, :labservices, :links, :locks, :logic, :machine_learning, :machine_learning_services, :managed_applications, :maria_db, :marketplace_ordering, :media_services, :mixed_reality, :monitor, :managed_service_identity, :net_app, :network, :notification_hubs, :operational_insights, :policy, :policy_insights, :power_bi_embedded, :private_dns, :recovery_services, :recovery_services_backup, :recovery_services_site_recovery, :redis, :relay, :resources, :resources_management, :scheduler, :search, :security, :service_bus, :service_fabric, :signalr, :sql, :sqlvirtualmachine, :stor_simple8000_series, :storage, :stream_analytics, :subscriptions, :traffic_manager, :web, :autosuggest, :customimagesearch, :computer_vision, :content_moderator, :custom_search, :customvisiontraining, :customvisionprediction, :entity_search, :face, :image_search, :local_search, :luis_runtime, :luis_authoring, :news_search, :qnamaker, :spell_check, :text_analytics, :video_search, :web_search, :visual_search
|
||||
|
||||
#
|
||||
# Initializes a new instance of the Client class.
|
||||
|
@ -172,11 +174,13 @@ module Azure::Profiles::Latest
|
|||
@machine_learning = MachineLearningAdapter.new(self, base_url, sdk_options)
|
||||
@machine_learning_services = MachineLearningServicesAdapter.new(self, base_url, sdk_options)
|
||||
@managed_applications = ManagedApplicationsAdapter.new(self, base_url, sdk_options)
|
||||
@maria_db = MariaDBAdapter.new(self, base_url, sdk_options)
|
||||
@marketplace_ordering = MarketplaceOrderingAdapter.new(self, base_url, sdk_options)
|
||||
@media_services = MediaServicesAdapter.new(self, base_url, sdk_options)
|
||||
@mixed_reality = MixedRealityAdapter.new(self, base_url, sdk_options)
|
||||
@monitor = MonitorAdapter.new(self, base_url, sdk_options)
|
||||
@managed_service_identity = ManagedServiceIdentityAdapter.new(self, base_url, sdk_options)
|
||||
@net_app = NetAppAdapter.new(self, base_url, sdk_options)
|
||||
@network = NetworkAdapter.new(self, base_url, sdk_options)
|
||||
@notification_hubs = NotificationHubsAdapter.new(self, base_url, sdk_options)
|
||||
@operational_insights = OperationalInsightsAdapter.new(self, base_url, sdk_options)
|
||||
|
@ -532,6 +536,14 @@ module Azure::Profiles::Latest
|
|||
end
|
||||
end
|
||||
|
||||
class MariaDBAdapter
|
||||
attr_accessor :mgmt
|
||||
|
||||
def initialize(context, base_url, options)
|
||||
@mgmt = Azure::Profiles::Latest::MariaDB::Mgmt::MariaDBManagementClass.new(context, base_url, options)
|
||||
end
|
||||
end
|
||||
|
||||
class MarketplaceOrderingAdapter
|
||||
attr_accessor :mgmt
|
||||
|
||||
|
@ -572,6 +584,14 @@ module Azure::Profiles::Latest
|
|||
end
|
||||
end
|
||||
|
||||
class NetAppAdapter
|
||||
attr_accessor :mgmt
|
||||
|
||||
def initialize(context, base_url, options)
|
||||
@mgmt = Azure::Profiles::Latest::NetApp::Mgmt::NetAppManagementClass.new(context, base_url, options)
|
||||
end
|
||||
end
|
||||
|
||||
class NetworkAdapter
|
||||
attr_accessor :mgmt
|
||||
|
||||
|
|
|
@ -20,40 +20,43 @@ module Azure::Profiles::Latest
|
|||
Sku = Azure::CDN::Mgmt::V2017_10_12::Models::Sku
|
||||
OriginListResult = Azure::CDN::Mgmt::V2017_10_12::Models::OriginListResult
|
||||
ProfileListResult = Azure::CDN::Mgmt::V2017_10_12::Models::ProfileListResult
|
||||
PurgeParameters = Azure::CDN::Mgmt::V2017_10_12::Models::PurgeParameters
|
||||
SsoUri = Azure::CDN::Mgmt::V2017_10_12::Models::SsoUri
|
||||
LoadParameters = Azure::CDN::Mgmt::V2017_10_12::Models::LoadParameters
|
||||
DeepCreatedOrigin = Azure::CDN::Mgmt::V2017_10_12::Models::DeepCreatedOrigin
|
||||
CidrIpAddress = Azure::CDN::Mgmt::V2017_10_12::Models::CidrIpAddress
|
||||
EndpointListResult = Azure::CDN::Mgmt::V2017_10_12::Models::EndpointListResult
|
||||
OperationsListResult = Azure::CDN::Mgmt::V2017_10_12::Models::OperationsListResult
|
||||
DeliveryRuleAction = Azure::CDN::Mgmt::V2017_10_12::Models::DeliveryRuleAction
|
||||
ProfileUpdateParameters = Azure::CDN::Mgmt::V2017_10_12::Models::ProfileUpdateParameters
|
||||
DeliveryRule = Azure::CDN::Mgmt::V2017_10_12::Models::DeliveryRule
|
||||
EndpointUpdateParameters = Azure::CDN::Mgmt::V2017_10_12::Models::EndpointUpdateParameters
|
||||
CustomDomainParameters = Azure::CDN::Mgmt::V2017_10_12::Models::CustomDomainParameters
|
||||
EdgenodeResult = Azure::CDN::Mgmt::V2017_10_12::Models::EdgenodeResult
|
||||
CustomDomainListResult = Azure::CDN::Mgmt::V2017_10_12::Models::CustomDomainListResult
|
||||
DeepCreatedOrigin = Azure::CDN::Mgmt::V2017_10_12::Models::DeepCreatedOrigin
|
||||
CustomDomainHttpsParameters = Azure::CDN::Mgmt::V2017_10_12::Models::CustomDomainHttpsParameters
|
||||
EndpointListResult = Azure::CDN::Mgmt::V2017_10_12::Models::EndpointListResult
|
||||
CdnCertificateSourceParameters = Azure::CDN::Mgmt::V2017_10_12::Models::CdnCertificateSourceParameters
|
||||
DeliveryRuleAction = Azure::CDN::Mgmt::V2017_10_12::Models::DeliveryRuleAction
|
||||
ErrorResponse = Azure::CDN::Mgmt::V2017_10_12::Models::ErrorResponse
|
||||
DeliveryRule = Azure::CDN::Mgmt::V2017_10_12::Models::DeliveryRule
|
||||
KeyVaultCertificateSourceParameters = Azure::CDN::Mgmt::V2017_10_12::Models::KeyVaultCertificateSourceParameters
|
||||
EndpointUpdateParameters = Azure::CDN::Mgmt::V2017_10_12::Models::EndpointUpdateParameters
|
||||
UrlPathConditionParameters = Azure::CDN::Mgmt::V2017_10_12::Models::UrlPathConditionParameters
|
||||
EdgenodeResult = Azure::CDN::Mgmt::V2017_10_12::Models::EdgenodeResult
|
||||
UrlFileExtensionConditionParameters = Azure::CDN::Mgmt::V2017_10_12::Models::UrlFileExtensionConditionParameters
|
||||
CustomDomainListResult = Azure::CDN::Mgmt::V2017_10_12::Models::CustomDomainListResult
|
||||
CacheExpirationActionParameters = Azure::CDN::Mgmt::V2017_10_12::Models::CacheExpirationActionParameters
|
||||
ValidateCustomDomainInput = Azure::CDN::Mgmt::V2017_10_12::Models::ValidateCustomDomainInput
|
||||
IpAddressGroup = Azure::CDN::Mgmt::V2017_10_12::Models::IpAddressGroup
|
||||
PurgeParameters = Azure::CDN::Mgmt::V2017_10_12::Models::PurgeParameters
|
||||
ValidateCustomDomainOutput = Azure::CDN::Mgmt::V2017_10_12::Models::ValidateCustomDomainOutput
|
||||
Resource = Azure::CDN::Mgmt::V2017_10_12::Models::Resource
|
||||
CheckNameAvailabilityInput = Azure::CDN::Mgmt::V2017_10_12::Models::CheckNameAvailabilityInput
|
||||
Operation = Azure::CDN::Mgmt::V2017_10_12::Models::Operation
|
||||
ProfileUpdateParameters = Azure::CDN::Mgmt::V2017_10_12::Models::ProfileUpdateParameters
|
||||
LoadParameters = Azure::CDN::Mgmt::V2017_10_12::Models::LoadParameters
|
||||
IpAddressGroup = Azure::CDN::Mgmt::V2017_10_12::Models::IpAddressGroup
|
||||
OperationDisplay = Azure::CDN::Mgmt::V2017_10_12::Models::OperationDisplay
|
||||
DeliveryRuleCondition = Azure::CDN::Mgmt::V2017_10_12::Models::DeliveryRuleCondition
|
||||
CheckNameAvailabilityInput = Azure::CDN::Mgmt::V2017_10_12::Models::CheckNameAvailabilityInput
|
||||
CidrIpAddress = Azure::CDN::Mgmt::V2017_10_12::Models::CidrIpAddress
|
||||
CheckNameAvailabilityOutput = Azure::CDN::Mgmt::V2017_10_12::Models::CheckNameAvailabilityOutput
|
||||
UrlPathConditionParameters = Azure::CDN::Mgmt::V2017_10_12::Models::UrlPathConditionParameters
|
||||
SupportedOptimizationTypesListResult = Azure::CDN::Mgmt::V2017_10_12::Models::SupportedOptimizationTypesListResult
|
||||
ValidateProbeInput = Azure::CDN::Mgmt::V2017_10_12::Models::ValidateProbeInput
|
||||
CacheExpirationActionParameters = Azure::CDN::Mgmt::V2017_10_12::Models::CacheExpirationActionParameters
|
||||
EndpointPropertiesUpdateParametersDeliveryPolicy = Azure::CDN::Mgmt::V2017_10_12::Models::EndpointPropertiesUpdateParametersDeliveryPolicy
|
||||
ValidateProbeOutput = Azure::CDN::Mgmt::V2017_10_12::Models::ValidateProbeOutput
|
||||
GeoFilter = Azure::CDN::Mgmt::V2017_10_12::Models::GeoFilter
|
||||
ResourceUsage = Azure::CDN::Mgmt::V2017_10_12::Models::ResourceUsage
|
||||
UrlFileExtensionConditionParameters = Azure::CDN::Mgmt::V2017_10_12::Models::UrlFileExtensionConditionParameters
|
||||
OperationsListResult = Azure::CDN::Mgmt::V2017_10_12::Models::OperationsListResult
|
||||
ResourceUsageListResult = Azure::CDN::Mgmt::V2017_10_12::Models::ResourceUsageListResult
|
||||
EndpointPropertiesUpdateParametersDeliveryPolicy = Azure::CDN::Mgmt::V2017_10_12::Models::EndpointPropertiesUpdateParametersDeliveryPolicy
|
||||
OperationDisplay = Azure::CDN::Mgmt::V2017_10_12::Models::OperationDisplay
|
||||
SupportedOptimizationTypesListResult = Azure::CDN::Mgmt::V2017_10_12::Models::SupportedOptimizationTypesListResult
|
||||
Operation = Azure::CDN::Mgmt::V2017_10_12::Models::Operation
|
||||
Profile = Azure::CDN::Mgmt::V2017_10_12::Models::Profile
|
||||
Endpoint = Azure::CDN::Mgmt::V2017_10_12::Models::Endpoint
|
||||
DeliveryRuleUrlPathCondition = Azure::CDN::Mgmt::V2017_10_12::Models::DeliveryRuleUrlPathCondition
|
||||
|
@ -62,6 +65,8 @@ module Azure::Profiles::Latest
|
|||
Origin = Azure::CDN::Mgmt::V2017_10_12::Models::Origin
|
||||
ProxyResource = Azure::CDN::Mgmt::V2017_10_12::Models::ProxyResource
|
||||
CustomDomain = Azure::CDN::Mgmt::V2017_10_12::Models::CustomDomain
|
||||
CdnManagedHttpsParameters = Azure::CDN::Mgmt::V2017_10_12::Models::CdnManagedHttpsParameters
|
||||
UserManagedHttpsParameters = Azure::CDN::Mgmt::V2017_10_12::Models::UserManagedHttpsParameters
|
||||
EdgeNode = Azure::CDN::Mgmt::V2017_10_12::Models::EdgeNode
|
||||
TrackedResource = Azure::CDN::Mgmt::V2017_10_12::Models::TrackedResource
|
||||
SkuName = Azure::CDN::Mgmt::V2017_10_12::Models::SkuName
|
||||
|
@ -74,6 +79,8 @@ module Azure::Profiles::Latest
|
|||
CustomDomainResourceState = Azure::CDN::Mgmt::V2017_10_12::Models::CustomDomainResourceState
|
||||
CustomHttpsProvisioningState = Azure::CDN::Mgmt::V2017_10_12::Models::CustomHttpsProvisioningState
|
||||
CustomHttpsProvisioningSubstate = Azure::CDN::Mgmt::V2017_10_12::Models::CustomHttpsProvisioningSubstate
|
||||
ProtocolType = Azure::CDN::Mgmt::V2017_10_12::Models::ProtocolType
|
||||
CertificateType = Azure::CDN::Mgmt::V2017_10_12::Models::CertificateType
|
||||
ResourceType = Azure::CDN::Mgmt::V2017_10_12::Models::ResourceType
|
||||
end
|
||||
|
||||
|
@ -125,56 +132,59 @@ module Azure::Profiles::Latest
|
|||
def profile_list_result
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::ProfileListResult
|
||||
end
|
||||
def purge_parameters
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::PurgeParameters
|
||||
end
|
||||
def sso_uri
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::SsoUri
|
||||
end
|
||||
def load_parameters
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::LoadParameters
|
||||
end
|
||||
def deep_created_origin
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::DeepCreatedOrigin
|
||||
end
|
||||
def cidr_ip_address
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::CidrIpAddress
|
||||
end
|
||||
def endpoint_list_result
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::EndpointListResult
|
||||
end
|
||||
def operations_list_result
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::OperationsListResult
|
||||
end
|
||||
def delivery_rule_action
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::DeliveryRuleAction
|
||||
end
|
||||
def profile_update_parameters
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::ProfileUpdateParameters
|
||||
end
|
||||
def delivery_rule
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::DeliveryRule
|
||||
end
|
||||
def endpoint_update_parameters
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::EndpointUpdateParameters
|
||||
end
|
||||
def custom_domain_parameters
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::CustomDomainParameters
|
||||
end
|
||||
def edgenode_result
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::EdgenodeResult
|
||||
def deep_created_origin
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::DeepCreatedOrigin
|
||||
end
|
||||
def custom_domain_list_result
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::CustomDomainListResult
|
||||
def custom_domain_https_parameters
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::CustomDomainHttpsParameters
|
||||
end
|
||||
def endpoint_list_result
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::EndpointListResult
|
||||
end
|
||||
def cdn_certificate_source_parameters
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::CdnCertificateSourceParameters
|
||||
end
|
||||
def delivery_rule_action
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::DeliveryRuleAction
|
||||
end
|
||||
def error_response
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::ErrorResponse
|
||||
end
|
||||
def delivery_rule
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::DeliveryRule
|
||||
end
|
||||
def key_vault_certificate_source_parameters
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::KeyVaultCertificateSourceParameters
|
||||
end
|
||||
def endpoint_update_parameters
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::EndpointUpdateParameters
|
||||
end
|
||||
def url_path_condition_parameters
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::UrlPathConditionParameters
|
||||
end
|
||||
def edgenode_result
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::EdgenodeResult
|
||||
end
|
||||
def url_file_extension_condition_parameters
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::UrlFileExtensionConditionParameters
|
||||
end
|
||||
def custom_domain_list_result
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::CustomDomainListResult
|
||||
end
|
||||
def cache_expiration_action_parameters
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::CacheExpirationActionParameters
|
||||
end
|
||||
def validate_custom_domain_input
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::ValidateCustomDomainInput
|
||||
end
|
||||
def ip_address_group
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::IpAddressGroup
|
||||
def purge_parameters
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::PurgeParameters
|
||||
end
|
||||
def validate_custom_domain_output
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::ValidateCustomDomainOutput
|
||||
|
@ -182,23 +192,41 @@ module Azure::Profiles::Latest
|
|||
def resource
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::Resource
|
||||
end
|
||||
def check_name_availability_input
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::CheckNameAvailabilityInput
|
||||
def operation
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::Operation
|
||||
end
|
||||
def profile_update_parameters
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::ProfileUpdateParameters
|
||||
end
|
||||
def load_parameters
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::LoadParameters
|
||||
end
|
||||
def ip_address_group
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::IpAddressGroup
|
||||
end
|
||||
def operation_display
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::OperationDisplay
|
||||
end
|
||||
def delivery_rule_condition
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::DeliveryRuleCondition
|
||||
end
|
||||
def check_name_availability_input
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::CheckNameAvailabilityInput
|
||||
end
|
||||
def cidr_ip_address
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::CidrIpAddress
|
||||
end
|
||||
def check_name_availability_output
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::CheckNameAvailabilityOutput
|
||||
end
|
||||
def url_path_condition_parameters
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::UrlPathConditionParameters
|
||||
def supported_optimization_types_list_result
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::SupportedOptimizationTypesListResult
|
||||
end
|
||||
def validate_probe_input
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::ValidateProbeInput
|
||||
end
|
||||
def cache_expiration_action_parameters
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::CacheExpirationActionParameters
|
||||
def endpoint_properties_update_parameters_delivery_policy
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::EndpointPropertiesUpdateParametersDeliveryPolicy
|
||||
end
|
||||
def validate_probe_output
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::ValidateProbeOutput
|
||||
|
@ -209,24 +237,12 @@ module Azure::Profiles::Latest
|
|||
def resource_usage
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::ResourceUsage
|
||||
end
|
||||
def url_file_extension_condition_parameters
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::UrlFileExtensionConditionParameters
|
||||
def operations_list_result
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::OperationsListResult
|
||||
end
|
||||
def resource_usage_list_result
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::ResourceUsageListResult
|
||||
end
|
||||
def endpoint_properties_update_parameters_delivery_policy
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::EndpointPropertiesUpdateParametersDeliveryPolicy
|
||||
end
|
||||
def operation_display
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::OperationDisplay
|
||||
end
|
||||
def supported_optimization_types_list_result
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::SupportedOptimizationTypesListResult
|
||||
end
|
||||
def operation
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::Operation
|
||||
end
|
||||
def profile
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::Profile
|
||||
end
|
||||
|
@ -251,6 +267,12 @@ module Azure::Profiles::Latest
|
|||
def custom_domain
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::CustomDomain
|
||||
end
|
||||
def cdn_managed_https_parameters
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::CdnManagedHttpsParameters
|
||||
end
|
||||
def user_managed_https_parameters
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::UserManagedHttpsParameters
|
||||
end
|
||||
def edge_node
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::EdgeNode
|
||||
end
|
||||
|
@ -287,6 +309,12 @@ module Azure::Profiles::Latest
|
|||
def custom_https_provisioning_substate
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::CustomHttpsProvisioningSubstate
|
||||
end
|
||||
def protocol_type
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::ProtocolType
|
||||
end
|
||||
def certificate_type
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::CertificateType
|
||||
end
|
||||
def resource_type
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::ResourceType
|
||||
end
|
||||
|
|
|
@ -0,0 +1,229 @@
|
|||
# encoding: utf-8
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
|
||||
require 'azure_mgmt_mariadb'
|
||||
|
||||
module Azure::Profiles::Latest
|
||||
module MariaDB
|
||||
module Mgmt
|
||||
Servers = Azure::MariaDB::Mgmt::V2018_06_01::Servers
|
||||
Replicas = Azure::MariaDB::Mgmt::V2018_06_01::Replicas
|
||||
FirewallRules = Azure::MariaDB::Mgmt::V2018_06_01::FirewallRules
|
||||
VirtualNetworkRules = Azure::MariaDB::Mgmt::V2018_06_01::VirtualNetworkRules
|
||||
Databases = Azure::MariaDB::Mgmt::V2018_06_01::Databases
|
||||
Configurations = Azure::MariaDB::Mgmt::V2018_06_01::Configurations
|
||||
LogFiles = Azure::MariaDB::Mgmt::V2018_06_01::LogFiles
|
||||
LocationBasedPerformanceTier = Azure::MariaDB::Mgmt::V2018_06_01::LocationBasedPerformanceTier
|
||||
CheckNameAvailability = Azure::MariaDB::Mgmt::V2018_06_01::CheckNameAvailability
|
||||
ServerSecurityAlertPolicies = Azure::MariaDB::Mgmt::V2018_06_01::ServerSecurityAlertPolicies
|
||||
Operations = Azure::MariaDB::Mgmt::V2018_06_01::Operations
|
||||
|
||||
module Models
|
||||
VirtualNetworkRuleListResult = Azure::MariaDB::Mgmt::V2018_06_01::Models::VirtualNetworkRuleListResult
|
||||
FirewallRuleListResult = Azure::MariaDB::Mgmt::V2018_06_01::Models::FirewallRuleListResult
|
||||
NameAvailabilityRequest = Azure::MariaDB::Mgmt::V2018_06_01::Models::NameAvailabilityRequest
|
||||
StorageProfile = Azure::MariaDB::Mgmt::V2018_06_01::Models::StorageProfile
|
||||
ProxyResource = Azure::MariaDB::Mgmt::V2018_06_01::Models::ProxyResource
|
||||
NameAvailability = Azure::MariaDB::Mgmt::V2018_06_01::Models::NameAvailability
|
||||
PerformanceTierListResult = Azure::MariaDB::Mgmt::V2018_06_01::Models::PerformanceTierListResult
|
||||
Operation = Azure::MariaDB::Mgmt::V2018_06_01::Models::Operation
|
||||
PerformanceTierServiceLevelObjectives = Azure::MariaDB::Mgmt::V2018_06_01::Models::PerformanceTierServiceLevelObjectives
|
||||
ServerPropertiesForCreate = Azure::MariaDB::Mgmt::V2018_06_01::Models::ServerPropertiesForCreate
|
||||
LogFileListResult = Azure::MariaDB::Mgmt::V2018_06_01::Models::LogFileListResult
|
||||
OperationListResult = Azure::MariaDB::Mgmt::V2018_06_01::Models::OperationListResult
|
||||
ServerUpdateParameters = Azure::MariaDB::Mgmt::V2018_06_01::Models::ServerUpdateParameters
|
||||
PerformanceTierProperties = Azure::MariaDB::Mgmt::V2018_06_01::Models::PerformanceTierProperties
|
||||
DatabaseListResult = Azure::MariaDB::Mgmt::V2018_06_01::Models::DatabaseListResult
|
||||
ServerForCreate = Azure::MariaDB::Mgmt::V2018_06_01::Models::ServerForCreate
|
||||
Sku = Azure::MariaDB::Mgmt::V2018_06_01::Models::Sku
|
||||
ConfigurationListResult = Azure::MariaDB::Mgmt::V2018_06_01::Models::ConfigurationListResult
|
||||
ServerListResult = Azure::MariaDB::Mgmt::V2018_06_01::Models::ServerListResult
|
||||
OperationDisplay = Azure::MariaDB::Mgmt::V2018_06_01::Models::OperationDisplay
|
||||
TrackedResource = Azure::MariaDB::Mgmt::V2018_06_01::Models::TrackedResource
|
||||
ServerPropertiesForDefaultCreate = Azure::MariaDB::Mgmt::V2018_06_01::Models::ServerPropertiesForDefaultCreate
|
||||
ServerPropertiesForRestore = Azure::MariaDB::Mgmt::V2018_06_01::Models::ServerPropertiesForRestore
|
||||
ServerPropertiesForGeoRestore = Azure::MariaDB::Mgmt::V2018_06_01::Models::ServerPropertiesForGeoRestore
|
||||
ServerPropertiesForReplica = Azure::MariaDB::Mgmt::V2018_06_01::Models::ServerPropertiesForReplica
|
||||
Server = Azure::MariaDB::Mgmt::V2018_06_01::Models::Server
|
||||
FirewallRule = Azure::MariaDB::Mgmt::V2018_06_01::Models::FirewallRule
|
||||
VirtualNetworkRule = Azure::MariaDB::Mgmt::V2018_06_01::Models::VirtualNetworkRule
|
||||
Database = Azure::MariaDB::Mgmt::V2018_06_01::Models::Database
|
||||
Configuration = Azure::MariaDB::Mgmt::V2018_06_01::Models::Configuration
|
||||
LogFile = Azure::MariaDB::Mgmt::V2018_06_01::Models::LogFile
|
||||
ServerSecurityAlertPolicy = Azure::MariaDB::Mgmt::V2018_06_01::Models::ServerSecurityAlertPolicy
|
||||
ServerVersion = Azure::MariaDB::Mgmt::V2018_06_01::Models::ServerVersion
|
||||
SslEnforcementEnum = Azure::MariaDB::Mgmt::V2018_06_01::Models::SslEnforcementEnum
|
||||
ServerState = Azure::MariaDB::Mgmt::V2018_06_01::Models::ServerState
|
||||
GeoRedundantBackup = Azure::MariaDB::Mgmt::V2018_06_01::Models::GeoRedundantBackup
|
||||
SkuTier = Azure::MariaDB::Mgmt::V2018_06_01::Models::SkuTier
|
||||
VirtualNetworkRuleState = Azure::MariaDB::Mgmt::V2018_06_01::Models::VirtualNetworkRuleState
|
||||
OperationOrigin = Azure::MariaDB::Mgmt::V2018_06_01::Models::OperationOrigin
|
||||
ServerSecurityAlertPolicyState = Azure::MariaDB::Mgmt::V2018_06_01::Models::ServerSecurityAlertPolicyState
|
||||
end
|
||||
|
||||
class MariaDBManagementClass
|
||||
attr_reader :servers, :replicas, :firewall_rules, :virtual_network_rules, :databases, :configurations, :log_files, :location_based_performance_tier, :check_name_availability, :server_security_alert_policies, :operations, :configurable, :base_url, :options, :model_classes
|
||||
|
||||
def initialize(configurable, base_url=nil, options=nil)
|
||||
@configurable, @base_url, @options = configurable, base_url, options
|
||||
|
||||
@client_0 = Azure::MariaDB::Mgmt::V2018_06_01::MariaDBManagementClient.new(configurable.credentials, base_url, options)
|
||||
if(@client_0.respond_to?(:subscription_id))
|
||||
@client_0.subscription_id = configurable.subscription_id
|
||||
end
|
||||
add_telemetry(@client_0)
|
||||
@servers = @client_0.servers
|
||||
@replicas = @client_0.replicas
|
||||
@firewall_rules = @client_0.firewall_rules
|
||||
@virtual_network_rules = @client_0.virtual_network_rules
|
||||
@databases = @client_0.databases
|
||||
@configurations = @client_0.configurations
|
||||
@log_files = @client_0.log_files
|
||||
@location_based_performance_tier = @client_0.location_based_performance_tier
|
||||
@check_name_availability = @client_0.check_name_availability
|
||||
@server_security_alert_policies = @client_0.server_security_alert_policies
|
||||
@operations = @client_0.operations
|
||||
|
||||
@model_classes = ModelClasses.new
|
||||
end
|
||||
|
||||
def add_telemetry(client)
|
||||
profile_information = "Profiles/azure_sdk/#{Azure::VERSION}/Latest/MariaDB/Mgmt"
|
||||
client.add_user_agent_information(profile_information)
|
||||
end
|
||||
|
||||
def method_missing(method, *args)
|
||||
if @client_0.respond_to?method
|
||||
@client_0.send(method, *args)
|
||||
else
|
||||
super
|
||||
end
|
||||
end
|
||||
|
||||
class ModelClasses
|
||||
def virtual_network_rule_list_result
|
||||
Azure::MariaDB::Mgmt::V2018_06_01::Models::VirtualNetworkRuleListResult
|
||||
end
|
||||
def firewall_rule_list_result
|
||||
Azure::MariaDB::Mgmt::V2018_06_01::Models::FirewallRuleListResult
|
||||
end
|
||||
def name_availability_request
|
||||
Azure::MariaDB::Mgmt::V2018_06_01::Models::NameAvailabilityRequest
|
||||
end
|
||||
def storage_profile
|
||||
Azure::MariaDB::Mgmt::V2018_06_01::Models::StorageProfile
|
||||
end
|
||||
def proxy_resource
|
||||
Azure::MariaDB::Mgmt::V2018_06_01::Models::ProxyResource
|
||||
end
|
||||
def name_availability
|
||||
Azure::MariaDB::Mgmt::V2018_06_01::Models::NameAvailability
|
||||
end
|
||||
def performance_tier_list_result
|
||||
Azure::MariaDB::Mgmt::V2018_06_01::Models::PerformanceTierListResult
|
||||
end
|
||||
def operation
|
||||
Azure::MariaDB::Mgmt::V2018_06_01::Models::Operation
|
||||
end
|
||||
def performance_tier_service_level_objectives
|
||||
Azure::MariaDB::Mgmt::V2018_06_01::Models::PerformanceTierServiceLevelObjectives
|
||||
end
|
||||
def server_properties_for_create
|
||||
Azure::MariaDB::Mgmt::V2018_06_01::Models::ServerPropertiesForCreate
|
||||
end
|
||||
def log_file_list_result
|
||||
Azure::MariaDB::Mgmt::V2018_06_01::Models::LogFileListResult
|
||||
end
|
||||
def operation_list_result
|
||||
Azure::MariaDB::Mgmt::V2018_06_01::Models::OperationListResult
|
||||
end
|
||||
def server_update_parameters
|
||||
Azure::MariaDB::Mgmt::V2018_06_01::Models::ServerUpdateParameters
|
||||
end
|
||||
def performance_tier_properties
|
||||
Azure::MariaDB::Mgmt::V2018_06_01::Models::PerformanceTierProperties
|
||||
end
|
||||
def database_list_result
|
||||
Azure::MariaDB::Mgmt::V2018_06_01::Models::DatabaseListResult
|
||||
end
|
||||
def server_for_create
|
||||
Azure::MariaDB::Mgmt::V2018_06_01::Models::ServerForCreate
|
||||
end
|
||||
def sku
|
||||
Azure::MariaDB::Mgmt::V2018_06_01::Models::Sku
|
||||
end
|
||||
def configuration_list_result
|
||||
Azure::MariaDB::Mgmt::V2018_06_01::Models::ConfigurationListResult
|
||||
end
|
||||
def server_list_result
|
||||
Azure::MariaDB::Mgmt::V2018_06_01::Models::ServerListResult
|
||||
end
|
||||
def operation_display
|
||||
Azure::MariaDB::Mgmt::V2018_06_01::Models::OperationDisplay
|
||||
end
|
||||
def tracked_resource
|
||||
Azure::MariaDB::Mgmt::V2018_06_01::Models::TrackedResource
|
||||
end
|
||||
def server_properties_for_default_create
|
||||
Azure::MariaDB::Mgmt::V2018_06_01::Models::ServerPropertiesForDefaultCreate
|
||||
end
|
||||
def server_properties_for_restore
|
||||
Azure::MariaDB::Mgmt::V2018_06_01::Models::ServerPropertiesForRestore
|
||||
end
|
||||
def server_properties_for_geo_restore
|
||||
Azure::MariaDB::Mgmt::V2018_06_01::Models::ServerPropertiesForGeoRestore
|
||||
end
|
||||
def server_properties_for_replica
|
||||
Azure::MariaDB::Mgmt::V2018_06_01::Models::ServerPropertiesForReplica
|
||||
end
|
||||
def server
|
||||
Azure::MariaDB::Mgmt::V2018_06_01::Models::Server
|
||||
end
|
||||
def firewall_rule
|
||||
Azure::MariaDB::Mgmt::V2018_06_01::Models::FirewallRule
|
||||
end
|
||||
def virtual_network_rule
|
||||
Azure::MariaDB::Mgmt::V2018_06_01::Models::VirtualNetworkRule
|
||||
end
|
||||
def database
|
||||
Azure::MariaDB::Mgmt::V2018_06_01::Models::Database
|
||||
end
|
||||
def configuration
|
||||
Azure::MariaDB::Mgmt::V2018_06_01::Models::Configuration
|
||||
end
|
||||
def log_file
|
||||
Azure::MariaDB::Mgmt::V2018_06_01::Models::LogFile
|
||||
end
|
||||
def server_security_alert_policy
|
||||
Azure::MariaDB::Mgmt::V2018_06_01::Models::ServerSecurityAlertPolicy
|
||||
end
|
||||
def server_version
|
||||
Azure::MariaDB::Mgmt::V2018_06_01::Models::ServerVersion
|
||||
end
|
||||
def ssl_enforcement_enum
|
||||
Azure::MariaDB::Mgmt::V2018_06_01::Models::SslEnforcementEnum
|
||||
end
|
||||
def server_state
|
||||
Azure::MariaDB::Mgmt::V2018_06_01::Models::ServerState
|
||||
end
|
||||
def geo_redundant_backup
|
||||
Azure::MariaDB::Mgmt::V2018_06_01::Models::GeoRedundantBackup
|
||||
end
|
||||
def sku_tier
|
||||
Azure::MariaDB::Mgmt::V2018_06_01::Models::SkuTier
|
||||
end
|
||||
def virtual_network_rule_state
|
||||
Azure::MariaDB::Mgmt::V2018_06_01::Models::VirtualNetworkRuleState
|
||||
end
|
||||
def operation_origin
|
||||
Azure::MariaDB::Mgmt::V2018_06_01::Models::OperationOrigin
|
||||
end
|
||||
def server_security_alert_policy_state
|
||||
Azure::MariaDB::Mgmt::V2018_06_01::Models::ServerSecurityAlertPolicyState
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,147 @@
|
|||
# encoding: utf-8
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
|
||||
require 'azure_mgmt_netapp'
|
||||
|
||||
module Azure::Profiles::Latest
|
||||
module NetApp
|
||||
module Mgmt
|
||||
Operations = Azure::NetApp::Mgmt::V2017_08_15_preview::Operations
|
||||
Accounts = Azure::NetApp::Mgmt::V2017_08_15_preview::Accounts
|
||||
Pools = Azure::NetApp::Mgmt::V2017_08_15_preview::Pools
|
||||
Volumes = Azure::NetApp::Mgmt::V2017_08_15_preview::Volumes
|
||||
MountTargets = Azure::NetApp::Mgmt::V2017_08_15_preview::MountTargets
|
||||
Snapshots = Azure::NetApp::Mgmt::V2017_08_15_preview::Snapshots
|
||||
|
||||
module Models
|
||||
CapacityPoolList = Azure::NetApp::Mgmt::V2017_08_15_preview::Models::CapacityPoolList
|
||||
CapacityPoolPatch = Azure::NetApp::Mgmt::V2017_08_15_preview::Models::CapacityPoolPatch
|
||||
Dimension = Azure::NetApp::Mgmt::V2017_08_15_preview::Models::Dimension
|
||||
Volume = Azure::NetApp::Mgmt::V2017_08_15_preview::Models::Volume
|
||||
ServiceSpecification = Azure::NetApp::Mgmt::V2017_08_15_preview::Models::ServiceSpecification
|
||||
VolumeList = Azure::NetApp::Mgmt::V2017_08_15_preview::Models::VolumeList
|
||||
OperationListResult = Azure::NetApp::Mgmt::V2017_08_15_preview::Models::OperationListResult
|
||||
VolumePatch = Azure::NetApp::Mgmt::V2017_08_15_preview::Models::VolumePatch
|
||||
NetAppAccountList = Azure::NetApp::Mgmt::V2017_08_15_preview::Models::NetAppAccountList
|
||||
MountTarget = Azure::NetApp::Mgmt::V2017_08_15_preview::Models::MountTarget
|
||||
CapacityPool = Azure::NetApp::Mgmt::V2017_08_15_preview::Models::CapacityPool
|
||||
MountTargetList = Azure::NetApp::Mgmt::V2017_08_15_preview::Models::MountTargetList
|
||||
MetricSpecification = Azure::NetApp::Mgmt::V2017_08_15_preview::Models::MetricSpecification
|
||||
Snapshot = Azure::NetApp::Mgmt::V2017_08_15_preview::Models::Snapshot
|
||||
NetAppAccount = Azure::NetApp::Mgmt::V2017_08_15_preview::Models::NetAppAccount
|
||||
SnapshotsList = Azure::NetApp::Mgmt::V2017_08_15_preview::Models::SnapshotsList
|
||||
OperationDisplay = Azure::NetApp::Mgmt::V2017_08_15_preview::Models::OperationDisplay
|
||||
SnapshotPatch = Azure::NetApp::Mgmt::V2017_08_15_preview::Models::SnapshotPatch
|
||||
NetAppAccountPatch = Azure::NetApp::Mgmt::V2017_08_15_preview::Models::NetAppAccountPatch
|
||||
Error = Azure::NetApp::Mgmt::V2017_08_15_preview::Models::Error
|
||||
Operation = Azure::NetApp::Mgmt::V2017_08_15_preview::Models::Operation
|
||||
ServiceLevel = Azure::NetApp::Mgmt::V2017_08_15_preview::Models::ServiceLevel
|
||||
end
|
||||
|
||||
class NetAppManagementClass
|
||||
attr_reader :operations, :accounts, :pools, :volumes, :mount_targets, :snapshots, :configurable, :base_url, :options, :model_classes
|
||||
|
||||
def initialize(configurable, base_url=nil, options=nil)
|
||||
@configurable, @base_url, @options = configurable, base_url, options
|
||||
|
||||
@client_0 = Azure::NetApp::Mgmt::V2017_08_15_preview::AzureNetAppFilesManagementClient.new(configurable.credentials, base_url, options)
|
||||
if(@client_0.respond_to?(:subscription_id))
|
||||
@client_0.subscription_id = configurable.subscription_id
|
||||
end
|
||||
add_telemetry(@client_0)
|
||||
@operations = @client_0.operations
|
||||
@accounts = @client_0.accounts
|
||||
@pools = @client_0.pools
|
||||
@volumes = @client_0.volumes
|
||||
@mount_targets = @client_0.mount_targets
|
||||
@snapshots = @client_0.snapshots
|
||||
|
||||
@model_classes = ModelClasses.new
|
||||
end
|
||||
|
||||
def add_telemetry(client)
|
||||
profile_information = "Profiles/azure_sdk/#{Azure::VERSION}/Latest/NetApp/Mgmt"
|
||||
client.add_user_agent_information(profile_information)
|
||||
end
|
||||
|
||||
def method_missing(method, *args)
|
||||
if @client_0.respond_to?method
|
||||
@client_0.send(method, *args)
|
||||
else
|
||||
super
|
||||
end
|
||||
end
|
||||
|
||||
class ModelClasses
|
||||
def capacity_pool_list
|
||||
Azure::NetApp::Mgmt::V2017_08_15_preview::Models::CapacityPoolList
|
||||
end
|
||||
def capacity_pool_patch
|
||||
Azure::NetApp::Mgmt::V2017_08_15_preview::Models::CapacityPoolPatch
|
||||
end
|
||||
def dimension
|
||||
Azure::NetApp::Mgmt::V2017_08_15_preview::Models::Dimension
|
||||
end
|
||||
def volume
|
||||
Azure::NetApp::Mgmt::V2017_08_15_preview::Models::Volume
|
||||
end
|
||||
def service_specification
|
||||
Azure::NetApp::Mgmt::V2017_08_15_preview::Models::ServiceSpecification
|
||||
end
|
||||
def volume_list
|
||||
Azure::NetApp::Mgmt::V2017_08_15_preview::Models::VolumeList
|
||||
end
|
||||
def operation_list_result
|
||||
Azure::NetApp::Mgmt::V2017_08_15_preview::Models::OperationListResult
|
||||
end
|
||||
def volume_patch
|
||||
Azure::NetApp::Mgmt::V2017_08_15_preview::Models::VolumePatch
|
||||
end
|
||||
def net_app_account_list
|
||||
Azure::NetApp::Mgmt::V2017_08_15_preview::Models::NetAppAccountList
|
||||
end
|
||||
def mount_target
|
||||
Azure::NetApp::Mgmt::V2017_08_15_preview::Models::MountTarget
|
||||
end
|
||||
def capacity_pool
|
||||
Azure::NetApp::Mgmt::V2017_08_15_preview::Models::CapacityPool
|
||||
end
|
||||
def mount_target_list
|
||||
Azure::NetApp::Mgmt::V2017_08_15_preview::Models::MountTargetList
|
||||
end
|
||||
def metric_specification
|
||||
Azure::NetApp::Mgmt::V2017_08_15_preview::Models::MetricSpecification
|
||||
end
|
||||
def snapshot
|
||||
Azure::NetApp::Mgmt::V2017_08_15_preview::Models::Snapshot
|
||||
end
|
||||
def net_app_account
|
||||
Azure::NetApp::Mgmt::V2017_08_15_preview::Models::NetAppAccount
|
||||
end
|
||||
def snapshots_list
|
||||
Azure::NetApp::Mgmt::V2017_08_15_preview::Models::SnapshotsList
|
||||
end
|
||||
def operation_display
|
||||
Azure::NetApp::Mgmt::V2017_08_15_preview::Models::OperationDisplay
|
||||
end
|
||||
def snapshot_patch
|
||||
Azure::NetApp::Mgmt::V2017_08_15_preview::Models::SnapshotPatch
|
||||
end
|
||||
def net_app_account_patch
|
||||
Azure::NetApp::Mgmt::V2017_08_15_preview::Models::NetAppAccountPatch
|
||||
end
|
||||
def error
|
||||
Azure::NetApp::Mgmt::V2017_08_15_preview::Models::Error
|
||||
end
|
||||
def operation
|
||||
Azure::NetApp::Mgmt::V2017_08_15_preview::Models::Operation
|
||||
end
|
||||
def service_level
|
||||
Azure::NetApp::Mgmt::V2017_08_15_preview::Models::ServiceLevel
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -1,8 +1,8 @@
|
|||
{
|
||||
"management": [
|
||||
"azure_mgmt_privatedns",
|
||||
"azure_mgmt_edgegateway",
|
||||
"azure_mgmt_mixedreality"
|
||||
"azure_mgmt_cdn",
|
||||
"azure_mgmt_mariadb",
|
||||
"azure_mgmt_netapp"
|
||||
],
|
||||
"rollup": [
|
||||
"azure_sdk"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"rollup": {
|
||||
"azure_sdk": "0.22.3"
|
||||
"azure_sdk": "0.22.4"
|
||||
},
|
||||
"data": {
|
||||
"azure_cognitiveservices_autosuggest": "0.17.0",
|
||||
|
@ -35,7 +35,7 @@
|
|||
"azure_mgmt_automation": "0.17.1",
|
||||
"azure_mgmt_batch": "0.17.1",
|
||||
"azure_mgmt_billing": "0.17.1",
|
||||
"azure_mgmt_cdn": "0.17.1",
|
||||
"azure_mgmt_cdn": "0.17.2",
|
||||
"azure_mgmt_cognitive_services": "0.18.0",
|
||||
"azure_mgmt_commerce": "0.17.0",
|
||||
"azure_mgmt_compute": "0.18.3",
|
||||
|
@ -66,11 +66,13 @@
|
|||
"azure_mgmt_machine_learning": "0.17.1",
|
||||
"azure_mgmt_machine_learning_services": "0.17.0",
|
||||
"azure_mgmt_managed_applications": "0.17.1",
|
||||
"azure_mgmt_mariadb": "0.17.0",
|
||||
"azure_mgmt_marketplace_ordering": "0.17.1",
|
||||
"azure_mgmt_media_services": "0.18.0",
|
||||
"azure_mgmt_mixedreality": "0.17.0",
|
||||
"azure_mgmt_monitor": "0.17.1",
|
||||
"azure_mgmt_msi": "0.17.0",
|
||||
"azure_mgmt_netapp": "0.17.0",
|
||||
"azure_mgmt_network": "0.18.4",
|
||||
"azure_mgmt_notification_hubs": "0.17.1",
|
||||
"azure_mgmt_operational_insights": "0.17.1",
|
||||
|
|
|
@ -140,27 +140,27 @@
|
|||
},
|
||||
"azure_mgmt_cdn": {
|
||||
"azure_mgmt_cdn_2017_10_12": {
|
||||
"markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/0840eaa81abaf0a42c88d8e2705dff1c89c4f149/specification/cdn/resource-manager/readme.md",
|
||||
"markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/1e7a3ce32b5ed2ecf968507eb3388aa07fbaff81/specification/cdn/resource-manager/readme.md",
|
||||
"namespace": "Azure::CDN::Mgmt::V2017_10_12",
|
||||
"tag": "package-2017-10"
|
||||
},
|
||||
"azure_mgmt_cdn_2017_04_02": {
|
||||
"markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/0840eaa81abaf0a42c88d8e2705dff1c89c4f149/specification/cdn/resource-manager/readme.md",
|
||||
"markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/1e7a3ce32b5ed2ecf968507eb3388aa07fbaff81/specification/cdn/resource-manager/readme.md",
|
||||
"namespace": "Azure::CDN::Mgmt::V2017_04_02",
|
||||
"tag": "package-2017-04"
|
||||
},
|
||||
"azure_mgmt_cdn_2016_10_02": {
|
||||
"markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/0840eaa81abaf0a42c88d8e2705dff1c89c4f149/specification/cdn/resource-manager/readme.md",
|
||||
"markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/1e7a3ce32b5ed2ecf968507eb3388aa07fbaff81/specification/cdn/resource-manager/readme.md",
|
||||
"namespace": "Azure::CDN::Mgmt::V2016_10_02",
|
||||
"tag": "package-2016-10"
|
||||
},
|
||||
"azure_mgmt_cdn_2016_04_02": {
|
||||
"markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/0840eaa81abaf0a42c88d8e2705dff1c89c4f149/specification/cdn/resource-manager/readme.md",
|
||||
"markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/1e7a3ce32b5ed2ecf968507eb3388aa07fbaff81/specification/cdn/resource-manager/readme.md",
|
||||
"namespace": "Azure::CDN::Mgmt::V2016_04_02",
|
||||
"tag": "package-2016-04"
|
||||
},
|
||||
"azure_mgmt_cdn_2015_06_01": {
|
||||
"markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/0840eaa81abaf0a42c88d8e2705dff1c89c4f149/specification/cdn/resource-manager/readme.md",
|
||||
"markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/1e7a3ce32b5ed2ecf968507eb3388aa07fbaff81/specification/cdn/resource-manager/readme.md",
|
||||
"namespace": "Azure::CDN::Mgmt::V2015_06_01",
|
||||
"tag": "package-2015-06"
|
||||
}
|
||||
|
@ -721,6 +721,18 @@
|
|||
"tag": "package-managedapplications-2016-09"
|
||||
}
|
||||
},
|
||||
"azure_mgmt_mariadb": {
|
||||
"azure_mgmt_mariadb_2018_06_01_preview": {
|
||||
"markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/1e7a3ce32b5ed2ecf968507eb3388aa07fbaff81/specification/mariadb/resource-manager/readme.md",
|
||||
"namespace": "Azure::MariaDB::Mgmt::V2018_06_01_preview",
|
||||
"tag": "package-2018-06-01-preview"
|
||||
},
|
||||
"azure_mgmt_mariadb_2018_06_01": {
|
||||
"markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/1e7a3ce32b5ed2ecf968507eb3388aa07fbaff81/specification/mariadb/resource-manager/readme.md",
|
||||
"namespace": "Azure::MariaDB::Mgmt::V2018_06_01",
|
||||
"tag": "package-2018-06-01"
|
||||
}
|
||||
},
|
||||
"azure_mgmt_marketplace_ordering": {
|
||||
"azure_mgmt_marketplace_ordering_2015_06_01": {
|
||||
"markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/0840eaa81abaf0a42c88d8e2705dff1c89c4f149/specification/marketplaceordering/resource-manager/readme.md",
|
||||
|
@ -819,6 +831,13 @@
|
|||
"tag": "package-2015-08-31-preview"
|
||||
}
|
||||
},
|
||||
"azure_mgmt_netapp": {
|
||||
"azure_mgmt_netapp_2017_08_15_preview": {
|
||||
"markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/1e7a3ce32b5ed2ecf968507eb3388aa07fbaff81/specification/netapp/resource-manager/readme.md",
|
||||
"namespace": "Azure::NetApp::Mgmt::V2017_08_15_preview",
|
||||
"tag": "package-2017-08-15"
|
||||
}
|
||||
},
|
||||
"azure_mgmt_network": {
|
||||
"azure_mgmt_network_2018_12_01": {
|
||||
"markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/9fa29f6afbbdabb94d5c56ed6a38ac2307d0cc34/specification/network/resource-manager/readme.md",
|
||||
|
|
|
@ -282,6 +282,13 @@
|
|||
"module_require": "azure_mgmt_managed_applications"
|
||||
}
|
||||
},
|
||||
"Microsoft.MariaDB": {
|
||||
"management": {
|
||||
"path": "management/azure_mgmt_mariadb",
|
||||
"namespace": "Azure::MariaDB::Mgmt",
|
||||
"module_require": "azure_mgmt_mariadb"
|
||||
}
|
||||
},
|
||||
"Microsoft.MarketplaceOrdering": {
|
||||
"management": {
|
||||
"path": "management/azure_mgmt_marketplace_ordering",
|
||||
|
@ -324,6 +331,13 @@
|
|||
"module_require": "azure_mgmt_msi"
|
||||
}
|
||||
},
|
||||
"Microsoft.NetApp": {
|
||||
"management": {
|
||||
"path": "management/azure_mgmt_netapp",
|
||||
"namespace": "Azure::NetApp::Mgmt",
|
||||
"module_require": "azure_mgmt_netapp"
|
||||
}
|
||||
},
|
||||
"Microsoft.Network": {
|
||||
"management": {
|
||||
"path": "management/azure_mgmt_network",
|
||||
|
|
|
@ -346,6 +346,11 @@
|
|||
"2018-06-01": ["*"]
|
||||
}
|
||||
},
|
||||
"Microsoft.MariaDB": {
|
||||
"management": {
|
||||
"2018-06-01": ["*"]
|
||||
}
|
||||
},
|
||||
"Microsoft.MarketplaceOrdering": {
|
||||
"management": {
|
||||
"2015-06-01": ["*"]
|
||||
|
@ -378,6 +383,11 @@
|
|||
"2015-08-31-preview": ["*"]
|
||||
}
|
||||
},
|
||||
"Microsoft.NetApp": {
|
||||
"management": {
|
||||
"2017-08-15-preview": ["*"]
|
||||
}
|
||||
},
|
||||
"Microsoft.Network": {
|
||||
"management": {
|
||||
"2017-03-30": ["*"],
|
||||
|
@ -1309,6 +1319,20 @@
|
|||
"individual_gem_profile": true
|
||||
}
|
||||
],
|
||||
"azure_mgmt_mariadb": [
|
||||
{
|
||||
"name": "Latest",
|
||||
"resourceTypes": {
|
||||
"Microsoft.MariaDB": {
|
||||
"management": {
|
||||
"2018-06-01": ["*"]
|
||||
}
|
||||
}
|
||||
},
|
||||
"output_dir": "management/azure_mgmt_mariadb/lib/profiles",
|
||||
"individual_gem_profile": true
|
||||
}
|
||||
],
|
||||
"azure_mgmt_marketplace_ordering": [
|
||||
{
|
||||
"name": "Latest",
|
||||
|
@ -1383,6 +1407,20 @@
|
|||
"individual_gem_profile": true
|
||||
}
|
||||
],
|
||||
"azure_mgmt_netapp": [
|
||||
{
|
||||
"name": "Latest",
|
||||
"resourceTypes": {
|
||||
"Microsoft.NetApp": {
|
||||
"management": {
|
||||
"2017-08-15-preview": ["*"]
|
||||
}
|
||||
}
|
||||
},
|
||||
"output_dir": "management/azure_mgmt_netapp/lib/profiles",
|
||||
"individual_gem_profile": true
|
||||
}
|
||||
],
|
||||
"azure_mgmt_network": [
|
||||
{
|
||||
"name": "V2018_03_01",
|
||||
|
|
|
@ -145,7 +145,7 @@ module Azure::CDN::Mgmt::V2015_06_01
|
|||
#
|
||||
def add_telemetry
|
||||
sdk_information = 'azure_mgmt_cdn'
|
||||
sdk_information = "#{sdk_information}/0.17.1"
|
||||
sdk_information = "#{sdk_information}/0.17.2"
|
||||
add_user_agent_information(sdk_information)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -25,7 +25,7 @@ module Azure::CDN::Mgmt::V2015_06_01
|
|||
attr_reader :client
|
||||
|
||||
#
|
||||
# Lists the CDN profiles within an Azure subscitption.
|
||||
# Lists the CDN profiles within an Azure subscription.
|
||||
#
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
|
@ -38,7 +38,7 @@ module Azure::CDN::Mgmt::V2015_06_01
|
|||
end
|
||||
|
||||
#
|
||||
# Lists the CDN profiles within an Azure subscitption.
|
||||
# Lists the CDN profiles within an Azure subscription.
|
||||
#
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
|
@ -50,7 +50,7 @@ module Azure::CDN::Mgmt::V2015_06_01
|
|||
end
|
||||
|
||||
#
|
||||
# Lists the CDN profiles within an Azure subscitption.
|
||||
# Lists the CDN profiles within an Azure subscription.
|
||||
#
|
||||
# @param [Hash{String => String}] A hash of custom headers that will be added
|
||||
# to the HTTP request.
|
||||
|
|
|
@ -145,7 +145,7 @@ module Azure::CDN::Mgmt::V2016_04_02
|
|||
#
|
||||
def add_telemetry
|
||||
sdk_information = 'azure_mgmt_cdn'
|
||||
sdk_information = "#{sdk_information}/0.17.1"
|
||||
sdk_information = "#{sdk_information}/0.17.2"
|
||||
add_user_agent_information(sdk_information)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -25,7 +25,7 @@ module Azure::CDN::Mgmt::V2016_04_02
|
|||
attr_reader :client
|
||||
|
||||
#
|
||||
# Lists the CDN profiles within an Azure subscitption.
|
||||
# Lists the CDN profiles within an Azure subscription.
|
||||
#
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
|
@ -38,7 +38,7 @@ module Azure::CDN::Mgmt::V2016_04_02
|
|||
end
|
||||
|
||||
#
|
||||
# Lists the CDN profiles within an Azure subscitption.
|
||||
# Lists the CDN profiles within an Azure subscription.
|
||||
#
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
|
@ -50,7 +50,7 @@ module Azure::CDN::Mgmt::V2016_04_02
|
|||
end
|
||||
|
||||
#
|
||||
# Lists the CDN profiles within an Azure subscitption.
|
||||
# Lists the CDN profiles within an Azure subscription.
|
||||
#
|
||||
# @param [Hash{String => String}] A hash of custom headers that will be added
|
||||
# to the HTTP request.
|
||||
|
|
|
@ -743,7 +743,7 @@ module Azure::CDN::Mgmt::V2016_10_02
|
|||
#
|
||||
def add_telemetry
|
||||
sdk_information = 'azure_mgmt_cdn'
|
||||
sdk_information = "#{sdk_information}/0.17.1"
|
||||
sdk_information = "#{sdk_information}/0.17.2"
|
||||
add_user_agent_information(sdk_information)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -132,7 +132,7 @@ module Azure::CDN::Mgmt::V2016_10_02
|
|||
end
|
||||
|
||||
#
|
||||
# Gets an exisitng custom domain within an endpoint.
|
||||
# Gets an existing custom domain within an endpoint.
|
||||
#
|
||||
# @param resource_group_name [String] Name of the Resource group within the
|
||||
# Azure subscription.
|
||||
|
@ -153,7 +153,7 @@ module Azure::CDN::Mgmt::V2016_10_02
|
|||
end
|
||||
|
||||
#
|
||||
# Gets an exisitng custom domain within an endpoint.
|
||||
# Gets an existing custom domain within an endpoint.
|
||||
#
|
||||
# @param resource_group_name [String] Name of the Resource group within the
|
||||
# Azure subscription.
|
||||
|
@ -173,7 +173,7 @@ module Azure::CDN::Mgmt::V2016_10_02
|
|||
end
|
||||
|
||||
#
|
||||
# Gets an exisitng custom domain within an endpoint.
|
||||
# Gets an existing custom domain within an endpoint.
|
||||
#
|
||||
# @param resource_group_name [String] Name of the Resource group within the
|
||||
# Azure subscription.
|
||||
|
|
|
@ -557,7 +557,7 @@ module Azure::CDN::Mgmt::V2016_10_02
|
|||
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
||||
# unique globally.
|
||||
# @param content_file_paths [LoadParameters] The path to the content to be
|
||||
# loaded. Path should be a full URL, e.g. ‘/pictires/city.png' which loads a
|
||||
# loaded. Path should be a full URL, e.g. ‘/pictures/city.png' which loads a
|
||||
# single file
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
|
@ -575,7 +575,7 @@ module Azure::CDN::Mgmt::V2016_10_02
|
|||
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
||||
# unique globally.
|
||||
# @param content_file_paths [LoadParameters] The path to the content to be
|
||||
# loaded. Path should be a full URL, e.g. ‘/pictires/city.png' which loads a
|
||||
# loaded. Path should be a full URL, e.g. ‘/pictures/city.png' which loads a
|
||||
# single file
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
|
@ -1564,7 +1564,7 @@ module Azure::CDN::Mgmt::V2016_10_02
|
|||
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
||||
# unique globally.
|
||||
# @param content_file_paths [LoadParameters] The path to the content to be
|
||||
# loaded. Path should be a full URL, e.g. ‘/pictires/city.png' which loads a
|
||||
# loaded. Path should be a full URL, e.g. ‘/pictures/city.png' which loads a
|
||||
# single file
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
|
@ -1585,7 +1585,7 @@ module Azure::CDN::Mgmt::V2016_10_02
|
|||
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
||||
# unique globally.
|
||||
# @param content_file_paths [LoadParameters] The path to the content to be
|
||||
# loaded. Path should be a full URL, e.g. ‘/pictires/city.png' which loads a
|
||||
# loaded. Path should be a full URL, e.g. ‘/pictures/city.png' which loads a
|
||||
# single file
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
|
@ -1606,7 +1606,7 @@ module Azure::CDN::Mgmt::V2016_10_02
|
|||
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
||||
# unique globally.
|
||||
# @param content_file_paths [LoadParameters] The path to the content to be
|
||||
# loaded. Path should be a full URL, e.g. ‘/pictires/city.png' which loads a
|
||||
# loaded. Path should be a full URL, e.g. ‘/pictures/city.png' which loads a
|
||||
# single file
|
||||
# @param [Hash{String => String}] A hash of custom headers that will be added
|
||||
# to the HTTP request.
|
||||
|
|
|
@ -12,7 +12,7 @@ module Azure::CDN::Mgmt::V2016_10_02
|
|||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [String] Ip adress itself.
|
||||
# @return [String] IP address itself.
|
||||
attr_accessor :base_ip_address
|
||||
|
||||
# @return [Integer] The length of the prefix of the ip address.
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
module Azure::CDN::Mgmt::V2016_10_02
|
||||
module Models
|
||||
#
|
||||
# Customer provided domain for branding purposes, e.g. www.consoto.com.
|
||||
# Customer provided domain for branding purposes, e.g. www.contoso.com.
|
||||
#
|
||||
class CustomDomain < Resource
|
||||
|
||||
|
|
|
@ -57,12 +57,12 @@ module Azure::CDN::Mgmt::V2016_10_02
|
|||
attr_accessor :optimization_type
|
||||
|
||||
# @return [Array<GeoFilter>] List of rules defining user geo access
|
||||
# within a CDN endpoint. Each geo filter defines an acess rule to a
|
||||
# within a CDN endpoint. Each geo filter defines an access rule to a
|
||||
# specified path or content, e.g. block APAC for path /pictures/
|
||||
attr_accessor :geo_filters
|
||||
|
||||
# @return [String] The host name of the endpoint structured as
|
||||
# {endpointName}.{DNSZone}, e.g. consoto.azureedge.net
|
||||
# {endpointName}.{DNSZone}, e.g. contoso.azureedge.net
|
||||
attr_accessor :host_name
|
||||
|
||||
# @return [Array<DeepCreatedOrigin>] The source of the content being
|
||||
|
|
|
@ -7,7 +7,7 @@ module Azure::CDN::Mgmt::V2016_10_02
|
|||
module Models
|
||||
#
|
||||
# Result of the request to list endpoints. It contains a list of endpoint
|
||||
# objects and a URL link to get the the next set of results.
|
||||
# objects and a URL link to get the next set of results.
|
||||
#
|
||||
class EndpointListResult
|
||||
|
||||
|
|
|
@ -57,7 +57,7 @@ module Azure::CDN::Mgmt::V2016_10_02
|
|||
attr_accessor :optimization_type
|
||||
|
||||
# @return [Array<GeoFilter>] List of rules defining user geo access
|
||||
# within a CDN endpoint. Each geo filter defines an acess rule to a
|
||||
# within a CDN endpoint. Each geo filter defines an access rule to a
|
||||
# specified path or content, e.g. block APAC for path /pictures/
|
||||
attr_accessor :geo_filters
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
module Azure::CDN::Mgmt::V2016_10_02
|
||||
module Models
|
||||
#
|
||||
# Error reponse indicates CDN service is not able to process the incoming
|
||||
# Error response indicates CDN service is not able to process the incoming
|
||||
# request. The reason is provided in the error message.
|
||||
#
|
||||
class ErrorResponse
|
||||
|
|
|
@ -7,7 +7,7 @@ module Azure::CDN::Mgmt::V2016_10_02
|
|||
module Models
|
||||
#
|
||||
# Result of the request to list profiles. It contains a list of profile
|
||||
# objects and a URL link to get the the next set of results.
|
||||
# objects and a URL link to get the next set of results.
|
||||
#
|
||||
class ProfileListResult
|
||||
|
||||
|
|
|
@ -451,7 +451,7 @@ module Azure::CDN::Mgmt::V2016_10_02
|
|||
|
||||
#
|
||||
# Generates a dynamic SSO URI used to sign in to the CDN supplemental portal.
|
||||
# Supplemnetal portal is used to configure advanced feature capabilities that
|
||||
# Supplemental portal is used to configure advanced feature capabilities that
|
||||
# are not yet available in the Azure portal, such as core reports in a standard
|
||||
# profile; rules engine, advanced HTTP reports, and real-time stats and alerts
|
||||
# in a premium profile. The SSO URI changes approximately every 10 minutes.
|
||||
|
@ -472,7 +472,7 @@ module Azure::CDN::Mgmt::V2016_10_02
|
|||
|
||||
#
|
||||
# Generates a dynamic SSO URI used to sign in to the CDN supplemental portal.
|
||||
# Supplemnetal portal is used to configure advanced feature capabilities that
|
||||
# Supplemental portal is used to configure advanced feature capabilities that
|
||||
# are not yet available in the Azure portal, such as core reports in a standard
|
||||
# profile; rules engine, advanced HTTP reports, and real-time stats and alerts
|
||||
# in a premium profile. The SSO URI changes approximately every 10 minutes.
|
||||
|
@ -492,7 +492,7 @@ module Azure::CDN::Mgmt::V2016_10_02
|
|||
|
||||
#
|
||||
# Generates a dynamic SSO URI used to sign in to the CDN supplemental portal.
|
||||
# Supplemnetal portal is used to configure advanced feature capabilities that
|
||||
# Supplemental portal is used to configure advanced feature capabilities that
|
||||
# are not yet available in the Azure portal, such as core reports in a standard
|
||||
# profile; rules engine, advanced HTTP reports, and real-time stats and alerts
|
||||
# in a premium profile. The SSO URI changes approximately every 10 minutes.
|
||||
|
|
|
@ -352,7 +352,7 @@ module Azure::CDN::Mgmt::V2017_04_02
|
|||
#
|
||||
def add_telemetry
|
||||
sdk_information = 'azure_mgmt_cdn'
|
||||
sdk_information = "#{sdk_information}/0.17.1"
|
||||
sdk_information = "#{sdk_information}/0.17.2"
|
||||
add_user_agent_information(sdk_information)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -132,7 +132,7 @@ module Azure::CDN::Mgmt::V2017_04_02
|
|||
end
|
||||
|
||||
#
|
||||
# Gets an exisitng custom domain within an endpoint.
|
||||
# Gets an existing custom domain within an endpoint.
|
||||
#
|
||||
# @param resource_group_name [String] Name of the Resource group within the
|
||||
# Azure subscription.
|
||||
|
@ -153,7 +153,7 @@ module Azure::CDN::Mgmt::V2017_04_02
|
|||
end
|
||||
|
||||
#
|
||||
# Gets an exisitng custom domain within an endpoint.
|
||||
# Gets an existing custom domain within an endpoint.
|
||||
#
|
||||
# @param resource_group_name [String] Name of the Resource group within the
|
||||
# Azure subscription.
|
||||
|
@ -173,7 +173,7 @@ module Azure::CDN::Mgmt::V2017_04_02
|
|||
end
|
||||
|
||||
#
|
||||
# Gets an exisitng custom domain within an endpoint.
|
||||
# Gets an existing custom domain within an endpoint.
|
||||
#
|
||||
# @param resource_group_name [String] Name of the Resource group within the
|
||||
# Azure subscription.
|
||||
|
|
|
@ -557,7 +557,7 @@ module Azure::CDN::Mgmt::V2017_04_02
|
|||
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
||||
# unique globally.
|
||||
# @param content_file_paths [LoadParameters] The path to the content to be
|
||||
# loaded. Path should be a full URL, e.g. ‘/pictires/city.png' which loads a
|
||||
# loaded. Path should be a full URL, e.g. ‘/pictures/city.png' which loads a
|
||||
# single file
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
|
@ -575,7 +575,7 @@ module Azure::CDN::Mgmt::V2017_04_02
|
|||
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
||||
# unique globally.
|
||||
# @param content_file_paths [LoadParameters] The path to the content to be
|
||||
# loaded. Path should be a full URL, e.g. ‘/pictires/city.png' which loads a
|
||||
# loaded. Path should be a full URL, e.g. ‘/pictures/city.png' which loads a
|
||||
# single file
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
|
@ -1584,7 +1584,7 @@ module Azure::CDN::Mgmt::V2017_04_02
|
|||
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
||||
# unique globally.
|
||||
# @param content_file_paths [LoadParameters] The path to the content to be
|
||||
# loaded. Path should be a full URL, e.g. ‘/pictires/city.png' which loads a
|
||||
# loaded. Path should be a full URL, e.g. ‘/pictures/city.png' which loads a
|
||||
# single file
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
|
@ -1605,7 +1605,7 @@ module Azure::CDN::Mgmt::V2017_04_02
|
|||
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
||||
# unique globally.
|
||||
# @param content_file_paths [LoadParameters] The path to the content to be
|
||||
# loaded. Path should be a full URL, e.g. ‘/pictires/city.png' which loads a
|
||||
# loaded. Path should be a full URL, e.g. ‘/pictures/city.png' which loads a
|
||||
# single file
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
|
@ -1626,7 +1626,7 @@ module Azure::CDN::Mgmt::V2017_04_02
|
|||
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
||||
# unique globally.
|
||||
# @param content_file_paths [LoadParameters] The path to the content to be
|
||||
# loaded. Path should be a full URL, e.g. ‘/pictires/city.png' which loads a
|
||||
# loaded. Path should be a full URL, e.g. ‘/pictures/city.png' which loads a
|
||||
# single file
|
||||
# @param [Hash{String => String}] A hash of custom headers that will be added
|
||||
# to the HTTP request.
|
||||
|
|
|
@ -12,7 +12,7 @@ module Azure::CDN::Mgmt::V2017_04_02
|
|||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [String] Ip adress itself.
|
||||
# @return [String] IP address itself.
|
||||
attr_accessor :base_ip_address
|
||||
|
||||
# @return [Integer] The length of the prefix of the ip address.
|
||||
|
|
|
@ -7,7 +7,7 @@ module Azure::CDN::Mgmt::V2017_04_02
|
|||
module Models
|
||||
#
|
||||
# Friendly domain name mapping to the endpoint hostname that the customer
|
||||
# provides for branding purposes, e.g. www.consoto.com.
|
||||
# provides for branding purposes, e.g. www.contoso.com.
|
||||
#
|
||||
class CustomDomain < ProxyResource
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ module Azure::CDN::Mgmt::V2017_04_02
|
|||
attr_accessor :origin_host_header
|
||||
|
||||
# @return [String] A directory path on the origin that CDN can use to
|
||||
# retreive content from, e.g. contoso.cloudapp.net/originpath.
|
||||
# retrieve content from, e.g. contoso.cloudapp.net/originpath.
|
||||
attr_accessor :origin_path
|
||||
|
||||
# @return [Array<String>] List of content types on which compression
|
||||
|
@ -69,12 +69,12 @@ module Azure::CDN::Mgmt::V2017_04_02
|
|||
attr_accessor :probe_path
|
||||
|
||||
# @return [Array<GeoFilter>] List of rules defining the user's geo access
|
||||
# within a CDN endpoint. Each geo filter defines an acess rule to a
|
||||
# within a CDN endpoint. Each geo filter defines an access rule to a
|
||||
# specified path or content, e.g. block APAC for path /pictures/
|
||||
attr_accessor :geo_filters
|
||||
|
||||
# @return [String] The host name of the endpoint structured as
|
||||
# {endpointName}.{DNSZone}, e.g. consoto.azureedge.net
|
||||
# {endpointName}.{DNSZone}, e.g. contoso.azureedge.net
|
||||
attr_accessor :host_name
|
||||
|
||||
# @return [Array<DeepCreatedOrigin>] The source of the content being
|
||||
|
|
|
@ -7,7 +7,7 @@ module Azure::CDN::Mgmt::V2017_04_02
|
|||
module Models
|
||||
#
|
||||
# Result of the request to list endpoints. It contains a list of endpoint
|
||||
# objects and a URL link to get the the next set of results.
|
||||
# objects and a URL link to get the next set of results.
|
||||
#
|
||||
class EndpointListResult
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ module Azure::CDN::Mgmt::V2017_04_02
|
|||
attr_accessor :origin_host_header
|
||||
|
||||
# @return [String] A directory path on the origin that CDN can use to
|
||||
# retreive content from, e.g. contoso.cloudapp.net/originpath.
|
||||
# retrieve content from, e.g. contoso.cloudapp.net/originpath.
|
||||
attr_accessor :origin_path
|
||||
|
||||
# @return [Array<String>] List of content types on which compression
|
||||
|
@ -69,7 +69,7 @@ module Azure::CDN::Mgmt::V2017_04_02
|
|||
attr_accessor :probe_path
|
||||
|
||||
# @return [Array<GeoFilter>] List of rules defining the user's geo access
|
||||
# within a CDN endpoint. Each geo filter defines an acess rule to a
|
||||
# within a CDN endpoint. Each geo filter defines an access rule to a
|
||||
# specified path or content, e.g. block APAC for path /pictures/
|
||||
attr_accessor :geo_filters
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
module Azure::CDN::Mgmt::V2017_04_02
|
||||
module Models
|
||||
#
|
||||
# Error reponse indicates CDN service is not able to process the incoming
|
||||
# Error response indicates CDN service is not able to process the incoming
|
||||
# request. The reason is provided in the error message.
|
||||
#
|
||||
class ErrorResponse
|
||||
|
|
|
@ -7,7 +7,7 @@ module Azure::CDN::Mgmt::V2017_04_02
|
|||
module Models
|
||||
#
|
||||
# Result of the request to list profiles. It contains a list of profile
|
||||
# objects and a URL link to get the the next set of results.
|
||||
# objects and a URL link to get the next set of results.
|
||||
#
|
||||
class ProfileListResult
|
||||
|
||||
|
|
|
@ -451,7 +451,7 @@ module Azure::CDN::Mgmt::V2017_04_02
|
|||
|
||||
#
|
||||
# Generates a dynamic SSO URI used to sign in to the CDN supplemental portal.
|
||||
# Supplemnetal portal is used to configure advanced feature capabilities that
|
||||
# Supplemental portal is used to configure advanced feature capabilities that
|
||||
# are not yet available in the Azure portal, such as core reports in a standard
|
||||
# profile; rules engine, advanced HTTP reports, and real-time stats and alerts
|
||||
# in a premium profile. The SSO URI changes approximately every 10 minutes.
|
||||
|
@ -472,7 +472,7 @@ module Azure::CDN::Mgmt::V2017_04_02
|
|||
|
||||
#
|
||||
# Generates a dynamic SSO URI used to sign in to the CDN supplemental portal.
|
||||
# Supplemnetal portal is used to configure advanced feature capabilities that
|
||||
# Supplemental portal is used to configure advanced feature capabilities that
|
||||
# are not yet available in the Azure portal, such as core reports in a standard
|
||||
# profile; rules engine, advanced HTTP reports, and real-time stats and alerts
|
||||
# in a premium profile. The SSO URI changes approximately every 10 minutes.
|
||||
|
@ -492,7 +492,7 @@ module Azure::CDN::Mgmt::V2017_04_02
|
|||
|
||||
#
|
||||
# Generates a dynamic SSO URI used to sign in to the CDN supplemental portal.
|
||||
# Supplemnetal portal is used to configure advanced feature capabilities that
|
||||
# Supplemental portal is used to configure advanced feature capabilities that
|
||||
# are not yet available in the Azure portal, such as core reports in a standard
|
||||
# profile; rules engine, advanced HTTP reports, and real-time stats and alerts
|
||||
# in a premium profile. The SSO URI changes approximately every 10 minutes.
|
||||
|
|
|
@ -34,40 +34,43 @@ module Azure::CDN::Mgmt::V2017_10_12
|
|||
autoload :Sku, '2017-10-12/generated/azure_mgmt_cdn/models/sku.rb'
|
||||
autoload :OriginListResult, '2017-10-12/generated/azure_mgmt_cdn/models/origin_list_result.rb'
|
||||
autoload :ProfileListResult, '2017-10-12/generated/azure_mgmt_cdn/models/profile_list_result.rb'
|
||||
autoload :PurgeParameters, '2017-10-12/generated/azure_mgmt_cdn/models/purge_parameters.rb'
|
||||
autoload :SsoUri, '2017-10-12/generated/azure_mgmt_cdn/models/sso_uri.rb'
|
||||
autoload :LoadParameters, '2017-10-12/generated/azure_mgmt_cdn/models/load_parameters.rb'
|
||||
autoload :DeepCreatedOrigin, '2017-10-12/generated/azure_mgmt_cdn/models/deep_created_origin.rb'
|
||||
autoload :CidrIpAddress, '2017-10-12/generated/azure_mgmt_cdn/models/cidr_ip_address.rb'
|
||||
autoload :EndpointListResult, '2017-10-12/generated/azure_mgmt_cdn/models/endpoint_list_result.rb'
|
||||
autoload :OperationsListResult, '2017-10-12/generated/azure_mgmt_cdn/models/operations_list_result.rb'
|
||||
autoload :DeliveryRuleAction, '2017-10-12/generated/azure_mgmt_cdn/models/delivery_rule_action.rb'
|
||||
autoload :ProfileUpdateParameters, '2017-10-12/generated/azure_mgmt_cdn/models/profile_update_parameters.rb'
|
||||
autoload :DeliveryRule, '2017-10-12/generated/azure_mgmt_cdn/models/delivery_rule.rb'
|
||||
autoload :EndpointUpdateParameters, '2017-10-12/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb'
|
||||
autoload :CustomDomainParameters, '2017-10-12/generated/azure_mgmt_cdn/models/custom_domain_parameters.rb'
|
||||
autoload :EdgenodeResult, '2017-10-12/generated/azure_mgmt_cdn/models/edgenode_result.rb'
|
||||
autoload :CustomDomainListResult, '2017-10-12/generated/azure_mgmt_cdn/models/custom_domain_list_result.rb'
|
||||
autoload :DeepCreatedOrigin, '2017-10-12/generated/azure_mgmt_cdn/models/deep_created_origin.rb'
|
||||
autoload :CustomDomainHttpsParameters, '2017-10-12/generated/azure_mgmt_cdn/models/custom_domain_https_parameters.rb'
|
||||
autoload :EndpointListResult, '2017-10-12/generated/azure_mgmt_cdn/models/endpoint_list_result.rb'
|
||||
autoload :CdnCertificateSourceParameters, '2017-10-12/generated/azure_mgmt_cdn/models/cdn_certificate_source_parameters.rb'
|
||||
autoload :DeliveryRuleAction, '2017-10-12/generated/azure_mgmt_cdn/models/delivery_rule_action.rb'
|
||||
autoload :ErrorResponse, '2017-10-12/generated/azure_mgmt_cdn/models/error_response.rb'
|
||||
autoload :DeliveryRule, '2017-10-12/generated/azure_mgmt_cdn/models/delivery_rule.rb'
|
||||
autoload :KeyVaultCertificateSourceParameters, '2017-10-12/generated/azure_mgmt_cdn/models/key_vault_certificate_source_parameters.rb'
|
||||
autoload :EndpointUpdateParameters, '2017-10-12/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb'
|
||||
autoload :UrlPathConditionParameters, '2017-10-12/generated/azure_mgmt_cdn/models/url_path_condition_parameters.rb'
|
||||
autoload :EdgenodeResult, '2017-10-12/generated/azure_mgmt_cdn/models/edgenode_result.rb'
|
||||
autoload :UrlFileExtensionConditionParameters, '2017-10-12/generated/azure_mgmt_cdn/models/url_file_extension_condition_parameters.rb'
|
||||
autoload :CustomDomainListResult, '2017-10-12/generated/azure_mgmt_cdn/models/custom_domain_list_result.rb'
|
||||
autoload :CacheExpirationActionParameters, '2017-10-12/generated/azure_mgmt_cdn/models/cache_expiration_action_parameters.rb'
|
||||
autoload :ValidateCustomDomainInput, '2017-10-12/generated/azure_mgmt_cdn/models/validate_custom_domain_input.rb'
|
||||
autoload :IpAddressGroup, '2017-10-12/generated/azure_mgmt_cdn/models/ip_address_group.rb'
|
||||
autoload :PurgeParameters, '2017-10-12/generated/azure_mgmt_cdn/models/purge_parameters.rb'
|
||||
autoload :ValidateCustomDomainOutput, '2017-10-12/generated/azure_mgmt_cdn/models/validate_custom_domain_output.rb'
|
||||
autoload :Resource, '2017-10-12/generated/azure_mgmt_cdn/models/resource.rb'
|
||||
autoload :CheckNameAvailabilityInput, '2017-10-12/generated/azure_mgmt_cdn/models/check_name_availability_input.rb'
|
||||
autoload :Operation, '2017-10-12/generated/azure_mgmt_cdn/models/operation.rb'
|
||||
autoload :ProfileUpdateParameters, '2017-10-12/generated/azure_mgmt_cdn/models/profile_update_parameters.rb'
|
||||
autoload :LoadParameters, '2017-10-12/generated/azure_mgmt_cdn/models/load_parameters.rb'
|
||||
autoload :IpAddressGroup, '2017-10-12/generated/azure_mgmt_cdn/models/ip_address_group.rb'
|
||||
autoload :OperationDisplay, '2017-10-12/generated/azure_mgmt_cdn/models/operation_display.rb'
|
||||
autoload :DeliveryRuleCondition, '2017-10-12/generated/azure_mgmt_cdn/models/delivery_rule_condition.rb'
|
||||
autoload :CheckNameAvailabilityInput, '2017-10-12/generated/azure_mgmt_cdn/models/check_name_availability_input.rb'
|
||||
autoload :CidrIpAddress, '2017-10-12/generated/azure_mgmt_cdn/models/cidr_ip_address.rb'
|
||||
autoload :CheckNameAvailabilityOutput, '2017-10-12/generated/azure_mgmt_cdn/models/check_name_availability_output.rb'
|
||||
autoload :UrlPathConditionParameters, '2017-10-12/generated/azure_mgmt_cdn/models/url_path_condition_parameters.rb'
|
||||
autoload :SupportedOptimizationTypesListResult, '2017-10-12/generated/azure_mgmt_cdn/models/supported_optimization_types_list_result.rb'
|
||||
autoload :ValidateProbeInput, '2017-10-12/generated/azure_mgmt_cdn/models/validate_probe_input.rb'
|
||||
autoload :CacheExpirationActionParameters, '2017-10-12/generated/azure_mgmt_cdn/models/cache_expiration_action_parameters.rb'
|
||||
autoload :EndpointPropertiesUpdateParametersDeliveryPolicy, '2017-10-12/generated/azure_mgmt_cdn/models/endpoint_properties_update_parameters_delivery_policy.rb'
|
||||
autoload :ValidateProbeOutput, '2017-10-12/generated/azure_mgmt_cdn/models/validate_probe_output.rb'
|
||||
autoload :GeoFilter, '2017-10-12/generated/azure_mgmt_cdn/models/geo_filter.rb'
|
||||
autoload :ResourceUsage, '2017-10-12/generated/azure_mgmt_cdn/models/resource_usage.rb'
|
||||
autoload :UrlFileExtensionConditionParameters, '2017-10-12/generated/azure_mgmt_cdn/models/url_file_extension_condition_parameters.rb'
|
||||
autoload :OperationsListResult, '2017-10-12/generated/azure_mgmt_cdn/models/operations_list_result.rb'
|
||||
autoload :ResourceUsageListResult, '2017-10-12/generated/azure_mgmt_cdn/models/resource_usage_list_result.rb'
|
||||
autoload :EndpointPropertiesUpdateParametersDeliveryPolicy, '2017-10-12/generated/azure_mgmt_cdn/models/endpoint_properties_update_parameters_delivery_policy.rb'
|
||||
autoload :OperationDisplay, '2017-10-12/generated/azure_mgmt_cdn/models/operation_display.rb'
|
||||
autoload :SupportedOptimizationTypesListResult, '2017-10-12/generated/azure_mgmt_cdn/models/supported_optimization_types_list_result.rb'
|
||||
autoload :Operation, '2017-10-12/generated/azure_mgmt_cdn/models/operation.rb'
|
||||
autoload :Profile, '2017-10-12/generated/azure_mgmt_cdn/models/profile.rb'
|
||||
autoload :Endpoint, '2017-10-12/generated/azure_mgmt_cdn/models/endpoint.rb'
|
||||
autoload :DeliveryRuleUrlPathCondition, '2017-10-12/generated/azure_mgmt_cdn/models/delivery_rule_url_path_condition.rb'
|
||||
|
@ -76,6 +79,8 @@ module Azure::CDN::Mgmt::V2017_10_12
|
|||
autoload :Origin, '2017-10-12/generated/azure_mgmt_cdn/models/origin.rb'
|
||||
autoload :ProxyResource, '2017-10-12/generated/azure_mgmt_cdn/models/proxy_resource.rb'
|
||||
autoload :CustomDomain, '2017-10-12/generated/azure_mgmt_cdn/models/custom_domain.rb'
|
||||
autoload :CdnManagedHttpsParameters, '2017-10-12/generated/azure_mgmt_cdn/models/cdn_managed_https_parameters.rb'
|
||||
autoload :UserManagedHttpsParameters, '2017-10-12/generated/azure_mgmt_cdn/models/user_managed_https_parameters.rb'
|
||||
autoload :EdgeNode, '2017-10-12/generated/azure_mgmt_cdn/models/edge_node.rb'
|
||||
autoload :TrackedResource, '2017-10-12/generated/azure_mgmt_cdn/models/tracked_resource.rb'
|
||||
autoload :SkuName, '2017-10-12/generated/azure_mgmt_cdn/models/sku_name.rb'
|
||||
|
@ -88,6 +93,8 @@ module Azure::CDN::Mgmt::V2017_10_12
|
|||
autoload :CustomDomainResourceState, '2017-10-12/generated/azure_mgmt_cdn/models/custom_domain_resource_state.rb'
|
||||
autoload :CustomHttpsProvisioningState, '2017-10-12/generated/azure_mgmt_cdn/models/custom_https_provisioning_state.rb'
|
||||
autoload :CustomHttpsProvisioningSubstate, '2017-10-12/generated/azure_mgmt_cdn/models/custom_https_provisioning_substate.rb'
|
||||
autoload :ProtocolType, '2017-10-12/generated/azure_mgmt_cdn/models/protocol_type.rb'
|
||||
autoload :CertificateType, '2017-10-12/generated/azure_mgmt_cdn/models/certificate_type.rb'
|
||||
autoload :ResourceType, '2017-10-12/generated/azure_mgmt_cdn/models/resource_type.rb'
|
||||
end
|
||||
end
|
||||
|
|
|
@ -453,7 +453,7 @@ module Azure::CDN::Mgmt::V2017_10_12
|
|||
#
|
||||
def add_telemetry
|
||||
sdk_information = 'azure_mgmt_cdn'
|
||||
sdk_information = "#{sdk_information}/0.17.1"
|
||||
sdk_information = "#{sdk_information}/0.17.2"
|
||||
add_user_agent_information(sdk_information)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -132,7 +132,7 @@ module Azure::CDN::Mgmt::V2017_10_12
|
|||
end
|
||||
|
||||
#
|
||||
# Gets an exisitng custom domain within an endpoint.
|
||||
# Gets an existing custom domain within an endpoint.
|
||||
#
|
||||
# @param resource_group_name [String] Name of the Resource group within the
|
||||
# Azure subscription.
|
||||
|
@ -153,7 +153,7 @@ module Azure::CDN::Mgmt::V2017_10_12
|
|||
end
|
||||
|
||||
#
|
||||
# Gets an exisitng custom domain within an endpoint.
|
||||
# Gets an existing custom domain within an endpoint.
|
||||
#
|
||||
# @param resource_group_name [String] Name of the Resource group within the
|
||||
# Azure subscription.
|
||||
|
@ -173,7 +173,7 @@ module Azure::CDN::Mgmt::V2017_10_12
|
|||
end
|
||||
|
||||
#
|
||||
# Gets an exisitng custom domain within an endpoint.
|
||||
# Gets an existing custom domain within an endpoint.
|
||||
#
|
||||
# @param resource_group_name [String] Name of the Resource group within the
|
||||
# Azure subscription.
|
||||
|
@ -484,13 +484,17 @@ module Azure::CDN::Mgmt::V2017_10_12
|
|||
# unique globally.
|
||||
# @param custom_domain_name [String] Name of the custom domain within an
|
||||
# endpoint.
|
||||
# @param custom_domain_https_parameters [CustomDomainHttpsParameters] The
|
||||
# configuration specifying how to enable HTTPS for the custom domain - using
|
||||
# CDN managed certificate or user's own certificate. If not specified, enabling
|
||||
# ssl uses CDN managed certificate by default.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [CustomDomain] operation results.
|
||||
#
|
||||
def enable_custom_https(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil)
|
||||
response = enable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers).value!
|
||||
def enable_custom_https(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_https_parameters:nil, custom_headers:nil)
|
||||
response = enable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_https_parameters:custom_domain_https_parameters, custom_headers:custom_headers).value!
|
||||
response.body unless response.nil?
|
||||
end
|
||||
|
||||
|
@ -505,13 +509,17 @@ module Azure::CDN::Mgmt::V2017_10_12
|
|||
# unique globally.
|
||||
# @param custom_domain_name [String] Name of the custom domain within an
|
||||
# endpoint.
|
||||
# @param custom_domain_https_parameters [CustomDomainHttpsParameters] The
|
||||
# configuration specifying how to enable HTTPS for the custom domain - using
|
||||
# CDN managed certificate or user's own certificate. If not specified, enabling
|
||||
# ssl uses CDN managed certificate by default.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
||||
#
|
||||
def enable_custom_https_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil)
|
||||
enable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers).value!
|
||||
def enable_custom_https_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_https_parameters:nil, custom_headers:nil)
|
||||
enable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_https_parameters:custom_domain_https_parameters, custom_headers:custom_headers).value!
|
||||
end
|
||||
|
||||
#
|
||||
|
@ -525,12 +533,16 @@ module Azure::CDN::Mgmt::V2017_10_12
|
|||
# unique globally.
|
||||
# @param custom_domain_name [String] Name of the custom domain within an
|
||||
# endpoint.
|
||||
# @param custom_domain_https_parameters [CustomDomainHttpsParameters] The
|
||||
# configuration specifying how to enable HTTPS for the custom domain - using
|
||||
# CDN managed certificate or user's own certificate. If not specified, enabling
|
||||
# ssl uses CDN managed certificate by default.
|
||||
# @param [Hash{String => String}] A hash of custom headers that will be added
|
||||
# to the HTTP request.
|
||||
#
|
||||
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
||||
#
|
||||
def enable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil)
|
||||
def enable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_https_parameters:nil, custom_headers:nil)
|
||||
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
||||
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
||||
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
||||
|
@ -548,6 +560,12 @@ module Azure::CDN::Mgmt::V2017_10_12
|
|||
# Set Headers
|
||||
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
||||
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
||||
|
||||
# Serialize Request
|
||||
request_mapper = Azure::CDN::Mgmt::V2017_10_12::Models::CustomDomainHttpsParameters.mapper()
|
||||
request_content = @client.serialize(request_mapper, custom_domain_https_parameters)
|
||||
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
||||
|
||||
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/customDomains/{customDomainName}/enableCustomHttps'
|
||||
|
||||
request_url = @base_url || @client.base_url
|
||||
|
@ -556,6 +574,7 @@ module Azure::CDN::Mgmt::V2017_10_12
|
|||
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
||||
path_params: {'resourceGroupName' => resource_group_name,'profileName' => profile_name,'endpointName' => endpoint_name,'customDomainName' => custom_domain_name,'subscriptionId' => @client.subscription_id},
|
||||
query_params: {'api-version' => @client.api_version},
|
||||
body: request_content,
|
||||
headers: request_headers.merge(custom_headers || {}),
|
||||
base_url: request_url
|
||||
}
|
||||
|
|
|
@ -557,7 +557,7 @@ module Azure::CDN::Mgmt::V2017_10_12
|
|||
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
||||
# unique globally.
|
||||
# @param content_file_paths [LoadParameters] The path to the content to be
|
||||
# loaded. Path should be a full URL, e.g. ‘/pictires/city.png' which loads a
|
||||
# loaded. Path should be a full URL, e.g. ‘/pictures/city.png' which loads a
|
||||
# single file
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
|
@ -575,7 +575,7 @@ module Azure::CDN::Mgmt::V2017_10_12
|
|||
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
||||
# unique globally.
|
||||
# @param content_file_paths [LoadParameters] The path to the content to be
|
||||
# loaded. Path should be a full URL, e.g. ‘/pictires/city.png' which loads a
|
||||
# loaded. Path should be a full URL, e.g. ‘/pictures/city.png' which loads a
|
||||
# single file
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
|
@ -1584,7 +1584,7 @@ module Azure::CDN::Mgmt::V2017_10_12
|
|||
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
||||
# unique globally.
|
||||
# @param content_file_paths [LoadParameters] The path to the content to be
|
||||
# loaded. Path should be a full URL, e.g. ‘/pictires/city.png' which loads a
|
||||
# loaded. Path should be a full URL, e.g. ‘/pictures/city.png' which loads a
|
||||
# single file
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
|
@ -1605,7 +1605,7 @@ module Azure::CDN::Mgmt::V2017_10_12
|
|||
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
||||
# unique globally.
|
||||
# @param content_file_paths [LoadParameters] The path to the content to be
|
||||
# loaded. Path should be a full URL, e.g. ‘/pictires/city.png' which loads a
|
||||
# loaded. Path should be a full URL, e.g. ‘/pictures/city.png' which loads a
|
||||
# single file
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
|
@ -1626,7 +1626,7 @@ module Azure::CDN::Mgmt::V2017_10_12
|
|||
# @param endpoint_name [String] Name of the endpoint under the profile which is
|
||||
# unique globally.
|
||||
# @param content_file_paths [LoadParameters] The path to the content to be
|
||||
# loaded. Path should be a full URL, e.g. ‘/pictires/city.png' which loads a
|
||||
# loaded. Path should be a full URL, e.g. ‘/pictures/city.png' which loads a
|
||||
# single file
|
||||
# @param [Hash{String => String}] A hash of custom headers that will be added
|
||||
# to the HTTP request.
|
||||
|
|
|
@ -26,8 +26,8 @@ module Azure::CDN::Mgmt::V2017_10_12
|
|||
# Default value: 'All' .
|
||||
attr_accessor :cache_type
|
||||
|
||||
# @return [String] The duration for which the the content needs to be
|
||||
# cached. Allowed format is [d.]hh:mm:ss
|
||||
# @return [String] The duration for which the content needs to be cached.
|
||||
# Allowed format is [d.]hh:mm:ss
|
||||
attr_accessor :cache_duration
|
||||
|
||||
|
||||
|
|
|
@ -0,0 +1,62 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::CDN::Mgmt::V2017_10_12
|
||||
module Models
|
||||
#
|
||||
# Defines the parameters for using CDN managed certificate for securing
|
||||
# custom domain.
|
||||
#
|
||||
class CdnCertificateSourceParameters
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [String] . Default value:
|
||||
# '#Microsoft.Azure.Cdn.Models.CdnCertificateSourceParameters' .
|
||||
attr_accessor :odatatype
|
||||
|
||||
# @return [CertificateType] Type of certificate used. Possible values
|
||||
# include: 'Shared', 'Dedicated'
|
||||
attr_accessor :certificate_type
|
||||
|
||||
|
||||
#
|
||||
# Mapper for CdnCertificateSourceParameters class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'CdnCertificateSourceParameters',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'CdnCertificateSourceParameters',
|
||||
model_properties: {
|
||||
odatatype: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
is_constant: true,
|
||||
serialized_name: '@odata\\.type',
|
||||
default_value: '#Microsoft.Azure.Cdn.Models.CdnCertificateSourceParameters',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
certificate_type: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
serialized_name: 'certificateType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,73 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::CDN::Mgmt::V2017_10_12
|
||||
module Models
|
||||
#
|
||||
# Defines the certificate source parameters using CDN managed certificate
|
||||
# for enabling SSL.
|
||||
#
|
||||
class CdnManagedHttpsParameters < CustomDomainHttpsParameters
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
|
||||
def initialize
|
||||
@certificateSource = "Cdn"
|
||||
end
|
||||
|
||||
attr_accessor :certificateSource
|
||||
|
||||
# @return [CdnCertificateSourceParameters] Defines the certificate source
|
||||
# parameters using CDN managed certificate for enabling SSL.
|
||||
attr_accessor :certificate_source_parameters
|
||||
|
||||
|
||||
#
|
||||
# Mapper for CdnManagedHttpsParameters class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'Cdn',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'CdnManagedHttpsParameters',
|
||||
model_properties: {
|
||||
protocol_type: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
serialized_name: 'protocolType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
certificateSource: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
serialized_name: 'certificateSource',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
certificate_source_parameters: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
serialized_name: 'certificateSourceParameters',
|
||||
default_value: {},
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'CdnCertificateSourceParameters'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,16 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::CDN::Mgmt::V2017_10_12
|
||||
module Models
|
||||
#
|
||||
# Defines values for CertificateType
|
||||
#
|
||||
module CertificateType
|
||||
Shared = "Shared"
|
||||
Dedicated = "Dedicated"
|
||||
end
|
||||
end
|
||||
end
|
|
@ -12,7 +12,7 @@ module Azure::CDN::Mgmt::V2017_10_12
|
|||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [String] Ip adress itself.
|
||||
# @return [String] Ip address itself.
|
||||
attr_accessor :base_ip_address
|
||||
|
||||
# @return [Integer] The length of the prefix of the ip address.
|
||||
|
|
|
@ -7,7 +7,7 @@ module Azure::CDN::Mgmt::V2017_10_12
|
|||
module Models
|
||||
#
|
||||
# Friendly domain name mapping to the endpoint hostname that the customer
|
||||
# provides for branding purposes, e.g. www.consoto.com.
|
||||
# provides for branding purposes, e.g. www.contoso.com.
|
||||
#
|
||||
class CustomDomain < ProxyResource
|
||||
|
||||
|
|
|
@ -0,0 +1,60 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::CDN::Mgmt::V2017_10_12
|
||||
module Models
|
||||
#
|
||||
# The JSON object that contains the properties to secure a custom domain.
|
||||
#
|
||||
class CustomDomainHttpsParameters
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
@@discriminatorMap = Hash.new
|
||||
@@discriminatorMap["Cdn"] = "CdnManagedHttpsParameters"
|
||||
@@discriminatorMap["AzureKeyVault"] = "UserManagedHttpsParameters"
|
||||
|
||||
def initialize
|
||||
@certificateSource = "CustomDomainHttpsParameters"
|
||||
end
|
||||
|
||||
attr_accessor :certificateSource
|
||||
|
||||
# @return [ProtocolType] Defines the TLS extension protocol that is used
|
||||
# for secure delivery. Possible values include: 'ServerNameIndication',
|
||||
# 'IPBased'
|
||||
attr_accessor :protocol_type
|
||||
|
||||
|
||||
#
|
||||
# Mapper for CustomDomainHttpsParameters class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'CustomDomainHttpsParameters',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphic_discriminator: 'certificateSource',
|
||||
uber_parent: 'CustomDomainHttpsParameters',
|
||||
class_name: 'CustomDomainHttpsParameters',
|
||||
model_properties: {
|
||||
protocol_type: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
serialized_name: 'protocolType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -23,7 +23,7 @@ module Azure::CDN::Mgmt::V2017_10_12
|
|||
attr_accessor :origin_host_header
|
||||
|
||||
# @return [String] A directory path on the origin that CDN can use to
|
||||
# retreive content from, e.g. contoso.cloudapp.net/originpath.
|
||||
# retrieve content from, e.g. contoso.cloudapp.net/originpath.
|
||||
attr_accessor :origin_path
|
||||
|
||||
# @return [Array<String>] List of content types on which compression
|
||||
|
@ -69,7 +69,7 @@ module Azure::CDN::Mgmt::V2017_10_12
|
|||
attr_accessor :probe_path
|
||||
|
||||
# @return [Array<GeoFilter>] List of rules defining the user's geo access
|
||||
# within a CDN endpoint. Each geo filter defines an acess rule to a
|
||||
# within a CDN endpoint. Each geo filter defines an access rule to a
|
||||
# specified path or content, e.g. block APAC for path /pictures/
|
||||
attr_accessor :geo_filters
|
||||
|
||||
|
@ -78,7 +78,7 @@ module Azure::CDN::Mgmt::V2017_10_12
|
|||
attr_accessor :delivery_policy
|
||||
|
||||
# @return [String] The host name of the endpoint structured as
|
||||
# {endpointName}.{DNSZone}, e.g. consoto.azureedge.net
|
||||
# {endpointName}.{DNSZone}, e.g. contoso.azureedge.net
|
||||
attr_accessor :host_name
|
||||
|
||||
# @return [Array<DeepCreatedOrigin>] The source of the content being
|
||||
|
|
|
@ -7,7 +7,7 @@ module Azure::CDN::Mgmt::V2017_10_12
|
|||
module Models
|
||||
#
|
||||
# Result of the request to list endpoints. It contains a list of endpoint
|
||||
# objects and a URL link to get the the next set of results.
|
||||
# objects and a URL link to get the next set of results.
|
||||
#
|
||||
class EndpointListResult
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ module Azure::CDN::Mgmt::V2017_10_12
|
|||
attr_accessor :origin_host_header
|
||||
|
||||
# @return [String] A directory path on the origin that CDN can use to
|
||||
# retreive content from, e.g. contoso.cloudapp.net/originpath.
|
||||
# retrieve content from, e.g. contoso.cloudapp.net/originpath.
|
||||
attr_accessor :origin_path
|
||||
|
||||
# @return [Array<String>] List of content types on which compression
|
||||
|
@ -69,7 +69,7 @@ module Azure::CDN::Mgmt::V2017_10_12
|
|||
attr_accessor :probe_path
|
||||
|
||||
# @return [Array<GeoFilter>] List of rules defining the user's geo access
|
||||
# within a CDN endpoint. Each geo filter defines an acess rule to a
|
||||
# within a CDN endpoint. Each geo filter defines an access rule to a
|
||||
# specified path or content, e.g. block APAC for path /pictures/
|
||||
attr_accessor :geo_filters
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
module Azure::CDN::Mgmt::V2017_10_12
|
||||
module Models
|
||||
#
|
||||
# Error reponse indicates CDN service is not able to process the incoming
|
||||
# Error response indicates CDN service is not able to process the incoming
|
||||
# request. The reason is provided in the error message.
|
||||
#
|
||||
class ErrorResponse
|
||||
|
|
|
@ -0,0 +1,137 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::CDN::Mgmt::V2017_10_12
|
||||
module Models
|
||||
#
|
||||
# Describes the parameters for using a user's KeyVault certificate for
|
||||
# securing custom domain.
|
||||
#
|
||||
class KeyVaultCertificateSourceParameters
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [String] . Default value:
|
||||
# '#Microsoft.Azure.Cdn.Models.KeyVaultCertificateSourceParameters' .
|
||||
attr_accessor :odatatype
|
||||
|
||||
# @return [String] Subscription Id of the user's Key Vault containing the
|
||||
# SSL certificate
|
||||
attr_accessor :subscription_id
|
||||
|
||||
# @return [String] Resource group of the user's Key Vault containing the
|
||||
# SSL certificate
|
||||
attr_accessor :resource_group_name
|
||||
|
||||
# @return [String] The name of the user's Key Vault containing the SSL
|
||||
# certificate
|
||||
attr_accessor :vault_name
|
||||
|
||||
# @return [String] The name of Key Vault Secret (representing the full
|
||||
# certificate PFX) in Key Vault.
|
||||
attr_accessor :secret_name
|
||||
|
||||
# @return [String] The version(GUID) of Key Vault Secret in Key Vault.
|
||||
attr_accessor :secret_version
|
||||
|
||||
# @return [String] Describes the action that shall be taken when the
|
||||
# certificate is updated in Key Vault. Default value: 'NoAction' .
|
||||
attr_accessor :update_rule
|
||||
|
||||
# @return [String] Describes the action that shall be taken when the
|
||||
# certificate is removed from Key Vault. Default value: 'NoAction' .
|
||||
attr_accessor :delete_rule
|
||||
|
||||
|
||||
#
|
||||
# Mapper for KeyVaultCertificateSourceParameters class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'KeyVaultCertificateSourceParameters',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'KeyVaultCertificateSourceParameters',
|
||||
model_properties: {
|
||||
odatatype: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
is_constant: true,
|
||||
serialized_name: '@odata\\.type',
|
||||
default_value: '#Microsoft.Azure.Cdn.Models.KeyVaultCertificateSourceParameters',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
subscription_id: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
serialized_name: 'subscriptionId',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
resource_group_name: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
serialized_name: 'resourceGroupName',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
vault_name: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
serialized_name: 'vaultName',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
secret_name: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
serialized_name: 'secretName',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
secret_version: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
serialized_name: 'secretVersion',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
update_rule: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
is_constant: true,
|
||||
serialized_name: 'updateRule',
|
||||
default_value: 'NoAction',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
delete_rule: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
is_constant: true,
|
||||
serialized_name: 'deleteRule',
|
||||
default_value: 'NoAction',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -7,7 +7,7 @@ module Azure::CDN::Mgmt::V2017_10_12
|
|||
module Models
|
||||
#
|
||||
# Result of the request to list profiles. It contains a list of profile
|
||||
# objects and a URL link to get the the next set of results.
|
||||
# objects and a URL link to get the next set of results.
|
||||
#
|
||||
class ProfileListResult
|
||||
|
||||
|
|
|
@ -0,0 +1,16 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::CDN::Mgmt::V2017_10_12
|
||||
module Models
|
||||
#
|
||||
# Defines values for ProtocolType
|
||||
#
|
||||
module ProtocolType
|
||||
ServerNameIndication = "ServerNameIndication"
|
||||
IPBased = "IPBased"
|
||||
end
|
||||
end
|
||||
end
|
|
@ -15,7 +15,7 @@ module Azure::CDN::Mgmt::V2017_10_12
|
|||
|
||||
# @return [SkuName] Name of the pricing tier. Possible values include:
|
||||
# 'Standard_Verizon', 'Premium_Verizon', 'Custom_Verizon',
|
||||
# 'Standard_Akamai', 'Standard_ChinaCdn'
|
||||
# 'Standard_Akamai', 'Standard_ChinaCdn', 'Standard_Microsoft'
|
||||
attr_accessor :name
|
||||
|
||||
|
||||
|
|
|
@ -14,6 +14,7 @@ module Azure::CDN::Mgmt::V2017_10_12
|
|||
CustomVerizon = "Custom_Verizon"
|
||||
StandardAkamai = "Standard_Akamai"
|
||||
StandardChinaCdn = "Standard_ChinaCdn"
|
||||
StandardMicrosoft = "Standard_Microsoft"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -0,0 +1,73 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::CDN::Mgmt::V2017_10_12
|
||||
module Models
|
||||
#
|
||||
# Defines the certificate source parameters using user's keyvault
|
||||
# certificate for enabling SSL.
|
||||
#
|
||||
class UserManagedHttpsParameters < CustomDomainHttpsParameters
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
|
||||
def initialize
|
||||
@certificateSource = "AzureKeyVault"
|
||||
end
|
||||
|
||||
attr_accessor :certificateSource
|
||||
|
||||
# @return [KeyVaultCertificateSourceParameters] Defines the certificate
|
||||
# source parameters using user's keyvault certificate for enabling SSL.
|
||||
attr_accessor :certificate_source_parameters
|
||||
|
||||
|
||||
#
|
||||
# Mapper for UserManagedHttpsParameters class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'AzureKeyVault',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'UserManagedHttpsParameters',
|
||||
model_properties: {
|
||||
protocol_type: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
serialized_name: 'protocolType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
certificateSource: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
serialized_name: 'certificateSource',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
certificate_source_parameters: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
serialized_name: 'certificateSourceParameters',
|
||||
default_value: {},
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'KeyVaultCertificateSourceParameters'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -451,7 +451,7 @@ module Azure::CDN::Mgmt::V2017_10_12
|
|||
|
||||
#
|
||||
# Generates a dynamic SSO URI used to sign in to the CDN supplemental portal.
|
||||
# Supplemnetal portal is used to configure advanced feature capabilities that
|
||||
# Supplemental portal is used to configure advanced feature capabilities that
|
||||
# are not yet available in the Azure portal, such as core reports in a standard
|
||||
# profile; rules engine, advanced HTTP reports, and real-time stats and alerts
|
||||
# in a premium profile. The SSO URI changes approximately every 10 minutes.
|
||||
|
@ -472,7 +472,7 @@ module Azure::CDN::Mgmt::V2017_10_12
|
|||
|
||||
#
|
||||
# Generates a dynamic SSO URI used to sign in to the CDN supplemental portal.
|
||||
# Supplemnetal portal is used to configure advanced feature capabilities that
|
||||
# Supplemental portal is used to configure advanced feature capabilities that
|
||||
# are not yet available in the Azure portal, such as core reports in a standard
|
||||
# profile; rules engine, advanced HTTP reports, and real-time stats and alerts
|
||||
# in a premium profile. The SSO URI changes approximately every 10 minutes.
|
||||
|
@ -492,7 +492,7 @@ module Azure::CDN::Mgmt::V2017_10_12
|
|||
|
||||
#
|
||||
# Generates a dynamic SSO URI used to sign in to the CDN supplemental portal.
|
||||
# Supplemnetal portal is used to configure advanced feature capabilities that
|
||||
# Supplemental portal is used to configure advanced feature capabilities that
|
||||
# are not yet available in the Azure portal, such as core reports in a standard
|
||||
# profile; rules engine, advanced HTTP reports, and real-time stats and alerts
|
||||
# in a premium profile. The SSO URI changes approximately every 10 minutes.
|
||||
|
|
|
@ -19,40 +19,43 @@ module Azure::CDN::Profiles::Latest
|
|||
Sku = Azure::CDN::Mgmt::V2017_10_12::Models::Sku
|
||||
OriginListResult = Azure::CDN::Mgmt::V2017_10_12::Models::OriginListResult
|
||||
ProfileListResult = Azure::CDN::Mgmt::V2017_10_12::Models::ProfileListResult
|
||||
PurgeParameters = Azure::CDN::Mgmt::V2017_10_12::Models::PurgeParameters
|
||||
SsoUri = Azure::CDN::Mgmt::V2017_10_12::Models::SsoUri
|
||||
LoadParameters = Azure::CDN::Mgmt::V2017_10_12::Models::LoadParameters
|
||||
DeepCreatedOrigin = Azure::CDN::Mgmt::V2017_10_12::Models::DeepCreatedOrigin
|
||||
CidrIpAddress = Azure::CDN::Mgmt::V2017_10_12::Models::CidrIpAddress
|
||||
EndpointListResult = Azure::CDN::Mgmt::V2017_10_12::Models::EndpointListResult
|
||||
OperationsListResult = Azure::CDN::Mgmt::V2017_10_12::Models::OperationsListResult
|
||||
DeliveryRuleAction = Azure::CDN::Mgmt::V2017_10_12::Models::DeliveryRuleAction
|
||||
ProfileUpdateParameters = Azure::CDN::Mgmt::V2017_10_12::Models::ProfileUpdateParameters
|
||||
DeliveryRule = Azure::CDN::Mgmt::V2017_10_12::Models::DeliveryRule
|
||||
EndpointUpdateParameters = Azure::CDN::Mgmt::V2017_10_12::Models::EndpointUpdateParameters
|
||||
CustomDomainParameters = Azure::CDN::Mgmt::V2017_10_12::Models::CustomDomainParameters
|
||||
EdgenodeResult = Azure::CDN::Mgmt::V2017_10_12::Models::EdgenodeResult
|
||||
CustomDomainListResult = Azure::CDN::Mgmt::V2017_10_12::Models::CustomDomainListResult
|
||||
DeepCreatedOrigin = Azure::CDN::Mgmt::V2017_10_12::Models::DeepCreatedOrigin
|
||||
CustomDomainHttpsParameters = Azure::CDN::Mgmt::V2017_10_12::Models::CustomDomainHttpsParameters
|
||||
EndpointListResult = Azure::CDN::Mgmt::V2017_10_12::Models::EndpointListResult
|
||||
CdnCertificateSourceParameters = Azure::CDN::Mgmt::V2017_10_12::Models::CdnCertificateSourceParameters
|
||||
DeliveryRuleAction = Azure::CDN::Mgmt::V2017_10_12::Models::DeliveryRuleAction
|
||||
ErrorResponse = Azure::CDN::Mgmt::V2017_10_12::Models::ErrorResponse
|
||||
DeliveryRule = Azure::CDN::Mgmt::V2017_10_12::Models::DeliveryRule
|
||||
KeyVaultCertificateSourceParameters = Azure::CDN::Mgmt::V2017_10_12::Models::KeyVaultCertificateSourceParameters
|
||||
EndpointUpdateParameters = Azure::CDN::Mgmt::V2017_10_12::Models::EndpointUpdateParameters
|
||||
UrlPathConditionParameters = Azure::CDN::Mgmt::V2017_10_12::Models::UrlPathConditionParameters
|
||||
EdgenodeResult = Azure::CDN::Mgmt::V2017_10_12::Models::EdgenodeResult
|
||||
UrlFileExtensionConditionParameters = Azure::CDN::Mgmt::V2017_10_12::Models::UrlFileExtensionConditionParameters
|
||||
CustomDomainListResult = Azure::CDN::Mgmt::V2017_10_12::Models::CustomDomainListResult
|
||||
CacheExpirationActionParameters = Azure::CDN::Mgmt::V2017_10_12::Models::CacheExpirationActionParameters
|
||||
ValidateCustomDomainInput = Azure::CDN::Mgmt::V2017_10_12::Models::ValidateCustomDomainInput
|
||||
IpAddressGroup = Azure::CDN::Mgmt::V2017_10_12::Models::IpAddressGroup
|
||||
PurgeParameters = Azure::CDN::Mgmt::V2017_10_12::Models::PurgeParameters
|
||||
ValidateCustomDomainOutput = Azure::CDN::Mgmt::V2017_10_12::Models::ValidateCustomDomainOutput
|
||||
Resource = Azure::CDN::Mgmt::V2017_10_12::Models::Resource
|
||||
CheckNameAvailabilityInput = Azure::CDN::Mgmt::V2017_10_12::Models::CheckNameAvailabilityInput
|
||||
Operation = Azure::CDN::Mgmt::V2017_10_12::Models::Operation
|
||||
ProfileUpdateParameters = Azure::CDN::Mgmt::V2017_10_12::Models::ProfileUpdateParameters
|
||||
LoadParameters = Azure::CDN::Mgmt::V2017_10_12::Models::LoadParameters
|
||||
IpAddressGroup = Azure::CDN::Mgmt::V2017_10_12::Models::IpAddressGroup
|
||||
OperationDisplay = Azure::CDN::Mgmt::V2017_10_12::Models::OperationDisplay
|
||||
DeliveryRuleCondition = Azure::CDN::Mgmt::V2017_10_12::Models::DeliveryRuleCondition
|
||||
CheckNameAvailabilityInput = Azure::CDN::Mgmt::V2017_10_12::Models::CheckNameAvailabilityInput
|
||||
CidrIpAddress = Azure::CDN::Mgmt::V2017_10_12::Models::CidrIpAddress
|
||||
CheckNameAvailabilityOutput = Azure::CDN::Mgmt::V2017_10_12::Models::CheckNameAvailabilityOutput
|
||||
UrlPathConditionParameters = Azure::CDN::Mgmt::V2017_10_12::Models::UrlPathConditionParameters
|
||||
SupportedOptimizationTypesListResult = Azure::CDN::Mgmt::V2017_10_12::Models::SupportedOptimizationTypesListResult
|
||||
ValidateProbeInput = Azure::CDN::Mgmt::V2017_10_12::Models::ValidateProbeInput
|
||||
CacheExpirationActionParameters = Azure::CDN::Mgmt::V2017_10_12::Models::CacheExpirationActionParameters
|
||||
EndpointPropertiesUpdateParametersDeliveryPolicy = Azure::CDN::Mgmt::V2017_10_12::Models::EndpointPropertiesUpdateParametersDeliveryPolicy
|
||||
ValidateProbeOutput = Azure::CDN::Mgmt::V2017_10_12::Models::ValidateProbeOutput
|
||||
GeoFilter = Azure::CDN::Mgmt::V2017_10_12::Models::GeoFilter
|
||||
ResourceUsage = Azure::CDN::Mgmt::V2017_10_12::Models::ResourceUsage
|
||||
UrlFileExtensionConditionParameters = Azure::CDN::Mgmt::V2017_10_12::Models::UrlFileExtensionConditionParameters
|
||||
OperationsListResult = Azure::CDN::Mgmt::V2017_10_12::Models::OperationsListResult
|
||||
ResourceUsageListResult = Azure::CDN::Mgmt::V2017_10_12::Models::ResourceUsageListResult
|
||||
EndpointPropertiesUpdateParametersDeliveryPolicy = Azure::CDN::Mgmt::V2017_10_12::Models::EndpointPropertiesUpdateParametersDeliveryPolicy
|
||||
OperationDisplay = Azure::CDN::Mgmt::V2017_10_12::Models::OperationDisplay
|
||||
SupportedOptimizationTypesListResult = Azure::CDN::Mgmt::V2017_10_12::Models::SupportedOptimizationTypesListResult
|
||||
Operation = Azure::CDN::Mgmt::V2017_10_12::Models::Operation
|
||||
Profile = Azure::CDN::Mgmt::V2017_10_12::Models::Profile
|
||||
Endpoint = Azure::CDN::Mgmt::V2017_10_12::Models::Endpoint
|
||||
DeliveryRuleUrlPathCondition = Azure::CDN::Mgmt::V2017_10_12::Models::DeliveryRuleUrlPathCondition
|
||||
|
@ -61,6 +64,8 @@ module Azure::CDN::Profiles::Latest
|
|||
Origin = Azure::CDN::Mgmt::V2017_10_12::Models::Origin
|
||||
ProxyResource = Azure::CDN::Mgmt::V2017_10_12::Models::ProxyResource
|
||||
CustomDomain = Azure::CDN::Mgmt::V2017_10_12::Models::CustomDomain
|
||||
CdnManagedHttpsParameters = Azure::CDN::Mgmt::V2017_10_12::Models::CdnManagedHttpsParameters
|
||||
UserManagedHttpsParameters = Azure::CDN::Mgmt::V2017_10_12::Models::UserManagedHttpsParameters
|
||||
EdgeNode = Azure::CDN::Mgmt::V2017_10_12::Models::EdgeNode
|
||||
TrackedResource = Azure::CDN::Mgmt::V2017_10_12::Models::TrackedResource
|
||||
SkuName = Azure::CDN::Mgmt::V2017_10_12::Models::SkuName
|
||||
|
@ -73,6 +78,8 @@ module Azure::CDN::Profiles::Latest
|
|||
CustomDomainResourceState = Azure::CDN::Mgmt::V2017_10_12::Models::CustomDomainResourceState
|
||||
CustomHttpsProvisioningState = Azure::CDN::Mgmt::V2017_10_12::Models::CustomHttpsProvisioningState
|
||||
CustomHttpsProvisioningSubstate = Azure::CDN::Mgmt::V2017_10_12::Models::CustomHttpsProvisioningSubstate
|
||||
ProtocolType = Azure::CDN::Mgmt::V2017_10_12::Models::ProtocolType
|
||||
CertificateType = Azure::CDN::Mgmt::V2017_10_12::Models::CertificateType
|
||||
ResourceType = Azure::CDN::Mgmt::V2017_10_12::Models::ResourceType
|
||||
end
|
||||
|
||||
|
@ -139,56 +146,59 @@ module Azure::CDN::Profiles::Latest
|
|||
def profile_list_result
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::ProfileListResult
|
||||
end
|
||||
def purge_parameters
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::PurgeParameters
|
||||
end
|
||||
def sso_uri
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::SsoUri
|
||||
end
|
||||
def load_parameters
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::LoadParameters
|
||||
end
|
||||
def deep_created_origin
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::DeepCreatedOrigin
|
||||
end
|
||||
def cidr_ip_address
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::CidrIpAddress
|
||||
end
|
||||
def endpoint_list_result
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::EndpointListResult
|
||||
end
|
||||
def operations_list_result
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::OperationsListResult
|
||||
end
|
||||
def delivery_rule_action
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::DeliveryRuleAction
|
||||
end
|
||||
def profile_update_parameters
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::ProfileUpdateParameters
|
||||
end
|
||||
def delivery_rule
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::DeliveryRule
|
||||
end
|
||||
def endpoint_update_parameters
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::EndpointUpdateParameters
|
||||
end
|
||||
def custom_domain_parameters
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::CustomDomainParameters
|
||||
end
|
||||
def edgenode_result
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::EdgenodeResult
|
||||
def deep_created_origin
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::DeepCreatedOrigin
|
||||
end
|
||||
def custom_domain_list_result
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::CustomDomainListResult
|
||||
def custom_domain_https_parameters
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::CustomDomainHttpsParameters
|
||||
end
|
||||
def endpoint_list_result
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::EndpointListResult
|
||||
end
|
||||
def cdn_certificate_source_parameters
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::CdnCertificateSourceParameters
|
||||
end
|
||||
def delivery_rule_action
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::DeliveryRuleAction
|
||||
end
|
||||
def error_response
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::ErrorResponse
|
||||
end
|
||||
def delivery_rule
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::DeliveryRule
|
||||
end
|
||||
def key_vault_certificate_source_parameters
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::KeyVaultCertificateSourceParameters
|
||||
end
|
||||
def endpoint_update_parameters
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::EndpointUpdateParameters
|
||||
end
|
||||
def url_path_condition_parameters
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::UrlPathConditionParameters
|
||||
end
|
||||
def edgenode_result
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::EdgenodeResult
|
||||
end
|
||||
def url_file_extension_condition_parameters
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::UrlFileExtensionConditionParameters
|
||||
end
|
||||
def custom_domain_list_result
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::CustomDomainListResult
|
||||
end
|
||||
def cache_expiration_action_parameters
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::CacheExpirationActionParameters
|
||||
end
|
||||
def validate_custom_domain_input
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::ValidateCustomDomainInput
|
||||
end
|
||||
def ip_address_group
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::IpAddressGroup
|
||||
def purge_parameters
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::PurgeParameters
|
||||
end
|
||||
def validate_custom_domain_output
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::ValidateCustomDomainOutput
|
||||
|
@ -196,23 +206,41 @@ module Azure::CDN::Profiles::Latest
|
|||
def resource
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::Resource
|
||||
end
|
||||
def check_name_availability_input
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::CheckNameAvailabilityInput
|
||||
def operation
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::Operation
|
||||
end
|
||||
def profile_update_parameters
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::ProfileUpdateParameters
|
||||
end
|
||||
def load_parameters
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::LoadParameters
|
||||
end
|
||||
def ip_address_group
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::IpAddressGroup
|
||||
end
|
||||
def operation_display
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::OperationDisplay
|
||||
end
|
||||
def delivery_rule_condition
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::DeliveryRuleCondition
|
||||
end
|
||||
def check_name_availability_input
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::CheckNameAvailabilityInput
|
||||
end
|
||||
def cidr_ip_address
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::CidrIpAddress
|
||||
end
|
||||
def check_name_availability_output
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::CheckNameAvailabilityOutput
|
||||
end
|
||||
def url_path_condition_parameters
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::UrlPathConditionParameters
|
||||
def supported_optimization_types_list_result
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::SupportedOptimizationTypesListResult
|
||||
end
|
||||
def validate_probe_input
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::ValidateProbeInput
|
||||
end
|
||||
def cache_expiration_action_parameters
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::CacheExpirationActionParameters
|
||||
def endpoint_properties_update_parameters_delivery_policy
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::EndpointPropertiesUpdateParametersDeliveryPolicy
|
||||
end
|
||||
def validate_probe_output
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::ValidateProbeOutput
|
||||
|
@ -223,24 +251,12 @@ module Azure::CDN::Profiles::Latest
|
|||
def resource_usage
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::ResourceUsage
|
||||
end
|
||||
def url_file_extension_condition_parameters
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::UrlFileExtensionConditionParameters
|
||||
def operations_list_result
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::OperationsListResult
|
||||
end
|
||||
def resource_usage_list_result
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::ResourceUsageListResult
|
||||
end
|
||||
def endpoint_properties_update_parameters_delivery_policy
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::EndpointPropertiesUpdateParametersDeliveryPolicy
|
||||
end
|
||||
def operation_display
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::OperationDisplay
|
||||
end
|
||||
def supported_optimization_types_list_result
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::SupportedOptimizationTypesListResult
|
||||
end
|
||||
def operation
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::Operation
|
||||
end
|
||||
def profile
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::Profile
|
||||
end
|
||||
|
@ -265,6 +281,12 @@ module Azure::CDN::Profiles::Latest
|
|||
def custom_domain
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::CustomDomain
|
||||
end
|
||||
def cdn_managed_https_parameters
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::CdnManagedHttpsParameters
|
||||
end
|
||||
def user_managed_https_parameters
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::UserManagedHttpsParameters
|
||||
end
|
||||
def edge_node
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::EdgeNode
|
||||
end
|
||||
|
@ -301,6 +323,12 @@ module Azure::CDN::Profiles::Latest
|
|||
def custom_https_provisioning_substate
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::CustomHttpsProvisioningSubstate
|
||||
end
|
||||
def protocol_type
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::ProtocolType
|
||||
end
|
||||
def certificate_type
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::CertificateType
|
||||
end
|
||||
def resource_type
|
||||
Azure::CDN::Mgmt::V2017_10_12::Models::ResourceType
|
||||
end
|
||||
|
|
|
@ -3,5 +3,5 @@
|
|||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
|
||||
module Azure::CDN::Mgmt
|
||||
VERSION = '0.17.1'
|
||||
VERSION = '0.17.2'
|
||||
end
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
--require spec_helper
|
||||
--color
|
||||
--format documentation
|
|
@ -0,0 +1,21 @@
|
|||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2015 Microsoft Corporation
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
|
@ -0,0 +1,5 @@
|
|||
# encoding: utf-8
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
|
||||
require "bundler/gem_tasks"
|
|
@ -0,0 +1,42 @@
|
|||
# encoding: utf-8
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
|
||||
lib = File.expand_path('../lib', __FILE__)
|
||||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
||||
|
||||
require '../azure_mgmt_mariadb/lib/module_definition'
|
||||
require '../azure_mgmt_mariadb/lib/version'
|
||||
|
||||
Gem::Specification.new do |spec|
|
||||
spec.name = 'azure_mgmt_mariadb'
|
||||
spec.version = Azure::MariaDB::Mgmt::VERSION
|
||||
spec.authors = 'Microsoft Corporation'
|
||||
spec.email = 'azrubyteam@microsoft.com'
|
||||
spec.description = 'Microsoft Azure MariaDB Library for Ruby'
|
||||
spec.summary = 'Official Ruby client library to consume Microsoft Azure MariaDB services.'
|
||||
spec.homepage = 'https://aka.ms/azure-sdk-for-ruby'
|
||||
spec.license = 'MIT'
|
||||
spec.metadata = {
|
||||
'bug_tracker_uri' => 'https://github.com/Azure/azure-sdk-for-ruby/issues',
|
||||
'changelog_uri' => 'https://github.com/Azure/azure-sdk-for-ruby/blob/master/ChangeLog.md',
|
||||
'documentation_uri' => 'https://azure.microsoft.com/en-us/develop/ruby/',
|
||||
'homepage_uri' => 'https://aka.ms/azure-sdk-for-ruby',
|
||||
'source_code_uri' => 'https://github.com/Azure/azure-sdk-for-ruby/tree/master/management/azure_mgmt_mariadb'
|
||||
}
|
||||
|
||||
spec.files = Dir["LICENSE.txt", "lib/**/*"]
|
||||
spec.files.reject! { |fn| fn.include? "build.json" }
|
||||
spec.bindir = 'bin'
|
||||
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
||||
spec.require_paths = ['lib']
|
||||
|
||||
spec.required_ruby_version = '>= 2.0.0'
|
||||
|
||||
spec.add_development_dependency 'bundler', '~> 1.9'
|
||||
spec.add_development_dependency 'rake', '~> 10'
|
||||
spec.add_development_dependency 'rspec', '~> 3'
|
||||
spec.add_development_dependency 'dotenv', '~> 2'
|
||||
|
||||
spec.add_runtime_dependency 'ms_rest_azure', '~> 0.11.0'
|
||||
end
|
|
@ -0,0 +1,76 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
require 'uri'
|
||||
require 'cgi'
|
||||
require 'date'
|
||||
require 'json'
|
||||
require 'base64'
|
||||
require 'erb'
|
||||
require 'securerandom'
|
||||
require 'time'
|
||||
require 'timeliness'
|
||||
require 'faraday'
|
||||
require 'faraday-cookie_jar'
|
||||
require 'concurrent'
|
||||
require 'ms_rest'
|
||||
require '2018-06-01-preview/generated/azure_mgmt_mariadb/module_definition'
|
||||
require 'ms_rest_azure'
|
||||
|
||||
module Azure::MariaDB::Mgmt::V2018_06_01_preview
|
||||
autoload :Servers, '2018-06-01-preview/generated/azure_mgmt_mariadb/servers.rb'
|
||||
autoload :FirewallRules, '2018-06-01-preview/generated/azure_mgmt_mariadb/firewall_rules.rb'
|
||||
autoload :VirtualNetworkRules, '2018-06-01-preview/generated/azure_mgmt_mariadb/virtual_network_rules.rb'
|
||||
autoload :Databases, '2018-06-01-preview/generated/azure_mgmt_mariadb/databases.rb'
|
||||
autoload :Configurations, '2018-06-01-preview/generated/azure_mgmt_mariadb/configurations.rb'
|
||||
autoload :LogFiles, '2018-06-01-preview/generated/azure_mgmt_mariadb/log_files.rb'
|
||||
autoload :LocationBasedPerformanceTier, '2018-06-01-preview/generated/azure_mgmt_mariadb/location_based_performance_tier.rb'
|
||||
autoload :CheckNameAvailability, '2018-06-01-preview/generated/azure_mgmt_mariadb/check_name_availability.rb'
|
||||
autoload :ServerSecurityAlertPolicies, '2018-06-01-preview/generated/azure_mgmt_mariadb/server_security_alert_policies.rb'
|
||||
autoload :Operations, '2018-06-01-preview/generated/azure_mgmt_mariadb/operations.rb'
|
||||
autoload :MariaDBManagementClient, '2018-06-01-preview/generated/azure_mgmt_mariadb/maria_dbmanagement_client.rb'
|
||||
|
||||
module Models
|
||||
autoload :VirtualNetworkRuleListResult, '2018-06-01-preview/generated/azure_mgmt_mariadb/models/virtual_network_rule_list_result.rb'
|
||||
autoload :FirewallRuleListResult, '2018-06-01-preview/generated/azure_mgmt_mariadb/models/firewall_rule_list_result.rb'
|
||||
autoload :PerformanceTierListResult, '2018-06-01-preview/generated/azure_mgmt_mariadb/models/performance_tier_list_result.rb'
|
||||
autoload :StorageProfile, '2018-06-01-preview/generated/azure_mgmt_mariadb/models/storage_profile.rb'
|
||||
autoload :ProxyResource, '2018-06-01-preview/generated/azure_mgmt_mariadb/models/proxy_resource.rb'
|
||||
autoload :NameAvailabilityRequest, '2018-06-01-preview/generated/azure_mgmt_mariadb/models/name_availability_request.rb'
|
||||
autoload :Operation, '2018-06-01-preview/generated/azure_mgmt_mariadb/models/operation.rb'
|
||||
autoload :PerformanceTierServiceLevelObjectives, '2018-06-01-preview/generated/azure_mgmt_mariadb/models/performance_tier_service_level_objectives.rb'
|
||||
autoload :ServerPropertiesForCreate, '2018-06-01-preview/generated/azure_mgmt_mariadb/models/server_properties_for_create.rb'
|
||||
autoload :LogFileListResult, '2018-06-01-preview/generated/azure_mgmt_mariadb/models/log_file_list_result.rb'
|
||||
autoload :OperationListResult, '2018-06-01-preview/generated/azure_mgmt_mariadb/models/operation_list_result.rb'
|
||||
autoload :ServerUpdateParameters, '2018-06-01-preview/generated/azure_mgmt_mariadb/models/server_update_parameters.rb'
|
||||
autoload :PerformanceTierProperties, '2018-06-01-preview/generated/azure_mgmt_mariadb/models/performance_tier_properties.rb'
|
||||
autoload :DatabaseListResult, '2018-06-01-preview/generated/azure_mgmt_mariadb/models/database_list_result.rb'
|
||||
autoload :ServerForCreate, '2018-06-01-preview/generated/azure_mgmt_mariadb/models/server_for_create.rb'
|
||||
autoload :NameAvailability, '2018-06-01-preview/generated/azure_mgmt_mariadb/models/name_availability.rb'
|
||||
autoload :Sku, '2018-06-01-preview/generated/azure_mgmt_mariadb/models/sku.rb'
|
||||
autoload :ConfigurationListResult, '2018-06-01-preview/generated/azure_mgmt_mariadb/models/configuration_list_result.rb'
|
||||
autoload :ServerListResult, '2018-06-01-preview/generated/azure_mgmt_mariadb/models/server_list_result.rb'
|
||||
autoload :OperationDisplay, '2018-06-01-preview/generated/azure_mgmt_mariadb/models/operation_display.rb'
|
||||
autoload :TrackedResource, '2018-06-01-preview/generated/azure_mgmt_mariadb/models/tracked_resource.rb'
|
||||
autoload :ServerPropertiesForDefaultCreate, '2018-06-01-preview/generated/azure_mgmt_mariadb/models/server_properties_for_default_create.rb'
|
||||
autoload :ServerPropertiesForRestore, '2018-06-01-preview/generated/azure_mgmt_mariadb/models/server_properties_for_restore.rb'
|
||||
autoload :ServerPropertiesForGeoRestore, '2018-06-01-preview/generated/azure_mgmt_mariadb/models/server_properties_for_geo_restore.rb'
|
||||
autoload :Server, '2018-06-01-preview/generated/azure_mgmt_mariadb/models/server.rb'
|
||||
autoload :FirewallRule, '2018-06-01-preview/generated/azure_mgmt_mariadb/models/firewall_rule.rb'
|
||||
autoload :VirtualNetworkRule, '2018-06-01-preview/generated/azure_mgmt_mariadb/models/virtual_network_rule.rb'
|
||||
autoload :Database, '2018-06-01-preview/generated/azure_mgmt_mariadb/models/database.rb'
|
||||
autoload :Configuration, '2018-06-01-preview/generated/azure_mgmt_mariadb/models/configuration.rb'
|
||||
autoload :LogFile, '2018-06-01-preview/generated/azure_mgmt_mariadb/models/log_file.rb'
|
||||
autoload :ServerSecurityAlertPolicy, '2018-06-01-preview/generated/azure_mgmt_mariadb/models/server_security_alert_policy.rb'
|
||||
autoload :ServerVersion, '2018-06-01-preview/generated/azure_mgmt_mariadb/models/server_version.rb'
|
||||
autoload :SslEnforcementEnum, '2018-06-01-preview/generated/azure_mgmt_mariadb/models/ssl_enforcement_enum.rb'
|
||||
autoload :ServerState, '2018-06-01-preview/generated/azure_mgmt_mariadb/models/server_state.rb'
|
||||
autoload :GeoRedundantBackup, '2018-06-01-preview/generated/azure_mgmt_mariadb/models/geo_redundant_backup.rb'
|
||||
autoload :SkuTier, '2018-06-01-preview/generated/azure_mgmt_mariadb/models/sku_tier.rb'
|
||||
autoload :VirtualNetworkRuleState, '2018-06-01-preview/generated/azure_mgmt_mariadb/models/virtual_network_rule_state.rb'
|
||||
autoload :OperationOrigin, '2018-06-01-preview/generated/azure_mgmt_mariadb/models/operation_origin.rb'
|
||||
autoload :ServerSecurityAlertPolicyState, '2018-06-01-preview/generated/azure_mgmt_mariadb/models/server_security_alert_policy_state.rb'
|
||||
end
|
||||
end
|
|
@ -0,0 +1,123 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::MariaDB::Mgmt::V2018_06_01_preview
|
||||
#
|
||||
# MariaDB Client
|
||||
#
|
||||
class CheckNameAvailability
|
||||
include MsRestAzure
|
||||
|
||||
#
|
||||
# Creates and initializes a new instance of the CheckNameAvailability class.
|
||||
# @param client service class for accessing basic functionality.
|
||||
#
|
||||
def initialize(client)
|
||||
@client = client
|
||||
end
|
||||
|
||||
# @return [MariaDBManagementClient] reference to the MariaDBManagementClient
|
||||
attr_reader :client
|
||||
|
||||
#
|
||||
# Check the availability of name for resource
|
||||
#
|
||||
# @param name_availability_request [NameAvailabilityRequest] The required
|
||||
# parameters for checking if resource name is available.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [NameAvailability] operation results.
|
||||
#
|
||||
def execute(name_availability_request, custom_headers:nil)
|
||||
response = execute_async(name_availability_request, custom_headers:custom_headers).value!
|
||||
response.body unless response.nil?
|
||||
end
|
||||
|
||||
#
|
||||
# Check the availability of name for resource
|
||||
#
|
||||
# @param name_availability_request [NameAvailabilityRequest] The required
|
||||
# parameters for checking if resource name is available.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
||||
#
|
||||
def execute_with_http_info(name_availability_request, custom_headers:nil)
|
||||
execute_async(name_availability_request, custom_headers:custom_headers).value!
|
||||
end
|
||||
|
||||
#
|
||||
# Check the availability of name for resource
|
||||
#
|
||||
# @param name_availability_request [NameAvailabilityRequest] The required
|
||||
# parameters for checking if resource name is available.
|
||||
# @param [Hash{String => String}] A hash of custom headers that will be added
|
||||
# to the HTTP request.
|
||||
#
|
||||
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
||||
#
|
||||
def execute_async(name_availability_request, custom_headers:nil)
|
||||
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
||||
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
||||
fail ArgumentError, 'name_availability_request is nil' if name_availability_request.nil?
|
||||
|
||||
|
||||
request_headers = {}
|
||||
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
||||
|
||||
# Set Headers
|
||||
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
||||
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
||||
|
||||
# Serialize Request
|
||||
request_mapper = Azure::MariaDB::Mgmt::V2018_06_01_preview::Models::NameAvailabilityRequest.mapper()
|
||||
request_content = @client.serialize(request_mapper, name_availability_request)
|
||||
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
||||
|
||||
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.DBforMariaDB/checkNameAvailability'
|
||||
|
||||
request_url = @base_url || @client.base_url
|
||||
|
||||
options = {
|
||||
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
||||
path_params: {'subscriptionId' => @client.subscription_id},
|
||||
query_params: {'api-version' => @client.api_version},
|
||||
body: request_content,
|
||||
headers: request_headers.merge(custom_headers || {}),
|
||||
base_url: request_url
|
||||
}
|
||||
promise = @client.make_request_async(:post, path_template, options)
|
||||
|
||||
promise = promise.then do |result|
|
||||
http_response = result.response
|
||||
status_code = http_response.status
|
||||
response_content = http_response.body
|
||||
unless status_code == 200
|
||||
error_model = JSON.load(response_content)
|
||||
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
||||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
||||
result_mapper = Azure::MariaDB::Mgmt::V2018_06_01_preview::Models::NameAvailability.mapper()
|
||||
result.body = @client.deserialize(result_mapper, parsed_response)
|
||||
rescue Exception => e
|
||||
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
||||
end
|
||||
end
|
||||
|
||||
result
|
||||
end
|
||||
|
||||
promise.execute
|
||||
end
|
||||
|
||||
end
|
||||
end
|
|
@ -0,0 +1,393 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::MariaDB::Mgmt::V2018_06_01_preview
|
||||
#
|
||||
# MariaDB Client
|
||||
#
|
||||
class Configurations
|
||||
include MsRestAzure
|
||||
|
||||
#
|
||||
# Creates and initializes a new instance of the Configurations class.
|
||||
# @param client service class for accessing basic functionality.
|
||||
#
|
||||
def initialize(client)
|
||||
@client = client
|
||||
end
|
||||
|
||||
# @return [MariaDBManagementClient] reference to the MariaDBManagementClient
|
||||
attr_reader :client
|
||||
|
||||
#
|
||||
# Updates a configuration of a server.
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group that
|
||||
# contains the resource. You can obtain this value from the Azure Resource
|
||||
# Manager API or the portal.
|
||||
# @param server_name [String] The name of the server.
|
||||
# @param configuration_name [String] The name of the server configuration.
|
||||
# @param parameters [Configuration] The required parameters for updating a
|
||||
# server configuration.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [Configuration] operation results.
|
||||
#
|
||||
def create_or_update(resource_group_name, server_name, configuration_name, parameters, custom_headers:nil)
|
||||
response = create_or_update_async(resource_group_name, server_name, configuration_name, parameters, custom_headers:custom_headers).value!
|
||||
response.body unless response.nil?
|
||||
end
|
||||
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group that
|
||||
# contains the resource. You can obtain this value from the Azure Resource
|
||||
# Manager API or the portal.
|
||||
# @param server_name [String] The name of the server.
|
||||
# @param configuration_name [String] The name of the server configuration.
|
||||
# @param parameters [Configuration] The required parameters for updating a
|
||||
# server configuration.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [Concurrent::Promise] promise which provides async access to http
|
||||
# response.
|
||||
#
|
||||
def create_or_update_async(resource_group_name, server_name, configuration_name, parameters, custom_headers:nil)
|
||||
# Send request
|
||||
promise = begin_create_or_update_async(resource_group_name, server_name, configuration_name, parameters, custom_headers:custom_headers)
|
||||
|
||||
promise = promise.then do |response|
|
||||
# Defining deserialization method.
|
||||
deserialize_method = lambda do |parsed_response|
|
||||
result_mapper = Azure::MariaDB::Mgmt::V2018_06_01_preview::Models::Configuration.mapper()
|
||||
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
||||
end
|
||||
|
||||
# Waiting for response.
|
||||
@client.get_long_running_operation_result(response, deserialize_method)
|
||||
end
|
||||
|
||||
promise
|
||||
end
|
||||
|
||||
#
|
||||
# Gets information about a configuration of server.
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group that
|
||||
# contains the resource. You can obtain this value from the Azure Resource
|
||||
# Manager API or the portal.
|
||||
# @param server_name [String] The name of the server.
|
||||
# @param configuration_name [String] The name of the server configuration.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [Configuration] operation results.
|
||||
#
|
||||
def get(resource_group_name, server_name, configuration_name, custom_headers:nil)
|
||||
response = get_async(resource_group_name, server_name, configuration_name, custom_headers:custom_headers).value!
|
||||
response.body unless response.nil?
|
||||
end
|
||||
|
||||
#
|
||||
# Gets information about a configuration of server.
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group that
|
||||
# contains the resource. You can obtain this value from the Azure Resource
|
||||
# Manager API or the portal.
|
||||
# @param server_name [String] The name of the server.
|
||||
# @param configuration_name [String] The name of the server configuration.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
||||
#
|
||||
def get_with_http_info(resource_group_name, server_name, configuration_name, custom_headers:nil)
|
||||
get_async(resource_group_name, server_name, configuration_name, custom_headers:custom_headers).value!
|
||||
end
|
||||
|
||||
#
|
||||
# Gets information about a configuration of server.
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group that
|
||||
# contains the resource. You can obtain this value from the Azure Resource
|
||||
# Manager API or the portal.
|
||||
# @param server_name [String] The name of the server.
|
||||
# @param configuration_name [String] The name of the server configuration.
|
||||
# @param [Hash{String => String}] A hash of custom headers that will be added
|
||||
# to the HTTP request.
|
||||
#
|
||||
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
||||
#
|
||||
def get_async(resource_group_name, server_name, configuration_name, custom_headers:nil)
|
||||
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
||||
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
||||
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
||||
fail ArgumentError, 'server_name is nil' if server_name.nil?
|
||||
fail ArgumentError, 'configuration_name is nil' if configuration_name.nil?
|
||||
|
||||
|
||||
request_headers = {}
|
||||
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
||||
|
||||
# Set Headers
|
||||
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
||||
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
||||
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/configurations/{configurationName}'
|
||||
|
||||
request_url = @base_url || @client.base_url
|
||||
|
||||
options = {
|
||||
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
||||
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'serverName' => server_name,'configurationName' => configuration_name},
|
||||
query_params: {'api-version' => @client.api_version},
|
||||
headers: request_headers.merge(custom_headers || {}),
|
||||
base_url: request_url
|
||||
}
|
||||
promise = @client.make_request_async(:get, path_template, options)
|
||||
|
||||
promise = promise.then do |result|
|
||||
http_response = result.response
|
||||
status_code = http_response.status
|
||||
response_content = http_response.body
|
||||
unless status_code == 200
|
||||
error_model = JSON.load(response_content)
|
||||
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
||||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
||||
result_mapper = Azure::MariaDB::Mgmt::V2018_06_01_preview::Models::Configuration.mapper()
|
||||
result.body = @client.deserialize(result_mapper, parsed_response)
|
||||
rescue Exception => e
|
||||
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
||||
end
|
||||
end
|
||||
|
||||
result
|
||||
end
|
||||
|
||||
promise.execute
|
||||
end
|
||||
|
||||
#
|
||||
# List all the configurations in a given server.
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group that
|
||||
# contains the resource. You can obtain this value from the Azure Resource
|
||||
# Manager API or the portal.
|
||||
# @param server_name [String] The name of the server.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [ConfigurationListResult] operation results.
|
||||
#
|
||||
def list_by_server(resource_group_name, server_name, custom_headers:nil)
|
||||
response = list_by_server_async(resource_group_name, server_name, custom_headers:custom_headers).value!
|
||||
response.body unless response.nil?
|
||||
end
|
||||
|
||||
#
|
||||
# List all the configurations in a given server.
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group that
|
||||
# contains the resource. You can obtain this value from the Azure Resource
|
||||
# Manager API or the portal.
|
||||
# @param server_name [String] The name of the server.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
||||
#
|
||||
def list_by_server_with_http_info(resource_group_name, server_name, custom_headers:nil)
|
||||
list_by_server_async(resource_group_name, server_name, custom_headers:custom_headers).value!
|
||||
end
|
||||
|
||||
#
|
||||
# List all the configurations in a given server.
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group that
|
||||
# contains the resource. You can obtain this value from the Azure Resource
|
||||
# Manager API or the portal.
|
||||
# @param server_name [String] The name of the server.
|
||||
# @param [Hash{String => String}] A hash of custom headers that will be added
|
||||
# to the HTTP request.
|
||||
#
|
||||
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
||||
#
|
||||
def list_by_server_async(resource_group_name, server_name, custom_headers:nil)
|
||||
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
||||
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
||||
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
||||
fail ArgumentError, 'server_name is nil' if server_name.nil?
|
||||
|
||||
|
||||
request_headers = {}
|
||||
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
||||
|
||||
# Set Headers
|
||||
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
||||
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
||||
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/configurations'
|
||||
|
||||
request_url = @base_url || @client.base_url
|
||||
|
||||
options = {
|
||||
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
||||
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'serverName' => server_name},
|
||||
query_params: {'api-version' => @client.api_version},
|
||||
headers: request_headers.merge(custom_headers || {}),
|
||||
base_url: request_url
|
||||
}
|
||||
promise = @client.make_request_async(:get, path_template, options)
|
||||
|
||||
promise = promise.then do |result|
|
||||
http_response = result.response
|
||||
status_code = http_response.status
|
||||
response_content = http_response.body
|
||||
unless status_code == 200
|
||||
error_model = JSON.load(response_content)
|
||||
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
||||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
||||
result_mapper = Azure::MariaDB::Mgmt::V2018_06_01_preview::Models::ConfigurationListResult.mapper()
|
||||
result.body = @client.deserialize(result_mapper, parsed_response)
|
||||
rescue Exception => e
|
||||
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
||||
end
|
||||
end
|
||||
|
||||
result
|
||||
end
|
||||
|
||||
promise.execute
|
||||
end
|
||||
|
||||
#
|
||||
# Updates a configuration of a server.
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group that
|
||||
# contains the resource. You can obtain this value from the Azure Resource
|
||||
# Manager API or the portal.
|
||||
# @param server_name [String] The name of the server.
|
||||
# @param configuration_name [String] The name of the server configuration.
|
||||
# @param parameters [Configuration] The required parameters for updating a
|
||||
# server configuration.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [Configuration] operation results.
|
||||
#
|
||||
def begin_create_or_update(resource_group_name, server_name, configuration_name, parameters, custom_headers:nil)
|
||||
response = begin_create_or_update_async(resource_group_name, server_name, configuration_name, parameters, custom_headers:custom_headers).value!
|
||||
response.body unless response.nil?
|
||||
end
|
||||
|
||||
#
|
||||
# Updates a configuration of a server.
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group that
|
||||
# contains the resource. You can obtain this value from the Azure Resource
|
||||
# Manager API or the portal.
|
||||
# @param server_name [String] The name of the server.
|
||||
# @param configuration_name [String] The name of the server configuration.
|
||||
# @param parameters [Configuration] The required parameters for updating a
|
||||
# server configuration.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
||||
#
|
||||
def begin_create_or_update_with_http_info(resource_group_name, server_name, configuration_name, parameters, custom_headers:nil)
|
||||
begin_create_or_update_async(resource_group_name, server_name, configuration_name, parameters, custom_headers:custom_headers).value!
|
||||
end
|
||||
|
||||
#
|
||||
# Updates a configuration of a server.
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group that
|
||||
# contains the resource. You can obtain this value from the Azure Resource
|
||||
# Manager API or the portal.
|
||||
# @param server_name [String] The name of the server.
|
||||
# @param configuration_name [String] The name of the server configuration.
|
||||
# @param parameters [Configuration] The required parameters for updating a
|
||||
# server configuration.
|
||||
# @param [Hash{String => String}] A hash of custom headers that will be added
|
||||
# to the HTTP request.
|
||||
#
|
||||
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
||||
#
|
||||
def begin_create_or_update_async(resource_group_name, server_name, configuration_name, parameters, custom_headers:nil)
|
||||
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
||||
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
||||
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
||||
fail ArgumentError, 'server_name is nil' if server_name.nil?
|
||||
fail ArgumentError, 'configuration_name is nil' if configuration_name.nil?
|
||||
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
||||
|
||||
|
||||
request_headers = {}
|
||||
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
||||
|
||||
# Set Headers
|
||||
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
||||
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
||||
|
||||
# Serialize Request
|
||||
request_mapper = Azure::MariaDB::Mgmt::V2018_06_01_preview::Models::Configuration.mapper()
|
||||
request_content = @client.serialize(request_mapper, parameters)
|
||||
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
||||
|
||||
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/configurations/{configurationName}'
|
||||
|
||||
request_url = @base_url || @client.base_url
|
||||
|
||||
options = {
|
||||
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
||||
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'serverName' => server_name,'configurationName' => configuration_name},
|
||||
query_params: {'api-version' => @client.api_version},
|
||||
body: request_content,
|
||||
headers: request_headers.merge(custom_headers || {}),
|
||||
base_url: request_url
|
||||
}
|
||||
promise = @client.make_request_async(:put, path_template, options)
|
||||
|
||||
promise = promise.then do |result|
|
||||
http_response = result.response
|
||||
status_code = http_response.status
|
||||
response_content = http_response.body
|
||||
unless status_code == 200 || status_code == 202
|
||||
error_model = JSON.load(response_content)
|
||||
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
||||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
||||
result_mapper = Azure::MariaDB::Mgmt::V2018_06_01_preview::Models::Configuration.mapper()
|
||||
result.body = @client.deserialize(result_mapper, parsed_response)
|
||||
rescue Exception => e
|
||||
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
||||
end
|
||||
end
|
||||
|
||||
result
|
||||
end
|
||||
|
||||
promise.execute
|
||||
end
|
||||
|
||||
end
|
||||
end
|
|
@ -0,0 +1,538 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::MariaDB::Mgmt::V2018_06_01_preview
|
||||
#
|
||||
# MariaDB Client
|
||||
#
|
||||
class Databases
|
||||
include MsRestAzure
|
||||
|
||||
#
|
||||
# Creates and initializes a new instance of the Databases class.
|
||||
# @param client service class for accessing basic functionality.
|
||||
#
|
||||
def initialize(client)
|
||||
@client = client
|
||||
end
|
||||
|
||||
# @return [MariaDBManagementClient] reference to the MariaDBManagementClient
|
||||
attr_reader :client
|
||||
|
||||
#
|
||||
# Creates a new database or updates an existing database.
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group that
|
||||
# contains the resource. You can obtain this value from the Azure Resource
|
||||
# Manager API or the portal.
|
||||
# @param server_name [String] The name of the server.
|
||||
# @param database_name [String] The name of the database.
|
||||
# @param parameters [Database] The required parameters for creating or updating
|
||||
# a database.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [Database] operation results.
|
||||
#
|
||||
def create_or_update(resource_group_name, server_name, database_name, parameters, custom_headers:nil)
|
||||
response = create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers:custom_headers).value!
|
||||
response.body unless response.nil?
|
||||
end
|
||||
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group that
|
||||
# contains the resource. You can obtain this value from the Azure Resource
|
||||
# Manager API or the portal.
|
||||
# @param server_name [String] The name of the server.
|
||||
# @param database_name [String] The name of the database.
|
||||
# @param parameters [Database] The required parameters for creating or updating
|
||||
# a database.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [Concurrent::Promise] promise which provides async access to http
|
||||
# response.
|
||||
#
|
||||
def create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers:nil)
|
||||
# Send request
|
||||
promise = begin_create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers:custom_headers)
|
||||
|
||||
promise = promise.then do |response|
|
||||
# Defining deserialization method.
|
||||
deserialize_method = lambda do |parsed_response|
|
||||
result_mapper = Azure::MariaDB::Mgmt::V2018_06_01_preview::Models::Database.mapper()
|
||||
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
||||
end
|
||||
|
||||
# Waiting for response.
|
||||
@client.get_long_running_operation_result(response, deserialize_method)
|
||||
end
|
||||
|
||||
promise
|
||||
end
|
||||
|
||||
#
|
||||
# Deletes a database.
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group that
|
||||
# contains the resource. You can obtain this value from the Azure Resource
|
||||
# Manager API or the portal.
|
||||
# @param server_name [String] The name of the server.
|
||||
# @param database_name [String] The name of the database.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
def delete(resource_group_name, server_name, database_name, custom_headers:nil)
|
||||
response = delete_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value!
|
||||
nil
|
||||
end
|
||||
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group that
|
||||
# contains the resource. You can obtain this value from the Azure Resource
|
||||
# Manager API or the portal.
|
||||
# @param server_name [String] The name of the server.
|
||||
# @param database_name [String] The name of the database.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [Concurrent::Promise] promise which provides async access to http
|
||||
# response.
|
||||
#
|
||||
def delete_async(resource_group_name, server_name, database_name, custom_headers:nil)
|
||||
# Send request
|
||||
promise = begin_delete_async(resource_group_name, server_name, database_name, custom_headers:custom_headers)
|
||||
|
||||
promise = promise.then do |response|
|
||||
# Defining deserialization method.
|
||||
deserialize_method = lambda do |parsed_response|
|
||||
end
|
||||
|
||||
# Waiting for response.
|
||||
@client.get_long_running_operation_result(response, deserialize_method)
|
||||
end
|
||||
|
||||
promise
|
||||
end
|
||||
|
||||
#
|
||||
# Gets information about a database.
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group that
|
||||
# contains the resource. You can obtain this value from the Azure Resource
|
||||
# Manager API or the portal.
|
||||
# @param server_name [String] The name of the server.
|
||||
# @param database_name [String] The name of the database.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [Database] operation results.
|
||||
#
|
||||
def get(resource_group_name, server_name, database_name, custom_headers:nil)
|
||||
response = get_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value!
|
||||
response.body unless response.nil?
|
||||
end
|
||||
|
||||
#
|
||||
# Gets information about a database.
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group that
|
||||
# contains the resource. You can obtain this value from the Azure Resource
|
||||
# Manager API or the portal.
|
||||
# @param server_name [String] The name of the server.
|
||||
# @param database_name [String] The name of the database.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
||||
#
|
||||
def get_with_http_info(resource_group_name, server_name, database_name, custom_headers:nil)
|
||||
get_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value!
|
||||
end
|
||||
|
||||
#
|
||||
# Gets information about a database.
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group that
|
||||
# contains the resource. You can obtain this value from the Azure Resource
|
||||
# Manager API or the portal.
|
||||
# @param server_name [String] The name of the server.
|
||||
# @param database_name [String] The name of the database.
|
||||
# @param [Hash{String => String}] A hash of custom headers that will be added
|
||||
# to the HTTP request.
|
||||
#
|
||||
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
||||
#
|
||||
def get_async(resource_group_name, server_name, database_name, custom_headers:nil)
|
||||
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
||||
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
||||
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
||||
fail ArgumentError, 'server_name is nil' if server_name.nil?
|
||||
fail ArgumentError, 'database_name is nil' if database_name.nil?
|
||||
|
||||
|
||||
request_headers = {}
|
||||
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
||||
|
||||
# Set Headers
|
||||
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
||||
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
||||
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/databases/{databaseName}'
|
||||
|
||||
request_url = @base_url || @client.base_url
|
||||
|
||||
options = {
|
||||
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
||||
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'serverName' => server_name,'databaseName' => database_name},
|
||||
query_params: {'api-version' => @client.api_version},
|
||||
headers: request_headers.merge(custom_headers || {}),
|
||||
base_url: request_url
|
||||
}
|
||||
promise = @client.make_request_async(:get, path_template, options)
|
||||
|
||||
promise = promise.then do |result|
|
||||
http_response = result.response
|
||||
status_code = http_response.status
|
||||
response_content = http_response.body
|
||||
unless status_code == 200
|
||||
error_model = JSON.load(response_content)
|
||||
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
||||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
||||
result_mapper = Azure::MariaDB::Mgmt::V2018_06_01_preview::Models::Database.mapper()
|
||||
result.body = @client.deserialize(result_mapper, parsed_response)
|
||||
rescue Exception => e
|
||||
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
||||
end
|
||||
end
|
||||
|
||||
result
|
||||
end
|
||||
|
||||
promise.execute
|
||||
end
|
||||
|
||||
#
|
||||
# List all the databases in a given server.
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group that
|
||||
# contains the resource. You can obtain this value from the Azure Resource
|
||||
# Manager API or the portal.
|
||||
# @param server_name [String] The name of the server.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [DatabaseListResult] operation results.
|
||||
#
|
||||
def list_by_server(resource_group_name, server_name, custom_headers:nil)
|
||||
response = list_by_server_async(resource_group_name, server_name, custom_headers:custom_headers).value!
|
||||
response.body unless response.nil?
|
||||
end
|
||||
|
||||
#
|
||||
# List all the databases in a given server.
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group that
|
||||
# contains the resource. You can obtain this value from the Azure Resource
|
||||
# Manager API or the portal.
|
||||
# @param server_name [String] The name of the server.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
||||
#
|
||||
def list_by_server_with_http_info(resource_group_name, server_name, custom_headers:nil)
|
||||
list_by_server_async(resource_group_name, server_name, custom_headers:custom_headers).value!
|
||||
end
|
||||
|
||||
#
|
||||
# List all the databases in a given server.
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group that
|
||||
# contains the resource. You can obtain this value from the Azure Resource
|
||||
# Manager API or the portal.
|
||||
# @param server_name [String] The name of the server.
|
||||
# @param [Hash{String => String}] A hash of custom headers that will be added
|
||||
# to the HTTP request.
|
||||
#
|
||||
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
||||
#
|
||||
def list_by_server_async(resource_group_name, server_name, custom_headers:nil)
|
||||
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
||||
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
||||
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
||||
fail ArgumentError, 'server_name is nil' if server_name.nil?
|
||||
|
||||
|
||||
request_headers = {}
|
||||
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
||||
|
||||
# Set Headers
|
||||
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
||||
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
||||
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/databases'
|
||||
|
||||
request_url = @base_url || @client.base_url
|
||||
|
||||
options = {
|
||||
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
||||
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'serverName' => server_name},
|
||||
query_params: {'api-version' => @client.api_version},
|
||||
headers: request_headers.merge(custom_headers || {}),
|
||||
base_url: request_url
|
||||
}
|
||||
promise = @client.make_request_async(:get, path_template, options)
|
||||
|
||||
promise = promise.then do |result|
|
||||
http_response = result.response
|
||||
status_code = http_response.status
|
||||
response_content = http_response.body
|
||||
unless status_code == 200
|
||||
error_model = JSON.load(response_content)
|
||||
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
||||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
||||
result_mapper = Azure::MariaDB::Mgmt::V2018_06_01_preview::Models::DatabaseListResult.mapper()
|
||||
result.body = @client.deserialize(result_mapper, parsed_response)
|
||||
rescue Exception => e
|
||||
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
||||
end
|
||||
end
|
||||
|
||||
result
|
||||
end
|
||||
|
||||
promise.execute
|
||||
end
|
||||
|
||||
#
|
||||
# Creates a new database or updates an existing database.
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group that
|
||||
# contains the resource. You can obtain this value from the Azure Resource
|
||||
# Manager API or the portal.
|
||||
# @param server_name [String] The name of the server.
|
||||
# @param database_name [String] The name of the database.
|
||||
# @param parameters [Database] The required parameters for creating or updating
|
||||
# a database.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [Database] operation results.
|
||||
#
|
||||
def begin_create_or_update(resource_group_name, server_name, database_name, parameters, custom_headers:nil)
|
||||
response = begin_create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers:custom_headers).value!
|
||||
response.body unless response.nil?
|
||||
end
|
||||
|
||||
#
|
||||
# Creates a new database or updates an existing database.
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group that
|
||||
# contains the resource. You can obtain this value from the Azure Resource
|
||||
# Manager API or the portal.
|
||||
# @param server_name [String] The name of the server.
|
||||
# @param database_name [String] The name of the database.
|
||||
# @param parameters [Database] The required parameters for creating or updating
|
||||
# a database.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
||||
#
|
||||
def begin_create_or_update_with_http_info(resource_group_name, server_name, database_name, parameters, custom_headers:nil)
|
||||
begin_create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers:custom_headers).value!
|
||||
end
|
||||
|
||||
#
|
||||
# Creates a new database or updates an existing database.
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group that
|
||||
# contains the resource. You can obtain this value from the Azure Resource
|
||||
# Manager API or the portal.
|
||||
# @param server_name [String] The name of the server.
|
||||
# @param database_name [String] The name of the database.
|
||||
# @param parameters [Database] The required parameters for creating or updating
|
||||
# a database.
|
||||
# @param [Hash{String => String}] A hash of custom headers that will be added
|
||||
# to the HTTP request.
|
||||
#
|
||||
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
||||
#
|
||||
def begin_create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers:nil)
|
||||
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
||||
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
||||
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
||||
fail ArgumentError, 'server_name is nil' if server_name.nil?
|
||||
fail ArgumentError, 'database_name is nil' if database_name.nil?
|
||||
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
||||
|
||||
|
||||
request_headers = {}
|
||||
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
||||
|
||||
# Set Headers
|
||||
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
||||
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
||||
|
||||
# Serialize Request
|
||||
request_mapper = Azure::MariaDB::Mgmt::V2018_06_01_preview::Models::Database.mapper()
|
||||
request_content = @client.serialize(request_mapper, parameters)
|
||||
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
||||
|
||||
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/databases/{databaseName}'
|
||||
|
||||
request_url = @base_url || @client.base_url
|
||||
|
||||
options = {
|
||||
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
||||
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'serverName' => server_name,'databaseName' => database_name},
|
||||
query_params: {'api-version' => @client.api_version},
|
||||
body: request_content,
|
||||
headers: request_headers.merge(custom_headers || {}),
|
||||
base_url: request_url
|
||||
}
|
||||
promise = @client.make_request_async(:put, path_template, options)
|
||||
|
||||
promise = promise.then do |result|
|
||||
http_response = result.response
|
||||
status_code = http_response.status
|
||||
response_content = http_response.body
|
||||
unless status_code == 200 || status_code == 201 || status_code == 202
|
||||
error_model = JSON.load(response_content)
|
||||
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
||||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
||||
result_mapper = Azure::MariaDB::Mgmt::V2018_06_01_preview::Models::Database.mapper()
|
||||
result.body = @client.deserialize(result_mapper, parsed_response)
|
||||
rescue Exception => e
|
||||
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
||||
end
|
||||
end
|
||||
# Deserialize Response
|
||||
if status_code == 201
|
||||
begin
|
||||
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
||||
result_mapper = Azure::MariaDB::Mgmt::V2018_06_01_preview::Models::Database.mapper()
|
||||
result.body = @client.deserialize(result_mapper, parsed_response)
|
||||
rescue Exception => e
|
||||
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
||||
end
|
||||
end
|
||||
|
||||
result
|
||||
end
|
||||
|
||||
promise.execute
|
||||
end
|
||||
|
||||
#
|
||||
# Deletes a database.
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group that
|
||||
# contains the resource. You can obtain this value from the Azure Resource
|
||||
# Manager API or the portal.
|
||||
# @param server_name [String] The name of the server.
|
||||
# @param database_name [String] The name of the database.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
#
|
||||
def begin_delete(resource_group_name, server_name, database_name, custom_headers:nil)
|
||||
response = begin_delete_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value!
|
||||
nil
|
||||
end
|
||||
|
||||
#
|
||||
# Deletes a database.
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group that
|
||||
# contains the resource. You can obtain this value from the Azure Resource
|
||||
# Manager API or the portal.
|
||||
# @param server_name [String] The name of the server.
|
||||
# @param database_name [String] The name of the database.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
||||
#
|
||||
def begin_delete_with_http_info(resource_group_name, server_name, database_name, custom_headers:nil)
|
||||
begin_delete_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value!
|
||||
end
|
||||
|
||||
#
|
||||
# Deletes a database.
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group that
|
||||
# contains the resource. You can obtain this value from the Azure Resource
|
||||
# Manager API or the portal.
|
||||
# @param server_name [String] The name of the server.
|
||||
# @param database_name [String] The name of the database.
|
||||
# @param [Hash{String => String}] A hash of custom headers that will be added
|
||||
# to the HTTP request.
|
||||
#
|
||||
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
||||
#
|
||||
def begin_delete_async(resource_group_name, server_name, database_name, custom_headers:nil)
|
||||
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
||||
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
||||
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
||||
fail ArgumentError, 'server_name is nil' if server_name.nil?
|
||||
fail ArgumentError, 'database_name is nil' if database_name.nil?
|
||||
|
||||
|
||||
request_headers = {}
|
||||
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
||||
|
||||
# Set Headers
|
||||
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
||||
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
||||
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/databases/{databaseName}'
|
||||
|
||||
request_url = @base_url || @client.base_url
|
||||
|
||||
options = {
|
||||
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
||||
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'serverName' => server_name,'databaseName' => database_name},
|
||||
query_params: {'api-version' => @client.api_version},
|
||||
headers: request_headers.merge(custom_headers || {}),
|
||||
base_url: request_url
|
||||
}
|
||||
promise = @client.make_request_async(:delete, path_template, options)
|
||||
|
||||
promise = promise.then do |result|
|
||||
http_response = result.response
|
||||
status_code = http_response.status
|
||||
response_content = http_response.body
|
||||
unless status_code == 200 || status_code == 202 || status_code == 204
|
||||
error_model = JSON.load(response_content)
|
||||
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
||||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
|
||||
result
|
||||
end
|
||||
|
||||
promise.execute
|
||||
end
|
||||
|
||||
end
|
||||
end
|
|
@ -0,0 +1,538 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::MariaDB::Mgmt::V2018_06_01_preview
|
||||
#
|
||||
# MariaDB Client
|
||||
#
|
||||
class FirewallRules
|
||||
include MsRestAzure
|
||||
|
||||
#
|
||||
# Creates and initializes a new instance of the FirewallRules class.
|
||||
# @param client service class for accessing basic functionality.
|
||||
#
|
||||
def initialize(client)
|
||||
@client = client
|
||||
end
|
||||
|
||||
# @return [MariaDBManagementClient] reference to the MariaDBManagementClient
|
||||
attr_reader :client
|
||||
|
||||
#
|
||||
# Creates a new firewall rule or updates an existing firewall rule.
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group that
|
||||
# contains the resource. You can obtain this value from the Azure Resource
|
||||
# Manager API or the portal.
|
||||
# @param server_name [String] The name of the server.
|
||||
# @param firewall_rule_name [String] The name of the server firewall rule.
|
||||
# @param parameters [FirewallRule] The required parameters for creating or
|
||||
# updating a firewall rule.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [FirewallRule] operation results.
|
||||
#
|
||||
def create_or_update(resource_group_name, server_name, firewall_rule_name, parameters, custom_headers:nil)
|
||||
response = create_or_update_async(resource_group_name, server_name, firewall_rule_name, parameters, custom_headers:custom_headers).value!
|
||||
response.body unless response.nil?
|
||||
end
|
||||
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group that
|
||||
# contains the resource. You can obtain this value from the Azure Resource
|
||||
# Manager API or the portal.
|
||||
# @param server_name [String] The name of the server.
|
||||
# @param firewall_rule_name [String] The name of the server firewall rule.
|
||||
# @param parameters [FirewallRule] The required parameters for creating or
|
||||
# updating a firewall rule.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [Concurrent::Promise] promise which provides async access to http
|
||||
# response.
|
||||
#
|
||||
def create_or_update_async(resource_group_name, server_name, firewall_rule_name, parameters, custom_headers:nil)
|
||||
# Send request
|
||||
promise = begin_create_or_update_async(resource_group_name, server_name, firewall_rule_name, parameters, custom_headers:custom_headers)
|
||||
|
||||
promise = promise.then do |response|
|
||||
# Defining deserialization method.
|
||||
deserialize_method = lambda do |parsed_response|
|
||||
result_mapper = Azure::MariaDB::Mgmt::V2018_06_01_preview::Models::FirewallRule.mapper()
|
||||
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
||||
end
|
||||
|
||||
# Waiting for response.
|
||||
@client.get_long_running_operation_result(response, deserialize_method)
|
||||
end
|
||||
|
||||
promise
|
||||
end
|
||||
|
||||
#
|
||||
# Deletes a server firewall rule.
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group that
|
||||
# contains the resource. You can obtain this value from the Azure Resource
|
||||
# Manager API or the portal.
|
||||
# @param server_name [String] The name of the server.
|
||||
# @param firewall_rule_name [String] The name of the server firewall rule.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
def delete(resource_group_name, server_name, firewall_rule_name, custom_headers:nil)
|
||||
response = delete_async(resource_group_name, server_name, firewall_rule_name, custom_headers:custom_headers).value!
|
||||
nil
|
||||
end
|
||||
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group that
|
||||
# contains the resource. You can obtain this value from the Azure Resource
|
||||
# Manager API or the portal.
|
||||
# @param server_name [String] The name of the server.
|
||||
# @param firewall_rule_name [String] The name of the server firewall rule.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [Concurrent::Promise] promise which provides async access to http
|
||||
# response.
|
||||
#
|
||||
def delete_async(resource_group_name, server_name, firewall_rule_name, custom_headers:nil)
|
||||
# Send request
|
||||
promise = begin_delete_async(resource_group_name, server_name, firewall_rule_name, custom_headers:custom_headers)
|
||||
|
||||
promise = promise.then do |response|
|
||||
# Defining deserialization method.
|
||||
deserialize_method = lambda do |parsed_response|
|
||||
end
|
||||
|
||||
# Waiting for response.
|
||||
@client.get_long_running_operation_result(response, deserialize_method)
|
||||
end
|
||||
|
||||
promise
|
||||
end
|
||||
|
||||
#
|
||||
# Gets information about a server firewall rule.
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group that
|
||||
# contains the resource. You can obtain this value from the Azure Resource
|
||||
# Manager API or the portal.
|
||||
# @param server_name [String] The name of the server.
|
||||
# @param firewall_rule_name [String] The name of the server firewall rule.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [FirewallRule] operation results.
|
||||
#
|
||||
def get(resource_group_name, server_name, firewall_rule_name, custom_headers:nil)
|
||||
response = get_async(resource_group_name, server_name, firewall_rule_name, custom_headers:custom_headers).value!
|
||||
response.body unless response.nil?
|
||||
end
|
||||
|
||||
#
|
||||
# Gets information about a server firewall rule.
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group that
|
||||
# contains the resource. You can obtain this value from the Azure Resource
|
||||
# Manager API or the portal.
|
||||
# @param server_name [String] The name of the server.
|
||||
# @param firewall_rule_name [String] The name of the server firewall rule.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
||||
#
|
||||
def get_with_http_info(resource_group_name, server_name, firewall_rule_name, custom_headers:nil)
|
||||
get_async(resource_group_name, server_name, firewall_rule_name, custom_headers:custom_headers).value!
|
||||
end
|
||||
|
||||
#
|
||||
# Gets information about a server firewall rule.
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group that
|
||||
# contains the resource. You can obtain this value from the Azure Resource
|
||||
# Manager API or the portal.
|
||||
# @param server_name [String] The name of the server.
|
||||
# @param firewall_rule_name [String] The name of the server firewall rule.
|
||||
# @param [Hash{String => String}] A hash of custom headers that will be added
|
||||
# to the HTTP request.
|
||||
#
|
||||
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
||||
#
|
||||
def get_async(resource_group_name, server_name, firewall_rule_name, custom_headers:nil)
|
||||
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
||||
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
||||
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
||||
fail ArgumentError, 'server_name is nil' if server_name.nil?
|
||||
fail ArgumentError, 'firewall_rule_name is nil' if firewall_rule_name.nil?
|
||||
|
||||
|
||||
request_headers = {}
|
||||
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
||||
|
||||
# Set Headers
|
||||
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
||||
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
||||
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/firewallRules/{firewallRuleName}'
|
||||
|
||||
request_url = @base_url || @client.base_url
|
||||
|
||||
options = {
|
||||
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
||||
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'serverName' => server_name,'firewallRuleName' => firewall_rule_name},
|
||||
query_params: {'api-version' => @client.api_version},
|
||||
headers: request_headers.merge(custom_headers || {}),
|
||||
base_url: request_url
|
||||
}
|
||||
promise = @client.make_request_async(:get, path_template, options)
|
||||
|
||||
promise = promise.then do |result|
|
||||
http_response = result.response
|
||||
status_code = http_response.status
|
||||
response_content = http_response.body
|
||||
unless status_code == 200
|
||||
error_model = JSON.load(response_content)
|
||||
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
||||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
||||
result_mapper = Azure::MariaDB::Mgmt::V2018_06_01_preview::Models::FirewallRule.mapper()
|
||||
result.body = @client.deserialize(result_mapper, parsed_response)
|
||||
rescue Exception => e
|
||||
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
||||
end
|
||||
end
|
||||
|
||||
result
|
||||
end
|
||||
|
||||
promise.execute
|
||||
end
|
||||
|
||||
#
|
||||
# List all the firewall rules in a given server.
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group that
|
||||
# contains the resource. You can obtain this value from the Azure Resource
|
||||
# Manager API or the portal.
|
||||
# @param server_name [String] The name of the server.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [FirewallRuleListResult] operation results.
|
||||
#
|
||||
def list_by_server(resource_group_name, server_name, custom_headers:nil)
|
||||
response = list_by_server_async(resource_group_name, server_name, custom_headers:custom_headers).value!
|
||||
response.body unless response.nil?
|
||||
end
|
||||
|
||||
#
|
||||
# List all the firewall rules in a given server.
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group that
|
||||
# contains the resource. You can obtain this value from the Azure Resource
|
||||
# Manager API or the portal.
|
||||
# @param server_name [String] The name of the server.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
||||
#
|
||||
def list_by_server_with_http_info(resource_group_name, server_name, custom_headers:nil)
|
||||
list_by_server_async(resource_group_name, server_name, custom_headers:custom_headers).value!
|
||||
end
|
||||
|
||||
#
|
||||
# List all the firewall rules in a given server.
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group that
|
||||
# contains the resource. You can obtain this value from the Azure Resource
|
||||
# Manager API or the portal.
|
||||
# @param server_name [String] The name of the server.
|
||||
# @param [Hash{String => String}] A hash of custom headers that will be added
|
||||
# to the HTTP request.
|
||||
#
|
||||
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
||||
#
|
||||
def list_by_server_async(resource_group_name, server_name, custom_headers:nil)
|
||||
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
||||
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
||||
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
||||
fail ArgumentError, 'server_name is nil' if server_name.nil?
|
||||
|
||||
|
||||
request_headers = {}
|
||||
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
||||
|
||||
# Set Headers
|
||||
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
||||
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
||||
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/firewallRules'
|
||||
|
||||
request_url = @base_url || @client.base_url
|
||||
|
||||
options = {
|
||||
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
||||
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'serverName' => server_name},
|
||||
query_params: {'api-version' => @client.api_version},
|
||||
headers: request_headers.merge(custom_headers || {}),
|
||||
base_url: request_url
|
||||
}
|
||||
promise = @client.make_request_async(:get, path_template, options)
|
||||
|
||||
promise = promise.then do |result|
|
||||
http_response = result.response
|
||||
status_code = http_response.status
|
||||
response_content = http_response.body
|
||||
unless status_code == 200
|
||||
error_model = JSON.load(response_content)
|
||||
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
||||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
||||
result_mapper = Azure::MariaDB::Mgmt::V2018_06_01_preview::Models::FirewallRuleListResult.mapper()
|
||||
result.body = @client.deserialize(result_mapper, parsed_response)
|
||||
rescue Exception => e
|
||||
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
||||
end
|
||||
end
|
||||
|
||||
result
|
||||
end
|
||||
|
||||
promise.execute
|
||||
end
|
||||
|
||||
#
|
||||
# Creates a new firewall rule or updates an existing firewall rule.
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group that
|
||||
# contains the resource. You can obtain this value from the Azure Resource
|
||||
# Manager API or the portal.
|
||||
# @param server_name [String] The name of the server.
|
||||
# @param firewall_rule_name [String] The name of the server firewall rule.
|
||||
# @param parameters [FirewallRule] The required parameters for creating or
|
||||
# updating a firewall rule.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [FirewallRule] operation results.
|
||||
#
|
||||
def begin_create_or_update(resource_group_name, server_name, firewall_rule_name, parameters, custom_headers:nil)
|
||||
response = begin_create_or_update_async(resource_group_name, server_name, firewall_rule_name, parameters, custom_headers:custom_headers).value!
|
||||
response.body unless response.nil?
|
||||
end
|
||||
|
||||
#
|
||||
# Creates a new firewall rule or updates an existing firewall rule.
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group that
|
||||
# contains the resource. You can obtain this value from the Azure Resource
|
||||
# Manager API or the portal.
|
||||
# @param server_name [String] The name of the server.
|
||||
# @param firewall_rule_name [String] The name of the server firewall rule.
|
||||
# @param parameters [FirewallRule] The required parameters for creating or
|
||||
# updating a firewall rule.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
||||
#
|
||||
def begin_create_or_update_with_http_info(resource_group_name, server_name, firewall_rule_name, parameters, custom_headers:nil)
|
||||
begin_create_or_update_async(resource_group_name, server_name, firewall_rule_name, parameters, custom_headers:custom_headers).value!
|
||||
end
|
||||
|
||||
#
|
||||
# Creates a new firewall rule or updates an existing firewall rule.
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group that
|
||||
# contains the resource. You can obtain this value from the Azure Resource
|
||||
# Manager API or the portal.
|
||||
# @param server_name [String] The name of the server.
|
||||
# @param firewall_rule_name [String] The name of the server firewall rule.
|
||||
# @param parameters [FirewallRule] The required parameters for creating or
|
||||
# updating a firewall rule.
|
||||
# @param [Hash{String => String}] A hash of custom headers that will be added
|
||||
# to the HTTP request.
|
||||
#
|
||||
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
||||
#
|
||||
def begin_create_or_update_async(resource_group_name, server_name, firewall_rule_name, parameters, custom_headers:nil)
|
||||
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
||||
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
||||
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
||||
fail ArgumentError, 'server_name is nil' if server_name.nil?
|
||||
fail ArgumentError, 'firewall_rule_name is nil' if firewall_rule_name.nil?
|
||||
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
||||
|
||||
|
||||
request_headers = {}
|
||||
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
||||
|
||||
# Set Headers
|
||||
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
||||
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
||||
|
||||
# Serialize Request
|
||||
request_mapper = Azure::MariaDB::Mgmt::V2018_06_01_preview::Models::FirewallRule.mapper()
|
||||
request_content = @client.serialize(request_mapper, parameters)
|
||||
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
||||
|
||||
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/firewallRules/{firewallRuleName}'
|
||||
|
||||
request_url = @base_url || @client.base_url
|
||||
|
||||
options = {
|
||||
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
||||
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'serverName' => server_name,'firewallRuleName' => firewall_rule_name},
|
||||
query_params: {'api-version' => @client.api_version},
|
||||
body: request_content,
|
||||
headers: request_headers.merge(custom_headers || {}),
|
||||
base_url: request_url
|
||||
}
|
||||
promise = @client.make_request_async(:put, path_template, options)
|
||||
|
||||
promise = promise.then do |result|
|
||||
http_response = result.response
|
||||
status_code = http_response.status
|
||||
response_content = http_response.body
|
||||
unless status_code == 200 || status_code == 201 || status_code == 202
|
||||
error_model = JSON.load(response_content)
|
||||
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
||||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
||||
result_mapper = Azure::MariaDB::Mgmt::V2018_06_01_preview::Models::FirewallRule.mapper()
|
||||
result.body = @client.deserialize(result_mapper, parsed_response)
|
||||
rescue Exception => e
|
||||
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
||||
end
|
||||
end
|
||||
# Deserialize Response
|
||||
if status_code == 201
|
||||
begin
|
||||
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
||||
result_mapper = Azure::MariaDB::Mgmt::V2018_06_01_preview::Models::FirewallRule.mapper()
|
||||
result.body = @client.deserialize(result_mapper, parsed_response)
|
||||
rescue Exception => e
|
||||
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
||||
end
|
||||
end
|
||||
|
||||
result
|
||||
end
|
||||
|
||||
promise.execute
|
||||
end
|
||||
|
||||
#
|
||||
# Deletes a server firewall rule.
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group that
|
||||
# contains the resource. You can obtain this value from the Azure Resource
|
||||
# Manager API or the portal.
|
||||
# @param server_name [String] The name of the server.
|
||||
# @param firewall_rule_name [String] The name of the server firewall rule.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
#
|
||||
def begin_delete(resource_group_name, server_name, firewall_rule_name, custom_headers:nil)
|
||||
response = begin_delete_async(resource_group_name, server_name, firewall_rule_name, custom_headers:custom_headers).value!
|
||||
nil
|
||||
end
|
||||
|
||||
#
|
||||
# Deletes a server firewall rule.
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group that
|
||||
# contains the resource. You can obtain this value from the Azure Resource
|
||||
# Manager API or the portal.
|
||||
# @param server_name [String] The name of the server.
|
||||
# @param firewall_rule_name [String] The name of the server firewall rule.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
||||
#
|
||||
def begin_delete_with_http_info(resource_group_name, server_name, firewall_rule_name, custom_headers:nil)
|
||||
begin_delete_async(resource_group_name, server_name, firewall_rule_name, custom_headers:custom_headers).value!
|
||||
end
|
||||
|
||||
#
|
||||
# Deletes a server firewall rule.
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group that
|
||||
# contains the resource. You can obtain this value from the Azure Resource
|
||||
# Manager API or the portal.
|
||||
# @param server_name [String] The name of the server.
|
||||
# @param firewall_rule_name [String] The name of the server firewall rule.
|
||||
# @param [Hash{String => String}] A hash of custom headers that will be added
|
||||
# to the HTTP request.
|
||||
#
|
||||
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
||||
#
|
||||
def begin_delete_async(resource_group_name, server_name, firewall_rule_name, custom_headers:nil)
|
||||
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
||||
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
||||
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
||||
fail ArgumentError, 'server_name is nil' if server_name.nil?
|
||||
fail ArgumentError, 'firewall_rule_name is nil' if firewall_rule_name.nil?
|
||||
|
||||
|
||||
request_headers = {}
|
||||
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
||||
|
||||
# Set Headers
|
||||
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
||||
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
||||
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/firewallRules/{firewallRuleName}'
|
||||
|
||||
request_url = @base_url || @client.base_url
|
||||
|
||||
options = {
|
||||
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
||||
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'serverName' => server_name,'firewallRuleName' => firewall_rule_name},
|
||||
query_params: {'api-version' => @client.api_version},
|
||||
headers: request_headers.merge(custom_headers || {}),
|
||||
base_url: request_url
|
||||
}
|
||||
promise = @client.make_request_async(:delete, path_template, options)
|
||||
|
||||
promise = promise.then do |result|
|
||||
http_response = result.response
|
||||
status_code = http_response.status
|
||||
response_content = http_response.body
|
||||
unless status_code == 200 || status_code == 202 || status_code == 204
|
||||
error_model = JSON.load(response_content)
|
||||
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
||||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
|
||||
result
|
||||
end
|
||||
|
||||
promise.execute
|
||||
end
|
||||
|
||||
end
|
||||
end
|
|
@ -0,0 +1,113 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::MariaDB::Mgmt::V2018_06_01_preview
|
||||
#
|
||||
# MariaDB Client
|
||||
#
|
||||
class LocationBasedPerformanceTier
|
||||
include MsRestAzure
|
||||
|
||||
#
|
||||
# Creates and initializes a new instance of the LocationBasedPerformanceTier class.
|
||||
# @param client service class for accessing basic functionality.
|
||||
#
|
||||
def initialize(client)
|
||||
@client = client
|
||||
end
|
||||
|
||||
# @return [MariaDBManagementClient] reference to the MariaDBManagementClient
|
||||
attr_reader :client
|
||||
|
||||
#
|
||||
# List all the performance tiers at specified location in a given subscription.
|
||||
#
|
||||
# @param location_name [String] The name of the location.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [PerformanceTierListResult] operation results.
|
||||
#
|
||||
def list(location_name, custom_headers:nil)
|
||||
response = list_async(location_name, custom_headers:custom_headers).value!
|
||||
response.body unless response.nil?
|
||||
end
|
||||
|
||||
#
|
||||
# List all the performance tiers at specified location in a given subscription.
|
||||
#
|
||||
# @param location_name [String] The name of the location.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
||||
#
|
||||
def list_with_http_info(location_name, custom_headers:nil)
|
||||
list_async(location_name, custom_headers:custom_headers).value!
|
||||
end
|
||||
|
||||
#
|
||||
# List all the performance tiers at specified location in a given subscription.
|
||||
#
|
||||
# @param location_name [String] The name of the location.
|
||||
# @param [Hash{String => String}] A hash of custom headers that will be added
|
||||
# to the HTTP request.
|
||||
#
|
||||
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
||||
#
|
||||
def list_async(location_name, custom_headers:nil)
|
||||
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
||||
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
||||
fail ArgumentError, 'location_name is nil' if location_name.nil?
|
||||
|
||||
|
||||
request_headers = {}
|
||||
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
||||
|
||||
# Set Headers
|
||||
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
||||
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
||||
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.DBforMariaDB/locations/{locationName}/performanceTiers'
|
||||
|
||||
request_url = @base_url || @client.base_url
|
||||
|
||||
options = {
|
||||
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
||||
path_params: {'subscriptionId' => @client.subscription_id,'locationName' => location_name},
|
||||
query_params: {'api-version' => @client.api_version},
|
||||
headers: request_headers.merge(custom_headers || {}),
|
||||
base_url: request_url
|
||||
}
|
||||
promise = @client.make_request_async(:get, path_template, options)
|
||||
|
||||
promise = promise.then do |result|
|
||||
http_response = result.response
|
||||
status_code = http_response.status
|
||||
response_content = http_response.body
|
||||
unless status_code == 200
|
||||
error_model = JSON.load(response_content)
|
||||
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
||||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
||||
result_mapper = Azure::MariaDB::Mgmt::V2018_06_01_preview::Models::PerformanceTierListResult.mapper()
|
||||
result.body = @client.deserialize(result_mapper, parsed_response)
|
||||
rescue Exception => e
|
||||
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
||||
end
|
||||
end
|
||||
|
||||
result
|
||||
end
|
||||
|
||||
promise.execute
|
||||
end
|
||||
|
||||
end
|
||||
end
|
|
@ -0,0 +1,123 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::MariaDB::Mgmt::V2018_06_01_preview
|
||||
#
|
||||
# MariaDB Client
|
||||
#
|
||||
class LogFiles
|
||||
include MsRestAzure
|
||||
|
||||
#
|
||||
# Creates and initializes a new instance of the LogFiles class.
|
||||
# @param client service class for accessing basic functionality.
|
||||
#
|
||||
def initialize(client)
|
||||
@client = client
|
||||
end
|
||||
|
||||
# @return [MariaDBManagementClient] reference to the MariaDBManagementClient
|
||||
attr_reader :client
|
||||
|
||||
#
|
||||
# List all the log files in a given server.
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group that
|
||||
# contains the resource. You can obtain this value from the Azure Resource
|
||||
# Manager API or the portal.
|
||||
# @param server_name [String] The name of the server.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [LogFileListResult] operation results.
|
||||
#
|
||||
def list_by_server(resource_group_name, server_name, custom_headers:nil)
|
||||
response = list_by_server_async(resource_group_name, server_name, custom_headers:custom_headers).value!
|
||||
response.body unless response.nil?
|
||||
end
|
||||
|
||||
#
|
||||
# List all the log files in a given server.
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group that
|
||||
# contains the resource. You can obtain this value from the Azure Resource
|
||||
# Manager API or the portal.
|
||||
# @param server_name [String] The name of the server.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
||||
#
|
||||
def list_by_server_with_http_info(resource_group_name, server_name, custom_headers:nil)
|
||||
list_by_server_async(resource_group_name, server_name, custom_headers:custom_headers).value!
|
||||
end
|
||||
|
||||
#
|
||||
# List all the log files in a given server.
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group that
|
||||
# contains the resource. You can obtain this value from the Azure Resource
|
||||
# Manager API or the portal.
|
||||
# @param server_name [String] The name of the server.
|
||||
# @param [Hash{String => String}] A hash of custom headers that will be added
|
||||
# to the HTTP request.
|
||||
#
|
||||
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
||||
#
|
||||
def list_by_server_async(resource_group_name, server_name, custom_headers:nil)
|
||||
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
||||
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
||||
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
||||
fail ArgumentError, 'server_name is nil' if server_name.nil?
|
||||
|
||||
|
||||
request_headers = {}
|
||||
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
||||
|
||||
# Set Headers
|
||||
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
||||
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
||||
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/logFiles'
|
||||
|
||||
request_url = @base_url || @client.base_url
|
||||
|
||||
options = {
|
||||
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
||||
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'serverName' => server_name},
|
||||
query_params: {'api-version' => @client.api_version},
|
||||
headers: request_headers.merge(custom_headers || {}),
|
||||
base_url: request_url
|
||||
}
|
||||
promise = @client.make_request_async(:get, path_template, options)
|
||||
|
||||
promise = promise.then do |result|
|
||||
http_response = result.response
|
||||
status_code = http_response.status
|
||||
response_content = http_response.body
|
||||
unless status_code == 200
|
||||
error_model = JSON.load(response_content)
|
||||
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
||||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
||||
result_mapper = Azure::MariaDB::Mgmt::V2018_06_01_preview::Models::LogFileListResult.mapper()
|
||||
result.body = @client.deserialize(result_mapper, parsed_response)
|
||||
rescue Exception => e
|
||||
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
||||
end
|
||||
end
|
||||
|
||||
result
|
||||
end
|
||||
|
||||
promise.execute
|
||||
end
|
||||
|
||||
end
|
||||
end
|
|
@ -0,0 +1,168 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::MariaDB::Mgmt::V2018_06_01_preview
|
||||
#
|
||||
# A service client - single point of access to the REST API.
|
||||
#
|
||||
class MariaDBManagementClient < MsRestAzure::AzureServiceClient
|
||||
include MsRestAzure
|
||||
include MsRestAzure::Serialization
|
||||
|
||||
# @return [String] the base URI of the service.
|
||||
attr_accessor :base_url
|
||||
|
||||
# @return Credentials needed for the client to connect to Azure.
|
||||
attr_reader :credentials
|
||||
|
||||
# @return [String] The subscription ID that identifies an Azure
|
||||
# subscription.
|
||||
attr_accessor :subscription_id
|
||||
|
||||
# @return [String] The API version to use for the request.
|
||||
attr_reader :api_version
|
||||
|
||||
# @return [String] The preferred language for the response.
|
||||
attr_accessor :accept_language
|
||||
|
||||
# @return [Integer] The retry timeout in seconds for Long Running
|
||||
# Operations. Default value is 30.
|
||||
attr_accessor :long_running_operation_retry_timeout
|
||||
|
||||
# @return [Boolean] Whether a unique x-ms-client-request-id should be
|
||||
# generated. When set to true a unique x-ms-client-request-id value is
|
||||
# generated and included in each request. Default is true.
|
||||
attr_accessor :generate_client_request_id
|
||||
|
||||
# @return [Servers] servers
|
||||
attr_reader :servers
|
||||
|
||||
# @return [FirewallRules] firewall_rules
|
||||
attr_reader :firewall_rules
|
||||
|
||||
# @return [VirtualNetworkRules] virtual_network_rules
|
||||
attr_reader :virtual_network_rules
|
||||
|
||||
# @return [Databases] databases
|
||||
attr_reader :databases
|
||||
|
||||
# @return [Configurations] configurations
|
||||
attr_reader :configurations
|
||||
|
||||
# @return [LogFiles] log_files
|
||||
attr_reader :log_files
|
||||
|
||||
# @return [LocationBasedPerformanceTier] location_based_performance_tier
|
||||
attr_reader :location_based_performance_tier
|
||||
|
||||
# @return [CheckNameAvailability] check_name_availability
|
||||
attr_reader :check_name_availability
|
||||
|
||||
# @return [ServerSecurityAlertPolicies] server_security_alert_policies
|
||||
attr_reader :server_security_alert_policies
|
||||
|
||||
# @return [Operations] operations
|
||||
attr_reader :operations
|
||||
|
||||
#
|
||||
# Creates initializes a new instance of the MariaDBManagementClient class.
|
||||
# @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
|
||||
# @param base_url [String] the base URI of the service.
|
||||
# @param options [Array] filters to be applied to the HTTP requests.
|
||||
#
|
||||
def initialize(credentials = nil, base_url = nil, options = nil)
|
||||
super(credentials, options)
|
||||
@base_url = base_url || 'https://management.azure.com'
|
||||
|
||||
fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
|
||||
@credentials = credentials
|
||||
|
||||
@servers = Servers.new(self)
|
||||
@firewall_rules = FirewallRules.new(self)
|
||||
@virtual_network_rules = VirtualNetworkRules.new(self)
|
||||
@databases = Databases.new(self)
|
||||
@configurations = Configurations.new(self)
|
||||
@log_files = LogFiles.new(self)
|
||||
@location_based_performance_tier = LocationBasedPerformanceTier.new(self)
|
||||
@check_name_availability = CheckNameAvailability.new(self)
|
||||
@server_security_alert_policies = ServerSecurityAlertPolicies.new(self)
|
||||
@operations = Operations.new(self)
|
||||
@api_version = '2018-06-01-preview'
|
||||
@accept_language = 'en-US'
|
||||
@long_running_operation_retry_timeout = 30
|
||||
@generate_client_request_id = true
|
||||
add_telemetry
|
||||
end
|
||||
|
||||
#
|
||||
# Makes a request and returns the body of the response.
|
||||
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
||||
# @param path [String] the path, relative to {base_url}.
|
||||
# @param options [Hash{String=>String}] specifying any request options like :body.
|
||||
# @return [Hash{String=>String}] containing the body of the response.
|
||||
# Example:
|
||||
#
|
||||
# request_content = "{'location':'westus','tags':{'tag1':'val1','tag2':'val2'}}"
|
||||
# path = "/path"
|
||||
# options = {
|
||||
# body: request_content,
|
||||
# query_params: {'api-version' => '2016-02-01'}
|
||||
# }
|
||||
# result = @client.make_request(:put, path, options)
|
||||
#
|
||||
def make_request(method, path, options = {})
|
||||
result = make_request_with_http_info(method, path, options)
|
||||
result.body unless result.nil?
|
||||
end
|
||||
|
||||
#
|
||||
# Makes a request and returns the operation response.
|
||||
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
||||
# @param path [String] the path, relative to {base_url}.
|
||||
# @param options [Hash{String=>String}] specifying any request options like :body.
|
||||
# @return [MsRestAzure::AzureOperationResponse] Operation response containing the request, response and status.
|
||||
#
|
||||
def make_request_with_http_info(method, path, options = {})
|
||||
result = make_request_async(method, path, options).value!
|
||||
result.body = result.response.body.to_s.empty? ? nil : JSON.load(result.response.body)
|
||||
result
|
||||
end
|
||||
|
||||
#
|
||||
# Makes a request asynchronously.
|
||||
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
||||
# @param path [String] the path, relative to {base_url}.
|
||||
# @param options [Hash{String=>String}] specifying any request options like :body.
|
||||
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
||||
#
|
||||
def make_request_async(method, path, options = {})
|
||||
fail ArgumentError, 'method is nil' if method.nil?
|
||||
fail ArgumentError, 'path is nil' if path.nil?
|
||||
|
||||
request_url = options[:base_url] || @base_url
|
||||
if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
|
||||
@request_headers['Content-Type'] = options[:headers]['Content-Type']
|
||||
end
|
||||
|
||||
request_headers = @request_headers
|
||||
request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
|
||||
options.merge!({headers: request_headers.merge(options[:headers] || {})})
|
||||
options.merge!({credentials: @credentials}) unless @credentials.nil?
|
||||
|
||||
super(request_url, method, path, options)
|
||||
end
|
||||
|
||||
|
||||
private
|
||||
#
|
||||
# Adds telemetry information.
|
||||
#
|
||||
def add_telemetry
|
||||
sdk_information = 'azure_mgmt_mariadb'
|
||||
sdk_information = "#{sdk_information}/0.17.0"
|
||||
add_user_agent_information(sdk_information)
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,132 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::MariaDB::Mgmt::V2018_06_01_preview
|
||||
module Models
|
||||
#
|
||||
# Represents a Configuration.
|
||||
#
|
||||
class Configuration < ProxyResource
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [String] Value of the configuration.
|
||||
attr_accessor :value
|
||||
|
||||
# @return [String] Description of the configuration.
|
||||
attr_accessor :description
|
||||
|
||||
# @return [String] Default value of the configuration.
|
||||
attr_accessor :default_value
|
||||
|
||||
# @return [String] Data type of the configuration.
|
||||
attr_accessor :data_type
|
||||
|
||||
# @return [String] Allowed values of the configuration.
|
||||
attr_accessor :allowed_values
|
||||
|
||||
# @return [String] Source of the configuration.
|
||||
attr_accessor :source
|
||||
|
||||
|
||||
#
|
||||
# Mapper for Configuration class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'Configuration',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'Configuration',
|
||||
model_properties: {
|
||||
id: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'id',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
name: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'name',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
type: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'type',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
value: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'properties.value',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
description: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'properties.description',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
default_value: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'properties.defaultValue',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
data_type: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'properties.dataType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
allowed_values: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'properties.allowedValues',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
source: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'properties.source',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,55 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::MariaDB::Mgmt::V2018_06_01_preview
|
||||
module Models
|
||||
#
|
||||
# A list of server configurations.
|
||||
#
|
||||
class ConfigurationListResult
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [Array<Configuration>] The list of server configurations.
|
||||
attr_accessor :value
|
||||
|
||||
|
||||
#
|
||||
# Mapper for ConfigurationListResult class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'ConfigurationListResult',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'ConfigurationListResult',
|
||||
model_properties: {
|
||||
value: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'value',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'ConfigurationElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'Configuration'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,84 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::MariaDB::Mgmt::V2018_06_01_preview
|
||||
module Models
|
||||
#
|
||||
# Represents a Database.
|
||||
#
|
||||
class Database < ProxyResource
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [String] The charset of the database.
|
||||
attr_accessor :charset
|
||||
|
||||
# @return [String] The collation of the database.
|
||||
attr_accessor :collation
|
||||
|
||||
|
||||
#
|
||||
# Mapper for Database class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'Database',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'Database',
|
||||
model_properties: {
|
||||
id: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'id',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
name: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'name',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
type: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'type',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
charset: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'properties.charset',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
collation: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'properties.collation',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,55 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::MariaDB::Mgmt::V2018_06_01_preview
|
||||
module Models
|
||||
#
|
||||
# A List of databases.
|
||||
#
|
||||
class DatabaseListResult
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [Array<Database>] The list of databases housed in a server
|
||||
attr_accessor :value
|
||||
|
||||
|
||||
#
|
||||
# Mapper for DatabaseListResult class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'DatabaseListResult',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'DatabaseListResult',
|
||||
model_properties: {
|
||||
value: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'value',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'DatabaseElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'Database'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,92 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::MariaDB::Mgmt::V2018_06_01_preview
|
||||
module Models
|
||||
#
|
||||
# Represents a server firewall rule.
|
||||
#
|
||||
class FirewallRule < ProxyResource
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [String] The start IP address of the server firewall rule. Must
|
||||
# be IPv4 format.
|
||||
attr_accessor :start_ip_address
|
||||
|
||||
# @return [String] The end IP address of the server firewall rule. Must
|
||||
# be IPv4 format.
|
||||
attr_accessor :end_ip_address
|
||||
|
||||
|
||||
#
|
||||
# Mapper for FirewallRule class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'FirewallRule',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'FirewallRule',
|
||||
model_properties: {
|
||||
id: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'id',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
name: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'name',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
type: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'type',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
start_ip_address: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
serialized_name: 'properties.startIpAddress',
|
||||
constraints: {
|
||||
Pattern: '^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$'
|
||||
},
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
end_ip_address: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
serialized_name: 'properties.endIpAddress',
|
||||
constraints: {
|
||||
Pattern: '^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$'
|
||||
},
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,55 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::MariaDB::Mgmt::V2018_06_01_preview
|
||||
module Models
|
||||
#
|
||||
# A list of firewall rules.
|
||||
#
|
||||
class FirewallRuleListResult
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [Array<FirewallRule>] The list of firewall rules in a server.
|
||||
attr_accessor :value
|
||||
|
||||
|
||||
#
|
||||
# Mapper for FirewallRuleListResult class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'FirewallRuleListResult',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'FirewallRuleListResult',
|
||||
model_properties: {
|
||||
value: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'value',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'FirewallRuleElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'FirewallRule'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,16 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::MariaDB::Mgmt::V2018_06_01_preview
|
||||
module Models
|
||||
#
|
||||
# Defines values for GeoRedundantBackup
|
||||
#
|
||||
module GeoRedundantBackup
|
||||
Enabled = "Enabled"
|
||||
Disabled = "Disabled"
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,120 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::MariaDB::Mgmt::V2018_06_01_preview
|
||||
module Models
|
||||
#
|
||||
# Represents a log file.
|
||||
#
|
||||
class LogFile < ProxyResource
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [Integer] Size of the log file.
|
||||
attr_accessor :size_in_kb
|
||||
|
||||
# @return [DateTime] Creation timestamp of the log file.
|
||||
attr_accessor :created_time
|
||||
|
||||
# @return [DateTime] Last modified timestamp of the log file.
|
||||
attr_accessor :last_modified_time
|
||||
|
||||
# @return [String] Type of the log file.
|
||||
attr_accessor :log_file_type
|
||||
|
||||
# @return [String] The url to download the log file from.
|
||||
attr_accessor :url
|
||||
|
||||
|
||||
#
|
||||
# Mapper for LogFile class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'LogFile',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'LogFile',
|
||||
model_properties: {
|
||||
id: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'id',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
name: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'name',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
type: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'type',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
size_in_kb: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'properties.sizeInKB',
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
},
|
||||
created_time: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'properties.createdTime',
|
||||
type: {
|
||||
name: 'DateTime'
|
||||
}
|
||||
},
|
||||
last_modified_time: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'properties.lastModifiedTime',
|
||||
type: {
|
||||
name: 'DateTime'
|
||||
}
|
||||
},
|
||||
log_file_type: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'properties.type',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
url: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'properties.url',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,55 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::MariaDB::Mgmt::V2018_06_01_preview
|
||||
module Models
|
||||
#
|
||||
# A list of log files.
|
||||
#
|
||||
class LogFileListResult
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [Array<LogFile>] The list of log files.
|
||||
attr_accessor :value
|
||||
|
||||
|
||||
#
|
||||
# Mapper for LogFileListResult class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'LogFileListResult',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'LogFileListResult',
|
||||
model_properties: {
|
||||
value: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'value',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'LogFileElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'LogFile'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,68 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::MariaDB::Mgmt::V2018_06_01_preview
|
||||
module Models
|
||||
#
|
||||
# Represents a resource name availability.
|
||||
#
|
||||
class NameAvailability
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [String] Error Message.
|
||||
attr_accessor :message
|
||||
|
||||
# @return [Boolean] Indicates whether the resource name is available.
|
||||
attr_accessor :name_available
|
||||
|
||||
# @return [String] Reason for name being unavailable.
|
||||
attr_accessor :reason
|
||||
|
||||
|
||||
#
|
||||
# Mapper for NameAvailability class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'NameAvailability',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'NameAvailability',
|
||||
model_properties: {
|
||||
message: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'message',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
name_available: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'nameAvailable',
|
||||
type: {
|
||||
name: 'Boolean'
|
||||
}
|
||||
},
|
||||
reason: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'reason',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,57 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::MariaDB::Mgmt::V2018_06_01_preview
|
||||
module Models
|
||||
#
|
||||
# Request from client to check resource name availability.
|
||||
#
|
||||
class NameAvailabilityRequest
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [String] Resource name to verify.
|
||||
attr_accessor :name
|
||||
|
||||
# @return [String] Resource type used for verification.
|
||||
attr_accessor :type
|
||||
|
||||
|
||||
#
|
||||
# Mapper for NameAvailabilityRequest class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'NameAvailabilityRequest',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'NameAvailabilityRequest',
|
||||
model_properties: {
|
||||
name: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
serialized_name: 'name',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
type: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'type',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,95 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::MariaDB::Mgmt::V2018_06_01_preview
|
||||
module Models
|
||||
#
|
||||
# REST API operation definition.
|
||||
#
|
||||
class Operation
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [String] The name of the operation being performed on this
|
||||
# particular object.
|
||||
attr_accessor :name
|
||||
|
||||
# @return [OperationDisplay] The localized display information for this
|
||||
# particular operation or action.
|
||||
attr_accessor :display
|
||||
|
||||
# @return [OperationOrigin] The intended executor of the operation.
|
||||
# Possible values include: 'NotSpecified', 'user', 'system'
|
||||
attr_accessor :origin
|
||||
|
||||
# @return Additional descriptions for the operation.
|
||||
attr_accessor :properties
|
||||
|
||||
|
||||
#
|
||||
# Mapper for Operation class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'Operation',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'Operation',
|
||||
model_properties: {
|
||||
name: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'name',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
display: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'display',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'OperationDisplay'
|
||||
}
|
||||
},
|
||||
origin: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'origin',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
properties: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'properties',
|
||||
type: {
|
||||
name: 'Dictionary',
|
||||
value: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'ObjectElementType',
|
||||
type: {
|
||||
name: 'Object'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,83 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::MariaDB::Mgmt::V2018_06_01_preview
|
||||
module Models
|
||||
#
|
||||
# Display metadata associated with the operation.
|
||||
#
|
||||
class OperationDisplay
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [String] Operation resource provider name.
|
||||
attr_accessor :provider
|
||||
|
||||
# @return [String] Resource on which the operation is performed.
|
||||
attr_accessor :resource
|
||||
|
||||
# @return [String] Localized friendly name for the operation.
|
||||
attr_accessor :operation
|
||||
|
||||
# @return [String] Operation description.
|
||||
attr_accessor :description
|
||||
|
||||
|
||||
#
|
||||
# Mapper for OperationDisplay class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'OperationDisplay',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'OperationDisplay',
|
||||
model_properties: {
|
||||
provider: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'provider',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
resource: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'resource',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
operation: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'operation',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
description: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'description',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,55 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::MariaDB::Mgmt::V2018_06_01_preview
|
||||
module Models
|
||||
#
|
||||
# A list of resource provider operations.
|
||||
#
|
||||
class OperationListResult
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [Array<Operation>] The list of resource provider operations.
|
||||
attr_accessor :value
|
||||
|
||||
|
||||
#
|
||||
# Mapper for OperationListResult class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'OperationListResult',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'OperationListResult',
|
||||
model_properties: {
|
||||
value: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'value',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'OperationElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'Operation'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,17 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::MariaDB::Mgmt::V2018_06_01_preview
|
||||
module Models
|
||||
#
|
||||
# Defines values for OperationOrigin
|
||||
#
|
||||
module OperationOrigin
|
||||
NotSpecified = "NotSpecified"
|
||||
User = "user"
|
||||
System = "system"
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,56 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::MariaDB::Mgmt::V2018_06_01_preview
|
||||
module Models
|
||||
#
|
||||
# A list of performance tiers.
|
||||
#
|
||||
class PerformanceTierListResult
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [Array<PerformanceTierProperties>] The list of performance
|
||||
# tiers
|
||||
attr_accessor :value
|
||||
|
||||
|
||||
#
|
||||
# Mapper for PerformanceTierListResult class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'PerformanceTierListResult',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'PerformanceTierListResult',
|
||||
model_properties: {
|
||||
value: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'value',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'PerformanceTierPropertiesElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'PerformanceTierProperties'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,67 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::MariaDB::Mgmt::V2018_06_01_preview
|
||||
module Models
|
||||
#
|
||||
# Performance tier properties
|
||||
#
|
||||
class PerformanceTierProperties
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [String] ID of the performance tier.
|
||||
attr_accessor :id
|
||||
|
||||
# @return [Array<PerformanceTierServiceLevelObjectives>] Service level
|
||||
# objectives associated with the performance tier
|
||||
attr_accessor :service_level_objectives
|
||||
|
||||
|
||||
#
|
||||
# Mapper for PerformanceTierProperties class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'PerformanceTierProperties',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'PerformanceTierProperties',
|
||||
model_properties: {
|
||||
id: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'id',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
service_level_objectives: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'serviceLevelObjectives',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'PerformanceTierServiceLevelObjectivesElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'PerformanceTierServiceLevelObjectives'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,126 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::MariaDB::Mgmt::V2018_06_01_preview
|
||||
module Models
|
||||
#
|
||||
# Service level objectives for performance tier.
|
||||
#
|
||||
class PerformanceTierServiceLevelObjectives
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [String] ID for the service level objective.
|
||||
attr_accessor :id
|
||||
|
||||
# @return [String] Edition of the performance tier.
|
||||
attr_accessor :edition
|
||||
|
||||
# @return [Integer] vCore associated with the service level objective
|
||||
attr_accessor :v_core
|
||||
|
||||
# @return [String] Hardware generation associated with the service level
|
||||
# objective
|
||||
attr_accessor :hardware_generation
|
||||
|
||||
# @return [Integer] Maximum Backup retention in days for the performance
|
||||
# tier edition
|
||||
attr_accessor :max_backup_retention_days
|
||||
|
||||
# @return [Integer] Minimum Backup retention in days for the performance
|
||||
# tier edition
|
||||
attr_accessor :min_backup_retention_days
|
||||
|
||||
# @return [Integer] Max storage allowed for a server.
|
||||
attr_accessor :max_storage_mb
|
||||
|
||||
# @return [Integer] Max storage allowed for a server.
|
||||
attr_accessor :min_storage_mb
|
||||
|
||||
|
||||
#
|
||||
# Mapper for PerformanceTierServiceLevelObjectives class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'PerformanceTierServiceLevelObjectives',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'PerformanceTierServiceLevelObjectives',
|
||||
model_properties: {
|
||||
id: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'id',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
edition: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'edition',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
v_core: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'vCore',
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
},
|
||||
hardware_generation: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'hardwareGeneration',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
max_backup_retention_days: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'maxBackupRetentionDays',
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
},
|
||||
min_backup_retention_days: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'minBackupRetentionDays',
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
},
|
||||
max_storage_mb: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'maxStorageMB',
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
},
|
||||
min_storage_mb: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'minStorageMB',
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,71 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::MariaDB::Mgmt::V2018_06_01_preview
|
||||
module Models
|
||||
#
|
||||
# Resource properties.
|
||||
#
|
||||
class ProxyResource
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [String] Resource ID
|
||||
attr_accessor :id
|
||||
|
||||
# @return [String] Resource name.
|
||||
attr_accessor :name
|
||||
|
||||
# @return [String] Resource type.
|
||||
attr_accessor :type
|
||||
|
||||
|
||||
#
|
||||
# Mapper for ProxyResource class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'ProxyResource',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'ProxyResource',
|
||||
model_properties: {
|
||||
id: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'id',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
name: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'name',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
type: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'type',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,183 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::MariaDB::Mgmt::V2018_06_01_preview
|
||||
module Models
|
||||
#
|
||||
# Represents a server.
|
||||
#
|
||||
class Server < TrackedResource
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [Sku] The SKU (pricing tier) of the server.
|
||||
attr_accessor :sku
|
||||
|
||||
# @return [String] The administrator's login name of a server. Can only
|
||||
# be specified when the server is being created (and is required for
|
||||
# creation).
|
||||
attr_accessor :administrator_login
|
||||
|
||||
# @return [ServerVersion] Server version. Possible values include: '5.6',
|
||||
# '5.7'
|
||||
attr_accessor :version
|
||||
|
||||
# @return [SslEnforcementEnum] Enable ssl enforcement or not when connect
|
||||
# to server. Possible values include: 'Enabled', 'Disabled'
|
||||
attr_accessor :ssl_enforcement
|
||||
|
||||
# @return [ServerState] A state of a server that is visible to user.
|
||||
# Possible values include: 'Ready', 'Dropping', 'Disabled'
|
||||
attr_accessor :user_visible_state
|
||||
|
||||
# @return [String] The fully qualified domain name of a server.
|
||||
attr_accessor :fully_qualified_domain_name
|
||||
|
||||
# @return [DateTime] Earliest restore point creation time (ISO8601
|
||||
# format)
|
||||
attr_accessor :earliest_restore_date
|
||||
|
||||
# @return [StorageProfile] Storage profile of a server.
|
||||
attr_accessor :storage_profile
|
||||
|
||||
|
||||
#
|
||||
# Mapper for Server class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'Server',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'Server',
|
||||
model_properties: {
|
||||
id: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'id',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
name: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'name',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
type: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'type',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
location: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
serialized_name: 'location',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
tags: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'tags',
|
||||
type: {
|
||||
name: 'Dictionary',
|
||||
value: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'StringElementType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
sku: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'sku',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'Sku'
|
||||
}
|
||||
},
|
||||
administrator_login: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'properties.administratorLogin',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
version: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'properties.version',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
ssl_enforcement: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'properties.sslEnforcement',
|
||||
type: {
|
||||
name: 'Enum',
|
||||
module: 'SslEnforcementEnum'
|
||||
}
|
||||
},
|
||||
user_visible_state: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'properties.userVisibleState',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
fully_qualified_domain_name: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'properties.fullyQualifiedDomainName',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
earliest_restore_date: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'properties.earliestRestoreDate',
|
||||
type: {
|
||||
name: 'DateTime'
|
||||
}
|
||||
},
|
||||
storage_profile: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'properties.storageProfile',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'StorageProfile'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,92 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::MariaDB::Mgmt::V2018_06_01_preview
|
||||
module Models
|
||||
#
|
||||
# Represents a server to be created.
|
||||
#
|
||||
class ServerForCreate
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [Sku] The SKU (pricing tier) of the server.
|
||||
attr_accessor :sku
|
||||
|
||||
# @return [ServerPropertiesForCreate] Properties of the server.
|
||||
attr_accessor :properties
|
||||
|
||||
# @return [String] The location the resource resides in.
|
||||
attr_accessor :location
|
||||
|
||||
# @return [Hash{String => String}] Application-specific metadata in the
|
||||
# form of key-value pairs.
|
||||
attr_accessor :tags
|
||||
|
||||
|
||||
#
|
||||
# Mapper for ServerForCreate class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'ServerForCreate',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'ServerForCreate',
|
||||
model_properties: {
|
||||
sku: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'sku',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'Sku'
|
||||
}
|
||||
},
|
||||
properties: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
serialized_name: 'properties',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphic_discriminator: 'createMode',
|
||||
uber_parent: 'ServerPropertiesForCreate',
|
||||
class_name: 'ServerPropertiesForCreate'
|
||||
}
|
||||
},
|
||||
location: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
serialized_name: 'location',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
tags: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'tags',
|
||||
type: {
|
||||
name: 'Dictionary',
|
||||
value: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'StringElementType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,55 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::MariaDB::Mgmt::V2018_06_01_preview
|
||||
module Models
|
||||
#
|
||||
# A list of servers.
|
||||
#
|
||||
class ServerListResult
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [Array<Server>] The list of servers
|
||||
attr_accessor :value
|
||||
|
||||
|
||||
#
|
||||
# Mapper for ServerListResult class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'ServerListResult',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'ServerListResult',
|
||||
model_properties: {
|
||||
value: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'value',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'ServerElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'Server'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,85 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::MariaDB::Mgmt::V2018_06_01_preview
|
||||
module Models
|
||||
#
|
||||
# The properties used to create a new server.
|
||||
#
|
||||
class ServerPropertiesForCreate
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
@@discriminatorMap = Hash.new
|
||||
@@discriminatorMap["Default"] = "ServerPropertiesForDefaultCreate"
|
||||
@@discriminatorMap["PointInTimeRestore"] = "ServerPropertiesForRestore"
|
||||
@@discriminatorMap["GeoRestore"] = "ServerPropertiesForGeoRestore"
|
||||
|
||||
def initialize
|
||||
@createMode = "ServerPropertiesForCreate"
|
||||
end
|
||||
|
||||
attr_accessor :createMode
|
||||
|
||||
# @return [ServerVersion] Server version. Possible values include: '5.6',
|
||||
# '5.7'
|
||||
attr_accessor :version
|
||||
|
||||
# @return [SslEnforcementEnum] Enable ssl enforcement or not when connect
|
||||
# to server. Possible values include: 'Enabled', 'Disabled'
|
||||
attr_accessor :ssl_enforcement
|
||||
|
||||
# @return [StorageProfile] Storage profile of a server.
|
||||
attr_accessor :storage_profile
|
||||
|
||||
|
||||
#
|
||||
# Mapper for ServerPropertiesForCreate class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'ServerPropertiesForCreate',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphic_discriminator: 'createMode',
|
||||
uber_parent: 'ServerPropertiesForCreate',
|
||||
class_name: 'ServerPropertiesForCreate',
|
||||
model_properties: {
|
||||
version: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'version',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
ssl_enforcement: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'sslEnforcement',
|
||||
type: {
|
||||
name: 'Enum',
|
||||
module: 'SslEnforcementEnum'
|
||||
}
|
||||
},
|
||||
storage_profile: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'storageProfile',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'StorageProfile'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,100 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::MariaDB::Mgmt::V2018_06_01_preview
|
||||
module Models
|
||||
#
|
||||
# The properties used to create a new server.
|
||||
#
|
||||
class ServerPropertiesForDefaultCreate < ServerPropertiesForCreate
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
|
||||
def initialize
|
||||
@createMode = "Default"
|
||||
end
|
||||
|
||||
attr_accessor :createMode
|
||||
|
||||
# @return [String] The administrator's login name of a server. Can only
|
||||
# be specified when the server is being created (and is required for
|
||||
# creation).
|
||||
attr_accessor :administrator_login
|
||||
|
||||
# @return [String] The password of the administrator login.
|
||||
attr_accessor :administrator_login_password
|
||||
|
||||
|
||||
#
|
||||
# Mapper for ServerPropertiesForDefaultCreate class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'Default',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'ServerPropertiesForDefaultCreate',
|
||||
model_properties: {
|
||||
version: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'version',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
ssl_enforcement: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'sslEnforcement',
|
||||
type: {
|
||||
name: 'Enum',
|
||||
module: 'SslEnforcementEnum'
|
||||
}
|
||||
},
|
||||
storage_profile: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'storageProfile',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'StorageProfile'
|
||||
}
|
||||
},
|
||||
createMode: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
serialized_name: 'createMode',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
administrator_login: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
serialized_name: 'administratorLogin',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
administrator_login_password: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
serialized_name: 'administratorLoginPassword',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,88 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::MariaDB::Mgmt::V2018_06_01_preview
|
||||
module Models
|
||||
#
|
||||
# The properties used to create a new server by restoring to a different
|
||||
# region from a geo replicated backup.
|
||||
#
|
||||
class ServerPropertiesForGeoRestore < ServerPropertiesForCreate
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
|
||||
def initialize
|
||||
@createMode = "GeoRestore"
|
||||
end
|
||||
|
||||
attr_accessor :createMode
|
||||
|
||||
# @return [String] The source server id to restore from.
|
||||
attr_accessor :source_server_id
|
||||
|
||||
|
||||
#
|
||||
# Mapper for ServerPropertiesForGeoRestore class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'GeoRestore',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'ServerPropertiesForGeoRestore',
|
||||
model_properties: {
|
||||
version: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'version',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
ssl_enforcement: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'sslEnforcement',
|
||||
type: {
|
||||
name: 'Enum',
|
||||
module: 'SslEnforcementEnum'
|
||||
}
|
||||
},
|
||||
storage_profile: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'storageProfile',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'StorageProfile'
|
||||
}
|
||||
},
|
||||
createMode: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
serialized_name: 'createMode',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
source_server_id: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
serialized_name: 'sourceServerId',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,99 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::MariaDB::Mgmt::V2018_06_01_preview
|
||||
module Models
|
||||
#
|
||||
# The properties used to create a new server by restoring from a backup.
|
||||
#
|
||||
class ServerPropertiesForRestore < ServerPropertiesForCreate
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
|
||||
def initialize
|
||||
@createMode = "PointInTimeRestore"
|
||||
end
|
||||
|
||||
attr_accessor :createMode
|
||||
|
||||
# @return [String] The source server id to restore from.
|
||||
attr_accessor :source_server_id
|
||||
|
||||
# @return [DateTime] Restore point creation time (ISO8601 format),
|
||||
# specifying the time to restore from.
|
||||
attr_accessor :restore_point_in_time
|
||||
|
||||
|
||||
#
|
||||
# Mapper for ServerPropertiesForRestore class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'PointInTimeRestore',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'ServerPropertiesForRestore',
|
||||
model_properties: {
|
||||
version: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'version',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
ssl_enforcement: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'sslEnforcement',
|
||||
type: {
|
||||
name: 'Enum',
|
||||
module: 'SslEnforcementEnum'
|
||||
}
|
||||
},
|
||||
storage_profile: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'storageProfile',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'StorageProfile'
|
||||
}
|
||||
},
|
||||
createMode: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
serialized_name: 'createMode',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
source_server_id: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
serialized_name: 'sourceServerId',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
restore_point_in_time: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
serialized_name: 'restorePointInTime',
|
||||
type: {
|
||||
name: 'DateTime'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,166 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::MariaDB::Mgmt::V2018_06_01_preview
|
||||
module Models
|
||||
#
|
||||
# A server security alert policy.
|
||||
#
|
||||
class ServerSecurityAlertPolicy < ProxyResource
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [ServerSecurityAlertPolicyState] Specifies the state of the
|
||||
# policy, whether it is enabled or disabled. Possible values include:
|
||||
# 'Enabled', 'Disabled'
|
||||
attr_accessor :state
|
||||
|
||||
# @return [Array<String>] Specifies an array of alerts that are disabled.
|
||||
# Allowed values are: Sql_Injection, Sql_Injection_Vulnerability,
|
||||
# Access_Anomaly
|
||||
attr_accessor :disabled_alerts
|
||||
|
||||
# @return [Array<String>] Specifies an array of e-mail addresses to which
|
||||
# the alert is sent.
|
||||
attr_accessor :email_addresses
|
||||
|
||||
# @return [Boolean] Specifies that the alert is sent to the account
|
||||
# administrators.
|
||||
attr_accessor :email_account_admins
|
||||
|
||||
# @return [String] Specifies the blob storage endpoint (e.g.
|
||||
# https://MyAccount.blob.core.windows.net). This blob storage will hold
|
||||
# all Threat Detection audit logs.
|
||||
attr_accessor :storage_endpoint
|
||||
|
||||
# @return [String] Specifies the identifier key of the Threat Detection
|
||||
# audit storage account.
|
||||
attr_accessor :storage_account_access_key
|
||||
|
||||
# @return [Integer] Specifies the number of days to keep in the Threat
|
||||
# Detection audit logs.
|
||||
attr_accessor :retention_days
|
||||
|
||||
|
||||
#
|
||||
# Mapper for ServerSecurityAlertPolicy class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'ServerSecurityAlertPolicy',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'ServerSecurityAlertPolicy',
|
||||
model_properties: {
|
||||
id: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'id',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
name: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'name',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
type: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'type',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
state: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
serialized_name: 'properties.state',
|
||||
type: {
|
||||
name: 'Enum',
|
||||
module: 'ServerSecurityAlertPolicyState'
|
||||
}
|
||||
},
|
||||
disabled_alerts: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'properties.disabledAlerts',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'StringElementType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
email_addresses: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'properties.emailAddresses',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'StringElementType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
email_account_admins: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'properties.emailAccountAdmins',
|
||||
type: {
|
||||
name: 'Boolean'
|
||||
}
|
||||
},
|
||||
storage_endpoint: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'properties.storageEndpoint',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
storage_account_access_key: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'properties.storageAccountAccessKey',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
retention_days: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'properties.retentionDays',
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше
Загрузка…
Ссылка в новой задаче