google-apis-apigee_v1 0.48.0 → 0.49.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 +5 -0
- data/lib/google/apis/apigee_v1/classes.rb +1022 -88
- data/lib/google/apis/apigee_v1/gem_version.rb +3 -3
- data/lib/google/apis/apigee_v1/representations.rb +389 -0
- data/lib/google/apis/apigee_v1/service.rb +599 -0
- metadata +5 -5
@@ -6874,6 +6874,197 @@ module Google
|
|
6874
6874
|
execute_or_queue_command(command, &block)
|
6875
6875
|
end
|
6876
6876
|
|
6877
|
+
# Submit a report request to be processed in the background. If the submission
|
6878
|
+
# succeeds, the API returns a 200 status and an ID that refer to the report
|
6879
|
+
# request. In addition to the HTTP status 200, the `state` of "enqueued" means
|
6880
|
+
# that the request succeeded.
|
6881
|
+
# @param [String] parent
|
6882
|
+
# Required. The parent resource name. Must be of the form `organizations/`org`/
|
6883
|
+
# environments/`env``.
|
6884
|
+
# @param [Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityReportQuery] google_cloud_apigee_v1_security_report_query_object
|
6885
|
+
# @param [String] fields
|
6886
|
+
# Selector specifying which fields to include in a partial response.
|
6887
|
+
# @param [String] quota_user
|
6888
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
6889
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
6890
|
+
# @param [Google::Apis::RequestOptions] options
|
6891
|
+
# Request-specific options
|
6892
|
+
#
|
6893
|
+
# @yield [result, err] Result & error if block supplied
|
6894
|
+
# @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityReport] parsed result object
|
6895
|
+
# @yieldparam err [StandardError] error object if request failed
|
6896
|
+
#
|
6897
|
+
# @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityReport]
|
6898
|
+
#
|
6899
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6900
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
6901
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6902
|
+
def create_organization_environment_security_report(parent, google_cloud_apigee_v1_security_report_query_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
6903
|
+
command = make_simple_command(:post, 'v1/{+parent}/securityReports', options)
|
6904
|
+
command.request_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityReportQuery::Representation
|
6905
|
+
command.request_object = google_cloud_apigee_v1_security_report_query_object
|
6906
|
+
command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityReport::Representation
|
6907
|
+
command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityReport
|
6908
|
+
command.params['parent'] = parent unless parent.nil?
|
6909
|
+
command.query['fields'] = fields unless fields.nil?
|
6910
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
6911
|
+
execute_or_queue_command(command, &block)
|
6912
|
+
end
|
6913
|
+
|
6914
|
+
# Get security report status If the query is still in progress, the `state` is
|
6915
|
+
# set to "running" After the query has completed successfully, `state` is set to
|
6916
|
+
# "completed"
|
6917
|
+
# @param [String] name
|
6918
|
+
# Required. Name of the security report to get. Must be of the form `
|
6919
|
+
# organizations/`org`/environments/`env`/securityReports/`reportId``.
|
6920
|
+
# @param [String] fields
|
6921
|
+
# Selector specifying which fields to include in a partial response.
|
6922
|
+
# @param [String] quota_user
|
6923
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
6924
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
6925
|
+
# @param [Google::Apis::RequestOptions] options
|
6926
|
+
# Request-specific options
|
6927
|
+
#
|
6928
|
+
# @yield [result, err] Result & error if block supplied
|
6929
|
+
# @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityReport] parsed result object
|
6930
|
+
# @yieldparam err [StandardError] error object if request failed
|
6931
|
+
#
|
6932
|
+
# @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityReport]
|
6933
|
+
#
|
6934
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6935
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
6936
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6937
|
+
def get_organization_environment_security_report(name, fields: nil, quota_user: nil, options: nil, &block)
|
6938
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
6939
|
+
command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityReport::Representation
|
6940
|
+
command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityReport
|
6941
|
+
command.params['name'] = name unless name.nil?
|
6942
|
+
command.query['fields'] = fields unless fields.nil?
|
6943
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
6944
|
+
execute_or_queue_command(command, &block)
|
6945
|
+
end
|
6946
|
+
|
6947
|
+
# After the query is completed, use this API to retrieve the results as file. If
|
6948
|
+
# the request succeeds, and there is a non-zero result set, the result is
|
6949
|
+
# downloaded to the client as a zipped JSON file. The name of the downloaded
|
6950
|
+
# file will be: OfflineQueryResult-.zip Example: `OfflineQueryResult-9cfc0d85-
|
6951
|
+
# 0f30-46d6-ae6f-318d0cb961bd.zip`
|
6952
|
+
# @param [String] name
|
6953
|
+
# Required. Name of the security report result to get. Must be of the form `
|
6954
|
+
# organizations/`org`/environments/`env`/securityReports/`reportId`/result`.
|
6955
|
+
# @param [String] fields
|
6956
|
+
# Selector specifying which fields to include in a partial response.
|
6957
|
+
# @param [String] quota_user
|
6958
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
6959
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
6960
|
+
# @param [Google::Apis::RequestOptions] options
|
6961
|
+
# Request-specific options
|
6962
|
+
#
|
6963
|
+
# @yield [result, err] Result & error if block supplied
|
6964
|
+
# @yieldparam result [Google::Apis::ApigeeV1::GoogleApiHttpBody] parsed result object
|
6965
|
+
# @yieldparam err [StandardError] error object if request failed
|
6966
|
+
#
|
6967
|
+
# @return [Google::Apis::ApigeeV1::GoogleApiHttpBody]
|
6968
|
+
#
|
6969
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6970
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
6971
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6972
|
+
def get_organization_environment_security_report_result(name, fields: nil, quota_user: nil, options: nil, &block)
|
6973
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
6974
|
+
command.response_representation = Google::Apis::ApigeeV1::GoogleApiHttpBody::Representation
|
6975
|
+
command.response_class = Google::Apis::ApigeeV1::GoogleApiHttpBody
|
6976
|
+
command.params['name'] = name unless name.nil?
|
6977
|
+
command.query['fields'] = fields unless fields.nil?
|
6978
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
6979
|
+
execute_or_queue_command(command, &block)
|
6980
|
+
end
|
6981
|
+
|
6982
|
+
# After the query is completed, use this API to view the query result when
|
6983
|
+
# result size is small.
|
6984
|
+
# @param [String] name
|
6985
|
+
# Required. Name of the security report result view to get. Must be of the form `
|
6986
|
+
# organizations/`org`/environments/`env`/securityReports/`reportId`/resultView`.
|
6987
|
+
# @param [String] fields
|
6988
|
+
# Selector specifying which fields to include in a partial response.
|
6989
|
+
# @param [String] quota_user
|
6990
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
6991
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
6992
|
+
# @param [Google::Apis::RequestOptions] options
|
6993
|
+
# Request-specific options
|
6994
|
+
#
|
6995
|
+
# @yield [result, err] Result & error if block supplied
|
6996
|
+
# @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityReportResultView] parsed result object
|
6997
|
+
# @yieldparam err [StandardError] error object if request failed
|
6998
|
+
#
|
6999
|
+
# @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityReportResultView]
|
7000
|
+
#
|
7001
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
7002
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
7003
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
7004
|
+
def get_organization_environment_security_report_result_view(name, fields: nil, quota_user: nil, options: nil, &block)
|
7005
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
7006
|
+
command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityReportResultView::Representation
|
7007
|
+
command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityReportResultView
|
7008
|
+
command.params['name'] = name unless name.nil?
|
7009
|
+
command.query['fields'] = fields unless fields.nil?
|
7010
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
7011
|
+
execute_or_queue_command(command, &block)
|
7012
|
+
end
|
7013
|
+
|
7014
|
+
# Return a list of Security Reports
|
7015
|
+
# @param [String] parent
|
7016
|
+
# Required. The parent resource name. Must be of the form `organizations/`org`/
|
7017
|
+
# environments/`env``.
|
7018
|
+
# @param [String] dataset
|
7019
|
+
# Filter response list by dataset. Example: `api`, `mint`
|
7020
|
+
# @param [String] from
|
7021
|
+
# Filter response list by returning security reports that created after this
|
7022
|
+
# date time. Time must be in ISO date-time format like '2011-12-03T10:15:30Z'.
|
7023
|
+
# @param [Fixnum] page_size
|
7024
|
+
# The maximum number of security report to return in the list response.
|
7025
|
+
# @param [String] page_token
|
7026
|
+
# Token returned from the previous list response to fetch the next page.
|
7027
|
+
# @param [String] status
|
7028
|
+
# Filter response list by security reports status.
|
7029
|
+
# @param [String] submitted_by
|
7030
|
+
# Filter response list by user who submitted queries.
|
7031
|
+
# @param [String] to
|
7032
|
+
# Filter response list by returning security reports that created before this
|
7033
|
+
# date time. Time must be in ISO date-time format like '2011-12-03T10:16:30Z'.
|
7034
|
+
# @param [String] fields
|
7035
|
+
# Selector specifying which fields to include in a partial response.
|
7036
|
+
# @param [String] quota_user
|
7037
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
7038
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
7039
|
+
# @param [Google::Apis::RequestOptions] options
|
7040
|
+
# Request-specific options
|
7041
|
+
#
|
7042
|
+
# @yield [result, err] Result & error if block supplied
|
7043
|
+
# @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListSecurityReportsResponse] parsed result object
|
7044
|
+
# @yieldparam err [StandardError] error object if request failed
|
7045
|
+
#
|
7046
|
+
# @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListSecurityReportsResponse]
|
7047
|
+
#
|
7048
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
7049
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
7050
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
7051
|
+
def list_organization_environment_security_reports(parent, dataset: nil, from: nil, page_size: nil, page_token: nil, status: nil, submitted_by: nil, to: nil, fields: nil, quota_user: nil, options: nil, &block)
|
7052
|
+
command = make_simple_command(:get, 'v1/{+parent}/securityReports', options)
|
7053
|
+
command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListSecurityReportsResponse::Representation
|
7054
|
+
command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListSecurityReportsResponse
|
7055
|
+
command.params['parent'] = parent unless parent.nil?
|
7056
|
+
command.query['dataset'] = dataset unless dataset.nil?
|
7057
|
+
command.query['from'] = from unless from.nil?
|
7058
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
7059
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
7060
|
+
command.query['status'] = status unless status.nil?
|
7061
|
+
command.query['submittedBy'] = submitted_by unless submitted_by.nil?
|
7062
|
+
command.query['to'] = to unless to.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
|
+
|
6877
7068
|
# Lists all deployments of a shared flow in an environment.
|
6878
7069
|
# @param [String] parent
|
6879
7070
|
# Required. Name representing a shared flow in an environment in the following
|
@@ -7632,6 +7823,198 @@ module Google
|
|
7632
7823
|
execute_or_queue_command(command, &block)
|
7633
7824
|
end
|
7634
7825
|
|
7826
|
+
# Submit a query at host level to be processed in the background. If the
|
7827
|
+
# submission of the query succeeds, the API returns a 201 status and an ID that
|
7828
|
+
# refer to the query. In addition to the HTTP status 201, the `state` of "
|
7829
|
+
# enqueued" means that the request succeeded.
|
7830
|
+
# @param [String] parent
|
7831
|
+
# Required. The parent resource name. Must be of the form `organizations/`org``.
|
7832
|
+
# @param [Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityReportQuery] google_cloud_apigee_v1_security_report_query_object
|
7833
|
+
# @param [String] fields
|
7834
|
+
# Selector specifying which fields to include in a partial response.
|
7835
|
+
# @param [String] quota_user
|
7836
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
7837
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
7838
|
+
# @param [Google::Apis::RequestOptions] options
|
7839
|
+
# Request-specific options
|
7840
|
+
#
|
7841
|
+
# @yield [result, err] Result & error if block supplied
|
7842
|
+
# @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityReport] parsed result object
|
7843
|
+
# @yieldparam err [StandardError] error object if request failed
|
7844
|
+
#
|
7845
|
+
# @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityReport]
|
7846
|
+
#
|
7847
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
7848
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
7849
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
7850
|
+
def create_organization_host_security_report(parent, google_cloud_apigee_v1_security_report_query_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
7851
|
+
command = make_simple_command(:post, 'v1/{+parent}/hostSecurityReports', options)
|
7852
|
+
command.request_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityReportQuery::Representation
|
7853
|
+
command.request_object = google_cloud_apigee_v1_security_report_query_object
|
7854
|
+
command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityReport::Representation
|
7855
|
+
command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityReport
|
7856
|
+
command.params['parent'] = parent unless parent.nil?
|
7857
|
+
command.query['fields'] = fields unless fields.nil?
|
7858
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
7859
|
+
execute_or_queue_command(command, &block)
|
7860
|
+
end
|
7861
|
+
|
7862
|
+
# Get status of a query submitted at host level. If the query is still in
|
7863
|
+
# progress, the `state` is set to "running" After the query has completed
|
7864
|
+
# successfully, `state` is set to "completed"
|
7865
|
+
# @param [String] name
|
7866
|
+
# Required. Name of the security report to get. Must be of the form `
|
7867
|
+
# organizations/`org`/securityReports/`reportId``.
|
7868
|
+
# @param [String] fields
|
7869
|
+
# Selector specifying which fields to include in a partial response.
|
7870
|
+
# @param [String] quota_user
|
7871
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
7872
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
7873
|
+
# @param [Google::Apis::RequestOptions] options
|
7874
|
+
# Request-specific options
|
7875
|
+
#
|
7876
|
+
# @yield [result, err] Result & error if block supplied
|
7877
|
+
# @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityReport] parsed result object
|
7878
|
+
# @yieldparam err [StandardError] error object if request failed
|
7879
|
+
#
|
7880
|
+
# @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityReport]
|
7881
|
+
#
|
7882
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
7883
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
7884
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
7885
|
+
def get_organization_host_security_report(name, fields: nil, quota_user: nil, options: nil, &block)
|
7886
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
7887
|
+
command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityReport::Representation
|
7888
|
+
command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityReport
|
7889
|
+
command.params['name'] = name unless name.nil?
|
7890
|
+
command.query['fields'] = fields unless fields.nil?
|
7891
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
7892
|
+
execute_or_queue_command(command, &block)
|
7893
|
+
end
|
7894
|
+
|
7895
|
+
# After the query is completed, use this API to retrieve the results. If the
|
7896
|
+
# request succeeds, and there is a non-zero result set, the result is downloaded
|
7897
|
+
# to the client as a zipped JSON file. The name of the downloaded file will be:
|
7898
|
+
# OfflineQueryResult-.zip Example: `OfflineQueryResult-9cfc0d85-0f30-46d6-ae6f-
|
7899
|
+
# 318d0cb961bd.zip`
|
7900
|
+
# @param [String] name
|
7901
|
+
# Required. Name of the security report result to get. Must be of the form `
|
7902
|
+
# organizations/`org`/securityReports/`reportId`/result`.
|
7903
|
+
# @param [String] fields
|
7904
|
+
# Selector specifying which fields to include in a partial response.
|
7905
|
+
# @param [String] quota_user
|
7906
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
7907
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
7908
|
+
# @param [Google::Apis::RequestOptions] options
|
7909
|
+
# Request-specific options
|
7910
|
+
#
|
7911
|
+
# @yield [result, err] Result & error if block supplied
|
7912
|
+
# @yieldparam result [Google::Apis::ApigeeV1::GoogleApiHttpBody] parsed result object
|
7913
|
+
# @yieldparam err [StandardError] error object if request failed
|
7914
|
+
#
|
7915
|
+
# @return [Google::Apis::ApigeeV1::GoogleApiHttpBody]
|
7916
|
+
#
|
7917
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
7918
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
7919
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
7920
|
+
def get_organization_host_security_report_result(name, fields: nil, quota_user: nil, options: nil, &block)
|
7921
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
7922
|
+
command.response_representation = Google::Apis::ApigeeV1::GoogleApiHttpBody::Representation
|
7923
|
+
command.response_class = Google::Apis::ApigeeV1::GoogleApiHttpBody
|
7924
|
+
command.params['name'] = name unless name.nil?
|
7925
|
+
command.query['fields'] = fields unless fields.nil?
|
7926
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
7927
|
+
execute_or_queue_command(command, &block)
|
7928
|
+
end
|
7929
|
+
|
7930
|
+
# After the query is completed, use this API to view the query result when
|
7931
|
+
# result size is small.
|
7932
|
+
# @param [String] name
|
7933
|
+
# Required. Name of the security report result view to get. Must be of the form `
|
7934
|
+
# organizations/`org`/securityReports/`reportId`/resultView`.
|
7935
|
+
# @param [String] fields
|
7936
|
+
# Selector specifying which fields to include in a partial response.
|
7937
|
+
# @param [String] quota_user
|
7938
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
7939
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
7940
|
+
# @param [Google::Apis::RequestOptions] options
|
7941
|
+
# Request-specific options
|
7942
|
+
#
|
7943
|
+
# @yield [result, err] Result & error if block supplied
|
7944
|
+
# @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityReportResultView] parsed result object
|
7945
|
+
# @yieldparam err [StandardError] error object if request failed
|
7946
|
+
#
|
7947
|
+
# @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityReportResultView]
|
7948
|
+
#
|
7949
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
7950
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
7951
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
7952
|
+
def get_organization_host_security_report_result_view(name, fields: nil, quota_user: nil, options: nil, &block)
|
7953
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
7954
|
+
command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityReportResultView::Representation
|
7955
|
+
command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityReportResultView
|
7956
|
+
command.params['name'] = name unless name.nil?
|
7957
|
+
command.query['fields'] = fields unless fields.nil?
|
7958
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
7959
|
+
execute_or_queue_command(command, &block)
|
7960
|
+
end
|
7961
|
+
|
7962
|
+
# Return a list of Security Reports at host level.
|
7963
|
+
# @param [String] parent
|
7964
|
+
# Required. The parent resource name. Must be of the form `organizations/`org``.
|
7965
|
+
# @param [String] dataset
|
7966
|
+
# Filter response list by dataset. Example: `api`, `mint`
|
7967
|
+
# @param [String] envgroup_hostname
|
7968
|
+
# Required. Filter response list by hostname.
|
7969
|
+
# @param [String] from
|
7970
|
+
# Filter response list by returning security reports that created after this
|
7971
|
+
# date time. Time must be in ISO date-time format like '2011-12-03T10:15:30Z'.
|
7972
|
+
# @param [Fixnum] page_size
|
7973
|
+
# The maximum number of security report to return in the list response.
|
7974
|
+
# @param [String] page_token
|
7975
|
+
# Token returned from the previous list response to fetch the next page.
|
7976
|
+
# @param [String] status
|
7977
|
+
# Filter response list by security report status.
|
7978
|
+
# @param [String] submitted_by
|
7979
|
+
# Filter response list by user who submitted queries.
|
7980
|
+
# @param [String] to
|
7981
|
+
# Filter response list by returning security reports that created before this
|
7982
|
+
# date time. Time must be in ISO date-time format like '2011-12-03T10:16:30Z'.
|
7983
|
+
# @param [String] fields
|
7984
|
+
# Selector specifying which fields to include in a partial response.
|
7985
|
+
# @param [String] quota_user
|
7986
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
7987
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
7988
|
+
# @param [Google::Apis::RequestOptions] options
|
7989
|
+
# Request-specific options
|
7990
|
+
#
|
7991
|
+
# @yield [result, err] Result & error if block supplied
|
7992
|
+
# @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListSecurityReportsResponse] parsed result object
|
7993
|
+
# @yieldparam err [StandardError] error object if request failed
|
7994
|
+
#
|
7995
|
+
# @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListSecurityReportsResponse]
|
7996
|
+
#
|
7997
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
7998
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
7999
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
8000
|
+
def list_organization_host_security_reports(parent, dataset: nil, envgroup_hostname: nil, from: nil, page_size: nil, page_token: nil, status: nil, submitted_by: nil, to: nil, fields: nil, quota_user: nil, options: nil, &block)
|
8001
|
+
command = make_simple_command(:get, 'v1/{+parent}/hostSecurityReports', options)
|
8002
|
+
command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListSecurityReportsResponse::Representation
|
8003
|
+
command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListSecurityReportsResponse
|
8004
|
+
command.params['parent'] = parent unless parent.nil?
|
8005
|
+
command.query['dataset'] = dataset unless dataset.nil?
|
8006
|
+
command.query['envgroupHostname'] = envgroup_hostname unless envgroup_hostname.nil?
|
8007
|
+
command.query['from'] = from unless from.nil?
|
8008
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
8009
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
8010
|
+
command.query['status'] = status unless status.nil?
|
8011
|
+
command.query['submittedBy'] = submitted_by unless submitted_by.nil?
|
8012
|
+
command.query['to'] = to unless to.nil?
|
8013
|
+
command.query['fields'] = fields unless fields.nil?
|
8014
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
8015
|
+
execute_or_queue_command(command, &block)
|
8016
|
+
end
|
8017
|
+
|
7635
8018
|
# Retrieve metrics grouped by dimensions in host level. The types of metrics you
|
7636
8019
|
# can retrieve include traffic, message counts, API call latency, response size,
|
7637
8020
|
# and cache hits and counts. Dimensions let you view metrics in meaningful
|
@@ -8863,6 +9246,222 @@ module Google
|
|
8863
9246
|
execute_or_queue_command(command, &block)
|
8864
9247
|
end
|
8865
9248
|
|
9249
|
+
# GetSecurityProfile gets the specified security profile. Returns NOT_FOUND if
|
9250
|
+
# security profile is not present for the specified organization.
|
9251
|
+
# @param [String] name
|
9252
|
+
# Required. Security profile in the following format: `organizations/`org`/
|
9253
|
+
# securityProfiles/`profile`'. Profile may optionally contain revision ID. If
|
9254
|
+
# revision ID is not provided, the response will contain latest revision by
|
9255
|
+
# default. Example: organizations/testOrg/securityProfiles/testProfile@5
|
9256
|
+
# @param [String] fields
|
9257
|
+
# Selector specifying which fields to include in a partial response.
|
9258
|
+
# @param [String] quota_user
|
9259
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
9260
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
9261
|
+
# @param [Google::Apis::RequestOptions] options
|
9262
|
+
# Request-specific options
|
9263
|
+
#
|
9264
|
+
# @yield [result, err] Result & error if block supplied
|
9265
|
+
# @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityProfile] parsed result object
|
9266
|
+
# @yieldparam err [StandardError] error object if request failed
|
9267
|
+
#
|
9268
|
+
# @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityProfile]
|
9269
|
+
#
|
9270
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
9271
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
9272
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
9273
|
+
def get_organization_security_profile(name, fields: nil, quota_user: nil, options: nil, &block)
|
9274
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
9275
|
+
command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityProfile::Representation
|
9276
|
+
command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityProfile
|
9277
|
+
command.params['name'] = name unless name.nil?
|
9278
|
+
command.query['fields'] = fields unless fields.nil?
|
9279
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
9280
|
+
execute_or_queue_command(command, &block)
|
9281
|
+
end
|
9282
|
+
|
9283
|
+
# ListSecurityProfiles lists all the security profiles associated with the org
|
9284
|
+
# including attached and unattached profiles.
|
9285
|
+
# @param [String] parent
|
9286
|
+
# Required. For a specific organization, list of all the security profiles.
|
9287
|
+
# Format: `organizations/`org``
|
9288
|
+
# @param [Fixnum] page_size
|
9289
|
+
# The maximum number of profiles to return. The service may return fewer than
|
9290
|
+
# this value. If unspecified, at most 50 profiles will be returned.
|
9291
|
+
# @param [String] page_token
|
9292
|
+
# A page token, received from a previous `ListSecurityProfiles` call. Provide
|
9293
|
+
# this to retrieve the subsequent page.
|
9294
|
+
# @param [String] fields
|
9295
|
+
# Selector specifying which fields to include in a partial response.
|
9296
|
+
# @param [String] quota_user
|
9297
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
9298
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
9299
|
+
# @param [Google::Apis::RequestOptions] options
|
9300
|
+
# Request-specific options
|
9301
|
+
#
|
9302
|
+
# @yield [result, err] Result & error if block supplied
|
9303
|
+
# @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListSecurityProfilesResponse] parsed result object
|
9304
|
+
# @yieldparam err [StandardError] error object if request failed
|
9305
|
+
#
|
9306
|
+
# @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListSecurityProfilesResponse]
|
9307
|
+
#
|
9308
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
9309
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
9310
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
9311
|
+
def list_organization_security_profiles(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
9312
|
+
command = make_simple_command(:get, 'v1/{+parent}/securityProfiles', options)
|
9313
|
+
command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListSecurityProfilesResponse::Representation
|
9314
|
+
command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListSecurityProfilesResponse
|
9315
|
+
command.params['parent'] = parent unless parent.nil?
|
9316
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
9317
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
9318
|
+
command.query['fields'] = fields unless fields.nil?
|
9319
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
9320
|
+
execute_or_queue_command(command, &block)
|
9321
|
+
end
|
9322
|
+
|
9323
|
+
# ListSecurityProfileRevisions lists all the revisions of the security profile.
|
9324
|
+
# @param [String] name
|
9325
|
+
# Required. For a specific profile, list all the revisions. Format: `
|
9326
|
+
# organizations/`org`/securityProfiles/`profile``
|
9327
|
+
# @param [Fixnum] page_size
|
9328
|
+
# The maximum number of profile revisions to return. The service may return
|
9329
|
+
# fewer than this value. If unspecified, at most 50 revisions will be returned.
|
9330
|
+
# @param [String] page_token
|
9331
|
+
# A page token, received from a previous `ListSecurityProfileRevisions` call.
|
9332
|
+
# Provide this to retrieve the subsequent page.
|
9333
|
+
# @param [String] fields
|
9334
|
+
# Selector specifying which fields to include in a partial response.
|
9335
|
+
# @param [String] quota_user
|
9336
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
9337
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
9338
|
+
# @param [Google::Apis::RequestOptions] options
|
9339
|
+
# Request-specific options
|
9340
|
+
#
|
9341
|
+
# @yield [result, err] Result & error if block supplied
|
9342
|
+
# @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListSecurityProfileRevisionsResponse] parsed result object
|
9343
|
+
# @yieldparam err [StandardError] error object if request failed
|
9344
|
+
#
|
9345
|
+
# @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListSecurityProfileRevisionsResponse]
|
9346
|
+
#
|
9347
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
9348
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
9349
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
9350
|
+
def list_organization_security_profile_revisions(name, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
9351
|
+
command = make_simple_command(:get, 'v1/{+name}:listRevisions', options)
|
9352
|
+
command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListSecurityProfileRevisionsResponse::Representation
|
9353
|
+
command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListSecurityProfileRevisionsResponse
|
9354
|
+
command.params['name'] = name unless name.nil?
|
9355
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
9356
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
9357
|
+
command.query['fields'] = fields unless fields.nil?
|
9358
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
9359
|
+
execute_or_queue_command(command, &block)
|
9360
|
+
end
|
9361
|
+
|
9362
|
+
# ComputeEnvironmentScores calculates scores for requested time range for the
|
9363
|
+
# specified security profile and environment.
|
9364
|
+
# @param [String] profile_environment
|
9365
|
+
# Required. Name of organization and environment and profile id for which score
|
9366
|
+
# needs to be computed. Format: organizations/`org`/securityProfiles/`profile`/
|
9367
|
+
# environments/`env`
|
9368
|
+
# @param [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ComputeEnvironmentScoresRequest] google_cloud_apigee_v1_compute_environment_scores_request_object
|
9369
|
+
# @param [String] fields
|
9370
|
+
# Selector specifying which fields to include in a partial response.
|
9371
|
+
# @param [String] quota_user
|
9372
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
9373
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
9374
|
+
# @param [Google::Apis::RequestOptions] options
|
9375
|
+
# Request-specific options
|
9376
|
+
#
|
9377
|
+
# @yield [result, err] Result & error if block supplied
|
9378
|
+
# @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ComputeEnvironmentScoresResponse] parsed result object
|
9379
|
+
# @yieldparam err [StandardError] error object if request failed
|
9380
|
+
#
|
9381
|
+
# @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ComputeEnvironmentScoresResponse]
|
9382
|
+
#
|
9383
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
9384
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
9385
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
9386
|
+
def compute_organization_security_profile_environment_environment_scores(profile_environment, google_cloud_apigee_v1_compute_environment_scores_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
9387
|
+
command = make_simple_command(:post, 'v1/{+profileEnvironment}:computeEnvironmentScores', options)
|
9388
|
+
command.request_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1ComputeEnvironmentScoresRequest::Representation
|
9389
|
+
command.request_object = google_cloud_apigee_v1_compute_environment_scores_request_object
|
9390
|
+
command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1ComputeEnvironmentScoresResponse::Representation
|
9391
|
+
command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1ComputeEnvironmentScoresResponse
|
9392
|
+
command.params['profileEnvironment'] = profile_environment unless profile_environment.nil?
|
9393
|
+
command.query['fields'] = fields unless fields.nil?
|
9394
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
9395
|
+
execute_or_queue_command(command, &block)
|
9396
|
+
end
|
9397
|
+
|
9398
|
+
# CreateSecurityProfileEnvironmentAssociation creates profile environment
|
9399
|
+
# association i.e. attaches environment to security profile.
|
9400
|
+
# @param [String] parent
|
9401
|
+
# Required. Name of organization and security profile ID. Format: organizations/`
|
9402
|
+
# org`/securityProfiles/`profile`
|
9403
|
+
# @param [Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityProfileEnvironmentAssociation] google_cloud_apigee_v1_security_profile_environment_association_object
|
9404
|
+
# @param [String] fields
|
9405
|
+
# Selector specifying which fields to include in a partial response.
|
9406
|
+
# @param [String] quota_user
|
9407
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
9408
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
9409
|
+
# @param [Google::Apis::RequestOptions] options
|
9410
|
+
# Request-specific options
|
9411
|
+
#
|
9412
|
+
# @yield [result, err] Result & error if block supplied
|
9413
|
+
# @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityProfileEnvironmentAssociation] parsed result object
|
9414
|
+
# @yieldparam err [StandardError] error object if request failed
|
9415
|
+
#
|
9416
|
+
# @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityProfileEnvironmentAssociation]
|
9417
|
+
#
|
9418
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
9419
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
9420
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
9421
|
+
def create_organization_security_profile_environment(parent, google_cloud_apigee_v1_security_profile_environment_association_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
9422
|
+
command = make_simple_command(:post, 'v1/{+parent}/environments', options)
|
9423
|
+
command.request_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityProfileEnvironmentAssociation::Representation
|
9424
|
+
command.request_object = google_cloud_apigee_v1_security_profile_environment_association_object
|
9425
|
+
command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityProfileEnvironmentAssociation::Representation
|
9426
|
+
command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityProfileEnvironmentAssociation
|
9427
|
+
command.params['parent'] = parent unless parent.nil?
|
9428
|
+
command.query['fields'] = fields unless fields.nil?
|
9429
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
9430
|
+
execute_or_queue_command(command, &block)
|
9431
|
+
end
|
9432
|
+
|
9433
|
+
# DeleteSecurityProfileEnvironmentAssociation removes profile environment
|
9434
|
+
# association i.e. detaches environment from security profile.
|
9435
|
+
# @param [String] name
|
9436
|
+
# Required. The name of the environment attachment to delete. Format:
|
9437
|
+
# organizations/`org`/securityProfiles/`profile`/environments/`env`
|
9438
|
+
# @param [String] fields
|
9439
|
+
# Selector specifying which fields to include in a partial response.
|
9440
|
+
# @param [String] quota_user
|
9441
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
9442
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
9443
|
+
# @param [Google::Apis::RequestOptions] options
|
9444
|
+
# Request-specific options
|
9445
|
+
#
|
9446
|
+
# @yield [result, err] Result & error if block supplied
|
9447
|
+
# @yieldparam result [Google::Apis::ApigeeV1::GoogleProtobufEmpty] parsed result object
|
9448
|
+
# @yieldparam err [StandardError] error object if request failed
|
9449
|
+
#
|
9450
|
+
# @return [Google::Apis::ApigeeV1::GoogleProtobufEmpty]
|
9451
|
+
#
|
9452
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
9453
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
9454
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
9455
|
+
def delete_organization_security_profile_environment(name, fields: nil, quota_user: nil, options: nil, &block)
|
9456
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
9457
|
+
command.response_representation = Google::Apis::ApigeeV1::GoogleProtobufEmpty::Representation
|
9458
|
+
command.response_class = Google::Apis::ApigeeV1::GoogleProtobufEmpty
|
9459
|
+
command.params['name'] = name unless name.nil?
|
9460
|
+
command.query['fields'] = fields unless fields.nil?
|
9461
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
9462
|
+
execute_or_queue_command(command, &block)
|
9463
|
+
end
|
9464
|
+
|
8866
9465
|
# Uploads a ZIP-formatted shared flow configuration bundle to an organization.
|
8867
9466
|
# If the shared flow already exists, this creates a new revision of it. If the
|
8868
9467
|
# shared flow does not exist, this creates it. Once imported, the shared flow
|