Class: Google::Apis::CloudfunctionsV2alpha::Stage

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

Overview

Each Stage of the deployment process

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Stage

Returns a new instance of Stage.



1955
1956
1957
# File 'lib/google/apis/cloudfunctions_v2alpha/classes.rb', line 1955

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

Instance Attribute Details

#messageString

Message describing the Stage Corresponds to the JSON property message

Returns:

  • (String)


1928
1929
1930
# File 'lib/google/apis/cloudfunctions_v2alpha/classes.rb', line 1928

def message
  @message
end

#nameString

Name of the Stage. This will be unique for each Stage. Corresponds to the JSON property name

Returns:

  • (String)


1933
1934
1935
# File 'lib/google/apis/cloudfunctions_v2alpha/classes.rb', line 1933

def name
  @name
end

#resourceString

Resource of the Stage Corresponds to the JSON property resource

Returns:

  • (String)


1938
1939
1940
# File 'lib/google/apis/cloudfunctions_v2alpha/classes.rb', line 1938

def resource
  @resource
end

#resource_uriString

Link to the current Stage resource Corresponds to the JSON property resourceUri

Returns:

  • (String)


1943
1944
1945
# File 'lib/google/apis/cloudfunctions_v2alpha/classes.rb', line 1943

def resource_uri
  @resource_uri
end

#stateString

Current state of the Stage Corresponds to the JSON property state

Returns:

  • (String)


1948
1949
1950
# File 'lib/google/apis/cloudfunctions_v2alpha/classes.rb', line 1948

def state
  @state
end

#state_messagesArray<Google::Apis::CloudfunctionsV2alpha::GoogleCloudFunctionsV2alphaStateMessage>

State messages from the current Stage. Corresponds to the JSON property stateMessages



1953
1954
1955
# File 'lib/google/apis/cloudfunctions_v2alpha/classes.rb', line 1953

def state_messages
  @state_messages
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1960
1961
1962
1963
1964
1965
1966
1967
# File 'lib/google/apis/cloudfunctions_v2alpha/classes.rb', line 1960

def update!(**args)
  @message = args[:message] if args.key?(:message)
  @name = args[:name] if args.key?(:name)
  @resource = args[:resource] if args.key?(:resource)
  @resource_uri = args[:resource_uri] if args.key?(:resource_uri)
  @state = args[:state] if args.key?(:state)
  @state_messages = args[:state_messages] if args.key?(:state_messages)
end