google-api-client 0.17.0 → 0.17.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +33 -0
  3. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  4. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +0 -8
  5. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +0 -1
  6. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +28 -184
  7. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  8. data/generated/google/apis/analyticsreporting_v4/classes.rb +56 -0
  9. data/generated/google/apis/analyticsreporting_v4/representations.rb +18 -0
  10. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  11. data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
  12. data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +116 -0
  13. data/generated/google/apis/bigquerydatatransfer_v1/representations.rb +17 -0
  14. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  15. data/generated/google/apis/cloudtasks_v2beta2/service.rb +2 -0
  16. data/generated/google/apis/cloudtrace_v1.rb +4 -5
  17. data/generated/google/apis/cloudtrace_v1/service.rb +3 -4
  18. data/generated/google/apis/cloudtrace_v2.rb +4 -5
  19. data/generated/google/apis/cloudtrace_v2/classes.rb +18 -16
  20. data/generated/google/apis/cloudtrace_v2/service.rb +13 -16
  21. data/generated/google/apis/container_v1.rb +1 -1
  22. data/generated/google/apis/container_v1/classes.rb +1 -1
  23. data/generated/google/apis/container_v1beta1.rb +1 -1
  24. data/generated/google/apis/container_v1beta1/classes.rb +335 -1
  25. data/generated/google/apis/container_v1beta1/representations.rb +107 -0
  26. data/generated/google/apis/container_v1beta1/service.rb +482 -0
  27. data/generated/google/apis/deploymentmanager_alpha.rb +1 -1
  28. data/generated/google/apis/deploymentmanager_alpha/classes.rb +2 -1
  29. data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
  30. data/generated/google/apis/deploymentmanager_v2beta/classes.rb +2 -1
  31. data/generated/google/apis/dfareporting_v2_7.rb +1 -1
  32. data/generated/google/apis/dfareporting_v2_7/classes.rb +6 -3
  33. data/generated/google/apis/dfareporting_v2_8.rb +1 -1
  34. data/generated/google/apis/dfareporting_v2_8/classes.rb +8 -5
  35. data/generated/google/apis/dfareporting_v3_0.rb +40 -0
  36. data/generated/google/apis/dfareporting_v3_0/classes.rb +12117 -0
  37. data/generated/google/apis/dfareporting_v3_0/representations.rb +4336 -0
  38. data/generated/google/apis/dfareporting_v3_0/service.rb +9108 -0
  39. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  40. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +9 -0
  41. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +1 -0
  42. data/generated/google/apis/firestore_v1beta1.rb +1 -1
  43. data/generated/google/apis/firestore_v1beta1/classes.rb +1 -0
  44. data/generated/google/apis/ml_v1.rb +1 -1
  45. data/generated/google/apis/ml_v1/classes.rb +76 -3
  46. data/generated/google/apis/ml_v1/representations.rb +7 -0
  47. data/generated/google/apis/ml_v1/service.rb +53 -0
  48. data/generated/google/apis/monitoring_v3.rb +1 -1
  49. data/generated/google/apis/monitoring_v3/service.rb +1 -5
  50. data/generated/google/apis/oslogin_v1alpha.rb +2 -2
  51. data/generated/google/apis/oslogin_v1alpha/service.rb +1 -1
  52. data/generated/google/apis/oslogin_v1beta.rb +2 -2
  53. data/generated/google/apis/oslogin_v1beta/service.rb +1 -1
  54. data/generated/google/apis/people_v1.rb +1 -1
  55. data/generated/google/apis/people_v1/classes.rb +2 -0
  56. data/generated/google/apis/people_v1/service.rb +0 -4
  57. data/generated/google/apis/script_v1.rb +1 -1
  58. data/generated/google/apis/script_v1/classes.rb +5 -6
  59. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  60. data/generated/google/apis/servicemanagement_v1/classes.rb +0 -8
  61. data/generated/google/apis/servicemanagement_v1/representations.rb +0 -1
  62. data/generated/google/apis/serviceuser_v1.rb +1 -1
  63. data/generated/google/apis/serviceuser_v1/classes.rb +0 -8
  64. data/generated/google/apis/serviceuser_v1/representations.rb +0 -1
  65. data/generated/google/apis/spanner_v1.rb +1 -1
  66. data/generated/google/apis/spanner_v1/classes.rb +13 -14
  67. data/generated/google/apis/spanner_v1/service.rb +13 -13
  68. data/generated/google/apis/tagmanager_v1.rb +1 -1
  69. data/generated/google/apis/tagmanager_v1/classes.rb +70 -9
  70. data/generated/google/apis/tagmanager_v1/representations.rb +22 -3
  71. data/generated/google/apis/tagmanager_v2.rb +1 -1
  72. data/generated/google/apis/tagmanager_v2/classes.rb +7 -0
  73. data/generated/google/apis/tagmanager_v2/representations.rb +1 -0
  74. data/generated/google/apis/vision_v1.rb +1 -1
  75. data/generated/google/apis/vision_v1/classes.rb +434 -434
  76. data/generated/google/apis/vision_v1/representations.rb +178 -178
  77. data/generated/google/apis/vision_v1/service.rb +8 -8
  78. data/generated/google/apis/vision_v1p1beta1.rb +39 -0
  79. data/generated/google/apis/vision_v1p1beta1/classes.rb +1800 -0
  80. data/generated/google/apis/vision_v1p1beta1/representations.rb +728 -0
  81. data/generated/google/apis/vision_v1p1beta1/service.rb +91 -0
  82. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  83. data/lib/google/apis/version.rb +1 -1
  84. metadata +10 -2
@@ -22,10 +22,9 @@ module Google
22
22
  module CloudtraceV2
23
23
  # Stackdriver Trace API
24
24
  #
25
- # Send and retrieve trace data from Stackdriver Trace. Data is generated and
26
- # available by default for all App Engine applications. Data from other
27
- # applications can be written to Stackdriver Trace for display, reporting, and
28
- # analysis.
25
+ # Sends application trace data to Stackdriver Trace for viewing. Trace data is
26
+ # collected for all App Engine applications by default. Trace data from other
27
+ # applications can be provided using this API.
29
28
  #
30
29
  # @example
31
30
  # require 'google/apis/cloudtrace_v2'
@@ -50,14 +49,11 @@ module Google
50
49
  @batch_path = 'batch'
51
50
  end
52
51
 
53
- # Sends new spans to Stackdriver Trace or updates existing traces. If the
54
- # name of a trace that you send matches that of an existing trace, new spans
55
- # are added to the existing trace. Attempt to update existing spans results
56
- # undefined behavior. If the name does not match, a new trace is created
57
- # with given set of spans.
52
+ # Sends new spans to new or existing traces. You cannot update
53
+ # existing spans.
58
54
  # @param [String] name
59
- # Required. Name of the project where the spans belong. The format is
60
- # `projects/PROJECT_ID`.
55
+ # Required. The name of the project where the spans belong. The format is
56
+ # `projects/[PROJECT_ID]`.
61
57
  # @param [Google::Apis::CloudtraceV2::BatchWriteSpansRequest] batch_write_spans_request_object
62
58
  # @param [String] fields
63
59
  # Selector specifying which fields to include in a partial response.
@@ -88,13 +84,14 @@ module Google
88
84
  execute_or_queue_command(command, &block)
89
85
  end
90
86
 
91
- # Creates a new Span.
87
+ # Creates a new span.
92
88
  # @param [String] name
93
89
  # The resource name of the span in the following format:
94
90
  # projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/SPAN_ID is a unique
95
- # identifier for a trace within a project.
96
- # [SPAN_ID] is a unique identifier for a span within a trace,
97
- # assigned when the span is created.
91
+ # identifier for a trace within a project;
92
+ # it is a 32-character hexadecimal encoding of a 16-byte array.
93
+ # [SPAN_ID] is a unique identifier for a span within a trace; it
94
+ # is a 16-character hexadecimal encoding of an 8-byte array.
98
95
  # @param [Google::Apis::CloudtraceV2::Span] span_object
99
96
  # @param [String] fields
100
97
  # Selector specifying which fields to include in a partial response.
@@ -114,7 +111,7 @@ module Google
114
111
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
115
112
  # @raise [Google::Apis::AuthorizationError] Authorization is required
116
113
  def create_project_trace_span(name, span_object = nil, fields: nil, quota_user: nil, options: nil, &block)
117
- command = make_simple_command(:put, 'v2/{+name}', options)
114
+ command = make_simple_command(:post, 'v2/{+name}/spans', options)
118
115
  command.request_representation = Google::Apis::CloudtraceV2::Span::Representation
119
116
  command.request_object = span_object
120
117
  command.response_representation = Google::Apis::CloudtraceV2::Span::Representation
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://cloud.google.com/container-engine/
27
27
  module ContainerV1
28
28
  VERSION = 'V1'
29
- REVISION = '20170922'
29
+ REVISION = '20171030'
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'
@@ -1368,7 +1368,7 @@ module Google
1368
1368
  # @return [String]
1369
1369
  attr_accessor :status_message
1370
1370
 
1371
- # [Output only] The version of the Kubernetes of this node.
1371
+ # The version of the Kubernetes of this node.
1372
1372
  # Corresponds to the JSON property `version`
1373
1373
  # @return [String]
1374
1374
  attr_accessor :version
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://cloud.google.com/container-engine/
27
27
  module ContainerV1beta1
28
28
  VERSION = 'V1beta1'
29
- REVISION = '20171020'
29
+ REVISION = '20171030'
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'
@@ -1460,7 +1460,7 @@ module Google
1460
1460
  # @return [String]
1461
1461
  attr_accessor :status_message
1462
1462
 
1463
- # [Output only] The version of the Kubernetes of this node.
1463
+ # The version of the Kubernetes of this node.
1464
1464
  # Corresponds to the JSON property `version`
1465
1465
  # @return [String]
1466
1466
  attr_accessor :version
@@ -1759,6 +1759,57 @@ module Google
1759
1759
  end
1760
1760
  end
1761
1761
 
1762
+ # SetAddonsRequest sets the addons associated with the cluster.
1763
+ class SetAddonsConfigRequest
1764
+ include Google::Apis::Core::Hashable
1765
+
1766
+ # Configuration for the addons that can be automatically spun up in the
1767
+ # cluster, enabling additional functionality.
1768
+ # Corresponds to the JSON property `addonsConfig`
1769
+ # @return [Google::Apis::ContainerV1beta1::AddonsConfig]
1770
+ attr_accessor :addons_config
1771
+
1772
+ # The name of the cluster to upgrade.
1773
+ # This field is deprecated, use name instead.
1774
+ # Corresponds to the JSON property `clusterId`
1775
+ # @return [String]
1776
+ attr_accessor :cluster_id
1777
+
1778
+ # The name (project, location, cluster) of the cluster to set addons.
1779
+ # Specified in the format 'projects/*/locations/*/clusters/*'.
1780
+ # Corresponds to the JSON property `name`
1781
+ # @return [String]
1782
+ attr_accessor :name
1783
+
1784
+ # The Google Developers Console [project ID or project
1785
+ # number](https://support.google.com/cloud/answer/6158840).
1786
+ # This field is deprecated, use name instead.
1787
+ # Corresponds to the JSON property `projectId`
1788
+ # @return [String]
1789
+ attr_accessor :project_id
1790
+
1791
+ # The name of the Google Compute Engine
1792
+ # [zone](/compute/docs/zones#available) in which the cluster
1793
+ # resides.
1794
+ # This field is deprecated, use name instead.
1795
+ # Corresponds to the JSON property `zone`
1796
+ # @return [String]
1797
+ attr_accessor :zone
1798
+
1799
+ def initialize(**args)
1800
+ update!(**args)
1801
+ end
1802
+
1803
+ # Update properties of this object
1804
+ def update!(**args)
1805
+ @addons_config = args[:addons_config] if args.key?(:addons_config)
1806
+ @cluster_id = args[:cluster_id] if args.key?(:cluster_id)
1807
+ @name = args[:name] if args.key?(:name)
1808
+ @project_id = args[:project_id] if args.key?(:project_id)
1809
+ @zone = args[:zone] if args.key?(:zone)
1810
+ end
1811
+ end
1812
+
1762
1813
  # SetLabelsRequest sets the Google Cloud Platform labels on a Google Container
1763
1814
  # Engine cluster, which will in turn set them for Google Compute Engine
1764
1815
  # resources used by that cluster
@@ -1874,6 +1925,61 @@ module Google
1874
1925
  end
1875
1926
  end
1876
1927
 
1928
+ # SetLocationsRequest sets the locations of the cluster.
1929
+ class SetLocationsRequest
1930
+ include Google::Apis::Core::Hashable
1931
+
1932
+ # The name of the cluster to upgrade.
1933
+ # This field is deprecated, use name instead.
1934
+ # Corresponds to the JSON property `clusterId`
1935
+ # @return [String]
1936
+ attr_accessor :cluster_id
1937
+
1938
+ # The desired list of Google Compute Engine
1939
+ # [locations](/compute/docs/zones#available) in which the cluster's nodes
1940
+ # should be located. Changing the locations a cluster is in will result
1941
+ # in nodes being either created or removed from the cluster, depending on
1942
+ # whether locations are being added or removed.
1943
+ # This list must always include the cluster's primary zone.
1944
+ # Corresponds to the JSON property `locations`
1945
+ # @return [Array<String>]
1946
+ attr_accessor :locations
1947
+
1948
+ # The name (project, location, cluster) of the cluster to set locations.
1949
+ # Specified in the format 'projects/*/locations/*/clusters/*'.
1950
+ # Corresponds to the JSON property `name`
1951
+ # @return [String]
1952
+ attr_accessor :name
1953
+
1954
+ # The Google Developers Console [project ID or project
1955
+ # number](https://support.google.com/cloud/answer/6158840).
1956
+ # This field is deprecated, use name instead.
1957
+ # Corresponds to the JSON property `projectId`
1958
+ # @return [String]
1959
+ attr_accessor :project_id
1960
+
1961
+ # The name of the Google Compute Engine
1962
+ # [zone](/compute/docs/zones#available) in which the cluster
1963
+ # resides.
1964
+ # This field is deprecated, use name instead.
1965
+ # Corresponds to the JSON property `zone`
1966
+ # @return [String]
1967
+ attr_accessor :zone
1968
+
1969
+ def initialize(**args)
1970
+ update!(**args)
1971
+ end
1972
+
1973
+ # Update properties of this object
1974
+ def update!(**args)
1975
+ @cluster_id = args[:cluster_id] if args.key?(:cluster_id)
1976
+ @locations = args[:locations] if args.key?(:locations)
1977
+ @name = args[:name] if args.key?(:name)
1978
+ @project_id = args[:project_id] if args.key?(:project_id)
1979
+ @zone = args[:zone] if args.key?(:zone)
1980
+ end
1981
+ end
1982
+
1877
1983
  # SetLoggingServiceRequest sets the logging service of a cluster.
1878
1984
  class SetLoggingServiceRequest
1879
1985
  include Google::Apis::Core::Hashable
@@ -2032,6 +2138,59 @@ module Google
2032
2138
  end
2033
2139
  end
2034
2140
 
2141
+ # SetMonitoringServiceRequest sets the monitoring service of a cluster.
2142
+ class SetMonitoringServiceRequest
2143
+ include Google::Apis::Core::Hashable
2144
+
2145
+ # The name of the cluster to upgrade.
2146
+ # This field is deprecated, use name instead.
2147
+ # Corresponds to the JSON property `clusterId`
2148
+ # @return [String]
2149
+ attr_accessor :cluster_id
2150
+
2151
+ # The monitoring service the cluster should use to write metrics.
2152
+ # Currently available options:
2153
+ # * "monitoring.googleapis.com" - the Google Cloud Monitoring service
2154
+ # * "none" - no metrics will be exported from the cluster
2155
+ # Corresponds to the JSON property `monitoringService`
2156
+ # @return [String]
2157
+ attr_accessor :monitoring_service
2158
+
2159
+ # The name (project, location, cluster) of the cluster to set monitoring.
2160
+ # Specified in the format 'projects/*/locations/*/clusters/*'.
2161
+ # Corresponds to the JSON property `name`
2162
+ # @return [String]
2163
+ attr_accessor :name
2164
+
2165
+ # The Google Developers Console [project ID or project
2166
+ # number](https://support.google.com/cloud/answer/6158840).
2167
+ # This field is deprecated, use name instead.
2168
+ # Corresponds to the JSON property `projectId`
2169
+ # @return [String]
2170
+ attr_accessor :project_id
2171
+
2172
+ # The name of the Google Compute Engine
2173
+ # [zone](/compute/docs/zones#available) in which the cluster
2174
+ # resides.
2175
+ # This field is deprecated, use name instead.
2176
+ # Corresponds to the JSON property `zone`
2177
+ # @return [String]
2178
+ attr_accessor :zone
2179
+
2180
+ def initialize(**args)
2181
+ update!(**args)
2182
+ end
2183
+
2184
+ # Update properties of this object
2185
+ def update!(**args)
2186
+ @cluster_id = args[:cluster_id] if args.key?(:cluster_id)
2187
+ @monitoring_service = args[:monitoring_service] if args.key?(:monitoring_service)
2188
+ @name = args[:name] if args.key?(:name)
2189
+ @project_id = args[:project_id] if args.key?(:project_id)
2190
+ @zone = args[:zone] if args.key?(:zone)
2191
+ end
2192
+ end
2193
+
2035
2194
  # SetNetworkPolicyRequest enables/disables network policy for a cluster.
2036
2195
  class SetNetworkPolicyRequest
2037
2196
  include Google::Apis::Core::Hashable
@@ -2084,6 +2243,65 @@ module Google
2084
2243
  end
2085
2244
  end
2086
2245
 
2246
+ # SetNodePoolAutoscalingRequest sets the autoscaler settings of a node pool.
2247
+ class SetNodePoolAutoscalingRequest
2248
+ include Google::Apis::Core::Hashable
2249
+
2250
+ # NodePoolAutoscaling contains information required by cluster autoscaler to
2251
+ # adjust the size of the node pool to the current cluster usage.
2252
+ # Corresponds to the JSON property `autoscaling`
2253
+ # @return [Google::Apis::ContainerV1beta1::NodePoolAutoscaling]
2254
+ attr_accessor :autoscaling
2255
+
2256
+ # The name of the cluster to upgrade.
2257
+ # This field is deprecated, use name instead.
2258
+ # Corresponds to the JSON property `clusterId`
2259
+ # @return [String]
2260
+ attr_accessor :cluster_id
2261
+
2262
+ # The name (project, location, cluster, node pool) of the node pool to set
2263
+ # autoscaler settings. Specified in the format
2264
+ # 'projects/*/locations/*/clusters/*/nodePools/*'.
2265
+ # Corresponds to the JSON property `name`
2266
+ # @return [String]
2267
+ attr_accessor :name
2268
+
2269
+ # The name of the node pool to upgrade.
2270
+ # This field is deprecated, use name instead.
2271
+ # Corresponds to the JSON property `nodePoolId`
2272
+ # @return [String]
2273
+ attr_accessor :node_pool_id
2274
+
2275
+ # The Google Developers Console [project ID or project
2276
+ # number](https://support.google.com/cloud/answer/6158840).
2277
+ # This field is deprecated, use name instead.
2278
+ # Corresponds to the JSON property `projectId`
2279
+ # @return [String]
2280
+ attr_accessor :project_id
2281
+
2282
+ # The name of the Google Compute Engine
2283
+ # [zone](/compute/docs/zones#available) in which the cluster
2284
+ # resides.
2285
+ # This field is deprecated, use name instead.
2286
+ # Corresponds to the JSON property `zone`
2287
+ # @return [String]
2288
+ attr_accessor :zone
2289
+
2290
+ def initialize(**args)
2291
+ update!(**args)
2292
+ end
2293
+
2294
+ # Update properties of this object
2295
+ def update!(**args)
2296
+ @autoscaling = args[:autoscaling] if args.key?(:autoscaling)
2297
+ @cluster_id = args[:cluster_id] if args.key?(:cluster_id)
2298
+ @name = args[:name] if args.key?(:name)
2299
+ @node_pool_id = args[:node_pool_id] if args.key?(:node_pool_id)
2300
+ @project_id = args[:project_id] if args.key?(:project_id)
2301
+ @zone = args[:zone] if args.key?(:zone)
2302
+ end
2303
+ end
2304
+
2087
2305
  # SetNodePoolManagementRequest sets the node management properties of a node
2088
2306
  # pool.
2089
2307
  class SetNodePoolManagementRequest
@@ -2240,6 +2458,122 @@ module Google
2240
2458
  @zone = args[:zone] if args.key?(:zone)
2241
2459
  end
2242
2460
  end
2461
+
2462
+ # UpdateMasterRequest updates the master of the cluster.
2463
+ class UpdateMasterRequest
2464
+ include Google::Apis::Core::Hashable
2465
+
2466
+ # The name of the cluster to upgrade.
2467
+ # This field is deprecated, use name instead.
2468
+ # Corresponds to the JSON property `clusterId`
2469
+ # @return [String]
2470
+ attr_accessor :cluster_id
2471
+
2472
+ # The Kubernetes version to change the master to. The only valid value is the
2473
+ # latest supported version. Use "-" to have the server automatically select
2474
+ # the latest version.
2475
+ # Corresponds to the JSON property `masterVersion`
2476
+ # @return [String]
2477
+ attr_accessor :master_version
2478
+
2479
+ # The name (project, location, cluster) of the cluster to update.
2480
+ # Specified in the format 'projects/*/locations/*/clusters/*'.
2481
+ # Corresponds to the JSON property `name`
2482
+ # @return [String]
2483
+ attr_accessor :name
2484
+
2485
+ # The Google Developers Console [project ID or project
2486
+ # number](https://support.google.com/cloud/answer/6158840).
2487
+ # Corresponds to the JSON property `projectId`
2488
+ # @return [String]
2489
+ attr_accessor :project_id
2490
+
2491
+ # The name of the Google Compute Engine
2492
+ # [zone](/compute/docs/zones#available) in which the cluster
2493
+ # resides.
2494
+ # This field is deprecated, use name instead.
2495
+ # Corresponds to the JSON property `zone`
2496
+ # @return [String]
2497
+ attr_accessor :zone
2498
+
2499
+ def initialize(**args)
2500
+ update!(**args)
2501
+ end
2502
+
2503
+ # Update properties of this object
2504
+ def update!(**args)
2505
+ @cluster_id = args[:cluster_id] if args.key?(:cluster_id)
2506
+ @master_version = args[:master_version] if args.key?(:master_version)
2507
+ @name = args[:name] if args.key?(:name)
2508
+ @project_id = args[:project_id] if args.key?(:project_id)
2509
+ @zone = args[:zone] if args.key?(:zone)
2510
+ end
2511
+ end
2512
+
2513
+ # SetNodePoolVersionRequest updates the version of a node pool.
2514
+ class UpdateNodePoolRequest
2515
+ include Google::Apis::Core::Hashable
2516
+
2517
+ # The name of the cluster to upgrade.
2518
+ # This field is deprecated, use name instead.
2519
+ # Corresponds to the JSON property `clusterId`
2520
+ # @return [String]
2521
+ attr_accessor :cluster_id
2522
+
2523
+ # The desired image type for the node pool.
2524
+ # Corresponds to the JSON property `imageType`
2525
+ # @return [String]
2526
+ attr_accessor :image_type
2527
+
2528
+ # The name (project, location, cluster, node pool) of the node pool to update.
2529
+ # Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.
2530
+ # Corresponds to the JSON property `name`
2531
+ # @return [String]
2532
+ attr_accessor :name
2533
+
2534
+ # The name of the node pool to upgrade.
2535
+ # This field is deprecated, use name instead.
2536
+ # Corresponds to the JSON property `nodePoolId`
2537
+ # @return [String]
2538
+ attr_accessor :node_pool_id
2539
+
2540
+ # The Kubernetes version to change the nodes to (typically an
2541
+ # upgrade). Use `-` to upgrade to the latest version supported by
2542
+ # the server.
2543
+ # Corresponds to the JSON property `nodeVersion`
2544
+ # @return [String]
2545
+ attr_accessor :node_version
2546
+
2547
+ # The Google Developers Console [project ID or project
2548
+ # number](https://support.google.com/cloud/answer/6158840).
2549
+ # This field is deprecated, use name instead.
2550
+ # Corresponds to the JSON property `projectId`
2551
+ # @return [String]
2552
+ attr_accessor :project_id
2553
+
2554
+ # The name of the Google Compute Engine
2555
+ # [zone](/compute/docs/zones#available) in which the cluster
2556
+ # resides.
2557
+ # This field is deprecated, use name instead.
2558
+ # Corresponds to the JSON property `zone`
2559
+ # @return [String]
2560
+ attr_accessor :zone
2561
+
2562
+ def initialize(**args)
2563
+ update!(**args)
2564
+ end
2565
+
2566
+ # Update properties of this object
2567
+ def update!(**args)
2568
+ @cluster_id = args[:cluster_id] if args.key?(:cluster_id)
2569
+ @image_type = args[:image_type] if args.key?(:image_type)
2570
+ @name = args[:name] if args.key?(:name)
2571
+ @node_pool_id = args[:node_pool_id] if args.key?(:node_pool_id)
2572
+ @node_version = args[:node_version] if args.key?(:node_version)
2573
+ @project_id = args[:project_id] if args.key?(:project_id)
2574
+ @zone = args[:zone] if args.key?(:zone)
2575
+ end
2576
+ end
2243
2577
  end
2244
2578
  end
2245
2579
  end