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.
- checksums.yaml +4 -4
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +35 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +298 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +122 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +458 -0
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +82 -3
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +33 -0
- data/generated/google/apis/adexchangebuyer_v1_4/service.rb +38 -0
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +80 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +23 -0
- data/generated/google/apis/admin_directory_v1/service.rb +39 -0
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/classes.rb +11 -5
- data/generated/google/apis/analytics_v3/representations.rb +1 -0
- data/generated/google/apis/analytics_v3/service.rb +17 -18
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +80 -2
- data/generated/google/apis/androidenterprise_v1/representations.rb +30 -0
- data/generated/google/apis/androidenterprise_v1/service.rb +55 -6
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/appengine_v1beta5.rb +1 -1
- data/generated/google/apis/appengine_v1beta5/classes.rb +1 -1
- data/generated/google/apis/appengine_v1beta5/service.rb +36 -0
- data/generated/google/apis/appsactivity_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +2 -2
- data/generated/google/apis/books_v1.rb +1 -1
- data/generated/google/apis/books_v1/classes.rb +2 -1
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/classroom_v1/classes.rb +7 -0
- data/generated/google/apis/classroom_v1/representations.rb +1 -0
- data/generated/google/apis/classroom_v1/service.rb +25 -15
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +56 -8
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +535 -298
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +141 -36
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +250 -45
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +99 -4
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +44 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +24 -33
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +44 -29
- data/generated/google/apis/compute_beta/representations.rb +1 -0
- data/generated/google/apis/compute_beta/service.rb +123 -25
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +43 -20
- data/generated/google/apis/compute_v1/representations.rb +3 -0
- data/generated/google/apis/compute_v1/service.rb +608 -67
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/dataflow_v1b3.rb +38 -0
- data/generated/google/apis/dataflow_v1b3/classes.rb +4009 -0
- data/generated/google/apis/dataflow_v1b3/representations.rb +1718 -0
- data/generated/google/apis/dataflow_v1b3/service.rb +515 -0
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +79 -86
- data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +25 -28
- data/generated/google/apis/doubleclickbidmanager_v1/service.rb +10 -8
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +9 -0
- data/generated/google/apis/drive_v2/representations.rb +1 -0
- data/generated/google/apis/drive_v2/service.rb +8 -1
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +7 -0
- data/generated/google/apis/drive_v3/representations.rb +1 -0
- data/generated/google/apis/drive_v3/service.rb +8 -1
- data/generated/google/apis/genomics_v1.rb +1 -1
- data/generated/google/apis/iam_v1.rb +2 -2
- data/generated/google/apis/iam_v1/classes.rb +181 -206
- data/generated/google/apis/iam_v1/representations.rb +36 -45
- data/generated/google/apis/iam_v1/service.rb +101 -67
- data/generated/google/apis/identitytoolkit_v3.rb +4 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +11 -27
- data/generated/google/apis/identitytoolkit_v3/representations.rb +2 -16
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +4 -2
- data/generated/google/apis/language_v1beta1/service.rb +2 -4
- data/generated/google/apis/logging_v2beta1.rb +6 -6
- data/generated/google/apis/logging_v2beta1/classes.rb +742 -732
- data/generated/google/apis/logging_v2beta1/representations.rb +134 -147
- data/generated/google/apis/logging_v2beta1/service.rb +276 -209
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +20 -13
- data/generated/google/apis/monitoring_v3/service.rb +1 -1
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +10 -9
- data/generated/google/apis/pubsub_v1/service.rb +128 -27
- data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -2
- data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +3 -1
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +2 -0
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +20 -30
- data/generated/google/apis/speech_v1beta1/representations.rb +6 -7
- data/generated/google/apis/speech_v1beta1/service.rb +68 -65
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +6 -0
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +1 -0
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +3 -3
- data/generated/google/apis/storage_v1/representations.rb +2 -1
- data/generated/google/apis/storage_v1/service.rb +5 -2
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +10 -2
|
@@ -20,9 +20,9 @@ require 'google/apis/errors'
|
|
|
20
20
|
module Google
|
|
21
21
|
module Apis
|
|
22
22
|
module LoggingV2beta1
|
|
23
|
-
#
|
|
23
|
+
# Stackdriver Logging API
|
|
24
24
|
#
|
|
25
|
-
# Writes log entries and manages your
|
|
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
|
-
#
|
|
50
|
-
#
|
|
51
|
-
#
|
|
52
|
-
#
|
|
53
|
-
#
|
|
54
|
-
#
|
|
55
|
-
#
|
|
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::
|
|
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::
|
|
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
|
|
72
|
-
command = make_simple_command(:
|
|
73
|
-
command.
|
|
74
|
-
command.
|
|
75
|
-
command.
|
|
76
|
-
command.
|
|
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
|
-
#
|
|
82
|
-
# @param [String]
|
|
83
|
-
#
|
|
84
|
-
# projects/my-
|
|
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::
|
|
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::
|
|
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
|
|
113
|
-
command = make_simple_command(:get, 'v2beta1/{+
|
|
114
|
-
command.response_representation = Google::Apis::LoggingV2beta1::
|
|
115
|
-
command.response_class = Google::Apis::LoggingV2beta1::
|
|
116
|
-
command.params['
|
|
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
|
-
#
|
|
125
|
-
# @param [String]
|
|
126
|
-
# The resource name of the
|
|
127
|
-
#
|
|
128
|
-
#
|
|
129
|
-
#
|
|
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::
|
|
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::
|
|
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
|
|
146
|
-
command = make_simple_command(:
|
|
147
|
-
command.
|
|
148
|
-
command.
|
|
149
|
-
command.
|
|
150
|
-
command.
|
|
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
|
-
#
|
|
156
|
-
# @param [String]
|
|
157
|
-
# The resource name
|
|
158
|
-
# projects/my-project-id"`.
|
|
159
|
-
# @param [
|
|
160
|
-
#
|
|
161
|
-
#
|
|
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::
|
|
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::
|
|
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
|
|
178
|
-
command = make_simple_command(:
|
|
179
|
-
command.
|
|
180
|
-
command.
|
|
181
|
-
command.
|
|
182
|
-
command.
|
|
183
|
-
command.
|
|
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
|
-
#
|
|
190
|
-
# @param [String]
|
|
191
|
-
# The resource name of the
|
|
192
|
-
#
|
|
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::
|
|
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::
|
|
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
|
|
214
|
-
command = make_simple_command(:
|
|
215
|
-
command.
|
|
216
|
-
command.
|
|
217
|
-
command.
|
|
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
|
|
226
|
-
#
|
|
227
|
-
#
|
|
228
|
-
#
|
|
229
|
-
#
|
|
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
|
|
247
|
-
command = make_simple_command(:delete, 'v2beta1/{+
|
|
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['
|
|
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
|
-
#
|
|
257
|
-
# @param [String]
|
|
258
|
-
# Required. The resource name of the
|
|
259
|
-
#
|
|
260
|
-
#
|
|
261
|
-
#
|
|
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::
|
|
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::
|
|
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
|
|
288
|
-
command = make_simple_command(:
|
|
289
|
-
command.
|
|
290
|
-
command.
|
|
291
|
-
command.
|
|
292
|
-
command.
|
|
293
|
-
command.
|
|
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
|
|
300
|
-
# @param [String]
|
|
301
|
-
# The resource name of the
|
|
302
|
-
#
|
|
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::
|
|
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::
|
|
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
|
|
321
|
-
command = make_simple_command(:get, 'v2beta1/{+
|
|
322
|
-
command.response_representation = Google::Apis::LoggingV2beta1::
|
|
323
|
-
command.response_class = Google::Apis::LoggingV2beta1::
|
|
324
|
-
command.params['
|
|
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
|
|
331
|
-
# @param [String]
|
|
332
|
-
# The resource
|
|
333
|
-
# projects/my-project-id"`.
|
|
334
|
-
#
|
|
335
|
-
# @param [
|
|
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::
|
|
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::
|
|
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
|
|
353
|
-
command = make_simple_command(:post, 'v2beta1/{+
|
|
354
|
-
command.request_representation = Google::Apis::LoggingV2beta1::
|
|
355
|
-
command.request_object =
|
|
356
|
-
command.response_representation = Google::Apis::LoggingV2beta1::
|
|
357
|
-
command.response_class = Google::Apis::LoggingV2beta1::
|
|
358
|
-
command.params['
|
|
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
|
-
#
|
|
365
|
-
# @param [String]
|
|
366
|
-
# The resource
|
|
367
|
-
#
|
|
368
|
-
#
|
|
369
|
-
#
|
|
370
|
-
#
|
|
371
|
-
#
|
|
372
|
-
#
|
|
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::
|
|
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::
|
|
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
|
|
389
|
-
command = make_simple_command(:
|
|
390
|
-
command.
|
|
391
|
-
command.
|
|
392
|
-
command.
|
|
393
|
-
command.
|
|
394
|
-
command.
|
|
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
|
|
401
|
-
# @param [String]
|
|
402
|
-
# The resource name of the
|
|
403
|
-
#
|
|
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
|
|
422
|
-
command = make_simple_command(:delete, 'v2beta1/{+
|
|
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['
|
|
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
|
|
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,
|
|
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.
|
|
463
|
-
# For ways to export log entries, see
|
|
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,
|
|
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
|
|
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.
|
|
496
|
-
#
|
|
497
|
-
#
|
|
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
|
|
501
|
-
#
|
|
502
|
-
#
|
|
503
|
-
#
|
|
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,
|
|
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
|
|