Class: Google::Apis::ScriptV1::DeploymentConfig

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

Overview

Metadata the defines how a deployment is configured.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DeploymentConfig

Returns a new instance of DeploymentConfig.



140
141
142
# File 'generated/google/apis/script_v1/classes.rb', line 140

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

Instance Attribute Details

#descriptionString

The description for this deployment. Corresponds to the JSON property description

Returns:

  • (String)


123
124
125
# File 'generated/google/apis/script_v1/classes.rb', line 123

def description
  @description
end

#manifest_file_nameString

The manifest file name for this deployment. Corresponds to the JSON property manifestFileName

Returns:

  • (String)


128
129
130
# File 'generated/google/apis/script_v1/classes.rb', line 128

def manifest_file_name
  @manifest_file_name
end

#script_idString

The script project's Drive ID. Corresponds to the JSON property scriptId

Returns:

  • (String)


133
134
135
# File 'generated/google/apis/script_v1/classes.rb', line 133

def script_id
  @script_id
end

#version_numberFixnum

The version number on which this deployment is based. Corresponds to the JSON property versionNumber

Returns:

  • (Fixnum)


138
139
140
# File 'generated/google/apis/script_v1/classes.rb', line 138

def version_number
  @version_number
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



145
146
147
148
149
150
# File 'generated/google/apis/script_v1/classes.rb', line 145

def update!(**args)
  @description = args[:description] if args.key?(:description)
  @manifest_file_name = args[:manifest_file_name] if args.key?(:manifest_file_name)
  @script_id = args[:script_id] if args.key?(:script_id)
  @version_number = args[:version_number] if args.key?(:version_number)
end