Skip to content
This repository has been archived by the owner on Sep 16, 2023. It is now read-only.

feat: add resource type to ChannelPartnerLink #210

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -42,34 +42,39 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
java.lang.String[] descriptorData = {
"\n3google/cloud/channel/v1/channel_partne"
+ "r_links.proto\022\027google.cloud.channel.v1\032\037"
+ "google/api/field_behavior.proto\032$google/"
+ "cloud/channel/v1/common.proto\032\037google/pr"
+ "otobuf/timestamp.proto\032\034google/api/annot"
+ "ations.proto\"\233\003\n\022ChannelPartnerLink\022\021\n\004n"
+ "ame\030\001 \001(\tB\003\340A\003\022\'\n\032reseller_cloud_identit"
+ "y_id\030\002 \001(\tB\003\340A\002\022I\n\nlink_state\030\003 \001(\01620.go"
+ "ogle.cloud.channel.v1.ChannelPartnerLink"
+ "StateB\003\340A\002\022\034\n\017invite_link_uri\030\004 \001(\tB\003\340A\003"
+ "\0224\n\013create_time\030\005 \001(\0132\032.google.protobuf."
+ "TimestampB\003\340A\003\0224\n\013update_time\030\006 \001(\0132\032.go"
+ "ogle.protobuf.TimestampB\003\340A\003\022\026\n\tpublic_i"
+ "d\030\007 \001(\tB\003\340A\003\022\\\n#channel_partner_cloud_id"
+ "entity_info\030\010 \001(\0132*.google.cloud.channel"
+ ".v1.CloudIdentityInfoB\003\340A\003*>\n\026ChannelPar"
+ "tnerLinkView\022\017\n\013UNSPECIFIED\020\000\022\t\n\005BASIC\020\001"
+ "\022\010\n\004FULL\020\002*z\n\027ChannelPartnerLinkState\022*\n"
+ "&CHANNEL_PARTNER_LINK_STATE_UNSPECIFIED\020"
+ "\000\022\013\n\007INVITED\020\001\022\n\n\006ACTIVE\020\002\022\013\n\007REVOKED\020\003\022"
+ "\r\n\tSUSPENDED\020\004By\n\033com.google.cloud.chann"
+ "el.v1B\030ChannelPartnerLinksProtoP\001Z>googl"
+ "e.golang.org/genproto/googleapis/cloud/c"
+ "hannel/v1;channelb\006proto3"
+ "google/api/field_behavior.proto\032\031google/"
+ "api/resource.proto\032$google/cloud/channel"
+ "/v1/common.proto\032\037google/protobuf/timest"
+ "amp.proto\032\034google/api/annotations.proto\""
+ "\217\004\n\022ChannelPartnerLink\022\021\n\004name\030\001 \001(\tB\003\340A"
+ "\003\022\'\n\032reseller_cloud_identity_id\030\002 \001(\tB\003\340"
+ "A\002\022I\n\nlink_state\030\003 \001(\01620.google.cloud.ch"
+ "annel.v1.ChannelPartnerLinkStateB\003\340A\002\022\034\n"
+ "\017invite_link_uri\030\004 \001(\tB\003\340A\003\0224\n\013create_ti"
+ "me\030\005 \001(\0132\032.google.protobuf.TimestampB\003\340A"
+ "\003\0224\n\013update_time\030\006 \001(\0132\032.google.protobuf"
+ ".TimestampB\003\340A\003\022\026\n\tpublic_id\030\007 \001(\tB\003\340A\003\022"
+ "\\\n#channel_partner_cloud_identity_info\030\010"
+ " \001(\0132*.google.cloud.channel.v1.CloudIden"
+ "tityInfoB\003\340A\003:r\352Ao\n.cloudchannel.googlea"
+ "pis.com/ChannelPartnerLink\022=accounts/{ac"
+ "count}/channelPartnerLinks/{channel_part"
+ "ner_link}*>\n\026ChannelPartnerLinkView\022\017\n\013U"
+ "NSPECIFIED\020\000\022\t\n\005BASIC\020\001\022\010\n\004FULL\020\002*z\n\027Cha"
+ "nnelPartnerLinkState\022*\n&CHANNEL_PARTNER_"
+ "LINK_STATE_UNSPECIFIED\020\000\022\013\n\007INVITED\020\001\022\n\n"
+ "\006ACTIVE\020\002\022\013\n\007REVOKED\020\003\022\r\n\tSUSPENDED\020\004By\n"
+ "\033com.google.cloud.channel.v1B\030ChannelPar"
+ "tnerLinksProtoP\001Z>google.golang.org/genp"
+ "roto/googleapis/cloud/channel/v1;channel"
+ "b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.api.FieldBehaviorProto.getDescriptor(),
com.google.api.ResourceProto.getDescriptor(),
com.google.cloud.channel.v1.CommonProto.getDescriptor(),
com.google.protobuf.TimestampProto.getDescriptor(),
com.google.api.AnnotationsProto.getDescriptor(),
Expand All @@ -92,9 +97,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
registry.add(com.google.api.ResourceProto.resource);
com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
descriptor, registry);
com.google.api.FieldBehaviorProto.getDescriptor();
com.google.api.ResourceProto.getDescriptor();
com.google.cloud.channel.v1.CommonProto.getDescriptor();
com.google.protobuf.TimestampProto.getDescriptor();
com.google.api.AnnotationsProto.getDescriptor();
Expand Down
Expand Up @@ -17,6 +17,7 @@ syntax = "proto3";
package google.cloud.channel.v1;

import "google/api/field_behavior.proto";
import "google/api/resource.proto";
import "google/cloud/channel/v1/common.proto";
import "google/protobuf/timestamp.proto";
import "google/api/annotations.proto";
Expand Down Expand Up @@ -62,6 +63,11 @@ enum ChannelPartnerLinkState {
// Entity representing a link between distributors and their indirect
// resellers in an n-tier resale channel.
message ChannelPartnerLink {
option (google.api.resource) = {
type: "cloudchannel.googleapis.com/ChannelPartnerLink"
pattern: "accounts/{account}/channelPartnerLinks/{channel_partner_link}"
};

// Output only. Resource name for the channel partner link, in the format
// accounts/{account_id}/channelPartnerLinks/{id}.
string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
Expand Down