google-apis-apigee_v1 0.47.0 → 0.50.0

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