google-cloud-license_manager-v1 0.a → 0.1.0

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 (37) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +122 -0
  4. data/README.md +154 -8
  5. data/lib/google/cloud/license_manager/v1/bindings_override.rb +75 -0
  6. data/lib/google/cloud/license_manager/v1/license_manager/client.rb +1831 -0
  7. data/lib/google/cloud/license_manager/v1/license_manager/credentials.rb +47 -0
  8. data/lib/google/cloud/license_manager/v1/license_manager/operations.rb +813 -0
  9. data/lib/google/cloud/license_manager/v1/license_manager/paths.rb +107 -0
  10. data/lib/google/cloud/license_manager/v1/license_manager/rest/client.rb +1722 -0
  11. data/lib/google/cloud/license_manager/v1/license_manager/rest/operations.rb +914 -0
  12. data/lib/google/cloud/license_manager/v1/license_manager/rest/service_stub.rb +878 -0
  13. data/lib/google/cloud/license_manager/v1/license_manager/rest.rb +54 -0
  14. data/lib/google/cloud/license_manager/v1/license_manager.rb +56 -0
  15. data/lib/google/cloud/license_manager/v1/rest.rb +38 -0
  16. data/lib/google/cloud/license_manager/v1/version.rb +7 -2
  17. data/lib/google/cloud/license_manager/v1.rb +45 -0
  18. data/lib/google/cloud/licensemanager/v1/api_entities_pb.rb +58 -0
  19. data/lib/google/cloud/licensemanager/v1/licensemanager_pb.rb +74 -0
  20. data/lib/google/cloud/licensemanager/v1/licensemanager_services_pb.rb +69 -0
  21. data/lib/google-cloud-license_manager-v1.rb +21 -0
  22. data/proto_docs/README.md +4 -0
  23. data/proto_docs/google/api/client.rb +473 -0
  24. data/proto_docs/google/api/field_behavior.rb +85 -0
  25. data/proto_docs/google/api/field_info.rb +88 -0
  26. data/proto_docs/google/api/launch_stage.rb +71 -0
  27. data/proto_docs/google/api/resource.rb +227 -0
  28. data/proto_docs/google/cloud/licensemanager/v1/api_entities.rb +297 -0
  29. data/proto_docs/google/cloud/licensemanager/v1/licensemanager.rb +400 -0
  30. data/proto_docs/google/longrunning/operations.rb +173 -0
  31. data/proto_docs/google/protobuf/any.rb +145 -0
  32. data/proto_docs/google/protobuf/duration.rb +98 -0
  33. data/proto_docs/google/protobuf/empty.rb +34 -0
  34. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  35. data/proto_docs/google/protobuf/timestamp.rb +127 -0
  36. data/proto_docs/google/rpc/status.rb +48 -0
  37. metadata +84 -9
@@ -0,0 +1,71 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2025 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 Api
22
+ # The launch stage as defined by [Google Cloud Platform
23
+ # Launch Stages](https://cloud.google.com/terms/launch-stages).
24
+ module LaunchStage
25
+ # Do not use this default value.
26
+ LAUNCH_STAGE_UNSPECIFIED = 0
27
+
28
+ # The feature is not yet implemented. Users can not use it.
29
+ UNIMPLEMENTED = 6
30
+
31
+ # Prelaunch features are hidden from users and are only visible internally.
32
+ PRELAUNCH = 7
33
+
34
+ # Early Access features are limited to a closed group of testers. To use
35
+ # these features, you must sign up in advance and sign a Trusted Tester
36
+ # agreement (which includes confidentiality provisions). These features may
37
+ # be unstable, changed in backward-incompatible ways, and are not
38
+ # guaranteed to be released.
39
+ EARLY_ACCESS = 1
40
+
41
+ # Alpha is a limited availability test for releases before they are cleared
42
+ # for widespread use. By Alpha, all significant design issues are resolved
43
+ # and we are in the process of verifying functionality. Alpha customers
44
+ # need to apply for access, agree to applicable terms, and have their
45
+ # projects allowlisted. Alpha releases don't have to be feature complete,
46
+ # no SLAs are provided, and there are no technical support obligations, but
47
+ # they will be far enough along that customers can actually use them in
48
+ # test environments or for limited-use tests -- just like they would in
49
+ # normal production cases.
50
+ ALPHA = 2
51
+
52
+ # Beta is the point at which we are ready to open a release for any
53
+ # customer to use. There are no SLA or technical support obligations in a
54
+ # Beta release. Products will be complete from a feature perspective, but
55
+ # may have some open outstanding issues. Beta releases are suitable for
56
+ # limited production use cases.
57
+ BETA = 3
58
+
59
+ # GA features are open to all developers and are considered stable and
60
+ # fully qualified for production use.
61
+ GA = 4
62
+
63
+ # Deprecated features are scheduled to be shut down and removed. For more
64
+ # information, see the "Deprecation Policy" section of our [Terms of
65
+ # Service](https://cloud.google.com/terms/)
66
+ # and the [Google Cloud Platform Subject to the Deprecation
67
+ # Policy](https://cloud.google.com/terms/deprecation) documentation.
68
+ DEPRECATED = 5
69
+ end
70
+ end
71
+ end
@@ -0,0 +1,227 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2025 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 Api
22
+ # A simple descriptor of a resource type.
23
+ #
24
+ # ResourceDescriptor annotates a resource message (either by means of a
25
+ # protobuf annotation or use in the service config), and associates the
26
+ # resource's schema, the resource type, and the pattern of the resource name.
27
+ #
28
+ # Example:
29
+ #
30
+ # message Topic {
31
+ # // Indicates this message defines a resource schema.
32
+ # // Declares the resource type in the format of {service}/{kind}.
33
+ # // For Kubernetes resources, the format is {api group}/{kind}.
34
+ # option (google.api.resource) = {
35
+ # type: "pubsub.googleapis.com/Topic"
36
+ # pattern: "projects/{project}/topics/{topic}"
37
+ # };
38
+ # }
39
+ #
40
+ # The ResourceDescriptor Yaml config will look like:
41
+ #
42
+ # resources:
43
+ # - type: "pubsub.googleapis.com/Topic"
44
+ # pattern: "projects/{project}/topics/{topic}"
45
+ #
46
+ # Sometimes, resources have multiple patterns, typically because they can
47
+ # live under multiple parents.
48
+ #
49
+ # Example:
50
+ #
51
+ # message LogEntry {
52
+ # option (google.api.resource) = {
53
+ # type: "logging.googleapis.com/LogEntry"
54
+ # pattern: "projects/{project}/logs/{log}"
55
+ # pattern: "folders/{folder}/logs/{log}"
56
+ # pattern: "organizations/{organization}/logs/{log}"
57
+ # pattern: "billingAccounts/{billing_account}/logs/{log}"
58
+ # };
59
+ # }
60
+ #
61
+ # The ResourceDescriptor Yaml config will look like:
62
+ #
63
+ # resources:
64
+ # - type: 'logging.googleapis.com/LogEntry'
65
+ # pattern: "projects/{project}/logs/{log}"
66
+ # pattern: "folders/{folder}/logs/{log}"
67
+ # pattern: "organizations/{organization}/logs/{log}"
68
+ # pattern: "billingAccounts/{billing_account}/logs/{log}"
69
+ # @!attribute [rw] type
70
+ # @return [::String]
71
+ # The resource type. It must be in the format of
72
+ # \\{service_name}/\\{resource_type_kind}. The `resource_type_kind` must be
73
+ # singular and must not include version numbers.
74
+ #
75
+ # Example: `storage.googleapis.com/Bucket`
76
+ #
77
+ # The value of the resource_type_kind must follow the regular expression
78
+ # /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and
79
+ # should use PascalCase (UpperCamelCase). The maximum number of
80
+ # characters allowed for the `resource_type_kind` is 100.
81
+ # @!attribute [rw] pattern
82
+ # @return [::Array<::String>]
83
+ # Optional. The relative resource name pattern associated with this resource
84
+ # type. The DNS prefix of the full resource name shouldn't be specified here.
85
+ #
86
+ # The path pattern must follow the syntax, which aligns with HTTP binding
87
+ # syntax:
88
+ #
89
+ # Template = Segment { "/" Segment } ;
90
+ # Segment = LITERAL | Variable ;
91
+ # Variable = "{" LITERAL "}" ;
92
+ #
93
+ # Examples:
94
+ #
95
+ # - "projects/\\{project}/topics/\\{topic}"
96
+ # - "projects/\\{project}/knowledgeBases/\\{knowledge_base}"
97
+ #
98
+ # The components in braces correspond to the IDs for each resource in the
99
+ # hierarchy. It is expected that, if multiple patterns are provided,
100
+ # the same component name (e.g. "project") refers to IDs of the same
101
+ # type of resource.
102
+ # @!attribute [rw] name_field
103
+ # @return [::String]
104
+ # Optional. The field on the resource that designates the resource name
105
+ # field. If omitted, this is assumed to be "name".
106
+ # @!attribute [rw] history
107
+ # @return [::Google::Api::ResourceDescriptor::History]
108
+ # Optional. The historical or future-looking state of the resource pattern.
109
+ #
110
+ # Example:
111
+ #
112
+ # // The InspectTemplate message originally only supported resource
113
+ # // names with organization, and project was added later.
114
+ # message InspectTemplate {
115
+ # option (google.api.resource) = {
116
+ # type: "dlp.googleapis.com/InspectTemplate"
117
+ # pattern:
118
+ # "organizations/{organization}/inspectTemplates/{inspect_template}"
119
+ # pattern: "projects/{project}/inspectTemplates/{inspect_template}"
120
+ # history: ORIGINALLY_SINGLE_PATTERN
121
+ # };
122
+ # }
123
+ # @!attribute [rw] plural
124
+ # @return [::String]
125
+ # The plural name used in the resource name and permission names, such as
126
+ # 'projects' for the resource name of 'projects/\\{project}' and the permission
127
+ # name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception
128
+ # to this is for Nested Collections that have stuttering names, as defined
129
+ # in [AIP-122](https://google.aip.dev/122#nested-collections), where the
130
+ # collection ID in the resource name pattern does not necessarily directly
131
+ # match the `plural` value.
132
+ #
133
+ # It is the same concept of the `plural` field in k8s CRD spec
134
+ # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
135
+ #
136
+ # Note: The plural form is required even for singleton resources. See
137
+ # https://aip.dev/156
138
+ # @!attribute [rw] singular
139
+ # @return [::String]
140
+ # The same concept of the `singular` field in k8s CRD spec
141
+ # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
142
+ # Such as "project" for the `resourcemanager.googleapis.com/Project` type.
143
+ # @!attribute [rw] style
144
+ # @return [::Array<::Google::Api::ResourceDescriptor::Style>]
145
+ # Style flag(s) for this resource.
146
+ # These indicate that a resource is expected to conform to a given
147
+ # style. See the specific style flags for additional information.
148
+ class ResourceDescriptor
149
+ include ::Google::Protobuf::MessageExts
150
+ extend ::Google::Protobuf::MessageExts::ClassMethods
151
+
152
+ # A description of the historical or future-looking state of the
153
+ # resource pattern.
154
+ module History
155
+ # The "unset" value.
156
+ HISTORY_UNSPECIFIED = 0
157
+
158
+ # The resource originally had one pattern and launched as such, and
159
+ # additional patterns were added later.
160
+ ORIGINALLY_SINGLE_PATTERN = 1
161
+
162
+ # The resource has one pattern, but the API owner expects to add more
163
+ # later. (This is the inverse of ORIGINALLY_SINGLE_PATTERN, and prevents
164
+ # that from being necessary once there are multiple patterns.)
165
+ FUTURE_MULTI_PATTERN = 2
166
+ end
167
+
168
+ # A flag representing a specific style that a resource claims to conform to.
169
+ module Style
170
+ # The unspecified value. Do not use.
171
+ STYLE_UNSPECIFIED = 0
172
+
173
+ # This resource is intended to be "declarative-friendly".
174
+ #
175
+ # Declarative-friendly resources must be more strictly consistent, and
176
+ # setting this to true communicates to tools that this resource should
177
+ # adhere to declarative-friendly expectations.
178
+ #
179
+ # Note: This is used by the API linter (linter.aip.dev) to enable
180
+ # additional checks.
181
+ DECLARATIVE_FRIENDLY = 1
182
+ end
183
+ end
184
+
185
+ # Defines a proto annotation that describes a string field that refers to
186
+ # an API resource.
187
+ # @!attribute [rw] type
188
+ # @return [::String]
189
+ # The resource type that the annotated field references.
190
+ #
191
+ # Example:
192
+ #
193
+ # message Subscription {
194
+ # string topic = 2 [(google.api.resource_reference) = {
195
+ # type: "pubsub.googleapis.com/Topic"
196
+ # }];
197
+ # }
198
+ #
199
+ # Occasionally, a field may reference an arbitrary resource. In this case,
200
+ # APIs use the special value * in their resource reference.
201
+ #
202
+ # Example:
203
+ #
204
+ # message GetIamPolicyRequest {
205
+ # string resource = 2 [(google.api.resource_reference) = {
206
+ # type: "*"
207
+ # }];
208
+ # }
209
+ # @!attribute [rw] child_type
210
+ # @return [::String]
211
+ # The resource type of a child collection that the annotated field
212
+ # references. This is useful for annotating the `parent` field that
213
+ # doesn't have a fixed resource type.
214
+ #
215
+ # Example:
216
+ #
217
+ # message ListLogEntriesRequest {
218
+ # string parent = 1 [(google.api.resource_reference) = {
219
+ # child_type: "logging.googleapis.com/LogEntry"
220
+ # };
221
+ # }
222
+ class ResourceReference
223
+ include ::Google::Protobuf::MessageExts
224
+ extend ::Google::Protobuf::MessageExts::ClassMethods
225
+ end
226
+ end
227
+ end
@@ -0,0 +1,297 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2025 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 LicenseManager
23
+ module V1
24
+ # Configuration for a Google SPLA product
25
+ # @!attribute [rw] name
26
+ # @return [::String]
27
+ # Identifier. name of resource
28
+ # @!attribute [rw] display_name
29
+ # @return [::String]
30
+ # Required. User given name.
31
+ # @!attribute [rw] product
32
+ # @return [::String]
33
+ # Required. Name field (with URL) of the Product offered for SPLA.
34
+ # @!attribute [rw] license_type
35
+ # @return [::Google::Cloud::LicenseManager::V1::LicenseType]
36
+ # Required. LicenseType to be applied for billing
37
+ # @!attribute [rw] current_billing_info
38
+ # @return [::Google::Cloud::LicenseManager::V1::BillingInfo]
39
+ # Required. Billing information applicable till end of the current month.
40
+ # @!attribute [rw] next_billing_info
41
+ # @return [::Google::Cloud::LicenseManager::V1::BillingInfo]
42
+ # Required. Billing information applicable for next month.
43
+ # @!attribute [r] create_time
44
+ # @return [::Google::Protobuf::Timestamp]
45
+ # Output only. [Output only] Create time stamp
46
+ # @!attribute [r] update_time
47
+ # @return [::Google::Protobuf::Timestamp]
48
+ # Output only. [Output only] Update time stamp
49
+ # @!attribute [rw] labels
50
+ # @return [::Google::Protobuf::Map{::String => ::String}]
51
+ # Optional. Labels as key value pairs
52
+ # @!attribute [r] state
53
+ # @return [::Google::Cloud::LicenseManager::V1::Configuration::State]
54
+ # Output only. State of the configuration.
55
+ class Configuration
56
+ include ::Google::Protobuf::MessageExts
57
+ extend ::Google::Protobuf::MessageExts::ClassMethods
58
+
59
+ # @!attribute [rw] key
60
+ # @return [::String]
61
+ # @!attribute [rw] value
62
+ # @return [::String]
63
+ class LabelsEntry
64
+ include ::Google::Protobuf::MessageExts
65
+ extend ::Google::Protobuf::MessageExts::ClassMethods
66
+ end
67
+
68
+ # State of the configuration.
69
+ module State
70
+ # The Status of the configuration is unspecified
71
+ STATE_UNSPECIFIED = 0
72
+
73
+ # Configuration is in active state.
74
+ STATE_ACTIVE = 1
75
+
76
+ # Configuration is in deactivated state.
77
+ STATE_SUSPENDED = 2
78
+
79
+ # Configuration is in deleted state.
80
+ STATE_DELETED = 3
81
+ end
82
+ end
83
+
84
+ # Billing Information.
85
+ # @!attribute [rw] user_count_billing
86
+ # @return [::Google::Cloud::LicenseManager::V1::UserCountBillingInfo]
87
+ # Required. This type of billing uses user count for computing total
88
+ # charge.
89
+ # @!attribute [r] start_time
90
+ # @return [::Google::Protobuf::Timestamp]
91
+ # Output only. When the billing starts.
92
+ # @!attribute [r] end_time
93
+ # @return [::Google::Protobuf::Timestamp]
94
+ # Output only. When the billing ends.
95
+ class BillingInfo
96
+ include ::Google::Protobuf::MessageExts
97
+ extend ::Google::Protobuf::MessageExts::ClassMethods
98
+ end
99
+
100
+ # This approach uses total unique user count for billing.
101
+ # @!attribute [rw] user_count
102
+ # @return [::Integer]
103
+ # Required. Number of users to bill for.
104
+ class UserCountBillingInfo
105
+ include ::Google::Protobuf::MessageExts
106
+ extend ::Google::Protobuf::MessageExts::ClassMethods
107
+ end
108
+
109
+ # Message representing usage for license configurations which use user-count
110
+ # billing.
111
+ # @!attribute [rw] unique_user_count
112
+ # @return [::Integer]
113
+ # Required. Unique number of licensed users.
114
+ class UserCountUsage
115
+ include ::Google::Protobuf::MessageExts
116
+ extend ::Google::Protobuf::MessageExts::ClassMethods
117
+ end
118
+
119
+ # Products for Google SPLA.
120
+ # @!attribute [rw] name
121
+ # @return [::String]
122
+ # Identifier. Full name of the product resource.
123
+ # ex "projects/1/locations/us-central1/products/office-2021"
124
+ # @!attribute [rw] version
125
+ # @return [::String]
126
+ # Required. Version of the product.
127
+ # @!attribute [rw] product_company
128
+ # @return [::String]
129
+ # Required. Company that released the product.
130
+ # @!attribute [r] state
131
+ # @return [::Google::Cloud::LicenseManager::V1::Product::State]
132
+ # Output only. State of the product.
133
+ # @!attribute [rw] sku
134
+ # @return [::String]
135
+ # Required. SKU for mapping to the Billing/Subscription resource.
136
+ # @!attribute [rw] description
137
+ # @return [::String]
138
+ # Required. Human-readable, detailed description of the Product
139
+ # @!attribute [rw] display_name
140
+ # @return [::String]
141
+ # Required. Human-readable name of the Product
142
+ class Product
143
+ include ::Google::Protobuf::MessageExts
144
+ extend ::Google::Protobuf::MessageExts::ClassMethods
145
+
146
+ # State of the product.
147
+ module State
148
+ # The Status of the product is unknown.
149
+ STATE_UNSPECIFIED = 0
150
+
151
+ # Product is under provisioning stage.
152
+ STATE_PROVISIONING = 1
153
+
154
+ # Product is ok to run on instances.
155
+ STATE_RUNNING = 2
156
+
157
+ # The product is about to terminate or has been announced for termination.
158
+ STATE_TERMINATING = 3
159
+
160
+ # The product has been terminated.
161
+ STATE_TERMINATED = 4
162
+ end
163
+ end
164
+
165
+ # Message describing Instance object
166
+ # @!attribute [rw] name
167
+ # @return [::String]
168
+ # Identifier. name of resource
169
+ # @!attribute [r] create_time
170
+ # @return [::Google::Protobuf::Timestamp]
171
+ # Output only. [Output only] Create time stamp
172
+ # @!attribute [r] update_time
173
+ # @return [::Google::Protobuf::Timestamp]
174
+ # Output only. [Output only] Update time stamp
175
+ # @!attribute [rw] labels
176
+ # @return [::Google::Protobuf::Map{::String => ::String}]
177
+ # Optional. Labels as key value pairs
178
+ # @!attribute [r] state
179
+ # @return [::Google::Cloud::LicenseManager::V1::Instance::State]
180
+ # Output only. The state of the VM.
181
+ # @!attribute [r] region
182
+ # @return [::String]
183
+ # Output only. The location of the VM.
184
+ # @!attribute [r] product_activation
185
+ # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::LicenseManager::V1::ActivationState}]
186
+ # Output only. Map with Product_Name and Activation State of the VM.
187
+ # @!attribute [r] license_version_id
188
+ # @return [::String]
189
+ # Output only. license version id.
190
+ # @!attribute [rw] compute_instance
191
+ # @return [::String]
192
+ # Required. Compute Instance resource name, i.e.
193
+ # projects/\\{project}/zones/\\{zone}/instances/\\{instance}
194
+ class Instance
195
+ include ::Google::Protobuf::MessageExts
196
+ extend ::Google::Protobuf::MessageExts::ClassMethods
197
+
198
+ # @!attribute [rw] key
199
+ # @return [::String]
200
+ # @!attribute [rw] value
201
+ # @return [::String]
202
+ class LabelsEntry
203
+ include ::Google::Protobuf::MessageExts
204
+ extend ::Google::Protobuf::MessageExts::ClassMethods
205
+ end
206
+
207
+ # @!attribute [rw] key
208
+ # @return [::String]
209
+ # @!attribute [rw] value
210
+ # @return [::Google::Cloud::LicenseManager::V1::ActivationState]
211
+ class ProductActivationEntry
212
+ include ::Google::Protobuf::MessageExts
213
+ extend ::Google::Protobuf::MessageExts::ClassMethods
214
+ end
215
+
216
+ # VM status enum.
217
+ module State
218
+ # The Status of the VM is unspecified.
219
+ STATE_UNSPECIFIED = 0
220
+
221
+ # Resources are being allocated for the instance.
222
+ PROVISIONING = 1
223
+
224
+ # All required resources have been allocated and
225
+ # the instance is being started.
226
+ STAGING = 2
227
+
228
+ # The instance is running.
229
+ RUNNING = 3
230
+
231
+ # The instance is currently stopping (either being deleted or terminated).
232
+ STOPPING = 4
233
+
234
+ # The instance has stopped due to various reasons (user request, VM
235
+ # preemption, project freezing, etc.).
236
+ STOPPED = 5
237
+
238
+ # The instance has failed in some way.
239
+ TERMINATED = 6
240
+
241
+ # The instance is in repair.
242
+ REPAIRING = 7
243
+ end
244
+ end
245
+
246
+ # Message describing total counts of users who accessed a VM.
247
+ # @!attribute [rw] lima_instance
248
+ # @return [::String]
249
+ # LiMa Instance resource name, i.e.
250
+ # projects/\\{project}/locations/\\{location}/instances/\\{instance}
251
+ # @!attribute [rw] users
252
+ # @return [::Integer]
253
+ # Number of unique users accessing the VM.
254
+ class Usage
255
+ include ::Google::Protobuf::MessageExts
256
+ extend ::Google::Protobuf::MessageExts::ClassMethods
257
+ end
258
+
259
+ # Different types of licenses that are supported.
260
+ module LicenseType
261
+ # unspecified.
262
+ LICENSE_TYPE_UNSPECIFIED = 0
263
+
264
+ # Billing will be based on number of users listed per month.
265
+ LICENSE_TYPE_PER_MONTH_PER_USER = 1
266
+
267
+ # Bring your own license.
268
+ LICENSE_TYPE_BRING_YOUR_OWN_LICENSE = 2
269
+ end
270
+
271
+ # State of the License Key activation on the instance.
272
+ module ActivationState
273
+ # The Status of the activation is unspecified
274
+ ACTIVATION_STATE_UNSPECIFIED = 0
275
+
276
+ # Activation key (MAK) requested for the instance.
277
+ ACTIVATION_STATE_KEY_REQUESTED = 1
278
+
279
+ # License activation process is running on the instance.
280
+ ACTIVATION_STATE_ACTIVATING = 2
281
+
282
+ # License activation is complete on the instance.
283
+ ACTIVATION_STATE_ACTIVATED = 3
284
+
285
+ # License Key is deactivating on the instance.
286
+ ACTIVATION_STATE_DEACTIVATING = 4
287
+
288
+ # License Key is deactivated on the instance.
289
+ ACTIVATION_STATE_DEACTIVATED = 5
290
+
291
+ # License Key activation failed on the instance.
292
+ ACTIVATION_STATE_TERMINATED = 6
293
+ end
294
+ end
295
+ end
296
+ end
297
+ end