Skip to content

Commit f48b7c1

Browse files
fix!: An existing service CapacityPlanningService is removed (#31588)
fix!: Changed field behavior for an existing field `cloud_resource_type` in message `.google.cloud.capacityplanner.v1beta.QueryUsageHistoriesRequest` fix!: Changed field behavior for an existing field `cloud_resource_type` in message `.google.cloud.capacityplanner.v1beta.QueryForecastsRequest` fix!: Changed field behavior for an existing field `cloud_resource_type` in message `.google.cloud.capacityplanner.v1beta.QueryReservationsRequest` fix!: Changed field behavior for an existing field `reservation_type` in message `.google.cloud.capacityplanner.v1beta.QueryReservationsRequest` fix!: Changed field behavior for an existing field `reservation_data_level` in message `.google.cloud.capacityplanner.v1beta.QueryReservationsRequest` docs: A comment for field `cloud_resource_type` in message `.google.cloud.capacityplanner.v1beta.QueryUsageHistoriesRequest` is changed docs: A comment for field `cloud_resource_type` in message `.google.cloud.capacityplanner.v1beta.QueryForecastsRequest` is changed docs: A comment for field `cloud_resource_type` in message `.google.cloud.capacityplanner.v1beta.QueryReservationsRequest` is changed docs: A comment for field `reservation_type` in message `.google.cloud.capacityplanner.v1beta.QueryReservationsRequest` is changed docs: A comment for field `reservation_data_level` in message `.google.cloud.capacityplanner.v1beta.QueryReservationsRequest` is changed PiperOrigin-RevId: 816537824 Source-Link: googleapis/googleapis@2954ae6 Source-Link: googleapis/googleapis-gen@cf5779f Copy-Tag: eyJwIjoiZ29vZ2xlLWNsb3VkLWNhcGFjaXR5X3BsYW5uZXItdjFiZXRhLy5Pd2xCb3QueWFtbCIsImgiOiJjZjU3NzlmNjdkODUzNGY4YWNmYmU2Yjg4YWIzMGNkOWFiNjAwMDE5In0= * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 6989374 commit f48b7c1

28 files changed

Lines changed: 47 additions & 3285 deletions

google-cloud-capacity_planner-v1beta/.owlbot-manifest.json

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,6 @@
1515
"google-cloud-capacity_planner-v1beta.gemspec",
1616
"lib/google-cloud-capacity_planner-v1beta.rb",
1717
"lib/google/cloud/capacity_planner/v1beta.rb",
18-
"lib/google/cloud/capacity_planner/v1beta/capacity_planning_service.rb",
19-
"lib/google/cloud/capacity_planner/v1beta/capacity_planning_service/client.rb",
20-
"lib/google/cloud/capacity_planner/v1beta/capacity_planning_service/credentials.rb",
21-
"lib/google/cloud/capacity_planner/v1beta/capacity_planning_service/paths.rb",
22-
"lib/google/cloud/capacity_planner/v1beta/capacity_planning_service/rest.rb",
23-
"lib/google/cloud/capacity_planner/v1beta/capacity_planning_service/rest/client.rb",
24-
"lib/google/cloud/capacity_planner/v1beta/capacity_planning_service/rest/service_stub.rb",
2518
"lib/google/cloud/capacity_planner/v1beta/rest.rb",
2619
"lib/google/cloud/capacity_planner/v1beta/usage_service.rb",
2720
"lib/google/cloud/capacity_planner/v1beta/usage_service/client.rb",
@@ -34,8 +27,6 @@
3427
"lib/google/cloud/capacity_planner/v1beta/usage_service/rest/service_stub.rb",
3528
"lib/google/cloud/capacity_planner/v1beta/version.rb",
3629
"lib/google/cloud/capacityplanner/v1beta/allocation_pb.rb",
37-
"lib/google/cloud/capacityplanner/v1beta/capacity_planning_service_pb.rb",
38-
"lib/google/cloud/capacityplanner/v1beta/capacity_planning_service_services_pb.rb",
3930
"lib/google/cloud/capacityplanner/v1beta/future_reservation_pb.rb",
4031
"lib/google/cloud/capacityplanner/v1beta/location_pb.rb",
4132
"lib/google/cloud/capacityplanner/v1beta/resource_pb.rb",
@@ -47,7 +38,6 @@
4738
"proto_docs/google/api/launch_stage.rb",
4839
"proto_docs/google/api/resource.rb",
4940
"proto_docs/google/cloud/capacityplanner/v1beta/allocation.rb",
50-
"proto_docs/google/cloud/capacityplanner/v1beta/capacity_planning_service.rb",
5141
"proto_docs/google/cloud/capacityplanner/v1beta/future_reservation.rb",
5242
"proto_docs/google/cloud/capacityplanner/v1beta/location.rb",
5343
"proto_docs/google/cloud/capacityplanner/v1beta/resource.rb",
@@ -60,19 +50,13 @@
6050
"proto_docs/google/rpc/status.rb",
6151
"proto_docs/google/type/date.rb",
6252
"snippets/Gemfile",
63-
"snippets/capacity_planning_service/get_capacity_plan.rb",
64-
"snippets/capacity_planning_service/query_capacity_plan_insights.rb",
65-
"snippets/capacity_planning_service/query_capacity_plans.rb",
6653
"snippets/snippet_metadata_google.cloud.capacityplanner.v1beta.json",
6754
"snippets/usage_service/export_forecasts.rb",
6855
"snippets/usage_service/export_reservations_usage.rb",
6956
"snippets/usage_service/export_usage_histories.rb",
7057
"snippets/usage_service/query_forecasts.rb",
7158
"snippets/usage_service/query_reservations.rb",
7259
"snippets/usage_service/query_usage_histories.rb",
73-
"test/google/cloud/capacity_planner/v1beta/capacity_planning_service_paths_test.rb",
74-
"test/google/cloud/capacity_planner/v1beta/capacity_planning_service_rest_test.rb",
75-
"test/google/cloud/capacity_planner/v1beta/capacity_planning_service_test.rb",
7660
"test/google/cloud/capacity_planner/v1beta/usage_service_operations_test.rb",
7761
"test/google/cloud/capacity_planner/v1beta/usage_service_paths_test.rb",
7862
"test/google/cloud/capacity_planner/v1beta/usage_service_rest_test.rb",

google-cloud-capacity_planner-v1beta/AUTHENTICATION.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ To configure a credentials file for an individual client initialization:
5656
```ruby
5757
require "google/cloud/capacity_planner/v1beta"
5858

59-
client = ::Google::Cloud::CapacityPlanner::V1beta::CapacityPlanningService::Client.new do |config|
59+
client = ::Google::Cloud::CapacityPlanner::V1beta::UsageService::Client.new do |config|
6060
config.credentials = "path/to/credentialfile.json"
6161
end
6262
```
@@ -66,11 +66,11 @@ To configure a credentials file globally for all clients:
6666
```ruby
6767
require "google/cloud/capacity_planner/v1beta"
6868

69-
::Google::Cloud::CapacityPlanner::V1beta::CapacityPlanningService::Client.configure do |config|
69+
::Google::Cloud::CapacityPlanner::V1beta::UsageService::Client.configure do |config|
7070
config.credentials = "path/to/credentialfile.json"
7171
end
7272

73-
client = ::Google::Cloud::CapacityPlanner::V1beta::CapacityPlanningService::Client.new
73+
client = ::Google::Cloud::CapacityPlanner::V1beta::UsageService::Client.new
7474
```
7575

7676
### Environment Variables
@@ -100,7 +100,7 @@ require "google/cloud/capacity_planner/v1beta"
100100

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

103-
client = ::Google::Cloud::CapacityPlanner::V1beta::CapacityPlanningService::Client.new
103+
client = ::Google::Cloud::CapacityPlanner::V1beta::UsageService::Client.new
104104
```
105105

106106
### Local ADC file

google-cloud-capacity_planner-v1beta/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ In order to use this library, you first need to go through the following steps:
3131
```ruby
3232
require "google/cloud/capacity_planner/v1beta"
3333

34-
client = ::Google::Cloud::CapacityPlanner::V1beta::CapacityPlanningService::Client.new
35-
request = ::Google::Cloud::CapacityPlanner::V1beta::GetCapacityPlanRequest.new # (request fields as keyword arguments...)
36-
response = client.get_capacity_plan request
34+
client = ::Google::Cloud::CapacityPlanner::V1beta::UsageService::Client.new
35+
request = ::Google::Cloud::CapacityPlanner::V1beta::QueryUsageHistoriesRequest.new # (request fields as keyword arguments...)
36+
response = client.query_usage_histories request
3737
```
3838

3939
View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-capacity_planner-v1beta/latest)
@@ -74,7 +74,7 @@ constructing a client object. For example:
7474
require "google/cloud/capacity_planner/v1beta"
7575
require "logger"
7676

77-
client = ::Google::Cloud::CapacityPlanner::V1beta::CapacityPlanningService::Client.new do |config|
77+
client = ::Google::Cloud::CapacityPlanner::V1beta::UsageService::Client.new do |config|
7878
config.logger = Logger.new "my-app.log"
7979
end
8080
```

google-cloud-capacity_planner-v1beta/Rakefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ task :acceptance, :project, :keyfile do |t, args|
5757
if project.nil? || keyfile.nil?
5858
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"
5959
end
60-
require "google/cloud/capacity_planner/v1beta/capacity_planning_service/credentials"
61-
::Google::Cloud::CapacityPlanner::V1beta::CapacityPlanningService::Credentials.env_vars.each do |path|
60+
require "google/cloud/capacity_planner/v1beta/usage_service/credentials"
61+
::Google::Cloud::CapacityPlanner::V1beta::UsageService::Credentials.env_vars.each do |path|
6262
ENV[path] = nil
6363
end
6464
ENV["GOOGLE_CLOUD_PROJECT"] = project

google-cloud-capacity_planner-v1beta/gapic_metadata.json

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -5,30 +5,6 @@
55
"protoPackage": "google.cloud.capacityplanner.v1beta",
66
"libraryPackage": "::Google::Cloud::CapacityPlanner::V1beta",
77
"services": {
8-
"CapacityPlanningService": {
9-
"clients": {
10-
"grpc": {
11-
"libraryClient": "::Google::Cloud::CapacityPlanner::V1beta::CapacityPlanningService::Client",
12-
"rpcs": {
13-
"GetCapacityPlan": {
14-
"methods": [
15-
"get_capacity_plan"
16-
]
17-
},
18-
"QueryCapacityPlans": {
19-
"methods": [
20-
"query_capacity_plans"
21-
]
22-
},
23-
"QueryCapacityPlanInsights": {
24-
"methods": [
25-
"query_capacity_plan_insights"
26-
]
27-
}
28-
}
29-
}
30-
}
31-
},
328
"UsageService": {
339
"clients": {
3410
"grpc": {

google-cloud-capacity_planner-v1beta/lib/google/cloud/capacity_planner/v1beta.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
1818

19-
require "google/cloud/capacity_planner/v1beta/capacity_planning_service"
2019
require "google/cloud/capacity_planner/v1beta/usage_service"
2120
require "google/cloud/capacity_planner/v1beta/version"
2221

@@ -29,12 +28,12 @@ module CapacityPlanner
2928
# @example Load this package, including all its services, and instantiate a gRPC client
3029
#
3130
# require "google/cloud/capacity_planner/v1beta"
32-
# client = ::Google::Cloud::CapacityPlanner::V1beta::CapacityPlanningService::Client.new
31+
# client = ::Google::Cloud::CapacityPlanner::V1beta::UsageService::Client.new
3332
#
3433
# @example Load this package, including all its services, and instantiate a REST client
3534
#
3635
# require "google/cloud/capacity_planner/v1beta"
37-
# client = ::Google::Cloud::CapacityPlanner::V1beta::CapacityPlanningService::Rest::Client.new
36+
# client = ::Google::Cloud::CapacityPlanner::V1beta::UsageService::Rest::Client.new
3837
#
3938
module V1beta
4039
end

google-cloud-capacity_planner-v1beta/lib/google/cloud/capacity_planner/v1beta/capacity_planning_service.rb

Lines changed: 0 additions & 57 deletions
This file was deleted.

0 commit comments

Comments
 (0)