Skip to content

Commit

Permalink
feat: Automated regeneration of sheets v4 client (#18941)
Browse files Browse the repository at this point in the history
Auto-created at 2024-05-05 10:00:27 +0000 using the toys pull request generator.
  • Loading branch information
yoshi-code-bot committed May 5, 2024
1 parent a729b12 commit 43aee04
Show file tree
Hide file tree
Showing 5 changed files with 207 additions and 2 deletions.
15 changes: 15 additions & 0 deletions api_names_out.yaml
Expand Up @@ -309459,6 +309459,16 @@
"/sheets:v4/BubbleChartSpec/groupIds": group_ids
"/sheets:v4/BubbleChartSpec/legendPosition": legend_position
"/sheets:v4/BubbleChartSpec/series": series
"/sheets:v4/CancelDataSourceRefreshRequest": cancel_data_source_refresh_request
"/sheets:v4/CancelDataSourceRefreshRequest/dataSourceId": data_source_id
"/sheets:v4/CancelDataSourceRefreshRequest/isAll": is_all
"/sheets:v4/CancelDataSourceRefreshRequest/references": references
"/sheets:v4/CancelDataSourceRefreshResponse": cancel_data_source_refresh_response
"/sheets:v4/CancelDataSourceRefreshResponse/statuses": statuses
"/sheets:v4/CancelDataSourceRefreshResponse/statuses/status": status
"/sheets:v4/CancelDataSourceRefreshStatus": cancel_data_source_refresh_status
"/sheets:v4/CancelDataSourceRefreshStatus/reference": reference
"/sheets:v4/CancelDataSourceRefreshStatus/refreshCancellationStatus": refresh_cancellation_status
"/sheets:v4/CandlestickChartSpec": candlestick_chart_spec
"/sheets:v4/CandlestickChartSpec/data": data
"/sheets:v4/CandlestickChartSpec/data/datum": datum
Expand Down Expand Up @@ -310045,6 +310055,9 @@
"/sheets:v4/ProtectedRange/warningOnly": warning_only
"/sheets:v4/RandomizeRangeRequest": randomize_range_request
"/sheets:v4/RandomizeRangeRequest/range": range
"/sheets:v4/RefreshCancellationStatus": refresh_cancellation_status
"/sheets:v4/RefreshCancellationStatus/errorCode": error_code
"/sheets:v4/RefreshCancellationStatus/state": state
"/sheets:v4/RefreshDataSourceObjectExecutionStatus": refresh_data_source_object_execution_status
"/sheets:v4/RefreshDataSourceObjectExecutionStatus/dataExecutionStatus": data_execution_status
"/sheets:v4/RefreshDataSourceObjectExecutionStatus/reference": reference
Expand Down Expand Up @@ -310075,6 +310088,7 @@
"/sheets:v4/Request/appendDimension": append_dimension
"/sheets:v4/Request/autoFill": auto_fill
"/sheets:v4/Request/autoResizeDimensions": auto_resize_dimensions
"/sheets:v4/Request/cancelDataSourceRefresh": cancel_data_source_refresh
"/sheets:v4/Request/clearBasicFilter": clear_basic_filter
"/sheets:v4/Request/copyPaste": copy_paste
"/sheets:v4/Request/createDeveloperMetadata": create_developer_metadata
Expand Down Expand Up @@ -310136,6 +310150,7 @@
"/sheets:v4/Response/addProtectedRange": add_protected_range
"/sheets:v4/Response/addSheet": add_sheet
"/sheets:v4/Response/addSlicer": add_slicer
"/sheets:v4/Response/cancelDataSourceRefresh": cancel_data_source_refresh
"/sheets:v4/Response/createDeveloperMetadata": create_developer_metadata
"/sheets:v4/Response/deleteConditionalFormatRule": delete_conditional_format_rule
"/sheets:v4/Response/deleteDeveloperMetadata": delete_developer_metadata
Expand Down
4 changes: 4 additions & 0 deletions generated/google-apis-sheets_v4/CHANGELOG.md
@@ -1,5 +1,9 @@
# Release history for google-apis-sheets_v4

### v0.31.0 (2024-05-05)

* Regenerated from discovery document revision 20240423

### v0.30.0 (2024-04-28)

* Regenerated from discovery document revision 20240416
Expand Down
122 changes: 122 additions & 0 deletions generated/google-apis-sheets_v4/lib/google/apis/sheets_v4/classes.rb
Expand Up @@ -2354,6 +2354,89 @@ def update!(**args)
end
end

# Cancels one or multiple refreshes of data source objects in the spreadsheet by
# the specified references.
class CancelDataSourceRefreshRequest
include Google::Apis::Core::Hashable

# Reference to a DataSource. If specified, cancels all associated data source
# object refreshes for this data source.
# Corresponds to the JSON property `dataSourceId`
# @return [String]
attr_accessor :data_source_id

# Cancels all existing data source object refreshes for all data sources in the
# spreadsheet.
# Corresponds to the JSON property `isAll`
# @return [Boolean]
attr_accessor :is_all
alias_method :is_all?, :is_all

# A list of references to data source objects.
# Corresponds to the JSON property `references`
# @return [Google::Apis::SheetsV4::DataSourceObjectReferences]
attr_accessor :references

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

# Update properties of this object
def update!(**args)
@data_source_id = args[:data_source_id] if args.key?(:data_source_id)
@is_all = args[:is_all] if args.key?(:is_all)
@references = args[:references] if args.key?(:references)
end
end

# The response from cancelling one or multiple data source object refreshes.
class CancelDataSourceRefreshResponse
include Google::Apis::Core::Hashable

# The cancellation statuses of refreshes of all data source objects specified in
# the request. If is_all is specified, the field contains only those in failure
# status. Refreshing and canceling refresh the same data source object is also
# not allowed in the same `batchUpdate`.
# Corresponds to the JSON property `statuses`
# @return [Array<Google::Apis::SheetsV4::CancelDataSourceRefreshStatus>]
attr_accessor :statuses

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

# Update properties of this object
def update!(**args)
@statuses = args[:statuses] if args.key?(:statuses)
end
end

# The status of cancelling a single data source object refresh.
class CancelDataSourceRefreshStatus
include Google::Apis::Core::Hashable

# Reference to a data source object.
# Corresponds to the JSON property `reference`
# @return [Google::Apis::SheetsV4::DataSourceObjectReference]
attr_accessor :reference

# The status of a refresh cancellation. You can send cancel request to
# explicitly cancel one or multiple data source object refreshes.
# Corresponds to the JSON property `refreshCancellationStatus`
# @return [Google::Apis::SheetsV4::RefreshCancellationStatus]
attr_accessor :refresh_cancellation_status

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

# Update properties of this object
def update!(**args)
@reference = args[:reference] if args.key?(:reference)
@refresh_cancellation_status = args[:refresh_cancellation_status] if args.key?(:refresh_cancellation_status)
end
end

# A candlestick chart.
class CandlestickChartSpec
include Google::Apis::Core::Hashable
Expand Down Expand Up @@ -7716,6 +7799,32 @@ def update!(**args)
end
end

# The status of a refresh cancellation. You can send cancel request to
# explicitly cancel one or multiple data source object refreshes.
class RefreshCancellationStatus
include Google::Apis::Core::Hashable

# The error code.
# Corresponds to the JSON property `errorCode`
# @return [String]
attr_accessor :error_code

# The state of a call to cancel a refresh in Sheets.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state

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

# Update properties of this object
def update!(**args)
@error_code = args[:error_code] if args.key?(:error_code)
@state = args[:state] if args.key?(:state)
end
end

# The execution status of refreshing one data source object.
class RefreshDataSourceObjectExecutionStatus
include Google::Apis::Core::Hashable
Expand Down Expand Up @@ -7963,6 +8072,12 @@ class Request
# @return [Google::Apis::SheetsV4::AutoResizeDimensionsRequest]
attr_accessor :auto_resize_dimensions

# Cancels one or multiple refreshes of data source objects in the spreadsheet by
# the specified references.
# Corresponds to the JSON property `cancelDataSourceRefresh`
# @return [Google::Apis::SheetsV4::CancelDataSourceRefreshRequest]
attr_accessor :cancel_data_source_refresh

# Clears the basic filter, if any exists on the sheet.
# Corresponds to the JSON property `clearBasicFilter`
# @return [Google::Apis::SheetsV4::ClearBasicFilterRequest]
Expand Down Expand Up @@ -8284,6 +8399,7 @@ def update!(**args)
@append_dimension = args[:append_dimension] if args.key?(:append_dimension)
@auto_fill = args[:auto_fill] if args.key?(:auto_fill)
@auto_resize_dimensions = args[:auto_resize_dimensions] if args.key?(:auto_resize_dimensions)
@cancel_data_source_refresh = args[:cancel_data_source_refresh] if args.key?(:cancel_data_source_refresh)
@clear_basic_filter = args[:clear_basic_filter] if args.key?(:clear_basic_filter)
@copy_paste = args[:copy_paste] if args.key?(:copy_paste)
@create_developer_metadata = args[:create_developer_metadata] if args.key?(:create_developer_metadata)
Expand Down Expand Up @@ -8387,6 +8503,11 @@ class Response
# @return [Google::Apis::SheetsV4::AddSlicerResponse]
attr_accessor :add_slicer

# The response from cancelling one or multiple data source object refreshes.
# Corresponds to the JSON property `cancelDataSourceRefresh`
# @return [Google::Apis::SheetsV4::CancelDataSourceRefreshResponse]
attr_accessor :cancel_data_source_refresh

# The response from creating developer metadata.
# Corresponds to the JSON property `createDeveloperMetadata`
# @return [Google::Apis::SheetsV4::CreateDeveloperMetadataResponse]
Expand Down Expand Up @@ -8472,6 +8593,7 @@ def update!(**args)
@add_protected_range = args[:add_protected_range] if args.key?(:add_protected_range)
@add_sheet = args[:add_sheet] if args.key?(:add_sheet)
@add_slicer = args[:add_slicer] if args.key?(:add_slicer)
@cancel_data_source_refresh = args[:cancel_data_source_refresh] if args.key?(:cancel_data_source_refresh)
@create_developer_metadata = args[:create_developer_metadata] if args.key?(:create_developer_metadata)
@delete_conditional_format_rule = args[:delete_conditional_format_rule] if args.key?(:delete_conditional_format_rule)
@delete_developer_metadata = args[:delete_developer_metadata] if args.key?(:delete_developer_metadata)
Expand Down
Expand Up @@ -16,13 +16,13 @@ module Google
module Apis
module SheetsV4
# Version of the google-apis-sheets_v4 gem
GEM_VERSION = "0.30.0"
GEM_VERSION = "0.31.0"

# Version of the code generator used to generate this client
GENERATOR_VERSION = "0.14.0"

# Revision of the discovery document this client was generated from
REVISION = "20240416"
REVISION = "20240423"
end
end
end
Expand Up @@ -346,6 +346,24 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end

class CancelDataSourceRefreshRequest
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class CancelDataSourceRefreshResponse
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class CancelDataSourceRefreshStatus
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class CandlestickChartSpec
class Representation < Google::Apis::Core::JsonRepresentation; end

Expand Down Expand Up @@ -1114,6 +1132,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end

class RefreshCancellationStatus
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class RefreshDataSourceObjectExecutionStatus
class Representation < Google::Apis::Core::JsonRepresentation; end

Expand Down Expand Up @@ -2076,6 +2100,34 @@ class Representation < Google::Apis::Core::JsonRepresentation
end
end

class CancelDataSourceRefreshRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :data_source_id, as: 'dataSourceId'
property :is_all, as: 'isAll'
property :references, as: 'references', class: Google::Apis::SheetsV4::DataSourceObjectReferences, decorator: Google::Apis::SheetsV4::DataSourceObjectReferences::Representation

end
end

class CancelDataSourceRefreshResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :statuses, as: 'statuses', class: Google::Apis::SheetsV4::CancelDataSourceRefreshStatus, decorator: Google::Apis::SheetsV4::CancelDataSourceRefreshStatus::Representation

end
end

class CancelDataSourceRefreshStatus
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :reference, as: 'reference', class: Google::Apis::SheetsV4::DataSourceObjectReference, decorator: Google::Apis::SheetsV4::DataSourceObjectReference::Representation

property :refresh_cancellation_status, as: 'refreshCancellationStatus', class: Google::Apis::SheetsV4::RefreshCancellationStatus, decorator: Google::Apis::SheetsV4::RefreshCancellationStatus::Representation

end
end

class CandlestickChartSpec
# @private
class Representation < Google::Apis::Core::JsonRepresentation
Expand Down Expand Up @@ -3449,6 +3501,14 @@ class Representation < Google::Apis::Core::JsonRepresentation
end
end

class RefreshCancellationStatus
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :error_code, as: 'errorCode'
property :state, as: 'state'
end
end

class RefreshDataSourceObjectExecutionStatus
# @private
class Representation < Google::Apis::Core::JsonRepresentation
Expand Down Expand Up @@ -3520,6 +3580,8 @@ class Representation < Google::Apis::Core::JsonRepresentation

property :auto_resize_dimensions, as: 'autoResizeDimensions', class: Google::Apis::SheetsV4::AutoResizeDimensionsRequest, decorator: Google::Apis::SheetsV4::AutoResizeDimensionsRequest::Representation

property :cancel_data_source_refresh, as: 'cancelDataSourceRefresh', class: Google::Apis::SheetsV4::CancelDataSourceRefreshRequest, decorator: Google::Apis::SheetsV4::CancelDataSourceRefreshRequest::Representation

property :clear_basic_filter, as: 'clearBasicFilter', class: Google::Apis::SheetsV4::ClearBasicFilterRequest, decorator: Google::Apis::SheetsV4::ClearBasicFilterRequest::Representation

property :copy_paste, as: 'copyPaste', class: Google::Apis::SheetsV4::CopyPasteRequest, decorator: Google::Apis::SheetsV4::CopyPasteRequest::Representation
Expand Down Expand Up @@ -3646,6 +3708,8 @@ class Representation < Google::Apis::Core::JsonRepresentation

property :add_slicer, as: 'addSlicer', class: Google::Apis::SheetsV4::AddSlicerResponse, decorator: Google::Apis::SheetsV4::AddSlicerResponse::Representation

property :cancel_data_source_refresh, as: 'cancelDataSourceRefresh', class: Google::Apis::SheetsV4::CancelDataSourceRefreshResponse, decorator: Google::Apis::SheetsV4::CancelDataSourceRefreshResponse::Representation

property :create_developer_metadata, as: 'createDeveloperMetadata', class: Google::Apis::SheetsV4::CreateDeveloperMetadataResponse, decorator: Google::Apis::SheetsV4::CreateDeveloperMetadataResponse::Representation

property :delete_conditional_format_rule, as: 'deleteConditionalFormatRule', class: Google::Apis::SheetsV4::DeleteConditionalFormatRuleResponse, decorator: Google::Apis::SheetsV4::DeleteConditionalFormatRuleResponse::Representation
Expand Down

0 comments on commit 43aee04

Please sign in to comment.