google-apis-sheets_v4 0.26.0 → 0.32.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fee66c181eb21e4a47f5442b5b36fd452b040840f69a99af0acf5feb165909da
4
- data.tar.gz: 585bbd8b0707bbfca75ed42aa4a286b436224bc98b931376015001525b9d0131
3
+ metadata.gz: 7ed12962927fc4ddf8100ec0f875a594efedc9016237c91a88ad7388766b1f1b
4
+ data.tar.gz: ab66f98bb0cb18c96b2c90518c336bcbfa06b224287c341cde90501bc9bbf854
5
5
  SHA512:
6
- metadata.gz: d21c98d9799619f76d2188edbff59b94a2ac077c2b5769069c863e63385d5ee0d950e45e96677f942b6728516703cc6fe0d6f4d991fe5138b8b75401aa4eaa81
7
- data.tar.gz: 15962e1b23904f6e39d841ddd9d79b4ebc2a55e68f685783cbdcf97f1e1468c646522622b291bf3baa6cebe2e5816151b94acf19bbb864c84a95af15043351aa
6
+ metadata.gz: 383de88557577fedf57af51eeb87d029e93e92e8edb020c06ea662909d09671784cbddb2849197e1e7ba450452b560ae853376b4bc065e1023f91b36bac11688
7
+ data.tar.gz: 4bc59adfa0cb7a482b50fd96f9664c86c2cfcf3b3c5ff266680f6668b5294f46ece8a393993607a990fd66d72999c8aac56a24c3e66aa40674f5355acda10c60
data/CHANGELOG.md CHANGED
@@ -1,5 +1,31 @@
1
1
  # Release history for google-apis-sheets_v4
2
2
 
3
+ ### v0.32.0 (2024-05-26)
4
+
5
+ * Regenerated from discovery document revision 20240514
6
+ * Regenerated using generator version 0.15.0
7
+
8
+ ### v0.31.0 (2024-05-05)
9
+
10
+ * Regenerated from discovery document revision 20240423
11
+
12
+ ### v0.30.0 (2024-04-28)
13
+
14
+ * Regenerated from discovery document revision 20240416
15
+
16
+ ### v0.29.0 (2024-03-24)
17
+
18
+ * Regenerated from discovery document revision 20240312
19
+ * Regenerated using generator version 0.14.0
20
+
21
+ ### v0.28.0 (2024-02-23)
22
+
23
+ * Regenerated using generator version 0.13.1
24
+
25
+ ### v0.27.0 (2024-01-23)
26
+
27
+ * Regenerated using generator version 0.13.0
28
+
3
29
  ### v0.26.0 (2023-08-27)
4
30
 
5
31
  * Regenerated from discovery document revision 20230815
data/OVERVIEW.md CHANGED
@@ -83,9 +83,9 @@ The [product documentation](https://developers.google.com/sheets/) may provide g
83
83
 
84
84
  ## Supported Ruby versions
85
85
 
86
- This library is supported on Ruby 2.5+.
86
+ This library is supported on Ruby 2.7+.
87
87
 
88
- Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Currently, this means Ruby 2.5 and later. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
88
+ Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
89
89
 
90
90
  ## License
91
91
 
@@ -2354,6 +2354,89 @@ module Google
2354
2354
  end
2355
2355
  end
2356
2356
 
2357
+ # Cancels one or multiple refreshes of data source objects in the spreadsheet by
2358
+ # the specified references.
2359
+ class CancelDataSourceRefreshRequest
2360
+ include Google::Apis::Core::Hashable
2361
+
2362
+ # Reference to a DataSource. If specified, cancels all associated data source
2363
+ # object refreshes for this data source.
2364
+ # Corresponds to the JSON property `dataSourceId`
2365
+ # @return [String]
2366
+ attr_accessor :data_source_id
2367
+
2368
+ # Cancels all existing data source object refreshes for all data sources in the
2369
+ # spreadsheet.
2370
+ # Corresponds to the JSON property `isAll`
2371
+ # @return [Boolean]
2372
+ attr_accessor :is_all
2373
+ alias_method :is_all?, :is_all
2374
+
2375
+ # A list of references to data source objects.
2376
+ # Corresponds to the JSON property `references`
2377
+ # @return [Google::Apis::SheetsV4::DataSourceObjectReferences]
2378
+ attr_accessor :references
2379
+
2380
+ def initialize(**args)
2381
+ update!(**args)
2382
+ end
2383
+
2384
+ # Update properties of this object
2385
+ def update!(**args)
2386
+ @data_source_id = args[:data_source_id] if args.key?(:data_source_id)
2387
+ @is_all = args[:is_all] if args.key?(:is_all)
2388
+ @references = args[:references] if args.key?(:references)
2389
+ end
2390
+ end
2391
+
2392
+ # The response from cancelling one or multiple data source object refreshes.
2393
+ class CancelDataSourceRefreshResponse
2394
+ include Google::Apis::Core::Hashable
2395
+
2396
+ # The cancellation statuses of refreshes of all data source objects specified in
2397
+ # the request. If is_all is specified, the field contains only those in failure
2398
+ # status. Refreshing and canceling refresh the same data source object is also
2399
+ # not allowed in the same `batchUpdate`.
2400
+ # Corresponds to the JSON property `statuses`
2401
+ # @return [Array<Google::Apis::SheetsV4::CancelDataSourceRefreshStatus>]
2402
+ attr_accessor :statuses
2403
+
2404
+ def initialize(**args)
2405
+ update!(**args)
2406
+ end
2407
+
2408
+ # Update properties of this object
2409
+ def update!(**args)
2410
+ @statuses = args[:statuses] if args.key?(:statuses)
2411
+ end
2412
+ end
2413
+
2414
+ # The status of cancelling a single data source object refresh.
2415
+ class CancelDataSourceRefreshStatus
2416
+ include Google::Apis::Core::Hashable
2417
+
2418
+ # Reference to a data source object.
2419
+ # Corresponds to the JSON property `reference`
2420
+ # @return [Google::Apis::SheetsV4::DataSourceObjectReference]
2421
+ attr_accessor :reference
2422
+
2423
+ # The status of a refresh cancellation. You can send a cancel request to
2424
+ # explicitly cancel one or multiple data source object refreshes.
2425
+ # Corresponds to the JSON property `refreshCancellationStatus`
2426
+ # @return [Google::Apis::SheetsV4::RefreshCancellationStatus]
2427
+ attr_accessor :refresh_cancellation_status
2428
+
2429
+ def initialize(**args)
2430
+ update!(**args)
2431
+ end
2432
+
2433
+ # Update properties of this object
2434
+ def update!(**args)
2435
+ @reference = args[:reference] if args.key?(:reference)
2436
+ @refresh_cancellation_status = args[:refresh_cancellation_status] if args.key?(:refresh_cancellation_status)
2437
+ end
2438
+ end
2439
+
2357
2440
  # A candlestick chart.
2358
2441
  class CandlestickChartSpec
2359
2442
  include Google::Apis::Core::Hashable
@@ -7716,6 +7799,32 @@ module Google
7716
7799
  end
7717
7800
  end
7718
7801
 
7802
+ # The status of a refresh cancellation. You can send a cancel request to
7803
+ # explicitly cancel one or multiple data source object refreshes.
7804
+ class RefreshCancellationStatus
7805
+ include Google::Apis::Core::Hashable
7806
+
7807
+ # The error code.
7808
+ # Corresponds to the JSON property `errorCode`
7809
+ # @return [String]
7810
+ attr_accessor :error_code
7811
+
7812
+ # The state of a call to cancel a refresh in Sheets.
7813
+ # Corresponds to the JSON property `state`
7814
+ # @return [String]
7815
+ attr_accessor :state
7816
+
7817
+ def initialize(**args)
7818
+ update!(**args)
7819
+ end
7820
+
7821
+ # Update properties of this object
7822
+ def update!(**args)
7823
+ @error_code = args[:error_code] if args.key?(:error_code)
7824
+ @state = args[:state] if args.key?(:state)
7825
+ end
7826
+ end
7827
+
7719
7828
  # The execution status of refreshing one data source object.
7720
7829
  class RefreshDataSourceObjectExecutionStatus
7721
7830
  include Google::Apis::Core::Hashable
@@ -7963,6 +8072,12 @@ module Google
7963
8072
  # @return [Google::Apis::SheetsV4::AutoResizeDimensionsRequest]
7964
8073
  attr_accessor :auto_resize_dimensions
7965
8074
 
8075
+ # Cancels one or multiple refreshes of data source objects in the spreadsheet by
8076
+ # the specified references.
8077
+ # Corresponds to the JSON property `cancelDataSourceRefresh`
8078
+ # @return [Google::Apis::SheetsV4::CancelDataSourceRefreshRequest]
8079
+ attr_accessor :cancel_data_source_refresh
8080
+
7966
8081
  # Clears the basic filter, if any exists on the sheet.
7967
8082
  # Corresponds to the JSON property `clearBasicFilter`
7968
8083
  # @return [Google::Apis::SheetsV4::ClearBasicFilterRequest]
@@ -8284,6 +8399,7 @@ module Google
8284
8399
  @append_dimension = args[:append_dimension] if args.key?(:append_dimension)
8285
8400
  @auto_fill = args[:auto_fill] if args.key?(:auto_fill)
8286
8401
  @auto_resize_dimensions = args[:auto_resize_dimensions] if args.key?(:auto_resize_dimensions)
8402
+ @cancel_data_source_refresh = args[:cancel_data_source_refresh] if args.key?(:cancel_data_source_refresh)
8287
8403
  @clear_basic_filter = args[:clear_basic_filter] if args.key?(:clear_basic_filter)
8288
8404
  @copy_paste = args[:copy_paste] if args.key?(:copy_paste)
8289
8405
  @create_developer_metadata = args[:create_developer_metadata] if args.key?(:create_developer_metadata)
@@ -8387,6 +8503,11 @@ module Google
8387
8503
  # @return [Google::Apis::SheetsV4::AddSlicerResponse]
8388
8504
  attr_accessor :add_slicer
8389
8505
 
8506
+ # The response from cancelling one or multiple data source object refreshes.
8507
+ # Corresponds to the JSON property `cancelDataSourceRefresh`
8508
+ # @return [Google::Apis::SheetsV4::CancelDataSourceRefreshResponse]
8509
+ attr_accessor :cancel_data_source_refresh
8510
+
8390
8511
  # The response from creating developer metadata.
8391
8512
  # Corresponds to the JSON property `createDeveloperMetadata`
8392
8513
  # @return [Google::Apis::SheetsV4::CreateDeveloperMetadataResponse]
@@ -8472,6 +8593,7 @@ module Google
8472
8593
  @add_protected_range = args[:add_protected_range] if args.key?(:add_protected_range)
8473
8594
  @add_sheet = args[:add_sheet] if args.key?(:add_sheet)
8474
8595
  @add_slicer = args[:add_slicer] if args.key?(:add_slicer)
8596
+ @cancel_data_source_refresh = args[:cancel_data_source_refresh] if args.key?(:cancel_data_source_refresh)
8475
8597
  @create_developer_metadata = args[:create_developer_metadata] if args.key?(:create_developer_metadata)
8476
8598
  @delete_conditional_format_rule = args[:delete_conditional_format_rule] if args.key?(:delete_conditional_format_rule)
8477
8599
  @delete_developer_metadata = args[:delete_developer_metadata] if args.key?(:delete_developer_metadata)
@@ -9361,6 +9483,13 @@ module Google
9361
9483
  # @return [Google::Apis::SheetsV4::CellFormat]
9362
9484
  attr_accessor :default_format
9363
9485
 
9486
+ # Whether to allow external URL access for image and import functions. Read only
9487
+ # when true. When false, you can set to true.
9488
+ # Corresponds to the JSON property `importFunctionsExternalUrlAccessAllowed`
9489
+ # @return [Boolean]
9490
+ attr_accessor :import_functions_external_url_access_allowed
9491
+ alias_method :import_functions_external_url_access_allowed?, :import_functions_external_url_access_allowed
9492
+
9364
9493
  # Settings to control how circular dependencies are resolved with iterative
9365
9494
  # calculation.
9366
9495
  # Corresponds to the JSON property `iterativeCalculationSettings`
@@ -9401,6 +9530,7 @@ module Google
9401
9530
  def update!(**args)
9402
9531
  @auto_recalc = args[:auto_recalc] if args.key?(:auto_recalc)
9403
9532
  @default_format = args[:default_format] if args.key?(:default_format)
9533
+ @import_functions_external_url_access_allowed = args[:import_functions_external_url_access_allowed] if args.key?(:import_functions_external_url_access_allowed)
9404
9534
  @iterative_calculation_settings = args[:iterative_calculation_settings] if args.key?(:iterative_calculation_settings)
9405
9535
  @locale = args[:locale] if args.key?(:locale)
9406
9536
  @spreadsheet_theme = args[:spreadsheet_theme] if args.key?(:spreadsheet_theme)
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module SheetsV4
18
18
  # Version of the google-apis-sheets_v4 gem
19
- GEM_VERSION = "0.26.0"
19
+ GEM_VERSION = "0.32.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.12.0"
22
+ GENERATOR_VERSION = "0.15.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230815"
25
+ REVISION = "20240514"
26
26
  end
27
27
  end
28
28
  end
@@ -346,6 +346,24 @@ module Google
346
346
  include Google::Apis::Core::JsonObjectSupport
347
347
  end
348
348
 
349
+ class CancelDataSourceRefreshRequest
350
+ class Representation < Google::Apis::Core::JsonRepresentation; end
351
+
352
+ include Google::Apis::Core::JsonObjectSupport
353
+ end
354
+
355
+ class CancelDataSourceRefreshResponse
356
+ class Representation < Google::Apis::Core::JsonRepresentation; end
357
+
358
+ include Google::Apis::Core::JsonObjectSupport
359
+ end
360
+
361
+ class CancelDataSourceRefreshStatus
362
+ class Representation < Google::Apis::Core::JsonRepresentation; end
363
+
364
+ include Google::Apis::Core::JsonObjectSupport
365
+ end
366
+
349
367
  class CandlestickChartSpec
350
368
  class Representation < Google::Apis::Core::JsonRepresentation; end
351
369
 
@@ -1114,6 +1132,12 @@ module Google
1114
1132
  include Google::Apis::Core::JsonObjectSupport
1115
1133
  end
1116
1134
 
1135
+ class RefreshCancellationStatus
1136
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1137
+
1138
+ include Google::Apis::Core::JsonObjectSupport
1139
+ end
1140
+
1117
1141
  class RefreshDataSourceObjectExecutionStatus
1118
1142
  class Representation < Google::Apis::Core::JsonRepresentation; end
1119
1143
 
@@ -2076,6 +2100,34 @@ module Google
2076
2100
  end
2077
2101
  end
2078
2102
 
2103
+ class CancelDataSourceRefreshRequest
2104
+ # @private
2105
+ class Representation < Google::Apis::Core::JsonRepresentation
2106
+ property :data_source_id, as: 'dataSourceId'
2107
+ property :is_all, as: 'isAll'
2108
+ property :references, as: 'references', class: Google::Apis::SheetsV4::DataSourceObjectReferences, decorator: Google::Apis::SheetsV4::DataSourceObjectReferences::Representation
2109
+
2110
+ end
2111
+ end
2112
+
2113
+ class CancelDataSourceRefreshResponse
2114
+ # @private
2115
+ class Representation < Google::Apis::Core::JsonRepresentation
2116
+ collection :statuses, as: 'statuses', class: Google::Apis::SheetsV4::CancelDataSourceRefreshStatus, decorator: Google::Apis::SheetsV4::CancelDataSourceRefreshStatus::Representation
2117
+
2118
+ end
2119
+ end
2120
+
2121
+ class CancelDataSourceRefreshStatus
2122
+ # @private
2123
+ class Representation < Google::Apis::Core::JsonRepresentation
2124
+ property :reference, as: 'reference', class: Google::Apis::SheetsV4::DataSourceObjectReference, decorator: Google::Apis::SheetsV4::DataSourceObjectReference::Representation
2125
+
2126
+ property :refresh_cancellation_status, as: 'refreshCancellationStatus', class: Google::Apis::SheetsV4::RefreshCancellationStatus, decorator: Google::Apis::SheetsV4::RefreshCancellationStatus::Representation
2127
+
2128
+ end
2129
+ end
2130
+
2079
2131
  class CandlestickChartSpec
2080
2132
  # @private
2081
2133
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3449,6 +3501,14 @@ module Google
3449
3501
  end
3450
3502
  end
3451
3503
 
3504
+ class RefreshCancellationStatus
3505
+ # @private
3506
+ class Representation < Google::Apis::Core::JsonRepresentation
3507
+ property :error_code, as: 'errorCode'
3508
+ property :state, as: 'state'
3509
+ end
3510
+ end
3511
+
3452
3512
  class RefreshDataSourceObjectExecutionStatus
3453
3513
  # @private
3454
3514
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3520,6 +3580,8 @@ module Google
3520
3580
 
3521
3581
  property :auto_resize_dimensions, as: 'autoResizeDimensions', class: Google::Apis::SheetsV4::AutoResizeDimensionsRequest, decorator: Google::Apis::SheetsV4::AutoResizeDimensionsRequest::Representation
3522
3582
 
3583
+ property :cancel_data_source_refresh, as: 'cancelDataSourceRefresh', class: Google::Apis::SheetsV4::CancelDataSourceRefreshRequest, decorator: Google::Apis::SheetsV4::CancelDataSourceRefreshRequest::Representation
3584
+
3523
3585
  property :clear_basic_filter, as: 'clearBasicFilter', class: Google::Apis::SheetsV4::ClearBasicFilterRequest, decorator: Google::Apis::SheetsV4::ClearBasicFilterRequest::Representation
3524
3586
 
3525
3587
  property :copy_paste, as: 'copyPaste', class: Google::Apis::SheetsV4::CopyPasteRequest, decorator: Google::Apis::SheetsV4::CopyPasteRequest::Representation
@@ -3646,6 +3708,8 @@ module Google
3646
3708
 
3647
3709
  property :add_slicer, as: 'addSlicer', class: Google::Apis::SheetsV4::AddSlicerResponse, decorator: Google::Apis::SheetsV4::AddSlicerResponse::Representation
3648
3710
 
3711
+ property :cancel_data_source_refresh, as: 'cancelDataSourceRefresh', class: Google::Apis::SheetsV4::CancelDataSourceRefreshResponse, decorator: Google::Apis::SheetsV4::CancelDataSourceRefreshResponse::Representation
3712
+
3649
3713
  property :create_developer_metadata, as: 'createDeveloperMetadata', class: Google::Apis::SheetsV4::CreateDeveloperMetadataResponse, decorator: Google::Apis::SheetsV4::CreateDeveloperMetadataResponse::Representation
3650
3714
 
3651
3715
  property :delete_conditional_format_rule, as: 'deleteConditionalFormatRule', class: Google::Apis::SheetsV4::DeleteConditionalFormatRuleResponse, decorator: Google::Apis::SheetsV4::DeleteConditionalFormatRuleResponse::Representation
@@ -3885,6 +3949,7 @@ module Google
3885
3949
  property :auto_recalc, as: 'autoRecalc'
3886
3950
  property :default_format, as: 'defaultFormat', class: Google::Apis::SheetsV4::CellFormat, decorator: Google::Apis::SheetsV4::CellFormat::Representation
3887
3951
 
3952
+ property :import_functions_external_url_access_allowed, as: 'importFunctionsExternalUrlAccessAllowed'
3888
3953
  property :iterative_calculation_settings, as: 'iterativeCalculationSettings', class: Google::Apis::SheetsV4::IterativeCalculationSettings, decorator: Google::Apis::SheetsV4::IterativeCalculationSettings::Representation
3889
3954
 
3890
3955
  property :locale, as: 'locale'
@@ -32,6 +32,8 @@ module Google
32
32
  #
33
33
  # @see https://developers.google.com/sheets/
34
34
  class SheetsService < Google::Apis::Core::BaseService
35
+ DEFAULT_ENDPOINT_TEMPLATE = "https://sheets.$UNIVERSE_DOMAIN$/"
36
+
35
37
  # @return [String]
36
38
  # API key. Your API key identifies your project and provides you with API access,
37
39
  # quota, and reports. Required unless you provide an OAuth 2.0 token.
@@ -43,7 +45,7 @@ module Google
43
45
  attr_accessor :quota_user
44
46
 
45
47
  def initialize
46
- super('https://sheets.googleapis.com/', '',
48
+ super(DEFAULT_ENDPOINT_TEMPLATE, '',
47
49
  client_name: 'google-apis-sheets_v4',
48
50
  client_version: Google::Apis::SheetsV4::GEM_VERSION)
49
51
  @batch_path = 'batch'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-sheets_v4
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.26.0
4
+ version: 0.32.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-09-03 00:00:00.000000000 Z
11
+ date: 2024-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.11.0
19
+ version: 0.15.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.11.0
29
+ version: 0.15.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-sheets_v4/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-sheets_v4/v0.26.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-sheets_v4/v0.32.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-sheets_v4
63
63
  post_install_message:
64
64
  rdoc_options: []
@@ -68,14 +68,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
68
68
  requirements:
69
69
  - - ">="
70
70
  - !ruby/object:Gem::Version
71
- version: '2.5'
71
+ version: '2.7'
72
72
  required_rubygems_version: !ruby/object:Gem::Requirement
73
73
  requirements:
74
74
  - - ">="
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.4.19
78
+ rubygems_version: 3.5.6
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Google Sheets API V4