google-api-client 0.9 → 0.9.1

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 (59) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/Gemfile +5 -0
  4. data/README.md +1 -1
  5. data/api_names.yaml +1 -1
  6. data/api_names_out.yaml +14 -8
  7. data/generated/google/apis/adexchangebuyer_v1_3.rb +1 -1
  8. data/generated/google/apis/androidpublisher_v2/classes.rb +1 -1
  9. data/generated/google/apis/androidpublisher_v2/representations.rb +2 -2
  10. data/generated/google/apis/androidpublisher_v2/service.rb +4 -4
  11. data/generated/google/apis/appstate_v1.rb +1 -1
  12. data/generated/google/apis/bigquery_v2.rb +1 -1
  13. data/generated/google/apis/books_v1.rb +1 -1
  14. data/generated/google/apis/books_v1/classes.rb +50 -0
  15. data/generated/google/apis/books_v1/representations.rb +8 -0
  16. data/generated/google/apis/books_v1/service.rb +16 -4
  17. data/generated/google/apis/calendar_v3.rb +1 -1
  18. data/generated/google/apis/compute_beta.rb +1 -1
  19. data/generated/google/apis/compute_beta/classes.rb +141 -93
  20. data/generated/google/apis/compute_beta/representations.rb +1 -0
  21. data/generated/google/apis/compute_beta/service.rb +65 -58
  22. data/generated/google/apis/compute_v1.rb +1 -1
  23. data/generated/google/apis/compute_v1/classes.rb +83 -55
  24. data/generated/google/apis/compute_v1/service.rb +59 -52
  25. data/generated/google/apis/content_v2.rb +1 -1
  26. data/generated/google/apis/content_v2/classes.rb +1 -1
  27. data/generated/google/apis/drive_v2.rb +1 -1
  28. data/generated/google/apis/drive_v3.rb +1 -1
  29. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  30. data/generated/google/apis/games_management_v1management.rb +1 -1
  31. data/generated/google/apis/games_v1.rb +1 -1
  32. data/generated/google/apis/genomics_v1.rb +1 -1
  33. data/generated/google/apis/plus_domains_v1.rb +1 -1
  34. data/generated/google/apis/plus_v1.rb +1 -1
  35. data/generated/google/apis/youtube_v3.rb +1 -1
  36. data/generated/google/apis/youtube_v3/classes.rb +9 -61
  37. data/generated/google/apis/youtube_v3/representations.rb +1 -26
  38. data/lib/google/apis/core/upload.rb +1 -0
  39. data/lib/google/apis/version.rb +1 -1
  40. data/samples/{Gemfile → cli/Gemfile} +1 -1
  41. data/samples/{README.md → cli/README.md} +0 -0
  42. data/samples/{google-api-samples → cli/google-api-samples} +0 -0
  43. data/samples/{lib → cli/lib}/base_cli.rb +0 -0
  44. data/samples/{lib → cli/lib}/samples/analytics.rb +0 -0
  45. data/samples/{lib → cli/lib}/samples/calendar.rb +0 -0
  46. data/samples/{lib → cli/lib}/samples/drive.rb +0 -0
  47. data/samples/{lib → cli/lib}/samples/gmail.rb +0 -0
  48. data/samples/{lib → cli/lib}/samples/pubsub.rb +0 -0
  49. data/samples/{lib → cli/lib}/samples/translate.rb +0 -0
  50. data/samples/{lib → cli/lib}/samples/you_tube.rb +0 -0
  51. data/samples/web/Gemfile +7 -0
  52. data/samples/web/README.md +44 -0
  53. data/samples/web/app.rb +120 -0
  54. data/samples/web/views/calendar.erb +34 -0
  55. data/samples/web/views/drive.erb +33 -0
  56. data/samples/web/views/home.erb +35 -0
  57. data/samples/web/views/layout.erb +40 -0
  58. data/spec/google/api_client/client_secrets_spec.rb +300 -1
  59. metadata +20 -13
@@ -52,7 +52,7 @@ module Google
52
52
  super('https://www.googleapis.com/', 'compute/v1/projects/')
53
53
  end
54
54
 
55
- # Retrieves the list of addresses grouped by scope.
55
+ # Retrieves an aggregated list of addresses.
56
56
  # @param [String] project
57
57
  # Project ID for this request.
58
58
  # @param [String] filter
@@ -244,7 +244,7 @@ module Google
244
244
  execute_or_queue_command(command, &block)
245
245
  end
246
246
 
247
- # Retrieves the list of address resources contained within the specified region.
247
+ # Retrieves a list of address resources contained within the specified region.
248
248
  # @param [String] project
249
249
  # Project ID for this request.
250
250
  # @param [String] region
@@ -315,7 +315,7 @@ module Google
315
315
  execute_or_queue_command(command, &block)
316
316
  end
317
317
 
318
- # Retrieves the list of autoscalers grouped by scope.
318
+ # Retrieves an aggregated list of autoscalers.
319
319
  # @param [String] project
320
320
  # Project ID for this request.
321
321
  # @param [String] filter
@@ -507,7 +507,7 @@ module Google
507
507
  execute_or_queue_command(command, &block)
508
508
  end
509
509
 
510
- # Retrieves the list of autoscaler resources contained within the specified zone.
510
+ # Retrieves a list of autoscaler resources contained within the specified zone.
511
511
  # @param [String] project
512
512
  # Project ID for this request.
513
513
  # @param [String] zone
@@ -785,7 +785,9 @@ module Google
785
785
  end
786
786
 
787
787
  # Creates a BackendService resource in the specified project using the data
788
- # included in the request.
788
+ # included in the request. There are several restrictions and guidelines to keep
789
+ # in mind when creating a backend service. Read Restrictions and Guidelines for
790
+ # more information.
789
791
  # @param [String] project
790
792
  # Project ID for this request.
791
793
  # @param [Google::Apis::ComputeV1::BackendService] backend_service_object
@@ -892,7 +894,9 @@ module Google
892
894
  execute_or_queue_command(command, &block)
893
895
  end
894
896
 
895
- # Update the entire content of the BackendService resource. This method supports
897
+ # Updates the entire content of the BackendService resource. There are several
898
+ # restrictions and guidelines to keep in mind when updating a backend service.
899
+ # Read Restrictions and Guidelines for more information. This method supports
896
900
  # patch semantics.
897
901
  # @param [String] project
898
902
  # Project ID for this request.
@@ -934,7 +938,9 @@ module Google
934
938
  execute_or_queue_command(command, &block)
935
939
  end
936
940
 
937
- # Update the entire content of the BackendService resource.
941
+ # Updates the entire content of the BackendService resource. There are several
942
+ # restrictions and guidelines to keep in mind when updating a backend service.
943
+ # Read Restrictions and Guidelines for more information.
938
944
  # @param [String] project
939
945
  # Project ID for this request.
940
946
  # @param [String] backend_service
@@ -975,7 +981,7 @@ module Google
975
981
  execute_or_queue_command(command, &block)
976
982
  end
977
983
 
978
- # Retrieves the list of disk type resources grouped by scope.
984
+ # Retrieves an aggregated list of disk type resources.
979
985
  # @param [String] project
980
986
  # Project ID for this request.
981
987
  # @param [String] filter
@@ -1084,7 +1090,7 @@ module Google
1084
1090
  execute_or_queue_command(command, &block)
1085
1091
  end
1086
1092
 
1087
- # Retrieves the list of disk type resources available to the specified project.
1093
+ # Retrieves a list of disk type resources available to the specified project.
1088
1094
  # @param [String] project
1089
1095
  # Project ID for this request.
1090
1096
  # @param [String] zone
@@ -1155,7 +1161,7 @@ module Google
1155
1161
  execute_or_queue_command(command, &block)
1156
1162
  end
1157
1163
 
1158
- # Retrieves the list of persistent disks grouped by scope.
1164
+ # Retrieves an aggregated list of persistent disks.
1159
1165
  # @param [String] project
1160
1166
  # Project ID for this request.
1161
1167
  # @param [String] filter
@@ -1396,7 +1402,7 @@ module Google
1396
1402
  execute_or_queue_command(command, &block)
1397
1403
  end
1398
1404
 
1399
- # Retrieves the list of persistent disks contained within the specified zone.
1405
+ # Retrieves a list of persistent disks contained within the specified zone.
1400
1406
  # @param [String] project
1401
1407
  # Project ID for this request.
1402
1408
  # @param [String] zone
@@ -1733,7 +1739,7 @@ module Google
1733
1739
  execute_or_queue_command(command, &block)
1734
1740
  end
1735
1741
 
1736
- # Retrieves the list of forwarding rules grouped by scope.
1742
+ # Retrieves an aggregated list of forwarding rules.
1737
1743
  # @param [String] project
1738
1744
  # Project ID for this request.
1739
1745
  # @param [String] filter
@@ -1925,7 +1931,7 @@ module Google
1925
1931
  execute_or_queue_command(command, &block)
1926
1932
  end
1927
1933
 
1928
- # Retrieves the list of ForwardingRule resources available to the specified
1934
+ # Retrieves a list of ForwardingRule resources available to the specified
1929
1935
  # project and region.
1930
1936
  # @param [String] project
1931
1937
  # Project ID for this request.
@@ -2157,7 +2163,7 @@ module Google
2157
2163
  execute_or_queue_command(command, &block)
2158
2164
  end
2159
2165
 
2160
- # Retrieves the list of global address resources.
2166
+ # Retrieves a list of global address resources.
2161
2167
  # @param [String] project
2162
2168
  # Project ID for this request.
2163
2169
  # @param [String] filter
@@ -2340,7 +2346,7 @@ module Google
2340
2346
  execute_or_queue_command(command, &block)
2341
2347
  end
2342
2348
 
2343
- # Retrieves the list of ForwardingRule resources available to the specified
2349
+ # Retrieves a list of ForwardingRule resources available to the specified
2344
2350
  # project.
2345
2351
  # @param [String] project
2346
2352
  # Project ID for this request.
@@ -2451,7 +2457,7 @@ module Google
2451
2457
  execute_or_queue_command(command, &block)
2452
2458
  end
2453
2459
 
2454
- # Retrieves the list of all operations grouped by scope.
2460
+ # Retrieves an aggregated list of all operations.
2455
2461
  # @param [String] project
2456
2462
  # Project ID for this request.
2457
2463
  # @param [String] filter
@@ -2593,8 +2599,7 @@ module Google
2593
2599
  execute_or_queue_command(command, &block)
2594
2600
  end
2595
2601
 
2596
- # Retrieves the list of Operation resources contained within the specified
2597
- # project.
2602
+ # Retrieves a list of Operation resources contained within the specified project.
2598
2603
  # @param [String] project
2599
2604
  # Project ID for this request.
2600
2605
  # @param [String] filter
@@ -3549,7 +3554,8 @@ module Google
3549
3554
  end
3550
3555
 
3551
3556
  # Deletes the specified managed instance group and all of the instances in that
3552
- # group.
3557
+ # group. Note that the instance group must not belong to a backend service. Read
3558
+ # Deleting an instance group for more information.
3553
3559
  # @param [String] project
3554
3560
  # Project ID for this request.
3555
3561
  # @param [String] zone
@@ -4039,8 +4045,8 @@ module Google
4039
4045
  execute_or_queue_command(command, &block)
4040
4046
  end
4041
4047
 
4042
- # Adds a list of instances to the specified instance group. All of the instances
4043
- # in the instance group must be in the same network/subnetwork.
4048
+ # Adds a list of instances to the specified instance group. Read Adding
4049
+ # instances for more information.
4044
4050
  # @param [String] project
4045
4051
  # Project ID for this request.
4046
4052
  # @param [String] zone
@@ -4153,7 +4159,8 @@ module Google
4153
4159
  end
4154
4160
 
4155
4161
  # Deletes the specified instance group. The instances in the group are not
4156
- # deleted.
4162
+ # deleted. Note that instance group must not belong to a backend service. Read
4163
+ # Deleting an instance group for more information.
4157
4164
  # @param [String] project
4158
4165
  # Project ID for this request.
4159
4166
  # @param [String] zone
@@ -4593,7 +4600,9 @@ module Google
4593
4600
  end
4594
4601
 
4595
4602
  # Creates an instance template in the specified project using the data that is
4596
- # included in the request.
4603
+ # included in the request. If you are creating a new template to update an
4604
+ # existing instance group, your new instance template must use the same network
4605
+ # or, if applicable, the same subnetwork as the original template.
4597
4606
  # @param [String] project
4598
4607
  # Project ID for this request.
4599
4608
  # @param [Google::Apis::ComputeV1::InstanceTemplate] instance_template_object
@@ -5410,8 +5419,8 @@ module Google
5410
5419
  execute_or_queue_command(command, &block)
5411
5420
  end
5412
5421
 
5413
- # This method starts an instance that was stopped using the using the instances()
5414
- # .stop method. For more information, see Restart an instance.
5422
+ # Starts an instance that was stopped using the using the instances().stop
5423
+ # method. For more information, see Restart an instance.
5415
5424
  # @param [String] project
5416
5425
  # Project ID for this request.
5417
5426
  # @param [String] zone
@@ -5452,12 +5461,12 @@ module Google
5452
5461
  execute_or_queue_command(command, &block)
5453
5462
  end
5454
5463
 
5455
- # This method stops a running instance, shutting it down cleanly, and allows you
5456
- # to restart the instance at a later time. Stopped instances do not incur per-
5457
- # minute, virtual machine usage charges while they are stopped, but any
5458
- # resources that the virtual machine is using, such as persistent disks and
5459
- # static IP addresses,will continue to be charged until they are deleted. For
5460
- # more information, see Stopping an instance.
5464
+ # Stops a running instance, shutting it down cleanly, and allows you to restart
5465
+ # the instance at a later time. Stopped instances do not incur per-minute,
5466
+ # virtual machine usage charges while they are stopped, but any resources that
5467
+ # the virtual machine is using, such as persistent disks and static IP addresses,
5468
+ # will continue to be charged until they are deleted. For more information, see
5469
+ # Stopping an instance.
5461
5470
  # @param [String] project
5462
5471
  # Project ID for this request.
5463
5472
  # @param [String] zone
@@ -5536,7 +5545,7 @@ module Google
5536
5545
  execute_or_queue_command(command, &block)
5537
5546
  end
5538
5547
 
5539
- # Retrieves the list of machine type resources grouped by scope.
5548
+ # Retrieves an aggregated list of machine type resources.
5540
5549
  # @param [String] project
5541
5550
  # Project ID for this request.
5542
5551
  # @param [String] filter
@@ -5645,8 +5654,7 @@ module Google
5645
5654
  execute_or_queue_command(command, &block)
5646
5655
  end
5647
5656
 
5648
- # Retrieves the list of machine type resources available to the specified
5649
- # project.
5657
+ # Retrieves a list of machine type resources available to the specified project.
5650
5658
  # @param [String] project
5651
5659
  # Project ID for this request.
5652
5660
  # @param [String] zone
@@ -6133,7 +6141,7 @@ module Google
6133
6141
  # @param [String] project
6134
6142
  # Project ID for this request.
6135
6143
  # @param [String] region
6136
- # Name of the zone scoping this request.
6144
+ # Name of the region scoping this request.
6137
6145
  # @param [String] operation
6138
6146
  # Name of the Operations resource to return.
6139
6147
  # @param [String] fields
@@ -6170,8 +6178,7 @@ module Google
6170
6178
  execute_or_queue_command(command, &block)
6171
6179
  end
6172
6180
 
6173
- # Retrieves the list of Operation resources contained within the specified
6174
- # region.
6181
+ # Retrieves a list of Operation resources contained within the specified region.
6175
6182
  # @param [String] project
6176
6183
  # Project ID for this request.
6177
6184
  # @param [String] region
@@ -7355,7 +7362,7 @@ module Google
7355
7362
  execute_or_queue_command(command, &block)
7356
7363
  end
7357
7364
 
7358
- # Retrieves the list of target instances grouped by scope.
7365
+ # Retrieves an aggregated list of target instances.
7359
7366
  # @param [String] project
7360
7367
  # Project ID for this request.
7361
7368
  # @param [String] filter
@@ -7547,7 +7554,7 @@ module Google
7547
7554
  execute_or_queue_command(command, &block)
7548
7555
  end
7549
7556
 
7550
- # Retrieves the list of TargetInstance resources available to the specified
7557
+ # Retrieves a list of TargetInstance resources available to the specified
7551
7558
  # project and zone.
7552
7559
  # @param [String] project
7553
7560
  # Project ID for this request.
@@ -7705,7 +7712,7 @@ module Google
7705
7712
  execute_or_queue_command(command, &block)
7706
7713
  end
7707
7714
 
7708
- # Retrieves the list of target pools grouped by scope.
7715
+ # Retrieves an aggregated list of target pools.
7709
7716
  # @param [String] project
7710
7717
  # Project ID for this request.
7711
7718
  # @param [String] filter
@@ -7856,7 +7863,7 @@ module Google
7856
7863
  end
7857
7864
 
7858
7865
  # Gets the most recent health check results for each IP for the given instance
7859
- # that is referenced by given TargetPool.
7866
+ # that is referenced by the given TargetPool.
7860
7867
  # @param [String] project
7861
7868
  # @param [String] region
7862
7869
  # Name of the region scoping this request.
@@ -7941,7 +7948,7 @@ module Google
7941
7948
  execute_or_queue_command(command, &block)
7942
7949
  end
7943
7950
 
7944
- # Retrieves the list of TargetPool resources available to the specified project
7951
+ # Retrieves a list of TargetPool resources available to the specified project
7945
7952
  # and region.
7946
7953
  # @param [String] project
7947
7954
  # Project ID for this request.
@@ -8146,7 +8153,7 @@ module Google
8146
8153
  execute_or_queue_command(command, &block)
8147
8154
  end
8148
8155
 
8149
- # Retrieves the list of target VPN gateways grouped by scope.
8156
+ # Retrieves an aggregated list of target VPN gateways .
8150
8157
  # @param [String] project
8151
8158
  # Project ID for this request.
8152
8159
  # @param [String] filter
@@ -8338,7 +8345,7 @@ module Google
8338
8345
  execute_or_queue_command(command, &block)
8339
8346
  end
8340
8347
 
8341
- # Retrieves the list of TargetVpnGateway resources available to the specified
8348
+ # Retrieves a list of TargetVpnGateway resources available to the specified
8342
8349
  # project and region.
8343
8350
  # @param [String] project
8344
8351
  # Project ID for this request.
@@ -8593,7 +8600,7 @@ module Google
8593
8600
  execute_or_queue_command(command, &block)
8594
8601
  end
8595
8602
 
8596
- # Update the entire content of the UrlMap resource. This method supports patch
8603
+ # Updates the entire content of the UrlMap resource. This method supports patch
8597
8604
  # semantics.
8598
8605
  # @param [String] project
8599
8606
  # Project ID for this request.
@@ -8635,7 +8642,7 @@ module Google
8635
8642
  execute_or_queue_command(command, &block)
8636
8643
  end
8637
8644
 
8638
- # Update the entire content of the UrlMap resource.
8645
+ # Updates the entire content of the UrlMap resource.
8639
8646
  # @param [String] project
8640
8647
  # Project ID for this request.
8641
8648
  # @param [String] url_map
@@ -8676,8 +8683,8 @@ module Google
8676
8683
  execute_or_queue_command(command, &block)
8677
8684
  end
8678
8685
 
8679
- # Run static validation for the UrlMap. In particular, the tests of the provided
8680
- # UrlMap will be run. Calling this method does NOT create the UrlMap.
8686
+ # Runs static validation for the UrlMap. In particular, the tests of the
8687
+ # provided UrlMap will be run. Calling this method does NOT create the UrlMap.
8681
8688
  # @param [String] project
8682
8689
  # Project ID for this request.
8683
8690
  # @param [String] url_map
@@ -8718,7 +8725,7 @@ module Google
8718
8725
  execute_or_queue_command(command, &block)
8719
8726
  end
8720
8727
 
8721
- # Retrieves the list of VPN tunnels grouped by scope.
8728
+ # Retrieves an aggregated list of VPN tunnels.
8722
8729
  # @param [String] project
8723
8730
  # Project ID for this request.
8724
8731
  # @param [String] filter
@@ -8910,8 +8917,8 @@ module Google
8910
8917
  execute_or_queue_command(command, &block)
8911
8918
  end
8912
8919
 
8913
- # Retrieves the list of VpnTunnel resources contained in the specified project
8914
- # and region.
8920
+ # Retrieves a list of VpnTunnel resources contained in the specified project and
8921
+ # region.
8915
8922
  # @param [String] project
8916
8923
  # Project ID for this request.
8917
8924
  # @param [String] region
@@ -9062,7 +9069,7 @@ module Google
9062
9069
  execute_or_queue_command(command, &block)
9063
9070
  end
9064
9071
 
9065
- # Retrieves the list of Operation resources contained within the specified zone.
9072
+ # Retrieves a list of Operation resources contained within the specified zone.
9066
9073
  # @param [String] project
9067
9074
  # Project ID for this request.
9068
9075
  # @param [String] zone
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/shopping-content
27
27
  module ContentV2
28
28
  VERSION = 'V2'
29
- REVISION = '20151211'
29
+ REVISION = '20160115'
30
30
 
31
31
  # Manage your product listings and accounts for Google Shopping
32
32
  AUTH_CONTENT = 'https://www.googleapis.com/auth/content'
@@ -1606,7 +1606,7 @@ module Google
1606
1606
  # @return [String]
1607
1607
  attr_accessor :fetch_url
1608
1608
 
1609
- # The hour of the day the feed file should be fetched (0-24).
1609
+ # The hour of the day the feed file should be fetched (0-23).
1610
1610
  # Corresponds to the JSON property `hour`
1611
1611
  # @return [Fixnum]
1612
1612
  attr_accessor :hour
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/drive/
26
26
  module DriveV2
27
27
  VERSION = 'V2'
28
- REVISION = '20151230'
28
+ REVISION = '20160107'
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/drive/
26
26
  module DriveV3
27
27
  VERSION = 'V3'
28
- REVISION = '20151230'
28
+ REVISION = '20160107'
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 = '20160106'
28
+ REVISION = '20160111'
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 = '20160106'
28
+ REVISION = '20160111'
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 = '20160106'
28
+ REVISION = '20160111'
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 = '20160113'
31
+ REVISION = '20160115'
32
32
 
33
33
  # View and manage your data in Google BigQuery
34
34
  AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'