Sha256: 004f9249d02a0d17241399dd5d3c2744bdbbeaf9c479fc45f0916a54fa2d369b

Contents?: true

Size: 1009 Bytes

Versions: 1

Compression:

Stored size: 1009 Bytes

Contents

# 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 'profiles/latest/automation_module_definition'
require 'profiles/latest/modules/automation_profile_module'
require 'profiles/common/configurable'
require 'profiles/common/default'

module Azure::Automation::Profiles::Latest::Mgmt
  #
  # Client class for the Latest profile SDK.
  #
  class Client < AutomationClass
    include Azure::ARM::Configurable


    def initialize(options = {})
      super(options)
    end

    def credentials
      if @credentials.nil?
        self.active_directory_settings ||= Azure::ARM::Default.active_directory_settings

        @credentials = MsRest::TokenCredentials.new(
                    MsRestAzure::ApplicationTokenProvider.new(
                        self.tenant_id, self.client_id, self.client_secret, self.active_directory_settings))
      end
      @credentials
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
azure_mgmt_automation-0.15.0 lib/profiles/latest/automation_latest_profile_client.rb