google-api-client 0.10.0 → 0.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (193) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/README.md +1 -1
  4. data/api_names.yaml +37747 -36512
  5. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  6. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1016 -114
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +426 -22
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +481 -95
  9. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  10. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +27 -10
  11. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +1 -0
  12. data/generated/google/apis/admin_reports_v1.rb +2 -2
  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/analyticsreporting_v4.rb +4 -4
  17. data/generated/google/apis/analyticsreporting_v4/classes.rb +428 -428
  18. data/generated/google/apis/analyticsreporting_v4/representations.rb +108 -108
  19. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  20. data/generated/google/apis/androidenterprise_v1/classes.rb +60 -66
  21. data/generated/google/apis/androidenterprise_v1/service.rb +12 -11
  22. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  23. data/generated/google/apis/androidpublisher_v2/classes.rb +7 -0
  24. data/generated/google/apis/androidpublisher_v2/representations.rb +1 -0
  25. data/generated/google/apis/androidpublisher_v2/service.rb +1 -1
  26. data/generated/google/apis/appsactivity_v1.rb +3 -3
  27. data/generated/google/apis/appsactivity_v1/service.rb +1 -1
  28. data/generated/google/apis/appstate_v1.rb +1 -1
  29. data/generated/google/apis/bigquery_v2.rb +1 -1
  30. data/generated/google/apis/bigquery_v2/classes.rb +34 -8
  31. data/generated/google/apis/bigquery_v2/representations.rb +15 -0
  32. data/generated/google/apis/calendar_v3.rb +1 -1
  33. data/generated/google/apis/calendar_v3/classes.rb +3 -5
  34. data/generated/google/apis/classroom_v1.rb +25 -22
  35. data/generated/google/apis/classroom_v1/classes.rb +910 -1001
  36. data/generated/google/apis/classroom_v1/representations.rb +240 -240
  37. data/generated/google/apis/classroom_v1/service.rb +1064 -1272
  38. data/generated/google/apis/cloudbilling_v1.rb +3 -3
  39. data/generated/google/apis/cloudbilling_v1/classes.rb +76 -75
  40. data/generated/google/apis/cloudbilling_v1/representations.rb +17 -17
  41. data/generated/google/apis/cloudbilling_v1/service.rb +117 -110
  42. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  43. data/generated/google/apis/cloudbuild_v1/classes.rb +238 -238
  44. data/generated/google/apis/cloudbuild_v1/representations.rb +48 -48
  45. data/generated/google/apis/cloudbuild_v1/service.rb +176 -176
  46. data/generated/google/apis/clouddebugger_v2.rb +4 -4
  47. data/generated/google/apis/clouddebugger_v2/classes.rb +315 -315
  48. data/generated/google/apis/clouddebugger_v2/representations.rb +90 -90
  49. data/generated/google/apis/clouddebugger_v2/service.rb +152 -152
  50. data/generated/google/apis/cloudkms_v1.rb +35 -0
  51. data/generated/google/apis/cloudkms_v1/classes.rb +1039 -0
  52. data/generated/google/apis/cloudkms_v1/representations.rb +448 -0
  53. data/generated/google/apis/cloudkms_v1/service.rb +933 -0
  54. data/generated/google/apis/cloudkms_v1beta1.rb +1 -1
  55. data/generated/google/apis/cloudkms_v1beta1/classes.rb +645 -605
  56. data/generated/google/apis/cloudkms_v1beta1/representations.rb +136 -136
  57. data/generated/google/apis/cloudkms_v1beta1/service.rb +258 -264
  58. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  59. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  60. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +677 -456
  61. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +154 -89
  62. data/generated/google/apis/cloudresourcemanager_v1/service.rb +380 -279
  63. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
  64. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +247 -114
  65. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +72 -40
  66. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +202 -208
  67. data/generated/google/apis/cloudtrace_v1.rb +4 -4
  68. data/generated/google/apis/cloudtrace_v1/classes.rb +39 -39
  69. data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
  70. data/generated/google/apis/cloudtrace_v1/service.rb +18 -18
  71. data/generated/google/apis/compute_beta.rb +1 -1
  72. data/generated/google/apis/compute_beta/classes.rb +813 -82
  73. data/generated/google/apis/compute_beta/representations.rb +305 -0
  74. data/generated/google/apis/compute_beta/service.rb +971 -180
  75. data/generated/google/apis/compute_v1.rb +1 -1
  76. data/generated/google/apis/compute_v1/classes.rb +147 -21
  77. data/generated/google/apis/compute_v1/representations.rb +38 -0
  78. data/generated/google/apis/compute_v1/service.rb +347 -65
  79. data/generated/google/apis/content_v2.rb +1 -1
  80. data/generated/google/apis/content_v2/classes.rb +2 -1
  81. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  82. data/generated/google/apis/dataflow_v1b3/classes.rb +3352 -3110
  83. data/generated/google/apis/dataflow_v1b3/representations.rb +812 -730
  84. data/generated/google/apis/dataflow_v1b3/service.rb +264 -183
  85. data/generated/google/apis/dataproc_v1.rb +1 -1
  86. data/generated/google/apis/dataproc_v1/classes.rb +1200 -1164
  87. data/generated/google/apis/dataproc_v1/representations.rb +220 -204
  88. data/generated/google/apis/dataproc_v1/service.rb +299 -299
  89. data/generated/google/apis/datastore_v1.rb +4 -4
  90. data/generated/google/apis/datastore_v1/classes.rb +688 -688
  91. data/generated/google/apis/datastore_v1/representations.rb +167 -167
  92. data/generated/google/apis/datastore_v1/service.rb +68 -68
  93. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  94. data/generated/google/apis/deploymentmanager_v2/classes.rb +13 -3
  95. data/generated/google/apis/dns_v1.rb +1 -1
  96. data/generated/google/apis/dns_v2beta1.rb +1 -1
  97. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  98. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +1 -1
  99. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  100. data/generated/google/apis/drive_v2.rb +1 -1
  101. data/generated/google/apis/drive_v2/classes.rb +487 -15
  102. data/generated/google/apis/drive_v2/representations.rb +120 -0
  103. data/generated/google/apis/drive_v2/service.rb +355 -38
  104. data/generated/google/apis/drive_v3.rb +1 -1
  105. data/generated/google/apis/drive_v3/classes.rb +416 -14
  106. data/generated/google/apis/drive_v3/representations.rb +99 -0
  107. data/generated/google/apis/drive_v3/service.rb +315 -28
  108. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  109. data/generated/google/apis/games_management_v1management.rb +1 -1
  110. data/generated/google/apis/games_v1.rb +1 -1
  111. data/generated/google/apis/genomics_v1.rb +7 -7
  112. data/generated/google/apis/genomics_v1/classes.rb +2301 -2301
  113. data/generated/google/apis/genomics_v1/representations.rb +239 -239
  114. data/generated/google/apis/genomics_v1/service.rb +599 -599
  115. data/generated/google/apis/gmail_v1.rb +2 -2
  116. data/generated/google/apis/gmail_v1/service.rb +18 -1
  117. data/generated/google/apis/groupssettings_v1.rb +1 -1
  118. data/generated/google/apis/iam_v1.rb +1 -1
  119. data/generated/google/apis/iam_v1/classes.rb +440 -440
  120. data/generated/google/apis/iam_v1/representations.rb +96 -96
  121. data/generated/google/apis/iam_v1/service.rb +150 -150
  122. data/generated/google/apis/kgsearch_v1/service.rb +13 -13
  123. data/generated/google/apis/language_v1beta1.rb +1 -1
  124. data/generated/google/apis/language_v1beta1/classes.rb +235 -235
  125. data/generated/google/apis/language_v1beta1/representations.rb +73 -73
  126. data/generated/google/apis/language_v1beta1/service.rb +49 -49
  127. data/generated/google/apis/licensing_v1.rb +1 -1
  128. data/generated/google/apis/logging_v2beta1.rb +1 -1
  129. data/generated/google/apis/logging_v2beta1/classes.rb +888 -879
  130. data/generated/google/apis/logging_v2beta1/representations.rb +129 -129
  131. data/generated/google/apis/logging_v2beta1/service.rb +315 -316
  132. data/generated/google/apis/manufacturers_v1/classes.rb +139 -139
  133. data/generated/google/apis/manufacturers_v1/representations.rb +30 -30
  134. data/generated/google/apis/manufacturers_v1/service.rb +32 -32
  135. data/generated/google/apis/monitoring_v3.rb +4 -4
  136. data/generated/google/apis/monitoring_v3/classes.rb +229 -229
  137. data/generated/google/apis/monitoring_v3/representations.rb +45 -45
  138. data/generated/google/apis/monitoring_v3/service.rb +141 -141
  139. data/generated/google/apis/partners_v2.rb +3 -3
  140. data/generated/google/apis/partners_v2/classes.rb +1837 -483
  141. data/generated/google/apis/partners_v2/representations.rb +614 -157
  142. data/generated/google/apis/partners_v2/service.rb +881 -150
  143. data/generated/google/apis/people_v1.rb +1 -1
  144. data/generated/google/apis/people_v1/classes.rb +517 -465
  145. data/generated/google/apis/people_v1/representations.rb +138 -107
  146. data/generated/google/apis/people_v1/service.rb +56 -49
  147. data/generated/google/apis/plus_domains_v1.rb +1 -1
  148. data/generated/google/apis/plus_v1.rb +1 -1
  149. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  150. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +529 -458
  151. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +98 -97
  152. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +494 -370
  153. data/generated/google/apis/pubsub_v1.rb +4 -4
  154. data/generated/google/apis/pubsub_v1/classes.rb +203 -203
  155. data/generated/google/apis/pubsub_v1/representations.rb +65 -65
  156. data/generated/google/apis/pubsub_v1/service.rb +226 -217
  157. data/generated/google/apis/reseller_v1.rb +1 -1
  158. data/generated/google/apis/reseller_v1/classes.rb +213 -61
  159. data/generated/google/apis/reseller_v1/representations.rb +27 -0
  160. data/generated/google/apis/reseller_v1/service.rb +240 -47
  161. data/generated/google/apis/script_v1.rb +14 -14
  162. data/generated/google/apis/script_v1/classes.rb +95 -95
  163. data/generated/google/apis/script_v1/representations.rb +25 -25
  164. data/generated/google/apis/sheets_v4.rb +1 -1
  165. data/generated/google/apis/sheets_v4/classes.rb +4346 -4300
  166. data/generated/google/apis/sheets_v4/representations.rb +853 -837
  167. data/generated/google/apis/sheets_v4/service.rb +32 -32
  168. data/generated/google/apis/slides_v1.rb +1 -1
  169. data/generated/google/apis/slides_v1/classes.rb +804 -748
  170. data/generated/google/apis/slides_v1/representations.rb +204 -187
  171. data/generated/google/apis/slides_v1/service.rb +16 -16
  172. data/generated/google/apis/speech_v1beta1.rb +1 -1
  173. data/generated/google/apis/speech_v1beta1/classes.rb +57 -57
  174. data/generated/google/apis/speech_v1beta1/representations.rb +19 -19
  175. data/generated/google/apis/speech_v1beta1/service.rb +66 -66
  176. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  177. data/generated/google/apis/sqladmin_v1beta4/classes.rb +32 -7
  178. data/generated/google/apis/sqladmin_v1beta4/representations.rb +16 -0
  179. data/generated/google/apis/sqladmin_v1beta4/service.rb +9 -2
  180. data/generated/google/apis/storage_v1.rb +1 -1
  181. data/generated/google/apis/storage_v1/service.rb +10 -7
  182. data/generated/google/apis/vision_v1.rb +1 -1
  183. data/generated/google/apis/vision_v1/classes.rb +1393 -865
  184. data/generated/google/apis/vision_v1/representations.rb +367 -102
  185. data/generated/google/apis/vision_v1/service.rb +4 -4
  186. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  187. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  188. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  189. data/generated/google/apis/youtubereporting_v1/classes.rb +93 -93
  190. data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
  191. data/generated/google/apis/youtubereporting_v1/service.rb +108 -108
  192. data/lib/google/apis/version.rb +1 -1
  193. metadata +34 -30
@@ -46,42 +46,41 @@ module Google
46
46
  super('https://logging.googleapis.com/', '')
47
47
  end
48
48
 
49
- # Deletes all the log entries in a log. The log reappears if it receives new
50
- # entries. Log entries written shortly before the delete operation might not be
51
- # deleted.
52
- # @param [String] log_name
53
- # Required. The resource name of the log to delete:
54
- # "projects/[PROJECT_ID]/logs/[LOG_ID]"
55
- # "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
56
- # "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
57
- # "folders/[FOLDER_ID]/logs/[LOG_ID]"
58
- # [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog"
59
- # , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
60
- # 2Factivity". For more information about log names, see LogEntry.
49
+ # Lists the descriptors for monitored resource types used by Stackdriver Logging.
50
+ # @param [String] page_token
51
+ # Optional. If present, then retrieve the next batch of results from the
52
+ # preceding call to this method. pageToken must be the value of nextPageToken
53
+ # from the previous response. The values of other method parameters should be
54
+ # identical to those in the previous call.
55
+ # @param [Fixnum] page_size
56
+ # Optional. The maximum number of results to return from this request. Non-
57
+ # positive values are ignored. The presence of nextPageToken in the response
58
+ # indicates that more results might be available.
59
+ # @param [String] fields
60
+ # Selector specifying which fields to include in a partial response.
61
61
  # @param [String] quota_user
62
62
  # Available to use for quota purposes for server-side applications. Can be any
63
63
  # arbitrary string assigned to a user, but should not exceed 40 characters.
64
- # @param [String] fields
65
- # Selector specifying which fields to include in a partial response.
66
64
  # @param [Google::Apis::RequestOptions] options
67
65
  # Request-specific options
68
66
  #
69
67
  # @yield [result, err] Result & error if block supplied
70
- # @yieldparam result [Google::Apis::LoggingV2beta1::Empty] parsed result object
68
+ # @yieldparam result [Google::Apis::LoggingV2beta1::ListMonitoredResourceDescriptorsResponse] parsed result object
71
69
  # @yieldparam err [StandardError] error object if request failed
72
70
  #
73
- # @return [Google::Apis::LoggingV2beta1::Empty]
71
+ # @return [Google::Apis::LoggingV2beta1::ListMonitoredResourceDescriptorsResponse]
74
72
  #
75
73
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
76
74
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
77
75
  # @raise [Google::Apis::AuthorizationError] Authorization is required
78
- def delete_log(log_name, quota_user: nil, fields: nil, options: nil, &block)
79
- command = make_simple_command(:delete, 'v2beta1/{+logName}', options)
80
- command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
81
- command.response_class = Google::Apis::LoggingV2beta1::Empty
82
- command.params['logName'] = log_name unless log_name.nil?
83
- command.query['quotaUser'] = quota_user unless quota_user.nil?
76
+ def list_monitored_resource_descriptors(page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
77
+ command = make_simple_command(:get, 'v2beta1/monitoredResourceDescriptors', options)
78
+ command.response_representation = Google::Apis::LoggingV2beta1::ListMonitoredResourceDescriptorsResponse::Representation
79
+ command.response_class = Google::Apis::LoggingV2beta1::ListMonitoredResourceDescriptorsResponse
80
+ command.query['pageToken'] = page_token unless page_token.nil?
81
+ command.query['pageSize'] = page_size unless page_size.nil?
84
82
  command.query['fields'] = fields unless fields.nil?
83
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
85
84
  execute_or_queue_command(command, &block)
86
85
  end
87
86
 
@@ -102,11 +101,11 @@ module Google
102
101
  # Optional. The maximum number of results to return from this request. Non-
103
102
  # positive values are ignored. The presence of nextPageToken in the response
104
103
  # indicates that more results might be available.
104
+ # @param [String] fields
105
+ # Selector specifying which fields to include in a partial response.
105
106
  # @param [String] quota_user
106
107
  # Available to use for quota purposes for server-side applications. Can be any
107
108
  # arbitrary string assigned to a user, but should not exceed 40 characters.
108
- # @param [String] fields
109
- # Selector specifying which fields to include in a partial response.
110
109
  # @param [Google::Apis::RequestOptions] options
111
110
  # Request-specific options
112
111
  #
@@ -119,86 +118,35 @@ module Google
119
118
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
120
119
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
121
120
  # @raise [Google::Apis::AuthorizationError] Authorization is required
122
- def list_logs(parent, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
121
+ def list_organization_logs(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
123
122
  command = make_simple_command(:get, 'v2beta1/{+parent}/logs', options)
124
123
  command.response_representation = Google::Apis::LoggingV2beta1::ListLogsResponse::Representation
125
124
  command.response_class = Google::Apis::LoggingV2beta1::ListLogsResponse
126
125
  command.params['parent'] = parent unless parent.nil?
127
126
  command.query['pageToken'] = page_token unless page_token.nil?
128
127
  command.query['pageSize'] = page_size unless page_size.nil?
129
- command.query['quotaUser'] = quota_user unless quota_user.nil?
130
128
  command.query['fields'] = fields unless fields.nil?
129
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
131
130
  execute_or_queue_command(command, &block)
132
131
  end
133
132
 
134
- # Creates a sink that exports specified log entries to a destination. The export
135
- # of newly-ingested log entries begins immediately, unless the current time is
136
- # outside the sink's start and end times or the sink's writer_identity is not
137
- # permitted to write to the destination. A sink can export log entries only from
138
- # the resource owning the sink.
139
- # @param [String] parent
140
- # Required. The resource in which to create the sink:
141
- # "projects/[PROJECT_ID]"
142
- # "organizations/[ORGANIZATION_ID]"
143
- # "billingAccounts/[BILLING_ACCOUNT_ID]"
144
- # "folders/[FOLDER_ID]"
145
- # Examples: "projects/my-logging-project", "organizations/123456789".
146
- # @param [Google::Apis::LoggingV2beta1::LogSink] log_sink_object
147
- # @param [Boolean] unique_writer_identity
148
- # Optional. Determines the kind of IAM identity returned as writer_identity in
149
- # the new sink. If this value is omitted or set to false, and if the sink's
150
- # parent is a project, then the value returned as writer_identity is cloud-logs@
151
- # system.gserviceaccount.com, the same identity used before the addition of
152
- # writer identities to this API. The sink's destination must be in the same
153
- # project as the sink itself.If this field is set to true, or if the sink is
154
- # owned by a non-project resource such as an organization, then the value of
155
- # writer_identity will be a unique service account used only for exports from
156
- # the new sink. For more information, see writer_identity in LogSink.
157
- # @param [String] quota_user
158
- # Available to use for quota purposes for server-side applications. Can be any
159
- # arbitrary string assigned to a user, but should not exceed 40 characters.
133
+ # Deletes all the log entries in a log. The log reappears if it receives new
134
+ # entries. Log entries written shortly before the delete operation might not be
135
+ # deleted.
136
+ # @param [String] log_name
137
+ # Required. The resource name of the log to delete:
138
+ # "projects/[PROJECT_ID]/logs/[LOG_ID]"
139
+ # "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
140
+ # "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
141
+ # "folders/[FOLDER_ID]/logs/[LOG_ID]"
142
+ # [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog"
143
+ # , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
144
+ # 2Factivity". For more information about log names, see LogEntry.
160
145
  # @param [String] fields
161
146
  # Selector specifying which fields to include in a partial response.
162
- # @param [Google::Apis::RequestOptions] options
163
- # Request-specific options
164
- #
165
- # @yield [result, err] Result & error if block supplied
166
- # @yieldparam result [Google::Apis::LoggingV2beta1::LogSink] parsed result object
167
- # @yieldparam err [StandardError] error object if request failed
168
- #
169
- # @return [Google::Apis::LoggingV2beta1::LogSink]
170
- #
171
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
172
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
173
- # @raise [Google::Apis::AuthorizationError] Authorization is required
174
- def create_project_sink(parent, log_sink_object = nil, unique_writer_identity: nil, quota_user: nil, fields: nil, options: nil, &block)
175
- command = make_simple_command(:post, 'v2beta1/{+parent}/sinks', options)
176
- command.request_representation = Google::Apis::LoggingV2beta1::LogSink::Representation
177
- command.request_object = log_sink_object
178
- command.response_representation = Google::Apis::LoggingV2beta1::LogSink::Representation
179
- command.response_class = Google::Apis::LoggingV2beta1::LogSink
180
- command.params['parent'] = parent unless parent.nil?
181
- command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
182
- command.query['quotaUser'] = quota_user unless quota_user.nil?
183
- command.query['fields'] = fields unless fields.nil?
184
- execute_or_queue_command(command, &block)
185
- end
186
-
187
- # Deletes a sink. If the sink has a unique writer_identity, then that service
188
- # account is also deleted.
189
- # @param [String] sink_name
190
- # Required. The full resource name of the sink to delete, including the parent
191
- # resource and the sink identifier:
192
- # "projects/[PROJECT_ID]/sinks/[SINK_ID]"
193
- # "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
194
- # "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
195
- # "folders/[FOLDER_ID]/sinks/[SINK_ID]"
196
- # Example: "projects/my-project-id/sinks/my-sink-id".
197
147
  # @param [String] quota_user
198
148
  # Available to use for quota purposes for server-side applications. Can be any
199
149
  # arbitrary string assigned to a user, but should not exceed 40 characters.
200
- # @param [String] fields
201
- # Selector specifying which fields to include in a partial response.
202
150
  # @param [Google::Apis::RequestOptions] options
203
151
  # Request-specific options
204
152
  #
@@ -211,147 +159,109 @@ module Google
211
159
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
212
160
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
213
161
  # @raise [Google::Apis::AuthorizationError] Authorization is required
214
- def delete_project_sink(sink_name, quota_user: nil, fields: nil, options: nil, &block)
215
- command = make_simple_command(:delete, 'v2beta1/{+sinkName}', options)
162
+ def delete_organization_log(log_name, fields: nil, quota_user: nil, options: nil, &block)
163
+ command = make_simple_command(:delete, 'v2beta1/{+logName}', options)
216
164
  command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
217
165
  command.response_class = Google::Apis::LoggingV2beta1::Empty
218
- command.params['sinkName'] = sink_name unless sink_name.nil?
219
- command.query['quotaUser'] = quota_user unless quota_user.nil?
166
+ command.params['logName'] = log_name unless log_name.nil?
220
167
  command.query['fields'] = fields unless fields.nil?
168
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
221
169
  execute_or_queue_command(command, &block)
222
170
  end
223
171
 
224
- # Lists sinks.
225
- # @param [String] parent
226
- # Required. The parent resource whose sinks are to be listed:
227
- # "projects/[PROJECT_ID]"
228
- # "organizations/[ORGANIZATION_ID]"
229
- # "billingAccounts/[BILLING_ACCOUNT_ID]"
230
- # "folders/[FOLDER_ID]"
231
- # @param [String] page_token
232
- # Optional. If present, then retrieve the next batch of results from the
233
- # preceding call to this method. pageToken must be the value of nextPageToken
234
- # from the previous response. The values of other method parameters should be
235
- # identical to those in the previous call.
236
- # @param [Fixnum] page_size
237
- # Optional. The maximum number of results to return from this request. Non-
238
- # positive values are ignored. The presence of nextPageToken in the response
239
- # indicates that more results might be available.
172
+ # Lists log entries. Use this method to retrieve log entries from Stackdriver
173
+ # Logging. For ways to export log entries, see Exporting Logs.
174
+ # @param [Google::Apis::LoggingV2beta1::ListLogEntriesRequest] list_log_entries_request_object
175
+ # @param [String] fields
176
+ # Selector specifying which fields to include in a partial response.
240
177
  # @param [String] quota_user
241
178
  # Available to use for quota purposes for server-side applications. Can be any
242
179
  # arbitrary string assigned to a user, but should not exceed 40 characters.
243
- # @param [String] fields
244
- # Selector specifying which fields to include in a partial response.
245
180
  # @param [Google::Apis::RequestOptions] options
246
181
  # Request-specific options
247
182
  #
248
183
  # @yield [result, err] Result & error if block supplied
249
- # @yieldparam result [Google::Apis::LoggingV2beta1::ListSinksResponse] parsed result object
184
+ # @yieldparam result [Google::Apis::LoggingV2beta1::ListLogEntriesResponse] parsed result object
250
185
  # @yieldparam err [StandardError] error object if request failed
251
186
  #
252
- # @return [Google::Apis::LoggingV2beta1::ListSinksResponse]
187
+ # @return [Google::Apis::LoggingV2beta1::ListLogEntriesResponse]
253
188
  #
254
189
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
255
190
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
256
191
  # @raise [Google::Apis::AuthorizationError] Authorization is required
257
- def list_project_sinks(parent, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
258
- command = make_simple_command(:get, 'v2beta1/{+parent}/sinks', options)
259
- command.response_representation = Google::Apis::LoggingV2beta1::ListSinksResponse::Representation
260
- command.response_class = Google::Apis::LoggingV2beta1::ListSinksResponse
261
- command.params['parent'] = parent unless parent.nil?
262
- command.query['pageToken'] = page_token unless page_token.nil?
263
- command.query['pageSize'] = page_size unless page_size.nil?
264
- command.query['quotaUser'] = quota_user unless quota_user.nil?
192
+ def list_entry_log_entries(list_log_entries_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
193
+ command = make_simple_command(:post, 'v2beta1/entries:list', options)
194
+ command.request_representation = Google::Apis::LoggingV2beta1::ListLogEntriesRequest::Representation
195
+ command.request_object = list_log_entries_request_object
196
+ command.response_representation = Google::Apis::LoggingV2beta1::ListLogEntriesResponse::Representation
197
+ command.response_class = Google::Apis::LoggingV2beta1::ListLogEntriesResponse
265
198
  command.query['fields'] = fields unless fields.nil?
199
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
266
200
  execute_or_queue_command(command, &block)
267
201
  end
268
202
 
269
- # Gets a sink.
270
- # @param [String] sink_name
271
- # Required. The resource name of the sink:
272
- # "projects/[PROJECT_ID]/sinks/[SINK_ID]"
273
- # "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
274
- # "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
275
- # "folders/[FOLDER_ID]/sinks/[SINK_ID]"
276
- # Example: "projects/my-project-id/sinks/my-sink-id".
203
+ # Writes log entries to Stackdriver Logging.
204
+ # @param [Google::Apis::LoggingV2beta1::WriteLogEntriesRequest] write_log_entries_request_object
205
+ # @param [String] fields
206
+ # Selector specifying which fields to include in a partial response.
277
207
  # @param [String] quota_user
278
208
  # Available to use for quota purposes for server-side applications. Can be any
279
209
  # arbitrary string assigned to a user, but should not exceed 40 characters.
280
- # @param [String] fields
281
- # Selector specifying which fields to include in a partial response.
282
210
  # @param [Google::Apis::RequestOptions] options
283
211
  # Request-specific options
284
212
  #
285
213
  # @yield [result, err] Result & error if block supplied
286
- # @yieldparam result [Google::Apis::LoggingV2beta1::LogSink] parsed result object
214
+ # @yieldparam result [Google::Apis::LoggingV2beta1::WriteLogEntriesResponse] parsed result object
287
215
  # @yieldparam err [StandardError] error object if request failed
288
216
  #
289
- # @return [Google::Apis::LoggingV2beta1::LogSink]
217
+ # @return [Google::Apis::LoggingV2beta1::WriteLogEntriesResponse]
290
218
  #
291
219
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
292
220
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
293
221
  # @raise [Google::Apis::AuthorizationError] Authorization is required
294
- def get_project_sink(sink_name, quota_user: nil, fields: nil, options: nil, &block)
295
- command = make_simple_command(:get, 'v2beta1/{+sinkName}', options)
296
- command.response_representation = Google::Apis::LoggingV2beta1::LogSink::Representation
297
- command.response_class = Google::Apis::LoggingV2beta1::LogSink
298
- command.params['sinkName'] = sink_name unless sink_name.nil?
299
- command.query['quotaUser'] = quota_user unless quota_user.nil?
222
+ def write_entry_log_entries(write_log_entries_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
223
+ command = make_simple_command(:post, 'v2beta1/entries:write', options)
224
+ command.request_representation = Google::Apis::LoggingV2beta1::WriteLogEntriesRequest::Representation
225
+ command.request_object = write_log_entries_request_object
226
+ command.response_representation = Google::Apis::LoggingV2beta1::WriteLogEntriesResponse::Representation
227
+ command.response_class = Google::Apis::LoggingV2beta1::WriteLogEntriesResponse
300
228
  command.query['fields'] = fields unless fields.nil?
229
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
301
230
  execute_or_queue_command(command, &block)
302
231
  end
303
232
 
304
- # Updates a sink. If the named sink doesn't exist, then this method is identical
305
- # to sinks.create. If the named sink does exist, then this method replaces the
306
- # following fields in the existing sink with values from the new sink:
307
- # destination, filter, output_version_format, start_time, and end_time. The
308
- # updated filter might also have a new writer_identity; see the
309
- # unique_writer_identity field.
310
- # @param [String] sink_name
311
- # Required. The full resource name of the sink to update, including the parent
312
- # resource and the sink identifier:
313
- # "projects/[PROJECT_ID]/sinks/[SINK_ID]"
314
- # "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
315
- # "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
316
- # "folders/[FOLDER_ID]/sinks/[SINK_ID]"
317
- # Example: "projects/my-project-id/sinks/my-sink-id".
318
- # @param [Google::Apis::LoggingV2beta1::LogSink] log_sink_object
319
- # @param [Boolean] unique_writer_identity
320
- # Optional. See sinks.create for a description of this field. When updating a
321
- # sink, the effect of this field on the value of writer_identity in the updated
322
- # sink depends on both the old and new values of this field:
323
- # If the old and new values of this field are both false or both true, then
324
- # there is no change to the sink's writer_identity.
325
- # If the old value was false and the new value is true, then writer_identity is
326
- # changed to a unique service account.
327
- # It is an error if the old value was true and the new value is false.
233
+ # Creates a logs-based metric.
234
+ # @param [String] parent
235
+ # The resource name of the project in which to create the metric:
236
+ # "projects/[PROJECT_ID]"
237
+ # The new metric must be provided in the request.
238
+ # @param [Google::Apis::LoggingV2beta1::LogMetric] log_metric_object
239
+ # @param [String] fields
240
+ # Selector specifying which fields to include in a partial response.
328
241
  # @param [String] quota_user
329
242
  # Available to use for quota purposes for server-side applications. Can be any
330
243
  # arbitrary string assigned to a user, but should not exceed 40 characters.
331
- # @param [String] fields
332
- # Selector specifying which fields to include in a partial response.
333
244
  # @param [Google::Apis::RequestOptions] options
334
245
  # Request-specific options
335
246
  #
336
247
  # @yield [result, err] Result & error if block supplied
337
- # @yieldparam result [Google::Apis::LoggingV2beta1::LogSink] parsed result object
248
+ # @yieldparam result [Google::Apis::LoggingV2beta1::LogMetric] parsed result object
338
249
  # @yieldparam err [StandardError] error object if request failed
339
250
  #
340
- # @return [Google::Apis::LoggingV2beta1::LogSink]
251
+ # @return [Google::Apis::LoggingV2beta1::LogMetric]
341
252
  #
342
253
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
343
254
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
344
255
  # @raise [Google::Apis::AuthorizationError] Authorization is required
345
- def update_project_sink(sink_name, log_sink_object = nil, unique_writer_identity: nil, quota_user: nil, fields: nil, options: nil, &block)
346
- command = make_simple_command(:put, 'v2beta1/{+sinkName}', options)
347
- command.request_representation = Google::Apis::LoggingV2beta1::LogSink::Representation
348
- command.request_object = log_sink_object
349
- command.response_representation = Google::Apis::LoggingV2beta1::LogSink::Representation
350
- command.response_class = Google::Apis::LoggingV2beta1::LogSink
351
- command.params['sinkName'] = sink_name unless sink_name.nil?
352
- command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
353
- command.query['quotaUser'] = quota_user unless quota_user.nil?
256
+ def create_project_metric(parent, log_metric_object = nil, fields: nil, quota_user: nil, options: nil, &block)
257
+ command = make_simple_command(:post, 'v2beta1/{+parent}/metrics', options)
258
+ command.request_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
259
+ command.request_object = log_metric_object
260
+ command.response_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
261
+ command.response_class = Google::Apis::LoggingV2beta1::LogMetric
262
+ command.params['parent'] = parent unless parent.nil?
354
263
  command.query['fields'] = fields unless fields.nil?
264
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
355
265
  execute_or_queue_command(command, &block)
356
266
  end
357
267
 
@@ -359,11 +269,11 @@ module Google
359
269
  # @param [String] metric_name
360
270
  # The resource name of the metric to delete:
361
271
  # "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
272
+ # @param [String] fields
273
+ # Selector specifying which fields to include in a partial response.
362
274
  # @param [String] quota_user
363
275
  # Available to use for quota purposes for server-side applications. Can be any
364
276
  # arbitrary string assigned to a user, but should not exceed 40 characters.
365
- # @param [String] fields
366
- # Selector specifying which fields to include in a partial response.
367
277
  # @param [Google::Apis::RequestOptions] options
368
278
  # Request-specific options
369
279
  #
@@ -376,13 +286,13 @@ module Google
376
286
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
377
287
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
378
288
  # @raise [Google::Apis::AuthorizationError] Authorization is required
379
- def delete_project_metric(metric_name, quota_user: nil, fields: nil, options: nil, &block)
289
+ def delete_project_metric(metric_name, fields: nil, quota_user: nil, options: nil, &block)
380
290
  command = make_simple_command(:delete, 'v2beta1/{+metricName}', options)
381
291
  command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
382
292
  command.response_class = Google::Apis::LoggingV2beta1::Empty
383
293
  command.params['metricName'] = metric_name unless metric_name.nil?
384
- command.query['quotaUser'] = quota_user unless quota_user.nil?
385
294
  command.query['fields'] = fields unless fields.nil?
295
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
386
296
  execute_or_queue_command(command, &block)
387
297
  end
388
298
 
@@ -399,11 +309,11 @@ module Google
399
309
  # Optional. The maximum number of results to return from this request. Non-
400
310
  # positive values are ignored. The presence of nextPageToken in the response
401
311
  # indicates that more results might be available.
312
+ # @param [String] fields
313
+ # Selector specifying which fields to include in a partial response.
402
314
  # @param [String] quota_user
403
315
  # Available to use for quota purposes for server-side applications. Can be any
404
316
  # arbitrary string assigned to a user, but should not exceed 40 characters.
405
- # @param [String] fields
406
- # Selector specifying which fields to include in a partial response.
407
317
  # @param [Google::Apis::RequestOptions] options
408
318
  # Request-specific options
409
319
  #
@@ -416,15 +326,15 @@ module Google
416
326
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
417
327
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
418
328
  # @raise [Google::Apis::AuthorizationError] Authorization is required
419
- def list_project_metrics(parent, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
329
+ def list_project_metrics(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
420
330
  command = make_simple_command(:get, 'v2beta1/{+parent}/metrics', options)
421
331
  command.response_representation = Google::Apis::LoggingV2beta1::ListLogMetricsResponse::Representation
422
332
  command.response_class = Google::Apis::LoggingV2beta1::ListLogMetricsResponse
423
333
  command.params['parent'] = parent unless parent.nil?
424
334
  command.query['pageToken'] = page_token unless page_token.nil?
425
335
  command.query['pageSize'] = page_size unless page_size.nil?
426
- command.query['quotaUser'] = quota_user unless quota_user.nil?
427
336
  command.query['fields'] = fields unless fields.nil?
337
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
428
338
  execute_or_queue_command(command, &block)
429
339
  end
430
340
 
@@ -432,11 +342,11 @@ module Google
432
342
  # @param [String] metric_name
433
343
  # The resource name of the desired metric:
434
344
  # "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
345
+ # @param [String] fields
346
+ # Selector specifying which fields to include in a partial response.
435
347
  # @param [String] quota_user
436
348
  # Available to use for quota purposes for server-side applications. Can be any
437
349
  # arbitrary string assigned to a user, but should not exceed 40 characters.
438
- # @param [String] fields
439
- # Selector specifying which fields to include in a partial response.
440
350
  # @param [Google::Apis::RequestOptions] options
441
351
  # Request-specific options
442
352
  #
@@ -449,13 +359,13 @@ module Google
449
359
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
450
360
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
451
361
  # @raise [Google::Apis::AuthorizationError] Authorization is required
452
- def get_project_metric(metric_name, quota_user: nil, fields: nil, options: nil, &block)
362
+ def get_project_metric(metric_name, fields: nil, quota_user: nil, options: nil, &block)
453
363
  command = make_simple_command(:get, 'v2beta1/{+metricName}', options)
454
364
  command.response_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
455
365
  command.response_class = Google::Apis::LoggingV2beta1::LogMetric
456
366
  command.params['metricName'] = metric_name unless metric_name.nil?
457
- command.query['quotaUser'] = quota_user unless quota_user.nil?
458
367
  command.query['fields'] = fields unless fields.nil?
368
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
459
369
  execute_or_queue_command(command, &block)
460
370
  end
461
371
 
@@ -467,11 +377,11 @@ module Google
467
377
  # the same as [METRIC_ID] If the metric does not exist in [PROJECT_ID], then a
468
378
  # new metric is created.
469
379
  # @param [Google::Apis::LoggingV2beta1::LogMetric] log_metric_object
380
+ # @param [String] fields
381
+ # Selector specifying which fields to include in a partial response.
470
382
  # @param [String] quota_user
471
383
  # Available to use for quota purposes for server-side applications. Can be any
472
384
  # arbitrary string assigned to a user, but should not exceed 40 characters.
473
- # @param [String] fields
474
- # Selector specifying which fields to include in a partial response.
475
385
  # @param [Google::Apis::RequestOptions] options
476
386
  # Request-specific options
477
387
  #
@@ -484,50 +394,15 @@ module Google
484
394
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
485
395
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
486
396
  # @raise [Google::Apis::AuthorizationError] Authorization is required
487
- def update_project_metric(metric_name, log_metric_object = nil, quota_user: nil, fields: nil, options: nil, &block)
397
+ def update_project_metric(metric_name, log_metric_object = nil, fields: nil, quota_user: nil, options: nil, &block)
488
398
  command = make_simple_command(:put, 'v2beta1/{+metricName}', options)
489
399
  command.request_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
490
400
  command.request_object = log_metric_object
491
401
  command.response_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
492
402
  command.response_class = Google::Apis::LoggingV2beta1::LogMetric
493
403
  command.params['metricName'] = metric_name unless metric_name.nil?
494
- command.query['quotaUser'] = quota_user unless quota_user.nil?
495
404
  command.query['fields'] = fields unless fields.nil?
496
- execute_or_queue_command(command, &block)
497
- end
498
-
499
- # Creates a logs-based metric.
500
- # @param [String] parent
501
- # The resource name of the project in which to create the metric:
502
- # "projects/[PROJECT_ID]"
503
- # The new metric must be provided in the request.
504
- # @param [Google::Apis::LoggingV2beta1::LogMetric] log_metric_object
505
- # @param [String] quota_user
506
- # Available to use for quota purposes for server-side applications. Can be any
507
- # arbitrary string assigned to a user, but should not exceed 40 characters.
508
- # @param [String] fields
509
- # Selector specifying which fields to include in a partial response.
510
- # @param [Google::Apis::RequestOptions] options
511
- # Request-specific options
512
- #
513
- # @yield [result, err] Result & error if block supplied
514
- # @yieldparam result [Google::Apis::LoggingV2beta1::LogMetric] parsed result object
515
- # @yieldparam err [StandardError] error object if request failed
516
- #
517
- # @return [Google::Apis::LoggingV2beta1::LogMetric]
518
- #
519
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
520
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
521
- # @raise [Google::Apis::AuthorizationError] Authorization is required
522
- def create_project_metric(parent, log_metric_object = nil, quota_user: nil, fields: nil, options: nil, &block)
523
- command = make_simple_command(:post, 'v2beta1/{+parent}/metrics', options)
524
- command.request_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
525
- command.request_object = log_metric_object
526
- command.response_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
527
- command.response_class = Google::Apis::LoggingV2beta1::LogMetric
528
- command.params['parent'] = parent unless parent.nil?
529
405
  command.query['quotaUser'] = quota_user unless quota_user.nil?
530
- command.query['fields'] = fields unless fields.nil?
531
406
  execute_or_queue_command(command, &block)
532
407
  end
533
408
 
@@ -543,11 +418,11 @@ module Google
543
418
  # [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog"
544
419
  # , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
545
420
  # 2Factivity". For more information about log names, see LogEntry.
421
+ # @param [String] fields
422
+ # Selector specifying which fields to include in a partial response.
546
423
  # @param [String] quota_user
547
424
  # Available to use for quota purposes for server-side applications. Can be any
548
425
  # arbitrary string assigned to a user, but should not exceed 40 characters.
549
- # @param [String] fields
550
- # Selector specifying which fields to include in a partial response.
551
426
  # @param [Google::Apis::RequestOptions] options
552
427
  # Request-specific options
553
428
  #
@@ -560,13 +435,13 @@ module Google
560
435
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
561
436
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
562
437
  # @raise [Google::Apis::AuthorizationError] Authorization is required
563
- def delete_billing_account_log(log_name, quota_user: nil, fields: nil, options: nil, &block)
438
+ def delete_log(log_name, fields: nil, quota_user: nil, options: nil, &block)
564
439
  command = make_simple_command(:delete, 'v2beta1/{+logName}', options)
565
440
  command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
566
441
  command.response_class = Google::Apis::LoggingV2beta1::Empty
567
442
  command.params['logName'] = log_name unless log_name.nil?
568
- command.query['quotaUser'] = quota_user unless quota_user.nil?
569
443
  command.query['fields'] = fields unless fields.nil?
444
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
570
445
  execute_or_queue_command(command, &block)
571
446
  end
572
447
 
@@ -587,11 +462,11 @@ module Google
587
462
  # Optional. The maximum number of results to return from this request. Non-
588
463
  # positive values are ignored. The presence of nextPageToken in the response
589
464
  # indicates that more results might be available.
465
+ # @param [String] fields
466
+ # Selector specifying which fields to include in a partial response.
590
467
  # @param [String] quota_user
591
468
  # Available to use for quota purposes for server-side applications. Can be any
592
469
  # arbitrary string assigned to a user, but should not exceed 40 characters.
593
- # @param [String] fields
594
- # Selector specifying which fields to include in a partial response.
595
470
  # @param [Google::Apis::RequestOptions] options
596
471
  # Request-specific options
597
472
  #
@@ -604,53 +479,239 @@ module Google
604
479
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
605
480
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
606
481
  # @raise [Google::Apis::AuthorizationError] Authorization is required
607
- def list_billing_account_logs(parent, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
482
+ def list_logs(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
608
483
  command = make_simple_command(:get, 'v2beta1/{+parent}/logs', options)
609
484
  command.response_representation = Google::Apis::LoggingV2beta1::ListLogsResponse::Representation
610
485
  command.response_class = Google::Apis::LoggingV2beta1::ListLogsResponse
611
486
  command.params['parent'] = parent unless parent.nil?
612
487
  command.query['pageToken'] = page_token unless page_token.nil?
613
488
  command.query['pageSize'] = page_size unless page_size.nil?
614
- command.query['quotaUser'] = quota_user unless quota_user.nil?
615
489
  command.query['fields'] = fields unless fields.nil?
490
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
616
491
  execute_or_queue_command(command, &block)
617
492
  end
618
493
 
619
- # Lists the descriptors for monitored resource types used by Stackdriver Logging.
494
+ # Lists sinks.
495
+ # @param [String] parent
496
+ # Required. The parent resource whose sinks are to be listed:
497
+ # "projects/[PROJECT_ID]"
498
+ # "organizations/[ORGANIZATION_ID]"
499
+ # "billingAccounts/[BILLING_ACCOUNT_ID]"
500
+ # "folders/[FOLDER_ID]"
501
+ # @param [Fixnum] page_size
502
+ # Optional. The maximum number of results to return from this request. Non-
503
+ # positive values are ignored. The presence of nextPageToken in the response
504
+ # indicates that more results might be available.
620
505
  # @param [String] page_token
621
506
  # Optional. If present, then retrieve the next batch of results from the
622
507
  # preceding call to this method. pageToken must be the value of nextPageToken
623
508
  # from the previous response. The values of other method parameters should be
624
509
  # identical to those in the previous call.
625
- # @param [Fixnum] page_size
626
- # Optional. The maximum number of results to return from this request. Non-
627
- # positive values are ignored. The presence of nextPageToken in the response
628
- # indicates that more results might be available.
510
+ # @param [String] fields
511
+ # Selector specifying which fields to include in a partial response.
629
512
  # @param [String] quota_user
630
513
  # Available to use for quota purposes for server-side applications. Can be any
631
514
  # arbitrary string assigned to a user, but should not exceed 40 characters.
515
+ # @param [Google::Apis::RequestOptions] options
516
+ # Request-specific options
517
+ #
518
+ # @yield [result, err] Result & error if block supplied
519
+ # @yieldparam result [Google::Apis::LoggingV2beta1::ListSinksResponse] parsed result object
520
+ # @yieldparam err [StandardError] error object if request failed
521
+ #
522
+ # @return [Google::Apis::LoggingV2beta1::ListSinksResponse]
523
+ #
524
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
525
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
526
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
527
+ def list_project_sinks(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
528
+ command = make_simple_command(:get, 'v2beta1/{+parent}/sinks', options)
529
+ command.response_representation = Google::Apis::LoggingV2beta1::ListSinksResponse::Representation
530
+ command.response_class = Google::Apis::LoggingV2beta1::ListSinksResponse
531
+ command.params['parent'] = parent unless parent.nil?
532
+ command.query['pageSize'] = page_size unless page_size.nil?
533
+ command.query['pageToken'] = page_token unless page_token.nil?
534
+ command.query['fields'] = fields unless fields.nil?
535
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
536
+ execute_or_queue_command(command, &block)
537
+ end
538
+
539
+ # Gets a sink.
540
+ # @param [String] sink_name
541
+ # Required. The resource name of the sink:
542
+ # "projects/[PROJECT_ID]/sinks/[SINK_ID]"
543
+ # "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
544
+ # "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
545
+ # "folders/[FOLDER_ID]/sinks/[SINK_ID]"
546
+ # Example: "projects/my-project-id/sinks/my-sink-id".
632
547
  # @param [String] fields
633
548
  # Selector specifying which fields to include in a partial response.
549
+ # @param [String] quota_user
550
+ # Available to use for quota purposes for server-side applications. Can be any
551
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
634
552
  # @param [Google::Apis::RequestOptions] options
635
553
  # Request-specific options
636
554
  #
637
555
  # @yield [result, err] Result & error if block supplied
638
- # @yieldparam result [Google::Apis::LoggingV2beta1::ListMonitoredResourceDescriptorsResponse] parsed result object
556
+ # @yieldparam result [Google::Apis::LoggingV2beta1::LogSink] parsed result object
639
557
  # @yieldparam err [StandardError] error object if request failed
640
558
  #
641
- # @return [Google::Apis::LoggingV2beta1::ListMonitoredResourceDescriptorsResponse]
559
+ # @return [Google::Apis::LoggingV2beta1::LogSink]
642
560
  #
643
561
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
644
562
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
645
563
  # @raise [Google::Apis::AuthorizationError] Authorization is required
646
- def list_monitored_resource_descriptors(page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
647
- command = make_simple_command(:get, 'v2beta1/monitoredResourceDescriptors', options)
648
- command.response_representation = Google::Apis::LoggingV2beta1::ListMonitoredResourceDescriptorsResponse::Representation
649
- command.response_class = Google::Apis::LoggingV2beta1::ListMonitoredResourceDescriptorsResponse
650
- command.query['pageToken'] = page_token unless page_token.nil?
651
- command.query['pageSize'] = page_size unless page_size.nil?
564
+ def get_project_sink(sink_name, fields: nil, quota_user: nil, options: nil, &block)
565
+ command = make_simple_command(:get, 'v2beta1/{+sinkName}', options)
566
+ command.response_representation = Google::Apis::LoggingV2beta1::LogSink::Representation
567
+ command.response_class = Google::Apis::LoggingV2beta1::LogSink
568
+ command.params['sinkName'] = sink_name unless sink_name.nil?
569
+ command.query['fields'] = fields unless fields.nil?
570
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
571
+ execute_or_queue_command(command, &block)
572
+ end
573
+
574
+ # Updates a sink. If the named sink doesn't exist, then this method is identical
575
+ # to sinks.create. If the named sink does exist, then this method replaces the
576
+ # following fields in the existing sink with values from the new sink:
577
+ # destination, filter, output_version_format, start_time, and end_time. The
578
+ # updated filter might also have a new writer_identity; see the
579
+ # unique_writer_identity field.
580
+ # @param [String] sink_name
581
+ # Required. The full resource name of the sink to update, including the parent
582
+ # resource and the sink identifier:
583
+ # "projects/[PROJECT_ID]/sinks/[SINK_ID]"
584
+ # "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
585
+ # "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
586
+ # "folders/[FOLDER_ID]/sinks/[SINK_ID]"
587
+ # Example: "projects/my-project-id/sinks/my-sink-id".
588
+ # @param [Google::Apis::LoggingV2beta1::LogSink] log_sink_object
589
+ # @param [Boolean] unique_writer_identity
590
+ # Optional. See sinks.create for a description of this field. When updating a
591
+ # sink, the effect of this field on the value of writer_identity in the updated
592
+ # sink depends on both the old and new values of this field:
593
+ # If the old and new values of this field are both false or both true, then
594
+ # there is no change to the sink's writer_identity.
595
+ # If the old value is false and the new value is true, then writer_identity is
596
+ # changed to a unique service account.
597
+ # It is an error if the old value is true and the new value is false.
598
+ # @param [String] fields
599
+ # Selector specifying which fields to include in a partial response.
600
+ # @param [String] quota_user
601
+ # Available to use for quota purposes for server-side applications. Can be any
602
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
603
+ # @param [Google::Apis::RequestOptions] options
604
+ # Request-specific options
605
+ #
606
+ # @yield [result, err] Result & error if block supplied
607
+ # @yieldparam result [Google::Apis::LoggingV2beta1::LogSink] parsed result object
608
+ # @yieldparam err [StandardError] error object if request failed
609
+ #
610
+ # @return [Google::Apis::LoggingV2beta1::LogSink]
611
+ #
612
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
613
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
614
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
615
+ def update_project_sink(sink_name, log_sink_object = nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block)
616
+ command = make_simple_command(:put, 'v2beta1/{+sinkName}', options)
617
+ command.request_representation = Google::Apis::LoggingV2beta1::LogSink::Representation
618
+ command.request_object = log_sink_object
619
+ command.response_representation = Google::Apis::LoggingV2beta1::LogSink::Representation
620
+ command.response_class = Google::Apis::LoggingV2beta1::LogSink
621
+ command.params['sinkName'] = sink_name unless sink_name.nil?
622
+ command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
623
+ command.query['fields'] = fields unless fields.nil?
652
624
  command.query['quotaUser'] = quota_user unless quota_user.nil?
625
+ execute_or_queue_command(command, &block)
626
+ end
627
+
628
+ # Creates a sink that exports specified log entries to a destination. The export
629
+ # of newly-ingested log entries begins immediately, unless the current time is
630
+ # outside the sink's start and end times or the sink's writer_identity is not
631
+ # permitted to write to the destination. A sink can export log entries only from
632
+ # the resource owning the sink.
633
+ # @param [String] parent
634
+ # Required. The resource in which to create the sink:
635
+ # "projects/[PROJECT_ID]"
636
+ # "organizations/[ORGANIZATION_ID]"
637
+ # "billingAccounts/[BILLING_ACCOUNT_ID]"
638
+ # "folders/[FOLDER_ID]"
639
+ # Examples: "projects/my-logging-project", "organizations/123456789".
640
+ # @param [Google::Apis::LoggingV2beta1::LogSink] log_sink_object
641
+ # @param [Boolean] unique_writer_identity
642
+ # Optional. Determines the kind of IAM identity returned as writer_identity in
643
+ # the new sink. If this value is omitted or set to false, and if the sink's
644
+ # parent is a project, then the value returned as writer_identity is the same
645
+ # group or service account used by Stackdriver Logging before the addition of
646
+ # writer identities to this API. The sink's destination must be in the same
647
+ # project as the sink itself.If this field is set to true, or if the sink is
648
+ # owned by a non-project resource such as an organization, then the value of
649
+ # writer_identity will be a unique service account used only for exports from
650
+ # the new sink. For more information, see writer_identity in LogSink.
651
+ # @param [String] fields
652
+ # Selector specifying which fields to include in a partial response.
653
+ # @param [String] quota_user
654
+ # Available to use for quota purposes for server-side applications. Can be any
655
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
656
+ # @param [Google::Apis::RequestOptions] options
657
+ # Request-specific options
658
+ #
659
+ # @yield [result, err] Result & error if block supplied
660
+ # @yieldparam result [Google::Apis::LoggingV2beta1::LogSink] parsed result object
661
+ # @yieldparam err [StandardError] error object if request failed
662
+ #
663
+ # @return [Google::Apis::LoggingV2beta1::LogSink]
664
+ #
665
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
666
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
667
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
668
+ def create_project_sink(parent, log_sink_object = nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block)
669
+ command = make_simple_command(:post, 'v2beta1/{+parent}/sinks', options)
670
+ command.request_representation = Google::Apis::LoggingV2beta1::LogSink::Representation
671
+ command.request_object = log_sink_object
672
+ command.response_representation = Google::Apis::LoggingV2beta1::LogSink::Representation
673
+ command.response_class = Google::Apis::LoggingV2beta1::LogSink
674
+ command.params['parent'] = parent unless parent.nil?
675
+ command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
653
676
  command.query['fields'] = fields unless fields.nil?
677
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
678
+ execute_or_queue_command(command, &block)
679
+ end
680
+
681
+ # Deletes a sink. If the sink has a unique writer_identity, then that service
682
+ # account is also deleted.
683
+ # @param [String] sink_name
684
+ # Required. The full resource name of the sink to delete, including the parent
685
+ # resource and the sink identifier:
686
+ # "projects/[PROJECT_ID]/sinks/[SINK_ID]"
687
+ # "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
688
+ # "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
689
+ # "folders/[FOLDER_ID]/sinks/[SINK_ID]"
690
+ # Example: "projects/my-project-id/sinks/my-sink-id".
691
+ # @param [String] fields
692
+ # Selector specifying which fields to include in a partial response.
693
+ # @param [String] quota_user
694
+ # Available to use for quota purposes for server-side applications. Can be any
695
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
696
+ # @param [Google::Apis::RequestOptions] options
697
+ # Request-specific options
698
+ #
699
+ # @yield [result, err] Result & error if block supplied
700
+ # @yieldparam result [Google::Apis::LoggingV2beta1::Empty] parsed result object
701
+ # @yieldparam err [StandardError] error object if request failed
702
+ #
703
+ # @return [Google::Apis::LoggingV2beta1::Empty]
704
+ #
705
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
706
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
707
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
708
+ def delete_project_sink(sink_name, fields: nil, quota_user: nil, options: nil, &block)
709
+ command = make_simple_command(:delete, 'v2beta1/{+sinkName}', options)
710
+ command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
711
+ command.response_class = Google::Apis::LoggingV2beta1::Empty
712
+ command.params['sinkName'] = sink_name unless sink_name.nil?
713
+ command.query['fields'] = fields unless fields.nil?
714
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
654
715
  execute_or_queue_command(command, &block)
655
716
  end
656
717
 
@@ -666,11 +727,11 @@ module Google
666
727
  # [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog"
667
728
  # , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
668
729
  # 2Factivity". For more information about log names, see LogEntry.
730
+ # @param [String] fields
731
+ # Selector specifying which fields to include in a partial response.
669
732
  # @param [String] quota_user
670
733
  # Available to use for quota purposes for server-side applications. Can be any
671
734
  # arbitrary string assigned to a user, but should not exceed 40 characters.
672
- # @param [String] fields
673
- # Selector specifying which fields to include in a partial response.
674
735
  # @param [Google::Apis::RequestOptions] options
675
736
  # Request-specific options
676
737
  #
@@ -683,13 +744,13 @@ module Google
683
744
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
684
745
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
685
746
  # @raise [Google::Apis::AuthorizationError] Authorization is required
686
- def delete_organization_log(log_name, quota_user: nil, fields: nil, options: nil, &block)
747
+ def delete_billing_account_log(log_name, fields: nil, quota_user: nil, options: nil, &block)
687
748
  command = make_simple_command(:delete, 'v2beta1/{+logName}', options)
688
749
  command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
689
750
  command.response_class = Google::Apis::LoggingV2beta1::Empty
690
751
  command.params['logName'] = log_name unless log_name.nil?
691
- command.query['quotaUser'] = quota_user unless quota_user.nil?
692
752
  command.query['fields'] = fields unless fields.nil?
753
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
693
754
  execute_or_queue_command(command, &block)
694
755
  end
695
756
 
@@ -710,11 +771,11 @@ module Google
710
771
  # Optional. The maximum number of results to return from this request. Non-
711
772
  # positive values are ignored. The presence of nextPageToken in the response
712
773
  # indicates that more results might be available.
774
+ # @param [String] fields
775
+ # Selector specifying which fields to include in a partial response.
713
776
  # @param [String] quota_user
714
777
  # Available to use for quota purposes for server-side applications. Can be any
715
778
  # arbitrary string assigned to a user, but should not exceed 40 characters.
716
- # @param [String] fields
717
- # Selector specifying which fields to include in a partial response.
718
779
  # @param [Google::Apis::RequestOptions] options
719
780
  # Request-specific options
720
781
  #
@@ -727,77 +788,15 @@ module Google
727
788
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
728
789
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
729
790
  # @raise [Google::Apis::AuthorizationError] Authorization is required
730
- def list_organization_logs(parent, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
791
+ def list_billing_account_logs(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
731
792
  command = make_simple_command(:get, 'v2beta1/{+parent}/logs', options)
732
793
  command.response_representation = Google::Apis::LoggingV2beta1::ListLogsResponse::Representation
733
794
  command.response_class = Google::Apis::LoggingV2beta1::ListLogsResponse
734
795
  command.params['parent'] = parent unless parent.nil?
735
796
  command.query['pageToken'] = page_token unless page_token.nil?
736
797
  command.query['pageSize'] = page_size unless page_size.nil?
737
- command.query['quotaUser'] = quota_user unless quota_user.nil?
738
798
  command.query['fields'] = fields unless fields.nil?
739
- execute_or_queue_command(command, &block)
740
- end
741
-
742
- # Lists log entries. Use this method to retrieve log entries from Stackdriver
743
- # Logging. For ways to export log entries, see Exporting Logs.
744
- # @param [Google::Apis::LoggingV2beta1::ListLogEntriesRequest] list_log_entries_request_object
745
- # @param [String] quota_user
746
- # Available to use for quota purposes for server-side applications. Can be any
747
- # arbitrary string assigned to a user, but should not exceed 40 characters.
748
- # @param [String] fields
749
- # Selector specifying which fields to include in a partial response.
750
- # @param [Google::Apis::RequestOptions] options
751
- # Request-specific options
752
- #
753
- # @yield [result, err] Result & error if block supplied
754
- # @yieldparam result [Google::Apis::LoggingV2beta1::ListLogEntriesResponse] parsed result object
755
- # @yieldparam err [StandardError] error object if request failed
756
- #
757
- # @return [Google::Apis::LoggingV2beta1::ListLogEntriesResponse]
758
- #
759
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
760
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
761
- # @raise [Google::Apis::AuthorizationError] Authorization is required
762
- def list_entry_log_entries(list_log_entries_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
763
- command = make_simple_command(:post, 'v2beta1/entries:list', options)
764
- command.request_representation = Google::Apis::LoggingV2beta1::ListLogEntriesRequest::Representation
765
- command.request_object = list_log_entries_request_object
766
- command.response_representation = Google::Apis::LoggingV2beta1::ListLogEntriesResponse::Representation
767
- command.response_class = Google::Apis::LoggingV2beta1::ListLogEntriesResponse
768
- command.query['quotaUser'] = quota_user unless quota_user.nil?
769
- command.query['fields'] = fields unless fields.nil?
770
- execute_or_queue_command(command, &block)
771
- end
772
-
773
- # Writes log entries to Stackdriver Logging. All log entries are written by this
774
- # method.
775
- # @param [Google::Apis::LoggingV2beta1::WriteLogEntriesRequest] write_log_entries_request_object
776
- # @param [String] quota_user
777
- # Available to use for quota purposes for server-side applications. Can be any
778
- # arbitrary string assigned to a user, but should not exceed 40 characters.
779
- # @param [String] fields
780
- # Selector specifying which fields to include in a partial response.
781
- # @param [Google::Apis::RequestOptions] options
782
- # Request-specific options
783
- #
784
- # @yield [result, err] Result & error if block supplied
785
- # @yieldparam result [Google::Apis::LoggingV2beta1::WriteLogEntriesResponse] parsed result object
786
- # @yieldparam err [StandardError] error object if request failed
787
- #
788
- # @return [Google::Apis::LoggingV2beta1::WriteLogEntriesResponse]
789
- #
790
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
791
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
792
- # @raise [Google::Apis::AuthorizationError] Authorization is required
793
- def write_entry_log_entries(write_log_entries_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
794
- command = make_simple_command(:post, 'v2beta1/entries:write', options)
795
- command.request_representation = Google::Apis::LoggingV2beta1::WriteLogEntriesRequest::Representation
796
- command.request_object = write_log_entries_request_object
797
- command.response_representation = Google::Apis::LoggingV2beta1::WriteLogEntriesResponse::Representation
798
- command.response_class = Google::Apis::LoggingV2beta1::WriteLogEntriesResponse
799
799
  command.query['quotaUser'] = quota_user unless quota_user.nil?
800
- command.query['fields'] = fields unless fields.nil?
801
800
  execute_or_queue_command(command, &block)
802
801
  end
803
802