Class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1RuntimeSpecGenerationAddonConfig
- Inherits:
-
Object
- Object
- Google::Apis::ApigeeV1::GoogleCloudApigeeV1RuntimeSpecGenerationAddonConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/apigee_v1/classes.rb,
lib/google/apis/apigee_v1/representations.rb,
lib/google/apis/apigee_v1/representations.rb
Overview
Runtime configuration for the Spec Generation add-on. All fields are proto3 primitives (bool, string, double) rather than google.protobuf.*Value wrappers because the runtime consumer deserializes the JSON via Gson field reflection with no registered type adapters. Wrapper types would serialize as JSON objects/null that Gson cannot bind to Java primitive fields.
Instance Attribute Summary collapse
-
#api_observations_pubsub_topic ⇒ String
Full Pub/Sub topic path in the Apigee Runtime Tenant Project where the Schema Inferring Engine publishes inferred ApiObservation messages.
-
#enabled ⇒ Boolean
(also: #enabled?)
Whether the Spec Generation add-on is active for this environment.
-
#enabled_until ⇒ String
ISO-8601 timestamp until which Spec Generation remains active (e.g. "2026-12- 31T23:59:59Z").
-
#raw_observations_pubsub_topic ⇒ String
Full Pub/Sub topic path in the Apigee Runtime Tenant Project where the message processor publishes captured RawObservation messages.
-
#sampling_rate ⇒ Float
Fraction of eligible transactions to capture, in [0.0, 1.0].
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudApigeeV1RuntimeSpecGenerationAddonConfig
constructor
A new instance of GoogleCloudApigeeV1RuntimeSpecGenerationAddonConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudApigeeV1RuntimeSpecGenerationAddonConfig
Returns a new instance of GoogleCloudApigeeV1RuntimeSpecGenerationAddonConfig.
10359 10360 10361 |
# File 'lib/google/apis/apigee_v1/classes.rb', line 10359 def initialize(**args) update!(**args) end |
Instance Attribute Details
#api_observations_pubsub_topic ⇒ String
Full Pub/Sub topic path in the Apigee Runtime Tenant Project where the Schema
Inferring Engine publishes inferred ApiObservation messages. Format: projects/
project/topics/topic. Same sentinel semantics as
raw_observations_pubsub_topic. Default: empty string.
Corresponds to the JSON property apiObservationsPubsubTopic
10326 10327 10328 |
# File 'lib/google/apis/apigee_v1/classes.rb', line 10326 def api_observations_pubsub_topic @api_observations_pubsub_topic end |
#enabled ⇒ Boolean Also known as: enabled?
Whether the Spec Generation add-on is active for this environment. Default:
false.
Corresponds to the JSON property enabled
10332 10333 10334 |
# File 'lib/google/apis/apigee_v1/classes.rb', line 10332 def enabled @enabled end |
#enabled_until ⇒ String
ISO-8601 timestamp until which Spec Generation remains active (e.g. "2026-12-
31T23:59:59Z"). Empty string is the canonical "not configured" sentinel and
MUST be treated by the consumer as "expired" (short-circuit before parsing).
Default: empty string.
Corresponds to the JSON property enabledUntil
10341 10342 10343 |
# File 'lib/google/apis/apigee_v1/classes.rb', line 10341 def enabled_until @enabled_until end |
#raw_observations_pubsub_topic ⇒ String
Full Pub/Sub topic path in the Apigee Runtime Tenant Project where the message
processor publishes captured RawObservation messages. Format: projects/
project/topics/topic. Empty string is the "not configured" sentinel; the
consumer short-circuits publishing when empty. Default: empty string.
Corresponds to the JSON property rawObservationsPubsubTopic
10349 10350 10351 |
# File 'lib/google/apis/apigee_v1/classes.rb', line 10349 def raw_observations_pubsub_topic @raw_observations_pubsub_topic end |
#sampling_rate ⇒ Float
Fraction of eligible transactions to capture, in [0.0, 1.0]. The consumer
enforces an internal upper-bound clamp independently of this field. Default: 0.
0 (omitted from JSON per proto3 default-scalar-omission; the consumer's field
initializer supplies the effective 0.01 fallback).
Corresponds to the JSON property samplingRate
10357 10358 10359 |
# File 'lib/google/apis/apigee_v1/classes.rb', line 10357 def sampling_rate @sampling_rate end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
10364 10365 10366 10367 10368 10369 10370 |
# File 'lib/google/apis/apigee_v1/classes.rb', line 10364 def update!(**args) @api_observations_pubsub_topic = args[:api_observations_pubsub_topic] if args.key?(:api_observations_pubsub_topic) @enabled = args[:enabled] if args.key?(:enabled) @enabled_until = args[:enabled_until] if args.key?(:enabled_until) @raw_observations_pubsub_topic = args[:raw_observations_pubsub_topic] if args.key?(:raw_observations_pubsub_topic) @sampling_rate = args[:sampling_rate] if args.key?(:sampling_rate) end |