google-api-client 0.36.1 → 0.36.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (131) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +45 -0
  3. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  4. data/generated/google/apis/androidenterprise_v1/classes.rb +29 -58
  5. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  6. data/generated/google/apis/androidmanagement_v1/classes.rb +188 -0
  7. data/generated/google/apis/androidmanagement_v1/representations.rb +67 -0
  8. data/generated/google/apis/androidmanagement_v1/service.rb +6 -1
  9. data/generated/google/apis/bigquery_v2.rb +1 -1
  10. data/generated/google/apis/bigquery_v2/classes.rb +6 -0
  11. data/generated/google/apis/bigquery_v2/representations.rb +1 -0
  12. data/generated/google/apis/bigquery_v2/service.rb +19 -2
  13. data/generated/google/apis/bigqueryreservation_v1alpha2.rb +1 -1
  14. data/generated/google/apis/bigqueryreservation_v1alpha2/classes.rb +6 -0
  15. data/generated/google/apis/bigqueryreservation_v1alpha2/representations.rb +1 -0
  16. data/generated/google/apis/bigqueryreservation_v1beta1.rb +1 -1
  17. data/generated/google/apis/bigqueryreservation_v1beta1/classes.rb +6 -0
  18. data/generated/google/apis/bigqueryreservation_v1beta1/representations.rb +1 -0
  19. data/generated/google/apis/binaryauthorization_v1.rb +1 -1
  20. data/generated/google/apis/cloudbuild_v1alpha1.rb +34 -0
  21. data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +1174 -0
  22. data/generated/google/apis/cloudbuild_v1alpha1/representations.rb +435 -0
  23. data/generated/google/apis/cloudbuild_v1alpha1/service.rb +223 -0
  24. data/generated/google/apis/compute_alpha.rb +1 -1
  25. data/generated/google/apis/compute_alpha/classes.rb +234 -240
  26. data/generated/google/apis/compute_alpha/representations.rb +7 -47
  27. data/generated/google/apis/compute_alpha/service.rb +1233 -1068
  28. data/generated/google/apis/compute_beta.rb +1 -1
  29. data/generated/google/apis/compute_beta/classes.rb +936 -164
  30. data/generated/google/apis/compute_beta/representations.rb +371 -0
  31. data/generated/google/apis/compute_beta/service.rb +1394 -899
  32. data/generated/google/apis/compute_v1.rb +1 -1
  33. data/generated/google/apis/compute_v1/classes.rb +479 -147
  34. data/generated/google/apis/compute_v1/representations.rb +127 -0
  35. data/generated/google/apis/compute_v1/service.rb +813 -748
  36. data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
  37. data/generated/google/apis/datacatalog_v1beta1/classes.rb +9 -7
  38. data/generated/google/apis/datacatalog_v1beta1/representations.rb +1 -0
  39. data/generated/google/apis/datacatalog_v1beta1/service.rb +8 -3
  40. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  41. data/generated/google/apis/dataflow_v1b3/classes.rb +69 -0
  42. data/generated/google/apis/dataflow_v1b3/representations.rb +34 -0
  43. data/generated/google/apis/dataproc_v1.rb +1 -1
  44. data/generated/google/apis/dataproc_v1/classes.rb +73 -43
  45. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  46. data/generated/google/apis/dataproc_v1beta2/classes.rb +73 -43
  47. data/generated/google/apis/dialogflow_v2.rb +1 -1
  48. data/generated/google/apis/dialogflow_v2/classes.rb +44 -11
  49. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  50. data/generated/google/apis/dialogflow_v2beta1/classes.rb +44 -11
  51. data/generated/google/apis/dialogflow_v2beta1/service.rb +20 -0
  52. data/generated/google/apis/dns_v1.rb +1 -1
  53. data/generated/google/apis/dns_v1/classes.rb +70 -0
  54. data/generated/google/apis/dns_v1/representations.rb +32 -0
  55. data/generated/google/apis/dns_v2beta1.rb +1 -1
  56. data/generated/google/apis/dns_v2beta1/classes.rb +70 -0
  57. data/generated/google/apis/dns_v2beta1/representations.rb +32 -0
  58. data/generated/google/apis/docs_v1.rb +1 -1
  59. data/generated/google/apis/docs_v1/classes.rb +152 -0
  60. data/generated/google/apis/docs_v1/representations.rb +56 -0
  61. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  62. data/generated/google/apis/doubleclickbidmanager_v1_1.rb +1 -1
  63. data/generated/google/apis/driveactivity_v2.rb +1 -1
  64. data/generated/google/apis/driveactivity_v2/classes.rb +6 -0
  65. data/generated/google/apis/driveactivity_v2/representations.rb +2 -0
  66. data/generated/google/apis/firebase_v1beta1.rb +1 -1
  67. data/generated/google/apis/firestore_v1.rb +1 -1
  68. data/generated/google/apis/firestore_v1/classes.rb +1 -1
  69. data/generated/google/apis/firestore_v1/service.rb +24 -22
  70. data/generated/google/apis/firestore_v1beta1.rb +1 -1
  71. data/generated/google/apis/firestore_v1beta1/classes.rb +1 -1
  72. data/generated/google/apis/firestore_v1beta1/service.rb +16 -14
  73. data/generated/google/apis/fitness_v1.rb +11 -11
  74. data/generated/google/apis/games_management_v1management.rb +1 -1
  75. data/generated/google/apis/games_management_v1management/service.rb +5 -7
  76. data/generated/google/apis/iam_v1.rb +1 -1
  77. data/generated/google/apis/iam_v1/classes.rb +83 -141
  78. data/generated/google/apis/iam_v1/representations.rb +0 -6
  79. data/generated/google/apis/iam_v1/service.rb +11 -21
  80. data/generated/google/apis/language_v1beta2.rb +1 -1
  81. data/generated/google/apis/language_v1beta2/classes.rb +15 -0
  82. data/generated/google/apis/language_v1beta2/representations.rb +2 -0
  83. data/generated/google/apis/logging_v2.rb +3 -2
  84. data/generated/google/apis/logging_v2/service.rb +2 -1
  85. data/generated/google/apis/{surveys_v2.rb → prod_tt_sasportal_v1alpha1.rb} +9 -15
  86. data/generated/google/apis/prod_tt_sasportal_v1alpha1/classes.rb +1084 -0
  87. data/generated/google/apis/prod_tt_sasportal_v1alpha1/representations.rb +503 -0
  88. data/generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb +1322 -0
  89. data/generated/google/apis/recommender_v1beta1.rb +1 -1
  90. data/generated/google/apis/recommender_v1beta1/classes.rb +6 -0
  91. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  92. data/generated/google/apis/remotebuildexecution_v1/classes.rb +1 -1
  93. data/generated/google/apis/run_v1alpha1.rb +1 -1
  94. data/generated/google/apis/run_v1alpha1/classes.rb +424 -0
  95. data/generated/google/apis/run_v1alpha1/representations.rb +161 -0
  96. data/generated/google/apis/run_v1alpha1/service.rb +862 -46
  97. data/generated/google/apis/run_v1beta1.rb +1 -1
  98. data/generated/google/apis/run_v1beta1/classes.rb +1 -1
  99. data/generated/google/apis/sasportal_v1alpha1.rb +34 -0
  100. data/generated/google/apis/sasportal_v1alpha1/classes.rb +1084 -0
  101. data/generated/google/apis/sasportal_v1alpha1/representations.rb +503 -0
  102. data/generated/google/apis/sasportal_v1alpha1/service.rb +1322 -0
  103. data/generated/google/apis/securitycenter_v1.rb +1 -1
  104. data/generated/google/apis/securitycenter_v1/classes.rb +18 -0
  105. data/generated/google/apis/securitycenter_v1/representations.rb +3 -0
  106. data/generated/google/apis/securitycenter_v1/service.rb +6 -0
  107. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  108. data/generated/google/apis/servicemanagement_v1/classes.rb +16 -1
  109. data/generated/google/apis/servicemanagement_v1/representations.rb +1 -0
  110. data/generated/google/apis/sheets_v4.rb +1 -1
  111. data/generated/google/apis/sheets_v4/classes.rb +187 -2
  112. data/generated/google/apis/sheets_v4/representations.rb +47 -0
  113. data/generated/google/apis/spanner_v1.rb +1 -1
  114. data/generated/google/apis/spanner_v1/classes.rb +104 -51
  115. data/generated/google/apis/spanner_v1/representations.rb +1 -0
  116. data/generated/google/apis/spanner_v1/service.rb +6 -1
  117. data/generated/google/apis/sql_v1beta4.rb +1 -1
  118. data/generated/google/apis/sql_v1beta4/classes.rb +75 -4
  119. data/generated/google/apis/sql_v1beta4/representations.rb +32 -0
  120. data/generated/google/apis/sql_v1beta4/service.rb +83 -2
  121. data/generated/google/apis/toolresults_v1.rb +31 -0
  122. data/generated/google/apis/toolresults_v1/classes.rb +696 -0
  123. data/generated/google/apis/toolresults_v1/representations.rb +438 -0
  124. data/generated/google/apis/toolresults_v1/service.rb +59 -0
  125. data/generated/google/apis/vision_v1.rb +1 -1
  126. data/generated/google/apis/vision_v1/service.rb +1 -1
  127. data/lib/google/apis/version.rb +1 -1
  128. metadata +19 -7
  129. data/generated/google/apis/surveys_v2/classes.rb +0 -691
  130. data/generated/google/apis/surveys_v2/representations.rb +0 -305
  131. data/generated/google/apis/surveys_v2/service.rb +0 -348
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://cloud.google.com/spanner/
27
27
  module SpannerV1
28
28
  VERSION = 'V1'
29
- REVISION = '20191119'
29
+ REVISION = '20191216'
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'
@@ -327,6 +327,23 @@ module Google
327
327
  # account. For example, `my-other-app@appspot.gserviceaccount.com`.
328
328
  # * `group:`emailid``: An email address that represents a Google group.
329
329
  # For example, `admins@example.com`.
330
+ # * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique
331
+ # identifier) representing a user that has been recently deleted. For
332
+ # example, `alice@example.com?uid=123456789012345678901`. If the user is
333
+ # recovered, this value reverts to `user:`emailid`` and the recovered user
334
+ # retains the role in the binding.
335
+ # * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus
336
+ # unique identifier) representing a service account that has been recently
337
+ # deleted. For example,
338
+ # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
339
+ # If the service account is undeleted, this value reverts to
340
+ # `serviceAccount:`emailid`` and the undeleted service account retains the
341
+ # role in the binding.
342
+ # * `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique
343
+ # identifier) representing a Google group that has been recently
344
+ # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
345
+ # the group is recovered, this value reverts to `group:`emailid`` and the
346
+ # recovered group retains the role in the binding.
330
347
  # * `domain:`domain``: The G Suite domain (primary) that represents all the
331
348
  # users of that domain. For example, `google.com` or `example.com`.
332
349
  # Corresponds to the JSON property `members`
@@ -882,7 +899,8 @@ module Google
882
899
  class ExecuteBatchDmlRequest
883
900
  include Google::Apis::Core::Hashable
884
901
 
885
- # A per-transaction sequence number used to identify this request. This field
902
+ # Required. A per-transaction sequence number used to identify this request.
903
+ # This field
886
904
  # makes each request idempotent such that if the request is received multiple
887
905
  # times, at most one will succeed.
888
906
  # The sequence number must be monotonically increasing within the
@@ -893,7 +911,8 @@ module Google
893
911
  # @return [Fixnum]
894
912
  attr_accessor :seqno
895
913
 
896
- # The list of statements to execute in this batch. Statements are executed
914
+ # Required. The list of statements to execute in this batch. Statements are
915
+ # executed
897
916
  # serially, such that the effects of statement `i` are visible to statement
898
917
  # `i+1`. Each statement must be a DML statement. Execution stops at the
899
918
  # first failed statement; the remaining statements are not executed.
@@ -1231,6 +1250,21 @@ module Google
1231
1250
  # @return [String]
1232
1251
  attr_accessor :display_name
1233
1252
 
1253
+ # Output only. A set of endpoint URIs based on your instance config
1254
+ # that you can use instead of the global endpoint `spanner.googleapis.com`.
1255
+ # For example, if your instance config is `us-central1` (a regional config
1256
+ # in Iowa), then your instance specific endpoints may include
1257
+ # `us-central1-spanner.googleapis.com`. By calling these endpoints instead of
1258
+ # the global endpoint, you optimize network routing which could reduce
1259
+ # network latency.
1260
+ # The client libraries, JDBC drivers, and other SDK clients automatically
1261
+ # call these instance specific endpoints.
1262
+ # If you are using DNS whitelists, firewalls, or filtering to control access
1263
+ # to endpoints, make sure you grant access to `*spanner.googleapis.com`.
1264
+ # Corresponds to the JSON property `endpointUris`
1265
+ # @return [Array<String>]
1266
+ attr_accessor :endpoint_uris
1267
+
1234
1268
  # Cloud Labels are a flexible and lightweight mechanism for organizing cloud
1235
1269
  # resources into groups that reflect a customer's organizational needs and
1236
1270
  # deployment strategies. Cloud Labels can be used to filter collections of
@@ -1261,8 +1295,9 @@ module Google
1261
1295
  # @return [String]
1262
1296
  attr_accessor :name
1263
1297
 
1264
- # Required. The number of nodes allocated to this instance. This may be zero
1265
- # in API responses for instances that are not yet in state `READY`.
1298
+ # The number of nodes allocated to this instance. This
1299
+ # may be zero in API responses for instances that are not yet in state
1300
+ # `READY`.
1266
1301
  # See [the
1267
1302
  # documentation](https://cloud.google.com/spanner/docs/instances#node_count)
1268
1303
  # for more information about nodes.
@@ -1287,6 +1322,7 @@ module Google
1287
1322
  def update!(**args)
1288
1323
  @config = args[:config] if args.key?(:config)
1289
1324
  @display_name = args[:display_name] if args.key?(:display_name)
1325
+ @endpoint_uris = args[:endpoint_uris] if args.key?(:endpoint_uris)
1290
1326
  @labels = args[:labels] if args.key?(:labels)
1291
1327
  @name = args[:name] if args.key?(:name)
1292
1328
  @node_count = args[:node_count] if args.key?(:node_count)
@@ -1921,7 +1957,8 @@ module Google
1921
1957
  # @return [Google::Apis::SpannerV1::PartitionOptions]
1922
1958
  attr_accessor :partition_options
1923
1959
 
1924
- # The query request to generate partitions for. The request will fail if
1960
+ # Required. The query request to generate partitions for. The request will fail
1961
+ # if
1925
1962
  # the query is not root partitionable. The query plan of a root
1926
1963
  # partitionable query has a single distributed union operator. A distributed
1927
1964
  # union operator conceptually divides one or more tables into multiple
@@ -2125,16 +2162,18 @@ module Google
2125
2162
  end
2126
2163
  end
2127
2164
 
2128
- # Defines an Identity and Access Management (IAM) policy. It is used to
2129
- # specify access control policies for Cloud Platform resources.
2165
+ # An Identity and Access Management (IAM) policy, which specifies access
2166
+ # controls for Google Cloud resources.
2130
2167
  # A `Policy` is a collection of `bindings`. A `binding` binds one or more
2131
2168
  # `members` to a single `role`. Members can be user accounts, service accounts,
2132
2169
  # Google groups, and domains (such as G Suite). A `role` is a named list of
2133
- # permissions (defined by IAM or configured by users). A `binding` can
2134
- # optionally specify a `condition`, which is a logic expression that further
2135
- # constrains the role binding based on attributes about the request and/or
2136
- # target resource.
2137
- # **JSON Example**
2170
+ # permissions; each `role` can be an IAM predefined role or a user-created
2171
+ # custom role.
2172
+ # Optionally, a `binding` can specify a `condition`, which is a logical
2173
+ # expression that allows access to a resource only if the expression evaluates
2174
+ # to `true`. A condition can add constraints based on attributes of the
2175
+ # request, the resource, or both.
2176
+ # **JSON example:**
2138
2177
  # `
2139
2178
  # "bindings": [
2140
2179
  # `
@@ -2152,13 +2191,15 @@ module Google
2152
2191
  # "condition": `
2153
2192
  # "title": "expirable access",
2154
2193
  # "description": "Does not grant access after Sep 2020",
2155
- # "expression": "request.time <
2156
- # timestamp('2020-10-01T00:00:00.000Z')",
2194
+ # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')
2195
+ # ",
2157
2196
  # `
2158
2197
  # `
2159
- # ]
2198
+ # ],
2199
+ # "etag": "BwWWja0YfJA=",
2200
+ # "version": 3
2160
2201
  # `
2161
- # **YAML Example**
2202
+ # **YAML example:**
2162
2203
  # bindings:
2163
2204
  # - members:
2164
2205
  # - user:mike@example.com
@@ -2173,14 +2214,16 @@ module Google
2173
2214
  # title: expirable access
2174
2215
  # description: Does not grant access after Sep 2020
2175
2216
  # expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
2217
+ # - etag: BwWWja0YfJA=
2218
+ # - version: 3
2176
2219
  # For a description of IAM and its features, see the
2177
- # [IAM developer's guide](https://cloud.google.com/iam/docs).
2220
+ # [IAM documentation](https://cloud.google.com/iam/docs/).
2178
2221
  class Policy
2179
2222
  include Google::Apis::Core::Hashable
2180
2223
 
2181
- # Associates a list of `members` to a `role`. Optionally may specify a
2182
- # `condition` that determines when binding is in effect.
2183
- # `bindings` with no members will result in an error.
2224
+ # Associates a list of `members` to a `role`. Optionally, may specify a
2225
+ # `condition` that determines how and when the `bindings` are applied. Each
2226
+ # of the `bindings` must contain at least one member.
2184
2227
  # Corresponds to the JSON property `bindings`
2185
2228
  # @return [Array<Google::Apis::SpannerV1::Binding>]
2186
2229
  attr_accessor :bindings
@@ -2192,25 +2235,31 @@ module Google
2192
2235
  # conditions: An `etag` is returned in the response to `getIamPolicy`, and
2193
2236
  # systems are expected to put that etag in the request to `setIamPolicy` to
2194
2237
  # ensure that their change will be applied to the same version of the policy.
2195
- # If no `etag` is provided in the call to `setIamPolicy`, then the existing
2196
- # policy is overwritten. Due to blind-set semantics of an etag-less policy,
2197
- # 'setIamPolicy' will not fail even if either of incoming or stored policy
2198
- # does not meet the version requirements.
2238
+ # **Important:** If you use IAM Conditions, you must include the `etag` field
2239
+ # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
2240
+ # you to overwrite a version `3` policy with a version `1` policy, and all of
2241
+ # the conditions in the version `3` policy are lost.
2199
2242
  # Corresponds to the JSON property `etag`
2200
2243
  # NOTE: Values are automatically base64 encoded/decoded in the client library.
2201
2244
  # @return [String]
2202
2245
  attr_accessor :etag
2203
2246
 
2204
2247
  # Specifies the format of the policy.
2205
- # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
2206
- # rejected.
2207
- # Operations affecting conditional bindings must specify version 3. This can
2208
- # be either setting a conditional policy, modifying a conditional binding,
2209
- # or removing a conditional binding from the stored conditional policy.
2210
- # Operations on non-conditional policies may specify any valid value or
2211
- # leave the field unset.
2212
- # If no etag is provided in the call to `setIamPolicy`, any version
2213
- # compliance checks on the incoming and/or stored policy is skipped.
2248
+ # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
2249
+ # are rejected.
2250
+ # Any operation that affects conditional role bindings must specify version
2251
+ # `3`. This requirement applies to the following operations:
2252
+ # * Getting a policy that includes a conditional role binding
2253
+ # * Adding a conditional role binding to a policy
2254
+ # * Changing a conditional role binding in a policy
2255
+ # * Removing any role binding, with or without a condition, from a policy
2256
+ # that includes conditions
2257
+ # **Important:** If you use IAM Conditions, you must include the `etag` field
2258
+ # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
2259
+ # you to overwrite a version `3` policy with a version `1` policy, and all of
2260
+ # the conditions in the version `3` policy are lost.
2261
+ # If a policy does not include any conditions, operations on that policy may
2262
+ # specify any valid version or leave the field unset.
2214
2263
  # Corresponds to the JSON property `version`
2215
2264
  # @return [Fixnum]
2216
2265
  attr_accessor :version
@@ -2339,7 +2388,7 @@ module Google
2339
2388
  class ReadRequest
2340
2389
  include Google::Apis::Core::Hashable
2341
2390
 
2342
- # The columns of table to be returned for each row matching
2391
+ # Required. The columns of table to be returned for each row matching
2343
2392
  # this request.
2344
2393
  # Corresponds to the JSON property `columns`
2345
2394
  # @return [Array<String>]
@@ -2644,16 +2693,18 @@ module Google
2644
2693
  class SetIamPolicyRequest
2645
2694
  include Google::Apis::Core::Hashable
2646
2695
 
2647
- # Defines an Identity and Access Management (IAM) policy. It is used to
2648
- # specify access control policies for Cloud Platform resources.
2696
+ # An Identity and Access Management (IAM) policy, which specifies access
2697
+ # controls for Google Cloud resources.
2649
2698
  # A `Policy` is a collection of `bindings`. A `binding` binds one or more
2650
2699
  # `members` to a single `role`. Members can be user accounts, service accounts,
2651
2700
  # Google groups, and domains (such as G Suite). A `role` is a named list of
2652
- # permissions (defined by IAM or configured by users). A `binding` can
2653
- # optionally specify a `condition`, which is a logic expression that further
2654
- # constrains the role binding based on attributes about the request and/or
2655
- # target resource.
2656
- # **JSON Example**
2701
+ # permissions; each `role` can be an IAM predefined role or a user-created
2702
+ # custom role.
2703
+ # Optionally, a `binding` can specify a `condition`, which is a logical
2704
+ # expression that allows access to a resource only if the expression evaluates
2705
+ # to `true`. A condition can add constraints based on attributes of the
2706
+ # request, the resource, or both.
2707
+ # **JSON example:**
2657
2708
  # `
2658
2709
  # "bindings": [
2659
2710
  # `
@@ -2671,13 +2722,15 @@ module Google
2671
2722
  # "condition": `
2672
2723
  # "title": "expirable access",
2673
2724
  # "description": "Does not grant access after Sep 2020",
2674
- # "expression": "request.time <
2675
- # timestamp('2020-10-01T00:00:00.000Z')",
2725
+ # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')
2726
+ # ",
2676
2727
  # `
2677
2728
  # `
2678
- # ]
2729
+ # ],
2730
+ # "etag": "BwWWja0YfJA=",
2731
+ # "version": 3
2679
2732
  # `
2680
- # **YAML Example**
2733
+ # **YAML example:**
2681
2734
  # bindings:
2682
2735
  # - members:
2683
2736
  # - user:mike@example.com
@@ -2692,8 +2745,10 @@ module Google
2692
2745
  # title: expirable access
2693
2746
  # description: Does not grant access after Sep 2020
2694
2747
  # expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
2748
+ # - etag: BwWWja0YfJA=
2749
+ # - version: 3
2695
2750
  # For a description of IAM and its features, see the
2696
- # [IAM developer's guide](https://cloud.google.com/iam/docs).
2751
+ # [IAM documentation](https://cloud.google.com/iam/docs/).
2697
2752
  # Corresponds to the JSON property `policy`
2698
2753
  # @return [Google::Apis::SpannerV1::Policy]
2699
2754
  attr_accessor :policy
@@ -3738,7 +3793,7 @@ module Google
3738
3793
  # @return [String]
3739
3794
  attr_accessor :operation_id
3740
3795
 
3741
- # DDL statements to be applied to the database.
3796
+ # Required. DDL statements to be applied to the database.
3742
3797
  # Corresponds to the JSON property `statements`
3743
3798
  # @return [Array<String>]
3744
3799
  attr_accessor :statements
@@ -3799,11 +3854,9 @@ module Google
3799
3854
  class UpdateInstanceRequest
3800
3855
  include Google::Apis::Core::Hashable
3801
3856
 
3802
- # Required. A mask specifying which fields in [][google.spanner.admin.instance.
3803
- # v1.UpdateInstanceRequest.instance] should be updated.
3857
+ # Required. A mask specifying which fields in Instance should be updated.
3804
3858
  # The field mask must always be specified; this prevents any future fields in
3805
- # [][google.spanner.admin.instance.v1.Instance] from being erased accidentally
3806
- # by clients that do not know
3859
+ # Instance from being erased accidentally by clients that do not know
3807
3860
  # about them.
3808
3861
  # Corresponds to the JSON property `fieldMask`
3809
3862
  # @return [String]
@@ -647,6 +647,7 @@ module Google
647
647
  class Representation < Google::Apis::Core::JsonRepresentation
648
648
  property :config, as: 'config'
649
649
  property :display_name, as: 'displayName'
650
+ collection :endpoint_uris, as: 'endpointUris'
650
651
  hash :labels, as: 'labels'
651
652
  property :name, as: 'name'
652
653
  property :node_count, as: 'nodeCount'
@@ -221,6 +221,10 @@ module Google
221
221
  # @param [String] name
222
222
  # Required. The name of the requested instance. Values are of the form
223
223
  # `projects/<project>/instances/<instance>`.
224
+ # @param [String] field_mask
225
+ # If field_mask is present, specifies the subset of Instance fields that
226
+ # should be returned.
227
+ # If absent, all Instance fields are returned.
224
228
  # @param [String] fields
225
229
  # Selector specifying which fields to include in a partial response.
226
230
  # @param [String] quota_user
@@ -238,11 +242,12 @@ module Google
238
242
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
239
243
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
240
244
  # @raise [Google::Apis::AuthorizationError] Authorization is required
241
- def get_project_instance(name, fields: nil, quota_user: nil, options: nil, &block)
245
+ def get_project_instance(name, field_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
242
246
  command = make_simple_command(:get, 'v1/{+name}', options)
243
247
  command.response_representation = Google::Apis::SpannerV1::Instance::Representation
244
248
  command.response_class = Google::Apis::SpannerV1::Instance
245
249
  command.params['name'] = name unless name.nil?
250
+ command.query['fieldMask'] = field_mask unless field_mask.nil?
246
251
  command.query['fields'] = fields unless fields.nil?
247
252
  command.query['quotaUser'] = quota_user unless quota_user.nil?
248
253
  execute_or_queue_command(command, &block)
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/cloud-sql/
26
26
  module SqlV1beta4
27
27
  VERSION = 'V1beta4'
28
- REVISION = '20191029'
28
+ REVISION = '20191205'
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'
@@ -38,7 +38,7 @@ module Google
38
38
  # @return [String]
39
39
  attr_accessor :kind
40
40
 
41
- # An optional label to identify this entry.
41
+ # Optional. A label to identify this entry.
42
42
  # Corresponds to the JSON property `name`
43
43
  # @return [String]
44
44
  attr_accessor :name
@@ -454,7 +454,6 @@ module Google
454
454
  end
455
455
 
456
456
  # A Cloud SQL instance resource.
457
- # If you change this, also change SqlDatabaseInstance
458
457
  class DatabaseInstance
459
458
  include Google::Apis::Core::Hashable
460
459
 
@@ -1798,6 +1797,22 @@ module Google
1798
1797
  class OnPremisesConfiguration
1799
1798
  include Google::Apis::Core::Hashable
1800
1799
 
1800
+ # PEM representation of the trusted CA's x509 certificate.
1801
+ # Corresponds to the JSON property `caCertificate`
1802
+ # @return [String]
1803
+ attr_accessor :ca_certificate
1804
+
1805
+ # PEM representation of the slave's x509 certificate.
1806
+ # Corresponds to the JSON property `clientCertificate`
1807
+ # @return [String]
1808
+ attr_accessor :client_certificate
1809
+
1810
+ # PEM representation of the slave's private key. The corresponsing public key
1811
+ # is encoded in the client's certificate.
1812
+ # Corresponds to the JSON property `clientKey`
1813
+ # @return [String]
1814
+ attr_accessor :client_key
1815
+
1801
1816
  # The host and port of the on-premises instance in host:port format
1802
1817
  # Corresponds to the JSON property `hostPort`
1803
1818
  # @return [String]
@@ -1814,6 +1829,9 @@ module Google
1814
1829
 
1815
1830
  # Update properties of this object
1816
1831
  def update!(**args)
1832
+ @ca_certificate = args[:ca_certificate] if args.key?(:ca_certificate)
1833
+ @client_certificate = args[:client_certificate] if args.key?(:client_certificate)
1834
+ @client_key = args[:client_key] if args.key?(:client_key)
1817
1835
  @host_port = args[:host_port] if args.key?(:host_port)
1818
1836
  @kind = args[:kind] if args.key?(:kind)
1819
1837
  end
@@ -1889,7 +1907,8 @@ module Google
1889
1907
  attr_accessor :start_time
1890
1908
 
1891
1909
  # The status of an operation. Valid values are <code>PENDING</code>,
1892
- # <code>RUNNING</code>, <code>DONE</code>, <code>UNKNOWN</code>.
1910
+ # <code>RUNNING</code>, <code>DONE</code>,
1911
+ # <code>SQL_OPERATION_STATUS_UNSPECIFIED</code>.
1893
1912
  # Corresponds to the JSON property `status`
1894
1913
  # @return [String]
1895
1914
  attr_accessor :status
@@ -2063,6 +2082,32 @@ module Google
2063
2082
  end
2064
2083
  end
2065
2084
 
2085
+ #
2086
+ class Reschedule
2087
+ include Google::Apis::Core::Hashable
2088
+
2089
+ # Required. The type of the reschedule.
2090
+ # Corresponds to the JSON property `rescheduleType`
2091
+ # @return [String]
2092
+ attr_accessor :reschedule_type
2093
+
2094
+ # Optional. Timestamp when the maintenance shall be rescheduled to if
2095
+ # reschedule_type=SPECIFIC_TIME.
2096
+ # Corresponds to the JSON property `scheduleTime`
2097
+ # @return [String]
2098
+ attr_accessor :schedule_time
2099
+
2100
+ def initialize(**args)
2101
+ update!(**args)
2102
+ end
2103
+
2104
+ # Update properties of this object
2105
+ def update!(**args)
2106
+ @reschedule_type = args[:reschedule_type] if args.key?(:reschedule_type)
2107
+ @schedule_time = args[:schedule_time] if args.key?(:schedule_time)
2108
+ end
2109
+ end
2110
+
2066
2111
  # Database instance restore from backup context.
2067
2112
  # Backup context contains source instance id and project id.
2068
2113
  class RestoreBackupContext
@@ -2305,16 +2350,41 @@ module Google
2305
2350
  end
2306
2351
  end
2307
2352
 
2353
+ # Reschedule options for maintenance windows.
2354
+ class SqlInstancesRescheduleMaintenanceRequestBody
2355
+ include Google::Apis::Core::Hashable
2356
+
2357
+ # Required. The type of the reschedule the user wants.
2358
+ # Corresponds to the JSON property `reschedule`
2359
+ # @return [Google::Apis::SqlV1beta4::Reschedule]
2360
+ attr_accessor :reschedule
2361
+
2362
+ def initialize(**args)
2363
+ update!(**args)
2364
+ end
2365
+
2366
+ # Update properties of this object
2367
+ def update!(**args)
2368
+ @reschedule = args[:reschedule] if args.key?(:reschedule)
2369
+ end
2370
+ end
2371
+
2308
2372
  # Any scheduled maintenancce for this instance.
2309
2373
  class SqlScheduledMaintenance
2310
2374
  include Google::Apis::Core::Hashable
2311
2375
 
2312
- # If the scheduled maintenance can be deferred.
2376
+ #
2313
2377
  # Corresponds to the JSON property `canDefer`
2314
2378
  # @return [Boolean]
2315
2379
  attr_accessor :can_defer
2316
2380
  alias_method :can_defer?, :can_defer
2317
2381
 
2382
+ # If the scheduled maintenance can be rescheduled.
2383
+ # Corresponds to the JSON property `canReschedule`
2384
+ # @return [Boolean]
2385
+ attr_accessor :can_reschedule
2386
+ alias_method :can_reschedule?, :can_reschedule
2387
+
2318
2388
  # The start time of any upcoming scheduled maintenance for this instance.
2319
2389
  # Corresponds to the JSON property `startTime`
2320
2390
  # @return [String]
@@ -2327,6 +2397,7 @@ module Google
2327
2397
  # Update properties of this object
2328
2398
  def update!(**args)
2329
2399
  @can_defer = args[:can_defer] if args.key?(:can_defer)
2400
+ @can_reschedule = args[:can_reschedule] if args.key?(:can_reschedule)
2330
2401
  @start_time = args[:start_time] if args.key?(:start_time)
2331
2402
  end
2332
2403
  end