Skip to content

Commit 0bb7efa

Browse files
Arista JenkinsNiraj Gupta
authored andcommitted
deprecate migration field from configlet
[GENERATED_COMMIT] Change-Id: I1b2b2bd8edd002c9e05f5cdca639b36afb55f6f7
1 parent c71ebd5 commit 0bb7efa

5 files changed

Lines changed: 105 additions & 88 deletions

File tree

arista/configlet/v1/configlet_pb2.py

Lines changed: 16 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

arista/configlet/v1/configlet_pb2.pyi

Lines changed: 28 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ class _MatchPolicy:
3030
class _MatchPolicyEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_MatchPolicy.ValueType], builtins.type):
3131
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
3232
MATCH_POLICY_UNSPECIFIED: _MatchPolicy.ValueType # 0
33+
"""MATCH_POLICY_UNSPECIFIED is the unspecified match policy."""
3334
MATCH_POLICY_MATCH_FIRST: _MatchPolicy.ValueType # 1
3435
"""MATCH_POLICY_MATCH_FIRST dictates that matching devices are used only for the first match amongst its children"""
3536
MATCH_POLICY_MATCH_ALL: _MatchPolicy.ValueType # 2
@@ -41,6 +42,7 @@ class MatchPolicy(_MatchPolicy, metaclass=_MatchPolicyEnumTypeWrapper):
4142
"""
4243

4344
MATCH_POLICY_UNSPECIFIED: MatchPolicy.ValueType # 0
45+
"""MATCH_POLICY_UNSPECIFIED is the unspecified match policy."""
4446
MATCH_POLICY_MATCH_FIRST: MatchPolicy.ValueType # 1
4547
"""MATCH_POLICY_MATCH_FIRST dictates that matching devices are used only for the first match amongst its children"""
4648
MATCH_POLICY_MATCH_ALL: MatchPolicy.ValueType # 2
@@ -118,7 +120,9 @@ class Configlet(google.protobuf.message.Message):
118120
DIGEST_FIELD_NUMBER: builtins.int
119121
SIZE_FIELD_NUMBER: builtins.int
120122
@property
121-
def key(self) -> global___ConfigletKey: ...
123+
def key(self) -> global___ConfigletKey:
124+
"""key uniquely identifies the static configlet."""
125+
122126
@property
123127
def display_name(self) -> google.protobuf.wrappers_pb2.StringValue:
124128
"""display_name is the display name of the static configlet."""
@@ -194,7 +198,9 @@ class ConfigletConfig(google.protobuf.message.Message):
194198
MIGRATED_FROM_FIELD_NUMBER: builtins.int
195199
BODY_FIELD_NUMBER: builtins.int
196200
@property
197-
def key(self) -> global___ConfigletKey: ...
201+
def key(self) -> global___ConfigletKey:
202+
"""key uniquely identifies the static configlet."""
203+
198204
@property
199205
def remove(self) -> google.protobuf.wrappers_pb2.BoolValue:
200206
"""remove specifies the static configlet is to be removed from the workspace.
@@ -289,11 +295,17 @@ class ConfigletAssignmentConfig(google.protobuf.message.Message):
289295
match_policy: global___MatchPolicy.ValueType
290296
"""match_policy is the discriminator for the query field"""
291297
@property
292-
def key(self) -> global___ConfigletAssignmentKey: ...
298+
def key(self) -> global___ConfigletAssignmentKey:
299+
"""key uniquely identifies the configlet assignment."""
300+
293301
@property
294-
def display_name(self) -> google.protobuf.wrappers_pb2.StringValue: ...
302+
def display_name(self) -> google.protobuf.wrappers_pb2.StringValue:
303+
"""display_name is the display name of the configlet assignment."""
304+
295305
@property
296-
def description(self) -> google.protobuf.wrappers_pb2.StringValue: ...
306+
def description(self) -> google.protobuf.wrappers_pb2.StringValue:
307+
"""description is the description of the configlet assignment."""
308+
297309
@property
298310
def configlet_ids(self) -> fmp.wrappers_pb2.RepeatedString:
299311
"""configlet_ids is the list of configlets to be assigned"""
@@ -318,7 +330,7 @@ class ConfigletAssignmentConfig(google.protobuf.message.Message):
318330

319331
@property
320332
def child_assignment_ids(self) -> fmp.wrappers_pb2.RepeatedString:
321-
"""list of child assignments"""
333+
"""child_assignment_ids is the list of child assignment IDs."""
322334

323335
def __init__(
324336
self,
@@ -357,11 +369,17 @@ class ConfigletAssignment(google.protobuf.message.Message):
357369
match_policy: global___MatchPolicy.ValueType
358370
"""match_policy is the discriminator for the query field"""
359371
@property
360-
def key(self) -> global___ConfigletAssignmentKey: ...
372+
def key(self) -> global___ConfigletAssignmentKey:
373+
"""key uniquely identifies the configlet assignment."""
374+
361375
@property
362-
def display_name(self) -> google.protobuf.wrappers_pb2.StringValue: ...
376+
def display_name(self) -> google.protobuf.wrappers_pb2.StringValue:
377+
"""display_name is the display name of the configlet assignment."""
378+
363379
@property
364-
def description(self) -> google.protobuf.wrappers_pb2.StringValue: ...
380+
def description(self) -> google.protobuf.wrappers_pb2.StringValue:
381+
"""description is the description of the configlet assignment."""
382+
365383
@property
366384
def configlet_ids(self) -> fmp.wrappers_pb2.RepeatedString:
367385
"""configlet_ids is the list of configlets which are assigned"""
@@ -372,7 +390,7 @@ class ConfigletAssignment(google.protobuf.message.Message):
372390

373391
@property
374392
def child_assignment_ids(self) -> fmp.wrappers_pb2.RepeatedString:
375-
"""list of child assignments"""
393+
"""child_assignment_ids is the list of child assignment IDs."""
376394

377395
@property
378396
def created_at(self) -> google.protobuf.timestamp_pb2.Timestamp:

0 commit comments

Comments
 (0)