google-api-client 0.9.15 → 0.9.18

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 (119) hide show
  1. checksums.yaml +4 -4
  2. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +35 -0
  3. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +298 -0
  4. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +122 -0
  5. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +458 -0
  6. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  7. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +82 -3
  8. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +33 -0
  9. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +38 -0
  10. data/generated/google/apis/admin_directory_v1.rb +1 -1
  11. data/generated/google/apis/admin_directory_v1/classes.rb +80 -0
  12. data/generated/google/apis/admin_directory_v1/representations.rb +23 -0
  13. data/generated/google/apis/admin_directory_v1/service.rb +39 -0
  14. data/generated/google/apis/adsense_v1_4.rb +1 -1
  15. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  16. data/generated/google/apis/analytics_v3.rb +1 -1
  17. data/generated/google/apis/analytics_v3/classes.rb +11 -5
  18. data/generated/google/apis/analytics_v3/representations.rb +1 -0
  19. data/generated/google/apis/analytics_v3/service.rb +17 -18
  20. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  21. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  22. data/generated/google/apis/androidenterprise_v1/classes.rb +80 -2
  23. data/generated/google/apis/androidenterprise_v1/representations.rb +30 -0
  24. data/generated/google/apis/androidenterprise_v1/service.rb +55 -6
  25. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  26. data/generated/google/apis/appengine_v1beta5.rb +1 -1
  27. data/generated/google/apis/appengine_v1beta5/classes.rb +1 -1
  28. data/generated/google/apis/appengine_v1beta5/service.rb +36 -0
  29. data/generated/google/apis/appsactivity_v1.rb +1 -1
  30. data/generated/google/apis/bigquery_v2.rb +1 -1
  31. data/generated/google/apis/bigquery_v2/classes.rb +2 -2
  32. data/generated/google/apis/books_v1.rb +1 -1
  33. data/generated/google/apis/books_v1/classes.rb +2 -1
  34. data/generated/google/apis/calendar_v3.rb +1 -1
  35. data/generated/google/apis/classroom_v1.rb +1 -1
  36. data/generated/google/apis/classroom_v1/classes.rb +7 -0
  37. data/generated/google/apis/classroom_v1/representations.rb +1 -0
  38. data/generated/google/apis/classroom_v1/service.rb +25 -15
  39. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  40. data/generated/google/apis/cloudbuild_v1/classes.rb +56 -8
  41. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  42. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +535 -298
  43. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +141 -36
  44. data/generated/google/apis/cloudresourcemanager_v1/service.rb +250 -45
  45. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  46. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +99 -4
  47. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +44 -0
  48. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +24 -33
  49. data/generated/google/apis/compute_beta.rb +1 -1
  50. data/generated/google/apis/compute_beta/classes.rb +44 -29
  51. data/generated/google/apis/compute_beta/representations.rb +1 -0
  52. data/generated/google/apis/compute_beta/service.rb +123 -25
  53. data/generated/google/apis/compute_v1.rb +1 -1
  54. data/generated/google/apis/compute_v1/classes.rb +43 -20
  55. data/generated/google/apis/compute_v1/representations.rb +3 -0
  56. data/generated/google/apis/compute_v1/service.rb +608 -67
  57. data/generated/google/apis/content_v2.rb +1 -1
  58. data/generated/google/apis/dataflow_v1b3.rb +38 -0
  59. data/generated/google/apis/dataflow_v1b3/classes.rb +4009 -0
  60. data/generated/google/apis/dataflow_v1b3/representations.rb +1718 -0
  61. data/generated/google/apis/dataflow_v1b3/service.rb +515 -0
  62. data/generated/google/apis/datastore_v1.rb +1 -1
  63. data/generated/google/apis/dns_v1.rb +1 -1
  64. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  65. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +79 -86
  66. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +25 -28
  67. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +10 -8
  68. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  69. data/generated/google/apis/drive_v2.rb +1 -1
  70. data/generated/google/apis/drive_v2/classes.rb +9 -0
  71. data/generated/google/apis/drive_v2/representations.rb +1 -0
  72. data/generated/google/apis/drive_v2/service.rb +8 -1
  73. data/generated/google/apis/drive_v3.rb +1 -1
  74. data/generated/google/apis/drive_v3/classes.rb +7 -0
  75. data/generated/google/apis/drive_v3/representations.rb +1 -0
  76. data/generated/google/apis/drive_v3/service.rb +8 -1
  77. data/generated/google/apis/genomics_v1.rb +1 -1
  78. data/generated/google/apis/iam_v1.rb +2 -2
  79. data/generated/google/apis/iam_v1/classes.rb +181 -206
  80. data/generated/google/apis/iam_v1/representations.rb +36 -45
  81. data/generated/google/apis/iam_v1/service.rb +101 -67
  82. data/generated/google/apis/identitytoolkit_v3.rb +4 -1
  83. data/generated/google/apis/identitytoolkit_v3/classes.rb +11 -27
  84. data/generated/google/apis/identitytoolkit_v3/representations.rb +2 -16
  85. data/generated/google/apis/language_v1beta1.rb +1 -1
  86. data/generated/google/apis/language_v1beta1/classes.rb +4 -2
  87. data/generated/google/apis/language_v1beta1/service.rb +2 -4
  88. data/generated/google/apis/logging_v2beta1.rb +6 -6
  89. data/generated/google/apis/logging_v2beta1/classes.rb +742 -732
  90. data/generated/google/apis/logging_v2beta1/representations.rb +134 -147
  91. data/generated/google/apis/logging_v2beta1/service.rb +276 -209
  92. data/generated/google/apis/monitoring_v3.rb +1 -1
  93. data/generated/google/apis/monitoring_v3/classes.rb +20 -13
  94. data/generated/google/apis/monitoring_v3/service.rb +1 -1
  95. data/generated/google/apis/oauth2_v2.rb +1 -1
  96. data/generated/google/apis/plus_domains_v1.rb +1 -1
  97. data/generated/google/apis/plus_v1.rb +1 -1
  98. data/generated/google/apis/pubsub_v1.rb +1 -1
  99. data/generated/google/apis/pubsub_v1/classes.rb +10 -9
  100. data/generated/google/apis/pubsub_v1/service.rb +128 -27
  101. data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -2
  102. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +3 -1
  103. data/generated/google/apis/sheets_v4.rb +1 -1
  104. data/generated/google/apis/sheets_v4/classes.rb +2 -0
  105. data/generated/google/apis/speech_v1beta1.rb +1 -1
  106. data/generated/google/apis/speech_v1beta1/classes.rb +20 -30
  107. data/generated/google/apis/speech_v1beta1/representations.rb +6 -7
  108. data/generated/google/apis/speech_v1beta1/service.rb +68 -65
  109. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  110. data/generated/google/apis/sqladmin_v1beta4/classes.rb +6 -0
  111. data/generated/google/apis/sqladmin_v1beta4/representations.rb +1 -0
  112. data/generated/google/apis/storage_v1.rb +1 -1
  113. data/generated/google/apis/storage_v1/classes.rb +3 -3
  114. data/generated/google/apis/storage_v1/representations.rb +2 -1
  115. data/generated/google/apis/storage_v1/service.rb +5 -2
  116. data/generated/google/apis/vision_v1.rb +1 -1
  117. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  118. data/lib/google/apis/version.rb +1 -1
  119. metadata +10 -2
@@ -20,9 +20,9 @@ require 'google/apis/errors'
20
20
  module Google
21
21
  module Apis
22
22
  module LoggingV2beta1
23
- # Google Cloud Logging API
23
+ # Stackdriver Logging API
24
24
  #
25
- # Writes log entries and manages your logs, log sinks, and logs-based metrics.
25
+ # Writes log entries and manages your Stackdriver Logging configuration.
26
26
  #
27
27
  # @example
28
28
  # require 'google/apis/logging_v2beta1'
@@ -46,191 +46,192 @@ module Google
46
46
  super('https://logging.googleapis.com/', '')
47
47
  end
48
48
 
49
- # Deletes a log and all its log entries. The log will reappear if it receives
50
- # new entries.
51
- # @param [String] log_name
52
- # Required. The resource name of the log to delete. Example: `"projects/my-
53
- # project/logs/syslog"`.
54
- # @param [String] fields
55
- # Selector specifying which fields to include in a partial response.
49
+ # Creates or updates a logs-based metric.
50
+ # @param [String] metric_name
51
+ # The resource name of the metric to update.
52
+ # Example: `"projects/my-project-id/metrics/my-metric-id"`.
53
+ # The updated metric must be provided in the request and have the
54
+ # same identifier that is specified in `metricName`.
55
+ # If the metric does not exist, it is created.
56
+ # @param [Google::Apis::LoggingV2beta1::LogMetric] log_metric_object
56
57
  # @param [String] quota_user
57
58
  # Available to use for quota purposes for server-side applications. Can be any
58
59
  # arbitrary string assigned to a user, but should not exceed 40 characters.
60
+ # @param [String] fields
61
+ # Selector specifying which fields to include in a partial response.
59
62
  # @param [Google::Apis::RequestOptions] options
60
63
  # Request-specific options
61
64
  #
62
65
  # @yield [result, err] Result & error if block supplied
63
- # @yieldparam result [Google::Apis::LoggingV2beta1::Empty] parsed result object
66
+ # @yieldparam result [Google::Apis::LoggingV2beta1::LogMetric] parsed result object
64
67
  # @yieldparam err [StandardError] error object if request failed
65
68
  #
66
- # @return [Google::Apis::LoggingV2beta1::Empty]
69
+ # @return [Google::Apis::LoggingV2beta1::LogMetric]
67
70
  #
68
71
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
69
72
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
70
73
  # @raise [Google::Apis::AuthorizationError] Authorization is required
71
- def delete_log(log_name, fields: nil, quota_user: nil, options: nil, &block)
72
- command = make_simple_command(:delete, 'v2beta1/{+logName}', options)
73
- command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
74
- command.response_class = Google::Apis::LoggingV2beta1::Empty
75
- command.params['logName'] = log_name unless log_name.nil?
76
- command.query['fields'] = fields unless fields.nil?
74
+ def update_project_metric(metric_name, log_metric_object = nil, quota_user: nil, fields: nil, options: nil, &block)
75
+ command = make_simple_command(:put, 'v2beta1/{+metricName}', options)
76
+ command.request_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
77
+ command.request_object = log_metric_object
78
+ command.response_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
79
+ command.response_class = Google::Apis::LoggingV2beta1::LogMetric
80
+ command.params['metricName'] = metric_name unless metric_name.nil?
77
81
  command.query['quotaUser'] = quota_user unless quota_user.nil?
82
+ command.query['fields'] = fields unless fields.nil?
78
83
  execute_or_queue_command(command, &block)
79
84
  end
80
85
 
81
- # Lists sinks.
82
- # @param [String] project_name
83
- # Required. The resource name of the project containing the sinks. Example: `"
84
- # projects/my-logging-project"`.
85
- # @param [String] page_token
86
- # Optional. If the `pageToken` parameter is supplied, then the next page of
87
- # results is retrieved. The `pageToken` parameter must be set to the value of
88
- # the `nextPageToken` from the previous response. The value of `projectName`
89
- # must be the same as in the previous request.
90
- # @param [Fixnum] page_size
91
- # Optional. The maximum number of results to return from this request. You must
92
- # check for presence of `nextPageToken` to determine if additional results are
93
- # available, which you can retrieve by passing the `nextPageToken` value as the `
94
- # pageToken` parameter in the next request.
95
- # @param [String] fields
96
- # Selector specifying which fields to include in a partial response.
86
+ # Gets a logs-based metric.
87
+ # @param [String] metric_name
88
+ # The resource name of the desired metric.
89
+ # Example: `"projects/my-project-id/metrics/my-metric-id"`.
97
90
  # @param [String] quota_user
98
91
  # Available to use for quota purposes for server-side applications. Can be any
99
92
  # arbitrary string assigned to a user, but should not exceed 40 characters.
93
+ # @param [String] fields
94
+ # Selector specifying which fields to include in a partial response.
100
95
  # @param [Google::Apis::RequestOptions] options
101
96
  # Request-specific options
102
97
  #
103
98
  # @yield [result, err] Result & error if block supplied
104
- # @yieldparam result [Google::Apis::LoggingV2beta1::ListSinksResponse] parsed result object
99
+ # @yieldparam result [Google::Apis::LoggingV2beta1::LogMetric] parsed result object
105
100
  # @yieldparam err [StandardError] error object if request failed
106
101
  #
107
- # @return [Google::Apis::LoggingV2beta1::ListSinksResponse]
102
+ # @return [Google::Apis::LoggingV2beta1::LogMetric]
108
103
  #
109
104
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
110
105
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
111
106
  # @raise [Google::Apis::AuthorizationError] Authorization is required
112
- def list_project_sinks(project_name, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
113
- command = make_simple_command(:get, 'v2beta1/{+projectName}/sinks', options)
114
- command.response_representation = Google::Apis::LoggingV2beta1::ListSinksResponse::Representation
115
- command.response_class = Google::Apis::LoggingV2beta1::ListSinksResponse
116
- command.params['projectName'] = project_name unless project_name.nil?
117
- command.query['pageToken'] = page_token unless page_token.nil?
118
- command.query['pageSize'] = page_size unless page_size.nil?
119
- command.query['fields'] = fields unless fields.nil?
107
+ def get_project_metric(metric_name, quota_user: nil, fields: nil, options: nil, &block)
108
+ command = make_simple_command(:get, 'v2beta1/{+metricName}', options)
109
+ command.response_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
110
+ command.response_class = Google::Apis::LoggingV2beta1::LogMetric
111
+ command.params['metricName'] = metric_name unless metric_name.nil?
120
112
  command.query['quotaUser'] = quota_user unless quota_user.nil?
113
+ command.query['fields'] = fields unless fields.nil?
121
114
  execute_or_queue_command(command, &block)
122
115
  end
123
116
 
124
- # Gets a sink.
125
- # @param [String] sink_name
126
- # The resource name of the sink to return. Example: `"projects/my-project-id/
127
- # sinks/my-sink-id"`.
128
- # @param [String] fields
129
- # Selector specifying which fields to include in a partial response.
117
+ # Creates a logs-based metric.
118
+ # @param [String] parent
119
+ # The resource name of the project in which to create the metric.
120
+ # Example: `"projects/my-project-id"`.
121
+ # The new metric must be provided in the request.
122
+ # @param [Google::Apis::LoggingV2beta1::LogMetric] log_metric_object
130
123
  # @param [String] quota_user
131
124
  # Available to use for quota purposes for server-side applications. Can be any
132
125
  # arbitrary string assigned to a user, but should not exceed 40 characters.
126
+ # @param [String] fields
127
+ # Selector specifying which fields to include in a partial response.
133
128
  # @param [Google::Apis::RequestOptions] options
134
129
  # Request-specific options
135
130
  #
136
131
  # @yield [result, err] Result & error if block supplied
137
- # @yieldparam result [Google::Apis::LoggingV2beta1::LogSink] parsed result object
132
+ # @yieldparam result [Google::Apis::LoggingV2beta1::LogMetric] parsed result object
138
133
  # @yieldparam err [StandardError] error object if request failed
139
134
  #
140
- # @return [Google::Apis::LoggingV2beta1::LogSink]
135
+ # @return [Google::Apis::LoggingV2beta1::LogMetric]
141
136
  #
142
137
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
143
138
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
144
139
  # @raise [Google::Apis::AuthorizationError] Authorization is required
145
- def get_project_sink(sink_name, fields: nil, quota_user: nil, options: nil, &block)
146
- command = make_simple_command(:get, 'v2beta1/{+sinkName}', options)
147
- command.response_representation = Google::Apis::LoggingV2beta1::LogSink::Representation
148
- command.response_class = Google::Apis::LoggingV2beta1::LogSink
149
- command.params['sinkName'] = sink_name unless sink_name.nil?
150
- command.query['fields'] = fields unless fields.nil?
140
+ def create_project_metric(parent, log_metric_object = nil, quota_user: nil, fields: nil, options: nil, &block)
141
+ command = make_simple_command(:post, 'v2beta1/{+parent}/metrics', options)
142
+ command.request_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
143
+ command.request_object = log_metric_object
144
+ command.response_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
145
+ command.response_class = Google::Apis::LoggingV2beta1::LogMetric
146
+ command.params['parent'] = parent unless parent.nil?
151
147
  command.query['quotaUser'] = quota_user unless quota_user.nil?
148
+ command.query['fields'] = fields unless fields.nil?
152
149
  execute_or_queue_command(command, &block)
153
150
  end
154
151
 
155
- # Creates a sink.
156
- # @param [String] project_name
157
- # The resource name of the project in which to create the sink. Example: `"
158
- # projects/my-project-id"`. The new sink must be provided in the request.
159
- # @param [Google::Apis::LoggingV2beta1::LogSink] log_sink_object
160
- # @param [String] fields
161
- # Selector specifying which fields to include in a partial response.
152
+ # Lists logs-based metrics.
153
+ # @param [String] parent
154
+ # Required. The resource name containing the metrics.
155
+ # Example: `"projects/my-project-id"`.
156
+ # @param [Fixnum] page_size
157
+ # Optional. The maximum number of results to return from this request.
158
+ # Non-positive values are ignored. The presence of `nextPageToken` in the
159
+ # response indicates that more results might be available.
160
+ # @param [String] page_token
161
+ # Optional. If present, then retrieve the next batch of results from the
162
+ # preceding call to this method. `pageToken` must be the value of
163
+ # `nextPageToken` from the previous response. The values of other method
164
+ # parameters should be identical to those in the previous call.
162
165
  # @param [String] quota_user
163
166
  # Available to use for quota purposes for server-side applications. Can be any
164
167
  # arbitrary string assigned to a user, but should not exceed 40 characters.
168
+ # @param [String] fields
169
+ # Selector specifying which fields to include in a partial response.
165
170
  # @param [Google::Apis::RequestOptions] options
166
171
  # Request-specific options
167
172
  #
168
173
  # @yield [result, err] Result & error if block supplied
169
- # @yieldparam result [Google::Apis::LoggingV2beta1::LogSink] parsed result object
174
+ # @yieldparam result [Google::Apis::LoggingV2beta1::ListLogMetricsResponse] parsed result object
170
175
  # @yieldparam err [StandardError] error object if request failed
171
176
  #
172
- # @return [Google::Apis::LoggingV2beta1::LogSink]
177
+ # @return [Google::Apis::LoggingV2beta1::ListLogMetricsResponse]
173
178
  #
174
179
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
175
180
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
176
181
  # @raise [Google::Apis::AuthorizationError] Authorization is required
177
- def create_project_sink(project_name, log_sink_object = nil, fields: nil, quota_user: nil, options: nil, &block)
178
- command = make_simple_command(:post, 'v2beta1/{+projectName}/sinks', options)
179
- command.request_representation = Google::Apis::LoggingV2beta1::LogSink::Representation
180
- command.request_object = log_sink_object
181
- command.response_representation = Google::Apis::LoggingV2beta1::LogSink::Representation
182
- command.response_class = Google::Apis::LoggingV2beta1::LogSink
183
- command.params['projectName'] = project_name unless project_name.nil?
184
- command.query['fields'] = fields unless fields.nil?
182
+ def list_project_metrics(parent, page_size: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
183
+ command = make_simple_command(:get, 'v2beta1/{+parent}/metrics', options)
184
+ command.response_representation = Google::Apis::LoggingV2beta1::ListLogMetricsResponse::Representation
185
+ command.response_class = Google::Apis::LoggingV2beta1::ListLogMetricsResponse
186
+ command.params['parent'] = parent unless parent.nil?
187
+ command.query['pageSize'] = page_size unless page_size.nil?
188
+ command.query['pageToken'] = page_token unless page_token.nil?
185
189
  command.query['quotaUser'] = quota_user unless quota_user.nil?
190
+ command.query['fields'] = fields unless fields.nil?
186
191
  execute_or_queue_command(command, &block)
187
192
  end
188
193
 
189
- # Creates or updates a sink.
190
- # @param [String] sink_name
191
- # The resource name of the sink to update. Example: `"projects/my-project-id/
192
- # sinks/my-sink-id"`. The updated sink must be provided in the request and have
193
- # the same name that is specified in `sinkName`. If the sink does not exist, it
194
- # is created.
195
- # @param [Google::Apis::LoggingV2beta1::LogSink] log_sink_object
196
- # @param [String] fields
197
- # Selector specifying which fields to include in a partial response.
194
+ # Deletes a logs-based metric.
195
+ # @param [String] metric_name
196
+ # The resource name of the metric to delete.
197
+ # Example: `"projects/my-project-id/metrics/my-metric-id"`.
198
198
  # @param [String] quota_user
199
199
  # Available to use for quota purposes for server-side applications. Can be any
200
200
  # arbitrary string assigned to a user, but should not exceed 40 characters.
201
+ # @param [String] fields
202
+ # Selector specifying which fields to include in a partial response.
201
203
  # @param [Google::Apis::RequestOptions] options
202
204
  # Request-specific options
203
205
  #
204
206
  # @yield [result, err] Result & error if block supplied
205
- # @yieldparam result [Google::Apis::LoggingV2beta1::LogSink] parsed result object
207
+ # @yieldparam result [Google::Apis::LoggingV2beta1::Empty] parsed result object
206
208
  # @yieldparam err [StandardError] error object if request failed
207
209
  #
208
- # @return [Google::Apis::LoggingV2beta1::LogSink]
210
+ # @return [Google::Apis::LoggingV2beta1::Empty]
209
211
  #
210
212
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
211
213
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
212
214
  # @raise [Google::Apis::AuthorizationError] Authorization is required
213
- def update_project_sink(sink_name, log_sink_object = nil, fields: nil, quota_user: nil, options: nil, &block)
214
- command = make_simple_command(:put, 'v2beta1/{+sinkName}', options)
215
- command.request_representation = Google::Apis::LoggingV2beta1::LogSink::Representation
216
- command.request_object = log_sink_object
217
- command.response_representation = Google::Apis::LoggingV2beta1::LogSink::Representation
218
- command.response_class = Google::Apis::LoggingV2beta1::LogSink
219
- command.params['sinkName'] = sink_name unless sink_name.nil?
220
- command.query['fields'] = fields unless fields.nil?
215
+ def delete_project_metric(metric_name, quota_user: nil, fields: nil, options: nil, &block)
216
+ command = make_simple_command(:delete, 'v2beta1/{+metricName}', options)
217
+ command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
218
+ command.response_class = Google::Apis::LoggingV2beta1::Empty
219
+ command.params['metricName'] = metric_name unless metric_name.nil?
221
220
  command.query['quotaUser'] = quota_user unless quota_user.nil?
221
+ command.query['fields'] = fields unless fields.nil?
222
222
  execute_or_queue_command(command, &block)
223
223
  end
224
224
 
225
- # Deletes a sink.
226
- # @param [String] sink_name
227
- # The resource name of the sink to delete. Example: `"projects/my-project-id/
228
- # sinks/my-sink-id"`.
229
- # @param [String] fields
230
- # Selector specifying which fields to include in a partial response.
225
+ # Deletes a log and all its log entries.
226
+ # The log will reappear if it receives new entries.
227
+ # @param [String] log_name
228
+ # Required. The resource name of the log to delete. Example:
229
+ # `"projects/my-project/logs/syslog"`.
231
230
  # @param [String] quota_user
232
231
  # Available to use for quota purposes for server-side applications. Can be any
233
232
  # arbitrary string assigned to a user, but should not exceed 40 characters.
233
+ # @param [String] fields
234
+ # Selector specifying which fields to include in a partial response.
234
235
  # @param [Google::Apis::RequestOptions] options
235
236
  # Request-specific options
236
237
  #
@@ -243,169 +244,202 @@ module Google
243
244
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
244
245
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
245
246
  # @raise [Google::Apis::AuthorizationError] Authorization is required
246
- def delete_project_sink(sink_name, fields: nil, quota_user: nil, options: nil, &block)
247
- command = make_simple_command(:delete, 'v2beta1/{+sinkName}', options)
247
+ def delete_log(log_name, quota_user: nil, fields: nil, options: nil, &block)
248
+ command = make_simple_command(:delete, 'v2beta1/{+logName}', options)
248
249
  command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
249
250
  command.response_class = Google::Apis::LoggingV2beta1::Empty
250
- command.params['sinkName'] = sink_name unless sink_name.nil?
251
- command.query['fields'] = fields unless fields.nil?
251
+ command.params['logName'] = log_name unless log_name.nil?
252
252
  command.query['quotaUser'] = quota_user unless quota_user.nil?
253
+ command.query['fields'] = fields unless fields.nil?
253
254
  execute_or_queue_command(command, &block)
254
255
  end
255
256
 
256
- # Lists logs-based metrics.
257
- # @param [String] project_name
258
- # Required. The resource name of the project containing the metrics. Example: `"
259
- # projects/my-project-id"`.
260
- # @param [String] page_token
261
- # Optional. If the `pageToken` parameter is supplied, then the next page of
262
- # results is retrieved. The `pageToken` parameter must be set to the value of
263
- # the `nextPageToken` from the previous response. The value of `projectName`
264
- # must be the same as in the previous request.
265
- # @param [Fixnum] page_size
266
- # Optional. The maximum number of results to return from this request. You must
267
- # check for presence of `nextPageToken` to determine if additional results are
268
- # available, which you can retrieve by passing the `nextPageToken` value as the `
269
- # pageToken` parameter in the next request.
270
- # @param [String] fields
271
- # Selector specifying which fields to include in a partial response.
257
+ # Updates or creates a sink.
258
+ # @param [String] sink_name
259
+ # Required. The resource name of the sink to update, including the parent
260
+ # resource and the sink identifier. If the sink does not exist, this method
261
+ # creates the sink. Example: `"projects/my-project-id/sinks/my-sink-id"`.
262
+ # @param [Google::Apis::LoggingV2beta1::LogSink] log_sink_object
272
263
  # @param [String] quota_user
273
264
  # Available to use for quota purposes for server-side applications. Can be any
274
265
  # arbitrary string assigned to a user, but should not exceed 40 characters.
266
+ # @param [String] fields
267
+ # Selector specifying which fields to include in a partial response.
275
268
  # @param [Google::Apis::RequestOptions] options
276
269
  # Request-specific options
277
270
  #
278
271
  # @yield [result, err] Result & error if block supplied
279
- # @yieldparam result [Google::Apis::LoggingV2beta1::ListLogMetricsResponse] parsed result object
272
+ # @yieldparam result [Google::Apis::LoggingV2beta1::LogSink] parsed result object
280
273
  # @yieldparam err [StandardError] error object if request failed
281
274
  #
282
- # @return [Google::Apis::LoggingV2beta1::ListLogMetricsResponse]
275
+ # @return [Google::Apis::LoggingV2beta1::LogSink]
283
276
  #
284
277
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
285
278
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
286
279
  # @raise [Google::Apis::AuthorizationError] Authorization is required
287
- def list_project_metrics(project_name, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
288
- command = make_simple_command(:get, 'v2beta1/{+projectName}/metrics', options)
289
- command.response_representation = Google::Apis::LoggingV2beta1::ListLogMetricsResponse::Representation
290
- command.response_class = Google::Apis::LoggingV2beta1::ListLogMetricsResponse
291
- command.params['projectName'] = project_name unless project_name.nil?
292
- command.query['pageToken'] = page_token unless page_token.nil?
293
- command.query['pageSize'] = page_size unless page_size.nil?
294
- command.query['fields'] = fields unless fields.nil?
280
+ def update_project_sink(sink_name, log_sink_object = nil, quota_user: nil, fields: nil, options: nil, &block)
281
+ command = make_simple_command(:put, 'v2beta1/{+sinkName}', options)
282
+ command.request_representation = Google::Apis::LoggingV2beta1::LogSink::Representation
283
+ command.request_object = log_sink_object
284
+ command.response_representation = Google::Apis::LoggingV2beta1::LogSink::Representation
285
+ command.response_class = Google::Apis::LoggingV2beta1::LogSink
286
+ command.params['sinkName'] = sink_name unless sink_name.nil?
295
287
  command.query['quotaUser'] = quota_user unless quota_user.nil?
288
+ command.query['fields'] = fields unless fields.nil?
296
289
  execute_or_queue_command(command, &block)
297
290
  end
298
291
 
299
- # Gets a logs-based metric.
300
- # @param [String] metric_name
301
- # The resource name of the desired metric. Example: `"projects/my-project-id/
302
- # metrics/my-metric-id"`.
303
- # @param [String] fields
304
- # Selector specifying which fields to include in a partial response.
292
+ # Gets a sink.
293
+ # @param [String] sink_name
294
+ # Required. The resource name of the sink to return.
295
+ # Example: `"projects/my-project-id/sinks/my-sink-id"`.
305
296
  # @param [String] quota_user
306
297
  # Available to use for quota purposes for server-side applications. Can be any
307
298
  # arbitrary string assigned to a user, but should not exceed 40 characters.
299
+ # @param [String] fields
300
+ # Selector specifying which fields to include in a partial response.
308
301
  # @param [Google::Apis::RequestOptions] options
309
302
  # Request-specific options
310
303
  #
311
304
  # @yield [result, err] Result & error if block supplied
312
- # @yieldparam result [Google::Apis::LoggingV2beta1::LogMetric] parsed result object
305
+ # @yieldparam result [Google::Apis::LoggingV2beta1::LogSink] parsed result object
313
306
  # @yieldparam err [StandardError] error object if request failed
314
307
  #
315
- # @return [Google::Apis::LoggingV2beta1::LogMetric]
308
+ # @return [Google::Apis::LoggingV2beta1::LogSink]
316
309
  #
317
310
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
318
311
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
319
312
  # @raise [Google::Apis::AuthorizationError] Authorization is required
320
- def get_project_metric(metric_name, fields: nil, quota_user: nil, options: nil, &block)
321
- command = make_simple_command(:get, 'v2beta1/{+metricName}', options)
322
- command.response_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
323
- command.response_class = Google::Apis::LoggingV2beta1::LogMetric
324
- command.params['metricName'] = metric_name unless metric_name.nil?
325
- command.query['fields'] = fields unless fields.nil?
313
+ def get_project_sink(sink_name, quota_user: nil, fields: nil, options: nil, &block)
314
+ command = make_simple_command(:get, 'v2beta1/{+sinkName}', options)
315
+ command.response_representation = Google::Apis::LoggingV2beta1::LogSink::Representation
316
+ command.response_class = Google::Apis::LoggingV2beta1::LogSink
317
+ command.params['sinkName'] = sink_name unless sink_name.nil?
326
318
  command.query['quotaUser'] = quota_user unless quota_user.nil?
319
+ command.query['fields'] = fields unless fields.nil?
327
320
  execute_or_queue_command(command, &block)
328
321
  end
329
322
 
330
- # Creates a logs-based metric.
331
- # @param [String] project_name
332
- # The resource name of the project in which to create the metric. Example: `"
333
- # projects/my-project-id"`. The new metric must be provided in the request.
334
- # @param [Google::Apis::LoggingV2beta1::LogMetric] log_metric_object
335
- # @param [String] fields
336
- # Selector specifying which fields to include in a partial response.
323
+ # Creates a sink.
324
+ # @param [String] parent
325
+ # Required. The resource in which to create the sink.
326
+ # Example: `"projects/my-project-id"`.
327
+ # The new sink must be provided in the request.
328
+ # @param [Google::Apis::LoggingV2beta1::LogSink] log_sink_object
337
329
  # @param [String] quota_user
338
330
  # Available to use for quota purposes for server-side applications. Can be any
339
331
  # arbitrary string assigned to a user, but should not exceed 40 characters.
332
+ # @param [String] fields
333
+ # Selector specifying which fields to include in a partial response.
340
334
  # @param [Google::Apis::RequestOptions] options
341
335
  # Request-specific options
342
336
  #
343
337
  # @yield [result, err] Result & error if block supplied
344
- # @yieldparam result [Google::Apis::LoggingV2beta1::LogMetric] parsed result object
338
+ # @yieldparam result [Google::Apis::LoggingV2beta1::LogSink] parsed result object
345
339
  # @yieldparam err [StandardError] error object if request failed
346
340
  #
347
- # @return [Google::Apis::LoggingV2beta1::LogMetric]
341
+ # @return [Google::Apis::LoggingV2beta1::LogSink]
348
342
  #
349
343
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
350
344
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
351
345
  # @raise [Google::Apis::AuthorizationError] Authorization is required
352
- def create_project_metric(project_name, log_metric_object = nil, fields: nil, quota_user: nil, options: nil, &block)
353
- command = make_simple_command(:post, 'v2beta1/{+projectName}/metrics', options)
354
- command.request_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
355
- command.request_object = log_metric_object
356
- command.response_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
357
- command.response_class = Google::Apis::LoggingV2beta1::LogMetric
358
- command.params['projectName'] = project_name unless project_name.nil?
359
- command.query['fields'] = fields unless fields.nil?
346
+ def create_project_sink(parent, log_sink_object = nil, quota_user: nil, fields: nil, options: nil, &block)
347
+ command = make_simple_command(:post, 'v2beta1/{+parent}/sinks', options)
348
+ command.request_representation = Google::Apis::LoggingV2beta1::LogSink::Representation
349
+ command.request_object = log_sink_object
350
+ command.response_representation = Google::Apis::LoggingV2beta1::LogSink::Representation
351
+ command.response_class = Google::Apis::LoggingV2beta1::LogSink
352
+ command.params['parent'] = parent unless parent.nil?
360
353
  command.query['quotaUser'] = quota_user unless quota_user.nil?
354
+ command.query['fields'] = fields unless fields.nil?
361
355
  execute_or_queue_command(command, &block)
362
356
  end
363
357
 
364
- # Creates or updates a logs-based metric.
365
- # @param [String] metric_name
366
- # The resource name of the metric to update. Example: `"projects/my-project-id/
367
- # metrics/my-metric-id"`. The updated metric must be provided in the request and
368
- # have the same identifier that is specified in `metricName`. If the metric does
369
- # not exist, it is created.
370
- # @param [Google::Apis::LoggingV2beta1::LogMetric] log_metric_object
371
- # @param [String] fields
372
- # Selector specifying which fields to include in a partial response.
358
+ # Lists sinks.
359
+ # @param [String] parent
360
+ # Required. The cloud resource containing the sinks.
361
+ # Example: `"projects/my-logging-project"`.
362
+ # @param [Fixnum] page_size
363
+ # Optional. The maximum number of results to return from this request.
364
+ # Non-positive values are ignored. The presence of `nextPageToken` in the
365
+ # response indicates that more results might be available.
366
+ # @param [String] page_token
367
+ # Optional. If present, then retrieve the next batch of results from the
368
+ # preceding call to this method. `pageToken` must be the value of
369
+ # `nextPageToken` from the previous response. The values of other method
370
+ # parameters should be identical to those in the previous call.
373
371
  # @param [String] quota_user
374
372
  # Available to use for quota purposes for server-side applications. Can be any
375
373
  # arbitrary string assigned to a user, but should not exceed 40 characters.
374
+ # @param [String] fields
375
+ # Selector specifying which fields to include in a partial response.
376
376
  # @param [Google::Apis::RequestOptions] options
377
377
  # Request-specific options
378
378
  #
379
379
  # @yield [result, err] Result & error if block supplied
380
- # @yieldparam result [Google::Apis::LoggingV2beta1::LogMetric] parsed result object
380
+ # @yieldparam result [Google::Apis::LoggingV2beta1::ListSinksResponse] parsed result object
381
381
  # @yieldparam err [StandardError] error object if request failed
382
382
  #
383
- # @return [Google::Apis::LoggingV2beta1::LogMetric]
383
+ # @return [Google::Apis::LoggingV2beta1::ListSinksResponse]
384
384
  #
385
385
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
386
386
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
387
387
  # @raise [Google::Apis::AuthorizationError] Authorization is required
388
- def update_project_metric(metric_name, log_metric_object = nil, fields: nil, quota_user: nil, options: nil, &block)
389
- command = make_simple_command(:put, 'v2beta1/{+metricName}', options)
390
- command.request_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
391
- command.request_object = log_metric_object
392
- command.response_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
393
- command.response_class = Google::Apis::LoggingV2beta1::LogMetric
394
- command.params['metricName'] = metric_name unless metric_name.nil?
395
- command.query['fields'] = fields unless fields.nil?
388
+ def list_project_sinks(parent, page_size: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
389
+ command = make_simple_command(:get, 'v2beta1/{+parent}/sinks', options)
390
+ command.response_representation = Google::Apis::LoggingV2beta1::ListSinksResponse::Representation
391
+ command.response_class = Google::Apis::LoggingV2beta1::ListSinksResponse
392
+ command.params['parent'] = parent unless parent.nil?
393
+ command.query['pageSize'] = page_size unless page_size.nil?
394
+ command.query['pageToken'] = page_token unless page_token.nil?
396
395
  command.query['quotaUser'] = quota_user unless quota_user.nil?
396
+ command.query['fields'] = fields unless fields.nil?
397
397
  execute_or_queue_command(command, &block)
398
398
  end
399
399
 
400
- # Deletes a logs-based metric.
401
- # @param [String] metric_name
402
- # The resource name of the metric to delete. Example: `"projects/my-project-id/
403
- # metrics/my-metric-id"`.
400
+ # Deletes a sink.
401
+ # @param [String] sink_name
402
+ # Required. The resource name of the sink to delete, including the parent
403
+ # resource and the sink identifier. Example:
404
+ # `"projects/my-project-id/sinks/my-sink-id"`. It is an error if the sink
405
+ # does not exist.
406
+ # @param [String] quota_user
407
+ # Available to use for quota purposes for server-side applications. Can be any
408
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
404
409
  # @param [String] fields
405
410
  # Selector specifying which fields to include in a partial response.
411
+ # @param [Google::Apis::RequestOptions] options
412
+ # Request-specific options
413
+ #
414
+ # @yield [result, err] Result & error if block supplied
415
+ # @yieldparam result [Google::Apis::LoggingV2beta1::Empty] parsed result object
416
+ # @yieldparam err [StandardError] error object if request failed
417
+ #
418
+ # @return [Google::Apis::LoggingV2beta1::Empty]
419
+ #
420
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
421
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
422
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
423
+ def delete_project_sink(sink_name, quota_user: nil, fields: nil, options: nil, &block)
424
+ command = make_simple_command(:delete, 'v2beta1/{+sinkName}', options)
425
+ command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
426
+ command.response_class = Google::Apis::LoggingV2beta1::Empty
427
+ command.params['sinkName'] = sink_name unless sink_name.nil?
428
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
429
+ command.query['fields'] = fields unless fields.nil?
430
+ execute_or_queue_command(command, &block)
431
+ end
432
+
433
+ # Deletes a log and all its log entries.
434
+ # The log will reappear if it receives new entries.
435
+ # @param [String] log_name
436
+ # Required. The resource name of the log to delete. Example:
437
+ # `"projects/my-project/logs/syslog"`.
406
438
  # @param [String] quota_user
407
439
  # Available to use for quota purposes for server-side applications. Can be any
408
440
  # arbitrary string assigned to a user, but should not exceed 40 characters.
441
+ # @param [String] fields
442
+ # Selector specifying which fields to include in a partial response.
409
443
  # @param [Google::Apis::RequestOptions] options
410
444
  # Request-specific options
411
445
  #
@@ -418,24 +452,24 @@ module Google
418
452
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
419
453
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
420
454
  # @raise [Google::Apis::AuthorizationError] Authorization is required
421
- def delete_project_metric(metric_name, fields: nil, quota_user: nil, options: nil, &block)
422
- command = make_simple_command(:delete, 'v2beta1/{+metricName}', options)
455
+ def delete_organization_log(log_name, quota_user: nil, fields: nil, options: nil, &block)
456
+ command = make_simple_command(:delete, 'v2beta1/{+logName}', options)
423
457
  command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
424
458
  command.response_class = Google::Apis::LoggingV2beta1::Empty
425
- command.params['metricName'] = metric_name unless metric_name.nil?
426
- command.query['fields'] = fields unless fields.nil?
459
+ command.params['logName'] = log_name unless log_name.nil?
427
460
  command.query['quotaUser'] = quota_user unless quota_user.nil?
461
+ command.query['fields'] = fields unless fields.nil?
428
462
  execute_or_queue_command(command, &block)
429
463
  end
430
464
 
431
- # Writes log entries to Cloud Logging. All log entries in Cloud Logging are
465
+ # Writes log entries to Stackdriver Logging. All log entries are
432
466
  # written by this method.
433
467
  # @param [Google::Apis::LoggingV2beta1::WriteLogEntriesRequest] write_log_entries_request_object
434
- # @param [String] fields
435
- # Selector specifying which fields to include in a partial response.
436
468
  # @param [String] quota_user
437
469
  # Available to use for quota purposes for server-side applications. Can be any
438
470
  # arbitrary string assigned to a user, but should not exceed 40 characters.
471
+ # @param [String] fields
472
+ # Selector specifying which fields to include in a partial response.
439
473
  # @param [Google::Apis::RequestOptions] options
440
474
  # Request-specific options
441
475
  #
@@ -448,25 +482,26 @@ module Google
448
482
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
449
483
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
450
484
  # @raise [Google::Apis::AuthorizationError] Authorization is required
451
- def write_entry_log_entries(write_log_entries_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
485
+ def write_entry_log_entries(write_log_entries_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
452
486
  command = make_simple_command(:post, 'v2beta1/entries:write', options)
453
487
  command.request_representation = Google::Apis::LoggingV2beta1::WriteLogEntriesRequest::Representation
454
488
  command.request_object = write_log_entries_request_object
455
489
  command.response_representation = Google::Apis::LoggingV2beta1::WriteLogEntriesResponse::Representation
456
490
  command.response_class = Google::Apis::LoggingV2beta1::WriteLogEntriesResponse
457
- command.query['fields'] = fields unless fields.nil?
458
491
  command.query['quotaUser'] = quota_user unless quota_user.nil?
492
+ command.query['fields'] = fields unless fields.nil?
459
493
  execute_or_queue_command(command, &block)
460
494
  end
461
495
 
462
- # Lists log entries. Use this method to retrieve log entries from Cloud Logging.
463
- # For ways to export log entries, see [Exporting Logs](/logging/docs/export).
496
+ # Lists log entries. Use this method to retrieve log entries from Cloud
497
+ # Logging. For ways to export log entries, see
498
+ # [Exporting Logs](/logging/docs/export).
464
499
  # @param [Google::Apis::LoggingV2beta1::ListLogEntriesRequest] list_log_entries_request_object
465
- # @param [String] fields
466
- # Selector specifying which fields to include in a partial response.
467
500
  # @param [String] quota_user
468
501
  # Available to use for quota purposes for server-side applications. Can be any
469
502
  # arbitrary string assigned to a user, but should not exceed 40 characters.
503
+ # @param [String] fields
504
+ # Selector specifying which fields to include in a partial response.
470
505
  # @param [Google::Apis::RequestOptions] options
471
506
  # Request-specific options
472
507
  #
@@ -479,32 +514,32 @@ module Google
479
514
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
480
515
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
481
516
  # @raise [Google::Apis::AuthorizationError] Authorization is required
482
- def list_entry_log_entries(list_log_entries_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
517
+ def list_entry_log_entries(list_log_entries_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
483
518
  command = make_simple_command(:post, 'v2beta1/entries:list', options)
484
519
  command.request_representation = Google::Apis::LoggingV2beta1::ListLogEntriesRequest::Representation
485
520
  command.request_object = list_log_entries_request_object
486
521
  command.response_representation = Google::Apis::LoggingV2beta1::ListLogEntriesResponse::Representation
487
522
  command.response_class = Google::Apis::LoggingV2beta1::ListLogEntriesResponse
488
- command.query['fields'] = fields unless fields.nil?
489
523
  command.query['quotaUser'] = quota_user unless quota_user.nil?
524
+ command.query['fields'] = fields unless fields.nil?
490
525
  execute_or_queue_command(command, &block)
491
526
  end
492
527
 
493
- # Lists monitored resource descriptors that are used by Cloud Logging.
528
+ # Lists the monitored resource descriptors used by Stackdriver Logging.
494
529
  # @param [Fixnum] page_size
495
- # Optional. The maximum number of results to return from this request. You must
496
- # check for presence of `nextPageToken` to determine if additional results are
497
- # available, which you can retrieve by passing the `nextPageToken` value as the `
498
- # pageToken` parameter in the next request.
530
+ # Optional. The maximum number of results to return from this request.
531
+ # Non-positive values are ignored. The presence of `nextPageToken` in the
532
+ # response indicates that more results might be available.
499
533
  # @param [String] page_token
500
- # Optional. If the `pageToken` parameter is supplied, then the next page of
501
- # results is retrieved. The `pageToken` parameter must be set to the value of
502
- # the `nextPageToken` from the previous response.
503
- # @param [String] fields
504
- # Selector specifying which fields to include in a partial response.
534
+ # Optional. If present, then retrieve the next batch of results from the
535
+ # preceding call to this method. `pageToken` must be the value of
536
+ # `nextPageToken` from the previous response. The values of other method
537
+ # parameters should be identical to those in the previous call.
505
538
  # @param [String] quota_user
506
539
  # Available to use for quota purposes for server-side applications. Can be any
507
540
  # arbitrary string assigned to a user, but should not exceed 40 characters.
541
+ # @param [String] fields
542
+ # Selector specifying which fields to include in a partial response.
508
543
  # @param [Google::Apis::RequestOptions] options
509
544
  # Request-specific options
510
545
  #
@@ -517,14 +552,46 @@ module Google
517
552
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
518
553
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
519
554
  # @raise [Google::Apis::AuthorizationError] Authorization is required
520
- def list_monitored_resource_descriptors(page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
555
+ def list_monitored_resource_descriptors(page_size: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
521
556
  command = make_simple_command(:get, 'v2beta1/monitoredResourceDescriptors', options)
522
557
  command.response_representation = Google::Apis::LoggingV2beta1::ListMonitoredResourceDescriptorsResponse::Representation
523
558
  command.response_class = Google::Apis::LoggingV2beta1::ListMonitoredResourceDescriptorsResponse
524
559
  command.query['pageSize'] = page_size unless page_size.nil?
525
560
  command.query['pageToken'] = page_token unless page_token.nil?
561
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
526
562
  command.query['fields'] = fields unless fields.nil?
563
+ execute_or_queue_command(command, &block)
564
+ end
565
+
566
+ # Deletes a log and all its log entries.
567
+ # The log will reappear if it receives new entries.
568
+ # @param [String] log_name
569
+ # Required. The resource name of the log to delete. Example:
570
+ # `"projects/my-project/logs/syslog"`.
571
+ # @param [String] quota_user
572
+ # Available to use for quota purposes for server-side applications. Can be any
573
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
574
+ # @param [String] fields
575
+ # Selector specifying which fields to include in a partial response.
576
+ # @param [Google::Apis::RequestOptions] options
577
+ # Request-specific options
578
+ #
579
+ # @yield [result, err] Result & error if block supplied
580
+ # @yieldparam result [Google::Apis::LoggingV2beta1::Empty] parsed result object
581
+ # @yieldparam err [StandardError] error object if request failed
582
+ #
583
+ # @return [Google::Apis::LoggingV2beta1::Empty]
584
+ #
585
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
586
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
587
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
588
+ def delete_billing_account_log(log_name, quota_user: nil, fields: nil, options: nil, &block)
589
+ command = make_simple_command(:delete, 'v2beta1/{+logName}', options)
590
+ command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
591
+ command.response_class = Google::Apis::LoggingV2beta1::Empty
592
+ command.params['logName'] = log_name unless log_name.nil?
527
593
  command.query['quotaUser'] = quota_user unless quota_user.nil?
594
+ command.query['fields'] = fields unless fields.nil?
528
595
  execute_or_queue_command(command, &block)
529
596
  end
530
597