google-apis-logging_v2 0.40.0 → 0.41.0
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/CHANGELOG.md +4 -0
- data/lib/google/apis/logging_v2/classes.rb +226 -0
- data/lib/google/apis/logging_v2/gem_version.rb +2 -2
- data/lib/google/apis/logging_v2/representations.rb +107 -0
- data/lib/google/apis/logging_v2/service.rb +814 -34
- metadata +3 -3
@@ -734,6 +734,162 @@ module Google
|
|
734
734
|
execute_or_queue_command(command, &block)
|
735
735
|
end
|
736
736
|
|
737
|
+
# Asynchronously creates linked dataset in BigQuery which makes it possible to
|
738
|
+
# use BugQuery to read the logs stored in the bucket. A bucket may currently
|
739
|
+
# only contain one link.
|
740
|
+
# @param [String] parent
|
741
|
+
# Required. The full resource name of the bucket to create a link for. "projects/
|
742
|
+
# [PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[
|
743
|
+
# ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/
|
744
|
+
# [BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[
|
745
|
+
# FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
|
746
|
+
# @param [Google::Apis::LoggingV2::Link] link_object
|
747
|
+
# @param [String] link_id
|
748
|
+
# Required. The ID to use for the link. The link_id can have up to 100
|
749
|
+
# characters. A valid link_id must only have alphanumeric characters and
|
750
|
+
# underscores within it.
|
751
|
+
# @param [String] fields
|
752
|
+
# Selector specifying which fields to include in a partial response.
|
753
|
+
# @param [String] quota_user
|
754
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
755
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
756
|
+
# @param [Google::Apis::RequestOptions] options
|
757
|
+
# Request-specific options
|
758
|
+
#
|
759
|
+
# @yield [result, err] Result & error if block supplied
|
760
|
+
# @yieldparam result [Google::Apis::LoggingV2::Operation] parsed result object
|
761
|
+
# @yieldparam err [StandardError] error object if request failed
|
762
|
+
#
|
763
|
+
# @return [Google::Apis::LoggingV2::Operation]
|
764
|
+
#
|
765
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
766
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
767
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
768
|
+
def create_billing_account_location_bucket_link(parent, link_object = nil, link_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
769
|
+
command = make_simple_command(:post, 'v2/{+parent}/links', options)
|
770
|
+
command.request_representation = Google::Apis::LoggingV2::Link::Representation
|
771
|
+
command.request_object = link_object
|
772
|
+
command.response_representation = Google::Apis::LoggingV2::Operation::Representation
|
773
|
+
command.response_class = Google::Apis::LoggingV2::Operation
|
774
|
+
command.params['parent'] = parent unless parent.nil?
|
775
|
+
command.query['linkId'] = link_id unless link_id.nil?
|
776
|
+
command.query['fields'] = fields unless fields.nil?
|
777
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
778
|
+
execute_or_queue_command(command, &block)
|
779
|
+
end
|
780
|
+
|
781
|
+
# Deletes a link. This will also delete the corresponding BigQuery linked
|
782
|
+
# dataset.
|
783
|
+
# @param [String] name
|
784
|
+
# Required. The full resource name of the link to delete."projects/PROJECT_ID/
|
785
|
+
# locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID" "organizations/
|
786
|
+
# ORGANIZATION_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID" "
|
787
|
+
# billingAccounts/BILLING_ACCOUNT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/
|
788
|
+
# links/LINK_ID" "folders/FOLDER_ID/locations/LOCATION_ID/buckets/BUCKET_ID/
|
789
|
+
# links/LINK_ID"
|
790
|
+
# @param [String] fields
|
791
|
+
# Selector specifying which fields to include in a partial response.
|
792
|
+
# @param [String] quota_user
|
793
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
794
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
795
|
+
# @param [Google::Apis::RequestOptions] options
|
796
|
+
# Request-specific options
|
797
|
+
#
|
798
|
+
# @yield [result, err] Result & error if block supplied
|
799
|
+
# @yieldparam result [Google::Apis::LoggingV2::Operation] parsed result object
|
800
|
+
# @yieldparam err [StandardError] error object if request failed
|
801
|
+
#
|
802
|
+
# @return [Google::Apis::LoggingV2::Operation]
|
803
|
+
#
|
804
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
805
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
806
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
807
|
+
def delete_billing_account_location_bucket_link(name, fields: nil, quota_user: nil, options: nil, &block)
|
808
|
+
command = make_simple_command(:delete, 'v2/{+name}', options)
|
809
|
+
command.response_representation = Google::Apis::LoggingV2::Operation::Representation
|
810
|
+
command.response_class = Google::Apis::LoggingV2::Operation
|
811
|
+
command.params['name'] = name unless name.nil?
|
812
|
+
command.query['fields'] = fields unless fields.nil?
|
813
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
814
|
+
execute_or_queue_command(command, &block)
|
815
|
+
end
|
816
|
+
|
817
|
+
# Gets a link.
|
818
|
+
# @param [String] name
|
819
|
+
# Required. The resource name of the link:"projects/PROJECT_ID/locations/
|
820
|
+
# LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID" "organizations/ORGANIZATION_ID/
|
821
|
+
# locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID" "billingAccounts/
|
822
|
+
# BILLING_ACCOUNT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID" "
|
823
|
+
# folders/FOLDER_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID
|
824
|
+
# @param [String] fields
|
825
|
+
# Selector specifying which fields to include in a partial response.
|
826
|
+
# @param [String] quota_user
|
827
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
828
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
829
|
+
# @param [Google::Apis::RequestOptions] options
|
830
|
+
# Request-specific options
|
831
|
+
#
|
832
|
+
# @yield [result, err] Result & error if block supplied
|
833
|
+
# @yieldparam result [Google::Apis::LoggingV2::Link] parsed result object
|
834
|
+
# @yieldparam err [StandardError] error object if request failed
|
835
|
+
#
|
836
|
+
# @return [Google::Apis::LoggingV2::Link]
|
837
|
+
#
|
838
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
839
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
840
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
841
|
+
def get_billing_account_location_bucket_link(name, fields: nil, quota_user: nil, options: nil, &block)
|
842
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
843
|
+
command.response_representation = Google::Apis::LoggingV2::Link::Representation
|
844
|
+
command.response_class = Google::Apis::LoggingV2::Link
|
845
|
+
command.params['name'] = name unless name.nil?
|
846
|
+
command.query['fields'] = fields unless fields.nil?
|
847
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
848
|
+
execute_or_queue_command(command, &block)
|
849
|
+
end
|
850
|
+
|
851
|
+
# Lists links.
|
852
|
+
# @param [String] parent
|
853
|
+
# Required. The parent resource whose links are to be listed:"projects/
|
854
|
+
# PROJECT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/" "organizations/
|
855
|
+
# ORGANIZATION_ID/locations/LOCATION_ID/buckets/BUCKET_ID/" "billingAccounts/
|
856
|
+
# BILLING_ACCOUNT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/" "folders/
|
857
|
+
# FOLDER_ID/locations/LOCATION_ID/buckets/BUCKET_ID/
|
858
|
+
# @param [Fixnum] page_size
|
859
|
+
# Optional. The maximum number of results to return from this request.
|
860
|
+
# @param [String] page_token
|
861
|
+
# Optional. If present, then retrieve the next batch of results from the
|
862
|
+
# preceding call to this method. pageToken must be the value of nextPageToken
|
863
|
+
# from the previous response.
|
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::ListLinksResponse] parsed result object
|
874
|
+
# @yieldparam err [StandardError] error object if request failed
|
875
|
+
#
|
876
|
+
# @return [Google::Apis::LoggingV2::ListLinksResponse]
|
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 list_billing_account_location_bucket_links(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
882
|
+
command = make_simple_command(:get, 'v2/{+parent}/links', options)
|
883
|
+
command.response_representation = Google::Apis::LoggingV2::ListLinksResponse::Representation
|
884
|
+
command.response_class = Google::Apis::LoggingV2::ListLinksResponse
|
885
|
+
command.params['parent'] = parent unless parent.nil?
|
886
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
887
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
888
|
+
command.query['fields'] = fields unless fields.nil?
|
889
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
890
|
+
execute_or_queue_command(command, &block)
|
891
|
+
end
|
892
|
+
|
737
893
|
# Creates a view over log entries in a log bucket. A bucket may contain a
|
738
894
|
# maximum of 30 views.
|
739
895
|
# @param [String] parent
|
@@ -2529,6 +2685,162 @@ module Google
|
|
2529
2685
|
execute_or_queue_command(command, &block)
|
2530
2686
|
end
|
2531
2687
|
|
2688
|
+
# Asynchronously creates linked dataset in BigQuery which makes it possible to
|
2689
|
+
# use BugQuery to read the logs stored in the bucket. A bucket may currently
|
2690
|
+
# only contain one link.
|
2691
|
+
# @param [String] parent
|
2692
|
+
# Required. The full resource name of the bucket to create a link for. "projects/
|
2693
|
+
# [PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[
|
2694
|
+
# ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/
|
2695
|
+
# [BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[
|
2696
|
+
# FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
|
2697
|
+
# @param [Google::Apis::LoggingV2::Link] link_object
|
2698
|
+
# @param [String] link_id
|
2699
|
+
# Required. The ID to use for the link. The link_id can have up to 100
|
2700
|
+
# characters. A valid link_id must only have alphanumeric characters and
|
2701
|
+
# underscores within it.
|
2702
|
+
# @param [String] fields
|
2703
|
+
# Selector specifying which fields to include in a partial response.
|
2704
|
+
# @param [String] quota_user
|
2705
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2706
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2707
|
+
# @param [Google::Apis::RequestOptions] options
|
2708
|
+
# Request-specific options
|
2709
|
+
#
|
2710
|
+
# @yield [result, err] Result & error if block supplied
|
2711
|
+
# @yieldparam result [Google::Apis::LoggingV2::Operation] parsed result object
|
2712
|
+
# @yieldparam err [StandardError] error object if request failed
|
2713
|
+
#
|
2714
|
+
# @return [Google::Apis::LoggingV2::Operation]
|
2715
|
+
#
|
2716
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2717
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2718
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2719
|
+
def create_folder_location_bucket_link(parent, link_object = nil, link_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2720
|
+
command = make_simple_command(:post, 'v2/{+parent}/links', options)
|
2721
|
+
command.request_representation = Google::Apis::LoggingV2::Link::Representation
|
2722
|
+
command.request_object = link_object
|
2723
|
+
command.response_representation = Google::Apis::LoggingV2::Operation::Representation
|
2724
|
+
command.response_class = Google::Apis::LoggingV2::Operation
|
2725
|
+
command.params['parent'] = parent unless parent.nil?
|
2726
|
+
command.query['linkId'] = link_id unless link_id.nil?
|
2727
|
+
command.query['fields'] = fields unless fields.nil?
|
2728
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2729
|
+
execute_or_queue_command(command, &block)
|
2730
|
+
end
|
2731
|
+
|
2732
|
+
# Deletes a link. This will also delete the corresponding BigQuery linked
|
2733
|
+
# dataset.
|
2734
|
+
# @param [String] name
|
2735
|
+
# Required. The full resource name of the link to delete."projects/PROJECT_ID/
|
2736
|
+
# locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID" "organizations/
|
2737
|
+
# ORGANIZATION_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID" "
|
2738
|
+
# billingAccounts/BILLING_ACCOUNT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/
|
2739
|
+
# links/LINK_ID" "folders/FOLDER_ID/locations/LOCATION_ID/buckets/BUCKET_ID/
|
2740
|
+
# links/LINK_ID"
|
2741
|
+
# @param [String] fields
|
2742
|
+
# Selector specifying which fields to include in a partial response.
|
2743
|
+
# @param [String] quota_user
|
2744
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2745
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2746
|
+
# @param [Google::Apis::RequestOptions] options
|
2747
|
+
# Request-specific options
|
2748
|
+
#
|
2749
|
+
# @yield [result, err] Result & error if block supplied
|
2750
|
+
# @yieldparam result [Google::Apis::LoggingV2::Operation] parsed result object
|
2751
|
+
# @yieldparam err [StandardError] error object if request failed
|
2752
|
+
#
|
2753
|
+
# @return [Google::Apis::LoggingV2::Operation]
|
2754
|
+
#
|
2755
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2756
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2757
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2758
|
+
def delete_folder_location_bucket_link(name, fields: nil, quota_user: nil, options: nil, &block)
|
2759
|
+
command = make_simple_command(:delete, 'v2/{+name}', options)
|
2760
|
+
command.response_representation = Google::Apis::LoggingV2::Operation::Representation
|
2761
|
+
command.response_class = Google::Apis::LoggingV2::Operation
|
2762
|
+
command.params['name'] = name unless name.nil?
|
2763
|
+
command.query['fields'] = fields unless fields.nil?
|
2764
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2765
|
+
execute_or_queue_command(command, &block)
|
2766
|
+
end
|
2767
|
+
|
2768
|
+
# Gets a link.
|
2769
|
+
# @param [String] name
|
2770
|
+
# Required. The resource name of the link:"projects/PROJECT_ID/locations/
|
2771
|
+
# LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID" "organizations/ORGANIZATION_ID/
|
2772
|
+
# locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID" "billingAccounts/
|
2773
|
+
# BILLING_ACCOUNT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID" "
|
2774
|
+
# folders/FOLDER_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID
|
2775
|
+
# @param [String] fields
|
2776
|
+
# Selector specifying which fields to include in a partial response.
|
2777
|
+
# @param [String] quota_user
|
2778
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2779
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2780
|
+
# @param [Google::Apis::RequestOptions] options
|
2781
|
+
# Request-specific options
|
2782
|
+
#
|
2783
|
+
# @yield [result, err] Result & error if block supplied
|
2784
|
+
# @yieldparam result [Google::Apis::LoggingV2::Link] parsed result object
|
2785
|
+
# @yieldparam err [StandardError] error object if request failed
|
2786
|
+
#
|
2787
|
+
# @return [Google::Apis::LoggingV2::Link]
|
2788
|
+
#
|
2789
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2790
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2791
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2792
|
+
def get_folder_location_bucket_link(name, fields: nil, quota_user: nil, options: nil, &block)
|
2793
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
2794
|
+
command.response_representation = Google::Apis::LoggingV2::Link::Representation
|
2795
|
+
command.response_class = Google::Apis::LoggingV2::Link
|
2796
|
+
command.params['name'] = name unless name.nil?
|
2797
|
+
command.query['fields'] = fields unless fields.nil?
|
2798
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2799
|
+
execute_or_queue_command(command, &block)
|
2800
|
+
end
|
2801
|
+
|
2802
|
+
# Lists links.
|
2803
|
+
# @param [String] parent
|
2804
|
+
# Required. The parent resource whose links are to be listed:"projects/
|
2805
|
+
# PROJECT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/" "organizations/
|
2806
|
+
# ORGANIZATION_ID/locations/LOCATION_ID/buckets/BUCKET_ID/" "billingAccounts/
|
2807
|
+
# BILLING_ACCOUNT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/" "folders/
|
2808
|
+
# FOLDER_ID/locations/LOCATION_ID/buckets/BUCKET_ID/
|
2809
|
+
# @param [Fixnum] page_size
|
2810
|
+
# Optional. The maximum number of results to return from this request.
|
2811
|
+
# @param [String] page_token
|
2812
|
+
# Optional. If present, then retrieve the next batch of results from the
|
2813
|
+
# preceding call to this method. pageToken must be the value of nextPageToken
|
2814
|
+
# from the previous response.
|
2815
|
+
# @param [String] fields
|
2816
|
+
# Selector specifying which fields to include in a partial response.
|
2817
|
+
# @param [String] quota_user
|
2818
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2819
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2820
|
+
# @param [Google::Apis::RequestOptions] options
|
2821
|
+
# Request-specific options
|
2822
|
+
#
|
2823
|
+
# @yield [result, err] Result & error if block supplied
|
2824
|
+
# @yieldparam result [Google::Apis::LoggingV2::ListLinksResponse] parsed result object
|
2825
|
+
# @yieldparam err [StandardError] error object if request failed
|
2826
|
+
#
|
2827
|
+
# @return [Google::Apis::LoggingV2::ListLinksResponse]
|
2828
|
+
#
|
2829
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2830
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2831
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2832
|
+
def list_folder_location_bucket_links(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2833
|
+
command = make_simple_command(:get, 'v2/{+parent}/links', options)
|
2834
|
+
command.response_representation = Google::Apis::LoggingV2::ListLinksResponse::Representation
|
2835
|
+
command.response_class = Google::Apis::LoggingV2::ListLinksResponse
|
2836
|
+
command.params['parent'] = parent unless parent.nil?
|
2837
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
2838
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
2839
|
+
command.query['fields'] = fields unless fields.nil?
|
2840
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2841
|
+
execute_or_queue_command(command, &block)
|
2842
|
+
end
|
2843
|
+
|
2532
2844
|
# Creates a view over log entries in a log bucket. A bucket may contain a
|
2533
2845
|
# maximum of 30 views.
|
2534
2846
|
# @param [String] parent
|
@@ -3675,17 +3987,20 @@ module Google
|
|
3675
3987
|
execute_or_queue_command(command, &block)
|
3676
3988
|
end
|
3677
3989
|
|
3678
|
-
#
|
3679
|
-
#
|
3990
|
+
# Asynchronously creates linked dataset in BigQuery which makes it possible to
|
3991
|
+
# use BugQuery to read the logs stored in the bucket. A bucket may currently
|
3992
|
+
# only contain one link.
|
3680
3993
|
# @param [String] parent
|
3681
|
-
# Required. The
|
3682
|
-
# locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
|
3683
|
-
# locations/
|
3684
|
-
#
|
3685
|
-
#
|
3686
|
-
#
|
3687
|
-
#
|
3688
|
-
#
|
3994
|
+
# Required. The full resource name of the bucket to create a link for. "projects/
|
3995
|
+
# [PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[
|
3996
|
+
# ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/
|
3997
|
+
# [BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[
|
3998
|
+
# FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
|
3999
|
+
# @param [Google::Apis::LoggingV2::Link] link_object
|
4000
|
+
# @param [String] link_id
|
4001
|
+
# Required. The ID to use for the link. The link_id can have up to 100
|
4002
|
+
# characters. A valid link_id must only have alphanumeric characters and
|
4003
|
+
# underscores within it.
|
3689
4004
|
# @param [String] fields
|
3690
4005
|
# Selector specifying which fields to include in a partial response.
|
3691
4006
|
# @param [String] quota_user
|
@@ -3695,34 +4010,36 @@ module Google
|
|
3695
4010
|
# Request-specific options
|
3696
4011
|
#
|
3697
4012
|
# @yield [result, err] Result & error if block supplied
|
3698
|
-
# @yieldparam result [Google::Apis::LoggingV2::
|
4013
|
+
# @yieldparam result [Google::Apis::LoggingV2::Operation] parsed result object
|
3699
4014
|
# @yieldparam err [StandardError] error object if request failed
|
3700
4015
|
#
|
3701
|
-
# @return [Google::Apis::LoggingV2::
|
4016
|
+
# @return [Google::Apis::LoggingV2::Operation]
|
3702
4017
|
#
|
3703
4018
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3704
4019
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3705
4020
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3706
|
-
def
|
3707
|
-
command = make_simple_command(:post, 'v2/{+parent}/
|
3708
|
-
command.request_representation = Google::Apis::LoggingV2::
|
3709
|
-
command.request_object =
|
3710
|
-
command.response_representation = Google::Apis::LoggingV2::
|
3711
|
-
command.response_class = Google::Apis::LoggingV2::
|
4021
|
+
def create_location_bucket_link(parent, link_object = nil, link_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
4022
|
+
command = make_simple_command(:post, 'v2/{+parent}/links', options)
|
4023
|
+
command.request_representation = Google::Apis::LoggingV2::Link::Representation
|
4024
|
+
command.request_object = link_object
|
4025
|
+
command.response_representation = Google::Apis::LoggingV2::Operation::Representation
|
4026
|
+
command.response_class = Google::Apis::LoggingV2::Operation
|
3712
4027
|
command.params['parent'] = parent unless parent.nil?
|
3713
|
-
command.query['
|
4028
|
+
command.query['linkId'] = link_id unless link_id.nil?
|
3714
4029
|
command.query['fields'] = fields unless fields.nil?
|
3715
4030
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3716
4031
|
execute_or_queue_command(command, &block)
|
3717
4032
|
end
|
3718
4033
|
|
3719
|
-
# Deletes a
|
3720
|
-
#
|
3721
|
-
# occurs, please try again in a few minutes.
|
4034
|
+
# Deletes a link. This will also delete the corresponding BigQuery linked
|
4035
|
+
# dataset.
|
3722
4036
|
# @param [String] name
|
3723
|
-
# Required. The full resource name of the
|
3724
|
-
# locations/
|
3725
|
-
#
|
4037
|
+
# Required. The full resource name of the link to delete."projects/PROJECT_ID/
|
4038
|
+
# locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID" "organizations/
|
4039
|
+
# ORGANIZATION_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID" "
|
4040
|
+
# billingAccounts/BILLING_ACCOUNT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/
|
4041
|
+
# links/LINK_ID" "folders/FOLDER_ID/locations/LOCATION_ID/buckets/BUCKET_ID/
|
4042
|
+
# links/LINK_ID"
|
3726
4043
|
# @param [String] fields
|
3727
4044
|
# Selector specifying which fields to include in a partial response.
|
3728
4045
|
# @param [String] quota_user
|
@@ -3732,29 +4049,180 @@ module Google
|
|
3732
4049
|
# Request-specific options
|
3733
4050
|
#
|
3734
4051
|
# @yield [result, err] Result & error if block supplied
|
3735
|
-
# @yieldparam result [Google::Apis::LoggingV2::
|
4052
|
+
# @yieldparam result [Google::Apis::LoggingV2::Operation] parsed result object
|
3736
4053
|
# @yieldparam err [StandardError] error object if request failed
|
3737
4054
|
#
|
3738
|
-
# @return [Google::Apis::LoggingV2::
|
4055
|
+
# @return [Google::Apis::LoggingV2::Operation]
|
3739
4056
|
#
|
3740
4057
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3741
4058
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3742
4059
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3743
|
-
def
|
4060
|
+
def delete_location_bucket_link(name, fields: nil, quota_user: nil, options: nil, &block)
|
3744
4061
|
command = make_simple_command(:delete, 'v2/{+name}', options)
|
3745
|
-
command.response_representation = Google::Apis::LoggingV2::
|
3746
|
-
command.response_class = Google::Apis::LoggingV2::
|
4062
|
+
command.response_representation = Google::Apis::LoggingV2::Operation::Representation
|
4063
|
+
command.response_class = Google::Apis::LoggingV2::Operation
|
3747
4064
|
command.params['name'] = name unless name.nil?
|
3748
4065
|
command.query['fields'] = fields unless fields.nil?
|
3749
4066
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3750
4067
|
execute_or_queue_command(command, &block)
|
3751
4068
|
end
|
3752
4069
|
|
3753
|
-
# Gets a
|
4070
|
+
# Gets a link.
|
3754
4071
|
# @param [String] name
|
3755
|
-
# Required. The resource name of the
|
3756
|
-
# LOCATION_ID
|
3757
|
-
#
|
4072
|
+
# Required. The resource name of the link:"projects/PROJECT_ID/locations/
|
4073
|
+
# LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID" "organizations/ORGANIZATION_ID/
|
4074
|
+
# locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID" "billingAccounts/
|
4075
|
+
# BILLING_ACCOUNT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID" "
|
4076
|
+
# folders/FOLDER_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID
|
4077
|
+
# @param [String] fields
|
4078
|
+
# Selector specifying which fields to include in a partial response.
|
4079
|
+
# @param [String] quota_user
|
4080
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
4081
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4082
|
+
# @param [Google::Apis::RequestOptions] options
|
4083
|
+
# Request-specific options
|
4084
|
+
#
|
4085
|
+
# @yield [result, err] Result & error if block supplied
|
4086
|
+
# @yieldparam result [Google::Apis::LoggingV2::Link] parsed result object
|
4087
|
+
# @yieldparam err [StandardError] error object if request failed
|
4088
|
+
#
|
4089
|
+
# @return [Google::Apis::LoggingV2::Link]
|
4090
|
+
#
|
4091
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4092
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4093
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4094
|
+
def get_location_bucket_link(name, fields: nil, quota_user: nil, options: nil, &block)
|
4095
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
4096
|
+
command.response_representation = Google::Apis::LoggingV2::Link::Representation
|
4097
|
+
command.response_class = Google::Apis::LoggingV2::Link
|
4098
|
+
command.params['name'] = name unless name.nil?
|
4099
|
+
command.query['fields'] = fields unless fields.nil?
|
4100
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4101
|
+
execute_or_queue_command(command, &block)
|
4102
|
+
end
|
4103
|
+
|
4104
|
+
# Lists links.
|
4105
|
+
# @param [String] parent
|
4106
|
+
# Required. The parent resource whose links are to be listed:"projects/
|
4107
|
+
# PROJECT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/" "organizations/
|
4108
|
+
# ORGANIZATION_ID/locations/LOCATION_ID/buckets/BUCKET_ID/" "billingAccounts/
|
4109
|
+
# BILLING_ACCOUNT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/" "folders/
|
4110
|
+
# FOLDER_ID/locations/LOCATION_ID/buckets/BUCKET_ID/
|
4111
|
+
# @param [Fixnum] page_size
|
4112
|
+
# Optional. The maximum number of results to return from this request.
|
4113
|
+
# @param [String] page_token
|
4114
|
+
# Optional. If present, then retrieve the next batch of results from the
|
4115
|
+
# preceding call to this method. pageToken must be the value of nextPageToken
|
4116
|
+
# from the previous response.
|
4117
|
+
# @param [String] fields
|
4118
|
+
# Selector specifying which fields to include in a partial response.
|
4119
|
+
# @param [String] quota_user
|
4120
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
4121
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4122
|
+
# @param [Google::Apis::RequestOptions] options
|
4123
|
+
# Request-specific options
|
4124
|
+
#
|
4125
|
+
# @yield [result, err] Result & error if block supplied
|
4126
|
+
# @yieldparam result [Google::Apis::LoggingV2::ListLinksResponse] parsed result object
|
4127
|
+
# @yieldparam err [StandardError] error object if request failed
|
4128
|
+
#
|
4129
|
+
# @return [Google::Apis::LoggingV2::ListLinksResponse]
|
4130
|
+
#
|
4131
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4132
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4133
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4134
|
+
def list_location_bucket_links(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
4135
|
+
command = make_simple_command(:get, 'v2/{+parent}/links', options)
|
4136
|
+
command.response_representation = Google::Apis::LoggingV2::ListLinksResponse::Representation
|
4137
|
+
command.response_class = Google::Apis::LoggingV2::ListLinksResponse
|
4138
|
+
command.params['parent'] = parent unless parent.nil?
|
4139
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
4140
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
4141
|
+
command.query['fields'] = fields unless fields.nil?
|
4142
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4143
|
+
execute_or_queue_command(command, &block)
|
4144
|
+
end
|
4145
|
+
|
4146
|
+
# Creates a view over log entries in a log bucket. A bucket may contain a
|
4147
|
+
# maximum of 30 views.
|
4148
|
+
# @param [String] parent
|
4149
|
+
# Required. The bucket in which to create the view `"projects/[PROJECT_ID]/
|
4150
|
+
# locations/[LOCATION_ID]/buckets/[BUCKET_ID]"` For example:"projects/my-project/
|
4151
|
+
# locations/global/buckets/my-bucket"
|
4152
|
+
# @param [Google::Apis::LoggingV2::LogView] log_view_object
|
4153
|
+
# @param [String] view_id
|
4154
|
+
# Required. A client-assigned identifier such as "my-view". Identifiers are
|
4155
|
+
# limited to 100 characters and can include only letters, digits, underscores,
|
4156
|
+
# hyphens, and periods.
|
4157
|
+
# @param [String] fields
|
4158
|
+
# Selector specifying which fields to include in a partial response.
|
4159
|
+
# @param [String] quota_user
|
4160
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
4161
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4162
|
+
# @param [Google::Apis::RequestOptions] options
|
4163
|
+
# Request-specific options
|
4164
|
+
#
|
4165
|
+
# @yield [result, err] Result & error if block supplied
|
4166
|
+
# @yieldparam result [Google::Apis::LoggingV2::LogView] parsed result object
|
4167
|
+
# @yieldparam err [StandardError] error object if request failed
|
4168
|
+
#
|
4169
|
+
# @return [Google::Apis::LoggingV2::LogView]
|
4170
|
+
#
|
4171
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4172
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4173
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4174
|
+
def create_location_bucket_view(parent, log_view_object = nil, view_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
4175
|
+
command = make_simple_command(:post, 'v2/{+parent}/views', options)
|
4176
|
+
command.request_representation = Google::Apis::LoggingV2::LogView::Representation
|
4177
|
+
command.request_object = log_view_object
|
4178
|
+
command.response_representation = Google::Apis::LoggingV2::LogView::Representation
|
4179
|
+
command.response_class = Google::Apis::LoggingV2::LogView
|
4180
|
+
command.params['parent'] = parent unless parent.nil?
|
4181
|
+
command.query['viewId'] = view_id unless view_id.nil?
|
4182
|
+
command.query['fields'] = fields unless fields.nil?
|
4183
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4184
|
+
execute_or_queue_command(command, &block)
|
4185
|
+
end
|
4186
|
+
|
4187
|
+
# Deletes a view on a log bucket. If an UNAVAILABLE error is returned, this
|
4188
|
+
# indicates that system is not in a state where it can delete the view. If this
|
4189
|
+
# occurs, please try again in a few minutes.
|
4190
|
+
# @param [String] name
|
4191
|
+
# Required. The full resource name of the view to delete: "projects/[PROJECT_ID]/
|
4192
|
+
# locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" For example:"
|
4193
|
+
# projects/my-project/locations/global/buckets/my-bucket/views/my-view"
|
4194
|
+
# @param [String] fields
|
4195
|
+
# Selector specifying which fields to include in a partial response.
|
4196
|
+
# @param [String] quota_user
|
4197
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
4198
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4199
|
+
# @param [Google::Apis::RequestOptions] options
|
4200
|
+
# Request-specific options
|
4201
|
+
#
|
4202
|
+
# @yield [result, err] Result & error if block supplied
|
4203
|
+
# @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
|
4204
|
+
# @yieldparam err [StandardError] error object if request failed
|
4205
|
+
#
|
4206
|
+
# @return [Google::Apis::LoggingV2::Empty]
|
4207
|
+
#
|
4208
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4209
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4210
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4211
|
+
def delete_location_bucket_view(name, fields: nil, quota_user: nil, options: nil, &block)
|
4212
|
+
command = make_simple_command(:delete, 'v2/{+name}', options)
|
4213
|
+
command.response_representation = Google::Apis::LoggingV2::Empty::Representation
|
4214
|
+
command.response_class = Google::Apis::LoggingV2::Empty
|
4215
|
+
command.params['name'] = name unless name.nil?
|
4216
|
+
command.query['fields'] = fields unless fields.nil?
|
4217
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4218
|
+
execute_or_queue_command(command, &block)
|
4219
|
+
end
|
4220
|
+
|
4221
|
+
# Gets a view on a log bucket..
|
4222
|
+
# @param [String] name
|
4223
|
+
# Required. The resource name of the policy: "projects/[PROJECT_ID]/locations/[
|
4224
|
+
# LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" For example:"projects/my-
|
4225
|
+
# project/locations/global/buckets/my-bucket/views/my-view"
|
3758
4226
|
# @param [String] fields
|
3759
4227
|
# Selector specifying which fields to include in a partial response.
|
3760
4228
|
# @param [String] quota_user
|
@@ -4904,6 +5372,162 @@ module Google
|
|
4904
5372
|
execute_or_queue_command(command, &block)
|
4905
5373
|
end
|
4906
5374
|
|
5375
|
+
# Asynchronously creates linked dataset in BigQuery which makes it possible to
|
5376
|
+
# use BugQuery to read the logs stored in the bucket. A bucket may currently
|
5377
|
+
# only contain one link.
|
5378
|
+
# @param [String] parent
|
5379
|
+
# Required. The full resource name of the bucket to create a link for. "projects/
|
5380
|
+
# [PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[
|
5381
|
+
# ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/
|
5382
|
+
# [BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[
|
5383
|
+
# FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
|
5384
|
+
# @param [Google::Apis::LoggingV2::Link] link_object
|
5385
|
+
# @param [String] link_id
|
5386
|
+
# Required. The ID to use for the link. The link_id can have up to 100
|
5387
|
+
# characters. A valid link_id must only have alphanumeric characters and
|
5388
|
+
# underscores within it.
|
5389
|
+
# @param [String] fields
|
5390
|
+
# Selector specifying which fields to include in a partial response.
|
5391
|
+
# @param [String] quota_user
|
5392
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
5393
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5394
|
+
# @param [Google::Apis::RequestOptions] options
|
5395
|
+
# Request-specific options
|
5396
|
+
#
|
5397
|
+
# @yield [result, err] Result & error if block supplied
|
5398
|
+
# @yieldparam result [Google::Apis::LoggingV2::Operation] parsed result object
|
5399
|
+
# @yieldparam err [StandardError] error object if request failed
|
5400
|
+
#
|
5401
|
+
# @return [Google::Apis::LoggingV2::Operation]
|
5402
|
+
#
|
5403
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5404
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5405
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5406
|
+
def create_organization_location_bucket_link(parent, link_object = nil, link_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
5407
|
+
command = make_simple_command(:post, 'v2/{+parent}/links', options)
|
5408
|
+
command.request_representation = Google::Apis::LoggingV2::Link::Representation
|
5409
|
+
command.request_object = link_object
|
5410
|
+
command.response_representation = Google::Apis::LoggingV2::Operation::Representation
|
5411
|
+
command.response_class = Google::Apis::LoggingV2::Operation
|
5412
|
+
command.params['parent'] = parent unless parent.nil?
|
5413
|
+
command.query['linkId'] = link_id unless link_id.nil?
|
5414
|
+
command.query['fields'] = fields unless fields.nil?
|
5415
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5416
|
+
execute_or_queue_command(command, &block)
|
5417
|
+
end
|
5418
|
+
|
5419
|
+
# Deletes a link. This will also delete the corresponding BigQuery linked
|
5420
|
+
# dataset.
|
5421
|
+
# @param [String] name
|
5422
|
+
# Required. The full resource name of the link to delete."projects/PROJECT_ID/
|
5423
|
+
# locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID" "organizations/
|
5424
|
+
# ORGANIZATION_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID" "
|
5425
|
+
# billingAccounts/BILLING_ACCOUNT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/
|
5426
|
+
# links/LINK_ID" "folders/FOLDER_ID/locations/LOCATION_ID/buckets/BUCKET_ID/
|
5427
|
+
# links/LINK_ID"
|
5428
|
+
# @param [String] fields
|
5429
|
+
# Selector specifying which fields to include in a partial response.
|
5430
|
+
# @param [String] quota_user
|
5431
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
5432
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5433
|
+
# @param [Google::Apis::RequestOptions] options
|
5434
|
+
# Request-specific options
|
5435
|
+
#
|
5436
|
+
# @yield [result, err] Result & error if block supplied
|
5437
|
+
# @yieldparam result [Google::Apis::LoggingV2::Operation] parsed result object
|
5438
|
+
# @yieldparam err [StandardError] error object if request failed
|
5439
|
+
#
|
5440
|
+
# @return [Google::Apis::LoggingV2::Operation]
|
5441
|
+
#
|
5442
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5443
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5444
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5445
|
+
def delete_organization_location_bucket_link(name, fields: nil, quota_user: nil, options: nil, &block)
|
5446
|
+
command = make_simple_command(:delete, 'v2/{+name}', options)
|
5447
|
+
command.response_representation = Google::Apis::LoggingV2::Operation::Representation
|
5448
|
+
command.response_class = Google::Apis::LoggingV2::Operation
|
5449
|
+
command.params['name'] = name unless name.nil?
|
5450
|
+
command.query['fields'] = fields unless fields.nil?
|
5451
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5452
|
+
execute_or_queue_command(command, &block)
|
5453
|
+
end
|
5454
|
+
|
5455
|
+
# Gets a link.
|
5456
|
+
# @param [String] name
|
5457
|
+
# Required. The resource name of the link:"projects/PROJECT_ID/locations/
|
5458
|
+
# LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID" "organizations/ORGANIZATION_ID/
|
5459
|
+
# locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID" "billingAccounts/
|
5460
|
+
# BILLING_ACCOUNT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID" "
|
5461
|
+
# folders/FOLDER_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID
|
5462
|
+
# @param [String] fields
|
5463
|
+
# Selector specifying which fields to include in a partial response.
|
5464
|
+
# @param [String] quota_user
|
5465
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
5466
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5467
|
+
# @param [Google::Apis::RequestOptions] options
|
5468
|
+
# Request-specific options
|
5469
|
+
#
|
5470
|
+
# @yield [result, err] Result & error if block supplied
|
5471
|
+
# @yieldparam result [Google::Apis::LoggingV2::Link] parsed result object
|
5472
|
+
# @yieldparam err [StandardError] error object if request failed
|
5473
|
+
#
|
5474
|
+
# @return [Google::Apis::LoggingV2::Link]
|
5475
|
+
#
|
5476
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5477
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5478
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5479
|
+
def get_organization_location_bucket_link(name, fields: nil, quota_user: nil, options: nil, &block)
|
5480
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
5481
|
+
command.response_representation = Google::Apis::LoggingV2::Link::Representation
|
5482
|
+
command.response_class = Google::Apis::LoggingV2::Link
|
5483
|
+
command.params['name'] = name unless name.nil?
|
5484
|
+
command.query['fields'] = fields unless fields.nil?
|
5485
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5486
|
+
execute_or_queue_command(command, &block)
|
5487
|
+
end
|
5488
|
+
|
5489
|
+
# Lists links.
|
5490
|
+
# @param [String] parent
|
5491
|
+
# Required. The parent resource whose links are to be listed:"projects/
|
5492
|
+
# PROJECT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/" "organizations/
|
5493
|
+
# ORGANIZATION_ID/locations/LOCATION_ID/buckets/BUCKET_ID/" "billingAccounts/
|
5494
|
+
# BILLING_ACCOUNT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/" "folders/
|
5495
|
+
# FOLDER_ID/locations/LOCATION_ID/buckets/BUCKET_ID/
|
5496
|
+
# @param [Fixnum] page_size
|
5497
|
+
# Optional. The maximum number of results to return from this request.
|
5498
|
+
# @param [String] page_token
|
5499
|
+
# Optional. If present, then retrieve the next batch of results from the
|
5500
|
+
# preceding call to this method. pageToken must be the value of nextPageToken
|
5501
|
+
# from the previous response.
|
5502
|
+
# @param [String] fields
|
5503
|
+
# Selector specifying which fields to include in a partial response.
|
5504
|
+
# @param [String] quota_user
|
5505
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
5506
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5507
|
+
# @param [Google::Apis::RequestOptions] options
|
5508
|
+
# Request-specific options
|
5509
|
+
#
|
5510
|
+
# @yield [result, err] Result & error if block supplied
|
5511
|
+
# @yieldparam result [Google::Apis::LoggingV2::ListLinksResponse] parsed result object
|
5512
|
+
# @yieldparam err [StandardError] error object if request failed
|
5513
|
+
#
|
5514
|
+
# @return [Google::Apis::LoggingV2::ListLinksResponse]
|
5515
|
+
#
|
5516
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5517
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5518
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5519
|
+
def list_organization_location_bucket_links(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
5520
|
+
command = make_simple_command(:get, 'v2/{+parent}/links', options)
|
5521
|
+
command.response_representation = Google::Apis::LoggingV2::ListLinksResponse::Representation
|
5522
|
+
command.response_class = Google::Apis::LoggingV2::ListLinksResponse
|
5523
|
+
command.params['parent'] = parent unless parent.nil?
|
5524
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
5525
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
5526
|
+
command.query['fields'] = fields unless fields.nil?
|
5527
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5528
|
+
execute_or_queue_command(command, &block)
|
5529
|
+
end
|
5530
|
+
|
4907
5531
|
# Creates a view over log entries in a log bucket. A bucket may contain a
|
4908
5532
|
# maximum of 30 views.
|
4909
5533
|
# @param [String] parent
|
@@ -6327,6 +6951,162 @@ module Google
|
|
6327
6951
|
execute_or_queue_command(command, &block)
|
6328
6952
|
end
|
6329
6953
|
|
6954
|
+
# Asynchronously creates linked dataset in BigQuery which makes it possible to
|
6955
|
+
# use BugQuery to read the logs stored in the bucket. A bucket may currently
|
6956
|
+
# only contain one link.
|
6957
|
+
# @param [String] parent
|
6958
|
+
# Required. The full resource name of the bucket to create a link for. "projects/
|
6959
|
+
# [PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[
|
6960
|
+
# ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/
|
6961
|
+
# [BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[
|
6962
|
+
# FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
|
6963
|
+
# @param [Google::Apis::LoggingV2::Link] link_object
|
6964
|
+
# @param [String] link_id
|
6965
|
+
# Required. The ID to use for the link. The link_id can have up to 100
|
6966
|
+
# characters. A valid link_id must only have alphanumeric characters and
|
6967
|
+
# underscores within it.
|
6968
|
+
# @param [String] fields
|
6969
|
+
# Selector specifying which fields to include in a partial response.
|
6970
|
+
# @param [String] quota_user
|
6971
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
6972
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
6973
|
+
# @param [Google::Apis::RequestOptions] options
|
6974
|
+
# Request-specific options
|
6975
|
+
#
|
6976
|
+
# @yield [result, err] Result & error if block supplied
|
6977
|
+
# @yieldparam result [Google::Apis::LoggingV2::Operation] parsed result object
|
6978
|
+
# @yieldparam err [StandardError] error object if request failed
|
6979
|
+
#
|
6980
|
+
# @return [Google::Apis::LoggingV2::Operation]
|
6981
|
+
#
|
6982
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6983
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
6984
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6985
|
+
def create_project_location_bucket_link(parent, link_object = nil, link_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
6986
|
+
command = make_simple_command(:post, 'v2/{+parent}/links', options)
|
6987
|
+
command.request_representation = Google::Apis::LoggingV2::Link::Representation
|
6988
|
+
command.request_object = link_object
|
6989
|
+
command.response_representation = Google::Apis::LoggingV2::Operation::Representation
|
6990
|
+
command.response_class = Google::Apis::LoggingV2::Operation
|
6991
|
+
command.params['parent'] = parent unless parent.nil?
|
6992
|
+
command.query['linkId'] = link_id unless link_id.nil?
|
6993
|
+
command.query['fields'] = fields unless fields.nil?
|
6994
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
6995
|
+
execute_or_queue_command(command, &block)
|
6996
|
+
end
|
6997
|
+
|
6998
|
+
# Deletes a link. This will also delete the corresponding BigQuery linked
|
6999
|
+
# dataset.
|
7000
|
+
# @param [String] name
|
7001
|
+
# Required. The full resource name of the link to delete."projects/PROJECT_ID/
|
7002
|
+
# locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID" "organizations/
|
7003
|
+
# ORGANIZATION_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID" "
|
7004
|
+
# billingAccounts/BILLING_ACCOUNT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/
|
7005
|
+
# links/LINK_ID" "folders/FOLDER_ID/locations/LOCATION_ID/buckets/BUCKET_ID/
|
7006
|
+
# links/LINK_ID"
|
7007
|
+
# @param [String] fields
|
7008
|
+
# Selector specifying which fields to include in a partial response.
|
7009
|
+
# @param [String] quota_user
|
7010
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
7011
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
7012
|
+
# @param [Google::Apis::RequestOptions] options
|
7013
|
+
# Request-specific options
|
7014
|
+
#
|
7015
|
+
# @yield [result, err] Result & error if block supplied
|
7016
|
+
# @yieldparam result [Google::Apis::LoggingV2::Operation] parsed result object
|
7017
|
+
# @yieldparam err [StandardError] error object if request failed
|
7018
|
+
#
|
7019
|
+
# @return [Google::Apis::LoggingV2::Operation]
|
7020
|
+
#
|
7021
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
7022
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
7023
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
7024
|
+
def delete_project_location_bucket_link(name, fields: nil, quota_user: nil, options: nil, &block)
|
7025
|
+
command = make_simple_command(:delete, 'v2/{+name}', options)
|
7026
|
+
command.response_representation = Google::Apis::LoggingV2::Operation::Representation
|
7027
|
+
command.response_class = Google::Apis::LoggingV2::Operation
|
7028
|
+
command.params['name'] = name unless name.nil?
|
7029
|
+
command.query['fields'] = fields unless fields.nil?
|
7030
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
7031
|
+
execute_or_queue_command(command, &block)
|
7032
|
+
end
|
7033
|
+
|
7034
|
+
# Gets a link.
|
7035
|
+
# @param [String] name
|
7036
|
+
# Required. The resource name of the link:"projects/PROJECT_ID/locations/
|
7037
|
+
# LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID" "organizations/ORGANIZATION_ID/
|
7038
|
+
# locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID" "billingAccounts/
|
7039
|
+
# BILLING_ACCOUNT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID" "
|
7040
|
+
# folders/FOLDER_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID
|
7041
|
+
# @param [String] fields
|
7042
|
+
# Selector specifying which fields to include in a partial response.
|
7043
|
+
# @param [String] quota_user
|
7044
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
7045
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
7046
|
+
# @param [Google::Apis::RequestOptions] options
|
7047
|
+
# Request-specific options
|
7048
|
+
#
|
7049
|
+
# @yield [result, err] Result & error if block supplied
|
7050
|
+
# @yieldparam result [Google::Apis::LoggingV2::Link] parsed result object
|
7051
|
+
# @yieldparam err [StandardError] error object if request failed
|
7052
|
+
#
|
7053
|
+
# @return [Google::Apis::LoggingV2::Link]
|
7054
|
+
#
|
7055
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
7056
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
7057
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
7058
|
+
def get_project_location_bucket_link(name, fields: nil, quota_user: nil, options: nil, &block)
|
7059
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
7060
|
+
command.response_representation = Google::Apis::LoggingV2::Link::Representation
|
7061
|
+
command.response_class = Google::Apis::LoggingV2::Link
|
7062
|
+
command.params['name'] = name unless name.nil?
|
7063
|
+
command.query['fields'] = fields unless fields.nil?
|
7064
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
7065
|
+
execute_or_queue_command(command, &block)
|
7066
|
+
end
|
7067
|
+
|
7068
|
+
# Lists links.
|
7069
|
+
# @param [String] parent
|
7070
|
+
# Required. The parent resource whose links are to be listed:"projects/
|
7071
|
+
# PROJECT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/" "organizations/
|
7072
|
+
# ORGANIZATION_ID/locations/LOCATION_ID/buckets/BUCKET_ID/" "billingAccounts/
|
7073
|
+
# BILLING_ACCOUNT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/" "folders/
|
7074
|
+
# FOLDER_ID/locations/LOCATION_ID/buckets/BUCKET_ID/
|
7075
|
+
# @param [Fixnum] page_size
|
7076
|
+
# Optional. The maximum number of results to return from this request.
|
7077
|
+
# @param [String] page_token
|
7078
|
+
# Optional. If present, then retrieve the next batch of results from the
|
7079
|
+
# preceding call to this method. pageToken must be the value of nextPageToken
|
7080
|
+
# from the previous response.
|
7081
|
+
# @param [String] fields
|
7082
|
+
# Selector specifying which fields to include in a partial response.
|
7083
|
+
# @param [String] quota_user
|
7084
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
7085
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
7086
|
+
# @param [Google::Apis::RequestOptions] options
|
7087
|
+
# Request-specific options
|
7088
|
+
#
|
7089
|
+
# @yield [result, err] Result & error if block supplied
|
7090
|
+
# @yieldparam result [Google::Apis::LoggingV2::ListLinksResponse] parsed result object
|
7091
|
+
# @yieldparam err [StandardError] error object if request failed
|
7092
|
+
#
|
7093
|
+
# @return [Google::Apis::LoggingV2::ListLinksResponse]
|
7094
|
+
#
|
7095
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
7096
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
7097
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
7098
|
+
def list_project_location_bucket_links(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
7099
|
+
command = make_simple_command(:get, 'v2/{+parent}/links', options)
|
7100
|
+
command.response_representation = Google::Apis::LoggingV2::ListLinksResponse::Representation
|
7101
|
+
command.response_class = Google::Apis::LoggingV2::ListLinksResponse
|
7102
|
+
command.params['parent'] = parent unless parent.nil?
|
7103
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
7104
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
7105
|
+
command.query['fields'] = fields unless fields.nil?
|
7106
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
7107
|
+
execute_or_queue_command(command, &block)
|
7108
|
+
end
|
7109
|
+
|
6330
7110
|
# Creates a view over log entries in a log bucket. A bucket may contain a
|
6331
7111
|
# maximum of 30 views.
|
6332
7112
|
# @param [String] parent
|