google-cloud-commerce-consumer-procurement-v1 1.0.2 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +4 -4
- data/README.md +3 -3
- data/lib/google/cloud/commerce/consumer/procurement/v1/consumer_procurement_service/client.rb +224 -1
- data/lib/google/cloud/commerce/consumer/procurement/v1/consumer_procurement_service/rest/client.rb +210 -1
- data/lib/google/cloud/commerce/consumer/procurement/v1/consumer_procurement_service/rest/service_stub.rb +120 -0
- data/lib/google/cloud/commerce/consumer/procurement/v1/license_management_service/client.rb +825 -0
- data/lib/google/cloud/commerce/consumer/procurement/v1/license_management_service/credentials.rb +51 -0
- data/lib/google/cloud/commerce/consumer/procurement/v1/license_management_service/paths.rb +54 -0
- data/lib/google/cloud/commerce/consumer/procurement/v1/license_management_service/rest/client.rb +764 -0
- data/lib/google/cloud/commerce/consumer/procurement/v1/license_management_service/rest/service_stub.rb +371 -0
- data/lib/google/cloud/commerce/consumer/procurement/v1/license_management_service/rest.rb +56 -0
- data/lib/google/cloud/commerce/consumer/procurement/v1/license_management_service.rb +59 -0
- data/lib/google/cloud/commerce/consumer/procurement/v1/license_management_service_pb.rb +69 -0
- data/lib/google/cloud/commerce/consumer/procurement/v1/license_management_service_services_pb.rb +57 -0
- data/lib/google/cloud/commerce/consumer/procurement/v1/procurement_service_pb.rb +8 -1
- data/lib/google/cloud/commerce/consumer/procurement/v1/procurement_service_services_pb.rb +7 -0
- data/lib/google/cloud/commerce/consumer/procurement/v1/rest.rb +2 -1
- data/lib/google/cloud/commerce/consumer/procurement/v1/version.rb +1 -1
- data/lib/google/cloud/commerce/consumer/procurement/v1.rb +3 -2
- data/proto_docs/google/cloud/commerce/consumer/procurement/v1/license_management_service.rb +196 -0
- data/proto_docs/google/cloud/commerce/consumer/procurement/v1/order.rb +14 -10
- data/proto_docs/google/cloud/commerce/consumer/procurement/v1/procurement_service.rb +115 -1
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- metadata +14 -3
data/lib/google/cloud/commerce/consumer/procurement/v1/license_management_service/credentials.rb
ADDED
@@ -0,0 +1,51 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2024 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "googleauth"
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Cloud
|
23
|
+
module Commerce
|
24
|
+
module Consumer
|
25
|
+
module Procurement
|
26
|
+
module V1
|
27
|
+
module LicenseManagementService
|
28
|
+
# Credentials for the LicenseManagementService API.
|
29
|
+
class Credentials < ::Google::Auth::Credentials
|
30
|
+
self.scope = [
|
31
|
+
"https://www.googleapis.com/auth/cloud-platform"
|
32
|
+
]
|
33
|
+
self.env_vars = [
|
34
|
+
"GOOGLE_CLOUD_CREDENTIALS",
|
35
|
+
"GOOGLE_CLOUD_KEYFILE",
|
36
|
+
"GCLOUD_KEYFILE",
|
37
|
+
"GOOGLE_CLOUD_CREDENTIALS_JSON",
|
38
|
+
"GOOGLE_CLOUD_KEYFILE_JSON",
|
39
|
+
"GCLOUD_KEYFILE_JSON"
|
40
|
+
]
|
41
|
+
self.paths = [
|
42
|
+
"~/.config/google_cloud/application_default_credentials.json"
|
43
|
+
]
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
@@ -0,0 +1,54 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2024 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module Commerce
|
23
|
+
module Consumer
|
24
|
+
module Procurement
|
25
|
+
module V1
|
26
|
+
module LicenseManagementService
|
27
|
+
# Path helper methods for the LicenseManagementService API.
|
28
|
+
module Paths
|
29
|
+
##
|
30
|
+
# Create a fully-qualified LicensePool resource string.
|
31
|
+
#
|
32
|
+
# The resource will be in the following format:
|
33
|
+
#
|
34
|
+
# `billingAccounts/{billing_account}/orders/{order}/licensePool`
|
35
|
+
#
|
36
|
+
# @param billing_account [String]
|
37
|
+
# @param order [String]
|
38
|
+
#
|
39
|
+
# @return [::String]
|
40
|
+
def license_pool_path billing_account:, order:
|
41
|
+
raise ::ArgumentError, "billing_account cannot contain /" if billing_account.to_s.include? "/"
|
42
|
+
|
43
|
+
"billingAccounts/#{billing_account}/orders/#{order}/licensePool"
|
44
|
+
end
|
45
|
+
|
46
|
+
extend self
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|