google-api-client 0.36.1 → 0.36.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (131) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +45 -0
  3. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  4. data/generated/google/apis/androidenterprise_v1/classes.rb +29 -58
  5. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  6. data/generated/google/apis/androidmanagement_v1/classes.rb +188 -0
  7. data/generated/google/apis/androidmanagement_v1/representations.rb +67 -0
  8. data/generated/google/apis/androidmanagement_v1/service.rb +6 -1
  9. data/generated/google/apis/bigquery_v2.rb +1 -1
  10. data/generated/google/apis/bigquery_v2/classes.rb +6 -0
  11. data/generated/google/apis/bigquery_v2/representations.rb +1 -0
  12. data/generated/google/apis/bigquery_v2/service.rb +19 -2
  13. data/generated/google/apis/bigqueryreservation_v1alpha2.rb +1 -1
  14. data/generated/google/apis/bigqueryreservation_v1alpha2/classes.rb +6 -0
  15. data/generated/google/apis/bigqueryreservation_v1alpha2/representations.rb +1 -0
  16. data/generated/google/apis/bigqueryreservation_v1beta1.rb +1 -1
  17. data/generated/google/apis/bigqueryreservation_v1beta1/classes.rb +6 -0
  18. data/generated/google/apis/bigqueryreservation_v1beta1/representations.rb +1 -0
  19. data/generated/google/apis/binaryauthorization_v1.rb +1 -1
  20. data/generated/google/apis/cloudbuild_v1alpha1.rb +34 -0
  21. data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +1174 -0
  22. data/generated/google/apis/cloudbuild_v1alpha1/representations.rb +435 -0
  23. data/generated/google/apis/cloudbuild_v1alpha1/service.rb +223 -0
  24. data/generated/google/apis/compute_alpha.rb +1 -1
  25. data/generated/google/apis/compute_alpha/classes.rb +234 -240
  26. data/generated/google/apis/compute_alpha/representations.rb +7 -47
  27. data/generated/google/apis/compute_alpha/service.rb +1233 -1068
  28. data/generated/google/apis/compute_beta.rb +1 -1
  29. data/generated/google/apis/compute_beta/classes.rb +936 -164
  30. data/generated/google/apis/compute_beta/representations.rb +371 -0
  31. data/generated/google/apis/compute_beta/service.rb +1394 -899
  32. data/generated/google/apis/compute_v1.rb +1 -1
  33. data/generated/google/apis/compute_v1/classes.rb +479 -147
  34. data/generated/google/apis/compute_v1/representations.rb +127 -0
  35. data/generated/google/apis/compute_v1/service.rb +813 -748
  36. data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
  37. data/generated/google/apis/datacatalog_v1beta1/classes.rb +9 -7
  38. data/generated/google/apis/datacatalog_v1beta1/representations.rb +1 -0
  39. data/generated/google/apis/datacatalog_v1beta1/service.rb +8 -3
  40. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  41. data/generated/google/apis/dataflow_v1b3/classes.rb +69 -0
  42. data/generated/google/apis/dataflow_v1b3/representations.rb +34 -0
  43. data/generated/google/apis/dataproc_v1.rb +1 -1
  44. data/generated/google/apis/dataproc_v1/classes.rb +73 -43
  45. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  46. data/generated/google/apis/dataproc_v1beta2/classes.rb +73 -43
  47. data/generated/google/apis/dialogflow_v2.rb +1 -1
  48. data/generated/google/apis/dialogflow_v2/classes.rb +44 -11
  49. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  50. data/generated/google/apis/dialogflow_v2beta1/classes.rb +44 -11
  51. data/generated/google/apis/dialogflow_v2beta1/service.rb +20 -0
  52. data/generated/google/apis/dns_v1.rb +1 -1
  53. data/generated/google/apis/dns_v1/classes.rb +70 -0
  54. data/generated/google/apis/dns_v1/representations.rb +32 -0
  55. data/generated/google/apis/dns_v2beta1.rb +1 -1
  56. data/generated/google/apis/dns_v2beta1/classes.rb +70 -0
  57. data/generated/google/apis/dns_v2beta1/representations.rb +32 -0
  58. data/generated/google/apis/docs_v1.rb +1 -1
  59. data/generated/google/apis/docs_v1/classes.rb +152 -0
  60. data/generated/google/apis/docs_v1/representations.rb +56 -0
  61. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  62. data/generated/google/apis/doubleclickbidmanager_v1_1.rb +1 -1
  63. data/generated/google/apis/driveactivity_v2.rb +1 -1
  64. data/generated/google/apis/driveactivity_v2/classes.rb +6 -0
  65. data/generated/google/apis/driveactivity_v2/representations.rb +2 -0
  66. data/generated/google/apis/firebase_v1beta1.rb +1 -1
  67. data/generated/google/apis/firestore_v1.rb +1 -1
  68. data/generated/google/apis/firestore_v1/classes.rb +1 -1
  69. data/generated/google/apis/firestore_v1/service.rb +24 -22
  70. data/generated/google/apis/firestore_v1beta1.rb +1 -1
  71. data/generated/google/apis/firestore_v1beta1/classes.rb +1 -1
  72. data/generated/google/apis/firestore_v1beta1/service.rb +16 -14
  73. data/generated/google/apis/fitness_v1.rb +11 -11
  74. data/generated/google/apis/games_management_v1management.rb +1 -1
  75. data/generated/google/apis/games_management_v1management/service.rb +5 -7
  76. data/generated/google/apis/iam_v1.rb +1 -1
  77. data/generated/google/apis/iam_v1/classes.rb +83 -141
  78. data/generated/google/apis/iam_v1/representations.rb +0 -6
  79. data/generated/google/apis/iam_v1/service.rb +11 -21
  80. data/generated/google/apis/language_v1beta2.rb +1 -1
  81. data/generated/google/apis/language_v1beta2/classes.rb +15 -0
  82. data/generated/google/apis/language_v1beta2/representations.rb +2 -0
  83. data/generated/google/apis/logging_v2.rb +3 -2
  84. data/generated/google/apis/logging_v2/service.rb +2 -1
  85. data/generated/google/apis/{surveys_v2.rb → prod_tt_sasportal_v1alpha1.rb} +9 -15
  86. data/generated/google/apis/prod_tt_sasportal_v1alpha1/classes.rb +1084 -0
  87. data/generated/google/apis/prod_tt_sasportal_v1alpha1/representations.rb +503 -0
  88. data/generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb +1322 -0
  89. data/generated/google/apis/recommender_v1beta1.rb +1 -1
  90. data/generated/google/apis/recommender_v1beta1/classes.rb +6 -0
  91. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  92. data/generated/google/apis/remotebuildexecution_v1/classes.rb +1 -1
  93. data/generated/google/apis/run_v1alpha1.rb +1 -1
  94. data/generated/google/apis/run_v1alpha1/classes.rb +424 -0
  95. data/generated/google/apis/run_v1alpha1/representations.rb +161 -0
  96. data/generated/google/apis/run_v1alpha1/service.rb +862 -46
  97. data/generated/google/apis/run_v1beta1.rb +1 -1
  98. data/generated/google/apis/run_v1beta1/classes.rb +1 -1
  99. data/generated/google/apis/sasportal_v1alpha1.rb +34 -0
  100. data/generated/google/apis/sasportal_v1alpha1/classes.rb +1084 -0
  101. data/generated/google/apis/sasportal_v1alpha1/representations.rb +503 -0
  102. data/generated/google/apis/sasportal_v1alpha1/service.rb +1322 -0
  103. data/generated/google/apis/securitycenter_v1.rb +1 -1
  104. data/generated/google/apis/securitycenter_v1/classes.rb +18 -0
  105. data/generated/google/apis/securitycenter_v1/representations.rb +3 -0
  106. data/generated/google/apis/securitycenter_v1/service.rb +6 -0
  107. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  108. data/generated/google/apis/servicemanagement_v1/classes.rb +16 -1
  109. data/generated/google/apis/servicemanagement_v1/representations.rb +1 -0
  110. data/generated/google/apis/sheets_v4.rb +1 -1
  111. data/generated/google/apis/sheets_v4/classes.rb +187 -2
  112. data/generated/google/apis/sheets_v4/representations.rb +47 -0
  113. data/generated/google/apis/spanner_v1.rb +1 -1
  114. data/generated/google/apis/spanner_v1/classes.rb +104 -51
  115. data/generated/google/apis/spanner_v1/representations.rb +1 -0
  116. data/generated/google/apis/spanner_v1/service.rb +6 -1
  117. data/generated/google/apis/sql_v1beta4.rb +1 -1
  118. data/generated/google/apis/sql_v1beta4/classes.rb +75 -4
  119. data/generated/google/apis/sql_v1beta4/representations.rb +32 -0
  120. data/generated/google/apis/sql_v1beta4/service.rb +83 -2
  121. data/generated/google/apis/toolresults_v1.rb +31 -0
  122. data/generated/google/apis/toolresults_v1/classes.rb +696 -0
  123. data/generated/google/apis/toolresults_v1/representations.rb +438 -0
  124. data/generated/google/apis/toolresults_v1/service.rb +59 -0
  125. data/generated/google/apis/vision_v1.rb +1 -1
  126. data/generated/google/apis/vision_v1/service.rb +1 -1
  127. data/lib/google/apis/version.rb +1 -1
  128. metadata +19 -7
  129. data/generated/google/apis/surveys_v2/classes.rb +0 -691
  130. data/generated/google/apis/surveys_v2/representations.rb +0 -305
  131. data/generated/google/apis/surveys_v2/service.rb +0 -348
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview
27
27
  module SecuritycenterV1
28
28
  VERSION = 'V1'
29
- REVISION = '20191204'
29
+ REVISION = '20191213'
30
30
 
31
31
  # View and manage your data across Google Cloud Platform services
32
32
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -1408,6 +1408,11 @@ module Google
1408
1408
  class SecurityCenterProperties
1409
1409
  include Google::Apis::Core::Hashable
1410
1410
 
1411
+ # The user defined display name for this resource.
1412
+ # Corresponds to the JSON property `resourceDisplayName`
1413
+ # @return [String]
1414
+ attr_accessor :resource_display_name
1415
+
1411
1416
  # The full resource name of the GCP resource this asset
1412
1417
  # represents. This field is immutable after create time. See:
1413
1418
  # https://cloud.google.com/apis/design/resource_names#full_resource_name
@@ -1426,12 +1431,22 @@ module Google
1426
1431
  # @return [String]
1427
1432
  attr_accessor :resource_parent
1428
1433
 
1434
+ # The user defined display name for the parent of this resource.
1435
+ # Corresponds to the JSON property `resourceParentDisplayName`
1436
+ # @return [String]
1437
+ attr_accessor :resource_parent_display_name
1438
+
1429
1439
  # The full resource name of the project the resource belongs to. See:
1430
1440
  # https://cloud.google.com/apis/design/resource_names#full_resource_name
1431
1441
  # Corresponds to the JSON property `resourceProject`
1432
1442
  # @return [String]
1433
1443
  attr_accessor :resource_project
1434
1444
 
1445
+ # The user defined display name for the project of this resource.
1446
+ # Corresponds to the JSON property `resourceProjectDisplayName`
1447
+ # @return [String]
1448
+ attr_accessor :resource_project_display_name
1449
+
1435
1450
  # The type of the GCP resource. Examples include: APPLICATION,
1436
1451
  # PROJECT, and ORGANIZATION. This is a case insensitive field defined by
1437
1452
  # Cloud SCC and/or the producer of the resource and is immutable
@@ -1446,10 +1461,13 @@ module Google
1446
1461
 
1447
1462
  # Update properties of this object
1448
1463
  def update!(**args)
1464
+ @resource_display_name = args[:resource_display_name] if args.key?(:resource_display_name)
1449
1465
  @resource_name = args[:resource_name] if args.key?(:resource_name)
1450
1466
  @resource_owners = args[:resource_owners] if args.key?(:resource_owners)
1451
1467
  @resource_parent = args[:resource_parent] if args.key?(:resource_parent)
1468
+ @resource_parent_display_name = args[:resource_parent_display_name] if args.key?(:resource_parent_display_name)
1452
1469
  @resource_project = args[:resource_project] if args.key?(:resource_project)
1470
+ @resource_project_display_name = args[:resource_project_display_name] if args.key?(:resource_project_display_name)
1453
1471
  @resource_type = args[:resource_type] if args.key?(:resource_type)
1454
1472
  end
1455
1473
  end
@@ -534,10 +534,13 @@ module Google
534
534
  class SecurityCenterProperties
535
535
  # @private
536
536
  class Representation < Google::Apis::Core::JsonRepresentation
537
+ property :resource_display_name, as: 'resourceDisplayName'
537
538
  property :resource_name, as: 'resourceName'
538
539
  collection :resource_owners, as: 'resourceOwners'
539
540
  property :resource_parent, as: 'resourceParent'
541
+ property :resource_parent_display_name, as: 'resourceParentDisplayName'
540
542
  property :resource_project, as: 'resourceProject'
543
+ property :resource_project_display_name, as: 'resourceProjectDisplayName'
541
544
  property :resource_type, as: 'resourceType'
542
545
  end
543
546
  end
@@ -221,9 +221,12 @@ module Google
221
221
  # * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
222
222
  # * security_marks.marks: `=`, `:`
223
223
  # * security_center_properties.resource_name: `=`, `:`
224
+ # * security_center_properties.resource_display_name: `=`, `:`
224
225
  # * security_center_properties.resource_type: `=`, `:`
225
226
  # * security_center_properties.resource_parent: `=`, `:`
227
+ # * security_center_properties.resource_parent_display_name: `=`, `:`
226
228
  # * security_center_properties.resource_project: `=`, `:`
229
+ # * security_center_properties.resource_project_display_name: `=`, `:`
227
230
  # * security_center_properties.resource_owners: `=`, `:`
228
231
  # For example, `resource_properties.size = 100` is a valid filter string.
229
232
  # @param [String] order_by
@@ -241,8 +244,11 @@ module Google
241
244
  # resource_properties
242
245
  # security_marks.marks
243
246
  # security_center_properties.resource_name
247
+ # security_center_properties.resource_display_name
244
248
  # security_center_properties.resource_parent
249
+ # security_center_properties.resource_parent_display_name
245
250
  # security_center_properties.resource_project
251
+ # security_center_properties.resource_project_display_name
246
252
  # security_center_properties.resource_type
247
253
  # @param [Fixnum] page_size
248
254
  # The maximum number of results to return in a single response. Default is
@@ -27,7 +27,7 @@ module Google
27
27
  # @see https://cloud.google.com/service-management/
28
28
  module ServicemanagementV1
29
29
  VERSION = 'V1'
30
- REVISION = '20191204'
30
+ REVISION = '20191213'
31
31
 
32
32
  # View and manage your data across Google Cloud Platform services
33
33
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -487,7 +487,21 @@ module Google
487
487
  # @return [Float]
488
488
  attr_accessor :deadline
489
489
 
490
- # The JWT audience is used when generating a JWT id token for the backend.
490
+ # When disable_auth is false, a JWT ID token will be generated with the
491
+ # value from BackendRule.address as jwt_audience, overrode to the HTTP
492
+ # "Authorization" request header and sent to the backend.
493
+ # When disable_auth is true, a JWT ID token won't be generated and the
494
+ # original "Authorization" HTTP header will be preserved. If the header is
495
+ # used to carry the original token and is expected by the backend, this
496
+ # field must be set to true to preserve the header.
497
+ # Corresponds to the JSON property `disableAuth`
498
+ # @return [Boolean]
499
+ attr_accessor :disable_auth
500
+ alias_method :disable_auth?, :disable_auth
501
+
502
+ # The JWT audience is used when generating a JWT ID token for the backend.
503
+ # This ID token will be added in the HTTP "authorization" header, and sent
504
+ # to the backend.
491
505
  # Corresponds to the JSON property `jwtAudience`
492
506
  # @return [String]
493
507
  attr_accessor :jwt_audience
@@ -523,6 +537,7 @@ module Google
523
537
  def update!(**args)
524
538
  @address = args[:address] if args.key?(:address)
525
539
  @deadline = args[:deadline] if args.key?(:deadline)
540
+ @disable_auth = args[:disable_auth] if args.key?(:disable_auth)
526
541
  @jwt_audience = args[:jwt_audience] if args.key?(:jwt_audience)
527
542
  @min_deadline = args[:min_deadline] if args.key?(:min_deadline)
528
543
  @operation_deadline = args[:operation_deadline] if args.key?(:operation_deadline)
@@ -645,6 +645,7 @@ module Google
645
645
  class Representation < Google::Apis::Core::JsonRepresentation
646
646
  property :address, as: 'address'
647
647
  property :deadline, as: 'deadline'
648
+ property :disable_auth, as: 'disableAuth'
648
649
  property :jwt_audience, as: 'jwtAudience'
649
650
  property :min_deadline, as: 'minDeadline'
650
651
  property :operation_deadline, as: 'operationDeadline'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/sheets/
26
26
  module SheetsV4
27
27
  VERSION = 'V4'
28
- REVISION = '20191115'
28
+ REVISION = '20191213'
29
29
 
30
30
  # See, edit, create, and delete all of your Google Drive files
31
31
  AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
@@ -3587,6 +3587,133 @@ module Google
3587
3587
  end
3588
3588
  end
3589
3589
 
3590
+ # A color value.
3591
+ class ColorStyle
3592
+ include Google::Apis::Core::Hashable
3593
+
3594
+ # Represents a color in the RGBA color space. This representation is designed
3595
+ # for simplicity of conversion to/from color representations in various
3596
+ # languages over compactness; for example, the fields of this representation
3597
+ # can be trivially provided to the constructor of "java.awt.Color" in Java; it
3598
+ # can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
3599
+ # method in iOS; and, with just a little work, it can be easily formatted into
3600
+ # a CSS "rgba()" string in JavaScript, as well.
3601
+ # Note: this proto does not carry information about the absolute color space
3602
+ # that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB,
3603
+ # DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color
3604
+ # space.
3605
+ # Example (Java):
3606
+ # import com.google.type.Color;
3607
+ # // ...
3608
+ # public static java.awt.Color fromProto(Color protocolor) `
3609
+ # float alpha = protocolor.hasAlpha()
3610
+ # ? protocolor.getAlpha().getValue()
3611
+ # : 1.0;
3612
+ # return new java.awt.Color(
3613
+ # protocolor.getRed(),
3614
+ # protocolor.getGreen(),
3615
+ # protocolor.getBlue(),
3616
+ # alpha);
3617
+ # `
3618
+ # public static Color toProto(java.awt.Color color) `
3619
+ # float red = (float) color.getRed();
3620
+ # float green = (float) color.getGreen();
3621
+ # float blue = (float) color.getBlue();
3622
+ # float denominator = 255.0;
3623
+ # Color.Builder resultBuilder =
3624
+ # Color
3625
+ # .newBuilder()
3626
+ # .setRed(red / denominator)
3627
+ # .setGreen(green / denominator)
3628
+ # .setBlue(blue / denominator);
3629
+ # int alpha = color.getAlpha();
3630
+ # if (alpha != 255) `
3631
+ # result.setAlpha(
3632
+ # FloatValue
3633
+ # .newBuilder()
3634
+ # .setValue(((float) alpha) / denominator)
3635
+ # .build());
3636
+ # `
3637
+ # return resultBuilder.build();
3638
+ # `
3639
+ # // ...
3640
+ # Example (iOS / Obj-C):
3641
+ # // ...
3642
+ # static UIColor* fromProto(Color* protocolor) `
3643
+ # float red = [protocolor red];
3644
+ # float green = [protocolor green];
3645
+ # float blue = [protocolor blue];
3646
+ # FloatValue* alpha_wrapper = [protocolor alpha];
3647
+ # float alpha = 1.0;
3648
+ # if (alpha_wrapper != nil) `
3649
+ # alpha = [alpha_wrapper value];
3650
+ # `
3651
+ # return [UIColor colorWithRed:red green:green blue:blue alpha:alpha];
3652
+ # `
3653
+ # static Color* toProto(UIColor* color) `
3654
+ # CGFloat red, green, blue, alpha;
3655
+ # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) `
3656
+ # return nil;
3657
+ # `
3658
+ # Color* result = [[Color alloc] init];
3659
+ # [result setRed:red];
3660
+ # [result setGreen:green];
3661
+ # [result setBlue:blue];
3662
+ # if (alpha <= 0.9999) `
3663
+ # [result setAlpha:floatWrapperWithValue(alpha)];
3664
+ # `
3665
+ # [result autorelease];
3666
+ # return result;
3667
+ # `
3668
+ # // ...
3669
+ # Example (JavaScript):
3670
+ # // ...
3671
+ # var protoToCssColor = function(rgb_color) `
3672
+ # var redFrac = rgb_color.red || 0.0;
3673
+ # var greenFrac = rgb_color.green || 0.0;
3674
+ # var blueFrac = rgb_color.blue || 0.0;
3675
+ # var red = Math.floor(redFrac * 255);
3676
+ # var green = Math.floor(greenFrac * 255);
3677
+ # var blue = Math.floor(blueFrac * 255);
3678
+ # if (!('alpha' in rgb_color)) `
3679
+ # return rgbToCssColor_(red, green, blue);
3680
+ # `
3681
+ # var alphaFrac = rgb_color.alpha.value || 0.0;
3682
+ # var rgbParams = [red, green, blue].join(',');
3683
+ # return ['rgba(', rgbParams, ',', alphaFrac, ')'].join('');
3684
+ # `;
3685
+ # var rgbToCssColor_ = function(red, green, blue) `
3686
+ # var rgbNumber = new Number((red << 16) | (green << 8) | blue);
3687
+ # var hexString = rgbNumber.toString(16);
3688
+ # var missingZeros = 6 - hexString.length;
3689
+ # var resultBuilder = ['#'];
3690
+ # for (var i = 0; i < missingZeros; i++) `
3691
+ # resultBuilder.push('0');
3692
+ # `
3693
+ # resultBuilder.push(hexString);
3694
+ # return resultBuilder.join('');
3695
+ # `;
3696
+ # // ...
3697
+ # Corresponds to the JSON property `rgbColor`
3698
+ # @return [Google::Apis::SheetsV4::Color]
3699
+ attr_accessor :rgb_color
3700
+
3701
+ # Theme color.
3702
+ # Corresponds to the JSON property `themeColor`
3703
+ # @return [String]
3704
+ attr_accessor :theme_color
3705
+
3706
+ def initialize(**args)
3707
+ update!(**args)
3708
+ end
3709
+
3710
+ # Update properties of this object
3711
+ def update!(**args)
3712
+ @rgb_color = args[:rgb_color] if args.key?(:rgb_color)
3713
+ @theme_color = args[:theme_color] if args.key?(:theme_color)
3714
+ end
3715
+ end
3716
+
3590
3717
  # The value of the condition.
3591
3718
  class ConditionValue
3592
3719
  include Google::Apis::Core::Hashable
@@ -8017,7 +8144,7 @@ module Google
8017
8144
  # @return [Google::Apis::SheetsV4::UpdateSheetPropertiesRequest]
8018
8145
  attr_accessor :update_sheet_properties
8019
8146
 
8020
- # Updates a slicers specifications.
8147
+ # Updates a slicer's specifications.
8021
8148
  # (This does not move or resize a slicer. To move or resize a slicer use
8022
8149
  # UpdateEmbeddedObjectPositionRequest.
8023
8150
  # Corresponds to the JSON property `updateSlicerSpec`
@@ -9345,6 +9472,11 @@ module Google
9345
9472
  # @return [String]
9346
9473
  attr_accessor :locale
9347
9474
 
9475
+ # Represents spreadsheet theme
9476
+ # Corresponds to the JSON property `spreadsheetTheme`
9477
+ # @return [Google::Apis::SheetsV4::SpreadsheetTheme]
9478
+ attr_accessor :spreadsheet_theme
9479
+
9348
9480
  # The time zone of the spreadsheet, in CLDR format such as
9349
9481
  # `America/New_York`. If the time zone isn't recognized, this may
9350
9482
  # be a custom time zone such as `GMT-07:00`.
@@ -9367,11 +9499,38 @@ module Google
9367
9499
  @default_format = args[:default_format] if args.key?(:default_format)
9368
9500
  @iterative_calculation_settings = args[:iterative_calculation_settings] if args.key?(:iterative_calculation_settings)
9369
9501
  @locale = args[:locale] if args.key?(:locale)
9502
+ @spreadsheet_theme = args[:spreadsheet_theme] if args.key?(:spreadsheet_theme)
9370
9503
  @time_zone = args[:time_zone] if args.key?(:time_zone)
9371
9504
  @title = args[:title] if args.key?(:title)
9372
9505
  end
9373
9506
  end
9374
9507
 
9508
+ # Represents spreadsheet theme
9509
+ class SpreadsheetTheme
9510
+ include Google::Apis::Core::Hashable
9511
+
9512
+ # / Name of the primary font family.
9513
+ # Corresponds to the JSON property `primaryFontFamily`
9514
+ # @return [String]
9515
+ attr_accessor :primary_font_family
9516
+
9517
+ # The spreadsheet theme color pairs. For update users need to give all pairs
9518
+ # of theme colors.
9519
+ # Corresponds to the JSON property `themeColors`
9520
+ # @return [Array<Google::Apis::SheetsV4::ThemeColorPair>]
9521
+ attr_accessor :theme_colors
9522
+
9523
+ def initialize(**args)
9524
+ update!(**args)
9525
+ end
9526
+
9527
+ # Update properties of this object
9528
+ def update!(**args)
9529
+ @primary_font_family = args[:primary_font_family] if args.key?(:primary_font_family)
9530
+ @theme_colors = args[:theme_colors] if args.key?(:theme_colors)
9531
+ end
9532
+ end
9533
+
9375
9534
  # The format of a run of text in a cell.
9376
9535
  # Absent values indicate that the field isn't specified.
9377
9536
  class TextFormat
@@ -9676,6 +9835,32 @@ module Google
9676
9835
  end
9677
9836
  end
9678
9837
 
9838
+ # A pair mapping a spreadsheet theme color type to the concrete color it
9839
+ # represents.
9840
+ class ThemeColorPair
9841
+ include Google::Apis::Core::Hashable
9842
+
9843
+ # A color value.
9844
+ # Corresponds to the JSON property `color`
9845
+ # @return [Google::Apis::SheetsV4::ColorStyle]
9846
+ attr_accessor :color
9847
+
9848
+ # The type of the spreadsheet theme color.
9849
+ # Corresponds to the JSON property `colorType`
9850
+ # @return [String]
9851
+ attr_accessor :color_type
9852
+
9853
+ def initialize(**args)
9854
+ update!(**args)
9855
+ end
9856
+
9857
+ # Update properties of this object
9858
+ def update!(**args)
9859
+ @color = args[:color] if args.key?(:color)
9860
+ @color_type = args[:color_type] if args.key?(:color_type)
9861
+ end
9862
+ end
9863
+
9679
9864
  # A color scale for a treemap chart.
9680
9865
  class TreemapChartColorScale
9681
9866
  include Google::Apis::Core::Hashable
@@ -10999,7 +11184,7 @@ module Google
10999
11184
  end
11000
11185
  end
11001
11186
 
11002
- # Updates a slicers specifications.
11187
+ # Updates a slicer's specifications.
11003
11188
  # (This does not move or resize a slicer. To move or resize a slicer use
11004
11189
  # UpdateEmbeddedObjectPositionRequest.
11005
11190
  class UpdateSlicerSpecRequest
@@ -400,6 +400,12 @@ module Google
400
400
  include Google::Apis::Core::JsonObjectSupport
401
401
  end
402
402
 
403
+ class ColorStyle
404
+ class Representation < Google::Apis::Core::JsonRepresentation; end
405
+
406
+ include Google::Apis::Core::JsonObjectSupport
407
+ end
408
+
403
409
  class ConditionValue
404
410
  class Representation < Google::Apis::Core::JsonRepresentation; end
405
411
 
@@ -1006,6 +1012,12 @@ module Google
1006
1012
  include Google::Apis::Core::JsonObjectSupport
1007
1013
  end
1008
1014
 
1015
+ class SpreadsheetTheme
1016
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1017
+
1018
+ include Google::Apis::Core::JsonObjectSupport
1019
+ end
1020
+
1009
1021
  class TextFormat
1010
1022
  class Representation < Google::Apis::Core::JsonRepresentation; end
1011
1023
 
@@ -1036,6 +1048,12 @@ module Google
1036
1048
  include Google::Apis::Core::JsonObjectSupport
1037
1049
  end
1038
1050
 
1051
+ class ThemeColorPair
1052
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1053
+
1054
+ include Google::Apis::Core::JsonObjectSupport
1055
+ end
1056
+
1039
1057
  class TreemapChartColorScale
1040
1058
  class Representation < Google::Apis::Core::JsonRepresentation; end
1041
1059
 
@@ -1909,6 +1927,15 @@ module Google
1909
1927
  end
1910
1928
  end
1911
1929
 
1930
+ class ColorStyle
1931
+ # @private
1932
+ class Representation < Google::Apis::Core::JsonRepresentation
1933
+ property :rgb_color, as: 'rgbColor', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation
1934
+
1935
+ property :theme_color, as: 'themeColor'
1936
+ end
1937
+ end
1938
+
1912
1939
  class ConditionValue
1913
1940
  # @private
1914
1941
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3124,11 +3151,22 @@ module Google
3124
3151
  property :iterative_calculation_settings, as: 'iterativeCalculationSettings', class: Google::Apis::SheetsV4::IterativeCalculationSettings, decorator: Google::Apis::SheetsV4::IterativeCalculationSettings::Representation
3125
3152
 
3126
3153
  property :locale, as: 'locale'
3154
+ property :spreadsheet_theme, as: 'spreadsheetTheme', class: Google::Apis::SheetsV4::SpreadsheetTheme, decorator: Google::Apis::SheetsV4::SpreadsheetTheme::Representation
3155
+
3127
3156
  property :time_zone, as: 'timeZone'
3128
3157
  property :title, as: 'title'
3129
3158
  end
3130
3159
  end
3131
3160
 
3161
+ class SpreadsheetTheme
3162
+ # @private
3163
+ class Representation < Google::Apis::Core::JsonRepresentation
3164
+ property :primary_font_family, as: 'primaryFontFamily'
3165
+ collection :theme_colors, as: 'themeColors', class: Google::Apis::SheetsV4::ThemeColorPair, decorator: Google::Apis::SheetsV4::ThemeColorPair::Representation
3166
+
3167
+ end
3168
+ end
3169
+
3132
3170
  class TextFormat
3133
3171
  # @private
3134
3172
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3177,6 +3215,15 @@ module Google
3177
3215
  end
3178
3216
  end
3179
3217
 
3218
+ class ThemeColorPair
3219
+ # @private
3220
+ class Representation < Google::Apis::Core::JsonRepresentation
3221
+ property :color, as: 'color', class: Google::Apis::SheetsV4::ColorStyle, decorator: Google::Apis::SheetsV4::ColorStyle::Representation
3222
+
3223
+ property :color_type, as: 'colorType'
3224
+ end
3225
+ end
3226
+
3180
3227
  class TreemapChartColorScale
3181
3228
  # @private
3182
3229
  class Representation < Google::Apis::Core::JsonRepresentation