google-apis-logging_v2 0.40.0 → 0.42.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
@@ -1054,13 +1210,7 @@ module Google
1054
1210
  end
1055
1211
 
1056
1212
  # Lists operations that match the specified filter in the request. If the server
1057
- # doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name binding
1058
- # allows API services to override the binding to use different resource name
1059
- # schemes, such as users/*/operations. To override the binding, API services can
1060
- # add a binding such as "/v1/`name=users/*`/operations" to their service
1061
- # configuration. For backwards compatibility, the default name includes the
1062
- # operations collection id, however overriding users must ensure the name
1063
- # binding is the parent resource, without the operations collection id.
1213
+ # doesn't support this method, it returns UNIMPLEMENTED.
1064
1214
  # @param [String] name
1065
1215
  # The name of the operation's parent resource.
1066
1216
  # @param [String] filter
@@ -2529,6 +2679,162 @@ module Google
2529
2679
  execute_or_queue_command(command, &block)
2530
2680
  end
2531
2681
 
2682
+ # Asynchronously creates linked dataset in BigQuery which makes it possible to
2683
+ # use BugQuery to read the logs stored in the bucket. A bucket may currently
2684
+ # only contain one link.
2685
+ # @param [String] parent
2686
+ # Required. The full resource name of the bucket to create a link for. "projects/
2687
+ # [PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[
2688
+ # ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/
2689
+ # [BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[
2690
+ # FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
2691
+ # @param [Google::Apis::LoggingV2::Link] link_object
2692
+ # @param [String] link_id
2693
+ # Required. The ID to use for the link. The link_id can have up to 100
2694
+ # characters. A valid link_id must only have alphanumeric characters and
2695
+ # underscores within it.
2696
+ # @param [String] fields
2697
+ # Selector specifying which fields to include in a partial response.
2698
+ # @param [String] quota_user
2699
+ # Available to use for quota purposes for server-side applications. Can be any
2700
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2701
+ # @param [Google::Apis::RequestOptions] options
2702
+ # Request-specific options
2703
+ #
2704
+ # @yield [result, err] Result & error if block supplied
2705
+ # @yieldparam result [Google::Apis::LoggingV2::Operation] parsed result object
2706
+ # @yieldparam err [StandardError] error object if request failed
2707
+ #
2708
+ # @return [Google::Apis::LoggingV2::Operation]
2709
+ #
2710
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2711
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2712
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2713
+ def create_folder_location_bucket_link(parent, link_object = nil, link_id: nil, fields: nil, quota_user: nil, options: nil, &block)
2714
+ command = make_simple_command(:post, 'v2/{+parent}/links', options)
2715
+ command.request_representation = Google::Apis::LoggingV2::Link::Representation
2716
+ command.request_object = link_object
2717
+ command.response_representation = Google::Apis::LoggingV2::Operation::Representation
2718
+ command.response_class = Google::Apis::LoggingV2::Operation
2719
+ command.params['parent'] = parent unless parent.nil?
2720
+ command.query['linkId'] = link_id unless link_id.nil?
2721
+ command.query['fields'] = fields unless fields.nil?
2722
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2723
+ execute_or_queue_command(command, &block)
2724
+ end
2725
+
2726
+ # Deletes a link. This will also delete the corresponding BigQuery linked
2727
+ # dataset.
2728
+ # @param [String] name
2729
+ # Required. The full resource name of the link to delete."projects/PROJECT_ID/
2730
+ # locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID" "organizations/
2731
+ # ORGANIZATION_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID" "
2732
+ # billingAccounts/BILLING_ACCOUNT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/
2733
+ # links/LINK_ID" "folders/FOLDER_ID/locations/LOCATION_ID/buckets/BUCKET_ID/
2734
+ # links/LINK_ID"
2735
+ # @param [String] fields
2736
+ # Selector specifying which fields to include in a partial response.
2737
+ # @param [String] quota_user
2738
+ # Available to use for quota purposes for server-side applications. Can be any
2739
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2740
+ # @param [Google::Apis::RequestOptions] options
2741
+ # Request-specific options
2742
+ #
2743
+ # @yield [result, err] Result & error if block supplied
2744
+ # @yieldparam result [Google::Apis::LoggingV2::Operation] parsed result object
2745
+ # @yieldparam err [StandardError] error object if request failed
2746
+ #
2747
+ # @return [Google::Apis::LoggingV2::Operation]
2748
+ #
2749
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2750
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2751
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2752
+ def delete_folder_location_bucket_link(name, fields: nil, quota_user: nil, options: nil, &block)
2753
+ command = make_simple_command(:delete, 'v2/{+name}', options)
2754
+ command.response_representation = Google::Apis::LoggingV2::Operation::Representation
2755
+ command.response_class = Google::Apis::LoggingV2::Operation
2756
+ command.params['name'] = name unless name.nil?
2757
+ command.query['fields'] = fields unless fields.nil?
2758
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2759
+ execute_or_queue_command(command, &block)
2760
+ end
2761
+
2762
+ # Gets a link.
2763
+ # @param [String] name
2764
+ # Required. The resource name of the link:"projects/PROJECT_ID/locations/
2765
+ # LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID" "organizations/ORGANIZATION_ID/
2766
+ # locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID" "billingAccounts/
2767
+ # BILLING_ACCOUNT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID" "
2768
+ # folders/FOLDER_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID
2769
+ # @param [String] fields
2770
+ # Selector specifying which fields to include in a partial response.
2771
+ # @param [String] quota_user
2772
+ # Available to use for quota purposes for server-side applications. Can be any
2773
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2774
+ # @param [Google::Apis::RequestOptions] options
2775
+ # Request-specific options
2776
+ #
2777
+ # @yield [result, err] Result & error if block supplied
2778
+ # @yieldparam result [Google::Apis::LoggingV2::Link] parsed result object
2779
+ # @yieldparam err [StandardError] error object if request failed
2780
+ #
2781
+ # @return [Google::Apis::LoggingV2::Link]
2782
+ #
2783
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2784
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2785
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2786
+ def get_folder_location_bucket_link(name, fields: nil, quota_user: nil, options: nil, &block)
2787
+ command = make_simple_command(:get, 'v2/{+name}', options)
2788
+ command.response_representation = Google::Apis::LoggingV2::Link::Representation
2789
+ command.response_class = Google::Apis::LoggingV2::Link
2790
+ command.params['name'] = name unless name.nil?
2791
+ command.query['fields'] = fields unless fields.nil?
2792
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2793
+ execute_or_queue_command(command, &block)
2794
+ end
2795
+
2796
+ # Lists links.
2797
+ # @param [String] parent
2798
+ # Required. The parent resource whose links are to be listed:"projects/
2799
+ # PROJECT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/" "organizations/
2800
+ # ORGANIZATION_ID/locations/LOCATION_ID/buckets/BUCKET_ID/" "billingAccounts/
2801
+ # BILLING_ACCOUNT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/" "folders/
2802
+ # FOLDER_ID/locations/LOCATION_ID/buckets/BUCKET_ID/
2803
+ # @param [Fixnum] page_size
2804
+ # Optional. The maximum number of results to return from this request.
2805
+ # @param [String] page_token
2806
+ # Optional. If present, then retrieve the next batch of results from the
2807
+ # preceding call to this method. pageToken must be the value of nextPageToken
2808
+ # from the previous response.
2809
+ # @param [String] fields
2810
+ # Selector specifying which fields to include in a partial response.
2811
+ # @param [String] quota_user
2812
+ # Available to use for quota purposes for server-side applications. Can be any
2813
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2814
+ # @param [Google::Apis::RequestOptions] options
2815
+ # Request-specific options
2816
+ #
2817
+ # @yield [result, err] Result & error if block supplied
2818
+ # @yieldparam result [Google::Apis::LoggingV2::ListLinksResponse] parsed result object
2819
+ # @yieldparam err [StandardError] error object if request failed
2820
+ #
2821
+ # @return [Google::Apis::LoggingV2::ListLinksResponse]
2822
+ #
2823
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2824
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2825
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2826
+ def list_folder_location_bucket_links(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2827
+ command = make_simple_command(:get, 'v2/{+parent}/links', options)
2828
+ command.response_representation = Google::Apis::LoggingV2::ListLinksResponse::Representation
2829
+ command.response_class = Google::Apis::LoggingV2::ListLinksResponse
2830
+ command.params['parent'] = parent unless parent.nil?
2831
+ command.query['pageSize'] = page_size unless page_size.nil?
2832
+ command.query['pageToken'] = page_token unless page_token.nil?
2833
+ command.query['fields'] = fields unless fields.nil?
2834
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2835
+ execute_or_queue_command(command, &block)
2836
+ end
2837
+
2532
2838
  # Creates a view over log entries in a log bucket. A bucket may contain a
2533
2839
  # maximum of 30 views.
2534
2840
  # @param [String] parent
@@ -2849,13 +3155,7 @@ module Google
2849
3155
  end
2850
3156
 
2851
3157
  # Lists operations that match the specified filter in the request. If the server
2852
- # doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name binding
2853
- # allows API services to override the binding to use different resource name
2854
- # schemes, such as users/*/operations. To override the binding, API services can
2855
- # add a binding such as "/v1/`name=users/*`/operations" to their service
2856
- # configuration. For backwards compatibility, the default name includes the
2857
- # operations collection id, however overriding users must ensure the name
2858
- # binding is the parent resource, without the operations collection id.
3158
+ # doesn't support this method, it returns UNIMPLEMENTED.
2859
3159
  # @param [String] name
2860
3160
  # The name of the operation's parent resource.
2861
3161
  # @param [String] filter
@@ -3675,17 +3975,20 @@ module Google
3675
3975
  execute_or_queue_command(command, &block)
3676
3976
  end
3677
3977
 
3678
- # Creates a view over log entries in a log bucket. A bucket may contain a
3679
- # maximum of 30 views.
3978
+ # Asynchronously creates linked dataset in BigQuery which makes it possible to
3979
+ # use BugQuery to read the logs stored in the bucket. A bucket may currently
3980
+ # only contain one link.
3680
3981
  # @param [String] parent
3681
- # Required. The bucket in which to create the view `"projects/[PROJECT_ID]/
3682
- # locations/[LOCATION_ID]/buckets/[BUCKET_ID]"` For example:"projects/my-project/
3683
- # locations/global/buckets/my-bucket"
3684
- # @param [Google::Apis::LoggingV2::LogView] log_view_object
3685
- # @param [String] view_id
3686
- # Required. A client-assigned identifier such as "my-view". Identifiers are
3687
- # limited to 100 characters and can include only letters, digits, underscores,
3688
- # hyphens, and periods.
3982
+ # Required. The full resource name of the bucket to create a link for. "projects/
3983
+ # [PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[
3984
+ # ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/
3985
+ # [BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[
3986
+ # FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
3987
+ # @param [Google::Apis::LoggingV2::Link] link_object
3988
+ # @param [String] link_id
3989
+ # Required. The ID to use for the link. The link_id can have up to 100
3990
+ # characters. A valid link_id must only have alphanumeric characters and
3991
+ # underscores within it.
3689
3992
  # @param [String] fields
3690
3993
  # Selector specifying which fields to include in a partial response.
3691
3994
  # @param [String] quota_user
@@ -3695,34 +3998,36 @@ module Google
3695
3998
  # Request-specific options
3696
3999
  #
3697
4000
  # @yield [result, err] Result & error if block supplied
3698
- # @yieldparam result [Google::Apis::LoggingV2::LogView] parsed result object
4001
+ # @yieldparam result [Google::Apis::LoggingV2::Operation] parsed result object
3699
4002
  # @yieldparam err [StandardError] error object if request failed
3700
4003
  #
3701
- # @return [Google::Apis::LoggingV2::LogView]
4004
+ # @return [Google::Apis::LoggingV2::Operation]
3702
4005
  #
3703
4006
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3704
4007
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3705
4008
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3706
- def create_location_bucket_view(parent, log_view_object = nil, view_id: nil, fields: nil, quota_user: nil, options: nil, &block)
3707
- command = make_simple_command(:post, 'v2/{+parent}/views', options)
3708
- command.request_representation = Google::Apis::LoggingV2::LogView::Representation
3709
- command.request_object = log_view_object
3710
- command.response_representation = Google::Apis::LoggingV2::LogView::Representation
3711
- command.response_class = Google::Apis::LoggingV2::LogView
4009
+ def create_location_bucket_link(parent, link_object = nil, link_id: nil, fields: nil, quota_user: nil, options: nil, &block)
4010
+ command = make_simple_command(:post, 'v2/{+parent}/links', options)
4011
+ command.request_representation = Google::Apis::LoggingV2::Link::Representation
4012
+ command.request_object = link_object
4013
+ command.response_representation = Google::Apis::LoggingV2::Operation::Representation
4014
+ command.response_class = Google::Apis::LoggingV2::Operation
3712
4015
  command.params['parent'] = parent unless parent.nil?
3713
- command.query['viewId'] = view_id unless view_id.nil?
4016
+ command.query['linkId'] = link_id unless link_id.nil?
3714
4017
  command.query['fields'] = fields unless fields.nil?
3715
4018
  command.query['quotaUser'] = quota_user unless quota_user.nil?
3716
4019
  execute_or_queue_command(command, &block)
3717
4020
  end
3718
4021
 
3719
- # Deletes a view on a log bucket. If an UNAVAILABLE error is returned, this
3720
- # indicates that system is not in a state where it can delete the view. If this
3721
- # occurs, please try again in a few minutes.
4022
+ # Deletes a link. This will also delete the corresponding BigQuery linked
4023
+ # dataset.
3722
4024
  # @param [String] name
3723
- # Required. The full resource name of the view to delete: "projects/[PROJECT_ID]/
3724
- # locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" For example:"
3725
- # projects/my-project/locations/global/buckets/my-bucket/views/my-view"
4025
+ # Required. The full resource name of the link to delete."projects/PROJECT_ID/
4026
+ # locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID" "organizations/
4027
+ # ORGANIZATION_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID" "
4028
+ # billingAccounts/BILLING_ACCOUNT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/
4029
+ # links/LINK_ID" "folders/FOLDER_ID/locations/LOCATION_ID/buckets/BUCKET_ID/
4030
+ # links/LINK_ID"
3726
4031
  # @param [String] fields
3727
4032
  # Selector specifying which fields to include in a partial response.
3728
4033
  # @param [String] quota_user
@@ -3732,29 +4037,180 @@ module Google
3732
4037
  # Request-specific options
3733
4038
  #
3734
4039
  # @yield [result, err] Result & error if block supplied
3735
- # @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
4040
+ # @yieldparam result [Google::Apis::LoggingV2::Operation] parsed result object
3736
4041
  # @yieldparam err [StandardError] error object if request failed
3737
4042
  #
3738
- # @return [Google::Apis::LoggingV2::Empty]
4043
+ # @return [Google::Apis::LoggingV2::Operation]
3739
4044
  #
3740
4045
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3741
4046
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3742
4047
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3743
- def delete_location_bucket_view(name, fields: nil, quota_user: nil, options: nil, &block)
4048
+ def delete_location_bucket_link(name, fields: nil, quota_user: nil, options: nil, &block)
3744
4049
  command = make_simple_command(:delete, 'v2/{+name}', options)
3745
- command.response_representation = Google::Apis::LoggingV2::Empty::Representation
3746
- command.response_class = Google::Apis::LoggingV2::Empty
4050
+ command.response_representation = Google::Apis::LoggingV2::Operation::Representation
4051
+ command.response_class = Google::Apis::LoggingV2::Operation
3747
4052
  command.params['name'] = name unless name.nil?
3748
4053
  command.query['fields'] = fields unless fields.nil?
3749
4054
  command.query['quotaUser'] = quota_user unless quota_user.nil?
3750
4055
  execute_or_queue_command(command, &block)
3751
4056
  end
3752
4057
 
3753
- # Gets a view on a log bucket..
4058
+ # Gets a link.
3754
4059
  # @param [String] name
3755
- # Required. The resource name of the policy: "projects/[PROJECT_ID]/locations/[
3756
- # LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" For example:"projects/my-
3757
- # project/locations/global/buckets/my-bucket/views/my-view"
4060
+ # Required. The resource name of the link:"projects/PROJECT_ID/locations/
4061
+ # LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID" "organizations/ORGANIZATION_ID/
4062
+ # locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID" "billingAccounts/
4063
+ # BILLING_ACCOUNT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID" "
4064
+ # folders/FOLDER_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID
4065
+ # @param [String] fields
4066
+ # Selector specifying which fields to include in a partial response.
4067
+ # @param [String] quota_user
4068
+ # Available to use for quota purposes for server-side applications. Can be any
4069
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4070
+ # @param [Google::Apis::RequestOptions] options
4071
+ # Request-specific options
4072
+ #
4073
+ # @yield [result, err] Result & error if block supplied
4074
+ # @yieldparam result [Google::Apis::LoggingV2::Link] parsed result object
4075
+ # @yieldparam err [StandardError] error object if request failed
4076
+ #
4077
+ # @return [Google::Apis::LoggingV2::Link]
4078
+ #
4079
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4080
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4081
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4082
+ def get_location_bucket_link(name, fields: nil, quota_user: nil, options: nil, &block)
4083
+ command = make_simple_command(:get, 'v2/{+name}', options)
4084
+ command.response_representation = Google::Apis::LoggingV2::Link::Representation
4085
+ command.response_class = Google::Apis::LoggingV2::Link
4086
+ command.params['name'] = name unless name.nil?
4087
+ command.query['fields'] = fields unless fields.nil?
4088
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4089
+ execute_or_queue_command(command, &block)
4090
+ end
4091
+
4092
+ # Lists links.
4093
+ # @param [String] parent
4094
+ # Required. The parent resource whose links are to be listed:"projects/
4095
+ # PROJECT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/" "organizations/
4096
+ # ORGANIZATION_ID/locations/LOCATION_ID/buckets/BUCKET_ID/" "billingAccounts/
4097
+ # BILLING_ACCOUNT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/" "folders/
4098
+ # FOLDER_ID/locations/LOCATION_ID/buckets/BUCKET_ID/
4099
+ # @param [Fixnum] page_size
4100
+ # Optional. The maximum number of results to return from this request.
4101
+ # @param [String] page_token
4102
+ # Optional. If present, then retrieve the next batch of results from the
4103
+ # preceding call to this method. pageToken must be the value of nextPageToken
4104
+ # from the previous response.
4105
+ # @param [String] fields
4106
+ # Selector specifying which fields to include in a partial response.
4107
+ # @param [String] quota_user
4108
+ # Available to use for quota purposes for server-side applications. Can be any
4109
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4110
+ # @param [Google::Apis::RequestOptions] options
4111
+ # Request-specific options
4112
+ #
4113
+ # @yield [result, err] Result & error if block supplied
4114
+ # @yieldparam result [Google::Apis::LoggingV2::ListLinksResponse] parsed result object
4115
+ # @yieldparam err [StandardError] error object if request failed
4116
+ #
4117
+ # @return [Google::Apis::LoggingV2::ListLinksResponse]
4118
+ #
4119
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4120
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4121
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4122
+ def list_location_bucket_links(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
4123
+ command = make_simple_command(:get, 'v2/{+parent}/links', options)
4124
+ command.response_representation = Google::Apis::LoggingV2::ListLinksResponse::Representation
4125
+ command.response_class = Google::Apis::LoggingV2::ListLinksResponse
4126
+ command.params['parent'] = parent unless parent.nil?
4127
+ command.query['pageSize'] = page_size unless page_size.nil?
4128
+ command.query['pageToken'] = page_token unless page_token.nil?
4129
+ command.query['fields'] = fields unless fields.nil?
4130
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4131
+ execute_or_queue_command(command, &block)
4132
+ end
4133
+
4134
+ # Creates a view over log entries in a log bucket. A bucket may contain a
4135
+ # maximum of 30 views.
4136
+ # @param [String] parent
4137
+ # Required. The bucket in which to create the view `"projects/[PROJECT_ID]/
4138
+ # locations/[LOCATION_ID]/buckets/[BUCKET_ID]"` For example:"projects/my-project/
4139
+ # locations/global/buckets/my-bucket"
4140
+ # @param [Google::Apis::LoggingV2::LogView] log_view_object
4141
+ # @param [String] view_id
4142
+ # Required. A client-assigned identifier such as "my-view". Identifiers are
4143
+ # limited to 100 characters and can include only letters, digits, underscores,
4144
+ # hyphens, and periods.
4145
+ # @param [String] fields
4146
+ # Selector specifying which fields to include in a partial response.
4147
+ # @param [String] quota_user
4148
+ # Available to use for quota purposes for server-side applications. Can be any
4149
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4150
+ # @param [Google::Apis::RequestOptions] options
4151
+ # Request-specific options
4152
+ #
4153
+ # @yield [result, err] Result & error if block supplied
4154
+ # @yieldparam result [Google::Apis::LoggingV2::LogView] parsed result object
4155
+ # @yieldparam err [StandardError] error object if request failed
4156
+ #
4157
+ # @return [Google::Apis::LoggingV2::LogView]
4158
+ #
4159
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4160
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4161
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4162
+ def create_location_bucket_view(parent, log_view_object = nil, view_id: nil, fields: nil, quota_user: nil, options: nil, &block)
4163
+ command = make_simple_command(:post, 'v2/{+parent}/views', options)
4164
+ command.request_representation = Google::Apis::LoggingV2::LogView::Representation
4165
+ command.request_object = log_view_object
4166
+ command.response_representation = Google::Apis::LoggingV2::LogView::Representation
4167
+ command.response_class = Google::Apis::LoggingV2::LogView
4168
+ command.params['parent'] = parent unless parent.nil?
4169
+ command.query['viewId'] = view_id unless view_id.nil?
4170
+ command.query['fields'] = fields unless fields.nil?
4171
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4172
+ execute_or_queue_command(command, &block)
4173
+ end
4174
+
4175
+ # Deletes a view on a log bucket. If an UNAVAILABLE error is returned, this
4176
+ # indicates that system is not in a state where it can delete the view. If this
4177
+ # occurs, please try again in a few minutes.
4178
+ # @param [String] name
4179
+ # Required. The full resource name of the view to delete: "projects/[PROJECT_ID]/
4180
+ # locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" For example:"
4181
+ # projects/my-project/locations/global/buckets/my-bucket/views/my-view"
4182
+ # @param [String] fields
4183
+ # Selector specifying which fields to include in a partial response.
4184
+ # @param [String] quota_user
4185
+ # Available to use for quota purposes for server-side applications. Can be any
4186
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4187
+ # @param [Google::Apis::RequestOptions] options
4188
+ # Request-specific options
4189
+ #
4190
+ # @yield [result, err] Result & error if block supplied
4191
+ # @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
4192
+ # @yieldparam err [StandardError] error object if request failed
4193
+ #
4194
+ # @return [Google::Apis::LoggingV2::Empty]
4195
+ #
4196
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4197
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4198
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4199
+ def delete_location_bucket_view(name, fields: nil, quota_user: nil, options: nil, &block)
4200
+ command = make_simple_command(:delete, 'v2/{+name}', options)
4201
+ command.response_representation = Google::Apis::LoggingV2::Empty::Representation
4202
+ command.response_class = Google::Apis::LoggingV2::Empty
4203
+ command.params['name'] = name unless name.nil?
4204
+ command.query['fields'] = fields unless fields.nil?
4205
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4206
+ execute_or_queue_command(command, &block)
4207
+ end
4208
+
4209
+ # Gets a view on a log bucket..
4210
+ # @param [String] name
4211
+ # Required. The resource name of the policy: "projects/[PROJECT_ID]/locations/[
4212
+ # LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" For example:"projects/my-
4213
+ # project/locations/global/buckets/my-bucket/views/my-view"
3758
4214
  # @param [String] fields
3759
4215
  # Selector specifying which fields to include in a partial response.
3760
4216
  # @param [String] quota_user
@@ -3941,13 +4397,7 @@ module Google
3941
4397
  end
3942
4398
 
3943
4399
  # Lists operations that match the specified filter in the request. If the server
3944
- # doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name binding
3945
- # allows API services to override the binding to use different resource name
3946
- # schemes, such as users/*/operations. To override the binding, API services can
3947
- # add a binding such as "/v1/`name=users/*`/operations" to their service
3948
- # configuration. For backwards compatibility, the default name includes the
3949
- # operations collection id, however overriding users must ensure the name
3950
- # binding is the parent resource, without the operations collection id.
4400
+ # doesn't support this method, it returns UNIMPLEMENTED.
3951
4401
  # @param [String] name
3952
4402
  # The name of the operation's parent resource.
3953
4403
  # @param [String] filter
@@ -4904,6 +5354,162 @@ module Google
4904
5354
  execute_or_queue_command(command, &block)
4905
5355
  end
4906
5356
 
5357
+ # Asynchronously creates linked dataset in BigQuery which makes it possible to
5358
+ # use BugQuery to read the logs stored in the bucket. A bucket may currently
5359
+ # only contain one link.
5360
+ # @param [String] parent
5361
+ # Required. The full resource name of the bucket to create a link for. "projects/
5362
+ # [PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[
5363
+ # ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/
5364
+ # [BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[
5365
+ # FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
5366
+ # @param [Google::Apis::LoggingV2::Link] link_object
5367
+ # @param [String] link_id
5368
+ # Required. The ID to use for the link. The link_id can have up to 100
5369
+ # characters. A valid link_id must only have alphanumeric characters and
5370
+ # underscores within it.
5371
+ # @param [String] fields
5372
+ # Selector specifying which fields to include in a partial response.
5373
+ # @param [String] quota_user
5374
+ # Available to use for quota purposes for server-side applications. Can be any
5375
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5376
+ # @param [Google::Apis::RequestOptions] options
5377
+ # Request-specific options
5378
+ #
5379
+ # @yield [result, err] Result & error if block supplied
5380
+ # @yieldparam result [Google::Apis::LoggingV2::Operation] parsed result object
5381
+ # @yieldparam err [StandardError] error object if request failed
5382
+ #
5383
+ # @return [Google::Apis::LoggingV2::Operation]
5384
+ #
5385
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5386
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5387
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5388
+ def create_organization_location_bucket_link(parent, link_object = nil, link_id: nil, fields: nil, quota_user: nil, options: nil, &block)
5389
+ command = make_simple_command(:post, 'v2/{+parent}/links', options)
5390
+ command.request_representation = Google::Apis::LoggingV2::Link::Representation
5391
+ command.request_object = link_object
5392
+ command.response_representation = Google::Apis::LoggingV2::Operation::Representation
5393
+ command.response_class = Google::Apis::LoggingV2::Operation
5394
+ command.params['parent'] = parent unless parent.nil?
5395
+ command.query['linkId'] = link_id unless link_id.nil?
5396
+ command.query['fields'] = fields unless fields.nil?
5397
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5398
+ execute_or_queue_command(command, &block)
5399
+ end
5400
+
5401
+ # Deletes a link. This will also delete the corresponding BigQuery linked
5402
+ # dataset.
5403
+ # @param [String] name
5404
+ # Required. The full resource name of the link to delete."projects/PROJECT_ID/
5405
+ # locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID" "organizations/
5406
+ # ORGANIZATION_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID" "
5407
+ # billingAccounts/BILLING_ACCOUNT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/
5408
+ # links/LINK_ID" "folders/FOLDER_ID/locations/LOCATION_ID/buckets/BUCKET_ID/
5409
+ # links/LINK_ID"
5410
+ # @param [String] fields
5411
+ # Selector specifying which fields to include in a partial response.
5412
+ # @param [String] quota_user
5413
+ # Available to use for quota purposes for server-side applications. Can be any
5414
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5415
+ # @param [Google::Apis::RequestOptions] options
5416
+ # Request-specific options
5417
+ #
5418
+ # @yield [result, err] Result & error if block supplied
5419
+ # @yieldparam result [Google::Apis::LoggingV2::Operation] parsed result object
5420
+ # @yieldparam err [StandardError] error object if request failed
5421
+ #
5422
+ # @return [Google::Apis::LoggingV2::Operation]
5423
+ #
5424
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5425
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5426
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5427
+ def delete_organization_location_bucket_link(name, fields: nil, quota_user: nil, options: nil, &block)
5428
+ command = make_simple_command(:delete, 'v2/{+name}', options)
5429
+ command.response_representation = Google::Apis::LoggingV2::Operation::Representation
5430
+ command.response_class = Google::Apis::LoggingV2::Operation
5431
+ command.params['name'] = name unless name.nil?
5432
+ command.query['fields'] = fields unless fields.nil?
5433
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5434
+ execute_or_queue_command(command, &block)
5435
+ end
5436
+
5437
+ # Gets a link.
5438
+ # @param [String] name
5439
+ # Required. The resource name of the link:"projects/PROJECT_ID/locations/
5440
+ # LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID" "organizations/ORGANIZATION_ID/
5441
+ # locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID" "billingAccounts/
5442
+ # BILLING_ACCOUNT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID" "
5443
+ # folders/FOLDER_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID
5444
+ # @param [String] fields
5445
+ # Selector specifying which fields to include in a partial response.
5446
+ # @param [String] quota_user
5447
+ # Available to use for quota purposes for server-side applications. Can be any
5448
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5449
+ # @param [Google::Apis::RequestOptions] options
5450
+ # Request-specific options
5451
+ #
5452
+ # @yield [result, err] Result & error if block supplied
5453
+ # @yieldparam result [Google::Apis::LoggingV2::Link] parsed result object
5454
+ # @yieldparam err [StandardError] error object if request failed
5455
+ #
5456
+ # @return [Google::Apis::LoggingV2::Link]
5457
+ #
5458
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5459
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5460
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5461
+ def get_organization_location_bucket_link(name, fields: nil, quota_user: nil, options: nil, &block)
5462
+ command = make_simple_command(:get, 'v2/{+name}', options)
5463
+ command.response_representation = Google::Apis::LoggingV2::Link::Representation
5464
+ command.response_class = Google::Apis::LoggingV2::Link
5465
+ command.params['name'] = name unless name.nil?
5466
+ command.query['fields'] = fields unless fields.nil?
5467
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5468
+ execute_or_queue_command(command, &block)
5469
+ end
5470
+
5471
+ # Lists links.
5472
+ # @param [String] parent
5473
+ # Required. The parent resource whose links are to be listed:"projects/
5474
+ # PROJECT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/" "organizations/
5475
+ # ORGANIZATION_ID/locations/LOCATION_ID/buckets/BUCKET_ID/" "billingAccounts/
5476
+ # BILLING_ACCOUNT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/" "folders/
5477
+ # FOLDER_ID/locations/LOCATION_ID/buckets/BUCKET_ID/
5478
+ # @param [Fixnum] page_size
5479
+ # Optional. The maximum number of results to return from this request.
5480
+ # @param [String] page_token
5481
+ # Optional. If present, then retrieve the next batch of results from the
5482
+ # preceding call to this method. pageToken must be the value of nextPageToken
5483
+ # from the previous response.
5484
+ # @param [String] fields
5485
+ # Selector specifying which fields to include in a partial response.
5486
+ # @param [String] quota_user
5487
+ # Available to use for quota purposes for server-side applications. Can be any
5488
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5489
+ # @param [Google::Apis::RequestOptions] options
5490
+ # Request-specific options
5491
+ #
5492
+ # @yield [result, err] Result & error if block supplied
5493
+ # @yieldparam result [Google::Apis::LoggingV2::ListLinksResponse] parsed result object
5494
+ # @yieldparam err [StandardError] error object if request failed
5495
+ #
5496
+ # @return [Google::Apis::LoggingV2::ListLinksResponse]
5497
+ #
5498
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5499
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5500
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5501
+ def list_organization_location_bucket_links(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
5502
+ command = make_simple_command(:get, 'v2/{+parent}/links', options)
5503
+ command.response_representation = Google::Apis::LoggingV2::ListLinksResponse::Representation
5504
+ command.response_class = Google::Apis::LoggingV2::ListLinksResponse
5505
+ command.params['parent'] = parent unless parent.nil?
5506
+ command.query['pageSize'] = page_size unless page_size.nil?
5507
+ command.query['pageToken'] = page_token unless page_token.nil?
5508
+ command.query['fields'] = fields unless fields.nil?
5509
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5510
+ execute_or_queue_command(command, &block)
5511
+ end
5512
+
4907
5513
  # Creates a view over log entries in a log bucket. A bucket may contain a
4908
5514
  # maximum of 30 views.
4909
5515
  # @param [String] parent
@@ -5224,13 +5830,7 @@ module Google
5224
5830
  end
5225
5831
 
5226
5832
  # Lists operations that match the specified filter in the request. If the server
5227
- # doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name binding
5228
- # allows API services to override the binding to use different resource name
5229
- # schemes, such as users/*/operations. To override the binding, API services can
5230
- # add a binding such as "/v1/`name=users/*`/operations" to their service
5231
- # configuration. For backwards compatibility, the default name includes the
5232
- # operations collection id, however overriding users must ensure the name
5233
- # binding is the parent resource, without the operations collection id.
5833
+ # doesn't support this method, it returns UNIMPLEMENTED.
5234
5834
  # @param [String] name
5235
5835
  # The name of the operation's parent resource.
5236
5836
  # @param [String] filter
@@ -6327,6 +6927,162 @@ module Google
6327
6927
  execute_or_queue_command(command, &block)
6328
6928
  end
6329
6929
 
6930
+ # Asynchronously creates linked dataset in BigQuery which makes it possible to
6931
+ # use BugQuery to read the logs stored in the bucket. A bucket may currently
6932
+ # only contain one link.
6933
+ # @param [String] parent
6934
+ # Required. The full resource name of the bucket to create a link for. "projects/
6935
+ # [PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[
6936
+ # ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/
6937
+ # [BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[
6938
+ # FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
6939
+ # @param [Google::Apis::LoggingV2::Link] link_object
6940
+ # @param [String] link_id
6941
+ # Required. The ID to use for the link. The link_id can have up to 100
6942
+ # characters. A valid link_id must only have alphanumeric characters and
6943
+ # underscores within it.
6944
+ # @param [String] fields
6945
+ # Selector specifying which fields to include in a partial response.
6946
+ # @param [String] quota_user
6947
+ # Available to use for quota purposes for server-side applications. Can be any
6948
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
6949
+ # @param [Google::Apis::RequestOptions] options
6950
+ # Request-specific options
6951
+ #
6952
+ # @yield [result, err] Result & error if block supplied
6953
+ # @yieldparam result [Google::Apis::LoggingV2::Operation] parsed result object
6954
+ # @yieldparam err [StandardError] error object if request failed
6955
+ #
6956
+ # @return [Google::Apis::LoggingV2::Operation]
6957
+ #
6958
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
6959
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
6960
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
6961
+ def create_project_location_bucket_link(parent, link_object = nil, link_id: nil, fields: nil, quota_user: nil, options: nil, &block)
6962
+ command = make_simple_command(:post, 'v2/{+parent}/links', options)
6963
+ command.request_representation = Google::Apis::LoggingV2::Link::Representation
6964
+ command.request_object = link_object
6965
+ command.response_representation = Google::Apis::LoggingV2::Operation::Representation
6966
+ command.response_class = Google::Apis::LoggingV2::Operation
6967
+ command.params['parent'] = parent unless parent.nil?
6968
+ command.query['linkId'] = link_id unless link_id.nil?
6969
+ command.query['fields'] = fields unless fields.nil?
6970
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
6971
+ execute_or_queue_command(command, &block)
6972
+ end
6973
+
6974
+ # Deletes a link. This will also delete the corresponding BigQuery linked
6975
+ # dataset.
6976
+ # @param [String] name
6977
+ # Required. The full resource name of the link to delete."projects/PROJECT_ID/
6978
+ # locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID" "organizations/
6979
+ # ORGANIZATION_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID" "
6980
+ # billingAccounts/BILLING_ACCOUNT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/
6981
+ # links/LINK_ID" "folders/FOLDER_ID/locations/LOCATION_ID/buckets/BUCKET_ID/
6982
+ # links/LINK_ID"
6983
+ # @param [String] fields
6984
+ # Selector specifying which fields to include in a partial response.
6985
+ # @param [String] quota_user
6986
+ # Available to use for quota purposes for server-side applications. Can be any
6987
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
6988
+ # @param [Google::Apis::RequestOptions] options
6989
+ # Request-specific options
6990
+ #
6991
+ # @yield [result, err] Result & error if block supplied
6992
+ # @yieldparam result [Google::Apis::LoggingV2::Operation] parsed result object
6993
+ # @yieldparam err [StandardError] error object if request failed
6994
+ #
6995
+ # @return [Google::Apis::LoggingV2::Operation]
6996
+ #
6997
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
6998
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
6999
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
7000
+ def delete_project_location_bucket_link(name, fields: nil, quota_user: nil, options: nil, &block)
7001
+ command = make_simple_command(:delete, 'v2/{+name}', options)
7002
+ command.response_representation = Google::Apis::LoggingV2::Operation::Representation
7003
+ command.response_class = Google::Apis::LoggingV2::Operation
7004
+ command.params['name'] = name unless name.nil?
7005
+ command.query['fields'] = fields unless fields.nil?
7006
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
7007
+ execute_or_queue_command(command, &block)
7008
+ end
7009
+
7010
+ # Gets a link.
7011
+ # @param [String] name
7012
+ # Required. The resource name of the link:"projects/PROJECT_ID/locations/
7013
+ # LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID" "organizations/ORGANIZATION_ID/
7014
+ # locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID" "billingAccounts/
7015
+ # BILLING_ACCOUNT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID" "
7016
+ # folders/FOLDER_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/LINK_ID
7017
+ # @param [String] fields
7018
+ # Selector specifying which fields to include in a partial response.
7019
+ # @param [String] quota_user
7020
+ # Available to use for quota purposes for server-side applications. Can be any
7021
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
7022
+ # @param [Google::Apis::RequestOptions] options
7023
+ # Request-specific options
7024
+ #
7025
+ # @yield [result, err] Result & error if block supplied
7026
+ # @yieldparam result [Google::Apis::LoggingV2::Link] parsed result object
7027
+ # @yieldparam err [StandardError] error object if request failed
7028
+ #
7029
+ # @return [Google::Apis::LoggingV2::Link]
7030
+ #
7031
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
7032
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
7033
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
7034
+ def get_project_location_bucket_link(name, fields: nil, quota_user: nil, options: nil, &block)
7035
+ command = make_simple_command(:get, 'v2/{+name}', options)
7036
+ command.response_representation = Google::Apis::LoggingV2::Link::Representation
7037
+ command.response_class = Google::Apis::LoggingV2::Link
7038
+ command.params['name'] = name unless name.nil?
7039
+ command.query['fields'] = fields unless fields.nil?
7040
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
7041
+ execute_or_queue_command(command, &block)
7042
+ end
7043
+
7044
+ # Lists links.
7045
+ # @param [String] parent
7046
+ # Required. The parent resource whose links are to be listed:"projects/
7047
+ # PROJECT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/links/" "organizations/
7048
+ # ORGANIZATION_ID/locations/LOCATION_ID/buckets/BUCKET_ID/" "billingAccounts/
7049
+ # BILLING_ACCOUNT_ID/locations/LOCATION_ID/buckets/BUCKET_ID/" "folders/
7050
+ # FOLDER_ID/locations/LOCATION_ID/buckets/BUCKET_ID/
7051
+ # @param [Fixnum] page_size
7052
+ # Optional. The maximum number of results to return from this request.
7053
+ # @param [String] page_token
7054
+ # Optional. If present, then retrieve the next batch of results from the
7055
+ # preceding call to this method. pageToken must be the value of nextPageToken
7056
+ # from the previous response.
7057
+ # @param [String] fields
7058
+ # Selector specifying which fields to include in a partial response.
7059
+ # @param [String] quota_user
7060
+ # Available to use for quota purposes for server-side applications. Can be any
7061
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
7062
+ # @param [Google::Apis::RequestOptions] options
7063
+ # Request-specific options
7064
+ #
7065
+ # @yield [result, err] Result & error if block supplied
7066
+ # @yieldparam result [Google::Apis::LoggingV2::ListLinksResponse] parsed result object
7067
+ # @yieldparam err [StandardError] error object if request failed
7068
+ #
7069
+ # @return [Google::Apis::LoggingV2::ListLinksResponse]
7070
+ #
7071
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
7072
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
7073
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
7074
+ def list_project_location_bucket_links(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
7075
+ command = make_simple_command(:get, 'v2/{+parent}/links', options)
7076
+ command.response_representation = Google::Apis::LoggingV2::ListLinksResponse::Representation
7077
+ command.response_class = Google::Apis::LoggingV2::ListLinksResponse
7078
+ command.params['parent'] = parent unless parent.nil?
7079
+ command.query['pageSize'] = page_size unless page_size.nil?
7080
+ command.query['pageToken'] = page_token unless page_token.nil?
7081
+ command.query['fields'] = fields unless fields.nil?
7082
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
7083
+ execute_or_queue_command(command, &block)
7084
+ end
7085
+
6330
7086
  # Creates a view over log entries in a log bucket. A bucket may contain a
6331
7087
  # maximum of 30 views.
6332
7088
  # @param [String] parent
@@ -6647,13 +7403,7 @@ module Google
6647
7403
  end
6648
7404
 
6649
7405
  # Lists operations that match the specified filter in the request. If the server
6650
- # doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name binding
6651
- # allows API services to override the binding to use different resource name
6652
- # schemes, such as users/*/operations. To override the binding, API services can
6653
- # add a binding such as "/v1/`name=users/*`/operations" to their service
6654
- # configuration. For backwards compatibility, the default name includes the
6655
- # operations collection id, however overriding users must ensure the name
6656
- # binding is the parent resource, without the operations collection id.
7406
+ # doesn't support this method, it returns UNIMPLEMENTED.
6657
7407
  # @param [String] name
6658
7408
  # The name of the operation's parent resource.
6659
7409
  # @param [String] filter