Class: Azure::Profiles::Latest::EventGrid::Mgmt::EventGridManagementClass

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

Defined Under Namespace

Classes: ModelClasses

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(configurable, base_url = nil, options = nil) ⇒ EventGridManagementClass

Returns a new instance of EventGridManagementClass.



462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
# File 'lib/latest/modules/eventgrid_profile_module.rb', line 462

def initialize(configurable, base_url=nil, options=nil)
  @configurable, @base_url, @options = configurable, base_url, options

  @client_0 = Azure::EventGrid::Mgmt::V2020_06_01::EventGridManagementClient.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)
  @domains = @client_0.domains
  @domain_topics = @client_0.domain_topics
  @event_subscriptions = @client_0.event_subscriptions
  @operations = @client_0.operations
  @topics = @client_0.topics
  @private_endpoint_connections = @client_0.private_endpoint_connections
  @private_link_resources = @client_0.private_link_resources
  @topic_types = @client_0.topic_types

  @model_classes = ModelClasses.new
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *args) ⇒ Object



487
488
489
490
491
492
493
# File 'lib/latest/modules/eventgrid_profile_module.rb', line 487

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

Instance Attribute Details

#base_urlObject (readonly)

Returns the value of attribute base_url.



460
461
462
# File 'lib/latest/modules/eventgrid_profile_module.rb', line 460

def base_url
  @base_url
end

#configurableObject (readonly)

Returns the value of attribute configurable.



460
461
462
# File 'lib/latest/modules/eventgrid_profile_module.rb', line 460

def configurable
  @configurable
end

#domain_topicsObject (readonly)

Returns the value of attribute domain_topics.



460
461
462
# File 'lib/latest/modules/eventgrid_profile_module.rb', line 460

def domain_topics
  @domain_topics
end

#domainsObject (readonly)

Returns the value of attribute domains.



460
461
462
# File 'lib/latest/modules/eventgrid_profile_module.rb', line 460

def domains
  @domains
end

#event_subscriptionsObject (readonly)

Returns the value of attribute event_subscriptions.



460
461
462
# File 'lib/latest/modules/eventgrid_profile_module.rb', line 460

def event_subscriptions
  @event_subscriptions
end

#model_classesObject (readonly)

Returns the value of attribute model_classes.



460
461
462
# File 'lib/latest/modules/eventgrid_profile_module.rb', line 460

def model_classes
  @model_classes
end

#operationsObject (readonly)

Returns the value of attribute operations.



460
461
462
# File 'lib/latest/modules/eventgrid_profile_module.rb', line 460

def operations
  @operations
end

#optionsObject (readonly)

Returns the value of attribute options.



460
461
462
# File 'lib/latest/modules/eventgrid_profile_module.rb', line 460

def options
  @options
end

#private_endpoint_connectionsObject (readonly)

Returns the value of attribute private_endpoint_connections.



460
461
462
# File 'lib/latest/modules/eventgrid_profile_module.rb', line 460

def private_endpoint_connections
  @private_endpoint_connections
end

Returns the value of attribute private_link_resources.



460
461
462
# File 'lib/latest/modules/eventgrid_profile_module.rb', line 460

def private_link_resources
  @private_link_resources
end

#topic_typesObject (readonly)

Returns the value of attribute topic_types.



460
461
462
# File 'lib/latest/modules/eventgrid_profile_module.rb', line 460

def topic_types
  @topic_types
end

#topicsObject (readonly)

Returns the value of attribute topics.



460
461
462
# File 'lib/latest/modules/eventgrid_profile_module.rb', line 460

def topics
  @topics
end

Instance Method Details

#add_telemetry(client) ⇒ Object



482
483
484
485
# File 'lib/latest/modules/eventgrid_profile_module.rb', line 482

def add_telemetry(client)
  profile_information = "Profiles/azure_sdk/#{Azure::VERSION}/Latest/EventGrid/Mgmt"
  client.add_user_agent_information(profile_information)
end