google-cloud-cloud_controls_partner-v1beta 0.a → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +122 -0
- data/README.md +144 -8
- data/lib/google/cloud/cloud_controls_partner/v1beta/cloud_controls_partner_core/client.rb +1171 -0
- data/lib/google/cloud/cloud_controls_partner/v1beta/cloud_controls_partner_core/credentials.rb +47 -0
- data/lib/google/cloud/cloud_controls_partner/v1beta/cloud_controls_partner_core/paths.rb +149 -0
- data/lib/google/cloud/cloud_controls_partner/v1beta/cloud_controls_partner_core/rest/client.rb +1084 -0
- data/lib/google/cloud/cloud_controls_partner/v1beta/cloud_controls_partner_core/rest/service_stub.rb +541 -0
- data/lib/google/cloud/cloud_controls_partner/v1beta/cloud_controls_partner_core/rest.rb +52 -0
- data/lib/google/cloud/cloud_controls_partner/v1beta/cloud_controls_partner_core.rb +55 -0
- data/lib/google/cloud/cloud_controls_partner/v1beta/cloud_controls_partner_monitoring/client.rb +556 -0
- data/lib/google/cloud/cloud_controls_partner/v1beta/cloud_controls_partner_monitoring/credentials.rb +47 -0
- data/lib/google/cloud/cloud_controls_partner/v1beta/cloud_controls_partner_monitoring/paths.rb +77 -0
- data/lib/google/cloud/cloud_controls_partner/v1beta/cloud_controls_partner_monitoring/rest/client.rb +515 -0
- data/lib/google/cloud/cloud_controls_partner/v1beta/cloud_controls_partner_monitoring/rest/service_stub.rb +187 -0
- data/lib/google/cloud/cloud_controls_partner/v1beta/cloud_controls_partner_monitoring/rest.rb +52 -0
- data/lib/google/cloud/cloud_controls_partner/v1beta/cloud_controls_partner_monitoring.rb +55 -0
- data/lib/google/cloud/cloud_controls_partner/v1beta/rest.rb +38 -0
- data/lib/google/cloud/cloud_controls_partner/v1beta/version.rb +7 -2
- data/lib/google/cloud/cloud_controls_partner/v1beta.rb +46 -0
- data/lib/google/cloud/cloudcontrolspartner/v1beta/access_approval_requests_pb.rb +51 -0
- data/lib/google/cloud/cloudcontrolspartner/v1beta/completion_state_pb.rb +42 -0
- data/lib/google/cloud/cloudcontrolspartner/v1beta/core_pb.rb +55 -0
- data/lib/google/cloud/cloudcontrolspartner/v1beta/core_services_pb.rb +60 -0
- data/lib/google/cloud/cloudcontrolspartner/v1beta/customer_workloads_pb.rb +55 -0
- data/lib/google/cloud/cloudcontrolspartner/v1beta/customers_pb.rb +54 -0
- data/lib/google/cloud/cloudcontrolspartner/v1beta/ekm_connections_pb.rb +49 -0
- data/lib/google/cloud/cloudcontrolspartner/v1beta/monitoring_pb.rb +45 -0
- data/lib/google/cloud/cloudcontrolspartner/v1beta/monitoring_services_pb.rb +53 -0
- data/lib/google/cloud/cloudcontrolspartner/v1beta/partner_permissions_pb.rb +47 -0
- data/lib/google/cloud/cloudcontrolspartner/v1beta/partners_pb.rb +51 -0
- data/lib/google/cloud/cloudcontrolspartner/v1beta/violations_pb.rb +58 -0
- data/lib/google-cloud-cloud_controls_partner-v1beta.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/client.rb +399 -0
- data/proto_docs/google/api/field_behavior.rb +85 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/api/resource.rb +222 -0
- data/proto_docs/google/cloud/cloudcontrolspartner/v1beta/access_approval_requests.rb +143 -0
- data/proto_docs/google/cloud/cloudcontrolspartner/v1beta/completion_state.rb +44 -0
- data/proto_docs/google/cloud/cloudcontrolspartner/v1beta/core.rb +57 -0
- data/proto_docs/google/cloud/cloudcontrolspartner/v1beta/customer_workloads.rb +177 -0
- data/proto_docs/google/cloud/cloudcontrolspartner/v1beta/customers.rb +134 -0
- data/proto_docs/google/cloud/cloudcontrolspartner/v1beta/ekm_connections.rb +96 -0
- data/proto_docs/google/cloud/cloudcontrolspartner/v1beta/partner_permissions.rb +66 -0
- data/proto_docs/google/cloud/cloudcontrolspartner/v1beta/partners.rb +117 -0
- data/proto_docs/google/cloud/cloudcontrolspartner/v1beta/violations.rb +229 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/timestamp.rb +127 -0
- data/proto_docs/google/type/interval.rb +45 -0
- metadata +94 -11
data/lib/google/cloud/cloud_controls_partner/v1beta/cloud_controls_partner_core/credentials.rb
ADDED
@@ -0,0 +1,47 @@
|
|
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 CloudControlsPartner
|
24
|
+
module V1beta
|
25
|
+
module CloudControlsPartnerCore
|
26
|
+
# Credentials for the CloudControlsPartnerCore API.
|
27
|
+
class Credentials < ::Google::Auth::Credentials
|
28
|
+
self.scope = [
|
29
|
+
"https://www.googleapis.com/auth/cloud-platform"
|
30
|
+
]
|
31
|
+
self.env_vars = [
|
32
|
+
"GOOGLE_CLOUD_CREDENTIALS",
|
33
|
+
"GOOGLE_CLOUD_KEYFILE",
|
34
|
+
"GCLOUD_KEYFILE",
|
35
|
+
"GOOGLE_CLOUD_CREDENTIALS_JSON",
|
36
|
+
"GOOGLE_CLOUD_KEYFILE_JSON",
|
37
|
+
"GCLOUD_KEYFILE_JSON"
|
38
|
+
]
|
39
|
+
self.paths = [
|
40
|
+
"~/.config/google_cloud/application_default_credentials.json"
|
41
|
+
]
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
@@ -0,0 +1,149 @@
|
|
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 CloudControlsPartner
|
23
|
+
module V1beta
|
24
|
+
module CloudControlsPartnerCore
|
25
|
+
# Path helper methods for the CloudControlsPartnerCore API.
|
26
|
+
module Paths
|
27
|
+
##
|
28
|
+
# Create a fully-qualified Customer resource string.
|
29
|
+
#
|
30
|
+
# The resource will be in the following format:
|
31
|
+
#
|
32
|
+
# `organizations/{organization}/locations/{location}/customers/{customer}`
|
33
|
+
#
|
34
|
+
# @param organization [String]
|
35
|
+
# @param location [String]
|
36
|
+
# @param customer [String]
|
37
|
+
#
|
38
|
+
# @return [::String]
|
39
|
+
def customer_path organization:, location:, customer:
|
40
|
+
raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
|
41
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
42
|
+
|
43
|
+
"organizations/#{organization}/locations/#{location}/customers/#{customer}"
|
44
|
+
end
|
45
|
+
|
46
|
+
##
|
47
|
+
# Create a fully-qualified EkmConnections resource string.
|
48
|
+
#
|
49
|
+
# The resource will be in the following format:
|
50
|
+
#
|
51
|
+
# `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections`
|
52
|
+
#
|
53
|
+
# @param organization [String]
|
54
|
+
# @param location [String]
|
55
|
+
# @param customer [String]
|
56
|
+
# @param workload [String]
|
57
|
+
#
|
58
|
+
# @return [::String]
|
59
|
+
def ekm_connections_path organization:, location:, customer:, workload:
|
60
|
+
raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
|
61
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
62
|
+
raise ::ArgumentError, "customer cannot contain /" if customer.to_s.include? "/"
|
63
|
+
|
64
|
+
"organizations/#{organization}/locations/#{location}/customers/#{customer}/workloads/#{workload}/ekmConnections"
|
65
|
+
end
|
66
|
+
|
67
|
+
##
|
68
|
+
# Create a fully-qualified OrganizationLocation resource string.
|
69
|
+
#
|
70
|
+
# The resource will be in the following format:
|
71
|
+
#
|
72
|
+
# `organizations/{organization}/locations/{location}`
|
73
|
+
#
|
74
|
+
# @param organization [String]
|
75
|
+
# @param location [String]
|
76
|
+
#
|
77
|
+
# @return [::String]
|
78
|
+
def organization_location_path organization:, location:
|
79
|
+
raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
|
80
|
+
|
81
|
+
"organizations/#{organization}/locations/#{location}"
|
82
|
+
end
|
83
|
+
|
84
|
+
##
|
85
|
+
# Create a fully-qualified Partner resource string.
|
86
|
+
#
|
87
|
+
# The resource will be in the following format:
|
88
|
+
#
|
89
|
+
# `organizations/{organization}/locations/{location}/partner`
|
90
|
+
#
|
91
|
+
# @param organization [String]
|
92
|
+
# @param location [String]
|
93
|
+
#
|
94
|
+
# @return [::String]
|
95
|
+
def partner_path organization:, location:
|
96
|
+
raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
|
97
|
+
|
98
|
+
"organizations/#{organization}/locations/#{location}/partner"
|
99
|
+
end
|
100
|
+
|
101
|
+
##
|
102
|
+
# Create a fully-qualified PartnerPermissions resource string.
|
103
|
+
#
|
104
|
+
# The resource will be in the following format:
|
105
|
+
#
|
106
|
+
# `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions`
|
107
|
+
#
|
108
|
+
# @param organization [String]
|
109
|
+
# @param location [String]
|
110
|
+
# @param customer [String]
|
111
|
+
# @param workload [String]
|
112
|
+
#
|
113
|
+
# @return [::String]
|
114
|
+
def partner_permissions_path organization:, location:, customer:, workload:
|
115
|
+
raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
|
116
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
117
|
+
raise ::ArgumentError, "customer cannot contain /" if customer.to_s.include? "/"
|
118
|
+
|
119
|
+
"organizations/#{organization}/locations/#{location}/customers/#{customer}/workloads/#{workload}/partnerPermissions"
|
120
|
+
end
|
121
|
+
|
122
|
+
##
|
123
|
+
# Create a fully-qualified Workload resource string.
|
124
|
+
#
|
125
|
+
# The resource will be in the following format:
|
126
|
+
#
|
127
|
+
# `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}`
|
128
|
+
#
|
129
|
+
# @param organization [String]
|
130
|
+
# @param location [String]
|
131
|
+
# @param customer [String]
|
132
|
+
# @param workload [String]
|
133
|
+
#
|
134
|
+
# @return [::String]
|
135
|
+
def workload_path organization:, location:, customer:, workload:
|
136
|
+
raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
|
137
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
138
|
+
raise ::ArgumentError, "customer cannot contain /" if customer.to_s.include? "/"
|
139
|
+
|
140
|
+
"organizations/#{organization}/locations/#{location}/customers/#{customer}/workloads/#{workload}"
|
141
|
+
end
|
142
|
+
|
143
|
+
extend self
|
144
|
+
end
|
145
|
+
end
|
146
|
+
end
|
147
|
+
end
|
148
|
+
end
|
149
|
+
end
|