google-api-client 0.9.2 → 0.9.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (182) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +1 -0
  3. data/CHANGELOG.md +9 -0
  4. data/Gemfile +1 -0
  5. data/README.md +2 -2
  6. data/api_names.yaml +19 -0
  7. data/api_names_out.yaml +843 -269
  8. data/bin/generate-api +18 -4
  9. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  10. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +249 -9
  11. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +208 -1
  12. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +68 -0
  13. data/generated/google/apis/adexchangeseller_v2_0/representations.rb +38 -0
  14. data/generated/google/apis/admin_datatransfer_v1.rb +2 -2
  15. data/generated/google/apis/admin_datatransfer_v1/representations.rb +12 -0
  16. data/generated/google/apis/admin_datatransfer_v1/service.rb +1 -1
  17. data/generated/google/apis/admin_directory_v1/representations.rb +118 -0
  18. data/generated/google/apis/admin_reports_v1/representations.rb +26 -0
  19. data/generated/google/apis/adsense_v1_4.rb +1 -1
  20. data/generated/google/apis/adsense_v1_4/classes.rb +0 -7
  21. data/generated/google/apis/adsense_v1_4/representations.rb +62 -1
  22. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  23. data/generated/google/apis/adsensehost_v4_1/representations.rb +40 -0
  24. data/generated/google/apis/analytics_v3.rb +1 -1
  25. data/generated/google/apis/analytics_v3/representations.rb +188 -0
  26. data/generated/google/apis/analytics_v3/service.rb +3 -3
  27. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  28. data/generated/google/apis/androidenterprise_v1/representations.rb +76 -0
  29. data/generated/google/apis/androidenterprise_v1/service.rb +6 -2
  30. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  31. data/generated/google/apis/androidpublisher_v2/representations.rb +92 -0
  32. data/generated/google/apis/appengine_v1beta5.rb +1 -1
  33. data/generated/google/apis/appengine_v1beta5/classes.rb +22 -1
  34. data/generated/google/apis/appengine_v1beta5/representations.rb +69 -0
  35. data/generated/google/apis/appengine_v1beta5/service.rb +43 -0
  36. data/generated/google/apis/appsactivity_v1/representations.rb +22 -0
  37. data/generated/google/apis/appstate_v1.rb +1 -1
  38. data/generated/google/apis/appstate_v1/representations.rb +8 -0
  39. data/generated/google/apis/autoscaler_v1beta2/representations.rb +32 -0
  40. data/generated/google/apis/bigquery_v2.rb +1 -1
  41. data/generated/google/apis/bigquery_v2/classes.rb +31 -0
  42. data/generated/google/apis/bigquery_v2/representations.rb +98 -0
  43. data/generated/google/apis/blogger_v3/representations.rb +70 -0
  44. data/generated/google/apis/books_v1/representations.rb +196 -0
  45. data/generated/google/apis/calendar_v3.rb +1 -1
  46. data/generated/google/apis/calendar_v3/representations.rb +64 -0
  47. data/generated/google/apis/civicinfo_v2/representations.rb +40 -0
  48. data/generated/google/apis/classroom_v1/representations.rb +28 -0
  49. data/generated/google/apis/cloudbilling_v1/representations.rb +8 -0
  50. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  51. data/generated/google/apis/cloudbuild_v1/classes.rb +1 -1
  52. data/generated/google/apis/cloudbuild_v1/representations.rb +24 -0
  53. data/generated/google/apis/cloudbuild_v1/service.rb +2 -2
  54. data/generated/google/apis/clouddebugger_v2/representations.rb +54 -0
  55. data/generated/google/apis/cloudlatencytest_v2/representations.rb +14 -0
  56. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  57. data/generated/google/apis/cloudmonitoring_v2beta2/representations.rb +42 -0
  58. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  59. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +15 -2
  60. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +38 -0
  61. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +4 -1
  62. data/generated/google/apis/cloudtrace_v1/representations.rb +10 -0
  63. data/generated/google/apis/clouduseraccounts_beta/representations.rb +38 -0
  64. data/generated/google/apis/compute_beta.rb +1 -1
  65. data/generated/google/apis/compute_beta/classes.rb +512 -0
  66. data/generated/google/apis/compute_beta/representations.rb +599 -0
  67. data/generated/google/apis/compute_beta/service.rb +415 -0
  68. data/generated/google/apis/compute_v1.rb +1 -1
  69. data/generated/google/apis/compute_v1/representations.rb +386 -0
  70. data/generated/google/apis/container_v1/representations.rb +20 -0
  71. data/generated/google/apis/content_v2/representations.rb +296 -0
  72. data/generated/google/apis/coordinate_v1/representations.rb +36 -0
  73. data/generated/google/apis/customsearch_v1/representations.rb +26 -0
  74. data/generated/google/apis/dataproc_v1.rb +1 -1
  75. data/generated/google/apis/dataproc_v1/classes.rb +1415 -0
  76. data/generated/google/apis/dataproc_v1/representations.rb +569 -0
  77. data/generated/google/apis/dataproc_v1/service.rb +581 -4
  78. data/generated/google/apis/datastore_v1beta2/representations.rb +68 -0
  79. data/generated/google/apis/deploymentmanager_v2/representations.rb +58 -0
  80. data/generated/google/apis/dfareporting_v2_3/representations.rb +386 -0
  81. data/generated/google/apis/discovery_v1/representations.rb +40 -0
  82. data/generated/google/apis/dns_v1.rb +1 -1
  83. data/generated/google/apis/dns_v1/classes.rb +2 -2
  84. data/generated/google/apis/dns_v1/representations.rb +16 -0
  85. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +42 -0
  86. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  87. data/generated/google/apis/doubleclicksearch_v2/representations.rb +34 -0
  88. data/generated/google/apis/drive_v2.rb +1 -1
  89. data/generated/google/apis/drive_v2/classes.rb +7 -0
  90. data/generated/google/apis/drive_v2/representations.rb +83 -0
  91. data/generated/google/apis/drive_v3.rb +1 -1
  92. data/generated/google/apis/drive_v3/classes.rb +7 -0
  93. data/generated/google/apis/drive_v3/representations.rb +51 -0
  94. data/generated/google/apis/fitness_v1/representations.rb +40 -0
  95. data/generated/google/apis/fusiontables_v2.rb +1 -1
  96. data/generated/google/apis/fusiontables_v2/representations.rb +48 -0
  97. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  98. data/generated/google/apis/games_configuration_v1configuration/representations.rb +22 -0
  99. data/generated/google/apis/games_management_v1management.rb +1 -1
  100. data/generated/google/apis/games_management_v1management/representations.rb +30 -0
  101. data/generated/google/apis/games_v1.rb +1 -1
  102. data/generated/google/apis/games_v1/representations.rb +198 -0
  103. data/generated/google/apis/gan_v1beta1/representations.rb +34 -0
  104. data/generated/google/apis/genomics_v1.rb +1 -1
  105. data/generated/google/apis/genomics_v1/classes.rb +2 -211
  106. data/generated/google/apis/genomics_v1/representations.rb +119 -84
  107. data/generated/google/apis/gmail_v1/representations.rb +44 -0
  108. data/generated/google/apis/groupsmigration_v1/representations.rb +2 -0
  109. data/generated/google/apis/groupssettings_v1/representations.rb +2 -0
  110. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  111. data/generated/google/apis/identitytoolkit_v3/classes.rb +105 -0
  112. data/generated/google/apis/identitytoolkit_v3/representations.rb +99 -0
  113. data/generated/google/apis/identitytoolkit_v3/service.rb +36 -1
  114. data/generated/google/apis/kgsearch_v1/representations.rb +2 -0
  115. data/generated/google/apis/licensing_v1/representations.rb +6 -0
  116. data/generated/google/apis/logging_v2beta1/representations.rb +40 -0
  117. data/generated/google/apis/manager_v1beta2/representations.rb +70 -0
  118. data/generated/google/apis/mirror_v1/representations.rb +40 -0
  119. data/generated/google/apis/oauth2_v2.rb +1 -1
  120. data/generated/google/apis/oauth2_v2/representations.rb +8 -0
  121. data/generated/google/apis/pagespeedonline_v2/representations.rb +28 -0
  122. data/generated/google/apis/partners_v2/representations.rb +52 -0
  123. data/generated/google/apis/people_v1.rb +11 -11
  124. data/generated/google/apis/people_v1/classes.rb +888 -961
  125. data/generated/google/apis/people_v1/representations.rb +295 -225
  126. data/generated/google/apis/people_v1/service.rb +61 -65
  127. data/generated/google/apis/plus_domains_v1.rb +1 -1
  128. data/generated/google/apis/plus_domains_v1/representations.rb +124 -0
  129. data/generated/google/apis/plus_v1.rb +1 -1
  130. data/generated/google/apis/plus_v1/representations.rb +102 -0
  131. data/generated/google/apis/prediction_v1_6/classes.rb +1 -1
  132. data/generated/google/apis/prediction_v1_6/representations.rb +42 -0
  133. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +38 -0
  134. data/generated/google/apis/pubsub_v1/representations.rb +42 -0
  135. data/generated/google/apis/qpx_express_v1/representations.rb +48 -0
  136. data/generated/google/apis/replicapool_v1beta2/representations.rb +28 -0
  137. data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +30 -0
  138. data/generated/google/apis/reseller_v1.rb +1 -1
  139. data/generated/google/apis/reseller_v1/classes.rb +6 -0
  140. data/generated/google/apis/reseller_v1/representations.rb +23 -0
  141. data/generated/google/apis/resourceviews_v1beta2/representations.rb +32 -0
  142. data/generated/google/apis/script_v1/representations.rb +12 -0
  143. data/generated/google/apis/site_verification_v1/representations.rb +12 -0
  144. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  145. data/generated/google/apis/sqladmin_v1beta4/classes.rb +50 -21
  146. data/generated/google/apis/sqladmin_v1beta4/representations.rb +98 -0
  147. data/generated/google/apis/sqladmin_v1beta4/service.rb +3 -3
  148. data/generated/google/apis/storage_v1.rb +1 -1
  149. data/generated/google/apis/storage_v1/representations.rb +52 -0
  150. data/generated/google/apis/storagetransfer_v1/representations.rb +48 -0
  151. data/generated/google/apis/tagmanager_v1.rb +1 -1
  152. data/generated/google/apis/tagmanager_v1/classes.rb +110 -0
  153. data/generated/google/apis/tagmanager_v1/representations.rb +96 -0
  154. data/generated/google/apis/tagmanager_v1/service.rb +303 -1
  155. data/generated/google/apis/taskqueue_v1beta2/representations.rb +12 -0
  156. data/generated/google/apis/tasks_v1/representations.rb +10 -0
  157. data/generated/google/apis/translate_v2.rb +1 -1
  158. data/generated/google/apis/translate_v2/representations.rb +12 -0
  159. data/generated/google/apis/urlshortener_v1/representations.rb +10 -0
  160. data/generated/google/apis/vision_v1.rb +37 -0
  161. data/generated/google/apis/vision_v1/classes.rb +1259 -0
  162. data/generated/google/apis/vision_v1/representations.rb +418 -0
  163. data/generated/google/apis/vision_v1/service.rb +91 -0
  164. data/generated/google/apis/webmasters_v3/representations.rb +32 -0
  165. data/generated/google/apis/youtube_analytics_v1/representations.rb +30 -0
  166. data/generated/google/apis/youtube_v3/representations.rb +332 -0
  167. data/generated/google/apis/youtubereporting_v1/representations.rb +16 -0
  168. data/google-api-client.gemspec +0 -2
  169. data/lib/google/api_client/client_secrets.rb +3 -4
  170. data/lib/google/apis/core/api_command.rb +5 -4
  171. data/lib/google/apis/core/http_command.rb +20 -4
  172. data/lib/google/apis/core/json_representation.rb +20 -2
  173. data/lib/google/apis/generator/annotator.rb +1 -1
  174. data/lib/google/apis/generator/templates/_representation_stub.tmpl +2 -0
  175. data/lib/google/apis/version.rb +1 -1
  176. data/script/generate +2 -1
  177. data/spec/google/api_client/client_secrets_spec.rb +2 -2
  178. data/spec/google/apis/core/api_command_spec.rb +2 -2
  179. data/spec/google/apis/core/http_command_spec.rb +19 -0
  180. data/spec/google/apis/core/json_representation_spec.rb +14 -7
  181. data/spec/google/apis/generator/generator_spec.rb +52 -0
  182. metadata +6 -30
@@ -24,22 +24,32 @@ module Google
24
24
 
25
25
  class Address
26
26
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
27
29
  end
28
30
 
29
31
  class ChangePlanRequest
30
32
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
31
35
  end
32
36
 
33
37
  class Customer
34
38
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
35
41
  end
36
42
 
37
43
  class RenewalSettings
38
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
39
47
  end
40
48
 
41
49
  class Seats
42
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
43
53
  end
44
54
 
45
55
  class Subscription
@@ -50,20 +60,32 @@ module Google
50
60
 
51
61
  class CommitmentInterval
52
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
53
65
  end
66
+
67
+ include Google::Apis::Core::JsonObjectSupport
54
68
  end
55
69
 
56
70
  class TransferInfo
57
71
  class Representation < Google::Apis::Core::JsonRepresentation; end
72
+
73
+ include Google::Apis::Core::JsonObjectSupport
58
74
  end
59
75
 
60
76
  class TrialSettings
61
77
  class Representation < Google::Apis::Core::JsonRepresentation; end
78
+
79
+ include Google::Apis::Core::JsonObjectSupport
62
80
  end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
63
83
  end
64
84
 
65
85
  class Subscriptions
66
86
  class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
67
89
  end
68
90
 
69
91
  class Address
@@ -131,6 +153,7 @@ module Google
131
153
  class Representation < Google::Apis::Core::JsonRepresentation
132
154
  property :billing_method, as: 'billingMethod'
133
155
  property :creation_time, as: 'creationTime'
156
+ property :customer_domain, as: 'customerDomain'
134
157
  property :customer_id, as: 'customerId'
135
158
  property :kind, as: 'kind'
136
159
  property :plan, as: 'plan', class: Google::Apis::ResellerV1::Subscription::Plan, decorator: Google::Apis::ResellerV1::Subscription::Plan::Representation
@@ -24,10 +24,14 @@ module Google
24
24
 
25
25
  class Label
26
26
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
27
29
  end
28
30
 
29
31
  class ListResourceResponseItem
30
32
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
31
35
  end
32
36
 
33
37
  class Operation
@@ -38,7 +42,11 @@ module Google
38
42
 
39
43
  class Error
40
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
41
47
  end
48
+
49
+ include Google::Apis::Core::JsonObjectSupport
42
50
  end
43
51
 
44
52
  class Warning
@@ -46,44 +54,68 @@ module Google
46
54
 
47
55
  class Datum
48
56
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
49
59
  end
60
+
61
+ include Google::Apis::Core::JsonObjectSupport
50
62
  end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
51
65
  end
52
66
 
53
67
  class OperationList
54
68
  class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
55
71
  end
56
72
 
57
73
  class ResourceView
58
74
  class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
59
77
  end
60
78
 
61
79
  class ServiceEndpoint
62
80
  class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
63
83
  end
64
84
 
65
85
  class AddResourcesRequest
66
86
  class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
67
89
  end
68
90
 
69
91
  class GetServiceResponse
70
92
  class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
71
95
  end
72
96
 
73
97
  class ZoneViewsList
74
98
  class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
75
101
  end
76
102
 
77
103
  class ListResourcesResponse
78
104
  class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
79
107
  end
80
108
 
81
109
  class RemoveResourcesRequest
82
110
  class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
83
113
  end
84
114
 
85
115
  class SetServiceRequest
86
116
  class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
87
119
  end
88
120
 
89
121
  class Label
@@ -24,26 +24,38 @@ module Google
24
24
 
25
25
  class ExecutionRequest
26
26
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
27
29
  end
28
30
 
29
31
  class Operation
30
32
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
31
35
  end
32
36
 
33
37
  class Status
34
38
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
35
41
  end
36
42
 
37
43
  class ExecutionError
38
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
39
47
  end
40
48
 
41
49
  class ScriptStackTraceElement
42
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
43
53
  end
44
54
 
45
55
  class ExecutionResponse
46
56
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
47
59
  end
48
60
 
49
61
  class ExecutionRequest
@@ -27,15 +27,23 @@ module Google
27
27
 
28
28
  class Site
29
29
  class Representation < Google::Apis::Core::JsonRepresentation; end
30
+
31
+ include Google::Apis::Core::JsonObjectSupport
30
32
  end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
31
35
  end
32
36
 
33
37
  class GetWebResourceTokenResponse
34
38
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
35
41
  end
36
42
 
37
43
  class ListWebResourceResponse
38
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
39
47
  end
40
48
 
41
49
  class SiteVerificationWebResourceResource
@@ -43,7 +51,11 @@ module Google
43
51
 
44
52
  class Site
45
53
  class Representation < Google::Apis::Core::JsonRepresentation; end
54
+
55
+ include Google::Apis::Core::JsonObjectSupport
46
56
  end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
47
59
  end
48
60
 
49
61
  class GetWebResourceTokenRequest
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/sql/docs/reference/latest
26
26
  module SqladminV1beta4
27
27
  VERSION = 'V1beta4'
28
- REVISION = '20151201'
28
+ REVISION = '20160222'
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'
@@ -370,13 +370,24 @@ module Google
370
370
  class DatabaseInstance
371
371
  include Google::Apis::Core::Hashable
372
372
 
373
- # The current disk usage of the instance in bytes.
373
+ # FIRST_GEN: Basic Cloud SQL instance that runs in a Google-managed container.
374
+ # SECOND_GEN: A newer Cloud SQL backend that runs in a Compute Engine VM.
375
+ # EXTERNAL: A MySQL server that is not managed by Google.
376
+ # Corresponds to the JSON property `backendType`
377
+ # @return [String]
378
+ attr_accessor :backend_type
379
+
380
+ # The current disk usage of the instance in bytes. This property has been
381
+ # deprecated. Users should use the "cloudsql.googleapis.com/database/disk/
382
+ # bytes_used" metric in Cloud Monitoring API instead. Please see https://groups.
383
+ # google.com/d/msg/google-cloud-sql-announce/I_7-F9EBhT0/BtvFtdFeAgAJ for
384
+ # details.
374
385
  # Corresponds to the JSON property `currentDiskSize`
375
386
  # @return [String]
376
387
  attr_accessor :current_disk_size
377
388
 
378
389
  # The database engine type and version. Can be MYSQL_5_5 or MYSQL_5_6. Defaults
379
- # to MYSQL_5_5. The databaseVersion can not be changed after instance creation.
390
+ # to MYSQL_5_6. The databaseVersion can not be changed after instance creation.
380
391
  # Corresponds to the JSON property `databaseVersion`
381
392
  # @return [String]
382
393
  attr_accessor :database_version
@@ -386,8 +397,8 @@ module Google
386
397
  # @return [String]
387
398
  attr_accessor :etag
388
399
 
389
- # The name and status of the failover replica. Only applies to Second Generation
390
- # instances.
400
+ # The name and status of the failover replica. This property is applicable only
401
+ # to Second Generation instances.
391
402
  # Corresponds to the JSON property `failoverReplica`
392
403
  # @return [Google::Apis::SqladminV1beta4::DatabaseInstance::FailoverReplica]
393
404
  attr_accessor :failover_replica
@@ -405,7 +416,8 @@ module Google
405
416
  # @return [Array<Google::Apis::SqladminV1beta4::IpMapping>]
406
417
  attr_accessor :ip_addresses
407
418
 
408
- # The IPv6 address assigned to the instance.
419
+ # The IPv6 address assigned to the instance. This property is applicable only to
420
+ # First Generation instances.
409
421
  # Corresponds to the JSON property `ipv6Address`
410
422
  # @return [String]
411
423
  attr_accessor :ipv6_address
@@ -441,8 +453,10 @@ module Google
441
453
  # @return [String]
442
454
  attr_accessor :project
443
455
 
444
- # The geographical region. Can be us-central, asia-east1 or europe-west1.
445
- # Defaults to us-central. The region can not be changed after instance creation.
456
+ # The geographical region. Can be us-central (FIRST_GEN instances only), us-
457
+ # central1 (SECOND_GEN instances only), asia-east1 or europe-west1. Defaults to
458
+ # us-central or us-central1 depending on the instance type (First Generation or
459
+ # Second Generation). The region can not be changed after instance creation.
446
460
  # Corresponds to the JSON property `region`
447
461
  # @return [String]
448
462
  attr_accessor :region
@@ -467,7 +481,8 @@ module Google
467
481
  # @return [Google::Apis::SqladminV1beta4::SslCert]
468
482
  attr_accessor :server_ca_cert
469
483
 
470
- # The service account email address assigned to the instance.
484
+ # The service account email address assigned to the instance. This property is
485
+ # applicable only to Second Generation instances.
471
486
  # Corresponds to the JSON property `serviceAccountEmailAddress`
472
487
  # @return [String]
473
488
  attr_accessor :service_account_email_address
@@ -490,12 +505,18 @@ module Google
490
505
  # @return [String]
491
506
  attr_accessor :state
492
507
 
508
+ # If the instance state is SUSPENDED, the reason for the suspension.
509
+ # Corresponds to the JSON property `suspensionReason`
510
+ # @return [Array<String>]
511
+ attr_accessor :suspension_reason
512
+
493
513
  def initialize(**args)
494
514
  update!(**args)
495
515
  end
496
516
 
497
517
  # Update properties of this object
498
518
  def update!(**args)
519
+ @backend_type = args[:backend_type] if args.key?(:backend_type)
499
520
  @current_disk_size = args[:current_disk_size] if args.key?(:current_disk_size)
500
521
  @database_version = args[:database_version] if args.key?(:database_version)
501
522
  @etag = args[:etag] if args.key?(:etag)
@@ -517,20 +538,23 @@ module Google
517
538
  @service_account_email_address = args[:service_account_email_address] if args.key?(:service_account_email_address)
518
539
  @settings = args[:settings] if args.key?(:settings)
519
540
  @state = args[:state] if args.key?(:state)
541
+ @suspension_reason = args[:suspension_reason] if args.key?(:suspension_reason)
520
542
  end
521
543
 
522
- # The name and status of the failover replica. Only applies to Second Generation
523
- # instances.
544
+ # The name and status of the failover replica. This property is applicable only
545
+ # to Second Generation instances.
524
546
  class FailoverReplica
525
547
  include Google::Apis::Core::Hashable
526
548
 
527
- #
549
+ # The availability status of the failover replica. A false status indicates that
550
+ # the failover replica is out of sync. The master can only failover to the
551
+ # falover replica when the status is true.
528
552
  # Corresponds to the JSON property `available`
529
553
  # @return [Boolean]
530
554
  attr_accessor :available
531
555
  alias_method :available?, :available
532
556
 
533
- #
557
+ # The name of the failover replica.
534
558
  # Corresponds to the JSON property `name`
535
559
  # @return [String]
536
560
  attr_accessor :name
@@ -1521,12 +1545,14 @@ module Google
1521
1545
  # This can be one of the following.
1522
1546
  # ALWAYS: The instance should always be active.
1523
1547
  # NEVER: The instance should never be activated.
1524
- # ON_DEMAND: The instance is activated upon receiving requests.
1548
+ # ON_DEMAND: The instance is activated upon receiving requests; only applicable
1549
+ # to First Generation instances.
1525
1550
  # Corresponds to the JSON property `activationPolicy`
1526
1551
  # @return [String]
1527
1552
  attr_accessor :activation_policy
1528
1553
 
1529
- # The App Engine app IDs that can access this instance.
1554
+ # The App Engine app IDs that can access this instance. This property is only
1555
+ # applicable to First Generation instances.
1530
1556
  # Corresponds to the JSON property `authorizedGaeApplications`
1531
1557
  # @return [Array<String>]
1532
1558
  attr_accessor :authorized_gae_applications
@@ -1537,20 +1563,22 @@ module Google
1537
1563
  attr_accessor :backup_configuration
1538
1564
 
1539
1565
  # Configuration specific to read replica instances. Indicates whether database
1540
- # flags for crash-safe replication are enabled.
1566
+ # flags for crash-safe replication are enabled. This property is only applicable
1567
+ # to First Generation instances.
1541
1568
  # Corresponds to the JSON property `crashSafeReplicationEnabled`
1542
1569
  # @return [Boolean]
1543
1570
  attr_accessor :crash_safe_replication_enabled
1544
1571
  alias_method :crash_safe_replication_enabled?, :crash_safe_replication_enabled
1545
1572
 
1546
- # The size of data disk, in GB. Only supported for 2nd Generation instances. The
1547
- # data disk size minimum is 10GB.
1573
+ # The size of data disk, in GB. The data disk size minimum is 10GB. This
1574
+ # property is only applicable to Second Generation instances.
1548
1575
  # Corresponds to the JSON property `dataDiskSizeGb`
1549
1576
  # @return [String]
1550
1577
  attr_accessor :data_disk_size_gb
1551
1578
 
1552
- # The type of data disk. Only supported for 2nd Generation instances. The
1553
- # default type is SSD.
1579
+ # The type of data disk. Only supported for Second Generation instances. The
1580
+ # default type is PD_SSD. This property is only applicable to Second Generation
1581
+ # instances.
1554
1582
  # Corresponds to the JSON property `dataDiskType`
1555
1583
  # @return [String]
1556
1584
  attr_accessor :data_disk_type
@@ -1593,12 +1621,13 @@ module Google
1593
1621
  attr_accessor :maintenance_window
1594
1622
 
1595
1623
  # The pricing plan for this instance. This can be either PER_USE or PACKAGE.
1624
+ # Only PER_USE is supported for Second Generation instances.
1596
1625
  # Corresponds to the JSON property `pricingPlan`
1597
1626
  # @return [String]
1598
1627
  attr_accessor :pricing_plan
1599
1628
 
1600
1629
  # The type of replication this instance uses. This can be either ASYNCHRONOUS or
1601
- # SYNCHRONOUS.
1630
+ # SYNCHRONOUS. This property is only applicable to First Generation instances.
1602
1631
  # Corresponds to the JSON property `replicationType`
1603
1632
  # @return [String]
1604
1633
  attr_accessor :replication_type
@@ -1914,7 +1943,7 @@ module Google
1914
1943
 
1915
1944
  # The host name from which the user can connect. For insert operations, host
1916
1945
  # defaults to an empty string. For update operations, host is specified as part
1917
- # of the request URL. The host name is not mutable with this API.
1946
+ # of the request URL. The host name cannot be updated after insertion.
1918
1947
  # Corresponds to the JSON property `host`
1919
1948
  # @return [String]
1920
1949
  attr_accessor :host
@@ -24,34 +24,50 @@ module Google
24
24
 
25
25
  class AclEntry
26
26
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
27
29
  end
28
30
 
29
31
  class BackupConfiguration
30
32
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
31
35
  end
32
36
 
33
37
  class BackupRun
34
38
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
35
41
  end
36
42
 
37
43
  class ListBackupRunsResponse
38
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
39
47
  end
40
48
 
41
49
  class BinLogCoordinates
42
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
43
53
  end
44
54
 
45
55
  class CloneContext
46
56
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
47
59
  end
48
60
 
49
61
  class Database
50
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
51
65
  end
52
66
 
53
67
  class DatabaseFlags
54
68
  class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
55
71
  end
56
72
 
57
73
  class DatabaseInstance
@@ -59,11 +75,17 @@ module Google
59
75
 
60
76
  class FailoverReplica
61
77
  class Representation < Google::Apis::Core::JsonRepresentation; end
78
+
79
+ include Google::Apis::Core::JsonObjectSupport
62
80
  end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
63
83
  end
64
84
 
65
85
  class ListDatabasesResponse
66
86
  class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
67
89
  end
68
90
 
69
91
  class ExportContext
@@ -71,23 +93,35 @@ module Google
71
93
 
72
94
  class CsvExportOptions
73
95
  class Representation < Google::Apis::Core::JsonRepresentation; end
96
+
97
+ include Google::Apis::Core::JsonObjectSupport
74
98
  end
75
99
 
76
100
  class SqlExportOptions
77
101
  class Representation < Google::Apis::Core::JsonRepresentation; end
102
+
103
+ include Google::Apis::Core::JsonObjectSupport
78
104
  end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
79
107
  end
80
108
 
81
109
  class FailoverContext
82
110
  class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
83
113
  end
84
114
 
85
115
  class Flag
86
116
  class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
87
119
  end
88
120
 
89
121
  class ListFlagsResponse
90
122
  class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
91
125
  end
92
126
 
93
127
  class ImportContext
@@ -95,123 +129,185 @@ module Google
95
129
 
96
130
  class CsvImportOptions
97
131
  class Representation < Google::Apis::Core::JsonRepresentation; end
132
+
133
+ include Google::Apis::Core::JsonObjectSupport
98
134
  end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
99
137
  end
100
138
 
101
139
  class CloneInstancesRequest
102
140
  class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
103
143
  end
104
144
 
105
145
  class ExportInstancesRequest
106
146
  class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
107
149
  end
108
150
 
109
151
  class InstancesFailoverRequest
110
152
  class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
111
155
  end
112
156
 
113
157
  class ImportInstancesRequest
114
158
  class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
115
161
  end
116
162
 
117
163
  class ListInstancesResponse
118
164
  class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
119
167
  end
120
168
 
121
169
  class RestoreInstancesBackupRequest
122
170
  class Representation < Google::Apis::Core::JsonRepresentation; end
171
+
172
+ include Google::Apis::Core::JsonObjectSupport
123
173
  end
124
174
 
125
175
  class IpConfiguration
126
176
  class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
127
179
  end
128
180
 
129
181
  class IpMapping
130
182
  class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
131
185
  end
132
186
 
133
187
  class LocationPreference
134
188
  class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
135
191
  end
136
192
 
137
193
  class MaintenanceWindow
138
194
  class Representation < Google::Apis::Core::JsonRepresentation; end
195
+
196
+ include Google::Apis::Core::JsonObjectSupport
139
197
  end
140
198
 
141
199
  class MySqlReplicaConfiguration
142
200
  class Representation < Google::Apis::Core::JsonRepresentation; end
201
+
202
+ include Google::Apis::Core::JsonObjectSupport
143
203
  end
144
204
 
145
205
  class OnPremisesConfiguration
146
206
  class Representation < Google::Apis::Core::JsonRepresentation; end
207
+
208
+ include Google::Apis::Core::JsonObjectSupport
147
209
  end
148
210
 
149
211
  class Operation
150
212
  class Representation < Google::Apis::Core::JsonRepresentation; end
213
+
214
+ include Google::Apis::Core::JsonObjectSupport
151
215
  end
152
216
 
153
217
  class OperationError
154
218
  class Representation < Google::Apis::Core::JsonRepresentation; end
219
+
220
+ include Google::Apis::Core::JsonObjectSupport
155
221
  end
156
222
 
157
223
  class OperationErrors
158
224
  class Representation < Google::Apis::Core::JsonRepresentation; end
225
+
226
+ include Google::Apis::Core::JsonObjectSupport
159
227
  end
160
228
 
161
229
  class ListOperationsResponse
162
230
  class Representation < Google::Apis::Core::JsonRepresentation; end
231
+
232
+ include Google::Apis::Core::JsonObjectSupport
163
233
  end
164
234
 
165
235
  class ReplicaConfiguration
166
236
  class Representation < Google::Apis::Core::JsonRepresentation; end
237
+
238
+ include Google::Apis::Core::JsonObjectSupport
167
239
  end
168
240
 
169
241
  class RestoreBackupContext
170
242
  class Representation < Google::Apis::Core::JsonRepresentation; end
243
+
244
+ include Google::Apis::Core::JsonObjectSupport
171
245
  end
172
246
 
173
247
  class Settings
174
248
  class Representation < Google::Apis::Core::JsonRepresentation; end
249
+
250
+ include Google::Apis::Core::JsonObjectSupport
175
251
  end
176
252
 
177
253
  class SslCert
178
254
  class Representation < Google::Apis::Core::JsonRepresentation; end
255
+
256
+ include Google::Apis::Core::JsonObjectSupport
179
257
  end
180
258
 
181
259
  class SslCertDetail
182
260
  class Representation < Google::Apis::Core::JsonRepresentation; end
261
+
262
+ include Google::Apis::Core::JsonObjectSupport
183
263
  end
184
264
 
185
265
  class SslCertsCreateEphemeralRequest
186
266
  class Representation < Google::Apis::Core::JsonRepresentation; end
267
+
268
+ include Google::Apis::Core::JsonObjectSupport
187
269
  end
188
270
 
189
271
  class InsertSslCertsRequest
190
272
  class Representation < Google::Apis::Core::JsonRepresentation; end
273
+
274
+ include Google::Apis::Core::JsonObjectSupport
191
275
  end
192
276
 
193
277
  class InsertSslCertsResponse
194
278
  class Representation < Google::Apis::Core::JsonRepresentation; end
279
+
280
+ include Google::Apis::Core::JsonObjectSupport
195
281
  end
196
282
 
197
283
  class ListSslCertsResponse
198
284
  class Representation < Google::Apis::Core::JsonRepresentation; end
285
+
286
+ include Google::Apis::Core::JsonObjectSupport
199
287
  end
200
288
 
201
289
  class Tier
202
290
  class Representation < Google::Apis::Core::JsonRepresentation; end
291
+
292
+ include Google::Apis::Core::JsonObjectSupport
203
293
  end
204
294
 
205
295
  class ListTiersResponse
206
296
  class Representation < Google::Apis::Core::JsonRepresentation; end
297
+
298
+ include Google::Apis::Core::JsonObjectSupport
207
299
  end
208
300
 
209
301
  class User
210
302
  class Representation < Google::Apis::Core::JsonRepresentation; end
303
+
304
+ include Google::Apis::Core::JsonObjectSupport
211
305
  end
212
306
 
213
307
  class ListUsersResponse
214
308
  class Representation < Google::Apis::Core::JsonRepresentation; end
309
+
310
+ include Google::Apis::Core::JsonObjectSupport
215
311
  end
216
312
 
217
313
  class AclEntry
@@ -310,6 +406,7 @@ module Google
310
406
  class DatabaseInstance
311
407
  # @private
312
408
  class Representation < Google::Apis::Core::JsonRepresentation
409
+ property :backend_type, as: 'backendType'
313
410
  property :current_disk_size, as: 'currentDiskSize'
314
411
  property :database_version, as: 'databaseVersion'
315
412
  property :etag, as: 'etag'
@@ -337,6 +434,7 @@ module Google
337
434
  property :settings, as: 'settings', class: Google::Apis::SqladminV1beta4::Settings, decorator: Google::Apis::SqladminV1beta4::Settings::Representation
338
435
 
339
436
  property :state, as: 'state'
437
+ collection :suspension_reason, as: 'suspensionReason'
340
438
  end
341
439
 
342
440
  class FailoverReplica