google-api-client 0.32.1 → 0.33.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (106) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG.md +40 -0
  3. data/generated/google/apis/accessapproval_v1beta1.rb +1 -1
  4. data/generated/google/apis/accessapproval_v1beta1/classes.rb +5 -2
  5. data/generated/google/apis/accessapproval_v1beta1/service.rb +3 -6
  6. data/generated/google/apis/admin_directory_v1.rb +4 -1
  7. data/generated/google/apis/admin_directory_v1/classes.rb +4 -3
  8. data/generated/google/apis/admin_reports_v1.rb +2 -2
  9. data/generated/google/apis/admin_reports_v1/classes.rb +87 -44
  10. data/generated/google/apis/admin_reports_v1/service.rb +306 -63
  11. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  12. data/generated/google/apis/androidpublisher_v3/classes.rb +6 -0
  13. data/generated/google/apis/androidpublisher_v3/representations.rb +1 -0
  14. data/generated/google/apis/appengine_v1.rb +1 -1
  15. data/generated/google/apis/appengine_v1/service.rb +10 -6
  16. data/generated/google/apis/appengine_v1beta.rb +1 -1
  17. data/generated/google/apis/appengine_v1beta/service.rb +10 -6
  18. data/generated/google/apis/bigquery_v2.rb +1 -1
  19. data/generated/google/apis/bigquery_v2/classes.rb +10 -18
  20. data/generated/google/apis/bigqueryconnection_v1beta1.rb +1 -1
  21. data/generated/google/apis/bigqueryconnection_v1beta1/service.rb +1 -0
  22. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  23. data/generated/google/apis/cloudbilling_v1/classes.rb +65 -36
  24. data/generated/google/apis/cloudbilling_v1/representations.rb +0 -1
  25. data/generated/google/apis/cloudbilling_v1/service.rb +5 -3
  26. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  27. data/generated/google/apis/cloudfunctions_v1/service.rb +7 -3
  28. data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
  29. data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +7 -0
  30. data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +1 -0
  31. data/generated/google/apis/cloudfunctions_v1beta2/service.rb +10 -4
  32. data/generated/google/apis/cloudkms_v1.rb +1 -1
  33. data/generated/google/apis/cloudkms_v1/service.rb +3 -0
  34. data/generated/google/apis/content_v2.rb +1 -1
  35. data/generated/google/apis/content_v2/classes.rb +23 -220
  36. data/generated/google/apis/content_v2/representations.rb +0 -115
  37. data/generated/google/apis/content_v2/service.rb +0 -160
  38. data/generated/google/apis/content_v2_1.rb +1 -1
  39. data/generated/google/apis/content_v2_1/classes.rb +57 -18
  40. data/generated/google/apis/content_v2_1/representations.rb +3 -0
  41. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  42. data/generated/google/apis/dataflow_v1b3/classes.rb +6 -9
  43. data/generated/google/apis/dataflow_v1b3/representations.rb +1 -1
  44. data/generated/google/apis/datafusion_v1beta1.rb +1 -1
  45. data/generated/google/apis/datafusion_v1beta1/classes.rb +156 -46
  46. data/generated/google/apis/datafusion_v1beta1/representations.rb +33 -0
  47. data/generated/google/apis/datafusion_v1beta1/service.rb +10 -1
  48. data/generated/google/apis/dialogflow_v2.rb +1 -1
  49. data/generated/google/apis/dialogflow_v2/classes.rb +280 -0
  50. data/generated/google/apis/dialogflow_v2/representations.rb +115 -0
  51. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  52. data/generated/google/apis/dialogflow_v2beta1/classes.rb +280 -0
  53. data/generated/google/apis/dialogflow_v2beta1/representations.rb +115 -0
  54. data/generated/google/apis/iap_v1.rb +1 -1
  55. data/generated/google/apis/iap_v1/classes.rb +2 -2
  56. data/generated/google/apis/iap_v1beta1.rb +1 -1
  57. data/generated/google/apis/iap_v1beta1/classes.rb +2 -2
  58. data/generated/google/apis/logging_v2.rb +1 -1
  59. data/generated/google/apis/logging_v2/classes.rb +12 -0
  60. data/generated/google/apis/logging_v2/representations.rb +2 -0
  61. data/generated/google/apis/logging_v2/service.rb +10 -5
  62. data/generated/google/apis/monitoring_v3.rb +1 -1
  63. data/generated/google/apis/monitoring_v3/classes.rb +15 -1
  64. data/generated/google/apis/monitoring_v3/representations.rb +1 -0
  65. data/generated/google/apis/policytroubleshooter_v1beta.rb +1 -1
  66. data/generated/google/apis/policytroubleshooter_v1beta/classes.rb +5 -4
  67. data/generated/google/apis/pubsub_v1.rb +1 -1
  68. data/generated/google/apis/pubsub_v1/service.rb +3 -0
  69. data/generated/google/apis/pubsub_v1beta2.rb +1 -1
  70. data/generated/google/apis/pubsub_v1beta2/service.rb +2 -0
  71. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  72. data/generated/google/apis/remotebuildexecution_v1/classes.rb +24 -0
  73. data/generated/google/apis/remotebuildexecution_v1/representations.rb +4 -0
  74. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  75. data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +24 -0
  76. data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +4 -0
  77. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  78. data/generated/google/apis/remotebuildexecution_v2/classes.rb +24 -0
  79. data/generated/google/apis/remotebuildexecution_v2/representations.rb +4 -0
  80. data/generated/google/apis/securitycenter_v1.rb +1 -1
  81. data/generated/google/apis/securitycenter_v1/classes.rb +2 -2
  82. data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
  83. data/generated/google/apis/securitycenter_v1beta1/classes.rb +2 -2
  84. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  85. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +63 -0
  86. data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +30 -0
  87. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  88. data/generated/google/apis/servicemanagement_v1/classes.rb +33 -7
  89. data/generated/google/apis/servicemanagement_v1/representations.rb +24 -0
  90. data/generated/google/apis/servicemanagement_v1/service.rb +31 -17
  91. data/generated/google/apis/serviceusage_v1.rb +1 -1
  92. data/generated/google/apis/serviceusage_v1/classes.rb +55 -0
  93. data/generated/google/apis/serviceusage_v1/representations.rb +29 -0
  94. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  95. data/generated/google/apis/serviceusage_v1beta1/classes.rb +55 -0
  96. data/generated/google/apis/serviceusage_v1beta1/representations.rb +29 -0
  97. data/generated/google/apis/sheets_v4.rb +1 -1
  98. data/generated/google/apis/sheets_v4/classes.rb +389 -0
  99. data/generated/google/apis/sheets_v4/representations.rb +79 -0
  100. data/google-api-client.gemspec +3 -3
  101. data/lib/google/apis/version.rb +1 -1
  102. metadata +10 -21
  103. data/generated/google/apis/urlshortener_v1.rb +0 -34
  104. data/generated/google/apis/urlshortener_v1/classes.rb +0 -246
  105. data/generated/google/apis/urlshortener_v1/representations.rb +0 -121
  106. data/generated/google/apis/urlshortener_v1/service.rb +0 -169
@@ -175,7 +175,8 @@ module Google
175
175
  # After 30 days, the service will be permanently deleted.
176
176
  # Operation<response: google.protobuf.Empty>
177
177
  # @param [String] service_name
178
- # The name of the service. See the [overview](/service-management/overview)
178
+ # Required. The name of the service. See the [overview](/service-management/
179
+ # overview)
179
180
  # for naming requirements. For example: `example.googleapis.com`.
180
181
  # @param [String] fields
181
182
  # Selector specifying which fields to include in a partial response.
@@ -209,7 +210,7 @@ module Google
209
210
  # unexpected billing charges or security leaks.
210
211
  # Operation<response: DisableServiceResponse>
211
212
  # @param [String] service_name
212
- # Name of the service to disable. Specifying an unknown service name
213
+ # Required. Name of the service to disable. Specifying an unknown service name
213
214
  # will cause the request to fail.
214
215
  # @param [Google::Apis::ServicemanagementV1::DisableServiceRequest] disable_service_request_object
215
216
  # @param [String] fields
@@ -247,7 +248,8 @@ module Google
247
248
  # more information.
248
249
  # Operation<response: EnableServiceResponse>
249
250
  # @param [String] service_name
250
- # Name of the service to enable. Specifying an unknown service name will
251
+ # Required. Name of the service to enable. Specifying an unknown service name
252
+ # will
251
253
  # cause the request to fail.
252
254
  # @param [Google::Apis::ServicemanagementV1::EnableServiceRequest] enable_service_request_object
253
255
  # @param [String] fields
@@ -321,7 +323,8 @@ module Google
321
323
  # Gets a managed service. Authentication is required unless the service is
322
324
  # public.
323
325
  # @param [String] service_name
324
- # The name of the service. See the `ServiceManager` overview for naming
326
+ # Required. The name of the service. See the `ServiceManager` overview for
327
+ # naming
325
328
  # requirements. For example: `example.googleapis.com`.
326
329
  # @param [String] fields
327
330
  # Selector specifying which fields to include in a partial response.
@@ -352,10 +355,11 @@ module Google
352
355
 
353
356
  # Gets a service configuration (version) for a managed service.
354
357
  # @param [String] service_name
355
- # The name of the service. See the [overview](/service-management/overview)
358
+ # Required. The name of the service. See the [overview](/service-management/
359
+ # overview)
356
360
  # for naming requirements. For example: `example.googleapis.com`.
357
361
  # @param [String] config_id
358
- # The id of the service configuration resource.
362
+ # Required. The id of the service configuration resource.
359
363
  # This field must be specified for the server to return all fields, including
360
364
  # `SourceInfo`.
361
365
  # @param [String] view
@@ -478,6 +482,7 @@ module Google
478
482
 
479
483
  # Sets the access control policy on the specified resource. Replaces any
480
484
  # existing policy.
485
+ # Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED
481
486
  # @param [String] resource
482
487
  # REQUIRED: The resource for which the policy is being specified.
483
488
  # See the operation documentation for the appropriate value for this field.
@@ -556,7 +561,8 @@ module Google
556
561
  # last 30 days.
557
562
  # Operation<response: UndeleteServiceResponse>
558
563
  # @param [String] service_name
559
- # The name of the service. See the [overview](/service-management/overview)
564
+ # Required. The name of the service. See the [overview](/service-management/
565
+ # overview)
560
566
  # for naming requirements. For example: `example.googleapis.com`.
561
567
  # @param [String] fields
562
568
  # Selector specifying which fields to include in a partial response.
@@ -593,7 +599,8 @@ module Google
593
599
  # existing rollouts are kept for each service. The rest will be deleted
594
600
  # eventually.
595
601
  # @param [String] service_name
596
- # The name of the service. See the [overview](/service-management/overview)
602
+ # Required. The name of the service. See the [overview](/service-management/
603
+ # overview)
597
604
  # for naming requirements. For example: `example.googleapis.com`.
598
605
  # @param [Google::Apis::ServicemanagementV1::Service] service_object
599
606
  # @param [String] fields
@@ -627,10 +634,11 @@ module Google
627
634
 
628
635
  # Gets a service configuration (version) for a managed service.
629
636
  # @param [String] service_name
630
- # The name of the service. See the [overview](/service-management/overview)
637
+ # Required. The name of the service. See the [overview](/service-management/
638
+ # overview)
631
639
  # for naming requirements. For example: `example.googleapis.com`.
632
640
  # @param [String] config_id
633
- # The id of the service configuration resource.
641
+ # Required. The id of the service configuration resource.
634
642
  # This field must be specified for the server to return all fields, including
635
643
  # `SourceInfo`.
636
644
  # @param [String] view
@@ -668,7 +676,8 @@ module Google
668
676
  # Lists the history of the service configuration for a managed service,
669
677
  # from the newest to the oldest.
670
678
  # @param [String] service_name
671
- # The name of the service. See the [overview](/service-management/overview)
679
+ # Required. The name of the service. See the [overview](/service-management/
680
+ # overview)
672
681
  # for naming requirements. For example: `example.googleapis.com`.
673
682
  # @param [Fixnum] page_size
674
683
  # The max number of items to include in the response list. Page size is 50
@@ -716,7 +725,8 @@ module Google
716
725
  # deleted eventually.
717
726
  # Operation<response: SubmitConfigSourceResponse>
718
727
  # @param [String] service_name
719
- # The name of the service. See the [overview](/service-management/overview)
728
+ # Required. The name of the service. See the [overview](/service-management/
729
+ # overview)
720
730
  # for naming requirements. For example: `example.googleapis.com`.
721
731
  # @param [Google::Apis::ServicemanagementV1::SubmitConfigSourceRequest] submit_config_source_request_object
722
732
  # @param [String] fields
@@ -786,6 +796,7 @@ module Google
786
796
 
787
797
  # Sets the access control policy on the specified resource. Replaces any
788
798
  # existing policy.
799
+ # Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED
789
800
  # @param [String] resource
790
801
  # REQUIRED: The resource for which the policy is being specified.
791
802
  # See the operation documentation for the appropriate value for this field.
@@ -870,7 +881,8 @@ module Google
870
881
  # service. The rest will be deleted eventually.
871
882
  # Operation<response: Rollout>
872
883
  # @param [String] service_name
873
- # The name of the service. See the [overview](/service-management/overview)
884
+ # Required. The name of the service. See the [overview](/service-management/
885
+ # overview)
874
886
  # for naming requirements. For example: `example.googleapis.com`.
875
887
  # @param [Google::Apis::ServicemanagementV1::Rollout] rollout_object
876
888
  # @param [String] base_rollout_id
@@ -912,10 +924,11 @@ module Google
912
924
 
913
925
  # Gets a service configuration rollout.
914
926
  # @param [String] service_name
915
- # The name of the service. See the [overview](/service-management/overview)
927
+ # Required. The name of the service. See the [overview](/service-management/
928
+ # overview)
916
929
  # for naming requirements. For example: `example.googleapis.com`.
917
930
  # @param [String] rollout_id
918
- # The id of the rollout resource.
931
+ # Required. The id of the rollout resource.
919
932
  # @param [String] fields
920
933
  # Selector specifying which fields to include in a partial response.
921
934
  # @param [String] quota_user
@@ -947,10 +960,11 @@ module Google
947
960
  # Lists the history of the service configuration rollouts for a managed
948
961
  # service, from the newest to the oldest.
949
962
  # @param [String] service_name
950
- # The name of the service. See the [overview](/service-management/overview)
963
+ # Required. The name of the service. See the [overview](/service-management/
964
+ # overview)
951
965
  # for naming requirements. For example: `example.googleapis.com`.
952
966
  # @param [String] filter
953
- # Use `filter` to return subset of rollouts.
967
+ # Required. Use `filter` to return subset of rollouts.
954
968
  # The following filters are supported:
955
969
  # -- To limit the results to only those in
956
970
  # [status](google.api.servicemanagement.v1.RolloutStatus) 'SUCCESS',
@@ -27,7 +27,7 @@ module Google
27
27
  # @see https://cloud.google.com/service-usage/
28
28
  module ServiceusageV1
29
29
  VERSION = 'V1'
30
- REVISION = '20190921'
30
+ REVISION = '20191007'
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'
@@ -1959,6 +1959,61 @@ module Google
1959
1959
  end
1960
1960
  end
1961
1961
 
1962
+ # Response message for getting service identity.
1963
+ class GoogleApiServiceusageV1beta1GetServiceIdentityResponse
1964
+ include Google::Apis::Core::Hashable
1965
+
1966
+ # Service identity for a service. This is the identity that service producer
1967
+ # should use to access consumer resources.
1968
+ # Corresponds to the JSON property `identity`
1969
+ # @return [Google::Apis::ServiceusageV1::GoogleApiServiceusageV1beta1ServiceIdentity]
1970
+ attr_accessor :identity
1971
+
1972
+ # Service identity state.
1973
+ # Corresponds to the JSON property `state`
1974
+ # @return [String]
1975
+ attr_accessor :state
1976
+
1977
+ def initialize(**args)
1978
+ update!(**args)
1979
+ end
1980
+
1981
+ # Update properties of this object
1982
+ def update!(**args)
1983
+ @identity = args[:identity] if args.key?(:identity)
1984
+ @state = args[:state] if args.key?(:state)
1985
+ end
1986
+ end
1987
+
1988
+ # Service identity for a service. This is the identity that service producer
1989
+ # should use to access consumer resources.
1990
+ class GoogleApiServiceusageV1beta1ServiceIdentity
1991
+ include Google::Apis::Core::Hashable
1992
+
1993
+ # The email address of the service account that a service producer would use
1994
+ # to access consumer resources.
1995
+ # Corresponds to the JSON property `email`
1996
+ # @return [String]
1997
+ attr_accessor :email
1998
+
1999
+ # The unique and stable id of the service account.
2000
+ # https://cloud.google.com/iam/reference/rest/v1/projects.serviceAccounts#
2001
+ # ServiceAccount
2002
+ # Corresponds to the JSON property `uniqueId`
2003
+ # @return [String]
2004
+ attr_accessor :unique_id
2005
+
2006
+ def initialize(**args)
2007
+ update!(**args)
2008
+ end
2009
+
2010
+ # Update properties of this object
2011
+ def update!(**args)
2012
+ @email = args[:email] if args.key?(:email)
2013
+ @unique_id = args[:unique_id] if args.key?(:unique_id)
2014
+ end
2015
+ end
2016
+
1962
2017
  # Defines the HTTP configuration for an API service. It contains a list of
1963
2018
  # HttpRule, each specifying the mapping of an RPC method
1964
2019
  # to one or more HTTP REST API methods.
@@ -244,6 +244,18 @@ module Google
244
244
  include Google::Apis::Core::JsonObjectSupport
245
245
  end
246
246
 
247
+ class GoogleApiServiceusageV1beta1GetServiceIdentityResponse
248
+ class Representation < Google::Apis::Core::JsonRepresentation; end
249
+
250
+ include Google::Apis::Core::JsonObjectSupport
251
+ end
252
+
253
+ class GoogleApiServiceusageV1beta1ServiceIdentity
254
+ class Representation < Google::Apis::Core::JsonRepresentation; end
255
+
256
+ include Google::Apis::Core::JsonObjectSupport
257
+ end
258
+
247
259
  class Http
248
260
  class Representation < Google::Apis::Core::JsonRepresentation; end
249
261
 
@@ -853,6 +865,23 @@ module Google
853
865
  end
854
866
  end
855
867
 
868
+ class GoogleApiServiceusageV1beta1GetServiceIdentityResponse
869
+ # @private
870
+ class Representation < Google::Apis::Core::JsonRepresentation
871
+ property :identity, as: 'identity', class: Google::Apis::ServiceusageV1::GoogleApiServiceusageV1beta1ServiceIdentity, decorator: Google::Apis::ServiceusageV1::GoogleApiServiceusageV1beta1ServiceIdentity::Representation
872
+
873
+ property :state, as: 'state'
874
+ end
875
+ end
876
+
877
+ class GoogleApiServiceusageV1beta1ServiceIdentity
878
+ # @private
879
+ class Representation < Google::Apis::Core::JsonRepresentation
880
+ property :email, as: 'email'
881
+ property :unique_id, as: 'uniqueId'
882
+ end
883
+ end
884
+
856
885
  class Http
857
886
  # @private
858
887
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -27,7 +27,7 @@ module Google
27
27
  # @see https://cloud.google.com/service-usage/
28
28
  module ServiceusageV1beta1
29
29
  VERSION = 'V1beta1'
30
- REVISION = '20190921'
30
+ REVISION = '20191007'
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'
@@ -1937,6 +1937,61 @@ module Google
1937
1937
  end
1938
1938
  end
1939
1939
 
1940
+ # Response message for getting service identity.
1941
+ class GoogleApiServiceusageV1beta1GetServiceIdentityResponse
1942
+ include Google::Apis::Core::Hashable
1943
+
1944
+ # Service identity for a service. This is the identity that service producer
1945
+ # should use to access consumer resources.
1946
+ # Corresponds to the JSON property `identity`
1947
+ # @return [Google::Apis::ServiceusageV1beta1::GoogleApiServiceusageV1beta1ServiceIdentity]
1948
+ attr_accessor :identity
1949
+
1950
+ # Service identity state.
1951
+ # Corresponds to the JSON property `state`
1952
+ # @return [String]
1953
+ attr_accessor :state
1954
+
1955
+ def initialize(**args)
1956
+ update!(**args)
1957
+ end
1958
+
1959
+ # Update properties of this object
1960
+ def update!(**args)
1961
+ @identity = args[:identity] if args.key?(:identity)
1962
+ @state = args[:state] if args.key?(:state)
1963
+ end
1964
+ end
1965
+
1966
+ # Service identity for a service. This is the identity that service producer
1967
+ # should use to access consumer resources.
1968
+ class GoogleApiServiceusageV1beta1ServiceIdentity
1969
+ include Google::Apis::Core::Hashable
1970
+
1971
+ # The email address of the service account that a service producer would use
1972
+ # to access consumer resources.
1973
+ # Corresponds to the JSON property `email`
1974
+ # @return [String]
1975
+ attr_accessor :email
1976
+
1977
+ # The unique and stable id of the service account.
1978
+ # https://cloud.google.com/iam/reference/rest/v1/projects.serviceAccounts#
1979
+ # ServiceAccount
1980
+ # Corresponds to the JSON property `uniqueId`
1981
+ # @return [String]
1982
+ attr_accessor :unique_id
1983
+
1984
+ def initialize(**args)
1985
+ update!(**args)
1986
+ end
1987
+
1988
+ # Update properties of this object
1989
+ def update!(**args)
1990
+ @email = args[:email] if args.key?(:email)
1991
+ @unique_id = args[:unique_id] if args.key?(:unique_id)
1992
+ end
1993
+ end
1994
+
1940
1995
  # Defines the HTTP configuration for an API service. It contains a list of
1941
1996
  # HttpRule, each specifying the mapping of an RPC method
1942
1997
  # to one or more HTTP REST API methods.
@@ -238,6 +238,18 @@ module Google
238
238
  include Google::Apis::Core::JsonObjectSupport
239
239
  end
240
240
 
241
+ class GoogleApiServiceusageV1beta1GetServiceIdentityResponse
242
+ class Representation < Google::Apis::Core::JsonRepresentation; end
243
+
244
+ include Google::Apis::Core::JsonObjectSupport
245
+ end
246
+
247
+ class GoogleApiServiceusageV1beta1ServiceIdentity
248
+ class Representation < Google::Apis::Core::JsonRepresentation; end
249
+
250
+ include Google::Apis::Core::JsonObjectSupport
251
+ end
252
+
241
253
  class Http
242
254
  class Representation < Google::Apis::Core::JsonRepresentation; end
243
255
 
@@ -852,6 +864,23 @@ module Google
852
864
  end
853
865
  end
854
866
 
867
+ class GoogleApiServiceusageV1beta1GetServiceIdentityResponse
868
+ # @private
869
+ class Representation < Google::Apis::Core::JsonRepresentation
870
+ property :identity, as: 'identity', class: Google::Apis::ServiceusageV1beta1::GoogleApiServiceusageV1beta1ServiceIdentity, decorator: Google::Apis::ServiceusageV1beta1::GoogleApiServiceusageV1beta1ServiceIdentity::Representation
871
+
872
+ property :state, as: 'state'
873
+ end
874
+ end
875
+
876
+ class GoogleApiServiceusageV1beta1ServiceIdentity
877
+ # @private
878
+ class Representation < Google::Apis::Core::JsonRepresentation
879
+ property :email, as: 'email'
880
+ property :unique_id, as: 'uniqueId'
881
+ end
882
+ end
883
+
855
884
  class Http
856
885
  # @private
857
886
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/sheets/
26
26
  module SheetsV4
27
27
  VERSION = 'V4'
28
- REVISION = '20190813'
28
+ REVISION = '20191001'
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'
@@ -1047,6 +1047,261 @@ module Google
1047
1047
  end
1048
1048
  end
1049
1049
 
1050
+ # Formatting options for baseline value.
1051
+ class BaselineValueFormat
1052
+ include Google::Apis::Core::Hashable
1053
+
1054
+ # The comparison type of key value with baseline value.
1055
+ # Corresponds to the JSON property `comparisonType`
1056
+ # @return [String]
1057
+ attr_accessor :comparison_type
1058
+
1059
+ # Description which is appended after the baseline value.
1060
+ # This field is optional.
1061
+ # Corresponds to the JSON property `description`
1062
+ # @return [String]
1063
+ attr_accessor :description
1064
+
1065
+ # Represents a color in the RGBA color space. This representation is designed
1066
+ # for simplicity of conversion to/from color representations in various
1067
+ # languages over compactness; for example, the fields of this representation
1068
+ # can be trivially provided to the constructor of "java.awt.Color" in Java; it
1069
+ # can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
1070
+ # method in iOS; and, with just a little work, it can be easily formatted into
1071
+ # a CSS "rgba()" string in JavaScript, as well.
1072
+ # Note: this proto does not carry information about the absolute color space
1073
+ # that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB,
1074
+ # DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color
1075
+ # space.
1076
+ # Example (Java):
1077
+ # import com.google.type.Color;
1078
+ # // ...
1079
+ # public static java.awt.Color fromProto(Color protocolor) `
1080
+ # float alpha = protocolor.hasAlpha()
1081
+ # ? protocolor.getAlpha().getValue()
1082
+ # : 1.0;
1083
+ # return new java.awt.Color(
1084
+ # protocolor.getRed(),
1085
+ # protocolor.getGreen(),
1086
+ # protocolor.getBlue(),
1087
+ # alpha);
1088
+ # `
1089
+ # public static Color toProto(java.awt.Color color) `
1090
+ # float red = (float) color.getRed();
1091
+ # float green = (float) color.getGreen();
1092
+ # float blue = (float) color.getBlue();
1093
+ # float denominator = 255.0;
1094
+ # Color.Builder resultBuilder =
1095
+ # Color
1096
+ # .newBuilder()
1097
+ # .setRed(red / denominator)
1098
+ # .setGreen(green / denominator)
1099
+ # .setBlue(blue / denominator);
1100
+ # int alpha = color.getAlpha();
1101
+ # if (alpha != 255) `
1102
+ # result.setAlpha(
1103
+ # FloatValue
1104
+ # .newBuilder()
1105
+ # .setValue(((float) alpha) / denominator)
1106
+ # .build());
1107
+ # `
1108
+ # return resultBuilder.build();
1109
+ # `
1110
+ # // ...
1111
+ # Example (iOS / Obj-C):
1112
+ # // ...
1113
+ # static UIColor* fromProto(Color* protocolor) `
1114
+ # float red = [protocolor red];
1115
+ # float green = [protocolor green];
1116
+ # float blue = [protocolor blue];
1117
+ # FloatValue* alpha_wrapper = [protocolor alpha];
1118
+ # float alpha = 1.0;
1119
+ # if (alpha_wrapper != nil) `
1120
+ # alpha = [alpha_wrapper value];
1121
+ # `
1122
+ # return [UIColor colorWithRed:red green:green blue:blue alpha:alpha];
1123
+ # `
1124
+ # static Color* toProto(UIColor* color) `
1125
+ # CGFloat red, green, blue, alpha;
1126
+ # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) `
1127
+ # return nil;
1128
+ # `
1129
+ # Color* result = [[Color alloc] init];
1130
+ # [result setRed:red];
1131
+ # [result setGreen:green];
1132
+ # [result setBlue:blue];
1133
+ # if (alpha <= 0.9999) `
1134
+ # [result setAlpha:floatWrapperWithValue(alpha)];
1135
+ # `
1136
+ # [result autorelease];
1137
+ # return result;
1138
+ # `
1139
+ # // ...
1140
+ # Example (JavaScript):
1141
+ # // ...
1142
+ # var protoToCssColor = function(rgb_color) `
1143
+ # var redFrac = rgb_color.red || 0.0;
1144
+ # var greenFrac = rgb_color.green || 0.0;
1145
+ # var blueFrac = rgb_color.blue || 0.0;
1146
+ # var red = Math.floor(redFrac * 255);
1147
+ # var green = Math.floor(greenFrac * 255);
1148
+ # var blue = Math.floor(blueFrac * 255);
1149
+ # if (!('alpha' in rgb_color)) `
1150
+ # return rgbToCssColor_(red, green, blue);
1151
+ # `
1152
+ # var alphaFrac = rgb_color.alpha.value || 0.0;
1153
+ # var rgbParams = [red, green, blue].join(',');
1154
+ # return ['rgba(', rgbParams, ',', alphaFrac, ')'].join('');
1155
+ # `;
1156
+ # var rgbToCssColor_ = function(red, green, blue) `
1157
+ # var rgbNumber = new Number((red << 16) | (green << 8) | blue);
1158
+ # var hexString = rgbNumber.toString(16);
1159
+ # var missingZeros = 6 - hexString.length;
1160
+ # var resultBuilder = ['#'];
1161
+ # for (var i = 0; i < missingZeros; i++) `
1162
+ # resultBuilder.push('0');
1163
+ # `
1164
+ # resultBuilder.push(hexString);
1165
+ # return resultBuilder.join('');
1166
+ # `;
1167
+ # // ...
1168
+ # Corresponds to the JSON property `negativeColor`
1169
+ # @return [Google::Apis::SheetsV4::Color]
1170
+ attr_accessor :negative_color
1171
+
1172
+ # Position settings for text.
1173
+ # Corresponds to the JSON property `position`
1174
+ # @return [Google::Apis::SheetsV4::TextPosition]
1175
+ attr_accessor :position
1176
+
1177
+ # Represents a color in the RGBA color space. This representation is designed
1178
+ # for simplicity of conversion to/from color representations in various
1179
+ # languages over compactness; for example, the fields of this representation
1180
+ # can be trivially provided to the constructor of "java.awt.Color" in Java; it
1181
+ # can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
1182
+ # method in iOS; and, with just a little work, it can be easily formatted into
1183
+ # a CSS "rgba()" string in JavaScript, as well.
1184
+ # Note: this proto does not carry information about the absolute color space
1185
+ # that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB,
1186
+ # DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color
1187
+ # space.
1188
+ # Example (Java):
1189
+ # import com.google.type.Color;
1190
+ # // ...
1191
+ # public static java.awt.Color fromProto(Color protocolor) `
1192
+ # float alpha = protocolor.hasAlpha()
1193
+ # ? protocolor.getAlpha().getValue()
1194
+ # : 1.0;
1195
+ # return new java.awt.Color(
1196
+ # protocolor.getRed(),
1197
+ # protocolor.getGreen(),
1198
+ # protocolor.getBlue(),
1199
+ # alpha);
1200
+ # `
1201
+ # public static Color toProto(java.awt.Color color) `
1202
+ # float red = (float) color.getRed();
1203
+ # float green = (float) color.getGreen();
1204
+ # float blue = (float) color.getBlue();
1205
+ # float denominator = 255.0;
1206
+ # Color.Builder resultBuilder =
1207
+ # Color
1208
+ # .newBuilder()
1209
+ # .setRed(red / denominator)
1210
+ # .setGreen(green / denominator)
1211
+ # .setBlue(blue / denominator);
1212
+ # int alpha = color.getAlpha();
1213
+ # if (alpha != 255) `
1214
+ # result.setAlpha(
1215
+ # FloatValue
1216
+ # .newBuilder()
1217
+ # .setValue(((float) alpha) / denominator)
1218
+ # .build());
1219
+ # `
1220
+ # return resultBuilder.build();
1221
+ # `
1222
+ # // ...
1223
+ # Example (iOS / Obj-C):
1224
+ # // ...
1225
+ # static UIColor* fromProto(Color* protocolor) `
1226
+ # float red = [protocolor red];
1227
+ # float green = [protocolor green];
1228
+ # float blue = [protocolor blue];
1229
+ # FloatValue* alpha_wrapper = [protocolor alpha];
1230
+ # float alpha = 1.0;
1231
+ # if (alpha_wrapper != nil) `
1232
+ # alpha = [alpha_wrapper value];
1233
+ # `
1234
+ # return [UIColor colorWithRed:red green:green blue:blue alpha:alpha];
1235
+ # `
1236
+ # static Color* toProto(UIColor* color) `
1237
+ # CGFloat red, green, blue, alpha;
1238
+ # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) `
1239
+ # return nil;
1240
+ # `
1241
+ # Color* result = [[Color alloc] init];
1242
+ # [result setRed:red];
1243
+ # [result setGreen:green];
1244
+ # [result setBlue:blue];
1245
+ # if (alpha <= 0.9999) `
1246
+ # [result setAlpha:floatWrapperWithValue(alpha)];
1247
+ # `
1248
+ # [result autorelease];
1249
+ # return result;
1250
+ # `
1251
+ # // ...
1252
+ # Example (JavaScript):
1253
+ # // ...
1254
+ # var protoToCssColor = function(rgb_color) `
1255
+ # var redFrac = rgb_color.red || 0.0;
1256
+ # var greenFrac = rgb_color.green || 0.0;
1257
+ # var blueFrac = rgb_color.blue || 0.0;
1258
+ # var red = Math.floor(redFrac * 255);
1259
+ # var green = Math.floor(greenFrac * 255);
1260
+ # var blue = Math.floor(blueFrac * 255);
1261
+ # if (!('alpha' in rgb_color)) `
1262
+ # return rgbToCssColor_(red, green, blue);
1263
+ # `
1264
+ # var alphaFrac = rgb_color.alpha.value || 0.0;
1265
+ # var rgbParams = [red, green, blue].join(',');
1266
+ # return ['rgba(', rgbParams, ',', alphaFrac, ')'].join('');
1267
+ # `;
1268
+ # var rgbToCssColor_ = function(red, green, blue) `
1269
+ # var rgbNumber = new Number((red << 16) | (green << 8) | blue);
1270
+ # var hexString = rgbNumber.toString(16);
1271
+ # var missingZeros = 6 - hexString.length;
1272
+ # var resultBuilder = ['#'];
1273
+ # for (var i = 0; i < missingZeros; i++) `
1274
+ # resultBuilder.push('0');
1275
+ # `
1276
+ # resultBuilder.push(hexString);
1277
+ # return resultBuilder.join('');
1278
+ # `;
1279
+ # // ...
1280
+ # Corresponds to the JSON property `positiveColor`
1281
+ # @return [Google::Apis::SheetsV4::Color]
1282
+ attr_accessor :positive_color
1283
+
1284
+ # The format of a run of text in a cell.
1285
+ # Absent values indicate that the field isn't specified.
1286
+ # Corresponds to the JSON property `textFormat`
1287
+ # @return [Google::Apis::SheetsV4::TextFormat]
1288
+ attr_accessor :text_format
1289
+
1290
+ def initialize(**args)
1291
+ update!(**args)
1292
+ end
1293
+
1294
+ # Update properties of this object
1295
+ def update!(**args)
1296
+ @comparison_type = args[:comparison_type] if args.key?(:comparison_type)
1297
+ @description = args[:description] if args.key?(:description)
1298
+ @negative_color = args[:negative_color] if args.key?(:negative_color)
1299
+ @position = args[:position] if args.key?(:position)
1300
+ @positive_color = args[:positive_color] if args.key?(:positive_color)
1301
+ @text_format = args[:text_format] if args.key?(:text_format)
1302
+ end
1303
+ end
1304
+
1050
1305
  # An axis of the chart.
1051
1306
  # A chart may not have more than one axis per
1052
1307
  # axis position.
@@ -2744,6 +2999,33 @@ module Google
2744
2999
  end
2745
3000
  end
2746
3001
 
3002
+ # Custom number formatting options for chart attributes.
3003
+ class ChartCustomNumberFormatOptions
3004
+ include Google::Apis::Core::Hashable
3005
+
3006
+ # Custom prefix to be prepended to the chart attribute.
3007
+ # This field is optional.
3008
+ # Corresponds to the JSON property `prefix`
3009
+ # @return [String]
3010
+ attr_accessor :prefix
3011
+
3012
+ # Custom suffix to be appended to the chart attribute.
3013
+ # This field is optional.
3014
+ # Corresponds to the JSON property `suffix`
3015
+ # @return [String]
3016
+ attr_accessor :suffix
3017
+
3018
+ def initialize(**args)
3019
+ update!(**args)
3020
+ end
3021
+
3022
+ # Update properties of this object
3023
+ def update!(**args)
3024
+ @prefix = args[:prefix] if args.key?(:prefix)
3025
+ @suffix = args[:suffix] if args.key?(:suffix)
3026
+ end
3027
+ end
3028
+
2747
3029
  # The data included in a domain or series.
2748
3030
  class ChartData
2749
3031
  include Google::Apis::Core::Hashable
@@ -2979,6 +3261,16 @@ module Google
2979
3261
  # @return [Google::Apis::SheetsV4::PieChartSpec]
2980
3262
  attr_accessor :pie_chart
2981
3263
 
3264
+ # A scorecard chart. Scorecard charts are used to highlight key performance
3265
+ # indicators, known as KPIs, on the spreadsheet. A scorecard chart can
3266
+ # represent things like total sales, average cost, or a top selling item. You
3267
+ # can specify a single data value, or aggregate over a range of data.
3268
+ # Percentage or absolute difference from a baseline value can be highlighted,
3269
+ # like changes over time.
3270
+ # Corresponds to the JSON property `scorecardChart`
3271
+ # @return [Google::Apis::SheetsV4::ScorecardChartSpec]
3272
+ attr_accessor :scorecard_chart
3273
+
2982
3274
  # The subtitle of the chart.
2983
3275
  # Corresponds to the JSON property `subtitle`
2984
3276
  # @return [String]
@@ -3038,6 +3330,7 @@ module Google
3038
3330
  @maximized = args[:maximized] if args.key?(:maximized)
3039
3331
  @org_chart = args[:org_chart] if args.key?(:org_chart)
3040
3332
  @pie_chart = args[:pie_chart] if args.key?(:pie_chart)
3333
+ @scorecard_chart = args[:scorecard_chart] if args.key?(:scorecard_chart)
3041
3334
  @subtitle = args[:subtitle] if args.key?(:subtitle)
3042
3335
  @subtitle_text_format = args[:subtitle_text_format] if args.key?(:subtitle_text_format)
3043
3336
  @subtitle_text_position = args[:subtitle_text_position] if args.key?(:subtitle_text_position)
@@ -5701,6 +5994,32 @@ module Google
5701
5994
  end
5702
5995
  end
5703
5996
 
5997
+ # Formatting options for key value.
5998
+ class KeyValueFormat
5999
+ include Google::Apis::Core::Hashable
6000
+
6001
+ # Position settings for text.
6002
+ # Corresponds to the JSON property `position`
6003
+ # @return [Google::Apis::SheetsV4::TextPosition]
6004
+ attr_accessor :position
6005
+
6006
+ # The format of a run of text in a cell.
6007
+ # Absent values indicate that the field isn't specified.
6008
+ # Corresponds to the JSON property `textFormat`
6009
+ # @return [Google::Apis::SheetsV4::TextFormat]
6010
+ attr_accessor :text_format
6011
+
6012
+ def initialize(**args)
6013
+ update!(**args)
6014
+ end
6015
+
6016
+ # Update properties of this object
6017
+ def update!(**args)
6018
+ @position = args[:position] if args.key?(:position)
6019
+ @text_format = args[:text_format] if args.key?(:text_format)
6020
+ end
6021
+ end
6022
+
5704
6023
  # Properties that describe the style of a line.
5705
6024
  class LineStyle
5706
6025
  include Google::Apis::Core::Hashable
@@ -7657,6 +7976,76 @@ module Google
7657
7976
  end
7658
7977
  end
7659
7978
 
7979
+ # A scorecard chart. Scorecard charts are used to highlight key performance
7980
+ # indicators, known as KPIs, on the spreadsheet. A scorecard chart can
7981
+ # represent things like total sales, average cost, or a top selling item. You
7982
+ # can specify a single data value, or aggregate over a range of data.
7983
+ # Percentage or absolute difference from a baseline value can be highlighted,
7984
+ # like changes over time.
7985
+ class ScorecardChartSpec
7986
+ include Google::Apis::Core::Hashable
7987
+
7988
+ # The aggregation type for key and baseline chart data in scorecard chart.
7989
+ # This field is optional.
7990
+ # Corresponds to the JSON property `aggregateType`
7991
+ # @return [String]
7992
+ attr_accessor :aggregate_type
7993
+
7994
+ # The data included in a domain or series.
7995
+ # Corresponds to the JSON property `baselineValueData`
7996
+ # @return [Google::Apis::SheetsV4::ChartData]
7997
+ attr_accessor :baseline_value_data
7998
+
7999
+ # Formatting options for baseline value.
8000
+ # Corresponds to the JSON property `baselineValueFormat`
8001
+ # @return [Google::Apis::SheetsV4::BaselineValueFormat]
8002
+ attr_accessor :baseline_value_format
8003
+
8004
+ # Custom number formatting options for chart attributes.
8005
+ # Corresponds to the JSON property `customFormatOptions`
8006
+ # @return [Google::Apis::SheetsV4::ChartCustomNumberFormatOptions]
8007
+ attr_accessor :custom_format_options
8008
+
8009
+ # The data included in a domain or series.
8010
+ # Corresponds to the JSON property `keyValueData`
8011
+ # @return [Google::Apis::SheetsV4::ChartData]
8012
+ attr_accessor :key_value_data
8013
+
8014
+ # Formatting options for key value.
8015
+ # Corresponds to the JSON property `keyValueFormat`
8016
+ # @return [Google::Apis::SheetsV4::KeyValueFormat]
8017
+ attr_accessor :key_value_format
8018
+
8019
+ # The number format source used in the scorecard chart.
8020
+ # This field is optional.
8021
+ # Corresponds to the JSON property `numberFormatSource`
8022
+ # @return [String]
8023
+ attr_accessor :number_format_source
8024
+
8025
+ # Value to scale scorecard key and baseline value. For example, a factor of
8026
+ # 10 can be used to divide all values in the chart by 10.
8027
+ # This field is optional.
8028
+ # Corresponds to the JSON property `scaleFactor`
8029
+ # @return [Float]
8030
+ attr_accessor :scale_factor
8031
+
8032
+ def initialize(**args)
8033
+ update!(**args)
8034
+ end
8035
+
8036
+ # Update properties of this object
8037
+ def update!(**args)
8038
+ @aggregate_type = args[:aggregate_type] if args.key?(:aggregate_type)
8039
+ @baseline_value_data = args[:baseline_value_data] if args.key?(:baseline_value_data)
8040
+ @baseline_value_format = args[:baseline_value_format] if args.key?(:baseline_value_format)
8041
+ @custom_format_options = args[:custom_format_options] if args.key?(:custom_format_options)
8042
+ @key_value_data = args[:key_value_data] if args.key?(:key_value_data)
8043
+ @key_value_format = args[:key_value_format] if args.key?(:key_value_format)
8044
+ @number_format_source = args[:number_format_source] if args.key?(:number_format_source)
8045
+ @scale_factor = args[:scale_factor] if args.key?(:scale_factor)
8046
+ end
8047
+ end
8048
+
7660
8049
  # A request to retrieve all developer metadata matching the set of specified
7661
8050
  # criteria.
7662
8051
  class SearchDeveloperMetadataRequest