google-api-client 0.9.pre4 → 0.9.pre5

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 (76) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +1 -1
  3. data/CHANGELOG.md +9 -0
  4. data/README.md +11 -1
  5. data/api_names.yaml +1 -0
  6. data/api_names_out.yaml +163 -98
  7. data/generated/google/apis/admin_datatransfer_v1.rb +1 -1
  8. data/generated/google/apis/analytics_v3.rb +1 -1
  9. data/generated/google/apis/analytics_v3/classes.rb +7 -0
  10. data/generated/google/apis/analytics_v3/representations.rb +1 -0
  11. data/generated/google/apis/analytics_v3/service.rb +42 -0
  12. data/generated/google/apis/appstate_v1.rb +1 -1
  13. data/generated/google/apis/bigquery_v2.rb +1 -1
  14. data/generated/google/apis/bigquery_v2/classes.rb +23 -66
  15. data/generated/google/apis/bigquery_v2/representations.rb +1 -17
  16. data/generated/google/apis/bigquery_v2/service.rb +6 -6
  17. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  18. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  19. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  20. data/generated/google/apis/deploymentmanager_v2/classes.rb +5 -4
  21. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  22. data/generated/google/apis/drive_v2.rb +1 -1
  23. data/generated/google/apis/drive_v2/service.rb +4 -3
  24. data/generated/google/apis/drive_v3.rb +1 -1
  25. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  26. data/generated/google/apis/games_management_v1management.rb +1 -1
  27. data/generated/google/apis/games_v1.rb +1 -1
  28. data/generated/google/apis/genomics_v1.rb +1 -1
  29. data/generated/google/apis/gmail_v1.rb +1 -1
  30. data/generated/google/apis/gmail_v1/classes.rb +2 -2
  31. data/generated/google/apis/plus_domains_v1.rb +1 -1
  32. data/generated/google/apis/plus_v1.rb +1 -1
  33. data/generated/google/apis/plus_v1/classes.rb +0 -497
  34. data/generated/google/apis/plus_v1/representations.rb +0 -121
  35. data/generated/google/apis/plus_v1/service.rb +0 -101
  36. data/generated/google/apis/replicapoolupdater_v1beta1.rb +1 -1
  37. data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +4 -4
  38. data/generated/google/apis/webmasters_v3.rb +3 -3
  39. data/generated/google/apis/webmasters_v3/service.rb +2 -2
  40. data/generated/google/apis/youtube_v3.rb +1 -1
  41. data/generated/google/apis/youtube_v3/classes.rb +942 -64
  42. data/generated/google/apis/youtube_v3/representations.rb +307 -0
  43. data/generated/google/apis/youtube_v3/service.rb +443 -1
  44. data/google-api-client.gemspec +1 -0
  45. data/lib/google/apis/core/api_command.rb +2 -2
  46. data/lib/google/apis/core/base_service.rb +2 -0
  47. data/lib/google/apis/core/http_client_adapter.rb +82 -0
  48. data/lib/google/apis/core/http_command.rb +16 -1
  49. data/lib/google/apis/core/json_representation.rb +3 -2
  50. data/lib/google/apis/core/upload.rb +7 -1
  51. data/lib/google/apis/options.rb +4 -2
  52. data/lib/google/apis/version.rb +1 -1
  53. data/samples/Gemfile +7 -0
  54. data/samples/README.md +51 -0
  55. data/samples/google-api-samples +32 -0
  56. data/samples/lib/base_cli.rb +94 -0
  57. data/samples/lib/samples/analytics.rb +62 -0
  58. data/samples/lib/samples/calendar.rb +83 -0
  59. data/samples/lib/samples/drive.rb +82 -0
  60. data/samples/lib/samples/gmail.rb +50 -0
  61. data/samples/lib/samples/pubsub.rb +114 -0
  62. data/samples/lib/samples/translate.rb +44 -0
  63. data/samples/lib/samples/you_tube.rb +44 -0
  64. data/spec/google/apis/core/api_command_spec.rb +39 -0
  65. data/spec/google/apis/core/http_command_spec.rb +9 -0
  66. data/spec/google/apis/core/upload_spec.rb +14 -0
  67. data/spec/google/apis/options_spec.rb +0 -8
  68. data/spec/integration_tests/adsense_spec.rb +1 -0
  69. data/spec/integration_tests/pubsub_spec.rb +3 -3
  70. data/spec/integration_tests/url_shortener_spec.rb +14 -0
  71. data/spec/spec_helper.rb +33 -6
  72. data/{samples/translate/translate.rb → spec/spec_helper/load_path_spec.rb} +15 -6
  73. metadata +30 -6
  74. data/samples/calendar/calendar.rb +0 -43
  75. data/samples/drive/drive.rb +0 -47
  76. data/samples/pubsub/pubsub.rb +0 -51
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/drive/
26
26
  module DriveV3
27
27
  VERSION = 'V3'
28
- REVISION = '20151209'
28
+ REVISION = '20151230'
29
29
 
30
30
  # View and manage the files in your Google Drive
31
31
  AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/games/services
26
26
  module GamesConfigurationV1configuration
27
27
  VERSION = 'V1configuration'
28
- REVISION = '20151209'
28
+ REVISION = '20151215'
29
29
 
30
30
  # View and manage your Google Play Developer account
31
31
  AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/games/services
26
26
  module GamesManagementV1management
27
27
  VERSION = 'V1management'
28
- REVISION = '20151209'
28
+ REVISION = '20151215'
29
29
 
30
30
  # Share your Google+ profile information and view and manage your game activity
31
31
  AUTH_GAMES = 'https://www.googleapis.com/auth/games'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/games/services/
26
26
  module GamesV1
27
27
  VERSION = 'V1'
28
- REVISION = '20151209'
28
+ REVISION = '20151215'
29
29
 
30
30
  # View and manage its own configuration data in your Google Drive
31
31
  AUTH_DRIVE_APPDATA = 'https://www.googleapis.com/auth/drive.appdata'
@@ -28,7 +28,7 @@ module Google
28
28
  # @see
29
29
  module GenomicsV1
30
30
  VERSION = 'V1'
31
- REVISION = '20151215'
31
+ REVISION = '20151219'
32
32
 
33
33
  # View and manage your data in Google BigQuery
34
34
  AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/gmail/api/
26
26
  module GmailV1
27
27
  VERSION = 'V1'
28
- REVISION = '20151001'
28
+ REVISION = '20151214'
29
29
 
30
30
  # View and manage your mail
31
31
  AUTH_SCOPE = 'https://mail.google.com/'
@@ -744,8 +744,8 @@ module Google
744
744
  # A fully qualified Google Cloud Pub/Sub API topic name to publish the events to.
745
745
  # This topic name **must** already exist in Cloud Pub/Sub and you **must** have
746
746
  # already granted gmail "publish" permission on it. For example, "projects/my-
747
- # project-identifier/topics/my-topic-name" (using the new Cloud Pub/Sub "v1beta2"
748
- # topic naming format).
747
+ # project-identifier/topics/my-topic-name" (using the Cloud Pub/Sub "v1" topic
748
+ # naming format).
749
749
  # Note that the "my-project-identifier" portion must exactly match your Google
750
750
  # developer project id (the one executing this watch request).
751
751
  # Corresponds to the JSON property `topicName`
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/+/domains/
26
26
  module PlusDomainsV1
27
27
  VERSION = 'V1'
28
- REVISION = '20151214'
28
+ REVISION = '20160104'
29
29
 
30
30
  # View your circles and the people and pages in them
31
31
  AUTH_PLUS_CIRCLES_READ = 'https://www.googleapis.com/auth/plus.circles.read'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/+/api/
26
26
  module PlusV1
27
27
  VERSION = 'V1'
28
- REVISION = '20151214'
28
+ REVISION = '20160104'
29
29
 
30
30
  # Know your basic profile info and list of people in your circles.
31
31
  AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login'
@@ -1317,503 +1317,6 @@ module Google
1317
1317
  end
1318
1318
  end
1319
1319
 
1320
- #
1321
- class ItemScope
1322
- include Google::Apis::Core::Hashable
1323
-
1324
- # The subject matter of the content.
1325
- # Corresponds to the JSON property `about`
1326
- # @return [Google::Apis::PlusV1::ItemScope]
1327
- attr_accessor :about
1328
-
1329
- # An additional name for a Person, can be used for a middle name.
1330
- # Corresponds to the JSON property `additionalName`
1331
- # @return [Array<String>]
1332
- attr_accessor :additional_name
1333
-
1334
- # Postal address.
1335
- # Corresponds to the JSON property `address`
1336
- # @return [Google::Apis::PlusV1::ItemScope]
1337
- attr_accessor :address
1338
-
1339
- # Address country.
1340
- # Corresponds to the JSON property `addressCountry`
1341
- # @return [String]
1342
- attr_accessor :address_country
1343
-
1344
- # Address locality.
1345
- # Corresponds to the JSON property `addressLocality`
1346
- # @return [String]
1347
- attr_accessor :address_locality
1348
-
1349
- # Address region.
1350
- # Corresponds to the JSON property `addressRegion`
1351
- # @return [String]
1352
- attr_accessor :address_region
1353
-
1354
- # The encoding.
1355
- # Corresponds to the JSON property `associated_media`
1356
- # @return [Array<Google::Apis::PlusV1::ItemScope>]
1357
- attr_accessor :associated_media
1358
-
1359
- # Number of attendees.
1360
- # Corresponds to the JSON property `attendeeCount`
1361
- # @return [Fixnum]
1362
- attr_accessor :attendee_count
1363
-
1364
- # A person attending the event.
1365
- # Corresponds to the JSON property `attendees`
1366
- # @return [Array<Google::Apis::PlusV1::ItemScope>]
1367
- attr_accessor :attendees
1368
-
1369
- # From http://schema.org/MusicRecording, the audio file.
1370
- # Corresponds to the JSON property `audio`
1371
- # @return [Google::Apis::PlusV1::ItemScope]
1372
- attr_accessor :audio
1373
-
1374
- # The person or persons who created this result. In the example of restaurant
1375
- # reviews, this might be the reviewer's name.
1376
- # Corresponds to the JSON property `author`
1377
- # @return [Array<Google::Apis::PlusV1::ItemScope>]
1378
- attr_accessor :author
1379
-
1380
- # Best possible rating value that a result might obtain. This property defines
1381
- # the upper bound for the ratingValue. For example, you might have a 5 star
1382
- # rating scale, you would provide 5 as the value for this property.
1383
- # Corresponds to the JSON property `bestRating`
1384
- # @return [String]
1385
- attr_accessor :best_rating
1386
-
1387
- # Date of birth.
1388
- # Corresponds to the JSON property `birthDate`
1389
- # @return [String]
1390
- attr_accessor :birth_date
1391
-
1392
- # From http://schema.org/MusicRecording, the artist that performed this
1393
- # recording.
1394
- # Corresponds to the JSON property `byArtist`
1395
- # @return [Google::Apis::PlusV1::ItemScope]
1396
- attr_accessor :by_artist
1397
-
1398
- # The caption for this object.
1399
- # Corresponds to the JSON property `caption`
1400
- # @return [String]
1401
- attr_accessor :caption
1402
-
1403
- # File size in (mega/kilo) bytes.
1404
- # Corresponds to the JSON property `contentSize`
1405
- # @return [String]
1406
- attr_accessor :content_size
1407
-
1408
- # Actual bytes of the media object, for example the image file or video file.
1409
- # Corresponds to the JSON property `contentUrl`
1410
- # @return [String]
1411
- attr_accessor :content_url
1412
-
1413
- # A list of contributors to this result.
1414
- # Corresponds to the JSON property `contributor`
1415
- # @return [Array<Google::Apis::PlusV1::ItemScope>]
1416
- attr_accessor :contributor
1417
-
1418
- # The date the result was created such as the date that a review was first
1419
- # created.
1420
- # Corresponds to the JSON property `dateCreated`
1421
- # @return [String]
1422
- attr_accessor :date_created
1423
-
1424
- # The date the result was last modified such as the date that a review was last
1425
- # edited.
1426
- # Corresponds to the JSON property `dateModified`
1427
- # @return [String]
1428
- attr_accessor :date_modified
1429
-
1430
- # The initial date that the result was published. For example, a user writes a
1431
- # comment on a blog, which has a result.dateCreated of when they submit it. If
1432
- # the blog users comment moderation, the result.datePublished value would match
1433
- # the date when the owner approved the message.
1434
- # Corresponds to the JSON property `datePublished`
1435
- # @return [String]
1436
- attr_accessor :date_published
1437
-
1438
- # The string that describes the content of the result.
1439
- # Corresponds to the JSON property `description`
1440
- # @return [String]
1441
- attr_accessor :description
1442
-
1443
- # The duration of the item (movie, audio recording, event, etc.) in ISO 8601
1444
- # date format.
1445
- # Corresponds to the JSON property `duration`
1446
- # @return [String]
1447
- attr_accessor :duration
1448
-
1449
- # A URL pointing to a player for a specific video. In general, this is the
1450
- # information in the src element of an embed tag and should not be the same as
1451
- # the content of the loc tag.
1452
- # Corresponds to the JSON property `embedUrl`
1453
- # @return [String]
1454
- attr_accessor :embed_url
1455
-
1456
- # The end date and time of the event (in ISO 8601 date format).
1457
- # Corresponds to the JSON property `endDate`
1458
- # @return [String]
1459
- attr_accessor :end_date
1460
-
1461
- # Family name. This property can be used with givenName instead of the name
1462
- # property.
1463
- # Corresponds to the JSON property `familyName`
1464
- # @return [String]
1465
- attr_accessor :family_name
1466
-
1467
- # Gender of the person.
1468
- # Corresponds to the JSON property `gender`
1469
- # @return [String]
1470
- attr_accessor :gender
1471
-
1472
- # Geo coordinates.
1473
- # Corresponds to the JSON property `geo`
1474
- # @return [Google::Apis::PlusV1::ItemScope]
1475
- attr_accessor :geo
1476
-
1477
- # Given name. This property can be used with familyName instead of the name
1478
- # property.
1479
- # Corresponds to the JSON property `givenName`
1480
- # @return [String]
1481
- attr_accessor :given_name
1482
-
1483
- # The height of the media object.
1484
- # Corresponds to the JSON property `height`
1485
- # @return [String]
1486
- attr_accessor :height
1487
-
1488
- # An identifier for the object. Your app can choose how to identify objects. The
1489
- # object.id is required if you are writing an action that does not have a
1490
- # corresponding web page or object.url property.
1491
- # Corresponds to the JSON property `id`
1492
- # @return [String]
1493
- attr_accessor :id
1494
-
1495
- # A URL to the image that represents this result. For example, if a user writes
1496
- # a review of a restaurant and attaches a photo of their meal, you might use
1497
- # that photo as the result.image.
1498
- # Corresponds to the JSON property `image`
1499
- # @return [String]
1500
- attr_accessor :image
1501
-
1502
- # From http://schema.org/MusicRecording, which album a song is in.
1503
- # Corresponds to the JSON property `inAlbum`
1504
- # @return [Google::Apis::PlusV1::ItemScope]
1505
- attr_accessor :in_album
1506
-
1507
- # Identifies this resource as an itemScope.
1508
- # Corresponds to the JSON property `kind`
1509
- # @return [String]
1510
- attr_accessor :kind
1511
-
1512
- # Latitude.
1513
- # Corresponds to the JSON property `latitude`
1514
- # @return [Float]
1515
- attr_accessor :latitude
1516
-
1517
- # The location of the event or organization.
1518
- # Corresponds to the JSON property `location`
1519
- # @return [Google::Apis::PlusV1::ItemScope]
1520
- attr_accessor :location
1521
-
1522
- # Longitude.
1523
- # Corresponds to the JSON property `longitude`
1524
- # @return [Float]
1525
- attr_accessor :longitude
1526
-
1527
- # The name of the result. In the example of a restaurant review, this might be
1528
- # the summary the user gave their review such as "Great ambiance, but overpriced.
1529
- # "
1530
- # Corresponds to the JSON property `name`
1531
- # @return [String]
1532
- attr_accessor :name
1533
-
1534
- # Property of http://schema.org/TVEpisode indicating which series the episode
1535
- # belongs to.
1536
- # Corresponds to the JSON property `partOfTVSeries`
1537
- # @return [Google::Apis::PlusV1::ItemScope]
1538
- attr_accessor :part_of_tv_series
1539
-
1540
- # The main performer or performers of the event-for example, a presenter,
1541
- # musician, or actor.
1542
- # Corresponds to the JSON property `performers`
1543
- # @return [Array<Google::Apis::PlusV1::ItemScope>]
1544
- attr_accessor :performers
1545
-
1546
- # Player type that is required. For example: Flash or Silverlight.
1547
- # Corresponds to the JSON property `playerType`
1548
- # @return [String]
1549
- attr_accessor :player_type
1550
-
1551
- # Post office box number.
1552
- # Corresponds to the JSON property `postOfficeBoxNumber`
1553
- # @return [String]
1554
- attr_accessor :post_office_box_number
1555
-
1556
- # Postal code.
1557
- # Corresponds to the JSON property `postalCode`
1558
- # @return [String]
1559
- attr_accessor :postal_code
1560
-
1561
- # Rating value.
1562
- # Corresponds to the JSON property `ratingValue`
1563
- # @return [String]
1564
- attr_accessor :rating_value
1565
-
1566
- # Review rating.
1567
- # Corresponds to the JSON property `reviewRating`
1568
- # @return [Google::Apis::PlusV1::ItemScope]
1569
- attr_accessor :review_rating
1570
-
1571
- # The start date and time of the event (in ISO 8601 date format).
1572
- # Corresponds to the JSON property `startDate`
1573
- # @return [String]
1574
- attr_accessor :start_date
1575
-
1576
- # Street address.
1577
- # Corresponds to the JSON property `streetAddress`
1578
- # @return [String]
1579
- attr_accessor :street_address
1580
-
1581
- # The text that is the result of the app activity. For example, if a user leaves
1582
- # a review of a restaurant, this might be the text of the review.
1583
- # Corresponds to the JSON property `text`
1584
- # @return [String]
1585
- attr_accessor :text
1586
-
1587
- # Thumbnail image for an image or video.
1588
- # Corresponds to the JSON property `thumbnail`
1589
- # @return [Google::Apis::PlusV1::ItemScope]
1590
- attr_accessor :thumbnail
1591
-
1592
- # A URL to a thumbnail image that represents this result.
1593
- # Corresponds to the JSON property `thumbnailUrl`
1594
- # @return [String]
1595
- attr_accessor :thumbnail_url
1596
-
1597
- # The exchange traded instrument associated with a Corporation object. The
1598
- # tickerSymbol is expressed as an exchange and an instrument name separated by a
1599
- # space character. For the exchange component of the tickerSymbol attribute, we
1600
- # recommend using the controlled vocabulary of Market Identifier Codes (MIC)
1601
- # specified in ISO15022.
1602
- # Corresponds to the JSON property `tickerSymbol`
1603
- # @return [String]
1604
- attr_accessor :ticker_symbol
1605
-
1606
- # The schema.org URL that best describes the referenced object and matches the
1607
- # type of moment.
1608
- # Corresponds to the JSON property `type`
1609
- # @return [String]
1610
- attr_accessor :type
1611
-
1612
- # The URL that points to the result object. For example, a permalink directly to
1613
- # a restaurant reviewer's comment.
1614
- # Corresponds to the JSON property `url`
1615
- # @return [String]
1616
- attr_accessor :url
1617
-
1618
- # The width of the media object.
1619
- # Corresponds to the JSON property `width`
1620
- # @return [String]
1621
- attr_accessor :width
1622
-
1623
- # Worst possible rating value that a result might obtain. This property defines
1624
- # the lower bound for the ratingValue.
1625
- # Corresponds to the JSON property `worstRating`
1626
- # @return [String]
1627
- attr_accessor :worst_rating
1628
-
1629
- def initialize(**args)
1630
- update!(**args)
1631
- end
1632
-
1633
- # Update properties of this object
1634
- def update!(**args)
1635
- @about = args[:about] unless args[:about].nil?
1636
- @additional_name = args[:additional_name] unless args[:additional_name].nil?
1637
- @address = args[:address] unless args[:address].nil?
1638
- @address_country = args[:address_country] unless args[:address_country].nil?
1639
- @address_locality = args[:address_locality] unless args[:address_locality].nil?
1640
- @address_region = args[:address_region] unless args[:address_region].nil?
1641
- @associated_media = args[:associated_media] unless args[:associated_media].nil?
1642
- @attendee_count = args[:attendee_count] unless args[:attendee_count].nil?
1643
- @attendees = args[:attendees] unless args[:attendees].nil?
1644
- @audio = args[:audio] unless args[:audio].nil?
1645
- @author = args[:author] unless args[:author].nil?
1646
- @best_rating = args[:best_rating] unless args[:best_rating].nil?
1647
- @birth_date = args[:birth_date] unless args[:birth_date].nil?
1648
- @by_artist = args[:by_artist] unless args[:by_artist].nil?
1649
- @caption = args[:caption] unless args[:caption].nil?
1650
- @content_size = args[:content_size] unless args[:content_size].nil?
1651
- @content_url = args[:content_url] unless args[:content_url].nil?
1652
- @contributor = args[:contributor] unless args[:contributor].nil?
1653
- @date_created = args[:date_created] unless args[:date_created].nil?
1654
- @date_modified = args[:date_modified] unless args[:date_modified].nil?
1655
- @date_published = args[:date_published] unless args[:date_published].nil?
1656
- @description = args[:description] unless args[:description].nil?
1657
- @duration = args[:duration] unless args[:duration].nil?
1658
- @embed_url = args[:embed_url] unless args[:embed_url].nil?
1659
- @end_date = args[:end_date] unless args[:end_date].nil?
1660
- @family_name = args[:family_name] unless args[:family_name].nil?
1661
- @gender = args[:gender] unless args[:gender].nil?
1662
- @geo = args[:geo] unless args[:geo].nil?
1663
- @given_name = args[:given_name] unless args[:given_name].nil?
1664
- @height = args[:height] unless args[:height].nil?
1665
- @id = args[:id] unless args[:id].nil?
1666
- @image = args[:image] unless args[:image].nil?
1667
- @in_album = args[:in_album] unless args[:in_album].nil?
1668
- @kind = args[:kind] unless args[:kind].nil?
1669
- @latitude = args[:latitude] unless args[:latitude].nil?
1670
- @location = args[:location] unless args[:location].nil?
1671
- @longitude = args[:longitude] unless args[:longitude].nil?
1672
- @name = args[:name] unless args[:name].nil?
1673
- @part_of_tv_series = args[:part_of_tv_series] unless args[:part_of_tv_series].nil?
1674
- @performers = args[:performers] unless args[:performers].nil?
1675
- @player_type = args[:player_type] unless args[:player_type].nil?
1676
- @post_office_box_number = args[:post_office_box_number] unless args[:post_office_box_number].nil?
1677
- @postal_code = args[:postal_code] unless args[:postal_code].nil?
1678
- @rating_value = args[:rating_value] unless args[:rating_value].nil?
1679
- @review_rating = args[:review_rating] unless args[:review_rating].nil?
1680
- @start_date = args[:start_date] unless args[:start_date].nil?
1681
- @street_address = args[:street_address] unless args[:street_address].nil?
1682
- @text = args[:text] unless args[:text].nil?
1683
- @thumbnail = args[:thumbnail] unless args[:thumbnail].nil?
1684
- @thumbnail_url = args[:thumbnail_url] unless args[:thumbnail_url].nil?
1685
- @ticker_symbol = args[:ticker_symbol] unless args[:ticker_symbol].nil?
1686
- @type = args[:type] unless args[:type].nil?
1687
- @url = args[:url] unless args[:url].nil?
1688
- @width = args[:width] unless args[:width].nil?
1689
- @worst_rating = args[:worst_rating] unless args[:worst_rating].nil?
1690
- end
1691
- end
1692
-
1693
- #
1694
- class Moment
1695
- include Google::Apis::Core::Hashable
1696
-
1697
- # The moment ID.
1698
- # Corresponds to the JSON property `id`
1699
- # @return [String]
1700
- attr_accessor :id
1701
-
1702
- # Identifies this resource as a moment.
1703
- # Corresponds to the JSON property `kind`
1704
- # @return [String]
1705
- attr_accessor :kind
1706
-
1707
- # The object on which the action was performed. Specifying this is equivalent
1708
- # with specifying "target". Note that responses from the server will use the "
1709
- # target" field instead for backward-compatibility with older clients.
1710
- # Corresponds to the JSON property `object`
1711
- # @return [Google::Apis::PlusV1::ItemScope]
1712
- attr_accessor :object
1713
-
1714
- # The object generated by performing the action on the object. For example, a
1715
- # user writes a review of a restaurant, the object is the restaurant and the
1716
- # result is the review.
1717
- # Corresponds to the JSON property `result`
1718
- # @return [Google::Apis::PlusV1::ItemScope]
1719
- attr_accessor :result
1720
-
1721
- # Time stamp of when the action occurred in RFC3339 format.
1722
- # Corresponds to the JSON property `startDate`
1723
- # @return [DateTime]
1724
- attr_accessor :start_date
1725
-
1726
- # The object on which the action was performed.
1727
- # Corresponds to the JSON property `target`
1728
- # @return [Google::Apis::PlusV1::ItemScope]
1729
- attr_accessor :target
1730
-
1731
- # The schema.org type for the type of moment to write. For example, http://
1732
- # schema.org/AddAction. Note that responses from the server will use the Google
1733
- # schema type instead for backward-compatibility with older clients. For example,
1734
- # http://schemas.google.com/AddActivity.
1735
- # Corresponds to the JSON property `type`
1736
- # @return [String]
1737
- attr_accessor :type
1738
-
1739
- def initialize(**args)
1740
- update!(**args)
1741
- end
1742
-
1743
- # Update properties of this object
1744
- def update!(**args)
1745
- @id = args[:id] unless args[:id].nil?
1746
- @kind = args[:kind] unless args[:kind].nil?
1747
- @object = args[:object] unless args[:object].nil?
1748
- @result = args[:result] unless args[:result].nil?
1749
- @start_date = args[:start_date] unless args[:start_date].nil?
1750
- @target = args[:target] unless args[:target].nil?
1751
- @type = args[:type] unless args[:type].nil?
1752
- end
1753
- end
1754
-
1755
- #
1756
- class MomentsFeed
1757
- include Google::Apis::Core::Hashable
1758
-
1759
- # ETag of this response for caching purposes.
1760
- # Corresponds to the JSON property `etag`
1761
- # @return [String]
1762
- attr_accessor :etag
1763
-
1764
- # The moments in this page of results.
1765
- # Corresponds to the JSON property `items`
1766
- # @return [Array<Google::Apis::PlusV1::Moment>]
1767
- attr_accessor :items
1768
-
1769
- # Identifies this resource as a collection of moments. Value: "plus#momentsFeed".
1770
- # Corresponds to the JSON property `kind`
1771
- # @return [String]
1772
- attr_accessor :kind
1773
-
1774
- # Link to the next page of moments.
1775
- # Corresponds to the JSON property `nextLink`
1776
- # @return [String]
1777
- attr_accessor :next_link
1778
-
1779
- # The continuation token, which is used to page through large result sets.
1780
- # Provide this value in a subsequent request to return the next page of results.
1781
- # Corresponds to the JSON property `nextPageToken`
1782
- # @return [String]
1783
- attr_accessor :next_page_token
1784
-
1785
- # Link to this page of moments.
1786
- # Corresponds to the JSON property `selfLink`
1787
- # @return [String]
1788
- attr_accessor :self_link
1789
-
1790
- # The title of this collection of moments.
1791
- # Corresponds to the JSON property `title`
1792
- # @return [String]
1793
- attr_accessor :title
1794
-
1795
- # The RFC 339 timestamp for when this collection of moments was last updated.
1796
- # Corresponds to the JSON property `updated`
1797
- # @return [DateTime]
1798
- attr_accessor :updated
1799
-
1800
- def initialize(**args)
1801
- update!(**args)
1802
- end
1803
-
1804
- # Update properties of this object
1805
- def update!(**args)
1806
- @etag = args[:etag] unless args[:etag].nil?
1807
- @items = args[:items] unless args[:items].nil?
1808
- @kind = args[:kind] unless args[:kind].nil?
1809
- @next_link = args[:next_link] unless args[:next_link].nil?
1810
- @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
1811
- @self_link = args[:self_link] unless args[:self_link].nil?
1812
- @title = args[:title] unless args[:title].nil?
1813
- @updated = args[:updated] unless args[:updated].nil?
1814
- end
1815
- end
1816
-
1817
1320
  #
1818
1321
  class PeopleFeed
1819
1322
  include Google::Apis::Core::Hashable