Autogenerated update (2018-11-17)
Update: - appengine_v1 - clouddebugger_v2 - dns_v1beta2 - firebasehosting_v1beta1 - fitness_v1 - games_management_v1management - games_v1 - jobs_v2 - jobs_v3 - jobs_v3p1beta1 - servicenetworking_v1beta - storage_v1
This commit is contained in:
1 parent
afcac054bf
commit
919e8d0241
32 files changed
+1113
-65
No files matched your search
@@ -620,6 +620,30 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
# A `SiteConfig` contains metadata associated with a specific site that
|
||||
# controls Firebase Hosting serving behavior
|
||||
class SiteConfig
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The number of FINALIZED versions that will be held for a site before
|
||||
# automatic deletion. When a new version is deployed, content for versions
|
||||
# in storage in excess of this number will be deleted, and will no longer be
|
||||
# billed for storage usage. Oldest versions will be deleted first; sites are
|
||||
# created with an unlimited number of max_versions by default.
|
||||
# Corresponds to the JSON property `maxVersions`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :max_versions
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@max_versions = args[:max_versions] if args.key?(:max_versions)
|
||||
end
|
||||
end
|
||||
|
||||
# A `Version` is the collection of configuration and
|
||||
# [static files](sites.versions.files) that determine how a site is displayed.
|
||||
class Version
|
||||
|
||||
@@ -124,6 +124,12 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SiteConfig
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Version
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -302,6 +308,13 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class SiteConfig
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :max_versions, :numeric_string => true, as: 'maxVersions'
|
||||
end
|
||||
end
|
||||
|
||||
class Version
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
||||
@@ -47,6 +47,78 @@ module Google
|
||||
@batch_path = 'batch'
|
||||
end
|
||||
|
||||
# Gets the Hosting metadata for a specific site.
|
||||
# @param [String] name
|
||||
# Required. The site for which to get the SiteConfig, in the format:
|
||||
# <code>sites/<var>site-name</var>/config</code>
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::FirebasehostingV1beta1::SiteConfig] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::FirebasehostingV1beta1::SiteConfig]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def get_site_config(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
||||
command.response_representation = Google::Apis::FirebasehostingV1beta1::SiteConfig::Representation
|
||||
command.response_class = Google::Apis::FirebasehostingV1beta1::SiteConfig
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Sets the Hosting metadata for a specific site.
|
||||
# @param [String] name
|
||||
# Required. The site for which to update the SiteConfig, in the format:
|
||||
# <code>sites/<var>site-name</var>/config</code>
|
||||
# @param [Google::Apis::FirebasehostingV1beta1::SiteConfig] site_config_object
|
||||
# @param [String] update_mask
|
||||
# A set of field names from your [site configuration](../sites.SiteConfig)
|
||||
# that you want to update.
|
||||
# <br>A field will be overwritten if, and only if, it's in the mask.
|
||||
# <br>If a mask is not provided then a default mask of only
|
||||
# [`max_versions`](../sites.SiteConfig.max_versions) will be used.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::FirebasehostingV1beta1::SiteConfig] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::FirebasehostingV1beta1::SiteConfig]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def update_site_config(name, site_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:patch, 'v1beta1/{+name}', options)
|
||||
command.request_representation = Google::Apis::FirebasehostingV1beta1::SiteConfig::Representation
|
||||
command.request_object = site_config_object
|
||||
command.response_representation = Google::Apis::FirebasehostingV1beta1::SiteConfig::Representation
|
||||
command.response_class = Google::Apis::FirebasehostingV1beta1::SiteConfig
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['updateMask'] = update_mask unless update_mask.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Creates a domain mapping on the specified site.
|
||||
# @param [String] parent
|
||||
# Required. The parent to create the domain association for, in the format:
|
||||
|
||||
Reference in new issue
Block a user