Class: Google::Apis::PubsubV1::RollbackSchemaRequest

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

Overview

Request for the RollbackSchema method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RollbackSchemaRequest

Returns a new instance of RollbackSchemaRequest.



1520
1521
1522
# File 'lib/google/apis/pubsub_v1/classes.rb', line 1520

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

Instance Attribute Details

#revision_idString

Required. The revision ID to roll back to. It must be a revision of the same schema. Example: c7cfa2a8 Corresponds to the JSON property revisionId

Returns:

  • (String)


1518
1519
1520
# File 'lib/google/apis/pubsub_v1/classes.rb', line 1518

def revision_id
  @revision_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1525
1526
1527
# File 'lib/google/apis/pubsub_v1/classes.rb', line 1525

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