Autogenerated update (2019-12-15)

Update:
- file_v1
- file_v1beta1
This commit is contained in:
Google APIs 2019-12-15 00:37:07 +00:00
parent b0fa676669
commit 41987f5722
8 changed files with 174 additions and 38 deletions

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/filestore/
module FileV1
VERSION = 'V1'
REVISION = '20190917'
REVISION = '20191213'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -224,6 +224,14 @@ module Google
# @return [Hash<String,Google::Apis::FileV1::GoogleCloudSaasacceleratorManagementProvidersV1RolloutMetadata>]
attr_accessor :rollout_metadata
# Link to the SLM instance template. Only populated when updating SLM
# instances via SSA's Actuation service adaptor.
# Service producers with custom control plane (e.g. Cloud SQL) doesn't
# need to populate this field. Instead they should use software_versions.
# Corresponds to the JSON property `slmInstanceTemplate`
# @return [String]
attr_accessor :slm_instance_template
# SloMetadata contains resources required for proper SLO classification of the
# instance.
# Corresponds to the JSON property `sloMetadata`
@ -268,6 +276,7 @@ module Google
@producer_metadata = args[:producer_metadata] if args.key?(:producer_metadata)
@provisioned_resources = args[:provisioned_resources] if args.key?(:provisioned_resources)
@rollout_metadata = args[:rollout_metadata] if args.key?(:rollout_metadata)
@slm_instance_template = args[:slm_instance_template] if args.key?(:slm_instance_template)
@slo_metadata = args[:slo_metadata] if args.key?(:slo_metadata)
@software_versions = args[:software_versions] if args.key?(:software_versions)
@state = args[:state] if args.key?(:state)
@ -460,7 +469,37 @@ module Google
end
end
# SloExclusion represents an excusion in SLI calculation applies to all SLOs.
# SloEligibility is a tuple containing eligibility value: true if an instance
# is eligible for SLO calculation or false if it should be excluded from all
# SLO-related calculations along with a user-defined reason.
class GoogleCloudSaasacceleratorManagementProvidersV1SloEligibility
include Google::Apis::Core::Hashable
# Whether an instance is eligible or ineligible.
# Corresponds to the JSON property `eligible`
# @return [Boolean]
attr_accessor :eligible
alias_method :eligible?, :eligible
# User-defined reason for the current value of instance eligibility. Usually,
# this can be directly mapped to the internal state. An empty reason is
# allowed.
# Corresponds to the JSON property `reason`
# @return [String]
attr_accessor :reason
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@eligible = args[:eligible] if args.key?(:eligible)
@reason = args[:reason] if args.key?(:reason)
end
end
# SloExclusion represents an exclusion in SLI calculation applies to all SLOs.
class GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion
include Google::Apis::Core::Hashable
@ -471,14 +510,9 @@ module Google
# as long as such extension is committed at least 10 minutes before the
# original exclusion expiration - otherwise it is possible that there will
# be "gaps" in the exclusion application in the exported timeseries.
# Corresponds to the JSON property `exclusionDuration`
# Corresponds to the JSON property `duration`
# @return [String]
attr_accessor :exclusion_duration
# Start time of the exclusion. No alignment (e.g. to a full minute) needed.
# Corresponds to the JSON property `exclusionStartTime`
# @return [String]
attr_accessor :exclusion_start_time
attr_accessor :duration
# Human-readable reason for the exclusion.
# This should be a static string (e.g. "Disruptive update in progress")
@ -495,16 +529,21 @@ module Google
# @return [String]
attr_accessor :sli_name
# Start time of the exclusion. No alignment (e.g. to a full minute) needed.
# Corresponds to the JSON property `startTime`
# @return [String]
attr_accessor :start_time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@exclusion_duration = args[:exclusion_duration] if args.key?(:exclusion_duration)
@exclusion_start_time = args[:exclusion_start_time] if args.key?(:exclusion_start_time)
@duration = args[:duration] if args.key?(:duration)
@reason = args[:reason] if args.key?(:reason)
@sli_name = args[:sli_name] if args.key?(:sli_name)
@start_time = args[:start_time] if args.key?(:start_time)
end
end
@ -513,6 +552,13 @@ module Google
class GoogleCloudSaasacceleratorManagementProvidersV1SloMetadata
include Google::Apis::Core::Hashable
# SloEligibility is a tuple containing eligibility value: true if an instance
# is eligible for SLO calculation or false if it should be excluded from all
# SLO-related calculations along with a user-defined reason.
# Corresponds to the JSON property `eligibility`
# @return [Google::Apis::FileV1::GoogleCloudSaasacceleratorManagementProvidersV1SloEligibility]
attr_accessor :eligibility
# List of SLO exclusion windows. When multiple entries in the list match
# (matching the exclusion time-window against current time point)
# the exclusion reason used in the first matching entry will be published.
@ -522,8 +568,8 @@ module Google
# in the historically produced timeseries regardless of the current state).
# This field can be used to mark the instance as temporary ineligible
# for the purpose of SLO calculation. For permanent instance SLO exclusion,
# a dedicated tier name can be used that does not have targets specified
# in the service SLO configuration.
# use of custom instance eligibility is recommended. See 'eligibility' field
# below.
# Corresponds to the JSON property `exclusions`
# @return [Array<Google::Apis::FileV1::GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion>]
attr_accessor :exclusions
@ -550,6 +596,7 @@ module Google
# Update properties of this object
def update!(**args)
@eligibility = args[:eligibility] if args.key?(:eligibility)
@exclusions = args[:exclusions] if args.key?(:exclusions)
@nodes = args[:nodes] if args.key?(:nodes)
@tier = args[:tier] if args.key?(:tier)

View File

@ -76,6 +76,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSaasacceleratorManagementProvidersV1SloEligibility
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -177,6 +183,7 @@ module Google
hash :rollout_metadata, as: 'rolloutMetadata', class: Google::Apis::FileV1::GoogleCloudSaasacceleratorManagementProvidersV1RolloutMetadata, decorator: Google::Apis::FileV1::GoogleCloudSaasacceleratorManagementProvidersV1RolloutMetadata::Representation
property :slm_instance_template, as: 'slmInstanceTemplate'
property :slo_metadata, as: 'sloMetadata', class: Google::Apis::FileV1::GoogleCloudSaasacceleratorManagementProvidersV1SloMetadata, decorator: Google::Apis::FileV1::GoogleCloudSaasacceleratorManagementProvidersV1SloMetadata::Representation
hash :software_versions, as: 'softwareVersions'
@ -234,19 +241,29 @@ module Google
end
end
class GoogleCloudSaasacceleratorManagementProvidersV1SloEligibility
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :eligible, as: 'eligible'
property :reason, as: 'reason'
end
end
class GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :exclusion_duration, as: 'exclusionDuration'
property :exclusion_start_time, as: 'exclusionStartTime'
property :duration, as: 'duration'
property :reason, as: 'reason'
property :sli_name, as: 'sliName'
property :start_time, as: 'startTime'
end
end
class GoogleCloudSaasacceleratorManagementProvidersV1SloMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :eligibility, as: 'eligibility', class: Google::Apis::FileV1::GoogleCloudSaasacceleratorManagementProvidersV1SloEligibility, decorator: Google::Apis::FileV1::GoogleCloudSaasacceleratorManagementProvidersV1SloEligibility::Representation
collection :exclusions, as: 'exclusions', class: Google::Apis::FileV1::GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion, decorator: Google::Apis::FileV1::GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion::Representation
collection :nodes, as: 'nodes', class: Google::Apis::FileV1::GoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata, decorator: Google::Apis::FileV1::GoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata::Representation

View File

@ -82,6 +82,9 @@ module Google
# The resource that owns the locations collection, if applicable.
# @param [String] filter
# The standard list filter.
# @param [Boolean] include_unrevealed_locations
# If true, the returned list will include locations which are not yet
# revealed.
# @param [Fixnum] page_size
# The standard list page size.
# @param [String] page_token
@ -103,12 +106,13 @@ module Google
# @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 list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
def list_project_locations(name, filter: nil, include_unrevealed_locations: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}/locations', options)
command.response_representation = Google::Apis::FileV1::ListLocationsResponse::Representation
command.response_class = Google::Apis::FileV1::ListLocationsResponse
command.params['name'] = name unless name.nil?
command.query['filter'] = filter unless filter.nil?
command.query['includeUnrevealedLocations'] = include_unrevealed_locations unless include_unrevealed_locations.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
@ -274,9 +278,9 @@ module Google
# Mask of fields to update. At least one path must be supplied in this
# field. The elements of the repeated paths field may only include these
# fields:
# "description"
# "file_shares"
# "labels"
# * "description"
# * "file_shares"
# * "labels"
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/filestore/
module FileV1beta1
VERSION = 'V1beta1'
REVISION = '20190917'
REVISION = '20191213'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -224,6 +224,14 @@ module Google
# @return [Hash<String,Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1RolloutMetadata>]
attr_accessor :rollout_metadata
# Link to the SLM instance template. Only populated when updating SLM
# instances via SSA's Actuation service adaptor.
# Service producers with custom control plane (e.g. Cloud SQL) doesn't
# need to populate this field. Instead they should use software_versions.
# Corresponds to the JSON property `slmInstanceTemplate`
# @return [String]
attr_accessor :slm_instance_template
# SloMetadata contains resources required for proper SLO classification of the
# instance.
# Corresponds to the JSON property `sloMetadata`
@ -268,6 +276,7 @@ module Google
@producer_metadata = args[:producer_metadata] if args.key?(:producer_metadata)
@provisioned_resources = args[:provisioned_resources] if args.key?(:provisioned_resources)
@rollout_metadata = args[:rollout_metadata] if args.key?(:rollout_metadata)
@slm_instance_template = args[:slm_instance_template] if args.key?(:slm_instance_template)
@slo_metadata = args[:slo_metadata] if args.key?(:slo_metadata)
@software_versions = args[:software_versions] if args.key?(:software_versions)
@state = args[:state] if args.key?(:state)
@ -460,7 +469,37 @@ module Google
end
end
# SloExclusion represents an excusion in SLI calculation applies to all SLOs.
# SloEligibility is a tuple containing eligibility value: true if an instance
# is eligible for SLO calculation or false if it should be excluded from all
# SLO-related calculations along with a user-defined reason.
class GoogleCloudSaasacceleratorManagementProvidersV1SloEligibility
include Google::Apis::Core::Hashable
# Whether an instance is eligible or ineligible.
# Corresponds to the JSON property `eligible`
# @return [Boolean]
attr_accessor :eligible
alias_method :eligible?, :eligible
# User-defined reason for the current value of instance eligibility. Usually,
# this can be directly mapped to the internal state. An empty reason is
# allowed.
# Corresponds to the JSON property `reason`
# @return [String]
attr_accessor :reason
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@eligible = args[:eligible] if args.key?(:eligible)
@reason = args[:reason] if args.key?(:reason)
end
end
# SloExclusion represents an exclusion in SLI calculation applies to all SLOs.
class GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion
include Google::Apis::Core::Hashable
@ -471,14 +510,9 @@ module Google
# as long as such extension is committed at least 10 minutes before the
# original exclusion expiration - otherwise it is possible that there will
# be "gaps" in the exclusion application in the exported timeseries.
# Corresponds to the JSON property `exclusionDuration`
# Corresponds to the JSON property `duration`
# @return [String]
attr_accessor :exclusion_duration
# Start time of the exclusion. No alignment (e.g. to a full minute) needed.
# Corresponds to the JSON property `exclusionStartTime`
# @return [String]
attr_accessor :exclusion_start_time
attr_accessor :duration
# Human-readable reason for the exclusion.
# This should be a static string (e.g. "Disruptive update in progress")
@ -495,16 +529,21 @@ module Google
# @return [String]
attr_accessor :sli_name
# Start time of the exclusion. No alignment (e.g. to a full minute) needed.
# Corresponds to the JSON property `startTime`
# @return [String]
attr_accessor :start_time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@exclusion_duration = args[:exclusion_duration] if args.key?(:exclusion_duration)
@exclusion_start_time = args[:exclusion_start_time] if args.key?(:exclusion_start_time)
@duration = args[:duration] if args.key?(:duration)
@reason = args[:reason] if args.key?(:reason)
@sli_name = args[:sli_name] if args.key?(:sli_name)
@start_time = args[:start_time] if args.key?(:start_time)
end
end
@ -513,6 +552,13 @@ module Google
class GoogleCloudSaasacceleratorManagementProvidersV1SloMetadata
include Google::Apis::Core::Hashable
# SloEligibility is a tuple containing eligibility value: true if an instance
# is eligible for SLO calculation or false if it should be excluded from all
# SLO-related calculations along with a user-defined reason.
# Corresponds to the JSON property `eligibility`
# @return [Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1SloEligibility]
attr_accessor :eligibility
# List of SLO exclusion windows. When multiple entries in the list match
# (matching the exclusion time-window against current time point)
# the exclusion reason used in the first matching entry will be published.
@ -522,8 +568,8 @@ module Google
# in the historically produced timeseries regardless of the current state).
# This field can be used to mark the instance as temporary ineligible
# for the purpose of SLO calculation. For permanent instance SLO exclusion,
# a dedicated tier name can be used that does not have targets specified
# in the service SLO configuration.
# use of custom instance eligibility is recommended. See 'eligibility' field
# below.
# Corresponds to the JSON property `exclusions`
# @return [Array<Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion>]
attr_accessor :exclusions
@ -550,6 +596,7 @@ module Google
# Update properties of this object
def update!(**args)
@eligibility = args[:eligibility] if args.key?(:eligibility)
@exclusions = args[:exclusions] if args.key?(:exclusions)
@nodes = args[:nodes] if args.key?(:nodes)
@tier = args[:tier] if args.key?(:tier)

View File

@ -76,6 +76,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSaasacceleratorManagementProvidersV1SloEligibility
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -177,6 +183,7 @@ module Google
hash :rollout_metadata, as: 'rolloutMetadata', class: Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1RolloutMetadata, decorator: Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1RolloutMetadata::Representation
property :slm_instance_template, as: 'slmInstanceTemplate'
property :slo_metadata, as: 'sloMetadata', class: Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1SloMetadata, decorator: Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1SloMetadata::Representation
hash :software_versions, as: 'softwareVersions'
@ -234,19 +241,29 @@ module Google
end
end
class GoogleCloudSaasacceleratorManagementProvidersV1SloEligibility
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :eligible, as: 'eligible'
property :reason, as: 'reason'
end
end
class GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :exclusion_duration, as: 'exclusionDuration'
property :exclusion_start_time, as: 'exclusionStartTime'
property :duration, as: 'duration'
property :reason, as: 'reason'
property :sli_name, as: 'sliName'
property :start_time, as: 'startTime'
end
end
class GoogleCloudSaasacceleratorManagementProvidersV1SloMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :eligibility, as: 'eligibility', class: Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1SloEligibility, decorator: Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1SloEligibility::Representation
collection :exclusions, as: 'exclusions', class: Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion, decorator: Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion::Representation
collection :nodes, as: 'nodes', class: Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata, decorator: Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata::Representation

View File

@ -82,6 +82,9 @@ module Google
# The resource that owns the locations collection, if applicable.
# @param [String] filter
# The standard list filter.
# @param [Boolean] include_unrevealed_locations
# If true, the returned list will include locations which are not yet
# revealed.
# @param [Fixnum] page_size
# The standard list page size.
# @param [String] page_token
@ -103,12 +106,13 @@ module Google
# @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 list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
def list_project_locations(name, filter: nil, include_unrevealed_locations: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+name}/locations', options)
command.response_representation = Google::Apis::FileV1beta1::ListLocationsResponse::Representation
command.response_class = Google::Apis::FileV1beta1::ListLocationsResponse
command.params['name'] = name unless name.nil?
command.query['filter'] = filter unless filter.nil?
command.query['includeUnrevealedLocations'] = include_unrevealed_locations unless include_unrevealed_locations.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
@ -274,9 +278,9 @@ module Google
# Mask of fields to update. At least one path must be supplied in this
# field. The elements of the repeated paths field may only include these
# fields:
# "description"
# "file_shares"
# "labels"
# * "description"
# * "file_shares"
# * "labels"
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user