Class: Google::Apis::WorkloadmanagerV1::ExternalDataSources
- Inherits:
-
Object
- Object
- Google::Apis::WorkloadmanagerV1::ExternalDataSources
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/workloadmanager_v1/classes.rb,
lib/google/apis/workloadmanager_v1/representations.rb,
lib/google/apis/workloadmanager_v1/representations.rb
Overview
Message for external data sources
Instance Attribute Summary collapse
-
#name ⇒ String
Required.
-
#type ⇒ String
Required.
-
#uri ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ExternalDataSources
constructor
A new instance of ExternalDataSources.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ExternalDataSources
Returns a new instance of ExternalDataSources.
430 431 432 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 430 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Required. Name of external data source. The name will be used inside the rego/
sql to refer the external data
Corresponds to the JSON property name
417 418 419 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 417 def name @name end |
#type ⇒ String
Required. Type of external data source
Corresponds to the JSON property type
422 423 424 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 422 def type @type end |
#uri ⇒ String
Required. URI of external data source. example of bq table project_ID.
dataset_ID.table_ID
Corresponds to the JSON property uri
428 429 430 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 428 def uri @uri end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
435 436 437 438 439 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 435 def update!(**args) @name = args[:name] if args.key?(:name) @type = args[:type] if args.key?(:type) @uri = args[:uri] if args.key?(:uri) end |