Class: Google::Apis::PubsubV1::AzureEventHubs

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/pubsub_v1/classes.rb,
lib/google/apis/pubsub_v1/representations.rb,
lib/google/apis/pubsub_v1/representations.rb

Overview

Ingestion settings for Azure Event Hubs.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AzureEventHubs

Returns a new instance of AzureEventHubs.



269
270
271
# File 'lib/google/apis/pubsub_v1/classes.rb', line 269

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#client_idString

Optional. The client id of the Azure application that is being used to authenticate Pub/Sub. Corresponds to the JSON property clientId

Returns:

  • (String)


229
230
231
# File 'lib/google/apis/pubsub_v1/classes.rb', line 229

def client_id
  @client_id
end

#event_hubString

Optional. The name of the Event Hub. Corresponds to the JSON property eventHub

Returns:

  • (String)


234
235
236
# File 'lib/google/apis/pubsub_v1/classes.rb', line 234

def event_hub
  @event_hub
end

#gcp_service_accountString

Optional. The GCP service account to be used for Federated Identity authentication. Corresponds to the JSON property gcpServiceAccount

Returns:

  • (String)


240
241
242
# File 'lib/google/apis/pubsub_v1/classes.rb', line 240

def 
  @gcp_service_account
end

#namespaceString

Optional. The name of the Event Hubs namespace. Corresponds to the JSON property namespace

Returns:

  • (String)


245
246
247
# File 'lib/google/apis/pubsub_v1/classes.rb', line 245

def namespace
  @namespace
end

#resource_groupString

Optional. Name of the resource group within the azure subscription. Corresponds to the JSON property resourceGroup

Returns:

  • (String)


250
251
252
# File 'lib/google/apis/pubsub_v1/classes.rb', line 250

def resource_group
  @resource_group
end

#stateString

Output only. An output-only field that indicates the state of the Event Hubs ingestion source. Corresponds to the JSON property state

Returns:

  • (String)


256
257
258
# File 'lib/google/apis/pubsub_v1/classes.rb', line 256

def state
  @state
end

#subscription_idString

Optional. The Azure subscription id. Corresponds to the JSON property subscriptionId

Returns:

  • (String)


261
262
263
# File 'lib/google/apis/pubsub_v1/classes.rb', line 261

def subscription_id
  @subscription_id
end

#tenant_idString

Optional. The tenant id of the Azure application that is being used to authenticate Pub/Sub. Corresponds to the JSON property tenantId

Returns:

  • (String)


267
268
269
# File 'lib/google/apis/pubsub_v1/classes.rb', line 267

def tenant_id
  @tenant_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



274
275
276
277
278
279
280
281
282
283
# File 'lib/google/apis/pubsub_v1/classes.rb', line 274

def update!(**args)
  @client_id = args[:client_id] if args.key?(:client_id)
  @event_hub = args[:event_hub] if args.key?(:event_hub)
  @gcp_service_account = args[:gcp_service_account] if args.key?(:gcp_service_account)
  @namespace = args[:namespace] if args.key?(:namespace)
  @resource_group = args[:resource_group] if args.key?(:resource_group)
  @state = args[:state] if args.key?(:state)
  @subscription_id = args[:subscription_id] if args.key?(:subscription_id)
  @tenant_id = args[:tenant_id] if args.key?(:tenant_id)
end