/**
  * {@inheritdoc}
  */
 public function getFields()
 {
     return [Fb::create('node_ref', T\MessageRefType::create())->build(), Fb::create('_id', T\StringType::create())->pattern('^[\\w\\/\\.:-]+$')->build(), Fb::create('slug', T\StringType::create())->format(Format::SLUG())->build()];
 }
 /**
  * {@inheritdoc}
  */
 public function getFields()
 {
     return [Fb::create('node_ref', T\MessageRefType::create())->build(), Fb::create('slug', T\StringType::create())->format(Format::SLUG())->build(), Fb::create('publish_at', T\DateTimeType::create())->useTypeDefault(false)->build()];
 }
Beispiel #3
0
 /**
  * {@inheritdoc}
  */
 public function getFields()
 {
     return [Fb::create('node_ref', T\MessageRefType::create())->build(), Fb::create('node_status', T\StringEnumType::create())->className('Gdbots\\Schemas\\Ncr\\Enum\\NodeStatus')->build(), Fb::create('new_slug', T\StringType::create())->format(Format::SLUG())->build(), Fb::create('old_slug', T\StringType::create())->format(Format::SLUG())->build()];
 }
Beispiel #4
0
 /**
  * {@inheritdoc}
  */
 public function getFields()
 {
     return [Fb::create('slug', T\StringType::create())->format(Format::SLUG())->build()];
 }
Beispiel #5
0
 /**
  * @return Schema
  */
 protected static function defineSchema()
 {
     return new Schema('pbj:gdbots:contexts::cloud:1-0-0', __CLASS__, [Fb::create('provider', T\StringType::create())->maxLength(20)->format(Format::SLUG())->build(), Fb::create('region', T\StringType::create())->maxLength(20)->format(Format::SLUG())->build(), Fb::create('zone', T\StringType::create())->maxLength(20)->format(Format::SLUG())->build(), Fb::create('instance_id', T\StringType::create())->maxLength(50)->pattern('^[\\w\\.-]+$')->build(), Fb::create('instance_type', T\StringType::create())->maxLength(20)->pattern('^[\\w\\.-]+$')->build()]);
 }
Beispiel #6
0
 /**
  * {@inheritdoc}
  */
 public function getFields()
 {
     return [Fb::create('node_ref', T\MessageRefType::create())->build(), Fb::create('slug', T\StringType::create())->format(Format::SLUG())->build(), Fb::create('new_etag', T\StringType::create())->maxLength(100)->pattern('^[\\w\\.:-]+$')->build(), Fb::create('old_etag', T\StringType::create())->maxLength(100)->pattern('^[\\w\\.:-]+$')->build(), Fb::create('new_node', T\MessageType::create())->className('Gdbots\\Schemas\\Ncr\\Mixin\\Node\\Node')->build(), Fb::create('old_node', T\MessageType::create())->className('Gdbots\\Schemas\\Ncr\\Mixin\\Node\\Node')->build()];
 }
Beispiel #7
0
 /**
  * {@inheritdoc}
  */
 public function getFields()
 {
     return [Fb::create('node_ref', T\MessageRefType::create())->build(), Fb::create('slug', T\StringType::create())->format(Format::SLUG())->build()];
 }