google-api-client 0.9.pre1 → 0.9.pre2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +5 -0
  3. data/README.md +4 -3
  4. data/api_names.yaml +42 -0
  5. data/api_names_out.yaml +977 -651
  6. data/generated/google/apis/adexchangebuyer_v1_3.rb +1 -1
  7. data/generated/google/apis/adexchangeseller_v2_0.rb +1 -1
  8. data/generated/google/apis/adsense_v1_4.rb +1 -1
  9. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  10. data/generated/google/apis/androidenterprise_v1/classes.rb +31 -24
  11. data/generated/google/apis/androidenterprise_v1/service.rb +11 -6
  12. data/generated/google/apis/androidenterprise_v1.rb +2 -1
  13. data/generated/google/apis/appstate_v1.rb +1 -1
  14. data/generated/google/apis/autoscaler_v1beta2.rb +1 -1
  15. data/generated/google/apis/bigquery_v2/classes.rb +34 -0
  16. data/generated/google/apis/bigquery_v2/representations.rb +14 -0
  17. data/generated/google/apis/bigquery_v2/service.rb +2 -2
  18. data/generated/google/apis/bigquery_v2.rb +1 -1
  19. data/generated/google/apis/calendar_v3/classes.rb +8 -0
  20. data/generated/google/apis/calendar_v3/representations.rb +1 -0
  21. data/generated/google/apis/calendar_v3.rb +1 -1
  22. data/generated/google/apis/civicinfo_v2/classes.rb +61 -0
  23. data/generated/google/apis/civicinfo_v2/representations.rb +8 -0
  24. data/generated/google/apis/civicinfo_v2.rb +1 -1
  25. data/generated/google/apis/classroom_v1beta1/classes.rb +447 -0
  26. data/generated/google/apis/classroom_v1beta1/representations.rb +190 -0
  27. data/generated/google/apis/classroom_v1beta1/service.rb +791 -0
  28. data/generated/google/apis/classroom_v1beta1.rb +49 -0
  29. data/generated/google/apis/cloudmonitoring_v2beta2.rb +4 -1
  30. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +20 -19
  31. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +34 -34
  32. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +2 -5
  33. data/generated/google/apis/compute_v1/classes.rb +2638 -1136
  34. data/generated/google/apis/compute_v1/representations.rb +580 -0
  35. data/generated/google/apis/compute_v1/service.rb +2448 -305
  36. data/generated/google/apis/compute_v1.rb +1 -1
  37. data/generated/google/apis/container_v1/classes.rb +438 -0
  38. data/generated/google/apis/container_v1/representations.rb +163 -0
  39. data/generated/google/apis/container_v1/service.rb +346 -0
  40. data/generated/google/apis/container_v1.rb +35 -0
  41. data/generated/google/apis/container_v1beta1.rb +1 -1
  42. data/generated/google/apis/content_v2/service.rb +48 -12
  43. data/generated/google/apis/content_v2.rb +1 -1
  44. data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +13 -9
  45. data/generated/google/apis/deploymentmanager_v2beta2/service.rb +110 -15
  46. data/generated/google/apis/deploymentmanager_v2beta2.rb +1 -1
  47. data/generated/google/apis/discovery_v1/classes.rb +7 -0
  48. data/generated/google/apis/discovery_v1/representations.rb +1 -0
  49. data/generated/google/apis/dns_v1/service.rb +4 -1
  50. data/generated/google/apis/dns_v1.rb +1 -1
  51. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  52. data/generated/google/apis/drive_v2.rb +1 -1
  53. data/generated/google/apis/fitness_v1/classes.rb +65 -2
  54. data/generated/google/apis/fitness_v1/representations.rb +27 -0
  55. data/generated/google/apis/fitness_v1.rb +1 -1
  56. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  57. data/generated/google/apis/games_v1.rb +1 -1
  58. data/generated/google/apis/genomics_v1/classes.rb +2287 -0
  59. data/generated/google/apis/genomics_v1/representations.rb +796 -0
  60. data/generated/google/apis/genomics_v1/service.rb +1520 -0
  61. data/generated/google/apis/genomics_v1.rb +47 -0
  62. data/generated/google/apis/genomics_v1beta2/service.rb +36 -0
  63. data/generated/google/apis/genomics_v1beta2.rb +1 -1
  64. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  65. data/generated/google/apis/mapsengine_v1.rb +1 -1
  66. data/generated/google/apis/oauth2_v2.rb +1 -1
  67. data/generated/google/apis/plus_domains_v1.rb +1 -1
  68. data/generated/google/apis/plus_v1.rb +1 -1
  69. data/generated/google/apis/prediction_v1_6/classes.rb +1 -1
  70. data/generated/google/apis/pubsub_v1beta2/classes.rb +42 -42
  71. data/generated/google/apis/pubsub_v1beta2/service.rb +26 -22
  72. data/generated/google/apis/pubsub_v1beta2.rb +1 -1
  73. data/generated/google/apis/replicapool_v1beta2/classes.rb +10 -0
  74. data/generated/google/apis/replicapool_v1beta2/representations.rb +1 -0
  75. data/generated/google/apis/replicapool_v1beta2.rb +1 -1
  76. data/generated/google/apis/resourceviews_v1beta2.rb +1 -1
  77. data/generated/google/apis/storage_v1/classes.rb +4 -2
  78. data/generated/google/apis/storage_v1.rb +1 -1
  79. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  80. data/generated/google/apis/youtube_v3/classes.rb +3 -3
  81. data/generated/google/apis/youtube_v3/representations.rb +1 -1
  82. data/generated/google/apis/youtube_v3/service.rb +78 -0
  83. data/generated/google/apis/youtube_v3.rb +1 -1
  84. data/google-api-client.gemspec +0 -1
  85. data/lib/google/api_client/auth/installed_app.rb +6 -4
  86. data/lib/google/api_client/auth/key_utils.rb +93 -0
  87. data/lib/google/apis/core/api_command.rb +12 -5
  88. data/lib/google/apis/core/http_command.rb +17 -7
  89. data/lib/google/apis/core/json_representation.rb +6 -2
  90. data/lib/google/apis/errors.rb +9 -2
  91. data/lib/google/apis/version.rb +1 -1
  92. data/script/generate +4 -3
  93. data/spec/google/apis/core/http_command_spec.rb +20 -0
  94. data/spec/google/apis/core/json_representation_spec.rb +1 -1
  95. metadata +15 -16
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/shopping-content/v2/
27
27
  module ContentV2
28
28
  VERSION = 'V2'
29
- REVISION = '20150528'
29
+ REVISION = '20150710'
30
30
 
31
31
  # Manage your product listings and accounts for Google Shopping
32
32
  AUTH_CONTENT = 'https://www.googleapis.com/auth/content'
@@ -34,10 +34,9 @@ module Google
34
34
  # Specifies a fingerprint for update() requests. A fingerprint is a randomly
35
35
  # generated value that must be provided in update() requests to perform
36
36
  # optimistic locking. This ensures optimistic concurrency so that only one
37
- # update can be performed at a time.
38
- # The fingerprint is initially generated by Deployment Manager and changes after
39
- # every request to modify data. To get the latest fingerprint value, perform a
40
- # get() request to a deployment.
37
+ # update can be performed at a time. The fingerprint is initially generated by
38
+ # Deployment Manager and changes after every request to modify data. To get the
39
+ # latest fingerprint value, perform a get() request to a deployment.
41
40
  # Corresponds to the JSON property `fingerprint`
42
41
  # @return [String]
43
42
  attr_accessor :fingerprint
@@ -81,7 +80,12 @@ module Google
81
80
  # @return [String]
82
81
  attr_accessor :manifest
83
82
 
84
- # The name of the deployment, which must be unique within the project.
83
+ # Name of the resource; provided by the client when the resource is created. The
84
+ # name must be 1-63 characters long, and comply with RFC1035. Specifically, the
85
+ # name must be 1-63 characters long and match the regular expression [a-z]([-a-
86
+ # z0-9]*[a-z0-9])? which means the first character must be a lowercase letter,
87
+ # and all following characters must be a dash, lowercase letter, or digit,
88
+ # except the last character, which cannot be a dash.
85
89
  # Corresponds to the JSON property `name`
86
90
  # @return [String]
87
91
  attr_accessor :name
@@ -293,12 +297,12 @@ module Google
293
297
  end
294
298
  end
295
299
 
296
- # An operation resource, used to manage asynchronous API requests.
300
+ # An Operation resource, used to manage asynchronous API requests.
297
301
  class Operation
298
302
  include Google::Apis::Core::Hashable
299
303
 
300
304
  # [Output Only] An optional identifier specified by the client when the mutation
301
- # was initiated. Must be unique for all operation resources in the project.
305
+ # was initiated. Must be unique for all Operation resources in the project.
302
306
  # Corresponds to the JSON property `clientOperationId`
303
307
  # @return [String]
304
308
  attr_accessor :client_operation_id
@@ -626,8 +630,8 @@ module Google
626
630
  # @return [String]
627
631
  attr_accessor :properties
628
632
 
629
- # [Output Only] The type of the resource, for example ?compute.v1.instance?, or ?
630
- # replicaPools.v1beta2.instanceGroupManager?
633
+ # [Output Only] The type of the resource, for example compute.v1.instance, or
634
+ # replicaPools.v1beta2.instanceGroupManager.
631
635
  # Corresponds to the JSON property `type`
632
636
  # @return [String]
633
637
  attr_accessor :type
@@ -175,12 +175,31 @@ module Google
175
175
  # @param [String] project
176
176
  # The project ID for this request.
177
177
  # @param [String] filter
178
- # Filter expression for filtering listed resources.
178
+ # Sets a filter expression for filtering listed resources, in the form filter=`
179
+ # expression`. Your `expression` must contain the following:
180
+ # FIELD_NAME COMPARISON_STRING LITERAL_STRING
181
+ #
182
+ # - FIELD_NAME: The name of the field you want to compare. The field name must
183
+ # be valid for the type of resource being filtered. Only atomic field types are
184
+ # supported (string, number, boolean). Array and object fields are not currently
185
+ # supported.
186
+ # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not
187
+ # equals).
188
+ # - LITERAL_STRING: The literal string value to filter to. The literal value
189
+ # must be valid for the type of field (string, number, boolean). For string
190
+ # fields, the literal value is interpreted as a regular expression using RE2
191
+ # syntax. The literal value must match the entire field. For example, you can
192
+ # filter by the name of a resource:
193
+ # filter=name ne example-instance
194
+ # The above filter returns only results whose name field does not equal example-
195
+ # instance. You can also enclose your literal string in single, double, or no
196
+ # quotes.
179
197
  # @param [Fixnum] max_results
180
198
  # Maximum count of results to be returned.
181
199
  # @param [String] page_token
182
- # Tag returned by a previous list request when that list was truncated to
183
- # maxResults. Used to continue a previous list request.
200
+ # Specifies a page token to use. Use this parameter if you want to list the next
201
+ # page of results. Set pageToken to the nextPageToken returned by a previous
202
+ # list request.
184
203
  # @param [String] fields
185
204
  # Selector specifying which fields to include in a partial response.
186
205
  # @param [String] quota_user
@@ -369,12 +388,31 @@ module Google
369
388
  # @param [String] deployment
370
389
  # The name of the deployment for this request.
371
390
  # @param [String] filter
372
- # Filter expression for filtering listed resources.
391
+ # Sets a filter expression for filtering listed resources, in the form filter=`
392
+ # expression`. Your `expression` must contain the following:
393
+ # FIELD_NAME COMPARISON_STRING LITERAL_STRING
394
+ #
395
+ # - FIELD_NAME: The name of the field you want to compare. The field name must
396
+ # be valid for the type of resource being filtered. Only atomic field types are
397
+ # supported (string, number, boolean). Array and object fields are not currently
398
+ # supported.
399
+ # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not
400
+ # equals).
401
+ # - LITERAL_STRING: The literal string value to filter to. The literal value
402
+ # must be valid for the type of field (string, number, boolean). For string
403
+ # fields, the literal value is interpreted as a regular expression using RE2
404
+ # syntax. The literal value must match the entire field. For example, you can
405
+ # filter by the name of a resource:
406
+ # filter=name ne example-instance
407
+ # The above filter returns only results whose name field does not equal example-
408
+ # instance. You can also enclose your literal string in single, double, or no
409
+ # quotes.
373
410
  # @param [Fixnum] max_results
374
411
  # Maximum count of results to be returned.
375
412
  # @param [String] page_token
376
- # Tag returned by a previous list request when that list was truncated to
377
- # maxResults. Used to continue a previous list request.
413
+ # Specifies a page token to use. Use this parameter if you want to list the next
414
+ # page of results. Set pageToken to the nextPageToken returned by a previous
415
+ # list request.
378
416
  # @param [String] fields
379
417
  # Selector specifying which fields to include in a partial response.
380
418
  # @param [String] quota_user
@@ -455,12 +493,31 @@ module Google
455
493
  # @param [String] project
456
494
  # The project ID for this request.
457
495
  # @param [String] filter
458
- # Filter expression for filtering listed resources.
496
+ # Sets a filter expression for filtering listed resources, in the form filter=`
497
+ # expression`. Your `expression` must contain the following:
498
+ # FIELD_NAME COMPARISON_STRING LITERAL_STRING
499
+ #
500
+ # - FIELD_NAME: The name of the field you want to compare. The field name must
501
+ # be valid for the type of resource being filtered. Only atomic field types are
502
+ # supported (string, number, boolean). Array and object fields are not currently
503
+ # supported.
504
+ # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not
505
+ # equals).
506
+ # - LITERAL_STRING: The literal string value to filter to. The literal value
507
+ # must be valid for the type of field (string, number, boolean). For string
508
+ # fields, the literal value is interpreted as a regular expression using RE2
509
+ # syntax. The literal value must match the entire field. For example, you can
510
+ # filter by the name of a resource:
511
+ # filter=name ne example-instance
512
+ # The above filter returns only results whose name field does not equal example-
513
+ # instance. You can also enclose your literal string in single, double, or no
514
+ # quotes.
459
515
  # @param [Fixnum] max_results
460
516
  # Maximum count of results to be returned.
461
517
  # @param [String] page_token
462
- # Tag returned by a previous list request when that list was truncated to
463
- # maxResults. Used to continue a previous list request.
518
+ # Specifies a page token to use. Use this parameter if you want to list the next
519
+ # page of results. Set pageToken to the nextPageToken returned by a previous
520
+ # list request.
464
521
  # @param [String] fields
465
522
  # Selector specifying which fields to include in a partial response.
466
523
  # @param [String] quota_user
@@ -545,12 +602,31 @@ module Google
545
602
  # @param [String] deployment
546
603
  # The name of the deployment for this request.
547
604
  # @param [String] filter
548
- # Filter expression for filtering listed resources.
605
+ # Sets a filter expression for filtering listed resources, in the form filter=`
606
+ # expression`. Your `expression` must contain the following:
607
+ # FIELD_NAME COMPARISON_STRING LITERAL_STRING
608
+ #
609
+ # - FIELD_NAME: The name of the field you want to compare. The field name must
610
+ # be valid for the type of resource being filtered. Only atomic field types are
611
+ # supported (string, number, boolean). Array and object fields are not currently
612
+ # supported.
613
+ # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not
614
+ # equals).
615
+ # - LITERAL_STRING: The literal string value to filter to. The literal value
616
+ # must be valid for the type of field (string, number, boolean). For string
617
+ # fields, the literal value is interpreted as a regular expression using RE2
618
+ # syntax. The literal value must match the entire field. For example, you can
619
+ # filter by the name of a resource:
620
+ # filter=name ne example-instance
621
+ # The above filter returns only results whose name field does not equal example-
622
+ # instance. You can also enclose your literal string in single, double, or no
623
+ # quotes.
549
624
  # @param [Fixnum] max_results
550
625
  # Maximum count of results to be returned.
551
626
  # @param [String] page_token
552
- # Tag returned by a previous list request when that list was truncated to
553
- # maxResults. Used to continue a previous list request.
627
+ # Specifies a page token to use. Use this parameter if you want to list the next
628
+ # page of results. Set pageToken to the nextPageToken returned by a previous
629
+ # list request.
554
630
  # @param [String] fields
555
631
  # Selector specifying which fields to include in a partial response.
556
632
  # @param [String] quota_user
@@ -592,12 +668,31 @@ module Google
592
668
  # @param [String] project
593
669
  # The project ID for this request.
594
670
  # @param [String] filter
595
- # Filter expression for filtering listed resources.
671
+ # Sets a filter expression for filtering listed resources, in the form filter=`
672
+ # expression`. Your `expression` must contain the following:
673
+ # FIELD_NAME COMPARISON_STRING LITERAL_STRING
674
+ #
675
+ # - FIELD_NAME: The name of the field you want to compare. The field name must
676
+ # be valid for the type of resource being filtered. Only atomic field types are
677
+ # supported (string, number, boolean). Array and object fields are not currently
678
+ # supported.
679
+ # - COMPARISON_STRING: The comparison string, either eq (equals) or ne (not
680
+ # equals).
681
+ # - LITERAL_STRING: The literal string value to filter to. The literal value
682
+ # must be valid for the type of field (string, number, boolean). For string
683
+ # fields, the literal value is interpreted as a regular expression using RE2
684
+ # syntax. The literal value must match the entire field. For example, you can
685
+ # filter by the name of a resource:
686
+ # filter=name ne example-instance
687
+ # The above filter returns only results whose name field does not equal example-
688
+ # instance. You can also enclose your literal string in single, double, or no
689
+ # quotes.
596
690
  # @param [Fixnum] max_results
597
691
  # Maximum count of results to be returned.
598
692
  # @param [String] page_token
599
- # Tag returned by a previous list request when that list was truncated to
600
- # maxResults. Used to continue a previous list request.
693
+ # Specifies a page token to use. Use this parameter if you want to list the next
694
+ # page of results. Set pageToken to the nextPageToken returned by a previous
695
+ # list request.
601
696
  # @param [String] fields
602
697
  # Selector specifying which fields to include in a partial response.
603
698
  # @param [String] quota_user
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/deployment-manager/
27
27
  module DeploymentmanagerV2beta2
28
28
  VERSION = 'V2beta2'
29
- REVISION = '20150616'
29
+ REVISION = '20150715'
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'
@@ -434,6 +434,12 @@ module Google
434
434
  # @return [String]
435
435
  attr_accessor :etag
436
436
 
437
+ # Enable exponential backoff for suitable methods in the generated clients.
438
+ # Corresponds to the JSON property `exponentialBackoffDefault`
439
+ # @return [Boolean]
440
+ attr_accessor :exponential_backoff_default
441
+ alias_method :exponential_backoff_default?, :exponential_backoff_default
442
+
437
443
  # A list of supported features for this API.
438
444
  # Corresponds to the JSON property `features`
439
445
  # @return [Array<String>]
@@ -546,6 +552,7 @@ module Google
546
552
  @discovery_version = args[:discovery_version] unless args[:discovery_version].nil?
547
553
  @documentation_link = args[:documentation_link] unless args[:documentation_link].nil?
548
554
  @etag = args[:etag] unless args[:etag].nil?
555
+ @exponential_backoff_default = args[:exponential_backoff_default] unless args[:exponential_backoff_default].nil?
549
556
  @features = args[:features] unless args[:features].nil?
550
557
  @icons = args[:icons] unless args[:icons].nil?
551
558
  @id = args[:id] unless args[:id].nil?
@@ -207,6 +207,7 @@ module Google
207
207
  property :discovery_version, as: 'discoveryVersion'
208
208
  property :documentation_link, as: 'documentationLink'
209
209
  property :etag, as: 'etag'
210
+ property :exponential_backoff_default, as: 'exponentialBackoffDefault'
210
211
  collection :features, as: 'features'
211
212
  property :icons, as: 'icons', class: Google::Apis::DiscoveryV1::RestDescription::Icons, decorator: Google::Apis::DiscoveryV1::RestDescription::Icons::Representation
212
213
 
@@ -314,6 +314,8 @@ module Google
314
314
  # Enumerate ManagedZones that have been created but not yet deleted.
315
315
  # @param [String] project
316
316
  # Identifies the project addressed by this request.
317
+ # @param [String] dns_name
318
+ # Restricts the list to return only zones with this domain name.
317
319
  # @param [Fixnum] max_results
318
320
  # Optional. Maximum number of results to be returned. If unspecified, the server
319
321
  # will decide how many results to return.
@@ -341,12 +343,13 @@ module Google
341
343
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
342
344
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
343
345
  # @raise [Google::Apis::AuthorizationError] Authorization is required
344
- def list_managed_zones(project, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
346
+ def list_managed_zones(project, dns_name: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
345
347
  path = '{project}/managedZones'
346
348
  command = make_simple_command(:get, path, options)
347
349
  command.response_representation = Google::Apis::DnsV1::ListManagedZonesResponse::Representation
348
350
  command.response_class = Google::Apis::DnsV1::ListManagedZonesResponse
349
351
  command.params['project'] = project unless project.nil?
352
+ command.query['dnsName'] = dns_name unless dns_name.nil?
350
353
  command.query['maxResults'] = max_results unless max_results.nil?
351
354
  command.query['pageToken'] = page_token unless page_token.nil?
352
355
  command.query['fields'] = fields unless fields.nil?
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/cloud-dns
27
27
  module DnsV1
28
28
  VERSION = 'V1'
29
- REVISION = '20150218'
29
+ REVISION = '20150624'
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'
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/doubleclick-search/
27
27
  module DoubleclicksearchV2
28
28
  VERSION = 'V2'
29
- REVISION = '20150526'
29
+ REVISION = '20150708'
30
30
 
31
31
  # View and manage your advertising data in DoubleClick Search
32
32
  AUTH_DOUBLECLICKSEARCH = 'https://www.googleapis.com/auth/doubleclicksearch'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/drive/
26
26
  module DriveV2
27
27
  VERSION = 'V2'
28
- REVISION = '20150618'
28
+ REVISION = '20150702'
29
29
 
30
30
  # View and manage the files in your Google Drive
31
31
  AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
@@ -705,6 +705,26 @@ module Google
705
705
  end
706
706
  end
707
707
 
708
+ # Holder object for the value of an entry in a map field of a data point.
709
+ # A map value supports a subset of the formats that the regular Value supports.
710
+ class MapValue
711
+ include Google::Apis::Core::Hashable
712
+
713
+ # Floating point value.
714
+ # Corresponds to the JSON property `fpVal`
715
+ # @return [Float]
716
+ attr_accessor :fp_val
717
+
718
+ def initialize(**args)
719
+ update!(**args)
720
+ end
721
+
722
+ # Update properties of this object
723
+ def update!(**args)
724
+ @fp_val = args[:fp_val] unless args[:fp_val].nil?
725
+ end
726
+ end
727
+
708
728
  # Sessions contain metadata, such as a user-friendly name and time interval
709
729
  # information.
710
730
  class Session
@@ -784,16 +804,31 @@ module Google
784
804
  class Value
785
805
  include Google::Apis::Core::Hashable
786
806
 
787
- # Floating point value. When this is set, intVal must not be set.
807
+ # Floating point value. When this is set, other values must not be set.
788
808
  # Corresponds to the JSON property `fpVal`
789
809
  # @return [Float]
790
810
  attr_accessor :fp_val
791
811
 
792
- # Integer value. When this is set, fpVal must not be set.
812
+ # Integer value. When this is set, other values must not be set.
793
813
  # Corresponds to the JSON property `intVal`
794
814
  # @return [Fixnum]
795
815
  attr_accessor :int_val
796
816
 
817
+ # Map value. The valid key space and units for the corresponding value of each
818
+ # entry should be documented as part of the data type definition. Keys should be
819
+ # kept small whenever possible. Data streams with large keys and high data
820
+ # frequency may be down sampled.
821
+ # Corresponds to the JSON property `mapVal`
822
+ # @return [Array<Google::Apis::FitnessV1::ValueMapValEntry>]
823
+ attr_accessor :map_val
824
+
825
+ # String value. When this is set, other values must not be set. Strings should
826
+ # be kept small whenever possible. Data streams with large string values and
827
+ # high data frequency may be down sampled.
828
+ # Corresponds to the JSON property `stringVal`
829
+ # @return [String]
830
+ attr_accessor :string_val
831
+
797
832
  def initialize(**args)
798
833
  update!(**args)
799
834
  end
@@ -802,6 +837,34 @@ module Google
802
837
  def update!(**args)
803
838
  @fp_val = args[:fp_val] unless args[:fp_val].nil?
804
839
  @int_val = args[:int_val] unless args[:int_val].nil?
840
+ @map_val = args[:map_val] unless args[:map_val].nil?
841
+ @string_val = args[:string_val] unless args[:string_val].nil?
842
+ end
843
+ end
844
+
845
+ #
846
+ class ValueMapValEntry
847
+ include Google::Apis::Core::Hashable
848
+
849
+ #
850
+ # Corresponds to the JSON property `key`
851
+ # @return [String]
852
+ attr_accessor :key
853
+
854
+ # Holder object for the value of an entry in a map field of a data point.
855
+ # A map value supports a subset of the formats that the regular Value supports.
856
+ # Corresponds to the JSON property `value`
857
+ # @return [Google::Apis::FitnessV1::MapValue]
858
+ attr_accessor :value
859
+
860
+ def initialize(**args)
861
+ update!(**args)
862
+ end
863
+
864
+ # Update properties of this object
865
+ def update!(**args)
866
+ @key = args[:key] unless args[:key].nil?
867
+ @value = args[:value] unless args[:value].nil?
805
868
  end
806
869
  end
807
870
  end
@@ -86,6 +86,10 @@ module Google
86
86
  class Representation < Google::Apis::Core::JsonRepresentation; end
87
87
  end
88
88
 
89
+ class MapValue
90
+ class Representation < Google::Apis::Core::JsonRepresentation; end
91
+ end
92
+
89
93
  class Session
90
94
  class Representation < Google::Apis::Core::JsonRepresentation; end
91
95
  end
@@ -94,6 +98,10 @@ module Google
94
98
  class Representation < Google::Apis::Core::JsonRepresentation; end
95
99
  end
96
100
 
101
+ class ValueMapValEntry
102
+ class Representation < Google::Apis::Core::JsonRepresentation; end
103
+ end
104
+
97
105
  class AggregateBucket
98
106
  # @private
99
107
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -267,6 +275,13 @@ module Google
267
275
  end
268
276
  end
269
277
 
278
+ class MapValue
279
+ # @private
280
+ class Representation < Google::Apis::Core::JsonRepresentation
281
+ property :fp_val, as: 'fpVal'
282
+ end
283
+ end
284
+
270
285
  class Session
271
286
  # @private
272
287
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -288,6 +303,18 @@ module Google
288
303
  class Representation < Google::Apis::Core::JsonRepresentation
289
304
  property :fp_val, as: 'fpVal'
290
305
  property :int_val, as: 'intVal'
306
+ collection :map_val, as: 'mapVal', class: Google::Apis::FitnessV1::ValueMapValEntry, decorator: Google::Apis::FitnessV1::ValueMapValEntry::Representation
307
+
308
+ property :string_val, as: 'stringVal'
309
+ end
310
+ end
311
+
312
+ class ValueMapValEntry
313
+ # @private
314
+ class Representation < Google::Apis::Core::JsonRepresentation
315
+ property :key, as: 'key'
316
+ property :value, as: 'value', class: Google::Apis::FitnessV1::MapValue, decorator: Google::Apis::FitnessV1::MapValue::Representation
317
+
291
318
  end
292
319
  end
293
320
  end