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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ DeploymentConfig

Returns a new instance of DeploymentConfig



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

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

Instance Attribute Details

#descriptionString

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

Returns:

  • (String)


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

def description
  @description
end

#manifest_file_nameString

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

Returns:

  • (String)


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

def manifest_file_name
  @manifest_file_name
end

#script_idString

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

Returns:

  • (String)


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

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)


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

def version_number
  @version_number
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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