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
-
#asset_type ⇒ String
Required.
-
#name ⇒ String
Optional.
-
#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.
513 514 515 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 513 def initialize(**args) update!(**args) end |
Instance Attribute Details
#asset_type ⇒ String
Required. The asset type of the external data source this can be one of go/cai-
asset-types to override the default asset type or it can be a custom type
defined by the user custom type must match the asset type in the rule
Corresponds to the JSON property assetType
494 495 496 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 494 def asset_type @asset_type end |
#name ⇒ String
Optional. 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
500 501 502 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 500 def name @name end |
#type ⇒ String
Required. Type of external data source
Corresponds to the JSON property type
505 506 507 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 505 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
511 512 513 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 511 def uri @uri end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
518 519 520 521 522 523 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 518 def update!(**args) @asset_type = args[:asset_type] if args.key?(:asset_type) @name = args[:name] if args.key?(:name) @type = args[:type] if args.key?(:type) @uri = args[:uri] if args.key?(:uri) end |