Class: Google::Apis::AnalyticsadminV1beta::GoogleAnalyticsAdminV1betaMeasurementProtocolSecret
- Inherits:
-
Object
- Object
- Google::Apis::AnalyticsadminV1beta::GoogleAnalyticsAdminV1betaMeasurementProtocolSecret
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/analyticsadmin_v1beta/classes.rb,
lib/google/apis/analyticsadmin_v1beta/representations.rb,
lib/google/apis/analyticsadmin_v1beta/representations.rb
Overview
A secret value used for sending hits to Measurement Protocol.
Instance Attribute Summary collapse
-
#display_name ⇒ String
Required.
-
#name ⇒ String
Output only.
-
#secret_value ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAnalyticsAdminV1betaMeasurementProtocolSecret
constructor
A new instance of GoogleAnalyticsAdminV1betaMeasurementProtocolSecret.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAnalyticsAdminV1betaMeasurementProtocolSecret
Returns a new instance of GoogleAnalyticsAdminV1betaMeasurementProtocolSecret.
1860 1861 1862 |
# File 'lib/google/apis/analyticsadmin_v1beta/classes.rb', line 1860 def initialize(**args) update!(**args) end |
Instance Attribute Details
#display_name ⇒ String
Required. Human-readable display name for this secret.
Corresponds to the JSON property displayName
1844 1845 1846 |
# File 'lib/google/apis/analyticsadmin_v1beta/classes.rb', line 1844 def display_name @display_name end |
#name ⇒ String
Output only. Resource name of this secret. This secret may be a child of any
type of stream. Format: properties/property
/dataStreams/dataStream
/
measurementProtocolSecrets/measurementProtocolSecret
Corresponds to the JSON property name
1851 1852 1853 |
# File 'lib/google/apis/analyticsadmin_v1beta/classes.rb', line 1851 def name @name end |
#secret_value ⇒ String
Output only. The measurement protocol secret value. Pass this value to the
api_secret field of the Measurement Protocol API when sending hits to this
secret's parent property.
Corresponds to the JSON property secretValue
1858 1859 1860 |
# File 'lib/google/apis/analyticsadmin_v1beta/classes.rb', line 1858 def secret_value @secret_value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1865 1866 1867 1868 1869 |
# File 'lib/google/apis/analyticsadmin_v1beta/classes.rb', line 1865 def update!(**args) @display_name = args[:display_name] if args.key?(:display_name) @name = args[:name] if args.key?(:name) @secret_value = args[:secret_value] if args.key?(:secret_value) end |