Class: Azure::GraphRbac::Profiles::Latest::GraphRbacDataClass

Inherits:
Object
  • Object
show all
Defined in:
lib/profiles/latest/modules/graphrbac_profile_module.rb

Overview

GraphRbacDataClass

Direct Known Subclasses

Client

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ GraphRbacDataClass

Returns a new instance of GraphRbacDataClass.



66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# File 'lib/profiles/latest/modules/graphrbac_profile_module.rb', line 66

def initialize(options = {})
  if options.is_a?(Hash) && options.length == 0
    @options = setup_default_options
  else
    @options = options
  end

  reset!(options)

  @configurable = self
  @base_url = options[:base_url].nil? ? nil:options[:base_url]
  @options = options[:options].nil? ? nil:options[:options]

  @client_0 = Azure::GraphRbac::V1_6::GraphRbacClient.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)
  @objects = @client_0.objects
  @applications = @client_0.applications
  @groups = @client_0.groups
  @service_principals = @client_0.service_principals
  @users = @client_0.users
  @domains = @client_0.domains

  @model_classes = ModelClasses.new
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *args) ⇒ Object



99
100
101
102
103
104
105
# File 'lib/profiles/latest/modules/graphrbac_profile_module.rb', line 99

def method_missing(method, *args)
  if @client_0.respond_to?method
    @client_0.send(method, *args)
  else
    super
  end
end

Instance Attribute Details

#applicationsObject (readonly)

Returns the value of attribute applications.



64
65
66
# File 'lib/profiles/latest/modules/graphrbac_profile_module.rb', line 64

def applications
  @applications
end

#base_urlObject (readonly)

Returns the value of attribute base_url.



64
65
66
# File 'lib/profiles/latest/modules/graphrbac_profile_module.rb', line 64

def base_url
  @base_url
end

#configurableObject (readonly)

Returns the value of attribute configurable.



64
65
66
# File 'lib/profiles/latest/modules/graphrbac_profile_module.rb', line 64

def configurable
  @configurable
end

#domainsObject (readonly)

Returns the value of attribute domains.



64
65
66
# File 'lib/profiles/latest/modules/graphrbac_profile_module.rb', line 64

def domains
  @domains
end

#groupsObject (readonly)

Returns the value of attribute groups.



64
65
66
# File 'lib/profiles/latest/modules/graphrbac_profile_module.rb', line 64

def groups
  @groups
end

#model_classesObject (readonly)

Returns the value of attribute model_classes.



64
65
66
# File 'lib/profiles/latest/modules/graphrbac_profile_module.rb', line 64

def model_classes
  @model_classes
end

#objectsObject (readonly)

Returns the value of attribute objects.



64
65
66
# File 'lib/profiles/latest/modules/graphrbac_profile_module.rb', line 64

def objects
  @objects
end

#optionsObject (readonly)

Returns the value of attribute options.



64
65
66
# File 'lib/profiles/latest/modules/graphrbac_profile_module.rb', line 64

def options
  @options
end

#service_principalsObject (readonly)

Returns the value of attribute service_principals.



64
65
66
# File 'lib/profiles/latest/modules/graphrbac_profile_module.rb', line 64

def service_principals
  @service_principals
end

#usersObject (readonly)

Returns the value of attribute users.



64
65
66
# File 'lib/profiles/latest/modules/graphrbac_profile_module.rb', line 64

def users
  @users
end

Instance Method Details

#add_telemetry(client) ⇒ Object



94
95
96
97
# File 'lib/profiles/latest/modules/graphrbac_profile_module.rb', line 94

def add_telemetry(client)
  profile_information = 'Profiles/Latest/GraphRbac'
  client.add_user_agent_information(profile_information)
end