google-api-client 0.15.0 → 0.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +75 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +17 -35
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +0 -2
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +958 -82
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +147 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +54 -0
- data/generated/google/apis/admin_directory_v1/service.rb +71 -1
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +18 -19
- data/generated/google/apis/androidenterprise_v1/service.rb +39 -0
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidmanagement_v1/classes.rb +12 -11
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +0 -189
- data/generated/google/apis/androidpublisher_v2/representations.rb +0 -120
- data/generated/google/apis/androidpublisher_v2/service.rb +0 -35
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1/classes.rb +1 -46
- data/generated/google/apis/appengine_v1/representations.rb +0 -17
- data/generated/google/apis/appengine_v1/service.rb +5 -1
- data/generated/google/apis/appengine_v1alpha.rb +1 -1
- data/generated/google/apis/appengine_v1alpha/classes.rb +0 -45
- data/generated/google/apis/appengine_v1alpha/representations.rb +0 -17
- data/generated/google/apis/appengine_v1alpha/service.rb +5 -1
- data/generated/google/apis/appengine_v1beta.rb +1 -1
- data/generated/google/apis/appengine_v1beta/classes.rb +5 -47
- data/generated/google/apis/appengine_v1beta/representations.rb +0 -17
- data/generated/google/apis/appengine_v1beta/service.rb +5 -1
- data/generated/google/apis/appengine_v1beta4.rb +1 -1
- data/generated/google/apis/appengine_v1beta4/classes.rb +44 -45
- data/generated/google/apis/appengine_v1beta4/representations.rb +16 -17
- data/generated/google/apis/appengine_v1beta5.rb +1 -1
- data/generated/google/apis/appengine_v1beta5/classes.rb +4 -46
- data/generated/google/apis/appengine_v1beta5/representations.rb +0 -17
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +41 -24
- data/generated/google/apis/bigquery_v2/representations.rb +3 -0
- data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
- data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +3 -7
- data/generated/google/apis/bigquerydatatransfer_v1/representations.rb +0 -1
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/service.rb +15 -3
- data/generated/google/apis/classroom_v1.rb +4 -1
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +26 -0
- data/generated/google/apis/cloudbuild_v1/representations.rb +14 -0
- data/generated/google/apis/cloudbuild_v1/service.rb +91 -0
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/classes.rb +482 -0
- data/generated/google/apis/cloudfunctions_v1/representations.rb +210 -0
- data/generated/google/apis/cloudfunctions_v1/service.rb +288 -0
- data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +119 -0
- data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +68 -0
- data/generated/google/apis/cloudfunctions_v1beta2/service.rb +77 -0
- data/generated/google/apis/cloudiot_v1.rb +1 -1
- data/generated/google/apis/cloudiot_v1/service.rb +7 -3
- data/generated/google/apis/cloudiot_v1beta1.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2/classes.rb +2 -4
- data/generated/google/apis/cloudtasks_v2beta2/representations.rb +2 -2
- data/generated/google/apis/cloudtasks_v2beta2/service.rb +4 -14
- data/generated/google/apis/cloudtrace_v2.rb +1 -1
- data/generated/google/apis/cloudtrace_v2/classes.rb +10 -7
- data/generated/google/apis/cloudtrace_v2/representations.rb +2 -2
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +143 -83
- data/generated/google/apis/compute_alpha/representations.rb +50 -30
- data/generated/google/apis/compute_alpha/service.rb +171 -5
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +47 -43
- data/generated/google/apis/compute_beta/representations.rb +1 -2
- data/generated/google/apis/compute_beta/service.rb +60 -5
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +1326 -168
- data/generated/google/apis/compute_v1/representations.rb +402 -0
- data/generated/google/apis/compute_v1/service.rb +751 -5
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +23 -16
- data/generated/google/apis/content_v2/service.rb +142 -162
- data/generated/google/apis/content_v2sandbox.rb +1 -1
- data/generated/google/apis/content_v2sandbox/service.rb +43 -43
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +44 -35
- data/generated/google/apis/dataflow_v1b3/representations.rb +6 -17
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +39 -37
- data/generated/google/apis/dataproc_v1beta2/service.rb +30 -30
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/datastore_v1/classes.rb +39 -60
- data/generated/google/apis/datastore_v1/representations.rb +27 -0
- data/generated/google/apis/datastore_v1/service.rb +34 -0
- data/generated/google/apis/datastore_v1beta3.rb +1 -1
- data/generated/google/apis/datastore_v1beta3/classes.rb +39 -60
- data/generated/google/apis/datastore_v1beta3/representations.rb +27 -0
- data/generated/google/apis/datastore_v1beta3/service.rb +34 -0
- data/generated/google/apis/deploymentmanager_alpha.rb +1 -1
- data/generated/google/apis/deploymentmanager_alpha/classes.rb +108 -0
- data/generated/google/apis/deploymentmanager_alpha/representations.rb +50 -0
- data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2beta/classes.rb +6 -0
- data/generated/google/apis/deploymentmanager_v2beta/representations.rb +1 -0
- data/generated/google/apis/dlp_v2beta1.rb +1 -1
- data/generated/google/apis/dlp_v2beta1/classes.rb +116 -10
- data/generated/google/apis/dlp_v2beta1/representations.rb +45 -0
- data/generated/google/apis/dns_v1beta2.rb +43 -0
- data/generated/google/apis/dns_v1beta2/classes.rb +915 -0
- data/generated/google/apis/dns_v1beta2/representations.rb +368 -0
- data/generated/google/apis/dns_v1beta2/service.rb +769 -0
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +6 -0
- data/generated/google/apis/drive_v2/representations.rb +2 -0
- data/generated/google/apis/drive_v2/service.rb +51 -8
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +6 -0
- data/generated/google/apis/drive_v3/representations.rb +2 -0
- data/generated/google/apis/drive_v3/service.rb +45 -7
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +25 -0
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +15 -0
- data/generated/google/apis/firebaseremoteconfig_v1.rb +1 -1
- data/generated/google/apis/firebaseremoteconfig_v1/classes.rb +21 -1
- data/generated/google/apis/firebaseremoteconfig_v1/representations.rb +2 -0
- data/generated/google/apis/firebaserules_v1.rb +1 -1
- data/generated/google/apis/firebaserules_v1/classes.rb +26 -0
- data/generated/google/apis/firebaserules_v1/representations.rb +15 -0
- data/generated/google/apis/firebaserules_v1/service.rb +37 -0
- data/generated/google/apis/firestore_v1beta1/classes.rb +29 -146
- data/generated/google/apis/firestore_v1beta1/representations.rb +8 -27
- data/generated/google/apis/firestore_v1beta1/service.rb +4 -8
- data/generated/google/apis/genomics_v1alpha2.rb +1 -1
- data/generated/google/apis/genomics_v1alpha2/classes.rb +18 -0
- data/generated/google/apis/genomics_v1alpha2/representations.rb +2 -0
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +5 -7
- data/generated/google/apis/language_v1.rb +1 -1
- data/generated/google/apis/language_v1/classes.rb +78 -0
- data/generated/google/apis/language_v1/representations.rb +45 -0
- data/generated/google/apis/language_v1/service.rb +30 -0
- data/generated/google/apis/language_v1beta2.rb +1 -1
- data/generated/google/apis/language_v1beta2/classes.rb +3 -1
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +9 -0
- data/generated/google/apis/logging_v2/representations.rb +1 -0
- data/generated/google/apis/logging_v2/service.rb +517 -0
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +9 -0
- data/generated/google/apis/logging_v2beta1/representations.rb +1 -0
- data/generated/google/apis/manufacturers_v1.rb +1 -1
- data/generated/google/apis/manufacturers_v1/classes.rb +6 -6
- data/generated/google/apis/manufacturers_v1/representations.rb +1 -1
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +22 -6
- data/generated/google/apis/ml_v1/service.rb +8 -2
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +358 -0
- data/generated/google/apis/monitoring_v3/representations.rb +145 -0
- data/generated/google/apis/monitoring_v3/service.rb +229 -0
- data/generated/google/apis/oslogin_v1alpha.rb +1 -1
- data/generated/google/apis/oslogin_v1alpha/classes.rb +13 -8
- data/generated/google/apis/oslogin_v1alpha/representations.rb +1 -0
- data/generated/google/apis/oslogin_v1alpha/service.rb +36 -1
- data/generated/google/apis/oslogin_v1beta.rb +1 -1
- data/generated/google/apis/oslogin_v1beta/classes.rb +9 -4
- data/generated/google/apis/oslogin_v1beta/representations.rb +1 -0
- data/generated/google/apis/oslogin_v1beta/service.rb +36 -1
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +7 -60
- data/generated/google/apis/partners_v2/representations.rb +1 -0
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +6 -4
- data/generated/google/apis/script_v1.rb +2 -2
- data/generated/google/apis/script_v1/classes.rb +57 -51
- data/generated/google/apis/script_v1/representations.rb +0 -1
- data/generated/google/apis/script_v1/service.rb +2 -2
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +5 -2
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +13 -31
- data/generated/google/apis/serviceuser_v1.rb +1 -1
- data/generated/google/apis/serviceuser_v1/classes.rb +13 -31
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +1 -2
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +505 -11
- data/generated/google/apis/slides_v1/representations.rb +220 -0
- data/generated/google/apis/sourcerepo_v1.rb +1 -1
- data/generated/google/apis/sourcerepo_v1/classes.rb +1 -1
- data/generated/google/apis/speech_v1.rb +1 -1
- data/generated/google/apis/speech_v1/classes.rb +10 -1
- data/generated/google/apis/speech_v1/representations.rb +1 -0
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +127 -0
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +63 -0
- data/generated/google/apis/sqladmin_v1beta4/service.rb +42 -0
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/service.rb +51 -72
- data/generated/google/apis/streetviewpublish_v1.rb +1 -1
- data/generated/google/apis/streetviewpublish_v1/classes.rb +1 -61
- data/generated/google/apis/streetviewpublish_v1/service.rb +2 -1
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +8 -3
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +17 -16
- data/generated/google/apis/videointelligence_v1beta1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +108 -0
- data/generated/google/apis/youtube_partner_v1/representations.rb +49 -0
- data/generated/google/apis/youtube_partner_v1/service.rb +42 -0
- data/google-api-client.gemspec +1 -1
- data/lib/google/apis/generator/model.rb +9 -3
- data/lib/google/apis/generator/templates/_class.tmpl +1 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +14 -12
- data/generated/google/apis/playmoviespartner_v1.rb +0 -34
- data/generated/google/apis/playmoviespartner_v1/classes.rb +0 -782
- data/generated/google/apis/playmoviespartner_v1/representations.rb +0 -191
- data/generated/google/apis/playmoviespartner_v1/service.rb +0 -354
- data/generated/google/apis/qpx_express_v1.rb +0 -31
- data/generated/google/apis/qpx_express_v1/classes.rb +0 -1274
- data/generated/google/apis/qpx_express_v1/representations.rb +0 -473
- data/generated/google/apis/qpx_express_v1/service.rb +0 -101
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://cloud.google.com/logging/docs/
|
26
26
|
module LoggingV2
|
27
27
|
VERSION = 'V2'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20171030'
|
29
29
|
|
30
30
|
# View and manage your data across Google Cloud Platform services
|
31
31
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
@@ -685,6 +685,14 @@ module Google
|
|
685
685
|
# @return [Google::Apis::LoggingV2::LogEntrySourceLocation]
|
686
686
|
attr_accessor :source_location
|
687
687
|
|
688
|
+
# Optional. Id of the span within the trace associated with the log entry. e.g. "
|
689
|
+
# 0000000000000042" For Stackdriver trace spans, this is the same format that
|
690
|
+
# the Stackdriver trace API uses. The ID is a 16-character hexadecimal encoding
|
691
|
+
# of an 8-byte array.
|
692
|
+
# Corresponds to the JSON property `spanId`
|
693
|
+
# @return [String]
|
694
|
+
attr_accessor :span_id
|
695
|
+
|
688
696
|
# The log entry payload, represented as a Unicode string (UTF-8).
|
689
697
|
# Corresponds to the JSON property `textPayload`
|
690
698
|
# @return [String]
|
@@ -725,6 +733,7 @@ module Google
|
|
725
733
|
@resource = args[:resource] if args.key?(:resource)
|
726
734
|
@severity = args[:severity] if args.key?(:severity)
|
727
735
|
@source_location = args[:source_location] if args.key?(:source_location)
|
736
|
+
@span_id = args[:span_id] if args.key?(:span_id)
|
728
737
|
@text_payload = args[:text_payload] if args.key?(:text_payload)
|
729
738
|
@timestamp = args[:timestamp] if args.key?(:timestamp)
|
730
739
|
@trace = args[:trace] if args.key?(:trace)
|
@@ -352,6 +352,7 @@ module Google
|
|
352
352
|
property :severity, as: 'severity'
|
353
353
|
property :source_location, as: 'sourceLocation', class: Google::Apis::LoggingV2::LogEntrySourceLocation, decorator: Google::Apis::LoggingV2::LogEntrySourceLocation::Representation
|
354
354
|
|
355
|
+
property :span_id, as: 'spanId'
|
355
356
|
property :text_payload, as: 'textPayload'
|
356
357
|
property :timestamp, as: 'timestamp'
|
357
358
|
property :trace, as: 'trace'
|
@@ -690,6 +690,207 @@ module Google
|
|
690
690
|
execute_or_queue_command(command, &block)
|
691
691
|
end
|
692
692
|
|
693
|
+
# Creates a new exclusion in a specified parent resource. Only log entries
|
694
|
+
# belonging to that resource can be excluded. You can have up to 10 exclusions
|
695
|
+
# in a resource.
|
696
|
+
# @param [String] parent
|
697
|
+
# Required. The parent resource in which to create the exclusion:
|
698
|
+
# "projects/[PROJECT_ID]"
|
699
|
+
# "organizations/[ORGANIZATION_ID]"
|
700
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]"
|
701
|
+
# "folders/[FOLDER_ID]"
|
702
|
+
# Examples: "projects/my-logging-project", "organizations/123456789".
|
703
|
+
# @param [Google::Apis::LoggingV2::LogExclusion] log_exclusion_object
|
704
|
+
# @param [String] fields
|
705
|
+
# Selector specifying which fields to include in a partial response.
|
706
|
+
# @param [String] quota_user
|
707
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
708
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
709
|
+
# @param [Google::Apis::RequestOptions] options
|
710
|
+
# Request-specific options
|
711
|
+
#
|
712
|
+
# @yield [result, err] Result & error if block supplied
|
713
|
+
# @yieldparam result [Google::Apis::LoggingV2::LogExclusion] parsed result object
|
714
|
+
# @yieldparam err [StandardError] error object if request failed
|
715
|
+
#
|
716
|
+
# @return [Google::Apis::LoggingV2::LogExclusion]
|
717
|
+
#
|
718
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
719
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
720
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
721
|
+
def create_exclusion(parent, log_exclusion_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
722
|
+
command = make_simple_command(:post, 'v2/{+parent}/exclusions', options)
|
723
|
+
command.request_representation = Google::Apis::LoggingV2::LogExclusion::Representation
|
724
|
+
command.request_object = log_exclusion_object
|
725
|
+
command.response_representation = Google::Apis::LoggingV2::LogExclusion::Representation
|
726
|
+
command.response_class = Google::Apis::LoggingV2::LogExclusion
|
727
|
+
command.params['parent'] = parent unless parent.nil?
|
728
|
+
command.query['fields'] = fields unless fields.nil?
|
729
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
730
|
+
execute_or_queue_command(command, &block)
|
731
|
+
end
|
732
|
+
|
733
|
+
# Deletes an exclusion.
|
734
|
+
# @param [String] name
|
735
|
+
# Required. The resource name of an existing exclusion to delete:
|
736
|
+
# "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
|
737
|
+
# "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
|
738
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
|
739
|
+
# "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]"
|
740
|
+
# Example: "projects/my-project-id/exclusions/my-exclusion-id".
|
741
|
+
# @param [String] fields
|
742
|
+
# Selector specifying which fields to include in a partial response.
|
743
|
+
# @param [String] quota_user
|
744
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
745
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
746
|
+
# @param [Google::Apis::RequestOptions] options
|
747
|
+
# Request-specific options
|
748
|
+
#
|
749
|
+
# @yield [result, err] Result & error if block supplied
|
750
|
+
# @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
|
751
|
+
# @yieldparam err [StandardError] error object if request failed
|
752
|
+
#
|
753
|
+
# @return [Google::Apis::LoggingV2::Empty]
|
754
|
+
#
|
755
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
756
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
757
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
758
|
+
def delete_exclusion(name, fields: nil, quota_user: nil, options: nil, &block)
|
759
|
+
command = make_simple_command(:delete, 'v2/{+name}', options)
|
760
|
+
command.response_representation = Google::Apis::LoggingV2::Empty::Representation
|
761
|
+
command.response_class = Google::Apis::LoggingV2::Empty
|
762
|
+
command.params['name'] = name unless name.nil?
|
763
|
+
command.query['fields'] = fields unless fields.nil?
|
764
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
765
|
+
execute_or_queue_command(command, &block)
|
766
|
+
end
|
767
|
+
|
768
|
+
# Gets the description of an exclusion.
|
769
|
+
# @param [String] name
|
770
|
+
# Required. The resource name of an existing exclusion:
|
771
|
+
# "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
|
772
|
+
# "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
|
773
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
|
774
|
+
# "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]"
|
775
|
+
# Example: "projects/my-project-id/exclusions/my-exclusion-id".
|
776
|
+
# @param [String] fields
|
777
|
+
# Selector specifying which fields to include in a partial response.
|
778
|
+
# @param [String] quota_user
|
779
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
780
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
781
|
+
# @param [Google::Apis::RequestOptions] options
|
782
|
+
# Request-specific options
|
783
|
+
#
|
784
|
+
# @yield [result, err] Result & error if block supplied
|
785
|
+
# @yieldparam result [Google::Apis::LoggingV2::LogExclusion] parsed result object
|
786
|
+
# @yieldparam err [StandardError] error object if request failed
|
787
|
+
#
|
788
|
+
# @return [Google::Apis::LoggingV2::LogExclusion]
|
789
|
+
#
|
790
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
791
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
792
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
793
|
+
def get_exclusion(name, fields: nil, quota_user: nil, options: nil, &block)
|
794
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
795
|
+
command.response_representation = Google::Apis::LoggingV2::LogExclusion::Representation
|
796
|
+
command.response_class = Google::Apis::LoggingV2::LogExclusion
|
797
|
+
command.params['name'] = name unless name.nil?
|
798
|
+
command.query['fields'] = fields unless fields.nil?
|
799
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
800
|
+
execute_or_queue_command(command, &block)
|
801
|
+
end
|
802
|
+
|
803
|
+
# Lists all the exclusions in a parent resource.
|
804
|
+
# @param [String] parent
|
805
|
+
# Required. The parent resource whose exclusions are to be listed.
|
806
|
+
# "projects/[PROJECT_ID]"
|
807
|
+
# "organizations/[ORGANIZATION_ID]"
|
808
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]"
|
809
|
+
# "folders/[FOLDER_ID]"
|
810
|
+
# @param [Fixnum] page_size
|
811
|
+
# Optional. The maximum number of results to return from this request. Non-
|
812
|
+
# positive values are ignored. The presence of nextPageToken in the response
|
813
|
+
# indicates that more results might be available.
|
814
|
+
# @param [String] page_token
|
815
|
+
# Optional. If present, then retrieve the next batch of results from the
|
816
|
+
# preceding call to this method. pageToken must be the value of nextPageToken
|
817
|
+
# from the previous response. The values of other method parameters should be
|
818
|
+
# identical to those in the previous call.
|
819
|
+
# @param [String] fields
|
820
|
+
# Selector specifying which fields to include in a partial response.
|
821
|
+
# @param [String] quota_user
|
822
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
823
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
824
|
+
# @param [Google::Apis::RequestOptions] options
|
825
|
+
# Request-specific options
|
826
|
+
#
|
827
|
+
# @yield [result, err] Result & error if block supplied
|
828
|
+
# @yieldparam result [Google::Apis::LoggingV2::ListExclusionsResponse] parsed result object
|
829
|
+
# @yieldparam err [StandardError] error object if request failed
|
830
|
+
#
|
831
|
+
# @return [Google::Apis::LoggingV2::ListExclusionsResponse]
|
832
|
+
#
|
833
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
834
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
835
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
836
|
+
def list_exclusions(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
837
|
+
command = make_simple_command(:get, 'v2/{+parent}/exclusions', options)
|
838
|
+
command.response_representation = Google::Apis::LoggingV2::ListExclusionsResponse::Representation
|
839
|
+
command.response_class = Google::Apis::LoggingV2::ListExclusionsResponse
|
840
|
+
command.params['parent'] = parent unless parent.nil?
|
841
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
842
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
843
|
+
command.query['fields'] = fields unless fields.nil?
|
844
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
845
|
+
execute_or_queue_command(command, &block)
|
846
|
+
end
|
847
|
+
|
848
|
+
# Changes one or more properties of an existing exclusion.
|
849
|
+
# @param [String] name
|
850
|
+
# Required. The resource name of the exclusion to update:
|
851
|
+
# "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
|
852
|
+
# "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
|
853
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
|
854
|
+
# "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]"
|
855
|
+
# Example: "projects/my-project-id/exclusions/my-exclusion-id".
|
856
|
+
# @param [Google::Apis::LoggingV2::LogExclusion] log_exclusion_object
|
857
|
+
# @param [String] update_mask
|
858
|
+
# Required. A nonempty list of fields to change in the existing exclusion. New
|
859
|
+
# values for the fields are taken from the corresponding fields in the
|
860
|
+
# LogExclusion included in this request. Fields not mentioned in update_mask are
|
861
|
+
# not changed and are ignored in the request.For example, to change the filter
|
862
|
+
# and description of an exclusion, specify an update_mask of "filter,description"
|
863
|
+
# .
|
864
|
+
# @param [String] fields
|
865
|
+
# Selector specifying which fields to include in a partial response.
|
866
|
+
# @param [String] quota_user
|
867
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
868
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
869
|
+
# @param [Google::Apis::RequestOptions] options
|
870
|
+
# Request-specific options
|
871
|
+
#
|
872
|
+
# @yield [result, err] Result & error if block supplied
|
873
|
+
# @yieldparam result [Google::Apis::LoggingV2::LogExclusion] parsed result object
|
874
|
+
# @yieldparam err [StandardError] error object if request failed
|
875
|
+
#
|
876
|
+
# @return [Google::Apis::LoggingV2::LogExclusion]
|
877
|
+
#
|
878
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
879
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
880
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
881
|
+
def patch_exclusion(name, log_exclusion_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
882
|
+
command = make_simple_command(:patch, 'v2/{+name}', options)
|
883
|
+
command.request_representation = Google::Apis::LoggingV2::LogExclusion::Representation
|
884
|
+
command.request_object = log_exclusion_object
|
885
|
+
command.response_representation = Google::Apis::LoggingV2::LogExclusion::Representation
|
886
|
+
command.response_class = Google::Apis::LoggingV2::LogExclusion
|
887
|
+
command.params['name'] = name unless name.nil?
|
888
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
889
|
+
command.query['fields'] = fields unless fields.nil?
|
890
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
891
|
+
execute_or_queue_command(command, &block)
|
892
|
+
end
|
893
|
+
|
693
894
|
# Creates a new exclusion in a specified parent resource. Only log entries
|
694
895
|
# belonging to that resource can be excluded. You can have up to 10 exclusions
|
695
896
|
# in a resource.
|
@@ -1269,6 +1470,91 @@ module Google
|
|
1269
1470
|
execute_or_queue_command(command, &block)
|
1270
1471
|
end
|
1271
1472
|
|
1473
|
+
# Deletes all the log entries in a log. The log reappears if it receives new
|
1474
|
+
# entries. Log entries written shortly before the delete operation might not be
|
1475
|
+
# deleted.
|
1476
|
+
# @param [String] log_name
|
1477
|
+
# Required. The resource name of the log to delete:
|
1478
|
+
# "projects/[PROJECT_ID]/logs/[LOG_ID]"
|
1479
|
+
# "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
|
1480
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
|
1481
|
+
# "folders/[FOLDER_ID]/logs/[LOG_ID]"
|
1482
|
+
# [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog"
|
1483
|
+
# , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
|
1484
|
+
# 2Factivity". For more information about log names, see LogEntry.
|
1485
|
+
# @param [String] fields
|
1486
|
+
# Selector specifying which fields to include in a partial response.
|
1487
|
+
# @param [String] quota_user
|
1488
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1489
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1490
|
+
# @param [Google::Apis::RequestOptions] options
|
1491
|
+
# Request-specific options
|
1492
|
+
#
|
1493
|
+
# @yield [result, err] Result & error if block supplied
|
1494
|
+
# @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
|
1495
|
+
# @yieldparam err [StandardError] error object if request failed
|
1496
|
+
#
|
1497
|
+
# @return [Google::Apis::LoggingV2::Empty]
|
1498
|
+
#
|
1499
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1500
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1501
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1502
|
+
def delete_log(log_name, fields: nil, quota_user: nil, options: nil, &block)
|
1503
|
+
command = make_simple_command(:delete, 'v2/{+logName}', options)
|
1504
|
+
command.response_representation = Google::Apis::LoggingV2::Empty::Representation
|
1505
|
+
command.response_class = Google::Apis::LoggingV2::Empty
|
1506
|
+
command.params['logName'] = log_name unless log_name.nil?
|
1507
|
+
command.query['fields'] = fields unless fields.nil?
|
1508
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1509
|
+
execute_or_queue_command(command, &block)
|
1510
|
+
end
|
1511
|
+
|
1512
|
+
# Lists the logs in projects, organizations, folders, or billing accounts. Only
|
1513
|
+
# logs that have entries are listed.
|
1514
|
+
# @param [String] parent
|
1515
|
+
# Required. The resource name that owns the logs:
|
1516
|
+
# "projects/[PROJECT_ID]"
|
1517
|
+
# "organizations/[ORGANIZATION_ID]"
|
1518
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]"
|
1519
|
+
# "folders/[FOLDER_ID]"
|
1520
|
+
# @param [Fixnum] page_size
|
1521
|
+
# Optional. The maximum number of results to return from this request. Non-
|
1522
|
+
# positive values are ignored. The presence of nextPageToken in the response
|
1523
|
+
# indicates that more results might be available.
|
1524
|
+
# @param [String] page_token
|
1525
|
+
# Optional. If present, then retrieve the next batch of results from the
|
1526
|
+
# preceding call to this method. pageToken must be the value of nextPageToken
|
1527
|
+
# from the previous response. The values of other method parameters should be
|
1528
|
+
# identical to those in the previous call.
|
1529
|
+
# @param [String] fields
|
1530
|
+
# Selector specifying which fields to include in a partial response.
|
1531
|
+
# @param [String] quota_user
|
1532
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1533
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1534
|
+
# @param [Google::Apis::RequestOptions] options
|
1535
|
+
# Request-specific options
|
1536
|
+
#
|
1537
|
+
# @yield [result, err] Result & error if block supplied
|
1538
|
+
# @yieldparam result [Google::Apis::LoggingV2::ListLogsResponse] parsed result object
|
1539
|
+
# @yieldparam err [StandardError] error object if request failed
|
1540
|
+
#
|
1541
|
+
# @return [Google::Apis::LoggingV2::ListLogsResponse]
|
1542
|
+
#
|
1543
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1544
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1545
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1546
|
+
def list_logs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1547
|
+
command = make_simple_command(:get, 'v2/{+parent}/logs', options)
|
1548
|
+
command.response_representation = Google::Apis::LoggingV2::ListLogsResponse::Representation
|
1549
|
+
command.response_class = Google::Apis::LoggingV2::ListLogsResponse
|
1550
|
+
command.params['parent'] = parent unless parent.nil?
|
1551
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1552
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1553
|
+
command.query['fields'] = fields unless fields.nil?
|
1554
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1555
|
+
execute_or_queue_command(command, &block)
|
1556
|
+
end
|
1557
|
+
|
1272
1558
|
# Lists the descriptors for monitored resource types used by Stackdriver Logging.
|
1273
1559
|
# @param [Fixnum] page_size
|
1274
1560
|
# Optional. The maximum number of results to return from this request. Non-
|
@@ -2640,6 +2926,237 @@ module Google
|
|
2640
2926
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2641
2927
|
execute_or_queue_command(command, &block)
|
2642
2928
|
end
|
2929
|
+
|
2930
|
+
# Creates a sink that exports specified log entries to a destination. The export
|
2931
|
+
# of newly-ingested log entries begins immediately, unless the sink's
|
2932
|
+
# writer_identity is not permitted to write to the destination. A sink can
|
2933
|
+
# export log entries only from the resource owning the sink.
|
2934
|
+
# @param [String] parent
|
2935
|
+
# Required. The resource in which to create the sink:
|
2936
|
+
# "projects/[PROJECT_ID]"
|
2937
|
+
# "organizations/[ORGANIZATION_ID]"
|
2938
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]"
|
2939
|
+
# "folders/[FOLDER_ID]"
|
2940
|
+
# Examples: "projects/my-logging-project", "organizations/123456789".
|
2941
|
+
# @param [Google::Apis::LoggingV2::LogSink] log_sink_object
|
2942
|
+
# @param [Boolean] unique_writer_identity
|
2943
|
+
# Optional. Determines the kind of IAM identity returned as writer_identity in
|
2944
|
+
# the new sink. If this value is omitted or set to false, and if the sink's
|
2945
|
+
# parent is a project, then the value returned as writer_identity is the same
|
2946
|
+
# group or service account used by Stackdriver Logging before the addition of
|
2947
|
+
# writer identities to this API. The sink's destination must be in the same
|
2948
|
+
# project as the sink itself.If this field is set to true, or if the sink is
|
2949
|
+
# owned by a non-project resource such as an organization, then the value of
|
2950
|
+
# writer_identity will be a unique service account used only for exports from
|
2951
|
+
# the new sink. For more information, see writer_identity in LogSink.
|
2952
|
+
# @param [String] fields
|
2953
|
+
# Selector specifying which fields to include in a partial response.
|
2954
|
+
# @param [String] quota_user
|
2955
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2956
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2957
|
+
# @param [Google::Apis::RequestOptions] options
|
2958
|
+
# Request-specific options
|
2959
|
+
#
|
2960
|
+
# @yield [result, err] Result & error if block supplied
|
2961
|
+
# @yieldparam result [Google::Apis::LoggingV2::LogSink] parsed result object
|
2962
|
+
# @yieldparam err [StandardError] error object if request failed
|
2963
|
+
#
|
2964
|
+
# @return [Google::Apis::LoggingV2::LogSink]
|
2965
|
+
#
|
2966
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2967
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2968
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2969
|
+
def create_sink(parent, log_sink_object = nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2970
|
+
command = make_simple_command(:post, 'v2/{+parent}/sinks', options)
|
2971
|
+
command.request_representation = Google::Apis::LoggingV2::LogSink::Representation
|
2972
|
+
command.request_object = log_sink_object
|
2973
|
+
command.response_representation = Google::Apis::LoggingV2::LogSink::Representation
|
2974
|
+
command.response_class = Google::Apis::LoggingV2::LogSink
|
2975
|
+
command.params['parent'] = parent unless parent.nil?
|
2976
|
+
command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
|
2977
|
+
command.query['fields'] = fields unless fields.nil?
|
2978
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2979
|
+
execute_or_queue_command(command, &block)
|
2980
|
+
end
|
2981
|
+
|
2982
|
+
# Deletes a sink. If the sink has a unique writer_identity, then that service
|
2983
|
+
# account is also deleted.
|
2984
|
+
# @param [String] sink_name
|
2985
|
+
# Required. The full resource name of the sink to delete, including the parent
|
2986
|
+
# resource and the sink identifier:
|
2987
|
+
# "projects/[PROJECT_ID]/sinks/[SINK_ID]"
|
2988
|
+
# "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
|
2989
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
|
2990
|
+
# "folders/[FOLDER_ID]/sinks/[SINK_ID]"
|
2991
|
+
# Example: "projects/my-project-id/sinks/my-sink-id".
|
2992
|
+
# @param [String] fields
|
2993
|
+
# Selector specifying which fields to include in a partial response.
|
2994
|
+
# @param [String] quota_user
|
2995
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2996
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2997
|
+
# @param [Google::Apis::RequestOptions] options
|
2998
|
+
# Request-specific options
|
2999
|
+
#
|
3000
|
+
# @yield [result, err] Result & error if block supplied
|
3001
|
+
# @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
|
3002
|
+
# @yieldparam err [StandardError] error object if request failed
|
3003
|
+
#
|
3004
|
+
# @return [Google::Apis::LoggingV2::Empty]
|
3005
|
+
#
|
3006
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3007
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3008
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3009
|
+
def delete_sink(sink_name, fields: nil, quota_user: nil, options: nil, &block)
|
3010
|
+
command = make_simple_command(:delete, 'v2/{+sinkName}', options)
|
3011
|
+
command.response_representation = Google::Apis::LoggingV2::Empty::Representation
|
3012
|
+
command.response_class = Google::Apis::LoggingV2::Empty
|
3013
|
+
command.params['sinkName'] = sink_name unless sink_name.nil?
|
3014
|
+
command.query['fields'] = fields unless fields.nil?
|
3015
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3016
|
+
execute_or_queue_command(command, &block)
|
3017
|
+
end
|
3018
|
+
|
3019
|
+
# Gets a sink.
|
3020
|
+
# @param [String] sink_name
|
3021
|
+
# Required. The resource name of the sink:
|
3022
|
+
# "projects/[PROJECT_ID]/sinks/[SINK_ID]"
|
3023
|
+
# "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
|
3024
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
|
3025
|
+
# "folders/[FOLDER_ID]/sinks/[SINK_ID]"
|
3026
|
+
# Example: "projects/my-project-id/sinks/my-sink-id".
|
3027
|
+
# @param [String] fields
|
3028
|
+
# Selector specifying which fields to include in a partial response.
|
3029
|
+
# @param [String] quota_user
|
3030
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3031
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3032
|
+
# @param [Google::Apis::RequestOptions] options
|
3033
|
+
# Request-specific options
|
3034
|
+
#
|
3035
|
+
# @yield [result, err] Result & error if block supplied
|
3036
|
+
# @yieldparam result [Google::Apis::LoggingV2::LogSink] parsed result object
|
3037
|
+
# @yieldparam err [StandardError] error object if request failed
|
3038
|
+
#
|
3039
|
+
# @return [Google::Apis::LoggingV2::LogSink]
|
3040
|
+
#
|
3041
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3042
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3043
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3044
|
+
def get_sink(sink_name, fields: nil, quota_user: nil, options: nil, &block)
|
3045
|
+
command = make_simple_command(:get, 'v2/{+sinkName}', options)
|
3046
|
+
command.response_representation = Google::Apis::LoggingV2::LogSink::Representation
|
3047
|
+
command.response_class = Google::Apis::LoggingV2::LogSink
|
3048
|
+
command.params['sinkName'] = sink_name unless sink_name.nil?
|
3049
|
+
command.query['fields'] = fields unless fields.nil?
|
3050
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3051
|
+
execute_or_queue_command(command, &block)
|
3052
|
+
end
|
3053
|
+
|
3054
|
+
# Lists sinks.
|
3055
|
+
# @param [String] parent
|
3056
|
+
# Required. The parent resource whose sinks are to be listed:
|
3057
|
+
# "projects/[PROJECT_ID]"
|
3058
|
+
# "organizations/[ORGANIZATION_ID]"
|
3059
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]"
|
3060
|
+
# "folders/[FOLDER_ID]"
|
3061
|
+
# @param [Fixnum] page_size
|
3062
|
+
# Optional. The maximum number of results to return from this request. Non-
|
3063
|
+
# positive values are ignored. The presence of nextPageToken in the response
|
3064
|
+
# indicates that more results might be available.
|
3065
|
+
# @param [String] page_token
|
3066
|
+
# Optional. If present, then retrieve the next batch of results from the
|
3067
|
+
# preceding call to this method. pageToken must be the value of nextPageToken
|
3068
|
+
# from the previous response. The values of other method parameters should be
|
3069
|
+
# identical to those in the previous call.
|
3070
|
+
# @param [String] fields
|
3071
|
+
# Selector specifying which fields to include in a partial response.
|
3072
|
+
# @param [String] quota_user
|
3073
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3074
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3075
|
+
# @param [Google::Apis::RequestOptions] options
|
3076
|
+
# Request-specific options
|
3077
|
+
#
|
3078
|
+
# @yield [result, err] Result & error if block supplied
|
3079
|
+
# @yieldparam result [Google::Apis::LoggingV2::ListSinksResponse] parsed result object
|
3080
|
+
# @yieldparam err [StandardError] error object if request failed
|
3081
|
+
#
|
3082
|
+
# @return [Google::Apis::LoggingV2::ListSinksResponse]
|
3083
|
+
#
|
3084
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3085
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3086
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3087
|
+
def list_sinks(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
3088
|
+
command = make_simple_command(:get, 'v2/{+parent}/sinks', options)
|
3089
|
+
command.response_representation = Google::Apis::LoggingV2::ListSinksResponse::Representation
|
3090
|
+
command.response_class = Google::Apis::LoggingV2::ListSinksResponse
|
3091
|
+
command.params['parent'] = parent unless parent.nil?
|
3092
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
3093
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
3094
|
+
command.query['fields'] = fields unless fields.nil?
|
3095
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3096
|
+
execute_or_queue_command(command, &block)
|
3097
|
+
end
|
3098
|
+
|
3099
|
+
# Updates a sink. This method replaces the following fields in the existing sink
|
3100
|
+
# with values from the new sink: destination, and filter. The updated sink might
|
3101
|
+
# also have a new writer_identity; see the unique_writer_identity field.
|
3102
|
+
# @param [String] sink_name
|
3103
|
+
# Required. The full resource name of the sink to update, including the parent
|
3104
|
+
# resource and the sink identifier:
|
3105
|
+
# "projects/[PROJECT_ID]/sinks/[SINK_ID]"
|
3106
|
+
# "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
|
3107
|
+
# "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
|
3108
|
+
# "folders/[FOLDER_ID]/sinks/[SINK_ID]"
|
3109
|
+
# Example: "projects/my-project-id/sinks/my-sink-id".
|
3110
|
+
# @param [Google::Apis::LoggingV2::LogSink] log_sink_object
|
3111
|
+
# @param [Boolean] unique_writer_identity
|
3112
|
+
# Optional. See sinks.create for a description of this field. When updating a
|
3113
|
+
# sink, the effect of this field on the value of writer_identity in the updated
|
3114
|
+
# sink depends on both the old and new values of this field:
|
3115
|
+
# If the old and new values of this field are both false or both true, then
|
3116
|
+
# there is no change to the sink's writer_identity.
|
3117
|
+
# If the old value is false and the new value is true, then writer_identity is
|
3118
|
+
# changed to a unique service account.
|
3119
|
+
# It is an error if the old value is true and the new value is set to false or
|
3120
|
+
# defaulted to false.
|
3121
|
+
# @param [String] update_mask
|
3122
|
+
# Optional. Field mask that specifies the fields in sink that need an update. A
|
3123
|
+
# sink field will be overwritten if, and only if, it is in the update mask. name
|
3124
|
+
# and output only fields cannot be updated.An empty updateMask is temporarily
|
3125
|
+
# treated as using the following mask for backwards compatibility purposes:
|
3126
|
+
# destination,filter,includeChildren At some point in the future, behavior will
|
3127
|
+
# be removed and specifying an empty updateMask will be an error.For a detailed
|
3128
|
+
# FieldMask definition, see https://developers.google.com/protocol-buffers/docs/
|
3129
|
+
# reference/google.protobuf#fieldmaskExample: updateMask=filter.
|
3130
|
+
# @param [String] fields
|
3131
|
+
# Selector specifying which fields to include in a partial response.
|
3132
|
+
# @param [String] quota_user
|
3133
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3134
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3135
|
+
# @param [Google::Apis::RequestOptions] options
|
3136
|
+
# Request-specific options
|
3137
|
+
#
|
3138
|
+
# @yield [result, err] Result & error if block supplied
|
3139
|
+
# @yieldparam result [Google::Apis::LoggingV2::LogSink] parsed result object
|
3140
|
+
# @yieldparam err [StandardError] error object if request failed
|
3141
|
+
#
|
3142
|
+
# @return [Google::Apis::LoggingV2::LogSink]
|
3143
|
+
#
|
3144
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3145
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3146
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3147
|
+
def update_sink(sink_name, log_sink_object = nil, unique_writer_identity: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
3148
|
+
command = make_simple_command(:put, 'v2/{+sinkName}', options)
|
3149
|
+
command.request_representation = Google::Apis::LoggingV2::LogSink::Representation
|
3150
|
+
command.request_object = log_sink_object
|
3151
|
+
command.response_representation = Google::Apis::LoggingV2::LogSink::Representation
|
3152
|
+
command.response_class = Google::Apis::LoggingV2::LogSink
|
3153
|
+
command.params['sinkName'] = sink_name unless sink_name.nil?
|
3154
|
+
command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
|
3155
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
3156
|
+
command.query['fields'] = fields unless fields.nil?
|
3157
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3158
|
+
execute_or_queue_command(command, &block)
|
3159
|
+
end
|
2643
3160
|
|
2644
3161
|
protected
|
2645
3162
|
|