google-api-client 0.10.1 → 0.10.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (176) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +3 -0
  3. data/api_names.yaml +395 -0
  4. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  5. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +254 -254
  6. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +65 -65
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +220 -220
  8. data/generated/google/apis/admin_directory_v1.rb +1 -1
  9. data/generated/google/apis/admin_directory_v1/classes.rb +106 -0
  10. data/generated/google/apis/admin_directory_v1/representations.rb +37 -0
  11. data/generated/google/apis/admin_reports_v1.rb +3 -3
  12. data/generated/google/apis/admin_reports_v1/service.rb +6 -6
  13. data/generated/google/apis/adsense_v1_4.rb +1 -1
  14. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  15. data/generated/google/apis/analytics_v3.rb +1 -1
  16. data/generated/google/apis/analytics_v3/service.rb +39 -0
  17. data/generated/google/apis/analyticsreporting_v4/classes.rb +920 -920
  18. data/generated/google/apis/analyticsreporting_v4/representations.rb +197 -197
  19. data/generated/google/apis/analyticsreporting_v4/service.rb +4 -4
  20. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  21. data/generated/google/apis/androidenterprise_v1/classes.rb +8 -13
  22. data/generated/google/apis/androidenterprise_v1/service.rb +3 -3
  23. data/generated/google/apis/appengine_v1beta5.rb +1 -1
  24. data/generated/google/apis/appengine_v1beta5/classes.rb +115 -5
  25. data/generated/google/apis/appengine_v1beta5/representations.rb +37 -0
  26. data/generated/google/apis/appengine_v1beta5/service.rb +12 -9
  27. data/generated/google/apis/appstate_v1.rb +1 -1
  28. data/generated/google/apis/bigquery_v2.rb +1 -1
  29. data/generated/google/apis/bigquery_v2/classes.rb +32 -37
  30. data/generated/google/apis/bigquery_v2/service.rb +10 -2
  31. data/generated/google/apis/calendar_v3.rb +1 -1
  32. data/generated/google/apis/calendar_v3/classes.rb +205 -0
  33. data/generated/google/apis/calendar_v3/representations.rb +97 -0
  34. data/generated/google/apis/classroom_v1.rb +22 -25
  35. data/generated/google/apis/classroom_v1/classes.rb +998 -907
  36. data/generated/google/apis/classroom_v1/representations.rb +240 -240
  37. data/generated/google/apis/classroom_v1/service.rb +1269 -1061
  38. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  39. data/generated/google/apis/cloudbuild_v1/classes.rb +164 -163
  40. data/generated/google/apis/cloudbuild_v1/representations.rb +31 -31
  41. data/generated/google/apis/cloudbuild_v1/service.rb +114 -114
  42. data/generated/google/apis/clouddebugger_v2.rb +1 -1
  43. data/generated/google/apis/clouddebugger_v2/classes.rb +687 -687
  44. data/generated/google/apis/clouddebugger_v2/representations.rb +147 -147
  45. data/generated/google/apis/clouddebugger_v2/service.rb +132 -132
  46. data/generated/google/apis/cloudkms_v1.rb +1 -1
  47. data/generated/google/apis/cloudkms_v1/classes.rb +231 -248
  48. data/generated/google/apis/cloudkms_v1/representations.rb +74 -74
  49. data/generated/google/apis/cloudkms_v1/service.rb +228 -228
  50. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  51. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  52. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +738 -128
  53. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +245 -23
  54. data/generated/google/apis/cloudresourcemanager_v1/service.rb +1293 -249
  55. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
  56. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +982 -372
  57. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +293 -71
  58. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +626 -277
  59. data/generated/google/apis/cloudtrace_v1.rb +1 -1
  60. data/generated/google/apis/cloudtrace_v1/classes.rb +19 -19
  61. data/generated/google/apis/cloudtrace_v1/representations.rb +2 -2
  62. data/generated/google/apis/cloudtrace_v1/service.rb +30 -30
  63. data/generated/google/apis/compute_beta.rb +1 -1
  64. data/generated/google/apis/compute_beta/classes.rb +116 -0
  65. data/generated/google/apis/compute_beta/representations.rb +48 -0
  66. data/generated/google/apis/compute_beta/service.rb +46 -1
  67. data/generated/google/apis/compute_v1.rb +1 -1
  68. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  69. data/generated/google/apis/dataflow_v1b3/classes.rb +3276 -3320
  70. data/generated/google/apis/dataflow_v1b3/representations.rb +779 -781
  71. data/generated/google/apis/dataflow_v1b3/service.rb +225 -225
  72. data/generated/google/apis/dataproc_v1.rb +1 -1
  73. data/generated/google/apis/dataproc_v1/classes.rb +1221 -1207
  74. data/generated/google/apis/dataproc_v1/representations.rb +255 -253
  75. data/generated/google/apis/dataproc_v1/service.rb +100 -100
  76. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  77. data/generated/google/apis/deploymentmanager_v2/classes.rb +5 -5
  78. data/generated/google/apis/dns_v1.rb +1 -1
  79. data/generated/google/apis/dns_v2beta1.rb +1 -1
  80. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  81. data/generated/google/apis/drive_v2.rb +1 -1
  82. data/generated/google/apis/drive_v2/classes.rb +3 -1
  83. data/generated/google/apis/drive_v3.rb +1 -1
  84. data/generated/google/apis/drive_v3/classes.rb +3 -1
  85. data/generated/google/apis/fusiontables_v2.rb +1 -1
  86. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  87. data/generated/google/apis/games_management_v1management.rb +1 -1
  88. data/generated/google/apis/games_v1.rb +1 -1
  89. data/generated/google/apis/genomics_v1.rb +7 -7
  90. data/generated/google/apis/genomics_v1/classes.rb +959 -959
  91. data/generated/google/apis/genomics_v1/representations.rb +238 -238
  92. data/generated/google/apis/genomics_v1/service.rb +996 -996
  93. data/generated/google/apis/iam_v1.rb +1 -1
  94. data/generated/google/apis/iam_v1/classes.rb +440 -440
  95. data/generated/google/apis/iam_v1/representations.rb +94 -94
  96. data/generated/google/apis/iam_v1/service.rb +170 -173
  97. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  98. data/generated/google/apis/identitytoolkit_v3/classes.rb +55 -0
  99. data/generated/google/apis/identitytoolkit_v3/representations.rb +8 -0
  100. data/generated/google/apis/kgsearch_v1/service.rb +4 -4
  101. data/generated/google/apis/language_v1beta1.rb +1 -1
  102. data/generated/google/apis/language_v1beta1/classes.rb +427 -427
  103. data/generated/google/apis/language_v1beta1/representations.rb +113 -113
  104. data/generated/google/apis/language_v1beta1/service.rb +25 -24
  105. data/generated/google/apis/licensing_v1.rb +2 -2
  106. data/generated/google/apis/licensing_v1/classes.rb +14 -2
  107. data/generated/google/apis/licensing_v1/representations.rb +2 -0
  108. data/generated/google/apis/licensing_v1/service.rb +1 -1
  109. data/generated/google/apis/logging_v2beta1.rb +1 -1
  110. data/generated/google/apis/logging_v2beta1/classes.rb +864 -864
  111. data/generated/google/apis/logging_v2beta1/representations.rb +168 -168
  112. data/generated/google/apis/logging_v2beta1/service.rb +261 -261
  113. data/generated/google/apis/manufacturers_v1.rb +1 -1
  114. data/generated/google/apis/manufacturers_v1/classes.rb +452 -105
  115. data/generated/google/apis/manufacturers_v1/representations.rb +138 -18
  116. data/generated/google/apis/manufacturers_v1/service.rb +11 -11
  117. data/generated/google/apis/mirror_v1.rb +1 -1
  118. data/generated/google/apis/monitoring_v3.rb +7 -7
  119. data/generated/google/apis/monitoring_v3/classes.rb +668 -670
  120. data/generated/google/apis/monitoring_v3/representations.rb +140 -140
  121. data/generated/google/apis/monitoring_v3/service.rb +208 -208
  122. data/generated/google/apis/partners_v2.rb +1 -1
  123. data/generated/google/apis/partners_v2/classes.rb +505 -505
  124. data/generated/google/apis/partners_v2/representations.rb +118 -118
  125. data/generated/google/apis/partners_v2/service.rb +275 -275
  126. data/generated/google/apis/people_v1.rb +1 -1
  127. data/generated/google/apis/people_v1/classes.rb +1037 -1031
  128. data/generated/google/apis/people_v1/representations.rb +247 -246
  129. data/generated/google/apis/people_v1/service.rb +20 -20
  130. data/generated/google/apis/plus_domains_v1.rb +1 -1
  131. data/generated/google/apis/plus_v1.rb +1 -1
  132. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  133. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +392 -392
  134. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +93 -93
  135. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +381 -381
  136. data/generated/google/apis/pubsub_v1.rb +4 -4
  137. data/generated/google/apis/pubsub_v1/classes.rb +131 -132
  138. data/generated/google/apis/pubsub_v1/representations.rb +35 -35
  139. data/generated/google/apis/pubsub_v1/service.rb +399 -408
  140. data/generated/google/apis/reseller_v1.rb +1 -1
  141. data/generated/google/apis/reseller_v1/classes.rb +9 -0
  142. data/generated/google/apis/reseller_v1/representations.rb +1 -0
  143. data/generated/google/apis/script_v1.rb +9 -9
  144. data/generated/google/apis/script_v1/classes.rb +110 -110
  145. data/generated/google/apis/script_v1/representations.rb +26 -26
  146. data/generated/google/apis/sheets_v4.rb +4 -4
  147. data/generated/google/apis/sheets_v4/classes.rb +4329 -4329
  148. data/generated/google/apis/sheets_v4/representations.rb +856 -856
  149. data/generated/google/apis/sheets_v4/service.rb +106 -106
  150. data/generated/google/apis/slides_v1.rb +4 -4
  151. data/generated/google/apis/slides_v1/classes.rb +2923 -2841
  152. data/generated/google/apis/slides_v1/representations.rb +722 -691
  153. data/generated/google/apis/slides_v1/service.rb +58 -15
  154. data/generated/google/apis/speech_v1beta1.rb +1 -1
  155. data/generated/google/apis/speech_v1beta1/classes.rb +191 -191
  156. data/generated/google/apis/speech_v1beta1/representations.rb +57 -57
  157. data/generated/google/apis/speech_v1beta1/service.rb +70 -70
  158. data/generated/google/apis/storage_v1.rb +1 -1
  159. data/generated/google/apis/storage_v1/classes.rb +151 -0
  160. data/generated/google/apis/storage_v1/representations.rb +45 -0
  161. data/generated/google/apis/storage_v1/service.rb +248 -0
  162. data/generated/google/apis/vision_v1.rb +1 -1
  163. data/generated/google/apis/vision_v1/classes.rb +1227 -1221
  164. data/generated/google/apis/vision_v1/representations.rb +217 -215
  165. data/generated/google/apis/webmasters_v3.rb +1 -1
  166. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  167. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  168. data/generated/google/apis/youtube_partner_v1/classes.rb +78 -0
  169. data/generated/google/apis/youtube_partner_v1/representations.rb +34 -0
  170. data/generated/google/apis/youtube_partner_v1/service.rb +40 -0
  171. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  172. data/generated/google/apis/youtubereporting_v1/classes.rb +65 -65
  173. data/generated/google/apis/youtubereporting_v1/representations.rb +18 -18
  174. data/generated/google/apis/youtubereporting_v1/service.rb +111 -111
  175. data/lib/google/apis/version.rb +1 -1
  176. metadata +2 -2
@@ -28,7 +28,7 @@ module Google
28
28
  # @see https://cloud.google.com/trace
29
29
  module CloudtraceV1
30
30
  VERSION = 'V1'
31
- REVISION = '20170225'
31
+ REVISION = '20170320'
32
32
 
33
33
  # Read Trace data for a project or application
34
34
  AUTH_TRACE_READONLY = 'https://www.googleapis.com/auth/trace.readonly'
@@ -30,23 +30,6 @@ module Google
30
30
  class TraceSpan
31
31
  include Google::Apis::Core::Hashable
32
32
 
33
- # Collection of labels associated with the span. Label keys must be less than
34
- # 128 bytes. Label values must be less than 16 kilobytes.
35
- # Corresponds to the JSON property `labels`
36
- # @return [Hash<String,String>]
37
- attr_accessor :labels
38
-
39
- # Name of the span. Must be less than 128 bytes. The span name is sanitized
40
- # and displayed in the Stackdriver Trace tool in the
41
- # `% dynamic print site_values.console_name %`.
42
- # The name may be a method name or some other per-call site name.
43
- # For the same executable and the same call point, a best practice is
44
- # to use a consistent name, which makes it easier to correlate
45
- # cross-trace spans.
46
- # Corresponds to the JSON property `name`
47
- # @return [String]
48
- attr_accessor :name
49
-
50
33
  # Identifier for the span. Must be a 64-bit integer other than 0 and
51
34
  # unique within a trace.
52
35
  # Corresponds to the JSON property `spanId`
@@ -75,19 +58,36 @@ module Google
75
58
  # @return [String]
76
59
  attr_accessor :kind
77
60
 
61
+ # Collection of labels associated with the span. Label keys must be less than
62
+ # 128 bytes. Label values must be less than 16 kilobytes.
63
+ # Corresponds to the JSON property `labels`
64
+ # @return [Hash<String,String>]
65
+ attr_accessor :labels
66
+
67
+ # Name of the span. Must be less than 128 bytes. The span name is sanitized
68
+ # and displayed in the Stackdriver Trace tool in the
69
+ # `% dynamic print site_values.console_name %`.
70
+ # The name may be a method name or some other per-call site name.
71
+ # For the same executable and the same call point, a best practice is
72
+ # to use a consistent name, which makes it easier to correlate
73
+ # cross-trace spans.
74
+ # Corresponds to the JSON property `name`
75
+ # @return [String]
76
+ attr_accessor :name
77
+
78
78
  def initialize(**args)
79
79
  update!(**args)
80
80
  end
81
81
 
82
82
  # Update properties of this object
83
83
  def update!(**args)
84
- @labels = args[:labels] if args.key?(:labels)
85
- @name = args[:name] if args.key?(:name)
86
84
  @span_id = args[:span_id] if args.key?(:span_id)
87
85
  @parent_span_id = args[:parent_span_id] if args.key?(:parent_span_id)
88
86
  @end_time = args[:end_time] if args.key?(:end_time)
89
87
  @start_time = args[:start_time] if args.key?(:start_time)
90
88
  @kind = args[:kind] if args.key?(:kind)
89
+ @labels = args[:labels] if args.key?(:labels)
90
+ @name = args[:name] if args.key?(:name)
91
91
  end
92
92
  end
93
93
 
@@ -55,13 +55,13 @@ module Google
55
55
  class TraceSpan
56
56
  # @private
57
57
  class Representation < Google::Apis::Core::JsonRepresentation
58
- hash :labels, as: 'labels'
59
- property :name, as: 'name'
60
58
  property :span_id, as: 'spanId'
61
59
  property :parent_span_id, as: 'parentSpanId'
62
60
  property :end_time, as: 'endTime'
63
61
  property :start_time, as: 'startTime'
64
62
  property :kind, as: 'kind'
63
+ hash :labels, as: 'labels'
64
+ property :name, as: 'name'
65
65
  end
66
66
  end
67
67
 
@@ -35,16 +35,16 @@ module Google
35
35
  #
36
36
  # @see https://cloud.google.com/trace
37
37
  class CloudTraceService < Google::Apis::Core::BaseService
38
- # @return [String]
39
- # Available to use for quota purposes for server-side applications. Can be any
40
- # arbitrary string assigned to a user, but should not exceed 40 characters.
41
- attr_accessor :quota_user
42
-
43
38
  # @return [String]
44
39
  # API key. Your API key identifies your project and provides you with API access,
45
40
  # quota, and reports. Required unless you provide an OAuth 2.0 token.
46
41
  attr_accessor :key
47
42
 
43
+ # @return [String]
44
+ # Available to use for quota purposes for server-side applications. Can be any
45
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
46
+ attr_accessor :quota_user
47
+
48
48
  def initialize
49
49
  super('https://cloudtrace.googleapis.com/', '')
50
50
  end
@@ -57,11 +57,11 @@ module Google
57
57
  # @param [String] project_id
58
58
  # ID of the Cloud project where the trace data is stored.
59
59
  # @param [Google::Apis::CloudtraceV1::Traces] traces_object
60
+ # @param [String] fields
61
+ # Selector specifying which fields to include in a partial response.
60
62
  # @param [String] quota_user
61
63
  # Available to use for quota purposes for server-side applications. Can be any
62
64
  # arbitrary string assigned to a user, but should not exceed 40 characters.
63
- # @param [String] fields
64
- # Selector specifying which fields to include in a partial response.
65
65
  # @param [Google::Apis::RequestOptions] options
66
66
  # Request-specific options
67
67
  #
@@ -74,21 +74,32 @@ module Google
74
74
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
75
75
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
76
76
  # @raise [Google::Apis::AuthorizationError] Authorization is required
77
- def patch_project_traces(project_id, traces_object = nil, quota_user: nil, fields: nil, options: nil, &block)
77
+ def patch_project_traces(project_id, traces_object = nil, fields: nil, quota_user: nil, options: nil, &block)
78
78
  command = make_simple_command(:patch, 'v1/projects/{projectId}/traces', options)
79
79
  command.request_representation = Google::Apis::CloudtraceV1::Traces::Representation
80
80
  command.request_object = traces_object
81
81
  command.response_representation = Google::Apis::CloudtraceV1::Empty::Representation
82
82
  command.response_class = Google::Apis::CloudtraceV1::Empty
83
83
  command.params['projectId'] = project_id unless project_id.nil?
84
- command.query['quotaUser'] = quota_user unless quota_user.nil?
85
84
  command.query['fields'] = fields unless fields.nil?
85
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
86
86
  execute_or_queue_command(command, &block)
87
87
  end
88
88
 
89
89
  # Returns of a list of traces that match the specified filter conditions.
90
90
  # @param [String] project_id
91
91
  # ID of the Cloud project where the trace data is stored.
92
+ # @param [String] order_by
93
+ # Field used to sort the returned traces. Optional.
94
+ # Can be one of the following:
95
+ # * `trace_id`
96
+ # * `name` (`name` field of root span in the trace)
97
+ # * `duration` (difference between `end_time` and `start_time` fields of
98
+ # the root span)
99
+ # * `start` (`start_time` field of the root span)
100
+ # Descending order can be specified by appending `desc` to the sort field
101
+ # (for example, `name desc`).
102
+ # Only one sort field is permitted.
92
103
  # @param [String] filter
93
104
  # An optional filter for the request.
94
105
  # @param [String] end_time
@@ -107,22 +118,11 @@ module Google
107
118
  # @param [String] view
108
119
  # Type of data returned for traces in the list. Optional. Default is
109
120
  # `MINIMAL`.
110
- # @param [String] order_by
111
- # Field used to sort the returned traces. Optional.
112
- # Can be one of the following:
113
- # * `trace_id`
114
- # * `name` (`name` field of root span in the trace)
115
- # * `duration` (difference between `end_time` and `start_time` fields of
116
- # the root span)
117
- # * `start` (`start_time` field of the root span)
118
- # Descending order can be specified by appending `desc` to the sort field
119
- # (for example, `name desc`).
120
- # Only one sort field is permitted.
121
+ # @param [String] fields
122
+ # Selector specifying which fields to include in a partial response.
121
123
  # @param [String] quota_user
122
124
  # Available to use for quota purposes for server-side applications. Can be any
123
125
  # arbitrary string assigned to a user, but should not exceed 40 characters.
124
- # @param [String] fields
125
- # Selector specifying which fields to include in a partial response.
126
126
  # @param [Google::Apis::RequestOptions] options
127
127
  # Request-specific options
128
128
  #
@@ -135,20 +135,20 @@ module Google
135
135
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
136
136
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
137
137
  # @raise [Google::Apis::AuthorizationError] Authorization is required
138
- def list_project_traces(project_id, filter: nil, end_time: nil, start_time: nil, page_token: nil, page_size: nil, view: nil, order_by: nil, quota_user: nil, fields: nil, options: nil, &block)
138
+ def list_project_traces(project_id, order_by: nil, filter: nil, end_time: nil, start_time: nil, page_token: nil, page_size: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
139
139
  command = make_simple_command(:get, 'v1/projects/{projectId}/traces', options)
140
140
  command.response_representation = Google::Apis::CloudtraceV1::ListTracesResponse::Representation
141
141
  command.response_class = Google::Apis::CloudtraceV1::ListTracesResponse
142
142
  command.params['projectId'] = project_id unless project_id.nil?
143
+ command.query['orderBy'] = order_by unless order_by.nil?
143
144
  command.query['filter'] = filter unless filter.nil?
144
145
  command.query['endTime'] = end_time unless end_time.nil?
145
146
  command.query['startTime'] = start_time unless start_time.nil?
146
147
  command.query['pageToken'] = page_token unless page_token.nil?
147
148
  command.query['pageSize'] = page_size unless page_size.nil?
148
149
  command.query['view'] = view unless view.nil?
149
- command.query['orderBy'] = order_by unless order_by.nil?
150
- command.query['quotaUser'] = quota_user unless quota_user.nil?
151
150
  command.query['fields'] = fields unless fields.nil?
151
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
152
152
  execute_or_queue_command(command, &block)
153
153
  end
154
154
 
@@ -157,11 +157,11 @@ module Google
157
157
  # ID of the Cloud project where the trace data is stored.
158
158
  # @param [String] trace_id
159
159
  # ID of the trace to return.
160
+ # @param [String] fields
161
+ # Selector specifying which fields to include in a partial response.
160
162
  # @param [String] quota_user
161
163
  # Available to use for quota purposes for server-side applications. Can be any
162
164
  # arbitrary string assigned to a user, but should not exceed 40 characters.
163
- # @param [String] fields
164
- # Selector specifying which fields to include in a partial response.
165
165
  # @param [Google::Apis::RequestOptions] options
166
166
  # Request-specific options
167
167
  #
@@ -174,22 +174,22 @@ module Google
174
174
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
175
175
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
176
176
  # @raise [Google::Apis::AuthorizationError] Authorization is required
177
- def get_project_trace(project_id, trace_id, quota_user: nil, fields: nil, options: nil, &block)
177
+ def get_project_trace(project_id, trace_id, fields: nil, quota_user: nil, options: nil, &block)
178
178
  command = make_simple_command(:get, 'v1/projects/{projectId}/traces/{traceId}', options)
179
179
  command.response_representation = Google::Apis::CloudtraceV1::Trace::Representation
180
180
  command.response_class = Google::Apis::CloudtraceV1::Trace
181
181
  command.params['projectId'] = project_id unless project_id.nil?
182
182
  command.params['traceId'] = trace_id unless trace_id.nil?
183
- command.query['quotaUser'] = quota_user unless quota_user.nil?
184
183
  command.query['fields'] = fields unless fields.nil?
184
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
185
185
  execute_or_queue_command(command, &block)
186
186
  end
187
187
 
188
188
  protected
189
189
 
190
190
  def apply_command_defaults(command)
191
- command.query['quotaUser'] = quota_user unless quota_user.nil?
192
191
  command.query['key'] = key unless key.nil?
192
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
193
193
  end
194
194
  end
195
195
  end
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/compute/docs/reference/latest/
26
26
  module ComputeBeta
27
27
  VERSION = 'Beta'
28
- REVISION = '20170224'
28
+ REVISION = '20170302'
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'
@@ -3374,12 +3374,32 @@ module Google
3374
3374
  # @return [String]
3375
3375
  attr_accessor :creation_timestamp
3376
3376
 
3377
+ # The list of DENY rules specified by this firewall. Each rule specifies a
3378
+ # protocol and port-range tuple that describes a permitted connection.
3379
+ # Corresponds to the JSON property `denied`
3380
+ # @return [Array<Google::Apis::ComputeBeta::Firewall::Denied>]
3381
+ attr_accessor :denied
3382
+
3377
3383
  # An optional description of this resource. Provide this property when you
3378
3384
  # create the resource.
3379
3385
  # Corresponds to the JSON property `description`
3380
3386
  # @return [String]
3381
3387
  attr_accessor :description
3382
3388
 
3389
+ # If destination ranges are specified, the firewall will apply only to traffic
3390
+ # that has destination IP address in these ranges. These ranges must be
3391
+ # expressed in CIDR format. Only IPv4 is supported.
3392
+ # Corresponds to the JSON property `destinationRanges`
3393
+ # @return [Array<String>]
3394
+ attr_accessor :destination_ranges
3395
+
3396
+ # Direction of traffic to which this firewall applies; default is INGRESS. Note:
3397
+ # For INGRESS traffic, it is NOT supported to specify destinationRanges; For
3398
+ # EGRESS traffic, it is NOT supported to specify sourceRanges OR sourceTags.
3399
+ # Corresponds to the JSON property `direction`
3400
+ # @return [String]
3401
+ attr_accessor :direction
3402
+
3383
3403
  # [Output Only] The unique identifier for the resource. This identifier is
3384
3404
  # defined by the server.
3385
3405
  # Corresponds to the JSON property `id`
@@ -3414,6 +3434,15 @@ module Google
3414
3434
  # @return [String]
3415
3435
  attr_accessor :network
3416
3436
 
3437
+ # Priority for this rule. This is an integer between 0 and 65535, both inclusive.
3438
+ # When not specified, the value assumed is 1000. Relative priorities determine
3439
+ # precedence of conflicting rules. Lower value of priority implies higher
3440
+ # precedence (eg, a rule with priority 0 has higher precedence than a rule with
3441
+ # priority 1). DENY rules take precedence over ALLOW rules having equal priority.
3442
+ # Corresponds to the JSON property `priority`
3443
+ # @return [Fixnum]
3444
+ attr_accessor :priority
3445
+
3417
3446
  # [Output Only] Server-defined URL for the resource.
3418
3447
  # Corresponds to the JSON property `selfLink`
3419
3448
  # @return [String]
@@ -3458,11 +3487,15 @@ module Google
3458
3487
  def update!(**args)
3459
3488
  @allowed = args[:allowed] if args.key?(:allowed)
3460
3489
  @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
3490
+ @denied = args[:denied] if args.key?(:denied)
3461
3491
  @description = args[:description] if args.key?(:description)
3492
+ @destination_ranges = args[:destination_ranges] if args.key?(:destination_ranges)
3493
+ @direction = args[:direction] if args.key?(:direction)
3462
3494
  @id = args[:id] if args.key?(:id)
3463
3495
  @kind = args[:kind] if args.key?(:kind)
3464
3496
  @name = args[:name] if args.key?(:name)
3465
3497
  @network = args[:network] if args.key?(:network)
3498
+ @priority = args[:priority] if args.key?(:priority)
3466
3499
  @self_link = args[:self_link] if args.key?(:self_link)
3467
3500
  @source_ranges = args[:source_ranges] if args.key?(:source_ranges)
3468
3501
  @source_tags = args[:source_tags] if args.key?(:source_tags)
@@ -3499,6 +3532,37 @@ module Google
3499
3532
  @ports = args[:ports] if args.key?(:ports)
3500
3533
  end
3501
3534
  end
3535
+
3536
+ #
3537
+ class Denied
3538
+ include Google::Apis::Core::Hashable
3539
+
3540
+ # The IP protocol to which this rule applies. The protocol type is required when
3541
+ # creating a firewall rule. This value can either be one of the following well
3542
+ # known protocol strings (tcp, udp, icmp, esp, ah, sctp), or the IP protocol
3543
+ # number.
3544
+ # Corresponds to the JSON property `IPProtocol`
3545
+ # @return [String]
3546
+ attr_accessor :ip_protocol
3547
+
3548
+ # An optional list of ports to which this rule applies. This field is only
3549
+ # applicable for UDP or TCP protocol. Each entry must be either an integer or a
3550
+ # range. If not specified, this rule applies to connections through any port.
3551
+ # Example inputs include: ["22"], ["80","443"], and ["12345-12349"].
3552
+ # Corresponds to the JSON property `ports`
3553
+ # @return [Array<String>]
3554
+ attr_accessor :ports
3555
+
3556
+ def initialize(**args)
3557
+ update!(**args)
3558
+ end
3559
+
3560
+ # Update properties of this object
3561
+ def update!(**args)
3562
+ @ip_protocol = args[:ip_protocol] if args.key?(:ip_protocol)
3563
+ @ports = args[:ports] if args.key?(:ports)
3564
+ end
3565
+ end
3502
3566
  end
3503
3567
 
3504
3568
  # Contains a list of firewalls.
@@ -7142,6 +7206,11 @@ module Google
7142
7206
  # @return [Google::Apis::ComputeBeta::ManagedInstanceLastAttempt]
7143
7207
  attr_accessor :last_attempt
7144
7208
 
7209
+ # [Output Only] Intended version of this instance.
7210
+ # Corresponds to the JSON property `version`
7211
+ # @return [Google::Apis::ComputeBeta::ManagedInstanceVersion]
7212
+ attr_accessor :version
7213
+
7145
7214
  def initialize(**args)
7146
7215
  update!(**args)
7147
7216
  end
@@ -7153,6 +7222,7 @@ module Google
7153
7222
  @instance = args[:instance] if args.key?(:instance)
7154
7223
  @instance_status = args[:instance_status] if args.key?(:instance_status)
7155
7224
  @last_attempt = args[:last_attempt] if args.key?(:last_attempt)
7225
+ @version = args[:version] if args.key?(:version)
7156
7226
  end
7157
7227
  end
7158
7228
 
@@ -7228,6 +7298,32 @@ module Google
7228
7298
  end
7229
7299
  end
7230
7300
 
7301
+ #
7302
+ class ManagedInstanceVersion
7303
+ include Google::Apis::Core::Hashable
7304
+
7305
+ # [Output Only] The intended template of the instance. This field is empty when
7306
+ # current_action is one of ` DELETING, ABANDONING `.
7307
+ # Corresponds to the JSON property `instanceTemplate`
7308
+ # @return [String]
7309
+ attr_accessor :instance_template
7310
+
7311
+ # [Output Only] Name of the version.
7312
+ # Corresponds to the JSON property `name`
7313
+ # @return [String]
7314
+ attr_accessor :name
7315
+
7316
+ def initialize(**args)
7317
+ update!(**args)
7318
+ end
7319
+
7320
+ # Update properties of this object
7321
+ def update!(**args)
7322
+ @instance_template = args[:instance_template] if args.key?(:instance_template)
7323
+ @name = args[:name] if args.key?(:name)
7324
+ end
7325
+ end
7326
+
7231
7327
  # A metadata key/value entry.
7232
7328
  class Metadata
7233
7329
  include Google::Apis::Core::Hashable
@@ -10729,6 +10825,26 @@ module Google
10729
10825
  end
10730
10826
  end
10731
10827
 
10828
+ #
10829
+ class SubnetworksSetPrivateIpGoogleAccessRequest
10830
+ include Google::Apis::Core::Hashable
10831
+
10832
+ #
10833
+ # Corresponds to the JSON property `privateIpGoogleAccess`
10834
+ # @return [Boolean]
10835
+ attr_accessor :private_ip_google_access
10836
+ alias_method :private_ip_google_access?, :private_ip_google_access
10837
+
10838
+ def initialize(**args)
10839
+ update!(**args)
10840
+ end
10841
+
10842
+ # Update properties of this object
10843
+ def update!(**args)
10844
+ @private_ip_google_access = args[:private_ip_google_access] if args.key?(:private_ip_google_access)
10845
+ end
10846
+ end
10847
+
10732
10848
  #
10733
10849
  class TcpHealthCheck
10734
10850
  include Google::Apis::Core::Hashable
@@ -450,6 +450,12 @@ module Google
450
450
 
451
451
  include Google::Apis::Core::JsonObjectSupport
452
452
  end
453
+
454
+ class Denied
455
+ class Representation < Google::Apis::Core::JsonRepresentation; end
456
+
457
+ include Google::Apis::Core::JsonObjectSupport
458
+ end
453
459
 
454
460
  include Google::Apis::Core::JsonObjectSupport
455
461
  end
@@ -934,6 +940,12 @@ module Google
934
940
  include Google::Apis::Core::JsonObjectSupport
935
941
  end
936
942
 
943
+ class ManagedInstanceVersion
944
+ class Representation < Google::Apis::Core::JsonRepresentation; end
945
+
946
+ include Google::Apis::Core::JsonObjectSupport
947
+ end
948
+
937
949
  class Metadata
938
950
  class Representation < Google::Apis::Core::JsonRepresentation; end
939
951
 
@@ -1408,6 +1420,12 @@ module Google
1408
1420
  include Google::Apis::Core::JsonObjectSupport
1409
1421
  end
1410
1422
 
1423
+ class SubnetworksSetPrivateIpGoogleAccessRequest
1424
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1425
+
1426
+ include Google::Apis::Core::JsonObjectSupport
1427
+ end
1428
+
1411
1429
  class TcpHealthCheck
1412
1430
  class Representation < Google::Apis::Core::JsonRepresentation; end
1413
1431
 
@@ -2591,11 +2609,16 @@ module Google
2591
2609
  collection :allowed, as: 'allowed', class: Google::Apis::ComputeBeta::Firewall::Allowed, decorator: Google::Apis::ComputeBeta::Firewall::Allowed::Representation
2592
2610
 
2593
2611
  property :creation_timestamp, as: 'creationTimestamp'
2612
+ collection :denied, as: 'denied', class: Google::Apis::ComputeBeta::Firewall::Denied, decorator: Google::Apis::ComputeBeta::Firewall::Denied::Representation
2613
+
2594
2614
  property :description, as: 'description'
2615
+ collection :destination_ranges, as: 'destinationRanges'
2616
+ property :direction, as: 'direction'
2595
2617
  property :id, as: 'id'
2596
2618
  property :kind, as: 'kind'
2597
2619
  property :name, as: 'name'
2598
2620
  property :network, as: 'network'
2621
+ property :priority, as: 'priority'
2599
2622
  property :self_link, as: 'selfLink'
2600
2623
  collection :source_ranges, as: 'sourceRanges'
2601
2624
  collection :source_tags, as: 'sourceTags'
@@ -2609,6 +2632,14 @@ module Google
2609
2632
  collection :ports, as: 'ports'
2610
2633
  end
2611
2634
  end
2635
+
2636
+ class Denied
2637
+ # @private
2638
+ class Representation < Google::Apis::Core::JsonRepresentation
2639
+ property :ip_protocol, as: 'IPProtocol'
2640
+ collection :ports, as: 'ports'
2641
+ end
2642
+ end
2612
2643
  end
2613
2644
 
2614
2645
  class FirewallList
@@ -3497,6 +3528,8 @@ module Google
3497
3528
  property :instance_status, as: 'instanceStatus'
3498
3529
  property :last_attempt, as: 'lastAttempt', class: Google::Apis::ComputeBeta::ManagedInstanceLastAttempt, decorator: Google::Apis::ComputeBeta::ManagedInstanceLastAttempt::Representation
3499
3530
 
3531
+ property :version, as: 'version', class: Google::Apis::ComputeBeta::ManagedInstanceVersion, decorator: Google::Apis::ComputeBeta::ManagedInstanceVersion::Representation
3532
+
3500
3533
  end
3501
3534
  end
3502
3535
 
@@ -3525,6 +3558,14 @@ module Google
3525
3558
  end
3526
3559
  end
3527
3560
 
3561
+ class ManagedInstanceVersion
3562
+ # @private
3563
+ class Representation < Google::Apis::Core::JsonRepresentation
3564
+ property :instance_template, as: 'instanceTemplate'
3565
+ property :name, as: 'name'
3566
+ end
3567
+ end
3568
+
3528
3569
  class Metadata
3529
3570
  # @private
3530
3571
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -4402,6 +4443,13 @@ module Google
4402
4443
  end
4403
4444
  end
4404
4445
 
4446
+ class SubnetworksSetPrivateIpGoogleAccessRequest
4447
+ # @private
4448
+ class Representation < Google::Apis::Core::JsonRepresentation
4449
+ property :private_ip_google_access, as: 'privateIpGoogleAccess'
4450
+ end
4451
+ end
4452
+
4405
4453
  class TcpHealthCheck
4406
4454
  # @private
4407
4455
  class Representation < Google::Apis::Core::JsonRepresentation