google-cloud-cloud_controls_partner-v1 0.a → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +122 -0
  4. data/README.md +144 -8
  5. data/lib/google/cloud/cloud_controls_partner/v1/cloud_controls_partner_core/client.rb +1171 -0
  6. data/lib/google/cloud/cloud_controls_partner/v1/cloud_controls_partner_core/credentials.rb +47 -0
  7. data/lib/google/cloud/cloud_controls_partner/v1/cloud_controls_partner_core/paths.rb +149 -0
  8. data/lib/google/cloud/cloud_controls_partner/v1/cloud_controls_partner_core/rest/client.rb +1084 -0
  9. data/lib/google/cloud/cloud_controls_partner/v1/cloud_controls_partner_core/rest/service_stub.rb +541 -0
  10. data/lib/google/cloud/cloud_controls_partner/v1/cloud_controls_partner_core/rest.rb +52 -0
  11. data/lib/google/cloud/cloud_controls_partner/v1/cloud_controls_partner_core.rb +55 -0
  12. data/lib/google/cloud/cloud_controls_partner/v1/cloud_controls_partner_monitoring/client.rb +556 -0
  13. data/lib/google/cloud/cloud_controls_partner/v1/cloud_controls_partner_monitoring/credentials.rb +47 -0
  14. data/lib/google/cloud/cloud_controls_partner/v1/cloud_controls_partner_monitoring/paths.rb +77 -0
  15. data/lib/google/cloud/cloud_controls_partner/v1/cloud_controls_partner_monitoring/rest/client.rb +515 -0
  16. data/lib/google/cloud/cloud_controls_partner/v1/cloud_controls_partner_monitoring/rest/service_stub.rb +187 -0
  17. data/lib/google/cloud/cloud_controls_partner/v1/cloud_controls_partner_monitoring/rest.rb +52 -0
  18. data/lib/google/cloud/cloud_controls_partner/v1/cloud_controls_partner_monitoring.rb +55 -0
  19. data/lib/google/cloud/cloud_controls_partner/v1/rest.rb +38 -0
  20. data/lib/google/cloud/cloud_controls_partner/v1/version.rb +7 -2
  21. data/lib/google/cloud/cloud_controls_partner/v1.rb +46 -0
  22. data/lib/google/cloud/cloudcontrolspartner/v1/access_approval_requests_pb.rb +51 -0
  23. data/lib/google/cloud/cloudcontrolspartner/v1/completion_state_pb.rb +42 -0
  24. data/lib/google/cloud/cloudcontrolspartner/v1/core_pb.rb +55 -0
  25. data/lib/google/cloud/cloudcontrolspartner/v1/core_services_pb.rb +60 -0
  26. data/lib/google/cloud/cloudcontrolspartner/v1/customer_workloads_pb.rb +55 -0
  27. data/lib/google/cloud/cloudcontrolspartner/v1/customers_pb.rb +54 -0
  28. data/lib/google/cloud/cloudcontrolspartner/v1/ekm_connections_pb.rb +49 -0
  29. data/lib/google/cloud/cloudcontrolspartner/v1/monitoring_pb.rb +45 -0
  30. data/lib/google/cloud/cloudcontrolspartner/v1/monitoring_services_pb.rb +53 -0
  31. data/lib/google/cloud/cloudcontrolspartner/v1/partner_permissions_pb.rb +47 -0
  32. data/lib/google/cloud/cloudcontrolspartner/v1/partners_pb.rb +51 -0
  33. data/lib/google/cloud/cloudcontrolspartner/v1/violations_pb.rb +58 -0
  34. data/lib/google-cloud-cloud_controls_partner-v1.rb +21 -0
  35. data/proto_docs/README.md +4 -0
  36. data/proto_docs/google/api/client.rb +399 -0
  37. data/proto_docs/google/api/field_behavior.rb +85 -0
  38. data/proto_docs/google/api/launch_stage.rb +71 -0
  39. data/proto_docs/google/api/resource.rb +222 -0
  40. data/proto_docs/google/cloud/cloudcontrolspartner/v1/access_approval_requests.rb +143 -0
  41. data/proto_docs/google/cloud/cloudcontrolspartner/v1/completion_state.rb +44 -0
  42. data/proto_docs/google/cloud/cloudcontrolspartner/v1/core.rb +57 -0
  43. data/proto_docs/google/cloud/cloudcontrolspartner/v1/customer_workloads.rb +177 -0
  44. data/proto_docs/google/cloud/cloudcontrolspartner/v1/customers.rb +134 -0
  45. data/proto_docs/google/cloud/cloudcontrolspartner/v1/ekm_connections.rb +96 -0
  46. data/proto_docs/google/cloud/cloudcontrolspartner/v1/partner_permissions.rb +66 -0
  47. data/proto_docs/google/cloud/cloudcontrolspartner/v1/partners.rb +117 -0
  48. data/proto_docs/google/cloud/cloudcontrolspartner/v1/violations.rb +229 -0
  49. data/proto_docs/google/protobuf/duration.rb +98 -0
  50. data/proto_docs/google/protobuf/timestamp.rb +127 -0
  51. data/proto_docs/google/type/interval.rb +45 -0
  52. metadata +93 -10
@@ -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 V1
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 V1
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