google-api-client 0.9.20 → 0.9.21
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +8 -4
- data/api_names.yaml +33179 -1058
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +24 -6
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +2 -0
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +14 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +2 -0
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +7 -0
- data/generated/google/apis/analyticsreporting_v4/representations.rb +1 -0
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +96 -156
- data/generated/google/apis/androidenterprise_v1/representations.rb +18 -47
- data/generated/google/apis/androidenterprise_v1/service.rb +15 -459
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +176 -0
- data/generated/google/apis/androidpublisher_v2/representations.rb +62 -0
- data/generated/google/apis/androidpublisher_v2/service.rb +60 -2
- data/generated/google/apis/appengine_v1beta5.rb +1 -1
- data/generated/google/apis/appengine_v1beta5/classes.rb +300 -198
- data/generated/google/apis/appengine_v1beta5/representations.rb +36 -0
- data/generated/google/apis/appengine_v1beta5/service.rb +54 -49
- data/generated/google/apis/appsactivity_v1.rb +1 -1
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +50 -6
- data/generated/google/apis/bigquery_v2/representations.rb +5 -0
- data/generated/google/apis/books_v1.rb +1 -1
- data/generated/google/apis/books_v1/classes.rb +7 -2
- data/generated/google/apis/books_v1/representations.rb +1 -0
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/classroom_v1/classes.rb +74 -74
- data/generated/google/apis/classroom_v1/representations.rb +29 -29
- data/generated/google/apis/classroom_v1/service.rb +132 -28
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +47 -27
- data/generated/google/apis/cloudbuild_v1/representations.rb +20 -7
- data/generated/google/apis/cloudbuild_v1/service.rb +42 -0
- data/generated/google/apis/clouddebugger_v2.rb +1 -1
- data/generated/google/apis/clouddebugger_v2/classes.rb +648 -578
- data/generated/google/apis/clouddebugger_v2/representations.rb +140 -140
- data/generated/google/apis/clouddebugger_v2/service.rb +161 -155
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +563 -423
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +116 -76
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +318 -249
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +396 -331
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +79 -79
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +317 -281
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +352 -80
- data/generated/google/apis/compute_beta/representations.rb +132 -19
- data/generated/google/apis/compute_beta/service.rb +214 -0
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +673 -73
- data/generated/google/apis/compute_v1/representations.rb +274 -9
- data/generated/google/apis/compute_v1/service.rb +1574 -2
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +7 -8
- data/generated/google/apis/content_v2/service.rb +125 -54
- data/generated/google/apis/dataflow_v1b3.rb +2 -3
- data/generated/google/apis/dataflow_v1b3/classes.rb +286 -114
- data/generated/google/apis/dataflow_v1b3/representations.rb +73 -0
- data/generated/google/apis/dataflow_v1b3/service.rb +37 -38
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/datastore_v1/classes.rb +5 -0
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +37 -5
- data/generated/google/apis/deploymentmanager_v2/representations.rb +16 -0
- data/generated/google/apis/deploymentmanager_v2/service.rb +4 -1
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +55 -21
- data/generated/google/apis/drive_v2/representations.rb +2 -0
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +41 -12
- data/generated/google/apis/drive_v3/representations.rb +2 -0
- data/generated/google/apis/fitness_v1.rb +31 -1
- data/generated/google/apis/fitness_v1/classes.rb +1 -1
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/gmail_v1/classes.rb +32 -1
- data/generated/google/apis/gmail_v1/representations.rb +15 -0
- data/generated/google/apis/gmail_v1/service.rb +41 -2
- data/generated/google/apis/identitytoolkit_v3.rb +4 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +7 -0
- data/generated/google/apis/identitytoolkit_v3/representations.rb +1 -0
- data/generated/google/apis/kgsearch_v1.rb +2 -3
- data/generated/google/apis/kgsearch_v1/classes.rb +10 -10
- data/generated/google/apis/kgsearch_v1/representations.rb +2 -2
- data/generated/google/apis/kgsearch_v1/service.rb +28 -26
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +166 -8
- data/generated/google/apis/language_v1beta1/representations.rb +50 -0
- data/generated/google/apis/language_v1beta1/service.rb +32 -0
- data/generated/google/apis/logging_v2beta1.rb +6 -6
- data/generated/google/apis/logging_v2beta1/classes.rb +868 -789
- data/generated/google/apis/logging_v2beta1/representations.rb +179 -147
- data/generated/google/apis/logging_v2beta1/service.rb +378 -211
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +110 -112
- data/generated/google/apis/monitoring_v3/service.rb +68 -73
- data/generated/google/apis/pagespeedonline_v2.rb +1 -1
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +380 -327
- data/generated/google/apis/pubsub_v1/representations.rb +79 -79
- data/generated/google/apis/pubsub_v1/service.rb +424 -396
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +175 -53
- data/generated/google/apis/sheets_v4/representations.rb +48 -13
- data/generated/google/apis/site_verification_v1.rb +1 -1
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +149 -31
- data/generated/google/apis/slides_v1/representations.rb +52 -9
- data/generated/google/apis/slides_v1/service.rb +5 -5
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/service.rb +3 -1
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +54 -2
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +29 -0
- data/generated/google/apis/sqladmin_v1beta4/service.rb +41 -0
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +7 -0
- data/generated/google/apis/storage_v1/representations.rb +2 -0
- data/generated/google/apis/tagmanager_v1.rb +5 -5
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +63 -59
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1/classes.rb +0 -209
- data/generated/google/apis/youtube_analytics_v1/representations.rb +0 -99
- data/generated/google/apis/youtube_analytics_v1/service.rb +0 -76
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +71 -0
- data/generated/google/apis/youtube_partner_v1/representations.rb +33 -0
- data/generated/google/apis/youtube_partner_v1/service.rb +52 -0
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +15 -2
- data/generated/google/apis/youtube_v3/representations.rb +3 -0
- data/generated/google/apis/youtube_v3/service.rb +4 -4
- data/generated/google/apis/youtubereporting_v1.rb +4 -4
- data/generated/google/apis/youtubereporting_v1/classes.rb +146 -137
- data/generated/google/apis/youtubereporting_v1/representations.rb +33 -33
- data/generated/google/apis/youtubereporting_v1/service.rb +149 -145
- data/lib/google/apis/version.rb +1 -1
- data/samples/cli/lib/samples/calendar.rb +1 -1
- data/samples/cli/lib/samples/gmail.rb +74 -0
- metadata +29 -29
@@ -316,6 +316,12 @@ module Google
|
|
316
316
|
include Google::Apis::Core::JsonObjectSupport
|
317
317
|
end
|
318
318
|
|
319
|
+
class UpdateLinePropertiesRequest
|
320
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
321
|
+
|
322
|
+
include Google::Apis::Core::JsonObjectSupport
|
323
|
+
end
|
324
|
+
|
319
325
|
class TableCellBackgroundFill
|
320
326
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
321
327
|
|
@@ -454,6 +460,12 @@ module Google
|
|
454
460
|
include Google::Apis::Core::JsonObjectSupport
|
455
461
|
end
|
456
462
|
|
463
|
+
class CreateLineRequest
|
464
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
465
|
+
|
466
|
+
include Google::Apis::Core::JsonObjectSupport
|
467
|
+
end
|
468
|
+
|
457
469
|
class CreateShapeResponse
|
458
470
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
459
471
|
|
@@ -586,13 +598,13 @@ module Google
|
|
586
598
|
include Google::Apis::Core::JsonObjectSupport
|
587
599
|
end
|
588
600
|
|
589
|
-
class
|
601
|
+
class WordArt
|
590
602
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
591
603
|
|
592
604
|
include Google::Apis::Core::JsonObjectSupport
|
593
605
|
end
|
594
606
|
|
595
|
-
class
|
607
|
+
class Range
|
596
608
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
597
609
|
|
598
610
|
include Google::Apis::Core::JsonObjectSupport
|
@@ -906,11 +918,13 @@ module Google
|
|
906
918
|
class Representation < Google::Apis::Core::JsonRepresentation
|
907
919
|
property :weight, as: 'weight', class: Google::Apis::SlidesV1::Dimension, decorator: Google::Apis::SlidesV1::Dimension::Representation
|
908
920
|
|
909
|
-
property :start_arrow, as: 'startArrow'
|
910
921
|
property :end_arrow, as: 'endArrow'
|
922
|
+
property :link, as: 'link', class: Google::Apis::SlidesV1::Link, decorator: Google::Apis::SlidesV1::Link::Representation
|
923
|
+
|
911
924
|
property :line_fill, as: 'lineFill', class: Google::Apis::SlidesV1::LineFill, decorator: Google::Apis::SlidesV1::LineFill::Representation
|
912
925
|
|
913
926
|
property :dash_style, as: 'dashStyle'
|
927
|
+
property :start_arrow, as: 'startArrow'
|
914
928
|
end
|
915
929
|
end
|
916
930
|
|
@@ -1167,6 +1181,16 @@ module Google
|
|
1167
1181
|
end
|
1168
1182
|
end
|
1169
1183
|
|
1184
|
+
class UpdateLinePropertiesRequest
|
1185
|
+
# @private
|
1186
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1187
|
+
property :object_id_prop, as: 'objectId'
|
1188
|
+
property :line_properties, as: 'lineProperties', class: Google::Apis::SlidesV1::LineProperties, decorator: Google::Apis::SlidesV1::LineProperties::Representation
|
1189
|
+
|
1190
|
+
property :fields, as: 'fields'
|
1191
|
+
end
|
1192
|
+
end
|
1193
|
+
|
1170
1194
|
class TableCellBackgroundFill
|
1171
1195
|
# @private
|
1172
1196
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1347,6 +1371,7 @@ module Google
|
|
1347
1371
|
property :style, as: 'style', class: Google::Apis::SlidesV1::TextStyle, decorator: Google::Apis::SlidesV1::TextStyle::Representation
|
1348
1372
|
|
1349
1373
|
property :type, as: 'type'
|
1374
|
+
property :content, as: 'content'
|
1350
1375
|
end
|
1351
1376
|
end
|
1352
1377
|
|
@@ -1386,6 +1411,8 @@ module Google
|
|
1386
1411
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1387
1412
|
property :outline, as: 'outline', class: Google::Apis::SlidesV1::Outline, decorator: Google::Apis::SlidesV1::Outline::Representation
|
1388
1413
|
|
1414
|
+
property :link, as: 'link', class: Google::Apis::SlidesV1::Link, decorator: Google::Apis::SlidesV1::Link::Representation
|
1415
|
+
|
1389
1416
|
property :shape_background_fill, as: 'shapeBackgroundFill', class: Google::Apis::SlidesV1::ShapeBackgroundFill, decorator: Google::Apis::SlidesV1::ShapeBackgroundFill::Representation
|
1390
1417
|
|
1391
1418
|
property :shadow, as: 'shadow', class: Google::Apis::SlidesV1::Shadow, decorator: Google::Apis::SlidesV1::Shadow::Representation
|
@@ -1393,6 +1420,16 @@ module Google
|
|
1393
1420
|
end
|
1394
1421
|
end
|
1395
1422
|
|
1423
|
+
class CreateLineRequest
|
1424
|
+
# @private
|
1425
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1426
|
+
property :object_id_prop, as: 'objectId'
|
1427
|
+
property :element_properties, as: 'elementProperties', class: Google::Apis::SlidesV1::PageElementProperties, decorator: Google::Apis::SlidesV1::PageElementProperties::Representation
|
1428
|
+
|
1429
|
+
property :line_category, as: 'lineCategory'
|
1430
|
+
end
|
1431
|
+
end
|
1432
|
+
|
1396
1433
|
class CreateShapeResponse
|
1397
1434
|
# @private
|
1398
1435
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1489,6 +1526,8 @@ module Google
|
|
1489
1526
|
|
1490
1527
|
property :transparency, as: 'transparency'
|
1491
1528
|
property :contrast, as: 'contrast'
|
1529
|
+
property :link, as: 'link', class: Google::Apis::SlidesV1::Link, decorator: Google::Apis::SlidesV1::Link::Representation
|
1530
|
+
|
1492
1531
|
property :recolor, as: 'recolor', class: Google::Apis::SlidesV1::Recolor, decorator: Google::Apis::SlidesV1::Recolor::Representation
|
1493
1532
|
|
1494
1533
|
property :brightness, as: 'brightness'
|
@@ -1609,19 +1648,19 @@ module Google
|
|
1609
1648
|
end
|
1610
1649
|
end
|
1611
1650
|
|
1612
|
-
class
|
1651
|
+
class WordArt
|
1613
1652
|
# @private
|
1614
1653
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1615
|
-
property :
|
1616
|
-
property :start_index, as: 'startIndex'
|
1617
|
-
property :type, as: 'type'
|
1654
|
+
property :rendered_text, as: 'renderedText'
|
1618
1655
|
end
|
1619
1656
|
end
|
1620
1657
|
|
1621
|
-
class
|
1658
|
+
class Range
|
1622
1659
|
# @private
|
1623
1660
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1624
|
-
property :
|
1661
|
+
property :end_index, as: 'endIndex'
|
1662
|
+
property :start_index, as: 'startIndex'
|
1663
|
+
property :type, as: 'type'
|
1625
1664
|
end
|
1626
1665
|
end
|
1627
1666
|
|
@@ -1652,6 +1691,8 @@ module Google
|
|
1652
1691
|
|
1653
1692
|
property :delete_table_row, as: 'deleteTableRow', class: Google::Apis::SlidesV1::DeleteTableRowRequest, decorator: Google::Apis::SlidesV1::DeleteTableRowRequest::Representation
|
1654
1693
|
|
1694
|
+
property :create_line, as: 'createLine', class: Google::Apis::SlidesV1::CreateLineRequest, decorator: Google::Apis::SlidesV1::CreateLineRequest::Representation
|
1695
|
+
|
1655
1696
|
property :update_text_style, as: 'updateTextStyle', class: Google::Apis::SlidesV1::UpdateTextStyleRequest, decorator: Google::Apis::SlidesV1::UpdateTextStyleRequest::Representation
|
1656
1697
|
|
1657
1698
|
property :insert_table_rows, as: 'insertTableRows', class: Google::Apis::SlidesV1::InsertTableRowsRequest, decorator: Google::Apis::SlidesV1::InsertTableRowsRequest::Representation
|
@@ -1688,6 +1729,8 @@ module Google
|
|
1688
1729
|
|
1689
1730
|
property :delete_table_column, as: 'deleteTableColumn', class: Google::Apis::SlidesV1::DeleteTableColumnRequest, decorator: Google::Apis::SlidesV1::DeleteTableColumnRequest::Representation
|
1690
1731
|
|
1732
|
+
property :update_line_properties, as: 'updateLineProperties', class: Google::Apis::SlidesV1::UpdateLinePropertiesRequest, decorator: Google::Apis::SlidesV1::UpdateLinePropertiesRequest::Representation
|
1733
|
+
|
1691
1734
|
end
|
1692
1735
|
end
|
1693
1736
|
|
@@ -110,20 +110,20 @@ module Google
|
|
110
110
|
|
111
111
|
# Applies one or more updates to the presentation.
|
112
112
|
# Each request is validated before
|
113
|
-
# being applied. If any request is not valid then the entire request will
|
113
|
+
# being applied. If any request is not valid, then the entire request will
|
114
114
|
# fail and nothing will be applied.
|
115
115
|
# Some requests have replies to
|
116
116
|
# give you some information about how they are applied. Other requests do
|
117
117
|
# not need to return information; these each return an empty reply.
|
118
118
|
# The order of replies matches that of the requests.
|
119
119
|
# For example, suppose you call batchUpdate with four updates, and only the
|
120
|
-
# third one returns information. The response would have two empty replies
|
120
|
+
# third one returns information. The response would have two empty replies:
|
121
121
|
# the reply to the third request, and another empty reply, in that order.
|
122
|
-
# Because other users may be editing the presentation,
|
123
|
-
#
|
122
|
+
# Because other users may be editing the presentation, the presentation
|
123
|
+
# might not exactly reflect your changes: your changes may
|
124
124
|
# be altered with respect to collaborator changes. If there are no
|
125
125
|
# collaborators, the presentation should reflect your changes. In any case,
|
126
|
-
#
|
126
|
+
# the updates in your request are guaranteed to be applied together
|
127
127
|
# atomically.
|
128
128
|
# @param [String] presentation_id
|
129
129
|
# The presentation to apply the updates to.
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://cloud.google.com/speech/
|
26
26
|
module SpeechV1beta1
|
27
27
|
VERSION = 'V1beta1'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20170118'
|
29
29
|
|
30
30
|
# View and manage your data across Google Cloud Platform services
|
31
31
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
@@ -227,7 +227,9 @@ module Google
|
|
227
227
|
end
|
228
228
|
|
229
229
|
# Performs asynchronous speech recognition: receive results via the
|
230
|
-
# google.longrunning.Operations
|
230
|
+
# [google.longrunning.Operations]
|
231
|
+
# (/speech/reference/rest/v1beta1/operations#Operation)
|
232
|
+
# interface. Returns either an
|
231
233
|
# `Operation.error` or an `Operation.response` which contains
|
232
234
|
# an `AsyncRecognizeResponse` message.
|
233
235
|
# @param [Google::Apis::SpeechV1beta1::AsyncRecognizeRequest] async_recognize_request_object
|
@@ -26,7 +26,7 @@ module Google
|
|
26
26
|
# @see https://cloud.google.com/sql/docs/reference/latest
|
27
27
|
module SqladminV1beta4
|
28
28
|
VERSION = 'V1beta4'
|
29
|
-
REVISION = '
|
29
|
+
REVISION = '20161220'
|
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'
|
@@ -1041,6 +1041,25 @@ module Google
|
|
1041
1041
|
end
|
1042
1042
|
end
|
1043
1043
|
|
1044
|
+
# Instance truncate log request.
|
1045
|
+
class InstancesTruncateLogRequest
|
1046
|
+
include Google::Apis::Core::Hashable
|
1047
|
+
|
1048
|
+
# Database Instance truncate log context.
|
1049
|
+
# Corresponds to the JSON property `truncateLogContext`
|
1050
|
+
# @return [Google::Apis::SqladminV1beta4::TruncateLogContext]
|
1051
|
+
attr_accessor :truncate_log_context
|
1052
|
+
|
1053
|
+
def initialize(**args)
|
1054
|
+
update!(**args)
|
1055
|
+
end
|
1056
|
+
|
1057
|
+
# Update properties of this object
|
1058
|
+
def update!(**args)
|
1059
|
+
@truncate_log_context = args[:truncate_log_context] if args.key?(:truncate_log_context)
|
1060
|
+
end
|
1061
|
+
end
|
1062
|
+
|
1044
1063
|
# IP Management configuration.
|
1045
1064
|
class IpConfiguration
|
1046
1065
|
include Google::Apis::Core::Hashable
|
@@ -1093,6 +1112,13 @@ module Google
|
|
1093
1112
|
# @return [DateTime]
|
1094
1113
|
attr_accessor :time_to_retire
|
1095
1114
|
|
1115
|
+
# The type of this IP address. A PRIMARY address is an address that can accept
|
1116
|
+
# incoming connections. An OUTGOING address is the source address of connections
|
1117
|
+
# originating from the instance, if supported.
|
1118
|
+
# Corresponds to the JSON property `type`
|
1119
|
+
# @return [String]
|
1120
|
+
attr_accessor :type
|
1121
|
+
|
1096
1122
|
def initialize(**args)
|
1097
1123
|
update!(**args)
|
1098
1124
|
end
|
@@ -1101,6 +1127,7 @@ module Google
|
|
1101
1127
|
def update!(**args)
|
1102
1128
|
@ip_address = args[:ip_address] if args.key?(:ip_address)
|
1103
1129
|
@time_to_retire = args[:time_to_retire] if args.key?(:time_to_retire)
|
1130
|
+
@type = args[:type] if args.key?(:type)
|
1104
1131
|
end
|
1105
1132
|
end
|
1106
1133
|
|
@@ -1921,8 +1948,7 @@ module Google
|
|
1921
1948
|
# @return [String]
|
1922
1949
|
attr_accessor :kind
|
1923
1950
|
|
1924
|
-
# The applicable regions for this tier.
|
1925
|
-
# east1.
|
1951
|
+
# The applicable regions for this tier.
|
1926
1952
|
# Corresponds to the JSON property `region`
|
1927
1953
|
# @return [Array<String>]
|
1928
1954
|
attr_accessor :region
|
@@ -1972,6 +1998,32 @@ module Google
|
|
1972
1998
|
end
|
1973
1999
|
end
|
1974
2000
|
|
2001
|
+
# Database Instance truncate log context.
|
2002
|
+
class TruncateLogContext
|
2003
|
+
include Google::Apis::Core::Hashable
|
2004
|
+
|
2005
|
+
# This is always sql#truncateLogContext.
|
2006
|
+
# Corresponds to the JSON property `kind`
|
2007
|
+
# @return [String]
|
2008
|
+
attr_accessor :kind
|
2009
|
+
|
2010
|
+
# The type of log to truncate. Valid values are MYSQL_GENERAL_TABLE and
|
2011
|
+
# MYSQL_SLOW_TABLE.
|
2012
|
+
# Corresponds to the JSON property `logType`
|
2013
|
+
# @return [String]
|
2014
|
+
attr_accessor :log_type
|
2015
|
+
|
2016
|
+
def initialize(**args)
|
2017
|
+
update!(**args)
|
2018
|
+
end
|
2019
|
+
|
2020
|
+
# Update properties of this object
|
2021
|
+
def update!(**args)
|
2022
|
+
@kind = args[:kind] if args.key?(:kind)
|
2023
|
+
@log_type = args[:log_type] if args.key?(:log_type)
|
2024
|
+
end
|
2025
|
+
end
|
2026
|
+
|
1975
2027
|
# A Cloud SQL user resource.
|
1976
2028
|
class User
|
1977
2029
|
include Google::Apis::Core::Hashable
|
@@ -172,6 +172,12 @@ module Google
|
|
172
172
|
include Google::Apis::Core::JsonObjectSupport
|
173
173
|
end
|
174
174
|
|
175
|
+
class InstancesTruncateLogRequest
|
176
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
177
|
+
|
178
|
+
include Google::Apis::Core::JsonObjectSupport
|
179
|
+
end
|
180
|
+
|
175
181
|
class IpConfiguration
|
176
182
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
177
183
|
|
@@ -298,6 +304,12 @@ module Google
|
|
298
304
|
include Google::Apis::Core::JsonObjectSupport
|
299
305
|
end
|
300
306
|
|
307
|
+
class TruncateLogContext
|
308
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
309
|
+
|
310
|
+
include Google::Apis::Core::JsonObjectSupport
|
311
|
+
end
|
312
|
+
|
301
313
|
class User
|
302
314
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
303
315
|
|
@@ -588,6 +600,14 @@ module Google
|
|
588
600
|
end
|
589
601
|
end
|
590
602
|
|
603
|
+
class InstancesTruncateLogRequest
|
604
|
+
# @private
|
605
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
606
|
+
property :truncate_log_context, as: 'truncateLogContext', class: Google::Apis::SqladminV1beta4::TruncateLogContext, decorator: Google::Apis::SqladminV1beta4::TruncateLogContext::Representation
|
607
|
+
|
608
|
+
end
|
609
|
+
end
|
610
|
+
|
591
611
|
class IpConfiguration
|
592
612
|
# @private
|
593
613
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -604,6 +624,7 @@ module Google
|
|
604
624
|
property :ip_address, as: 'ipAddress'
|
605
625
|
property :time_to_retire, as: 'timeToRetire', type: DateTime
|
606
626
|
|
627
|
+
property :type, as: 'type'
|
607
628
|
end
|
608
629
|
end
|
609
630
|
|
@@ -835,6 +856,14 @@ module Google
|
|
835
856
|
end
|
836
857
|
end
|
837
858
|
|
859
|
+
class TruncateLogContext
|
860
|
+
# @private
|
861
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
862
|
+
property :kind, as: 'kind'
|
863
|
+
property :log_type, as: 'logType'
|
864
|
+
end
|
865
|
+
end
|
866
|
+
|
838
867
|
class User
|
839
868
|
# @private
|
840
869
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1112,6 +1112,47 @@ module Google
|
|
1112
1112
|
execute_or_queue_command(command, &block)
|
1113
1113
|
end
|
1114
1114
|
|
1115
|
+
# Truncate MySQL general and slow query log tables
|
1116
|
+
# @param [String] project
|
1117
|
+
# Project ID of the Cloud SQL project.
|
1118
|
+
# @param [String] instance
|
1119
|
+
# Cloud SQL instance ID. This does not include the project ID.
|
1120
|
+
# @param [Google::Apis::SqladminV1beta4::InstancesTruncateLogRequest] instances_truncate_log_request_object
|
1121
|
+
# @param [String] fields
|
1122
|
+
# Selector specifying which fields to include in a partial response.
|
1123
|
+
# @param [String] quota_user
|
1124
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1125
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1126
|
+
# Overrides userIp if both are provided.
|
1127
|
+
# @param [String] user_ip
|
1128
|
+
# IP address of the site where the request originates. Use this if you want to
|
1129
|
+
# enforce per-user limits.
|
1130
|
+
# @param [Google::Apis::RequestOptions] options
|
1131
|
+
# Request-specific options
|
1132
|
+
#
|
1133
|
+
# @yield [result, err] Result & error if block supplied
|
1134
|
+
# @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
|
1135
|
+
# @yieldparam err [StandardError] error object if request failed
|
1136
|
+
#
|
1137
|
+
# @return [Google::Apis::SqladminV1beta4::Operation]
|
1138
|
+
#
|
1139
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1140
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1141
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1142
|
+
def truncate_instance_log(project, instance, instances_truncate_log_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1143
|
+
command = make_simple_command(:post, 'projects/{project}/instances/{instance}/truncateLog', options)
|
1144
|
+
command.request_representation = Google::Apis::SqladminV1beta4::InstancesTruncateLogRequest::Representation
|
1145
|
+
command.request_object = instances_truncate_log_request_object
|
1146
|
+
command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
|
1147
|
+
command.response_class = Google::Apis::SqladminV1beta4::Operation
|
1148
|
+
command.params['project'] = project unless project.nil?
|
1149
|
+
command.params['instance'] = instance unless instance.nil?
|
1150
|
+
command.query['fields'] = fields unless fields.nil?
|
1151
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1152
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1153
|
+
execute_or_queue_command(command, &block)
|
1154
|
+
end
|
1155
|
+
|
1115
1156
|
# Updates settings of a Cloud SQL instance. Caution: This is not a partial
|
1116
1157
|
# update, so you must include values for all the settings that you want to
|
1117
1158
|
# retain. For partial updates, use patch.
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://developers.google.com/storage/docs/json_api/
|
26
26
|
module StorageV1
|
27
27
|
VERSION = 'V1'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20170104'
|
29
29
|
|
30
30
|
# View and manage your data across Google Cloud Platform services
|
31
31
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
@@ -905,6 +905,12 @@ module Google
|
|
905
905
|
# @return [DateTime]
|
906
906
|
attr_accessor :time_deleted
|
907
907
|
|
908
|
+
# The time at which the object's storage class was last changed. When the object
|
909
|
+
# is initially created, it will be set to timeCreated.
|
910
|
+
# Corresponds to the JSON property `timeStorageClassUpdated`
|
911
|
+
# @return [DateTime]
|
912
|
+
attr_accessor :time_storage_class_updated
|
913
|
+
|
908
914
|
# The modification time of the object metadata in RFC 3339 format.
|
909
915
|
# Corresponds to the JSON property `updated`
|
910
916
|
# @return [DateTime]
|
@@ -941,6 +947,7 @@ module Google
|
|
941
947
|
@storage_class = args[:storage_class] if args.key?(:storage_class)
|
942
948
|
@time_created = args[:time_created] if args.key?(:time_created)
|
943
949
|
@time_deleted = args[:time_deleted] if args.key?(:time_deleted)
|
950
|
+
@time_storage_class_updated = args[:time_storage_class_updated] if args.key?(:time_storage_class_updated)
|
944
951
|
@updated = args[:updated] if args.key?(:updated)
|
945
952
|
end
|
946
953
|
|