Class: Google::Apis::RunV1alpha1::ServiceSpecPinnedType

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

Overview

ServiceSpecPinnedType Pins this service to a specific revision name. The revision must be owned by the configuration provided. Deprecated and not supported by Cloud Run.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ServiceSpecPinnedType

Returns a new instance of ServiceSpecPinnedType.



4203
4204
4205
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4203

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

Instance Attribute Details

#configurationGoogle::Apis::RunV1alpha1::ConfigurationSpec

ConfigurationSpec holds the desired state of the Configuration (from the client). Corresponds to the JSON property configuration



4195
4196
4197
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4195

def configuration
  @configuration
end

#revision_nameString

The revision name to pin this service to until changed to a different service type. Corresponds to the JSON property revisionName

Returns:

  • (String)


4201
4202
4203
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4201

def revision_name
  @revision_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4208
4209
4210
4211
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4208

def update!(**args)
  @configuration = args[:configuration] if args.key?(:configuration)
  @revision_name = args[:revision_name] if args.key?(:revision_name)
end