Skip to content

Commit

Permalink
🦉 Updates from OwlBot post-processor
Browse files Browse the repository at this point in the history
  • Loading branch information
gcf-owl-bot[bot] committed Oct 5, 2024
1 parent 58907ad commit 0709456
Show file tree
Hide file tree
Showing 90 changed files with 1,306 additions and 9,205 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,15 @@
"lib/google/cloud/commerce/consumer/procurement/v1/consumer_procurement_service/rest/client.rb",
"lib/google/cloud/commerce/consumer/procurement/v1/consumer_procurement_service/rest/operations.rb",
"lib/google/cloud/commerce/consumer/procurement/v1/consumer_procurement_service/rest/service_stub.rb",
"lib/google/cloud/commerce/consumer/procurement/v1/license_management_service.rb",
"lib/google/cloud/commerce/consumer/procurement/v1/license_management_service/client.rb",
"lib/google/cloud/commerce/consumer/procurement/v1/license_management_service/credentials.rb",
"lib/google/cloud/commerce/consumer/procurement/v1/license_management_service/paths.rb",
"lib/google/cloud/commerce/consumer/procurement/v1/license_management_service/rest.rb",
"lib/google/cloud/commerce/consumer/procurement/v1/license_management_service/rest/client.rb",
"lib/google/cloud/commerce/consumer/procurement/v1/license_management_service/rest/service_stub.rb",
"lib/google/cloud/commerce/consumer/procurement/v1/license_management_service_pb.rb",
"lib/google/cloud/commerce/consumer/procurement/v1/license_management_service_services_pb.rb",
"lib/google/cloud/commerce/consumer/procurement/v1/order_pb.rb",
"lib/google/cloud/commerce/consumer/procurement/v1/procurement_service_pb.rb",
"lib/google/cloud/commerce/consumer/procurement/v1/procurement_service_services_pb.rb",
Expand All @@ -34,23 +43,35 @@
"proto_docs/google/api/field_behavior.rb",
"proto_docs/google/api/launch_stage.rb",
"proto_docs/google/api/resource.rb",
"proto_docs/google/cloud/commerce/consumer/procurement/v1/license_management_service.rb",
"proto_docs/google/cloud/commerce/consumer/procurement/v1/order.rb",
"proto_docs/google/cloud/commerce/consumer/procurement/v1/procurement_service.rb",
"proto_docs/google/longrunning/operations.rb",
"proto_docs/google/protobuf/any.rb",
"proto_docs/google/protobuf/duration.rb",
"proto_docs/google/protobuf/empty.rb",
"proto_docs/google/protobuf/field_mask.rb",
"proto_docs/google/protobuf/timestamp.rb",
"proto_docs/google/rpc/status.rb",
"snippets/Gemfile",
"snippets/consumer_procurement_service/cancel_order.rb",
"snippets/consumer_procurement_service/get_order.rb",
"snippets/consumer_procurement_service/list_orders.rb",
"snippets/consumer_procurement_service/modify_order.rb",
"snippets/consumer_procurement_service/place_order.rb",
"snippets/license_management_service/assign.rb",
"snippets/license_management_service/enumerate_licensed_users.rb",
"snippets/license_management_service/get_license_pool.rb",
"snippets/license_management_service/unassign.rb",
"snippets/license_management_service/update_license_pool.rb",
"snippets/snippet_metadata_google.cloud.commerce.consumer.procurement.v1.json",
"test/google/cloud/commerce/consumer/procurement/v1/consumer_procurement_service_operations_test.rb",
"test/google/cloud/commerce/consumer/procurement/v1/consumer_procurement_service_paths_test.rb",
"test/google/cloud/commerce/consumer/procurement/v1/consumer_procurement_service_rest_test.rb",
"test/google/cloud/commerce/consumer/procurement/v1/consumer_procurement_service_test.rb",
"test/google/cloud/commerce/consumer/procurement/v1/license_management_service_paths_test.rb",
"test/google/cloud/commerce/consumer/procurement/v1/license_management_service_rest_test.rb",
"test/google/cloud/commerce/consumer/procurement/v1/license_management_service_test.rb",
"test/helper.rb"
],
"static": [
Expand Down
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/commerce/consumer/procurement/v1"

client = ::Google::Cloud::Commerce::Consumer::Procurement::V1::ConsumerProcurementService::Client.new do |config|
client = ::Google::Cloud::Commerce::Consumer::Procurement::V1::LicenseManagementService::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/commerce/consumer/procurement/v1"

::Google::Cloud::Commerce::Consumer::Procurement::V1::ConsumerProcurementService::Client.configure do |config|
::Google::Cloud::Commerce::Consumer::Procurement::V1::LicenseManagementService::Client.configure do |config|
config.credentials = "path/to/credentialfile.json"
end

client = ::Google::Cloud::Commerce::Consumer::Procurement::V1::ConsumerProcurementService::Client.new
client = ::Google::Cloud::Commerce::Consumer::Procurement::V1::LicenseManagementService::Client.new
```

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

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

client = ::Google::Cloud::Commerce::Consumer::Procurement::V1::ConsumerProcurementService::Client.new
client = ::Google::Cloud::Commerce::Consumer::Procurement::V1::LicenseManagementService::Client.new
```

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

client = ::Google::Cloud::Commerce::Consumer::Procurement::V1::ConsumerProcurementService::Client.new
request = ::Google::Cloud::Commerce::Consumer::Procurement::V1::PlaceOrderRequest.new # (request fields as keyword arguments...)
response = client.place_order request
client = ::Google::Cloud::Commerce::Consumer::Procurement::V1::LicenseManagementService::Client.new
request = ::Google::Cloud::Commerce::Consumer::Procurement::V1::GetLicensePoolRequest.new # (request fields as keyword arguments...)
response = client.get_license_pool request
```

View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-commerce-consumer-procurement-v1/latest)
Expand Down
4 changes: 2 additions & 2 deletions google-cloud-commerce-consumer-procurement-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/commerce/consumer/procurement/v1/consumer_procurement_service/credentials"
::Google::Cloud::Commerce::Consumer::Procurement::V1::ConsumerProcurementService::Credentials.env_vars.each do |path|
require "google/cloud/commerce/consumer/procurement/v1/license_management_service/credentials"
::Google::Cloud::Commerce::Consumer::Procurement::V1::LicenseManagementService::Credentials.env_vars.each do |path|
ENV[path] = nil
end
ENV["GOOGLE_CLOUD_PROJECT"] = project
Expand Down
44 changes: 44 additions & 0 deletions google-cloud-commerce-consumer-procurement-v1/gapic_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,40 @@
"protoPackage": "google.cloud.commerce.consumer.procurement.v1",
"libraryPackage": "::Google::Cloud::Commerce::Consumer::Procurement::V1",
"services": {
"LicenseManagementService": {
"clients": {
"grpc": {
"libraryClient": "::Google::Cloud::Commerce::Consumer::Procurement::V1::LicenseManagementService::Client",
"rpcs": {
"GetLicensePool": {
"methods": [
"get_license_pool"
]
},
"UpdateLicensePool": {
"methods": [
"update_license_pool"
]
},
"Assign": {
"methods": [
"assign"
]
},
"Unassign": {
"methods": [
"unassign"
]
},
"EnumerateLicensedUsers": {
"methods": [
"enumerate_licensed_users"
]
}
}
}
}
},
"ConsumerProcurementService": {
"clients": {
"grpc": {
Expand All @@ -24,6 +58,16 @@
"methods": [
"list_orders"
]
},
"ModifyOrder": {
"methods": [
"modify_order"
]
},
"CancelOrder": {
"methods": [
"cancel_order"
]
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

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

require "google/cloud/commerce/consumer/procurement/v1/license_management_service"
require "google/cloud/commerce/consumer/procurement/v1/consumer_procurement_service"
require "google/cloud/commerce/consumer/procurement/v1/version"

Expand All @@ -30,12 +31,12 @@ module Procurement
# @example Load this package, including all its services, and instantiate a gRPC client
#
# require "google/cloud/commerce/consumer/procurement/v1"
# client = ::Google::Cloud::Commerce::Consumer::Procurement::V1::ConsumerProcurementService::Client.new
# client = ::Google::Cloud::Commerce::Consumer::Procurement::V1::LicenseManagementService::Client.new
#
# @example Load this package, including all its services, and instantiate a REST client
#
# require "google/cloud/commerce/consumer/procurement/v1"
# client = ::Google::Cloud::Commerce::Consumer::Procurement::V1::ConsumerProcurementService::Rest::Client.new
# client = ::Google::Cloud::Commerce::Consumer::Procurement::V1::LicenseManagementService::Rest::Client.new
#
module V1
end
Expand Down
Loading

0 comments on commit 0709456

Please sign in to comment.