# 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_locks' module Azure::Profiles::V2019_03_01_Hybrid module Locks module Mgmt AuthorizationOperations = Azure::Locks::Mgmt::V2016_09_01::AuthorizationOperations ManagementLocks = Azure::Locks::Mgmt::V2016_09_01::ManagementLocks module Models OperationDisplay = Azure::Locks::Mgmt::V2016_09_01::Models::OperationDisplay ManagementLockOwner = Azure::Locks::Mgmt::V2016_09_01::Models::ManagementLockOwner Operation = Azure::Locks::Mgmt::V2016_09_01::Models::Operation ManagementLockListResult = Azure::Locks::Mgmt::V2016_09_01::Models::ManagementLockListResult OperationListResult = Azure::Locks::Mgmt::V2016_09_01::Models::OperationListResult ManagementLockObject = Azure::Locks::Mgmt::V2016_09_01::Models::ManagementLockObject LockLevel = Azure::Locks::Mgmt::V2016_09_01::Models::LockLevel end class LocksManagementClass attr_reader :authorization_operations, :management_locks, :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::Locks::Mgmt::V2016_09_01::ManagementLockClient.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) @authorization_operations = @client_0.authorization_operations @management_locks = @client_0.management_locks @model_classes = ModelClasses.new end def add_telemetry(client) profile_information = "Profiles/azure_sdk/#{Azure::VERSION}/V2019_03_01_Hybrid/Locks/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 operation_display Azure::Locks::Mgmt::V2016_09_01::Models::OperationDisplay end def management_lock_owner Azure::Locks::Mgmt::V2016_09_01::Models::ManagementLockOwner end def operation Azure::Locks::Mgmt::V2016_09_01::Models::Operation end def management_lock_list_result Azure::Locks::Mgmt::V2016_09_01::Models::ManagementLockListResult end def operation_list_result Azure::Locks::Mgmt::V2016_09_01::Models::OperationListResult end def management_lock_object Azure::Locks::Mgmt::V2016_09_01::Models::ManagementLockObject end def lock_level Azure::Locks::Mgmt::V2016_09_01::Models::LockLevel end end end end end end