Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
90 changes: 90 additions & 0 deletions google-cloud-chronicle-v1/.owlbot-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,33 @@
"google-cloud-chronicle-v1.gemspec",
"lib/google-cloud-chronicle-v1.rb",
"lib/google/cloud/chronicle/v1.rb",
"lib/google/cloud/chronicle/v1/big_query_export_pb.rb",
"lib/google/cloud/chronicle/v1/big_query_export_service.rb",
"lib/google/cloud/chronicle/v1/big_query_export_service/client.rb",
"lib/google/cloud/chronicle/v1/big_query_export_service/credentials.rb",
"lib/google/cloud/chronicle/v1/big_query_export_service/paths.rb",
"lib/google/cloud/chronicle/v1/big_query_export_service/rest.rb",
"lib/google/cloud/chronicle/v1/big_query_export_service/rest/client.rb",
"lib/google/cloud/chronicle/v1/big_query_export_service/rest/service_stub.rb",
"lib/google/cloud/chronicle/v1/big_query_export_services_pb.rb",
"lib/google/cloud/chronicle/v1/dashboard_chart_pb.rb",
"lib/google/cloud/chronicle/v1/dashboard_chart_service.rb",
"lib/google/cloud/chronicle/v1/dashboard_chart_service/client.rb",
"lib/google/cloud/chronicle/v1/dashboard_chart_service/credentials.rb",
"lib/google/cloud/chronicle/v1/dashboard_chart_service/paths.rb",
"lib/google/cloud/chronicle/v1/dashboard_chart_service/rest.rb",
"lib/google/cloud/chronicle/v1/dashboard_chart_service/rest/client.rb",
"lib/google/cloud/chronicle/v1/dashboard_chart_service/rest/service_stub.rb",
"lib/google/cloud/chronicle/v1/dashboard_chart_services_pb.rb",
"lib/google/cloud/chronicle/v1/dashboard_query_pb.rb",
"lib/google/cloud/chronicle/v1/dashboard_query_service.rb",
"lib/google/cloud/chronicle/v1/dashboard_query_service/client.rb",
"lib/google/cloud/chronicle/v1/dashboard_query_service/credentials.rb",
"lib/google/cloud/chronicle/v1/dashboard_query_service/paths.rb",
"lib/google/cloud/chronicle/v1/dashboard_query_service/rest.rb",
"lib/google/cloud/chronicle/v1/dashboard_query_service/rest/client.rb",
"lib/google/cloud/chronicle/v1/dashboard_query_service/rest/service_stub.rb",
"lib/google/cloud/chronicle/v1/dashboard_query_services_pb.rb",
"lib/google/cloud/chronicle/v1/data_access_control_pb.rb",
"lib/google/cloud/chronicle/v1/data_access_control_service.rb",
"lib/google/cloud/chronicle/v1/data_access_control_service/client.rb",
Expand Down Expand Up @@ -42,6 +69,16 @@
"lib/google/cloud/chronicle/v1/entity_service/rest/client.rb",
"lib/google/cloud/chronicle/v1/entity_service/rest/service_stub.rb",
"lib/google/cloud/chronicle/v1/entity_services_pb.rb",
"lib/google/cloud/chronicle/v1/featured_content_metadata_pb.rb",
"lib/google/cloud/chronicle/v1/featured_content_native_dashboard_pb.rb",
"lib/google/cloud/chronicle/v1/featured_content_native_dashboard_service.rb",
"lib/google/cloud/chronicle/v1/featured_content_native_dashboard_service/client.rb",
"lib/google/cloud/chronicle/v1/featured_content_native_dashboard_service/credentials.rb",
"lib/google/cloud/chronicle/v1/featured_content_native_dashboard_service/paths.rb",
"lib/google/cloud/chronicle/v1/featured_content_native_dashboard_service/rest.rb",
"lib/google/cloud/chronicle/v1/featured_content_native_dashboard_service/rest/client.rb",
"lib/google/cloud/chronicle/v1/featured_content_native_dashboard_service/rest/service_stub.rb",
"lib/google/cloud/chronicle/v1/featured_content_native_dashboard_services_pb.rb",
"lib/google/cloud/chronicle/v1/instance_pb.rb",
"lib/google/cloud/chronicle/v1/instance_service.rb",
"lib/google/cloud/chronicle/v1/instance_service/client.rb",
Expand All @@ -51,6 +88,15 @@
"lib/google/cloud/chronicle/v1/instance_service/rest/client.rb",
"lib/google/cloud/chronicle/v1/instance_service/rest/service_stub.rb",
"lib/google/cloud/chronicle/v1/instance_services_pb.rb",
"lib/google/cloud/chronicle/v1/native_dashboard_pb.rb",
"lib/google/cloud/chronicle/v1/native_dashboard_service.rb",
"lib/google/cloud/chronicle/v1/native_dashboard_service/client.rb",
"lib/google/cloud/chronicle/v1/native_dashboard_service/credentials.rb",
"lib/google/cloud/chronicle/v1/native_dashboard_service/paths.rb",
"lib/google/cloud/chronicle/v1/native_dashboard_service/rest.rb",
"lib/google/cloud/chronicle/v1/native_dashboard_service/rest/client.rb",
"lib/google/cloud/chronicle/v1/native_dashboard_service/rest/service_stub.rb",
"lib/google/cloud/chronicle/v1/native_dashboard_services_pb.rb",
"lib/google/cloud/chronicle/v1/reference_list_pb.rb",
"lib/google/cloud/chronicle/v1/reference_list_service.rb",
"lib/google/cloud/chronicle/v1/reference_list_service/client.rb",
Expand Down Expand Up @@ -78,10 +124,16 @@
"proto_docs/google/api/field_behavior.rb",
"proto_docs/google/api/launch_stage.rb",
"proto_docs/google/api/resource.rb",
"proto_docs/google/cloud/chronicle/v1/big_query_export.rb",
"proto_docs/google/cloud/chronicle/v1/dashboard_chart.rb",
"proto_docs/google/cloud/chronicle/v1/dashboard_query.rb",
"proto_docs/google/cloud/chronicle/v1/data_access_control.rb",
"proto_docs/google/cloud/chronicle/v1/data_table.rb",
"proto_docs/google/cloud/chronicle/v1/entity.rb",
"proto_docs/google/cloud/chronicle/v1/featured_content_metadata.rb",
"proto_docs/google/cloud/chronicle/v1/featured_content_native_dashboard.rb",
"proto_docs/google/cloud/chronicle/v1/instance.rb",
"proto_docs/google/cloud/chronicle/v1/native_dashboard.rb",
"proto_docs/google/cloud/chronicle/v1/reference_list.rb",
"proto_docs/google/cloud/chronicle/v1/rule.rb",
"proto_docs/google/longrunning/operations.rb",
Expand All @@ -91,8 +143,16 @@
"proto_docs/google/protobuf/field_mask.rb",
"proto_docs/google/protobuf/timestamp.rb",
"proto_docs/google/rpc/status.rb",
"proto_docs/google/type/date.rb",
"proto_docs/google/type/interval.rb",
"snippets/Gemfile",
"snippets/big_query_export_service/get_big_query_export.rb",
"snippets/big_query_export_service/provision_big_query_export.rb",
"snippets/big_query_export_service/update_big_query_export.rb",
"snippets/dashboard_chart_service/batch_get_dashboard_charts.rb",
"snippets/dashboard_chart_service/get_dashboard_chart.rb",
"snippets/dashboard_query_service/execute_dashboard_query.rb",
"snippets/dashboard_query_service/get_dashboard_query.rb",
"snippets/data_access_control_service/create_data_access_label.rb",
"snippets/data_access_control_service/create_data_access_scope.rb",
"snippets/data_access_control_service/delete_data_access_label.rb",
Expand Down Expand Up @@ -123,7 +183,22 @@
"snippets/entity_service/get_watchlist.rb",
"snippets/entity_service/list_watchlists.rb",
"snippets/entity_service/update_watchlist.rb",
"snippets/featured_content_native_dashboard_service/get_featured_content_native_dashboard.rb",
"snippets/featured_content_native_dashboard_service/install_featured_content_native_dashboard.rb",
"snippets/featured_content_native_dashboard_service/list_featured_content_native_dashboards.rb",
"snippets/instance_service/get_instance.rb",
"snippets/native_dashboard_service/add_chart.rb",
"snippets/native_dashboard_service/create_native_dashboard.rb",
"snippets/native_dashboard_service/delete_native_dashboard.rb",
"snippets/native_dashboard_service/duplicate_chart.rb",
"snippets/native_dashboard_service/duplicate_native_dashboard.rb",
"snippets/native_dashboard_service/edit_chart.rb",
"snippets/native_dashboard_service/export_native_dashboards.rb",
"snippets/native_dashboard_service/get_native_dashboard.rb",
"snippets/native_dashboard_service/import_native_dashboards.rb",
"snippets/native_dashboard_service/list_native_dashboards.rb",
"snippets/native_dashboard_service/remove_chart.rb",
"snippets/native_dashboard_service/update_native_dashboard.rb",
"snippets/reference_list_service/create_reference_list.rb",
"snippets/reference_list_service/get_reference_list.rb",
"snippets/reference_list_service/list_reference_lists.rb",
Expand All @@ -141,6 +216,15 @@
"snippets/rule_service/update_rule.rb",
"snippets/rule_service/update_rule_deployment.rb",
"snippets/snippet_metadata_google.cloud.chronicle.v1.json",
"test/google/cloud/chronicle/v1/big_query_export_service_paths_test.rb",
"test/google/cloud/chronicle/v1/big_query_export_service_rest_test.rb",
"test/google/cloud/chronicle/v1/big_query_export_service_test.rb",
"test/google/cloud/chronicle/v1/dashboard_chart_service_paths_test.rb",
"test/google/cloud/chronicle/v1/dashboard_chart_service_rest_test.rb",
"test/google/cloud/chronicle/v1/dashboard_chart_service_test.rb",
"test/google/cloud/chronicle/v1/dashboard_query_service_paths_test.rb",
"test/google/cloud/chronicle/v1/dashboard_query_service_rest_test.rb",
"test/google/cloud/chronicle/v1/dashboard_query_service_test.rb",
"test/google/cloud/chronicle/v1/data_access_control_service_paths_test.rb",
"test/google/cloud/chronicle/v1/data_access_control_service_rest_test.rb",
"test/google/cloud/chronicle/v1/data_access_control_service_test.rb",
Expand All @@ -150,9 +234,15 @@
"test/google/cloud/chronicle/v1/entity_service_paths_test.rb",
"test/google/cloud/chronicle/v1/entity_service_rest_test.rb",
"test/google/cloud/chronicle/v1/entity_service_test.rb",
"test/google/cloud/chronicle/v1/featured_content_native_dashboard_service_paths_test.rb",
"test/google/cloud/chronicle/v1/featured_content_native_dashboard_service_rest_test.rb",
"test/google/cloud/chronicle/v1/featured_content_native_dashboard_service_test.rb",
"test/google/cloud/chronicle/v1/instance_service_paths_test.rb",
"test/google/cloud/chronicle/v1/instance_service_rest_test.rb",
"test/google/cloud/chronicle/v1/instance_service_test.rb",
"test/google/cloud/chronicle/v1/native_dashboard_service_paths_test.rb",
"test/google/cloud/chronicle/v1/native_dashboard_service_rest_test.rb",
"test/google/cloud/chronicle/v1/native_dashboard_service_test.rb",
"test/google/cloud/chronicle/v1/reference_list_service_paths_test.rb",
"test/google/cloud/chronicle/v1/reference_list_service_rest_test.rb",
"test/google/cloud/chronicle/v1/reference_list_service_test.rb",
Expand Down
8 changes: 4 additions & 4 deletions google-cloud-chronicle-v1/AUTHENTICATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ To configure a credentials file for an individual client initialization:
```ruby
require "google/cloud/chronicle/v1"

client = ::Google::Cloud::Chronicle::V1::DataAccessControlService::Client.new do |config|
client = ::Google::Cloud::Chronicle::V1::BigQueryExportService::Client.new do |config|
config.credentials = "path/to/credentialfile.json"
end
```
Expand All @@ -66,11 +66,11 @@ To configure a credentials file globally for all clients:
```ruby
require "google/cloud/chronicle/v1"

::Google::Cloud::Chronicle::V1::DataAccessControlService::Client.configure do |config|
::Google::Cloud::Chronicle::V1::BigQueryExportService::Client.configure do |config|
config.credentials = "path/to/credentialfile.json"
end

client = ::Google::Cloud::Chronicle::V1::DataAccessControlService::Client.new
client = ::Google::Cloud::Chronicle::V1::BigQueryExportService::Client.new
```

### Environment Variables
Expand Down Expand Up @@ -100,7 +100,7 @@ require "google/cloud/chronicle/v1"

ENV["GOOGLE_APPLICATION_CREDENTIALS"] = "path/to/credentialfile.json"

client = ::Google::Cloud::Chronicle::V1::DataAccessControlService::Client.new
client = ::Google::Cloud::Chronicle::V1::BigQueryExportService::Client.new
```

### Local ADC file
Expand Down
8 changes: 4 additions & 4 deletions google-cloud-chronicle-v1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ In order to use this library, you first need to go through the following steps:
```ruby
require "google/cloud/chronicle/v1"

client = ::Google::Cloud::Chronicle::V1::DataAccessControlService::Client.new
request = ::Google::Cloud::Chronicle::V1::CreateDataAccessLabelRequest.new # (request fields as keyword arguments...)
response = client.create_data_access_label request
client = ::Google::Cloud::Chronicle::V1::BigQueryExportService::Client.new
request = ::Google::Cloud::Chronicle::V1::GetBigQueryExportRequest.new # (request fields as keyword arguments...)
response = client.get_big_query_export request
```

View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-chronicle-v1/latest)
Expand Down Expand Up @@ -75,7 +75,7 @@ constructing a client object. For example:
require "google/cloud/chronicle/v1"
require "logger"

client = ::Google::Cloud::Chronicle::V1::DataAccessControlService::Client.new do |config|
client = ::Google::Cloud::Chronicle::V1::BigQueryExportService::Client.new do |config|
config.logger = Logger.new "my-app.log"
end
```
Expand Down
4 changes: 2 additions & 2 deletions google-cloud-chronicle-v1/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ task :acceptance, :project, :keyfile do |t, args|
if project.nil? || keyfile.nil?
fail "You must provide a project and keyfile. e.g. rake acceptance[test123, /path/to/keyfile.json] or GOOGLE_CLOUD_TEST_PROJECT=test123 GOOGLE_CLOUD_TEST_KEYFILE=/path/to/keyfile.json rake acceptance"
end
require "google/cloud/chronicle/v1/data_access_control_service/credentials"
::Google::Cloud::Chronicle::V1::DataAccessControlService::Credentials.env_vars.each do |path|
require "google/cloud/chronicle/v1/big_query_export_service/credentials"
::Google::Cloud::Chronicle::V1::BigQueryExportService::Credentials.env_vars.each do |path|
ENV[path] = nil
end
ENV["GOOGLE_CLOUD_PROJECT"] = project
Expand Down
155 changes: 155 additions & 0 deletions google-cloud-chronicle-v1/gapic_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,68 @@
"protoPackage": "google.cloud.chronicle.v1",
"libraryPackage": "::Google::Cloud::Chronicle::V1",
"services": {
"BigQueryExportService": {
"clients": {
"grpc": {
"libraryClient": "::Google::Cloud::Chronicle::V1::BigQueryExportService::Client",
"rpcs": {
"GetBigQueryExport": {
"methods": [
"get_big_query_export"
]
},
"UpdateBigQueryExport": {
"methods": [
"update_big_query_export"
]
},
"ProvisionBigQueryExport": {
"methods": [
"provision_big_query_export"
]
}
}
}
}
},
"DashboardQueryService": {
"clients": {
"grpc": {
"libraryClient": "::Google::Cloud::Chronicle::V1::DashboardQueryService::Client",
"rpcs": {
"GetDashboardQuery": {
"methods": [
"get_dashboard_query"
]
},
"ExecuteDashboardQuery": {
"methods": [
"execute_dashboard_query"
]
}
}
}
}
},
"DashboardChartService": {
"clients": {
"grpc": {
"libraryClient": "::Google::Cloud::Chronicle::V1::DashboardChartService::Client",
"rpcs": {
"GetDashboardChart": {
"methods": [
"get_dashboard_chart"
]
},
"BatchGetDashboardCharts": {
"methods": [
"batch_get_dashboard_charts"
]
}
}
}
}
},
"DataAccessControlService": {
"clients": {
"grpc": {
Expand Down Expand Up @@ -182,6 +244,99 @@
}
}
},
"NativeDashboardService": {
"clients": {
"grpc": {
"libraryClient": "::Google::Cloud::Chronicle::V1::NativeDashboardService::Client",
"rpcs": {
"CreateNativeDashboard": {
"methods": [
"create_native_dashboard"
]
},
"GetNativeDashboard": {
"methods": [
"get_native_dashboard"
]
},
"ListNativeDashboards": {
"methods": [
"list_native_dashboards"
]
},
"UpdateNativeDashboard": {
"methods": [
"update_native_dashboard"
]
},
"DuplicateNativeDashboard": {
"methods": [
"duplicate_native_dashboard"
]
},
"DeleteNativeDashboard": {
"methods": [
"delete_native_dashboard"
]
},
"AddChart": {
"methods": [
"add_chart"
]
},
"RemoveChart": {
"methods": [
"remove_chart"
]
},
"EditChart": {
"methods": [
"edit_chart"
]
},
"DuplicateChart": {
"methods": [
"duplicate_chart"
]
},
"ExportNativeDashboards": {
"methods": [
"export_native_dashboards"
]
},
"ImportNativeDashboards": {
"methods": [
"import_native_dashboards"
]
}
}
}
}
},
"FeaturedContentNativeDashboardService": {
"clients": {
"grpc": {
"libraryClient": "::Google::Cloud::Chronicle::V1::FeaturedContentNativeDashboardService::Client",
"rpcs": {
"GetFeaturedContentNativeDashboard": {
"methods": [
"get_featured_content_native_dashboard"
]
},
"ListFeaturedContentNativeDashboards": {
"methods": [
"list_featured_content_native_dashboards"
]
},
"InstallFeaturedContentNativeDashboard": {
"methods": [
"install_featured_content_native_dashboard"
]
}
}
}
}
},
"InstanceService": {
"clients": {
"grpc": {
Expand Down
Loading
Loading