Class: Google::Apis::AppengineV1::ZipInfo

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

Overview

The zip file information for a zip deployment.

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) ⇒ ZipInfo

Returns a new instance of ZipInfo



1389
1390
1391
# File 'generated/google/apis/appengine_v1/classes.rb', line 1389

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

Instance Attribute Details

#files_countFixnum

An estimate of the number of files in a zip for a zip deployment. If set, must be greater than or equal to the actual number of files. Used for optimizing performance; if not provided, deployment may be slow. Corresponds to the JSON property filesCount

Returns:

  • (Fixnum)


1387
1388
1389
# File 'generated/google/apis/appengine_v1/classes.rb', line 1387

def files_count
  @files_count
end

#source_urlString

URL of the zip file to deploy from. Must be a URL to a resource in Google Cloud Storage in the form 'http(s)://storage.googleapis.com//'. Corresponds to the JSON property sourceUrl

Returns:

  • (String)


1380
1381
1382
# File 'generated/google/apis/appengine_v1/classes.rb', line 1380

def source_url
  @source_url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1394
1395
1396
1397
# File 'generated/google/apis/appengine_v1/classes.rb', line 1394

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